1 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
3 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4 tracking size for tool windows.
5 * Theme.cs, ThemeWin32Classic.cs : Extracted
6 ManagedWindowSpacingAfterLastTitleButton.
8 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
10 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
11 They are bit-rotted and have always been listed as "unsupported".
13 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
15 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
17 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
19 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
21 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
23 * ListBox.cs: Make sure last_item_visible gets reset before we try
24 to do a layout due to scrollbars appearing or disappearing.
27 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
29 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
30 for different window themes. [Fixes bug #339140]
32 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
34 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
35 in ManagedWindowBorderWidth.
37 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
39 * InternalWindowManager.cs: Change MouseMove to take a point, so
40 we can use the same point later on.
41 * MdiWindowManager.cs: Store point sent to MouseMove so we can
42 later reset to it. On Windows, the Cursor.Position had already
43 changed by the time we were resetting to it.
46 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
48 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
50 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
54 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
56 * MdiWindowManager.cs: Double-clicking on the title bar should not
57 maximize a MDI form if MaximizeBox = false.
59 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
61 * ThemeVisualStyles.cs: Fixed a warning.
63 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
65 * ThemeVisualStyles.cs: Fixed warnings and formatted.
67 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
69 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
70 implementation produces a better result.
72 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
74 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
77 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
79 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
80 cannot be used from the ThemeEngine constructor.
81 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
82 Application.VisualStylesEnabled because it does not work on X11.
84 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
86 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
87 that we did not always check for, as well as fixes to the IList
88 implementations. [Fixes bug #402703]
90 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
92 * IDeviceContext.cs: Added Dispose.
94 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
96 * Control.cs: Added OnSizeInitializedOrChanged.
97 * Form.cs: OnLoadInternal: Added a call to
98 Control.OnSizeInitializedOrChanged.
99 * InternalWindowManager.cs:
100 * HandleTitleBarMouseMove: No longer invalidates the parent window.
101 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
102 * TitleButton: Added Entered.
103 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
104 * MdiWindowManager.cs:
105 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
106 move over the maximized title buttons causes a change.
107 * IsActive: Can now be called before the window is added to a MDI parent.
108 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
109 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
110 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
111 * ThemeWin32Classic.cs:
112 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
113 * DrawTitleButton takes a new form parameter.
114 * Added ManagedWindowTitleButtonHasHotElementStyle,
115 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
117 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
119 * ThemeEngine.cs: ThemeVisualStyles is now selected if
120 Application.EnableVisualStyles has been called, even if the current system
121 configuration does not support rendering with Visual Styles.
122 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
123 Styles should not be used.
125 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
127 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
128 ComboBox in FormsTest.
130 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
132 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
133 for fixed toolwindows.
135 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
137 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
139 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
141 * Control.cs: CreateControl just returns if the Control is diposed
142 and doesn't throw ObjectDisposedException.
145 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
147 * Control.cs: Do not create the control if the parent isn't created
148 yet, e.g in the case of a parented form on which .Show is called.
149 It will be created when the parent is made visible/created.
152 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
154 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
155 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
158 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
160 * Form.cs: When disposed set owner to null. Improves #402446.
162 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
164 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
165 use children's PreferredSize if in AutoSize mode and ExplicitBounds
167 * Form.cs: Take the Padding into account for the PreferredSize.
170 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
172 * TabControl.cs: Since we don't support more than one direction in
173 TabControl rows alignment (this is, the row becomes the
174 bottom row when selected), make Direction return always 1. This way
175 the layout doesn't get confused about a bad calculation.
178 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
180 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
181 so that the wparam is properly set.
182 Fixes form moving in the test case in bug 402446.
184 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
186 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
187 the full tree instead of nothing. [Improves bug #406584]
189 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
191 * ThemeWin32Classic.cs: Adjusted minimized window painting.
193 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
195 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
198 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
200 * TreeView.cs: Add a null check when using CollapseAll on an
201 empty tree. [Fixes bug #406449]
203 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
205 * Form.cs: Make OnMenuComplete internal so we can call it.
206 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
209 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
211 * TabControl.cs: Handle Up and Down keys when TabControl is in
215 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
217 * TabControl.cs: Invalidate when we remove a tab. Guard against
218 an AOORE when trying to remove a tabpage that is not owned by the
222 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
224 * ScrollBar.cs: Change the LargeChange calculation to be correct.
225 Ensure we are using LargeChange instead of large_change so we our
226 calculations are correct.
229 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
231 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
232 we need to ensure the ColumnCount/RowCount gets set.
235 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
237 * ListBox.cs: When handling item navigation, if selection mode is
238 None, call EnsureVisible, since scrolling is normally handled by
239 selection, that we are not calling in this case.
242 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
244 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
245 a null check to our focus walking code. [Fixes bug #394332]
247 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
249 * ComboBox.cs: Case missed in bug 379596 "Support item
250 navigation by entering text": On _close_ drop-down select
251 the first item matching the text in the textbox. [Fixes bug #397265]
253 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
255 * DataGridView.cs: Fix a crash when sorting by column headers,
256 mentioned in bug #404841. Remove some dead switch cases.
258 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
261 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
262 uses the AutoComplete support in the internal TextBox. Also TextBox
263 can store a reference to ComboBox, in case AutoCompleteSource is set
264 to ListItems (this is, ComboBox's items, and we don't want to pass an
265 additional collection).
267 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
269 * ListViewItem.cs: Restore the initial value of bounds rect to
270 Rectangle.Empty, and is this value for Layout detection in virtual
271 mode. Fixes the tests.
273 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
275 * XPlatUI.cs: Remove references to "new" X11 backend.
277 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
279 * Control.cs: Add an internal virtual OnDragDropEnd method
280 to allow controls such as ListBox, which depend on a sequence
281 of MouseDown+Move+End events, to handle the lack of a MouseUp
282 when a DnD operation is started in MouseDown.
283 * ListBox.cs: If a DnD operation is started in MouseDown we won't
284 get a MouseUp, so reset our state whenever a DnD operation ends.
286 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
288 * PropertyGrid.cs: Clear the root griditem first thing when
289 new object/s is/are selected. Fixes some rare cases where
290 the View will get a paint request and won't know that the
291 grid is in the process of repopulating.
293 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
295 * XplatUIX11.cs, InternalWindowManager.cs:
296 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
297 doesn't automagically update the FormBorderStyle, so we must
298 double check the CreateParams explicitly to determine if the
299 window is a toolwindow.
300 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
301 instead of doing custom checks.
303 Fixes toolwindows for the test case in bug #402446
305 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
307 * Control.cs: Visibility of the control should be false
308 when the handle is destroyed in WmDestroy and not immediately
309 in Dispose(). This is effectively where the disposing process
310 ends even though the control is marked as Disposed immediately
311 after calling Dispose().
314 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
316 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
317 when the textbox gets focus.
320 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
322 * PropertyGridTextBox.cs, PropertyGridView.cs:
323 - Alt + Down should show the drop down editor.
324 - Focus the editor when showing it
327 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
329 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
330 that are not the first panel.
331 * StatusBar.cs: Ensure that the X coordinate of panels is always
332 stored. Fix IList implementation of StatusBarPanelCollection to
333 call the regular methods.
334 [Fixes bug #403599, #402165]
336 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
338 * ThemeWin32Classic.cs: Fix position calculation for centered
339 text on status bar panels. [Fixes bug #402165]
341 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
343 * Splitter.cs: Fix Splitter to:
344 - Work for arbitrary splitter size
345 - Handle MinSize and MinExtra properly
346 - Get rid of absolute positioning during drag and use relative
347 - Multiple other fixes
350 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
352 * Cursor.cs: Show shouldn't hide the cursor.
354 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
356 * ListViewItem.cs: When invalidating, add some extra space to bounds,
357 since focus rectangle and selection can add some space and need to
358 take into account those small offsets - specially in Details view.
359 * ListView.cs: Instead of invalidate using item Bounds directly, call
360 item.Invalidate, to have the code centralized.
361 Fixes focused/selection garbage when selecting and deselecting items
364 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
366 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
367 mode we can check whether we have to force a Layout or not, and can
368 cache based on this, instead of avoiding caching all the the time. Do
369 this check in GetBounds and TextBounds.
370 Fixes selection in Details view.
372 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
374 * ListView.cs: Make HeaderControl internal, thus the theme engine can
375 get its *real* height instead of trying to infere it.
376 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
377 get the position of them, since it's in general a bad idea in general,
378 and because we can't do that in virtual mode. Instead get the first
379 visible item as well as item height, and draw them.
382 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
384 * ToolStripSplitButton.cs: We can't add in extra width if
385 the button is not AutoSize. [Fixes bug #401279]
387 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
389 * PaddingConverter.cs:
390 - Implement conversion to InstanceDescriptor
391 - Handle "All" in CreateInstance by using the supplied
392 ITypeDescriptorContext.
393 [Fixes bugs #396076 and #396078]
395 Patch by Andy Hume <andyhume32@yahoo.co.uk>
396 Code contributed under MIT/X11 license.
398 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
400 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
402 Add Category attributes.
403 Code is contributed under the MIT/X11 license.
405 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
408 - Fix a NRE when unparenting a form.
409 - Do not recreate or destroy a parented form when
412 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
414 * TextBox.cs: Implement basic support for AutComplete with custom
417 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
419 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
420 DropDownButtonBounds should be from the origin of the button, not the
421 ToolStrip. [Fixes bug #401279]
423 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
425 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
426 running gtk_init_check. This prevents GAIL from loading
427 unnecessarily, which was breaking UIA support. Initial fix for bug
429 * Application.cs: Add UIA support to Winforms. New static constructor
430 uses reflection to initialize UIAutomationWinforms assembly. Added
431 PreRun event so UIA can initialize before the mainloop starts, and
432 FormAdded event so UIA can provide a11y support for new Forms in an
435 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
437 * DataGridView.cs: When binding to a dataset, subscribe to table
438 and column change events. Unsubscribe to these when we clear bindings.
441 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
443 [DataGrid drawing refactory]
445 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
447 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
448 must be handle by Theme, now it call DataGridPaintColumnHeader.
450 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
451 test cases must be also fixed because it checks for wrong size.
453 * ThemeWin32Classic.cs:
454 - Draw the bottom line of grid caption.
455 - Prevent to draw caption text when it is empty.
456 - Use CPDrawBorder3D for 3D efects to simplify code.
457 - Uses 3D (when not flat) to paint corner shared between row and column
459 - Fix header drawing issues on win32, now borders are drawing.
460 - Fix column header paint issues to mimic win32.
461 - Adjust header drawing for last column, like first one it must be draw
463 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
465 - DataGridPaintColumnHeader created to draw column headers, it also
466 paint stuff right on Win32.
467 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
471 - DataGridPaintRowHeaderStar method added.
472 - DataGridPaintColumnHeader method added.
474 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
476 * Control.cs: Don't reset to Dock style layout if DockStyle is
477 set to none. [Fixes bug #399316]
479 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
481 * Win32DnD.cs: Fix the check for control not equal null.
482 Fixes bug #341420 and #381886.
484 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
486 * DataGridViewRowCollection.cs: Update the indexes of rows after
487 one has been removed.
488 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
489 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
490 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
491 rows for the Rows collection, or deleting rows from the bound DataSet.
493 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
495 * DataGridView.cs: Listen to a DataSet's changed event even
496 when autogeneratecolumns is false. Refactor the changed event's
497 add row code to use the same as the existing add row code.
500 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
502 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
503 much any time the caret moves and there is text, not just when
504 the selection changes as one would think.
505 * RichTextBox.cs: Override RaiseSelectionChanged and fire
509 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
511 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
512 instead of trying to duplicate the code.
513 * ListBox.cs: Make method internal so we can send keyboard events.
516 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
518 * TextBoxBase.cs: When pasting and checking the max length,
519 subtract the selected text length (the text we will be replacing) from
521 * TextControl.cs: Ensure every character insertion is reflected in
522 charcount, so max length will work properly.
525 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
527 * ListBox.cs: Ensure scrollbars are updated when a single
528 column listbox with an already set top-index is created.
531 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
533 * FontDialog.cs: Typing in the font/style textboxes should search
534 the list boxes case-insensitively. [Fixes bug #398343]
536 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
538 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
539 widths of icon and buttons instead of hard coded values.
541 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
543 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
544 as well as generating a SelectedIndexChanged event, just like .Net does
548 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
550 * ListBox.cs: When navigating items visually, use FocusedItem as the
551 reference point instead of SelectedIndex, since even in
552 SelectionMode.None we need to support navigation, and in that case we
553 just can't use SelectedIndex.
554 Fixes part of #398345.
556 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
558 * Control.cs: Make a SetBoundsInternal that avoids the new
560 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
561 SetBoundsInternal instead of SetBoundsCoreInternal.
563 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
565 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
566 SetBounds for the scrollbars.
568 2008-06-10 Andreia Gaita <avidigal@novell.com>
570 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
571 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
572 OnMouseMove, OnMouseOver, OnMouseUp
573 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
574 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
575 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
576 to the WebControl object to pass to new collection objects
577 * HtmlHistory.cs: Implement support for individual window histories.
578 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
579 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
580 GotFocus, LostFocus, OnLoad, OnUnload
581 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
583 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
584 security level changes and context menu event support.
586 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
588 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
589 as happens with Esc, patch my Andy Hume.
592 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
594 * MdiWindowManager.cs: DrawMaximizedButtons now uses
595 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
596 * Theme.cs: Made MenuButtonSize platform dependent. Added
597 ManagedWindowButtonSize.
598 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
599 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
601 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
603 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
604 Added support for rendering with VisualStyles.
606 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
608 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
609 support for rendering the border with VisualStyles.
611 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
613 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
614 the icon is not shown.
615 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
618 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
620 * InternalWindowManager.cs: Draw minimized windows even if they don't have
623 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
625 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
627 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
629 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
632 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
634 * ComboBox.cs: When snaping height -because of IntegralHeight set to
635 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
636 if the requested height leaves the listbox area with *less* than the
637 required are to see one item. We were setting it to PreferredHeight
638 even for values matching the height for a single item.
641 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
643 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
645 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
647 * DataGridViewCell.cs: Use property instead of field.
649 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
651 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
654 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
656 * Theme.cs: Added #region around the managed window code. Made the managed
657 window methods abstract.
658 * ThemeWin32Classic.cs: Added #region around the managed window code.
660 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
662 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
664 * ThemeWin32Classic.cs: Removed HasBorders checks in
665 DrawManagedWindowDecorations.
667 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
669 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
670 Extracted ManagedWindowGetTitleBarIconArea.
672 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
674 * DataGridViewCellStyle.cs: Don't clone the font.
676 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
678 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
680 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
682 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
683 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
686 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
688 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
689 Use Format/FormatProvider before trying converters.
690 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
691 are 'set'. Change constructor to not use ApplyStyle since it wants
692 everything applied. Clone the Font.
693 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
696 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
698 * ListView.cs: We need to calculate the scrollbars even if the handle
699 hasn't been created - this is needed when methods using scrollbars
700 info, such EnsureVisible, are called before control has been created.
703 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
705 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
706 only if the elements are defined.
708 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
710 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
711 section. Also, when setting bounds, snap height as well as save the
712 requested height if Dock has any value affecting the height: Left,
713 Right and Bottom - important if using IntegralHeight as true.
715 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
717 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
718 passed to SetBounds to reflect the new adjusted height (Integral-wise),
719 instead of doing that only in our SetBoundsCore override, since the
720 bounds cached can be the same as saved one and we could not get the
724 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
726 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
727 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
728 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
729 ToolWindowCaptionButtonSize.
730 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
732 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
734 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
736 * Theme.cs: Made DoubleClickTime plaform dependent.
738 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
740 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
741 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
742 ToolWindowCaptionHeight.
744 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
746 * InternalWindowManager.cs: The adjustment to ensure positive client area
747 sizes is now platform dependent (disabled on Windows).
748 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
749 RequiresPositiveClientAreaSize.
751 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
753 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
755 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
757 * InternalWindowManager.cs: Changed IconicSize to use
758 SystemInformation.MinimizedWindowSize.
759 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
760 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
762 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
764 * ComboBox.cs: If the combobox is anchored both on top and bottom,
765 adjust height if IntegralHeight is true when calling SetBoundsCore (as
766 likely the height was modified even if Height wasn't specified in
767 BoundsSpecified parameter).
768 Fixes part of #396297.
770 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
772 * InternalWindowsManager.cs: Changed minimum window size while resizing to
773 SystemInformation.MinWindowTrackSize.
774 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
775 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
777 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
779 * MenuItem.cs: Fixed Dispose.
781 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
783 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
784 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
785 EnteredHeaderCell, PressedHeaderCell: Added.
786 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
787 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
788 theme a chance to override default painting.
789 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
790 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
791 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
792 ListView and DataGridView header rendering.
794 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
796 * RichTextBox.cs: GetPositionFromCharIndex should return the
797 visual position of the character relative to the viewport.
798 [Fixes part of bug #396664]
800 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
802 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
803 and not just for the existance of an UITypeEditor. In some cases
804 there is an editor associated just to do PaintValue, but which
805 doesn't actually support editing.
808 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
810 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
811 if needed, instead of 0 - this should help us in the corner case where
812 we have more than one item but we are only partially showing 1 item.
813 Fixes part of #374713.
815 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
817 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
818 control, return immediately if the any parent control's handle hasn't
819 been created or isn't visible, as well as avoiding creating the parent
820 Form if the handle hasn't been previously created.
823 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
825 * TableLayoutPanel.cs: Use border sizes when calculating the
826 panel's preferred size. [Fixes part of bug #396433]
828 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
831 - Fix SplitterDistance to update only if needed.
832 - Make it force min and max validation.
833 - Handle properly mouse moves outside the resizeable area.
836 2008-06-02 Andreia Gaita <avidigal@novell.com>
838 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
839 (which also suppresses all popup dialogs). Throw NotSupported
840 exceptions for activex getters/setters.
841 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
842 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
843 StatusText, Version, GoSearch
844 * HtmlDocument.cs: Add DocType support
846 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
848 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
851 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
853 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
855 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
857 * TableLayoutPanel.cs: When calculating preferred size, use the
858 actual number of columns and rows, not what the user set them to.
861 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
863 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
866 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
868 * XplatUIX11.cs: When detecting areas obscured in a control by other
869 toplevel windows while scrolling, return if the control hasn't a
873 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
875 * XplatUIX11.cs: Properly detect the visible area of a control being
876 scrolled (obscured by other winforms controls and any X toplevel
877 windows), to mark as invalid the requested area to be scrolled that
878 isn't visible and thus can't be copied.
881 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
883 * ListBox.cs: Compute the precise amount to vertically scroll when
884 using DrawMode.OwnerDrawVariable.
885 Patch by jkeymer (j.keymer@gmx.net).
887 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
889 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
890 to avoid setting an invalid value for the verticall scrollbar
891 when navigating items. And, duh, also remove my silly debug messages
892 from previous commits.
895 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
897 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
898 make it MS compatible.
900 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
902 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
903 - Allow the editing of entries even if their parent is read-only.
904 - Do not render expandable properties read-only.
905 - Refactor expansion checks form PropertyGrid into PropertyGrid.
907 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
909 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
910 support for the hover style.
912 2008-05-29 Andreia Gaita <avidigal@novell.com>
914 * ContainerControl.cs: Check for null dead-end when traversing the tree
917 [Fixes #394332, patch by Ernesto Carrea]
919 2008-05-29 Geoff Norton <gnorton@novell.com>
921 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
922 constant that it is. Fixes #393981
924 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
926 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
927 that the user probably doesn't want to set this.
929 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
931 * ThemeWin32Classic.cs: Don't let the text size be bigger than
932 the control size for CheckBox/RadioBox.
933 [Fixes part of bug #394645]
935 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
937 * PropertyGrid.cs: Update the state of the sorting buttons in
938 the toolbar if PropertySort is set programatically.
940 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
942 * GridItemCollection.cs: Add multiple items with conflicting names
943 support and also preserve name ordering.
946 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
948 * GridItemCollection.cs: Revert my multiple items with same
951 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
953 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
955 Fixes part of #393908.
957 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
959 * ToolStripDrowDown.cs: When using the Show () methods that have a
960 Control parameter, set the menu owner to that Control.
963 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
965 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
968 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
970 * GridItemCollection.cs: Refactor to support multiple items with the
974 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
976 * Control.cs: The 2.0 check for illegal cross thread calls in
977 Control.Handle were throwing an exception when we were getting
978 the Handle in order to invoke correctly. Created a private
979 version that does not contain this check.
982 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
984 * PropertyGrid.cs: Respect DefaultTabType.
986 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
988 * ListView.cs: SPACE selects an item.
991 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
993 * ListView.cs: Reset the search string whenever the items are
997 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
999 * ListControl.cs: For the first added item PositionChanged is fired
1000 _before_ ItemChanged, which leave us in a temporary invalid state - so
1001 we need to set the selected index from ItemChanged handler *if* we
1002 know that the first item has just been added *and* the items have been
1003 actually added to the ListControl.
1006 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1008 * TabControl.cs: Only clicks with the left button should be
1012 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1016 * TextBox.cs: Expose an internal method in TextBox to restore the
1017 original context menu, and call it from ComboBox to re-use it in the
1018 combobox containing the file name in FileDialog.cs.
1019 Fixes part of #393775.
1021 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
1023 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
1026 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
1028 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
1031 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1033 * ComboBox.cs: Minor correction to previous patch: PageDown should
1034 also *try* to move by one item if the computed offset is negative,
1035 just like the PageUp case.
1037 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1039 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
1040 should be done for at least 1 item, and not stay at the same item.
1041 Fixes part of #374713.
1043 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
1045 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
1046 directories. [Fixes bug #393931]
1048 2008-05-22 Andreia Gaita <avidigal@novell.com>
1050 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
1051 Don't fire events until the initial about:blank page has finished
1052 loading. Clean up events.
1054 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
1056 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
1057 FocusIn() too. This should fix the issue on switching
1060 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
1062 * X11Keyboard.cs : set XIM font size to somewhat reasonable
1063 number (ideally the input textbox size, but that could be
1066 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
1068 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
1069 the ToolStripItem's TextChanged. [Fixes bug #393597]
1071 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1073 * TabControl.cs: When invalidating in SelectedIndex and we need to
1074 inflate to take into account the border of the tabs, make sure that
1075 the invalidated rect doesn't overflow the control bounds, since that
1076 would avoid updating at all.
1078 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1080 * TabControl.cs: Don't substract scroller width from the row width,
1081 since we need to take into account the total width of the control when
1082 calculating the position of the tabs. This avoids showing scroller
1083 when it is actually not needed.
1084 Fixes part of #322325.
1086 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1088 * ThemeVisualStyles.cs: Added support for TextBoxBase.
1090 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1092 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1093 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
1095 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1097 * DataGridView.cs: Only paint the top left header cell if there
1100 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1102 * DataGridView.cs: When binding to a BindingSource, get the underlying
1103 list to bind to. [Fixes bug #345483]
1105 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1107 * DataGridView.cs: Do not bind to collection properties.
1110 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1112 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
1114 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1116 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
1119 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1121 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
1123 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1125 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
1128 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1130 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
1132 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1134 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
1137 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1139 * TabControl.cs: Extended to handle the hot style.
1141 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1143 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
1144 Extended UpDownBase code to handle hot and disabled styles.
1146 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1148 * DataGridView.cs: Handle databinding to generic list type things.
1151 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1153 * DataGridViewCellCollection.cs: Add a method to find the cell
1154 with the given DataPropertyName.
1155 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
1156 * DataGridViewColumnCollection.cs: Add a method to clear all
1157 autogenerated columns.
1158 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
1162 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1164 * DataGridView.cs: Don't try to update the RowTemplate with
1165 a null CellTemplate.
1167 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1169 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
1170 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
1171 * DataGridView.cs: Lots of fixes/enhancements to databinding to
1174 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1176 * Control.cs: Remove invalidating implicit child controls when
1177 control is invalidated. It was causing too many redraws on
1178 controls with implicit scrollbars.
1179 * ListView.cs: Listen to the Invalidated event and invalidate
1182 2008-05-20 Andreia Gaita <avidigal@novell.com>
1184 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
1185 * HtmlDocument.cs: Check for nulls
1187 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1189 * Control.cs: In ControlCollection.RemoveInternal, remove the
1190 internal control before calling PerformLayout and OnControlRemoved,
1191 which was leaving us in an invalid state and causing a X error (bad
1192 match). Observe that Remove () call has the same order.
1193 Fixes an X error changing ComboBoxStyle.DropDownStyle.
1195 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1197 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
1198 being fired if ControlStyles.UserPaint style is activated.
1201 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1203 * GridEntry.cs: Don't be so strict when setting the value -
1204 do not check if what we set is what we get.
1207 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1209 * XplatUIX11.cs: If there are no timers timeout should be 0
1212 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1214 * Control.cs: As a followup to invalidating implicit children when
1215 a control is invalidated, only invalidate them if they are in the
1218 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1220 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
1222 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1224 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
1226 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1228 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
1229 * XplatUIWin32.cs: Made Win32DeleteObject public.
1231 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1233 * GridEntry.cs: Determine HasDefaultValue more strictly by using
1234 PropertyDescriptor.ShouldSerializeValue.
1237 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1239 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
1240 in the classic theme.
1242 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1244 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
1246 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
1247 ScrollBarHasPressedThumbStyle.
1249 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1251 * TextRenderer.cs: Included some methods in the 1.1 profile.
1253 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1255 * Control.cs: When we make a control visible, it may have been
1256 previously visible and while it wasn't visible, the z-order of
1257 things may have been shuffled, so the control needs to have its
1258 z-order updated just in case. [Fixes bug #391518]
1260 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1262 * ThemeVisualStyles.cs: Added support for GroupBox.
1264 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1266 * GroupBoxRenderer.cs: Included in the 1.1 profile.
1268 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
1270 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
1271 bug #389996; XSelectInput() behaved as mouse handler robber,
1272 so remove extra call to it.
1274 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1276 * Control.cs: Simplify ControlCollection.Contains method.
1278 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1280 * DataGridViewRow.cs: Implement GetPreferredSize.
1282 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1284 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
1286 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1288 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
1289 painting and edit control fixes.
1291 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1293 * DataGridView.cs, DataGridViewCell.cs: Work around some external
1294 checks to make sure we are in an actual row/col for top left header cell.
1295 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
1297 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1299 * Control.cs: Use long instead of int when handling WParam from
1300 mousewheel scrolling. Int was overflowing on Win64.
1302 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1304 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
1305 flow panel without scrolling first, and then calculate the
1306 scrolling based on the new layout. [Fixes bug #390149]
1308 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1310 * ListBox.cs: Invalidate after scrolling up when selected index
1311 changes. [Fixes bug #390151]
1313 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1315 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
1316 set, default height to 150. I tried first with DefaultSize, but this
1317 is not generating a SetBoundsCore call before handle creation time, so
1318 we can take it into account. This is just what .net does.
1320 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1322 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
1323 as it broke some stuff. Calberto is filing a bug for eno to
1326 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1328 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
1329 to 0 is the current value is -1, and if style is not Simple, just
1330 return, like .net does.
1331 Fixes part of #374713.
1333 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1335 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
1336 progress bar stuffs, use doubles instead of ints to prevent
1337 overflow. [Fixes bug #389798]
1339 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1341 * XplatUIX11.cs, X11Keyboard.cs :
1342 Significant refactoring on XIM support. Now IM engine UI
1343 should show up, at mostly-correct preedit position.
1344 - Eliminated use of FocusWindow, as it is never mapped
1345 and hence blocks correct preedit position. XIC is now
1346 created per window, and it must be destroyed too when
1347 the window is destroyed.
1348 - WM_QUIT messages should not be filtered even when hwnd
1349 is zombie. Filtering it could cause endless loop.
1350 - Preedit position must move only when the window is alive.
1351 - Make it IDisposable and make sure to release XIM/XICs.
1353 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1355 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
1356 XplatUIX11.cs, XplatUIWin32.cs :
1357 fix for bug #325033 and #387693;
1358 - WM_QUIT should not be sent when no running application
1360 - SetTimer/KillTimer (especially on win32) should be
1361 invoked for the window that the timer is/will_be attached.
1362 - There could be unattached timers to a window when it's
1363 started. For those timers, hold pending timers and when
1364 a window is mapped, attach them to it.
1365 - WaitForHwndMessage() could run into loop when
1366 WM_SHOWWINDOW is handled before this method is called.
1367 So, strictly check wm_showwindow state.
1368 - Tick handler should not be invoked while one Tick handler
1369 call is still running (introduced Busy state).
1371 2008-05-13 Andreia Gaita <avidigal@novell.com>
1373 * WebBrowserBase.cs: Override Internal alternative methods for
1374 SetBoundsCore and OnResize instead of the protected ones.
1375 * Control.cs: Move SetBoundsCore and OnResize implementations to
1376 SetBoundsCoreInternal and OnResizeInternal, so they can be
1377 overriden internally (WebBrowserBase needs to catch them but can't
1378 override the protected methods without api compat problems)
1380 2008-05-13 Andreia Gaita <avidigal@novell.com>
1382 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
1384 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1387 * ListView.cs: Remove debug messages.
1389 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1391 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
1392 area is empty. Also calculate scrollbars in Simple mode based in area
1393 height and total number of items, not in MaxDropDownItems.
1394 Fixes part of #371991.
1396 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1398 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
1400 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1402 * BindingSource.cs: GetListSortDescription is not public.
1404 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1406 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
1408 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1410 * HtmlElement.cs: Fix parameter names to match MS.
1411 * HtmlWindowCollection.cs: Should not be sealed.
1413 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1415 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
1416 button, because the thumb button will not get drawn if the scrollbar
1417 is disabled. [Fixes bug #389262]
1419 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1421 * ListBox.cs: Handle End key for multi-column listboxen.
1424 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1426 * ListBox.cs: Fix algorithm to determine which column our item is in.
1429 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1431 * ListBox.cs: Invalidate when the listbox is resized.
1434 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1436 * ListBox.cs: There is always at least one row in the ListBox (if
1437 we are doing these calculations.) [Fixes bug #389253]
1439 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1441 * ListBox.cs: There is always at least one column in the ListBox.
1444 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1446 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
1447 ensure in Simple mode that the height is exactly the requested one.
1448 Also add the ComboBoxListControl to the controls collection in Simple
1449 mode even if handle hasn't been created.
1450 Fixes part of #371991.
1452 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1454 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
1455 our ComboBox owner instead of giving it back to the previous control (
1456 as done in other controls). Also remove the empty override of Select
1457 method, since we want to be selected *and* give focus to our owner.
1458 This should let the user do keys-navigation in Simple mode.
1460 2008-05-10 Geoff Norton <gnorton@novell.com>
1462 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
1463 problems with rapid scrolling of treeviews. Fixes #381084
1465 2008-05-10 Geoff Norton <gnorton@novell.com>
1467 * XplatUICarbon.cs: Deactivate the active window before
1468 activating the desired window. Completes fixing #386504
1470 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1472 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
1473 SmallChange to the item size width plus the padding, to match .net.
1475 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1477 * FileDialog.cs: Apply the custom filter typed by the user in the file
1478 name combobox as much as possible while navigating in the file dialog.
1481 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1483 * Binding.cs: Actually use NullValue if the retrieved value of
1484 data source is null or DBNull. Makes a test pass.
1486 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
1488 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
1489 * MimeIcon.cs: Provide a way to get icons from resources.
1491 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1493 * Binding.cs: When the value retrieved from the control to be assigned
1494 to the data source is null, actually use the 2.0 DataSourceNullValue
1495 value. Make pass a data binding test.
1497 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1499 * Control.cs: We need to invalidate implicit children even when
1500 invalidate is called with invalidatechildren = false. (Implicit
1501 children are really part of the parent.)
1502 * ListView.cs: Double-buffer internal child controls for less
1504 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
1505 owner ListView subitems for greatly increased performance.
1508 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
1510 * FileDialog.cs: When the user types a wildcard character in the
1511 filename combobox, update the contents of the folder using the text as
1513 Fixes part of #385261.
1515 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1517 * ListBox.cs: Various fixes for MultiColumn listboxen.
1520 2008-05-08 Andreia Gaita <avidigal@novell.com>
1522 * HtmlElement.cs: Implement Style property
1524 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1526 * ListBox.cs: Respect checkboxes when measuring item size.
1527 * ThemeWin32Classis.cs: When drawing list items, don't draw
1528 text outside of the item's bounds to prevent overlapping.
1529 (.Net actually overlaps, but that's just silly.)
1532 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
1534 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
1535 Gert Driesen. Fixes bug #324830.
1537 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
1539 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
1542 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1544 * BindingSource.cs: When calling IsSynchronized, return the value of
1545 the related IList list.
1547 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1549 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
1552 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
1554 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
1555 navigation to scroll the grid if the current cell is not visible.
1557 2008-05-07 Andreia Gaita <avidigal@novell.com>
1559 * HtmlElement.cs: Implement TabIndex
1561 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
1563 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
1564 properties, even when there are no items.
1567 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
1569 * NativeWindow.cs: Add support for multiple handles per window.
1570 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
1571 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
1572 directly - use FromHandle instead.
1575 2008-05-07 Andreia Gaita <avidigal@novell.com>
1577 * HtmlElement.cs: Implement InnerHTML setter
1579 2008-05-07 Andreia Gaita <avidigal@novell.com>
1581 * HtmlDocument.cs: Implement Focused
1583 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1585 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
1586 methods, as well as add messages to the exceptions.
1588 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1590 * BindingSource.cs: Setting DataSource should only reset DataMember if
1591 the previous value was null (make pass a not working test).
1593 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1595 * BindingSource.cs: When EndInit call is postponed and is called until
1596 DataSource.EndInit is called, remove the handler for data source.
1598 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1600 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
1602 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1604 * ToolStripManager.cs: Store references to toolstrips as
1605 weak references so they do not prevent forms from getting collected.
1608 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1610 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
1611 on .Net. So do the same thing in WndProc.
1613 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1615 * TrackBar.cs: Commit patch from Andy Hume that corrects
1616 the clickable areas to better match .Net.
1619 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1621 * TrackBar.cs: Commit patch from Andy Hume that adds the
1622 ResizeRedraw control flag so the track bar repaints itself
1623 when it is resized. [Fixes bug #387072]
1625 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1627 * TrackBar.cs: Commit patch from Andy Hume that adds better
1628 support for keyboard navigation when the TrackBar is vertical.
1631 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1633 * BindingSource.cs: Implement ISupportInitializeNotification support.
1635 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
1637 * ThemeVisualStyles.cs: Added support for ToolBar.
1639 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
1641 * ToolBar.cs: Made the Vertical property internal.
1643 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1645 * ThemeVisualStyles.cs: Added support for TrackBar.
1647 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1649 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
1650 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
1651 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
1652 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
1653 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
1654 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
1656 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1658 * ThemeVisualStyles.cs: Added support for UpDownBase.
1660 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1662 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
1663 Extracted Theme.UpDownBaseDrawButton.
1665 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
1667 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
1668 removed from the static toolstrips collection in ToolStripManager
1669 when they are disposed. Provides a workaround for bug #386483.
1671 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
1673 * GridEntry.cs: Read-only properties with Editor with
1674 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
1677 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
1679 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
1680 the menu key and there are no items on the menu.
1683 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
1685 * Control.cs: Avoid calling ToString on a string.
1686 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
1687 * GroupBox.cs: In FlatStyle property throw, not just create, the
1688 exception. Avoid calling ToString on a string.
1689 * ProgressBar.cs: Avoid calling ToString on a string.
1690 * ScrollBar.cs: Avoid calling ToString on a string.
1691 [All issues were found using Gendarme]
1693 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
1695 * NotifyIcon.cs: Prevent click events to be trigger after double click
1696 events. Fixes remaining issues of bug #324832.
1698 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
1700 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
1701 to mimic win32 behavior. Partially fixes bug #324832.
1703 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1705 * BindingSource.cs: Implement Find methods.
1707 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1709 * BindingSource.cs: Implement Sort, ApplySort overloads, and
1712 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1714 * ListBindingHelper.cs: When calling GetListItemProperties and the
1715 passed object is ITypedList, return the result of
1716 ITypedList.GetItemProperties instead.
1718 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1720 * LinkLabel.cs: Set default value of name on constructor of Link class
1721 only for 2.0 profile.
1723 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1725 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
1726 Fixes remaining issues of bug #346154.
1728 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1730 * LinkLabel.cs: Set a default value for name on internal contructor of
1731 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
1733 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1735 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
1736 and refer all instances to owner.links. Partially fixes #346154.
1738 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1740 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
1741 length equal zero. Also called CreateLinkPieces in constructor. It fixes
1742 the LinkLabel test 'TestLinkArea'.
1744 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1746 * Form.cs: Remove menu before close form to prevent form to be not gaced.
1749 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1751 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
1754 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1756 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
1759 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1761 * MenuAPI.cs: Remove unused ProcessCmdKey method.
1763 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1765 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
1768 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1770 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
1773 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1775 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
1776 sometimes we open a conext menu on mouse down of some controls and the mouse
1777 up is dispatched to menu and dont need to. It fix remaining issues of
1778 #363711 and other problems related to menu mouse click events.
1780 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
1782 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
1783 some var names to better fit changes, now we have month_menu and today_menu
1784 vars. Fixes bug #363711.
1786 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
1788 * MonthCalendar.cs: Handle every right mouse click to open context menu,
1789 right now the default month menu but it will be change to have "Go to today"
1792 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1794 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
1796 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
1798 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
1800 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1802 * ThemeVisualStyles.cs: Added support for TreeView.
1804 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1806 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
1807 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
1809 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1811 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
1813 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1815 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
1816 Implement 2.0 SP1 stuffs.
1818 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1820 * FileDialog.cs: Implement 2.0 SP1 stuffs.
1822 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1824 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
1825 Implement CanEnableIme property. (2.0 SP1)
1827 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1829 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
1832 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1834 * Control.cs: Provide an internal way for a control to override
1835 the setting of Height.
1836 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
1837 set height using new method.
1839 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1841 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
1843 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1845 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1846 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
1848 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1850 * ThemeVisualStyles.cs: Added support for StatusBar.
1852 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1854 * DataObject.cs: Add the other IDataObject interface.
1856 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1858 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
1859 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
1861 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1863 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
1864 * ListView.cs: Hide non-public API.
1865 * MaskedTextBox.cs: Remove extra attribute.
1867 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1869 * DataGridViewImageCell.cs: Use formatted value instead of value
1870 to calculate preferred size.
1872 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1874 * ListBox.cs: Move some initialization around so that selected_indices
1875 is not accessed before it is created.
1877 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1879 * InputLanguageCollection.cs: Implement the collection better.
1882 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1884 * ToolStripDropDownItem.cs: Get the correct event object for
1885 DropDownItemClicked.
1886 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
1889 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1891 * DataGridViewRowCollection.cs: We don't currently support shared
1892 rows. Should fix test failures caused by previous commit.
1894 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
1896 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
1897 datagridview gets set. Only paint cells in visible columns.
1898 * DataGridViewCell.cs: Draw border after cell content.
1899 * DataGridView.cs: Invalidate after setting some properties. Only
1900 use visible columns. Fit hit test bug with areas in the col/row header
1901 area but not in a row or col. Implement UpdateCell/Row methods.
1903 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
1905 * DataGridViewElement.cs: Don't throw NIEX.
1906 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
1907 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
1908 * DataGridViewCheckBoxColumn.cs: Implement ToString.
1909 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
1910 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
1911 if the user filled in the formatting Value, use it.
1913 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
1915 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
1918 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1920 * BindingSource.cs: Some corrections to Filter property, as well as
1921 setting it for our list when resetting it.
1923 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
1925 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
1926 than the maximum. Fixes reopened bug #384182.
1928 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1930 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
1931 Fixes remaining issues of #367490.
1933 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1935 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
1936 SystemInformation.WorkingArea to get max_screen value.
1938 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1940 * BindingSource.cs: Implement Filter and RemoveFilter.
1942 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1944 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
1946 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1948 * X11Dnd.cs: When trying to convert data and we know we started the
1949 dnd loop, don't try to use the cached data if the loop is not running,
1950 which means that the data has been resetted.
1953 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1955 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
1958 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1960 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
1961 it to drawn off screen edge. Fixes bug #367490.
1963 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1965 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
1966 menu position to have only one assignment of Location var.
1968 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1970 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
1971 for this patch. Fixes bug #384115.
1973 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
1975 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
1976 the same. If LargeChange is zero, set a minimum size for the scroll
1977 thumb grip. [Fixes bug #384182]
1979 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
1981 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
1984 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
1986 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
1988 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1990 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
1991 patch from Ernesto).
1993 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1995 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
1997 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1999 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
2001 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2003 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
2005 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2007 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
2009 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
2011 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
2013 2008-04-27 Andreia Gaita <avidigal@novell.com>
2015 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
2016 supposed to return a reference to an mshtml interface, which we
2018 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
2019 reference to an mshtml interface, which we don't support). Code
2021 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
2022 DomDocument getter (it's supposed to return a reference to an
2023 mshtml interface, which we don't support). Code formatting cleanup.
2025 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2027 * ListView.cs: Ouch, forgot to commit.
2029 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2032 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
2034 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2036 * ListView.cs: When calculating box selection for virtual mode, don't
2037 look for intersection with item's text, but item bounds, since that
2038 would mean read ListViewItem's text for _every_ item, and that's
2039 something we just can't do in virtual mode (items are only requested
2042 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
2044 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
2045 partial support for managed windows (based on the patch from Ernesto).
2047 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2049 * ListView.cs: When doing a key search use FindItemWithText method
2050 instead of doing the search by ourselves, this way we avoid
2051 duplicating the code and also we handle the special case for virtual
2052 mode. To achieve that make our private overload of FindItemWithText
2053 internal and also have a 'roundtrip' parameter.
2055 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2057 * ListView.cs: When doing the layout don't request the
2058 ListViewItem instance if we are in virtual mode (since we can't request it
2059 until the item is actully drawn).
2061 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2063 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
2066 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2068 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
2069 the patch from Ernesto).
2071 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2073 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
2074 * ThemeVisualStyles.cs: Added.
2076 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2078 * IDeviceContext.cs: Added a missing using.
2080 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2082 * ButtonBase.cs: Made IsDefault protected internal.
2083 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
2085 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2087 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
2088 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
2089 RadioButtonRenderer.cs: Included in the 1.1 profile.
2090 * IDeviceContext.cs: Added.
2091 * TextRenderer.cs: Included a member in the 1.1 profile.
2093 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2095 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
2097 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2099 * ErrorProvider.cs: Make the error icons come after the control
2100 they refer to. It isn't the way the MS does it, but its better
2101 than what we were doing. See bug #368587.
2103 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2105 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
2106 from Eric Albright that lazy loads the input language as ensures
2107 everything gets properly initialized. Fixes bug #373871.
2109 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2111 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
2112 implicit mnemonics. [Fixes bug #383000]
2114 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2116 * X11Dnd.cs: When canceling the operation, automatically restore the
2117 default cursor - normally the default cursor is restored when the
2118 mouse buttons are released, but we should be able to restore it even
2119 if the buttons are still pressed (for example, when pressing ESC to
2123 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2125 * X11Dnd.cs: When starting a new drad and drop operation, set control
2126 field to null, just as the other fields, to avoid calling any
2127 operation on a previous control. Also, when calling DndLeave on a
2128 control, set it to null, thus we don't fire that event multiple times
2132 2008-04-23 Geoff Norton <gnorton@novell.com>
2134 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
2135 the whole_window object. Fixes #377084.
2137 2008-04-23 Andreia Gaita <avidigal@novell.com>
2139 * HtmlElement.cs: Implement RaiseEvent (event injection into the
2142 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
2144 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
2146 2008-04-23 Andreia Gaita <avidigal@novell.com>
2148 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
2151 2008-04-23 Andreia Gaita <avidigal@novell.com>
2153 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
2156 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2158 * X11Dnd.cs: When the drop was cancelled, or could just not be
2159 performed, return DragDropEffect.None always (match .net).
2161 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2163 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
2165 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2167 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
2169 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2171 * DataGridView.cs: Add support for error icon tool tips.
2172 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
2173 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
2175 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
2177 * X11Structs.cs: Add mouse button masks enum.
2178 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
2179 WM_EXITSIZEMOVE only once at the beginning and at the end of the
2180 form resize/move operation instead of for each step of it.
2181 [Fixes bug #346529 for the x11 backend]
2183 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2185 * DataGridView*: Implement support for drawing error icons.
2187 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2189 * TreeView.cs: Make vbar and hbar internal.
2190 * TreeNode.cs: If collapsing the node removes one of the TreeView's
2191 scrollbars, invalidate the whole thing.
2194 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2196 * TreeView.cs: Calling Sort() sets Sorted = true.
2197 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
2198 if the nodes need to be sorted.
2201 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
2203 * Form.cs: Fire SizeChanged for both when the form is minimized and
2205 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
2206 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
2208 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2210 * ComboBox.cs: If the combobox is disabled, draw a disabled
2211 background before painting anything else.
2214 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2216 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
2217 forget to send a Leave event to the target window - just as .net does
2218 when cancelling dnd operations.
2220 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2222 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
2223 soon as possible - this happens when we send the drop message to the
2224 target window. This way we avoid firing any DragOver _after_ drop finished.
2227 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2229 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
2230 * Form.cs: Handle form minimization as a special state, where size doesn't
2231 change, but we have to fire SizeChanged.
2232 [Fixes bug #325122 for the win32 and x11 backends]
2234 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2236 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
2237 if the handle is disabled.
2240 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2242 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
2243 for forms with FormBorderStyle.None.
2246 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2248 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
2250 [Fixes bug #346529 for the X11 backend]
2252 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2255 - Send a mouse Enter message after say dragging the mouse with a
2256 button down and then release it in another client.
2257 - Reset the cursor to prevent X11 from remembering it and setting it
2258 before the control gets WM_SETCURSOR.
2259 - Qeueue a mouse move after a mouse enter like win32.
2262 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2264 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
2265 It's sent when the form gets moved, resized, closed.
2266 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
2267 [Fixes bug #359193 for X11]
2269 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2271 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
2274 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2276 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
2277 group. Fixes the 1.1 build.
2279 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2281 * ListView.cs: Use display indexes for selection in Details view, as
2282 well as do the proper layout based on display indexes for that view
2285 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2287 * ListView.cs: Focused item information is now stored as a display
2288 index, and display indexes are used all over the place for selection,
2289 instead of ListViewItem.Index values, which doesn't give us enough
2290 information to modify the selection in groups mode, and was broken.
2292 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
2294 * Control.cs: Do not fire MouseDown if validation of the control has
2296 * Form.cs: Validate the form before closing.
2297 [Fixes bugs #330501 and #353310]
2299 2008-04-18 Andreia Gaita <avidigal@novell.com>
2301 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
2302 CreateWebBrowserSiteBase implementations
2303 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
2304 Style and TabIndex setters
2306 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2308 * ListViewGroup.cs: When returning the actual item count, return the
2309 proper count for default group.
2312 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2315 * ListViewGroup.cs: When calculating groups layout, get the actual
2316 number of items per group, since groups added to the group BUT not
2317 added to the ListView are just ignored, and can cause some nasty
2318 exceptions because of the lack of synchronization. Also for
2319 ListViewGroup don't use lazy initialization for items, since we
2320 the common scenario is to use it always - and it helps us to refactor
2321 and clean the .ctor overloads.
2323 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2325 * ListView.cs: When adding an item to a ListViewItemCollection
2326 belonging to a group (ListViewGroup.Items), don't generate a redraw if
2327 the added item hasn't beeen previously added to the ListView instance
2328 refered by the group, since it will be ignored. This should avoid some
2329 really nasty flickering.
2331 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2333 * ListView.cs: When accessing an item in a specific display
2334 position, use the helper method GetItemAtDisplayIndex, instead of
2335 direct access to the reordered_items_indices array. When doing layout
2336 for groups set the correct Items index for the display position (since
2337 in groups mode items don't have the same position as in Items
2339 * ListViewGroup.cs: Add a field to store the starting item number,
2340 which is later used when calculating the layout.
2344 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
2346 * Application.cs: Fixed ProductVersion to fallback to the assembly
2347 version. Fixes regression for bug #325413.
2349 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2351 * ListView.cs: New helper method to retrieve an item in a _specific
2352 display_ position (the items can be displayed in a different order
2353 than one of Items collection).
2354 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
2355 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
2356 specific display position (again remember that items can be sorted
2357 different than Items).
2359 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2361 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
2362 list and update it when the collection changes. We were recreating
2363 this several times per row paint and for every pixel the mouse moved
2365 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
2368 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2370 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
2371 list to use generics.
2372 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
2373 and remove unneccessay casts.
2375 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2377 * DataGridViewBand.cs: Add internal way to set displayed variable.
2378 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
2379 * DataGridView.cs: Make sure we always keep track of Displayed
2380 rows and columns, and only draw things that are displayed.
2382 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
2384 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
2385 whether the key events are filtered or not. Introduced
2386 PreFilter() process for this purpose. This fixes atokx3/iiimx
2389 2008-04-16 Andreia Gaita <avidigal@novell.com>
2391 * HtmlHistory.cs: Implement Length property
2393 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
2395 * DataGridView.cs: Call EndEdit when a sort is performed so we take
2396 away the edit textbox. Refactor to reuse column sort code.
2398 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
2400 * MenuAPI.cs: Remove the code that save and restore capture status of
2401 grab_control, this fixes some Menu and Context menu bugs but maybe it can
2402 cause some others, I cant figure the possible problems of this patch but
2403 right now remove the code looks to be better than keep it. This patch fixes
2404 bugs #357638, #378721 and #379570.
2406 2008-04-12 Andreia Gaita <avidigal@novell.com>
2408 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
2409 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
2410 add missing properties and event handlers.
2412 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
2414 * ListBox.cs: Make sure the LargeChange we are setting is at least
2415 zero, to prevent an IOORE. [Fixes bug #379531]
2417 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
2419 * ComboBox.cs: Support item navigation by entering text. Firstly,
2420 in DropDownList mode, for each key-press select the next item
2421 starting with that letter.
2422 For other modes, when no item selected, on arrow-up/-down and open
2423 drop-down select the first item matching the text in the textbox.
2425 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
2427 * X11Keyboard.cs : Control.FromHandle() could return null
2428 in MoveCurrentCaretPos().
2430 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2432 * ListView.cs: When changing the size in VirtualMode, also Reset the
2434 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
2435 changing selection info for VirtualMode.
2438 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2440 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
2441 view, don't use LineLimit for the first item - use NoWrap *always*
2442 instead, since ListView.LabelWrap is not used for this view.
2445 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2447 * Binding.cs: Call UpdateIsBinding when setting control - probably
2448 Binding is already usable and we don't need to wait to check the
2449 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
2450 Created, just like 2.0 does.
2451 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
2453 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2455 * Binding.cs: Just realized we don't need to have a handler for
2456 BindingContextChanged, since this info should be now consumed directly
2457 in the BindingManagerBase. And also, the manager.IsBindingSuspended
2458 state info is checked directly, instead of caching it.
2460 * CurrencyManager.cs: IsSuspended should return always false if Count
2463 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2465 * Binding.cs: When calling PushData, return if manager.Count == 0,
2466 since we just don't have data to be read. Also, when setting the
2467 Control for binding, hook up some events to refresh the IsBinding
2468 state when BindingContext change or control gets created; use
2469 Control.IsHandleCreated instead of Control.Created check to set
2470 IsBinding state - we *actually* need to modify IsBinding when control
2471 is created, but we don't have any Created event, only HandleCreated.
2472 Fixes part of #349364.
2474 2008-04-11 Geoff Norton <gnorton@novell.com>
2476 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
2477 warping a null Caret.
2479 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2481 * DataGridView.cs: Implement row/column autosizing methods. Implement
2483 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
2484 * DataGridViewRowCollection.cs: Add an internal sorting method.
2486 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2488 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
2489 value in ListView drawing code.
2491 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2493 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
2494 is clicked. Respect the user setting Cancel in FileOk.
2496 2008-04-11 Geoff Norton <gnorton@novell.com>
2498 * ListView.cs: Avoid setting and resetting control Width/Heights and
2499 calculate the final value and set it once. Prevents a feedback loop
2502 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2504 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
2507 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
2509 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
2510 Add some on-the-spot code, but it seems we don't need it.
2512 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2514 * Form.cs: Add method for DataGridView to trigger focus cues
2515 even when it handles the tab keypress.
2517 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2519 * DataGridView.cs: More keyboard handling, tab, esc.
2520 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
2521 when at the beginning or end of the text in the text box.
2523 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2525 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
2527 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2529 * DataGridView.cs: Some fixups for showing and adding the edit control.
2530 * DataGridViewButtonColumn.cs: Implement ToString.
2531 * DataGridViewCell.cs: Size and position the control simultaneously.
2532 * DataGridViewTextBoxCell.cs: Use base to position control.
2534 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2536 * DataGridViewCell.cs: Fix up some formatting and painting code.
2537 * DataGridViewImageCell.cs: Implement some NIEX methods.
2539 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2541 * ToolStripItemCollection.cs: What moving an item from one owner
2542 to another, remove from source owner before adding to destination.
2545 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2547 * PictureBox.cs: Call Load when ImageLocation is set.
2550 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
2552 * X11Keyboard.cs, XplatUIX11.cs :
2553 Implement over-the-spot mode (with some odd offsets).
2554 - set preedit position when caret is set.
2555 - Wrap XMoveResizeWindow() to move preedit position.
2557 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2559 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
2562 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2564 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
2565 and ScanTableIndex public, it fix compilations errors when compiling
2566 WinForms to generate keyboard layout resources.
2568 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2570 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
2571 different element count than scan table. It prevents some errors in non
2574 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
2576 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
2578 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
2580 * DataGridView.cs: Call OnContentClick.
2581 * DataGridViewCell.cs: Do a null check on ValueType instead
2583 * DataGridViewCheckBoxCell.cs: Implement.
2585 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2587 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
2589 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2591 * X11Keyboard.cs : Check XGetIMValues() return value in
2592 case it does not return input styles in some environment.
2594 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2596 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
2598 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2600 * BindingContext.cs: Stub UpdateBinding method.
2602 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
2604 * X11Structs.cs : added couple of structs for XIM support.
2606 Release XIM in case it failed to create XIC.
2607 Use consts for XNblah string.
2608 Add support for IM style customization and XIC creation
2609 for preedit-position and preedit-callback.
2610 Right now use MONO_WINFORMS_XIM_STYLE environment variable
2611 (list of: over-the-spot | on-the-spot | root). Only root
2614 (redoing r99172 with fix.)
2616 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2618 * TreeView.cs: Center the checkbox a little better.
2620 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2622 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
2623 Apply very nice patch from Ernesto Carrea that simplifies our
2624 scrollbar drawing. [From bug #376146]
2626 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2628 * TreeView.cs: Correct the location of the root node checkbox when
2629 ShowRootLines = false. Don't draw the root lines for the root node
2630 when ShowRootLines = false. [Fixes bug #377535]
2632 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
2634 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
2636 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
2638 * MaskedTextBox.cs: Added missing attribute. Code formatting.
2639 * PageSetupDialog.cs: Added missing attribute. Code formatting.
2640 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
2641 * ImeMode.cs: Added missing field.
2642 * HtmlWindow.cs: Code formatting. Fixed line endings.
2643 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
2645 * HtmlHistory.cs: Code formatting. Fixed line endings.
2646 * HtmlDocument.cs: Code formatting. Fixed line endings.
2647 * ToolStripPanel.cs: Added missing IList implementation.
2648 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
2650 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
2652 * BindingContext.cs: Changed argument names to fix corcompare errors.
2653 * DataGridView.cs: Removed extra explicit interface implementation
2654 of IDropTarget. Code formatting.
2655 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
2656 * ComboBox.cs: Changed argument names to fix corcompare errors.
2657 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
2659 * GridColumnStylesCollection.cs: Changed argument names to fix
2660 corcompare errors. Removed extra tabs.
2661 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
2663 * Control.cs: Changed argument names to fix corcompare errors. Code
2664 formatting. Removed extra explicit IList implementation.
2665 * TextBox.cs: Changed argument names to fix corcompare errors. Code
2666 formatting. Use string.Empty instead of "".
2667 * GridItemCollection.cs: Changed argument names to fix corcompare
2668 errors. Code formatting.
2669 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
2670 corcompare errors. Code formatting.
2671 * ImageList.cs: Changed argument names to fix corcompare errors.
2672 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
2673 * DataGridViewRowCollection.cs: Changed argument names to fix
2674 corcompare errors. Code formatting.
2675 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
2676 * DataGridViewSelectedCellCollection.cs: Changed argument names to
2677 fix corcompare errors. Code formatting.
2678 * DataGridViewComboBoxCell.cs: Changed argument names to fix
2679 corcompare errors. Code formatting.
2680 * LinkLabel.cs: Changed argument names to fix corcompare errors.
2681 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
2683 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
2685 * BindingSource.cs: Changed argument names to fix corcompare errors.
2686 Removed extra explicit interface implementations.
2687 * DataGridViewSelectedRowCollection.cs: Changed argument names to
2688 fix corcompare errors. Code formatting.
2689 * ToolStripItemCollection.cs: Removed extra explicit interface
2690 implementation of IList.ReadOnly.
2691 * DataGridViewColumnCollection.cs: Changed argument names to fix
2692 corcompare errors. Code formatting.
2693 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
2694 * ListView.cs: Changed argument names to fix corcompare errors.
2695 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
2697 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
2699 * ListBindingHelper.cs: Changed argument names to fix corcompare
2701 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
2702 fix corcompare errors. Code formatting.
2703 * ToolStripPanel.cs: Removed extra explicit implementation of
2704 IDropTarget interface.
2705 * ListBox.cs: Changed argument names to fix corcompare errors. Code
2706 formatting. Removed extra tabs and spaces.
2707 * DataGridViewCellCollection.cs: Changed argument names to fix
2709 * Help.cs: Changed argument names to fix corcompare errors. Code
2711 * TabControl.cs: Changed argument names to fix corcompare errors.
2712 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
2714 * TableLayoutSettings.cs: Changed argument names to fix corcompare
2717 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2719 * ListBindingHelper.cs: When returning properties, only return those
2720 that are browsable. Also, don't do a linear search of the properties,
2721 but use the indexer of the PropertyDescriptorCollection class.
2723 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2725 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
2726 Dictionary containing the related (child) currency managers. Also,
2727 when setting DataSource, add datasource to our List if it is not a list.
2729 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2731 * PropertyGridTextBox.cs: Fix background color of the buttons.
2732 * PropertyGridView.cs: Make the entry less jumpy.
2734 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2736 * PropertyGrid.cs: Fix unused variable warnings.
2738 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2740 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
2741 double-click. It expanded it once in the mouse down and then
2742 again in the double-click handler.
2744 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
2746 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
2747 TypeConverter and UITypeEditors.
2749 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
2751 * Control.cs: Visibility should be set synchronously,
2752 so we must also redraw once it is and not rely on layouting or
2753 other code to repaint.
2756 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
2758 * DataGridViewCell.cs: Respect DataGridView.GridColor.
2760 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
2762 * Control.cs: Invalidate when the alpha channel is less than 255,
2763 not only when control is transparent.
2765 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
2767 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
2768 Implement some painting convenience methods that threw NIEX.
2770 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
2772 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
2773 * DataGridViewLinkCell.cs: Implement.
2775 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
2777 * GridEntry.cs: Report the conversion exception error description.
2780 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
2782 * PropertyGridView.cs: Do not scroll to item on resize.
2785 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2787 * BindingContext.cs: When retrieving a BindingManagerBase, if the
2788 dataSource parameter is ICurrencyManagerProvider, then return
2789 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
2790 instead of creating a new one.
2792 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2794 * BindingSource.cs: Implement support for Type instances as
2797 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
2799 * DataGridView.cs: Minor cleanups and call CellMouseUp.
2800 * DataGridViewCell.cs: Make some painting routines internally virtual.
2801 * DataGridViewButtonCell.cs: Implement.
2803 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
2805 * Control.cs: We always need to invalidate our children with
2806 transparent backgrounds when we are invalidated.
2809 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2811 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
2812 and CancelCurrentEdit on CurrencyManager respectively. Implement
2813 support for ICancelAddNew too.
2815 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2817 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
2818 call EndNew/CancelNew if list is ICancelAddNew.
2820 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
2822 * DataGridView.cs: Guard against an exception while painting
2823 if there are no rows.
2825 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
2827 * DataGridView.cs: Implement a bunch of keyboard commands.
2829 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
2831 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
2832 isn't set, don't call OnPaint. [Fixes bug #375300]
2834 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2836 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
2837 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
2838 hookup the remaining events related to CurrencyManager, and fire
2839 OnListChanged also for the Clear () method.
2841 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2843 * BindingSource.cs: Use Current and Position implementations in
2844 CurrencyManager instead of using our own routines, since we need
2845 to be in synch with it. Count should NEVER return a -1 value, and
2846 also report ListChanged events for both simple IList data
2847 sources (manually) as well for IBindingList ones (by hooking up an
2848 event handler for it).
2850 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2852 * BindingSource.cs: Make one .ctor call the another, to avoid
2853 duplicate code. Add the CurrencyManager property, and also for AddNew
2854 throw the proper exceptions and show better error messages.
2856 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2858 * ComboBox.cs: Only adjust selectedindex if Handle has been
2859 created. Fixes failing test.
2861 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2863 * ComboBox.cs: Adjust selectedindex if we insert a new item
2864 above the current selectedindex in a sorted ComboBox.
2867 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2869 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
2872 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2874 * DataGridViewTextBoxCell.cs: Implement stuffs.
2876 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2878 * TreeView.cs: Create the scrollbars even earlier to be
2879 double dog certain they are created before they are accessed.
2881 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2883 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
2885 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2887 * ScrollBar.cs: Create an internal safe Value setter so we
2888 won't crash if we try to set a value outside the min and max.
2889 * TextBoxBase.cs: Use safe value setter to guard against a
2890 potential NRE that is being reported by Reflector.
2892 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2894 * TreeView.cs: Create the scrollbars earlier in the constructor
2895 to attempt to guard against an NRE in SetTop in Reflector.
2897 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2899 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
2900 DataGridViewRowCollection.cs: Do not scroll column and row headers,
2901 show messagebox on data format error, use column display index
2902 correctly, make sure HitTest supports new layout stuff,
2903 make sure scrollbars support new layout stuff.
2905 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
2907 * XplatUIX11.cs : Patch by Doug Rintoul.
2908 For some IM engines, keypress events need to delay call
2909 to XPending() and XNextEvent() in the loop so that it
2910 does not mess the orders in XIM commit callback.
2911 Some KeyRelease events such as shift keys need to be
2912 processed both in the IM engine and winforms driver
2913 itself since winforms holds its own state check.
2915 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
2917 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
2919 * X11Keyboard.cs, XplatUIX11.cs :
2920 add primitive support for XIM input support (preedit-
2921 nothing and status-nothing). It requires precise event
2922 capturing (XSelectInput/"filterEvents") and different
2923 call to XFilterEvent against root window.
2924 Get composed string and send dummy WM_IME_COMPOSITION.
2925 Free XIM and XIC instances in finalizer.
2927 (This first patch does not include suggested changes
2928 by Doug Rintoul. It will follow.)
2930 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
2932 * DataGridView.cs: When binding to a property, if the property
2933 doesn't have a setter, set the column to readonly.
2936 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
2938 * ComboBox.cs: Guard against NRE if an arrow key is hit while
2939 we aren't dropped down. Support Home/End in DropDownList mode.
2942 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
2944 * TreeNodeCollection.cs: Don't increment count until we've
2945 saved our index to return.
2948 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2950 * Label.cs: Add padding to the label's AutoSize calculation.
2953 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2955 * ListBindingHelper.cs: Actually implement GetListName method.
2957 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2959 * BindingSource.cs: Throw the propert expceptions for some methods, as
2960 well as detect the list item type for Add method if DataSource is null.
2962 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2964 * DataGridViewCell.cs: I don't know why I commented this out,
2965 putting it back for now.
2967 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2969 * DataGridViewCell.cs: Remove storage for owning column, just
2971 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
2972 * DataGridViewColumnHeaderCell.cs: If the header text has been
2973 explicitly set, return it.
2976 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2978 * DataGridViewRowCollection.cs: Disable row sharing when
2979 using data binding. Its a great feature, but lets work on
2980 getting DGV usable first before we worry about optimizations.
2982 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2984 * BindingSource.cs: When resetting our internal list, compute list
2985 item type information to be used for indirect list access. Also
2986 implement/tune some properties and methods related to the list access
2988 * ListBindingHelper.cs: Add a stub for GetListName method, used from
2991 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2993 * DataGridView.cs: If RowCount is increased while ColumnCount
2994 is zero, add a column. [Fixes bug #331649]
2996 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2998 * DataGridViewRowCollection.cs: When adding new rows for
2999 databinding, make sure they are place before the add row.
3002 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3004 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
3005 instead of Index order.
3007 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3009 * DataGridView.cs: If columns are added by increasing ColumnCount,
3010 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
3013 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3015 * DataGridView.cs: Turn off and on the "new row" when
3016 AllowUserToAddRows is toggled. When the handle is created,
3017 set current cell and selected cell/row/col.
3019 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3021 * ComboBox.cs: When navigating the drop down by keyboard, we
3022 need to scroll the list box if our selection moves out of the
3023 currently shown items. [Fixes bug #371990]
3025 2008-03-24 Luke Page <luke.a.page@gmail.com>
3027 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
3028 on the control. Also now handles unicode compatibility characters and
3029 stores the unicode compatibility length on the stack. Fixes Bugs
3030 #355198 and #366436.
3032 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3034 * BindingSource..cs: Take into account DataMember when re-creating the
3035 List property, and also create a specific kind of list as needed.
3037 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3039 * ListBindingHelper.cs: Add a new case for GetList () method - when we
3040 get an empty IEnumerable, try to detect whether the datamember is
3041 valid or not for that type, if true, return null, and throw exception
3044 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
3046 * ComboBox.cs: Alt-Down should drop down the list, Esc should
3047 retract it. [Fixes bug #371989]
3049 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
3051 * PropertyGrid.cs: Initialize the sorting button as pushed.
3053 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
3056 - Visually select the PropertyTab.
3057 - Filter Properties by Attributes properly.
3059 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3061 * MenuItem.cs: Remove menu item from parent when disposed.
3064 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3066 * ToolBar.cs: Don't reset layout_type if Dock = None.
3068 2008-03-21 Andreia Gaita <avidigal@novell.com>
3070 * UserControl.cs: Select the first available control when we get focus.
3073 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3075 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
3076 the content if we are in edit mode. [Fixes bug #343964]
3078 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3080 * DataGridViewCell.cs: Fix border painting for column headers.
3082 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3084 * BindingSource.cs: When setting or resetting data source,
3085 use ListBindingHelper.GetList () method, since it will get the list in
3086 case datasource is IListSource.
3088 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3090 * DataGridViewCell.cs: Implement lots more stuffs.
3092 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3094 * PropertyGridView.cs, GridEntry.cs: Implement support for
3095 UITypeEditor.IsDropDownResizable.
3097 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3099 * DataGridViewCell.cs: Remove unused variables, improve how
3100 several of the property getters work.
3101 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
3102 get its size from the parent row/col.
3104 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3106 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
3107 user alters manually the PropertyTabs collection via the
3108 PropertyTabs property.
3110 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3112 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
3113 new tests for them to be sure to be compatible with .net.
3115 2008-03-20 Andreia Gaita <avidigal@novell.com>
3117 * WebBrowserBase.cs: Fix attributes, add events
3118 * WebBrowser.cs: Fix Padding signature
3120 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3122 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
3124 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
3126 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
3127 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
3128 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
3129 passes the new suite of tests for it.
3131 2008-03-18 Andreia Gaita <avidigal@novell.com>
3133 * WebBrowser.cs: Add missing attributes, missing Padding and
3134 DefaultSize properties, remove extraneous getters
3136 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3138 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
3141 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3143 * ComboBox.cs: Move resetting the selected index to keypress
3144 instead of textchanged. Changing the text programmatically
3145 should not trigger resetting the selected index. Fixes test.
3147 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3149 * ComboBox.cs: When the user types into the textbox, reset
3150 the selected index to -1. [Fixes bug #371672]
3152 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3154 * FileDialog.cs: Support Control-A for selecting everything
3155 in an OpenFileDialog. [Fixes bug #371564]
3157 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
3159 * DataGridView.cs: When row/column visible/height properties
3160 change, invalidate. Take the NIEX out of InvalidateRow/Column
3161 etc. We don't support them yet, but we can just invalidate
3162 everything until we do support them. (Added MonoTODO). Set
3163 proper control styles.
3164 * DataGridViewRow.cs: Don't call PaintHeader if row headers
3167 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3169 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
3171 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3173 * DataGridViewRow.cs: Only paint the white background in
3174 cell bounds, the row bounds extends past the cells if the
3175 grid width isn't as wide as the DGV.
3177 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3179 * DataGridView*: Completely revamp the drawing to match the
3180 public API. Our grids now look better, and call all the
3181 appropriate methods and event to allow users to override
3182 the painting and do their own.
3184 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3186 * ListBindingHelper.cs: Implement 2.0 GetList methods.
3188 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3190 * DataGridView.cs: Implement BorderStyle.
3192 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3194 * FileDialog.cs: Apply patch from Andy Hume: Any time we
3195 are comparing attributes, make sure we only look at the
3196 one we are interested. These calls were failing if there
3197 were more than one attribute.
3200 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3202 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
3204 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3206 * PageSetupDialog.cs: Stub EnableMetric.
3207 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
3208 * PrintPreviewDialog.cs: Add ProcessDialogKey,
3211 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3213 * MonthCalendar.cs: Remove unused variable.
3215 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3217 * DataGridView*.cs: corcompare stuffs.
3219 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3221 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
3222 The savings aren't worth the extra code to fix the optimization.
3225 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3227 * ToolBar.cs: Always call base.Dock in the Dock override so that
3228 Control's layout_type gets reset correctly.
3231 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
3233 * X11Dnd.cs: End DnD operation also for the middle mouse button.
3235 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3237 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
3238 at the same time we do explicit ones, because we have to give all
3239 other controls on the container a chance to handle explicit ones
3240 first. If no one has an explicit mnemonic, then we can let the
3241 MenuStrip have a shot at implicit mnemonics.
3242 * MenuStrip.cs: Create an implicit mnemonic function.
3243 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
3244 mnemonics for MenuStrips.
3247 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3249 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
3250 DataGridColumnStyle.cs: corcompare stuffs.
3252 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3254 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
3255 Details - This is needed after we added the bits to use any available
3256 column also for List and SmallIcon view.
3258 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3260 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
3261 at the proper place, not only when changing SelectedIndex and changing
3262 the selection using keys/mouse, as .net does.
3264 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3266 * ControlBindingsCollection.cs: Implement last 2.0
3267 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
3268 in the new 2.0 Add methods.
3270 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3272 * ListBox.cs: When calling SelectedIndexCollection.Clear,
3273 return if no items are previously selected - this is done to avoid
3274 firing OnSelectedIndexChanged without need to do so. Also,
3275 when creating handle ensure that the focused item is visible (as
3278 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3280 * ListBox.cs: Rewrote/refactored most of selection code. We require
3281 the following things in selection: a) keep selection sorted (both
3282 indices and items), b) SelectedIndices automatically detect the
3283 selection mode, c) SelectedIndex should be the first selected item
3284 index, d) Need to Focus/adjust scroll bar when selecting a new item,
3285 not only for SelectedIndex, which is specially important in Multi*
3286 selection modes. To achieve this we are moving the selection core to
3287 SelectedIndexCollection and make depend all selection modifications on
3291 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3293 * ToolStrip.cs: Enable implicit mnemonics for drop down
3294 menu strips. [Fixes part of bug #367692]
3296 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3298 corcompare - fix parameter names [stragglers].
3299 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
3300 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
3303 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3305 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
3306 was a mnemonic pressed as well as Alt. Also, if nothing handles a
3307 mnemonic, let the ToolStripManager have it even if it doesn't
3308 have a matching mnemonic.
3311 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3313 corcompare - fix warning about implicit implementation
3314 * ToolStrip.cs: Add IToolStripData interface.
3315 * IToolStripData.cs: Add.
3317 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3319 corcompare - fix warning about implicit implementation
3320 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
3323 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3325 corcompare - fix parameter names [N-Z].
3326 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
3327 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
3328 PropertyManager.cs, RichTextBox.cs,
3329 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
3330 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
3331 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
3332 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
3333 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
3334 ToolStripContentPanel.cs, ToolStripDropDown.cs,
3335 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
3336 ToolStripPanel.cs, ToolStripSeparator.cs,
3337 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
3338 UICuesEventHandler.cs, UpDownBase.cs.
3340 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3342 corcompare - fix parameter names [G-M].
3343 GridColumnStylesCollection.cs, GridItemCollection.cs,
3344 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
3345 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
3346 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
3347 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
3348 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
3350 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3352 corcompare - fix parameter names [A-F].
3353 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
3354 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
3355 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
3356 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
3357 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
3358 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
3359 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
3361 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3363 * GridEntry.cs: Do not convert not only if the types match,
3364 but also if the property type is assigneable from the value's
3368 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3370 * PropertyGridView.cs:
3371 - Subscribe to the listbox only once and not everytime.
3372 - Update the textbox even if SetValue fails.
3373 - Close the listbox before calling TrySetValue just in case.
3376 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
3378 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
3380 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3382 * ListView.cs: Implement support for custom column width based on
3383 Columns collection (we were previously using this collection only
3387 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3389 * ListViewItem.cs: For Tile view, always set bounds for the first
3390 subitem (which is the main one), and also don't let Width be larger
3391 than ListView.TileSize.Width. Improve code readibility also.
3392 * ThemeWin32Classic.cs: When painting the ListViewItem instances
3393 in Tile view, _always_ use the NoWrap flag.
3396 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
3398 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
3400 * GridEntry.cs: For MS compitability make all child properties
3401 readonly if the parent is readonly. Ugh.
3402 [Fixes bug #365945 and #365944]
3404 2008-02-29 Andreia Gaita <avidigal@novell.com>
3406 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
3407 relative to the history
3409 2008-02-29 Andreia Gaita <avidigal@novell.com>
3411 * HtmlElement.cs: More handlers for mouse and key events
3413 2008-02-28 Andreia Gaita <avidigal@novell.com>
3415 * WebBrowserBase.cs: MouseClick sig changed.
3416 * HtmlHistory.cs: Implement history navigation
3417 * HtmlElement.cs: Add event handlers, and connect them.
3419 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
3422 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
3423 so that DisplayNameAttribute doesn't get ignored.
3424 - Check for ParenthesizeNameAttribute and parenthesize the Label.
3425 - Add support for PasswordPropertyTextAttribute
3426 * PropertyGridView.cs: Check if an entry is a password.
3427 [Fixes bugs #365589, #365586, #365588]
3429 2008-02-28 Andreia Gaita <avidigal@novell.com>
3431 * PropertyGridView.cs: Revert the message filtering change, as we
3432 need it to block after all. Remove block parameter, unnecessary.
3434 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
3436 * UserControl.cs: Better implementation of GetPreferredSize.
3437 First step to fixing bug #361441.
3439 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3441 * Binding.cs: Actually implement data binding support for
3442 classes implementing IBindableComponent.
3443 * ControlBindingsCollection.cs: Likewise.
3445 2008-02-26 Andreia Gaita <avidigal@novell.com>
3447 * PropertyGridView.cs: Use a message filter to check when to
3450 2008-02-26 Andreia Gaita <avidigal@novell.com>
3452 * Application.cs: Change the message_filters loop so a filter
3453 can be removed while looping.
3455 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
3457 * GridEntry.cs: Optimization in ToggleValue so that it caches
3459 * PropertyGridView.cs: An optimization so that the property isn't
3460 re-read twice for each StandardValue added to the drop-down menu.
3461 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
3465 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
3467 * Application.cs: Apply patch from Justin Cherniak to match
3468 MS better for ProductName, ProductVersion, and CompanyName.
3471 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3473 * Binding.cs: Actually implement 2.0 NullValue property. Also
3474 when changing the formatting related properties, only update the state
3475 if formatting_enabled is true (we don't mind otherwise).
3477 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
3479 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
3482 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3484 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
3485 of GetType on the current value as it uses reflection to
3486 determine the type. This fixes the case where the new value is
3489 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3491 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
3494 2008-02-24 Luke Page <luke.a.page@gmail.com>
3496 * Line.cs, TextControl.cs: Implement offset x and y so that a
3497 document doesn't have to begin at (0,0) on the viewpoint.
3498 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
3499 bars and switches the text alignment (and therefore is now
3500 implemented for textbox). Fixes #321383.
3502 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3504 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
3505 properties. Also when changing FormattingEnabled update the control
3506 property -as .Net does-.
3508 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
3510 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
3511 * Binding.cs: Add stubs for the overloads of the Add method in
3514 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3516 * Binding.cs: PullData () returns a false value if we got an exception.
3517 Also when validating the control and we get an error, instead of
3518 setting the value of the previous one, cancel the event (tested in 1.1
3521 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
3523 * TreeView.cs: Make selected_node and highlighted_node internal.
3524 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
3525 to null when Nodes.Clear is called.
3528 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3530 * FontDialog.cs: Ensure that when the Font is set in code,
3531 all the gui pieces are updated accordingly.
3534 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3536 * TextRenderer.cs: Respect proposed size for MeasureString.
3537 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
3538 autosize, use a proposed width to force wrapping for long text.
3541 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3543 * TreeView.cs: Factor in checkboxes = false and state images in
3544 to HitTest. [Fixes bug #363360]
3546 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3548 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
3549 when drawing the selected range.
3552 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3554 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
3555 ResizeRedraw control styles.
3558 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3560 * TreeView.cs: StateImages are basically custom checkboxes, so
3561 factor their size the same as real checkboxes when determining
3565 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3567 * MessageBox.cs: Make the message box wider if the form caption
3568 is longer than the text in the form.
3571 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
3573 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
3575 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3577 * TreeNode.cs: Guard against an NRE when the parent's
3578 StateImageList hasn't been set.
3581 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3583 * SplitContainer.cs: Add SupportsTransparentBackColor and
3584 OptimizedDoubleBuffering control styles.
3587 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3589 * Application.cs: For the app data paths and the registry key paths,
3590 ensure they are created before returning them to the user.
3593 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3595 * Application.cs: Guard against an NRE in CompanyName and
3598 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3600 * Application.cs: For CompanyName, ProductName, and ProductVersion,
3601 make sure we handle all three cases correctly: attribute is present,
3602 attribute is present but is an empty string, and attribute is not
3605 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
3607 * PropertyGridView.cs:
3608 - Fix a NRE that caused a test failure
3609 - Another performance improvement - cache the standard values
3612 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3614 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
3617 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
3619 * PropertyGridView.cs: Fix a big performance bug.
3621 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3623 * SelectionRange.cs: Apply patch from Andy Hume to make
3624 constructor behavior more accurate. [Fixes bug #362117]
3626 2008-02-19 Andreia Gaita <avidigal@novell.com>
3628 * Control.cs: Added a new flag is_disposing to track if the
3629 window is currently in the process of being disposed of.
3630 This is used so that, when firing visibility changes triggered
3631 by unparenting controls during Dispose, the control doesn't
3634 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3636 * ComboBox.cs: Set height to preferred height when the handle
3637 is created. [Fixes bug #360862]
3639 2008-02-18 Andreia Gaita <avidigal@novell.com>
3641 * XplatUIX11.cs: Create FosterParent with border width at 0.
3642 With the previous value of 4, everytime a control got reparented
3643 from parent = null, it's location would be shifted right and
3644 down by 4, since these coordinates would be offset by the
3645 FosterParent's border width.
3647 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
3649 * Control.cs: During diposing firstly remove ourselfes from
3650 the parent and *then* destroy our handle, because removing
3651 ourselfes from the parent controls collection causes
3652 VisibilityChange, etc events, which require a handle and end
3653 up recreating the control.
3655 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
3657 * GridEntry.cs: Set expanded state before notifying that the
3658 expansion has taken place.
3659 * PropertyGridView.cs:
3660 - Set the propertygridtextbox text to the selected
3661 StandardValue before proceeding to setting it.
3662 - Scrolling bugfixes.
3664 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3667 - Fix ValueText to not return null.
3668 - Fix conversion error reporting to actually happen.
3669 * PropertyGridView.cs: Set entry only if the text has changed.
3672 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3675 - Fix handling of a null current value.
3676 - Swallow editor exceptions.
3679 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3681 * PropertyGrid.cs: Clear current items first thing before
3682 repopulating subitems.
3684 - Handle null StandardValuesCollection.
3685 - Mark as not editable if there is no PropertyDescriptor and
3686 if the Converter cannot convert from string.
3687 [Part of fix for bugs #360666 and #358332]
3689 2008-02-15 Luke Page <luke.a.page@gmail.com>
3690 * MaskedTextBox.cs: Now skips non editable characters after a
3691 character has been entered and we are progressing to the next
3692 position in the MaskedTextBox.
3694 2008-02-15 Luke Page <luke.a.page@gmail.com>
3695 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
3696 that it changes the selection rather than just repositioning the
3697 cursor. Fixes Bug #360873.
3699 2008-02-15 Luke Page <luke.a.page@gmail.com>
3700 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
3701 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
3702 correctly. See #359330
3704 2008-02-15 Andreia Gaita <avidigal@novell.com>
3706 * XplatUIX11.cs: If the handle is null when posting a message, use the
3707 current thread queue to post instead. Fixes #332409
3709 * SendKeys.cs: Slight optimization
3711 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
3713 * PropertyGrid.cs, PropertyGridView.cs:
3714 Fix multiple scrolling and sizing issues.
3717 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
3719 * PropertyGridView.cs: Ensure that drop down editors are shown
3720 in the WorkingArea of the screen.
3723 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
3725 * GridEntry.cs: Fail silently when UITypeEditor is missing.
3728 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3730 * Binding.cs: Implement 2.0 DataSourceNullValue property.
3732 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3734 * PropertyGridView.cs:
3735 - Clear the controls in the drop down form after it is hidden.
3736 - Fix Width sizing of the dropdown editors to match MSFT.
3738 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3740 * PropertyGridView.cs:
3741 - Fix height for drawing the grid entry
3742 text value, so that it clips multiline text properly.
3743 - Fix unfocusing to match MSFT.
3745 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3747 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
3748 Fixes a bug where on repopulation after value changed items become
3751 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3753 * Binding.cs: For the 2.0 profile, look for a
3754 'PropertyChanged' event in the target control, and add checks for
3755 DataSourceUpdateMode property to change -or not- the data source
3756 from validation/control property change.
3758 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
3760 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
3761 not compare struct with null in 2.0).
3763 2008-02-10 Luke Page <luke.a.page@gmail.com>
3765 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
3766 updates the provider and if not using a provider, uses the internal document
3767 class implementation of password char. Also when showing text, uses display string
3768 from the provider, instead of the actual text.
3770 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3772 * Binding.cs: Ooooops, forgot to take into account the data_source
3773 and binding_member_info null case (it was breaking the Binding tests).
3775 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3777 * Binding.cs: Implement support for data source changes exposed by
3778 'PropertyNameChanged' events, and update the control property as
3781 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3783 * Binding.cs: Implement 2.0 WriteValue method.
3785 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
3787 Commit patch from James Purcell for better AutoScale implementation:
3789 * ScaleControl should call GetScaledBounds with the control's total size rather
3790 than client size. GetScaledBounds should handle ignoring the borders in its
3791 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
3792 (for the most part they just call the base code now since that is fixed).
3793 * Added ScaleChildrenInternal to allow controls to disable scaling of children
3794 without having to override ScaleChildren (since none of .NET's controls do).
3795 This is required for most controls in Mono that have scrollbars to prevent the
3796 scrollbars from being moved/resized.
3797 * Nested ContainerControls can have a different scale mode than their parent.
3798 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
3799 designer produce different results both of which look incorrect).
3800 * Default AutoScaleMode for ContainerControl should be Inherit.
3801 * Simplified workaround for ComboBox scaling issue.
3802 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
3803 1.0 style auto scaling should scale the whole control's size instead of
3804 ignoring the borders (except for Form) and the rounding is done differently to
3805 preserve control alignment.
3806 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
3808 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
3809 * CurrentAutoScaleDimensions should round the estimated character width instead
3811 * ListBox's GetScaledBounds should always use the height it was set to instead
3812 of the height that was passed in. This prevents rounding errors from
3813 accumulating quickly with IntegralHeight.
3816 2008-02-08 Andreia Gaita <avidigal@novell.com>
3818 * Form.cs: Add a null check (darn it).
3820 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
3822 * MdiClient.cs: Make sure the requesting form actually owns the
3823 control menu items before removing them. Also, use
3824 Suspend/ResumeLayout when adding or removing items so we only
3828 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
3830 * Control.cs: Guard against an NRE in ShowFocusCues.
3833 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3835 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
3836 property, as well as stubbing DataSourceUpdateMode.
3838 2008-02-08 Andreia Gaita <avidigal@novell.com>
3840 * Form.cs: When closing forms, get focus back to the active control of the
3841 active form. [Fixes #341314, corner case]
3843 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3845 * MdiClient.cs: After we move the scrollbars, invalidate the NC
3846 area, so any old scrollbar artifacts are cleaned up.
3849 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3851 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
3852 for our menus, display that control box menu instead of the 1.1
3855 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3857 * MdiControlStrip.cs: Add property to access the mdi form tied to
3859 * MdiClient.cs: Be smarter about removing and adding toolstripitems
3860 to the implicitly merged menu. Every time we clicked the form, items
3861 were getting removed and the re-added, causing the form to jump around
3862 as the menu resized.
3864 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3866 * MdiClient.cs: Make sure the NormalBounds always gets set. It
3867 was being reset by the implicit menu merge for menustrips.
3870 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3872 * Form.cs: Don't do the previous change when WindowState = Normal,
3873 or it messes up where the window is placed. Fixes test failure.
3875 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3877 * Form.cs: When becoming visible, if we are an MDI child, call
3878 SetWindowState with a dummy old_state so that changes will actually
3880 [Fixes the 2nd part of bug #325473]
3882 2008-02-07 Andreia Gaita <avidigal@novell.com>
3884 * Control.cs: Reset properties to their pre parent-change values in case
3885 the new parent == null (in which case we're basically removing the control,
3886 and don't want any events fired due to fake property changes)
3889 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
3891 * PropertyGridView.cs:
3892 - Refactor SetValue to allow setting the value
3893 when a custom editor is used, but the entry is not editable.
3894 - Remove the custom editor control on CloseDropDown.
3897 2008-02-06 Andreia Gaita <avidigal@novell.com>
3899 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
3900 reflection only on 1.1, this property is public on system.drawing on 2.0.
3903 2008-02-06 Andreia Gaita <avidigal@novell.com>
3905 * WebBrowser.cs: Do a normal page refresh by default.
3907 2008-02-05 Andreia Gaita <avidigal@novell.com>
3909 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
3910 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
3911 platforms. Fixes #359036
3913 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
3914 platform-specific flags.
3916 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3918 * Binding.cs: Add 2.0 BindableComponent property - just return control
3921 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
3923 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
3924 Jonathan for this patch. Fixes #358442.
3926 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
3928 * Form.cs: If we change the active MDI child form, let the others
3929 know they need to repaint their title bar so it will appear inactive.
3930 [Fixes part 1 of bug #325473]
3932 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
3934 * PropertyGridView.cs: Do not trucate custom editors' width
3935 and align them to the left.
3936 [Fixes #358353 and #358349]
3938 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3940 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
3941 Also fix the arguments passed to CollectionChangeEventArgs in the
3944 2008-02-04 Geoff Norton <gnorton@novell.com>
3946 * Hwnd.cs: The conversion to Quartz coordinates happens in
3947 System.Drawing. Removing this translation from here.
3949 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
3951 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
3952 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
3953 GridItemCollection.cs:
3954 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
3956 2008-02-04 Geoff Norton <gnorton@novell.com>
3958 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
3959 SYSKEYUP if any other key has been pressed in the mean time.
3962 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3964 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
3965 when the item in current position is different than 0. Also, save the
3966 item index in the beginning of the operation, instead of getting the
3967 index of the item when the event is actually performed. Lastly clean
3968 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
3972 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3974 * Form.cs: Alt-Minus for MDI children system menu should work
3975 with both the minus keys on the keyboard.
3978 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3980 * Control.cs: Don't invalidate on region change. The WM should
3981 take care of this automagically. Keeps us out of an infinite
3982 paint loop if someone changes the Region in the OnPaint.
3985 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
3987 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
3989 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3991 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
3992 down the MonthCalendar only on F4, not Alt+F4.
3993 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
3996 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3998 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
3999 if its part of a DateTimePicker, else, use the back color.
4002 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4004 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
4007 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4009 * CurrencyManager.cs: When we get a ListChanged event from our source,
4010 always fire our own ListChanged event, as .Net does.
4012 2008-02-03 Luke Page <luke.a.page@gmail.com>
4014 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
4017 2008-02-03 Luke Page <luke.a.page@gmail.com>
4019 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
4020 property. Removed if for richtext property that was always true.
4021 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
4023 2008-02-03 Luke Page <luke.a.page@gmail.com>
4025 * TextBoxBase.cs - commited patch from James Purcell that
4026 correctly sets the FixedHeight control style when the MultiLine
4027 property is changed on a TextBox control. Fixes bug 358229.
4029 2008-02-02 Luke Page <luke.a.page@gmail.com>
4031 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
4032 Fixes bug 351938 - caret is positioned correctly when drawn
4033 and when calculating textual position of caret, no longer
4034 has a NRE in certain situations.
4036 2008-02-01 Geoff Norton <gnorton@novell.com>
4038 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
4039 get that region removed from the paint event.
4040 * XplatUICarbon.cs: Remove the window mapping after disposing of
4041 window. Prevents a crash with handle reuse. Optimize exposes
4042 only onto visible windows (rare; but possible).
4044 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4046 * UpDownBase.cs: Make sure the internal textbox calls the base's
4047 OnMouseDown and OnMouseUp so the textbox will function correctly.
4048 There were notes saying it doesn't chain up, but its an internal
4049 class, so our implementation may differ.
4052 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4054 * ListBox.cs: Fix a logic error and don't process MouseDown
4055 for mouse buttons other than Left.
4057 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4059 * Control.cs: Remove HeightInternal.
4060 * ListBox.cs: Commit patch from James Purcell that correctly
4061 calculates heights for ListBoxen.
4064 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4066 * Label.cs: Apply patch from James Purcell that corrects the
4067 signature of the AutoSize property.
4070 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4072 * ListBox.cs: Don't throw [Mouse]Click events for buttons
4073 other than the left mouse button.
4075 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
4077 * Control.cs: Remove my awesome optimization as it caused some
4078 regressions with control ordering. :(
4081 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
4083 * PropertyGridView.cs: Fix a NRE on double click when there is no
4086 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4088 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
4090 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
4092 * ListBox.cs: Call MouseClick and MouseDoubleClick.
4095 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4097 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
4098 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
4099 instead of Hwnd.bmp_g.
4101 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4103 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
4104 Use the Hwnd one instead.
4106 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4108 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
4110 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4112 * Form.cs: corcompare for RestoreBounds.
4114 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4116 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
4118 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4120 * Form.cs: Handle Alt-Minus for MDI children forms.
4121 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
4122 Add mnemonics to the control menu.
4125 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4127 * Binding.cs: Initial implementation bits of FormattingEnabled
4128 property and BindingComplete event (2.0).
4129 * BindingCompleteEventArgs.cs: Internal methods for setting error text
4132 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
4134 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
4135 table.Location. [Fixes bug #354672]
4137 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
4139 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
4140 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
4142 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4144 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
4145 of doing all the re-bound work, just invalidate and call SetControlText
4146 to set the updated text of selected item to our textbox.
4149 2008-01-28 Andreia Gaita <avidigal@novell.com>
4151 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
4152 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
4153 missing properties and methods. Add Load, Unload, Error, GotFocus,
4154 LostFocus, Resize, Scroll events (only load and unload are connected)
4156 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
4158 * AccessibleObject.cs: Modified argument names to match MS.
4159 * Button.cs: Modified argument names to match MS.
4160 * BindingContext.cs: Modified argument names to match MS.
4161 * BindingMemberInfo.cs: Modified argument names to match MS.
4162 * ButtonBase.cs: Modified argument names to match MS.
4163 * ComboBox.cs: Modified argument names to match MS.
4164 * Control.cs: Modified argument names to match MS.
4165 * CheckedListBox.cs: Modified argument names to match MS.
4166 * CommonDialog.cs: Modified argument names to match MS.
4167 * DataGrid.cs: Modified argument names to match MS.
4168 * CursorConverter.cs: Modified argument names to match MS.
4169 * ControlPaint.cs: Modified argument names to match MS.
4170 * CheckBox.cs: Modified argument names to match MS.
4171 * ControlBindingsCollection.cs: Modified argument names to match MS.
4172 * BindingSource.cs: Modified argument names to match MS.
4173 * DataFormats.cs: Modified argument names to match MS.
4174 * ContainerControl.cs: Modified argument names to match MS.
4175 * CurrencyManager.cs: Modified argument names to match MS.
4176 * Application.cs: Modified argument names to match MS.
4177 * ContextMenuStrip.cs: Modified argument names to match MS.
4178 * ContextMenu.cs: Modified argument names to match MS.
4179 * BindingManagerBase.cs: Modified argument names to match MS.
4180 * WindowsFormsSection.cs: Fixed line ending.
4182 2008-01-27 Andreia Gaita <avidigal@novell.com>
4184 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
4185 detecting that the dropdown toolwindow is hidden. EndLoop outside the
4188 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
4190 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
4191 MS. Code formatting.
4193 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4195 * Binding.cs: Don't avoid the Format event if the control
4196 property type is object. Also, if the value retrieved by
4197 the data source is null _and_ the control proeprty type
4198 is object, return Convert.DBNull (match .Net).
4199 Fixes part of #324286.
4201 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4203 * ListControl.cs: Since we are getting two BinginContextChanged events
4204 for the same binding context instance (when the control is added to
4205 form, and when the form is actually shown), take it into account only the
4206 first time for a given binding context instance.
4207 Fixes part of #324286.
4209 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4211 * PropertryGridView.cs: Ops.
4213 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4215 * PropertyGridView.cs: Close dropdown form if the owner form is
4219 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
4221 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
4222 RootGridEntry.cs, CategoryGridEntry.cs:
4223 PropertyGrid rewrite.
4224 - Rewrite all of the control logic in PropertyGrid.
4225 - Rewrite all of the ComponentModel logic in GridEntry.
4226 - Rewrite all UI work in PropertyGridView.
4227 - Many bugfixes, etc.
4229 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
4231 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
4232 when all contained controls are autosize or dock-fill. Also take into
4233 account when the total percentage of column/row sizes is not 100%.
4236 2008-01-24 Andreia Gaita <avidigal@novell.com>
4239 - Save a reference to the IDocument in the instance and
4240 use that one instead of going to WebHost.Document; the document that the
4241 WebHost returns might not be the right one (in case of frames).
4242 - Use the hashcode returned from the IDocument interface.
4243 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
4244 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
4245 LinkColor, Url, VisitedColor, Window
4248 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
4249 set_Attribute, NextSibling, Parent, TagName, AppendChild,
4250 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
4251 SetAttribute, Equals, equality operators.
4252 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
4253 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
4255 * HtmlElementCollection.cs: Change implementation to use a generic
4256 collection. Implemented Enumerator and CopyTo
4258 * HtmlHistory.cs: Add constructor, no implementation yet.
4260 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
4261 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
4262 Equals, equality operators.
4264 * HtmlWindowCollection.cs: Implemented.
4266 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
4267 has been deprecated).
4269 * WebBrowserBase.cs: Use Completed event to track document loading
4270 (Navigated has been deprecated)
4272 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
4274 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
4275 level MenuItems do not respect tabs.
4278 2008-01-23 Geoff Norton <gnorton@novell.com>
4280 * XplatUICarbon.cs: Ensure that windows are created in their initial
4281 FormWindowState. Finished fixing Fullscreen windows on Carbon
4283 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4285 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
4286 be used as grab_control. Also save status of capture before show ContextMenu
4287 and restore it after close.
4289 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4291 * Control.cs: Internal FindRootParent method added to return high control
4294 2008-01-23 Geoff Norton <gnorton@novell.com>
4296 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
4297 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
4298 it work again. Handle HITTEST events.
4300 2008-01-23 Geoff Norton <gnorton@novell.com>
4302 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
4303 a crash in certain cases. Support for fullscreen windows in certain cases.
4305 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
4307 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
4310 2008-01-23 Geoff Norton <gnorton@novell.com>
4312 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
4314 2008-01-23 Geoff Norton <gnorton@novell.com>
4316 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
4318 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4320 * SplitContainer.cs: Remove unused declarations.
4321 * Binding.cs: Remove unused declarations.
4323 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4325 * Form.cs: Remove unused declaration of 'active' in Activate method.
4326 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
4327 prevent compilation warnings.
4328 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
4329 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
4330 * Bindings.cs: Remove unused formatting_enabled declaration.
4331 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4333 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4335 * PropertyGridView.cs: Remove usused 'ex' declaration.
4336 * DataGridView.cs: Remove unused declarations.
4338 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4340 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
4342 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
4343 to Control class, it makes possible to grab menu to controls that can't
4344 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
4345 WmMouseMove removed since it was used only to track menu events.
4348 - Moved all active_tracker stuff from Form.
4349 - ProcessActiveTracker added to prevent code duplicity, now mouse events
4350 can call this method instead of reimplement all necessary code handle for
4352 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
4356 - Remove special handle to ToolStripOverflow, now we can grab menu to
4357 controls that can't reach Form using parent tree.
4358 - Change type of grab_control from Form to Control.
4360 2008-01-22 Geoff Norton <gnorton@novell.com>
4362 * TextBoxBase.cs: Split up the sizing of controls and placing of
4363 controls. Fixes a bug where scrollbars in Reflector could be sized
4364 wrong and have non-working thumbers.
4366 2008-01-23 Geoff Norton <gnorton@novell.com>
4368 * XplatUI.cs: Refactor environment variables to default support to the
4369 Carbon driver on the Mac.
4371 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4373 * Label.cs: Uses new LabelPainter for drawing operations.
4374 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
4375 * Theme.cs: DrawLabel and LabelDefaultSize removed.
4377 2008-01-22 Geoff Norton <gnorton@novell.com>
4379 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
4381 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4383 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
4384 through the normal flat button code and don't draw the checkbox glyph.
4385 * Theme.cs: Button->ButtonBase signature change.
4388 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4390 * LinkLabel.cs: Uses new class LinkLabelPainter.
4392 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4394 * MessageBox.cs: Adjust right border space, we don't need to add
4395 "space_border*2" two times.
4397 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4399 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
4400 becomes a wrapper around Padding.
4401 [Fixes a part of bug #354676]
4403 2008-01-22 Geoff Norton <gnorton@novell.com>
4405 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
4406 acquired. Also ensure the buffer is large enough to grab the header
4407 we need on linux boxes.
4409 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4411 * Control.cs: Implement a custom enumerator so people can delete
4412 from the Controls collection while in a foreach.
4415 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4417 * PropertyGridView.cs: Fix focusing behavior:
4418 - Tab should focus the grid text box.
4419 - Clicking on the labels shouldn't focus the grid text box.
4421 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4423 * PropertyGridView.cs: IsValueTypeGridItem should return true
4426 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4428 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
4429 - Renamed GridEntry.SelectedObjects to TargetObjects to better
4430 reflect the property name role.
4431 - PropertyGrid.GetTarget is not required as the target is known
4433 - Setting values will handle value types as a special case now and
4434 populate them up in the chain.
4437 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
4439 * Hwnd.cs: Create a public property for the Graphics we keep around.
4441 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4443 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
4444 when the current object selection changes.
4445 Fixes failing test SelectedObject_Null2.B5.
4447 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4449 * PropertyGrid.cs: Process Browsable properties with
4450 DesignerSerializationVisibilityAttribute.Content as being expandable.
4451 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
4452 will not be expandable. We should be nested components-friendly now.
4454 2008-01-21 Andreia Gaita <avidigal@novell.com>
4456 * WebBrowserBase.cs: Check if control was loaded properly,
4457 don't bind if it wasn't.
4459 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
4460 GetElementFromPoint, equality operators, OpenNew, Write.
4461 Remove extra set_Body
4463 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4465 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
4466 that makes our AutoScale* stuff more tolerant to different orders
4467 of being set. [Fixes bug #354669]
4469 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4471 * PropertyGridView.cs, PropertyGridTextBox.cs:
4472 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
4473 [Fixes #339005 and #348209]
4475 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4477 * PropertyGridView.cs: Hide the grid text box before adjusting it
4478 for the newly selected GridItem.
4481 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4483 * Form.cs: Give MDI children the opportunity to cancel the parent form
4484 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
4485 properly for both the parent and child.
4486 * Application.cs: Signature of internal method changed, pass the previous
4490 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4492 * PropertyGridView.cs: Set the property value only if it has changed.
4495 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4497 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
4498 If the mouse hasn't actually moved, ignore these messages so the currently
4499 highlighted menuitem isn't reset to the one under the mouse.
4502 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4504 * PropertyGridView.cs: When the property changes Invalidate the GridItem
4505 in order for the properties with UITypeEditor.GetPaintValueSupported == true
4506 to reflect the change visually.
4509 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4511 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
4512 to 2.0 button drawing.
4513 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
4514 the button text is tall enough for one line. LineLimit says it will
4515 always draw at least one line, but it is a lie.
4518 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
4520 * XplatUIStructs.cs, X11Keyboard.cs :
4521 added some more VK_* keys to be handled.
4523 2008-01-16 Andreia Gaita <avidigal@novell.com>
4525 * Control.cs: Check if there is a container before setting or getting
4526 the validation flag.
4528 2008-01-16 Andreia Gaita <avidigal@novell.com>
4530 * ContainerControl.cs: Add flag to track if a control cancels validation,
4531 so we don't fire click events.
4534 - (HandleClick) Check if validation was cancelled before firing the click
4535 events (doubleclicks are fired, but not clicks)
4536 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
4537 ContainerControl.set_ActiveControl, but in the case of non-selectable
4538 controls, like a Label, activecontrol is not set.
4540 * ButtonBase.cs: Only fire clicks if validation passes.
4544 2008-01-16 Geoff Norton <gnorton@novell.com>
4546 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
4549 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
4551 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
4552 SelectedPath, just display the default dialog instead of crashing.
4555 2008-01-16 Geoff Norton <gnorton@novell.com>
4557 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
4558 AddExpose instead of trusting apples compositing manager which doesn't
4559 work for our use case. Remove some dead code causing warnings and
4560 redecorate some other code to prevent warnings.
4562 2008-01-16 Geoff Norton <gnorton@novell.com>
4564 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
4565 carbon signals us to redraw. Fixes another portion of the flickering bug
4567 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4569 * Form.cs: Prevent the MdiParent property to be set when value is the same
4570 as value already set. Fixes bug #328019.
4572 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4574 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
4575 it prevents NRE when closing mdi child windows. Fixes bug #325211.
4577 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4579 * InternalWindowManager.cs: Invalidade close button after mouse up when
4580 mdi form is prevented to close.
4582 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4584 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
4585 thanks to Andy Hume. Fixes bug #325433.
4587 2008-01-16 Andreia Gaita <avidigal@novell.com>
4589 * LinkLabel.cs: Reset focused_index when resellecting the control.
4592 2008-01-15 Geoff Norton <gnorton@novell.com>
4594 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
4597 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
4599 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
4602 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
4604 * ContainerControl.cs: Setting AutoScaleMode to anything should set
4605 Form.AutoScale to false.
4606 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
4607 AutoScaleBaseSize should be changed on Font change unless it has been
4611 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
4613 * MenuAPI.cs: On instance of MenuTracker check if source control is
4614 ToolStripOverflow and use properly method to find form.
4617 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
4619 [Fixes bug #323241 Transparent toolbar support]
4621 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
4624 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
4625 defined in control style to mimic win32 behavior.
4627 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
4628 it will be transparent.
4630 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
4632 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
4633 CreateParams for ToolBar controls.
4635 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4637 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
4638 FixedToolWindow, SizeableToolWindow, or None for border styles have
4639 different minimum sizes than regular forms. Implemented to fix
4640 regression in PDN with toolbox being too wide.
4642 2008-01-14 Andreia Gaita <avidigal@novell.com>
4644 * HtmlElementCollection.cs: Implemented
4646 * HtmlElement.cs: Implemented:
4654 * HtmlDocument.cs: Implemented GetElementsByTagName.
4656 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4658 * Screen.cs: Stub BitsPerPixel to always return 32.
4660 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4662 * Form.cs: Implement RestoreBounds.
4664 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4666 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
4667 Sebastien and his fabulous magical problem-finding machine:
4668 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
4669 respect the value set.
4671 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
4673 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
4674 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
4676 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4678 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
4679 messages (to match .Net), we need to remove the capture ourselves.
4681 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
4683 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
4684 will process the message and close our window.
4687 2008-01-10 Geoff Norton <gnorton@novell.com>
4689 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
4690 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
4693 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4695 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
4698 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4700 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
4701 Linux doesn't care, having a minimum matches MS and keeps the window
4702 from becoming too small to use window decorations.
4705 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4707 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
4708 ShowFocusCues. Make focus rectangles fit the text instead of the whole
4709 control. [Fixes bug #325419]
4711 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4713 * ComboBox.cs: Guard against an NRE if the user open a new form from a
4714 SelectedIndexChanged event. This closes the combobox dropdown, and we
4715 were trying to dispose it. [Fixes bug #352830]
4717 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
4719 * Control.cs, Form.cs: Implement the necessary semantics for
4720 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
4721 to determine if a focus rectangle should be drawn.
4722 * PropertyGrid.cs: Fix property visibility to match override.
4723 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
4725 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
4727 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
4730 2008-01-09 Geoff Norton <gnorton@novell.com>
4732 * XplatUICarbon.cs: Scroll windows in the correct direction.
4734 2008-01-09 Geoff Norton <gnorton@novell.com>
4736 * XplatUICarbon.cs: Track all created utility windows so we can hide them
4737 when the app is deactivated or spaces is enabled.
4739 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4741 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
4742 extra separation pixel for the label rect origin if SmallImageList is
4743 null, and thus we don't need that separation between icon and label
4745 Patch by Ernesto Carrea.
4748 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
4750 * StatusStrip.cs: Invalidate after completing a layout. The base
4751 OnLayout does this, but we don't call the base.
4752 * ToolStripItem.cs: Revert the previous change to invalidate after
4754 [Fixes bug #351341 better.]
4756 2008-01-07 Geoff Norton <gnorton@novell.com>
4758 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
4759 not a notification to exit the application. Listen for WM_QUIT
4762 2008-01-07 Andreia Gaita <avidigal@novell.com>
4764 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
4766 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
4768 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
4769 so it can repaint at the correct location.
4772 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4774 * ListControl.cs: SelectedValue should return a null value if
4775 SelectedIndex is -1. Also, when setting it, it should throw an
4776 ArgumentNullException if the value is null, as well as taking
4777 into account the String.Empty value, instead of ignoring it (we have
4778 tests for that now).
4779 Fixes part of #324286.
4781 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
4783 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
4784 SelectionStart is updated after pressing enter. Fixes bug #351918.
4786 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4788 * TextControl.cs: Revert a piece r92316 that prevented the fix
4789 from working when there were multiple tags in the text box.
4792 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4794 * TextControl.cs: Apply patch from Luke Page that prevents an
4795 NRE when determining the beginning of a paragraph.
4798 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4800 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
4801 caret gets moved with clicking away from a selected block of
4802 text. Fixes bug #351885.
4804 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4806 * TextControl.cs: Apply patch from Luke Page that takes line
4807 alignment into account for mouse selection, so that center and
4808 right aligned text can be selected.
4811 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4813 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
4814 issues after loading an RTF file by using the correct line feeds.
4817 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4819 * TextControl.cs: When deleting multiple line selections, we need
4820 to invalidate every line beginning at the first line of the selection.
4821 Patch from Luke Page fixes bug #351791.
4823 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4825 * ListControl.cs: When getting a CurrencyManager.PositionChanged
4826 event, don't set SelectedIndex if the number of items is 1. This is
4827 because, for the first item, PositionChanged is fired _before_
4828 ItemChanged (the place where we actually populate the items), and
4829 leave us in a temporary invalid state (since items collection is
4833 2008-01-04 Geoff Norton <gnorton@novell.com>
4835 * XplatUICarbon.cs: Create native toolwindows instead of
4836 the managed drawing ones.
4838 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4840 * LineTag.cs: If the line doesn't have any characters, return
4841 0 for GetCharIndex. Fixes an AOORE exception after certain
4842 caret movements. Fixes bug #351683. Patch by Luke Page.
4844 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4846 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
4847 is hit when there is selected text, only the selected text gets
4848 deleted, not the character in front of the selection as well.
4851 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4853 * ComboBox.cs: When the values are displayed, calculate the
4854 ComboListBox scrollbar's LargeChange based on the visible area's
4855 height and the actuall ItemHeight, instead of calculating it
4856 based on MaxDropItems value, since it's not used by our _current_
4860 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4862 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4863 Patch from Luke Page that fixes issues with font colors and styles
4864 not showing up in a readonly RichTextBox. Fixes bug #324354.
4866 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4868 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
4869 from Luke Page. This one fixes bug #349926.
4871 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4873 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
4874 an item in the IBindingList source changes with
4875 ListChangedType.ItemAdded. Ignore for now firing the event for other
4876 changes, since we want to have tests for those cases as well.
4878 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4880 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
4883 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4885 * TextBoxTextRenderer.cs: Implement a cache for measuring each
4886 character. This is effective because the typical usage of a
4887 TextBox is with a limited amount of fonts and characters, and
4888 the current implementation of TextBox measures everything one
4889 character at a time. Another second or two speedup for bug #347238.
4891 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4893 * Control.cs: Rewrite the Font getter to only query the parent's
4894 Font property once instead of twice. Since this operation is
4895 recursive, the queries were growing exponentially as the control
4896 tree got deeper. Another second or two speedup for bug #347238.
4898 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4900 * Control.cs: Avoid setting a parent (and more importantly, updating
4901 the zorder of all its children) if the parent is already correct in
4902 WmShowWindow. Decreases the startup time of the test case on bug
4903 #347238 from 35 seconds to 11 seconds.
4905 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4907 * X11Dnd.cs: When the dnd operation has started and we are
4908 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
4909 This is done to match .Net, which doesn't send those messages after
4910 dnd operation was completed/cancelled.
4913 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
4915 * ToolStrip.cs: Previous change should be != null, not == null.
4918 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
4920 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
4921 user may have moved the mouse off the current item during the event.
4923 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4925 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
4926 calling GetItemAt for every MouseMove event by also taking into
4927 account whether any mouse button is pressed (probably dragging);
4928 if so, we can call GetItemAt, and if not, try to not call it
4929 (GetItemAt can be quite expensive when used with a large number of items).
4931 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4933 * ListView.cs: Implement -finally- support for dnd, by calling
4934 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
4936 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
4937 simple calculation of distances for all the items in the owner
4940 2007-12-21 Geoff Norton <gnorton@novell.com>
4942 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
4943 for windows that are originally created as invisible. Fixes missing
4944 main window in paint-mono.
4946 2007-12-21 Geoff Norton <gnorton@novell.com>
4948 * XplatUICarbon.cs: Register our D&D handler. Register our custom
4949 subclass handler for com.novell.mwfview subclassing HIView. Implement
4950 Pasteboard and Dnd methods.
4952 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4954 * ListBox.cs: When we got focus, give focus to first item if there
4955 wasn't any pervious focused item. Also update navigation to depend on
4956 SelectedIndex rather than FocusedItem, just as .Net does.
4959 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4961 * ListBox.cs: Both FindString and FindStringExact methods must do an
4962 case insensitive search, should allow the last valid index to be
4963 passed in the overload taking an initial index, and should also
4964 continue searching from the top back to the specified index when it
4967 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4969 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
4970 redraw issue, and allows RichTextBox to draw colored text even while
4971 disabled or readonly.
4973 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4975 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
4976 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
4977 and doesn't grey text in a disabled RichTextBox.
4979 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4981 * RichTextBox.cs: Apply patch from Luke Page that adds better support
4982 for many RTF commands: quad alignment, separate formatting for blocks
4983 inside groups, and ParDef support. Makes the test case from bug #324589
4986 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4988 * LineTag.cs: Fix an error in the new Draw method that caused
4989 a crash when rendering the document on bug #324589.
4991 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4993 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
4994 TextControl.cs: Apply patch from Luke Page that adds support
4995 for URL links in RichTextBox.
4996 [Fixes enhancement #342516]
4998 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
5000 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
5001 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
5003 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5005 * ListBox.cs: When a key gets pressed, try to find a string
5006 if the key is a character or a digit.
5009 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5011 * TableLayoutPanel.cs: Remove some unused variables.
5013 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5015 * DateTimePicker.cs: Commit patch from Luke Page that ensures
5016 we don't end up at an invalid date when we click the up/down
5017 spinner to change the month or year. Fixes bug #348682.
5019 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5021 * Application.cs: Calling Exit in 2.0 should chain to the
5022 Exit (CancelEventArgs) version so it can be cancelled.
5023 * Form.cs: Create a flag to allow raising the Closing
5024 events to be skipped. We raise them once in Application.Exit
5025 and don't want to raise them again when the Form is actually
5026 closed. [Fixes bug #349073]
5028 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
5030 * ToolStripDropDown.cs: Guard against an NRE when there
5031 hasn't been a mainform set in the application context.
5034 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5036 * ListBox.cs: When SetBoundsCore gets called, besides
5037 calling UpdateScrollBars, update the value of
5038 last_visible_index, since we could need to show more items
5039 than before, and we need to let the paint routines know that.
5042 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5044 * ListView.cs: Add DesignerSerializationVisibility attribute to
5045 InsertionMark property.
5046 * ListViewItem.cs: Add same attribute to Position property.
5048 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5050 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
5053 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
5055 * ThemeWin32Classic.cs: Don't draw the background on a
5056 flat button if there is a background image.
5059 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5061 * ListBox.cs: If we remove the item currently selected,
5062 remove it not only from SelectedItems, but also
5063 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
5064 the items count decreased and focused_item has bigger value than that.
5066 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
5068 * Control.cs: Perform our layout after we resize ourselves
5069 if we had to adjust our AutoSize. Missed commit for bug
5072 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
5074 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
5075 we can provide an implementation of AutoSize.
5078 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5080 * ListBox.cs: Add the internal overload Sort (bool paint),
5081 to indicate whether we actually need a paint or we will
5082 call Refresh ourselves. This way we don't request a paint
5083 _before_ having an updated and valid layout.
5086 2007-12-12 Andreia Gaita <avidigal@novell.com>
5088 * XPlatUIX11.cs: Send paint messages when updating a systray icon
5089 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
5090 properly invalidated.
5093 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5095 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
5096 don't simply assign it to our internal group field, but instead
5097 use our Group property, which should do all the neccessary work
5098 required to support groups. Fixes an issue reported to me (mail) by a
5099 guy using this new feature.
5101 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
5103 * Control.cs: Use Scale instead of ScaleControl to ensure the
5104 whole hierarchy gets scaled.
5107 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5109 * DateTimePicker.cs: Don't set the internal MonthCalendar's
5110 Parent property. Doing this causes the control to be hosted by
5111 the Form instead of being a popup window.
5114 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5116 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
5117 at an index higher than Count, just use Add instead of Insert.
5120 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5122 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
5123 DrawPictureBox, this is handled by Control.PaintBackground.
5126 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
5128 * MenuAPI.cs: When process menu keys return true by default only if menu is
5129 active. Fixes bug #342892.
5131 2007-12-09 Andreia Gaita <avidigal@novell.com>
5133 * Control.cs: check if windows are actually mapped before
5134 trying to zorder. Fixes #342509, #346955
5136 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5139 * ListViewInsertionMark.cs:
5140 * ThemeWin32Classic.cs: Implement the drawing side of the
5141 new 2.0 ListView.InsertionMark property.
5143 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
5145 * CurrencyManager.cs: Silence some debug spew.
5147 2007-12-07 Geoff Norton <gnorton@novell.com>
5149 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
5150 masks for our children as well as siblings to avoid having to query
5151 Quartz for this information.
5152 * XplatUICarbon.cs: Implement a delegate based system to pass
5153 information to System.Drawing. Implement Async methods. Remove
5154 the hack for the resize thumb and imlpement a transparent Grow Box.
5155 Rework the messaging system to proplery create window's and messages,
5158 2007-12-06 Andreia Gaita <avidigal@novell.com>
5160 * X11Keyboard.cs: Use Xutf8LookupString to support international
5161 characters under alternate codepages. Patch from #340878
5163 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5165 * ListView.cs: When doing layout computations, set position in the
5166 ListView instances (we cache the position just as .Net does).
5167 * ListViewItem.cs: New internal setter method for Position. Also set
5168 position field as also available in 1.1, since we are going to use it
5169 now in the common case.
5171 2007-12-06 Andreia Gaita <avidigal@novell.com>
5173 * Control.cs: When removing controls, get the actual container
5174 to notify about active control changes. Fixes 341314.
5176 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5178 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
5180 2007-12-05 Andreia Gaita <avidigal@novell.com>
5182 * Control.cs: When updating the zorder, ignore windows that are not
5183 mapped. Fixes #342509
5185 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5187 * ListViewItem.cs: Actually implement serialization on this class.
5189 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
5191 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
5192 LinkCollection. Spaces to tabs, and removed extra tabs.
5194 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5196 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
5197 tests to fail (hopefully).
5199 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5201 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
5202 the image margin so custom renderers can correctly place it.
5204 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5206 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
5207 so custom renderers can correctly place it.
5209 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5211 * Application.cs: Let WM_CHAR messages flow through to controls
5212 hosted in Strips. [Fixes bug #343972]
5214 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5216 * ToolStripManager.cs: Guard against an NRE I ran into.
5218 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5220 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
5221 a Link is manually added to the Links collection, we need to set
5222 its owner, so it can invalidate properly.
5225 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5227 * ListView.cs: When changing ListViewItem.Position (which calls
5228 ListView.ChangeItemLocation), invalidate not only the area
5229 corresponding to the main item, but also to the area occupied
5230 by the items being moved.
5232 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5234 * ListView.cs: When changing the position of a given item,
5235 don't use item bounds, but item areas (which includes the item spacing
5236 between them). Also, use first/last position if the requested
5237 position is outside bounds (as .Net does). Invalidate the previous and
5238 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
5239 in a specific position, instead of directly accessing Items collection
5240 (this is done to get the right item - remember an Item can have a
5241 different position in the grid than in the Items collection).
5243 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5245 * MessageBox.cs: Calculate text area instead of just top left, this rect
5246 area will be used in DrawString. Fixes bug #343364.
5248 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5250 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
5251 screen width. Partially fixes bug #343364.
5253 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5255 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
5256 code inside recalculate, it makes code more simple.
5258 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
5260 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
5261 between update or add icon. Fixes bug #324344.
5263 2007-11-21 Andreia Gaita <avidigal@novell.com>
5265 * XPlatUIX11.cs: Do not treat tool windows as if they have no
5266 window manager, since that stretches the drawing area to include
5267 the window decorations, and they get hidden. Reverts r84444 and fixes
5268 #335849 and #342790 (mdi and pdn3 regression)
5270 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5272 * ListView.cs: When setting focused item, try to give focus to the
5273 previous one _only_ if the previous one remains valid.
5276 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
5278 * Application.cs: Revert r89650, as it broke a common case to fix
5279 an obscure case. Fixes bug #342606.
5281 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5283 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
5285 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5287 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
5288 alignment. [Fixes #324228]
5290 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5292 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
5295 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
5297 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
5298 it prevent problems when empty captions. [Fixes #342141]
5300 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5302 * Label.cs: Use Size instead of None. Fixes bug #342077.
5304 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5306 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
5308 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5310 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
5311 but there isn't a MdiContainer.
5314 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5316 * TextControl.cs: Don't recalculate document if the recalc_start and
5317 recalc_end hasn't changed.
5320 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
5322 * DataGridViewTextBoxCell.cs: Removed CWL.
5324 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5326 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
5328 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5330 * TextControl.cs: Missed some code for bug 341534 to trigger a
5331 recalculation when the font changes.
5333 2007-11-16 Andreia Gaita <avidigal@novell.com>
5335 * Control.cs: When updating the zorder, check if the child to update is
5336 the same control that is set to always be on top (i.e., scrollbars), and
5337 just put it on top directly. Fixes BadMatch error on pdn3
5339 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5341 * ListView.cs: Throw the needed exceptions for FindNearestItem.
5343 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5345 * Control.cs: Don't perform a new layout when a label changes its text,
5346 cause label handles its own autosizing.
5349 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5351 * ListView.cs: Implement 2.0 FindNearestItem methods.
5353 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5355 * ToolStripPanel.cs: Make Join at least add the control to the panel,
5356 even if the rest of what Join does isn't supported. Add some more
5357 support for vertical toolbars.
5358 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
5359 [Fixes the application breaking parts of bug #341998]
5361 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5363 * ToolStripItem.cs: When determining if we have a check/image margin,
5364 we need to look at ShowCheckMargin as well as ShowImageMargin.
5366 2007-11-15 Geoff Norton <gnorton@novell.com>
5368 * XplatUIOSX.cs: Rename to...
5369 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
5370 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
5372 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5374 * KeysConverter.cs: The default values should be an array of Keys, not
5375 strings. Also, the array has more values for 2.0.
5378 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5380 * Application.cs: Change ExecutablePath to use
5381 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
5384 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5386 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
5387 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
5388 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
5389 be ignored. Create a new GetLineEnding that can specify which types of
5390 line endings to look for. On Insert, only create new lines for \n and \r\n.
5393 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5395 * TextBoxBase.cs: As we loop through each line changing the font, tell
5396 the document that the line needs to be recalculated. Fixes bug #341534.
5398 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
5399 [Another round of refactoring]
5400 * Line.cs: Add DeleteCharacters.
5401 * LineTag.cs: Add Delete.
5402 * TextBoxBase.cs: Update to use new methods.
5403 * TextControl.cs: Refactor the Delete* methods.
5405 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
5407 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
5408 the patch. [Fixes #324856]
5410 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5413 * ListViewItem.cs: Add an initial implementation of
5414 2.0 ListViewItem.Position getter.
5416 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5418 * ListView.cs: Add a reordered_items_indices array, to allow us
5419 to have a different sorting than that of Items (the sorting in Items
5420 could not match the actual sorting in screen). This is needed to
5421 implement a pair of 2.0 features.
5422 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
5423 actual position in the ListView grid, since it could have a position
5424 different than its Index (position in ListViewItemCollection).
5426 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5428 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
5429 not draw partial lines.
5430 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
5431 LineLimit flag from the base is preserved.
5432 Fixes the windows part of bug #338965.
5434 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5436 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
5437 so that it can be canceled in KeyPress.
5440 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5442 * ListView.cs: In ItemControl, reset mouse-handling related
5443 fields even if we dont' have items (we still should reset them when
5444 we had items but then called Items.Clear). Partially based in a patch
5448 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
5450 * Application.cs: In ProductVersion first try AssemblyFileVersion
5451 before falling back to assembly version. Fixes bug #339787.
5453 2007-11-08 Andreia Gaita <avidigal@novell.com>
5455 * HtmlElement.cs: Implement InnerText setter.
5456 * WebBrowserBase.cs: Implement Navigated event support.
5457 Add flag to track when the browser "document" is ready to be retrieved.
5458 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
5459 Make sure browser document is ready before retrieving it.
5460 Clean up cached objects (document) when moving to a new page through
5461 any of the navigation methods.
5462 Use the new Mono.WebBrowser.INavigation interface to control navigation.
5463 Implement OnNavigated event.
5465 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
5467 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
5468 DrawLinkLabel, this is handled by OnPaintBackground.
5469 Fixes bug #339565, part II.
5471 2007-11-07 Andreia Gaita <avidigal@novell.com>
5473 * Control.cs: Revert r88915. Selecting text on a textbox depends on
5474 getting a Select call on click, so this call needs to be here for now.
5477 2007-11-07 Geoff Norton <gnorton@novell.com>
5479 * OSXStructs.cs: Add the kEventClassApplication constants.
5480 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
5481 application is deactivated otherwise Menu overlays linger on top of
5482 other application windows.
5484 2007-11-07 Geoff Norton <gnorton@novell.com>
5486 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
5487 dont support cursors yet anyways. This allows Reflector to run.
5489 2007-11-07 Geoff Norton <gnorton@novell.com>
5491 * XplatUIOSX.cs: Implement DragSize.
5493 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5495 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
5496 ItemControl, request the focus, as .Net does. This is needed after
5497 Control does not request focus anymore when it receives a
5500 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
5502 * Label.cs: Make DrawImage internal so it can be called from Theme code.
5503 Remove the DrawImage call from OnPaint.
5504 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
5505 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
5506 but before we draw the text for DrawLabel and DrawLinkLabel.
5509 2007-11-05 Andreia Gaita <avidigal@novell.com>
5511 * Control.cs: Remove select call on click. Fixes #325809
5513 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5515 * ListViewItem.cs: Add 2.0 Position property getter.
5517 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5519 * ListView.cs: Add 2.0 BackgroundImageTiled property.
5520 Also, to make it work properly, change item's BackColor and
5521 BackgroundImageLayout as needed.
5522 * ThemeWin32Classic.cs: Don't fill any background rectangle
5523 in ListView.ItemControl when drawing items; just let the Control
5524 base implementation fill it.
5526 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5528 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
5529 as well as adding a custom 'dummy' Converter, as .net does.
5531 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5533 * PropertyGridView.cs: When clicking drop-down button,
5534 select an index in the listbox only if our standard values collection
5535 has one or more items.
5537 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5539 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
5542 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5544 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
5545 the value is not changed. This ensure a pushed button remains in that
5546 state when clicked again. When switching the value of PropertySort
5547 between Categorized and CategorizedAlphabetical, do not update the
5548 grid items and do not fire a PropertyChangedEvent. When clicking the
5549 sorting buttons, do not modify the PropertySort value when switching
5550 between Categorized and CategorizedAlphabetical but only update the
5553 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5555 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
5557 * PropertyGrid.cs: Also put Categorized button in pushed state when
5558 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
5559 for help description label.
5561 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5563 * ListView.cs: When calculating the biggest item for a given column,
5564 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
5567 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
5569 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
5570 value for PropertySort on 1.0 profile. PropertySortChanged event
5571 should only be fired on 2.0 profile. Fixed NullReferenceException
5572 in UpdateSortLayout when PropertyGrid contains no items.
5574 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
5576 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
5579 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5581 * ListViewItem.cs: Implement 2.0 IndentCount property.
5583 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5585 * X11Dnd.cs: When sending status in a dnd operation, compare current
5586 effect with the 'allowed' field instead of 'drag_data.Allowed', since
5587 the later is only created when a Winforms application is both the
5588 source and the target, but not when we are the target only.
5589 Fixes part of #324251.
5591 2007-11-01 Geoff Norton <gnorton@novell.com>
5593 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
5595 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
5596 children out of the drawing view on mac.
5597 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
5598 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
5600 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
5602 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
5603 on the non-hosted-control part of it shouldn't do anything.
5604 Fixes part of bug #327498.
5606 2007-11-01 Andreia Gaita <avidigal@novell.com>
5608 * WebBrowserBase.cs: revert previous change, resize can be called anytime
5610 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
5612 * Application.cs: When a toolstrip has the keyboard input loop, let messages
5613 it does not use flow through to controls that are hosted in menus.
5614 Same with mouse clicks.
5615 * Form.cs: Don't close all menus on click if the click is on a
5616 control hosted in a menu.
5617 Fixes part of bug #327498, and part of bug #325969.
5619 2007-10-31 Andreia Gaita <avidigal@novell.com>
5621 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
5623 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
5625 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
5626 Addresses an issue raised in bug #336218.
5628 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
5630 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
5631 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
5633 2007-10-30 Andreia Gaita <avidigal@novell.com>
5635 * ContainerControl.cs: Check if the active control is a
5636 child of a removed control and update active_control accordingly.
5639 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5641 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
5642 or the MaxDate. Fixed bug #337693.
5644 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5646 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
5647 after calling SetWindowLong for a form, to force an immediate NC refresh.
5648 Fixes first part of bug #325150.
5650 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5652 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
5653 simple. Fixes the last part of bug #322668.
5655 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5657 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
5658 needs to be TopMost as well, or else the MessageBox is under the form.
5659 Patch by George fixes bug #325300.
5661 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5663 * X11Dnd.cs: When starting a new drag operation, reset the static
5664 'dropped' field to false (previously the implementation didn't reset
5665 it and got confused after the first drag).
5668 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5670 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
5671 items instead of re-creating them all. For this purpose we now cache
5672 both CategoryGridEntry items and the GridEntries for the main object's
5674 * GridItem.cs: Make SetParent method abstract.
5675 * GridEntry.cs: Override the SetParent method (already there, but now
5679 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5681 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
5682 depending on its depth (as .Net does). Update the needed values in
5683 MouseDown handler. Also draw the plus/minus rect after the label,
5684 so we don't draw on top of it.
5686 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
5688 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
5689 processed by forms or controls when menu is active. [Fixes #333548]
5691 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5693 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
5694 parent doesn't have focus. This was causing ToolStripTextBoxes to take
5695 focus on mouse over.
5697 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5699 * TextControl.cs: Code cleaning, simplifying.
5701 2007-10-24 Geoff Norton <gnorton@novell.com>
5703 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
5704 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
5706 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5708 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
5709 the cap is maxvalue, not actually 0. [Fixes bug #336218]
5711 2007-10-24 Andreia Gaita <avidigal@novell.com>
5713 * SendKeys.cs: apply jpobst's patch to bug #332409
5715 2007-10-23 Andreia Gaita <avidigal@novell.com>
5717 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
5718 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
5721 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5723 * PropertyGridView.cs: If a property has an UIEditor available,
5724 make the drop-down/editor button available only if the property
5727 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5729 * PropertyGridView.cs: Don't make the grid item textbox
5730 editable when a drop-down control is available, but
5731 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
5732 true. The same bur the color of the grid item value's label.
5734 2007-10-22 Geoff Norton <gnorton@novell.com>
5736 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
5737 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
5738 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
5739 driver. Padd the bottom of all real windows so the resize thumb doesn't
5740 obscure scroll/status bars.
5742 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
5744 * WindowsFormsSection.cs: Implement.
5746 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
5748 * MdiClient.cs: Maximize new active mdi child when a maximized child is
5749 closed see #325434 patch.
5751 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
5753 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
5756 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5758 * PropertyGridView.cs: When showing the textbox for a grid item,
5759 have two local variables to store the read-only and non-editable
5760 status of a grid item (we were previously using just one variable
5761 to do this, when actually they are slightly different).
5762 Fixes part of #325023.
5764 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5766 * PropertyGridView.cs: When showing a drop-down list, try to get the
5767 values using TypeConverter.ConvertTo (to convert to a string). Fixes
5770 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5772 * PropertyGrid.cs: When updating a property and populating sub grid
5773 items, remove the previous ones, and invalidate the specific area.
5774 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
5775 area behind a grid item.
5776 * GridItemCollection.cs: Add an internal Clear method, to allow us to
5777 clean the items if needed (specially for controls implementing
5778 ICustomTypeDescriptor and returning a variable number of properties).
5781 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
5783 * TextControl.cs: Clean up and document the Insert function.
5785 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5787 * TextControl.cs: Make sure we know our start point for updating the view
5788 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
5791 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5793 * ListView: Couple of corcompare fixes.
5795 2007-10-17 Geoff Norton <gnorton@novell.com>
5797 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
5798 the title caption of real window.
5800 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5802 * ErrorProvider.cs: Add the error provider's internal window to a
5803 containercontrol when the parent changes. [Fixes bug #329714]
5805 2007-10-17 Geoff Norton <gnorton@novell.com>
5807 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
5808 When we make a new window; restore the old active window - fixes dialogs.
5810 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5812 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
5813 when modifying a property, and if found then invalidate as
5815 Fixes part of #324865.
5817 2007-10-17 Geoff Norton <gnorton@novell.com>
5819 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
5820 highly experimental. Fixed coordinate translation. Fixed window locations.
5821 Initial support for clipping. Implemented NC areas and menus. Support for
5822 launching from command line from Will Johansson (wjohansson@atacomm.com).
5823 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
5824 wjohansson@atacomm.com)
5825 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
5826 Hwnds now track the existence of all of their children for Mac clipping.
5827 * XplatUI.cs: Re-enabled the native driver on the Mac.
5829 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5831 * Line.cs: Move the InsertString function to here.
5832 * TextControl.cs: Cleanup some duplicate code, move some InsertString
5833 functionality to Line.
5835 2007-10-17 Geoff Norton <gnorton@novell.com>
5837 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
5839 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
5841 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
5842 always setting value to true.
5843 * Form.cs: When changing AcceptButton, notify new and original button.
5845 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
5847 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
5848 a custom control that implements IButtonControl instead of an actual
5849 button. [Fixes bug #334244]
5851 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
5853 * Form.cs: Change SelectActiveControl to internal, we need to call it in
5856 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
5857 active control when activate a new mdi window.
5861 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
5863 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
5867 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
5869 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
5870 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
5871 so we always recalculate the whole document instead of just the new part.
5874 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
5876 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
5877 when the mouse was to the left of the first character in the line.
5879 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
5881 * TextBox.cs, TextBoxBase.cs: When setting the document's password
5882 character, use the property instead of the variable so that the
5883 UseSystemPasswordChar property is taken into account.
5886 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5888 * FolderBrowserDialog.cs: When a node is right clicked and the "New
5889 folder" contex menu appears, actually add the new folder to it, even
5890 if the node is not currently selected. Still use SelectedNode in case
5891 there wasn't found a node under the pointer.
5894 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5896 * ListViewItem.cs: When retrieving the focused state, the index check
5897 should be done only when ListView is in virtualmode, as it is an
5898 expensive check for normal mode.
5900 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5902 * ListViewItem.cs: Make the focus state information be stored
5903 in the ListView, not in the items. This is done to match the MS
5904 behaviour for items that are not yet part of a ListView control;
5905 besides that, since just one item can be focused at the same time,
5906 we save a little space in our items.
5907 Fixes part of #331643.
5909 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5911 * ComboBox.cs: When focus is lost, deselect the text. When setting
5912 text of control, select all text. Do not hide selection when control
5913 does not have focus. Fixes bug #333663.
5915 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5917 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
5918 instead of ArgumentException when SelectionLength is set to negative
5919 value. Added same check to SelectionStart. Code formatting.
5921 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5923 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
5924 or SelectionStart. Code formatting.
5926 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5928 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
5929 indicating that there was not a previous drag-and-drop operation going
5931 Fixes part of #325071.
5933 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5935 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
5936 AllowedEffect, don't let the drop operation happen.
5939 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
5941 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
5943 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
5945 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
5948 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
5950 * Line.cs: Add a method that finds the tag that contains an x-coord.
5951 * LineTag.cs: Add a method that finds the character at an x-coord using
5952 a binary search, the old way was a linear search.
5953 * TextControl.cs: Change FindCursor to use the above new methods.
5955 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5957 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
5958 value different than AllowedEffect). This should be possible to
5959 indicate that dragging is not possible in some control/area.
5961 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
5963 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
5964 descent internally when font changes instead of outside code being responsible
5966 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
5967 instead of accessing internal variables.
5969 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
5971 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
5972 remove special treatment for ArrangeIcons since it is already arranged.
5974 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5976 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
5977 the Win32 backend uses Color.
5978 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5979 Refactor to store a Color instead of a Brush for Color.
5981 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5983 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
5984 away. I didn't realize I needed this when I refactored these earlier.
5986 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5988 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
5989 store a Color structure and use the ResPool for back color instead of
5990 holding onto brushes.
5992 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5994 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
5997 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5999 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
6000 to recalculate its size. Fixes a part of bug #331052.
6002 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6004 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
6005 button. Fixes a part of bug #331052.
6007 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6009 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
6011 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
6015 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6017 * TextBoxTextRenderer.cs: Don't make this a static class, as static
6018 doesn't exist in 1.1. (Thanks jb!)
6020 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6022 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
6023 class to allow us to use different backends on different platforms.
6024 Linux uses the current [Draw|Measure]String backend. Windows uses
6025 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
6026 of GDI+. This leads to better looking text and more accurate measurements
6027 on Windows, fixing many of the reported issues.
6028 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
6030 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6032 * FolderBrowserDialog.cs: When running on Windows,
6033 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
6034 since we must match both "C:" and "C:\" forms. A little hackish, but
6038 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6040 * ListView.cs: When calling EndEdit (after editing an item),
6041 create a new instance of LabelEditEventArgs to keep clean the fields
6042 in case we get a new call to BeginEdit; also do Application.DoEvents
6043 to have focus in synch. This is a fix similar to TreeView's #325244.
6045 2007-10-07 Andreia Gaita <avidigal@novell.com>
6047 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
6048 * WebBrowserBase.cs: Added dialog support, calling the
6049 WebBrowserDialogs classes for each specific dialog type.
6051 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6053 * ListView.cs: When the last item is focused and is removed,
6054 move the focus to the previous item (in Items order). This is what MS
6058 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6060 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
6061 instead of the opposite (RemoveAt call Remove). This is a better
6062 approach since we don't need to to a pair of traversals when using
6065 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6067 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
6068 check that the node actually has nodes, and if not, move to the
6069 parent node instead.
6072 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6074 * TreeView.cs: Move the previous change to the general case (to
6075 call Application.DoEvents in cases where the method was called by
6078 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6080 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
6081 call Application.DoEvents. This is neccessary when we get a call to
6082 BeginEdit from an AfterLabelEdit handler, because the focus always
6083 goes to the TreeView, even if we try to give it to our
6084 LabelEditTextBox. The call do Application.DoEvents seems to
6085 synchronize the focus, basically.
6088 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6090 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
6091 should be false. This also removes some nasty recursive paths. Fixes
6094 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
6096 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
6097 state to normal. Also resize window when cascading. Fixes #325433.
6099 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6101 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
6102 DefaultForeColor, as drawing empty colored lines isn't very useful.
6103 [Fixes the not drawn lines part of bug #324358]
6105 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6107 * TextControl.cs: Move Line and LineTag classes into separate files to
6108 make things easier to find.
6109 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
6110 * RichTextBox.cs: Capitalize LineTag.Length property access.
6111 - This is purely an organizational/formatting change, no logic changed. -
6113 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6115 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
6118 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6120 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
6123 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6125 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
6126 prevent calling of OnBackColorChanged. Fixes #325321.
6128 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6130 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
6131 because control can be disabled because owner is disabled.
6133 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
6135 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
6136 string.Empty, test failed from previous change.
6138 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
6140 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
6141 is null, not String.Empty. See bug #323038.
6143 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
6145 * TextControl.cs: Change the margins to match MS a little better.
6146 Still not perfect for X11 due to some DrawString differences, but
6147 is still an improvement over the old stuff.
6148 Partially fixes #324467.
6150 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6152 * FolderBrowserDialog.cs: When using MyComputer as
6153 RootFolder, let absolute paths be considered as valid ones. Also, use
6154 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
6155 for Windows compatibility.
6156 Partially fixes #325247.
6158 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6160 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
6161 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
6162 method, since it causes the dialog to not select folders directly
6163 under the root path (when setting SelectedPath property).
6165 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6167 * TreeNode.cs: When calling Expand/Collapse and need to call
6168 ExpandBelow/CollapseBelow respectively, take into account
6169 partially visible nodes (previously Expanding/Collapsing
6170 a partially visible node in the bottom was not updating its +- sign).
6172 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6174 * TreeView.cs: When calling Expand on a TreeNode, and we need to
6175 expand nodes below (ExpandBelow), scroll the entire Viewport
6176 area if the node is above it and not visible (instead of scrolling
6177 the area from node's Bottom, which applies only when the node is
6181 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6183 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
6184 node in the bottom area (as .Net does). This is done to preserve the
6185 scroll position when ExpandAll is called before handle is created for
6186 the 1.1 profile (bottom area, as opposed to top area in 2.0).
6189 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6191 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
6192 bottom area if we are in fact not using the vertical scroll bar.
6195 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6197 * Control.cs: Comment out a double buffering optimization that doesn't
6198 take into account invalidates created in OnPaint, causing the control
6199 to never be redrawn. It would take quite a bit of work to work around
6200 this, but I left it commented with an explanation for later possible
6204 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6206 * Control.cs: Ask parent to perform a layout if control is AutoSize and
6208 * RadioButton.cs: Implement GetPreferredSizeCore.
6211 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6213 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
6216 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6218 * Application.cs: Move the sync context stuff to Run instead of RunLoop
6219 so that it doesn't get uninstalled on modal forms.
6220 * Control.cs: Install a sync context when a control is created.
6221 * WindowsFormsSyncronizationContext.cs: Create a private static control
6222 to invoke on. This is easier than trying to find a created control we
6226 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
6228 * Application.cs: Install a WindowsFormsSynchronizationContext in the
6229 run loop, and uninstall it when done.
6230 * WindowsFormsSynchronizationContext.cs: Implement.
6231 [Fixes the common case in bug #327608]
6233 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
6235 * DataGridViewCellCollection.cs: Added argument checks for indexers.
6236 Use case-insensitive lookup of column name in indexer. Code
6239 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6241 * TreeNode.cs: When collapsing or expanding a node, check whether its
6242 change will affect the visible area (we were previously doing a
6243 IsVisible check, but that check is not enough since children nodes
6244 could be still visible). Fixes part of #325266.
6246 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6248 * TreeView.cs: Always select the first node when the TreeView gets
6249 focus if there is no currently selected node.
6252 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6254 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
6255 node being selected is null.
6256 [Patch from Yves Bastide fixes bug #326858]
6258 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6260 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
6261 whether all the parent nodes are expanded.
6262 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
6263 call RecalculateVisibleOrder if all previous nodes are expanded.
6264 Before that we were doing a IsVisible check, but sometimes the node
6265 is not in the visible area, but _should_already be ready, because of
6266 all previous nodes are expanded. Fixes #325259.
6268 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6270 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
6271 portion of the item is clicked.
6273 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6275 * TextControl.cs: Do not tell the system to move the cursor if the
6276 textbox isn't focused. Fixes part of bug #322668.
6278 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6280 * ComboBox.cs: When there are no items, do not show the dropdown if
6281 the down arrow is clicked. Fixes part of bug #322668.
6283 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6285 * ToolStripComboBox.cs: Manually set the size of this control in the
6286 constructor, as it doesn't seem to be the same as DefaultSize.
6287 Fixes a failing monobuild test.
6289 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6291 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
6292 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
6294 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6296 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
6297 Desktop. This lets it work for people who have moved their desktops
6298 from the default location on windows. For people who have not, both
6299 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
6301 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6303 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
6304 but when the base constructor sets this, the control is null. Set it
6305 again in the constructor. Fixes a failing monobuild test.
6307 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6309 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
6311 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
6314 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6316 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
6317 will handle it themselves.
6318 * ToolStripItem.cs: When deciding what the text of a tooltip should
6319 be, use the Text property instead of the text field.
6320 * ToolStripTextBox.cs: Handle tooltips.
6321 [Fixes bugs #325417 and #325973]
6323 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6325 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
6326 left click. Fixes the easy part of bug #325969.
6328 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6330 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
6331 bug #325406, but set a minimum for StatusStrip to 22 to keep
6332 bug #325390 fixed. I think this minimum would have been figured
6333 up automatically if the grip was actually a ToolStripItem, but it
6336 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6338 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
6339 as this is apparently the actual value used by .Net. Also apply
6340 ItemPadding in Details view only, and decrease the general width padding,
6341 to have only the needed. This should fix #324340 in Windows too.
6343 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6345 * ListViewItem.cs: Don't Invalidate item if parent is inside
6346 a BeginUpdate/EndUpdate block. This prevents to have differences
6347 between the ListView and items state, as well as avoid some exceptions
6349 * ListView.cs: Make 'updating' field internal.
6351 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6353 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
6354 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
6355 size if appropriate.
6356 Fixes reopened bug #325414.
6358 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6360 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
6361 * ToolStripItem.cs: Invalidate before and after our new autosize when
6363 Fixes reopened bug #325390.
6365 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6367 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
6368 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
6371 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6373 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
6375 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6377 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
6378 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
6381 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6383 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
6384 item to select when the ToolStrip is selected.
6385 * ToolStripControlHost: Realign the control when the bounds or visibility
6387 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
6388 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
6390 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
6391 base.OnPaint. Was causing text not to be drawn.
6393 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6395 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
6397 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6399 * TreeView.cs: When creating the label edit text box,
6400 set is initially to Visible = false. This is done to
6401 prevent a confusion in the layout which makes it to lose
6402 focus when shown the first time. Fixes part of #82592.
6404 2007-09-13 Andreia Gaita <avidigal@novell.com>
6406 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
6408 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6410 * ToolStrip.cs: Take Margin into account when calculating preferred
6411 size. Also, allow preferred size to get smaller than the explicit
6413 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
6414 First step towards fixing bug #82747.
6416 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6418 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
6419 full row select background over the plus/minus glyph. Also, turn
6420 off the focus rectangle for full row select since MS doesn't seem
6421 to ever paint it. [Fixes bug #81839]
6423 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6425 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
6426 This was causing keyboard opened dropdowns to lose focus.
6429 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6431 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
6432 ClientRectangle instead. [Fixes bug #82838]
6434 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6436 * SplitContainer.cs: We can't reset Visible on every layout because
6437 someone may have set Visible = false explicitly on a SplitterPanel.
6438 Make sure when we switch orientation the SplitterDistance does not
6439 change. Fixes two failing tests.
6441 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6443 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
6444 TextRenderer, since the latter is only available in 2.0.
6446 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
6448 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
6449 * SplitContainer.cs: Implement FixedPanel layouting.
6451 2007-09-12 Andreia Gaita <avidigal@novell.com>
6453 * WebBrowserBase.cs: setup shutdown routine
6455 2007-09-12 Andreia Gaita <avidigal@novell.com>
6457 * Application.cs: Let keyboard events that are targetted
6458 to non-mwf windows hosted inside mwf (as in, webbrowser),
6459 propagate properly. Fixes keyboard handling on the webbrowser.
6461 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6463 * ListView.cs: When handling MouseUp event and we are
6464 highligting a node with the mouse right button, don't trigger
6465 Before/AfterSelecting event, since we are not actually selecting
6468 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6470 * TreeView.cs: When editing a node, modify the edit text box
6471 depending on the text length (as you are typing), like MS does.
6473 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6475 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
6476 Override GetPreferredSizeCore to perform calculations. Remove custom
6477 autosize logic. [Fixes bug #82739]
6479 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6481 * TextBoxBase.cs: Modified should default to false.
6483 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6485 * Control.cs: Update the anchoring distances even when layout is supspended.
6486 Patch provided by George fixes bug #82805.
6488 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6490 * Control.cs: Provide a setter for ExplicitHeight.
6491 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
6492 remove the hacks in here for requested_height.
6495 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6497 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
6498 Maximum to lower that its current Value caused an ArgumentException by setting
6499 the Value to the new Maximum.
6501 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6503 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
6504 handle moves to the closest tick when it is being dragged.
6507 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6509 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
6510 can't let them count as real items when calculating where to merge in the
6511 user's items. [Fixed bug #82786]
6513 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6515 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
6516 who want to add a menu item directly onto a toolstrip.
6517 [Fixes bug #82775, part II]
6519 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6521 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
6522 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
6523 don't set it to available.
6524 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
6525 [Fixes bug #82727, part II]
6527 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6529 * StatusStrip.cs: Change item placement to None if not visible.
6530 * ToolStripItem.cs: Invalidate when InternalVisible changes.
6531 These should have been committed to fix 82723, but I missed them.
6533 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6535 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
6536 Click, and that it is only called once.
6537 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
6538 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
6542 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6544 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
6546 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
6547 instead of 8, just like above. Partially fixes #82734.
6549 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6551 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
6554 * ListView.cs: Remove extra space between rows in Details view (match
6556 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
6559 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
6561 * Application.cs: Modified ProductVersion to return value of
6562 AssemblyInformationVersion if available, and fallback to assembly
6563 version. Fixes bug #82746. Code formatting.
6564 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
6567 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6569 * Control.cs: When updating ZOrder for a child control,
6570 take into account the implicit ones (we need it in our controls
6571 using them). Fixes #82642.
6573 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
6575 * ToolStripItem.cs: Add support for animated images.
6578 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
6580 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
6581 visible. [Fixes bug #82727]
6583 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6585 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
6586 so we repaint using the new size. [Fixes bug #82723]
6588 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6590 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
6591 option. [Fixes bug #81779]
6593 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6595 * TreeView.cs: Override HandleClick because the StandardClick style is
6596 set to false. According to MSDN (and testing), the click events should
6597 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
6599 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6601 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
6602 the border will disappear. Fixes reopened #82653.
6604 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6606 * Control.cs: If the control is autosize, and its preferred size changes
6607 when it lays out its children, tell its parent so it can be re-layed out.
6608 Fixing some of the fallout from r85433.
6610 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6612 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
6613 and CheckBox share some code.
6615 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6617 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
6618 the TrackBar, not every mouse move. [Fixed bug #82718]
6620 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6622 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
6623 under 2.0 rendering. [Fixes bug #82657]
6625 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6627 * TreeView.cs: If we found a TreeNode to display a context menu, but
6628 it doesn't have one to show, let the TreeView display its menu
6629 instead. [Fixes bug #82680]
6631 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6633 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
6634 OnPaintInternal instead. Give the internal TextBox a Border property
6635 so it can draw itself more correctly. [Fixes bug #82653]
6637 2007-09-06 Zoltan Varga <vargaz@gmail.com>
6639 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
6641 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6643 * ComboBox.cs: Adjust combobox button state to reflect current state when
6644 back to enabled = true. Fixes first issue of #82654.
6646 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6648 * Control.cs: Fix last patch regression, prevent forms to update zorder when
6649 setting visible property.
6651 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6653 * Control.cs: Update zorder after control creation in SetVisibleCore, it
6654 fix zorder for controls initially created as non visible. Fixes #82667.
6656 2007-09-04 Everaldo Canuto <everaldo@simios.org>
6658 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
6659 mimic win32 look. Fixes #82656.
6661 2007-09-01 Zoltan Varga <vargaz@gmail.com>
6663 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
6664 Stubs for new net 3.5 classes.
6666 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6668 * ListViewItem.cs: In ListViewItemCollection operations calculate
6669 Layout for owner as well as invalidate it. Fixes part of #82642.
6671 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
6673 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
6674 when returning Enabled. [Fixes bug #82651]
6676 2007-08-30 Everaldo Canuto <everaldo@simios.org>
6678 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
6680 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6682 * ListView.cs: Put item padding info in a single place
6683 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
6685 * ThemeWin32Classic.cs:
6686 * Theme.cs: Likewise.
6688 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6690 * ListView.cs: When a ListViewSubItem instance is invalidated,
6691 invoke Invalidate on parent ListViewItem, not parent ListView.
6694 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6696 * ListView.cs, ListViewItem.cs: corcompare stuffs.
6698 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6700 * BindingMemberInfo.cs: Implement == and != operators.
6702 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6704 * HtmlElementEventArgs.cs: Implement properties.
6706 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6708 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
6710 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6712 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
6713 Add (string,string,string) to implement the imagekey. It turns out, we
6714 use the requested imagekey whereas .Net does not. So I broke ours to match
6717 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6719 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
6721 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6723 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
6725 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
6727 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
6728 up-to-date. Fixes bug #82618.
6730 2007-08-29 Everaldo Canuto <everaldo@simios.org>
6732 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
6733 reflect document changes. Fixes #82367.
6735 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6737 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
6738 as well as add new ones. This should make work the BackgroundImage
6739 property for ListView again.
6741 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6743 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
6744 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
6745 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
6747 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6749 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
6752 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6754 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
6755 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
6757 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6759 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
6760 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
6762 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
6764 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
6766 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
6768 * GridEntry.cs: Implement GetService.
6770 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
6772 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
6773 for label editting, make sure we focus back on the TreeView.
6776 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6778 * ListView.cs: Add some 2.0 overrides.
6780 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
6782 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
6783 because getter dont returns right value before handle creation. Thanks
6784 to George. Fixes #82569.
6786 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
6788 * Theme.cs: Revert last patch, it causes error under win32.
6790 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
6792 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
6793 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
6794 logical Desktop rather than the physical file system location. Fixes #82603.
6796 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
6798 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
6799 for the patch. Fixes #82568.
6801 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6803 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
6806 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6808 * ListViewInsertionMark.cs: New stubbed class.
6810 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
6812 * FolderBrowserDialog.cs: When adding folder, immediately create the
6813 directory with temporary name and rename the directory when editing
6814 finishes. This matches MS. Ensure the node for the new folder is
6815 selected and LabelEdit is disabled, when editing is either finished
6818 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
6820 * TreeView.cs: When editing label of node, ensure node is visible.
6822 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
6824 * PropertyGridView.cs: Set the value only if it has changed.
6826 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6828 * ListView.cs: Some more code refactoring to add support sorting
6829 with groups (now for Details view). Remove unused code also.
6831 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6833 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
6834 Not a big fan of reacting immediately to a field in an EventArg, but that's
6835 the way it's done. (This is part of the previous commit that got left out.)
6837 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
6839 * FolderBrowserDialog.cs: Removed need for separate description field.
6840 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
6841 has focus when dialog box is displayed again, regardless of what
6842 button was pressed the previous time. Set RootFolder and SelectedPath
6843 each time dialog box is displayed. This ensures the treeview is
6844 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
6845 when it does not have focus. Added support for more special folders.
6847 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6849 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
6850 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
6851 it resets the edit_args.
6852 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
6855 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
6857 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
6858 button to match MS. Provide more meaningful exception message for
6859 invalid RootFolder value. Use zero-length string when SelectedPath
6860 is set to null. Allow non-rooted paths in SelectedPath, but ignore
6861 them in FolderBrowserTreeView. Allow folders to be created in
6862 RootFolder. Fixes bug #82576.
6864 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6866 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
6867 since we need to take into account the group headers and the margin
6869 * ListViewGroup.cs: Add a rows field to store the number of rows per
6872 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6874 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
6875 Anyways, let's just follow the lead.
6877 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6879 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
6880 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
6881 controls in GetPreferredSizeCore.
6882 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
6885 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6887 * PrintDialog.cs: Need to instantiate the form variable here too.
6889 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6891 * ListView.cs: Do some reorganization to support sorting in groups,
6892 by doing the layout sequentially in ListView.Items. Also add support
6893 for the Default Group, which should be available for items with no
6895 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
6896 for storing layout info also.
6897 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
6898 collection, as well as providing internal members to do a traversal
6899 including the default group (needed when doing layout/drawing).
6900 * ThemeWin32Classic.cs: When drawing group headers use internal
6901 ListViewGroupCollection members to take into account the default
6904 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
6906 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
6908 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6910 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
6911 been created. If handle is created, we want arror keys. If we are editing
6912 a node, we want things like enter, esc, home, end, page up, page down.
6913 Allows Esc to work for FolderBrowserDialog.
6915 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6917 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
6918 they close when ESC is pressed. Thanks Andy!
6920 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6922 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
6923 This way we can tell if this is a CommonDialog provided with mono, or one
6924 that is being implemented outside by a developer. If it is an external one,
6925 the developer is responsible for showing their own form. We were showing
6926 our blank form after the developer showed his.
6927 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
6928 PageSetupDialog.cs: Instantiate form variable in our constructor.
6931 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6933 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
6934 and always return true. [Fixes bug #81616]
6936 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6938 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
6939 TextBox. [Fixes bug #82549]
6941 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
6943 * FileDialog.cs: When Save/Open is clicked and no filename is selected
6944 or entered then do not close the dialog. Fixes bug #82539. Removed
6947 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
6949 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
6950 code to this method. It is calling every time filter changes. This method
6951 will help to fix the bug #80887.
6953 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
6955 * CheckBox.cs: Implement AutoSize calculation.
6957 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
6959 * CheckBox.cs: Use new 2.0 rendering for 2.0.
6960 * Theme.cs: Method declarations for 2.0 rendering path.
6961 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
6963 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6965 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
6967 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6969 * ListViewGroupCollection.cs: Implement AddRange the right way, to
6970 only call Redraw on the parent one time.
6972 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
6974 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
6975 GetClipboardContent.
6976 * DataGridViewCell.cs: Implemented GetClipboardContent,
6977 GetEditedFormattedValue, GetFormattedValue.
6978 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
6980 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
6982 * TableLayoutStyleCollection.cs: corcompare fix.
6984 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
6986 * DataObject.cs: Implemented retrieval of convertible / not convertible
6989 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
6991 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
6992 ourselves. This ensures the entire old bounds are repainted, in case our new
6993 size is smaller. [Fixes bug #82518]
6995 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
6997 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
6998 flag to make fast handle of mouse events, without this the mouse move is
6999 handled in some manner, whether it is a mouse move or not. Fixes #81588.
7001 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7003 * ListView.cs: When doing layout calculations don't use a ref
7004 param to keep the current item; instead use its Index value (this
7005 is specially important when doing the layout with Groups
7006 and Items being sparse). Also don't take into account items added to
7007 the Group but not yet added to the main ListView.Items collection.
7009 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7011 * ListViewGroupCollection.cs: Forgot to mimic an issue
7012 in the indexer (don't assign the ListView owner for new values).
7014 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7016 * ListViewGroupCollection.cs: Make the string indexer use
7017 the int based indexer to re-use code, instead of duplicate the code.
7018 Also Redraw as needed and take into account null values.
7020 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
7022 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
7025 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
7027 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
7028 when other buttons are clicked or navigated to.
7030 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7032 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
7033 it's XplatUIX11 that attaches them.
7035 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7037 * DataGridView.cs: If a column has been added, recreate the editing row.
7040 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7042 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
7043 of the tag to draw. Makes disappearing text show up again.
7045 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7047 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
7048 Contents. Fixes #82487.
7050 2007-08-19 Andreia Gaita <avidigal@novell.com>
7052 * Added HtmlElement.cs, HtmlElementCollection.cs,
7053 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
7055 2007-08-19 Andreia Gaita <avidigal@novell.com>
7057 * BindingSource.cs: Implement this, dispose and getenumerator.
7058 * DataGridViewRowCollection.cs: Move the InvalidOperationException
7059 out of AddInternal, throw it only on public Add calls. The
7060 UsingWebBrowser sample was blowing up with this when setting the
7061 DataSource after adding DataBindings, so it's likely that .net
7062 only throws this exception when Add is called directly.
7064 * ToolStripControlHost.cs: Return the hosted control's text
7065 property, and not the ToolStripItem one (it would always return
7068 * HtmlDocument.cs: Implement GetElementById and All
7069 * WebBrowser.cs: Remove exception on set_DocumentStream.
7071 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7073 * Form.cs: Fix the max and min value for opacity (0~1).
7075 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7078 * DataGridTableStyle.cs: Default header font is now null, on getter it
7079 returns datagrid font when is null. On setter permits null.
7082 - When ResetHeaderFont set header font to null.
7083 - On EndInit set grid_style.DataGrid.
7085 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7087 * TabControl.cs: Fix regression in default padding x.
7089 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7091 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
7093 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7095 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
7096 not 2. Fixes #82229.
7098 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7100 * TabControl.cs: Fix tab size when image height is less than text height.
7101 Partially fixes #81837.
7103 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7105 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
7106 "alt + tab". It works only for Win32, for X11 theres no way to remove window
7107 from taskbar and keep it on "alt_tab". Fixes #81722.
7109 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7111 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
7112 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
7113 Fixes #80877 and #79418.
7115 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7117 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
7118 between position and one of the screen borders. Fixes #82349.
7120 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7122 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
7123 the MessageBox in the taskbar. Fixes #82457.
7125 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7127 * MessageBox.cs: Fix form size when icon is set and text height is bigger
7128 than icon. Fixes #82468.
7130 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7132 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
7133 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
7134 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
7135 Refactored HandleNCCalcSize somewhat to avoid code duplication.
7136 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
7137 FormBorderStyle to decide if we're calculating a new size from the
7138 client size or not. CreateParams: Don't fake tool windows, only the X11
7139 backend manages toolwindows manually.
7141 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7143 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
7144 ObjectDisposedException.
7146 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7148 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
7149 in OnLoad should not have any effect. [Fixes bug #82470]
7151 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7153 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
7154 paint for controls that create their own ToolTipWindow instead of
7155 going through ToolTip.
7157 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7159 * ToolTip.cs: Make Hide internal instead of public to match MS API.
7161 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7163 * ListViewGroupCollection.cs: Use generic List instead of an
7164 ArrayList, since this collection is 2.0 only.
7166 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
7168 * ToolTip.cs (Hide): Made public to make the build work (should
7169 this not be public?).
7171 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7173 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
7175 * ToolTip.cs: Add an internal Visible property to facilitate transition.
7177 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7179 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
7180 PopupEventHandler.cs: Make these internal for 1.1.
7181 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
7182 use ToolTipWindow internals.
7183 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
7184 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
7186 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7188 * X11Dnd.cs: Add a null check.
7190 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7192 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
7193 nothing else succeeds. Fixes #82453.
7195 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7197 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
7198 rectangle if we're painting to another window than the one the paint
7199 message was generated on. Simplify the code somewhat, which makes
7200 PaintEventEnd also simpler.
7202 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7204 * Control.cs: When changing parent of a form, let the form decide whether
7205 XplatUI.SetParent should be called or not.
7206 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
7207 recreating the handle. If the new parent's handle isn't created, don't
7208 recreate our handle, just destroy it. CreateParams: Check if the
7209 parent's handle is created before fetching it.
7211 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7213 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
7214 Update calls to PaintEventStart/End to take a Message argument.
7215 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
7216 take a Message argument.
7217 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
7218 Message argument, and handle the case where we don't paint to the window
7219 for which the paint message was generated.
7221 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7223 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
7224 Marshal.GetLastWin32Error. Plug nasty memory leak in
7225 PaintEventStart/End, we were creating a DC we weren't releasing.
7227 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7229 * ListView.cs: Add Groups support in Details view. Also have a small
7230 method to do the layout of the group header. Don't use a separate
7231 method to do the groups calculation in Icons view, since our methods
7232 are now a little simpler.
7233 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
7235 * ThemeWin32Classic.cs: Likewise.
7237 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7239 * Application.cs: Add FilterMessage method and rework our message loop
7242 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7244 * Application.cs: Add some methods and stub a few methods that are
7245 pretty much never used.
7247 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
7249 * TreeNode.cs: Add some serialization methods.
7251 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7253 * ListView.cs: In ListViewItemCollection have a
7254 'is_main_collection' field to not modify ListViewItem.ListView
7255 when using it as ListViewGroup.Items (and not ListView.Items)
7256 and also don't modify selection state (.Net behaviour).
7257 Instead, set group for items contained in a ListViewGroup.Items collection.
7258 * ListViewItem.cs: Simplify some code in Group setter.
7259 * ListViewGroup.cs: use the new .ctor to pass the current instance
7260 to the ItemsCollection.
7261 * ListViewGroup.cs: Set the ListView property for ListViewGroup
7262 instances when adding/removing. Also make Remove use RemoveAt, which
7263 should perform better.
7265 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7267 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
7268 that crept into the 1.1 profile.
7270 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7272 * ToolBarButton.cs: Implement ImageKey.
7274 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7276 * ToolBar.cs: Implement ScaleControl/ScaleCore.
7278 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7280 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
7281 created, it might have gotten destroyed since we last checked. Fixes
7284 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
7286 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
7287 tooltip will hide when mouse is moved off the control.
7290 2007-08-11 Andreia Gaita <avidigal@novell.com>
7292 * WebBrowserBase.cs, WebBrowser.cs: add implementation
7293 using Mono.Mozilla for loading and navigating webcontrol
7295 The initial implementation was done on
7296 /trunk/mozembed/tests/browser , and copied here.
7298 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
7300 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
7301 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
7303 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7305 * DataGridView.cs: Add support for an editing row. Fixes #82226.
7306 RowTemplateFull: throw an exception if a column doesn't have a template.
7307 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
7308 add the row just before it.
7309 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
7311 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
7312 DataGridView field to be able to reach the grid's editing row.
7314 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7316 * ToolTip.cs: If the control's handle hasn't been created when it has a
7317 tooltip set on it, don't check to see if we need to show the tooltip. This
7318 check was causing the control's handle to be created.
7321 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7323 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
7325 Handle Not Created -1 0
7329 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7331 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
7334 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7336 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
7337 * ToolTip.cs: Implement some properties and owner draw.
7339 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7341 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
7342 show them again, since setting visibility causes a paint, causing an
7343 endless loop (instead use a temporary and set it all when it's known if
7344 they should be shown or not). Fixes #79265.
7346 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7348 * DataGridView.cs: Only do a full column/row selection if a header was
7349 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
7350 isn't pressed, deselect everything before selecting something.
7352 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7354 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
7355 behaviour according to bug #81075 - they are returned in the order they
7356 are selected. Fix HitTest to check if the point is within any of the
7357 headers. Allow for row/column selection when in ColumnHeader or
7358 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
7359 the row and column to call when their selected state changes, and
7360 updated selected_[rows|columns] whenever SetSelected* is called.
7361 * DataGridViewBand.cs: Initialize isRow correctly. Call
7362 SetSelected[Row|Column]CoreInternal when the selected state changes, and
7363 add a SelectedInternal to avoid StackOverflows.
7364 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
7365 ReadOnly no matter what.
7366 * DataGridViewSelectedColumnCollection.cs,
7367 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
7368 the items in reverse order (just as MS does...)
7370 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7372 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
7373 itself, not part of a mnemonic. [Fixes bug #82378]
7375 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7377 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
7378 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
7379 the DGV, the column, the row, or the cell itself is readonly.
7381 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7383 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
7385 * FileDialog.cs: Same.
7386 * TextRendered.cs: Same.
7387 * FolderBrowserDialog.cs: Same.
7388 * TextBoxBase.cs: Same.
7389 * Application.cs: Same.
7391 * ThemeClearLooks.cs: Same.
7393 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7395 * XplatUI.cs: Added RunningOnUnix property to be used by controls
7396 instead of duplicating these checks everywhere.
7397 * FileDialog.cs: Use case-insensitive comparison for populating the
7398 DirComboBox when not running on unix. Fixes bug #82385.
7399 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
7402 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7404 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
7405 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
7406 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
7407 cell and column selection with ctrl and shift pressed. Call the correct
7408 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
7409 the corresponding virtual method (PaintBackground to paint background,
7411 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
7412 either the column, row or the cell itself is selected.
7413 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
7415 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
7416 here. When the row is selected, don't select all cells. Each cell now
7417 queries the row to see if the row is selected.
7419 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7421 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
7424 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7426 * ListView.cs: In ListViewItemsCollection check that owner is
7427 not null before trying to access it (this happens quite often
7428 using Groups). Also don't duplicate calls by calling CollectionChanged
7431 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7433 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
7434 when we are dismissed to clear keyboard mnemonics.
7435 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
7436 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
7437 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
7438 was activated by keyboard or the OS tells us to always draw them.
7439 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
7440 [Fixes bugs #82376, #82377]
7442 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7444 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
7445 shot at having it because Alt was pressed.
7446 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
7447 the first real menu item.
7448 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
7449 a mnemonic if Text is null.
7452 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7454 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
7455 search do check whether the item is already contained in the
7456 collection or not; instead check if the owner of the item is the same
7457 as ours. Also, remove a redundant check in the same method.
7459 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7461 * Control.cs: Allow the clip region to be set back to null.
7462 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
7463 [Fixes button still showing up in bug #82370 when Show Through is turned off]
7465 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
7467 * GridEntry.cs: Add a null check.
7468 * PropertyGrid.cs: When checking for existing grid entries, ignore category
7469 entries. Fixes #82297.
7471 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7473 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
7476 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7478 * ListBox.cs: Implement ScaleControl.
7480 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7482 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
7484 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
7485 parent has a menu strip. Fixes #81689.
7487 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7489 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
7490 moments, so apply some fuzzy logic to determine if the mouse is still
7491 inside a control or not. Fixes #82288 (for the third time).
7493 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7495 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
7496 Don't create the child if it has been disposed already (may happen if
7497 the user closes the form the Load event).
7499 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7501 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
7504 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7506 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
7507 might call us after we've been destroyed, in which case our own private
7508 parent field is null. Fixes #82326.
7510 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7512 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
7513 check for setting the dropdown's owner.
7515 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7517 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
7518 before removing system menu items.
7520 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
7522 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
7524 * MdiControlStrip.cs: Added. These are the menu items used in mdi
7526 * ToolStrip.cs: Add a null check to mnemonics.
7527 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
7529 [Fixes most of bug #81689]
7531 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7533 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
7535 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7537 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
7539 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7541 * DataGridViewCell.cs: EditType: returns
7542 DataGridViewTextBoxEditingControl always.
7544 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
7546 * TextRenderer.cs: Remove the LineLimit string format flag from the
7547 DrawString fallback method so that things like buttons that aren't
7548 tall enough to draw a full line will still draw part of the text.
7549 [Fixes part of bug #82272]
7551 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7553 * DataGridView.cs: Implemented AutoResizeColumn(s).
7554 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
7555 according to the Alignment.
7556 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
7557 Implement alignment and padding when painting.
7558 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
7560 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
7562 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
7565 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7567 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
7570 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7572 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
7573 hide GetPreferredSize from public API.
7574 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
7575 * ToolStripItem.cs: Stub out drag and drop methods and events.
7576 * ToolStripManager.cs: Stub out Save/LoadSettings.
7577 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
7578 * ToolStripPanel.cs: Fix corcompare error.
7579 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
7580 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
7581 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
7583 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7585 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
7586 bounds height instead of PreferredHeight. Puts things back the way
7587 they were for height while still fixing the width. Fixes broken unit
7590 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7592 * Binding.cs: Implement 2.0 constructors and add a null check.
7594 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7596 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
7597 and fix row index (off by one).
7599 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7601 * PropertyGridView.cs: Remove debug output.
7603 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7605 * Control.cs: We need to reset the is_created flags when the handle is
7606 destroyed. Fixes #82187.
7607 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
7608 client coordinates if the window doesn't have a parent.
7609 Win32GetParent returns the parent or the owner, and for top-level
7610 windows with no parent (but with an owner) we were calculating the
7611 location from the location of the owner.
7612 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
7613 form has been disposed.
7614 * MdiClient.cs: Add a null-check.
7616 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
7618 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
7619 actually do auto-sizing. Override the internal GetPreferredSizeCore
7620 so we can provide an implementation that returns the current width
7621 and preferred height. Allows anchor = right to work with TextBox 2.0.
7624 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7626 * ListView.cs: Add support for navigating items in Groups mode, by
7627 creating a big matrix containing all rows and cols of all groups. When
7628 are in other mode than Details, pressing Up should have a similar
7629 behaviour as that one of Down (moving to the next available column if
7630 current one doesn't have an item in the requested row). Also, don't
7631 proceed to use groups if ShowGroups is false.
7632 * ListViewGroup.cs: Add an internal int field to store the starting
7633 row of the group (used by the big matrix used for navigating the
7635 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
7638 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
7640 * ToolStripDropDown.cs: When we do Show, start with the
7641 DefaultDropDownDirection, but if our popup menu is going to off-screen,
7642 modify the direction to keep it on screen. [Fixes bug #82210]
7644 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
7646 * FileDialog.cs: Accept any FilterIndex value, and store it
7647 unmodified. When FilterIndex is less than 1, or greater than number
7648 of filters, then default to first filter. Only add filter extension to
7649 file if user did not specifiy an extension. When type of dialog is
7650 OpenFileDialog and DefaultExt is set, then only use filter extension
7651 if: CheckFileExists is true and no file wih the default extension
7652 exists, or CheckFileExists is false, and user specified file does not
7653 exist. When CheckFileExists is true, then add first extension of
7654 selected filter that matches existing file. Perform checks for
7655 existing file, overwrite and create after extension has been added to
7656 file name. When CheckFileExists is true and type is SaveFileDialog,
7657 then only consider first filter extension if DefaultExt is set.
7658 When CheckFileExists is true, then ignore DefaultExt if file with that
7659 extension does not exist. Also perform check for existing file when
7660 type is SaveFileDialog. Changed some field to constants.
7662 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7664 * ListView.cs: Take into account the region used by header
7665 control when doing the vertical scroll (this way we invalidate
7666 the precise area, and don't get any dirty one).
7668 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
7670 * FileDialog.cs: Check for valid filterIndex on button open/save.
7673 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7675 * ListView.cs: Update some layout calculations in details view
7676 and clean the code in a pair of assignations.
7678 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7680 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
7681 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
7682 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
7683 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
7685 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7687 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
7688 performance of thread-safe Graphic methods. (Thanks rolf!)
7690 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7692 * ListView.cs: When doing the layout calculations, don't calculate
7693 scroll bars before handle is created. This is unnecessary and also
7694 calculating them before handle creation item causes a number of random
7695 bugs (which begin to appear after Chris' big patch for handle creation
7698 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7700 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
7701 for things that don't have a Graphics object. Currently, things just use
7702 the static Hwnd.bmp_g which is not thread safe.
7704 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7706 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
7707 dialog. Fixes #82187.
7709 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7711 * DataGridViewElement.cs: Initialize state.
7712 * DataGridView.cs: Forward a few Mouse events to cells. Add
7713 GetRowInternal and GetCellInternal that doesn't unshare rows.
7714 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
7715 don't use the index, but look it up. Add
7716 DataGridViewControlCollection.RemoveInternal to remove controls
7717 that Remove won't remove (scrollbars, edit control).
7718 * DataGridViewColumn.cs: Initialize State correctly.
7719 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
7720 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
7722 * DataGridViewRowCollection.cs: Implemented shared rows.
7723 * DataGridViewRow.cs: Throw exceptions as MS do.
7724 * DataGridViewCell.cs: A few properties are implemented by a
7725 Get<Property> method, so move implementation there and remove the
7726 NIEX in the method. Add a bunch of OnXInternal that DataGridView
7727 calls when necessary.
7728 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
7729 complicates matters.
7730 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
7733 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7735 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
7736 the children controls. Instead, we will just set up the proper docking for the
7737 children controls so we don't have to worry about it. [Fixes bug #82188]
7739 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7741 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
7742 canceling and correct Before/AfterLabelEdit properties as layed out in bug
7743 81847. [Fixes bug #81847]
7745 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7747 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
7748 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
7749 an explicit size based on the design-time size of the text. Since our fonts
7750 may not match this explicit size, we tend to cut off the ends of people's labels.
7752 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
7754 * Menu.cs: Add some missing methods to MenuItemCollection.
7756 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7758 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
7759 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
7760 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
7761 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
7762 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
7763 * DataGridViewElement.cs: State defaults to Visible.
7764 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
7765 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
7767 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7769 * Control.cs: Minor 1.1 corcompare fix.
7771 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
7773 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
7774 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
7776 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7778 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
7779 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
7780 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
7781 DataGridViewSelectedColumnCollection.cs,
7782 DataGridViewSelectedRowCollection.cs: Corcompare work.
7784 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
7786 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
7787 it is autoset by VS2005 designer and the effect is barely noticeable.
7789 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
7791 * TreeView.cs: Implement HitTest.
7793 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7795 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
7796 manually adding and removing the control from the Controls
7798 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
7799 EditingControlInternal property that tracks the editing control.
7800 Always keeping the scrollbars in the Controls collection, as MS
7801 testing confirms is the right behaviour.
7803 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7805 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
7806 according to MSDN and new test.
7808 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7810 * TreeNode.cs: Implement ToolTipText.
7811 * TreeView.cs: Implement tooltips, NodeMouse* events.
7813 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7815 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
7817 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7819 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
7820 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
7822 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
7824 * Control.cs, Form.cs, ContainerControl.cs,
7825 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
7826 for misc properties.
7828 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7830 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
7831 * TreeView.cs: Implement StateImageList.
7833 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7835 * Form.cs: Don't check if the current form is the active form before
7836 activating it. Fixes #81904.
7838 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7840 * Form.cs: Don't check if the current form is the active form before
7841 activating it. Fixes #81904.
7843 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7845 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
7847 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7849 * Form.cs: Don't try to position the form after loading if the form was
7850 disposed. Fixes #81969.
7852 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7854 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
7855 properties. Had to change ToolBar into ToolStrip, which required a
7858 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7860 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
7861 resized, fixes part of #79829 (vertical lines in toolbar).
7862 PropertyGrid: Refactored Populate* to something that's easier to
7863 follow at least for me, as well as splitting it up into several new
7864 methods, required to update only subitems when something has
7865 changed by a popup editor or listbox. Don't use events to check
7866 when any values are changed, since the events are unreliable (we're
7867 changing the objects the events are registered with, and if the
7868 event handling requires the objects to be immutable (objects stored
7869 in hashtables for instance), the events will never be raised).
7870 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
7871 everytime we change a value, since events are unreliable.
7872 DropDownButtonClicked: For the same reason don't compare objects to
7873 check if it has changed or not, it would require all objects to
7874 derive Equals. Fix dialog location on windows, MS is doing weird
7875 things when creating parented forms.
7876 * GridEntry.cs: Add a SelectedObject setter.
7878 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
7880 * TreeNode.cs: Add some corcompare attributes.
7881 * TreeNodeCollection.cs: Implement 2.0 stuffs.
7882 * TreeView.cs: Implement some 2.0 stuffs.
7884 2007-07-18 Andreia Gaita <avidigal@novell.com>
7886 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
7889 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
7891 * ListBox.cs: Implement custom tab offsets.
7893 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7895 * ToolStripContentPanel.cs: Support System renderer.
7896 * ToolStripControlHost.cs: Set RightToLeft to default to No.
7898 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7900 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
7902 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7904 * CheckBox.cs: Chain TextAlign to base implementation instead of
7905 maintaining another one.
7907 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7909 * ButtonBase.cs: Fix an incorrect string constant.
7911 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7913 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
7914 of creating one for measuring strings.
7916 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7918 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
7919 Implement MaxItemSize.
7921 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
7923 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
7924 for DeviceContext. Instead, use the static one available in Hwnd.
7925 Informal tests show this saves about 500k on formtest.exe.
7927 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
7929 * ContainerControl.cs: Implement 2.0 AutoScaling.
7931 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7933 * ComboBox.cs: Work around bug #82120 (bug in mcs).
7935 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
7937 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
7938 Darken the focus color.
7940 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
7942 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
7944 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
7945 X, Y instead of a rect for drawing text.
7946 - For ControlPaint.DrawCheckBox, center the check a little better when the
7947 checkbox is odd width. When drawing a flat checkbox, use a white background
7948 when state != inactive.
7949 [Fixes bugs #82097, 82100]
7951 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
7953 * ListControl.cs: When changing CurrencyManager, disconnect event
7954 handlers from previous one. Fixes bug #81771. Code formatting.
7956 2007-07-15 Andreia Gaita <avidigal@novell.com>
7958 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
7959 full preview invalidation from layout invalidation, and only invalidate
7960 the layout when setting zoom or other properties. Invalidation should
7961 always be done even when resetting properties with the same values as
7962 what is there. Fixes #81744 and #79830.
7964 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7966 * ListView.cs: Implement initial support for Groups. Split some of the
7967 LayoutIcons code to render a partial list of the items (needed by
7968 items contained in ListViewGroup instances). Let the
7969 ListViewItemsCollection.ListView property be modifiable (needed when
7971 * ListViewGroup.cs: Use a Bounds property rather than a Location
7972 one. Also invalidate the bounds when they get changed.
7973 * ThemeWin32Classic.cs: When drawing items, also draw the group header
7974 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
7977 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7979 * ListView.cs: When space gets pressed and CheckBoxes is true,
7980 don't invoke the Begin and EndUpdate methods. We are generating
7981 a redraw of the entire control without need to do so.
7983 2007-07-13 William Holmes <billholmes54@gmail.com>
7985 * Control.cs: Changing logic in FindFlatForward and
7986 FindFlatBackward to handle multiple Controls with
7988 This fixes bug 81687.
7990 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
7992 * OSFeature.cs: Enable IsPresent.
7994 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7996 * Control.cs: Don't do anything in WmShowWindow if the control has been
7997 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
7998 control is created, put on a form, the control is disposed (the
7999 form is never shown), and then we get a MapNotify, triggering a
8001 * Form.cs: Exclude the current form when sending Deactivate to all
8003 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
8004 there was a race condition because assigning the handle raises
8005 events, we can get more messages, therefore trying to assign the
8006 handle again, which would fail if any of those event handlers
8007 closed/disposed the control.
8009 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8011 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
8013 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
8015 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
8016 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
8018 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
8020 * DateTimePicker.cs: If there's no part format specifier, return an
8023 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
8025 * FlatButtonAppearance.cs: Throw NotSupportedException for a
8026 Transparent BorderColor.
8028 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
8030 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
8031 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
8032 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
8033 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
8034 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
8035 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
8036 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
8038 * X11Structs.cs: Remove warnings, add ToString implementations.
8040 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8042 * XplatUIX11.cs: Translate min/max size according to the actual min/max
8043 size, and not the current size. Fixes #81798.
8045 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8047 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
8048 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
8049 to the control yet).
8051 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8053 * PropertyGridTextBox.cs: Add a method that sends any forwarded
8054 mousedowns to the contained textbox.
8055 * X11Structs.cs: More ToString implementation.
8056 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
8059 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8061 * PropertyGridView.cs: Add a null-check, fixes a few tests.
8063 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
8065 * TableLayoutPanelCellPosition.cs: TypeConverter.
8067 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8071 * PropertyGridTextBox.cs: Propagate any color changes to all contained
8073 * PropertyGridView.cs: A few color fixes.
8075 2007-07-10 Jackson Harper <jackson@ximian.com>
8077 * TextControl.cs: Remove some old unused text formatting stuff.
8079 2007-07-10 Jackson Harper <jackson@ximian.com>
8081 * TreeView.cs: Update full row select invalidation to match the
8082 newer DrawSelection... method.
8083 - Make sure to invalidate the entire width when selecting a new
8084 node, if we have full row selection enabled.
8086 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8088 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
8089 display of properties again.
8091 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
8093 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
8094 to existing collections.
8096 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8098 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
8099 that changed between 1.1 and 2.0.
8101 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8103 * PowerStatus.cs: Added. This is just a data class, it is filled
8104 in by SystemInformation.
8106 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8108 * Message.cs: Add op_Equality and op_Inequality.
8110 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8112 * MenuStrip.cs: Finish corcompare work.
8114 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8116 * LinkArea.cs: Add op_Equality and op_Inequality.
8118 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8120 * Application.cs: Add MessageLoopCallback delegate.
8122 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8124 * ListBox.cs: First set of 2.0 stuffs.
8126 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8128 * Control.cs: Make an internal Height property we can override
8129 without messing up the public API.
8130 * ListBox.cs: Override HeightInternal to always return the size
8131 the user set. [Fixes bug #80466]
8133 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
8135 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
8136 paint cell borders if we haven't calculated where they go yet.
8137 [Fixes bugs #82040 and #82041]
8139 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8141 * ListView.cs: In Details view, set the location of item_control
8142 in the (0,0) position (and the header_control is thus on the
8143 item_control). This way the Bounds of the Items are relative to the
8144 ListView control (before this, they had a Bounds value without the
8145 header_control offset, which wasn't matching .Net). Fixes #82004.
8147 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8149 * ListControl.cs: When DataSource is set to null, pass an empty
8150 array of object to SetItemsCore. This is done to clean the items
8151 in the ListContol children. Fixes #81788.
8153 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8155 * ListControl.cs: Add 2.0 stuffs.
8157 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8159 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
8160 Refresh is overkill for just about every repaint request.
8162 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8164 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
8165 so remove my custom Get method and fix the property getter.
8167 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8169 * Label.cs: DefaultMargin for 2.0.
8171 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8173 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
8174 reported issue where other controls with mnemonics would steal strokes
8175 from a selected ComboBox.
8177 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8179 * ScrollOrientation.cs: Make internal for 1.1.
8180 * ScrollEventArgs.cs: Add 2.0 stuffs.
8182 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
8184 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8185 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
8186 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
8188 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8190 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
8192 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8194 * ListView.cs: Implement the so-incredibly broken 2.0
8195 VirtualItemsSelectionRangeChanged event.
8197 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8199 * ListView.cs: When enter is pressed and selection is non empty,
8200 an OnItemActivate event must be fired.
8202 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8204 * ListView.cs: Store the FocusedItem information as an
8205 int instead of a ListViewItem (needed by VirtualMode).
8206 Update the calls to SetFocusedItem to pass an index instead of
8208 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
8209 the Focused state from the owner ListView.
8211 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8213 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
8214 property. Also, invalidate previous focused item in the mentioned
8215 property (match .Net).
8217 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8219 * ListView.cs: Implement 2.0 FocusedItem property setter.
8221 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8223 * ListView.cs: Implement 2.0 TopItem property setter.
8225 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
8227 * StatusStrip.cs: The default renderer is System.
8228 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
8229 if the user specifies it.
8230 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
8231 if we are ManagerRenderMode.
8232 * ToolStripMenuItem.cs: Calculate our text color better.
8233 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
8234 from Professional to the base class based off working with the System renderer.
8235 * ToolStripSystemRenderer.cs: Added.
8237 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8239 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
8241 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
8243 * ToolTip.cs: Implement 2.0 Tag property.
8245 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8247 * ListView.cs: Implement 2.0 HitTest methods.
8249 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8251 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
8252 item is under the pointer or not (sugar). Also remove the TODO
8253 regarding to the cursor changes in OneClick activation.
8254 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
8255 the subitems use the parent's HotFont if UseItemStyleForSubItems is
8256 true; otherwise don't show the underline style.
8258 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8260 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
8261 the code to retrieve the item at position only one time. Also
8262 change cursor when Activation is ItemActivation.OneClick as well
8263 as invalidate the item if HotTracking is true (to show/hide the
8264 underline style). Add an internal HotItemIndex property to retrieve
8265 the current hot item's index.
8266 * ListViewItem.cs: Add an internal HotFont property to cache the
8267 font used when HotTracking is true and the pointer moves within the
8269 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
8270 HotFont depending on the hot state of the item.
8272 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8274 * ListView.cs: Implement 2.0 HotTracking property.
8276 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8278 * ToolStripControlHost.cs: If our hosted control never got created,
8279 don't try to dispose it. [Fixes bug #81909]
8281 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8283 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
8285 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8287 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
8289 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8291 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
8293 * DrawListViewColumnHeaderEventArgs.cs:
8294 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
8295 using the DrawText () methods.
8297 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
8299 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
8300 background which got erased in my changes yesterday.
8302 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8304 * ListViewItem.cs: Actually set bounds for subitems in Details view
8306 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
8307 can invoke from the owner draw routines if we need it. Also, add
8308 support for Owner draw in Details view.
8310 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8312 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
8313 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
8314 ShowImageMargin setting, properly align text in a ToolStripLabel
8315 hosted on a ToolStripDropDown.
8317 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8319 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
8320 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
8322 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8324 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
8326 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8328 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
8329 location to match ToolStripMenuItems.
8331 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8333 * DrawListViewColumnHeaderEventArgs.cs:
8334 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
8335 column headers in ListView.
8337 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8339 * UserControl.cs: Implement AutoSize.
8341 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8343 * DrawListViewItemEventArgs.cs:
8345 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
8348 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8350 * ToolStripDropDownItemAccessibleObject.cs: Added.
8351 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8352 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8353 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
8354 ToolStripTextBox.cs: corcompare work.
8356 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8358 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
8359 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
8360 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
8363 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8365 * OSFeature.cs: Add IsPresent.
8366 * PrintPreviewControl.cs: Add RightToLeft.
8367 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
8368 * SplitterPanel.cs: Add AutoSizeMode.
8370 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8372 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
8373 * MdiClient.cs: Add 2.0 ScaleControl.
8374 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
8375 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
8377 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8379 * Form.cs: Implement some scaling methods, stub some RTL methods,
8382 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8384 * Control.cs: corcompare work.
8385 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
8387 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8389 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
8390 ControlPaint 2.0 stuffs.
8392 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8394 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
8396 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8398 * UpDownBase.cs: Add 2.0 stuffs.
8400 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8402 * NumericUpDown.cs: Add 2.0 stuffs.
8404 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8406 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
8408 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8410 * ErrorProvider.cs: Implement 2.0 stuffs.
8412 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8414 * DomainUpDown.cs: Implement 2.0 stuffs.
8416 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8418 * CheckedListBox.cs: Fix RefreshItems signature.
8420 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8422 * PictureBox.cs: Implement 2.0 stuffs.
8424 2007-06-12 Andreia Gaita <avidigal@novell.com>
8426 * TabControl.cs: Check if there are tabpages before checking
8427 the selected index - fix #81802 (font changes raise a ResizeTabs
8428 call on controls.add, which blew up nicely with no tabpages)
8430 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8433 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
8435 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8438 * ListViewItem.cs: In VirtualMode the selection information
8439 resides in the ListView, rather than in the Items. Also, throw
8440 InvalidOperationExceptions when VirtualMode is being used and
8441 CheckedItemCollection is accessed.
8443 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8445 * ComboBox.cs: Add ScaleControl.
8447 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8449 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
8451 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8453 * GroupBox.cs: Add 2.0 stuffs.
8455 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8457 * Panel.cs: Add autosize properties/event.
8459 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8462 - When we remove a control, remove it from the collection before performing the layout.
8463 - Setup an internal property for explicit_bounds.
8464 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
8465 - Perform a layout when we set a new AutoSizeMode.
8467 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8469 * ScrollableControl.cs: Add 2.0 stuffs.
8471 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8473 * ScrollBar.cs: Add 2.0 stuffs.
8475 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8477 * Splitter.cs: Add 2.0 stuffs.
8479 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8481 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
8482 to have BindingContext simply use base implementation.
8484 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8486 * ColumnHeader.cs: corcompare fix.
8488 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8490 * Button.cs: corcompare fixes.
8491 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
8493 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8495 * Button.cs: Override GetPreferredSizeCore.
8496 * ButtonBase.cs: PerformLayout after changing properties that can affect
8497 AutoSize. Simplify some mouse/keyboard code.
8498 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
8499 * MouseEventArgs.cs: Make Location internal for 1.1.
8500 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
8501 * Theme.cs: Add CalculateButtonAutoSize.
8502 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
8504 2007-06-05 Miguel de Icaza <miguel@novell.com>
8506 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
8508 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8510 * ListViewItem.cs: We can't cache Bounds in VirtualMode
8511 since we can get different item instances every time we retrieve it.
8513 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8515 * ListView.cs: Work around for #81602, since an unkown an pretty
8516 infrequent condition appears only in some systems (old linux boxes, it
8519 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8521 * Button.cs: Completely reformat and a little refactor to bring
8522 this closer to Mono circa 2007.
8524 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8526 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
8527 to be ButtonBase.Invalidate.
8529 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8531 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
8533 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8535 * ButtonBase.cs: Completely reformat and a little refactor to bring
8536 this closer to Mono circa 2007.
8538 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
8540 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
8541 values for autosize. Fixes #80137.
8543 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8545 * Control.cs: Don't perform layout when AutoSize changes.
8546 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
8547 directly when autosizing, use SetBounds with BoundsSpecified.None.
8548 Fixes unit tests my last commit broke.
8550 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8552 * Control.cs: Perform layout when AutoSize changes.
8553 * Form.cs: Implement AutoSizing.
8555 2007-06-01 Chris Toshok <toshok@ximian.com>
8557 * DataGrid.cs: remove the XXX'ed check at the top of
8558 ProcessGridKey. fixes #80464.
8560 2007-06-01 Chris Toshok <toshok@ximian.com>
8562 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
8563 adding idempotent (add/remove in Edit()), and also make sure we
8564 don't add it until after we set the text, so it's not tripped in
8565 Edit(). Fixes unit test regression.
8567 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8569 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
8570 change is user explicit, not when the layout engine moves stuff. Fixes
8571 anchoring to bottom and right. [Fixes bug #81790]
8573 2007-06-01 Andreia Gaita <avidigal@novell.com>
8575 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
8577 2007-06-01 Andreia Gaita <avidigal@novell.com>
8579 * ContainerControl.cs:
8580 Fire enter event for common ancestor if it is not a ContainerControl.
8581 Send focus to the active_control and not the 'value', the active
8582 control might have been changed in one of the events fired.
8583 Definitely fixes #80159.
8585 2007-06-01 Andreia Gaita <avidigal@novell.com>
8587 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
8589 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8591 * PropertyGrid.cs: Anchor the help description to the bottom of the
8592 help panel and refactor SelectGridItem into a
8593 SelectGridItemInternal that can be set to null (and update it to
8594 clear the help texts when it is set to null). Set root item to null
8595 when there's no SelectedObject. Fixes #80438.
8596 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
8597 when we're recalculating after a resize (only).
8599 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8601 * ListView.cs: Implement 2.0 RedrawItems method.
8603 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8605 * ListControl.cs: Disconnect PositionChanged and ItemChanged
8606 handlers from previous data manager when DataSource is set to
8609 2007-05-31 Jackson Harper <jackson@ximian.com>
8611 * TextBoxBase.cs: These seem to be the correct values.
8613 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
8615 * FileDialog.cs: When close dialog with ok set filterindex using combobox
8616 value. Fixes #81784.
8618 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
8620 * Control.cs: Implement 2.0 scaling methods.
8622 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8624 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
8625 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
8628 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8630 * ProgressBar.cs: Implemented missing 2.0 members.
8632 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8634 * Control.cs: Corcompare issues.
8635 * MessageBox.cs: Implemented missing 2.0 functions.
8637 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8639 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
8640 Implemented more 2.0 members.
8642 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8644 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
8645 null (strange, but it seems to happen when running unit tests).
8647 2007-05-30 Andreia Gaita <avidigal@novell.com>
8649 * ContainerControl.cs: Set active_control even earlier, before
8650 firing any events, and undo it if validation returns false.
8652 2007-05-30 Andreia Gaita <avidigal@novell.com>
8654 * ContainerControl.cs: Raise Validation and Enter/Leave events
8655 even if there is no Form and set active_control earlier, just
8656 before firing Enter events (toshok's patches). Fixes #80647.
8658 2007-05-30 Jackson Harper <jackson@ximian.com>
8660 * TextControl.cs: Redid the pageup/pagedown a little to simplify
8661 things and fix bug #81311.
8663 2007-05-30 Jackson Harper <jackson@ximian.com>
8665 * X11Dnd.cs: Now that we have our own event loop, we need to
8666 cancel when we get a mouseup but it won't be accepted.
8668 2007-05-30 Chris Toshok <toshok@ximian.com>
8670 * DataGrid.cs (set_CurrentCell): guard against negative
8673 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
8674 array index syntax instead of looping over the property names.
8676 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
8677 and set IsInEditOrNavigateMode to false there.
8679 2007-05-30 Jackson Harper <jackson@ximian.com>
8681 * TreeView.cs: Make sure we don't get a bad visible order when
8682 setting to the top node. Fixes some misc crashing in
8685 2007-05-30 Andreia Gaita <avidigal@novell.com>
8687 * UserControl.cs: Add 2.0 AutoSizeMode
8689 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8691 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
8693 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8695 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
8696 lines. Fixes #80285.
8698 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8700 * DataGridColumnStyle.cs: Add char trimming column header text format.
8702 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8704 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
8707 2007-05-29 Jackson Harper <jackson@ximian.com>
8709 * TreeNode.cs: Fix off by one on calculating whether or not a node
8712 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
8714 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
8715 * ScrollableControl.cs: Force an UpdateDistances when we move the
8719 2007-05-29 Andreia Gaita <avidigal@novell.com>
8721 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
8722 update the page setup screen.
8724 2007-05-29 Andreia Gaita <avidigal@novell.com>
8726 * PageSetupDialog.cs: Fix landscape mode.
8728 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8730 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
8731 IconSizeHorizontalSpacing.
8733 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8735 * ListView.cs: The declaration of prev_tooltip_item should be inside
8736 a NET_2_0 conditional (avoid a warning).
8738 2007-05-28 Andreia Gaita <avidigal@novell.com>
8740 * PageSetupDialog.cs: Implement PrintPreview control to display
8741 the preview thumbnail. Change unit conversion to use
8742 PrinterUnitConvert methods.
8744 Note: there is a huge bug in ms.net where the default margins are
8745 interpreted as centimeters (?), when in fact they are set in inches. When
8746 loading the page setup dialog initially (ms.net), the default margins
8747 are set to 1 inch, and the dialog shows them with value 10, when in fact
8748 it should be 25 (properly converted). Our dialog doesn't have this bug.
8750 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
8752 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
8754 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8757 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
8760 2007-05-28 Andreia Gaita <avidigal@novell.com>
8762 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
8763 an IntPtr on csc (it builds fine on mcs, could it be a compiler
8764 bug?), convert the ptr to Int32 first.
8766 2007-05-28 Jackson Harper <jackson@ximian.com>
8768 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
8769 recieved, we will exit the dnd tracking loop.
8771 2007-05-28 Jackson Harper <jackson@ximian.com>
8773 * X11Dnd.cs: Keep tracking until the xdnd finished event is
8774 recieved. TODO: I should probably stick a timer on the dropped
8775 event, and finish the drag if the XDND Finished event never shows
8776 (because some apps don't seem to send it).
8778 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
8780 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
8783 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8785 * MonthCalendar.cs: Only mark the keypresses we actually handle as
8788 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8790 * MonthCalendar.cs: Set the size after initializing all the relevant
8791 variables. Fixes #81742.
8793 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8795 * KeyEventArgs.cs: Fix typo.
8797 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
8799 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
8800 to match MS. Fixed MinDate to only accept value less than or equal
8801 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
8802 Removed TODO's that are now verified by unit tests.
8804 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
8806 * TreeNodeCollection.cs: Minor corrections to exceptions to match
8809 2007-05-25 Jackson Harper <jackson@ximian.com>
8811 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
8812 it's own message loop.
8813 * XplatUIX11.cs: Remove some of the dnd hooks
8815 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
8817 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
8818 instead of MinimizedWindowSize.
8820 2007-05-25 Jackson Harper <jackson@ximian.com>
8822 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
8824 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
8826 * KeyEventArgs.cs: Added SuppressKeyPress.
8827 * Control.cs: Added support for SuppressKeyPress.
8829 2007-05-24 Andreia Gaita <avidigal@novell.com>
8831 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
8832 problems with PieChart. suppress_validation should not be a counter,
8833 if there are several BeginInit calls, the first EndInit will
8834 activate validation. Fix exceptions thrown by set_Value.
8835 * UpDownBase.cs: ValidateText only if it's the user editing it.
8837 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8839 * ListControl.cs: FilterItemOnProperty should return the filtered
8840 item proeprty even if DataSource is null. The same applies for
8841 GetItemText. Fixes #80427.
8843 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
8845 * Control.cs: If a control doesn't have a parent when it's Dock is
8846 set, but it has children, it needs to do a layout. Fixes some nested
8847 controls issues. [Fixes bug #81199]
8849 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8851 * ComboBox.cs: If there are few items in the drop down list, make it
8852 the exact size the items need, no bigger. Fixes #81612.
8854 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
8856 * Application.cs: When we have captured the keyboard for a menu,
8857 check for mouse down events in case we need to close the menu.
8858 * Control.cs, Form.cs: Remove mouse down checks for menus.
8860 2007-05-24 Jackson Harper <jackson@ximian.com>
8862 * TextControl.cs: Handle tabs in non multiline mode a little
8865 2007-05-24 Jackson Harper <jackson@ximian.com>
8867 * TextControl.cs: We need to manually break apart tabbed text and
8868 move the tabs, since the system.drawing tabbing mechanism relies
8870 * TextBoxBase.cs: Move the caret properly when the user enters a
8873 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
8875 * ContainerControl.cs: Don't check CanSelect before calling
8877 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
8878 release a KeyboardActive on click if it's not ours.
8880 2007-05-23 Andreia Gaita <avidigal@novell.com>
8882 * ColumnHeader.cs: Add TypeConverter
8884 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8886 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
8888 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8890 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
8892 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8894 * LinkLabel.cs: Implement public Padding property.
8896 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8898 * LinkLabel.cs: Implement public FlatStyle.
8900 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
8902 * Control.cs: Apply patch from George to call parent.PerformLayout
8903 when Visible is changed. [Fixes bugs #81118, 81718]
8905 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8907 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
8909 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8911 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
8913 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8915 * ContextMenu.cs: Implement Collapse.
8917 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8919 * ToolBarButton.cs: Implement Name.
8921 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
8923 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
8924 use current_item, it prevents some NRE. Fixes #81675.
8926 2007-05-22 Andreia Gaita <avidigal@novell.com>
8928 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
8929 without updating the text.
8931 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
8933 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
8934 without calling DeleteObject. [Should fix bug #81709]
8936 2007-05-22 Jackson Harper <jackson@ximian.com>
8938 * RichTextBox.cs: Set the line endings correctly, when flushing
8941 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
8943 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
8946 2007-05-22 Jackson Harper <jackson@ximian.com>
8948 * TreeView.cs: Setting top with a null node should set to the very
8951 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8953 * Form.cs: ShowDialog: destroy the handle when message loop is
8954 finished, matches MS behaviour. Refactor parts of WmClose into
8955 RaiseCloseEvents, that only raises events if they haven't already
8956 been raised. Fixes #81688 and #81521.
8957 * Application.cs: Don't call close on the form when exiting a modal
8958 loop, it will raise all the (Form)Closed/Closing events again if
8959 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
8960 which doesn'r raise any events it they have been raised before.
8962 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
8964 * Control.cs: Add OnPrint.
8965 * ToolStrip.cs: Add GetChildAtPoint.
8966 * ToolStripContainer.cs: Add OnRightToLeftChanged.
8967 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
8969 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
8971 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
8973 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8975 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
8976 isn't visible anymore. Fixes #81651.
8978 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8980 * Control.cs: WmShowWindow: Update children's z-order after setting
8981 their parent. SetParent may show the window, thereby corrupting
8982 z-order, since the window will be shown on top.
8983 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
8984 multiple (and redundant) WM_SHOWWINDOW messages.
8985 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
8986 event has already been raised.
8987 * Form.cs: Change is_changing_visible_state to a counter, since
8988 SetVisibleCore can be called recursively. CreateHandle: when
8989 creating mdi children, send (De)Activated events.
8990 * MdiClient.cs: Update use of is_changing_visible_state.
8991 * Application.cs: OnThreadException: Surround exception handling with
8992 try/finally to ensure we always reset the error-handling state
8995 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8997 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
9000 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9002 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
9003 SmallIcon views, now that we have a standarized horizontal spacing.
9005 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
9006 4, just like the other views (Match .Net).
9008 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
9010 * Control.cs: Delay calculating anchor distances until we actually layout.
9011 Always query the WM for the actual size and location it put us at instead of
9012 only when we send negative values.
9013 [Fixes bugs #81694, 81695]
9015 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9017 * Application.cs: Avoid a possible stack overflow when trying to exit
9020 2007-05-19 Marek Safar <marek.safar@gmail.com>
9022 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
9025 2007-05-19 Andreia Gaita <avidigal@novell.com>
9027 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
9028 * NumericUpDownAcceleration.cs,
9029 NumericUpDownAccelerationCollection.cs: Added 2.0
9032 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
9034 * RichTextBox.cs: Recalculate the document after the ScrollBars
9035 property is changed. Fixes bug #81681.
9037 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
9039 * DataObject.cs: Implement 2.0 methods.
9041 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9043 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
9044 in the center of the checkbox, not in the left-top corner.
9047 2007-05-18 Jackson Harper <jackson@ximian.com>
9049 * RichTextBox.cs: Recalculate the document after the scrollbars
9050 property is changed.
9051 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
9054 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9056 * CreateParams.cs: Make HasWindowManager marginally faster.
9057 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
9058 into Hwnd so that other drivers can use it as well.
9059 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
9060 the default location from Hwnd. Fixes MDI client windows always
9061 showing up at (0,0) in Windows (Win32 won't set the default
9062 location since the window styles aren't correct).
9064 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
9066 * TreeView.cs: Modified DoubleBuffered to just use the base
9069 2007-05-18 Jackson Harper <jackson@ximian.com>
9071 * TreeView.cs: Set the top node to the last child node when
9073 - When we get focus, if there is no selected node, use the top
9076 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
9078 * KeysConverter.cs: Add CanConvertTo.
9079 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
9080 * LinkConverter.cs: Added.
9082 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9084 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
9085 it prevents error when file dont have write access. Fixes #81669 and #81667.
9087 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9089 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
9090 button text. Fixes #79640.
9092 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9094 * Control.cs: According to MSDN controls created in the designer theres
9095 keyboard accelerators visible by default. So included check for design
9096 in ShowKeyboardCuesInternal.
9098 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9100 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
9103 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9105 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
9106 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
9108 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9110 * Control.cs: Finish implementation of UI State using WmChangeUIState
9111 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
9112 in some controls to check for show_keyboard_cues to draw accell keys "_".
9114 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9116 * ListBox.cs: When calculating the horizontal scrollbar
9117 in single column mode, don't use values less than 0 for
9118 Maximum. Fixes #81474.
9120 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9122 * ListBox.cs: Throw the some missing exceptions in
9123 ListBox.ObjectCollection methods.
9125 2007-05-17 Jackson Harper <jackson@ximian.com>
9127 * TextBoxBase.cs: Recalculate the document when the word wrap
9128 value has changed. This fixes 81488.
9130 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9132 * Clipboard.cs: Implement missing GetText overload.
9134 2007-05-17 Chris Toshok <toshok@ximian.com>
9136 * Control.cs (CheckDataBindings): remove the binding_context arg
9139 * CurrencyManager.cs (OnItemChanged): fix this now that
9140 BindingManagerBase is fixed. also remove the comment telling where
9141 the fix should go. We set transfering_data to true/false around
9142 the call to PushData to keep UpdateIsBinding from being called.
9143 (ListChangedHandler): remove the extra OnMetaDataChanged call for
9144 PropertyDescriptorAdded in the 1.1 case. The extra call is
9145 actually generated by System.Data generating 2 metadata changed
9146 events of its own per column add. The fix should go there. Add a
9147 comment to that affect in our test's Assert.Ignore.
9149 * BindingManagerBase.cs: Rework PullData and PushData slightly.
9150 we keep a boolean flag (transfering_data) that keeps us from
9151 calling UpdateIsBinding multiple times if we re-enter either of
9154 * ControlBindingsCollection.cs (AddCore): remove the
9155 binding_context arg to binding.Check.
9157 * Binding.cs (IsBinding): don't check if we're binding here, just
9158 return our cached value. we update it in UpdateIsBinding.
9159 (Check): don't take the binding_context arg, we'll just use our
9160 control's. Also, for some reason MS doesn't use the data member
9161 field when getting the bindingmanager for this binding. it just
9162 uses the datasource. Make this method callable multiple times,
9163 and only do the is_null_desc stuff if manager.Position != -1 (so
9164 we don't get an exception accessing manager.Current).
9165 (UpdateIsBinding): move the code from IsBinding here.
9166 (PositionChangedHandler): call Check here to we can initialize
9167 things that require a non- -1 position.
9169 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9171 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
9174 2007-05-17 Andreia Gaita <avidigal@novell.com>
9176 * TabControl.cs: Add 2.0 methods and events, including
9177 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
9178 * TabPage.cs: Add 2.0 methods
9180 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9182 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
9183 keyboard_cues is properly handled by message method.
9185 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9187 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
9189 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9191 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
9193 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
9196 - WmUpdateUIState added to handle state changes, it make call to
9197 OnChangeUICues event.
9198 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
9201 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
9203 * ImageKeyConverter.cs: Added.
9204 * TreeViewImageKeyConverter.cs: Added.
9206 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9208 * ToolTips.cs: Update Text if SetToolTip is called for a control
9209 already showing the tooltip, as well as restarting its timer; show
9210 tooltip if we are inside the control bounds by the time of calling
9211 SetToolTip. Inside ShowTooltip remove the check to not show the
9212 tooltip again for the active control (it is allowed by .Net to
9213 show the tooltip on the same control multiple times).
9215 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9217 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9219 2007-05-16 Andreia Gaita <avidigal@novell.com>
9221 * ContainerControl.cs: only process tab key if there are no
9222 modifier keys present, otherwise the control does the
9223 tab processing, if it needs to. Fixes #81622
9224 * TabControl.cs: Fixes calculation for which tab to select on
9227 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9229 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9231 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
9233 * Control.cs: Make IsInputCharInternal to allow controls to
9234 override it and still match MS API.
9235 * TextBoxBase.cs: Override IsInputCharInternal and always
9239 2007-05-15 Jackson Harper <jackson@ximian.com>
9241 * TextBox.cs: Disable some of the menu options when using a
9244 2007-05-15 Jackson Harper <jackson@ximian.com>
9248 * RichTextBox.cs: Some new 2.0 methods
9250 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
9252 * FileDialog.cs: On 1.0 profile, do not support multidotted
9255 2007-05-14 Jackson Harper <jackson@ximian.com>
9257 * TextBoxBase.cs: Implement some of the new 2.0 methods.
9258 * RichTextBox.cs: We need to override these methods on 2.0.
9259 * MaskedTextBox.cs: These are implemented now
9260 * TextControl.cs: This was off by one.
9262 2007-05-14 Jackson Harper <jackson@ximian.com>
9264 * TextControl.cs: Because the line endings are including in the
9265 text, we don't need to add them in anymore.
9267 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9269 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
9270 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
9272 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9274 * ToolBar.cs: Adjust size to default size when button theres no text and
9275 image, it fixes remaining issues from #81524.
9277 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9280 - When not flat call redraw to recalculate sizes on creare handle to match
9282 - Revert 77220 because it causes some regressions in toobar
9285 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9287 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
9288 now actually enters a usable state.
9290 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9292 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
9293 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
9296 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9298 * ToolBar.cs: Save default_size on create handle to use later for buttons
9299 without text, needed to mimic win32 behavior.
9301 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9303 * ToolBar.cs: Fix button layour to best fit width or height according to
9304 vertical or not. Fixes #81524.
9306 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9308 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
9309 toolbar size info because different styles theres different sizes.
9312 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9314 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
9315 if we are using checkboxes, checked is true, and we have less
9316 than two images in StateImageList; for the 1.1 in the same scenario
9317 draw the first image if we have at least one image in StateImageList.
9318 Fixes part of #81191.
9320 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9322 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
9323 the owner's Items collection on merge.
9325 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9327 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
9328 * ToolStripItemCollection.cs: Lots of fixes to when events get called
9329 and parent/owner gets changed based on gert's unit tests.
9331 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9333 * MaskedTextBox.cs: Started implementing parts of it.
9335 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9337 * ListView.cs: When clicking the checkbox on the items
9338 take into account the double clicks even if we have only
9339 one image in StateImageList (only for 1.0/1.1). Also
9340 generate an extra change of checked state when we receive
9341 the second click on checkbox (match .Net behaviour).
9342 Fixes part of #81191.
9344 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9346 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
9348 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9350 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
9351 even if OnLoad is overriden and base.OnLoad is not called.
9354 2007-05-10 Andreia Gaita <avidigal@novell.com>
9356 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
9357 shame. (I blame my ever-persisting and annoying cold)
9359 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9361 * ListView.cs: Don't eat navigation keys. Let them flow through to
9362 KeyDown/KeyPress routines. [Fixes bug #81569]
9364 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9366 * ListView.cs: When handling keys for selecting the item based off
9367 keyboard input, do not consider keys pressed with Alt or Control. Also,
9368 correctly handle keys when the Shift key is down. [Fixes bug #81578]
9370 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9372 * Control.cs: When using UseWaitCursor, we have to store the requested
9373 Cursor to use when UseWaitCursor is turned off.
9375 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9377 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
9379 * Application.cs: Use PreProcessControlMessage instead of
9381 * PreProcessControlMessage.cs: Make internal for 1.1.
9383 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9385 * Control.cs: Add InternalContains focus property, which hast the same
9386 functionality of ContainsFocus, but also including implicit controls.
9387 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
9388 since we need to know if the focus is contained in our implicit
9389 ItemControl when calculating Layout. Fixes part of #80888.
9391 2007-05-08 Everaldo Canuto <everaldo@simios.org>
9393 * ToolTip.cs: Remove center form string alignment as it must be align to
9396 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
9398 * ToolStripItemCollection.cs: Set the new item's parent and owner
9399 in Insert like we do in Add. [Fixes bug #81568]
9401 2007-05-08 Jackson Harper <jackson@ximian.com>
9403 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
9404 - Off by one error in SetTop
9405 - Disable DoubeBuffering
9407 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9409 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
9410 control as much as necessary in order to make it entirely visible,
9411 instead of centering the control in the container (matches MS
9412 behaviour). CalculateCanvasSize: we need to take the current scroll
9413 position into account when calculating the maximum canvas,
9414 otherwise the following scenario will fail: resize so that the
9415 scrollbars appear, use the scrollbars to scroll, resize again
9416 smaller, and now the canvas size is too small. Recalculate: when
9417 showing scrollbars make sure they start off at 0, and try to scroll
9418 the active control into view. Fixes #79540. HandleScrollBar: don't
9419 scroll anywhere if the scrollbar isn't visible.
9421 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9423 * ListView.cs: When focus changed, call Layout/Invalidate
9424 in the focused item to update the selected state (should show
9425 entire label when ListView is focused, and a part of it if is not).
9426 * ListViewItem.cs: When doing layout for LargeIcon, take into account
9427 for displaying the entire label not only the Focused state of the
9428 item, but also the Focused state of the ListView (match .Net
9431 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9433 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
9434 Implement UseWaitCursor.
9436 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9437 Applying contributed patch from Sergey Volk.
9439 * Clipboard.cs: Implement SetDataObject retry logic and new overload
9441 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
9443 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9445 * Control.cs: Implement DrawToBitmap.
9447 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9448 Applying contributed patch from Stefan Noack.
9450 * Control.cs: Add [Get|Set]AutoSizeMode.
9452 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9454 * MdiClient.cs: Unmerge menus when the last child is closed.
9456 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9458 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
9459 * ToolStripManager.cs: Call Merge on DropDowns.
9462 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9464 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
9466 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
9467 visibility. We can't create forms visible, since we have to set the
9468 owner before making the form visible (otherwise Win32 will do
9469 strange things with task bar icons). The problem is that we set the
9470 internal is_visible to true before creating the control, so
9471 is_changing_visible_state is the only way of determining if we're
9472 in the process of creating the form due to setting Visible=true -
9473 this works because SetVisibleCore explicitly makes the form
9474 visibile afterwards anyways. Fixes #80775.
9476 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9478 * ThemeWin32Classic.cs: When drawing ListViewItems,
9479 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
9480 or LargeIcon _and_ item is not focused (match .Net behaviour).
9482 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9484 * Control.cs, Form.cs: Fix some obsolete method warnings.
9486 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9488 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
9489 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
9491 2007-05-04 Andreia Gaita <avidigal@novell.com>
9493 * ContainerControl.cs: Fix active_control attribution when going
9494 up the parent chain so that the first parent container gets the control
9495 and the rest of the parent containers get the child containers (skips
9496 non-containers). Fixes #80729
9498 2007-05-04 Randolph Chung <tausq@debian.org>
9500 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
9503 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9505 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
9506 takes a size parameter, since the CreateParam's size isn't true for
9507 minimized forms. Fixes #81518,
9509 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9511 * Form.cs: Add OnDeactivateInternal.
9512 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
9514 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9516 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
9517 accessing the parent. Fixes #81508.
9519 2007-05-03 Chris Toshok <toshok@ximian.com>
9521 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
9522 2.0 block, pass listposition + 1 to ChangeRecordState when a row
9523 was added before the current listposition. Fixes the
9524 TestInsertRowBeforeCurrent unit test.
9526 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
9528 * Application.cs: Add RaiseIdle.
9529 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9530 XplatUIX11.cs: Implement RaiseIdle.
9532 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
9533 corcompare work: N - Z
9537 * ScrollableControl.cs
9541 * SystemInformation.cs
9543 * TableLayoutControlCollection.cs
9544 * TableLayoutPanel.cs
9549 * ToolStripComboBox.cs
9550 * ToolStripContainer.cs
9551 * ToolStripContentPanel.cs
9552 * ToolStripDropDown.cs
9553 * ToolStripDropDownItem.cs
9554 * ToolStripDropDownMenu.cs
9556 * ToolStripItemCollection.cs
9557 * ToolStripMenuItem.cs
9559 * ToolStripSplitButton.cs
9562 * TreeNodeCollection.cs
9563 * TreeNodeMouseHoverEventArgs.cs
9566 2007-05-01 Everaldo Canuto <everaldo@simios.org>
9568 * ContextMenu.cs: Add public method Show with alignment property to 2.0
9569 stuff. Thanks aatdark for the patch.
9571 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9573 * GridItem.cs: Implement 2.0 Tag property.
9575 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
9577 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
9578 count instead of Nodes.Length. [Fixes bug #81448]
9580 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9582 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
9585 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9586 corcompare work: A - M
9587 * BindingNavigator.cs
9592 * FlowLayoutPanel.cs
9598 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9600 * Application.cs: Give toolstrips a chance to process mnemonics.
9601 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
9602 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
9603 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
9605 2007-05-01 Jackson Harper <jackson@ximian.com>
9607 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
9609 - Don't set the BoundsSpecified
9611 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9613 * Application.cs: When using the toolstrip shortcut mechanism, allow the
9614 message to pass through to a regular control if it hosted by a toolstrip.
9615 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9616 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
9618 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9620 * TextRenderer.cs: Use the flags argument when using the MeasureString
9623 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9625 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
9626 the MDI menu item. [Fixes bug #81483]
9628 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
9630 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
9631 string. When setting Name to null, use zero-length string instead.
9633 2007-04-29 Andreia Gaita <avidigal@novell.com>
9635 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
9636 DeselectTab). Implement missing 2.0 TabPageCollection methods
9637 (Add, ContainsKey, RemoveByKey, IndexOfKey)
9639 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
9641 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
9643 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
9645 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
9646 Fixes bug #81479. Include details of exception when LoadFile fails.
9648 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
9650 * DrawListViewSubItemEventArgs.cs: Added missing setter
9652 2007-04-27 Andreia Gaita <avidigal@novell.com>
9654 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
9655 Hide methods (not complete). Implement missing 2.0 OnPopup event.
9657 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9659 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
9660 removed in ly last commit (it was breaking the Label edit feature).
9662 * ThemeWin32Classic.cs: When drawing a ListViewItem use
9663 StringAlignment.Near for LineAlignment (match .Net).
9665 2007-04-27 Andreia Gaita <avidigal@novell.com>
9667 * TabControl.cs: Change SetTab so it adds the tabpage to the list
9668 of controls if it isn't already there - was blowing up when doing
9669 tabcontrol.TabPages[i]=new TabPage().
9670 SetTab now does a replace by removing the page at the index.
9671 Add a new InsertTab method that inserts a page in a given index
9672 instead of replacing.
9673 Implements TabPageCollection.Insert(int, TabPage).
9675 2007-04-27 Chris Toshok <toshok@ximian.com>
9677 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
9678 internal handler that can be invoked from our subclasses.) Also,
9679 add a comment to PushData about how we need to fix it.
9681 * CurrencyManager.cs: tons of changes here. trying to get things
9682 matching the behavior of .net wrt event orders (ItemChanged,
9683 CurrentChanged, PositionChanged.) I've implemented a private .net
9684 symbol (ChangeRecordState) that appears in stack traces because
9685 it's actually easier to do this than to effective inline all its
9686 various behaviors at every call site.
9688 * RelatedPropertyManager.cs: guard against an exception here by
9689 not using parent.Current if the position is set to -1 (if the
9690 parent datasource is cleared, for instance).
9692 * Binding.cs: don't parse data in PushData (this might be wrong,
9693 but it jives with MS's behavior.) Also, don't call PushData when
9694 we get a CurrentChanged event.
9696 2007-04-27 Andreia Gaita <avidigal@novell.com>
9700 WebBrowserSiteBase.cs,
9701 HtmlDocument.cs: Added stubbed out classes, no real implementations
9704 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9706 * MainMenu.cs: In draw method without parameters call draw method with
9707 PaintEvent, another one (just rect) adjust rectangle and we dont need it
9708 as Rect property is already adjusted. Fixes #80694.
9710 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
9712 * Application.cs: Need to handle keyboard menu deselection here.
9713 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
9714 navigation, allowing keyboard to work on X11.
9715 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
9717 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9719 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
9720 menu bar. It fixes some drawing issues in menu bar.
9722 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9724 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
9725 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
9726 when <alt> key is pressed.
9728 2007-04-26 Everaldo Canuto <everaldo@simios.org>
9730 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
9731 example just set visible to false and make this prevent from other problems.
9732 In SystrayAdd always remove pending expose. Fixes #81072.
9734 2007-04-26 Marek Safar <marek.safar@gmail.com>
9736 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
9739 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9741 * ListView.cs: Added three missing 2.0 events and corresponding
9742 EventHandlers. Added the OwnerDraw property.
9743 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
9745 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9747 * DrawListViewItemEventArgs.cs
9748 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
9750 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9752 * TextControl.cs: Fixed typo in constructor
9754 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
9756 * Application.cs: Create a shortcut path so that currently selected
9757 MenuStrips can intercept keyboard events without having focus.
9758 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
9759 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
9760 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
9761 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
9762 generate WM_SYSCOMMAND message in X11 for other platforms.
9763 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
9764 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
9765 * ToolStripSplitButton.cs: Add DefaultItem property.
9767 2007-04-26 Everaldo Canuto <everaldo@simios.org>
9769 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
9770 fixes some menu draw problem on Windows with border diferent from default
9771 it also fixes #81403.
9773 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9775 * Form.cs: Refactor WndProc into separate methods, just like Control is
9778 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9780 * Control.cs: set_Text: move the call to the driver into a seperate
9781 virtual method so that Form can override it.
9782 * MaskedTextBox.cs: Corcompare fixes.
9783 * Form.cs: Override UpdateWindowText and only update the styles if the
9784 form has been shown (fixes #81405).
9786 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
9788 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
9789 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
9790 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
9791 the form lost focus or another control was clicked.
9793 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
9795 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
9798 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9800 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
9801 DrawListViewItemEventHandler.cs,
9802 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
9804 * X11Structs.cs: More ToString implementation.
9806 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
9808 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
9809 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
9811 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9813 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
9815 * FormCollection.cs: Don't add a form if it's already in the
9817 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
9818 according to behaviour and MSDN. The ownerWin32 is the active
9819 window at the moment when we call ShowDialog, not the context's
9820 main form (the context's main form may open another form that opens
9821 a form with ShowDialog, the win32 owner is the second form). Add
9822 and remove forms to the Application.OpenForms in other places to
9823 better match MS behaviour. Add an IsActive property that raises
9824 On(de)Activated only if the active state has changed (we were
9825 raising OnDeactivated before OnActivated while creating forms).
9826 * Application.cs: Refactor Enabling/Disabling of windows for modal
9827 dialog loops out to separate methods, and restore the thread
9828 context when we quit the method. Fixes #81407.
9830 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9832 * ListView.cs: In ItemControl.HandleClicks, also fire
9833 2.0 MouseClick or MouseDoubleClick events on the parent,
9834 not only the Click/DoubleClick events.
9836 2007-04-24 Andreia Gaita <avidigal@novell.com>
9838 * TableLayoutSettings.cs:
9839 - Added a GetControls method and a support structure to help the
9840 TypeConverter to enumerate the controls for serialization.
9841 - Added a new serialization constructor.
9842 - Added a isSerialized flag initialized to true on the
9843 serialization constructor so that the TableLayoutPanel.LayoutSettings
9844 setter does not throw the designed NotSupportedOperation exception
9845 when the object is built through deserialization.
9846 - Implemented GetObjectData
9848 * TableLayoutPanel.cs: Added check on LayoutSettings.
9850 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9852 * ListView.cs: Report Click and DoubleClick events to the parent
9853 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
9854 from breaking the click count state when using dialog forms (Control
9855 reports the clicks in a similar fashion). In the previous behaviour
9856 the last WM_LBUTTONUP message in a double click was sent to the
9857 ListView's form, instead of the ListView, which was breaking the click
9858 count for it. Fixes #80387.
9860 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
9862 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
9864 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
9866 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
9867 us from created dropdowns for menu items that do not have subitems.
9868 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
9869 Check HasDropDownItems before calling DropDown so a dropdown will not be
9870 created if it isn't needed.
9872 2007-04-24 Jackson Harper <jackson@ximian.com>
9874 * TreeView.cs: Set the first node to the selected node when we get
9875 focus if there is no selected node.
9877 2007-04-24 Andreia Gaita <avidigal@novell.com>
9879 * MimeIcon.cs: remove using blocks so that image streams are
9880 not disposed of. Fixes #80151
9882 2007-04-24 Jackson Harper <jackson@ximian.com>
9884 * TextBoxBase.cs: Fixup the height of textboxes when the control
9887 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
9889 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
9890 for each ToolStripItem when the parent's RightToLeftChanged is called.
9892 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9894 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
9896 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
9897 property, so that the setter can be overriden too.
9898 * TextBox.cs: Change GetContextMenuInternal() to use
9899 ContextMenuInternal.
9901 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9903 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9906 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9908 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9911 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9913 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
9914 avoid duplicate work. Mostily skeleton code, it's not working at
9917 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
9919 * NotifyIcon.cs : stub for MouseClick event
9920 * Application.cs: stub for SetUnhandledExceptionMode
9922 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
9924 * BindingNavigator.cs : Initial (partial) implementation
9926 2007-04-23 Jackson Harper <jackson@ximian.com>
9928 * TreeView.cs: Do not create the treeview's handle when setting
9929 the scroll position.
9930 - ExpandAll needs to compute the scrollbars so it knows which
9931 position to set the bar too.
9933 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
9935 2007-04-23 Jackson Harper <jackson@ximian.com>
9937 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
9940 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
9942 * ToolStripItem.cs: Make GetImageSize internal.
9943 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
9944 need to draw an item. Fixes a reported issue where images on menus
9945 that were not 16x16 were drawing incorrectly.
9947 2007-04-21 Miguel de Icaza <miguel@novell.com>
9949 * Padding.cs: Use the converter, fixes the resgen2 issue with
9952 2007-04-21 Jackson Harper <jackson@ximian.com>
9954 * TreeView.cs: Dont try to unhighlight the selected node if there
9955 isn't a selected node.
9957 2007-04-21 Jackson Harper <jackson@ximian.com>
9963 * TreeView.cs: Use the InternalBorderStyle property to set the
9964 initial border style, this forces the client rectangle to be sized
9967 2007-04-20 Jackson Harper <jackson@ximian.com>
9969 * TreeView.cs: Simplify scrolling to the last node after expanding
9971 - Fix some off by ones with setting the bottom.
9973 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
9975 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
9976 that. We were incorrectly doing it the other way around. Also,
9977 update ClientSize if we change the BorderStyle before the control
9980 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
9982 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9983 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9984 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
9985 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9986 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9987 Caption to CaptionHeight.
9988 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
9989 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
9990 and FixedFrameBorderSize to return value from current XplatUI driver.
9991 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
9992 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
9993 and FixedFrameBorderSize using win32 API. Renamed Caption to
9995 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
9996 * SystemInformation.cs: Fixed typo in BorderSize.
9998 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
10000 * XplatUI.cs: Added MenuAccessKeysUnderlined.
10001 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
10002 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
10004 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
10005 value from XplatUI driver.
10006 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
10007 SystemParametersInfo.
10008 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
10010 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
10013 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10015 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
10017 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10019 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
10021 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
10023 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
10024 MenuStrips that contain ToolStripSeparators.
10026 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10028 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
10029 DefineStdCursorBitmap.
10030 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
10031 has been created off a standard cursor. This is used to get a
10032 bitmap of the standard cursor when Draw or DrawStretched is called
10033 in order to draw the cursor.
10034 * X11Structs.cs: Added XcursorImage and XcursorImages.
10035 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
10036 DefineStdCursorBitmap.
10037 * Cursors.cs: Update all relevant creations of Cursor to use the new
10038 internal constructor.
10040 2007-04-19 Jackson Harper <jackson@ximian.com>
10042 * TextBox.cs: Move the has_been_focused into the base control, so
10043 some of the text adding methods can manipulate it (probably time
10044 for a better name for this flag too).
10045 - Call a new version of selectall that doesn't scroll
10046 * TextBoxBase.cs: When we append text, if the document is empty,
10047 don't scroll. If the document has text already, we scroll to the
10048 end of the appended text.
10049 - When the text is changed, we reset the has_been_focused, so the
10050 next time the control gets focused, all the text is selected.
10052 2007-04-19 Jackson Harper <jackson@ximian.com>
10054 * TextControl.cs: Move the margins to the document, add a method
10055 so the margin sizes can be updated.
10056 * TextBoxBase.cs: When the border style is changed, update the
10059 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
10061 * Control.cs: Respect DefaultPadding.
10062 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
10063 padding into account.
10064 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
10066 2007-04-19 Jackson Harper <jackson@ximian.com>
10068 * TextControl.cs: Oops, we need to use the ClientRect not the
10071 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10073 * ListView.cs: In ItemControl.ItemsMouseDown, take into
10074 account the double clicks when CheckBoxes are used and
10075 the pointer is inside the checkbox. Fixes part of #81191.
10077 2007-04-18 Jackson Harper <jackson@ximian.com>
10079 * TextControl.cs: Pressing the end key shouldn't move the caret
10080 past the line ending.
10081 * TextBoxBase.cs: We can still delete if we are in the line
10082 ending and the combine will just kill the existing line ending.
10084 2007-04-18 Jackson Harper <jackson@ximian.com>
10086 * TextControl.cs: We can't move lines, then invalidate their
10087 bounds, we need to get the old bounds and combine that with the
10089 * TextBoxBase.cs: Before combining two lines for a delete, we need
10090 to invalidate the area of the old line, since that will be moved
10091 in the combine operation.
10093 2007-04-18 Everaldo Canuto <everaldo@simios.org>
10095 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
10096 with transparent background. Fixes #80482.
10098 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
10100 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
10101 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
10104 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10106 * CreateParams.cs: Add a couple of helper methods and do a less string
10107 concatenation in ToString.
10108 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
10109 overload that takes a Control parameter, since this method may be
10110 called before a control is assigned to the hwnd (from
10111 CreateWindow), and update CreateWindow to use the new overload. In
10112 GetMenuOrigin subtract the title bar from the y position if the
10113 form has a window manager (since we're painting it and not X).
10114 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
10115 CreateParams to calculate the origin (since border sizes may vary).
10116 In ScreenToMenu only subtract the title height if we actually have
10118 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
10119 mdi children never have menus of themselves.
10120 * InternalWindowManager.cs: Implement menu handling like form does.
10121 Added GetMenuOrigin to calculate the menu origin, can't use the
10122 CreateParams from the form like normally since it's lying.
10123 * Hwnd.cs: Implement GetBorderSize better (in the sense more
10124 windows-like) and add Inflate and comparison operators to the
10125 Borders type. When calculating MenuOrigin and it's a form with a
10126 window manager, use the window manager to calculate it.
10128 2007-04-17 Chris Toshok <toshok@ximian.com>
10130 * Control.cs (CreateControl): turns out in 2.0 we don't need this
10131 OnBindingContextChanged thing here. It's only generated from
10132 ContainerControl.OnCreateControl. Fixes a newly written unit test
10133 - BindingTest.BindingContextChangedTest4.
10135 2007-04-17 Jackson Harper <jackson@ximian.com>
10137 * ScrollBar.cs: When setting values, make sure the current
10138 position stays within the new values range.
10140 2007-04-17 Chris Toshok <toshok@ximian.com>
10142 * Control.cs (CreateControl): talk about a bizarre corner case.
10143 Don't emit OnBindingContextChanged here if we're a parentless
10144 control (i.e. if we're a form.). Fixes
10145 BindingTest.BindingContextChangedTest2.
10147 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10149 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
10150 from win32. Fixes #81255.
10152 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10154 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
10155 already present in CalculateButtonTextAndImageLayout.
10157 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10159 * XplatUIX11.cs: When setting min/max size for a window we need to
10160 translate the coordinates to x coordinates. Create an overload of
10161 SetWindowMinMax that takes a CreateParams handling this, and change
10162 SetWMStyles to call this function (can't use Control.FromHandle in
10163 the SetWindowMinMax to get the control/CreateParams from the handle
10164 because the handle might not have been assigned to the control
10165 yet). Fixes #81371.
10167 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10169 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
10170 if StateImageList is non-null and it has less than two items (match MS
10171 behaviour). Also, in HandleNavKeys handle the Space key, calling
10172 the new ToggleItemsCheckState method, which tries to change the
10173 checked state of the selected items. Fixes part of #81191.
10175 2007-04-16 Jackson Harper <jackson@ximian.com>
10177 * RichTextBox.cs: namespace cleanup.
10179 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10181 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
10183 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10186 * Control.cs: Call invalidate in set_Region.
10188 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
10189 it dont works here.
10191 2007-04-16 Jackson Harper <jackson@ximian.com>
10193 * TextBoxBase.cs: When enter is pressed, we need to update all
10194 lines below the current.
10196 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
10198 * MdiClient.cs: Implement implicit menu merging for MDI
10199 children. When a child form is active, if it has a menustrip
10200 and the parent form has a MainMenuStrip, automatically merge
10203 2007-04-15 Andreia Gaita <avidigal@novell.com>
10205 * TabControl.cs: Refactored sizing methods to not repeat
10206 code all over the place. Tab bounds are now calculated
10207 as if alignment is top and single line, and only when
10208 setting the bounds are the positions adjusted according
10209 to alignment. Replaced hardcoded positions, spacings and
10210 paddings by getting the values the ThemeEngine.
10213 * Theme.cs: Change TabControl properties and methods so
10214 that all start with TabControl*. Added more properties
10215 to help remove hardcoded values on tabcontrol.
10216 Add CPDrawBorder3D declaration so the Theming classes
10219 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
10221 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
10222 on the Theming namespace, and call the appropriate methods here.
10223 Change CPDrawBorder3D to public.
10225 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10227 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
10228 the control after firing the OnMouseUp event, instead of sending
10229 the message before the mentioned event. This is so we can match the
10230 MS behaviour. Fixes part of #80385.
10232 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10234 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
10235 RightToLeft property.
10237 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10239 * ToolStrip.cs: Add properties and internal methods to support merging.
10240 * ToolStripItem.cs: Add MergeAction and MergeIndex.
10241 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
10242 not trigger reparenting or layouts.
10243 * ToolStripManager.cs: Add Merge and RevertMerge methods.
10244 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
10245 is hosting the overflow menu.
10247 2007-04-13 Jackson Harper <jackson@ximian.com>
10249 * TextControl.cs: Set the line ending correctly for the first
10252 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
10254 * Theme.cs: Update GetMethod to get the new definition for
10255 KnownColors.Update (and fix theme color updates).
10257 2007-04-12 Everaldo Canuto <everaldo@simios.org>
10259 * MessageBox.cs: Fix some test and button position.
10261 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10263 * Form.cs: Consider the implicit controls in
10264 GetRealChildAtPoint. We need it since this method
10265 is called on Form when handling the some messages in
10266 WndProc, and need to consider those implicit ones too.
10269 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
10271 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
10272 if there are no ShortcutKeys set.
10273 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
10274 set, use it when painting.
10276 2007-04-12 Jackson Harper <jackson@ximian.com>
10278 * TextControl.cs: Fix some off-by-one issues in line duplication
10279 and insertion in the undo manager. Also, overwrite the first tag
10280 of a line on insert, if it is just a zero lengthed tag. This
10281 prevents us from getting an extra stranded tag at the beginning of
10284 2007-04-11 Everaldo Canuto <everaldo@simios.org>
10286 * Label.cs: Remove check for handle created in CalcAutoSize, we need
10287 to calculated proper size including when handle was not created yet.
10289 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10291 * MdiWindowManager.cs: When moving a form, allow the form to be moved
10292 when the mouse is outside of it's parent's client rectangle. Fixes
10293 #79982 (take 3, part 2).
10295 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10297 * X11Structs.cs: Add a few ToString() overrides.
10298 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
10299 the window location in a window-manager independent way. Reworked
10300 FrameExtents, it now actually works. Reworked AddConfigureNotify
10301 and ReparentNotify handling to use GetTopLevelWindowLocation
10302 instead of the earlier, more hacky solution. Reworked SetWMStyles,
10303 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
10304 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
10305 for all other windows (fixes #81281 part 1), a toolwindow is hidden
10306 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
10307 and generally refactored to do as few calculations as possible
10310 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
10312 * Theme.cs: Change "reflective-contract" between MWF and SD to
10313 minimize # of calls, avoid Color serialization and avoid updating
10314 every "known colors" each time a single one is updated.
10316 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10318 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
10319 when not readonly and the text is explicitly set. Code style updates.
10320 * DataGridTableStyle.cs: Removed extra line.
10321 * DataGrid.cs: Code style updates. Removed extra whitespace.
10322 * DataGridColumnStyle.cs: Code style updates. Removed extra
10325 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10327 * XplatUIX11.cs: Added comment that "fixes" #80021.
10329 2007-04-09 Jackson Harper <jackson@ximian.com>
10331 * TextControl.cs: We don't need this -1 on the line count anymore.
10333 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10335 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
10336 entered value to underlying type, and convert it back to a string to
10337 apply formatting. Modified GetFormattedValue to use TypeConverter
10340 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
10342 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
10343 Use SubItems property when we want to ensure there's at least one
10344 subitem. Modified SubItems property to ensure there's always at least
10345 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
10346 the NRE's reported by MS.
10348 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
10350 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
10351 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
10352 Spaces to tabs. Removed extra tabs.
10354 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
10356 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10357 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
10359 2007-04-06 Jackson Harper <jackson@ximian.com>
10361 * TextBoxBase.cs: When a delete removes a line, recalculate all
10362 lines below that line (they need to get offsets setup correctly)
10365 2007-04-05 Jackson Harper <jackson@ximian.com>
10367 * TextControl.cs: We need to invalidate across the width of the
10368 document when we are invalidating multiple lines.
10369 * TextBoxBase.cs: Don't delete into the line ending.
10371 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10373 * ListView.cs: Restore the check for the MouseHover event
10374 in ListView. It looks like the ListView fires more than one MouseHover
10375 event when HoverSelection is true _only_ in weird-corner scenarios, but
10376 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
10379 2007-04-05 Mike Kestner <mkestner@novell.com>
10381 * ListView.cs : raise MouseDown before updating selection.
10382 [Fixes #80373 tab 1&3]
10384 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10386 * ToolStripRenderer.cs: Add static method to mirror image.
10387 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
10388 and RightToLeftAutoMirrorImage.
10389 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
10391 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10393 * ToolStripSplitStackLayout.cs: Support Alignment property.
10394 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
10396 2007-04-05 Jackson Harper <jackson@ximian.com>
10398 * TextControl.cs: Move around the line endings when crossing line
10400 - When combining lines, strip the ending text off the first line.
10402 2007-04-05 Jackson Harper <jackson@ximian.com>
10405 * TextBoxBase.cs: Try to never move the cursor into the line
10408 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10410 * ToolStripItem.cs: Make sure we aren't firing mouse events when
10411 the item is disabled. Also add a few missing methods.
10413 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10415 * ListView.cs: We don't need the MouseEnter/MouseLeave check
10416 to fire just one MouseHover event when HoverSelection is true, since
10417 .Net does fire more than one MouseHover event in that scenario. Also,
10418 fix the selection in HoverSelection, by invoking UpdateMultiSelect
10419 if MultiSelect is true, instead of only setting ListViewItem.Selected.
10420 Finally, we need to reset the Hover logic in MouseMove, even when we
10421 don't have a selected item.
10423 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10425 * ToolStrip.cs: Add several missing methods, properties, and events.
10427 2007-04-04 Chris Toshok <toshok@ximian.com>
10429 * DataGridTextBoxColumn.cs: set the bounds of the text box to
10430 (0,0,0,0) in Commit, as MS does.
10432 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
10433 make sure we set CurrentRow on a row header click *before* calling
10434 Select. This moves the current cell (and the textbox) to the new
10435 row. The call to Select then hides the textbox, giving us the
10436 correct behavior. Fixes #80362.
10438 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
10439 (ListChangedHandler): reorder the position/current changed events,
10440 and call UpdateIsBinding in the ItemAdded case.
10442 * GridColumnStylesCollection.cs: add some columns events, one of
10443 which raises the CollectionChanged event.
10445 2007-04-04 Jackson Harper <jackson@ximian.com>
10447 * TextControl.cs: When we delete multiple selection lines
10448 invalidate the selection area, don't need to do that for single
10449 lines because the final update view will handle it.
10451 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10453 * Control.cs: When we CreateControl, we need to also create all of the
10454 control's children. The child's OnLoad must also fire before the parent's
10455 OnLoad. Fixes the toolbox size in PDN.
10457 2007-04-04 Jackson Harper <jackson@ximian.com>
10459 * TextBoxBase.cs: When the user presses enter, insert a line
10460 ending into the text. (Maybe this would be a good spot for
10461 Environment.NewLine).
10462 * TextControl.cs: Remove undo manager hack, line endings get
10463 inserted properly now.
10465 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10468 - Remove unneeded parameters in UpdateCursor.
10469 - Fix UpdateCursor to check if menu is active.
10470 - Call UpdateCursor when menu deactivate my click.
10471 [Fixes remaining issues from #80410]
10473 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10475 * Control.cs: GetRealChildAtPoint method added, it make an
10476 recursive child control search for the point.
10478 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
10481 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
10483 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10485 * Form.cs: Fix mouse position when send back mouse event after closes
10488 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10490 * Form.cs: Simplify the BUTTONDOWN for active tracker.
10492 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10494 * Control.cs: Fix an issue where if a user resized a control inside
10495 a sizing method like OnResize, we would overwrite their explicit
10496 value. Also, only call DefaultSize once in the constructor instead
10497 of 4 times. Also, do not call SetBoundsCore from SetBounds if
10498 nothing actually changed.
10500 2007-04-03 Jackson Harper <jackson@ximian.com>
10502 * TextControl.cs: Don't attempt to copy text for lines with no
10503 text in them (technically this shouldn't happen, but we aren't
10504 always inserting line endings when we should be).
10506 2007-04-03 Jackson Harper <jackson@ximian.com>
10508 * TextBoxBase.cs: Calculate the scrollbars before calculating the
10509 document, because this sets some of the document size properties
10512 2007-04-03 Jackson Harper <jackson@ximian.com>
10514 * TextBoxBase.cs: We need to calculate maximums even if this is
10515 not a multiline control, because the maxs are used for scrolling.
10516 - Display the caret after doing a page up/down, we need to
10517 manually display it because a proper CaretMoved event isn't
10518 triggered (this is because of the way the math is done to
10519 determine how far to scroll).
10521 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10523 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
10524 (ToolBar was relying on SetBoundsCore to default the values sent
10525 base off of BoundsSpecified.)
10527 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10529 * DateTimePicker.cs: Change Text so that when a null value or empty
10530 string is assigned to the test we always raise ValueChanged and
10531 TextChanged (earlier implementation would only raise ValueChanged
10532 if the current date value was different from DateTime.Now).
10534 2007-04-03 Andreia Gaita <avidigal@novell.com>
10536 * ButtonBase: Call update after invalidation, fixes #80194
10538 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10540 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
10543 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10545 * XplatUIX11.cs: SetWMStyles: If the control is a form with
10546 FormBorderStyle = None, don't give the window any decorations.
10549 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10551 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10552 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
10553 to check for is a mix of several styles (such as WS_CAPTION for
10555 * Control.cs: Don't paint an area bigger than the client area when
10556 painting the background colour. Add an internal GetCreateParams.
10557 Update calls to XplatUI.CalculateWindowRect due to API change.
10558 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
10559 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
10560 the size if it hasn't been handled by any windows. When creating
10561 and moving windows, X wants the location of the entire window, but
10562 the size of the client window, so add
10563 TranslateClientRectangleToXClientRectangle,
10564 TranslateWindowSizeToXWindowSIze and
10565 TranslatedXWindowSizeToWindowSize to cope with this, and call them
10566 before every window creation and move. Update CalculateWIndowRect
10567 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
10568 In AddConfigureNotify don't do anything if the hwnd is a zombie
10569 (fixes the BadWindow we were getting while running the tests),
10570 always calculate the offsets when it's a parentless window, not
10571 only when reparented, and translate the window size, since we're
10572 getting the client size of the whole window, excluding entire
10574 * Theme.cs: Added BorderSizableSize.
10575 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10576 anymore. Update calls to XplatUI.CalculateWindowRect due to API
10578 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
10579 change. Fake the window styles here instead of in XplatUIWin32 so
10580 that all back-ends get the same window styles (and it's Form that's
10581 deciding when to use wm, not the Win32 backend anyways)
10582 * Hwnd.cs: Completely reworked GetWindowRectangle and
10583 GetClientRectangle - they are now passed a CreateParams and they
10584 only use Style and ExStyle to determine the rectangles (they should
10585 now work just like Win32AdjustWindowRectEx - though quite a few
10586 special cases are probably missing). They should also be 100%
10587 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
10588 == rect), and all numbers (borders, menu sizes) are taken from the
10589 current theme. Added a GetBorders helper function that will return
10590 the borders for any given CreateParams (including captions and
10591 menus), and GetBorderSize that returns the given border size only.
10592 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10593 Hwnd.GetClientRectangle.
10595 2007-04-02 Chris Toshok <toshok@ximian.com>
10597 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
10598 logic between the values we present to the user and the values
10599 which are stored in the column's property. Also, don't call
10600 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
10602 2007-04-02 Jackson Harper <jackson@ximian.com>
10604 * TextBoxBase.cs: Scroll faster!
10606 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
10608 * StatusStrip.cs: Layout fixes for PDN.
10609 * ToolStrip.cs: Set item's available to true, and placement to main when
10611 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
10612 changing in setter before doing any work, add InternalVisible.
10613 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
10614 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10617 2007-04-02 Jackson Harper <jackson@ximian.com>
10619 * TextBox.cs: LBUTTON does not make the textbox select all of it's
10622 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10624 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
10625 Makes ToolStripComboBoxes show up again.
10627 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10629 * ListView.cs: Add a hover_pending field in ListView
10630 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
10631 cycle (we are resetting the MouseHover logic in XplatUI
10632 to handle HoverSelection). Fixes #80429.
10634 2007-04-02 Jackson Harper <jackson@ximian.com>
10636 * TextControl.cs: Make sure the attributes get set on the last
10638 - Still have to do the end tag if we have stepped all the ways to
10641 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
10643 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
10644 on an internal libgdiplus call when the information is already
10645 available via the public API.
10647 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10649 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
10650 control is removed from a control collecftion.
10651 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
10652 Fixes FormPropertyTest (failed on rare occasions).
10653 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
10654 of Win32SetParent (when changing from no parent to a parent it
10655 might add the new parent's location in screen coordinates to this
10656 window's location).
10657 * Form.cs: Rework ChangingParent once again, now the handle is
10658 recreated whenever a FormWindowManager is added or removed (that is
10659 whenever a normal form is parented or abandoned). Also change
10660 CreateParams so that all non-toplevel windows always get the
10661 specified sice (StartupPosition is never considered for
10662 non-TopLevel forms).
10663 * ContainerControl.cs: Add ChildControlRemoved, the container control
10664 needs to be notified when a control is removed from it's
10665 collection, in the case the removed control is the active control.
10667 2007-04-02 Jackson Harper <jackson@ximian.com>
10669 * RichTextBox.cs: Use the new methods for setting the font and
10670 color, these methods set the specified attribute without
10671 overriding the other attributes.
10673 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
10675 * ToolStripPanel.cs: Fixes for better layouts in PDN.
10677 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
10679 * TextBox.cs: Added internal ChangeBackColor method to special-case
10680 Color.Empty. Added check for invalid ScrollBars value.
10681 * TextBoxBase.cs: Added internal ChangeBackColor method.
10682 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
10683 internal ChangeBackColor method to special-case Color.Empty. Added
10684 check for invalid ScrollBars value.
10686 2007-03-30 Everaldo Canuto <everaldo@simios.org>
10688 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
10690 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
10692 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
10693 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
10694 [Based on submitted patch from Olivier Duff.]
10696 2007-03-30 Jackson Harper <jackson@ximian.com>
10698 * TextBox.cs: Only select all on initial focus if the user has not
10699 specified a selection area.
10701 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
10703 * UserControl.cs: Override CreateParams.
10705 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10709 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10710 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
10711 check for is a mix of several styles (such as WS_CAPTION for instance).
10712 * Control.cs: Don't paint an area bigger than the client area when painting
10713 the background colour. Add an internal GetCreateParams. Update calls to
10714 XplatUI.CalculateWindowRect due to API change.
10715 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
10716 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
10717 hasn't been handled by any windows. When creating and moving windows, X
10718 wants the location of the entire window, but the size of the client
10719 window, so add TranslateClientRectangleToXClientRectangle,
10720 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
10721 to cope with this, and call them before every window creation and move.
10722 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
10723 removing DeriveStyles). In AddConfigureNotify don't do anything if the
10724 hwnd is a zombie (fixes the BadWindow we were getting while running the
10725 tests), always calculate the offsets when it's a parentless window, not
10726 only when reparented, and translate the window size, since we're getting
10727 the client size of the whole window, excluding entire window.
10728 * Theme.cs: Added BorderSizableSize.
10729 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10730 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
10731 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
10732 Fake the window styles here instead of in XplatUIWin32 so that all
10733 back-ends get the same window styles (and it's Form that's deciding when
10734 to use wm, not the Win32 backend anyways)
10735 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
10736 they are now passed a CreateParams and they only use Style and ExStyle
10737 to determine the rectangles (they should now work just like
10738 Win32AdjustWindowRectEx - though quite a few special cases are probably
10739 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
10740 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
10741 sizes) are taken from the current theme. Added a GetBorders helper
10742 function that will return the borders for any given CreateParams
10743 (including captions and menus), and GetBorderSize that returns the given
10745 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10746 Hwnd.GetClientRectangle.
10748 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10750 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
10751 layout of the mdi children is handled by CreateParams. Fixes
10754 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10756 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
10759 * Form.cs: When active tracker mouse down is not processed, send event
10760 back to control inside mouse position. [Fixes #81227]
10762 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
10764 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
10765 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
10766 stealing focus from the active form on Windows. (Control will be made
10767 visible in ShowWindow.)
10769 2007-03-29 Mike Kestner <mkestner@novell.com>
10771 * ImageList.cs : add internal Changed event.
10772 * ListView.cs : hook up to StateImageList.Changed to perform
10773 invalidations when the the state icon list changes. [Fixes #81191]
10775 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
10777 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
10778 to prevent tooltips from stealing focus from the active form on Windows.
10780 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10782 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
10784 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
10786 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10788 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
10791 2007-03-29 Jackson Harper <jackson@ximian.com>
10793 * TextControl.cs: When deleting text from non multiline textboxes,
10794 we need to update the entire document, because line offsets will
10797 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10799 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
10800 added to theme, now we can create themes that uses diferent notify engines
10801 like notification-daemon from galago project or growl for Mac OS.
10803 2007-03-28 Everaldo Canuto <everaldo@simios.org>
10805 * NotifyIcon.cs: Prevent Balloon to show in task bar.
10807 2007-03-28 Everaldo Canuto <everaldo@simios.org>
10809 * XplatUIX11.cs: Prevent system to open more than one balloon.
10811 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
10812 some compiler warning messages.
10814 2007-03-28 Everaldo Canuto <everaldo@simios.org>
10818 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
10820 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
10821 implemented, this methods is used by NotifyIcon.BalloonWindow class.
10823 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
10826 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10828 * ListViewItem.cs: Forgot to make Invalidate internal.
10830 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10832 * ListView.cs: Add a InvalidateSelection method to
10833 invalidate methods which are currently selected, and call
10834 it when setting FullRowSelect and HideSelection, instead of
10837 2007-03-28 Chris Toshok <toshok@ximian.com>
10839 * XplatUIX11.cs (UnmapWindow): reindent this block.
10841 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
10842 the selection_start if we're moving the selection (that is, not
10843 extending it). Fixes bug #80461.
10845 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10847 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
10848 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
10849 create private ControlCollection.
10851 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10853 * Control.cs: We need to call OnVisibleChanged for our implicit
10854 children as well as our normal children. Fixes scrollbars in
10855 comboboxes not showing up.
10857 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10859 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
10860 the check for IsHandleCreated first. The check in CreateHandle is not
10861 good enough because CreateHandle can be overriden, and the override
10862 should not be called if the handle is already created.
10864 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10866 * ToolStrip.cs: Remove MonoTODO for tooltips.
10867 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
10868 * ToolStripContainer.cs: Add custom ControlCollection class.
10869 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
10870 * ToolStripDropDown.cs: Add some missing properties/methods.
10871 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
10872 * ToolStripItem.cs: Remove MonoTODO for tooltips.
10873 * ToolStripManager.cs: Add IsShortcutDefined.
10874 * ToolStripOverflow.cs: Override LayoutEngine.
10875 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
10876 * ToolStripSeparator.cs: Add ImageKey.
10878 2007-03-28 Jackson Harper <jackson@ximian.com>
10880 * TextControl.cs: If a char delete removes a line ending, we need
10881 to update the ending style.
10882 - Make sure the line ending calcs get called.
10884 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10886 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
10887 it was making the new code not work. Fixed a typo in the new code
10888 as well. Fixes #79826.
10890 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10893 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
10894 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
10895 - SystrayBalloon method implemented.
10896 [Add support for notifyicon balloon on win32, #79149]
10898 2007-03-27 Mike Kestner <mkestner@novell.com>
10900 * ThemeWin32Classic.cs : update StateImageList selection to mirror
10901 the ms behavior when only one image is added to the list.
10904 2007-03-27 Jackson Harper <jackson@ximian.com>
10906 * TextControl.cs: Improvements to non multiline line ending
10909 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10911 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
10913 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10916 - Balloon message handling added.
10917 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
10919 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10920 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
10921 to SystrayBalloon to me like other Systray method, also a
10922 handle parameter added.
10924 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10926 * ListView.cs: Show scrollbars even when items.Count == 0
10927 but the columns Width is bigger than the ListView.Width.
10928 Also, when columns.Count == 0 set layout_wd and layout_ht
10929 to the ClientRectangle values, so we don't show any scrollbar
10932 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10934 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
10936 2007-03-27 Jackson Harper <jackson@ximian.com>
10938 * RichTextBox.cs: The RTF library decodes the text properly for us
10941 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10943 * ListView.cs: Display HeaderControl even when columns.Count == 0.
10944 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
10945 ListView header (HeaderControl), instead of Control.BackColor.
10947 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
10949 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
10950 Fixes tab control issues where controls would not show up because they
10951 never received their OnVisibleChanged call.
10953 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10955 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
10958 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
10960 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
10961 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
10962 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
10963 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
10964 the handle. Fix WindowState by using the internal variable until we are
10965 sure that we've been shown.
10966 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
10970 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
10972 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
10973 (at least borders). Fixes #79386 on Linux (with a small difference
10974 in behaviour: when trying to resize a caption-less window metacity
10975 shows the sysmenu. Resizing is still possible though).
10976 * XplatUIWin32.cs: When setting window styles send request an extra
10977 WM_NCCALCSIZE when it's a form without title (due to no text and no
10978 caption), since Win32 seems to calculate it wrong the first time we
10979 get the message, though the second time things work as they should.
10980 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
10981 newly reparented window might show up unparented. Update
10982 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
10983 there's no title text. Fixes #79386.
10985 2007-03-27 Mike Kestner <mkestner@novell.com>
10987 * ListBox.cs : don't perform invalidations if the handle hasn't been
10988 created. [Fixes #80753]
10990 2007-03-27 Mike Kestner <mkestner@novell.com>
10992 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
10995 2007-03-26 Everaldo Canuto <everaldo@simios.org>
10997 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
10998 needed to implement Balloon.
11000 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11002 * ListViewItem.cs: In the constructors that take
11003 an array of strings, don't use ListViewSubItemCollection.AddRange
11004 method to add items, since we need to have a different behaviour (in
11005 the constructors we add an item for each null string, opposed to
11006 the behaviour of AddRange, which adds nothing).
11008 2007-03-26 Andreia Gaita <avidigal@novell.com>
11010 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
11012 2007-03-26 Jackson Harper <jackson@ximian.com>
11014 * TextControl.cs: Draw and measure line endings when in non
11016 - When searching the text, count the end of the last line as a
11019 2007-03-26 Jackson Harper <jackson@ximian.com>
11021 * RichTextBox.cs: The selection_start and selection_end don't
11022 really track the correct tags for the selection. So we'll manually
11023 compute the correct tag here.
11025 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11027 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
11028 and Continuous styles. Fixes #79469.
11030 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
11032 * ToolStrip.cs: Implement Tooltips.
11033 * ToolStripItem.cs: Create internal method for determining tooltip.
11035 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
11037 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
11039 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11041 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
11042 it prevents a problem thak keeps icon visible after application
11045 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11047 * NotifyIcon.cs: Balloon properties and methods created.
11049 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11050 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
11052 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
11054 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
11056 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
11058 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
11059 parameter indicates which aspects were explicit/user-set.
11060 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
11062 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
11064 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
11065 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
11066 SmallChange, and Value (2.0).
11067 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
11069 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11071 * ListView.cs: Always set item_control.Width in LayoutDetails
11072 if View is Details. Setting it later in CalculateScrollBars
11073 in a not-so-corner scenario (the sum of columns width is
11074 not bigger than the ListView width when handle is created, and then
11075 that sum gets bigger by increasing the width of the columns)
11076 causes a very weird recursion path (which shouldn't be happening,
11077 since header_control sets it in CalculateScrollBars too). This bug
11078 appeared after Chris' fixes for handle created issues, so probably
11079 it's related to some handle-creation time.
11081 2007-03-23 Chris Toshok <toshok@ximian.com>
11083 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
11084 case where there's an add row, just so we don't end up in a case
11085 where it's not displayed (this happens when the row is partially
11086 obscured). Fixes bug #79574.
11088 2007-03-23 Jackson Harper <jackson@ximian.com>
11092 * RichTextBox.cs: Preserve line endings in the lines text buffer,
11093 also added an enum that represents the line ending type.
11095 2007-03-23 Andreia Gaita <avidigal@novell.com>
11097 * NumericUpDown.cs: Fix logic so Text and Value properties are not
11098 messed with in every method call, but only from DownButton,
11099 UpButton, UpdateEditText() and ValidateText. Fixes #80346
11101 2007-03-23 Chris Toshok <toshok@ximian.com>
11103 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
11104 format objects if the format spec is "". Fixes bug #80889.
11106 2007-03-22 Miguel de Icaza <miguel@novell.com>
11108 * ToolStripPanel.cs (Join): added stubs to build PDN3
11110 * Control.cs (AutoScrollOffset): Add.
11112 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
11113 property, its only implemented for Win32, on X11 it defaults to
11114 some hardcoded value.
11116 * ToolStripItem.cs (AllowDrop): Add property
11118 2007-03-22 Mike Kestner <mkestner@novell.com>
11120 * ListView.cs : in FullRowSelect Details mode, only enable box
11121 selection if the user clicks over the "item" column outside of the
11122 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
11124 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11126 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
11127 handle is not created yet.
11128 * Form.cs: Select: Don't call CreateHandle if the handle is already
11129 created, avoids a stack overflow on Windows when we are recreating
11131 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
11132 they are made visible, and override AfterTopMostControl to keep
11133 them on top when other controls are brought to front.
11134 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
11135 or force_*scroll_visible is true (old implementation always shows
11136 scrollbars when needed, no matter what auto_scroll was set to).
11137 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
11138 IsHandleCreated check.
11140 2007-03-22 Andreia Gaita <avidigal@novell.com>
11142 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
11143 row or col separator.
11144 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
11146 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11148 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
11150 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11152 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
11153 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
11154 every time. Fixes #80410.
11156 2007-03-22 Chris Toshok <toshok@ximian.com>
11158 * BindingSource.cs (AddNew): partially implement.
11160 remove a couple of NotImplementedException's
11161 to get bug #81148 closed.
11163 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11168 - UpdateCursor method added to update the screen cursor.
11169 - GetAvailableCursor method added to return cursor for enabled tree,
11170 it searches for cursor on control and it's parent's for enabled control.
11171 - Call UpdateCursor method on setter of Cursor property.
11172 - On setter of Enabled call UpdateCursor when it is false, we need to
11173 change cursor to normal (or to this parent cursor) because cursor
11174 setting theres no effect to disabled controls.
11175 - Some minor source changes to follow the coding style guidelines.
11177 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
11180 2007-03-22 Chris Toshok <toshok@ximian.com>
11182 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
11185 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11187 * XplatUIX11.cs: Implement default locations for forms.
11188 * Form.cs: Completely rework startup location for forms. Fixes #79964.
11189 * Hwnd.cs: Add previous_child_startup_location (to track the current
11190 startup location for any child forms of the current form) and
11191 previous_main_startup_location (to track the startup location for
11192 the current toplevel form).
11194 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11196 * Control.cs: Don't trigger a layout if an implicit control is added
11197 that isn't visible. Also, don't notify the owner when an implicit control
11198 is added. (Owners shouldn't even know about their implicit controls.)
11200 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11202 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
11203 to save some re-layouts.
11205 2007-03-21 Everaldo Canuto <everaldo@simios.org>
11207 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
11210 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11212 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
11213 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
11215 2007-03-21 Mike Kestner <mkestner@novell.com>
11217 * ListView.cs : disable selection update for non-left button clicks
11218 with mods and over selected items. [Fixes #80524]
11220 2007-03-20 Jackson Harper <jackson@ximian.com>
11223 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
11226 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11228 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
11229 very probably a more complicated calculation there. Update the
11230 textbox' ForeColor and BackColor when the ComboBox' colors are
11231 changed. Change the border change in LayoutComboBox to only affect
11232 the textbox, not all the calculations there. Seems to fix most of
11235 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11237 * ComboBox.cs: Handle Home and End keys as well as all combinations of
11238 modifiers + navigation keys as input keys, enables advanced text
11239 selection in the combobox (like Shift+Left Arrow for instance).
11240 ComboTextBox now overrides Focused and returns whatever
11241 ComboBox.Focused returns, since it really should be focused
11242 whenever the ComboBox is. Fixes #80795. Also make the border around
11243 the text box one pixel bigger, as mentioned in #79436.
11245 2007-03-20 Jackson Harper <jackson@ximian.com>
11247 * TreeView.cs: Don't offset the images, this was causing some
11248 artifacts when expanding/collapsing with images that were the
11249 exact height of the treenode.
11251 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11253 * TrackBar.cs: Query the theme for the correct value when the mouse
11254 moves and the thumb is pressed.
11255 * Theme.cs: Added TrackBarValueFromMousePosition
11256 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
11257 implementation was updating the trackbar value when drawing, now
11258 the drawing methods only draw. Fixes #80900. Refactored the
11259 calculations out to TrackBarValueFromMousePosition and
11260 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
11261 according to the mouse position whenever it wants to. Changed the
11262 light coloured pen when drawing the thumb from ControlLight to
11263 ControlLightLight, because the ControlLight is the same colour as
11264 the background so the 3D effect is lost.
11266 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11268 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
11269 defined. Fixes #80784.
11271 2007-03-20 Marek Habersack <mhabersack@novell.com>
11273 * ContextMenuStrip.cs: align with the change introduced in
11276 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11278 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
11279 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
11282 2007-03-19 Chris Toshok <toshok@ximian.com>
11284 * Control.cs (WmPaint): don't make use of the Handle property
11285 after an event is emitted, as the user could have closed the
11286 form/destroyed the control. Store the Handle in a local variable
11287 and make use of that. Fixes bug #80768.
11289 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11291 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
11292 behavior in X11 environments.
11294 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11296 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
11297 because on setter of topmost we dont call SetTopmost when handle is not
11300 2007-03-20 Jackson Harper <jackson@ximian.com>
11302 * TextControl.cs: Need to use SelectionLength () not
11303 selection_length, since that var is reset to -1.
11304 - Draw the caret when we don't have focus.
11305 * TextBox.cs: The selectall actually doesn't occur until the first
11307 * TextBoxBase.cs: Need to update the caret position after a
11310 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11312 * ListView.cs: Enable scrolling when using Tile view.
11314 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11318 * XplatUIDriver.cs: Abstract SetOwner method created.
11320 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
11321 must be implemented and was masked as todo.
11323 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
11326 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
11327 cheking for null owner to remove transient. The SetTopmost will be change
11330 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
11331 SetTopmost. Now owned forms will work properly in win32 and X11.
11333 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11335 * MdiWindowManager.cs: Update function name.
11336 * Form.cs: After closing a form MdiParent is always null.
11337 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
11338 better what it should do: necessary book-keeping when the form is
11339 closed, it should not close the form itself.
11341 2007-03-19 Andreia Gaita <avidigal@novell.com>
11343 * ListViewItem.cs: Fix back and fore color. The subitems only
11344 use their own colors if they are set, otherwise use the listview's
11345 colors. Don't set default colors on constructor for subitem.
11348 2007-03-19 Mike Kestner <mkestner@novell.com>
11350 * ListView.cs : make box selection for Details views with
11351 FullRowSelect conform to MS behavior when clicking in the "item"
11352 column and clicking outside the defined columns.
11353 [Fixes case 5-6 of #80374]
11355 2007-03-19 Chris Toshok <toshok@ximian.com>
11357 * ScrollableControl.cs: create the controls from within the ctor,
11358 but don't actually add them until our handle is created. this
11359 fixes a NRE possibility jpobst found (if you override OnLayout in
11360 a subclass, it's called before your ctor). Also, add a
11361 IsHandleCreated guard to UpdateSizeGripVisibility as well.
11363 2007-03-19 Jackson Harper <jackson@ximian.com>
11365 * TextBox.cs: Reduce the amount of invalidation we do.
11366 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
11367 some of them are true by default on MS.
11368 - Add some functions to reduce the amount of invalidates we do.
11369 * TextControl.cs: Less invalidation.
11371 2007-03-19 Chris Toshok <toshok@ximian.com>
11373 [ Fixes #81773, and *seems* to fix #81553 as well ]
11375 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
11376 AccumulateDestroyedHandles. We need to do it *after* we send
11377 WM_DESTROY, as the user's code can access Control.Handle in
11378 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
11379 move the WM_DESTROY/zombie handling to before the call to
11380 XDestroyWindow. For some reason without this ordering
11381 FormTest.RecreateHandle hangs. This ordering is semantically
11382 equivalent, however, as XDestroyWindow is async anyway.
11384 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
11386 * RichTextBox.cs: Reset backcolor_set after setting default.
11388 2007-03-19 Chris Toshok <toshok@ximian.com>
11390 * ScrollableControl.cs: the scroll position should not effect the
11391 canvas size. commit patch from georgegiolfan@yahoo.com, which
11392 fixes some really bizarre behavior on resizing. Fixes bug #80778.
11394 2007-03-19 Chris Toshok <toshok@ximian.com>
11396 * ScrollableControl.cs: clean this up a bit. create the
11397 scrollbars in the ctor and just show/hide them as needed. Also,
11398 make hscroll_visible/vscroll_visible internal to Recalculate, and
11399 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
11400 everywhere else. This seems to fix the scrollbars appearing
11401 beneath the content for me (i have *no* idea why that is,
11404 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11406 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
11407 some redundacy for stuff in Anchor and Dock that base will take care of.
11410 2007-03-19 Mike Kestner <mkestner@novell.com>
11412 * ListView.cs : make box selection for Details views without
11413 FullRowSelect dependent on the text bounds, not item bounds.
11414 * ListViewItem.cs : add an internal property to obtain the TextBounds
11415 in Details view. [Fixes case 1-4 of #80374]
11417 2007-03-19 Andreia Gaita <avidigal@novell.com>
11419 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
11420 we're < 2.0. #78448 && #80316
11422 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11424 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
11425 have the same style available as the previously selected one. Also,
11426 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
11428 2007-03-19 Jackson Harper <jackson@ximian.com>
11430 * TextControl.cs: Add an alignment property that all new lines
11432 - Make sure to use the align shift when calculating the line's X
11434 * TextBox.cs: Set the alignment on the document as well as on all
11435 the document lines.
11437 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11439 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
11440 throw if setting the parent of an mdichild that already has an
11441 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
11442 AssemblyProductAttribute in the assembly, use the type's namespace (as
11443 MS seems to do). CreateControl: don't create the handle if the control
11444 is not visible (according to MS behaviour and spec). SetTopLevel: Only
11445 create handle if the control is not a form. Change FocusInternal to
11446 virtual so that it can be overriden by Form.
11447 * TextBox.cs: Update call to FocusInternal.
11448 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
11449 form is not a toplevel form when it's a mdi child, so update is_toplevel
11450 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
11451 hasn't been created. Show (IWin32Window): Don't allow this overload for
11452 toplevel windows. CenterToParent/CenterToScreen/Select: create the
11453 handle as MS does. SetVisibleCore: if called on a MdiChild and the
11454 parent isn't visible yet, save the visibility and restore it when the
11455 parent is made visible.
11456 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
11457 methods, since the visibility of the scrollbars can be changed from
11458 several places, not only from AutoScroll.
11461 2007-03-19 Jackson Harper <jackson@ximian.com>
11463 * RichTextBox.cs: Enable shortcuts by default.
11464 * TextBoxBase.cs: Add conditional shortcuts.
11466 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11468 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
11470 2007-03-19 Chris Toshok <toshok@ximian.com>
11472 [ Fixes bug #80604]
11474 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
11475 swallow the message we're waiting on, instead of delivering it, as
11476 this is only used for the WM_SHOWWINDOW raised from
11477 MapWindow/UnmapWindow, and the message needs to be generated
11478 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
11479 before doing the Map/Unmap. Also make sure that the Hwnd is still
11480 alive after the message has been handled.
11482 *before* the window is shown.
11484 * Control.cs (CreateControl): guard a few more things inside the
11485 if (!is_created) block, as we might end up being called again -
11487 (WmShowWindow): call CreateControl if we're showing the control.
11489 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11491 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
11492 controls without a handle if they have any parent with a handle. In
11493 Dispose add a check whether the handle is created or not before
11494 calling BeginInvoke, this removes the need of the extra disposing
11495 parameter (which was bogus anyway since it didn't prevent the
11496 invoke from happening, it only skipped the check for an existing
11497 handle, meaning that the invoke would call on an inexistent
11500 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11502 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
11503 appears in taskbar.
11505 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11508 - Fixed a problem that dont show help button for messages with 3 buttons.
11509 - Refactory button size and position calculations, now dont use fixed
11510 values, also fixed button sizes (#80043) and form's border space.
11511 - AddButton method created, now all other AddButton methods call this one.
11512 - Some other source code cosmetic changes.
11514 2007-03-18 Jackson Harper <jackson@ximian.com>
11516 * RichTextBox.cs: Don't do this all fonts must match check if
11517 there is only one char selected.
11519 2007-03-18 Jackson Harper <jackson@ximian.com>
11521 * TreeView.cs: ScrollWindow works properly now, so we don't need
11522 to screw around with the scroll area. This fixes some artifacts
11523 when expanding and collapsing.
11525 2007-03-18 Jackson Harper <jackson@ximian.com>
11527 * TextBoxBase.cs: Allow updating the selection position when the
11528 cursor is outside the textarea, but we have a capture.
11529 * TextControl.cs: A special case for when the cursor is outside
11530 the bounds of the TB.
11532 2007-03-18 Jackson Harper <jackson@ximian.com>
11534 * TextBoxBase.cs: Remove image pasting code for now. There is no
11535 way to get an image on the clipboard right now anyways.
11537 * RichTextBox.cs: Use the new RTF Picture class for pictures.
11539 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11542 - Set window properties in constructor intead of on CreateParams.
11543 - Remove topmost from Window ExStyle.
11544 - Set ShowInTaskbar to false.
11545 - Set form border to FixedDialog.
11546 - Some cosmetic changes and remove unneeded comments.
11547 - It fixes itens 2,3 and 4 of bug #80043.
11549 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
11551 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
11552 none was explicitly set. Fixes part of bug #79949.
11554 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
11556 * ToolStripComboBox.cs: Add AutoComplete*.
11558 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
11560 * ToolStripComboBox.cs: Add FlatStyle.
11562 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
11564 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
11565 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
11567 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11569 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
11570 CheckBox.cs, RadioButton.cs, BindingSource.cs,
11571 DataGridColumnStyle.cs: Remove warnings.
11573 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11575 * Menu.cs: MergeMenu: Check menu argument for null before looping over
11577 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
11578 visibility of mdi child forms. FormSizeChangedHandler: update the
11579 maximized size if size has changed while maximized.
11580 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
11581 creating the handle.
11582 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
11583 avoid creating the handle if not created.
11584 * XplatUI.cs: Update debug output.
11585 * XplatUIStructs.cs: Added ToString's for a couple of structs.
11587 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
11589 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
11591 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
11592 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
11593 Implement keyboard shortcuts.
11595 2007-03-15 Everaldo Canuto <everaldo@simios.org>
11597 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
11598 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
11599 ColorDialog and all derived classes.
11601 2007-03-15 Everaldo Canuto <everaldo@simios.org>
11603 [ Fixes bug #79828 ]
11606 - Rename ToolBarButtonInfor to ToolBarItem.
11607 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
11608 - Maintain an array of ToolBarItem, used instead of ToolBarButton
11609 collection to be able add same button more than one time on a toolbar.
11610 - Refactory all properties and methods to use ToolBarItem.
11612 * ToolBarButton.cs:
11613 - Remove all propeties and methods that is now in ToolBarItem.
11614 - Rectangle propery now gets the rectangle from first ToolBarItem to
11615 mimic win32 behavior.
11616 - Size calculation and layout methods also removed.
11618 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
11619 ToolBarItem instead of ToolBarButton to right drawing buttons when
11620 same button/separator was added more than one time to ToolBar.
11622 * ThemeNice.cs: Same as above.
11624 2007-03-15 Andreia Gaita <avidigal@novell.com>
11626 * XplatUIX11.cs: Fire extra MouseMove events right after
11627 MouseDown and MouseUp, emulating win32's <censored> behaviour
11628 for apps that rely on it.
11630 2007-03-15 Jackson Harper <jackson@ximian.com>
11633 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
11634 it is drawn on the controls client window and there is no NC
11636 - Set the background color to gray on 2.0 when we are readonly.
11638 2007-03-15 Chris Toshok <toshok@ximian.com>
11640 [ Fixes bug #81144 ]
11642 * XplatUIX11.cs: implement VirtualScreen independently of
11643 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
11646 2007-03-15 Chris Toshok <toshok@ximian.com>
11648 * Hwnd.cs: add an internal field for the cached_window_state.
11650 * XplatUIX11.cs: cache the window state, invalidating the cache
11651 (and thus re-querying the X server) only when we see an update to
11652 the _NET_WM_STATE property.
11654 2007-03-15 Chris Toshok <toshok@ximian.com>
11656 * BindingSource.cs: get a lot of the unit tests working.
11658 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
11660 * Control.cs: Modify UpdateStyles to store distances when bounds >=
11661 0 instead of just bounds > 0. [Fixes bug #80912]
11663 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
11665 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
11668 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
11670 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
11671 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
11672 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
11673 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
11675 2007-03-15 Chris Toshok <toshok@ximian.com>
11679 * Control.cs: add Ivan's fix for 81101, with a slight modification
11680 - you can set control.Target to null.
11682 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
11684 * ToolStripItem.cs: If our OwnerItem is null, we can't use
11685 HideDropDown, use Hide instead to prevent an NRE.
11688 2007-03-14 Jackson Harper <jackson@ximian.com>
11690 * TextBoxBase.cs: Mess with the creation stuff a little. We need
11691 to calculate the document before the handle is created, in some
11692 cases. (Actually just one case).
11694 2007-03-14 Jackson Harper <jackson@ximian.com>
11696 * TextBoxBase.cs: Need to display the caret after letting the base
11697 wndproc handle the focus methods, because the caret display
11698 methods check the focus state.
11699 - Try to display the caret after updating it's position with SelectWord.
11700 - Don't need to do an immediate update on this recalc, since there
11701 will be an invalidate anyways.
11703 2007-03-14 Jackson Harper <jackson@ximian.com>
11705 * TreeView.cs: Some workarounds so that we can match event order a
11708 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
11710 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
11711 #80803. Avoid NullReferenceException when Control does not have
11712 parent. Fixed different blinkstyle issues. Only subscribe to Tick
11713 event a single time. Only draw error icon when control is created and
11714 visible. Fixes failing unit tests.
11716 2007-03-14 Andreia Gaita <avidigal@novell.com>
11718 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
11719 Selecting events. Fire Leave and Enter events when changing tabs.
11721 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
11723 * TreeView.cs: Add TreeViewNodeSorter.
11724 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
11726 2007-03-14 Chris Toshok <toshok@ximian.com>
11728 * Form.cs: go ahead and remove the RecreateHandles that jpobst
11729 removed earlier and I had him add back it. It turns out metacity
11730 *does* in fact handle the MOTIF_WM_HINTS property changing, it
11731 just doesn't redraw the window titlebar until you resize the
11732 window. This also means we aren't recreating the entire window
11733 hierarchy on X when you change this property. And it looks better
11736 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11739 * ListView.cs: Collecting selection information
11740 is now done in SelectedIndexCollection rather than in
11741 SelectedListViewItemCollection. This is done so we can
11742 have the selection information code in one single place
11743 (virtual mode selection information entirely depends on
11744 SelectedIndexCollection).
11746 2007-03-13 Miguel de Icaza <miguel@novell.com>
11748 * ErrorProvider.cs: Add stubs for ISupportInitialize
11750 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11752 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
11753 in the right order with the right values, from the Checked property,
11754 just as MS does (instead of triggering them from ListView).
11756 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
11758 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11760 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
11761 the correct handler in OnItemCheck method (ItemCheckEventHandler
11762 instead of EventHandler). This used to throw an InvalidCastException.
11764 2007-03-13 Jackson Harper <jackson@ximian.com>
11766 * TextBoxBase.cs: Calculate the document before the handle is
11767 created, so there isn't an extra invalidate called.
11769 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
11771 * Form.cs: Don't set owner in ShowDialog until we are sure
11772 that we aren't going to throw an exception. [Fixes bug #80773]
11774 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
11776 * TreeView.cs: Make it compile.
11778 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11780 * Control.cs: Another place we don't call SizeFromClientSize.
11781 * Form.cs: Another place we don't call SizeFromClientSize.
11784 2007-03-12 Jackson Harper <jackson@ximian.com>
11786 * TreeView.cs: Basically emulating some strangness here with
11787 exanding nodes and setting node positions when windows aren't
11789 - Also attempting to walk the node tree less than previously, and
11790 just use visible order calculations for determining offsets.
11791 - oops made scrolling backwards.
11792 * TreeNode.cs: We need to start nodes with a zero visible order,
11793 because the order calcs are based on the first nodes order.
11795 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11797 * Form.cs: Don't exit the program if RecreateHandle is called on
11800 2007-03-12 Chris Toshok <toshok@ximian.com>
11802 * XEventQueue.cs: remove the use of PostQuitState.
11804 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
11805 WM_QUIT message in GetMessage, return false (and if we're in the
11806 nested WaitForHwndMessage, repost the WM_QUIT message).
11808 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11810 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
11811 or the MaximizeBox properties. [Part of bug #80640]
11813 2007-03-12 Everaldo Canuto <everaldo@simios.org>
11815 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
11818 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11820 * ToolStripItem.cs: Fix some tests I broke by checking Visible
11821 instead of visible.
11823 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
11825 * FileDialog.cs: Use text of File name combobox to determine what
11826 files the user selected. Added tokenizer to parse the file names.
11829 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11831 * Control.cs: We can't call SizeFromClientSize in the constructor,
11832 but we still need to do the same work, so make an internal version.
11835 2007-03-12 Jackson Harper <jackson@ximian.com>
11839 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
11842 2007-03-12 Jackson Harper <jackson@ximian.com>
11844 * TextBoxBase.cs: Now that the handles are being created a little
11845 later, we need to make sure that the document is recalculated when
11846 the handle is created.
11848 2007-03-11 Everaldo Canuto <everaldo@simios.org>
11850 * Theme.cs: GetLinkFont abstract method added.
11853 - Remove CalcTrimRectangle, no longer needed.
11854 - Factor also remove, position issues must be fixed in libgdiplus.
11855 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
11856 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
11857 care about font used to draw links.
11858 - Set TabStop to true when control is "Selectable", control is selectable
11859 when have one or more links. Fixes #80501 (test case is also added).
11860 - Set the LinkArea values after links change, LinkArea values must be
11861 based in first link position and size, a test case was created.
11862 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
11863 the attribute must be true LinkArea.Length > 0. The same was applied to
11866 * ThemeWin32Classic.cs:
11867 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
11869 - Use CPDrawStringDisabled to draw disabled text instead of hard code
11871 - Draw focus rectangle for every parts focused, including parts that
11872 is on another line, its because regions returns various rectangles
11873 and not only one. Needed to mimic W32 look.
11874 - Uses Graphics.Clip to delimite region painted, it mean that now
11875 complete text is passed to DrawString, with this we solve layout
11876 issues without create another text renderer.
11877 - Uses Region.Intersect to fix some flickers problems, now only needed
11878 parts will redrawed.
11879 - This changes fixes #79614 and some other unreported issues, on Linux
11880 some layout problems still remain, the problem is under
11881 MeasureCharacterRanges but it is an libgdiplus bug.
11883 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
11885 * TextBox.cs: Set for foreground color.
11886 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
11887 this is already done in Control.
11889 2007-03-10 Jackson Harper <jackson@ximian.com>
11891 * TextBox.cs: Set the background color, but reset the
11892 backcolor_set flag which is just for the user setting the
11895 2007-03-09 Chris Toshok <toshok@ximian.com>
11897 * Control.cs: really remove the call to XplatUI.SetVisible from
11898 CreateHandle(), like I said I did when I merged the branch.
11900 * BindingSource.cs: implement some more of this stuff.
11902 2007-03-09 Jackson Harper <jackson@ximian.com>
11904 * TextBox.cs: Don't explicitly set our background colors.
11906 * TextBoxBase.cs: Draw readonly text.
11907 - Need to invalidate when backcolor or readonly are changed.
11909 2007-03-09 Jackson Harper <jackson@ximian.com>
11911 * TextBoxBase.cs: Don't set the forecolor until the handle is
11913 - Do not raise OnPaint, and removed some old debug code.
11915 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
11917 * ScrollableControl.cs: Fix mouse wheel scrolling.
11919 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
11921 * Control.cs: Wire up MouseDoubleClick event.
11923 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
11925 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
11927 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
11928 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
11929 item is added. This logic was moved to ToolStrip.OnItemAdded.
11932 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11934 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
11936 2007-03-08 Jackson Harper <jackson@ximian.com>
11938 * TreeView.cs: Show the correct image for selected node (this used
11939 to work, not sure how the code got deleted). Also implemented 2.0 feature
11942 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11945 * ListViewItem.cs: Cache index in items when retrieving them
11948 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
11950 * ToolStripItem.cs: Don't return the explicit_size if we are using
11951 AutoSize. Fixes invalidation issue when user has explicitly set a
11952 size and has AutoSize = true.
11954 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
11956 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
11958 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11960 * DataGridView.cs: Remove event handler from DataView when a
11961 DataTable is used as DataSource.
11963 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
11965 * Control.cs: Create internal setter for client_size to allow it to be
11966 set without triggering resizing code.
11967 * Form.cs: Calculate client_size in constructor, only change client_size
11968 in FormBorderStyle property if Handle has been created.
11969 [Fixes #80574, #80791]
11971 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
11973 * SystemInformation.cs: Add TerminalServerSession.
11975 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
11977 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
11980 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
11982 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
11983 Handle before we were supposed to. Now checks ActivateOnShow property
11985 * Control.cs: Add internal ActivateOnShow property.
11986 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
11987 for ActivateOnShow.
11988 * Hwnd.cs Remove no longer needed no_activate field.
11990 2007-03-07 Jackson Harper <jackson@ximian.com>
11992 * TreeView.cs: Implement owner draw tree nodes. And a couple more
11994 * DrawTreeNodeEventHandler.cs: Add
11995 * DrawTreeNodeEventArgs.cs: Correct default value.
11997 2007-03-07 Chris Toshok <toshok@ximian.com>
11999 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
12000 to be called before NativeWindow.WndProc. Put the HwndCreating
12001 magic there to hook up our Hwnd's to handles.
12003 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
12005 * DataGridView.cs: Comment out debug code.
12007 2007-03-07 Chris Toshok <toshok@ximian.com>
12009 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
12010 to make the rest of the world happy]
12012 * Control.cs (CreateHandle): there's no need to call
12013 XplatUI.SetVisible here, it's effectively done by
12014 XplatUI.CreateWindow on X now, and always was on windows.
12016 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
12017 shortcircuit out of the loop if we have a message loop running on
12020 [Changelog from merge]
12022 2007-03-05 Chris Toshok <toshok@ximian.com>
12024 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
12025 causes handle creation.
12027 2007-02-28 Chris Toshok <toshok@ximian.com>
12029 * ApplicationContext.cs: Add a flag to make sure we only raise the
12030 ThreadExit event once (ExitThreadCore can be indirectly called
12031 from a few places.) I don't like the additional flag, but it
12032 makes the event ordering/count correct.
12034 * Application.cs (MWFThread.LoopCount): don't use an enumerator
12035 without locking the collection. An enumerator doesn't give us any
12036 protection from modification anyway. Lock the thread hash and
12037 replace the complicated enumerator loop with a foreach.
12038 (Application.CloseForms): make internal so it can be called from
12039 ApplicationContext. This should probably be moved to MWFThread.
12040 (Application.ExitThread): don't call MWFThread.Current.Exit()
12041 here. just call XplatUI.PostQuitMessage. We'll exit the thread
12042 when the runloop exits (in response to WM_QUIT.)
12043 (Application.RunLoop): add a comment (and check) for
12044 context.MainForm being null after setting context.MainForm.Visible
12045 = true. This is because you're perfectly free to dispose of a
12046 form in VisibilityChanged. Chalk this up to another case where we
12047 need to synchronously generate WM_ACTIVATE from Control.Show.
12048 Also, add handling for WM_QUIT here so we'll exit the loop.
12050 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
12051 fact that we don't wait if we're only unmapping the whole_window
12052 makes me a bit nervous, but it doesn't seem to cause any problems
12055 also, add a comment about the stupid, broken and wrong resetting
12056 of PostQuitState to false in GetMessage().
12058 In PostQuitMessage, we need to add a WM_QUIT message to the
12059 thread's queue. We use the FosterParent to get the right
12062 Lastly, in SetVisible, we need to unmap both windows, since the
12063 waiting only happens when we're unmapping the client window. So
12064 now, the *only* time we unmap just the whole_window is in the hack
12065 for resizing a control to 0,0.
12067 2007-02-21 Chris Toshok <toshok@ximian.com>
12069 * Application.cs (CloseForms): rewrite this so that we don't
12070 modify the list while we're traversing it.
12072 2007-02-20 Chris Toshok <toshok@ximian.com>
12074 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
12075 of OnHandleCreated.
12076 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
12077 handle is created. otherwise we'll create it here.
12078 (VerticalScrollEvent): same here.
12080 * Application.cs (CloseForms): call Form.Dispose, don't post
12083 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
12084 here. Application should Dispose() of the Form's.
12086 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
12087 WM_DESTROY as well.
12088 (MapWindow,UnmapWindow): only actually do the waiting for
12089 SHOWWINDOW if the control we're dealing with is a Form.
12090 (CreateWindow): if the control isn't a form, SendMessage
12091 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
12093 * Control.cs (SetVisibleCore): always use is_visible here, not
12094 value. If we use value, we can end up re-setting something
12095 visible if, for instance, you do Control.Hide() in a delegate
12096 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
12098 2007-02-20 Chris Toshok <toshok@ximian.com>
12100 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
12101 the message we need. PeekMessage returning false should not be a
12102 condition under which we exit the loop.
12104 2007-02-15 Chris Toshok <toshok@ximian.com>
12106 * Control.cs (Refresh): only refresh if we've got a handle and are
12108 (CreateAccessibilityInstance): CreateControl() here.
12109 (UpdateChildrenZOrder): complicate the code loop even more by
12110 taking into account controls that haven't had their handle
12111 created, and those that aren't visible. But on the flip side,
12112 simplify the code by splitting it into two loops. one which
12113 builds up the list of child controls we're interested in, and the
12114 other that sets the z order of those children.
12116 2007-02-14 Chris Toshok <toshok@ximian.com>
12118 * Control.cs: Control.AccessibilityObject causes the control to be
12119 created, not just the handle.
12121 2007-02-14 Chris Toshok <toshok@ximian.com>
12123 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
12124 problem on X where a window might have its handle created (and be
12125 visible) while the window is unmapped. calling XConfigureWindow
12126 on an unmapped window is bad, and generates X errors.
12128 2007-02-13 Chris Toshok <toshok@ximian.com>
12130 * Control.cs (CreateHandle): don't loop over our children setting
12131 their parent here. do it when in WndProc when we're shown.
12132 (UpdateChildrenZOrder): make this internal so we can call it from
12134 (WndProc): for WM_SHOWWINDOW, reparent the child control after
12135 creating its handle. Also, remove the calls to PerformLayout from
12136 here. they're done in ScrollableControl.OnVisibleChanged. Also,
12137 OnVisibleChanged only seems to be called directly here for the
12138 toplevel control. It's propagated down the window hierarchy by
12139 calls to child.OnParentVisibleChanged.
12140 (OnVisibleChanged): don't do layout here - it's done (oddly
12141 enough, according to a glance at stack traces on ms.net..) in
12144 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
12145 z order of our children before calling PerformLayout.
12147 2007-02-12 Chris Toshok <toshok@ximian.com>
12149 [big change, fixes #80020]
12151 * AccessibleObject.cs: we need to make owner internal again to fix
12152 some of ControlAccessibleObject.
12154 * Control.cs: lots of changes here. add support for WM_CREATE,
12155 for which we generate OnHandleCreated. Remove the OnHandleCreated
12156 call from CreateHandle. Also add support for WM_SHOWWINDOW where
12157 we create child controls. leave the MonoTODO's for the
12158 accessibility calls, but fix the exceptions so the tests pass.
12160 Add the InvalidOperationExceptions to Invoke methods, and remove a
12161 couple of InvokeInternal methods we aren't using.
12163 Also, add a couple of CreateHandle calls in places where we know
12164 the handles are being created but our code doesn't reference
12167 Make SetVisibleCore call OnVisibleChange if the handle isn't
12168 created. If the handle is created, we rely on XplatUI.SetVisible
12169 generating the event synchronously.
12171 Lastly, make sure we don't use this.Handle inside CreateHandle,
12172 because we can call back into client (and that code can dispose of
12175 * XplatUIStructs.cs: misc/cleanup.
12177 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
12178 although we don't populate the wParam properly.
12179 (CreateWindow): generate WM_CREATE.
12180 (MapWindow,UnmapWindow): make these calls synchronous, at great
12181 performance expense (particularly in the unmap case), to match
12184 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
12186 (set_MdiParent): don't recreate the handle unless it's been
12189 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
12192 * NativeWindow.cs: this is probably the weirdest part of the
12193 patch. We need a way to link up the window being created to the
12194 WM_CREATE message. Since we can only be creating one window at a
12195 time on a given thread, we keep track of a per-thread reference so
12196 we can dispatch it properly. We also need to keep track of the
12197 Hwnd currently being created so that the win32 backend doesn't
12200 * XplatUIWin32.cs: a similar change to the one we made in
12203 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12205 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
12206 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
12207 to draw the menu shortcut string.
12209 2007-03-07 Jackson Harper <jackson@ximian.com>
12211 * TreeNode.cs: Add the 2.0 collapse method.
12213 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12215 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
12217 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12219 * DataGridView.cs: Change DataSource will clear column and row
12220 lists. Call Invalidate() to reflect DataSource change.
12222 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12224 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
12225 and a new row is added to it.
12227 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12229 * DataGridView.cs: Add columns when DataSource is en empty list but
12230 is a System.Data.DataView (from a System.Data.DataTable).
12232 2007-03-06 Andreia Gaita <avidigal@novell.com>
12234 * Label.cs: Implement AutoEllipsis (2.0)
12236 2007-03-06 Jackson Harper <jackson@ximian.com>
12238 * TreeView.cs: Implement 2.0 TopNode setter property.
12239 - Use a local var instead of the skipped_nodes field for computing
12240 how many nodes to skip. Otherwise we won't scroll because the
12241 valuechanged handler checks if skipped_nodes is equal to the new
12243 - Implement 2.0 Sort method.
12244 - Add useless 2.0 DoubleBuffer property
12245 - Implement 2.0 LineColors property. Lets you change the color of
12246 the lines in the tree. Terribly useful for creating non cohesive
12248 - Implement 2.0 image key feature.
12250 2007-03-06 Jackson Harper <jackson@ximian.com>
12252 * TreeView.cs: We can't get the bounds of the nodes before raising
12253 the AfterSelect event, because that event could change the node's
12254 bounds (scrolling, font change, etc).
12256 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12258 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
12259 * Form.cs: Don't recreate handle when creating FormWindowManager, just
12260 update window styles. In CreateParams us VisibleInternal instead of
12261 VIsible to get the actual visible flag set for this form.
12262 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
12263 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
12264 handle the case when the form is already maximized, in which case
12265 it should be restored. Fixes #81043.
12267 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12269 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
12271 2007-03-05 Jackson Harper <jackson@ximian.com>
12273 * TreeViewHitTestInfo.cs: implement.
12275 2007-03-05 Jackson Harper <jackson@ximian.com>
12277 * InternalWindowManager.cs: class status fix.
12279 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
12281 * InternalWindowManager.cs: All windows that have a parent
12282 are confined to their parent when they're being moved.
12285 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
12287 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
12288 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
12290 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12292 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
12293 buttons invisible before deciding which ones should be visible
12294 (fixes minimize/maximize buttons showing up in toolwindows). Remove
12295 an unused variable.
12296 * InternalWindowManager.cs: Remove warning.
12298 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12300 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
12301 to throw an InvalidOperationException is virtual mode is being used.
12303 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12305 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
12306 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
12307 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
12308 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12309 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
12310 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
12312 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12314 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
12315 driver.KeyboardDelay from XplatUI.KeyboardDelay
12316 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
12317 (patch by Sergey Volk)
12319 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12321 * ToolWindowManager.cs: Added, contains logic for
12323 * CreateParams.cs: Add a few helper methods and an
12324 internal variable to know which control the CreateParams belongs
12326 * Control.cs: Call Form.ChangingParent when the
12327 parent is about to be changed.
12328 * XplatUIX11.cs: DeriveStyles (): Set
12329 caption_height for all windows that have captions and are children.
12330 Update to use ToolWindowManager instead of InternalWindowManager
12332 * XplatUIWin32.cs: Set fake window styles for all
12333 windows that have window managers.
12334 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
12335 now duplicated for mdi windows when they are
12336 maximized, first for the buttons the window itself has, then for
12337 the buttons that appear in the menu bar. Makes things a little
12338 easier). Updated UpdateWindowDecorations, SetWindowState and the
12339 mouse eventhandlers accordingly.
12340 * Form.cs: Add ChangingParent (), contains the
12341 logic of what should happen when the parent changes. In MdiParent
12342 don't set things that ChangingParent () is doing. When handling
12343 WM_CLOSE, we can close the form if there are any other modal forms
12344 and the current form is a descendent of the modal form.
12345 * InternalWindowManager.cs: A lot of refactoring,
12346 the title buttons are now extracted to a separate container class
12347 that takes care of all button code (clicks, tooltips, etc). Moved
12348 Iconic|Maximized|Normal Bounds properties to this class from
12349 MdiWindowManager, so that the window state logic can succeed for
12350 other than mdi wm's. Implemented general window state change logic.
12351 Moved CreateButtons to ThemeWin32Classic, since the theme might
12352 override which buttons are available when as well as the exact
12354 * FormWindowManager.cs: Added, contains logic for
12356 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
12357 which buttons go where (and if they are at all visible).
12358 Removed special handling of maximized windows, since they aren't special.
12359 In DrawManagedWindowDecorations don't try to draw the text if it is
12361 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
12362 use whatever the wm gives us.
12364 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12366 * ButtonBase.cs: Add 2.0 properties.
12367 * Button.cs: Override Draw for 2.0.
12368 * Control.cs: Add Entered and Selected properties.
12369 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
12370 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
12371 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
12373 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
12375 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12377 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
12379 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12381 * XplatUIWin32.cs: Register a new class with Windows each time we get
12382 a new ClassStyle. [Fixes bugs #79432, #80817]
12383 * Controls.cs: Set the correct ClassStyle in CreateParams.
12384 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
12386 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
12388 * ListView.cs: Add fireEvent argument to ReorderColumn since the
12389 ColumnReordered event must not be signaled when modifying DisplayIndex
12390 of a ColumnHeader. Added internal ReorderColumns method which takes
12391 care of drawing, and updating the internal DisplayIndex of the
12392 ColumnHeader. Added AddColumn method which is invoked from
12393 ColumnHeaderCollection when adding or inserting columns, and which
12394 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
12395 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
12396 Recalculated dispay indices after removing a ColumnHeader.
12397 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
12398 match MS. Allows last display index to be returned after ListView
12399 is disposed. Update actual location of ColumnHeader when DisplayIndex
12402 2007-03-01 Everaldo Canuto <everaldo@simios.org>
12404 * LinkLabel.cs: Improve CalcTrimRectangle.
12406 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
12408 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12410 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
12411 get rectangle as a result value.
12413 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12415 * LinkLabel.cs: Theres some diferences between rectangle return from
12416 MeasureCharacterRanges and the area used for DrawString to fix this
12417 CalcMeasurementFactor method was created, it calcules the diferences
12418 to be use later to adjust rectangle in draw operations. Fixes #80473.
12420 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
12421 to adjust draw rectangle.
12423 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12425 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
12426 text and some other changes to reduce and optimize source code.
12428 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12430 * RadioButton.cs: Implement 2.0 event.
12431 * RelatedImageListAttribute.cs: Implement new class.
12433 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12435 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
12437 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12439 * CheckBox.cs: Implement 2.0 functionality.
12441 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12443 * ListView.cs: Refactor Add and AddRange methods of
12444 ListViewItemCollection, to not update the ListView
12445 everytime an item is added in AddRange. Also move the update
12446 code to a new CollectionChanged method, and call it
12447 from other methods that need it as well (this should also fix some
12448 bugs when Sorting is used).
12450 2007-02-27 Jackson Harper <jackson@ximian.com>
12452 * TextControl.cs: Try to never let the caret stay in a non-text
12454 * TextBoxBase.cs: Update the caret.
12456 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
12458 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
12459 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
12460 delete POINT structure, duplicate of one in XplatUIStructs.
12461 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
12463 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
12465 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
12466 edit box since otherwise the Label would immediately be set (even if
12467 the user did not modify the label). In OnKeyDown set Handled to true
12468 if Return or Escape was pressed. In ColumnHeaderCollection unlink
12469 columns that are to be removed. In ListViewItemCollection unlink items
12470 that are to be removed.
12472 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
12474 * TextRenderer.cs: If we set a GDI clip region, we need to clear
12475 it when we are done. [Fixes bug #80949]
12477 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12479 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
12481 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12483 * ListView.cs: I forgot to commit the changes for ListView
12484 in my previous patch.
12486 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12488 * Clipboard.cs: Partially implement an overload of SetDataObject.
12489 * Form.cs: Implement ShowWithoutActivation.
12490 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
12492 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12494 This is a first set of changes to make the Virtual mode works,
12495 by avoiding the retrieval of ListViewItem instances until
12498 * ListView.cs: Store item position in the ListView instead of the
12499 ListViewItem, this way we don't request the Bounds property of
12500 ListViewItem inside the ListView calculations, as well as cache the item
12501 size in item_size field. Store indexes instead of ListViewItem
12502 instances in the matrix used by icon view. Add a ItemMatrixLocation
12503 struct to hold the row and col info of the matrix info.
12505 * ListViewItem.cs: Don't store the location anymore, and only cache
12506 the rectangles for GetBounds. Use the ListView.GetItemLocation
12507 method to retrieve the actual location.
12509 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12511 * TextRenderer.cs: Add clipping support, thanks to George.
12514 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12516 * ListViewItem.cs: Cancel label edit when item is removed from
12518 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
12519 event before the edit textbox is displayed. Added CancelEdit method
12520 which is used end to editing while ignoring the value set by the
12521 user. In EndEdit, set focus to ListView to avoid losing focus to
12522 other controls. In ListViewItemCollection.Clear, cancel editing of
12523 any of the items. In Remove, cancel editing of item being removed.
12524 Avoid udplicate code by modifing RemoveAt to invoke Remove.
12526 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12528 * FileDialog.cs: Update FSEntry when move is successful. Fixes
12531 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12533 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
12534 compatible with non X11 systems. Fixes #80901.
12536 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12538 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
12539 whether the item should be unselected and reselect. We do no want this
12540 when we're starting to edit the label. Do not fire the
12541 SelectedIndexChanged event from ListView when its already been fired
12542 by modifying ListViewItem.Selected. Fixes bug #80943.
12544 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12546 * TextRenderer.cs: Previos commit logic was backwards.
12548 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12550 * TextRenderer.cs: Don't add padding on MeasureText if we were
12551 sent the NoPadding flag.
12553 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12555 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
12556 after DrawButton. To prevent image overlaps button borders SetClip and
12557 ResetClip added before and after draw image. Fixes #79129.
12559 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12561 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
12562 window size, it fix problem when you run under win32 that theres
12563 Size diferent than ClientSize. Also fix controls size and positions
12564 to mimic Win32. Fixes #80837.
12566 2007-02-22 Everaldo Canuto <everaldo@simios.org>
12568 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
12569 menu area to fix some problems for non X11 systems. Fixes #80613.
12571 2007-02-22 Jackson Harper <jackson@ximian.com>
12573 * TreeNode.cs: When a node is expanded, set its is_expanded flag
12574 even if it doesn't have any children.
12576 2007-02-22 Jackson Harper <jackson@ximian.com>
12578 * TreeView.cs: Calculate the top node 'on the fly', this
12579 eliminates issues where you need to click on the tree before
12580 scrolling it to get the top node computed correctly.
12581 * TreeNodeCollection.cs: We don't need to mess with the top node
12584 2007-02-22 Jackson Harper <jackson@ximian.com>
12586 * DataGridViewRow.cs: Fix typo so height can actually be set.
12587 Patch by Peter Grimm.
12589 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12591 * FileDialog.cs: Fixed support for renaming files and directories.
12592 * ListView.cs: Do not lose focus when edit is canceled. Process
12593 Escape as regular key (to prevent closing of dialogs).
12595 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12597 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
12598 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
12600 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12602 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
12603 did not modify label.
12604 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
12605 modified the text. Reset Label when user presses Escape in edit mode.
12606 Move focus to ListView after having cancelled or finished editing the
12609 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
12611 * ComboBox.cs: Removed unnecessary initializations. Marked items field
12612 private. Clear textbox when Text is set to null and SelectedIndex is
12614 * FileDialog.cs: Removed unnecessary initializations. Removed
12615 workarounds for ComboBox bugs that are now fixed. Modified
12616 DefaultExt, InitialDirectory and Title property to change null to
12617 zero-length string in getters. Avoid directly accessing fields.
12619 2007-02-20 Jackson Harper <jackson@ximian.com>
12621 * TextControl.cs: Remove RecalAlignments call, that was some
12622 debugging leftovers.
12623 - Don't use the line indent when we shouldn't.
12624 * RichTextBox.cs: Add support for paragraph left indents.
12626 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12628 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
12629 Seems like the class status pages doesn't catch params differences.
12631 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
12633 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
12635 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
12637 * ComboBox.cs: Setting Text should have no effect if item text of
12638 selected item exactly matches value. First lookup text using
12639 case-sensitive comparison, and fallback to case-insensitive comparison.
12640 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
12641 allow startIndex to be last index. Changed ArgumentOutOfRangeException
12642 paramname to match MS. Restart from first item if string is not found
12643 after startIndex. Fixed paramname of ArgumentNullException that is
12644 thrown for null value in ObjectCollection.Contains.
12646 2007-02-19 Everaldo Canuto <everaldo@simios.org>
12648 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
12650 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12652 * ListControl.cs: In SelectedValue use value.Equals to compare for
12653 equality instead of ==, otherwise it will fail for strings.
12656 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12658 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
12659 since the caret won't show up unless ShowSelection is true.
12662 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12664 * Application.cs: When disabling all forms but the main form, do not
12665 disable any descendants of the main form (such as mdi children or
12666 other parented forms). Fixes #80822 on Windows.
12667 * Form.cs: If we have a parent, set the WS_CHILD style.
12668 * Control.cs: Update the window styles if the control whose parent has
12669 changed is a form (the WS_CHILD style has to be switched).
12671 2007-02-19 Everaldo Canuto <everaldo@simios.org>
12673 * XplatUIStructs.cs: MsgUIState structure added.
12675 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
12677 * FileDialog.cs: Removed need for separate fileName field. On 2.0
12678 profile, do not check filename(s) for illegal character if filename(s)
12679 were set non-interactively but always check on 1.0 profile. Fixed NRE
12680 in DefaultExt and only strip off first leading dot. Improve exception
12681 message when invalid Filter is set. Do not ignore InitialDirectory if
12682 it does no exist. Store specified Title, and if empty use default
12683 title (depending on type of dialog). Added an internal DialogTitle
12684 property for retrieving dialog title. Fixed logic of displayed dir to
12685 more closely match MS. Avoid setting ComboBox.Text to a zero-length
12686 string as its buggy.
12687 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
12688 FileName is a zero-length string (it can never be null). Override
12689 DialogTitle property to set default title of dialog box.
12690 * SaveFileDialog.cs: Override DialogTitle property to set default
12691 title of dialog box.
12693 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
12695 * FileDialog.cs: Modify default text of filename and filetype labels
12696 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
12697 after we've updated the SelectedIndex. Fixes part of bug #80887.
12698 * SaveFileDialog.cs: Set text of filetype label.
12700 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12702 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
12703 label field. Needed by latest Jackson's fixes for ListView.
12705 2007-02-16 Andreia Gaita <avidigal@novell.com>
12707 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
12708 print preview images.
12710 2007-02-16 Jackson Harper <jackson@ximian.com>
12712 * ListView.cs: Make AfterLabelEdit work correctly.
12713 * FileDialog.cs: After changing the name of the folder, we have to
12714 make sure that it is created, or that we pop up an error because
12717 2007-02-16 Jackson Harper <jackson@ximian.com>
12719 * X11Dnd.cs: Implement aliases on mime handlers, so things like
12720 System.String are mapped to text.
12721 - Handle dataobjects, getting all the possible formats out of them
12722 - We dont need the drag event args before we give feedback. This
12723 allows feedback cursors to be immediate before selections have
12726 2007-02-16 Jackson Harper <jackson@ximian.com>
12728 * TextBoxBase.cs: Modified the method for inserting images to
12729 taking a line and position instead of tag and position.
12730 * RichTextBox.cs: Handle PngBlip data by inserting the png image
12732 * TextControl.cs: Allow images to be inserted as the first tag of
12734 - Fix some off by one issues when we assume the first tag is a
12735 text tag, not an image tag.
12737 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12739 * ListView.cs: Set focus to ListView when ItemControl gets a
12740 WM_RBUTTONDOWN message, to mimic .Net behaviour.
12741 Fixes part of #80467.
12743 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
12745 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
12746 validate Text input (if null or empty string reset Value to default
12747 value). Fixes #80830.
12749 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12751 * ListView.cs: Set owner as null for columns and items when
12752 Dispose is invoked. Fixes #80607.
12754 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
12756 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
12757 showing DropDowns, don't show a Grip when doing Flow layout.
12758 [This fixes the toolbox in PDN 2.72.]
12759 * ToolStripItem.cs: Add Anchor property and some internal properties to
12760 reduces needed changes to FlowLayout.
12761 * ToolStripOverflow.cs: Remove unused variable.
12762 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
12763 use it in the layout calculations.
12765 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12767 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
12768 reported in #79640.
12770 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
12773 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12775 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
12776 MeasureString format, it can make button very large in some cases, it is
12777 strange but is what win32 do.
12779 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12781 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
12784 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
12785 rendering, the value is based on MenuAccessKeysUnderlined.
12787 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12789 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
12792 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
12794 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
12795 and use MenuAccessKeysUnderlined instead.
12797 2007-02-13 Andreia Gaita <avidigal@novell.com>
12799 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
12800 A selected control would not get a Focus call if:
12801 - the default active control of the container is the same as
12802 the one that was selected
12803 - we are switching from one container to another
12804 Under these conditions, the container being selected already has
12805 an active_control, which is the same as the one being activated,
12806 so set_ActiveControl would always return and not send the Focus
12807 call. Fix to check if the currently active control of the container
12808 is actually focused.
12810 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
12812 * StatusStrip.cs: Implement the spring layout.
12813 * ToolStripControlHost.cs: Make sure the hosted control's visibility
12814 always matches the host.
12815 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
12816 and TextAfterImage.
12818 2007-02-13 Andreia Gaita <avidigal@novell.com>
12820 * Control.cs: Code reorganization only.
12821 - Reorganize the WndProc cases so that each case has it's own handling method,
12822 to help with the no-line-numbering stack traces.
12823 - Formatting changes (it's vstudio's fault, really :p)
12825 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12827 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
12828 Thread.CurrentUICulture to match DateTimePicker's (and MS)
12831 2007-02-12 Jackson Harper <jackson@ximian.com>
12834 * TextBox.cs: By default we have a non multiline document
12835 - use the multiline property instead of the internal variable
12836 * TextBoxBase.cs: Treat multiline and non multiline the same in
12838 - Use the documents multiline flag instead of tracking it ourself
12839 * TextControl.cs: Attempt at getting multiline to match MS
12840 behavior. Lines now track an offset, which is either their X or Y
12841 offset depending on whether or not we are in multiline mode.
12842 - Update all the methods to understand that lines have an X value.
12843 - Fix crash in Undo::Duplicate when empty lines are deleted.
12845 2007-02-12 Everaldo Canuto <everaldo@simios.org>
12847 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
12848 code moved to properties PreferredHeight and PreferredWidth. It solve the
12849 all problems when preferred sizes must be recalculated. Fixes #80801.
12851 2007-02-12 Everaldo Canuto <everaldo@simios.org>
12853 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
12854 font height when compatible_text_rendering is false. Partially fix #80801.
12856 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
12858 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
12860 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
12862 * Form.cs: Improved exception messages in ShowDialog.
12864 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
12866 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
12867 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
12868 if not set. Fixes bug #80764. Avoid accessing current_settings field
12871 2007-02-08 Everaldo Canuto <everaldo@simios.org>
12873 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
12876 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
12877 public in 2.0 and for easy maintenance and dont break compatibility it is
12880 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
12882 * ToolStripItem.cs: Implement using images from ImageList.
12884 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12886 * DateTimePicker.cs: Change default date-formatting culture from
12887 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
12888 seems to be the way MS does it.
12890 2007-02-08 Andreia Gaita <avidigal@novell.com>
12892 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
12893 (the 6 was cut off on the right side)
12895 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
12897 * Form.cs: Tell MenuStrips to close when the form is clicked.
12898 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
12899 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
12900 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
12901 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
12902 support for Overflow, where items that do not fit are automatically
12903 reparented to a drop down menu.
12904 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
12905 Also: fixes bug #80747.
12907 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12909 * ComboBox.cs: Remove warning (unused code).
12910 * ScrollableControl.cs: Remove warning for 1.1 profile.
12912 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12914 * Form.cs: Remove a warning.
12916 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12918 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
12919 'g' specifier, not documented anywhere, but seems to always show up
12920 as a single space (might have something to do with the DateTime 'g'
12921 specifier, which is the era format, but since DateTimePicker can't
12922 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
12923 won't crash if the format has an unmatched quote. Now shows
12924 single-character formats correctly. Fixes #80744.
12926 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
12928 * StatusStrip.cs: Stretch property needs to call base.Stretch,
12929 not this.Stretch to fix stack overflow. [Fixes bug #80760]
12931 2007-02-07 Chris Toshok <toshok@ximian.com>
12933 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
12934 background color. it overwrites the background image we've
12935 already painted. Fixes #80599.
12937 2007-02-07 Chris Toshok <toshok@ximian.com>
12939 * DataGrid.cs: return immediately from Edit() when there are no
12940 columns. Fixes #80662.
12942 2007-02-07 Chris Toshok <toshok@ximian.com>
12944 * MessageBox.cs: fix #80625. don't always show the Help button in
12945 2.0. use the displayHelpButton parameter to determine if we
12946 should show it. Also, make the internal show_help field private.
12948 2007-02-07 Chris Toshok <toshok@ximian.com>
12950 * Control.cs (SetVisibleCore): check in the proposed patch for
12951 80604, and set is_visible before calling CreateControl.
12953 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
12955 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
12956 MonoInternalNote. This is added automagically by VS2005, so let's not crash
12959 2007-02-06 Everaldo Canuto <everaldo@simios.org>
12961 * MenuAPI.cs: hotkey_active internal field added, it is required because
12962 we need to know when hotkeys must be draw, before this change a keystate
12963 Navigating was used but we can have menu in navigating state without
12964 hotkeys. Fixes #80694.
12966 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
12968 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12970 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
12971 corresponding events and methods to be internal for 1.1 profile and
12972 public for 2.0 profile (required by SizeGrip).
12973 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
12974 implicit control list). Don't set the size nor the location of the
12975 SizeGrip anymore as it's not needed.
12976 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
12977 draw directly on the captured control (fixes #80656). Removed
12978 ShowGrip (it wasn't used anywhere), redraw (always true), added
12979 GetDefaultSize and GetDefaultRectangle to calculate defaults.
12980 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
12981 be called from SizeGrip.
12983 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12985 * Timer.cs: Throw ArgumentException if Interval <= 0.
12987 2007-02-05 Jackson Harper <jackson@ximian.com>
12989 * TreeView.cs: We need to check scrollbar visibility when window
12990 visibility is updated, because non visible trees don't ever add
12992 * Cursor.cs: We want the override cursor to be reset to NULL when
12993 we set current cursor to the default cursor.
12995 2007-02-05 Jackson Harper <jackson@ximian.com>
12997 * TextControl.cs: Don't have crlfs when we are non multiline.
12998 - Consolidate the line position.
13000 2007-02-05 Jackson Harper <jackson@ximian.com>
13002 * X11Keyboard.cs: BACK+CTRL gets a special char code.
13004 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13006 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
13007 handling LeaveNotify->NotifyUngrab in order to send
13008 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
13009 after calling XUngrabPointer, so we call WindowUngrabbed directly
13010 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
13011 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
13012 MouseCaptureChanged correctly. Also create handles if changing
13013 Capture (matches MS behaviour).
13015 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13017 * SizeGrip.cs: Make the last change 2.0 only.
13019 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13021 * SizeGrip.cs: If resizing and the capture is lost, revert any size
13022 changes to initial size (fixes #80597).
13024 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13026 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
13028 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13030 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
13031 background) and only allow dragging if enabled. This way the
13032 sizegrip can be used to fill the open square that otherwise would
13033 have been shown in the bottom right corner of ScrollableControl
13034 when ScrollableControl is not suppose to support sizing.
13035 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
13036 sizegrip is shown and enabled, and hook up with necessary events.
13038 2007-02-01 Chris Toshok <toshok@ximian.com>
13040 * DataGridTextBoxColumn.cs: clean up the
13041 GetFormattedString/GetColumnValueAtRow combination of functions.
13042 Also fix UpdateUI, and the initial state of
13043 IsInEditOrNavigateMode.
13045 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
13046 aren't supposed to scroll the textbox here, we're supposed to
13047 scroll the datagrid.
13049 2007-02-01 Chris Toshok <toshok@ximian.com>
13051 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
13052 setting the position.
13054 2007-02-01 Chris Toshok <toshok@ximian.com>
13056 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
13057 here, since the most recent focus fixes keep us from generating
13058 the Leave event when our textbox gets focus.
13059 (Edit): we should be passing null for the column style's
13060 instantText parameter.
13062 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
13064 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
13065 raised. Fixes menu text/icons not showing up in PDN.
13067 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
13069 * Control.cs: Remove code in constructor that makes every
13070 control with WS_CHILD set have initial location -1, -1.
13072 2007-01-31 Jackson Harper <jackson@ximian.com>
13074 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
13076 * XplatUIX11.cs: Give teh keyboard to teh dnd.
13078 2007-01-31 Jackson Harper <jackson@ximian.com>
13080 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
13081 - Remove some debug code.
13083 2007-01-31 Jackson Harper <jackson@ximian.com>
13085 * XplatUIX11.cs: If you set the override cursor during a grab, it
13086 should actually override the grab cursor. This comes into play
13087 when you are setting custom cursors in a DND feedback method.
13089 2007-01-31 Jackson Harper <jackson@ximian.com>
13091 * X11Dnd.cs: Add support for handling the QueryContinue and
13092 GiveFeedback events.
13093 - Cancel drag and drop actions when the escape key is clicked.
13094 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
13095 can handle the ESCAPE key.
13096 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
13097 done when dnd events are continued after the button is released.
13098 - Add a new helper method so that dnd can translate key events.
13100 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
13102 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
13103 make it more obvious what is happening.
13105 2007-01-30 Jackson Harper <jackson@ximian.com>
13107 * XplatUIX11.cs: Don't break when handling button release in drag
13108 and drop operations. We need that BUTTONUP message to get through
13109 so capture is released.
13110 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
13111 this is handled automatically when the mouse is down.
13113 2007-01-30 Jackson Harper <jackson@ximian.com>
13115 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
13116 is closed, so we need to make sure that we aren't changing the
13117 dialog result when the OK (Open or Save) button has been clicked
13118 and we are closing the window ourselves. Note we don't need to
13119 worry about the cache being written in this case, because it was
13120 already done in the previous FilOk call.
13122 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13124 * DateTimePicker.cs: Remove a warning.
13125 * ComboBox.cs: Remove a couple of warnings.
13127 2007-01-29 Chris Toshok <toshok@ximian.com>
13129 * XplatUIX11.cs: don't crash, and remove the icon if the user has
13130 set one, if SetIcon is passed a null icon.
13132 2007-01-29 Andreia Gaita <avidigal@novell.com>
13134 * TextBox.cs: Redraw when the password characters changes
13135 * TextControl.cs: Check if textbox has a password char and draw
13136 a line of password chars instead of the text in the line. LineTag gets
13137 an extra Draw() method which allows document.Draw to override the text
13138 that will be drawn. Removes 1024 char limitation on length of passworded
13141 2007-01-29 Jackson Harper <jackson@ximian.com>
13143 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
13144 single chars is not.
13146 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
13148 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
13149 one pixel. Fix a StackOverflowException caused by an overload wrongly
13152 2007-01-26 Everaldo Canuto <everaldo@simios.org>
13154 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
13155 also remove ProcessArrowKey and put the code inside ProcessKeys.
13157 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
13159 * PaddingConverter.cs: Added.
13161 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13163 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
13164 ShowPanels is false (fixes #80600). Only draw up to 127 characters
13165 of text (fixes #80601). For panels clip the text to draw to the
13166 panel (fixes #80603).
13168 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13170 * ComboBox.cs: Fixed implementation of ResetText.
13172 2007-01-25 Jackson Harper <jackson@ximian.com>
13174 * TextControl.cs: For the last char of a line we need to use the
13175 line size, not that chars width, since it won't actually be
13176 computed since the right side of a char is based on the start of
13177 the left side of the next char, and the next char does not exist.
13179 2007-01-25 Chris Toshok <toshok@ximian.com>
13181 * Splitter.cs: fix the new unit tests, and reindent some switch
13184 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13186 * ComboBox.cs: Implemented 2.0 methods and events.
13187 * TextBoxBase.cs: Added OnTextUpdate, so that
13188 ComboBox.ComboTextBox can inform ComboBox of it.
13190 2007-01-25 Jackson Harper <jackson@ximian.com>
13192 * TextControl.cs: Respect ShowSelection when deciding whether or
13193 not to display the caret, this allows comboboxes to have carets
13194 when the combotextbox does not have focus.
13196 2007-01-25 Jackson Harper <jackson@ximian.com>
13198 * TextControl.cs: Add a Suspend/Resume for updating, basically the
13199 same as the Suspend/Resume for recalc, except this will do actual
13201 - New Undo manager, works much like the MS version.
13203 * TextBoxBase.cs: The Cut operation is undoable.
13205 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13207 * TextBoxBase.cs: Don't antialias text. Makes it look way better
13208 on Windows (no difference on Linux).
13210 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13212 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
13213 we don't want to activate any windows. Fixes #79433.
13215 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
13217 - ButtonBase.cs: Fix capitalization of parameter: disposing.
13220 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
13223 - Move to using System.ComponentModel.EventHandlerList
13224 - Replace Refresh with Invalidate
13225 - Clear the mime filecache on closing
13226 - Some other memory reducing work. After beeing closed FD now uses
13227 only about 300 KB for the fdo mime stuff plus the memory of the
13229 * Mime.cs: Changed coding style and removed unnecessary commented
13230 code. Some more memory memory reducing work.
13232 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13234 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
13235 a few other missing 2.0 properties.
13236 * Theme.cs: Added DrawFlatStyleComboBox.
13237 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
13239 2007-01-24 Chris Toshok <toshok@ximian.com>
13241 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
13242 wake_waiting flag, not just when there's data to be read. if we
13243 don't, then future wakeup's won't reach us and we'll be doomed to
13244 wait for the entire 1 second timeout forever (unless there are X
13247 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13249 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
13250 until you pass Items.Count, not Items.Count - 1 like 1.1.
13252 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
13254 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
13256 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13258 * ToolStripContainer.cs: The recent Dock fix exposed that I was
13259 adding the panels in the wrong order.
13261 2007-01-24 Jackson Harper <jackson@ximian.com>
13263 * TextBoxBase.cs: When we move the caret we also need to move the
13264 selection, this fixes some random crashing after doing select
13265 text, unselect, delete a char, paste.
13267 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13269 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
13271 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13273 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
13274 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
13275 * ToolBar.cs: Force redraw in BackgroundImageChanged.
13277 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13280 - Implement support for vertical toolbars. Fixes #80539;
13281 - Call LayoutToolBar when resize, it fix some other problems in layout.
13282 - Rename requested_height to requested_size, as we can have width on it
13283 when toolbar is vertical.
13284 - Create a private property "Vertical" that uses Dock to verify when
13285 toolbar is vertical or not.
13286 - Set ControlStyles when change Dock property.
13287 - Refactory in LayoutToolBar to have better variables names and to support
13289 - Fixes default value for ButtonSize when button count is equal zero, size
13290 must be (39, 36) test case writed.
13292 2007-01-23 Chris Toshok <toshok@ximian.com>
13294 * Control.cs: fix the checks so that they work correctly for mdi
13297 2007-01-23 Chris Toshok <toshok@ximian.com>
13299 * Control.cs: ControlCollection seems to have super-secret
13300 abstraction breaking knowledge of Mdi containers. allow MdiClient
13301 to add toplevel controls.
13303 2007-01-23 Chris Toshok <toshok@ximian.com>
13305 * Control.cs: throw an ArgumentException if a toplevel control is
13306 added to our control collection from ControlCollection.Add, as
13307 well as from ControlCollection.IList.Add. This fixes the
13308 ControlSetTopLevelTest.TestTopLevelAdd unit test.
13310 Also, in ControlCollection.IList.Add, don't through an
13311 ArgumentNullException, throw an ArgumentException, when value ==
13312 null. This matches MS.
13314 2007-01-23 Chris Toshok <toshok@ximian.com>
13316 * BindingSource.cs: initial, incomplete, implementation of
13319 2007-01-23 Jackson Harper <jackson@ximian.com>
13322 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
13323 that I can fix a broken unit test (TextBoxTest::ClearUndo)
13325 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13327 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
13329 2007-01-23 Andreia Gaita <avidigal@novell.com>
13331 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
13332 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
13333 IndexOfKey() for 2.0
13335 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
13337 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
13338 to prevent it from changing z-order.
13339 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
13340 leave UI updates in MdiWindowManager.
13341 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
13342 1 sized (NC handling goes weird on Linux otherwise).
13343 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
13344 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
13345 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
13346 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
13347 and SetWindowState(s) to allow for changing the size of an activated child
13348 before activating it (reduces a lot of flicker).
13350 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13352 * Form.cs: Changing FormBorderStyle has different semantics based
13353 on whether the Form is visible or not. If not visible, don't change
13354 the Size. But InvalidateNC needs to be called to force the window
13355 to pick up the changes and redraw itself. [Fixes bug #80574]
13357 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13360 * ContainerControl.cs: ProcessCmdKey.
13361 * ErrorProvider.cs: new constructor.
13362 * Form.cs: fix AutoValidateEvent compiler warning.
13363 * Label.cs: fix OnAutoSizeChanged compiler warning.
13364 * MenuStrip.cs: fix CanOverflow compiler warning.
13365 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
13366 * TextBox.cs: Dispose.
13367 * ToolStrip.cs: CanOverflow, re-enable double buffering.
13368 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
13369 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
13370 * ToolStripItem.cs: Overflow, RightToLeft properties.
13372 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13374 * Form.cs: Move the layout of the main form to MdiWindowManager.
13375 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
13376 do a layout of the main window to update MdiClient's client area to
13377 the right area. Fixes #80533. Remove the calculation of nc size,
13378 it was just wrong and the correct one is the same as for
13379 InternalWindowManager.
13381 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
13383 * Control.cs: Setting Anchor or Dock needs to reset the other
13384 to its default. [Fixes bug #80556]
13386 2007-01-20 Chris Toshok <toshok@ximian.com>
13388 * CheckedListBox.cs: class status changes.
13390 * ScrollableControl.cs: same.
13392 * RichTextBox.cs: same.
13394 * ContainerControl.cs: same.
13396 * ListView.cs: same.
13398 * NotifyIcon.cs: same.
13400 * MenuStrip.cs: same.
13402 * RadioButton.cs: same.
13404 * CheckBox.cs: same.
13406 * PrintPreviewDialog.cs: same.
13410 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
13412 * TreeNode.cs: Apply Alan's patch for Name property.
13414 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13416 * Form.cs: Implemented SizeGripStyle.
13417 * SizeGrip.cs: Check for minimum and maximum size for the
13418 control being resized and only resize if size has actually
13421 2007-01-19 Chris Toshok <toshok@ximian.com>
13423 * DataGridColumnStyle.cs: stop setting _readonly in the
13424 PropertyDescriptor setter. fixes a unit test failure.
13426 also, rename ParentReadOnly to TableStyleReadOnly, and have it
13427 just consult our table style (if we have one). We don't need to
13428 consult the datagrid readonly attribute because that's passed in
13429 as the _ro arg to Edit. this simplifies things a little.
13431 * DataGrid.cs: use CurrentColumn instead of
13432 current_cell.ColumnNumber just to simplify some of the code.
13434 switch the order of some things in the CurrentCell setter to keep
13435 the previous cell from getting a textbox again -
13436 EnsureCellVisibility causes scrolling to happen, which calls Edit.
13437 So we need to set the new cell before calling it.
13439 call Edit in OnEnter, as does Microsoft.
13441 also, make sure the current table style isn't the one we create
13442 initially when checking to see if it's different than the one
13443 we're setting it to in BindColumns (this fixes #80421).
13445 * GridTableStylesCollection.cs: table styles can have "" for a
13446 mapping name. part of the fix for #80421.
13448 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
13449 Edit significantly.
13451 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13453 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
13454 and less GDI object leaky-er.
13456 2007-01-18 Andreia Gaita <avidigal@novell.com>
13458 * LinkLabel.cs: Add opaque control style
13460 2007-01-18 Jackson Harper <jackson@ximian.com>
13462 * TextControl.cs: Calculate width properly.
13463 - Don't store the tag's X offset, this can be figured out very
13465 - When getting the caret tag make sure to get the last empty tag.
13467 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13469 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
13472 * Control.cs: Color.Empty shouldn't count for previous transparent
13475 2007-01-18 Jackson Harper <jackson@ximian.com>
13479 * TextControl.cs: Starting to merge in some pieces of my older
13480 undo work. Basically just some slight cleanup of the undo API.
13482 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13484 * TrackBar.cs: Fix signature of RightToLeftLayout.
13485 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
13486 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
13487 * Application.cs: Implemented UseWaitCursor.
13489 2007-01-18 Jackson Harper <jackson@ximian.com>
13491 * TextControl.cs: We can't skip tags if any part of the tag is
13494 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13496 * ContainerControl.cs: Override OnLayout.
13498 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13500 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
13502 * ContextMenuStrip.cs: Make sure context menu is shown on top of
13505 2007-01-18 Chris Toshok <toshok@ximian.com>
13507 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
13508 (leftover from the container_selected days, I'd wager). fixes bug
13511 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13513 * Control.cs: Apply patch from George to fix the new testcase on
13514 bug #80451. We can't just check for Color.Transparent, we need
13515 to check if the back color's alpha channel is < 255.
13517 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13519 * Form.cs: Move setting show_icon = true to before the constructor
13520 so that the base constructor has that information when it calculates
13521 the form's size. Was causing forms to be (6, 6) bigger than they
13522 were supposed to be. Thanks for catching this Rolf!
13524 2007-01-18 Jackson Harper <jackson@ximian.com>
13526 * TextControl.cs: When replacing a selection we need to invalidate
13527 from the initial selection start, because selection start is moved
13528 to the end of the replacement.
13530 2007-01-18 Andreia Gaita <avidigal@novell.com>
13532 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
13534 2007-01-18 Chris Toshok <toshok@ximian.com>
13536 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
13539 2007-01-17 Everaldo Canuto <everaldo@simios.org>
13541 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
13542 layout methods and properties from ToolBarButton must be available
13543 into ToolBarButtonInfo.
13545 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13547 * Control.cs: If the control has a transparent background, we
13548 need to refresh it when it moves and when it's parent's background
13549 image changes. [Fixes bug #80451]
13551 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13553 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
13555 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13557 * XplatUIWin32.cs: Implement proper double buffering for Windows.
13558 [Fixes bug #80447, and probably speeds up things as well]
13560 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13562 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
13563 * XplatUIWin32.cs: We need to recalculate NC size after changing
13564 window style to toolwindow (otherwise the client rectangle will be
13565 3 pixels to small for some reason).
13566 * MdiWindowManager.cs: Revert NC size calculations to match how
13567 they are calculated only based on window styles (to match
13568 Win32AdjustWindowRectEx, since otherwise when setting size or
13569 location, Control will call Win32AdjustWindowRectEx to update client
13570 size, which would provoke a paint, then we'd get a NCCALCSIZE and
13571 calculate a different value of client size causing another paint
13573 * InternalWindowManager.cs: When moving or resizing a window only
13574 update size or location if they actually changed.
13575 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
13576 (seems to match Windows behaviour better). Cleaned up
13577 ManagedWindowDecorations to draw what's needed and nothing else
13578 (was drawing borders and lines where they shouldn't be)
13579 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
13580 (style = 0xFFFF) and takes into account caption height when
13581 calculating window rectangle.
13583 2007-01-16 Everaldo Canuto <everaldo@simios.org>
13585 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
13586 can be added to toolbar multiple times, we need to maintain a list of
13587 button information for each positions.
13589 2007-01-16 Everaldo Canuto <everaldo@simios.org>
13591 * ToolBar.cs: Some small stetic changes.
13593 2007-01-16 Jackson Harper <jackson@ximian.com>
13595 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
13596 that allow us to have nested recalc = false blocks.
13597 - Add paste support for images in the RichTextBox
13598 * RichTextBox.cs: flush the text after the color is changed, so
13599 the change takes effect.
13600 - Use SuspendRecalc
13601 - Some extra debugging info
13602 * TextControl.cs: Tags no longer track their length, it is just
13603 computed from the next tags length, this makes things a little
13604 simpler and reduces places that we have to track length changes.
13605 - Refactored the linetag class a little so we could make it
13606 a base class for different kinds of tags
13607 - Created a image tag, a tag that can have a single image inserted
13609 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
13610 that we can call suspend multiple times.
13611 - Add some debugging methods
13613 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13615 * MdiClient.cs: Add ActivatePreviousChild for
13616 mdi child window navigation.
13617 * Form.cs: Use MdiClient.ActivateNextChild/
13618 ActivatePreviousChild instead of Form.SelectNextControl
13619 to select the next/previous child since
13620 SelectNextControl doesn't do it in the same order
13621 as mdi children should do it.
13623 2007-01-16 Chris Toshok <toshok@ximian.com>
13625 * Control.cs: remove container_selected field.
13627 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13629 * MdiClient.cs: Update main form's ActiveChild when
13630 updating keyboard focus for the mdi child.
13632 2007-01-16 Jonathan Pobst <jpobst@novell.com>
13634 * Control.cs: PreferredSize fix.
13636 * Form.cs: Add several 2.0 events, properties, and methods.
13638 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
13640 * Form.cs: Provide meaningful message when MdiParent is assigned a
13641 Form that is not an MdiContainer.
13643 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13645 * MdiClient.cs: Update main form's ActiveChild when
13646 activating a mdi child.
13648 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13650 * MdiWindowManager.cs: Fix NRE when merging menus and main form
13651 doesn't have a menu.
13653 * Form.cs: Request NCRecalc after creating a mdi child window.
13654 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
13655 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
13657 * MdiClient.cs: Add new method SendFocusToActiveChild that either
13658 sends keyboard focus to the active child, or to the MdiClient
13659 if there are no child forms.
13661 2007-01-15 Chris Toshok <toshok@ximian.com>
13663 * ListView.cs: drop the *Internal overrides, just do our work in
13664 ItemControl's WndProc instead.
13666 * UpDownBase.cs: a few large changes. Fix up the Selectable state
13667 of the various controls, and forward the events properly (in the
13668 same manner as MS) from the textbox to the UpDown. Also the
13669 ActiveControl of the UpDownBase gets set properly now. Finally,
13670 we don't call UpdateEditText from the ctor. Fixes bug #79957.
13672 * NumericUpDown.cs: set Text in the ctor.
13674 * DomainUpDown.cs: call UpdateEditText in the ctor.
13676 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
13677 so even a Selectable = false textbox can be focused if you click
13680 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
13681 just add their handling in their respective WndProc's. Also add
13682 an explicit FocusInternal method that doesn't consult CanFocus
13683 before calling Select(this).
13685 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
13686 do our work in WndProc instead.
13688 * TabControl.cs: same.
13690 * ComboBox.cs: same.
13692 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13694 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
13697 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13700 * ThemeWin32Classic.cs: Don't draw the item text outside
13701 item bounds in Details view, as well as use trimming.
13704 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13706 * Form.cs: Implement Form.ShowIcon.
13708 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
13709 null, which when combined with the DlgModalFrame window style removes
13710 the icon from the title bar.
13712 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13714 * Control.cs: Call OnMouseClick after OnClick. (2.0)
13716 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13718 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
13719 menu when mdi child windows theres a menu, uses insert to get icon
13720 at first position. Partially fix #80006.
13722 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13724 * Clipboard.cs: Implement 2.0 methods.
13726 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13728 * Menu.cs: Implement Insert method of MenuItemCollection class
13731 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13733 * ListView.cs: Implement 2.0 FindItemWithText method.
13735 2007-01-11 Everaldo Canuto <everaldo@simios.org>
13737 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
13738 to calculate menu bar size. Fixes #80290.
13740 2007-01-11 Everaldo Canuto <everaldo@simios.org>
13742 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
13744 2007-01-11 Chris Toshok <toshok@ximian.com>
13746 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
13749 2007-01-11 Chris Toshok <toshok@ximian.com>
13751 * LinkLabel.cs: make sure to call base.Select in our Select method
13752 if it turns out we're going to be selected (i.e. if we have a link
13753 that is going to receive focus). That way our container's
13754 ActiveControl is updated properly.
13756 2007-01-11 Chris Toshok <toshok@ximian.com>
13758 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
13759 they have 1 or more links. this fixes the crash gert reported.
13761 2007-01-11 Andreia Gaita <avidigal@novell.com>
13763 * ContainerControl.cs: Remove ContainerSelected flag, not needed
13766 * Control.cs (Controls.Add): Check if control to be added to the collection
13767 is a top level control, and throw an ArgumentException if it is.
13768 Remove ContainerSelectedFlag, not needed anymore.
13770 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
13771 top most control doesn't activate the form. This fixes a problem in the
13772 MessageBox, where the default button wouldn't get focus because the form
13773 was activated before being Loaded - when the Owner is set, SetTopMost is
13774 called, and it would activate it.
13776 2007-01-11 Jonathan Pobst <jpobst@novell.com>
13778 * Button.cs: When clicked and setting the parent form's DialogResult,
13779 use FindForm instead of Parent, since parent could be a container
13780 control and not the Form. Fixes bug #80495.
13782 2007-01-10 Chris Toshok <toshok@ximian.com>
13784 * Form.cs: move the call to SendControlFocus into the same
13787 2007-01-10 Chris Toshok <toshok@ximian.com>
13789 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
13790 It breaks in the face of the new ActiveControl stuff, and should
13793 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
13794 activecontrol's focus if it's not already set, after we set
13795 ActiveControl, but before we call OnActivated. Re-fixes #79667
13796 after the previous focus/active control fixes regressed it.
13798 * Control.cs: reindent some code.
13800 2007-01-10 Chris Toshok <toshok@ximian.com>
13802 * Splitter.cs: clearing some outstanding changes from my tree.
13803 Replace all accesses (not writes) to the internal dock_style field
13804 with the Dock property.
13806 2007-01-10 Chris Toshok <toshok@ximian.com>
13808 * Control.cs: make FireEnter, FireLeave, FireValidating, and
13809 FireValidated virtual.
13811 * Form.cs: override and don't chain up calls to FireEnter and
13814 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13816 * ListView.cs: Add more text padding space when using
13817 auto resize for columns (the previous value didn't work fine).
13819 * ThemeWin32Classic.cs: Update text position inside columns,
13820 to match the appeareance of .Net.
13822 * ColumnHeader.cs: When using auto resize, only the Width should
13823 depend on the sub items, not the Height. Also, set width after
13824 auto resizing (the value of Width should never remain as -1 or -2).
13826 2007-01-10 Chris Toshok <toshok@ximian.com>
13828 * Application.cs: fix compilation errors when debug is enabled.
13830 2007-01-10 Chris Toshok <toshok@ximian.com>
13832 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
13833 add some nice ascii art pictures and explanation of the process).
13834 (GetMostDeeplyNestedActiveControl): new utility function we need
13835 because our ActiveControl can refer to a child container with its
13838 * Form.cs (OnActivated): remove the call to SelectActiveControl
13839 from here, since you can override this method and not chain up,
13840 and winforms still sets the active control.
13841 (OnCreateControl): also remove the unnecessary SelectActiveControl
13843 (WndProc): it's actually called from the WM_ACTIVATE block, just
13844 before calling OnActivated.
13846 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
13847 inside the else. the ActiveControl setter will end up setting
13848 focus on @control. This keeps us from setting it again (and
13849 generating an extra LostFocus/GotFocus pair).
13850 (Select (bool, bool)): reindent.
13852 2007-01-10 Jonathan Pobst <jpobst@novell.com>
13854 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
13855 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
13856 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
13857 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13858 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
13859 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
13860 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
13861 ToolStripTextBox.cs: Another wave of corcompare work.
13863 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13865 * ColumnHeader.cs: Implement 2.0 AutoResize method using
13866 the Width property.
13868 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
13869 methods by callling Column.AutoResize method on columns.
13871 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
13873 * Control.cs: Provide proper implementations of PreferredSize
13874 and GetPreferredSize (2.0).
13876 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
13878 * Form.cs: Remove one character (!) to make my previous OnClosing
13879 stuff work for modal windows like MessageBox.
13881 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13884 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
13885 ListView.Columns to get the last displayed column. Fixes #80452.
13887 2007-01-09 Everaldo Canuto <everaldo@simios.org>
13889 * Label.cs, LinkLabel.cs: Source code identation fixes.
13891 2007-01-08 Everaldo Canuto <everaldo@simios.org>
13893 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
13894 we dont need to invalidate only borders because when we invalidate four
13895 border lines the invalidate's generates a complete redraw of button,
13896 because it now invalidate a complete rect some other redraws operations
13897 are fixed. Fixes #80196.
13899 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
13900 Remove ToolBarInvalidateEntireButton as it is not used.
13902 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
13904 * Form.cs: Make sure that both OnClosing and OnFormClosing are
13905 called for 2.0 profile.
13906 * CloseReason.cs: Make class internal for 1.1.
13908 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
13910 * ToolStripManager.cs: Implement FindToolStrip functionality.
13911 * ToolStrip.cs: Register and unregister with ToolStripManager.
13913 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
13915 * Control.cs: This was messy. 2.0 moves much of ControlCollection
13916 to ArrangedElementCollection. Implemented this with as few #if's as
13917 possible (which is still too many).
13919 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
13921 * Control.cs: Implement SizeFromClientSize() [2.0].
13923 2007-01-07 Everaldo Canuto <everaldo@simios.org>
13925 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
13926 use Theme.BorderSize to calculate area instead of static value 1,
13927 by the way use new BorderStaticSize instead Border3DSize when
13928 border_static is true. Fixes #79537.
13930 * XplatUIOSX.cs: Fix call to GetClientRectangle.
13932 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
13935 2007-01-06 Everaldo Canuto <everaldo@simios.org>
13937 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
13939 2007-01-06 Everaldo Canuto <everaldo@simios.org>
13941 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
13942 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
13945 - border_static field added, it will used to define when a control
13946 theres 3D border but it must be static (thin).
13947 - In GetWindowRectangle use Theme.BorderSize to calculate area
13948 instead of static value 1, by the way use new BorderStaticSize instead
13949 Border3DSize when border_static is true.
13951 * XplatUIX11.cs, XplatUIOSX.cs:
13952 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
13954 * Theme.cs: BorderStaticSize field added.
13956 2007-01-05 Everaldo Canuto <everaldo@simios.org>
13958 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
13960 2007-01-05 Everaldo Canuto <everaldo@simios.org>
13962 * Control.cs: Under InternalBorderStyle call RecreateHangle to
13963 mimic same behavior than win32 that set border only in CreateParams,
13964 it fix problems under CreateParams overrides. Fix #79442 and partial
13967 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
13968 of thi control you must call recreate handle.
13970 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
13971 need to do anything as RecreateHangle will take care about borders.
13973 2007-01-05 Mike Kestner <mkestner@novell.com>
13975 * ListView.cs: hack to eliminate Lost/Got focus notifications on
13976 cycles between the ItemControl and parent. Fixes #80388.
13978 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
13980 * Control.cs: Lazy init layout engine. Do not directly use
13981 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
13983 2007-01-05 Chris Toshok <toshok@ximian.com>
13985 * DataGrid.cs: don't forceably rebind columns in SetDataSource
13986 unless our list manager has changed (i.e. unless we have reason to
13987 believe our columns have changed). Fixes #80422.
13989 also, disable the call do BindColumns in
13990 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
13991 1.1 the event isn't raised in response to a column addition on a
13994 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
13996 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
13997 that inheritors can not call it if they choose. Fixes bug #80456.
13999 2007-01-05 Andreia Gaita <avidigal@novell.com>
14001 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
14002 doesn't blow up with a null exception on marshalling.
14004 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
14006 * Control.cs: Implement several 2.0 protected properties and methods.
14007 Ensure that all necessary events are being called when properties
14010 2007-01-05 Mike Kestner <mkestner@novell.com>
14012 * ListView.cs: implement PgUp/PgDn for Details view. Also
14013 fixes First/LastVisibleIndex to use the item_control.ClientRect
14014 instead of the parent control. Fixes #80378.
14016 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
14018 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
14019 determine whether to use yard-pound or not (bug #78399).
14021 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14023 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
14024 problems. So it is time to bring back the old popupbutton colors.
14026 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14029 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
14030 property by using the internal information of the
14031 columns order in ListView.
14033 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
14035 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
14036 Add 2.0 Tag properties.
14038 * LinkArea.cs: Add 2.0 ToString method.
14040 2007-01-03 Chris Toshok <toshok@ximian.com>
14042 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
14043 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
14044 when we're editing, which fixes #80047.
14046 2007-01-03 Chris Toshok <toshok@ximian.com>
14048 * Form.cs: apply patch contributed by Dominik Seichter. fixes
14051 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
14053 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
14054 property and implementation.
14056 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
14057 for MdiWindowListItem property.
14059 * ToolStripDropDown.cs: Don't consider hidden menu items while
14060 laying out the menu.
14062 2007-01-03 Andreia Gaita <avidigal@novell.com>
14064 * SendKeys.cs: window handle is not needed in win32, so just
14065 get the active window for X after parsing keys and don't use
14066 it when building the message; it is passed by parameter to the
14067 Xplat method and used there to build the message instead. Also,
14068 wait for events to be processed on SendWait, as opposed to Send,
14069 which doesn't wait :) Playing with threads and Send() completely
14070 hangs on ms.net, only SendWait() works.
14073 X11Display.cs: Check for valid window handle.
14075 2007-01-03 Jackson Harper <jackson@ximian.com>
14077 * TextControl.cs: Need to prevent wrap calculations when replacing
14078 text (this was there before i removed it accidently).
14079 - Don't update the cursor during the positioning, just set it to
14080 selection_start at the end of the operaion.
14082 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14085 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
14087 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14089 * MonthCalendar.cs: Added Click and DoubleClick events again,
14090 but this time they only hide Control's Click and DoubleClick.
14092 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
14094 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
14095 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
14097 2007-01-02 Jackson Harper <jackson@ximian.com>
14099 * TextBoxBase.cs: We move the caret with the split now, so we
14100 don't need to explicitly move the caret after splitting. This
14101 fixes the caret bumping down an extra line on Enter.
14103 2007-01-02 Miguel de Icaza <miguel@novell.com>
14105 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
14108 * ScrollableControl.cs: Add Scroll event.
14110 2007-01-02 Mike Kestner <mkestner@novell.com>
14112 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
14113 to fix all hdr height padding codepaths. Fixes #80207.
14115 2007-01-02 Chris Toshok <toshok@ximian.com>
14117 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
14118 setting it to the Control defaults anyway, and it being after the
14119 Dock set was screwing up layout.
14120 (set_Dock): don't short circuit out of setting base.Dock. Also,
14121 no need to call UpdateStatusBar here, as it'll be re-layed out if
14124 2007-01-02 Mike Kestner <mkestner@novell.com>
14126 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
14127 to header height for width == -1. Fixes the rest of #80207.
14129 2007-01-02 Mike Kestner <mkestner@novell.com>
14131 * ListView.cs: rework the mouse event forwarding everaldo added
14132 to translate the coordinates to the parent control not
14133 raise the parent events until after we've done our work. Hover
14134 needs more work, in the case where HoverSelection is on, because
14135 the item control receives more than one MouseHover per Enter
14136 event, so we need to ensure only the "first" hover gets forwarded.
14137 Opening a minor bug for that.
14139 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
14141 * CheckedListBox.cs: Fixed SelectionMode to match MS.
14142 * ListControl.cs: Implemented AllowSelection property. Removed extra
14144 * ListBox.cs: Implemented AllowSelection property.
14146 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14148 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
14149 SelectedItem, it prevent for errors when you must disable item
14150 before perform click. Fixes #80409.
14152 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14154 * MenuAPI.cs: Prevent second level and beyond submenus to close
14155 until first level when move out side of popup.
14157 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14160 - Down submenu positin in three pixels.
14161 - Closes sub menu when mouse leaves from menu. Fixes #80402.
14163 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14165 * ThemeWin32Classic.cs:
14166 - Fix popup menu size adding one pixel on the top.
14167 - Down menu item border from two to one to mimic Win32.
14168 - Some source identation fixes.
14170 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14172 * ThemeWin32Classic.cs: Use float numbers to calculate size and
14173 position of menu arrows, it fix wrong arrow size.
14175 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14177 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
14178 instead of line, it simplify draw operation and fix it using 3D
14179 borders to mimic Win32.
14181 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
14183 * StatusStrip.cs: Add implementation of the sizing grip.
14185 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
14186 StatusStrip rendering.
14188 2006-12-31 Chris Toshok <toshok@ximian.com>
14190 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
14191 override the layout style (anchor/dock) of the control. assign to
14192 Dock instead. Fixes bug #80416.
14194 * ToolStrip.cs: same.
14196 2006-12-31 Andreia Gaita <avidigal@novell.com>
14198 * ContainerControl.cs: Use ContainerSelected flag to check if
14199 a Container is directly selected, or if Select is called on a
14200 non-container. If a container is directly selected, focus events
14201 should not be raised.
14202 Apply #80411 patch to throw exception on set_ActiveControl if
14203 control is the same as the current one.
14205 * Control.cs: Use ContainerSelected flag (see above).
14206 Add invalidation check to raise event but not invalidate if
14208 Apply #80411 patch.
14211 2006-12-31 Everaldo Canuto <everaldo@simios.org>
14213 * MenuAPI.cs: After click, dont close popup menu when menu is
14214 ContextMenu. Fixes #80399.
14216 2006-12-30 Chris Toshok <toshok@ximian.com>
14218 * ContainerControl.cs: make sure we throw the exception if the
14219 container control doesn't contain the control we're setting
14222 2006-12-30 Chris Toshok <toshok@ximian.com>
14224 * Control.cs (SetTopLevel): fix the exception raised by
14225 SetTopLevel for child controls.
14226 (set_Anchor): call UpdateDistances when setting the anchor type.
14227 This fixes bug #80336.
14229 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14231 * Theme.cs: For now, revert back to 8pt font.
14233 2006-12-29 Everaldo Canuto <everaldo@simios.org>
14235 * MenuAPI.cs: Set popup as active when open a ContextMenu.
14238 2006-12-29 Chris Toshok <toshok@ximian.com>
14240 * Control.cs: reorder the code in OnResize to give the same event
14243 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14245 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
14246 TileHorizontally and TileVertically.
14248 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
14250 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
14251 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
14252 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
14253 Corrected copyright and email adress.
14255 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14257 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
14258 of Exception in FullPath property if no TreeView is associated with
14261 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14263 * Theme.cs: Marked default_font as private, and initialize it in ctor
14264 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
14266 * ThemeGtk.cs: Removed default_font intialization.
14267 * ThemeWin32Classic.cs: Removed default_font initialization.
14269 2006-12-28 Chris Toshok <toshok@ximian.com>
14271 * Control.cs: fix a couple of place where we were creating handles
14272 more aggressively than we should be. Fixes ControlRefresh unit
14275 2006-12-28 Chris Toshok <toshok@ximian.com>
14277 * Control.cs: contrary to what the comment said, Control.Dock does
14278 not supercede Control.Anchor - the last one you assign to decides
14279 the layout behavior. so we need to keep track of which was the
14280 last set. Also, fix some of the affected property arguments in
14281 PerformLayout calls, and remove an redundant parent.PerformLayout
14284 Add a VisibleInternal property, which returns is_visible. We
14285 can/should get rid of all the usage of this field elsewhere.
14287 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14289 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
14290 control style, not DoubleBuffer. Added UseDoubleBuffering property
14291 that indicates whether doublebuffering is enabled and supported.
14292 (comment from and code based on Gert Driesen's patch in #80324).
14295 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14297 * Control.cs: Fixed a NRE.
14299 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14301 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
14304 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14306 * Control.cs: Rewrote double buffering, now a seperate
14307 class handles all the buffering, no Graphics is disposed of
14308 until the painting is finished (earlier implementation
14309 would crash if the control was resized in the OnPaint,
14310 since it would cause the double buffer to be recreated
14311 and the old one disposed), a separate Graphics is
14312 created for every paint (MS behaviour and anyways the state
14313 of the Graphics would have to be saved and restored otherwise)
14315 * XplatUIDriver.cs:
14317 * XplatUI.cs: Added and implemented GetOffscreenGraphics
14318 so that we can get the graphics for the back buffer without
14319 having to create a new one and remove the offscreen_dc parameter
14320 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
14322 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14324 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
14325 Also make virtual all the key-related methods.
14327 * ListViewItem.cs: Make virtual the key related methods for
14328 ListViewSubItemCollection.
14330 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14334 * ThemeWin32Classic.cs:
14335 * Theme.cs: Initial support for Tile view in ListView,
14336 as well as the implementation of the required bits for it (Item
14339 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14341 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
14342 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
14343 Provide useful exception messages.
14345 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14347 * TrackBar.cs: Remove a warning.
14348 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
14349 when used by DateTimePicker, fixes #80287. This also requires that
14350 MonthCalendar implements it's own drawing for the yearly updown control,
14351 otherwise the Capture tracking would be too complicated. Removed the Click
14352 and DoubleClick events (according to comments they were hiding the base class
14353 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
14354 raise these events, not that they cannot be raised. It is possible to raise
14355 them by calling OnClick and OnDoubleClick). Added two internal fields in
14356 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
14357 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
14358 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
14359 event, no longer needed.
14361 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14363 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
14364 true if new value differs from current value.
14366 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14368 * Control.cs: ControlCollection.Count must be public. Fixed build of
14371 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14373 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
14375 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14377 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
14379 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14381 * Control.cs: Invalidates control including when Width and Height is
14382 equal zero or is not visible, only Paint event must be care about
14383 this. Fixes #79913.
14385 2006-12-26 Chris Toshok <toshok@ximian.com>
14387 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
14388 more corcompare work.
14390 * DataGridView.cs: fix compiler warning.
14392 * ColumnHeader.cs: some corcompare work, and also take the
14393 opportunity to make the internal fields private.
14395 * ListView.cs: fix the fallout from the above field change.
14397 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14399 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
14400 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
14401 ToolStripTextBox.cs: Fixes to events and corcompare.
14403 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14405 * ListView.cs: Call owner.OnMousexx event to propagate events from
14406 item to ListView. Fixes #80367.
14408 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14410 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
14411 if value is less than one. ItemHeight should not be set to a value
14412 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
14413 Removed extra tabs.
14415 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14417 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
14418 * ToolStripStatusLabel.cs: Add Spring for Moma.
14420 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14422 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
14423 Fixed code formatting. Removed debug code.
14424 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
14426 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14428 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
14429 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
14430 ArgumentOutOfRangeException if ColumnCount is negative. In
14431 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
14432 less than 4 or higher than 32768.
14433 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
14434 Fixed FormatProvider to return CurrentCulture unless explicitly set.
14435 Fixed IsFormatProviderDefault to return true if FormatProvider has
14436 not been explicitly set.
14438 2006-12-25 Chris Toshok <toshok@ximian.com>
14440 * Application.cs: add a couple of 2.0 events.
14442 2006-12-25 Chris Toshok <toshok@ximian.com>
14444 * Control.cs: fix compiler warning.
14446 * AxHost.cs: corcompare fixes.
14448 * ApplicationContext.cs: corcompare fixes.
14450 2006-12-25 Chris Toshok <toshok@ximian.com>
14452 * Control.cs: only update dist_right/dist_bottom if the
14453 width/height is > 0. this fixes anchored controls being resized
14454 smaller until they disappear and then resized larger again.
14456 2006-12-25 Chris Toshok <toshok@ximian.com>
14458 * Control.cs: a couple of changes. Remove dist_left and dist_top,
14459 since they're nothing more than X/Left and Y/Top, respectively.
14461 Also, move back to a per-control Bitmap/Graphics for
14462 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
14463 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
14466 2006-12-25 Miguel de Icaza <miguel@novell.com>
14468 * MessageBox.cs: Implemented overload that takes a new "bool
14469 displayHelpButton" by adding a new internal field "show_help".
14470 When clicked this will raise the HelpRequested on the owner or the
14473 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
14474 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
14476 * ListView.cs: Add support ColumnWidthChanged and
14477 ColumnWidthChanging.
14479 Add support for ColumnReordered event.
14480 (ReorderColumn): Add NET_2_0 specific support for cancelling the
14483 Very nice codebase!
14485 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
14487 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
14489 2006-12-24 Chris Toshok <toshok@ximian.com>
14491 * GridTablesFactory.cs: 2.0 corcompare work.
14493 * ToolStripContainer.cs: add "override" to
14494 ContextMenuStripChanged, and remove the local event object.
14496 * ToolStripDropDown.cs: same with a couple properties.
14498 * ToolStripPanel.cs: same with AutoSizeChanged event.
14500 * TextBoxBase.cs: add "override" to AutoSizeChanged.
14502 * Form.cs: add the remaining 2.0 events, and do some corcompare
14505 * DateTimePicker.cs: add "new" to padding.
14507 * ButtonBase.cs: use Control's use_compatible_text_rendering.
14509 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
14511 * DataGridView.cs: PaddingChanged is overridden.
14513 2006-12-24 Chris Toshok <toshok@ximian.com>
14515 * Control.cs: corecompare work here too.
14517 * DataGridViewElement.cs, DataGridView.cs,
14518 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
14519 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
14520 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
14521 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
14524 2006-12-24 Miguel de Icaza <miguel@novell.com>
14526 * Control.cs: Switched the error message on the console for a
14527 todo. A review of the code will have to cope with this anyways
14528 (since its a large feature, it is in our radar) and it was
14529 producing too much output when running PDN.
14531 * ToolStripComboBox.cs: Set the text when the SelectedIndex
14532 changes. Applications depend on this (PDN 2.72)
14534 2006-12-23 Chris Toshok <toshok@ximian.com>
14536 * TableLayoutSettings.cs: finish up the corcompare work for this
14539 2006-12-23 Chris Toshok <toshok@ximian.com>
14541 * Control.cs: make SetImplicitBounds internal, do some futzing
14542 with LayoutEngine so that it's available in 1.1, and remove the
14543 entire duplicated code mess from PerformLayout. Use
14544 System.Windows.Forms.Layout.DefaultLayout instead.
14546 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
14548 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
14550 * Form.cs: Add MainMenuStrip property.
14552 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
14554 * Control.cs: Add ContextMenuStrip property and implementation.
14555 Fix ContextMenu implementation to show menu centered on control when
14556 activated using the keyboard instead of showing at screen (0,0).
14558 * ToolStripDropDown.cs: Fix needed overload of Show ().
14560 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14562 * Menu.cs: Name property added for 2.0 profile.
14564 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14566 * Menu.cs: Update information about FindMenuItem, method to be
14569 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14571 * MenuAPI.cs: When deselect items deselect also selected subitems.
14573 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14575 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
14576 FindSubItemByCoord to found itens that is not active, also an
14577 cheking added to FindSubItemByCoord to search for items only
14578 in visible popup windows. Fixes #80274.
14580 2006-12-22 Everaldo Canuto <everaldo@simios.org>
14582 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
14583 internal property, it be care about change ExStyle.
14585 2006-12-22 Andreia Gaita <avidigal@novell.com>
14587 * ContainerControl.cs: set activeControl for parent forms up the
14588 tree when the new activecontrol is a container.
14589 When validating the active control, if it is a container, also
14590 raise up the validation for it's active control. Fixes #80280
14592 * Control.cs: Add internal property flag and check to prevent
14593 Focus events from getting raised when Select() is called for
14594 a ContainerControl. There are still too many focus events being
14595 raised at the moment though.
14596 Cleaned up the code a bit.
14598 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14600 * Control.cs: Added all missing 2.0 events.and
14601 fixed a couple of corcompare issues.
14602 * TrackBar.cs: Implemented missing 2.0 bits.
14603 * MonthCalendar.cs,
14604 * DateTimePicker.cs,
14605 * MdiClient.cs: Fixed some corcompare issues.
14607 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14609 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
14610 SplitterPanel.cs: corecompare work.
14612 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14614 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
14615 Clean up warnings for BackgroundImageChanged and PaddingChanged
14616 events now that they are implemented in Control.cs.
14618 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14620 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
14622 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
14623 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
14624 of TableLayoutPanel and supporting cast.
14626 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
14629 - GrabWindow now confines the mouse pointer to the confine window.
14630 - Added Win32ClipCursor and Win32GetClipCursor.
14633 - Added CaptureWithConfine to be able to capture and confine
14636 * InternalWindowManager.cs:
14637 - Call CaptureWithConfine instead of Capture if we're an
14638 MdiChild (fixes #79982).
14640 2006-12-21 Chris Toshok <toshok@ximian.com>
14642 * DataGrid.cs: guard against the initial state of selection, where
14643 selection_start == -1. make sure we only select from index >= 0.
14646 2006-12-21 Chris Toshok <toshok@ximian.com>
14648 * Control.cs: we don't need to be so draconian with
14649 UpdateDistances, and we thusly don't need to call it before
14650 calling PerformLayout in ResumeLayout. Fixes bug #80289.
14652 2006-12-21 Daniel Nauck <dna@mono-project.de>
14655 TextBox.cs: Implemented AutoComplete properties.
14657 2006-12-20 Chris Toshok <toshok@ximian.com>
14659 * DataGridView*.cs: some corecompare work.
14661 2006-12-20 Jackson Harper <jackson@ximian.com>
14663 * XplatUIX11.cs: We need to hide the caret when deleting it,
14664 otherwise you get carets left lying around everywhere.
14665 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
14666 prevents getting some weird half drawn caret tracers when
14668 * TextControl.cs: Attempt to reduce the number of times we need to
14669 recreate the caret.
14671 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
14673 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
14675 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14677 * DateTimePicker.cs:
14678 - Implemented missing 2.0 bits.
14679 - Changed some default values to match MS.
14681 2006-12-20 Jackson Harper <jackson@ximian.com>
14683 * TextBoxBase.cs: When changing the font across the document we
14684 can't recalculate after changing each line, since that will cahnge
14686 - PreferredHeight is a little different than i thought.
14687 - When backspacing, move the caret before we do the actual char
14688 delete, because when that delete crosses a wrap boundary the
14689 positional information will change.
14691 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14693 * Control.cs: Added some missing 2.0 bits:
14694 BackgroundImageLayout, BackgroundImageLayoutChanged,
14695 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
14696 add IBindableComponent and IDropTarget implementation.
14698 * MonthCalendar.cs:
14699 - Added all missing 2.0 features:
14700 BackgroundImageLayout, RightToLeftLayout,
14701 OnHandleDestroyed, RightToLeftLayoutChanged,
14702 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
14704 - Rewrote all the BoldDate code, it was completely broken.
14705 - Fixed all the tests (the tests can now be re-enabled, the
14706 problems were not with the tests, but with the control, it was
14709 * DateTimePicker.cs: Changed the location where the
14710 MonthCalendar is shown.
14712 2006-12-19 Chris Toshok <toshok@ximian.com>
14714 * DataGridView.cs: add IDropTarget implementation.
14716 * ToolStripPanel.cs: add IDropTarget implementation.
14718 2006-12-19 Jackson Harper <jackson@ximian.com>
14720 * TextControl.cs: soft now means something different than what it
14721 used to mean, we want to move the caret regardless of whether or
14722 not this break was soft (would we really have wanted the caret
14723 to not move with the break in the old context?)
14724 * TreeView.cs: Make sure we factor in the vert scrollbar when
14725 calculating the horizontal scrollbar's maximum.
14727 2006-12-19 Andreia Gaita <avidigal@novell.org>
14729 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
14730 check for keywords in alternate casing, close bug #80049.
14732 2006-12-19 Chris Toshok <toshok@ximian.com>
14734 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
14735 methods (which all do nothing).
14737 * IDropTarget.cs: add the 4 missing methods.
14739 2006-12-19 Chris Toshok <toshok@ximian.com>
14741 * TableLayoutRowStyleCollection.cs: corcompare work.
14743 * TableLayoutSettings.cs: same.
14745 * TableLayoutStyle.cs: same.
14747 * TableLayoutColumnStyleCollection.cs: same.
14749 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
14751 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
14752 TableLayoutPanel I've had in my local tree for way too long.
14754 2006-12-19 Miguel de Icaza <miguel@novell.com>
14756 * TableLayoutSettings.cs: Finish the public API (still needs all
14757 the logic to update on changes).
14759 * TableLayoutPanelCellPosition.cs: new file.
14761 * TableLayoutRowStyleCollection.cs,
14762 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
14763 TableLayoutSettings.cs: Track the final 2.0 table api.
14765 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14767 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
14768 and Image List 2.0 members for ColummnHeader.
14769 * ListView.cs: Add key-related 2.0 methods for
14770 ColumnHeaderCollection.
14772 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
14774 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
14775 ArgumentNullException if items argument is null. Ignore null item in
14776 arrays. Removed extra tabs.
14778 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
14780 * MonthCalendar.cs: Fixed InvalidCastException.
14782 2006-12-19 Jackson Harper <jackson@ximian.com>
14784 * TextControl.cs: Don't increment the position here.
14785 - When calculating char positions only add in the line break size
14786 for hard line breaks.
14788 2006-12-19 Andreia Gaita <avidigal@novell.org>
14790 * SendKeys.cs: Changed some things to match ms.net behaviour
14791 when parsing shifted capital letters.
14793 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
14794 Add window handle as parameter to SendInput. X11 needs the
14795 window handle, and the handle being passed to it in the keys
14796 queue is the active control handle (which windows needs), not
14799 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
14800 to support SendKeys on X.
14802 * X11Keyboard: Implement helper method to lookup a linux keycode
14803 given the virtual keycode. Added table of keycode-2-virtualkey
14804 values to support this.
14806 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14808 * ListView.cs: Add support for SelectedIndexCollection
14809 and SelectedItemCollection 2.0 methods. Implement support
14811 * ListViewItem.cs: Add support for ListViewSubItemCollection
14812 2.0 methods. Also, fix an incorrect behavior of AddRange method
14813 (it shouldn't call Clear).
14814 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
14816 2006-12-19 Jackson Harper <jackson@ximian.com>
14819 * TextBoxBase.cs: New args for FormatText
14820 * TextControl.cs: Rewrote the main drawing method, this version
14821 feels a little easier to understand and debug to me. Hopefully it
14822 does to others also
14823 - Fix FormatText to OR in the new formating values. Added
14824 FormatSpecified param, basically this works in the same way as
14825 BoundsSpecified in Control.
14826 - Set the caret properties when the caret is positioned.
14827 - When wrapping text make sure that we calculate the width of the
14829 - when calculating alignments we might have wrapped down to the
14830 next line, so don't search for an individual tag, search for the
14832 - We need to invalidate the selection area when we replace the
14835 2006-12-19 Daniel Nauck <dna@mono-project.de>
14837 * Application.cs: add Restart () 2.0 support
14839 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14841 * MenuItem.cs: Invalidate menu item rectangle after change Enable
14842 property. Fixes #80268.
14844 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14846 * MenuAPI.cs: Dont trigger select event when closes top menu
14847 item. Fixes #80270.
14849 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14851 * MenuAPI.cs: When you click on menuitem only trigger onselect
14852 event for top menu itens. Fixes #80271.
14854 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14856 * MdiWindowManager.cs: Make IconicBounds depend on
14857 the bottom of MdiClient, not the top (fixes #80267)
14859 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14861 * MdiClient.cs: Added missing 2.0 attribute
14863 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14865 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
14866 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
14868 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14870 * MenuAPI.cs: Fix click when menuitem is not popup,
14871 this regression was caused by last commit (#80272).
14873 2006-12-17 Everaldo Canuto <everaldo@simios.org>
14875 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
14876 fire click event or close menu. Fixes #80272.
14878 2006-12-17 Daniel Nauck <dna@mono-project.de>
14880 * ListViewHitTestInfo.cs: add
14882 2006-12-17 Daniel Nauck <dna@mono-project.de>
14884 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
14885 * FlatButtonAppearance.cs: add
14886 * DockingAttribute.cs: add
14888 2006-12-17 Chris Toshok <toshok@ximian.com>
14890 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
14891 and rebind our columns when it does - this way, if you make
14892 changes to the DataTable (or set the Table attribute on a DataView
14893 after setting it as the DataGrid's DataSource, the changes are
14894 made visible.) Fixes bug #80107.
14896 2006-12-17 Daniel Nauck <dna@mono-project.de>
14898 * ListViewGroup.cs: add internal Location property for layouting.
14899 * Theme.cs: add abstract ListViewGroupHeight function.
14900 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
14902 2006-12-16 Andreia Gaita <avidigal@novell.com>
14904 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
14905 Added reset of selected index to 0 when adding first tab page.
14908 * NumericUpDown.cs: Fix NET_2_0 check
14910 2006-12-16 Daniel Nauck <dna@mono-project.de>
14912 * ListViewGroup.cs: fixed DefaultValueAttribute value
14914 2006-12-16 Daniel Nauck <dna@mono-project.de>
14916 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
14918 2006-12-15 Miguel de Icaza <miguel@novell.com>
14920 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
14921 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
14922 ScrollableControl.cs: Add a handful of methods that are
14925 2006-12-15 Chris Toshok <toshok@ximian.com>
14927 * XplatUIWin32.cs: initial implementation of the Reversible
14928 drawing functions. there are some problems. DrawReversibleFrame
14929 doesn't seem to work at all for Dashed FrameStyle, and in the
14930 Thick case there are drawing errors at the corners (we probably
14931 need to bind Rectangle instead of doing moveto/lineto's.)
14933 2006-12-16 Andreia Gaita <avidigal@novell.com>
14935 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
14936 to send blocks of key messages. Send accumulates keys to send with Flush,
14937 while SendWait sends all keys immediately.
14939 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14940 XplatUIX11.cs, XplatUIX11-new.cs:
14941 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
14942 to Win32 SendInput.
14943 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
14945 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
14946 testing for ms.net on this class is very tricky, as the tests run too fast
14947 to allow the hook to release, essentially freezing the keyboard and the
14948 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
14951 2006-12-16 Daniel Nauck <dna@mono-project.de>
14953 * Padding.cs: fixed serialization compability to MS ("_var" field names),
14954 added missing attributes.
14956 2006-12-15 Daniel Nauck <dna@mono-project.de>
14958 * ListViewGroup.cs: Added missing attributes.
14959 * ListViewGroupCollection.cs: Added missing attributes.
14961 2006-12-15 Daniel Nauck <dna@mono-project.de>
14963 * ListViewItem.cs: fixed ListViewSubItem text property.
14965 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14967 * Control.cs: Added missing 2.0 attributes
14969 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14971 * MdiClient.cs: Added missing 2.0 attribute.
14972 * MonthCalendar.cs: Added some missing 2.0 attributes
14975 2006-12-15 Daniel Nauck <dna@mono-project.de>
14977 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
14979 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
14981 * MainMenu.cs: Add the new 2.0 constructor to help out people
14982 using the MainMenu in VS2005.
14984 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14986 * MdiChildContext.cs: Removed it, no longer used.
14987 * MdiClient.cs: Added missing 2.0 attributes.
14989 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14991 * InternalWindowManager.cs: Fix a NullRef with previous
14992 changes for toolwindows.
14994 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14997 - Added AfterTopMostControl to allow for certain controls
14998 to always stay on top when normal controls are brought to
15002 - (DrawInversibleRectangle): Get window rectangle from Win32
15003 in stead of from control, since Win32 doesn't calculate
15004 screen coords correctly from control's Location if it
15005 have docked siblings.
15007 * MdiWindowManager.cs:
15008 - Correct the control menu popup location when clicked on
15009 the maximized form icon. (fixes #80223.1)
15010 - Don't show moving rectangle if mouse hasn't moved from
15011 the original clicked point.
15012 - Removed FormGotFocus handler (not used).
15013 - Calculate the control buttons location from the main
15014 window's size and not client size (fixes #79770).
15015 - Form is now closed when the form icon is double-clicked
15017 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
15019 * InternalWindowManager.cs:
15020 - Moved some MDI-only methods to MdiWindowManager.
15021 - Removed unused properties and methods.
15022 - Unified method naming for methods handling wm messages.
15023 - Moved all message handling to seperate methods for
15026 * ThemeWin32Classic.cs:
15027 - DrawManagedWindowDecorations now draws the title bar
15028 with a gradient brush.
15029 - Add a CPDrawButtonInternal that allows us to specify
15030 light, normal and dark colors for the buttons (control
15031 buttons for MDI children were drawn with the same light
15032 color as the background, therefore loosing the 3D effect).
15035 - Add a CapturedControl property that is used to
15036 determine the control to resize (defaults to parent).
15037 Needed for MdiClient, since its SizeGrip's parent is
15038 MdiClient, but the control to resize is the main form.
15041 - Set SizeGrip's CapturedControl to the main form in order
15042 to resize the main form and not the MdiClient.
15043 - Override AfterTopMostControl to leave the scrollbars
15046 2006-12-15 Daniel Nauck <dna@mono-project.de>
15048 * ListView.cs: fixed ListViewItemCollection AddRange and
15049 implemented ListViewItemCollection AddRange 2.0 support.
15051 2006-12-15 Daniel Nauck <dna@mono-project.de>
15053 * ListViewGroup.cs: Add.
15054 * ListViewGroupCollection.cs: Add
15055 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
15056 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
15057 stub for ImageKey 2.0 support.
15059 2006-12-14 Mike Kestner <mkestner@novell.com>
15061 * ListView.cs: add text padding to the autocalculation for columns
15062 of width -2. Fixes #80207.
15064 2006-12-14 Mike Kestner <mkestner@novell.com>
15066 * ListView.cs: add some index guarding for partial row navigation
15067 logic. Fixes #80250.
15069 2006-12-14 Mike Kestner <mkestner@novell.com>
15071 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
15072 are added or inserted to the collection. Fixes #81099.
15074 2006-12-13 Everaldo Canuto <everaldo@simios.org>
15076 * MenuAPI.cs: Closes menu when right click out side of popup
15077 it fix problem in ContextMenu and MainMenu. Fixes #80252.
15079 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15081 * ListViewItem.cs: Fix dumb error.
15083 * ListView.cs: Add Find and ContainsKey methods in
15084 ListViewItemCollection, and also return true for IsReadOnly
15085 and IsFixedSize (changes for 2.0).
15087 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
15089 * Control.cs: Allow Region to be set to null.
15091 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15093 * MdiWindowManager.cs: Remove unused (commented out) code.
15094 * Form.cs: When the MdiChild is maximized, the form needs
15095 WM_NCMOUSELEAVE, so request it.
15096 * InternalWindowManager.cs:
15097 - Added tooltips to control buttons.
15098 - Removed duplicated control button handling code.
15099 - Removed unused (commented out) code.
15101 2006-12-12 Everaldo Canuto <everaldo@simios.org>
15103 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
15104 was used because we must set cursor without trigger ChangeCursor event
15105 and without change Cursor control property. Fixes #79963.
15107 2006-12-12 Andreia Gaita <avidigal@novell.com>
15109 * Control.cs: Check if Region setter value is null, and ignore
15111 2006-12-12 Jackson Harper <jackson@ximian.com>
15113 * TextControl.cs: We were almost always drawing one more line then
15114 needed, since the GetLineByPixel will return the last line found
15115 at that pixel. In most cases though, we were invalidating up to
15116 the junction between two lines.
15117 - Improve debug code.
15119 2006-12-12 Chris Toshok <toshok@ximian.com>
15121 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
15122 and FillReversibleRectangle.
15124 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
15125 and FillReversibleRectangle.
15127 * XplatUIWin32.cs: add stubs which do nothing for
15128 DrawReversibleFrame, DrawReversibleLine, and
15129 FillReversibleRectangle.
15131 * XplatUIOSX.cs: add stubs which raise NIE for
15132 DrawReversibleFrame, DrawReversibleLine, and
15133 FillReversibleRectangle.
15135 * XplatUIX11.cs: add working implementation for
15136 DrawReversibleFrame, DrawReversibleLine, and
15137 FillReversibleRectangle.
15139 * ControlPaint.cs: implement DrawReversibleFrame,
15140 DrawReversibleLine, and FillReversibleRectangle, by calling into
15141 the appropriate XplatUI method.
15143 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15145 * Form.cs: Make MdiClient have the focus even if it's
15146 not selectable, since it should receive WM_KEY* and WM_MOUSE
15147 messages. Fixes #79907.
15149 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15151 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
15152 queried after the window is created.
15154 * XplatUIX11.cs: Added SendParentNotify to implement
15155 WM_PARENTNOTIFY logic. Fixes #79965.
15157 * Control.cs: Added MakeParam.
15159 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15161 * MdiClient.cs: Resume Layout before setting window
15162 states (fixes #80201).
15164 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15166 * MenuAPI.cs: Deselect a menu item after performing
15167 the click (fixes #80197).
15169 2006-12-11 Jackson Harper <jackson@ximian.com>
15171 * TextBoxBase.cs: We need to cap this value, since Maximum -
15172 ViewPortHeight can be less than zero.
15173 - Only do selection with the left mouse button.
15174 * TextBox.cs: Don't tell the world that we have a context menu.
15175 * Control.cs: New method so that we can control whether or not the
15176 context menu is visible outside MWF.
15178 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15180 * ToolBarButton.cs: Fix text positon.
15182 2006-12-11 Miguel de Icaza <miguel@novell.com>
15184 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
15186 * Control.cs (DoubleBuffered): Add implementation.
15188 * Application.cs (OpenForms): Add.
15190 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15192 * Form.cs: Use opacity instead of Opactiy to determine if we need
15193 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
15195 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15197 * Control.cs: Fix NRE if Control.Site was set to null.
15199 2006-12-11 Chris Toshok <toshok@ximian.com>
15201 * Control.cs: ControlCollection.Remove should return if the arg is
15202 null, and ControlCollection.SetChildIndex should raise a ANE.
15204 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
15206 * Control.cs: Verify value set for Dock property. Code formatting
15209 2006-12-11 Jackson Harper <jackson@ximian.com>
15211 * TextControl.cs: Draw the caret and the selection when a flag is
15213 * TextBoxBase.cs: We want to draw the caret and the selection for
15214 TextBox but not for TextBoxBase.
15215 - If the window is resized and scrolling is no longer needed (the
15216 whole doc is visible) set the scroll position to zero.
15217 - The default SelectWord (the one TextBox uses) should move the
15218 caret to the end of the word.
15219 - SelectAll moves the caret to the end of the selection.
15220 * TextBox.cs: We don't selectall on focus, we just do it when the
15221 control is created.
15223 2006-12-11 Mike Kestner <mkestner@novell.com>
15225 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
15227 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15229 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
15231 * ListViewItem.cs: Add Name 2.0 property.
15233 2006-12-11 Andreia Gaita <avidigal@novell.com>
15235 * TabControl.cs: Set visibility on selected or default tab
15236 when tabcontrol handle is created, so that it's contents
15237 actually show up (duh). Fixes #80193
15238 Don't redraw the control if there is no handle created, as
15239 the selected index might be completely invalid. Added some tests
15242 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15244 * ToolBar.cs: Uses maximun width and height of all buttons as
15245 button rectangle when ButtonSize specified, it looks strange but
15246 is what happens in Win32. Fixes #80189.
15248 2006-12-11 Jackson Harper <jackson@ximian.com>
15250 * TextControl.cs: Need to track undo levels ourself, since
15251 compound actions will mess them up.
15253 2006-12-10 Andreia Gaita <avidigal@novell.com>
15255 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
15256 SelectedIndex value is changed (even if it's not valid).
15257 Reset SelectedIndex to 0 when the handle is created and if
15258 the current index is invalid.
15259 Fixes SelectdeIndex unit tests and #80128
15261 2006-12-08 Chris Toshok <toshok@ximian.com>
15263 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
15264 calls EndEdit, it needs to be called before we set current_cell to
15265 its new value. Otherwise, we end up committing the value in the
15266 textbox to the new cell as well. Fixes bug #80160.
15268 2006-12-08 Chris Toshok <toshok@ximian.com>
15270 * Form.cs (set_CancelButton): if the button's DialogResult is
15271 None, set it to Cancel. Fixes bug 80180.
15273 2006-12-08 Jackson Harper <jackson@ximian.com>
15275 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
15276 to watch ourselves when setting the canvas size and setting the
15279 2006-12-08 Chris Toshok <toshok@ximian.com>
15281 * DataGrid.cs: comment out the two MakeTransparent calls for the
15282 time being so people using trunk (and not 1.2.2) on windows can
15283 actually use the datagrid. This deals with bug #80151.
15285 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15287 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
15288 Graphics.DrawImage (image, int, int, int, int) overload instead
15289 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
15290 the dpi difference and was blurring images it drew.
15293 2006-12-08 Chris Toshok <toshok@ximian.com>
15295 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
15296 rowcnt is 0 (such as with an empty datasource), and make sure we
15297 initialize not_usedarea.Y to cells.Y, so we don't draw over the
15298 other areas (caption, parent row, etc, etc). Fixes bug #80095.
15300 2006-12-08 Chris Toshok <toshok@ximian.com>
15302 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
15305 2006-12-08 Chris Toshok <toshok@ximian.com>
15307 [ Fixes bug #80167 ]
15309 * ThemeWin32Classic.cs: don't draw the image if the button's flat
15310 style is FlatStyle.System.
15312 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
15313 ButtonBase.flat_style private, and switch uses of it to the public
15316 2006-12-08 Chris Toshok <toshok@ximian.com>
15318 [ Fixes bug #80121 ]
15320 * ThemeWin32Classic.cs: center the caption text in the datagrid
15323 * DataGrid.cs: lessen the amount we add to the caption height from
15324 6 to 2. 6 was making it huge.
15326 2006-12-08 Andreia Gaita <avidigal@novell.com>
15328 * UpDownBase: Handle MouseWheel call directly instead of capturing
15329 the inner textbox's OnMouseWheel. Fixes #80166
15331 2006-12-08 Jackson Harper <jackson@ximian.com>
15333 * TextControl.cs: We need to invalidate the textbox when we empty
15334 it (how had this not been discovered before?)
15336 2006-12-08 Jackson Harper <jackson@ximian.com>
15338 * TextBoxBase.cs: Reworked the mouse down code so I could get it
15339 to behave like MS, we now ignore the eventargs.Click and just
15340 track state ourself, which we were already doing anyways.
15341 - Constrain the double click handler to the double click size.
15343 2006-12-08 Chris Toshok <toshok@ximian.com>
15345 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
15346 direction if that scrollbar isn't shown. fixes bug #80158.
15348 2006-12-08 Andreia Gaita <avidigal@novell.com>
15350 * NumericUpDown.cs: Update value on getter. Fixes #79950
15352 2006-12-08 Chris Toshok <toshok@ximian.com>
15354 * MenuItem.cs: add back in the event cloning code. I didn't know
15355 how to do it in the face of the EventHandlerList work i'd done
15356 last week. Fixes bug #80183.
15358 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15360 * Control.cs: Add an invalidate to the BackgroundImage setter.
15363 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15365 * ToolStrip*: Add some small properties reported by MoMA, fix event
15366 firing and default properties based off of unit tests, and add some
15367 attributes based off of the class status page.
15369 2006-12-07 Jackson Harper <jackson@ximian.com>
15371 * TextBoxBase.cs: Take HideSelection into account when determining
15372 whether or not to show the selection.
15373 * RichTextBox.cs: After inserting the RTF into the document move
15374 the cursor to the beginning of the document.
15376 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15378 * Control.cs: Remove static ArrayList "controls" which maintained
15379 a reference to every control created.
15380 * Application.cs: Create a static FormCollection to maintain a reference
15381 to every form created. Use it in places that formerly enumerated through
15382 the controls one looking for forms.
15383 * Form.cs: Add and remove self from above FormCollection.
15385 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
15387 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
15388 not libgdk (though it makes me wonder why I didn't have any
15391 2006-12-07 Chris Toshok <toshok@ximian.com>
15393 [ you had to know this was coming after that last commit...]
15395 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
15396 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
15397 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
15400 2006-12-07 Chris Toshok <toshok@ximian.com>
15402 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
15403 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
15404 all the behavior we need for double buffering.
15406 * XplatUIDriver.cs: implement the 3 double buffer methods using a
15407 client side Bitmap, just like the old Control-based double buffer
15408 code did. The methods are virtual, so each XplatUI driver
15409 subclass can replace the implementation to use a faster, platform
15412 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
15413 double buffer code, and clean things up a bit in the process.
15415 2006-12-06 Chris Toshok <toshok@ximian.com>
15417 * Control.cs: reindent WndProc.
15419 2006-12-06 Chris Toshok <toshok@ximian.com>
15421 [ I wanna be like BenM when I grow up ]
15423 * Hwnd.cs: create a single static Graphics object on the static
15424 Bitmap we create. use this for our text measurements.
15426 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
15427 This was causing us to allocate a backbuffer for every control,
15428 even when it wasn't flagged as double buffered. Instead use the
15429 single graphics instance. This might have implications for
15430 multithreaded applications. If we run into problems we can switch
15431 to creating 1 Graphics per control, on the static Hwnd bitmap.
15433 this change nets us a 7M savings in private dirty mappings when
15434 running FormsTest.exe.
15436 2006-12-06 Chris Toshok <toshok@ximian.com>
15438 * ListView.cs: the BackgroundImage override is just to set
15439 attributes. chain up to base.BackgroundImage.
15441 * RichTextBox.cs: same.
15443 * ToolBar.cs: same, but we need to also redraw the toolbar when it
15444 changes, so instead a handler for BackgroundImageChanged.
15446 * Control.cs: make background_image private.
15448 2006-12-06 Chris Toshok <toshok@ximian.com>
15450 * ScrollBar.cs: change the assignment of cursor to Cursor. not
15451 sure we even need this assignment, but roll with it for now.
15453 * Control.cs: make the cursor field private.
15455 2006-12-06 Chris Toshok <toshok@ximian.com>
15457 * Form.cs: we don't need to explicitly set ImeMode to
15458 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
15459 behavior in the face of ImeMode.Inherit.
15461 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
15462 change the ctor's assignment to use ImeMode instead of ime_mode.
15464 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
15465 ImeModeInherit. Only check for the parent's imemode (and return
15466 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
15467 This fixes the button unit test, which sets both ImeMode and
15468 DefaultImeMode to ImeMode.Disable.
15470 also make the ime_mode field private.
15472 2006-12-06 Chris Toshok <toshok@ximian.com>
15474 * Control.cs: make control_style private.
15476 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
15477 setting the styles to true, then setting them to false instead of
15478 reverting to their previous values.
15480 also, call SetStyle on the scrollbars instead of using
15481 control_style directly.
15483 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
15485 * FormCollection.cs: Implement. [2.0]
15487 2006-12-06 Chris Toshok <toshok@ximian.com>
15489 * Control.cs: make tab_stop private.
15491 * Label.cs: set TabStop, not tab_stop. reformat some event
15492 add/remove methods to make them more compact.
15494 2006-12-06 Chris Toshok <toshok@ximian.com>
15496 * RadioButton.cs: fix TabStop handling.
15498 2006-12-06 Chris Toshok <toshok@ximian.com>
15500 * TextBox.cs: remove the explicit assignments to has_focus.
15503 * ButtonBase.cs: remove the assignment to has_focus. Control will
15506 2006-12-06 Chris Toshok <toshok@ximian.com>
15508 * ButtonBase.cs: remove all uses of is_enabled from this code.
15509 it's always true when any of the code containing the checks is
15512 2006-12-06 Chris Toshok <toshok@ximian.com>
15514 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
15515 with different semantics (some are present in both 1.1 and 2.0
15516 profiles) so that we match MS's behavior in our unit tests.
15518 2006-12-06 Jackson Harper <jackson@ximian.com>
15520 * TextControl.cs: Make this operation undoable.
15521 * TextBoxBase.cs: Factor the border width into the preferred
15523 - implement Modified as per the spec.
15525 2006-12-06 Chris Toshok <toshok@ximian.com>
15527 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
15529 2006-12-06 Chris Toshok <toshok@ximian.com>
15531 * Control.cs: make right_to_left and context_menu fields private.
15533 2006-12-06 Chris Toshok <toshok@ximian.com>
15535 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
15536 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
15537 Control.child_controls private. switch all uses over to
15540 2006-12-06 Chris Toshok <toshok@ximian.com>
15542 * System.Windows.Forms/GroupBox.cs,
15543 System.Windows.Forms/AccessibleObject.cs,
15544 System.Windows.Forms/ErrorProvider.cs,
15545 System.Windows.Forms/Control.cs,
15546 System.Windows.Forms/UpDownBase.cs,
15547 System.Windows.Forms/ScrollBar.cs,
15548 System.Windows.Forms/DateTimePicker.cs,
15549 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
15550 System.Windows.Forms/ToolTip.cs,
15551 System.Windows.Forms/RadioButton.cs,
15552 System.Windows.Forms/LinkLabel.cs,
15553 System.Windows.Forms/Splitter.cs,
15554 System.Windows.Forms/TextBoxBase.cs,
15555 System.Windows.Forms/ToolStripTextBox.cs,
15556 System.Windows.Forms/ContainerControl.cs,
15557 System.Windows.Forms/ThemeWin32Classic.cs,
15558 System.Windows.Forms/SizeGrip.cs,
15559 System.Windows.Forms/ToolStripDropDown.cs,
15560 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
15561 private. switch all uses over to Control.Parent.
15563 2006-12-06 Chris Toshok <toshok@ximian.com>
15565 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
15566 Control does this before calling emitting these events.
15568 * TabControl.cs: same.
15570 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
15571 Control.client_rect.
15573 * ButtonBase.cs: use the ClientSize property instead of the
15576 * ScrollableControl.cs: same.
15578 * Control.cs: another pass at making properties private. also,
15579 move the initialization of tab_stop to the ctor.
15581 2006-12-05 Andreia Gaita <avidigal@novell.com>
15583 * TabControl.cs: Let the selected index be set freely if the
15584 control handle is not yet created.
15586 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
15588 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
15589 internal until I can rewrite DefaultLayout.
15590 * ToolStrip.cs: Fix build error and some general cleaning.
15591 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
15592 Fix build errors caused by making some of Control's fields private.
15594 2006-12-05 Jackson Harper <jackson@ximian.com>
15596 * TextControl.cs: Redo Insert a little so that it use IndexOf
15597 instead of Split, this prevents it from messing up on things like
15598 \n\n\n. Also more effecient since the split array doesn't need to
15600 * TextBoxBase.cs: AppendText doesnt handle multiline and non
15601 multiline text differently, this is the first of many fixes that
15602 will make multiline/non-multiline the same thing as far as the
15603 TextBoxBase is concerned.
15604 - Don't split the text and insert lines, this can lose some line
15605 endings (like is the last line a soft or hard break). Instead use
15607 - Fix an off by one when combining all the lines in the Text
15609 - Remove separate multiline handling from the Text getter/setter.
15611 2006-12-05 Chris Toshok <toshok@ximian.com>
15613 * ButtonBase.cs: a few changes:
15615 - don't reinitialize internal Control fields in the ctor when they
15616 have the same values as Control sets them.
15618 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
15619 this before calling those methods.
15621 - we don't need to call Refresh for anything. use Invalidate
15624 - OnEnabledChanged doesn't need to redraw at all - Control.cs
15625 calls Refresh in its OnEnabledChanged.
15627 - several of the events we were registered for in the ctor to
15628 redraw ourselves already include calls to Invalidate in the
15629 property setters that raise the events. remove the extra
15632 - reformat a switch statement that was 83274658 columns wide.
15634 2006-12-05 Mike Kestner <mkestner@novell.com>
15636 * ComboBox.cs: fix a unit test regression from a TextBox
15637 SelectionLength return of -1 when there's no selection.
15639 2006-12-05 Chris Toshok <toshok@ximian.com>
15641 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
15642 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
15643 cleaning up some of the internal Control fields being used by
15646 2006-12-05 Mike Kestner <mkestner@novell.com>
15648 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
15649 listbox after AddImplicit calls since it defaults to hidden. Add a
15650 hack to preserve requested heights across DropDownStyle changes.
15652 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
15654 * PropertyGrid.cs: Hide FindFirstItem method from public API.
15656 2006-12-05 Chris Toshok <toshok@ximian.com>
15658 * DataGridView.cs: fix compiler warnings.
15660 * PrintControllerWithStatusDialog.cs: same.
15662 * ToolBar.cs: same.
15664 * FolderBrowserDialog.cs: same.
15666 * Splitter.cs: same.
15668 * DataGridViewComboBoxCell.cs: same.
15670 * XplatUIWin32.cs: same.
15672 * PictureBox.cs: same.
15674 * Win32DnD.cs: same.
15676 * PageSetupDialog.cs: same.
15678 * FileDialog.cs: same.
15680 * PrintDialog.cs: same.
15682 * DataGridTextBoxColumn.cs: same.
15684 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
15686 2006-12-05 Chris Toshok <toshok@ximian.com>
15688 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
15689 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
15690 System.ComponentModel.EventHandlerList work.
15692 2006-12-05 Jonathan Chambers <joncham@gmail.com>
15694 * DrawTreeNodeEventArgs.cs: Added.
15696 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15698 * InternalWindowManager.cs: Remove an unused field.
15700 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15702 * InternalWindowManager.cs:
15703 - Save the point where the title bar is clicked.
15705 * MdiWindowManager.cs:
15706 - Only allow moving of the window as long as the
15707 clicked point on the title bar does not get out of
15708 MdiClient's rectangle. Fixes #79982.
15711 - Added Horizontal/VerticalScrollbarVisible.
15712 - Simplified the scrollbar sizing algorithm.
15713 - Cache the difference in scrolled value in
15714 H/VBarValueChanged and move the calculation out
15717 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15719 * Control.cs: Make the Console.WriteLine in WndProc
15722 2006-12-05 Chris Toshok <toshok@ximian.com>
15724 * ToolStripManager.cs, ToolStripButton.cs,
15725 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
15726 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
15727 ToolStripSplitButton.cs, ToolStripSeparator.cs,
15728 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
15729 ToolStripProgressBar.cs, ToolStripContainer.cs,
15730 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
15731 to using System.ComponentModel.EventHandlerList.
15733 2006-12-04 Chris Toshok <toshok@ximian.com>
15735 * LinkLabel.cs: fix up compiler warnings.
15737 * TableLayoutSettings.cs: same.
15739 * TreeView.cs: same.
15741 * ToolBar.cs: same.
15743 * TabControl.cs: same.
15745 * RichTextBox.cs: same.
15747 * ListViewItem.cs: same.
15749 * PropertyGrid.cs: same.
15751 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
15755 * TextRenderer.cs: fix up compiler warnings.
15759 * Form.cs: corcompare fixes.
15761 * PictureBox.cs: fix up compiler warnings.
15763 * ImageListStreamer.cs: same.
15765 * TrackBar.cs: corcompare fix.
15767 * Control.cs: fix up compiler warnings.
15769 * SplitterPanel.cs: same.
15771 * NumericTextBox.cs: same.
15773 * ImageList.cs: same.
15775 * StatusStrip.cs: same.
15777 * ProgressBar.cs: corcompare fix.
15779 * ToolStripButton.cs: fix up compiler warnings.
15781 * ToolStripStatusLabel.cs: same.
15783 * ToolStripSplitButton.cs: same.
15785 * ToolStripSeparator.cs: same.
15787 * ToolStripProgressBar.cs: same.
15789 * ToolStripDropDownMenu.cs: same
15791 * ToolStripDropDown.cs: same.
15793 * ToolStripDropDownButton.cs: same.
15795 * ToolStrip.cs: same.
15797 * ToolStripControlHost.cs: same.
15799 * ToolStripContentPanel.cs: same.
15801 * ToolStripDropDown.cs: same.
15803 * ToolStripContainer.cs: same.
15805 * ToolStripPanel.cs: same, and add "new" where we need it to work
15806 with the new ArrangedElementCollection.
15808 * ToolStripItemCollection.cs: add "new" where we need it to work
15809 with the new ArrangedElementCollection.
15811 2006-12-04 Andreia Gaita <avidigal@novell.com>
15813 * TabControl.cs: Fix default tab selection to after TabControl
15814 gets focus and not before. Fixes #80128
15816 2006-12-04 Chris Toshok <toshok@ximian.com>
15818 * DataGridTableStyle.cs: remove the gross calling of
15819 datagrid.Refresh from here. It's a broken idea and it doesn't
15822 * DataGrid.cs: instead, just register/unregister from the
15823 DataGridTableStyle events in CurrentTableStyle. we play it
15824 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
15825 even though some would most likely not require it. Fixes bug
15826 #80115 (and one portion of #80117 as a side effect).
15828 2006-12-04 Chris Toshok <toshok@ximian.com>
15830 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
15831 so the textbox (if any) goes away. Fixes bug #80117.
15833 2006-12-04 Chris Toshok <toshok@ximian.com>
15835 * DataGridColumnStyle.cs: set the column's readonly property
15836 initially based on the property descriptor's IsReadOnly. Fixes
15839 2006-12-04 Chris Toshok <toshok@ximian.com>
15841 * ComboBox.cs: wrap the dropdown style changing work in
15842 SuspendLayout/ResumeLayout. Fixes bug #79968.
15844 2006-12-04 Jackson Harper <jackson@ximian.com>
15846 * TextBoxBase.cs: Fix off by one, since these are one-based.
15847 * TextBox.cs: Select all the text when we get focus. The TextBox
15848 does this but the RTB does not.
15850 2006-12-04 Chris Toshok <toshok@ximian.com>
15852 * DataGridTextBoxColumn.cs: remove some spew.
15854 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
15855 but some part of me is saying "it shouldn't be here.." At any
15856 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
15859 2006-12-04 Chris Toshok <toshok@ximian.com>
15861 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
15862 to reassign the propertydescriptor.
15864 2006-12-04 Jackson Harper <jackson@ximian.com>
15867 * TextControl.cs: Remove some unused variables. Maybe this will
15868 patch things up between mike and I.
15869 - don't split lines less then one char wide, if the viewport is
15870 that small text won't be visible anyways.
15872 2006-12-04 Jackson Harper <jackson@ximian.com>
15874 * TextBoxBase.cs: Default selection length is -1, need to do some
15875 more testing on windows to see when this is used for the property.
15876 - Redid the Lines [] property to that we properly remove soft line
15878 - added support for preserving carriage returns
15879 - CanUndo is not a variable like 'is undo enabled' it just returns
15880 true if there is undo operations available.
15881 - AppendText doesn't need to grab the last tag itself anymore,
15882 this happens automatically when we move the cursor.
15883 * TextControl.cs: Add CompoundActions to the undo class. This
15884 allows combining the other operations into one big option. ie a
15885 paste will combine { delete old, insert new, move cursor }
15886 - Add InsertString undo operation
15887 - New method for deleting multiline text
15888 - Add carriage returns to lines. So we can preserve carriage
15889 returns when text is 'roundtripped'
15891 2006-12-04 Chris Toshok <toshok@ximian.com>
15893 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
15894 minimum 0. Fixes the scrollbar exception in bug #80136.
15896 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
15899 * MdiWindowManager: Removed unused fields and methods.
15901 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
15903 * StatusBar.cs: Update all panels when a AutoSize=Contents
15904 panel needs updating.
15906 * StatusBarPanel.cs: Remove twidth and only use initialize.
15909 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
15911 * Form.cs: When a form's MdiParent is set add it directly
15912 on top of the z-order in stead of relying on MdiClient's
15913 ActivateChild to do it. Fixes #80135.
15916 - Remove original_order, mdi_child_list is already doing
15918 - Create mdi_child_list on construction in
15919 stead of first use (avoids a few null checks).
15921 * MenuItem.cs: Use an already existing list of mdi children
15922 to get the correct order of children and remove the other
15925 2006-12-04 Chris Toshok <toshok@ximian.com>
15927 * PropertyGridView.cs: cached_splitter_location is only used in
15928 !DOUBLEBUFFER code.
15930 * PropertyGrid.cs: implement the ComComponentNameChanged event
15931 using Events, hoping that would fix the warning. Looks like a
15932 compiler bug instead (#80144).
15934 * PropertyManager.cs: remove unused method.
15936 2006-11-04 Everaldo Canuto <everaldo@simios.org>
15938 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
15939 include parentesis to fix expression evaluation. Fixes #79634.
15941 2006-11-02 Everaldo Canuto <everaldo@simios.org>
15944 - Changes to fix behavior in Menu control, some reported in #80097
15945 and other detected during behavior refactory like a select event
15947 - Remove unneded "if's" conditions.
15948 - Created an internal to flag when popup is active in control, we need
15949 it because in .NET you can have menu active but without popup active
15950 when you active menu using popup without visible items.
15951 - Mimic win32 behavior for Select and Popup events.
15952 - Dont open popup menu when you dont have visible subitems.
15953 - Do nothing when click on disabled menu item.
15954 - Some small changes to follow the coding style guidelines.
15955 - Unselect menu only when another control gives focus. Fixes #80097.
15956 - Remove unused code.
15958 * MenuItem.cs: internal VisibleItems method to check if menu
15959 theres visible subitems, it will be usefull to fix some
15960 behavior in Menu control.
15962 2006-11-01 Everaldo Canuto <everaldo@simios.org>
15964 * Timer.cs: Tag property for 2.0 profile.
15966 2006-12-01 Chris Toshok <toshok@ximian.com>
15968 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
15970 * Win32DnD.cs: comment out some unused fields.
15972 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
15973 some unused properties/methods.
15975 * XplatUIX11.cs: fix MousePosition so we override the base class's
15976 property instead of conflicting with it.
15978 * PictureBox.cs: comment out some unused fields
15980 * OSXStructs.cs: make some struct fields public.
15982 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
15983 MousePosition so we override the base class's property instead of
15984 conflicting with it.
15986 * X11Dnd.cs: comment out some unused fields
15988 * X11DesktopColors.cs: fix some struct field visibility to quiet
15991 * X11Dnd.cs: remove some debug code.
15993 * ThemeClearlooks.cs: comment out unused field.
15995 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
15997 * ThemeGtk.cs: comment out some unused pinvokes.
15999 * Timer.cs: remove some unused fields.
16001 * ThemeClearlooks.cs: comment out unused field.
16003 * UpDownBase.cs: comment out unused field.
16005 * DataObject.cs: comment out unused field.
16007 * DataGridBoolColumn.cs: reomve unused field.
16009 * DataGrid.cs: remove unused field.
16011 * Cursor.cs: remove old ToBitmap code.
16013 * ControlPaint.cs: remove unused method.
16015 * ScrollBar.cs: remove unused fields.
16017 * ComboBox.cs: remove unused field, and chain up to
16018 AccessibleObject ctor.
16020 * ListBox.cs: remove unused field.
16022 * ButtonBase.cs: wrap a couple fields in NET_2_0.
16024 * GridEntry.cs: remove unused fields.
16026 * Binding.cs: remove unused fields.
16028 * AxHost.cs: remove unused method.
16030 * ContainerControl.cs: remove unused field.
16032 * ScrollableControl.cs: remove unused fields.
16034 2006-12-01 Chris Toshok <toshok@ximian.com>
16036 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
16037 the Where/WhereString stuff. it's easy enough to CWL
16038 Environment.StackTrace.
16040 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
16041 unused private fields.
16043 2006-12-01 Jackson Harper <jackson@ximian.com>
16045 * TextControl.cs: Do not update the view while inserting multiline
16046 text. If we update the view we might wrap lines, before entering
16047 the new lines, which causes the new line insertion calculations to
16048 be totally fubared.
16049 - Remove an old TODO
16050 - Make debug output a little nicer
16052 2006-12-01 Chris Toshok <toshok@ximian.com>
16054 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
16056 2006-12-01 Chris Toshok <toshok@ximian.com>
16058 [ fix the majority of the CS0108 warnings we've been suppressing ]
16060 * TreeView.cs: mark BackgroundImageChanged as 'new'.
16062 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
16063 to "LayoutToolBar" to quiet mcs.
16065 * TabControl.cs: mark our ControlCollection class as 'new'.
16067 * TextBoxBase.cs: mark some events as 'new'.
16069 * Splitter.cs: TabStop is 'new'.
16071 * ControlBindingsCollection.cs: mark a few methods as new since
16072 they change the visibility from protected to public.
16074 * RadioButton.cs: DoubleClick -> base class, and remove unused
16077 * MonthCalendar.cs: ImeMode property -> base class, and mark many
16080 * NumericUpDown.cs: TextChanged -> base class.
16082 * CheckedListBox.cs: mark our ObjectCollection class as new to
16085 * FolderBrowserDialog.cs: make HelpRequest event new and have it
16086 muck with the base class.
16088 * StatusBar.cs: fix some mcs warnings about Update being the same
16089 name as a base class method.
16091 * RichTextBox.cs: mark some events as new, and make them do things
16092 to the base class impl.
16094 * UserControl.cs: mark TextChanged as new, and have it manipulate
16097 * UpDownBase.cs: mark some things new.
16099 * CheckBox.cs: mark DoubleClick "new", and add some text about
16100 what we need to look at.
16102 * Panel.cs: make the events "new", and manipulate the base
16103 version. these are just here for attributes.
16105 * AccessibleObject.cs: make owner private.
16107 * Control.cs: deal with AccessibleObject.owner being private.
16108 cache our own copy if we need it.
16110 * Button.cs: add "new" to the DoubleClickEvent.
16112 * ListBox.cs: no need to track our own has_focus here. let
16113 Control.has_focus do it for us. Also some other work to clear up
16114 warnings about not overriding base class methods of the same name.
16116 * ComboBox.cs: clear up some warnings about not override base
16117 class methods of the same name.
16119 2006-12-01 Chris Toshok <toshok@ximian.com>
16121 * Form.cs: flag a few things as "new" to quiet some of the mcs
16126 * PrintPreviewDialog.cs: same.
16128 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
16129 now DGV isn't so horrible on the class status page. also, move
16130 all events to using System.ComponentModel.EventHandlerList. my
16133 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
16135 * MdiWindowManager.cs:
16136 - Set form to active mdi child if shown,
16137 and update the active mdi child to the next
16138 remaining child in the z-order if the form is hidden.
16141 - Track if the form has been visible and if its
16142 visibility is beeing changed, so that the MdiClient
16143 can properly decide the ActiveMdiChild. The MdiClient
16144 cannot track this since the form can change visibility
16145 before MdiClient is created.
16148 - Don't activate anything of the parent form is changing
16150 - Rework ActiveMdiChild to only return visible mdi
16151 children and take into account several other corner
16154 2006-12-01 Chris Toshok <toshok@ximian.com>
16156 * IBindableComponent.cs: new 2.0 interface.
16158 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
16160 * DataGrid.cs: Font for caption area is bold by default.
16162 2006-12-01 Everaldo Canuto <everaldo@simios.org>
16164 * Menu.cs: Tag property for 2.0.
16166 2006-11-01 Everaldo Canuto <everaldo@simios.org>
16168 * ThemeWin32Classic.cs: Adjust menu separator drawing.
16170 2006-12-01 Chris Toshok <toshok@ximian.com>
16172 * TreeView.cs: doh, the Begin* events should be
16173 TreeViewCancelEventHandler.
16175 2006-12-01 Chris Toshok <toshok@ximian.com>
16177 * Form.cs: Form.ControlCollection already stores off the
16178 form_owner field. don't access the base class's internal "owner"
16181 * Control.cs: make all the fields in Control.ControlCollection
16182 private. there's no need for any internal fields here.
16184 2006-12-01 Chris Toshok <toshok@ximian.com>
16186 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
16187 OnHandleCreated. Fixes bug #80109.
16189 2006-12-01 Chris Toshok <toshok@ximian.com>
16191 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
16192 SplitContainer.cs, Control.cs, StatusStrip.cs,
16193 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
16194 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
16195 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
16196 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
16197 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
16198 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
16199 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
16200 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
16201 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
16202 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
16204 do most of the work to convert our code over to use
16205 System.ComponentModel.Component.Events for
16206 adding/removing/dispatching events.
16209 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16211 * DataGridView.cs: Fix an ArgumentNullException reported
16212 twice today in IRC.
16214 2006-11-30 Mike Kestner <mkestner@novell.com>
16216 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
16217 grabbed listbox. Fixes #80036 and #80101.
16219 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16221 * Message.cs: Changed ToString() to match MS.
16223 2006-11-30 Jackson Harper <jackson@ximian.com>
16225 * TextBoxBase.cs: You can still change the selected text on a read
16227 * TextControl.cs: Lower magic number for wrap calculations. This
16228 lets text get closer to the right (far) edge.
16230 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16232 * Control.cs: Tweak 2.0 layout properties.
16233 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
16234 * TextRenderer.cs: Add a new overload.
16235 * ToolStrip*: Huge amount of changes and new features.
16237 2006-11-30 Mike Kestner <mkestner@novell.com>
16239 * ComboBox.cs: fixes for LargeChange and Maximum to get the
16240 scroll range correct. Fixes #79994.
16242 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16244 * MdiWindowManager.cs: Update main form's text when
16245 a form is closed. (fixes #80038)
16247 2006-11-30 Everaldo Canuto <everaldo@simios.org>
16250 - Fix an regression in ButtonSize.
16251 - Get ImeMode default value change to "Disable".
16252 - Get ShowTooltips default value change to true, default value is
16253 "false" but after make a test in .NET we get "true" result as default.
16255 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
16257 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
16259 2006-11-29 Chris Toshok <toshok@ximian.com>
16261 * XplatUIWin32.cs (GetWindowTransparency): check return value of
16262 GetLayeredWindowAttributes. if it's 0, return 1.0, as
16263 SetWindowTransparency hasn't been called.
16265 2006-11-29 Chris Toshok <toshok@ximian.com>
16267 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
16269 (set_AllowTransparency): reorder things a little so that the
16270 WS_EX_LAYERED style is removed properly.
16272 2006-11-29 Chris Toshok <toshok@ximian.com>
16274 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
16276 * Form.cs: only call the XplatUI transparency method (get/set) if
16277 SupportsTransparency says it's supported. Otherwise fallback to
16278 doing nothing (in the set case) or returning the instance field we
16279 cache (in the get case).
16281 * XplatUIStructs.cs: add TransparencySupport flag enum.
16283 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
16284 change to SupportsTransparency.
16286 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
16287 TransparencySupport.None from SupportsTransparency.
16289 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
16290 TransparencySupport.Set from SupportsTransparency.
16292 * XplatUIWin32.cs: implement GetWindowTransparency calling
16293 GetLayeredWindowAttributes, and implement SupportsTransparency by
16294 checking whether or not both
16295 GetWindowTransparency/SetWindowTransparency are available
16296 entrypoints. We need to do this since SetWindowTransparency is
16297 available as of win2k, but GetWindowTransparency requires winxp.
16300 * XplatUI.cs: Add GetWindowTransparency, and change
16301 SupportsTransparency to allow for either/both Get/Set.
16303 2006-11-29 Chris Toshok <toshok@ximian.com>
16305 * DataGrid.cs: keep from going into an infinite loop redrawing a
16306 datagrid that has no datasource. Fixes bug #80033.
16308 2006-11-29 Chris Toshok <toshok@ximian.com>
16310 * MenuItem.cs: fix the NRE when we assign text (and therefore call
16311 Invalidate) before the mainmenu has been assigned to a control.
16313 2006-11-29 Chris Toshok <toshok@ximian.com>
16315 * DataGrid.cs: detect when we should be double the double click
16316 row/column autosize stuff, although that codepath has yet to be
16317 written. part of the work for bug #79891.
16319 2006-11-29 Chris Toshok <toshok@ximian.com>
16321 * Binding.cs (SetControl): fix unit test.
16323 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16325 * PageSetupDialog.cs: Validate the margins and set them in
16327 * NumericTextBox.cs: New class to mimic the behavior of the
16328 textboxes used in the printing dialogs.
16330 2006-11-29 Andreia Gaita <avidigal@novell.com>
16332 * Form.cs: Revert previous change (remove call UpdateBounds
16333 from form constructor), because it messes with the handle creation
16334 order, and that one needs lots and lots of love.
16335 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
16336 for valid printer and throw InvalidPrinterException if document
16337 is set but printer not valid), adding a MonoTODO. Once
16338 handle creation is done properly, we can put this back in.
16340 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16342 * MenuItem.cs: Create a invalidate method for menu item, to be
16343 calling from set text, it make text changes to imadiate update
16344 on screen. Fixes #80013.
16346 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16348 * ToolBar.cs: Fixes and simplify toolbar button layout, it
16349 fixes bug #80070 and some other problem on toolbar buttons
16352 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16354 * ThemeWin32Classic.cs: Paint toolbar toggle button background
16355 with dotted brush. Fixes #79564
16357 2006-11-28 Andreia Gaita <avidigal@novell.com>
16359 * Form.cs: Removed call to UpdateBounds on Form
16360 constructor, it was causing a call to CreateHandle
16361 before it was supposed to.
16362 * PrintControllerWithStatusDialog: Applied patch
16363 by Chris Toshok to hide controller when there are
16364 no printers available.
16365 PrintDialog.cs: initialize printer settings to
16366 null - correct DefaultValues test #5
16367 * PrintPreviewControl.cs: Move PrintController
16368 initialization to GeneratePreview
16369 * PrintPreviewDialog.cs:
16370 - Remove Preview generation from Document_set(). It is
16372 - Throw InvalidPrinterException on CreateHandle if
16373 a Document is set but there are no printers or
16374 printer is not valid.
16375 * ThemeWin32Classic: don't paint PrintPreviewControl
16376 if there is nothing to paint
16378 2006-11-28 Miguel de Icaza <miguel@novell.com>
16380 * Form.cs: Add another popular method.
16382 * TabPage.cs: ditto.
16384 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16386 * MenuItem.cs: Fixed a warning.
16387 * InternalWindowManager: Fixed a warning.
16389 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16392 - When cloning a menu also clone MdiList and clone the
16393 window menu items properly (as the forms and menuitems
16394 are kept in an internal hashtable, these need updating
16396 - Rewrote the window menu code, menu items are added in the
16397 order the forms were added to their parent, and they are
16398 updated every time the window menu is shown (before the
16399 list was only generated once, in the current order of the
16400 forms, and would never be updated). A checkmark is shown
16401 next to the item corresponding to the active mdi child.
16403 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16405 * XplatUIStructs.cs:
16406 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
16409 - Added TME_NONCLIENT to TMEFlags.
16410 - Handles WM_NCMOUSEMOVE in GetMessage to
16411 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
16413 * MdiWindowManager:
16414 - Now merges mdi child menu to parent menu when maximized.
16415 - Recalculate NC areas of both mdi child and mdi parent.
16417 on window state and size changes.Fixes #79844 (3).
16418 - Handle WM_NCCALCSIZE to properly calculate borders.
16421 - Add/remove to the mdi containers list of mdi children
16422 in the order they are added.
16423 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
16424 to the maximized mdi child.
16426 * InternalWindowManager.cs:
16427 - Only execute a click on the control buttons on the mouse up,
16428 not on the mouse down. Show the state of the button
16429 (was only showing Normal state, never Pressed state). The
16430 pressed button now follows the mouse (if you click the Close
16431 button and move the mouse over the Maximize button, the
16432 Maximize button will be shown as pressed). Since Win32 does
16433 not generate WM_NCLBUTTONUP if you release the button outside
16434 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
16437 * ThemeWin32Classic.cs:
16438 - Draw a missing border around mdi child forms. Fixes #79844 (2).
16441 - Added a list of forms which contains the order the forms are
16442 added to the mdi parent.
16443 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
16444 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
16445 - If the active form changes set the scrollbars to the top
16446 of the Z order, otherwise the form could hide them.
16447 - Scrollbars are now sized according to ClientSize, not
16448 to Size, and they take into account the other scrollbar
16449 to determine maximum.
16451 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16454 * XplatUIDriver.cs:
16458 - Added RequestAdditionalWM_NCMessages for windows to
16459 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
16460 Currently only implemented in XplatUIWin32.
16462 2006-11-27 Chris Toshok <toshok@ximian.com>
16464 * Hwnd.cs: only add the hwnd to the windows hash in
16465 set_WholeWindow and set_ClientWindow if whole_window/client_window
16466 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
16468 2006-11-27 Mike Kestner <mkestner@novell.com>
16470 * ComboBox.cs: remove redundant OnDropDown call. It is called
16471 from the ComboListBox.ShowWindow code. Fixes #79969.
16473 2006-11-27 Chris Toshok <toshok@ximian.com>
16475 * Hwnd.cs: remove the setters for ExposePending and
16476 NCExposePending - noone uses them.
16478 2006-11-27 Jackson Harper <jackson@ximian.com>
16480 * TextControl.cs: new param for ReplaceSelection which determines
16481 whether we select the new selection, or set the cursor to the end
16482 of the new selection.
16483 * TextBoxBase.cs: Use new param for ReplaceSelection. When
16484 pasting, select the new text.
16485 * RichTextBox.cs: Use new param for ReplaceSelection.
16487 2006-11-27 Jackson Harper <jackson@ximian.com>
16489 * TextBoxBase.cs: Set the selection to the caret after the caret
16490 is moved, otherwise they get out of sync.
16492 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16494 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
16497 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16499 * ThemeWin32Classic.cs:
16500 - Fix toolbar drop down arrow position.
16501 - Fix drop down appearance when ToolBar.Appearance is normal,
16504 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
16506 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
16507 * Control.cs: Same.
16508 * UpDownBase.cs: Same.
16509 * ButtonBase.cs: Same.
16510 * ScrollBar.cs: Same.
16511 * TrackBar.cs: Same.
16512 * PictureBox.cs: Same.
16513 * UserControl.cs: Same.
16515 * ListControl.cs: Same.
16516 * TextBoxBase.cs: Same.
16517 * ListView.cs: Same.
16518 * RichTextBox.cs: Same.
16519 * TreeView.cs: Same.
16521 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
16524 - Text label for where
16525 - Text label comment was not shown
16527 2006-11-23 Everaldo Canuto <everaldo@simios.org>
16529 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
16531 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16533 * InternalWindowManager.cs:
16534 - Handle WM_PARENTNOTIFY to activate the form
16535 if any child control is clicked.
16536 - The form is only sizable if not minimized.
16538 * MdiWindowManager.cs:
16539 - Save the IconicBounds if the form is moved.
16540 - Rework SetWindowState, now the window bounds
16541 are stored only if the old window state is Normal.
16544 - In SetWindowStates store the old window state if
16545 the window is maximized and restore window state if
16546 the window looses focus.
16547 - Don't handle any scrollbar value changes if
16548 initializing the scroll bars. Fixes #79771.
16549 - Reworked ArrangeIconicWindows. Current algorithm
16550 tests bounds agains all other minimized windows, if
16551 any intersections create new bounds (going left to
16552 right, bottom to top) and then test again. When
16553 successful the bounds are saved and never computed
16554 again. Fixes #79774.
16556 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16558 * InternalWindowManager.cs: Added HandleTitleBarUp.
16560 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16562 * NumericUpDown.cs: In .NET 1.1, user entered text is still
16563 hexadecimal in ParseUserEdit.
16566 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16568 * MdiWindowManager.cs:
16569 - Handle a click on the form's icon to show the
16570 system menu (when maximized). Fixes #79775.
16571 - Change the existing click handler for the form's
16572 icon when not maximized to show on MouseUp.
16575 * Form.cs: In OnResize only layout the mdi child's
16576 parent if it actually has a parent. Might not if
16577 the window is closing.
16580 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16582 * MdiClient.cs: Ignore active MDI client for text of parent, if
16583 child has no text set.
16585 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16587 * ToolBar.cs: Fixed ToString to match MS.
16589 2006-11-22 Andreia Gaita <avidigal@novell.com>
16592 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
16593 update inner values on set. Fixes #79966.
16594 - Override OnLostFocus to update value on NET 2. Fixes #79950.
16595 - Fix hexadecimal parsing.
16597 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
16598 parent. Fixes #79957
16600 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16602 * Control.cs: After calling SetWindowsPos in SetBoundsCore
16603 the actual size has to be queried, since if height /
16604 width is negative Win32 changes it to 0.
16605 Fixes #79999 on Windows.
16607 * XplatUIX11.cs: Set height / width to 0 if negative
16608 in SetWindowPos. Fixes #79999 on Linux.
16610 2006-11-22 Everaldo Canuto <everaldo@simios.org>
16612 * ThemeWin32Classic.cs: Fix text redenring when button is
16615 2006-11-22 Everaldo Canuto <everaldo@simios.org>
16617 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
16618 and later navigate by mouse. Fixes #79528.
16620 2006-11-21 Everaldo Canuto <everaldo@simios.org>
16622 * ToolBar.cs: Set default value for TabStop to false in
16623 constructor, it fixes remaining behavior of bug #79863.
16625 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
16627 * MdiWindowManager.cs:
16628 * InternalWindowManager.cs:
16629 - Moved a few methods specific to Mdi from
16630 InternalWindowManager to MdiWindowManager.
16633 2006-11-21 Chris Toshok <toshok@ximian.com>
16635 * XplatUIOSX.cs: stub out InvalidateNC.
16637 * XplatUIWin32.cs: implement InvalidateNC using the call I found
16638 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
16640 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
16642 * XplatUIDriver.cs: add InvalidateNC abstract method.
16644 * XplatUI.cs: add InvalidateNC.
16646 2006-11-21 Everaldo Canuto <everaldo@simios.org>
16648 * ToolBar.cs: Invalidate complete button area when pressed status
16650 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
16651 * ThemeWin32Classic.cs: Increase vertical and horizontal position
16652 by 1 when button is pressed.
16654 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16656 * ToolButton.cs: Invalidate middle of DropDown button when
16657 ToolBar theres DropDownArrows.
16658 * ThemeWin32Classic.cs: Change position of DropDown arrow and
16659 fix DropDown drawing operations.
16661 2006-11-20 Chris Toshok <toshok@ximian.com>
16663 * NativeWindow.cs: fix the formatting of functions ('{' on the
16664 following line), and enable the thread exception dialog.
16666 * Application.cs: remove the duplicate exception catching from
16669 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16671 * Toolbar.cs: Triggers button click event when click on icon
16672 of dropdown ToolBarButton. Fixes #79912.
16674 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16677 * ThemeWin32Classic.cs:
16678 - Added a property WindowBorderFont to enable themeing
16679 of mdi child windows' Text.
16681 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16683 * InternalWindowManager.cs:
16686 * MdiWindowManager.cs:
16687 - If mdi child is maximized, set mdi parent's
16688 text to "Parent - [Child]". Fixes #79770.
16689 - If there is any maximized mdi child windows, only the active
16690 window (and any new windows) is maximized, the rest are normal.
16691 - On a WindowState change only save mdi child's window bounds
16692 if the old window state was normal. Fixes #79774.
16693 - The scroll bars are now calculated on hopefully all
16694 necessary events. Fixed #79771 / #79844->6 / #79906.
16695 - MdiClient.SizeScrollBars() now takes into account docked
16696 controls in the parent when calculating available space.
16697 - InternalWindowManager now always repaints the entire title
16698 area. Fixes #79844->1/4/5.
16699 - Added RequestNCRecalc on mdi child windowstate changes.
16702 2006-11-20 Mike Kestner <mkestner@novell.com>
16704 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
16705 in the MouseUp handler of the listbox and move the return handling
16706 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
16708 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16710 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
16712 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
16714 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
16715 working in 1.2.x anymore. So, updated.
16717 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
16719 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
16720 NumberGroupSeparator of current culture instead of assuming en-US.
16723 2006-11-17 Mike Kestner <mkestner@novell.com>
16725 * Control.cs: Add the concept of implicit bounds setting so that
16726 dock/undock round trips preserve explicitly set size/locations.
16729 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
16731 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
16732 can't handle those filters. (Fixes bug #79961)
16734 2006-11-17 Chris Toshok <toshok@ximian.com>
16736 [ fixes the exit/crashes associated with #79835. it's clearly
16737 suboptimal though, we need to figure out a better way to solve
16740 * PrintPreviewControl.cs: deal with the new invalid printer
16743 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
16744 and return false (so CommonDialog.ShowDialog doesn't actually show
16747 * PrintDialog.cs: enable/disable the Ok button depending on
16748 whether or not the printer is valid.
16750 * CommonDialog.cs (ShowDialog): only actually show the form if
16751 RunDialog returns true.
16753 2006-11-17 Jackson Harper <jackson@ximian.com>
16755 * TextControl.cs: When soft splitting a line, mark it as a soft
16756 split line. Also carry over the current line break to the next
16759 2006-11-17 Chris Toshok <toshok@ximian.com>
16761 * XplatUIX11.cs: when scrolling a window with an invalid area, we
16762 only want to shift the part of the invalid area that overlaps the
16763 area we're scrolling. we also don't want to clear the invalid
16764 area unless the invalid area was entirely contained within the
16767 2006-11-16 Chris Toshok <toshok@ximian.com>
16769 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
16770 also make sure to free the memory returned by XGetWindowProperty
16773 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
16775 2006-11-16 Chris Toshok <toshok@ximian.com>
16777 * XplatUI.cs: add a new super secret way to get at the totally
16778 unsupported X11 backend.
16780 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
16782 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
16784 2006-11-16 Jackson Harper <jackson@ximian.com>
16786 * TreeView.cs: Allow more explicit setting of top node position
16787 for scrollbars. Slower algo, but more accurate.
16788 - CollapseAll should maintain the current top node.
16789 * TextBoxBase.cs: When positioning the caret, use the line, pos
16790 method, since the x, y method does not grab the correct tag, and
16791 the caret height never gets set correctly. (Maybe I should just do
16792 away with the caret having its own height, and always use the
16793 carets current tag for height).
16795 2006-11-16 Jonathan Pobst <monkey@jpobst.com
16797 [Fixes 79778, 79923]
16799 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
16800 Parent to the FosterParent instead.
16802 2006-11-16 Jackson Harper <jackson@ximian.com>
16804 * TreeView.cs: Need to recalc the topnode when we expand or
16805 collapse. The scrolling methods can't handle this on their own,
16806 since they use differences between the last scroll position, and
16807 those difference get completely messed up since we are expanding
16808 nodes. This problem should probably be fixed in the scrolling
16809 methods, so they can figure out exactly where they are, but this
16810 will slow things down a little.
16811 * ThemeWin32Classic.cs: Special case for groupboxes with empty
16812 strings, makes nunit-gui look a lot nicer.
16814 2006-11-16 Chris Toshok <toshok@ximian.com>
16816 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
16817 the broken multithreaded event handling we have in here. File
16818 this entry under "Why we should move to the new X11 backend".
16820 Any thread can make it into UpdateMessageQueue, which gets events
16821 from the X socket - some of which could belong to hwnds being
16822 managed by a different thread. We can also have multiple threads
16823 in UpdateMessageQueue at the same time, with each one reading from
16824 the X socket. This leads to many problems, with the following
16827 We can't use hwnd.Queue.Enqueue anywhere in here and must use
16830 The MotionNotify compression we do can't work across threads
16831 (without locking the entire queue, perhaps) since we call
16832 hwnd.Queue.Peek, so we just punt and don't compress motion events
16833 unless the owning thread is the one which got the X event.
16835 ConfigureNotify is another fun one, since it modifies the hwnd's
16836 bounds and then enqueues the event. We add a lock to Hwnd which
16837 is held when setting configure_pending to true (and enqueuing the
16840 There is a race wrt the wake socket. we need to make sure that
16841 only 1 thread is waiting on that socket, or else a thread could
16842 sleep waiting for data that never comes. It's difficult (but not
16843 impossible) to make happen, because it seems to require something
16844 like the following:
16846 1. Thread 1 polls on wake_receive
16848 2. poll returns saying there's data to be read on
16851 3. Thread 2 polls on wake_receive and immediately returns
16852 saying there's data to be read.
16854 4. Thread 2 reads the wakeup byte from wake_receive
16856 5. Thread 1 attempts to read the wakeup byte from
16859 6. Thread 2 exits (due to a form closing, perhaps).
16861 7. Thread 1 blocks forever.
16865 Fixing the Expose handling isn't done yet, and the races inherent
16866 in that piece of code are responsible for the drawing mistakes you
16867 see when generating expose events in a MT app (like NPlot). This
16868 one is the likely to be the hardest to bandaid, and it doesn't
16869 appear to cause anything but drawing problems. The other issues
16870 caused apps to exit or hang.
16872 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
16873 called from a different thread than the one that should be calling
16876 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
16878 2006-11-15 Chris Toshok <toshok@ximian.com>
16880 * Application.cs: null out the context's MainForm when we exit
16881 RunLoop. Fixes a newly checked in unit test as well as the last
16882 ODE from bug #79933.
16884 2006-11-15 Chris Toshok <toshok@ximian.com>
16886 * Form.cs (set_Owner): allow a null value so we can clear the
16888 (Dispose): set all our owned_form's Owner properties to null, and
16889 clear the owned_forms collection.
16890 (WM_CLOSE): clean up this a little bit.. still not right though.
16892 * ApplicationContext.cs: OnMainFormClosed should only call
16893 ExitThreadCore if the main form isn't recreating. Fixes unit
16896 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
16900 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
16902 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
16906 * Hwnd.cs: Add a flag to show a window, but not activate it, to
16907 keep popup window types from stealing focus from the main form
16910 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
16912 * MenuAPI.cs: Set above flag to true.
16914 2006-11-15 Chris Toshok <toshok@ximian.com>
16916 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
16917 the button being released is not in wParam.
16919 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
16921 * Form.cs: Add the released button to MouseEventArgs.Button
16922 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
16925 2006-11-15 Chris Toshok <toshok@ximian.com>
16927 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
16928 GetText(). untested because it's unused in our implementation.
16929 Control.Text always caches the text, even if
16930 ControlStyles.CacheText is not set.
16934 2006-11-15 Chris Toshok <toshok@ximian.com>
16938 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
16939 message. no hiding, no disposing.
16941 in the WM_CLOSE handler, hide the form if it's modal.
16943 2006-11-15 Chris Toshok <toshok@ximian.com>
16945 * XplatUIX11.cs: use AddExpose instead of sending a message.
16946 fixes textbox border drawing.
16948 2006-11-15 Chris Toshok <toshok@ximian.com>
16950 * PropertyGridView.cs: keep from crashing on mouse move/down when
16951 the property grid is empty.
16953 2006-11-14 Jackson Harper <jackson@ximian.com>
16955 * TextControl.cs: Make PageUp and PageDown more like the MS
16957 * TextBoxBase.cs: When we set the text property position the
16958 cursor at the beginning of the document.
16960 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
16962 * Form.cs: if a mdi child's WindowState has changed
16963 before it's creation, it would display wrong control
16966 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
16968 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
16971 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
16973 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
16974 the window gets to paint its borders even if the window is
16977 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
16978 otherwise the old control buttons would still be painted
16979 if the window gets bigger.
16981 * PaintEventArgs.cs: add an internal method so that the clip
16982 rectangle can be changed.
16984 2006-11-13 Chris Toshok <toshok@ximian.com>
16986 [ fixes bug #79745 ]
16988 * NotifyIcon.cs: lots of cleanup.
16990 * X11Structs.cs: add an enum for XEMBED messages.
16992 * XplatUIX11.cs: reindent one of the giant switch statements, it
16993 was taking up an additional tab stop, and this file is already way
16994 too wide for my laptop's screen.
16996 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
16997 we get it, resize the hwnd to the WMNormalHints max_width/height.
16999 2006-11-13 Jackson Harper <jackson@ximian.com>
17001 * TextBoxBase.cs: Compute the value changes for the mouse wheel
17004 2006-11-13 Chris Toshok <toshok@ximian.com>
17006 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
17007 #79898. force a reference to the Region to stick around so the
17008 unmanaged object isn't collected (rendering our handle in the MSG
17011 2006-11-13 Chris Toshok <toshok@ximian.com>
17013 * XplatUIX11.cs: fix #79917 for window managers which support
17015 using XStoreName on the raw utf8, and we need to convert to
17016 COMPOUND_TEXT if it's non-latin1.
17018 2006-11-13 Chris Toshok <toshok@ximian.com>
17020 * Form.cs (set_DialogResult): we need to set closing to false if
17021 we're setting our result to None. fixes bug #79908.
17023 2006-11-13 Jackson Harper <jackson@ximian.com>
17025 * TextControl.cs: When formatting text, compute the adjusted tag
17026 lengths correctly, using FindTag for the end tag instead of trying
17027 to figure it out outselves.
17028 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
17029 the item, ItemHeight doesn't work, because trees with large
17030 imagelists use those for their height
17031 * TreeView.cs: ActualItemHeight factors in the image height
17032 - compute left edge of checkboxes correctly
17033 - when expanding/collapsing move the bottom down one pixel, so we
17034 aren't moving part of the node
17036 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17038 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
17039 stack in PaintEventStart so that it won't get disposed by the gc
17040 before reaching PaintEventEnd.
17042 2006-11-13 Jackson Harper <jackson@ximian.com>
17044 * TextBoxBase.cs: Don't select the word if we are on a line with
17046 - We don't need to position the caret on mouse up, since the mouse
17047 move handler should be doing this
17048 - When double clicking a blank line, the caret is advanced to the
17051 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
17053 * TreeNodeCollection.cs: Avoid duplicating indexer code.
17055 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
17057 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
17058 Fixes part of bug #79910.
17060 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
17062 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
17063 (bug #79903). Some minor string updates to match ms.
17065 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17067 * FileDialog.cs: Don't add an extension if the filename
17068 already ends with that extension.
17070 2006-11-10 Jackson Harper <jackson@ximian.com>
17072 * TreeView.cs: Use the currently highlighted node for the
17073 BeforeSelect event.
17074 * TextBoxBase.cs: There is no need to expand selection on
17076 - CanUndo means 'is there any undo operations', not 'is undo
17077 allowed on this textcontrol. Fixed ClearUndo unit test.
17079 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
17081 * Button.cs: only perform click when button is Selectable (so as
17082 not to activate default buttons when they're disabled)
17084 * Control.cs: Rewrite of the SelectNextControl and related
17085 methods. HandleClick now selects next control if the current one
17088 * Form.cs: OnActivated selects next active control only if Load
17089 has already occurred. If Load hasn't run, there's no point in
17090 selecting here, Load might change the state of controls.
17092 * FocusTest.cs: Tests marked as working again for these fixes
17094 2006-11-10 Chris Toshok <toshok@ximian.com>
17096 * XplatUIX11.cs: a couple of fixes.
17098 - use XInternAtoms with almost all the atoms we need to register,
17099 instead of many, many calls to XInternAtom. should help a bit on
17100 startup time, at the expense of making the code look a little
17103 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
17104 isn't reparented (which seems to be a clue that we're running fon
17105 compiz) and they have an Owner form. This fixes the tool windows
17106 in paint.net when running under compiz.
17108 - when setting the opacity of a window, support both the case
17109 where the window has been reparented and also when it hasn't been.
17110 Since compiz/beryl doesn't seem to reparent windows, and these are
17111 the only window managers which support translucency, I'm not sure
17112 why we need the hwnd.reparented case at all.. but leave it in.
17113 now we get translucent windows in paint.net under compiz/beryl.
17115 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17117 * FileDialog.cs: Always return the value for FilterIndex that
17118 was set. Internally convert it to values that make sense.
17120 2006-11-10 Everaldo Canuto <everaldo@simios.org>
17122 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
17124 2006-11-10 Everaldo Canuto <everaldo@simios.org>
17126 * Toolbar.cs: Change default value of DropDownArrows to true, the
17127 signature still using false to make it compatible with MS but the
17128 initial value is true. Fixes #79855.
17130 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17132 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
17133 only available on Linux.
17135 2006-11-09 Everaldo Canuto <everaldo@simios.org>
17137 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
17138 reduce number of calls to redraw method during toolbar creation.
17140 2006-11-09 Mike Kestner <mkestner@novell.com>
17142 * ListView.cs : raise SelectedIndexChanged when an item is selected
17143 programmatically via the Item.Selected property. Gert's nice
17144 ListViewSelectedIndexChanged test fixture now runs clean.
17146 2006-11-09 Mike Kestner <mkestner@novell.com>
17148 * ListView.cs : raise SelectedIndexChanged when a selected item is
17149 removed from the item collection using Remove or RemoveAt.
17151 2006-11-09 Mike Kestner <mkestner@novell.com>
17153 * ListView.cs : raise SelectedIndexChanged once per selected item
17154 for compat with MS. Fixes #79849+.
17156 2006-11-09 Chris Toshok <toshok@ximian.com>
17158 * TabControl.cs: initialize row_count to 0, and set it to 1 when
17159 we need to (if we have any tab pages). Fixes unit test.
17161 2006-11-09 Chris Toshok <toshok@ximian.com>
17163 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
17164 width is 0, not 3. Fixes a unit test.
17166 2006-11-09 Mike Kestner <mkestner@novell.com>
17168 * ListView.cs : use Implicit scrollbars so that focus isn't
17169 stolen from the listview when they are clicked. Fixes #79850.
17171 2006-11-09 Chris Toshok <toshok@ximian.com>
17173 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
17174 have a root item. Fixes #79879.
17176 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
17180 - An ArgumentException is now thrown if a wrong filter
17181 is applied (matches ms). The previous filter doesn't change
17182 anymore if an exception is thrown.
17183 - Changing the FileName property also affects FileNames
17184 * ColorDialog.cs: The length of the CustomColors array is always
17185 16. It doesn't matter if we use a smaller array or null to update
17186 or change the custom colors property.
17187 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
17188 for RootFolder if we get a undefined value.
17190 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17192 * StatusBarPanel.cs:
17193 - Width is set to MinWidth if Width is smaller than
17194 MinWidth. Fixes #79842.
17195 - MinWidth now always overrides Width (MSDN says MinWidth
17196 is set to Width when AutoSize = None, but they do not
17198 - Style has now the the correct default value.
17200 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17203 - The control is completely invalidated on
17204 Got/LostFocus to draw the focus rectangle correctly.
17205 - When AutoSize then height is always 45 (width for
17206 vertical controls).
17208 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
17209 on the mouse when moved and it doesn't move when grabbed
17210 until the mouse moves as well. Also fixed some wrong
17211 calculations when clicking on the thumb (control thought
17212 click was outside of thumb and didn't grab it).
17213 Fixes some of the issues in #79718.
17215 2006-11-08 Everaldo Canuto <everaldo@simios.org>
17217 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
17219 2006-11-08 Chris Toshok <toshok@ximian.com>
17221 * PropertyGridView.cs: only call ToggleValue if the item is not
17224 2006-11-08 Jackson Harper <jackson@ximian.com>
17226 * TextBoxBase.cs: The RichTextBox and textbox have very different
17227 word selection methods. Implement the textbox's simple word
17228 selection here, and let the RichTextBox override and provide it's
17230 - Don't do extra selection on mouseup
17231 * RichTextBox.cs: Use the documents word selection algorithm, I
17232 think ideally, this function will be pulled into the
17233 RichTextBox.cs code someday.
17235 2006-11-08 Chris Toshok <toshok@ximian.com>
17237 * RootGridEntry.cs: new class to represent GridItemType.Root.
17239 * CategoryGridEntry.cs: reformat, and add boilerplate.
17241 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
17242 returns the UI parent anyway, and we need special handling to
17243 implement the GetTarget method in the face of it. Also, implement
17246 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
17247 a root grid item, and use that instead of PropertyGrid.grid_items.
17248 Also, make use of TypeConverters (and add limitted support for
17249 ICustomTypeDescriptors) when initially populating the grid.
17250 Arrays now show up more or less properly.
17252 2006-11-08 Chris Toshok <toshok@ximian.com>
17254 * Application.cs: set the modal dialog to non modal after we close
17255 it. Fixes bug #79866.
17257 2006-11-08 Jackson Harper <jackson@ximian.com>
17259 * TextControl.cs: When combining lines carry over the line end
17260 style from the end line.
17261 - Invalidate the selected area when setting it, if it is visible.
17262 * TextBoxBase.cs: Only rich text box can do full line selects.
17263 - Make sure to set the cursor position when there is a click,
17264 otherwise two clicks in separate areas could cause a large chunk
17267 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17269 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
17272 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17274 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
17275 time. Remove tooltips when ToolButton click events. Fixes #79856.
17277 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17279 * MenuAPI.cs: Ignore right click for menu actions and fixes
17280 menu border when clicked. Fixes #79846.
17282 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17284 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
17285 MouseState after create wParam for message, this fixes mouse button
17286 equal none in mouse up events.
17288 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
17290 * Control.cs : Focus() now calls Select to set the Container's
17291 Active Control and to give it focus. To avoid infinite recursion
17292 (because ActiveControl also calls Focus at one point), a check
17293 is made in Focus with the help of a new internal variable
17296 2006-11-07 Mike Kestner <mkestner@novell.com>
17298 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
17299 if there's a selection. Fixes #79849.
17301 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
17303 * PropertyGrid.cs: Avoid fixed height of help description label.
17304 Fixes part of bug #79829.
17306 2006-11-07 Chris Toshok <toshok@ximian.com>
17308 * XplatUIX11.cs: fix #79790 again, by using the
17309 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
17311 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17313 * ToolBar.cs: Fix left click checking.
17315 2006-11-07 Chris Toshok <toshok@ximian.com>
17317 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
17319 2006-11-07 Chris Toshok <toshok@ximian.com>
17321 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
17322 PropertyManager unit tests.
17324 * PropertyManager.cs: make property_name internal.
17326 2006-11-07 Chris Toshok <toshok@ximian.com>
17328 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
17329 pass a unit test. Also, don't set image_index to anything in
17330 response to setting the ImageList property.
17332 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17334 * ToolBar.cs: Ignore click events when mouse button is not a
17335 left button, only accepts other button for dropdown menus.
17338 2006-11-07 Chris Toshok <toshok@ximian.com>
17340 * DataGrid.cs: make the back and parent row buttons a little less
17343 2006-11-07 Jackson Harper <jackson@ximian.com>
17345 * TextBoxBase.cs: When converting to Text don't put line breaks in
17346 for soft line breaks.
17347 * TextControl.cs: There is an initial "fake" line in the document,
17348 this is now a soft break line, so that an extra line feed doesn't
17349 get added to the end of documents.
17351 2006-11-07 Chris Toshok <toshok@ximian.com>
17355 * CurrencyManager.cs: if the list is readonly, don't bother
17356 checking if IBindingList.AllowNew is true.
17358 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
17359 for non-DataRowView datasources.. or rather, make it not crash.
17360 (DataGridPaintRelationRow): make sure we limit the row painting to
17361 the area not covered by the row header, and make our cell width at
17362 least large enough to cover the relation area. This allows grids
17363 that have relations but no rows to render correctly.
17364 (DataGridPaintRowContents): same type of changes here.
17365 (SetDataSource): move back to always calling
17366 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
17367 navigating back through relations.
17368 (HitTest): handle the case where we have no cells but have
17369 relations. Right now we generate a hit in cell 0 of whatever the
17370 row is, not sure if this is strictly correct, but it works for our
17373 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
17374 bother doing anything.
17376 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
17378 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
17379 early version of StatusStrip. Not responsible for eaten
17380 application or firstborn children.
17382 2006-11-06 Chris Toshok <toshok@ximian.com>
17384 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
17385 call GetTabRect with a -1 index. Fixes #79847.
17387 2006-11-06 Jackson Harper <jackson@ximian.com>
17389 * TreeNodeCollection.cs: Update scrollbars after clearing.
17391 2006-11-06 Chris Toshok <toshok@ximian.com>
17393 * NumericUpDown.cs: fix the ToString method for some unit test
17396 2006-11-06 Chris Toshok <toshok@ximian.com>
17399 - set the initial SelectedGridItem if we can.
17401 - Exclude non-mergable properties only if we're merging > 1
17402 object. Merging 1 object isn't really merging, obviously.
17404 - Handle PropertySort.NoSort just like Alphabetical, which is
17405 wrong of course, but at least gets things on the screen.
17407 * PropertyGridView.cs:
17408 - Add method "FindFirstItem" which finds the first property grid
17409 item, so we can select it by default.
17411 - make use of GridEntry.CanResetValue.
17413 - Don't call RedrawBelowItemOnExpansion here anymore, the
17414 individual GridEntry's will do that.
17416 - Remove the ITypeDescriptorContextImpl internal class.
17419 - this class needs to implement ITypeDescriptorContext, as it's
17420 what MS's PropertyDescriptorGridEntry does, which means we can
17421 remove the ITypeDescriptorContextImpl internal class from
17422 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
17424 - keep a reference to our PropertyGridView, and move the call to
17425 RedrawBelowItemOnExpansion here from PGV. This means
17426 programmaticly setting Expanded actually does something visible.
17428 - add a CanResetValue() function which takes into account our
17429 possibly multiple "selected_objects" in the merged case. Shifting
17430 PropertyGridView to use this method fixes another unreported
17431 crasher found running the test for #79829.
17433 - when Top or Bounds is updated, make sure the PropertyGridTextBox
17434 is updated to reflect this.
17436 * CategoryGridEntry.cs: the ctor takes the PGV now.
17438 2006-11-06 Jackson Harper <jackson@ximian.com>
17440 * TextControl.cs: These are 1 based.
17441 * TextBoxBase.cs: When setting the selected text, don't change the
17442 selected text tags, this is done by ReplaceText, just position the
17443 cursor at the end of the new text.
17445 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17447 * ListView.cs: Allow label edit only when, when LabelEdit is
17450 2006-11-06 Jackson Harper <jackson@ximian.com>
17452 * TextControl.cs: If a suitable wrapping position isn't found,
17453 just wrap right in the middle of a word.
17455 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17457 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
17460 2006-11-06 Jackson Harper <jackson@ximian.com>
17462 * TreeView.cs: Can't use the VisibleCount property when setting
17463 scrollbar heights, because this doesn't take into account whether
17464 or not the horz scrollbar just came visible.
17466 2006-11-05 Everaldo Canuto <everaldo@simios.org>
17468 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
17469 activated. Fixes #79369, #79832.
17471 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
17473 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
17474 had to remove support for links that point to a directory. FileInfo
17475 returns no usefull information (means, the directory they point to)
17476 for such links. Replaced some empty string ("") with String.Empty.
17478 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17480 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
17481 NullReferenceException when attempting to remove node that is not in
17482 collection. Throw NullReferenceException when null is passed to
17483 Remove. Allow first element of the collection to be removed. Fixes
17484 bug #79831. In GetEnumerator ().Current return null if positioned
17485 before the first element of the collection. In GetEnumerator ().Reset,
17486 position before first element of the collection.
17488 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17490 * PropertyGrid.cs: To match MS, remove default title and description
17491 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
17494 2006-11-04 Chris Toshok <toshok@ximian.com>
17496 * Theme.cs: add a Clamp method, just for kicks.
17498 * ThemeWin32Classic.cs: clamp all color components to [0..255].
17500 2006-11-04 Chris Toshok <toshok@ximian.com>
17502 * Form.cs: if the form isn't visible, Close() does nothing.
17504 2006-11-03 Chris Toshok <toshok@ximian.com>
17506 * Form.cs (Close): if the form is modal, don't Dispose of it, only
17508 (WndProc): don't Dispose after handling the WM_CLOSE message.
17510 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
17511 them as such, instead of using casts from Control to Form. Also,
17512 don't Dispose of the modal dialog when we fall out of the loop -
17513 Close() it instead.
17517 2006-11-03 Chris Toshok <toshok@ximian.com>
17519 * Control.cs (Dispose): only go through the dispose thing if we're
17520 @disposing, and we haven't already been disposed. Fixes bug
17523 * Form.cs: no reason to call "base.Dispose()" here instead of
17526 2006-11-03 Mike Kestner <mkestner@novell.com>
17528 * ComboBox.cs : use ToString instead of casts in AddItem for
17529 sorting functionality. Fixes #79812.
17531 2006-11-03 Chris Toshok <toshok@ximian.com>
17533 * Application.cs: pave the way for actually using the thread
17534 exception dialog. it's ifdefed out at the moment.
17536 2006-11-03 Chris Toshok <toshok@ximian.com>
17538 * ThreadExceptionDialog.cs: until we get a better layout, actually
17539 hide the details textbox and label when we shouldn't see them.
17541 2006-11-03 Jackson Harper <jackson@ximian.com>
17543 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
17544 multiline textboxes anymore. This method also determines the
17545 width/height of a textboxes canvas area.
17546 - Sorta a revert of the last patch. For multiline just position
17547 the controls, then bail. This way the scrollbar width won't be
17550 2006-11-03 Everaldo Canuto <everaldo@simios.org>
17552 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
17553 it dont need. Fixes #79537.
17555 2006-11-02 Jackson Harper <jackson@ximian.com>
17557 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
17558 send the status after firing the DndOver event.
17560 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17562 * TrackBar.cs: Now orientation only switches height / width if
17563 the control's handle is created (Win32 does it like this). Also
17564 fixed a typo in ToString() for a test to pass, changed the
17565 exception thrown in set_LargeChange and set_SmallChange to
17566 match Win32 behaviour, and added TrackBar tests to the unit
17569 2006-11-02 Chris Toshok <toshok@ximian.com>
17571 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
17572 not _NET_WM_STATE_NO_TASKBAR.
17574 2006-11-02 Jackson Harper <jackson@ximian.com>
17576 * TextControl.cs: Increment count by one, since in the update view
17579 2006-11-02 Jackson Harper <jackson@ximian.com>
17581 * TextBoxBase.cs: Use client rectangle not bounds for checking if
17582 the mouse is in the client rectangle (duh).
17584 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17586 * TrackBar.cs: Fixed trackbar jumping around when clicking
17587 on it - the trackbar was not detecting correctly at which
17588 side of the thumb the click was done. (fixes #79718)
17590 2006-11-02 Everaldo Canuto <everaldo@simios.org>
17592 * ListBox.cs: scroll visible area when change SelectedIndex to
17593 a non visible area. Fixes #79481.
17595 2006-11-01 Jackson Harper <jackson@ximian.com>
17597 * TextControl.cs: When replacing the selection move the selection
17598 start/end/anchor to the end of the new text.
17600 2006-11-01 Jackson Harper <jackson@ximian.com>
17602 * XplatUIWin32.cs: When setting the parent change the controls
17603 visibility to it's visibility flag, not to it's old parents
17604 visibility (.Visible walks the parent chain).
17606 2006-11-01 Chris Toshok <toshok@ximian.com>
17608 * XplatUIX11.cs: revert the #79790 fix, as the simple.
17609 XSetTransientForHint fix breaks paint .net's tool windows. more
17610 work needed for that one.
17612 2006-11-01 Chris Toshok <toshok@ximian.com>
17614 * ScrollBar.cs: throw ArgumentException instead of Exception in
17615 LargeChange/SmallChange setters. fixes unit tests.
17617 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
17619 * ContainerControl.cs: reverted rev.67183 (which was itself
17620 a reversion of rev.66853... eh).
17622 * Control.cs: Fixes Reflector hang by changing Focus() call
17623 to what it was before rev.66643 (calling Select() here sets
17624 ActiveControl, which in some situations calls back Focus and
17625 eventually does a stack overflow). Temp fix.
17626 Changes to GetNextControl() to not look for children to select when
17627 parent cannot be selectable (so it looks for siblings instead)
17629 2006-10-31 Mike Kestner <mkestner@novell.com>
17631 * CheckedListBox.cs : off by one error in returned index from
17632 ObjectCollection.Add. Fixes #79758.
17634 2006-10-31 Chris Toshok <toshok@ximian.com>
17636 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
17637 calls for the textbox/spinner, to keep from recursing to the point
17638 where we crash. Fixes #79760.
17640 2006-10-31 Chris Toshok <toshok@ximian.com>
17642 * ListControl.cs (set_SelectedValue): don't throw exceptions on
17643 null/"" value, just return. matches ms's behavior and fixes some
17646 2006-10-31 Chris Toshok <toshok@ximian.com>
17648 * Control.cs (set_Capture): make a logic a little easier to
17651 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
17652 if it's being destroyed. A necessary fix surely, but a bandaid
17653 also, to fix the stuck capture problem in bug #78413.
17655 2006-10-31 Chris Toshok <toshok@ximian.com>
17657 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
17658 convention of clearing hwnd.ClientRect when we set the
17659 width/height (so it'll be recalculated by Hwnd).
17661 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
17663 * ContainerControl.cs: reversed Contains check from
17664 ActiveControl due to hanging problems. This fix
17665 partly regresses #79667 (button does not have
17666 initial focus), so this might be a symptom for
17667 a larger parenting problem (set_ActiveControl
17668 is being called but the child control does
17669 not have the parent set yet?)
17671 2006-10-31 Mike Kestner <mkestner@novell.com>
17673 * MenuAPI.cs : fix keynav when menu is click activated.
17675 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
17677 * ToolStrip*: Version 0.2.
17679 * MenuStrip.cs: Version 0.1.
17681 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
17683 2006-10-30 Chris Toshok <toshok@ximian.com>
17685 [ fixes the oversized notify icon issue in bug #79745 ]
17687 * NotifyIcon.cs: scale the icon down to the size we're given by
17688 the XplatUI layer (this would be faster if we did it once instead
17689 of whenever we paint..) Also, remove the WM_NCPAINT handling,
17690 since it's never invoked.
17692 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
17693 pixels high by default, so let's hardcode our systray icon to that
17694 size. The SYSTEM_TRAY protocol should really have a way for
17695 client apps to query for the correct icon size.. but oh well. A
17696 couple of patches to deal with the screwy client_window ==
17697 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
17698 instance, and also make sure we don't XSelectInput twice).
17700 2006-10-30 Chris Toshok <toshok@ximian.com>
17702 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
17703 recreating forms. Control recreation is the bane of my existence.
17704 Fix it in a way that keeps everyone happy.
17706 2006-10-30 Chris Toshok <toshok@ximian.com>
17708 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
17709 just non-CHILD ones. otherwise sometimes scrollbars end up with
17710 client_windows not being resized to the proper size (ReportBuilder
17711 shows this extremely well).
17713 2006-10-30 Chris Toshok <toshok@ximian.com>
17715 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
17716 for non-WS_EX_APPWINDOW windows. This is what keeps them from
17717 showing up in the gnome taskbar. Fixes bug #79790.
17719 2006-10-30 Chris Toshok <toshok@ximian.com>
17721 * ApplicationContext.cs: guard against a NRE.
17723 * Application.cs: null out the old MainForm for the context, so we
17724 don't try to use it again once it's disposed. Fixes bug #79783.
17726 2006-10-30 Chris Toshok <toshok@ximian.com>
17728 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
17729 BindingContext, set the data source directly, otherwise do the
17730 lazy approach - the actual ListManager will be created when we get
17731 a BindingContext. Fixes bug #79700.
17733 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
17735 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17736 XplatUIX11.cs: Remove old 2 parameter SetVisible.
17738 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
17740 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
17742 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
17743 of SetVisible that allows a window to be shown, but not activated.
17744 This is needed on Windows for MenuStrip, and can probably be used
17745 with MainMenu and ComboBox to fix the focus stealing issues on
17748 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
17750 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
17752 * PictureBox.cs: Fix the output of the ToString method.
17754 2006-10-29 Chris Toshok <toshok@ximian.com>
17756 * Control.cs (get_TopLevelControl): fix bug #79781.
17758 2006-10-29 Chris Toshok <toshok@ximian.com>
17760 * ListControl.cs (set_DataSource): throw Exception here, not
17761 ArgumentException, to match MS behavior.
17763 2006-10-29 Chris Toshok <toshok@ximian.com>
17765 * Form.cs: remove the try-catch's around calls to GetWindowState.
17766 We can just check the return value.
17768 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
17771 * XplatUI.cs: Add note about additional return value for
17774 2006-10-29 Chris Toshok <toshok@ximian.com>
17776 * Control.cs (CreateHandle): when we create our handle, we also
17777 create the handles of our child controls. Fixes one of the
17778 Control unit tests (CH11).
17780 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
17782 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
17784 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
17786 * ThemeClearlooks.cs: A little speedup.
17788 2006-10-27 Chris Toshok <toshok@ximian.com>
17790 * Control.cs: implement Control.FromChildHandle in a way that
17791 matches the docs (and fixes the failed test.)
17793 2006-10-27 Chris Toshok <toshok@ximian.com>
17795 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
17798 * DataGrid.cs: implement ResetForeColor such that the tests
17801 2006-10-27 Chris Toshok <toshok@ximian.com>
17803 * ToolBarButton.cs: setting text/tooltiptext to null results in it
17804 being set to "". Fixes bug #79759.
17806 2006-10-27 Jackson Harper <jackson@ximian.com>
17808 * TextControl.cs: We need to clear the entire selection area when
17809 setting the start, otherwise multiline selections are still
17812 2006-10-26 Chris Toshok <toshok@ximian.com>
17814 * PropertyGridView.cs:
17816 - ifdef all the code specific to the double
17817 buffer case, and provide some alternatives in the non-doublebuffer
17818 code, which makes heavy use of XplatUI.ScrollWindow to move things
17819 around without having to invalidate (and cause flicker). There
17820 are still some drawing problems in the non-doublebuffered case, so
17821 DOUBLEBUFFER is defined by default.
17823 - Fix the way dropdowns are handled. now we explicitly watch for
17824 the events which might cause the dropdown to close, and break out
17825 of the nested event loop there. This gets rid of all Capture
17826 code, at the expense of the Msg special casing. Seems to work,
17827 though, and fixes bug #79743.
17829 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
17830 * Control.cs: SetIsRecreating now recreates implicitly added
17831 child controls as well. Finally fixes #79629. The flag passed to
17832 SetIsRecreating has also been removed since it wasn't used.
17834 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17836 * PageSetupDialog.cs: Clean some code, fix some bits,
17837 add some checks, and add a printer sub-dialog.
17839 2006-10-26 Chris Toshok <toshok@ximian.com>
17841 * PropertyGrid.cs: make set_SelectedObject call
17842 set_SelectedObjects, and move the duplicate logic to the
17843 SelectedObjects setter. Also, raise SelectedObjectsChanged.
17845 * PropertyGridView.cs: hide the textbox when we get a
17846 SelectedObjectsChanged event.
17850 2006-10-26 Chris Toshok <toshok@ximian.com>
17852 * PropertyGridView.cs: deal with the type converter not supporting
17853 GetStandardValues() or GetStandardValues() returning null, which
17854 is does in the default case. Fixes #79742.
17856 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
17858 * CheckedListBox.cs: nunit no longer crashes when selecting
17859 Project/Edit menu option
17861 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
17863 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
17864 is no menu selected. fixes #79739
17866 2006-10-25 Chris Toshok <toshok@ximian.com>
17868 * PropertyGridView.cs: factor out the splitter invalidation code
17869 into the SplitterPercent setter, and for kicks implement the
17870 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
17871 amount in either direction.
17873 2006-10-25 Chris Toshok <toshok@ximian.com>
17875 * PropertyGridView.cs: do some cleanup of the brush used to draw
17876 text - read only fields should be grayed out. not sure how to do
17877 this with the textbox, though. but the textbox's should also be
17878 readonly now at least. Also, hide/show the textbox when resizing
17881 * CursorConverter.cs: use System.Reflection when getting the
17882 properties of Cursors, as TypeDescriptor.GetProperties isn't
17883 returning static properties.
17885 2006-10-25 Chris Toshok <toshok@ximian.com>
17887 * PropertyGridView.cs: factor out the up/down handling, and reuse
17888 it for page up/down. also add End/Home support.
17890 2006-10-25 Chris Toshok <toshok@ximian.com>
17892 * PropertyGridView.cs:
17894 - ensure the selected grid item is visible in the scrolled area,
17897 - fix Keys.Down handling when you're on the last item in the
17900 2006-10-25 Mike Kestner <mkestner@novell.com>
17902 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
17903 clicks too. Fixes #79725.
17905 2006-10-24 Chris Toshok <toshok@ximian.com>
17907 * PropertyGrid.cs: use property.Converter instead of
17908 TypeDescriptor.GetConverter(property.PropertyType), so we catch
17909 TypeConverters declared on the property as well as on the
17910 PropertyType. Fixes bug #79678.
17912 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
17914 * MimeIcon.cs, Mime.cs:
17915 Fallback to the default platform handler if no shared mime info
17916 stuff exists (fixes #79693).
17918 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17919 * ContainerControl.cs: Incorrect contains check in ActiveControl
17920 from previous fix (duh).
17922 2006-10-20 Chris Toshok <toshok@ximian.com>
17924 * PropertyGridView.cs: the dropdown should be MIN(number of items
17925 in list, 15). Fixes #79551.
17927 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17928 Fixes #79384, #79394, #79652, #79667
17931 - Modal windows are now destroyed in the proper order for windows
17933 * ContainerControl.cs:
17935 - ActiveControl setter has more conditions on when to return:
17936 - if we're reselecting the active control, but it actually
17937 didn't have focus (window hidden or some such), it runs
17938 - if the active control being selected doesn't actually
17939 exist in the container, it returns
17943 - The ShowDialog now gets the current form as the owner when
17944 invoking without parameters, and correctly activates the owner
17949 - MessageBox now catches the Escape key to exit
17951 2006-10-20 Chris Toshok <toshok@ximian.com>
17953 * PropertyGridView.cs: fix a number of issues (bug #78565, and
17954 most of bug #79676):
17956 - you can navigate around the property grid with the arrow keys.
17958 - the dropdown is sized properly when the pg has a vertical
17961 - fix the indentation for subentries, and properly select the
17964 - fix the gray bar's drawing (only draw it to the last element,
17965 not for the height of the control. Also make sure we draw that
17966 last horizontal grid line.
17968 - use the same mechanism the datagrid uses wrt the editing textbox
17969 when scrolling/resizing/etc. Namely, we hide it first, do the
17970 operation, then show it again (if it's still visible).
17972 - aggressively remove a lot of unnecessary refreshes (and also
17973 calls to Invalidate(). call more limited variants, and only redraw
17978 - when we're populating the merged collection, fill in the UI
17979 parent with either the passed in item, or the category item we
17982 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
17984 * GridItem.cs: drop some fully qualified names.
17986 * GridEntry.cs: add a "UIParent", which is basically the parent
17989 * GridItemCollection.cs: add an IndexOf method.
17991 2006-10-20 Mike Kestner <mkestner@novell.com>
17993 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
17994 a working win32 NC invalidation mechanism, we can't invalidate
17995 menus. [Fixes #79705]
17997 2006-10-20 Mike Kestner <mkestner@novell.com>
17999 * ListBox.cs : don't update the VScrollbar if the list is empty,
18000 just hide it. [Fixes #79692]
18002 2006-10-20 Jackson Harper <jackson@ximian.com>
18004 * RichTextBox.cs: Handle some special chars better, and don't skip
18005 the entire group when we encounter a special char that we don't
18008 2006-10-18 Chris Toshok <toshok@ximian.com>
18010 * PropertyGridView.cs: address a number of issues from bug #79676,
18011 mostly of the cosmetic variety.
18013 - The highlight rectangle for indented items not extends all the
18016 - Indented items aren't indented so much.
18018 - the dropdown is properly sized width-wise if the pg has a
18019 vertical scrollbar.
18021 2006-10-18 Chris Toshok <toshok@ximian.com>
18023 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
18024 systray stuff is rather convoluted to begin with.
18026 systray icons are a single window for some reason (that I haven't
18027 figured out yet), and for them, client_window == whole_window.
18028 Given the way the tests are structured elsewhere to determine
18029 which paints are pending (client vs. nc), that situation will
18030 always yield PAINT, not NCPAINT. So, if we have a pending
18031 nc_expose and no pending expose, remove the hwnd from the paint
18032 queue, and also set nc_expose_pending to false, to keep us from
18033 blocking further expose's adding the hwnd to the paint queue.
18035 phew. like i said, a rather convoluted change. Fixes the
18036 notifyicon repaint issues in bug #79645.
18038 2006-10-18 Chris Toshok <toshok@ximian.com>
18040 * Form.cs: when getting the backcolor of the form, don't get
18041 base.BackColor, as this allows parents to influence the background
18042 color. This breaks mdi forms. Instead, if the background_color
18043 is empty, return the default.
18045 2006-10-18 Chris Toshok <toshok@ximian.com>
18047 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
18048 to being private instead of internal static.
18050 * Control.cs: remove all the stupid ParentWaitingOnRecreation
18051 crap, it wasn't working for more deeply nested controls anyway,
18052 and we already have the is_recreating flag - use that instead.
18053 Before calling DestroyHandle in RecreateHandle, recurse through
18054 the control tree setting it to true. this returns the recreate
18055 code to much of its original simplicity, while now guaranteeing we
18056 actually recreate everything we're supposed to. This change gets
18057 fyireporting actually showing mdi children.
18059 2006-10-17 Chris Toshok <toshok@ximian.com>
18061 * Form.cs: remove some debug spew, and collapse some duplicate
18062 code at the end of SetClientSizeCore.
18065 - add some more debug spew here too wrt Destroy handling.
18066 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
18067 in Control's handling of WM_DESTROY.
18068 - Remove the handling of zombie window DestroyNotifies from the
18069 event loop - we don't need it. Now the only DestroyNotifies we
18070 actually handle are ones generated by X.
18071 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
18072 match gtk's (functioning) handling of this. This keep metacity
18073 from leaving droppings in the form of wm borders with no window
18074 contents all over the place.
18077 - add a bunch of debug spew wrt control recreation.
18078 - fix a bug where we weren't tracking Visible properly on
18080 - fixed the WM_PAINT double buffer handling to support re-entrant
18081 calls (yes, i know it's gross, but it's happening to us).
18083 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18084 * ThemeWin32Classic.cs: changed drawing of selected days
18085 to make them look better.
18087 2006-10-16 Chris Toshok <toshok@ximian.com>
18089 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
18090 drawing_stack. Nuke the ClientDC/NonClientDC properties.
18092 * XplatUIX11.cs: move away from using hwnd.client_dc and
18093 hwnd.non_client_dc and on to a stack of dc's (and in window's
18094 case, PAINTSTRUCT's), so we can deal with nested Paint calls
18095 without puking or not disposing of Graphics objects.
18097 * XplatUIOSX.cs: same.
18099 * XplatUIWin32.cs: same.
18101 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
18103 * FileDialog.cs: Don't call on_directory_changed inside
18104 OnSelectedIndexChanged (it changes the SelectedIndex too).
18105 Instead move it to OnSelectionChangeCommitted.
18107 2006-10-13 Chris Toshok <toshok@ximian.com>
18109 * XplatUIX11.cs: more Destroy work. the current code does the
18110 following things, in order:
18112 1. Enumerates all handles of all controls at or below the one
18113 being destroyed, in pre-order. As it is doing this, it marks the
18114 handles as zombie and clears all references to them.
18116 2. calls XDestroyWindow on the window passed in.
18118 3. SendMessage's WM_DESTROY to all he handles in the accumulated
18121 2006-10-13 Chris Toshok <toshok@ximian.com>
18123 * XplatUIX11.cs: set hwnd.zombie to true before calling
18124 SendMessage (WM_DESTROY). this keeps us from marking the new
18125 window a zombie, and also keeps us from calling sendmessage at
18128 2006-10-13 Jackson Harper <jackson@ximian.com>
18130 * TextControl.cs: Do not show the caret and selection at the same
18131 time. Reduces ugliness by 35%.
18133 2006-10-13 Chris Toshok <toshok@ximian.com>
18135 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
18136 zombie after we do the recursive call, so we actually do call
18137 SendMessage on the children controls.
18138 (GetMessage): if we find a pending paint event for a zombie hwnd,
18139 remove the hwnd from the paint queue, or else it will always be
18140 there (and we'll effectively loop infinitely)
18142 2006-10-13 Mike Kestner <mkestner@novell.com>
18144 * MenuItem.cs : add Selected format under keynav too.
18147 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
18149 * PropertyGrid.cs: Fixed some NRE's and small difference between our
18150 implementation and that of MS.
18152 2006-10-13 Chris Toshok <toshok@ximian.com>
18154 * Control.cs (OnInvalidated) only futz with the invalid_region if
18155 the control is double buffered. this fixes the apparent hang in
18156 the ListView unit tests. Someone needs to make the
18157 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
18159 2006-10-13 Chris Toshok <toshok@ximian.com>
18161 * PropertyGridView.cs:
18163 - do a little refactoring so that only one place calls
18164 dropdown_form.Hide, and that is CloseDropDown. make everywhere
18165 else call that. Also make it Refresh, since there are redraw bugs
18166 otherwise (we should take a look at that...)
18168 - do a little more refactoring work to share the body of code
18169 involved with the drop down. it was duplicated in the code
18170 dealing with the listbox handling and in the code dealing with the
18173 - add a Capture to the dropdown form's control once it's
18174 displayed, and add a MouseDown handler that checks to make sure
18175 the position is inside the control. If it's not, close the
18176 dropdown. This fixes #78190.
18178 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
18179 if the value is different than the initial value.
18181 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
18183 * Control.cs: see #78650
18184 - Fixed GetNextControl for several cases:
18185 - Changed FindFlatForward to return
18186 correct sibling control when more than one
18187 control has same TabIndex as the currently
18189 - Changed FindFlatBackward to loop children
18190 from last to first and apply same logic as in
18192 - Changed FindControlForward to search for
18193 children when control is not a container
18194 but has children, or search for siblings if
18195 control is a container...
18196 - Changed FindControlBackward to continue
18197 searching for child controls when hitting
18200 - Fixed Focus method to update ActiveControl
18201 (FocusTest.FocusSetsActive failure)
18204 - Focus rectangle now refreshes when gaining
18206 - Removed grab for Tab key on IsInputKey that
18207 was keeping tab navigation from working (#78650)
18209 2006-10-13 Chris Toshok <toshok@ximian.com>
18211 * PropertyGridView.cs:
18212 - Rewrite SetPropertyValue to loop over SelectedGridItem's
18215 - Deal with GridItem.Value == null a few places.
18218 - replace the PopulateGridItemCollection with a pair of methods
18219 which compute the intersection of all the properties in the
18220 SelectedObjects array. Fixes #79615.
18222 - Throw ArgumentException from set_SelectedObjects if there's a
18225 - Add GetTarget method which can be used to traverse up the
18226 GridItem.Parent chain. It depends on the assumption that
18227 selected_objects for different GridEntries are always in the same
18228 order (a safe assumption). Use this method and loop over all the
18229 selected objects in the entry when calling RemoveValueChanged and
18232 * GridEntry.cs: Make this handle multiple selected objects.
18233 .Value returns null if not all the selected objects share the same
18236 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
18237 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
18238 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
18239 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
18240 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
18241 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
18242 add additional functionality.
18244 2006-10-12 Mike Kestner <mkestner@novell.com>
18246 * ErrorProvider.cs : new ToolTipWindow ctor sig.
18247 * HelpProvider.cs : new ToolTipWindow ctor sig.
18248 * ToolTip.cs : remove ToolTip param from Window sig since it is
18250 * ToolBar.cs : add tooltip support. Fixes #79565.
18252 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18254 * ComboBox.cs: move the events in set_SelectedIndex to
18255 after the call to HighlightIndex in order to avoid
18256 possible recursion and subsequent problems with the call
18257 to HighlightIndex and include a range check in
18258 set_HighlightIndex. Fixes #79588
18260 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18262 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
18263 to ui thread's settings instead of sunday.
18264 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
18266 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18268 * DateTimePicker.cs
18270 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
18271 and implement missing functionality (selecting different parts
18272 of the date and edit them individually with the keyboard).
18274 2006-10-11 Chris Toshok <toshok@ximian.com>
18276 * Control.cs (OnInvalidated): fix NRE relating to last change.
18278 2006-10-11 Chris Toshok <toshok@ximian.com>
18280 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
18281 atoms in _NET_WM_STATE here if the window is maximized. We need
18282 to do this because we're *replacing* the existing _NET_WM_STATE
18283 property, so those atoms will be lost otherwise, and any further
18284 call to GetWindowState will return Normal for a window which is
18285 actually maximized. Fixes #79338.
18287 2006-10-11 Jackson Harper <jackson@ximian.com>
18289 * TextControl.cs: Special case for setting selection end to
18290 selection start, we basically kill the anchor.
18291 - some todo comments.
18293 2006-10-11 Chris Toshok <toshok@ximian.com>
18295 * Control.cs: switch to using an "invalid_region" to track which
18296 parts of the image buffer need updating. This is more code than
18297 the simple fix from r66532. That version just attempted to always
18298 fill the entire buffer on redraw, which turns out to be
18299 inefficient when invalidating small rectangles. This version
18300 simply adds the invalid rectangle to the invalid region. When we
18301 get any WM_PAINT message we see if it can be filled using the
18302 image buffer, and if it can't (if the paint event's clip rectangle
18303 is visible in the invalid region) we first fill the image buffer.
18304 So, the image buffer is still a cache, we just fill it lazily.
18306 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
18307 need it any longer.
18309 2006-10-11 Chris Toshok <toshok@ximian.com>
18311 * XplatUIX11.cs (SetWindowPos): we need to update both position as
18312 well as size after calling XMoveResizeWindow. This keeps us from
18313 ignoring future SetWindowPos calls. Fixes the disappearing
18314 DateTimePicker in the ToolBarDockExample from bug #72499.
18316 2006-10-11 Chris Toshok <toshok@ximian.com>
18318 * TextBoxBase.cs: reorder things a bit when it comes to
18319 resizing-causing-recalculation. we were recalculating the
18320 document when our position was changed, which shouldn't happen.
18321 We only care about size changes. Clear up some more redundant
18322 recalculation calls while I'm at it. This makes the toolbar dock
18323 example snappy when you're just dragging toolbars around (since it
18324 causes a relayout whenever you move one.)
18326 2006-10-11 Chris Toshok <toshok@ximian.com>
18328 * ToolBarButton.cs (get_Rectangle): this only returns
18329 Rectangle.Empty if Visible == false, or Parent == null.
18330 Parent.Visible doesn't matter.
18332 2006-10-10 Chris Toshok <toshok@ximian.com>
18334 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
18335 by .net 1.1, so switch to an internal method instead.
18337 2006-10-10 Chris Toshok <toshok@ximian.com>
18339 * Control.cs (WM_PAINT): when a control is double buffered we draw
18340 initially to the ImageBuffer and then copy from there. But when a
18341 parent control which has child controls is double buffered, the
18342 initial drawing doesn't encompass the entire ClientRectangle of
18343 the parent control, so we end up with uninitialized bits (this is
18344 easily seen by dragging the top toolbar in
18345 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
18346 manually set the ClipRectangle of the paint_event (only the one we
18347 use to populate the ImageBuffer) to ClientRectangle. Fixes more
18348 of the nastiness in bug #72499.
18350 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
18351 which we use in Control.cs's WM_PAINT handling.
18353 2006-10-10 Jackson Harper <jackson@ximian.com>
18355 * TextBoxBase.cs: Finish off the autoscrolling stuff.
18357 2006-10-10 Chris Toshok <toshok@ximian.com>
18359 * Cursor.cs: Apply a slightly different patch to the one suggested
18362 2006-10-10 Jackson Harper <jackson@ximian.com>
18364 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
18365 not the parent form.
18366 * TextControl.cs: use difference in old line count vs new count to
18367 calculate how many lines were added, this takes into account soft
18368 line breaks properly.
18370 2006-10-10 Chris Toshok <toshok@ximian.com>
18372 * LinkLabel.cs: don't call MeasureCharacterRanges against a
18373 rectangle located at 0,0 and the size of the text. Use
18374 ClientRectangle instead. This fixes rendering of non-left aligned
18377 2006-10-10 Jackson Harper <jackson@ximian.com>
18379 * TextBoxBase.cs: When we set the selection start position the
18381 * TextControl.cs: Need to update the caret when we decrement it to
18383 - Make sure that the selection_visible flag gets reset to false if
18384 the selection isn't visible. Before this you could get it set to
18385 visible by changing the selection start, then changing the end to
18388 2006-10-09 Jackson Harper <jackson@ximian.com>
18390 * TreeView.cs: Don't update scrollbars when we aren't visible.
18391 * TreeNodeCollection.cs: Only need to update scrollbars if being
18392 added to an expanded visible node or the root node.
18394 2006-10-09 Chris Toshok <toshok@ximian.com>
18396 * XplatUIX11.cs (SendMessage): fix NRE.
18398 2006-10-09 Jackson Harper <jackson@ximian.com>
18400 * TextBoxBase.cs: Implement horizontal autoscrolling.
18401 * TextControl.cs: Add a movement types that allows moving forward
18402 and backwards without wrapping.
18404 2006-10-09 Mike Kestner <mkestner@novell.com>
18406 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
18407 with focus "expansion" of labels. Fixes #79532 and then some.
18408 * ThemeWin32Classic.cs : add LineLimit to ListView label format
18411 2006-10-09 Jackson Harper <jackson@ximian.com>
18413 * TextBoxBase.cs: Set the default max values to MaxValue since
18414 we use the scrollbar for autoscrolling and the default value is
18415 100. If we don't do this the caret won't keep up with typing
18416 after about 18 characters.
18417 * TextControl.cs: Make sure the selection is offset by the
18418 viewport x. This fixes selection when using auto scrolling.
18420 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
18422 * Form.cs: The active control should be selected after the
18423 OnLoad so that any child control initialization that affects
18424 the selection is done. Fixes #79406
18426 2006-10-06 Chris Toshok <toshok@ximian.com>
18428 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
18429 to have no evil effects.
18431 - Stop selecting StructureNotifyMask on non-toplevel windows.
18433 The only way children should be resized is by using the SWF api,
18434 and we already send WM_WINDOWPOSCHANGED messages in those cases.
18435 Toplevel windows can be interacted with via the window manager,
18436 and so we keep the input mask there.
18438 The other event StructureNotifyMask gives us (that we care
18439 about) is DestroyNotify. The code is already structured such
18440 that it assumes we won't be getting a DestroyNotify event for
18441 the window we pass to XDestroyWindow (which is what
18442 StructureNotifyMask is supposed to guarantee.) So, that code
18443 shouldn't be affected by this either.
18445 - Stop selecting VisibilityChangeMask altogether.
18447 We weren't doing anything with the resulting events anyway.
18449 This vastly reduces the number of X requests and events we see
18450 when resizing/laying out a large ui.
18452 2006-10-06 Chris Toshok <toshok@ximian.com>
18454 * ScrollableControl.cs (DisplayRectangle): we need to take into
18455 account the DockPadding regardless of whether or not auto_scroll
18456 == true. rework this slightly to this effect, and fix bug #79606,
18457 and part of #72499 (you can now see the drag handles and drag
18460 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
18462 * ListViewItem.cs: Collections of selected and checked items are now
18463 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
18464 we mark the collection "dirty".
18465 * ListView.cs: Marked collections readonly. Modified UpdateSelection
18466 to only clear SelectedItems when a new item is selected and MultiSelect
18467 is enabled. CheckedItems and SelectedItems now subscribe to Changed
18468 event of ListViewItemCollection, and mark its list dirty whenever
18469 that event is fire. This allows us to return selected/checked items
18470 in the same order as they are in the Items collection. This matches
18473 2006-10-06 Chris Toshok <toshok@ximian.com>
18475 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
18476 right mouse clicks. Fixes bug #79593.
18478 2006-10-06 Chris Toshok <toshok@ximian.com>
18480 * Splitter.cs: doh, fix splitters that don't want to cancel the
18481 movement when you drag them. Also, impose the limits on the
18482 values we send to the SplitterMovingEvent. Fixes #79598.
18484 2006-10-06 Jackson Harper <jackson@ximian.com>
18486 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
18487 since we use this for auto scrolling also.
18489 2006-10-05 Chris Toshok <toshok@ximian.com>
18491 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
18492 beginning to think that most datagrid column types don't need this
18493 method. Fixes bug #79392.
18495 2006-10-05 Chris Toshok <toshok@ximian.com>
18497 * DataGrid.cs: move back to a more lazy scheme for creating the
18498 CurrencyManager, so we aren't updating it every time you set
18499 either DataSource or DataMember. Also, don't call
18500 RecreateDataGridRows if the currency manager hasn't changed.
18502 2006-10-05 Chris Toshok <toshok@ximian.com>
18504 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
18505 emitted, SelectedIndex should already be updated. Fixes bug
18508 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
18510 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
18511 ToolStripTextBox.cs: Initial commit.
18512 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
18514 2006-10-05 Jackson Harper <jackson@ximian.com>
18516 * TabControl.cs: We need to invalidate the tab control area when
18517 new ones are added (duh).
18519 2006-10-03 Chris Toshok <toshok@ximian.com>
18521 * Form.cs (ProcessDialogKey): if the focused control is in this
18522 form and is a button, call its PerformClick method here. Fixes
18525 2006-10-04 Jackson Harper <jackson@ximian.com>
18527 * TabPage.cs: Ignore setting of Visible, and add an internal
18528 method for setting the controls visibility. TabPage's Visible
18529 property is a little strange on MS, this seems to make us
18530 compatible, and fixes cases where people set all the tab pages to
18532 * TabControl.cs: Use the new internal setting on tab pages
18535 2006-10-03 Mike Kestner <mkestner@novell.com>
18537 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
18539 2006-10-03 Mike Kestner <mkestner@novell.com>
18541 * ListView.cs : use is_visible instead of Visible to check if
18542 scrollbars should be placed/sized. Also some max_wrap_width
18543 love for LargeIcon view. [Fixes #79533]
18545 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
18548 Make set_TextAlign() do actually update the align. Fixed #78403.
18550 2006-10-03 Chris Toshok <toshok@ximian.com>
18552 * DataGrid.cs: fix a crash when switching datasources if the
18553 vertical scrollbar is at someplace other than Value = 0. Also,
18554 reduce the number of recalculation passes we do in SetDataSource
18557 2006-10-03 Jackson Harper <jackson@ximian.com>
18559 * TextBoxBase.cs: Move the if value the same bail check up, we
18560 don't want to empty the document if it is already empty, this
18561 seems to severly mess up the caret. TODO: I should probably fix
18562 the empty statement to update teh caret somehow.
18564 2006-10-03 Chris Toshok <toshok@ximian.com>
18566 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
18567 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
18568 reflection, an internal row type, properties on said type, etc.)
18569 will work with our datagrid. Fixes #79531.
18571 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
18573 * FileDialog.cs: Don't crash if a path is not accessible
18574 (System.UnauthorizedAccessException). Fixes #79569.
18575 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
18576 a ':' too. Return unknown icon for those paths/files.
18578 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
18580 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
18581 GetContainerControl returns null.
18583 2006-10-02 Chris Toshok <toshok@ximian.com>
18585 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
18586 call to XGetWindowAttributes instead of "handle". fixes an X
18587 error using notifyicon after the NotifyIconWindow to Form base
18590 2006-10-02 Chris Toshok <toshok@ximian.com>
18592 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
18593 server grab and looping we need to do to get down to the most
18594 deeply nested child window.
18595 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
18596 QueryPointer again after the WarpPointer so we can generate a
18597 proper (fake) MotionNotify event to be enqueued in the destination
18599 (GetCursorPos): call QueryPointer.
18603 2006-10-02 Jackson Harper <jackson@ximian.com>
18605 * NotifyIcon.cs: Derive the notify icon from a form, so things
18606 like FindForm work on it.
18607 - Swallow the WM_CONTEXTMENU message, since that is generated on
18608 mouse down, and context menu is a mouse up kinda guy. I believe
18609 the correct fix here is probably to make the notify icon entirely
18610 NC area, but this seems to work fine for anyone not manipulating
18613 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
18615 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
18616 ToolStripItemCollection.cs, ToolStripLabel.cs,
18617 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
18618 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
18619 Initial implementation.
18620 * TextRenderer.cs: Provide padding to MeasureText.
18622 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
18624 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
18625 of ButtonBaseAccessibleObject. Fix bug #79552.
18627 2006-10-02 Jackson Harper <jackson@ximian.com>
18629 * MdiWindowManager.cs: When maximizing use the containers client
18630 rect, not it's bounds, so nc area is accounted correctly.
18631 - Use the parent form's size for the menu position, since the
18632 client isn't always the full form size.
18634 2006-10-01 Chris Toshok <toshok@ximian.com>
18636 * ScrollableControl.cs: make sure neither right_edge or
18637 bottom_edge are < 0, since they're used as LargeChange for the
18638 horiz/vert scrollbars respectively. Fixes #79539.
18640 2006-10-01 Chris Toshok <toshok@ximian.com>
18642 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
18643 the xplatuix11 code can cause us to destroy/recreate our handle.
18647 - this code can be invoked many times for the same Hwnd. Make
18648 sure we only destroy the client window once (the first time this
18649 method is called). This fixes bug #79544.
18650 - Remove the call to the improperly bound XSync. why we had two
18651 bindings to this, I will never know, but this call resulted in
18652 events being discarded from the queue(!).
18653 - correct a misunderstanding of _XEMBED_INFO - the second atom is
18654 not our current state but the state we wish to be in. So, 0 if
18655 we don't want to be mapped. Change it to 1.
18656 (SystrayRemove): The XEMBED spec makes mention of the fact that
18657 gtk doesn't support the reparent of client windows away from the
18658 embedder. Looking at gtksocket-x11.c seems to agree with this.
18659 The only avenue we have for removing systray icons is to destroy
18660 them. We don't want the handle to go away for good, though, so
18661 call InternalRecreateHandle on the NotifyIconWindow. Fixes
18664 2006-10-01 Chris Toshok <toshok@ximian.com>
18666 * Form.cs (WndProc): inline the native_enabled variable usage into
18667 the cases in which it's used. Fixes #79536.
18669 2006-09-29 Mike Kestner <mkestner@novell.com>
18671 * ListView.cs : toggle the selection state for ctrl clicks in
18672 multiselect mode. [Fixes #79417]
18674 2006-09-29 Mike Kestner <mkestner@novell.com>
18676 * ListView.cs : kill CanMultiSelect and refactor the selection
18677 code to support multiselection in the absence of mod keys. Steal
18678 arrow/home/end keys by overriding InternalPreProcessMessage to
18679 restore regressed keynav behavior.
18682 2006-09-29 Jackson Harper <jackson@ximian.com>
18684 * MdiClient.cs: Repaint the titlebars when the active window is
18687 2006-09-29 Chris Toshok <toshok@ximian.com>
18689 * Application.cs: when entering a runloop with a modal, make sure
18690 the hwnd is enabled. Fixes #79480.
18692 2006-09-29 Chris Toshok <toshok@ximian.com>
18694 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
18695 when ListManager.CanAddRows == false, bump us back one.
18697 * DataGridColumnStyle.cs (ParentReadOnly): remove the
18698 listmanager.CanAddRows check. This makes ArrayLists uneditable
18699 using a datagrid, which is not right.
18700 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
18701 is an IEditable, but call property_descriptor.SetValue regardless.
18704 2006-09-29 Chris Toshok <toshok@ximian.com>
18706 * DataGridBoolColumn.cs: we need to test equality in the face of
18707 possible null values (as is the case with the default NullValue).
18708 This patch keeps us from crashing in that case.
18710 2006-09-29 Jackson Harper <jackson@ximian.com>
18712 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
18713 here, since it will get called for every node collection in the
18714 tree. This is now done in the treeview once the sorting is
18716 * TreeView.cs: Recalculate the visible order, and update the
18717 scrollbars after sorting, set the top nope to the root so that the
18718 recalc actually works.
18720 2006-09-29 Chris Toshok <toshok@ximian.com>
18722 * LinkLabel.cs: more handling of the default link collection in
18723 the face of LinkArea manipulation. The default link collection
18724 contains 1 element (start=0,length=-1). If the user sets LinkArea
18725 to anything and the links collection is the default, clear it.
18726 Then only add the link if its nonempty. Fixes #79518.
18728 2006-09-29 Chris Toshok <toshok@ximian.com>
18730 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
18731 piece correctly when we hit a '\n'. Fixes #79517.
18733 2006-09-29 Chris Toshok <toshok@ximian.com>
18735 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
18736 change the binding of gdk_init_check to take two IntPtr's, and
18737 pass IntPtr.Zero for both of them. Fixes #79520.
18739 2006-09-29 Mike Kestner <mkestner@novell.com>
18741 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
18744 2006-09-28 Jackson Harper <jackson@ximian.com>
18746 * XplatUIX11.cs: When translating NC messages make sure we go from
18747 whole window to screen, not client window to screen.
18748 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
18749 method doesn't exist
18750 - Skip over controls that aren't forms when arranging.
18752 2006-09-28 Jackson Harper <jackson@ximian.com>
18754 * XplatUIWin32.cs: Clip the rect to the parent window.
18755 * XplatUIStructs.cs: Add clipping modes struct.
18756 * InternalWindowManager.cs: New private method that factors title
18757 bar heights in when calculating the pos of an NC mouse message.
18758 - Use SendMessage to force a paint when the form's size is changed
18759 instead of painting the decorations immediately.
18760 - Don't let the NC button click messages get to DefWndProc,
18761 because they will attempt to handle windowing themself, and this
18762 messes up z-order (it will put them in front of the scrollbars).
18763 * XplatUIX11.cs: Make sure that we don't reset window managers if
18764 we already have one (ie the window is an MDI window).
18766 2006-09-28 Chris Toshok <toshok@ximian.com>
18768 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
18769 menu code really needs going over.
18771 2006-09-27 Chris Toshok <toshok@ximian.com>
18773 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
18774 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
18775 window is maximizable. So, we need to make sure that even if we
18776 clear the border/wm frame of those functions, they're still
18777 available (basically, we remove the decoration without removing
18778 the function). Half the fix for #79338.
18780 2006-09-27 Chris Toshok <toshok@ximian.com>
18782 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
18785 2006-09-27 Chris Toshok <toshok@ximian.com>
18787 * Splitter.cs: reorder things a bit so that we don't actually
18788 draw/move the splitter until after calling OnSplitterMoving. This
18789 lets users cancel/disallow the movement by explicitly setting
18790 event.SplitX/SplitY. Fixes #79372.
18792 2006-09-27 Jackson Harper <jackson@ximian.com>
18794 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
18795 because it is most likely on a window being destroyed, and that
18796 will give us an X11 error.
18798 2006-09-27 Chris Toshok <toshok@ximian.com>
18800 * PropertyGridView.cs: half of the fix for #78190. Clicking on
18801 the dropdown button now toggles between showing and hiding the
18802 dropdown. Also, get rid of dropdown_form_showing and just use
18803 dropdown_form.Visible. We still don't do a grab, but I'll leave
18804 that part to someone who has handled Capture-fu before.
18806 2006-09-27 Chris Toshok <toshok@ximian.com>
18808 * DataGrid.cs: return false if alt isn't pressed when '0' is
18809 pressed. this keeps the '0' key from being swallowed, and fixes
18812 2006-09-27 Chris Toshok <toshok@ximian.com>
18814 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
18815 Calling Refresh (in response to a scrollbar event) screws up the
18816 scrollbar painting. Fixes bug #78923.
18818 2006-09-27 Chris Toshok <toshok@ximian.com>
18820 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
18821 then insert into hashtable" blocks threadsafe.
18823 2006-09-27 Chris Toshok <toshok@ximian.com>
18825 * MessageBox.cs (CreateParams): the styles should be |'ed with our
18826 baseclass's, since otherwise the
18827 ControlBox/MinimizeBox/MaximizeBox assignments above have no
18828 effect. This gets the close button back in messageboxes.
18830 2006-09-27 Chris Toshok <toshok@ximian.com>
18832 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
18833 flag, not just != 0. this makes flags that are actually multiple
18834 bits (like WS_CAPTION) work. fixes bug #79508.
18836 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
18838 * PageSetupDialog.cs: add support for getting and settings the
18839 paper size, source and orientation.
18841 2006-09-26 Chris Toshok <toshok@ximian.com>
18843 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
18844 and caption == "", we need to remove the resize handles as well as
18847 * Control.cs (set_Text): turns out that setting Text on a form
18848 should change the WM styles on the window, since if ControlBox ==
18849 false, the only way to get a window border is to have a non-""
18850 Text property. check winforms/forms/text.cs for an example. so,
18851 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
18852 update both window styles and title. This fixes a lot of dialogs
18853 (including the preferences dialog in MonoCalendar.)
18855 2006-09-26 Chris Toshok <toshok@ximian.com>
18857 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
18858 control isn't a Form), call Win32ShowWindow to hide the window,
18859 but don't update the control Visible property. When we reparent
18860 back to a parent control, call SetVisible in order for the
18861 window's visibility to be reinstated.
18863 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
18866 * Control.cs (ControlCollection.Remove): remove that value.Hide()
18867 call for good, since it breaks MonoCalendar (and other things I'm
18868 sure.) Also, set all_controls to null *after* the owner calls,
18869 which end up regenerating it.
18870 (ChangeParent): allow new_parent to be == null, passing
18871 IntPtr.Zero down to XplatUI.
18873 this fixes #79294 the right way.
18875 2006-09-26 Mike Kestner <mkestner@novell.com>
18877 * GridEntry.cs : internal SetParent method.
18878 * PropertyGrid.cs : attach to property changed on the proper
18879 target if we have a hierarchical grid with subobjects. Setup
18880 GridItem.Parent for hierarchical items.
18881 * PropertyGridView.cs : Set value on the correct target for
18882 hierarchical grids. [Fixes #78903]
18884 2006-09-26 Chris Toshok <toshok@ximian.com>
18886 * Control.cs (ChildNeedsRecreating): this should return true if
18887 either we're being recreated and the child is in our list, or our
18888 parent is waiting for our recreation.
18890 2006-09-26 Chris Toshok <toshok@ximian.com>
18892 * Control.cs (ControlCollection.Remove): reinstate the
18893 value.Hide() call as suggested in bug #79294.
18895 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
18897 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
18898 coordinates (versus a relative move).
18900 2006-09-26 Chris Toshok <toshok@ximian.com>
18902 * Control.cs: rework child recreation a little bit. It turns out
18903 that we race between the DestroyNotify the WM_DESTROY message. If
18904 the parent gets its DestroyNotify before the child gets the
18905 WM_DESTROY message, the child ends up not recreating (since the
18906 parent finishes its recreation on DestroyNotify, and the child
18907 checks ParentIsRecreating.)
18909 So, instead we store off a list of all the child controls which
18910 need to be recreated when the parent control starts to recreate
18911 itself. Then, when child controls get their WM_DESTROY message we
18912 check to see if they're in the parent's pending recreation list,
18913 and if so, we recreate. This removes all dependency on ordering
18914 from the code and fixes the initial MonoCalendar upgrade dialog.
18916 2006-09-26 Jackson Harper <jackson@ximian.com>
18918 * TextControl.cs: Use the Line to get the length of the line,
18919 since soft line breaks can change the end line.
18921 2006-09-26 Chris Toshok <toshok@ximian.com>
18923 * Control.cs (ControlCollection.AddImplicit): don't add the
18924 control again if it's already in one of our lists. This keeps us
18925 from adding controls over and over again for comboboxes when their
18926 handle gets recreated (as the combobox adds implicit controls in
18927 OnHandleCreated). Fixes the X11 errors in bug #79480.
18929 2006-09-26 Jackson Harper <jackson@ximian.com>
18931 * TextControl.cs: When deleting characters make sure that any
18932 orphaned zero lengthed tags get deleted.
18933 - Fix ToString for zero lengthed tags.
18935 2006-09-25 Jackson Harper <jackson@ximian.com>
18937 * TextControl.cs: When getting a tag at the location there can be
18938 multiple tags at the same spot, these are 0-lengthed tags that
18939 appear when extra formatting has been stuck in a location. We
18940 need to pull out the last of these 0 lengthed tags.
18942 2006-09-25 Jackson Harper <jackson@ximian.com>
18944 * TextControl.cs: Fix print out in debug method.
18945 * TextBoxBase.cs: When text is set bail if we are setting to the
18948 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
18950 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
18951 It is now possible to change the selected index in a FontXXXListBox
18952 with the up and down arrow keys from the FontXXXTextBoxes.
18953 Also, send the FontXXXTextBox mouse wheel event to the corresponding
18954 FontXXXListBoxes to match ms.
18956 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
18958 * SystemInformation.cs: Return a clone of the theme's MenuFont because
18959 anyone can dispose it, anytime. All other properties returns enums,
18960 structs or basic types so they don't need such tricks.
18962 2006-09-22 Jackson Harper <jackson@ximian.com>
18969 * XplatUIDriver.cs: Update interface to add a primary selection
18970 flag, so the driver can use the primary selection buffer if
18972 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
18974 * RichTextBox.cs: We need to supply the data object to paste now
18975 (so we can choose to supply CLIPBOARD or PRIMARY).
18976 * TextBoxBase.cs: Supply data object to paste (see above).
18977 - Middle click uses the primary selection data object.
18979 2006-09-21 Chris Toshok <toshok@ximian.com>
18981 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
18982 of SetWMStyles. It's still a rat's nest and is largely
18983 order-dependent which I dislike immensely. This also fixes the X
18984 button disappearing from toplevel forms.
18986 2006-09-21 Mike Kestner <mkestner@novell.com>
18988 * ListBox.cs: move Jordi's click/dblclick raising code to the
18991 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
18993 * ListBox.cs: Fixes 79450
18995 2006-09-21 Mike Kestner <mkestner@novell.com>
18997 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
18998 to deal with people updating the TreeNodeCollection after the tree
18999 is disposed. "Fixes" 79330.
19001 2006-09-20 Jackson Harper <jackson@ximian.com>
19003 * TextControl.cs: Push the cursor record onto the undo stack
19004 before the delete action. This fixes 78651.
19006 2006-09-20 Jonathan Chambers <joncham@gmail.com>
19008 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
19009 CreateParams. Fixes 79329.
19011 2006-09-19 Chris Toshok <toshok@ximian.com>
19013 * XplatUIX11.cs: a couple of blanket code massage passes to clean
19014 things up a bit. First, get rid of the NetAtoms array (and the NA
19015 enum), and just embed the atoms as static fields. Also, add a
19016 couple of functions (StyleSet and ExStyleSet) to clean up all the
19017 bitmask testing of styles.
19019 * X11Structs.cs: remove the NA enum, not needed anymore.
19021 2006-09-19 Chris Toshok <toshok@ximian.com>
19023 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
19024 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
19025 added cleanup to get MessageBox titles appearing again, which were
19026 broken by my earlier fix for caption-less/ControlBox-less windows.
19028 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
19030 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
19031 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
19032 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
19033 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
19034 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
19035 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
19036 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
19037 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
19038 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
19039 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
19040 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
19042 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
19043 ToolStripButton.cs: Stubs needed for above.
19044 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
19046 2006-09-15 Chris Toshok <toshok@ximian.com>
19049 - make the MessageQueues hashtable Synchronized.
19051 - SendMessage: if the Hwnd is owned by a different thread, use the
19052 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
19053 thread. Fixes bug #79201.
19055 2006-09-15 Chris Toshok <toshok@ximian.com>
19057 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
19058 ControlBox == false, we disallow maximize/minimize/close. If the
19059 form Caption is "" we also disallow move (and get rid of the Title
19060 decoration). Unfortunately, regardless of how things are set,
19061 we're stuck with the Title and WM menu.
19063 2006-09-15 Chris Toshok <toshok@ximian.com>
19065 * Application.cs: add locking around the static message_filters
19066 ArrayList, part of #79196.
19068 2006-09-15 Chris Toshok <toshok@ximian.com>
19070 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
19071 Form.ControlBox == false, the window has no titlebar nor resize
19072 handles. fixes bug #79368.
19074 2006-09-15 Chris Toshok <toshok@ximian.com>
19076 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
19077 >= 0. Fixes bug #79370.
19079 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
19080 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
19082 Add properties: LayoutEngine, Margin, DefaultMargin.
19083 Add method: GetPreferredSize.
19084 Move layout logic from PerformLayout to layout engines.
19086 2006-09-13 Chris Toshok <toshok@ximian.com>
19088 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
19089 fix for #79326 broke #78718, so this change addresses that.
19091 - in SendWMDestroyMessages remove the call to
19092 CleanupCachedWindows, since we might be recreating the control and
19093 need to maintain the references to right Hwnd handles. Also, set
19094 the zombie flag to true for each of the children in the hierarchy
19095 instead of calling hwnd.Dispose. This will cause GetMessage to
19096 ignore all events for the window except for DestroyNotify.
19098 - In GetMessage, ignore messages except for DestroyNotify for
19101 * Control.cs: revert the is_recreating fix from the last
19102 ChangeLog. It's definitely "right", but it breaks switching from
19103 an MDI form to a non-MDI form. Will need to revisit that.
19105 * Hwnd.cs: add a zombie flag, which means "the
19106 client_window/whole_window handles are invalid, but we're waiting
19107 for the DestroyNotify event to come in for them". Set the flag to
19108 false explicitly if setting WholeWindow/ClientWindow, and also
19111 2006-09-13 Chris Toshok <toshok@ximian.com>
19113 * XplatUIX11.cs: rework window destruction slightly.
19115 - when destroying the windows associated with a control, we don't
19116 need 2 separate XDestroyWindow calls. Just the one for the
19117 whole_window (or for client_window if whole_window is somehow
19118 IntPtr.Zero -- can this happen?) is enough.
19120 - reworked SendWMDestroyMessages slightly, so we always dispose
19121 the child control hwnd's after sending the messages.
19123 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
19124 the two places it was used (one was even using hwnd.Handle and the
19125 other hwnd.client_window. ugh), adding another call in
19126 SendWMDestroyMessages. We need this new call because now the
19127 DestroyNotify events in the queue will be ignored for the child
19128 controls (as their hwnd's were disposed, and the window id's
19129 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
19131 - this fixes bug #79326.
19133 2006-09-13 Chris Toshok <toshok@ximian.com>
19135 * Control.cs: don't always set is_recreating to false at the end
19136 of RecreateHandle, since sometimes we're not done (and won't be
19137 until WndProc handles the WM_DESTROY message). Also, set
19138 is_recreating to false in the WM_DESTROY handling code. Part of
19139 the fix for bug #79326.
19141 2006-09-13 Miguel de Icaza <miguel@novell.com>
19143 * X11DesktopColors.cs: Start the droppage of debugging messages.
19145 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
19147 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
19149 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
19151 2006-09-12 Chris Toshok <toshok@ximian.com>
19153 * DataGrid.cs (get_ListManager): if the list_manager is null, try
19154 to create it using SetDataSource. Fixes bug #79151.
19156 2006-09-11 Chris Toshok <toshok@ximian.com>
19158 * XEventQueue.cs: add a DispatchIdle property.
19160 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
19161 either the queue is null, or the queue has DispatchIdle set to
19163 (DoEvents): set queue.DispatchIdle to false around the
19164 peek/translate/dispatch message loop in this method. This keeps
19165 Application.Doevents from emitting idle events. Part of the fix
19168 2006-09-11 Chris Toshok <toshok@ximian.com>
19170 * DataGrid.cs (set_DataSource): make this work for both the
19171 winforms/datagrid test and ReportBuilder. It seems as though when
19172 we've created a ListManager (or maybe it's if we have a
19173 BindingContext?), when we set the DataSource it clears the
19174 DataMember to "". otherwise we reuse the datamember. Fixes bug
19177 2006-09-11 Chris Toshok <toshok@ximian.com>
19179 * XplatUIX11.cs: deal with queue being null, which happens in all
19180 the Clipboard functions. Fixes one of the two problems mentioned
19183 2006-09-11 Chris Toshok <toshok@ximian.com>
19185 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
19186 button on various spots (including outside the menu) works closer
19187 to MS, and doesn't crash. Fixes #79343.
19189 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
19191 * ListView.cs: Do not initialize item_sorter in init. To match MS,
19192 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
19193 and the internal comparer is set. When a new ListViewItemSorter is set,
19194 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
19195 was specified. No further processing is necessary if SortOrder is set
19196 to it's current value. If Sorting is modified to None, and View is
19197 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
19198 (either custom or our internal ItemComparer) to null, on 1.0 profile
19199 only set item_sorter to null if its our internal IComparer. If Sorting
19200 is modified to Ascending or Descending, then use our internal IComparer
19201 if none is set, and if the current IComparer is our internal one then:
19202 on 2.0 profile always replace it with one for new Sorting, and on 1.0
19203 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
19204 Enum.IsDefined to verify whether a valid View value is specified in
19205 its setter. Automatically sort listview items when listview is
19206 created. In Sort, do nothing if ListView is not yet created, or if
19207 no item_sorter is set (no Sorting was set, Sorting was explicitly set
19208 to None or ListViewItemSorter was set to null). Added Sort overload
19209 taking a bool to indicate whether the ListView should be redrawn when
19210 items are sorted (we use this in ListViewItemCollection to avoid double
19211 redraws). Modified our internal IComparer to take the sort order into
19212 account. In Add and AddRange methods of ListViewItemCollection, also
19213 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
19214 view), but use overload with noredraw option to avoid double redraw.
19215 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
19216 true when View is Tile, and do the same when attempting to set View to
19217 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
19218 for selected/checked indices, as it involves overhead when sorting is
19219 done while these collections are not used all that often. Instead
19220 we'll build the indices on demand. Modified IList implementation of
19221 CheckedIndexCollection to use public methods if object is int.
19222 Modified CheckedListViewItemCollection to hide checked items if
19223 ListView.CheckBoxes is false. Removed LAMESPEC remark in
19224 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
19225 IList implementation in SelectedIndexCollection to use public methods
19226 if object is int. Modified SelectedListViewItemCollection to hide
19227 selected items if listview is not yet created.
19228 * ListViewItem.cs: CheckedIndices list no longer needs to be
19229 maintained separately (see ListView changes). Also clone font, fixes
19232 2006-09-11 Mike Kestner <mkestner@novell.com>
19234 * ComboBox.cs: if we are updating the contents of the currently
19235 selected index, refresh the control or the textbox selection.
19238 2006-09-11 Mike Kestner <mkestner@novell.com>
19240 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
19241 the 'specified' logic has been moved there. This seems like a bug
19242 in Control.cs, since our current SetBoundsCore completely ignores
19243 the specified parameter. Peter's commit seems to indicate that is
19244 the way the MS control implementation works. [Fixes #79325]
19246 2006-09-10 Jonathan Chambers <joncham@gmail.com>
19248 * XplatUI.cs: Set default_class_name to be composed
19249 of current domain id. This allows MWF to be loaded in multiple
19252 2006-09-09 Miguel de Icaza <miguel@novell.com>
19254 * X11Keyboard.cs: If we are unable to obtain the input method, do
19255 not call CreateXic to create the input context. Should fix
19258 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
19260 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
19261 Simplified gnome support by adding more pinvokes to get the
19262 icon for a file or mime type.
19264 2006-09-08 Jackson Harper <jackson@ximian.com>
19266 * MenuAPI.cs: Deslect popup context menu items before closing the
19267 window, so that you don't see the previously selected item
19268 selected when you reopen the menu.
19269 * TextControl.cs: Update the cursor position even if we don't have
19270 focus. This fixes typing in things like the ComboBox. I'm not
19271 totally sure we should always set the visibility if we don't have
19272 focus, but couldn't find any corner cases where the cursor showed
19273 up when it shouldn't.
19275 2006-09-08 Chris Toshok <toshok@ximian.com>
19277 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
19278 our arrays are length 256. & 0xff before indexing. Fixes the
19279 crash in bug #78077.
19281 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19283 * ThemeWin32Classic.cs:
19284 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
19285 is true. Handle that check box too.
19287 2006-09-07 Chris Toshok <toshok@ximian.com>
19289 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
19292 2006-09-07 Chris Toshok <toshok@ximian.com>
19294 * Control.cs: in set_BackColor only do the work if
19295 background_color != value.
19297 * XplatUIX11.cs: move the clearing of invalid areas (both client
19298 and nc) to the same block of code where we set (nc_)expose_pending
19299 to false. That is, move it from PaintEventEnd to PaintEventStart,
19300 so things that cause invalidates from within OnPaint will trigger
19301 another call to OnPaint. Fixes bug #79262.
19303 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
19305 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
19306 * FileDialog.cs: Fix typo
19308 2006-09-07 Jackson Harper <jackson@ximian.com>
19310 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
19311 for tab pages if they have any.
19313 2006-09-06 Mike Kestner <mkestner@novell.com>
19315 * Splitter.cs: use the "current" rect when finishing drag handle
19316 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
19318 2006-09-06 Mike Kestner <mkestner@novell.com>
19320 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
19321 support offset splitters. [Fixes #79298]
19323 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
19325 * Mime.cs: Fixed a bug that could override the global mime type
19328 2006-09-05 Jackson Harper <jackson@ximian.com>
19330 * TabControl.cs: Better calculation method for setting the slider
19331 pos. Prevents crashes on really wide tabs.
19332 - Draw Image on tab pages if an image list is used.
19334 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19336 * MonthCalendar.cs: When Font changes, the Size should be
19337 updated to fit the new font's space requirements.
19339 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
19341 * ListBox.cs: If the items are cleared with Items.Clear set
19344 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19346 * MonthCalendar.cs: Handle arrow keys as input keys. Also
19347 fire DateChanged event instead of DateSelected event when
19348 the date was changed by keyboard interaction.
19350 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19352 * DateTimePicker.cs: Handle DateChanged for the associated
19353 month_calendar control, and set month_calendar.Font from
19354 OnFontChanged method, as well as resize the height of the
19355 control when needed. Make PreferredHeight proportional.
19357 2006-09-01 Chris Toshok <toshok@ximian.com>
19359 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
19362 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
19364 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
19366 * FileDialog.cs: Set ClientSize instead of window size, to allow space
19367 for decorations (Fixes #79219)
19369 2006-09-01 Mike Kestner <mkestner@novell.com>
19371 * ComboBox.cs: first stab at sorting plus some selection handling
19372 fixes to bring us more in line with MS behavior. Also switches back
19373 to index based selection. Alternative patches for index-based
19374 selection were provided by Jackson Harper, Carlos Alberto Cortez,
19375 and latency@gmx.de on bug 78848. I assume they were similar to this
19376 code I've had simmering in my tree forever.
19379 2006-09-01 Chris Toshok <toshok@ximian.com>
19381 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
19382 when setting list position guard against ending up with a -1 index
19383 (the other part of the fix for #78812). Should probably make sure
19384 we don't need the analogous fix in the ItemDeleted case.
19387 - in SetDataSource, work around the fact that the way
19388 OnBindingContextChanged is invoked will cause us to re-enter this
19389 method. I'll remove the hack once I investigate
19390 OnBindingContextChanged.
19392 - fix the logic in set_DataSource and set_DataMember (basically
19393 what to do if the other of the two is null.)
19395 - in OnListManagerItemChanged, we need to take into account the
19396 edit row when deciding whether or not to call RecreateDataGridRows
19397 (part of the fix for #78812).
19399 2006-09-01 Jackson Harper <jackson@ximian.com>
19401 * Splitter.cs: Don't do anything if there is no control to affect
19402 (prevents us from crashing in weird tet cases).
19403 * TreeView.cs: Bounding box for the mouse movement reverting
19404 focus/selection back to previously selected node. This matches
19405 MS, and makes the tree a lot more useable.
19406 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
19407 use clipping so they are not drawn. This fixes when the control
19408 is set to have a transparent background, or if it was over an
19411 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
19413 * MimeIcon.cs: Improved handling for reading default icons when
19414 using gnome (2.16 made it necessary). Check and read svg icons
19415 first, then 48x48 and then 32x32 icons.
19417 2006-08-31 Chris Toshok <toshok@ximian.com>
19419 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
19422 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
19423 ProcessKeyPreview. Fixes part of #77806.
19425 * DataGrid.cs: big patch.
19427 - revert the queueing up of DataSource/DataMember if inside
19428 BeginInit/EndInit calls. That's not the way the datagrid achieves
19429 its delayed databinding. Instead, call SetDataSource in
19430 OnBindingContextChanged. This mimic's MS's behavior, and fixes
19433 - Also, it wasn't mentioned in #78811, but the test case exhibits
19434 behavior that was lacking in our datagrid implementation - Columns
19435 that have mapping names that don't exist in the datasource's
19436 properties aren't shown. Yuck. To fix this I added the bound
19437 field to the column style, and basically any calculation to figure
19438 out anything about columns uses a loop to find the bound columns.
19439 still need to investigate if I can cache an array of the bound
19440 columns or if the indices must be the same.
19442 - When setting CurrentCell, we no longer abort if the cell being
19443 edited was in the add row. This fixes the other part of #77806.
19445 - The new code also fixes #78807.
19447 * ThemeWin32Classic.cs: perpetrate the same disgusting
19448 column.bound field hack, and only render bound fields.
19450 2006-08-31 Chris Toshok <toshok@ximian.com>
19452 * DataGridColumnStyle.cs: add bound field. this field is true if
19453 the datasource has a property corresponding to the mapping name.
19455 * DataGridTableStyle.cs: set the bound field on the column styles
19456 depending on whether or not we have a column for that property.
19458 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
19460 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
19461 splitter control (fixes #79228)
19463 2006-08-31 Chris Toshok <toshok@ximian.com>
19465 * DataGridColumnStyle.cs: we need to delay the assignment of
19466 property descriptor until the last possible moment due to the lazy
19467 databinding stuff in the datagrid. Also, fix the exceptions
19468 thrown by CheckValidDataSource to match MS.
19470 2006-08-31 Jackson Harper <jackson@ximian.com>
19472 * Form.cs: When activated select the active control, if there is
19473 no active control, we select the first control.
19474 * XplatUIX11.cs: If there is no focus control when we get a
19475 FocusIn event, find the toplevel form and activate it. This
19476 occurs when you popup a window, it becomes the focus window, then
19477 you close that window, giving focus back to the main window.
19479 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19481 * MonthCalendar.cs:
19482 * ThemeWin32Classic.cs: Cache Font in bold style, as well
19483 as StringFormat with Center alignments in MonthCalendar,
19484 instead of creating new ones when drawing the control.
19485 Also, draw the month name in bold style.
19487 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
19490 - PerformLayout(): It would seem MS performs the fill even if the
19491 control is not visible (part of #79218 fix)
19492 - ResetBackColor(): Use the setter to reset the color, to allow
19493 overriders to catch the change.
19495 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
19496 - CreateHandle(): dito (part of $79218 fix)
19497 - Don't set an icon if we have a dialog
19498 * ScrollableControl.cs:
19499 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
19500 - ScrollIntoView(): No need to scroll if control is already visible
19501 (resolves fixme and fixes #79218)
19503 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19505 * MonthCalendar.cs: Change proportions in SingleMonthSize
19506 to match the aspect of the original control.
19508 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
19510 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
19511 get updated when they get maximized.
19513 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
19515 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
19517 2006-08-29 Chris Toshok <toshok@ximian.com>
19519 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
19521 2006-08-29 Jackson Harper <jackson@ximian.com>
19523 * TreeView.cs: Need to track selected node and highlighted node,
19524 they aren't always the same thing, when the mouse is down on a
19525 node it is hilighted, but not selected yet.
19526 - Do the HideSelection stuff right
19527 - Need to focus on rbutton mouse down. And redraw selection when
19528 right click is mouse upped.
19530 2006-08-29 Mike Kestner <mkestner@novell.com>
19532 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
19533 when SubItems.Count < Columns.Count. [Fixes #79167]
19535 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19537 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
19539 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19541 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
19542 from X. Only send based on ConfigureNotify if we don't have the
19543 correct location in hwnd (if the window manager moved us)
19545 2006-08-28 Mike Kestner <mkestner@novell.com>
19547 * ListView.cs: remove a TODO.
19548 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
19549 [Fixes ListView part of #79166]
19551 2006-08-28 Mike Kestner <mkestner@novell.com>
19553 * ListView.cs: move wheel handler to parent since it is focused
19554 instead of the item_control now. [Fixes #79177]
19556 2006-08-28 Mike Kestner <mkestner@novell.com>
19558 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
19559 when the control is focused. [Fixes #79171]
19561 2006-08-28 Mike Kestner <mkestner@novell.com>
19563 * ListView.cs: size the item and header controls for empty and
19564 unscrollable views.
19565 * ThemeWin32Classic.cs: draw disabled backgrounds.
19568 2006-08-28 Chris Toshok <toshok@ximian.com>
19570 * Form.cs: remove unused "active_form" static field.
19572 * Hwnd.cs: lock around accesses to static windows collection.
19574 * Application.cs: lock threads in Exit ().
19576 2006-08-28 Chris Toshok <toshok@ximian.com>
19578 * NativeWindow.cs: lock around accesses to window_collection.
19580 2006-08-28 Chris Toshok <toshok@ximian.com>
19582 * Control.cs: err, fix this the right way, by locking on controls
19583 when using it. not by making it synchronized.
19585 2006-08-28 Chris Toshok <toshok@ximian.com>
19587 * Control.cs: make the static "controls" field synchronized, as it
19588 gets updated from multiple threads.
19590 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19592 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
19593 Prevent other threads from exiting when calling thread sets quit state.
19594 * XEventQueue.cs: Added PostQuitState property
19596 2006-08-27 Chris Toshok <toshok@ximian.com>
19598 * AsyncMethodData.cs: add a slot for the window handle.
19600 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
19601 window (the destination control's window, not the foster window).
19603 * Control.cs (BeginInvokeInternal): store the window's handle in
19604 the AsyncMethodData.
19607 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19610 - PostQuitMessage: Removed resetting S.D display handle, we might have
19611 another loop started after calling PostQuitMessage (Fixes #79119)
19612 - Created destructor to reset S.D handle
19614 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19616 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
19618 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19620 * TextControl.cs (Insert): Update the caret position even if we don't
19621 have a handle yet, just don't call the driver in that case.
19622 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
19623 to the end of the new selection text (Fixes #79184)
19625 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19627 * Form.cs (Activate): Only activate if the handle is created)
19629 - Mark window as invisible when it's disposed
19630 - Check if window handle is created when setting window visible,
19631 instead of relying just on the is_created variable
19632 - Check if object is disposed when creating the control (Fixes #79155)
19634 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19636 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
19637 when allowing layout again. Otherwise we re-generate the anchoring
19638 distance to the border again and actually alter what the user wanted
19639 This is ugly, it'd be better if we used DisplayRectangle instead of
19640 ClientRectangle for Control.UpdateDistances, but that causes us to
19641 have other problems (initial anchoring positons would be wrong)
19644 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19647 - The size and location setters shouldn't go directly to
19648 SetBoundsCore, but to SetBounds, which triggers layout on the
19649 parent, then calls SetBoundsCore. (Related to fix for #78835)
19650 - SetBounds: Moved actual location update code into this function
19651 from SetBoundsCore, to match MS. Added call to PerformLayout if
19652 we have a parent (to trigger resizing of anchored parents if the
19653 child size has changed (see testcase for #78835)
19654 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
19656 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
19658 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19660 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
19661 System.Drawing when a toplevel window gets closed; there might
19662 be other toplevel windows belonging to the same app (Fixes #78052)
19664 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
19666 * FileDialog.cs: After reading FileDialog settings from mwf_config
19667 use Desktop prefix only if a real folder doesn't exist anymore.
19668 * FontDialog.cs: Added char sets.
19669 It is now possible to select the font, size or style with the
19672 2006-08-25 Kornél Pál <kornelpal@gmail.com>
19674 * PrintPreviewDialog.cs: Use assembly name constants.
19676 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19678 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
19679 scrollbar from whacking it's buttons)
19681 2006-08-24 Chris Toshok <toshok@ximian.com>
19683 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
19684 in this patch (aggregating setting Left/Top/Width/Height to
19685 setting Bounds on the scrollbars), but the crux of the fix is in
19686 Recalculate, where we scroll by the remaining scroll_position if
19687 we're hiding a scrollbar. The 2*$5 reward in the comment is
19690 2006-08-24 Jackson Harper <jackson@ximian.com>
19693 * MdiWindowManager.cs: If the form is made a non-mdi window we
19694 need to remove the form closed event so that closing forms works
19697 2006-08-24 Jackson Harper <jackson@ximian.com>
19699 * Control.cs: Make IsRecreating internal so that the driver can
19701 - Temporarily remove the Hide when controls are removed, its
19702 making a whole bunch of things not work because visibility isn't
19703 getting reset elsewhere correctly
19704 * Form.cs: Need to do a full handle recreation when the mdi parent
19706 * XplatUIX11.cs: If we are recreating handles don't dispose the
19707 HWNDs. What was happening is the handles were being recreated in
19708 SendWMDestroyMessages, but then flow continued on in that method
19709 and destroyed the new handles.
19711 2006-08-23 Jackson Harper <jackson@ximian.com>
19713 * Form.cs: MdiClient is always at the back of the bus
19714 * Control.cs: When the order of items in the collection is changed
19715 we need to reset the all_controls array
19716 - do the same sorta setup thats done when adding a control when a
19717 control is set on the collection.
19719 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19721 * TextBoxBase.cs (get_Text): Return an empty array if our document
19722 is empty (fixes #79052)
19724 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19726 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
19727 on WM_SYSCHAR messages (fixes #79053)
19729 2006-08-23 Chris Toshok <toshok@ximian.com>
19731 * DataGrid.cs: fix flickering when scrolling vertically.
19733 2006-08-23 Chris Toshok <toshok@ximian.com>
19735 * DataGrid.cs (EndEdit): only invalidate the row header when we
19738 2006-08-23 Chris Toshok <toshok@ximian.com>
19740 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
19741 methods. fixes the flicker when scrolling around.
19743 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19745 * FileDialog.cs: Making sure the control is created before we get a
19746 chance to use it with BeginInvoke (Fixes #79096)
19748 2006-08-23 Chris Toshok <toshok@ximian.com>
19750 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
19751 width to use when painting the rows.
19753 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19756 - Throw ArgumentException if a negative value is passed to SelectionLength
19757 - Update the selection end if start is moved. end needs to be always
19758 after start. (Fixes #79095)
19759 - Track selection length; MS keeps the selection length even if start
19760 is changed; reset on all other operations affection selection
19762 2006-08-22 Jackson Harper <jackson@ximian.com>
19764 * TreeView.cs: Make sure both scrollbars get displayed and sized
19765 correctly when the other bar is visible.
19766 - Use the original clip rectangle for checking if the area between
19767 the two scrollbars is visible, not the viewport adjusted clipping
19770 2006-08-22 Jackson Harper <jackson@ximian.com>
19772 * Binding.cs: We don't use IsBinding because it requires the
19773 control to be created, which really shouldn't be necessary just to
19774 set a property on the control.
19776 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19778 * ComboBox.cs: Some CB.ObjectCollection methods must throw
19779 ArgumentNullReferenceException when the argument is null.
19781 2006-08-21 Jackson Harper <jackson@ximian.com>
19783 * Timer.cs: Track the thread that the timer is started in (NOT
19784 CREATED), this way messages for it will only be triggered on its
19786 * XEventQueue.cs: Track the timers here, this makes timers per
19788 * XplatUIX11.cs: The timers are moved to the XEventQueue.
19790 2006-08-19 Chris Toshok <toshok@ximian.com>
19792 * XplatUIX11.cs: after further communication with pdb, we get the
19793 best of both worlds. SetZOrder working for un-Mapped windows, and
19794 no X errors for un-mapped windows.
19796 2006-08-19 Chris Toshok <toshok@ximian.com>
19798 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
19799 as it was causing pdn toolbars to not have the correct stacking.
19801 2006-08-18 Mike Kestner <mkestner@novell.com>
19803 * ListView.cs : guard against negative ClientArea.Width in scrollbar
19804 calculation. Not sure why control should ever be setting a negative
19805 width though. Fixes #78931.
19807 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19809 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
19810 null items in ObjectCollection class.
19811 * ListBox.cs.: Likewise.
19813 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
19815 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
19816 as the base method in ThemeWin32Classic should work fine.
19819 2006-08-18 Jackson Harper <jackson@ximian.com>
19821 * Binding.cs: When validating if the value entered doesn't convert
19822 properly reset to the old value.
19823 * RadioButton.cs: Don't fire click when we get focus.
19825 2006-08-18 Jackson Harper <jackson@ximian.com>
19827 * FileDialog.cs: Paint the selection on the directory combobox the
19830 2006-08-17 Jackson Harper <jackson@ximian.com>
19832 * ErrorProvider.cs: Don't allow the error control to be selected.
19833 * Control.cs: Don't send the SetFocus messages, the control
19834 activation will do this, and if we do it blindly here validation
19837 2006-08-17 Jackson Harper <jackson@ximian.com>
19840 * ContainerControl.cs: Make validation events fire in the correct
19841 order. TODO: For some reason the first validation event is not
19844 2006-08-17 Mike Kestner <mkestner@novell.com>
19846 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
19848 2006-08-17 Mike Kestner <mkestner@novell.com>
19850 * ComboBox.cs : implement scroll wheel support for popped-down
19851 state. Fixes #78945.
19853 2006-08-17 Jackson Harper <jackson@ximian.com>
19855 * TreeView.cs: Specify treeview actions (old patch that didn't get
19856 committed for some reason).
19857 - Don't let the mouse wheel scroll us too far. Just want to make
19858 the bottom node visible, not scroll it all the ways to the top.
19860 2006-08-17 Jackson Harper <jackson@ximian.com>
19862 * XplatUIX11.cs: Mouse wheel events go to the focused window.
19864 2006-08-17 Mike Kestner <mkestner@novell.com>
19866 * ComboBox.cs : don't do mouseover selection in simple mode.
19868 2006-08-16 Jackson Harper <jackson@ximian.com>
19870 * Form.cs: Fire the closing events for all the mdi child windows
19871 when a window is closed. If the cancel args are set to true, the
19872 main window still gets the event fired, but it doesn't not close.
19873 * MdiWindowManager.cs: Do this closing cleanup in a Closed
19874 handler, instead of when the button is clicked, so cancelling the
19875 close works correctly.
19876 * ComboBox.cs: Send the mouse down to the scrollbar.
19878 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19880 * ListBox.cs: When passing 'null' to SelectedItem,
19881 set SelectedIndex to -1, to unselect items. This is the
19882 observed behaviour in .Net.
19884 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
19886 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
19887 MS flags saying there won't be any. (fixes #78800)
19888 * Control.cs (HandleClick): Made virtual
19890 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
19892 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
19893 cultures. Fixed bug #78399.
19895 2006-08-16 Jackson Harper <jackson@ximian.com>
19897 * Form.cs: Use the MdiClients MdiChildren property to access
19898 MdiChildren instead of creating the array from the child controls.
19899 * MdiClient.cs: Maintain a separate array of the mdi children, so
19900 that insertion order is maintained when the Z-order is changed.
19902 2006-08-16 Mike Kestner <mkestner@novell.com>
19904 * ListView.cs : add an ItemComparer and default to it for sorting.
19905 Fixes #79076, but sorting needs a complete overhaul to be compat with
19908 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19910 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
19912 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19914 * Hwnd.cs (Mapped): Properly traverse the tree
19916 2006-08-15 Chris Toshok <toshok@ximian.com>
19918 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
19919 pass manager.Current.GetType() to ParseData. It has to be the
19920 property type. So, hold off doing the ParseData until we're in
19921 SetPropertyValue where we know the type. This fixes the crash in
19922 #78821 but the textbox is still empty.
19924 2006-08-15 Chris Toshok <toshok@ximian.com>
19927 - when we're scrolling, only call Edit() again if the
19928 current cell is still unobscured. Fixes bug #78927.
19929 - when handling mousedown on a cell, ensure the cell is visible
19930 before calling Edit.
19931 - remove the properties from DataGridRow, and remove the
19932 DataGridParentRow class altogether.
19935 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19937 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
19938 fire OnTextChanged by ourselves. There's no point calling base,
19939 we don't set the base value anywhere else. Fixes #78773.
19941 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19943 * ListBox.cs: Call CollectionChanged when modifying
19944 an item from Items indexer, to update the actual items
19947 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19949 * PrintDialog.cs: Small fixes for focus and a pair of checks,
19950 to match .Net behaviour.
19952 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19954 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
19956 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19958 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
19960 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19962 * MessageBox.cs: Prevent potential NRE exception.
19963 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
19965 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
19967 * MessageBox.cs: Calculate the owner of a messagebox, also make
19968 it topmost. Fixes #78753
19970 2006-08-14 Chris Toshok <toshok@ximian.com>
19972 * XplatUIX11.cs: A couple of fixes so that metacity will let us
19973 programmatically move windows. first, set the PPosition hint as
19974 well as the USPosition hint. Second include some code from pdb
19975 that sets the window type to NORMAL when we set the transient for
19976 hint. This is because, in the absence of a window type, metacity
19977 thinks any window with TransientFor set is a dialog, and refuses
19978 to let us move it programmatically. fascists.
19980 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
19982 * XplatUIX11.cs: When setting normal hints, take into consideration
19983 an different hints previously set so we don't delete them (fixes #78866)
19985 2006-08-12 Chris Toshok <toshok@ximian.com>
19987 * ToolBarButton.cs: make Layout return a boolean, if something to
19988 do with the button's layout changed.
19991 - add another parameter to Redraw, @force, which all existing
19993 - make the Layout function return a boolean which is true if the
19994 layout has actually changed. Redraw now uses this (and @force)
19995 to determine when to invalidate. At present the only place
19996 where @force can be false is the call from OnResize, when
19997 background_image == null. So, resizing a toolbar when the
19998 layout doesn't change results in no drawing.
20000 2006-08-12 Chris Toshok <toshok@ximian.com>
20002 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
20003 the VScrollBar and HScrollbar reversed. oops.
20005 * DataGrid.cs: fix the logic that assigns sizes to the implicit
20006 scrollbars. we were assigning them twice (once in
20007 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
20008 therefore causing two scrollbar resizes (and redraws?) to happen
20011 2006-08-12 Chris Toshok <toshok@ximian.com>
20013 * ToolBarButton.cs: redraw the entire button if the theme tells us
20016 * Theme.cs: add ToolBarInvalidateEntireButton.
20018 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
20019 buttons, just the border.
20021 * ThemeNice.cs: redraw the entire toolbar button since we need to
20022 draw the highlight image.
20024 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
20025 we need to redraw the entire button (not just the border).
20027 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
20029 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
20030 for vertical bars. Fixes the mismatches shown by #78513
20032 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
20034 * FileDialog.cs: If a saved/remembered path doesn't exist
20035 anymore, fall back to "Desktop".
20037 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
20039 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
20040 parent. It's apparently legal to not have one
20042 - SetZOrder: Don't try to set Z-Order on an unmapped window
20043 - CreateWindow: 0,0 are legal coordinates for a window. don't move
20044 it unless the coordinates are negative
20046 2006-08-10 Mike Kestner <mkestner@novell.com>
20048 * ListControl.cs: allow null for DataSource. Clear DisplayMember
20049 when setting to null per msdn docs. Fixes #78854.
20051 2006-08-10 Chris Toshok <toshok@ximian.com>
20053 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
20054 flickering by setting a clip rectangle on the Graphics when we
20055 need to redraw just a particular menuitem. Also, rename "OnClick"
20056 to "OnMouseDown" to reflect what it actually is.
20058 * Form.cs: track the OnMouseDown change.
20060 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
20062 * CommonDialog.cs: Properly inherit the CreateParams from the form
20063 and only change what we need. Fixes #78865
20065 2006-08-10 Chris Toshok <toshok@ximian.com>
20067 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
20068 flickering in flat mode (and most of the flickering in general) by
20069 only invalidating the button border (and not the entire rectangle)
20070 when the state changes. A couple of cases still flicker:
20071 ToggleButtons, and the dropdown arrow case when the user mouse
20074 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
20076 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
20077 for german keyboards. Numlock state shouldn't affect the behaviour
20078 of the Del key. Fixes bug #78291.
20080 2006-08-10 Chris Toshok <toshok@ximian.com>
20082 * ListControl.cs: remove the items.Clear line from BindDataItems,
20083 as this is the first thing done by both subclasses in their
20084 SetItemsCore overrides. Also, add a ItemChanged handler, and when
20085 passed -1, refresh the list. This gets databinding working when
20086 the datasource is set on the list before the datasource is
20087 populated (as in wf-apps/ReportBuilder.)
20089 * ComboBox.cs: remove the argument to BindDataItems. This call
20090 should really go away, and be initiated by the ListControl code.
20092 * ListBox.cs: same.
20094 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20096 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
20097 if no data is in the document when the control is displayed
20099 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20101 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
20104 - PositionCaret: Allow positioning of caret but don't call methods
20105 requiring a handle if the window isn't created yet
20106 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
20107 - owner_HandleCreated: Don't position the caret, just update it's
20108 location. User might have already set a different position
20110 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20112 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
20113 windows. Screws up the returned coordinates for child windows.
20114 Fixes #78825. I'm hoping this doesn't break something, since the
20115 code was explicitly put in 8 months ago, but no bug was attached.
20116 Menus still seem to work properly.
20118 2006-08-08 Chris Toshok <toshok@ximian.com>
20120 * DataGrid.cs: make BeginInit/EndInit actually do what they're
20121 supposed to do - delay data binding until the EndInit call. Also,
20122 make the table style collection's CollectionChangeAction.Refresh
20125 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
20126 (with action = Refresh) when a consituent table's MappingName is
20129 2006-08-08 Chris Toshok <toshok@ximian.com>
20131 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
20132 Invalidate, since changing the text can change the size of the all
20135 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
20137 * Form.cs (AddOwnedForm): Still need to add the form to our listif
20138 we don't have it yet
20140 2006-08-08 Chris Toshok <toshok@ximian.com>
20142 * PrintControllerWithStatusDialog.cs: don't .Close() the status
20143 dialog, as this causes X errors later on, since we actually
20144 destroy the window. Instead, .Hide() it.
20146 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
20148 * ComboBox.cs: Added focus reflection for popup window
20150 - Removed transient setting for non-app windows for now, not sure it
20152 - Fixed logic checking if we have captions when deciding
20153 override_redirect, WS_CAPTION is two bits and a 0 check was not
20155 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
20158 - AddOwnedForm: Don't just add the form to the list, call the property
20159 to ensure the driver is informed about the ownership as well
20160 - CreateHandle: Set the TopMost status in the driver if we have an owner
20161 * XplatUI.cs: Fixed debug statement
20163 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
20164 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20165 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
20166 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
20167 TrackBarRenderer.cs: Make constructor private.
20168 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
20169 * ProfessionalColorTable.cs: Make properties virtual.
20171 2006-08-06 Duncan Mak <duncan@novell.com>
20173 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
20176 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20177 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20178 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
20179 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
20180 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
20181 Initial import of new 2.0 classes.
20183 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20184 * Application.cs: Add 2.0 VisualStyles properties.
20186 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20187 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20188 XplatUIX11.cs: Create property to allow access to existing private
20189 variable "themes_enabled"
20191 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20193 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
20194 file size, as otherwise our class libraries fail using windows. Fixes
20197 2006-08-04 Jackson Harper <jackson@ximian.com>
20200 * XplatUIX11.cs: Move the toolwindow window manager creation into
20201 the X11 driver, this way on win32 we can let windows create/handle
20204 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20206 * PrintDialog.cs: Remove some redundant checks, add some others,
20207 clean some code, and move the focus to the text boxes when the
20208 values are incorrect.
20210 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
20212 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
20214 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20216 * NumericUpDown.cs: Setting the Minimum and Maximum is now
20217 handled correctly. Fixes bug #79001.
20219 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20221 * PrintDialog.cs: The "Copies" numeric up down must have
20222 set the Minimum property to 1; only if the value is bigger
20223 than 1, activate "Collate" check box. This is the behaviour of .Net.
20224 Also modify the Document elements only if it is not null.
20226 2006-08-03 Jackson Harper <jackson@ximian.com>
20228 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
20229 length. (We have a larger array then actual node count).
20231 2006-08-03 Jackson Harper <jackson@ximian.com>
20233 * ComboBox.cs: Don't show selection by default.
20234 - The SelectAll isn't needed here, since the focus code should do
20236 - DDL style lists to manual selection drawing, so when they
20237 get/lose focus they have to invalidate.
20239 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
20241 * TextBoxBase.cs: Don't always show all selections by default.
20243 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
20244 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
20245 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
20246 Fixed various typos.
20248 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20250 * Control.cs: Removing the controls in a ControlCollection with
20251 Clear now hides the controls as expected. Fixes bug #78804.
20253 2006-08-03 Jackson Harper <jackson@ximian.com>
20255 * Control.cs: Revert previous focus patch, it breaks reflector.
20257 2006-08-03 Jackson Harper <jackson@ximian.com>
20259 * ComboBox.cs: Cleanup selection and focus with the combobox.
20260 This also eliminates some duplicated keyboard code, since now
20261 everything is handled by the main class.
20262 - Make list selection work on mouse up instead of down, to match
20265 2006-08-02 Jackson Harper <jackson@ximian.com>
20267 * Control.cs: Setting focus needs to go through the whole
20268 selection mechanism.
20270 2006-08-02 Chris Toshok <toshok@ximian.com>
20272 * PrintPreviewDialog.cs: change MinimumSize to use
20273 base.MinimumSize so it works.
20275 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
20278 - UpdateCaret: Added sanity check in case caret isn't defined yet
20279 - Line.Delete: Now updating selection and caret markers if we're
20280 transfering a node (Properly fixes #78323)
20281 - SetSelectionEnd: Added sanity check
20282 * TextBoxBase.cs: Removed broken attempt to fix #78323
20284 2006-08-01 Chris Toshok <toshok@ximian.com>
20286 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
20287 Close() call is handled in Form, not here.
20289 2006-08-01 Chris Toshok <toshok@ximian.com>
20291 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
20294 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
20295 for sizes < 100% zoom. The code now aggressively attempts to keep
20296 from calling document.Print (), and tries not to use the scaling
20297 g.DrawImage whenever possible (it still does if you scale to >
20298 100%, since usually that involves huge images).
20300 * PrintPreviewControl.cs: hook up the close button.
20302 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
20303 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
20304 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
20305 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
20306 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
20307 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
20308 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
20309 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
20310 Removed [Serializable] for 2.0 Event Handlers.
20312 2006-07-31 Jackson Harper <jackson@ximian.com>
20314 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
20315 * TextControl.cs: Uncomment out the body of this method.
20317 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
20319 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
20322 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20324 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
20325 that embed TextBox and need selections visible even if textbox is not
20326 focused to enforce that behaviour.
20327 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
20330 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20333 - Added new SetSelectionStart/SetSelectionEnd overloads
20334 - Fixed viewport width assignment to be accurate
20335 - Adjusted alignment line shift calculations to allow cursor on right
20336 aligned lines to be always visible at the right border (like MS)
20338 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
20339 - TextBoxBase_SizeChanged: recalculating canvas on size changes
20340 - CalculateScrollBars: Use ViewPort size instead of window size, to
20341 properly consider space occupied by the border and scrollbars
20343 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
20344 calculations; no longer leaves artifacts
20345 - CaretMoved: Adjusted window scrolling to match MS and fixed several
20346 calculation bugs (Still missing right/center align calculations)
20348 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20350 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
20351 use of both scroll rect and clip rect, as they do the same.
20353 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20355 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
20356 in the event handler (fixes #78912)
20358 2006-07-31 Chris Toshok <toshok@ximian.com>
20360 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
20361 grid.ListManager.Count, since grid.ListManager might be null.
20362 This of course begs the question "why are we drawing rows for a
20363 grid with no list manager (and therefor no rows)?" Fixes the
20364 crash in bug #78929.
20366 2006-07-31 Chris Toshok <toshok@ximian.com>
20368 * RelatedPropertyManager.cs: Don't always chain up to the parent
20369 ctor. instead, call SetDataSource if the parent's position is !=
20370 -1. Fixes the crash in #78822.
20372 2006-07-31 Chris Toshok <toshok@ximian.com>
20374 * DataGrid.cs (get_ListManager): use field instead of property
20375 accessors for datasource and datamember.
20376 (RowsCount): make internal again.
20377 (OnMouseDown): end edits before resizing columns/rows.
20378 (OnMouseUp): restart edits after resizing columns/rows.
20380 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
20382 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
20383 This fixes the situation where the last set cursor is displayed
20384 whenever the mouse is over scrollbars.
20386 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20388 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
20389 Document properties, as well as initial values.
20391 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
20393 * XplatUIWin32.cs (SetBorderStyle): Setting both border
20394 and ClientEdge results in a 3-pixel border, which is
20397 2006-07-28 Jackson Harper <jackson@ximian.com>
20399 * TreeNodeCollection.cs: Fix the clear method.
20400 - Fix the Shrink also
20402 2006-07-27 Jackson Harper <jackson@ximian.com>
20404 * TreeView.cs: Make sure the visible order is computed when we
20405 attempt to size the scrollbars (for trees that mess with the
20406 scrolling when they shouldn't.
20407 - Make sure to give the scrollbars valid values.
20409 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20411 * XplatUIX11.cs: Move motion compression code to where it
20412 has less performance impact
20414 2006-07-26 Jackson Harper <jackson@ximian.com>
20416 * UpDownBase.cs: When the control is selected make the child
20417 controls non selectable, so that a click on them won't do a
20418 focus/unfocus cycle.
20419 - Don't give focus to the text box when the spinner is selected.
20420 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
20422 2006-07-26 Chris Toshok <toshok@ximian.com>
20424 * ThemeWin32Classic.cs: add print preview rendering. I'm not
20425 satisfied with this solution. If the bitmaps are small, we should
20426 just cache them in the PrintPreviewDialog and draw them here.
20427 Also, the layout is broken for the 2-up and 3-up cases.
20429 * Theme.cs: add PrintPReviewControlPaint.
20431 * PrintPreviewDialog.cs: first pass implementation.
20433 * PrintPreviewControl.cs: first pass implementation. No
20436 * PrintDialog.cs: only validate fields if that particular portion
20437 of the UI is enabled. Also, set the document's controller to a
20438 PrintControllerWithStatusDialog wrapping the document's print
20441 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
20442 bring up a SaveFileDialog (i hope we don't want to match the
20443 behavior of the crappy windows file entry) and set the
20444 PrinterSettings.PrintFileName accordingly.
20446 2006-07-26 Jackson Harper <jackson@ximian.com>
20448 * ContainerControl.cs: Add a field that disables auto selecting
20449 the next control in a container when the container is activated.
20450 * UpDownBase.cs: Don't select the text box when the up down is
20453 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20455 * XEventQueue.cs: Added methods for peeking (used for compression
20456 of successive events)
20457 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
20458 mouse move events (fixes #78732)
20460 2006-07-25 Jackson Harper <jackson@ximian.com>
20462 * UpDownBase.cs: Use an internal class for the textbox so that we
20463 can control focus. the updown control should always have focus,
20464 if either the text area or the buttons are clicked.
20465 - Send the key messages to the textbox, since it never actually
20467 - Activate and decativate the textbox caret.
20469 2006-07-24 Jackson Harper <jackson@ximian.com>
20471 * Control.cs: Use the directed select when selecting a control,
20472 this way the container controls override will get called and the
20473 whole ActiveControl chain will get triggered. TODO: probably need
20474 to make sure this gets done everywhere instead of the old
20476 * ContainerControl.cs: Implement the directed Select method to
20477 find and activate the correct child control.
20479 2006-07-22 Mike Kestner <mkestner@novell.com>
20481 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
20482 menu handling code so that clicks without a grab work too.
20485 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
20487 * FileDialog.cs: Enable the BackButton when dirstack has one element.
20488 Added some small optimizations.
20490 2006-07-21 Matt Hargett <matt@use.net>
20492 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
20494 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
20496 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
20497 tests pass and match MS in some strange border cases.
20499 2006-07-21 Chris Toshok <toshok@ximian.com>
20501 * ThemeWin32Classic.cs: handle drawing of the relation links and
20502 parent row buttons.
20504 * Theme.cs: change args to DataGridPaintParentRow.
20506 * DataGrid.cs: Don't use controls for the relation links and
20507 parent buttons, so we have to handle all their interactions in
20508 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
20509 when we're navigating through child tables, so we can reinstate
20510 selection, expanded state, current cell, etc.
20512 2006-07-20 Chris Toshok <toshok@ximian.com>
20514 * ToolBar.cs: When we redraw a button, for whatever reason,
20515 there's no reason to redraw the entire toolbar. Also, don't call
20516 Control.Refresh from within Redraw, as it's much heavier than
20517 Invalidate (which is really what we want).
20519 2006-07-20 Chris Toshok <toshok@ximian.com>
20521 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
20522 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
20523 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
20524 traces from within a debug IBindingList datasource
20525 (in mono/winforms/datagrid) for *days*, I've finally gotten things
20526 to work in a similar fashion.
20528 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20530 * ListBox.cs: Don't call Sort () when setting
20531 the Sorted property to false (avoid an unnecessary sort).
20533 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20535 * ListControl.cs: DataSource should throw an ArgumentException
20536 instead of a normal exception when the argument is not of the
20539 2006-07-20 Mike Kestner <mkestner@novell.com>
20541 * Control.cs: add InternalPreProcessMessage to allow us to steal
20542 key events before MWF gets its paws on them. Adapted from a
20544 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
20545 up/down/left/right navigation. Override the new internal control
20546 method to steal the events since they never make it to WndProc.
20547 * ToolBarButton.cs: don't worry about pushed when setting hilight
20548 since the drawing code prefers pushed to hilight. Invalidate on
20549 Hilight changes. Fixes #78547 and #78525.
20551 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20553 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
20554 the canvas size. Fixes #78868
20556 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20558 * Splitter.cs: Track requested split position until first layout
20559 is performed. Fixes #78871
20561 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20563 * Application.cs: Removed code that forces 1.x for the version
20564 number if the version started with 0. Not sure why that code was
20565 there and I couldn't find any bugs that indicated we needed it.
20568 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
20570 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
20571 ResetDefaults(), just write some output to the console until it's
20572 implemented. Fixes bug #78907 for now. Eliminated two warnings.
20574 2006-07-19 Jonathan Chambers <joncham@gmail.com>
20576 * PropertyGridView.cs: set StartPosition of drop down forms
20577 so they appear in correct initial spot. Fixes #78190.
20579 2006-07-19 Mike Kestner <mkestner@novell.com>
20581 * ThemeWin32Classic.cs: use parent background color when drawing
20582 flat toolbars. Restructure the conditionals to make sure non-flat
20583 non-Divider toolbars are filled too. Fixes #78837.
20585 2006-07-19 Mike Kestner <mkestner@novell.com>
20587 * ListBox.cs: Sort on collection changes even if the handle
20588 isn't created yet. Fixes #78813.
20590 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20592 * ListControl.cs: DisplayMember should never be null,
20593 and now we assign String.Empty when null is passed to it (this
20596 2006-07-17 Mike Kestner <mkestner@novell.com>
20598 * ListViewItem.cs: restructure Font and subitem Font handling
20599 to hold a specific font and refer back to owner on null.
20602 2006-07-17 Mike Kestner <mkestner@novell.com>
20604 * ToolBar.cs: bandaid for side-effect of previous patch which was
20605 discarding explicit heights for non-AutoSize toolbars. Need to
20606 extend my format tester to deal with AutoSize=false. Fixes #78864.
20608 2006-07-15 Jackson Harper <jackson@ximian.com>
20610 * LabelEditTextBox.cs:
20611 * TreeView.cs: Use a new LabelEdit class for node editing, this
20612 class automatically 'closes' itself when it gets the enter key or
20614 - Use the client rectangle when setting the trees scrollbars, so
20615 border style is taken into account.
20617 2006-07-14 Jackson Harper <jackson@ximian.com>
20620 * TreeView.cs: Make the editing work similar to MSs, firing the
20621 events correctly and ending edits correctly.
20623 2006-07-14 Mike Kestner <mkestner@novell.com>
20625 * ToolBarButton.cs:
20626 * ToolBar.cs: layout restructuring and redraw enhancements to support
20627 formatting changes gracefully, like setting TextAlign, ImageList,
20628 ButtonSize, and Appearance. Handles explicit button sizing quirks
20629 of the MS controls. Things like flat toolbars ignoring button size
20630 but becoming constant sized at the largest button's size. Normal
20631 toolbars with an image set cannot be shrunk smaller than the image,
20632 but text can be clipped/ignored.
20633 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
20634 is zero. Seems like DrawString should be smart enough to not put
20635 anything on screen though. Also trim labels and ellipsize at the char
20636 boundary, not word.
20637 Fixes #78711 and #78483.
20639 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20641 * FolderBrowserDialog.cs: Disable "New Folder" button and
20642 "New Folder" contextmenu menuitem if a folder like "My Computer"
20645 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20647 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
20648 * FolderBrowserDialog.cs:
20649 - Use MWFConfig to store and read size and position settings
20650 - Added code to create a new folder (button or context menu).
20651 Use TreeView labeledit to change the name of the new folder.
20653 2006-07-14 Jackson Harper <jackson@ximian.com>
20655 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
20656 when the tree is scrolled we end editing.
20658 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20660 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
20663 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
20665 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
20666 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
20667 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
20668 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
20669 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
20670 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
20671 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
20672 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
20673 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
20674 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
20675 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
20676 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
20677 ListViewItemSelectionChangedEventHandler.cs,
20678 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
20679 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
20680 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
20681 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
20682 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
20683 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
20684 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
20685 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
20686 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
20687 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
20688 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
20689 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
20690 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
20691 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
20692 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
20693 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
20694 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
20695 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
20696 WebBrowserNavigatingEventHandler.cs,
20697 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
20699 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
20701 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
20702 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
20703 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
20704 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
20705 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
20706 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
20707 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
20708 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
20709 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
20710 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
20711 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
20712 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
20713 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
20714 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
20715 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
20716 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
20717 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
20718 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
20719 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
20720 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
20721 ListViewItemStates.cs, MaskFormat.cs: Added
20723 2006-07-13 Jonathan Chambers <joncham@gmail.com>
20725 * PropertyGridView.cs: Fix keyboard navigation of drop down.
20726 Patch from eno for bug 78558.
20728 2006-07-13 Jackson Harper <jackson@ximian.com>
20730 * TreeView.cs: When an edit is finished make sure that the
20731 selected node is visible.
20732 - When setting the top/bottom use the scrollbars is_visible, so
20733 everything will be set correctly even if the tree isn't visible
20736 2006-07-13 Jackson Harper <jackson@ximian.com>
20738 * ComboBox.cs: Revert the item->index part of my previous patch.
20739 * TreeView.cs: Use LostFocus instead of Leave for detecting when
20740 the edit box has lost focus (duh).
20741 - Just make the edit box not visible when we get return, that will
20742 take the focus, which will call EndEdit
20743 * TreeNode.cs When we start editing, notify the treeview.
20745 2006-07-12 Jackson Harper <jackson@ximian.com>
20747 * ComboBox.cs: Clear out old items before setting the item list.
20748 This prevents databound controls from having their items added
20750 - Switch the combobox to use indices whereever possible instead of
20751 using Item's. This allows usto navigate through lists that have
20752 more then one item with the same string value (ie a, b, b, a).
20753 - Scroll the listboxes scrollbar when a non visible item is
20755 - Allow keypress to cycle through all the possible values. For
20756 example if you have b1, b2, b3 and hold down the B key all the
20757 values will be cycled through.
20759 2006-07-12 Jackson Harper <jackson@ximian.com>
20762 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
20763 this using the internal methods.
20764 * Control.cs: Add OnGotFocusInternal. A new method that allows
20765 controls to "override" OnGotFocus and change focus behavior if
20767 - Same thing for LostFocus
20768 * ComboBox.cs: Pass off focus to the text control properly.
20770 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
20772 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
20773 * FolderBrowserDialog.cs: Almost a complete rewrite.
20774 - Better support for Environment.Specialfolders
20775 - Added support for MWFVFS
20776 - Made setting SelectedPath work
20778 2006-07-12 Jackson Harper <jackson@ximian.com>
20780 * Control.cs: Optimze getting all the controls.
20782 2006-07-11 Jackson Harper <jackson@ximian.com>
20784 * ContainerControl.cs: Override SETFOCUS in the container control,
20785 so that it is not selected on mouse click.
20787 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
20789 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
20790 Hopefully we will have a better way once all of focus is complete.
20792 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
20794 * ThemeWin32Classic.cs: Commented out some debug code and fixed
20795 a compile error with csc.
20797 2006-07-11 Jackson Harper <jackson@ximian.com>
20799 * Control.cs: When hiding a control only select the next control
20800 if the current control was focused.
20801 - Don't handle enter/leave when setting/killing focus, this is
20802 done by the container control.
20803 - Remove is_selected, it's not needed anymore.
20804 - Add utility methods for selecting a child control, and for
20805 firing the Enter/Leave events.
20806 * ContainerControl.cs: When a control is activated fire the
20807 enter/leave events.
20808 - Don't wrap when processing the tab key, so that focus can be
20809 moved outside of the container.
20810 - Use the correct active control
20812 2006-07-11 Jackson Harper <jackson@ximian.com>
20814 * ComboBox.cs: Remove some debug code that was blinding me.
20815 * UpDownBase.cs: These controls actually aren't implicit, they are
20816 visible to the user.
20818 2006-07-10 Chris Toshok <toshok@ximian.com>
20820 * DataGrid.cs: move back to the is_adding boolean field. god i
20821 hate this is_editing/is_adding/is_changing stuff.
20823 2006-07-10 Chris Toshok <toshok@ximian.com>
20825 * DataGridTableStyle.cs: just check if the property type is bool.
20826 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
20827 Don't use CanRenderType.
20829 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
20830 if our text == NullText. Remove CanRenderType.
20832 * DataGridBoolColumn.cs: nuke CanRenderType.
20834 * DataGrid.cs: reenable some code to end the current edit inside
20835 of set_CurrentCell. This fixes the other 1.1.16 regression.
20836 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
20837 Also, remove the visible_row_count arg from CalcRowHeaders, since
20838 we don't need to worry about the actual height of the area.
20840 2006-07-10 Chris Toshok <toshok@ximian.com>
20842 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
20845 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
20846 the real sense of the IsInEditOrNavigateMode property (true =
20847 navigate, false = edit). Also, update OnKeyPress to reflect this.
20849 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
20850 column style exists, we still need to set its property descriptor
20851 to match up with our list manager.
20853 2006-07-10 Chris Toshok <toshok@ximian.com>
20855 * ThemeWin32Classic.cs: implement the new row/header painting
20856 approach. The parent row painting will likely go away and
20857 replaced with label controls, but the rest seems to work ok (and
20860 * Theme.cs: change the way we draw datagrid rows. we don't draw
20861 the row headers as a block now. Instead we draw them in the
20862 normal draw-row loop. Add some calls for drawing parent rows and
20865 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
20866 a default table style. Set the defaults from ThemeEngine.Current,
20867 not SystemColors. Fix lots of misc issues with property setters.
20869 * DataGrid.cs: move loads of style information out of this class
20870 as it's being duplicated with DataGridTableStyle. keep track of a
20871 special DataGridTableStyle for the properties we used to mirror
20872 here. Switch all the style properties to access this table style
20873 instead of instance fields of this class. Also add a internal
20874 class to represent parent rows (more needs to be stored here, like
20875 the selection state from the parent table, as well as the
20876 expansion state.) Also, for datasources with relations, do the
20877 right thing for collapse/expand, and add support for the
20878 navigation/parent row buttons.
20880 Lastly, fix the crash in the 1.1.16 build.
20882 * GridTableStylesCollection.cs: make the explicit interface
20883 implementations call the class's methods as opposed to duplicating
20886 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
20887 0 so the text doesn't jump around when we move the cursor.
20889 2006-07-10 Jackson Harper <jackson@ximian.com>
20892 * ListBox.cs: Match MS's ToString (this makes debugging focus
20893 stuff infinitely easier).
20895 2006-07-10 Jackson Harper <jackson@ximian.com>
20897 * Control.cs (SelectNextControl): When checking the control's
20898 parent use this instead of ctrl.parent so that null can be passed
20899 to SelectNextControl. (I have unit tests for this).
20900 - Remove unused var.
20902 2006-07-10 Chris Toshok <toshok@ximian.com>
20904 * CurrencyManager.cs: correct one regression, the removal of the
20905 finalType field. Also, add a MonoTODO on CanAddRows, implement
20906 Refresh() correctly, and fix some event emission in
20907 ListChangedHandler.
20909 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
20911 * FileDialog.cs: Don't use brackets for new folders if they exist
20912 under *nix. Instead use -(number of existing folders +1).
20914 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
20917 - Fixed really nasty bug #78771
20918 - Don't block the whole GUI when reading directories with a lot of
20919 entries. Use an other thread instead and call BeginInvoke to
20920 update the ListView in MWFFileView
20922 2006-07-07 Chris Toshok <toshok@ximian.com>
20924 * Control.cs (Dispose): release any Capture when disposing.
20926 2006-07-07 Chris Toshok <toshok@ximian.com>
20928 * LinkLabel.cs (Select): if we chain up to the parent, set
20929 focused_index to -1 so we'll search for the first available link
20930 the next time the user tabs into us. Also, if the direction is
20931 backward and focused_index == -1, start the search from the last
20934 2006-07-07 Chris Toshok <toshok@ximian.com>
20936 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
20937 is beyond the end of the text, don't do anything.
20938 (CreateLinkPieces): set our ControlStyles.Selectable based on
20939 whether or not we have any links.
20940 (Link.Invalidate): use a loop instead of foreach.
20941 (Link.set_Start): null out owner.sorted_links so it'll be
20942 recreated by CreateLinkPieces.
20944 2006-07-06 Chris Toshok <toshok@ximian.com>
20946 * LinkLabel.cs: revert the SetStyle change.
20948 2006-07-06 Chris Toshok <toshok@ximian.com>
20950 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
20951 (OnEnableChanged): s/Refresh/Invalidate
20952 (OnGotFocus): if we have a focused index already, refocus it (so
20953 if we mouse out/in to the window it'll focus the right link).
20954 (OnKeyDown): move the tab handling out of here.
20955 (OnLostFocus): don't set focused_index to -1, so we can refocus it
20956 when we lose focus.
20957 (OnMouseDown): don't Capture here - Control handles it. Also,
20958 focus the active link.
20959 (OnMouseUp): don't deal with Capture.
20960 (OnPaintBackgroundInternal): remove.
20961 (OnTextAlignChanged): CreateLinkPieces before calling the
20962 superclass's method.
20963 (OnTextChanged): call CreateLinkPieces before calling superclass's
20965 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
20967 (Select): implement this, moving the selection between different
20968 links, and call parent.SelectNextControl if we don't have another
20969 link to focus in the given direction.
20970 (CreateLinkPieces): call Invalidate instead of Refresh.
20972 2006-07-06 Chris Toshok <toshok@ximian.com>
20974 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
20975 new LinkLabel internals.
20977 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
20978 over pieces looking for active/focused/etc links. also, deal with
20979 runs of text (and links) with embedded \n's in them, and use
20980 MeasureCharacterRanges instead of MeasureString to figure out the
20981 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
20984 2006-07-04 Jackson Harper <jackson@ximian.com>
20986 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
20987 XKB or key auto repeat, do it manually. Without key auto repeat,
20988 when a key is held down we get key press, key release, key press,
20989 key release, ... with auto repeat we get key press, key press, key
20990 press ..., and then a release when the key is actually released.
20992 2006-07-03 Jackson Harper <jackson@ximian.com>
20995 * ThemeWin32Classic.cs: Tabs do not obey normal background color
20996 rules, they are always control color regardless of the background
20999 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
21001 * FileDialog.cs: Added internal class MWFConfig.
21002 Removed Registry support and replaced it with support for the new
21003 MWFConfig class. See MWFConfig comments for more information.
21005 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
21007 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
21008 rectangle. Added some patches from eno from bug #78490 and fixed
21009 the arrow position for small up and down CPDrawScrollButtons.
21011 2006-06-30 Jackson Harper <jackson@ximian.com>
21013 * InternalWindowManager.cs: Remove some debug code.
21014 * Form.cs: When an MdiParent is set to null, the window is
21015 "detatched" and becomes a normal window.
21016 * MdiClient.cs: Don't bring the new child form to the front until
21017 it is activated (setting it as active does this), this makes the
21018 previously active forms titlebar get redrawn as inactive.
21020 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
21022 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
21023 with later controls
21025 2006-06-29 Mike Kestner <mkestner@novell.com>
21027 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
21028 arrow in keynav state. Fixes #78682.
21030 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
21032 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
21033 order (fixes #78393)
21035 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
21037 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
21038 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
21039 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
21040 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
21041 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
21042 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
21043 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
21044 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
21045 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
21046 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
21047 enumerations (FlagsAttribute, SerializableAttribute, added/removed
21050 2006-06-28 Mike Kestner <mkestner@novell.com>
21052 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
21054 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
21057 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
21058 item lines from other area (It also makes BackColor consistent and
21059 compatible with .NET). Fixed bug #78564.
21061 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
21063 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
21064 Patch from Eno for #78555.
21066 2006-06-27 Chris Toshok <toshok@ximian.com>
21068 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
21070 * DataGridColumnStyle.cs: same.
21072 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
21074 * DataGridDrawingLogic.cs: nuke.
21076 2006-06-27 Chris Toshok <toshok@ximian.com>
21078 * DataGridTableStyle.cs: clean up the constructors, and build the
21079 list of child relations for this table. I have no idea if this is
21080 where we should be doing it (it probably isn't), but since we're
21081 already iterating over the properties..
21083 * DataGrid.cs: add row resizing. for now we add a DataGridRow
21084 struct and array for keeping track of row information, similar to
21085 what's shown in a hack on
21086 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
21088 * Theme.cs: be consistent about the naming of DataGrid methods,
21089 prefering ColumnWidths and RowHeights over columnsWidths and
21092 * ThemeWin32Classic.cs: same, and also add support for variable
21093 sized rows (and the +/- expansion icons for related rows).
21095 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21097 * TextBoxBase.cs: Applied Eno's patch from #78660
21099 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21101 * Form.cs (ScaleCore): We don't want to scale our form if it's
21102 state is minimized or maximized, but we still need to scale our
21103 child windows. Also, added try/finally block to ensure layout
21104 gets reset (Fixes #78697)
21106 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21108 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
21110 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21112 * Form.cs: Fixed c+p error and added check to resize form if minimum
21113 size is bigger than current size (Fixes #78709)
21115 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
21117 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
21119 2006-06-26 Mike Kestner <mkestner@novell.com>
21121 * ComboBox.cs: only do Keypress handling in the combo when there
21122 are items in the collection. Fixes #78710.
21124 2006-06-26 Chris Toshok <toshok@ximian.com>
21126 * Binding.cs: make this work bi-directionally. also, clear up
21127 other mixups between Push/Pull Data (e.g. we're supposed to pull
21128 data when validating).
21130 * BindingManagerBase.cs: trim some fully qualified collection
21133 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
21135 2006-06-23 Chris Toshok <toshok@ximian.com>
21137 * PropertyManager.cs: It appears (according to the unit tests)
21138 that PropertyManager doesn't use
21139 PropertyDescriptor.AddValueChanged to track propery value changes
21140 in its datasource, but uses the same scheme as Binding, where it
21141 looks for a <Property>Changed event and binds to it.
21143 Also, according to the docs, IsSuspended always returns false for
21144 a property manager with a non-null datasource.
21146 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21148 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
21149 need to update the actual DialogResult. (Fixes #78613)
21151 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21153 * Form.cs (ShowDialog): Release any captures before running the
21154 new message pump (fixes #78680)
21156 2006-06-22 Mike Kestner <mkestner@novell.com>
21158 * ListView.cs: Layout column widths properly in details mode even
21159 if HeaderStyle.None is set. Fixes #78691.
21161 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21163 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
21165 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21167 * Control.cs (ContainsFocus): Using new driver method to get focused
21168 window, instead of trying to use internal tracking var, which can
21169 recursion issues (Fixes #78685)
21170 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21171 XplatUIWin32.cs: Added GetFocus method to return focused window
21173 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21175 * ColorDialog.cs: when the mouse button is pressed inside the color
21176 matrix, don't let the cursor move out of it until the button is
21177 released, which is the behavior on windows. Changed 'colours' by
21178 'colors' to use the same word consistently.
21180 2006-06-21 Chris Toshok <toshok@ximian.com>
21182 * DataGrid.cs: add in some basic navigation stuff (navigating to a
21183 child relation and back, using a stack). Also, remove
21184 GetDataSource and the code that calls it - it's not needed. Also,
21185 track CurrencyManager.ListName's removal.
21187 2006-06-21 Chris Toshok <toshok@ximian.com>
21189 * CurrencyManager.cs: push some of the original type checking from
21190 BindingContext.CreateBindingManager to here, and remove some of
21191 the finalType stuff. Need more tests to make sure I've got the
21192 ListName part right, and we might need more in SetDataSource.
21194 * PropertyManager.cs: add a ctor that takes just the datasource,
21195 and no property name. Make SetDataSource work with a null
21196 property_name, and make Current return the data_source if the
21197 property descriptor is null. this makes 'string foo = "hi";
21198 BindingContext[foo].Current' return "hi" as it should.
21200 * RelatedCurrencyManager.cs: make this code more generic - there's
21201 no reason the parent manager has to be CurrencyManager, and
21202 there's no reason to pass the DataRelation. It suffices to use a
21203 BindingManagerBase and PropetyDescriptor.
21205 * RelatedPropertyManager.cs: make a similar change here.
21207 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
21208 flower I knew it could be.
21210 2006-06-20 Chris Toshok <toshok@ximian.com>
21212 * PropertyManager.cs: the PropertyChangedHandler is invoked when
21213 data in the source has changed and we need to update the control,
21214 so s/PullData/PushData.
21216 * CurrencyManager.cs: Refresh is meant to update the control from
21217 data in the datasource. So, s/PullData/PushData.
21219 * BindingContext.cs: add more ugliness (we weren't handling the
21220 case where data_source = DataTable and data_member = column_name).
21222 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
21223 from the perspective of the datasource. PullData pulls from the
21224 control, PushData pushes to the control.
21226 2006-06-20 Chris Toshok <toshok@ximian.com>
21228 * BindingContext.cs: rewrite the CreateBindingManager code to
21229 handle navigation paths more or less properly. This could
21230 definitely stand some more work, in particular to push the
21231 recursion up to the toplevel. But that relies on fixes in other
21232 places (System.Data comes to mind).
21234 Also, move to a flat hashtable (and encode the twolevel nature of
21235 the dictionary into the hash key). This lets us implement the
21236 IEnumerable.GetEnumerator method.
21238 * RelatedCurrencyManager.cs: new class. Update our view based on
21239 our relation and our parent CurrencyManager's position.
21241 * CurrencyManager.cs: split out some logic from the ctor into
21242 SetView, so it can be called from the new RelatedCurrencyManager
21245 * RelatedPropertyManager.cs: new class. Update our datasource
21246 based on the position of our parent CurrencyManager.
21248 * PropertyManager.cs: split out some logic from the ctor into
21249 SetDataSource, so it can be called from the new RelatedDataSource
21250 subclass. Also, make the Current getter return the value
21251 of the PropertyDescriptor, not the data_source.
21253 * Binding.cs: no need to duplicate the string splitting code here.
21255 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21258 - set_Enabled: OnEnabledChanged is not called if the inherited state
21259 of the control is not altered, even though we might be changing the
21260 internal state of the control (#78458)
21261 - set_Enabled: (Re)Moved the enabling/disabling of the window to
21262 OnEnabledChanged, to allow easy altering of any child window state
21263 - OnEnabledChanged: Added code to enable/disable driver window state
21264 - OnParentEnabledChanged: Instead of firing the event, call
21265 OnEnabledChanged, which will fire the event and also a) set driver
21266 window state and pass the enabled state to any grandchildren (#78458)
21268 2006-06-19 Jackson Harper <jackson@ximian.com>
21270 * InternalWindowManager.cs: We don't set the cursor explicitly
21271 thats done via the response to NCHITTESTs.
21272 - Don't need to adjust for titlebar heights anymore, the
21273 coordinates are coming in the correct coordinates now (see peters
21277 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21279 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
21280 being translated relative to whole window, instead of client window.
21281 That caused broken offsets on mouseclick (and caused gas for our
21282 InternalWindowManager)
21284 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21287 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
21288 - Undo(): Added replay of cursor move on DeleteChars action; added
21289 calling Undo() again if a recorded cursor move is invalid (to
21290 ensure that some action is performed on Undo)
21291 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
21293 2006-06-16 Jackson Harper <jackson@ximian.com>
21295 * MdiClient.cs: Instead of just sizing maximized windows when
21296 there is a resize we also have to adjust the Y of minimized
21297 windows, so they stay pinned to the bottom of the mdi container.
21298 - Eliminate separate tracking of the active control, we can just
21299 get this from the controls collection.
21300 - Paint the decorations for the newly activated titlebar so we get
21302 * InternalWindowManager.cs:
21303 * ThemeWin32Classic.cs: Minimized windows get all three buttons
21304 even if they are a tool window.
21306 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21308 * TextControl.cs (Undo): Handle non-existent cursor locations in the
21309 undo buffer, these can happen when text was deleted and the cursor
21310 was recorded first. Since we will also have a recorded cursor
21311 after the delete this is not an issue. (Fixes #78651)
21313 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
21315 * AccessibleObject.cs: Remove dependence on Control.is_selected;
21316 instead properly track control states internally (allows us to
21317 remove is_selected from Control)
21319 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21321 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
21322 whose width is not a multiple of 8.
21324 2006-06-13 Jackson Harper <jackson@ximian.com>
21326 * MdiClient.cs: Only maximize the next child if the current one
21329 2006-06-13 Chris Toshok <toshok@ximian.com>
21331 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
21332 modified. Also, guard against grid or grid_drawing being null in
21335 * DataGrid.cs: Reformat tons of getters/setters. In the
21336 DataMember setter, just call SetNewDataSource instead of
21337 duplicating some of its functionality. In SetNewDataSource, don't
21338 check ListManager for null, since the property getter creates the
21341 * DataGridTableStyle.cs: don't set TableStyle or call
21342 SetDataGridInternal on the column here, it's done in
21343 GridColumnStylesCollection.Add.
21345 * GridColumnStylesCollection.cs: fix all the explicit interface
21346 implementations to just call our methods. Nuke AddInternal() and
21347 move the body of it to Add(). Also, add a call to
21348 column.SetDataGridInternal to Add().
21350 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
21351 base()+duplicate code. Also, use the Format property instead of
21352 format to generate an Invalidate ala MS. Lastly, create the
21353 textbox here, unconditionally.
21354 (set_Format): call Invalidate.
21355 (get_TextBox): no need to call EnsureTextBox.
21356 (Commit): remove the message box.
21357 (Edit) remove the call to EnsureTextBox.
21358 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
21359 (EnterNullValue): no need to check textbox for null.
21360 (HideEditBox): no need to check textbox for null.
21361 (SetDataGridInColumn): add the textbox to the grid's controls.
21362 (EnsureTextBox): nuke.
21364 2006-06-13 Jackson Harper <jackson@ximian.com>
21366 * MdiWindowManager.cs: Hook up to the maximized menus paint event
21367 and redraw the buttons when needed. Unhook when the window is
21369 * MainMenu.cs: Add an internal Paint event, the mdi window manager
21370 needs this so that it can redraw its buttons when the menu is
21372 * InternalWindowManager.cs:
21373 * Form.cs: The method order has changed for DrawMaximizedButtons,
21374 so that it can be a PaintEventHandler.
21376 2006-06-13 Jackson Harper <jackson@ximian.com>
21378 * MdiClient.cs: When we close a maximized mdi window, the next mdi
21379 window is activated and maximized, even if it wasn't before.
21380 - When a new window is activated repaint the decorations of the
21381 old one, so that it no longer has the Active "look" (the blue
21383 * InternalWindowManager.cs: Open up CreateButtons to base classes
21384 so they can recreate the buttons on state changes.
21385 - If a window is maximized give it all three buttons
21386 * MdiWindowManager.cs: Create the titlebar buttons when the state
21387 is changed, this is needed because a toolwindow will not have all
21388 three buttons until it is maximized.
21390 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
21392 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
21395 2006-06-12 Jackson Harper <jackson@ximian.com>
21397 * KeysConverter.cs: Make sure we handle the Ctrl special case
21398 if its the only key.
21400 2006-06-12 Jackson Harper <jackson@ximian.com>
21402 * Theme.cs: Add a method to get the size of a managed window
21404 * InternalWindowManager.cs: Remove the ButtonSize property, this
21405 should be retrieved from the theme.
21406 * MdiWindowManager.cs: Get the button size from the theme
21407 * ThemeWin32Classic.cs: Make the method to get the managed window
21408 titlebar button size public.
21409 - Handle the different button sizes of maximized toolwindows
21410 (should match any maximized window).
21411 - Get the titlebar height from the theme, not the WM (which gets
21412 it from the theme).
21414 2006-06-12 Jackson Harper <jackson@ximian.com>
21416 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
21417 event down to the mdi window manager.
21418 - Expose some extra stuff to base classes
21419 - Make sure to end the Capture on an NC Mouse up, so that we can
21420 get double clicks properly, and the sizing doens't stick.
21421 - When doing PointToClient contain it in the workable desktop
21422 area, this prevents windows from changing size when the cursor is
21423 pulled outside of the working area while sizing.
21424 * MdiWindowManager.cs: When we get a double click maximize the
21426 - Reset the cursor after handling mode changes.
21428 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
21430 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
21431 current desktop, instead of just assuming a 0, 0 origin. This
21432 is needed for our internal window manager, to know the top
21433 margin of the desktop
21435 2006-06-12 Chris Toshok <toshok@ximian.com>
21437 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
21438 we need this to get rid of the selected background in the bool
21440 (CancelEditing): move the ConcedeFocus call to above the Abort
21441 call. Also, set is_changing to false and invalidate the row
21442 header if we were changing before.
21443 (ProcessKeyPreviewInternal): remove, since noone outside this
21444 class calls it anymore. Roll the code into ProcessKeyPreview.
21445 (EndEdit): remove the internal version.
21446 (InvalidateCurrentRowHeader): make private.
21448 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
21449 Keys.Escape handling (and with it the last call to
21450 DataGrid.EndEdit from outside the class.)
21453 2006-06-12 Chris Toshok <toshok@ximian.com>
21455 * DataGridTextBox.cs (.ctor): isedit defaults to false.
21456 (OnKeyPress): set isedit to true.
21457 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
21458 already handled by the grid.
21460 * DataGrid.cs (set_CurrentCell): more work here. it's still not
21462 (set_DataSource): SetDataSource always returns true, so stop
21463 putting it in an if statement.
21464 (EndEdit): get rid of some {}'s
21465 (ProcessGridKey): return true in case Keys.Escape.
21466 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
21467 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
21468 PositionChanged, stopped connecting to CurrentChanged.
21469 (GetDataSource): simplify this a bunch.
21470 (SetDataSource): change return type from bool to void.
21471 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
21472 to this, and make sure we don't set ListManager.Position inside
21474 (OnListManagerItemChanged): if we're passed an actual index,
21477 * CurrencyManager.cs (set_Position): don't call PullData here.
21479 2006-06-09 Jackson Harper <jackson@ximian.com>
21481 * TreeNode.cs: Recalculate the visible order before doing the
21482 Expand/Collapse Below calls, because those calls generate an
21484 - Reduce calls to the TreeView property, which is mildly expensive
21485 by using a local var.
21486 * Form.cs: Layout the MDI child windows when creating the parent
21488 - Don't use the internal constructor anymore
21489 * MdiClient.cs: use the parent form width/height (if available)
21490 when laying out the child windows, we do this because the
21491 mdiclient isn't docked yet when the initial layout is done.
21492 - Don't need an internal constructor anymore.
21494 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21496 * FileDialog.cs: handle access errors when trying to create a folder
21497 or changing to a directory. No need to initialize out parameters.
21499 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21501 * FileDialog.cs: Append a number when creating a new folder if the
21502 folder already exists (use parenthesis instead of square brackets)
21504 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21507 - Disabled registry support for windows and added better registry
21508 error checking for other systems (need to investigate why it
21509 works perfectly on my system)
21510 - If a folder already exist show an error MessageBox instead of
21511 trying to create an indexed name.
21512 - Fixed a non intentional typo.
21514 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21516 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
21518 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21520 * FileDialog.cs: When creating a new folder don't crash if the
21521 folder already exists.
21523 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21525 * FileDialog.cs: Allmost a complete rewrite.
21526 - added a "virtual" file system that handles the differences
21527 between unix and windows file systems (especially the directory
21528 structure). Moved most of the directory and file handling code
21530 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
21531 UnixFileSystem and FSEntry.
21532 - Recently used folder/directory, size, location and used file names
21533 (file name ComboBox) are now stored in the registry and get read
21534 before the dialog shows up (fixes part 6 of bug #78446).
21535 - Creation of new folders/directories is now possible (context menu
21536 or ToolBar). Added TextEntryDialog for this that fills in the gap
21537 until ListView.LabelEdit works.
21538 - Fixed cursor handling (bug #78527) and focus handling for
21540 - Various "Search in" ComboBox enhancements. The content of the
21541 dropdown listbox now almost matches ms.
21542 - Changed the behaviour when the user switches to SpecialFolder
21543 Recent to show the ListView in View.Details.
21544 - Beside using the ToolBar to change the View property of the
21545 file ListView it is now possible to use the context menu too.
21547 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21549 * ComboBox.cs: Don't create a new ObjectCollection when an item
21550 gets inserted. Just insert the item in the existing object_items
21553 2006-06-08 Jackson Harper <jackson@ximian.com>
21555 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
21556 that the treeview and root node checks are done also, this fixes a
21557 regression i caused in the unit tests.
21559 2006-06-07 Wade Berrier <wberrier@novell.com>
21561 * RichTextBox.cs: More ISO8859-1 -> unicode
21563 2006-06-07 Mike Kestner <mkestner@novell.com>
21565 * ComboBox.cs : use items to hold highlight/selection so that
21566 collection insertions don't require synchronization.
21568 2006-06-07 Jackson Harper <jackson@ximian.com>
21570 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
21571 routine. We now always keep the sized edge at the cursor instead
21572 of computing movement and adjusting rects. There is one buglet
21573 with this method though when the cursor is moved over area that
21574 the window can not expand too (such as the toolbars on the desktop).
21576 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21578 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
21579 here. Fixes crash on startup in AlbumSurfer.
21581 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
21583 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
21586 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21588 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
21589 statement to avoid calling XNextEvent which will block if another thread
21590 took the event that we were expecting. Fixes bug #78605.
21592 2006-06-07 Mike Kestner <mkestner@novell.com>
21594 * ListView.cs : isolated checkbox clicking from the selection logic.
21595 Toggle check state on item doubleclicks. Really fixes #78454 part2.
21597 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21599 * Form.cs: Check that the value passed to Form.DialogResult
21600 is a valid enum value.
21602 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21604 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
21605 Computer'. Clicking it in the network view goes to 'My Computer'.
21606 Added CIFS filesystem type. Display the mount point of filesystems.
21607 Avoid duplicate mount points (happens for me with CIFS);
21609 2006-06-06 Jackson Harper <jackson@ximian.com>
21611 * InternalWindowManager.cs: Draw the maximized windows buttons
21614 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21616 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
21617 all other dialogs. Fixes bug #78585.
21619 2006-06-06 Mike Kestner <mkestner@novell.com>
21621 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
21622 Only invalidate checkbox on checkstate changes to avoid flicker.
21623 * ListBox.cs : avoid unselect/select when clicking selected item.
21624 avoid reselection flicker for already multiselected items.
21627 2006-06-06 Jackson Harper <jackson@ximian.com>
21629 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
21630 the parent form so that the menu is removed if needed.
21632 2006-06-06 Mike Kestner <mkestner@novell.com>
21634 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
21635 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
21637 2006-06-06 Mike Kestner <mkestner@novell.com>
21639 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
21642 2006-06-06 Jackson Harper <jackson@ximian.com>
21644 * Control.cs: Use the property (instead of the field) to get the
21645 default cursor so it is instantiated correctly.
21646 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
21647 resizes so we need to manually repaint the window decorations here.
21648 - Set the titlebar button locations as soon as they are created,
21649 otherwise they are not set correctly on win32.
21651 2006-06-06 Chris Toshok <toshok@ximian.com>
21653 * CurrencyManager.cs (set_Position): call PullData before
21655 (AddNew): after calling IBindingList.AddNew, update our
21656 listposition, and call OnCurrentChanged/OnPositionChanged (without
21658 (OnCurrentChanged): remove the call to PullData from here.
21659 (OnItemChanged): remove the call to PushData from here.
21660 (OnPositionChanged): change the test from == null to != null to
21661 match the other methods.
21662 (ListChangedHandler): the grossest part of the patch. Implement
21663 this such that it passes the unit tests in CurrencyManagerTest and
21664 the output more or less matches that of MS's implementation.
21666 2006-06-06 Mike Kestner <mkestner@novell.com>
21668 * ListView.cs : only update check state on single click.
21669 * ThemeWin32Classic.cs : fix focus drawing for details view without
21670 fullrowselect. Fixes #78454.
21671 * XplatUIX11.cs : fix for double click emission.
21673 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
21675 * PropertyGridView.cs : Applied Atsushi's patch to fix
21676 font dialog bug (#78197).
21678 2006-06-05 Jackson Harper <jackson@ximian.com>
21680 * TreeNode.cs: Compute the next node for expanding/collapsing
21681 correctly. We now factor in nodes without a NextNode
21682 correctly. (Fixes somes cases in nunit-gui).
21683 * InternalWindowManager.cs: Set the bounds when updating the
21684 virtual position of a tool window.
21686 2006-06-05 Chris Toshok <toshok@ximian.com>
21688 * DataGrid.cs: rename cached_currencymgr to list_manager.
21689 (set_CurrentCell): move SetCurrentCell code here, and clean it up
21691 (CurrentRow, CurrentColumn): single accessors so we can make the
21692 cursor movement code a lot easier to understand.
21693 (CurrentRowIndex): implement this in terms of CurrentRow.
21694 (BeginEdit): clean this up a bit.
21695 (CancelEditing): sort out the is_editing/is_changing/is_adding
21697 (EndEdit): minor changes.
21698 (OnKeyDown): add a comment about a (most likely) unnecessary
21700 (OnMouseDown): cancel editing when we click on a row header. And
21701 use the CurrentRow setter, not CurrentCell.
21702 (ProcessDialogKey): directly call ProcessGridKey.
21703 (UpdateSelectionAfterCursorMove): factor out this common block of
21704 code (it's used everywhere that we move the cursor by updating row
21706 (ProcessGridKey): pretty substantial overhaul. Use the
21707 CurrentRow/CurrentColumn properties to make the code a lot more
21708 readable. Only use the CurrentCell property when we have to
21709 modify both row and column at once. Tab behavior is still broken,
21710 and Delete is untested.
21711 (Select): if we have no selected rows, set selection_start to
21713 (EditCurrentCell): rename EditCell this. It was only ever invoked
21714 with CurrentCell as the arg, so drop the arg and rename it.
21716 * DataGridColumnStyle.cs: clean up the constructors a little, and
21717 drop CommonConstructor().
21719 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
21720 actually get notified when the user hits it.
21721 (ProcessKeyMessage): *substantially* simplify this method.
21722 There's no reason (that I can see) for the textbox to be making
21723 calls into the datagrid at all. Remove all of them but the ones
21724 for Enter handling. those will take some more work.
21726 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
21727 calling HideEditBox.
21728 (HideEditBox): if we have an active textbox, render it invisible
21729 without causing a re-layout of the datagrid.
21731 2006-06-05 Mike Kestner <mkestner@novell.com>
21733 * ListView.cs : fix NRE crasher when focuseditem is cleared by
21734 collection changes by resetting it to Items[0]. Fixes #78587.
21736 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21738 * MessageBox.cs: if the height of the text is larger than the icon_size,
21739 use that. Fixes bug #78575.
21741 2006-06-05 Jackson Harper <jackson@ximian.com>
21743 * TreeView.cs: Fix line drawing when scrolling. To do this each
21744 node is basically responsible for drawing its entire horizontal
21745 area. When drawing a node it draws its parent node lines if
21747 - Adjust the clip area to the viewport rectangle
21748 - Fix Left/Right key handling to match MS. (It expand/collapses
21749 and moves to parents/first child but does not move selection to
21751 - Fix SetTop to work with new bound calculation code
21752 - When scrollbars are no longer needed we need to reset scrolling
21753 vars and recalculate the visible order so the redraw is correct
21754 * TreeNode.cs: We can't expand/collapse nodes with no children.
21756 2006-06-03 John Luke <john.luke@gmail.com>
21758 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
21759 so the colors work without dev packages
21761 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
21764 - Select: Implemented to just use activate. Seems to match MS
21765 behaviour closest. Documented to only do actual control walking
21766 based on it's parameters if in a container control so I moved
21768 - Removed selection check logic from our internal Select() method
21769 * ContainerControl.cs:
21770 - Select: Moved selection logic from Control here, since MS documents
21771 that containers obey the bool arguments. No longer calling base
21773 2006-06-02 Jackson Harper <jackson@ximian.com>
21775 * TreeView.cs: If the selected node isn't changed when we get
21776 focus update the previously selected node so that we see the
21779 2006-06-02 Mike Kestner <mkestner@novell.com>
21781 * ComboBox.cs: restructure grab and general mouse event handling.
21782 Make the composite control raise mouse events like it was a single
21783 control for leaves/enters/motion/up/down events. fix dropdown list
21784 coordinate mangling and refactor it into the scrollbar subclass to
21785 reduce code duplication. Fixes #78282 #78361 and #78457.
21787 2006-06-02 Mike Kestner <mkestner@novell.com>
21789 * ScrollBar.cs: remove Capture setting/clearing, as it happens
21790 automatically in the Control.WndProc.
21792 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21794 * FileDialog.cs: fix crash when running SharpChess, which sets the
21795 FilterIndex to 2 with only one Filter.
21797 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21799 * ToolBar.cs: add SizeSpecified property.
21800 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
21801 try to figure out our real size, otherwise fallback to what the
21804 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
21806 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
21807 * Control.cs (WndProc): MS always calls the DefWndProc to pass
21810 2006-06-01 Mike Kestner <mkestner@novell.com>
21812 * ListView.cs: revamp the focus management in ListView. It still
21813 causes churn of LostFocus/GotFocus emissions on clicks, but it's
21814 better than not handling focus at all. Will revisit when pdb feels
21815 the general focus handling is solid. Fixes #78526.
21817 2006-06-01 Jackson Harper <jackson@ximian.com>
21819 * TreeView.cs: Set the default border style in the constructor.
21820 - Move painting to use OnPaintInternal instead of capturing
21821 WM_PAINT, this is the correct way of doing things
21822 - UpdateBelow shouldn't invalidate the scrollbar area
21823 - Cap the top on update below in case the node was above the top
21824 of the viewport rectangle.
21825 - ExpandBelow and Collapse below need to obey Begin/End Update.
21826 * TreeNode.cs: Make is_expanded internal so the treenode
21827 collection can change it without firing the whole event chain.
21828 * TreeNodeCollection.cs: When clearing all the child nodes make
21829 sure to recalc the visible order.
21830 - Improve algo for remove the top node
21832 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
21834 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
21835 SendMessage directly calling window procedures, which in turn might
21838 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
21840 * Control.cs: Don't handle WM_SETFOCUS if the same window already
21841 has focus (works around X11 sending a FocusIn after our SetFocus)
21842 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
21844 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
21846 * Mime.cs: Fix for the NET_2_0 build.
21847 NameValueCollection needs StringComparer now.
21849 2006-05-31 Chris Toshok <toshok@ximian.com>
21851 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
21852 return (via an out parameter) the starting X of the column.
21853 (UpdateVisibleColumn): track change to FromPixelToColumn.
21854 (HitTest): add a ColumnResize case here.
21855 (DrawResizeLine): new function, probably poorly named.
21857 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
21858 only need to keep one reference.
21859 (set_ListManager): same.
21860 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
21861 Also, add support for HitTestType.ColumnResize.
21862 (OnMouseMove): add column resize behavior here, and change the
21863 cursor to the correct one as we move around the datagrid.
21864 (OnMouseUp): terminate the column resize if we're resizing.
21865 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
21866 for the current cell.
21867 (ConnectListManagerEvents): use cached_currencymgr.
21868 (DisconnectListManagerEvents): fill this in, using
21869 cached_currencymgr.
21870 (SetCurrentCell): remove cached_currencymgr_events handling.
21871 (SetDataMember): only call DisconnectListManagerEvents if
21872 cached_currencymgr is != null.
21873 (SetDataSource): same.
21874 (OnListManagerCurrentChanged): cached_currencymgr_events ->
21875 cached_currencymgr.
21877 2006-05-31 Jackson Harper <jackson@ximian.com>
21879 * BindingManagerBase.cs: Remove somedebug code that creeped into
21881 * TreeNode.cs: We get the indent level dynamically right now, so
21882 don't track it as a member.
21883 * TreeNodeCollection.cs: Make sure all nodes added to the list
21884 have parents, treeviews/topnodes setup properly.
21885 - Don't attempt to track indent level.
21887 2006-05-30 Jackson Harper <jackson@ximian.com>
21889 * BindingContext.cs: Create the currency manager tables here.
21890 This allows us to more easily create null tables (when bad data
21891 members are used), and more easily create related currency
21893 * CurrencyManager.cs: All the table creation stuff is done by the
21894 binding context now.
21895 - Current should throw an exception if listposition is -1.
21896 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
21899 2006-05-30 Mike Kestner <mkestner@novell.com>
21901 * ListView.cs: allow reexpansion of zero-width column headers.
21904 2006-05-28 Chris Toshok <toshok@ximian.com>
21906 * CurrencyManager.cs (get_Current): after the late binding
21907 listposition = -1 fix, we need to guard against it here and return
21908 null, otherwise we raise an exception (which is swallowed
21909 elsewhere, and breaks datagrid databinding.)
21911 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
21913 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
21914 than WM_SYSKEY, don't throw if get something unexpected (#78507)
21916 2006-05-26 Jackson Harper <jackson@ximian.com>
21919 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
21920 values, it's faster and it's all we care about (we don't care if
21921 the names aren't equal).
21922 * KeyboardLayouts.cs: Eliminate some dead code.
21924 * X11Keyboard.cs: Lazy init keyboard detection.
21925 - Cleanup access modifiers a little.
21927 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
21929 * XplatUIX11.cs: Once again, attempting to get layout just right.
21931 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
21933 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
21934 the sizes of each link section, that will result in sizes that
21935 match DrawString's layout (Fixes #78391)
21937 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
21939 * FileDialog.cs: If AddExtension property is true autocomplete the
21940 extensions in SaveFileDialog correctly. Fixes bug #78453.
21941 Set MyNetwork and MyComputer to "C:\" for windows. This should
21942 fix part 8 of bug #78446 for now.
21944 2006-05-26 Chris Toshok <toshok@ximian.com>
21946 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
21947 invalidate the current row header if we need to, but presumably
21948 we'll invalidate the row corrsponding to the bounds or
21950 (GridHScrolled): switch back to this method, as it's part of the
21951 public api. *sigh*.
21952 (GridVScrolled): same.
21953 (OnMouseWheel): hack up something that more or less works. Call
21954 GridHScrolled/GridVScrolled directly, instead of duplicating much
21955 of their code here.
21956 (EnsureCellVisibility): reinstate a bunch of this code, since we
21957 can't just set the scrollbar Value and expect to do all the work
21958 in the ValueChanged handler. Also, Call Update() after scrolling
21959 in one direction so the other XplatX11.ScrollWindow call has the
21960 proper stuff in the proper places.
21961 (EditCell): set is_editing to true before calling .Edit.
21963 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
21964 don't bother comparing first.
21965 (OnKeyPress): call grid.ColumnStartedEditing before calling
21966 base.OnKeyPress. this will set is_changing and invalidate the row
21967 header if necessary.
21968 (ProcessKeyMessage): for WM_CHAR messages, call
21969 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
21972 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
21973 it's done in the DataGrid.
21974 (NextState): call grid.ColumnStartedEditing, which takes care of
21975 invalidating the row header (and setting is_changing).
21977 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
21978 here. it's done in the DataGrid.
21980 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21982 * Control.cs: allow changing the cursor when the mouse position is
21983 out of bounds but Capture is set.
21984 * LinkLabel.cs: handle the case when the mouse button is pressed on the
21985 linklabel but released somewhere else.
21987 2006-05-25 Jackson Harper <jackson@ximian.com>
21989 * TreeView.cs: When we get focus if there is no selected node make
21991 - Remove some uneeded setup code from Draw.
21992 * TreeNodeCollection.cs: If the tree doesn't have a top node when
21993 a new node is inserted make the new node the top.
21995 * Timer.cs: Use Utc time so that no local time zone stuff needs to
21996 be used (should be faster).
21998 2006-05-25 Chris Toshok <toshok@ximian.com>
22000 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
22001 problem with the last commit.
22003 2006-05-25 Chris Toshok <toshok@ximian.com>
22005 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
22006 need the invalidate call here, while scrolling right-to-left via
22007 the left arrow key (i.e. moving the editing cell while scrolling).
22009 * DataGrid.cs (.ctor): remove the initialization of
22010 ctrl_pressed/shift_pressed. We no longer track them using key
22011 up/down handlers, but by using Control.ModifierKeys. Also, switch
22012 to using ValueChanged handlers on the scrollbars instead of
22013 Scrolled event handlers. This simplifies a bunch of the scrolling
22015 (GridHValueChanged): rename from GridHScrolled, and change it to
22016 work with the new event args.
22017 (GridVValueChanged): same.
22018 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
22019 (OnMouseWheel): actually scroll the datagrid. Don't change the
22021 (ProcessGridKey): correct all the keyboard navigation stuff I
22022 could find. Ctrl up/down/left/right/home/end work now.
22023 (EnsureCellVisibility): correct method name spelling. Also,
22024 simplify this a touch by not explicitly calling the
22025 ScrollToRow/ScrollToColumnInPixels methods. We just set the
22027 (OnKeyUpDG): no need for this method now.
22029 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22031 * LinkLabel.cs: display the OverrideCursor when hovering the label.
22034 2006-05-25 Chris Toshok <toshok@ximian.com>
22036 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
22039 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
22041 * Application.cs: Moved setting of is_modal and closing to before
22042 we create the control, to allow the event handlers called as a
22043 result of creation affect closing. Also removed Gonzalo's previous
22044 change to setting DialogResult, the behaviour has been moved to
22047 - ShowDialog(): Removed explicit creation of the form, let RunLoop
22049 - ShowDialog(): If no dialog result is set, we need to return Cancel
22050 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
22051 the close is cancelled
22053 2006-05-25 Jackson Harper <jackson@ximian.com>
22055 * StatusBar.cs: We only need to update the sizes of the other
22056 panels when we have auto size contents. Also we are only updating
22057 the contents of the panel, not the borders, so compensate for the
22058 border width (TODO: get this width from the theme somehow).
22059 * TreeView.cs: Scrollable is true by default
22060 - Use invalidate instead of refresh where needed
22061 - Factor the scrollable value into scrollbar updating
22062 - Update the scrollbars if the Scrollable property is altered
22063 - Update the selected node if its ImageIndex is changed
22064 - Handle null nodes in UpdateNode (mainly so we don't have to
22065 check if selected is null when updating it
22066 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
22067 are factored into the visible count
22068 - Use VisibleCount for clarity in the code
22069 - When the font is changed we need to recurse through all the
22070 nodes and invalidate their sizes
22072 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22074 * Application.cs: set the DialogResult to fixed when the main form is
22075 hidden or destroyed while being modal.
22077 2006-05-25 Miguel de Icaza <miguel@novell.com>
22079 * Theme.cs: Use Tangoified messagebox icons.
22081 (GetSizedResourceImage): Also cope with width = 0 and do not
22082 trigger a warning in that case (0 means "give me your icon from
22083 the resouce, no special size needed).
22085 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
22087 * Application.cs: Leave runloop if the the main modal form is
22088 hidden (fixes #78484)
22090 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
22092 * BindingContext.cs : reject null datasource in Contains() and
22094 * CurrencyManager.cs : check data_member validity when data_source
22095 is dataset. When it is late binding, the initial position is -1.
22097 2006-05-24 Jackson Harper <jackson@ximian.com>
22099 * TreeNodeCollection.cs: Dont't recalculate the visible order on
22100 inserted nodes that aren't visible. This changes the
22101 max_visible_order which confuses scrollbar settings.
22102 - Use the enumerator to get the prev node instead of duplicating
22104 * TreeView.cs: Use new method for setting scrollbar values
22105 - Don't set the bounds every time the scrollbar is updated
22106 - When updating below the root node use an invalidate instead of a
22107 refresh to prevent the child controls (scrollbars) from being
22108 refreshed. (UpdateBelow still needs to be reworked anyways).
22109 - Reenable SetBottom now that visible orders are set correctly,
22110 added some debug code incase we ever get bad values there again.
22111 - Set the scrollbar max to 2 less then the max value, this
22112 compensates for the max value being one above the node count, and
22113 for scrollbars adding one extra "notch".
22114 - When drawing image nodes if there is an imagelist we draw the
22115 first image in the list if the supplied image index is out of the
22116 image list's bounds.
22118 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22120 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
22121 we receive a size change from the WM (Fixes #78503)
22123 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22125 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
22126 rectangle (Fixes #78501)
22128 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22131 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
22133 - Fixed MouseMove to no longer switch pressed state unless the left
22134 mouse button is pressed. Atsushi provided the original patch (#78485)
22136 2006-05-24 Jackson Harper <jackson@ximian.com>
22138 * ScrollBar.cs: New internal methods that allow us to change a
22139 couple values on the scrollbar (the most common case is maximum
22140 and large change) without getting multiple invalidates.
22142 2006-05-24 Chris Toshok <toshok@ximian.com>
22144 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
22145 (Edit): save off the original state in oldState, and set
22146 grid.is_editing to true.
22147 (OnKeyDown): abort editing if escape is pressed. also, call
22148 NextState if space is pressed.
22149 (OnMouseDown): call NextState.
22150 (NextState): factor out shared code from OnKeyDown and OnMouseDown
22151 here. Also, only invalidate the row header once (on the initial
22152 is_changing switch) to save on redraws.
22154 2006-05-24 Chris Toshok <toshok@ximian.com>
22156 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
22157 if the value in the cell is different than it was before. This
22158 keeps us from triggering a layout when we move around a datarid
22159 with a highlighted cell.
22160 (Edit): suspend layout when creating/positining the text box, and
22161 resume passing false so we don't ever actually re-layout.
22162 (ReleaseHostedControl): same.
22163 (EnsureTextBox): reformat slightly, and set WordWrap to false.
22165 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
22166 control-key sequences should go to the datagrid - remove that
22167 lock. Also, modify the conditions under which we move between
22168 cells when moving the cursor within a cell, and remove the "this"
22169 and "base" from field accesses. We weren't even consistent, given
22170 they all were in the base class.
22172 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
22174 * Binding.cs : (.ctor)
22175 An obvious NRE fix for BindingTest.CtorNullTest().
22177 2006-05-23 Chris Toshok <toshok@ximian.com>
22179 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
22180 them between lines. This fixes some quirks editing cells in the
22183 2006-05-23 Jackson Harper <jackson@ximian.com>
22185 * TreeView.cs: Use begin/end update when doing expand/collapse all
22186 so that we don't get flicker on the scrollbar.
22188 2006-05-23 Jackson Harper <jackson@ximian.com>
22190 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
22191 treenode calculations to be independant of the painting code. To
22192 do this nodes track a visible order which is calculated by the
22194 - Call new methods for expanding/collapsing nodes. These methods
22195 use scrollwindow so we don't have to update everything below the
22197 * TreeView.cs: Refactored drawing and scrolling code. We don't
22198 need to update nodes when drawing anymore or calculate scrollbar
22200 - Added new methods for expanding/collapsing nodes. These methods
22201 use ScrollWindow so as to not have to redraw all the nodes below.
22202 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
22203 we add/remove nodes or sort.
22204 - Handle removing the selected and the top node properly.
22206 2006-05-23 Chris Toshok <toshok@ximian.com>
22208 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
22209 maybe this should actually happen in the datagrid code?
22210 (EndEdit): no need to invalidate anything, given that
22211 ReleaseHostedControl causes the datagrid to relayout, which
22212 invalidates everything anyway.
22214 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
22215 in SetCurrentCell).
22216 (set_SelectionBackColor): call InvalidateSelection instead of
22218 (set_SelectionForeColor): same.
22219 (BeginEdit): Flesh this out a bit.
22220 (CancelEditing): only do any of this if we're editing/adding.
22222 (OnMouseDown): there's no need to cancel editing here, it's done
22224 (SetCurrentCell): only invalidate the current row header if it's a
22225 different row than the new one.
22226 (ShiftSelection): fix this to work like MS does.
22227 (ResetSelection): factor out the invalidation of selected_rows to
22228 InvalidateSelection.
22229 (SetDataSource): cancel any editing that's going on.
22231 * DataGridColumnStyle.cs
22232 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
22233 call the non-interface version.
22235 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
22236 header rectangle with the clip rectangle so we don't redraw the
22237 entire header for just a small area. Gets rid of the last flicker
22238 when horizontally scrolling.
22239 (DataGridPaintRow): same.
22241 2006-05-23 Mike Kestner <mkestner@novell.com>
22243 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
22244 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
22245 poorly placed checkbox on the MS control. Fixes Alex's unfiled
22246 Critical bug report.
22248 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22250 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
22251 and this fixes #78493
22253 2006-05-23 Miguel de Icaza <miguel@novell.com>
22255 * Theme.cs (GetSizedResourceImage): Scale images if the proper
22258 * FileDialog.cs: Do not change the background for the side bar as
22259 it wont work nicely with the theme, and also reduces the artifacts
22260 in rendering the icons (which I want to fix too).
22262 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
22263 resources, not resgen resources.
22265 (PlatformDefaultHandler): Pull images using the new API.
22267 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22269 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
22270 a reference to the hwnd and will not remove it unless there are
22271 no pending exposures (fixes #78341)
22272 * XplatUI.cs: Improved debug
22274 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
22276 * MenuAPI.cs : don't handle OnClick event when it was not the left
22277 button. Fixed bug #78487.
22279 2006-05-23 Mike Kestner <mkestner@novell.com>
22281 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
22282 prefer submenus to the top menu for item lookup, to avoid popping down
22285 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
22287 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
22288 Graphics.FillRectangle as the visual results are really bad (even
22289 on win). We now draw perfect arrows (and perfect shadows when the
22290 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
22291 Pen.DashPattern to draw the dots of each line.
22293 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
22295 * FileDialog.cs: Update the filename combobox when navigating through
22296 the ListView with the cursor keys. Fixes part 7 of bug #78446.
22298 2006-05-22 Mike Kestner <mkestner@novell.com>
22300 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
22303 2006-05-22 Mike Kestner <mkestner@novell.com>
22305 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
22306 requests. Fix a misspelled parameter and a copy paste exception error
22309 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
22311 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
22312 to get the same width/height (5/13) on X11 as the default font has on
22313 win32. This means that our DefaultFont emSize is smaller than the
22314 the MS SWF equivalent (even thought the width/height stays the same)
22316 2006-05-20 Jackson Harper <jackson@ximian.com>
22319 * MdiWindowManager.cs:
22320 * InternalWindowManager.cs: Make sure to use the border width from
22323 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
22325 * PrintDialog.cs: Implements printer details
22327 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
22329 * FileDialog.cs: Added focus handling for PopupButtonPanel.
22330 Fixes part 1 and 2 of bug #78446
22332 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
22334 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
22335 instead of sticking to the first ever calculated value
22337 2006-05-19 Mike Kestner <mkestner@novell.com>
22339 * ComboBox.cs: fix mouse motion selection to use MousePosition and
22340 PointToClient, since Capture is set. Fixes #78344.
22342 2006-05-19 Mike Kestner <mkestner@novell.com>
22344 * ListView.cs: match MS behavior in Details view where items are not
22345 drawn if Columns.Count == 0.
22346 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
22347 Use a separate pen to draw the check, since changing the width affects
22348 the box as well. Fixes #78454.
22350 2006-05-18 Miguel de Icaza <miguel@novell.com>
22352 * ListView.cs: ArgumentOutOfRangeException, single versions of the
22353 exception should throw the name of the invalid argument.
22355 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
22356 there are no files listed.
22358 2006-05-18 Jackson Harper <jackson@ximian.com>
22360 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
22363 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22365 * Control.cs: Brought back our old UpdateZOrder method as a private
22366 function and switched our calls from UpdateZOrder to the new one.
22367 This fixes the Paint.Net canvas disappearing bug.
22369 2006-05-18 Jackson Harper <jackson@ximian.com>
22372 * ThemeWin32Classic.cs:
22373 * InternalWindowManager.cs: Move the drawing into the theme,
22374 expose everything the theme should need from the window manager.
22376 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22378 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
22379 from the call to NativeWindow to avoid walking up the parent chain
22380 further than needed (speeds up setting cursors and avoids setting
22381 the wrong cursor if a parent has another cursor defined)
22382 * Cursor.cs: When loading an icon as cursor, MS uses the center of
22383 the icon as hotspot, not what's contained as hotspot in the icon
22384 file. This fixes the perceived drawing offset seen with Paint.Net
22386 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22389 - Store the calculated rectangle in Hwnd object and use it when
22390 setting the client size
22391 - Force Toolwindows to always be type Dock, to ensure they're on top
22393 2006-05-18 Mike Kestner <mkestner@novell.com>
22395 * ComboBox.cs: first pass at ComboBox rework. Layout is more
22396 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
22397 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
22398 Substantial refactoring to remove confusing nested classes. Coding
22399 standard and Get+Set->property refactorings. Shift to index based
22400 highlighting in ComboListBox instead of constantly using IndexOf and
22401 Items[]. Add invalidations on resize for DropDownList to fix ugliness
22402 in FileDialog growth. Draw borders manually since Simple mode needs
22403 to look like two independent controls. Make listbox border
22404 conditional to DropDownStyle. Improved OwnerDraw support.
22406 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
22408 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
22409 Don't set the disposed graphics to null, so we can throw the "right"
22410 exception if the graphics is reused later (added a flag to avoid
22411 double disposing). Some behaviours are different under 2.0 and are
22412 filled under bug #78448.
22414 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22416 * Control.cs: When double-buffering is enabled, we need to reset
22417 our graphics context between paint calls. Otherwise, any
22418 transformations and other alterations on the context will
22419 become cumulative (#77734)
22421 2006-05-18 Mike Kestner <mkestner@novell.com>
22423 * ListView.cs: do focused item selection like MS on clicks.
22424 Rework focus handling for ItemControl so LostFocus invalidates as
22426 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
22427 the ListView ItemControl has focus.
22429 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
22431 * XplatUIX11.cs: If client_window ends up being width or height zero
22432 due to border settings, move it off window inside whole_window (#78433)
22434 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22436 * Mime.cs: Shrink the mime file cache correctly.
22438 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22440 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
22442 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22444 * XplatUIX11.cs (AddExpose): More sanity checks
22446 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22449 - AddExpose: Don't add expose ranges outside the size of our
22451 - Cast opacity values to Int32 to avoid crashes with certain
22453 - Added disabled code paths that protect against illegal cross-
22454 thread painting (Developers.exe)
22456 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22458 * ProgressBar.cs: Invalidate the control when it's resized
22459 since block size is based on control size. (#78388)
22461 2006-05-16 Miguel de Icaza <miguel@novell.com>
22463 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
22464 of setting the incoming argument to the "reset" value, we set the
22465 this.datamember to string.empty (before we were invalidating the
22470 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22472 * Form.cs: Only apply transparency settings after the form
22473 is created. (Fixes #77800)
22475 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22477 * ApplicationContext.cs: Grab the HandleDestroyed event so
22478 we know when to fire OnMainFormClosed
22480 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22482 * Application.cs: Introduced sub-class to allow tracking of
22483 threads and centralized triggering of the event mess for
22484 ThreadExit, AppExit, etc.. (#76156)
22486 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
22489 - Do not return a null icon index value for a mime subclass.
22490 Instead try the main mime type class too.
22491 - Seems that some newer distributions don't have a link to some
22492 gnome default icons anymore. So check the default gnome dir too.
22495 2006-05-16 Jackson Harper <jackson@ximian.com>
22497 * MdiClient.cs: Don't paint the parent background image if we have
22498 our own background image.
22500 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22503 - PerformLayout: Do not shrink space filled by DockStyle.Fill
22504 controls, all filled controls are supposed to overlap (#78080)
22505 - UpdateZOrder is supposed to update the control's z-order in the
22506 parent's z-order chain. Fixed to behave like that
22507 - BringToFront: Removed obsolete code
22508 - SendToBack: Simplyfied
22509 - SetChildIndex: Trigger layout calculations when Z-order changes
22510 since layout is done by z-order
22512 2006-05-16 Chris Toshok <toshok@ximian.com>
22514 [ fixes bug #78410 ]
22515 * DataGrid.cs (set_AlternatingBackColor): use
22516 grid_drawing.InvalidateCells instead of Refresh().
22517 (set_BackColor): call grid_drawing.InvalidateCells.
22518 (set_BackgroundColor): use Invalidate instead of Refresh.
22520 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
22521 invalidate the cell area.
22523 2006-05-15 Chris Toshok <toshok@ximian.com>
22525 [ fixes bug #78011 ]
22526 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
22527 on to DataGridPaintRow.
22528 (DataGridPaintRow): take a clip argument, and only draw the cells
22529 which intersect it. same with the not_usedarea.
22531 * Theme.cs (DataGridPaintRow) add @clip parameter.
22533 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
22534 XplatUI.ScrollWindow.
22535 (ScrollToRow): same.
22537 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
22538 with last column which was causing a gray swath to appear with the
22539 XplatUI.ScrollWindow code.
22541 2006-05-15 Chris Toshok <toshok@ximian.com>
22543 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
22544 use XplatUI.ScrollWindow.
22545 (VerticalScrollEvent): use XplatUI.ScrollWindow.
22547 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22549 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
22551 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22553 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
22554 file since there are no equivalent X11 cursors
22556 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
22558 * MonthCalendar.cs : DateTimePicker should reflect selected date
22559 on mouse*up*, not mouse*down*. Fixed originally reported part of
22562 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
22564 * TabControl.cs : When argument index is equal or more than tab
22565 count, just ignore. Fixed bug #78395.
22567 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22569 * Control.cs: Dispose all child controls when control is diposed (#78394)
22571 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22573 * ColorDialog.cs: Finally it is possible to select the color with
22576 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22578 * PrintDialog.cs: Fix typo
22580 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22582 * PrintDialog.cs: PrintDialog is not resizable
22583 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
22584 color. Made some ToolBar drawing methods protected virtual.
22586 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
22588 * PrintDialog.cs: Implementation of the PrintDialog
22590 2006-05-12 Chris Toshok <toshok@ximian.com>
22592 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
22593 thumb, instead use MoveThumb. This has the side effect of making
22594 most of the other thumb moving machinery use MoveThumb as well.
22595 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
22596 need to actually invalidate the rectangle where the new thumb will
22598 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
22599 We force an Update() after, so it's not as fast as it could be,
22600 but at least there's zero flicker and no droppings.
22601 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
22602 (UpdateThumbPos): add another argument (dirty), which says whether
22603 or not to calculate/add dirty regions which we later invalidate.
22604 For cases where we know we're going to use MoveThumb, we pass
22605 false for this. Otherwise, pass true.
22607 2006-05-12 Jackson Harper <jackson@ximian.com>
22609 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
22612 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
22614 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
22615 and GetClipRegion methods and UserClipWontExposeParent property.
22616 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
22617 overriding UserClipWontExposeParent property, setting to false, since
22618 Win32 handles the required expose messages to draw our clipped parent
22620 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
22621 PaintEventStart to set the user clip region if set.
22623 - Now internally tracking the Region for the control since we need to
22624 store it if the handle is not yet created and only set it when it
22625 becomes created. Before setting the region forced handle creation
22626 - Added code to draw the parents underneath a user-clipped region
22627 * Hwnd.cs: Added UserClip property
22629 2006-05-12 Chris Toshok <toshok@ximian.com>
22631 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
22632 (set_Maximum): same.
22633 (set_Minimum): same.
22634 (set_SmallChange): same.
22635 (OnMouseUpSB): remove the call to refresh when releasing the
22636 thumb. We shouldn't need it.
22638 2006-05-12 Miguel de Icaza <miguel@novell.com>
22640 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
22641 AutoSize set to None, we do not need to relayout everything, we
22642 just need to invalidate the current region.
22644 (Draw): Do not draw the entire ClientArea, just redraw the
22645 clip area being passed.
22647 * MdiClient.cs: Make MdiClient constructor with the Form argument
22650 2006-05-12 Jackson Harper <jackson@ximian.com>
22652 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
22653 parents background image, but strangely not their own.
22654 - (DrawStatusBarPanel): Take into account horizontal alignment
22655 when drawing the strings and icons.
22657 2006-05-12 Mike Kestner <mkestner@novell.com>
22659 * ListBox.cs: avoid invalidations for focus when the collection is
22662 2006-05-12 Chris Toshok <toshok@ximian.com>
22664 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
22665 invalidate the entire thumb area. Call InvalidateDirty which
22666 limits the redraw to the thumb itself and surrounding pixels.
22668 * XplatUIX11.cs (ScrollWindow): optimize copying.
22670 2006-05-12 Chris Toshok <toshok@ximian.com>
22672 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
22673 Figure out the positioning/layout in a single pass instead of
22674 multiple recursive invocations. Speeds up the initial display of
22675 the data grid. Also, make many things private that were
22676 originally public but unused outside this class.
22678 2006-05-11 Jackson Harper <jackson@ximian.com>
22680 * MdiClient.cs: Improved layout code.
22682 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
22684 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
22685 not SelectedObject.
22687 2006-05-11 Chris Toshok <toshok@ximian.com>
22689 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
22690 union of that will always be {0,0,width,height}.
22692 2006-05-11 Jackson Harper <jackson@ximian.com>
22694 * Form.cs: Match MS's DefaultSize for forms (they must have
22695 changed the size in sp2).
22697 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
22699 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
22701 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
22703 * TextControl.cs : Fixed bug #78109. This incorrect position
22704 comparison caused crash on automatic line split.
22705 * TextBoxBase.cs : reduce duplicate code.
22707 2006-05-10 Jackson Harper <jackson@ximian.com>
22709 * MdiClient.cs: Active form is only sent to the back when using
22710 the Next form functionality, when a form is clicked the current
22711 active shouldn't be sent to the back.
22712 - Layout the mdi windows when the container is first made visible.
22713 * Form.cs: Give the MdiClient a ref to the containing form when we
22716 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
22718 * LinkLabel.cs : link_font could be uninitialized, so populate one
22719 before actual use. Fixed bug #78340.
22721 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
22723 * XplatUIX11.cs : clipboard format native value is IntPtr.
22726 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22729 - Instead of showing context menus directly we send WM_CONTEXTMENU,
22730 which is passed up the parent chain by DefWndProc
22731 - We now handle WM_CONTEXTMENU to display any menu, or pass it
22732 to DefWndProc (#77956)
22733 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
22735 2006-05-10 Jackson Harper <jackson@ximian.com>
22737 * MdiClient.cs: We need to remove the controls from the mdi
22738 collection, when we close the window.
22739 * MdiWindowManager.cs: Special handling of closing mdi windows.
22740 * InternalWindowManager.cs: Make the close method virtual so the
22741 mdi window manager can handle it specially.
22743 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
22746 - Recalculate grid when the data source has changed
22747 - Matches styles provided by user from all data sources types
22748 * DataGridTableStyle.cs: For columns that provided by the user set the
22749 with the preferred value is there was unassigned.
22750 * CurrencyManager.cs: throw OnItemChanged event
22752 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22754 * PictureBox.cs: Don't animate until handle is created. Start animation
22755 when handle is created.
22757 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22759 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
22761 * XEventQueue.cs: We don't need to provide the extra info
22763 2006-05-10 Jackson Harper <jackson@ximian.com>
22765 * MdiClient.cs: If the mdi clients parent form has a background
22766 image set, we draw that background image for the mdi area's
22769 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22771 * TextBoxBase.cs: Set IBeam cursor (#78347)
22773 2006-05-10 Mike Kestner <mkestner@novell.com>
22775 * ToolBar.cs: fix some text padding issues with ButtonSize
22776 calculation. Update the default size to match MS documentation.
22777 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
22778 button size. Fixes #78296.
22780 2006-05-10 Mike Kestner <mkestner@novell.com>
22782 * ListBox.cs: use is_visible for scrollbar positioning in case the
22783 control isn't on screen yet. Fix off by one with Right vs Width
22784 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
22786 2006-05-10 Jackson Harper <jackson@ximian.com>
22788 * X11Dnd.cs: Drop to a control with another control on top of it.
22789 * ToolBar.cs: Work on a copy of the buttons list, so that it can
22790 be modified in click handlers. TODO: Look for similar problems in
22793 2006-05-09 Jackson Harper <jackson@ximian.com>
22795 * Form.cs: Window managers need the old window state when setting
22797 * InternalWindowManager.cs: Allow the base mdi window manager to
22798 handle more of the MDI only stuff (like maximize buttons).
22799 * MdiWindowManager.cs: Fix some snafus in changing the window
22800 state. Add all the menu functionality, for both popup and
22802 * MdiClient.cs: When a new form is selected the currently
22803 activated form is sent to the back, this matches MS.
22804 - Implement a new method to activate the next mdi child window.
22806 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
22809 - Added new InternalCapture method to allow controls to prevent
22810 the capture behaviour on the click handlers
22811 - Switched to use InternalCapture
22813 - Using InternalCapture to prevent mouse captures from being released
22814 on mouse button release (Fixes #78100)
22815 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
22816 returns Form borders if a caption is present. (Fixes #78310)
22818 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
22820 * TreeNode.cs: Changed serialization .ctor to not require every field
22821 to be present. (#78265)
22822 * OwnerDrawPropertyBag.cs: Added serialization .ctor
22824 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
22826 * MimeIcon.cs: for is faster than foreach for strings.
22828 2006-05-05 Mike Kestner <mkestner@novell.com>
22830 * CheckedListBox.cs: update check handling code to not use selected.
22831 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
22832 behavior for visual feedback, motion response, shift/ctrl handling,
22833 and properly deal with all 4 selection modes. Updates to bounds
22834 handling logic. Add scroll wheel support. [Fixes #77842]
22836 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
22839 - Moved adding of Implicit controls into .ctor. That way, subsequent
22840 creation of the controls will not cause them to think they are
22841 toplevel windows (fixes #78200 header problem)
22842 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
22843 - Switched visibility setting of header control to use internal field
22844 to avoid triggering handle creation
22845 - Now checking if handle is created before causing a refresh when items
22846 are added (This makes us now match handle creation time with MS)
22847 * Splitter.cs: Removed loading of private splitter cursor, switched to
22848 Cursors version now that that is loading the right ones
22849 * Cursors.cs: Load proper splitter cursors from resources
22850 * Cursor.cs: Added second method of loading resource cursors for the
22851 VS.Net users amongst us
22853 2006-05-05 Mike Kestner <mkestner@novell.com>
22855 * ListView.cs: give header_control a minimum size based on the
22858 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
22860 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
22861 window seems to do that with metacity, so set that type. (#78120)
22863 2006-05-05 Mike Kestner <mkestner@novell.com>
22865 * ListViewItem.cs: fix Details mode checkbox layout bug.
22866 * ThemeWin32Classic.cs: draw a ListView column header for unused space
22867 at the end of the header, if it exists. [Fixes for #78200]
22869 2006-05-04 Jackson Harper <jackson@ximian.com>
22871 * MdiClient.cs: Add a helper property to get the container form.
22872 * MdiWindowManager.cs: We have to make sure to use the menu origin
22873 when drawing the icons and buttons, this fixes maximized window
22874 icons/buttons on win32.
22875 * InternalWindowManager.cs: Reset the restore captions when a
22876 window goes from Maximized to Minimized and vice versa. Move the
22877 DrawMaximizedButtons into the MdiWindowManager source, tool
22878 windows can't be maximized. NOTE: This could use a little
22879 refactoring if time ever permits.
22881 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
22883 * TextBox.cs: Add MWFCategoryAttributes
22884 * TextBoxBase.cs: Add MWFCategoryAttributes
22885 * Form.cs: Add MWFCategoryAttributes
22887 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
22889 * Control.cs: Add MWFCategoryAttributes
22890 * ScrollableControl.cs: Add MWFCategoryAttributes
22892 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
22894 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
22895 Divider is true. Fix a little glitch in PropertyToolBar
22898 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
22901 - Dispose: Call base.Dispose, this causes the disposed event
22902 to be fired (and probably other, more important stuff)
22903 - SetVisibleCore: Set is_visible to true after creating the
22904 window so that the window still gets created invisible (if
22905 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
22906 to generate a WM_ACTIVE message
22907 * Form.cs: Call Dispose when we want to destroy the window, instead of
22908 just destroying the handle (Dispose will do that for us)
22910 - RootWindow also needs a queue, so we can properly process the
22911 property change events from RootWindow (like Activate)
22912 - Generatic synthetic WM_ACTIVE message when the active window is
22915 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
22917 * LinkLabel.cs: Trigger a recalc of our label dimensions when
22920 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
22922 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
22923 for determining width and height (image might not be assigned if
22924 we're drawing an imagelist)
22926 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
22928 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
22929 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
22931 * Theme.cs: No longer returns hardcoded menu height, instead calls
22933 * Form.cs (OnLoad): Scaling happens before triggering Load events
22936 2006-05-01 Mike Kestner <mkestner@novell.com>
22938 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
22940 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
22942 * TextBoxBase.cs: Removed Fixme
22943 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
22945 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
22948 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
22949 the rectangle relative to the parent, considering borders. We
22950 don't really want that.
22951 - ScrollWindow: Fixed warning to be more understandable
22952 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
22953 scrollbars and scroll only the visible area
22954 * RichTextBox.cs: Removed debug output
22956 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22958 * NumericUpDown.cs (Text): Just use base
22959 * UpDownBase.cs: Ensure txtView is created before using it
22961 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22963 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
22964 casting to IntPtr to avoid 64bit overflow errors
22966 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22969 - AllowDrop: Don't force handle creation.
22970 - CreateHandle: Added call to tell driver if we're allowed to drop
22972 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
22974 * FileDialog.cs: Remember the last directory not only for the
22975 current instance but also for new FileDialog instances.
22977 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22979 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
22980 broke sending async messages
22982 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22985 - ScrollWindow: Fixed method. We finally generate expose events again
22986 for scrolled areas. This was causing 'garbage' when scrolling
22987 textbox and other controls that used ScrollWindow
22988 - Switched from using the regular queue for paint events to the MS
22989 model of 'generating' paint events when the queue is empty.
22990 We use the new XQueueEvent.Paint subclass to store which windows
22992 - AddExpose now takes the x/y/width/height of the exposed area
22993 and inserts the window into the paint queue if not already there
22994 - InvalidateWholeWindow: Switched to use new AddExpose method
22995 - UpdateMessageQueue: Added which queue to monitor for paint events
22996 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
22997 the unlikely case nothing above handles it. We reset the expose
22998 pending states to get them off the queue.
22999 - GetMessage: Now pulls a paint event if no other events are in the
23001 - Invalidate: Switched to new AddExpose method
23002 - PeekMessage: Updated to understand pending paint events
23003 - UpdateWindow: Fixed logic bug. We were only updating if the window
23004 didn't need updating. Also switched to sending WM_PAINT directly,
23006 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
23007 and random access Remove(). The random access is needed to handle
23008 UpdateWindow() where a WM_PAINT is sent directly without accessing
23010 * ScrollBar.cs: Added Update() calls to cause immediate updates to
23011 allow for better feedback when scrolling. Scrollbars are small and
23012 the immediate update should make it 'feel' more responsive without
23013 slowing things down. ScrollBar still needs it's invaliate logic
23014 updated to not always invalidate the whole bar on certain changes.
23016 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23019 (BackColor): if the control does not support a transparent background,
23020 return the default backcolor when the parent backcolor is transparent.
23022 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
23024 * Application.cs: Updated to new StartLoop/GetMessage API
23025 * RichTextBox.cs: Provide some output on RTF parsing errors
23026 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
23027 new queue_id argument to GetMessage and PeekMessage to allow faster
23028 handling of per-thread queues in drivers.
23029 * Hwnd.cs: Added Queue tracking and property
23030 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
23031 * XEventQueue.cs: Added thread trackingA
23032 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
23034 - Implemented new per-thread queue
23035 - GetMessage: Fixed return/break behaviour on several cases. We were
23036 returning stale messages in some cases, instead of just processing
23039 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
23041 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
23043 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
23045 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
23046 fixed off-by-one comparisons between Width/Height and Right/Bottom.
23048 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
23050 * PropertyGridView.cs: Fix drop down width.
23052 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23054 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
23055 a mess in DrawToolBar, so I removed one of them.
23057 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23059 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
23060 needed (clip). Otherwise we get artifacts.
23062 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23064 * FixedSizeTextBox.cs: Added constructor to allow specifying which
23066 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
23067 and switched FixedSizeTextBox to only be fixed vertical (#78116)
23068 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
23069 if it matches the scale base font (avoids unneeded scaling)
23071 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
23073 * X11DesktopColors.cs: One gtk_init_check should be enough
23075 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23077 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
23080 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23083 - Generate OnTextChanged for Backspace even if we're only deleting
23084 the current selection
23085 - When setting the Text property, only select all text if the
23086 control does not have focus when it is being set. Otherwise
23087 just place the cursor at the beginning of the control
23089 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
23091 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
23092 Added a little helper to draw PropertyGrid ToolBar with a different
23093 border and a different BackColor.
23094 * PropertyGrid.cs: Some background parts didn't get painted with the
23095 correct background color. Added a class that helps us to draw the
23096 correct border for PropertyGridView and a class that helps us to
23097 draw ToolBars with a different backcolor
23098 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
23100 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
23102 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
23103 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
23105 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23107 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
23108 into the palette entries. Also, since we're working on a copy
23109 we needed to copy the palette back onto the bitmap.
23110 * Cursor.cs: Same fix as XplatUIWin32.cs.
23112 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23114 * ImageListStreamer.cs: Need to read the var (or we're off)
23116 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23118 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
23119 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
23120 TextBoxBase.cs: Unused var fixes
23121 * AxHost.cs: Small 2.0 fix
23122 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
23123 as it seems that is what at least Metacity expects. This will make
23124 icons show up on 64bit platforms. We still have some 64bit size
23125 issues, though, since the startup app window size still won't match.
23127 2006-04-25 Mike Kestner <mkestner@novell.com>
23129 * *.cs: cleanup newly reported exception var unused warnings.
23131 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23133 * ThemeWin32Classic.cs: Button image alignment now matches exactly
23136 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23138 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
23139 image. The image position is always the same, no matter if the
23140 button is pressed or not.
23142 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23144 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
23145 selection and set the correct filename for SaveFileDialog.
23146 Patch by Emery Conrad.
23148 2006-04-24 Mike Kestner <mkestner@novell.com>
23150 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
23151 check for item.X outside the ClientRect instead of item.Y. Fixes
23154 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23156 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
23157 trust that value blindly and do some sanity check. Fixes bug #77814.
23159 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23161 * ImageListStreamer.cs: save the mask as a 1bpp image.
23163 2006-04-21 Mike Kestner <mkestner@novell.com>
23165 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
23166 pass Checked and Indeterminate to the Theme Engine. Improve
23167 encapsulation with ListBox.
23168 * ListBox.cs: Keep a StringFormat instead of calculating it every item
23169 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
23170 nested types. Move all CheckState functionality to CheckedListBox.
23171 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
23172 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
23173 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
23174 single base list. Fix scrollbar sizing and placement to mirror MS.
23175 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
23177 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
23178 for CheckedListBox by using new DrawItemState info. Center the
23179 checkboxes on the items. Use new StringFormat property.
23181 2006-04-18 Jackson Harper <jackson@ximian.com>
23183 * Form.cs: MdiChildren don't do default locations the same way as
23184 regular forms. This prevents a crash when trying to position the
23187 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
23189 * PropertyGridTextBox.cs: Formatting, copyright
23190 * PropertiesTab.cs: Formatting
23191 * PropertyGrid.cs: Formatting
23192 * PropertyGridView.cs: Formatting, fix drop down, enabled double
23193 click toggling of values
23195 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
23197 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
23198 * Control.cs (.ctor): verify_thread_handle is static, don't reset
23199 every time a control is created
23200 * Application.cs: Removed obsolete EnableRTLMirroring method
23202 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
23204 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
23205 SelectedIndex to -1. Fixes bug #78121.
23207 2006-04-17 Jackson Harper <jackson@ximian.com>
23209 * Binding.cs: Handle null values for Current and BindingContext.
23210 This occurs when binding is a little delayed.
23211 * CurrencyManager.cs: return null for Current when there are no
23213 - Hookup to the listchanged event on the DataView and update
23214 bindings when the list is changed. This fixes late binding of
23217 2006-04-17 Jackson Harper <jackson@ximian.com>
23220 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
23223 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
23225 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
23227 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
23228 with the correct ButtonState
23230 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
23232 * XplatUIX11.cs: Improved distinguishing between window types to
23233 tell the WM a type closer to what the app wants (Fixes #78107)
23235 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23237 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
23240 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23242 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
23243 drawing code to reflect the size grip changes
23245 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23247 * ImageListStreamer.cs: fix handling of the mask that follows the main
23248 bitmap when deserializing and serialize it properly. The generated mask
23249 should better be a 1bpp image, but I'll do that later.
23251 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23253 * FileDialog.cs: Show something in the DirComboBox on *nix if the
23254 path doesn't fit into some of our Current.Places
23256 2006-04-13 Jackson Harper <jackson@ximian.com>
23258 * ComboBox.cs: Use borders instead of drawing our own decorations,
23259 try to obey correct rules for heights.
23262 * ThemeClearLooks.cs:
23263 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
23264 this is now handled by borders.
23265 - Remove unused DrawListBoxDecorationSize method.
23267 2006-04-13 Mike Kestner <mkestner@novell.com>
23269 * MenuAPI.cs: null guarding for the disbled click check fixes crash
23272 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23274 * ThemeWin32Classic.cs:
23275 - Fixed CPDrawStringDisabled
23276 - Corrected drawing of disabled menu items
23277 - Fixed drawing of disabled radio buttons (bug #78095)
23278 - Draw check in a disabled CheckBox with color ControlDark
23280 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23282 * Form.cs: Use the provided width when calculating the menu size;
23283 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
23284 and ClientSize.Width won't be updated yet
23285 * Application.cs: Use Visible instead of Show() to make form visible,
23286 this way we create the handle later and menusize is considered
23288 2006-04-12 Mike Kestner <mkestner@novell.com>
23290 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
23293 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23295 * TextBox.cs: Implemented context menu
23297 2006-04-12 Mike Kestner <mkestner@novell.com>
23299 * ListView.cs: implement box selection. fixes #77838.
23300 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
23302 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23304 * XplatUIX11.cs: Added setting of window type when transient window
23305 is created (metacity would move it otherwise)
23306 * X11Structs.cs: Added WINDOW_TYPE atoms
23307 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
23308 background (the control is Opaque but still wants transparent
23311 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23313 * Control.cs: Added OnPaintBackgroundInternal to allow controls
23314 that set Opaque but don't mean it (like all ButtonBase-derived
23315 controls) to still draw their background
23316 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
23319 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23321 * Control.cs (PaintControlBackground): Set the graphics object
23322 on our PaintEvent to null to prevent it from being disposed
23323 when the PaintEvent gets disposed
23325 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
23327 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
23328 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
23330 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23333 - Added transparency check to BackColor property. Transparent
23334 backgrounds are only allowed if the control styles permit it
23335 - Added recursive painting of parent control background and
23336 foreground if a control with a transparent backcolor is drawn
23337 (Thanks to Tim Ringenback for providing his 'hack' as a base
23338 for this patch) Fixes #77985 and #78026.
23339 - Added Opaque style check before calling OnPaintBackground, no
23340 need to draw the background if the control is opaque
23341 - Removed ControlAccessibleObject owner variable (inherited from
23342 base, no need to define again)
23343 - Added some documentation links explaining the drawing events
23346 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23348 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
23349 that the affected control is the located at the left border of our
23350 parent (Fixes #77936)
23352 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23354 * TextBoxBase.cs: When rendering disabled or readonly controls,
23355 draw the background with 'Control' instead of 'Window' color as
23356 long as the user hasn't specifically set a color
23358 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23360 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
23361 since that won't be updated if the user types text (only if it's
23362 programatically set)
23364 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23366 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
23367 layout changes do to app-triggered resizes will have the proper
23368 display rectangle for layout
23370 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
23372 * ThemeWin32Classic.cs:
23373 - Make use of the SystemBrushes and SystemPens wherever possible
23374 - Corrected some highlight colors
23375 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
23377 * Theme.cs: Added Empty field to CPColor struct
23379 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23381 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
23382 is displayed when calculating the display rectangle. Thanks to Mike
23383 for teaching me the err of my ways.
23385 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
23387 * ScrollableControl.cs:
23388 - Rewrote DisplayRectangle code, now returning the proper x/y coords
23389 (instead of 0,0) and we now return the real width/height instead of
23390 just the clientrectangle, adjusted for padding. The rectangle is
23391 now cached and created by the new CalculateDisplayRectangle method.
23392 - Created new CalculateDisplayRectange method, which basically does
23393 what get_DisplayRectangle() did originally, but now using the
23394 right edge instead of DisplayRectangle to determine the size of
23396 - get_Canvas(): Fixed it to properly calculate canvas for
23397 right/bottom controls which seem to be placed to the right/bottom
23398 of any controls that have a fixed location
23399 - Removed TODO that's taken care of
23400 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
23401 and SetDisplayRectLocation according to new MSDN2 docs
23402 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
23403 event when that is called, this is added for compatibility
23404 - ScrollControlIntoView(): Implemented.
23405 - Switched scrollbars to be implicit, they shouldn't be selectable
23406 * ContainerControl: Now that ScrollControlIntoView is implemented, we
23407 call it when the active control is set/changed
23408 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
23409 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
23410 implicit_control variable (used for native Win32 message generation)
23411 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
23412 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
23413 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
23414 * XplatUIStructs.cs: Added ScrollBarCommands enum
23416 2006-04-10 Jackson Harper <jackson@ximian.com>
23419 * CheckedListBox.cs:
23426 * PrintPreviewControl.cs:
23432 * UpDownBase.cs: Fixup base event overrides.
23434 2006-04-06 Mike Kestner <mkestner@novell.com>
23436 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
23437 all user-initiated value changes to min <= value <= max-thumbsz+1.
23438 (set_Value): check for vert/horiz when calculating new thumb position.
23439 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
23441 (OnMouseMoveSB): refactor the thumb dragging code and refine
23442 invalidation logic to reduce flicker.
23443 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
23444 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
23445 (UpdateThumbPosition): small code readability cleanup
23447 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
23449 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
23452 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23454 * ThemeNice.cs: Use a better graphics effect when a button is pressed
23456 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23458 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
23459 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
23460 This dramatically reduces the number of Pen.Dispose calls.
23461 Where possible call ResPool methods only once instead of calling it
23462 over and over again (for example for the same color).
23464 2006-04-06 Mike Kestner <mkestner@novell.com>
23466 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
23467 Also remove an unused private field on the collection. Fixes #77972.
23469 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23471 * ThemeNice.cs: Added ToolBar drawing code
23473 2006-04-06 Mike Kestner <mkestner@novell.com>
23475 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
23476 I'm assuming that means we need to look up the toplevel for the
23477 provided control. Fixes the crash trace in #77911 but exposes another
23478 crash in some strange reflection usage in NDocGui.
23480 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23482 * ThemeNice.cs: Gave it a little silver touch and added Images
23484 * FontDialog.cs: FontDialog is not resizable
23485 * FileDialg.cs: Added SizeGripStyle.Show
23487 2006-04-05 Jackson Harper <jackson@ximian.com>
23489 * KeyboardLayouts.cs: Remove warning.
23491 2006-04-05 Jackson Harper <jackson@ximian.com>
23493 * Control.cs: Enable OnPaintInternal so we can use it for drawing
23494 all of our controls instead of Paint +=.
23509 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
23510 use OnPaintInternal. Remove Width/Height and Visible checks in
23511 paint handler, this is done at a higher level now.
23512 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
23513 * PaintEventArgs.cs: Add a handled flag so controls that don't
23514 want anymore painting after OnPaintInternal can make sure OnPaint
23517 2006-04-05 Mike Kestner <mkestner@novell.com>
23519 * Form.cs: fix the menu WndProc hacks to respect the native enabled
23520 state of the form, so that we don't process events when Modal dialogs
23521 are up. Fixes #77922.
23523 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
23525 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
23528 2006-04-05 Mike Kestner <mkestner@novell.com>
23530 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
23532 2006-04-05 Mike Kestner <mkestner@novell.com>
23534 * ListView.cs (HeaderMouseMove): null guarding for the over column
23535 when setting up the drag_to_index. Fixes #78015.
23537 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23539 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
23540 in the taskbar. Transient windows seem to accomplish that.
23542 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23545 - Re-enabled CreateParams.X/Y code for FormStartPosition
23546 - Added code for manual placement when creating the Control
23547 - Incomplete patch to treat MDI forms differently when
23548 setting the ClientSizeCore. (Still need to figure out handling
23551 - When we're explicitly setting the X/Y position of a non-Child
23552 window, let the WM know. Metacity really wants this.
23554 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23556 * ThemeNice.cs: Added CPDrawButton
23558 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23560 * ThemeNice.cs: Changed the color for focused buttons and activated
23561 the arrows for small scroll buttons.
23563 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23565 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
23566 anymore. Changed some method modifiers to protected (virtual)
23567 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
23569 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
23570 Updated drawing of menus, buttons and progressbars; added
23573 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23575 * ImageListStreamer.cs: implemented serialization/deserialization
23578 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
23580 * ThemeWin32Classic.cs:
23581 - Removed all the DrawFrameControl stuff; CPDrawButton,
23582 CPDrawCheckBox and CPDrawRadioButton are now handled directly
23584 - Updated and corrected the drawing code of CPDrawButton,
23585 CPDrawCheckBox and CPDrawRadioButton to better match ms
23586 - Updated theme checkbox and radiobutton code to use the CP*
23589 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23591 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
23594 2006-03-31 Jackson Harper <jackson@ximian.com>
23596 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
23598 * UpDownBase.cs: Don't CreateGraphics manually, use a
23599 Refresh. Ideally we would invalidate the correct areas here.
23601 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23604 - We now track the mapping state of windows. If a window (or
23605 one of it's parents) is not mapped we no longer permit
23606 WM_PAINT messages to be generated since we'd otherwise get
23607 lots of BadMatch X errors. Jackson did all the work figuring
23609 - Destroying the caret if the window it's contained in is
23610 destroyed. Can't use regular DestroyCaret method since it
23611 might fall into a drawing function (trying to remove the
23612 caret) and with that generate new BadMatch errors. Again,
23613 Jackson tracked this down.
23614 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
23615 make sure we send the messages to all windows. (The old code
23616 would send the WM_DESTROY to the window, and then all child
23617 windows would be 'gone' because the WM_DESTROY handle lookup
23618 would no longer find the destroyed window)
23619 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
23620 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
23622 2006-03-31 Jackson Harper <jackson@ximian.com>
23624 * ScrollableControl.cs: Dont recalc if we are not visible.
23626 2006-03-31 Mike Kestner <mkestner@novell.com>
23628 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
23629 the visibility branch.
23631 2006-03-31 Jackson Harper <jackson@ximian.com>
23633 * ScrollBar.cs: Cap values when incrementing/decrementing.
23635 2006-03-31 Mike Kestner <mkestner@novell.com>
23637 * MenuAPI.cs: setup menu.tracker for popup/context menus.
23638 * ToolTip.cs: guard against timer expirations with no active control.
23639 Not sure why it happened.
23641 2006-03-31 Mike Kestner <mkestner@novell.com>
23643 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
23645 * ToolTip.cs: Position the tooltip based on where the cursor is at
23646 popup time, not at MouseEnter time. Add a Down state so that we don't
23647 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
23648 positioning offset. Lookup DisplaySize at positioning time, since it
23649 can theoretically change during invocation.
23650 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
23651 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
23653 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23655 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
23656 Fixes behaviour when the Text property of the box is String.Empty
23658 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23660 * XplatUIX11.cs: Only send mouseleave for our client windows, not
23661 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
23664 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23666 * FileDialog.cs: Visual enhancement for the popup buttons in
23669 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23671 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
23674 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
23676 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
23677 highlighted menu items to match ms
23679 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
23681 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
23683 2006-03-30 Mike Kestner <mkestner@novell.com>
23685 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
23686 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
23687 go active to account for HotLight to Selected transition.
23688 * MenuItem.cs: add internal Selected prop. Fill out the Status
23689 property by calculating it from item info. Add HotLight,
23690 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
23692 2006-03-30 Mike Kestner <mkestner@novell.com>
23694 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
23696 2006-03-29 Jackson Harper <jackson@ximian.com>
23698 * Form.cs: Implement TODO.
23700 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
23702 * PrintPreviewDialog.cs: Implemented missing methods and events; still
23703 missing proper dialog setup in the constructor
23705 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
23707 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
23709 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
23710 - Fixed ResetBindings and removed TODO
23711 - Added check for cross-thread calls to get_Handle()
23712 - Added Marshaller attribute for set_Font to satisfy class status
23713 * FontDialog.cs: Removed TODOs that seemed implemented
23714 * UpDownBase.cs: Removed unneeded TODO and Fixme
23715 * MessageBox.cs: Implemented support for Default button and removed TODO
23716 * FileDialog.cs: Removed obsolete TODO
23717 * DomainUpDown.cs: Removed obsolete TODO
23718 * ButtonBase.cs: Removed obsolete TODO
23719 * XplatUIWin32.cs: Removed obsolete TODO
23721 - Removed obsolete TODO
23722 - Calling CheckAcceptButton when the acceptbutton is changed to allow
23723 internal status updates
23724 - Making sure the active control is selected when the control is created
23725 * CurrencyManager.cs: Removed obsolete TODO
23727 2006-03-29 Mike Kestner <mkestner@novell.com>
23729 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
23730 of PrintPreviewDialog and RichTextBox.
23732 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
23734 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
23735 DarkDark, Light and LightLight colors for a specific color
23736 * ThemeWin32Classic.cs:
23737 - Use Button drawing code to draw RadioButtons and CheckBoxes with
23738 Appearance = Button
23739 - Make use of the new ResPool helper CPColor
23740 - Draw ProgressBar and StatusBar with correct 3D borders
23742 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
23744 * ColorDialog.cs: Return selected color. Fixes bug #77940.
23746 2006-03-28 Mike Kestner <mkestner@novell.com>
23748 * ListView.cs: fix Icon layout to plan for scrollbar widths when
23749 calculating col/row counts.
23751 2006-03-28 Mike Kestner <mkestner@novell.com>
23757 switch to explicit interface method implementation for some methods
23758 corcompare identifies as inconsistent with MS.
23760 2006-03-28 Mike Kestner <mkestner@novell.com>
23764 add a few missing methods from the class status output.
23766 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
23768 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
23771 2006-03-28 Mike Kestner <mkestner@novell.com>
23773 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
23775 2006-03-27 Mike Kestner <mkestner@novell.com>
23777 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
23778 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
23780 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
23782 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
23784 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23786 * ThemeWin32Classic.cs:
23787 - GroupBox: Inserted a little gap between the text and the lines
23789 - Made the code in CPDrawBorder3D more readable
23790 - Corrected the drawing location of the up and down arrows in
23793 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23795 * ControlPaint.cs: Corrected line widths in DrawBorder for
23796 ButtonBorderStyle Inset and Outset
23798 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23800 * ThemeWin32Classic.cs:
23801 - Rewrote the totally broken CPDrawBorder3D method. That was
23802 one of the main problems for the terrific ThemeWin32Classic
23804 - Updated and corrected Button drawing
23805 - Correct the dimensions of the SizeGrip to match ms ones
23806 - Removed a small drawing glitch in DrawComboBoxEditDecorations
23807 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
23808 Border3DStyle.Sunken to match ms.
23810 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23812 * ThemeWin32Classic.cs: First small part of the "de-uglify
23813 ThemeWin32Classic" effort, SizeGrip
23815 2006-03-24 Jackson Harper <jackson@ximian.com>
23817 * XplatUIX11.cs: Give a max idle time of one second, this matches
23818 MS and forces an Idle event every second when there are no other
23819 events in the queue.
23821 2006-03-24 Mike Kestner <mkestner@novell.com>
23823 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
23824 * ListView.Item.cs: fix layout issues with null image lists and images
23825 smaller than checkbox size.
23826 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
23827 mode like MS does. It's weird, but consistent. ;-)
23830 2006-03-24 Mike Kestner <mkestner@novell.com>
23832 * ListView.cs: Scroll wheel support for the item control. Fixes
23835 2006-03-23 Jackson Harper <jackson@ximian.com>
23837 * ScrollableControl.cs: Special case negative sized areas, not
23839 * MonthCalendar.cs: Save the rect of the clicked date so we can
23840 use it for invalidation.
23841 - Try to cut down on the number of invalidates
23842 - Invalidate the rect the mouse is over and was over when moving
23843 the mouse, so we get the focus box following the cursor.
23845 2006-03-23 Mike Kestner <mkestner@novell.com>
23847 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
23848 focus rectangle drawing. Fixes #77835.
23850 2006-03-23 Mike Kestner <mkestner@novell.com>
23852 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
23853 the if and else if and reverting back to the original == check on the
23856 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
23858 * FontDialog.cs: Update the example panel if the selected index of
23859 the fontListBox changes.
23861 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
23863 * FileDialog.cs: Make FileDialog remember which directory it was in
23864 last in the same execution.
23866 2006-03-22 Mike Kestner <mkestner@novell.com>
23868 * FileDialog.cs: make the DropDownMenu on the toolbar display
23869 RadioChecks since they are mutually exclusive and that's what MS does.
23871 2006-03-22 Mike Kestner <mkestner@novell.com>
23873 * Theme.cs: add Color param to CPDrawMenuGlyph.
23874 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
23875 checks and radio marks and arrows are visible on highlighted items.
23876 * ControlPaint.cs: update to use new Theme signature.
23878 2006-03-22 Mike Kestner <mkestner@novell.com>
23880 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
23881 is active. Fixes #77870.
23883 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
23885 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
23886 to be focused/selected after startup
23888 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
23891 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
23892 CustomColors and ShowHelp properties
23893 - Some internal rewrites to get better results when using the
23896 2006-03-22 Mike Kestner <mkestner@novell.com>
23898 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
23899 HoverSelection. Fixes #77836.
23901 2006-03-22 Mike Kestner <mkestner@novell.com>
23903 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
23904 ToggleButtons. (De)Sensitize the Back button around a stack count of
23905 1, not 0. Update ButtonSize based on a pixel count of the win32
23906 control. Adjust the toolbar size/location for new button size.
23908 2006-03-22 Jackson Harper <jackson@ximian.com>
23910 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
23912 * ScrollBar.cs: When doing increments and decrements we need to
23913 set the Value property so that ValueChanged gets raised. A
23914 possible optimization here would be to make an internal SetValue
23915 that doesn't invalidate immediately.
23916 * ToolTip.cs: Tooltips get added to their container (when
23917 supplied) so they get disposed when the container is disposed.
23918 - Don't create tooltips for String.Empty. This prevents all these
23919 little 2-3 pixel windows from showing up when running nunit-gui
23920 and driving me mad.
23921 * Form.cs: Don't set topmost when setting the owner if the handles
23922 haven't been created yet. The topmost set will happen when the
23923 handles are created.
23925 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
23928 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
23929 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
23930 visible (to allow them to recalculate their sizes)
23932 2006-03-21 Mike Kestner <mkestner@novell.com>
23934 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
23935 methods. Removed a ton of redundant code. Still not really happy with
23936 the border rendering, but I think that's mainly because of the
23937 ControlDarkDark being black instead of a dark grey. Depending on how
23938 close we want to be, we might want to revisit those color choices.
23939 Among the new features added during the refactor were DropDownArrow
23940 pressed rendering, Disabled image rendering. Proper flat appearance
23941 boundary rendering. Removed the Divider and Wrapping dividers since I
23942 can't figure out any combination of themes and conditions to make the
23943 MS control draw a horizontal line on a toolbar despite what the
23944 Divider property docs indicate.
23945 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
23946 conditions and incorrect layout. Updated to coding standard.
23947 * ToolBarButton.cs: refactored layout and positioning code from
23948 ToolBar to here. Invalidate wherever possible instead of forcing
23949 redraws of the whole toolbar.
23950 (Known remaining issues: explicit ButtonSize smaller than provided
23953 2006-03-21 Mike Kestner <mkestner@novell.com>
23955 * ContextMenu.cs (Show): use the position parameter instead of just
23956 showing at the MousePosition.
23958 2006-03-21 Jackson Harper <jackson@ximian.com>
23960 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
23961 control handle this.
23962 * TreeNodeCollection.cs: If we are clearing the root node we need
23963 to reset top_node so calcs can still happen.
23964 * ThemeWin32Classic.cs: This is a Flags so we need to check
23967 2006-03-21 Jackson Harper <jackson@ximian.com>
23969 * DataGrid.cs: Create columns when the binding context has been
23971 * X11Structs.cs: Keysyms are uints.
23972 - Add size to fix build.
23974 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
23976 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
23978 - Added ResetMouseHover method to allow controls to retrigger
23979 hovering if they need it more than once
23980 - Implemented MouseHoverTime and MouseHoverSize properties
23981 * Timer.cs: Start() must reset the interval
23982 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
23985 2006-03-21 Jackson Harper <jackson@ximian.com>
23987 * X11Keyboard.cs: improved layout detection. Move the nonchar
23988 tables into this file.
23989 * KeyboardLayouts.cs: Move the tables into resource files.
23991 2006-03-21 Mike Kestner <mkestner@novell.com>
23993 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
23995 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
23997 * Mime.cs: Various speed optimizations. Looking up mime types
23998 is now 2 times faster than before
24000 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
24002 * CreateParams.cs: Added internal menu field
24004 - Switched call order for UpdateBounds; now we always call
24005 the one that also takes ClientSize, and we're calculating the
24006 client size via driver method in the others. The previous
24007 method of tracking client size by difference wasn't working
24008 for forms where even the starting client size wouldn't match
24009 the overall form size (due to borders) (Part of fix for #77729)
24010 - CreateParams(): Do not use parent.Handle unless the handle is
24011 already created. Causes havoc with Nexxia and throws off our
24012 creation of controls
24014 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
24015 - Switched handling of ConfigureNotify over to new PerformNCCalc
24016 method (consolidates code)
24017 - Changed RequestNCRecalc to use new PerformNCCalc method
24018 - Added calls to RequestNCRecalc when menus and borders are changed
24019 to allow app to set NC size. (Part of fix for #77729) This matches
24020 when MS send a WM_NCRECALC on Win32 windows.
24021 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
24022 (Part of fix for #77729). This matches what MS does, they also
24023 send that message when the form is made visible.
24024 - XException.GetMessage: Improved usability of X errors by including
24025 a translation of the window into Hwnd and Control class
24026 - Improved debug info for window creation, reparenting and destruction
24027 - Created helper method WindowIsMapped() [Currently not used]
24028 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
24030 - CreateParams: Now setting our menu on the new internal menu field
24031 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
24032 avoid calculating the same property twice
24034 - Improved usability of ToString() for debugging purposes
24035 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
24036 determine the height of the menu, instead of just the font. This
24037 required to also create a graphics context and to keep a bmp
24038 around (for performance reasons)
24040 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
24042 * MenuAPI.cs: Added OnMouseUp method
24044 - Now remembering the requested client size, avoids size errors
24045 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
24046 instead of base if the menu is active. This is required due to
24047 control now capturing and releasing on down/up and it would
24048 prematurely release our menu capture
24050 2006-03-17 Jackson Harper <jackson@ximian.com>
24052 * KeyboardLayouts.cs: Add the czech layouts.
24054 2006-03-16 Jackson Harper <jackson@ximian.com>
24056 * Control.cs: Use the viewport space when sizing not the controls
24057 client size, so things like ScrollableControl that effect the
24058 viewport size (when scrollbars are added) are computed correctly.
24059 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
24061 - Handle creating BindingManagers for null data sources.
24062 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
24063 source, otherwise when rows are added they are added to the 'fake'
24064 datasource and we will crash when trying to set the position in
24066 - Use Implicit scrollbars on the datagrid so they arent
24069 2006-03-16 Jackson Harper <jackson@ximian.com>
24072 * InternalWindowManager.cs:
24073 * MdiWindowManager.cs:
24074 * X11Keyboard.cs: I really want Mike to love me again (fix
24075 compiler warnings).
24077 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
24080 - OnMouseDown: Switch to editing mode when clicking on the cell
24081 even if we're clicking on the cell that's currently
24083 - ProcessGridKey: Left/Right now wrap like MS.Net does
24084 - ProcessGridKey: Tab now knows to add a new row when tab is
24085 pressed in the cell of the last column of the
24087 - ProcessGridKey: Enter now adds another row if pressed in the last
24088 row and selectes the new row, same column cell
24089 - ProcessGridKey: Home/End navigate columns, not rows, like
24090 originally implemented
24091 - Broke ProcessKeyPreview code out into an extra Internal method
24092 so it can be called from the edit code
24093 * DataGridTextBox.cs (ProcessKeyMessage):
24094 - Switched to accept Tab keypresses
24095 - Added F2 handling to allow jumping to the end of the edited cell
24096 - Added logic to allow moving caret left/right inside edited cell
24097 and making the edited cell jump when the caret hits cell borders
24098 - Tab and Enter are now passed to the datagrid after being handled
24100 - Removed capture code now that Control handles it
24101 - set_SelectionStart now ensures caret is visible
24103 2006-03-16 Jackson Harper <jackson@ximian.com>
24105 * TrackBar.cs: Debackwards the increment/decrement for handling
24106 mouse clicks on the bar with vertical trackbars.
24107 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
24108 bottom to match MS.
24110 2006-03-16 Mike Kestner <mkestner@novell.com>
24112 * ListView.cs: make shift/ctrl keyboard and mouse selection
24113 consistent with the MS control. Fix a bug in
24114 SelectedListViewItemCollection.Clear that was pissing me off for the
24115 better part of a day because the collection was being altered
24116 underneath us as we walked the list.
24118 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
24120 * Control.cs: Not sure how we could miss this so long, but it seems
24121 that MS.Net has Capture set all the way from before calling
24122 OnMouseDown through sending the mouse events until after
24123 OnMouseUp. This will fix DataGrid's selection being set to end
24124 at the location of the MouseUp.
24126 2006-03-15 Jackson Harper <jackson@ximian.com>
24128 * BindingContext.cs: Check the binding after its added so that it
24129 can initialize the binding managers and hookup to events.
24130 * Binding.cs: Data members seem to sometimes include rows/cols in
24131 the format Row.Column we now take this into account.
24132 - Hookup to the position changed event so we can update the
24133 control when the position has changed in the data set.
24134 * CurrencyManager.cs: Take into account the row/col naming
24135 convention when creating dataset tables.
24136 * BindingContext.cs: Using a newer better way of storing
24137 datasource/datamember pairs. Hopefully this better matches MS for
24138 looking up binding managers.
24141 2006-03-15 Jackson Harper <jackson@ximian.com>
24143 * BindingContext.cs: The currency manager needs the data member
24144 name, if the member is a data set we use the name to find the
24146 * CurrencyManager.cs: When creating the list prefer an IList over
24148 - Attempt to create a DataTable from a DataSet (TODO: might need
24149 some better error checking here, although MS doesn't seem to have much)
24150 - If we have a DataTable create a view and use it as our list.
24152 2006-03-15 Mike Kestner <mkestner@novell.com>
24154 * ListView.cs: keep a matrix of the icon mode layout to facilitate
24155 keyboard navigation. Support Up/Down/Left/Right selection correctly
24156 for all 4 View modes.
24157 * ListViewItem.cs: add internal row/col fields for icon layouts.
24159 2006-03-15 Jackson Harper <jackson@ximian.com>
24161 * TabControl.cs: Redraw the tabs when we resize so their newly
24162 calculated sizes are drawn on screen.
24163 * X11Keyboard.cs: Begginnings of XIM support. We also now support
24164 composite characters.
24165 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
24166 - filter events so that composite characters can be created
24168 * X11Structs.cs: Add XIMProperties enum.
24170 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24172 * Control.cs (BringToFront, SendToBack): Don't use window or handle
24173 unless it's created
24175 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24177 * Control.cs (PerformLayout): We don't need to consider visiblity
24178 for anchoring, only for docking. This fixes 'whacky' alignment
24179 in listbox and other controls that use implicit scrollbars after
24180 the previous PerformLayout patch
24181 * ListBox.cs: Switched to use implicit scrollbars
24183 2006-03-14 Mike Kestner <mkestner@novell.com>
24187 - chain up the "new event" overrides to base and use
24188 OnEvent to raise them. Part of fix for bug #76509.
24190 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
24192 * FileDialog.cs: Do not select an item in the parent directory
24195 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24197 * Control.cs (PerformLayout): It would seem that we considered
24198 invisible windows for our layout. Not quite the right thing
24199 to do. Now we don't any longer, thereby fixing bug #76889.
24201 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24203 * Control.cs (CanFocus): I goofed. A control can have focus
24204 even though it's not selectable. Made it match MS docs.
24206 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24208 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
24209 center by default (fixes #76895)
24210 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
24211 all uses of Border3DSides.All with the explicit ORd together
24212 Left|Right|Top|Bottom because I assume that nobody was aware
24213 that All also implies a center fill. Most places I checked had
24214 a fill right above.
24215 * ProgressBarStyle.cs: Added
24217 2006-03-13 Mike Kestner <mkestner@novell.com>
24219 * ListView.cs: fix breakage in drag shadow header positioning
24220 from Peter's csc compilation fix.
24222 2006-03-13 Mike Kestner <mkestner@novell.com>
24224 * ListView.cs: fix NRE produced by backspacing twice in a focused
24227 2006-03-13 Mike Kestner <mkestner@novell.com>
24229 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
24231 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24233 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
24235 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
24236 the allowed size before making programmatic size changes
24238 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24240 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
24241 set, metacity is broken and will still use the emty sizes in
24242 the struct. (Fix for #77089)
24244 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24246 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
24247 WindowExStyles and marked both enums as Flags
24248 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
24249 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
24250 to match WindowStyles split
24252 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
24253 - Updated to match WindowStyles split
24255 - Fixed FosterParent creation, was using ExStyle on the Style field
24256 (This should help with Popup focus issues)
24257 - Updated to match WindowStyles split
24259 2006-03-13 Jackson Harper <jackson@ximian.com>
24261 * MdiWindowManager.cs: Use the system menu height. Fixes some
24262 strange sizing issues.
24264 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24266 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
24268 - Scroll to caret after inserting text (#77672)
24269 - Make scroll range one pixel higher, fixes off-by-one error (and
24270 makes underlines visible on the last line)
24272 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24274 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
24275 the keyboard state from being stuck with keys in 'pressed' state when
24276 focus is switched away via keyboard
24277 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
24278 reset the keyboard if no X11 KeyUp events are expected to come
24279 * X11Structs.cs: Switched type of Visible to bool to match driver
24281 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24284 - Switched caret to be just 1 pixel wide, matches MS and looks less
24286 - Moved caret display 1 pixel down from the top of the control
24288 - InsertCharAtCharet: Update the selection start if moving the caret
24289 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
24290 - No longer always creating the caret when the caret methods are
24291 called. Only the actual ShowCaret/HideCaret will do that now
24292 - Only setting caret visible if the owner control has focus
24293 - UpdateView: Added invalidation-shortcut logic for center and right
24294 aligned text. Previously we'd update all according to the left
24295 logic which caused drawing errors. Also fixed height of invalidated
24296 areas, now properly invalidating the whole area (was off-by-one)
24297 - owner_HandleCreated: Always generate the document when the
24298 handle is created; this ensures that
24300 - Fixed situation where caret would disappear under the right
24301 window border, also improved scrolling behaviour on left-
24303 - Fixed right-aligned textboxes to have a border to the
24304 right instead of the caret being under the right border
24306 - Switched from 'nested' to simple visible/not visible tracking
24307 for caret (part of fix for #77671)
24308 - No longer passing through translated FocusIn/FocusOut messages
24309 since we were notifying too often and the wrong windows. Instead
24310 we just notify our focussed window of receiving or loosing focus
24311 * XplatUIWin32.cs: Switched from 'nested' show/hide
24312 counting for caret to simple visible yes/no behaviour (part of
24315 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24317 * Mime.cs: Remove debug code...
24319 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24321 * MimeGenerated.cs: Removed
24322 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
24323 and subclasses) from /usr/(local/)share/mime and
24324 $HOME/.local/share/mime.
24326 2006-03-10 Jackson Harper <jackson@ximian.com>
24328 * MdiWindowManager.cs: Recalc the NC area when a window is
24329 maximized/restored so that the menu area is drawn on forms that
24332 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24334 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24335 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
24336 us to force a WM_NCCALCRESIZE message being sent. This is needed
24337 for MDI maximizing.
24339 2006-03-10 Jackson Harper <jackson@ximian.com>
24341 * Form.cs: We need to use the ActiveMenu when calculating menu
24343 - Fix nullref when the window manager hasn't been created yet.
24344 * Control.cs: Fix nullref when we try to bring a control to the
24345 front that has no parent.
24346 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
24348 - Add a dummy item to the maximized menu so it always has the
24349 correct height. Otherwise when there are no menus we don't get our
24353 2006-03-10 Jackson Harper <jackson@ximian.com>
24355 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
24357 * Form.cs: Make the window_state internal so the window managers
24359 - When an MDI child is maximized let its window manager create the
24360 main menu (so it can add its icon).
24361 - Notify the window managers of state changes
24362 - Let the window manager paint its buttons and handle button
24363 clicks on the menu when it is maximized.
24364 * InternalWindowManager.cs: Move the prev_bounds into the mdi
24365 window manager, since tool windows don't use it, only mdi windows.
24366 - Tell the main form that we don't want it to handle NCPAINT
24367 itself to avoid extra painting.
24368 - Handle clicks on a maximized windows menu.
24369 - Handle window state changes
24370 - Handle minimize/maximize clicks correctly by setting the window state.
24371 * MdiWindowManager.cs: Add an icon menu that (the menu you get
24372 when clicking on the forms icon).
24373 - New method to create a forms maximized menu. This is its normal
24375 - Handle window state changes.
24376 - Handle sizing of maximized windows. Maximized windows are just
24377 drawn bigger then the parent visible area. All controls are still
24378 there, they are just outside the visible area (this matches windows).
24379 * MdiClient.cs: No scrollbars when a child window is maximized.
24380 - Let the children windows figure out how big they should be when
24381 sizing maximized windows.
24382 - Implement a version of ArrangeIconicWindows somewhat similar to
24383 Windows version. There are some little differences, but I don't
24384 think any app will rely on the layout of minimized mdi windows.
24386 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24388 * Padding.cs: Several fixes to allow compiling with csc 2.0
24390 2006-03-09 Jackson Harper <jackson@ximian.com>
24393 * MenuItem.cs: Cheap hack so we can add items to the list without
24394 the events being raised. This allows adding mdi items during
24395 drawing. TODO: Should probably find a better time to add the items.
24397 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24399 * ThemeWin32Classic.cs:
24400 - CheckBox_DrawText: Added logic to not wrap if not enough space
24401 is available (Fix for bug #77727)
24402 - RadioButton_DrawText: Added logic not to wrap if not enough
24403 space is available (Fix for bug #77727). Also removed some
24404 duplicate code, DrawString always drawing the regular text
24405 before hitting the if statement.
24407 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24409 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
24411 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24413 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
24414 * ContainerControl.cs: Partial implementation of some 2.0 scaling
24415 methods. Moved the new 2.0 properties into alphabetical order with
24416 other properties and added MonoTODO tags
24418 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24420 * AutoScaleMode.cs: Added. Fix build.
24422 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24424 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24425 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
24426 and was requiring premature handle creation for calls from above
24427 * Form.cs, Control.cs: Removed handle arguments from calls to
24428 CalculateClientRect()
24430 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24432 * ListView.cs (HeaderMouseMove): Fix csc compilation.
24433 drag_column.column_rect is MarshalByRef and can't be used that way
24435 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24437 * AxHost.cs: Added deserialization constructor for
24438 AxHost+State (fixes 77743)
24440 2006-03-09 Mike Kestner <mkestner@novell.com>
24443 - Added column drag reordering for details view.
24444 - fixed behavior when mouse is dragged off column and
24445 AllowColumnReorder is false.
24446 * ColumnHeader.cs: clone the format too in Clone.
24447 * Theme.cs: add DrawListViewHeaderDragDetails method.
24448 * ThemeWin32Classic.cs:
24449 - impl new method for drawing drag column shadows and targets.
24450 - support column offset for details mode in DrawListViewItem.
24452 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24454 * TextControl.cs: Reset the char_count when the document is cleared
24455 (Fixes bug reported on mono-winforms mailing list)
24457 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24459 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
24460 of calling base we simply process the key ourselves, since both
24461 DefWindowProc and the handled method would set m.Result.
24464 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24466 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
24467 method also moves the window; instead implemented a copy of
24468 Control.ScaleCore (Part of fix for #77456)
24470 - Created new CreateGraphicsInternal method to allow providing
24471 a graphics context when no handle is created without triggering
24472 handle creation. (Part of fix for #77456)
24473 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24475 - Switched Constructor to require TextBoxBase instead of Control (to
24476 allow uncast access to CreateGraphicsInternal)
24477 - Safeguarded use of owner.Handle property. No longer accessing it
24478 unless the handle is already created.
24479 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24480 - Now triggering a recalc when owning control becomes visible
24481 * TextBox.cs, RichTextBox.cs: Switched to use new internal
24482 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
24483 premature handle creation (Part of fix for #77456)
24485 - We now only destroy our double-buffering buffers when the
24486 control is resized or disposed, but not when visibility
24487 changes. (The code even re-created them twice every time)
24488 - Now requiring a redraw of the buffer on visibility changes
24489 (fixes bug 77654 part 2)
24490 - Not passing OnParentVisibleChanged up unless the control
24492 - CanFocus: Fixed to match MS documentation
24493 - Focus: Fixed to return actual focus state and to check if
24494 setting focus is legal before setting it
24496 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
24498 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
24499 when to draw focus rectangle by looking at parent focus and
24500 selected state instead. This fixes TabPages on Linux sometimes
24501 having none or multiple focus rectangles.
24502 * XplatUIX11.cs (SetFocus):
24503 - Don't set the focus if the same window already has focus
24504 - Use SendMessage instead of PostMessage (like it's Win32
24505 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
24506 to match MS behaviour
24507 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
24508 are not selectable.
24510 2006-03-07 Jackson Harper <jackson@ximian.com>
24512 * PictureBox.cs: Revert line I accidently committed last week.
24514 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
24517 - Added new IsRecreating and ParentIsRecreating properties to
24518 allow testing if RecreateHandle has been called on ourselves
24519 or one of our parents
24520 - WndProc(WM_DESTROY): If our control handle is being recreated
24521 we immediately need to create the handle when receiving the
24522 destroy, that way our child windows find a valid parent handle
24523 when they themselves are being recreated upon WM_DESTROY receipt
24524 (fix for bug #77654 part 1)
24526 - DestroyWindow: WM_DESTROY must be sent to our own window before
24527 notifying any child windows. MS documents that child windows
24528 are still valid when WM_DESTROY is received. (Control now relies on
24530 - Added some fine-grain debug options
24532 2006-03-06 Jackson Harper <jackson@ximian.com>
24534 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
24535 box and base calculations off this.
24536 * MdiChildContext.cs:
24537 * MdiWindowManager.cs: Don't need to ensure scrollbars here
24540 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
24542 * Splitter.cs: In situations where the affected control is added
24543 to the parent's control list after the splitter, we would not
24544 populate affected. Now we try populating it on mousedown, if
24545 it's not already set, and force it to be re-set whenever our
24548 2006-03-03 Matt Hargett <matt@use.net>
24550 * Control.cs: implement Control.Padding
24551 * Padding.cs: -Padding.All returns -1 when constructing with the
24552 implicit default ctor
24553 -Padding.ToString() matches MS.NET
24554 * ContainerControl.cs: implement
24555 ContainerControl.AutoScaleDimensions
24556 * ListControl.cs: implement ListControl.FormattingEnabled
24557 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
24559 * TabPage.cs: Implement UseVisualStyleBackColor.
24560 * PictureBox.cs: Implement PictureBox.InitialImage.
24562 2006-03-03 Mike Kestner <mkestner@novell.com>
24564 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
24565 event declarations to proxy to base event.
24566 * ListViewItem.cs: update to use ItemControl.
24567 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
24568 * ThemeWin32Classic.cs: update to new ListView theme API and fix
24569 column header label rendering for 0 width columns.
24571 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
24573 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
24574 that causes the control to be created. Fixes #77476.
24576 2006-03-02 Jackson Harper <jackson@ximian.com>
24578 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
24581 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
24583 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
24584 passed in for the EventArgs (fixes #77690)
24586 2006-03-01 Jackson Harper <jackson@ximian.com>
24588 * ScrollBar.cs: Refresh afterbeing resized.
24590 2006-02-28 Mike Kestner <mkestner@novell.com>
24592 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
24593 Clean up a tracker compile warning.
24594 * MenuItem.cs: add internal PerformPopup method.
24597 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24599 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
24600 implicit expose) when the text is set to null
24602 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24604 * RichTextBox.cs (FlushText): When newline is true, we always
24605 need to split the line, even if no text is on it and we may
24606 never eat newlines. (Fixes #77669)
24608 2006-02-28 Mike Kestner <mkestner@novell.com>
24610 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
24611 and set Selected instead.
24612 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
24615 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24617 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
24619 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
24622 - Got rid of the panel. All controls are now directly added to
24624 - It is now possible to set a font with the Font property
24625 - MinSize and MaxSize property do now what they should
24626 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
24627 - Searching and selecting a font with the font textbox works now,
24628 the same applies to the style and size textbox
24629 - Draw the correct 3D border in the example panel
24630 - Fixed a little mem leak (unused fonts didn't get disposed)
24631 - Many other internal updates/rewrites...
24634 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24637 - InsertRTFFromStream: Added 'number of characters inserted' argument
24638 - set_SelectedRTF: Now using the number of characters to calculate
24639 the new location for the selection and cursor (x/y cannot be used
24640 due to potentially already wrapped text)
24642 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24644 * TextControl.cs: Added property and implemented means to allow
24645 disabling recalculation of a document (can be used to speed up
24646 multiple inserts and is needed to make RTF inserts predictable, see
24648 * RichTextBox.cs: Using the new NoRecalc property of Document to
24649 keep x/y insert locations predictable. Also makes it faster inserting
24650 large chunks of RTF
24652 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24654 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
24655 it's easier for a child control to handle the other messages without
24656 having to duplicate the special functionality
24658 - WndProc: Removed calling base handler for WM_KEYDOWN and added
24659 code to handle processing the key ourselves, in order to get
24660 access to the result of KeyEventArgs.Handled. We now only call
24661 ProcessKey if they key hasn't been handled already. Fixes #77526.
24662 - set_Text: If null or empty string is given, just clear the
24663 document. Fixes part of #77526
24665 2006-02-27 Jackson Harper <jackson@ximian.com>
24667 * SizeGrip.cs: Paint the background color before painting the grip
24668 so things look right.
24669 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
24671 2006-02-27 Mike Kestner <mkestner@novell.com>
24674 - Restructure layout and invalidation model to remove a ton of
24675 flicker from the control and speed up performance in general.
24676 - Add manual column resize, flickers like crazy, but I already have
24677 some ideas on how I'll fix that. (#76822)
24678 - Merge the three Icon-based views into a single layout method.
24679 - Move item selection interaction logic from the item since
24680 interaction with the collections is more appropriate to the view.
24681 - Deselection on non-item clicks.
24683 - Encapsulate most of the layout. Add some internal props to trigger
24684 layout. Move to a model where Items invalidate themselves instead
24685 of just invalidating the whole control every time something changes.
24686 - Invalidate on Text/Caption changes.
24687 - switch to an offset based layout model to avoid having to absolute
24688 position every element on item moves.
24689 - correct checkbox layout to conform to MS layout.
24690 * ThemeWin32Classic.cs:
24691 - refactor some column header drawing code.
24692 - fix string justification for column headers (#76821)
24693 - make SmallIcon labels top justified for compat with MS impl.
24694 * ThemeClearlooks.cs:
24695 - adjust to new ListViewItem internal checkbox bounds api.
24697 2006-02-27 Jackson Harper <jackson@ximian.com>
24699 * Control.cs: Change where implicit controls fall in the zorder.
24700 They are now on top of all children.
24701 - Synced AddImplicit code with Add
24702 - Removed unused enumerator.
24703 * SizeGrip.cs: Remove the TODO as its been TODONE.
24705 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
24707 * TextControl.cs(Insert): Combine the last lines unless the insertion
24708 string ends with \n\n, otherwise we leave one line too many (Fixes
24709 something I noticed with the testapp for #77526; the bug itself was
24710 already fixed in the previous checkin)
24712 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
24715 - SelectionColor and SelectionFont methods no longer set absolute
24716 styles. Instead, the keep font or color respectively (This
24717 resolves a long-standing FIXME in the code)
24718 - When flushing RTF text, the insert code now considers text trailing
24719 behind the insertion point (Fixes the bug where when replacing
24720 the selected text via SelectedRTF the remainder of the line behind
24721 the selection would stay on the first insertion line)
24723 - AppendText now updates the selection points after inserting text
24724 - AppendText now ensures that the last tag (sometimes 0-length) of
24725 the document is used for the style information (Fixes part of
24728 - Created new FontDefiniton class to allow describing partial style
24730 - StreamLine() now takes a lines argument, to allow it to decide
24731 whether an encountered zero-length tag is the last in the document
24732 (which must be kept to not loose the font/color contained in it,
24734 - Created Combine() and Split() methods for Marker structs, to
24735 support marker updates due to reformatted documents (soft line
24737 - Implemented Document.CaretTag setter
24738 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
24739 of the last line (Not the cause, but also exposed by bug #77220)
24740 - Added LineTag argument to InsertString method, to allow callers
24741 to force a certain tag to be used (required to force use of the
24742 trailing zero-length tag of a document)
24743 - Now updating markers in Combine(), to avoid stale tag markers
24744 - Added some method descriptions to aid maintenance
24745 - Implemented new FormatText concept, allowing additive/subtractive
24746 formatting by only specifying the components that are to be
24747 changed. This was needed for resolving the RTB.SelectedColor/
24748 RTB.SelectedFont fixmes
24749 - Added Break() support method to allow breaking up linetags (used
24750 for partial formatting)
24751 - Added GenerateTextFormat() method. It is used for partial
24752 formatting and allows to generate a full font/color from given
24753 attributes and an existing tag.
24755 2006-02-26 Jackson Harper <jackson@ximian.com>
24757 * XplatUIX11.cs: Use the correct caption height.
24758 - Translate hittest coordinates to screen coords to match MS.
24759 * XplatUIWin32.cs: When we create MDI windows we need to reset
24760 some of the style flags, so we get a nice blank window, and can
24761 draw all the decorations ourselves.
24762 - Set a clipping rectangle on the non client paint event, the
24763 window manager drawing code needs one.
24764 * Form.cs: The window manager needs to know when the window state
24766 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
24767 don't need to factor in border and title sizes in these
24768 methods. TODO: Remove the args and fix the call points.
24769 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
24771 - Let the driver set the cursors.
24772 - Improve active window handling
24773 - Correct sizes for title bars and buttons.
24774 - Match MS drawing better
24775 * MdiWindowManager.cs: We don't need to handle border style
24776 updates specially anymore.
24777 - Check for scrollbars when windows are done moving
24778 - Handle Active properly.
24779 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
24780 correctly. I am spewing the exception though, so we don't hide the
24783 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
24785 * DataGridViewRowPostPaintEventArgs.cs,
24786 DataGridViewCellPaintingEventArgs.cs,
24787 DataGridViewRowCollection.cs,
24788 DataGridViewRowPrePaintEventArgs.cs,
24789 DataGridViewCell.cs: Clear a few warnings and implement a few
24790 exceptions that should be thrown.
24792 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
24794 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
24795 'inheriting' our parent's (non-default) cursor. (Part of
24796 the fix for #77479)
24798 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
24800 * XplatUIX11.cs: Fixed cast to make csc happy
24802 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
24804 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
24805 it's for the client area (part of fix for #77479 and needed
24806 for MDI window cursor handling)
24808 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
24809 the appropriate default cursors and also passing the message
24810 up the parent chain
24811 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
24812 for non-client areas
24814 2006-02-15 Jackson Harper <jackson@ximian.com>
24816 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
24817 is a real MDI window
24819 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
24821 * X11DesktopColors.cs: Instead of checking the desktop session
24822 string for "KDE" check if it starts with "KDE"
24824 2006-02-10 Jackson Harper <jackson@ximian.com>
24826 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
24829 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
24831 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
24834 - Got rid of the panel. All controls are now directly added to
24836 - Changed to mono coding style
24838 2006-02-10 Jackson Harper <jackson@ximian.com>
24840 * InternalWindowManager.cs: We don't need the set visibility to
24841 false hack anymore now that peter has written beautiful shutdown
24844 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
24846 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
24847 where already explicitly destroyed
24849 2006-02-10 Jackson Harper <jackson@ximian.com>
24851 * MdiClient.cs: Handle the case where windows are too high or to
24852 the left and we need scrollbars.
24854 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
24856 * MimeIcon.cs: Added some icons
24859 - Got rid of the panel. All controls are now directly added to
24861 - Changed to mono coding style
24862 - On Linux "My Computer" and "My Network" will now show some
24863 more usefull information. A new class, MasterMount, gathers
24864 this information from /proc/mount. Updated MWFFileView to make
24865 use of this information
24866 - Fixed a bug that caused FileDialog to crash when
24867 ".recently_used" file had a zero size
24868 - FilterIndex does now what it should
24870 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
24873 2006-02-09 Jackson Harper <jackson@ximian.com>
24875 * ComboBox.cs: Don't touch if null.
24877 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
24879 * Cursor.cs: 64bit safeness fix
24880 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
24882 2006-02-09 Jackson Harper <jackson@ximian.com>
24884 * Form.cs: If a form is made into an MDI form update the styles so
24885 all the props can get set correctly.
24886 - Kill the mdi_container when we dont need it anymore.
24887 * InternalWindowManager.cs: Add missing NOT
24889 2006-02-08 Jackson Harper <jackson@ximian.com>
24891 * InternalWindowManager.cs: Respek clipping when drawing MDi
24894 2006-02-08 Jackson Harper <jackson@ximian.com>
24896 * Hwnd.cs: Add bits to track non client expose events.
24897 * XplatUIX11.cs: Track non client expose events on the hwnd. This
24898 gives us a proper invalid rect and will allow for some nice
24899 optimizations with NC client drawing
24900 - MDI windows are children windows, so move their style handling
24901 into the child window block.
24902 * InternalWindowManager.cs: Remove a state reset that was
24903 getting invoked at the wrong time. Fixes managed windows getting
24904 into a 'stuck' captured state.
24906 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
24908 * TextControl.cs (Document.ctor): Now initializing
24909 selection_anchor. Fixes #77493
24911 2006-02-07 Jackson Harper <jackson@ximian.com>
24913 * TrackBar.cs: The increment/decrements were backwards.
24915 2006-02-07 Mike Kestner <mkestner@novell.com>
24917 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
24918 to the instance itself.
24920 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
24922 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
24923 on ulongs and pointers, the size differs between 32bit and 64bit
24926 2006-02-07 Mike Kestner <mkestner@novell.com>
24928 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
24929 for 64 bit platforms to work around a metacity bug.
24931 2006-02-07 Jackson Harper <jackson@ximian.com>
24933 * TrackBar.cs: Process the input keys we need, and hookup to
24934 KeyDown instead of using WndProc, so we get key messages.
24936 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
24938 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
24940 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
24941 we need to translate the XdndVersion atoms array before sending it
24943 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
24946 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
24947 number of bits for the property, not the number of bytes. The
24948 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
24949 but would not crash since it specified 8 bits instead of 4 bits)
24950 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
24951 defined as XID -> long in the C headers)
24952 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
24953 references since those are now IntPtr to begin with
24954 - Switched all Atom.XXX 'int' casts to IntPtr casts
24955 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
24956 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
24957 - Added XChangeActivePointerGrab DllImport (for X11DnD)
24959 - Changed 'int' type for Atoms in XEvent structures to IntPtr
24960 - Changed atom in HoverStruct to be IntPtr
24962 - Removed local DllImports, switched code to use those from XplatUIX11
24963 - Removed/fixed casts related to the switch of Atom to be a IntPtr
24965 2006-02-06 Mike Kestner <mkestner@novell.com>
24967 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
24968 method signatures in the import region. There may still be some
24969 lingering struct marshaling issues, as I didn't drill down into those.
24972 2006-02-06 Jackson Harper <jackson@ximian.com>
24974 * ComboBox.cs: Dont manually set the top_item, this is computed
24975 when the scrollbar position is set.
24977 2006-02-06 Mike Kestner <mkestner@novell.com>
24979 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
24980 startup crashes on amd64. There's other fixes needed. All pinvoke
24981 usage of Atom needs to be mapped to IntPtr for example. And there are
24982 likely other int/long issues to be addressed.
24984 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
24986 * FileDialog.cs: One more...
24988 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
24990 * FileDialog.cs: Next try
24992 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
24994 * FileDialog.cs: First part of fix for #77464
24996 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
24998 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
24999 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
25000 AcceptButton border drawing.
25002 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
25004 * Form.cs: Moved positioning of form after auto scaling is applied,
25005 otherwise it would possibly use wrong form size.
25007 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
25009 * Control.cs (RecreateHandle): No need to re-create any child
25010 controls, the child windows will get destroyed automatically by
25011 the windowing system or driver, and re-created when the handle
25012 is being accessed the first time. Fixes #77456
25013 * Form.cs: No longer setting the form to closing if the handle is
25014 being recreated. This seems like the right thing to do, don't
25015 have a bug or testcase for this, though.
25017 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25019 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
25020 controls to avoid unwanted side effects
25022 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25025 - ScaleCore needs to scale the bounds, not the ClientSize of the
25026 control. Fixes #77416.
25027 - DefaultSize is 0,0 for control
25029 - DefaultSize is 100, 20
25030 - SetBoundsCore: Now enforcing the height, no matter if the provided
25031 height is more or less than the preferred one, as long as AutoSize
25033 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
25035 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25038 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
25039 call unless both performLayout is true *and* we have a pending
25041 - ResumeLayout: MS does not completely nest Suspend and Resume,
25042 they bottom out at 0, fixed our code to match that.
25043 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
25044 SetBoundsCore, we were updating even when we shouldn't. This fixes
25045 swf-anchors mis-anchoring when resizing the app fast and lots.
25046 - UpdateDistances: Now only setting the left and top distance if
25047 we have a parent and are not suspended, this is based on
25048 a suggestion by Don Edvaldson in bug #77355.
25049 - OnVisibleChanged: Fixed logic when to create the control. We may
25050 not create the control if we have no parent or if it's not visible;
25051 switched to using Visible property instead of is_visible field
25052 since the property also considers parent states. This fixes a bug
25053 when starting Paint.Net
25055 2006-02-02 Jackson Harper <jackson@ximian.com>
25057 * Form.cs: If the forms handle hasn't been created yet don't call
25058 into xplatui to make it top most, just set the topmost flag on the
25059 form in CreateParams
25060 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
25062 2006-02-01 Jackson Harper <jackson@ximian.com>
25064 * ScrollableControl.cs: Refactored the Recalculate method a
25065 little, this wasn't handling all the variants of bottom and right
25066 bars needed to be added and added/removed based on their
25067 counterparts being added/removed (which changes the drawable
25068 size). Also we special case client widths and heights of 0 and
25069 don't add the scrollbar for those.
25071 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
25074 - Added method to get AbsoluteGeometry(); currently unused, but might
25075 be used in the future, if we try again to figure out toplevel
25076 coordinates with some more crappy window managers
25077 - Added FrameExtents() method to retrieve the WM set decoration size
25078 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
25079 to deal with at least KDE, FVWM and metacity (Fixes #77092)
25081 - Added whacky_wm tracking var for metacity
25082 - Added logic to have default menu height if the actual menu height
25083 has not yet been calculated (part of fix for #77426)
25084 * Form.cs: Keep track whether client size has been set and re-set
25085 it if a menu is added/removed afterwards (Fixes #77426)
25087 2006-01-31 Jackson Harper <jackson@ximian.com>
25089 * Control.cs: When a new Site is set on the component attempt to
25090 pull the AmbientProperties from it.
25092 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
25094 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
25095 in the background of the owning form. Fixes #77332
25097 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25099 * MimeIcon.cs: Fix for #77409
25101 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25103 * XplatUIX11GTK.cs: Initial import
25105 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
25107 * FixedSizeTextBox: fixes class signature
25109 2006-01-30 Jackson Harper <jackson@ximian.com>
25111 * FixedSizeTextBox.cs: New internal class that represents a
25112 textBox that will not be scaled.
25115 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
25118 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
25120 * XplatUIX11.cs: Retrieve default screen number instead of
25121 assuming 0. Attempted fix for #77318
25123 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
25126 - GetWindowPos: When a window is parented by FosterParent, use
25127 the desktop instead of FosterParent as the base to get coordinates
25128 - CreateWindow: Don't make FosterParent the parent window for Popups
25129 if we don't want a taskbar entry, Popups automatically don't get one
25130 * Hwnd.cs: Need to call remove to actually remove the key from the
25133 2006-01-30 Mike Kestner <mkestner@novell.com>
25135 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
25137 2006-01-30 Jackson Harper <jackson@ximian.com>
25140 * TreeNode.cs: Raise events no matter how the treenode is
25141 checked. Patch by Don Edvalson.
25143 2006-01-30 Jackson Harper <jackson@ximian.com>
25145 * TreeNode.cs: Signature fix.
25147 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
25149 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
25151 2006-01-20 Mike Kestner <mkestner@novell.com>
25153 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
25154 event forwarding when menus are active.
25155 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
25156 Most of the patch is pdb's with a little rework.
25158 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25160 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
25161 Removed GetMenuDC and ReleaseMenuDC methods; replaced
25162 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
25163 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
25164 * InternalWindowManager.cs: Added use of PaintEventStart/End to
25165 handling of WM_NCPAINT message, now passing the PaintEventArgs to
25166 the PaintWindowDecorations method
25167 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
25168 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
25169 * MenuAPI.cs: Made tracker window invisible
25171 - Removed GetMenuDC and ReleaseMenuDC methods
25172 - Implemented the client=false path for PaintEventStart and
25175 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25177 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
25178 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
25181 - MaximizeBox, MinimizeBox: Recreate the handle when setting
25183 - CreateParams: Reworked the styles to match MS look'n'feel,
25184 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
25185 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
25187 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25189 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
25190 window is not mapped, since otherwise every form that's being
25191 created is considered minimized, which is wrong.
25192 * Form.cs: Catching the exception and returning our internal value
25195 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25197 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
25198 SetWindowMinMax() to have means to tell the driver about the minimum,
25199 maximum and maximized state window sizes. (Part of the fix for #76485)
25201 - Implemented tracking of minimum and maximum window size, now calling
25202 new SetWindowMinMax() driver method to tell the driver (Part of the
25204 - Finished handling of WM_GETMINMAXINFO method, now setting all values
25205 (Completes fix for #76485)
25206 - Calling new SetWindowMinMax driver method when the handle for a
25207 form is created, to make sure the driver knows about it even if
25208 the values have been set before the window was created
25209 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
25210 to avoid messing up our anchoring calculations (partial fix
25212 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
25214 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
25215 - Improved GetWindowState() to detect 'Minimized' state on Metacity
25216 (and presumably other freedesktop.org compliant WMs). Left the
25217 assumption unmapped=minimized, needed for SetVisible to work.
25218 - Now setting the window state when creating windows
25219 - Fixed SetVisible to consider/set the window state when mapping
25220 a Form. We cannot set the state before it's mapped, and we cannot
25221 use Form.WindowState once it's mapped (since it would ask the
25222 driver and get 'normal'. Therefore, we grab the state before
25223 mapping, map, and then set state.
25224 - Implmemented SetWindowMinMax method; Metacity does not seem to
25225 honor the ZoomHints, though.
25227 - Removed MINMAXINFO (moved to XplatUIStructs)
25228 - Added SetWindowMinMax stub (on Win32 the only way to set that
25229 information is in response to the WM_GETMINMAXINFO message, which
25230 is handled in Form.cs)
25231 - Added logic to SetVisible to set the proper window state when a
25232 form is made visible (fixes #75720)
25234 2006-01-26 Jackson Harper <jackson@ximian.com>
25236 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
25237 same way we handle them with Invoke.
25239 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
25242 - Added tracking of window state so CreateParams can return
25243 the appropriate style
25244 - Moved setting of WS_CAPTION style in CreateParams to allow
25245 styles without caption
25246 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
25247 control if the TextBox property is accessed. Fixes #77345
25249 - get_Created: now uses is_disposed and is_created to determine
25250 return value (suggested by Jackson)
25251 - CreateHandle: No longer exits if the handle is being recreated
25252 - RecreateHandle: If the handle is not yet created call the
25253 appropriate method to create either control or handle. If the
25254 control is already created CreateHandle will simply exit instead
25255 of just creating the handle
25256 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
25257 now SendMessage WM_DESTROY directly to the control when DestroyWindow
25260 - When DestroyWindow is called, instead of waiting for the
25261 DestroyNotification from X11, we directly post it to the WndProc
25262 and immediately dispose the hwnd object.
25263 Same applies to DestroyChildWindows, and this obsoletes the
25264 expose_pending tracking. Contrary to Win32 behaviour we destroy our
25265 child windows before our own, to avoid X11 errors.
25266 - Removed the direct sending of WM_PAINT on UpdateWindow
25268 - Reworked DoEvents and GetMessage to allow access to internal queue
25269 even when trying non-blocking access to the queue. Fixes #77335.
25270 Based on a patch suggestion by Don Edvalson. The new private
25271 GetMessage can now also be used as a backend for a PeekMessage
25273 * XplatUI.cs: Improved debug output for CreateWindow
25275 2006-01-25 Jackson Harper <jackson@ximian.com>
25277 * Help.cs: Allow param to be null. Patch by Don Edvalson.
25279 2006-01-24 Jackson Harper <jackson@ximian.com>
25281 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
25282 when we have a MaxDropItems lower then the selected index.
25284 2006-01-24 Jackson Harper <jackson@ximian.com>
25286 * Control.cs: Don't allow selection of non visible controls, allow
25287 selection of controls without parents.
25289 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25291 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
25292 * DataGridDrawingLogic.cs: Add editing row only when is necessary
25294 2006-01-23 Jackson Harper <jackson@ximian.com>
25296 * UpDownBase.cs: Make the textbox handle all the selection and
25297 tabbing. This fixes tabing to updown controls.
25299 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25301 * TextBoxBase.cs: fixes exception thown the object was null
25303 2006-01-23 Jackson Harper <jackson@ximian.com>
25305 * ButtonBase.cs: Just use the base CreateParams. They set
25306 visibility and enabled correctly.
25309 * MonthCalendar.cs: Lets let the base set as much of the
25310 createparams as possible so we don't have duplicate code all over
25313 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
25315 * ThemeGtk.cs: Added TrackBar and some experimental code to
25316 get double buffering back
25318 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
25320 * DataGrid.cs: Allows row number set internally higher than the last
25321 when creating a new row. Restores the editing functionality.
25323 2006-01-20 Mike Kestner <mkestner@novell.com>
25325 * MimeIcon.cs: delay Image creation until the icons are accessed
25326 instead of creating 190 scaled images on GnomeHandler startup.
25328 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25330 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
25331 first call base before processing the event. Fixes #77279
25333 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25335 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
25336 that the stride for the GDI bitmap would match the stride of
25339 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
25341 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
25343 2006-01-19 Jackson Harper <jackson@ximian.com>
25345 * ComboBox.cs: Hookup the text controls keydown event so we get
25346 those when the text control has the focus.
25348 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25350 * Label.cs: Now using the base events instead of defining new ones;
25351 this allows us to just call the base properties without having to
25352 duplicate all base property logic
25354 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25356 * Label.cs: A label by default is not a tabstop (Fixes one of our
25357 failing nunit tests)
25359 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25361 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
25362 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
25364 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25366 * Cursor.cs: Reimplemented creating cursor bitmaps without using
25367 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
25370 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
25371 constructor creates images that can't be saved. Part of the fix
25373 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
25374 - SetWindowState: Switched ShowWindow flags (part of an upcoming
25375 bug fix for handling window state in forms properly)
25377 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25379 * ThemeGtk.cs: Simplify ScrollBar drawing
25381 2006-01-18 Jackson Harper <jackson@ximian.com>
25383 * Splitter.cs: Set the default dock style for the splitter control
25384 in the constructor.
25386 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25388 * ThemeGtk.cs: Corrected StateType and ShadowType for
25391 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25393 * Control.cs: Make use of Theme.DoubleBufferingSupported
25395 - Added drawing for flat style buttons
25396 - Added ScrollBar drawing
25398 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25400 * ThemeClearlooks.cs: Removed some unneeded code.
25401 * ThemeGtk.cs: First part of ThemeGtk enhancements.
25403 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25405 * LinkLabel.cs: We need to update the hover drawing when
25406 leaving the control as well.
25408 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
25410 * DataGrid.cs: Clicking on non empty areas in the columns
25411 area was giving an exception
25413 2006-01-17 Jackson Harper <jackson@ximian.com>
25415 * ThemeWin32Classic.cs:
25416 * ListView.cs: Do not draw/clip the headers when the header style
25419 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25421 * DataGrid.cs: Fixes 77260
25423 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25425 * DataGrid.cs: Clicking on a column on a empty grid was giving
25428 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25430 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
25431 or any keypress will crash the grid.
25433 2006-01-17 Mike Kestner <mkestner@novell.com>
25435 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
25436 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
25437 invisible/previously-visible items.
25440 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
25442 * ThemeClearlooks.cs:
25443 - Added CL_Draw_Button method; now other theme controls that are
25444 not derived from button or do not have a button can draw buttons
25446 - Updated ComboBox drawing
25447 - Beautified RadioButton drawing
25448 - Corrected drawing of bottom and left tabs
25449 - Beautified DateTimePicker and MonthCalendar
25450 - Added CPDrawButton and CPDrawRadioButton
25452 2006-01-16 Jackson Harper <jackson@ximian.com>
25454 * ComboBox.cs: Set the initial value of the scrollbar to the
25455 current index. Reduce the numbers of refreshs and IndexOfs called.
25457 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
25459 * FileDialog.cs: When the file listview is focused hitting the
25460 backspace key moves the fileview to the parent directory
25462 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25465 - Added RecreateHandle call when changing taskbar visibility to
25466 trigger reparenting in Win32 driver (Fixes #75719)
25467 - If a window has minimize or maximize buttons, it cannot have
25470 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
25471 the toplevel form with FosterParent (A toolwindow not on the
25472 taskbar) (Fixes #75719)
25473 - Made FosterParent a toolwindow
25475 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25477 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
25479 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25481 * ToolTip.cs: If SetToolTip is called from a control and the mouse
25482 is currently over that control, make sure that tooltip_window.Text
25485 2006-01-13 Mike Kestner <mkestner@novell.com>
25487 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
25489 2006-01-13 Jackson Harper <jackson@ximian.com>
25491 * TreeView.cs: On MS GetNodeAt never actually factors in the X
25492 value passed. Also redraw the selected node when we recieve
25493 focus, so tabbing between trees works correctly.
25495 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25497 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
25498 ~/.gconf/%gconf-tree.xml, so use
25499 .gconf/desktop/gnome/interface/%gconf.xml
25501 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25503 * TextControl.cs: Draw text in gray if control is disabled
25505 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25507 * TreeView.cs: Draw the focus rectangle outside the highlight, to
25508 make sure it's always visible. Fixes #76680.
25510 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25512 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
25514 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
25516 * PageSetupDialog.cs: Added.
25517 * PrintDialog.cs: Attributes.
25518 * PrintPreviewControl.cs: Updates.
25519 * PrintPreviewDialog.cs: Updates.
25521 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25523 * Control.cs: Undid my selection check fix, since it's not needed
25525 - Now considering the presence of hscroll/vscroll when sizing
25526 vscroll/hscroll respectively. Fixed bug #77077
25527 - Added Left/Up/Down/Right to IsInputKey list to prevent
25528 ContainerControl from stealing them. This fixes what I broke
25529 with my last checkin.
25531 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25533 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
25534 I finally understand how the property can be set without a setter :-)
25536 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25539 - Switched RunLoop to use static Message.Create to create a
25541 - Added PreProcessMessage call in runloop for keyboard events; this
25542 is part of the fix for #77219, I overlooked this originally in the
25543 MSDN doc for PreProcessMessage
25545 - Removed call to PreProcessMessage from handling of keyboard
25546 messages; it's supposed to be done in the message pump
25547 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
25548 per MSDN documentation.
25549 - IsInputChar: All chars are input chars by default; removed the
25550 parent calling chain, MS does not document that
25551 - PreProcessMessage: If IsInputChar is true, we want to return false
25552 to allow dispatching of the message
25553 - When selecting the next control, now also check that we're not
25554 selecting ourselves again and therefore return a false positive.
25556 - Tried to match return values for IsInputKey and ProcessDialogKey
25557 to what MS returns; moved processing of our special keys outside
25558 ProcessDialogKey since MS does not seem to return true on those.
25559 - Moved code that previously was in ProcessDialogKey into new private
25560 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
25561 - Reworked handling of WM_CHAR to not have to duplicate code from
25562 Control.cs anymore, instead we simply call down to base.
25564 2006-01-12 Jackson Harper <jackson@ximian.com>
25566 * ComboBox.cs: We always need to refresh the text area when
25567 EndUpdate is called. Fixes the combobox in the file dialog.
25568 * Control.cs: Don't create the creator_thread until the controls
25569 handle is created. Also in InvokeRequired we check if the
25570 creator_thread is null. This gives the effect of InvokeRequired
25571 returning true if the controls handle is not created yet, and
25574 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25577 - Added StartLoop() driver method. This is used to allow drivers to
25578 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
25579 loop for a particular thread
25580 - Added EndLoop() driver method. This is called once the message
25581 pump for the thread is shut down
25582 - Added SupportsTransparency method to allow the driver to indicate
25583 opacity support for windows
25585 - Removed TODO attribute, completed AllowTransparency property
25586 - Added documented logic to Opacity
25587 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
25588 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
25589 versions of CompatibleTextRendering
25590 * X11Structs.cs: Added opacity atom to our atom enumeration
25591 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
25592 of a form might be set before it's reparented by the WM, and we need
25593 the opacity value without calling up to Form)
25594 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
25595 SupportsTransparency() driver methods
25596 * Application.cs: Now calling StartLoop and EndLoop driver methods
25598 - Added opacity atom registration
25599 - Added StartLoop()/EndLoop() methods. They're empty right now but
25600 will need to get implemented when we switch to a per-thread queue
25601 - Implemented SupportsTransparency() method
25602 - Implemented SetWindowTransparency() method
25603 - Added support for setting the opacity value when a window is
25604 reparented (since the opacity needs to be set on the WM frame)
25605 * XplatUIOSX.cs, XplatUIWin32.cs:
25606 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
25608 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
25610 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
25612 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
25614 * FileDialog.cs: Added ToolTip for MWFFileView
25615 * MimeIcon.cs: Rewrote GnomeHandler.
25616 - Get currently used gnome icon theme from
25617 ($HOME)/.gconf/%gconf-tree.xml
25618 - Make use of inherited icon themes
25619 - Support SVG icon themes like Tango via librsvg
25621 2006-01-12 Miguel de Icaza <miguel@novell.com>
25623 Revert's Jackson's revert which broke 2.0 builds. Fix both
25626 * Application.cs: Move the use_compatible_text_rendering outside
25627 the NET_2_0 define. If we ever need to use the
25628 use_compatible_text_rendering on the individual controls they will
25629 access the variable from the common shared code paths.
25631 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25634 - Added more granular debug options
25635 - Added method to print both window text and id
25636 - Switched debug output to use new Window() debug method
25637 - Added IsEnabled() driver method
25638 - Added EnableWindow() driver method
25640 - Removed end_modal; no longer needed, new loop handles termination
25641 via 'closing' variable
25642 - If form is modal, setting DialogResult will now initiate loop
25643 termination via 'closing' variable
25644 - Added support for is_enabled/WS_DISABLED to CreateParams
25645 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
25647 - Removed code that's now in RunLoop from ShowDialog()
25648 - Added various documented sanity checks to ShowDialog()
25649 - Added handling of WM_DESTROY message; we set 'closing' on getting
25650 the message to indicate the message pump to terminate
25651 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
25652 send by the Application.ExitThread method. (We send the message
25653 to destroy the window after all other events have been
25654 processed through the queue, instead of destroying the handle
25656 - Moved code from Close() method to WM_CLOSE handler; added logic
25657 to only send close-related events if the form is not displayed
25659 * Splitter.cs (..ctor): Fixed typo in resource name
25661 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
25663 - set_Cursor: Now only setting calling into XplatUI if the handle for
25664 the control is already created; this avoids implict handle creation
25665 or crashes if it's not created
25666 - set_Enabled: Now setting the enabled state via the new driver method
25667 instead of just tracking it
25668 - CreateParams: Added logic to set WS_DISABLED based on enabled state
25669 - CreateControl: Reordered event firing and method calls to more
25670 closely fire events in the order MS does. Now setting the
25671 enabled state in the driver when creating the control.
25672 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
25674 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
25675 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
25676 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
25678 - Added tracking of window enabled state (get_Enabled/set_Enabled)
25679 - Added EnabledHwnd property to easily allow a driver to find the
25680 handle of the first enabled window in the parent chain (this is
25681 used by drivers to pass up input events of disabled windows)
25682 * XplatUIDriver.cs: Added IsEnabled() method
25684 - Removed crude and obsolete exiting tracking variable
25685 - Removed internal ModalRun(); replaced by RunLoop()
25686 - Implemented private CloseForms() method to allow closing all
25687 windows owned by a particular (or all) threads
25688 - Exit() now properly closes all windows without forcing the message
25690 - Removed obsolete InternalExit() method
25691 - Changed Run() methods to use new RunLoop() message pump
25692 - Implemented new RunLoop() method for both modal and non-modal forms
25694 - get_CreateParams: Added setting of WS_DISABLED
25695 - Simplified ShowDialog(); now all the work is done in RunLoop(),
25696 invoked via Form.ShowDialog()
25697 * NativeWindow.cs: We don't remove the window from the collection when
25698 the handle is destroyed; there might still be messages for it in the
25699 queue (mainly the resulting WM_DESTROY); instead it will be removed
25700 when Control calls InvalidateHandle in the WM_DESTROY handler
25702 - CreateWindow: Added logic to handle the WS_DISABLED window style
25703 - EnableWindow: Implemented based on Hwnd.Enabled
25704 - GetMessage: Reset PostQuitState so the method can be called again
25705 - Implemented support for disabled windows (passing messages to the
25706 first enabled parent) in handling all input messages
25707 - Added optimizations for handling Expose events
25708 - Implemeted new driver method IsEnabled()
25709 - Now always resetting paint pending tracking vars when we start paint
25710 - Re-implemented UpdateWindow via just sending a WM_PAINT message
25711 * XplatUIOSX.cs: Added IsEnabled method stub
25712 * XplatUIWin32.cs: Implemented new IsEnabled() method
25714 2006-01-11 Jackson Harper <jackson@ximian.com>
25716 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25717 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
25718 variables a little.
25719 * ColorDialog.cs: Clear out the old form before adding the new
25722 2006-01-11 Jackson Harper <jackson@ximian.com>
25724 * X11Dnd.cs: Make sure to add all the text formats when adding
25725 strings to the data object.
25726 * TreeNodeCollection.cs: When adding to a sorted tree we need to
25727 do some redrawing too. Also change the UpdateNode to an
25728 UpdateBelow so the newly added node gets painted.
25730 2006-01-11 Miguel de Icaza <miguel@novell.com>
25732 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25733 LinkLabel.cs, PropertyGrid.cs: Implement the
25734 UseCompatibleTextRendering property for 2.x
25736 * Application.cs (SetCompatibleTextRenderingDefault): Add.
25738 2006-01-11 Jackson Harper <jackson@ximian.com>
25740 * TreeView.cs: Use the property for setting the selected node so
25741 the correct events get raised.
25742 * TreeNode.cs: Update the tree when the fore/back colours of a
25745 2006-01-10 Jackson Harper <jackson@ximian.com>
25747 * TreeView.cs: Allow setting SelectedNode to null.
25749 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25751 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
25753 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25755 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
25757 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25759 * PrintDialog.cs: Added attributes and set default property values.
25761 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25763 * PrintControllerWithStatusDialog.cs:
25764 Added PrintControllerWithStatusDialog.
25766 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25768 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
25769 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
25771 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25773 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
25775 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
25777 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
25778 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
25780 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
25782 * MimeIcon.cs: Added internal class SVGUtil.
25784 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
25786 * FileDialog.cs: Don't crash if there are two files with the
25787 same name but different locations.
25789 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
25791 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
25792 dates across multiple month grids. Used to not highlight entire
25793 month, but does now.
25795 2006-01-06 Jackson Harper <jackson@ximian.com>
25797 * MonthCalendar.cs: Removed DoEvents call to prevent a running
25798 message loop. Change timer intervals to numbers that seem more
25801 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
25803 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
25804 object for location info since screen object is now implemented.
25806 2006-01-05 Jackson Harper <jackson@ximian.com>
25808 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
25809 * AsyncMethodResult.cs: We no longer use a WeakReference for the
25810 AsyncMethodResult, this is because we ALWAYS want the
25811 ManualResetEvent to get set.
25812 * Control.cs: When disposing use an async invoke to call shutdown
25813 code, so that thigns don't block on the finalizer thread. Also
25814 check if we even have a message loop before trying to send
25815 messages, if we don't then don't bother sending messages.
25816 - No more weak references for async methods
25817 * XplatUIDriver.cs: No more weak references for async methods.
25819 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
25821 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
25822 returns two FontFamily with the same name
25824 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
25826 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
25827 drawing disabled text. Instead using the ColorGrayText color
25829 2006-01-04 Jackson Harper <jackson@ximian.com>
25831 * TreeNode.cs: redraw the node when its image index is changed.
25833 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
25835 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
25836 time I checked there are no others like it.
25838 2006-01-04 Jackson Harper <jackson@ximian.com>
25840 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
25841 this gives the behavoir I was looking for.
25842 * Control.cs: Special case Invoking EventHandlers, this matches MS
25843 and fixes part of bug #76326.
25845 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
25847 * ThemeClearlooks.cs, FileDialog.cs:
25848 - Reflect the latest Theme class changes
25849 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
25852 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
25854 * Theme.cs: Cache UI resource images and resize them if needed
25856 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
25858 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
25859 is called. This fixes the crash in Nexxia when setting the font
25860 attributes in the chat. [However, RTF needs a look-over to make sure
25861 that all SelectionXXX methods handle the special case that selection
25862 is empty and therefore the change must be applied to all text starting
25863 at the cursor/selection start]
25865 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
25867 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25868 XplatUIOSX.cs: Added SendMessage and PostMessage methods
25869 * X11Keyboard.cs: Switched to new way of calling PostMessage
25871 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
25873 * Theme.cs: Added theme interface for images to allow the theme to
25874 control what images are used for things like FileDialog, MessageBox
25876 * MessageBox.cs: Now uses the new Theme icon/image interfaces
25878 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
25881 - Removed some dead code
25882 - Opening a recently used file does work now
25883 - Small UI enhancements
25886 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
25888 * FileDialog.cs: Forgot too add __MonoCS__
25890 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
25892 * FileDialog.cs: We are able to read recently used files now let's
25893 go on and write them.
25895 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
25897 * FileDialog.cs: Breathe some life into "last open"/"recently used"
25899 * MimeIcon.cs: Do a check for the top level media type also
25901 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
25903 * ThemeClearlooks.cs:
25904 - Added CPDrawStringDisabled
25905 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
25906 some chars if the text doesn't fit into text_rect
25907 - DrawListViewItem: If View = View.LargeIcon center the image;
25908 rewrote the drawing of ListViewItem.Text if View =
25911 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
25913 * MimeIcon.cs: Use default KDE icon theme if there is no
25914 "48x48" directory for the current icon theme, fixes #77114
25915 * Mime.cs: Disable not working and actually not used code.
25916 * ThemeWin32Classic.cs:
25917 - Replace "new SolidBrush" in GetControlBackBrush and
25918 GetControlForeBrush with ResPool.GetSolidBrush
25919 - Changed DrawListViewItem from private to protected virtual
25921 - Added form.MaximizeBox = true
25922 - Don't throw an exception if there is a broken symbolic link
25924 2005-12-23 Jackson Harper <jackson@ximian.com>
25926 * TabControl.cs: Give the panels focus, keyboard navigation is
25927 fixed so this works correctly now.
25928 - We need these key events also.
25929 * ToolBar.cs: Remove some of the poor mans double buffering.
25931 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
25933 * ComboBox.cs: The internal TextBox now returns the focus.
25935 2005-12-23 Jackson Harper <jackson@ximian.com>
25937 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
25939 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
25941 * Control.cs: Removed debug code
25942 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
25945 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
25947 * Control.cs: When creating the control, update the Z-order after
25948 all it's children are created, too. (Fixes nexxia not showing
25951 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
25953 * Control.cs: Do not update the anchoring distances if layout is
25954 suspended, instead do it once layout is resumed
25956 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
25959 - After many hours of debugging, for both Jackson and
25960 myself, it turns out that it helps to set the parent of a control
25961 if you want to actually see it onscreen. In the spirit of that
25962 discovery, we're now setting the parent of the control and
25963 it's children when the control's handle is created. This fix
25964 will make Lutz Roeder's Reflector run happily.
25965 - now just creating the handle instead of the whole control when
25966 getting a graphics context for the control.
25968 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
25970 * ScrollableControl.cs: When calculating the canvas, don't consider
25971 the scrollbar widths. Instead, predict if horizontal scrollbar
25972 will affect canvas when deciding on vertical display and vice versa.
25974 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
25976 * RichTextBox.cs: Set default RTF font for documents that don't
25977 have a font table (Fixes #77076)
25979 2005-12-22 Jackson Harper <jackson@ximian.com>
25981 * TextBoxBase.cs: It's difficult to do, but you can have an empty
25982 clipboard. This prevents a NullRef in that case.
25983 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
25984 clipboard. PRIMARY is for the currently selected text only. (We
25985 should implement PRIMARY at some point.
25987 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25989 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
25990 a Unicode function with a structure that was defined in Ansi way.
25993 2005-12-21 Jackson Harper <jackson@ximian.com>
25995 * StatusBar.cs: Statusbar handles its fore/back colours on it's
25996 on. Because thats how it rolls. (and this avoids it using ambient
25998 * ThemeWin32Classic.cs: Use the proper back color for filling.
25999 * Menu.cs: Use the system menu bar color for drawing menu
26000 bars. Using the window back color will bring ambient colours into
26003 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
26005 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
26006 Bitmaps were created and not disposed.
26008 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26010 * Control.cs (CreateControl): Don't do anything if the control is
26011 already created, otherwise we'd fire the OnCreated event more than
26014 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26016 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
26017 will always match. Instead return -1. Fixes #76464.
26019 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26021 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
26022 neither the beginning nor the end of the line (Fixes bug #76479)
26024 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26027 - ControlNativeWindow.ControlFromHandle(): Now handling situation
26028 where handle is invalid
26029 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
26030 instead of slower linear search
26031 * NativeWindow.cs: Don't remove the window from the hashtable until
26032 after the driver has destroyed it (since the driver might use
26033 Control.FromHandle to lookup the control object
26034 * Hwnd.cs: Added DestroyPending property to track if a window is
26035 already destroyed as far as the driver is concerned and only hasn't
26036 yet notified the control
26038 - Activate(): Check if the window is still valid before using the
26040 - Implemented DestroyChildWindow() method to mark child windows as
26041 destroyed when a window is destroyed. This prevents situations
26042 where we might call an X method based on queued events for a
26043 window that already has been destroyed but we haven't yet pulled
26044 the destroy method from the queue.
26045 - Added a call to the new DestroyChildWindow() method to the drivers
26046 DestroyWindow code. Also now marking the destroyed window itself
26049 2005-12-20 Jackson Harper <jackson@ximian.com>
26052 * StatusBarPanel.cs: Don't calculate panel sizes on draw
26053 anymore. Just do them when needed, also track the rects of panels
26054 so that we can optimize refreshing more in the future.
26056 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
26058 * ColorDialog.cs: Fixed focus drawing in small color controls
26060 2005-12-19 Jackson Harper <jackson@ximian.com>
26062 * InternalWindowManager.cs:
26063 * MdiWindowManager.cs: Cleanup some coordinate system changes so
26064 moving windows works properly.
26066 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
26069 - Removed call to InitLayout() from SetBoundsCore(); doc says
26070 it's only called when a control is added to a container
26071 - Split InitLayout logic, moved to separate UpdateDistances() method
26072 since we need to perform those calculations more often than just
26073 when adding the control to a container. (Needed to fix #77022)
26074 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
26075 - Reduced the OnBindingContextChanged events count, don't send them
26076 unless the control is created, we still aren't totally matching
26077 MS, but I can't quite figure out some of their rules
26079 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26081 * ThemeClearlooks.cs: Corrected distance between ProgressBar
26084 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26086 * ThemeClearlooks.cs:
26087 - Updated ProgressBar drawing
26088 - Corrected drawing of ScrollBars and scroll buttons
26089 - Some temporary fixes for minor pixel artefacts
26091 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
26094 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
26095 cause events to be sent in the same order as MS does.
26096 - Added ChangeParent() method to trigger various OnXXXChanged events
26097 that need to be fired when a parent changes (This is a reworking
26098 of the patch from r54254, with the X11 errors fixed)
26099 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
26100 since on MS we get OnLayoutChanged events when calling Clear()
26101 - Changed Enabled property to consider parent state as well, if a
26102 parent is not enabled, the control will not be either
26103 - Changed Parent property to simply call Controls.Add() since that
26104 now does all the work required, this way we avoid code duplication
26105 - Threw in a few OnBindingsContextChanged calls to try and match
26106 when MS sends them. We seem to send a few too many, though.
26107 - Added call to CreateControl when adding the control to a parent.
26108 We were never calling CreateControl. Still needs some work, in
26109 some places we treat HandleCreated and ControlCreated as equal,
26111 - Removed obsolete commented out code from UpdateZOrder()
26113 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26115 * ThemeClearlooks.cs: Updated TrackBar drawing.
26117 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
26119 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
26121 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
26123 * FileDialog.cs: Add the Help button and the open readonly
26124 checkbox only if needed
26126 2005-12-16 Jackson Harper <jackson@ximian.com>
26128 * Control.cs: Make sure we have an active menu before trying to
26129 process commands on it. Prevents menu-less forms from crashing
26130 when Alt is pressed.
26131 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
26133 * RichTextBox.cs: Expand statement to help out gmcs and fix the
26136 2005-12-16 Jackson Harper <jackson@ximian.com>
26138 * InternalWindowManager.cs: Don't translate tool windows screen
26139 coordinates. This fixes windows 'bouncing' around when being moved.
26141 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26144 - MaxLength now treats 2^31-1 equal to unlimited length (this is
26145 not quite MS compatible, MS uses that number only for single line
26146 and 2^32-1 for multi-line, but I figure it won't hurt keeping
26148 - Now enforcing the MaxLength limit when entering characters
26149 - Added argument to internal Paste() method to track if it's called
26150 from programatically or via keyboard, since keyboard driven pastes
26151 need to enforce max-length
26152 - Added logic to Paste to only paste as many chars as MaxLength
26154 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
26156 - Added Length property to return number of characters in document
26157 - Added private CharCount property which only tracks actual chars
26158 in the document (no linefeeds) and fires event when CharCount
26160 - Added tracking of character count to all methods that alter it
26161 - Added LengthChanged event to allow applications to subscribe
26162 to any changes to the document
26164 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26167 - Removed local password_char field (moved to TextBoxBase)
26168 - Now setting the document's password var when password is
26171 - Added password_char field (needed here so MultiLine can
26173 - Added logic to MultiLine property setter to set the document's
26174 variable when password display is allowed
26175 - Removed debug code and made some debug code conditional
26177 - Added RecalculatePasswordLine() method to handle special password
26179 - Added PasswordChar property, also added related tracking vars
26180 - Draw() method now uses local text var for grabbing text to draw,
26181 this var is set to line.text unless we're doing password display,
26182 then it is set to the pre-generated all-password-chars line
26183 - Added calling RecalculatePasswordLine() method for password lines
26185 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26188 - Added Reparented property to allow tracking of Window Manager
26189 reparenting actions (which affect X/Y calculations of toplevel
26191 - Made ToString() print window handles in hex
26193 - AddConfigureNotify(): Now uses reparented state off Hwnd to
26194 determine if X/Y needs offsetting
26195 - AddConfigureNotify(): Fixed offset calculations
26196 - Now adds ReparentNotify messages into the queue
26197 - Now processes ReparentNotify messages and causes a
26198 WM_WINDOWPOSCHANGED message to be sent upstream if a window
26199 is reparented (as most likely it's X/Y coordinates are changed
26202 2005-12-14 Jackson Harper <jackson@ximian.com>
26204 * XplatUIX11.cs: Tool windows still need to respek focus.
26206 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26208 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
26209 have a working release
26211 2005-12-13 Jackson Harper <jackson@ximian.com>
26213 * Form.cs: Update styles after setting the border style regardless
26214 of whether or not the window is using a window manager.
26216 2005-12-13 Jackson Harper <jackson@ximian.com>
26218 * Form.cs: We now hook into an internal window manager instead of just an
26219 MDI subsystem, this is so we can have properly behaving tool windows.
26220 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
26221 * InternalWindowManager.cs: New internal class that acts as a
26222 window manager for tool windows and as a base for mdi windows.
26223 * MdiWindowManager.cs: New class that acts as a window manager for
26226 2005-12-12 Jackson Harper <jackson@ximian.com>
26228 * Control.cs: Updates so we match behavoir for for implicit
26229 controls. Fixes explosions in MDI.
26231 2005-12-12 Jackson Harper <jackson@ximian.com>
26233 * Control.cs: Implement Invalidate (Region).
26235 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
26238 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
26239 the same events as MS does. MS fires events for each property
26240 except, for unknown reasons, Cursor, when the control is reparented.
26241 I can't seem to totally match add/remove since MS also fires some
26242 VisibleChanged events, which makes no sense. Consolidated the
26243 parenting code into a separate method so it can be called from
26244 both Add and Remove. set_Parent no longer needs any special logic
26245 as it calls the parent's add method which implicitly fires
26247 - Removed some obsolete code and debug output
26248 - Enabled state is inherited from parents, if this is enabled
26250 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26252 * Form.cs: Removed commented out code
26254 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26257 - Added internal version of Invoke, with additional argument
26258 indicating if we're calling it from a Dispose() handler. That
26259 way we can avoid BeginInvoke throwing an exception if we're
26260 calling for an already destroyed window.
26261 - Added a dispose argument to BeginInvokeInternal, and made the
26262 check if a valid window handle chain exists conditional on
26263 it not being a dispose call
26264 - Removed code in DestroyHandle to destroy our children. Since we
26265 now handle the WM_DESTROY message we will catch all our children
26267 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
26269 - Added a field to track the application context of the form.
26270 - No need to set closing variable as response to WM_CLOSE, instead
26271 we destroy the window. We also call PostQuitMessage if the form
26272 has an application context (which makes it the main app form,
26273 which, when closed terminates the app)
26275 - Dropped Exit() method, it's naming was confusing
26276 - Added PostQuitMessage() which causes GetMessage to return false
26277 once the message queue is empty
26278 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
26280 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
26281 no longer a valid XplatUI method, but left it in since it's used
26282 internally. Added empty PostQuitMessage() method.
26283 * MenuAPI.cs: Replaced call to Exit() with call to
26284 PostQuitMessage, even though this is probably no longer needed.
26285 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
26286 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
26288 - Replaced call to XplatUI.Exit() with PostQuitMessage()
26289 - Removed old debug code that would call XplatUI for exception
26290 display, enabled standard exception handling (Still not enabled
26291 though, until NativeWindow's ExternalExceptionHandler define
26294 - Added internal method to allow control to update NativeWindow
26295 after a window has been destroyed
26296 - Added handling of already destroyed windows when calling i
26298 - Added removal of handle from list on ReleaseHandle
26300 - Dropped GetMessageResult var and related code
26301 - Added PostQuitState to field to track if PostQuitMessage has been
26303 - Dropped Exit() method
26304 - Added PostQuitMessage() method
26305 - GetMessage now will return false if PostQuitState is set and no
26306 more messages are in the queue.
26307 - Expose handler will no longer generate WM_PAINT messages if we are
26308 in PostQuitState since it's very likely any windows have already
26309 been destroyed, and since Hwnd won't get updated until we have
26310 processed the DestroyNotify we'd be causing X errors.
26312 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26314 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
26315 Thanks to Mike for pointing out the err of my ways.
26317 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26319 * Control.cs(PreProcessMessage): Moved menu handling back, but
26320 after all other key handling, to match MS (who handles Menu in
26322 * Menu.cs (WndProc): Removed my brainfart
26324 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26326 * Control.cs(PreProcessMessage): Removed special menu handling
26327 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
26329 2005-12-07 Mike Kestner <mkestner@novell.com>
26331 * Control.cs : special case SYSKEYUP so that we can adjust keynav
26332 state according in tracker.
26333 * Menu.cs : promote tracker field to base class and provide a tracker
26334 lookup capability. Add/Remove shortcuts dynamically if the top menu
26335 has a tracker. Unparent items that are removed from the collection.
26336 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
26337 * Theme*.cs: add always_show_hotkeys field to support configurability
26338 of mnemonic display. win32 doesn't show mnemonics until Alt is
26341 2005-12-07 Jackson Harper <jackson@ximian.com>
26343 * MdiChildContext.cs: Use Control.ResetCursor.
26344 * Control.cs: ResetCursor needs to set the property so that the
26345 correct XplatUI call gets made.
26347 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26349 * Control.cs: More fixes to make our key events match MS. We
26350 were not setting the modifier state on KeyData, and we were
26351 not generating any events when Alt was pressed with a key
26352 since handling of WM_SYSxxx was missing for the OnKey methods.
26354 2005-12-07 Jackson Harper <jackson@ximian.com>
26356 * MdiChildContext.cs: reenable the sizing code.
26357 - When the mouse leaves a window reset its cursor.
26359 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26361 * ThemeClearlooks.cs: Reflect latest Hwnd changes
26363 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26365 * Hwnd.cs: Now using the theme 3d bordersize to calculate
26366 widths of Fixed3D borders
26368 2005-12-07 Jackson Harper <jackson@ximian.com>
26370 * MdiClient.cs: Fix warnings. Earn Mike's love.
26372 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26374 * ThemeClearlooks.cs:
26375 - Adjusted mouse over button color
26376 - Added first parts of CheckBox drawing
26377 - Added correct color for selected text background
26378 - Fixed ComboBox drawing
26379 - Added CPDrawBorder3D and CPDrawBorder
26381 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26383 * XplatUIX11.cs: Added call to XBell for AudibleAlert
26385 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26387 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26388 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
26389 alert users via sound. We could add an enum arg with different
26390 types of alerts in the future
26392 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26394 * Control.cs: Fix behaviour problems pointed out by Mike
26396 2005-12-05 Mike Kestner <mkestner@novell.com>
26398 * StatusBarPanel.cs: add Invalidate method and hook it into all the
26399 prop setters. Calls parent.Refresh for now, but could be maybe be
26400 optimized with an internal method on StatusBar at some point.
26403 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
26405 * RichTextBox.cs: Implemented get_SelectionColor
26407 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
26409 * ThemeClearlooks.cs:
26410 - Removed dead code
26411 - Draw black button border only if button is Form.AcceptButton
26412 - Draw correct button color for pressed RadioButton if the mouse
26413 has entered the button
26414 - Updated ProgressBar drawing!
26415 - Updated CPDrawSizeGrip drawing
26416 - Updated StatusBarPanel drawing
26418 2005-12-05 Mike Kestner <mkestner@novell.com>
26420 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
26421 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
26423 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
26425 * ThemeClearlooks.cs: Initial check-in, activate with
26426 export MONO_THEME=clearlooks
26427 * ThemeEngine.cs: Added ThemeClearlooks
26429 2005-12-03 Mike Kestner <mkestner@novell.com>
26431 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
26434 2005-12-02 Jackson Harper <jackson@ximian.com>
26436 * Form.cs: If the child form has no menu the default main menu is
26437 used as the active menu.
26439 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26441 * ListBox.cs: Check if any items exist before trying to resolve
26442 coordinates into items
26444 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26446 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
26447 as the second color for the background hatch
26449 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26451 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
26452 * RichTextBox.cs: FormatText position arguments are 1-based, now making
26453 sure that what we pass to FormatText is always 1-based. Fixes #76885
26455 2005-11-29 Miguel de Icaza <miguel@novell.com>
26457 * NumericUpDown.cs (EndInit): When we are done initializing,
26458 reflect any updates on the UI.
26460 2005-12-02 Jackson Harper <jackson@ximian.com>
26462 * ImplicitHScrollBar.cs:
26463 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
26464 their container controls.
26465 * TreeView.cs: Use the new implicit scrollbars.
26467 2005-12-02 Jackson Harper <jackson@ximian.com>
26469 * TreeView.cs: Make top_node internal so the TreeNodeCollections
26471 * TreeNodeCollection.cs: If we remove the topnode we need to
26472 update topnode to the next node in line.
26473 - When clearing nodes go through the same process as removing
26474 them, so they get depareneted and checked if they are top node.
26476 2005-12-01 Jackson Harper <jackson@ximian.com>
26478 * TreeView.cs: When imagelists are used the image area is
26479 selectable as well as the text.
26480 - If there are no selected nodes select the first one.
26481 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
26482 so don't do it more then we need to.
26484 2005-12-01 Jackson Harper <jackson@ximian.com>
26486 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
26487 that arrows can be scaled.
26489 2005-12-01 Jackson Harper <jackson@ximian.com>
26491 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
26492 fail. Patch by Dieter Bremes
26494 2005-11-30 Jackson Harper <jackson@ximian.com>
26496 * Form.cs: Property is 2.0 only
26497 * PrintDialog.cs: Signature fix.
26499 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26502 - No longer artificially moves text 2 pixels down (now that we have
26503 borders this is no longer needed)
26504 - Added calcs for left, hanging and right indent
26506 2005-11-23 Mike Kestner <mkestner@novell.com>
26508 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
26510 2005-11-30 Jackson Harper <jackson@ximian.com>
26512 * MdiChildContext.cs: Set the cloned menus forms, as these don't
26513 get cloned as part of CloneMenu ().
26514 * Menu.cs: Make sure the parent of the items get set correctly
26515 when they are added. And the owners are notified of the changes.
26516 * Form.cs: Create an ActiveMenu property, so that when MDI is used
26517 we can change the menu being displayed/handled by the form without
26518 changing the menu assosciated with the form.
26519 - Don't let Mdi children draw/handle menus.
26521 2005-11-30 Jackson Harper <jackson@ximian.com>
26523 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
26524 a MenuChanged event. Just to make the API a little more
26527 * MenuItem.cs: Use the new OnMenuChanged
26528 * MdiChildContext.cs: Handle menu merging.
26529 * Form.cs: Implement MergedMenu.
26531 2005-11-30 Jackson Harper <jackson@ximian.com>
26533 * Menu.cs: We were misusing Add. Add goes behind the specified
26534 index according to the docs, and does not replace the specified
26535 index. So I added an Insert method.
26537 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26539 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
26540 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
26542 * RichTextBox.cs: Added calls to base for DnD events
26544 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
26547 - Fixed drag-selection related crash; style fixes
26548 - Implemented undo class
26549 o Implemented method to capture document state for specified
26550 range in document tree
26551 o Implemented method to restore captured document state
26552 o Implemented cursor tracking
26553 o Implemented basic undo stack
26554 - Added undo cursor tracking to methods altering cursor location
26555 - Added undo tracking to selection deletion (still missing
26556 other text-altering hookups)
26558 - Added SelectionLength property
26559 - Implemented CanPaste()
26560 - Implemented Paste()
26561 - Added missing protected methods
26562 - Fixed RTF->Document conversion; now uses font index 0 and color
26563 index 0 as the default font for the parsed text
26564 - Fixed RTF<->Document font size translation
26565 - Fixed RTF generation, now properly handles cross-tag boundaries
26566 for single line selection
26567 - No longer always appends blank line to generated RTF
26569 - Added missing attributes
26570 - Hooked up undo-related methods
26572 - Implemented Copy()
26573 - Implemented Paste()
26574 - Implemented Cut()
26575 - Fixed caret mis-behaviour on backspace across line-boundaries
26577 2005-11-29 Jackson Harper <jackson@ximian.com>
26579 * MdiClient.cs: Add a method for activating mdi children. Very
26580 basic right now. I imagine someday it might need more girth.
26581 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
26582 children windows names are added to the menu item.
26583 * ThemeWin32Classic.cs: Draw the arrow if the item is an
26584 mdilist. This happens regardless of whether or not there are any
26585 mdi windows to see in the list, and according to my tests happens
26586 before the items are even added. Also happens if there isn't even
26587 an mdi client to get windows from.
26589 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
26591 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
26592 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
26594 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
26596 * DataGridTableStyle.cs:
26597 - Create always the styles for the missing columns even if they are
26598 provided by the user (not default table style)
26601 - Fixes SetDataBinding (always re-attach source)
26602 - Fixes SetNewDataSource (only clear styles if they are not for
26604 - Expands OnTableStylesCollectionChanged to handle style refresh
26605 and remove properly
26607 2005-11-29 Jackson Harper <jackson@ximian.com>
26609 * FileDialog.cs: Implement missing bits, remove some dead
26611 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
26612 creation of the panel so that the options set on the dialog are
26613 seen when the panel is created.
26614 * TreeView.cs: raise a click when items are clicked.
26616 2005-11-29 Jackson Harper <jackson@ximian.com>
26618 * MdiClient.cs: Pass some signature methods through to base.
26620 2005-11-28 Jackson Harper <jackson@ximian.com>
26622 * ListView.cs: Raise the click event when items are clicked.
26624 2005-11-28 Jackson Harper <jackson@ximian.com>
26626 * MdiClient.cs: Make this algorithm even more beautiful. And fix
26629 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
26631 * ThemeNice.cs: - Removed 1 pixel bitmaps
26632 - Use SmoothingMode.AntiAlias where it makes sense
26633 (ScrollButton arrow for example)
26634 - Enhanced Button focus drawing
26635 - Fixed ComboBox drawing (no artefacts anymore, focus
26636 rectangle is back again, reduced size of ComboButton, etc.)
26637 - Fixed RadioButton focus drawing for Appearence.Button
26638 - Slight ScrollButton redesign
26639 - Some LinearGradientBrush size fixes
26640 - GroupBoxes have now rounded edges
26641 - Fixed StatusBar drawing
26643 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
26645 * ThemeNice.cs: - Remove dead code
26646 - use correct background colors for menus, etc.
26647 - Fake pixel drawing with 1 pixel bitmaps
26649 2005-11-24 Jackson Harper <jackson@ximian.com>
26651 * MdiClient.cs: Size the scrollbars when resizing the window.
26652 - Resize the maximized windows when the client is resized
26653 * Form.cs: Make the child context available
26655 2005-11-23 Jackson Harper <jackson@ximian.com>
26657 * MdiChildContext.cs: Don't size windows if they are maximized.
26659 2005-11-23 Mike Kestner <mkestner@novell.com>
26661 * ContextMenu.cs: use MenuTracker.
26662 * Control.cs: remove menu handle usage.
26663 * Form.cs: remove menu handle usage.
26664 * Hwnd.cs: remove menu handle usage.
26665 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
26666 motion and clicks to the new Tracker handlers.
26667 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
26669 * MenuAPI.cs: refactored to combine popup and menubar event handling.
26670 Killed the MENU and MENUITEM data types and associated collections
26671 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
26672 MenuTracker class that exposes the leftovers from the old MenuAPI
26673 static methods. Restructured Capture handling so that only one grab is
26674 done for the entire menu hierarchy instead of handing off grabs to
26675 submenus. Tracker now has an invisible control to Capture when active.
26676 * MenuItem.cs: add sizing accessors, kill Create
26678 * Theme.cs: remove menu handle and MENU(ITEM) usage.
26679 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
26680 MENU(ITEM). remove menu handle usage, use Menu directly.
26681 * XplatUIDriver.cs: remove menu handle usage.
26682 * XplatUIOSX.cs: remove menu handle usage.
26683 * XplatUIWin32.cs: remove menu handle usage.
26684 * XplatUIX11.cs: remove menu handle usage.
26686 2005-11-22 Jackson Harper <jackson@ximian.com>
26688 * Hwnd.cs: Don't compute the menu size for
26689 DefaultClientRectangle.
26690 - Reenable menu sizes being computed for GetClienRectangle.
26691 * Form.cs: Remove comment of trechery
26693 2005-11-22 Jackson Harper <jackson@ximian.com>
26695 * Hwnd.cs: The adjustments for the menu bar are made when it is
26696 attached to the form.
26698 2005-11-19 Jackson Harper <jackson@ximian.com>
26700 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
26701 (just like on windows).
26703 2005-11-19 Jackson Harper <jackson@ximian.com>
26705 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
26706 use real buttons anymore because they are in non client area. The
26707 one TODO here is that I need to somehow invalidate a section of
26708 the non client area.
26710 2005-11-18 Jackson Harper <jackson@ximian.com>
26712 * Control.cs: Put the enum check back in now that MDI doesnt have
26713 to use this to set border styles.
26714 * Form.cs: Only set mdi child windows borders if the handle has
26716 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
26717 this directly on to the driver.
26718 - Get the move start position before adjusting for the titlebar
26719 height, this fixes the windows "skipping" when they are first
26722 2005-11-18 Jackson Harper <jackson@ximian.com>
26724 * XplatUIX11.cs: Just compute the mdi borders separately as they
26725 don't totally match up with normal form borders.
26727 2005-11-18 Jackson Harper <jackson@ximian.com>
26729 * Control.cs: Set WS_ styles for borders, so that the driver does
26730 not have to retrieve the control instance to figure out what kind
26731 of borders it should have.
26732 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
26733 driver can know its an mdi child easily.
26734 * XplatUIX11.cs: Get the border styles and whether the window is
26735 MDI from the Styles and ExStyles params instead of having to get a
26736 control. This prevents a chicken and egg problem.
26738 2005-11-18 Jackson Harper <jackson@ximian.com>
26740 * MdiClient.cs: Fix typo so scrollbars show up correctly.
26742 2005-11-18 Jackson Harper <jackson@ximian.com>
26744 * MdiClient.cs: Calculate when to add and remove scrollbars
26746 * MdiChildContext.cs: Adjust the y position to take the titlebar
26748 - No height for FormBorderStyle.None
26750 2005-11-18 Jackson Harper <jackson@ximian.com>
26752 * Control.cs: Allow non enum values to be used for
26753 InternalBorderStyle. MDI does this to set a special border style.
26754 - New utility methods for converting points to/from client coords
26755 - Add the newly created control to the Controls collection before
26756 updating its style. This way UpdateStyle can walk the control
26757 heirarchy to find the control if needed.
26758 so I don't need to create a new Point object all the time.
26759 * Form.cs: Let MDI windows handle their border styles.
26760 - Set styles on MDI windows so the correct title style is derived.
26761 * MdiChildContext.cs: Move all the painting and window handling
26762 into the non client area.
26763 - Use correct sizing and put correct buttons on frames based on
26764 the FormBorderStyle.
26765 - Notify the mdi client about scrolling
26766 - Need to handle the buttons ourselves now, because they are all
26767 in non client areas and we can't add controls there.
26768 * MdiClient.cs: Halfway to scrolling, this implementation is
26769 somewhat broken though, we need to check to make sure other
26770 windows aren't causing scrolling before removing the bars. Also
26771 the bars need to be drawn on top, maybe I can switch implicit
26772 controls to be on top.
26773 * Hwnd.cs: caption_height and tool_caption_height are now
26774 properties of an hwnd, this way they can be set by the driver
26775 based on the type of window they are. In X11 the window manager
26776 handles the decorations so caption_height is zero unless its an
26778 - Add 3 pixel borders for MDI windows (0xFFFF).
26779 - Get rid of some code duplication, have DefaultClientRectanle
26780 just call GetClientRectangle.
26781 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
26783 - Set border styles differently for mdi windows.
26784 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
26787 2005-11-15 Mike Kestner <mkestner@novell.com>
26789 * Menu.cs: when adding an item to the collection, if item is already
26790 parented, remove it from the parent.
26792 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
26794 * X11DesktopColors.cs: Added KDE support
26796 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
26799 - Clipboard methods now can translate Rtf format
26800 - No longer removes clipboard contents whenever a new format is added
26801 to allow placing multiple formats on the clipboard
26802 * Clipboard.cs: Clipboard now supports getting a IDataObject and
26803 will place all formats contained in it onto the clipboard. Also
26804 now cleans the clipboard before placing a new object onto it
26806 - Implemented set_Rtf
26807 - Implemented set_SelectedRtf
26808 - Created InsertRTFFromStream() method to allow single code base
26809 for all properties and methods that insert RTF into document
26810 - Removed debug output
26812 - Fixed Delete(int) to fix up line numbers
26813 - Fixed ReplaceSelection to combine start and end line
26814 - Fixed serious DeleteChars bug that would leave the document tree
26816 - Improved DumpTree with several logic checks to detect broken
26818 - Removed debug lines
26819 - Fixed Caret.WordForward/WordBack moving code, now always also
26820 updates caret.tag (fixes crash when word-selecting across tag
26821 boundaries via keyboard)
26822 - Added Insert() method for inserting multiline text into documents
26823 - Fixed DeleteChars() calculation errors that would cause a broken
26824 tag chain with multiple tag lines
26825 - DeleteChars() no longer crashes on multi-tag lines if not all tags
26826 - Split() no longer moves caret if split is at caret location
26827 - ReplaceSelection() now updates the cursor and re-displays it
26828 - ReplaceSelection() now uses new Insert() method to avoid code
26830 - FormatText() can now handle formatting partial lines
26832 - Append now uses new TextControl.Insert() method (this avoids
26834 - Implemented Ctrl-X (Cut) (
26835 - Implemented Ctrl-C (Copy)
26836 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
26837 regeneration when pasting text; roundtripping Copy&Paste within
26838 edit control still fails due to some calculation bugs in GenerateRTF)
26839 - The Delete key will now remove the current selection if it is visible
26840 * TextBox.cs: Removed debug lines
26841 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
26842 driver to be initialized and can't therefore be done via a static ctor)
26844 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
26846 * TextControl.cs: Added backend code for finding char arrays and strings
26848 - Added mouse wheel scroll support
26849 - Added support for VScroll and HScroll events
26851 - Implemented all seven Find() variants
26852 - Implemented GetCharFromPosition()
26853 - Implemented GetCharIndexFromPosition()
26854 - Implemented GetLineFromIndex()
26855 - Implemented GetPositionFromCharIndex();
26856 - Implemented SaveFile for PlainText and UnicodeText
26857 - Fixed set_Font, now setting a new font applies that font to
26859 - Implemented generic Document to RTF converter
26860 - Implemented SaveFile for RichText format (still missing unicode
26861 conversion for non-ansi chars)
26862 - Implemented get_Rtf
26863 - Implemented get_SelectedRtf
26865 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
26867 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
26868 to allow any captures to be released before triggering OnClick. This
26869 way a click handler may capture the mouse without interference.
26870 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
26871 This way we send them even though X may not allow a grab (if the window
26872 isn't visible, for example)
26874 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
26876 * DataGridViewRowEventArgs.cs: DataGridView implementation
26877 * DataGridViewElement.cs: DataGridView implementation
26878 * DataGridViewComboBoxCell.cs: DataGridView implementation
26879 * DataGridViewDataErrorContexts.cs: DataGridView implementation
26880 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
26881 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
26882 * ImageLayout.cs: DataGridView implementation
26883 * DataGridViewComboBoxColumn.cs: DataGridView implementation
26884 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
26885 * DataGridViewSelectionMode.cs: DataGridView implementation
26886 * IDataGridViewEditingControl.cs: DataGridView implementation
26887 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
26888 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
26889 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
26890 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
26891 * DataGridViewColumnSortMode.cs: DataGridView implementation
26892 * DataGridView.cs: DataGridView implementation
26893 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
26894 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
26895 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
26896 * Padding.cs: DataGridView implementation
26897 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
26898 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
26899 * DataGridViewRowEventHandler.cs: DataGridView implementation
26900 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
26901 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
26902 * DataGridViewButtonCell.cs: DataGridView implementation
26903 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
26904 * DataGridViewEditMode.cs: DataGridView implementation
26905 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
26906 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
26907 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
26908 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
26909 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
26910 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
26911 * DataGridViewCellEventHandler.cs: DataGridView implementation
26912 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
26913 * DataGridViewCellStyleConverter.cs: DataGridView implementation
26914 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
26915 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
26916 * DataGridViewColumnEventArgs.cs: DataGridView implementation
26917 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
26918 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
26919 * QuestionEventArgs.cs: DataGridView implementation
26920 * IDataGridViewEditingCell.cs: DataGridView implementation
26921 * DataGridViewTriState.cs: DataGridView implementation
26922 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
26923 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
26924 * DataGridViewColumnCollection.cs: DataGridView implementation
26925 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
26926 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
26927 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
26928 * DataGridViewColumn.cs: DataGridView implementation
26929 * DataGridViewCellBorderStyle.cs: DataGridView implementation
26930 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
26931 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
26932 * DataGridViewRow.cs: DataGridView implementation
26933 * DataGridViewImageCellLayout.cs: DataGridView implementation
26934 * DataGridViewImageCell.cs: DataGridView implementation
26935 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
26936 * DataGridViewCheckBoxCell.cs: DataGridView implementation
26937 * DataGridViewHeaderCell.cs: DataGridView implementation
26938 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
26939 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
26940 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
26941 * DataGridViewTextBoxColumn.cs: DataGridView implementation
26942 * QuestionEventHandler.cs: DataGridView implementation
26943 * DataGridViewCellStyleScopes.cs: DataGridView implementation
26944 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
26945 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
26946 * DataGridViewCell.cs: DataGridView implementation
26947 * DataGridViewCellEventArgs.cs: DataGridView implementation
26948 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
26949 * DataGridViewCellStyle.cs: DataGridView implementation
26950 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
26951 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
26952 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
26953 * TextFormatFlags.cs: DataGridView implementation
26954 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
26955 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
26956 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
26957 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
26958 * DataGridViewButtonColumn.cs: DataGridView implementation
26959 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
26960 * HandledMouseEventArgs.cs: DataGridView implementation
26961 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
26962 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
26963 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
26964 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
26965 * DataGridViewRowCollection.cs: DataGridView implementation
26966 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
26967 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
26968 * DataGridViewHitTestType.cs: DataGridView implementation
26969 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
26970 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
26971 * DataGridViewColumnEventHandler.cs: DataGridView implementation
26972 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
26973 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
26974 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
26975 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
26976 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
26977 * DataGridViewContentAlignment.cs: DataGridView implementation
26978 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
26979 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
26980 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
26981 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
26982 * DataGridViewPaintParts.cs: DataGridView implementation
26983 * DataGridViewCellCollection.cs: DataGridView implementation
26984 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
26985 * DataGridViewImageColumn.cs: DataGridView implementation
26986 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
26987 * DataGridViewElementStates.cs: DataGridView implementation
26988 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
26989 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
26990 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
26991 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
26992 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
26993 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
26994 * DataGridViewRowHeaderCell.cs: DataGridView implementation
26995 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
26996 * DataGridViewTextBoxCell.cs: DataGridView implementation
26997 * DataGridViewBand.cs: DataGridView implementation
26998 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
26999 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
27000 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
27001 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
27002 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
27003 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
27004 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
27005 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
27006 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
27007 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
27008 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
27010 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
27012 * ThemeWin32Classic.cs:
27013 - Draw the outside focus rectangle around buttons
27014 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
27015 doesn't use end caps for every dash of a line anymore. This
27016 workaround ignores the forecolor.
27018 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
27020 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
27023 2005-11-07 Jackson Harper <jackson@ximian.com>
27025 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
27027 2005-11-07 Jackson Harper <jackson@ximian.com>
27029 * ScrollableControl.cs: Calculate the maximum and change vars
27030 (more) correctly so that scrollbars appear as a sensible size.
27032 2005-11-04 Jackson Harper <jackson@ximian.com>
27034 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
27036 * TreeView.cs: When the tree is sorted null out the top_node so
27037 that it is recalculated.
27038 - Use dotted lines instead of dashed lines to match MS better.
27040 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
27043 - Implements key search for items. Useful when browsing files with FileDialog
27044 - When changing view mode or when clear the items reset scrollbar positions
27046 2005-11-04 Jackson Harper <jackson@ximian.com>
27048 * CurrencyManager.cs: Implement the MetaDataChanged event, the
27049 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
27050 as to what the method may do as there is no real way of creating a
27051 derived CurrencyManager and calling the method.
27053 2005-11-03 Jackson Harper <jackson@ximian.com>
27055 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
27056 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
27057 method which seems to just be used internally to refresh the tabs.
27059 2005-11-03 Jackson Harper <jackson@ximian.com>
27061 * TabControl.cs: Implement the remove method. Fix some broken
27064 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27066 * DateTimePicker.cs:
27067 - Added missing DateTimePickerAccessibleObject class
27068 - Added missing events
27069 - Added OnFontChanged method
27070 * Form.cs: Added missing attributes
27071 * TreeView.cs: Added missing attributes
27073 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27075 * GridItemCollection.cs: Fix signatures
27077 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27079 * XplatUI.cs: Updated build rev/date
27080 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
27081 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
27082 * Application.cs: Trigger context-specific ExitThread events
27084 2005-11-03 Jackson Harper <jackson@ximian.com>
27088 * GridTableStylesCollection.cs:
27093 * MonthCalendar.cs: Signature fixes
27095 2005-11-03 Jackson Harper <jackson@ximian.com>
27097 * TreeNodeCollection.cs: Remove should not be virtual.
27098 * TreeView.cs: Implement the last of the missing methods.
27100 2005-11-03 Jackson Harper <jackson@ximian.com>
27102 * TreeNodeConverter.cs: Implement to get off my class-status back.
27104 2005-11-03 Jackson Harper <jackson@ximian.com>
27106 * TreeView.cs: Hookup the bits for drag and drop.
27107 * TreeNode.cs: Don't cache the tree_view or index anymore, now
27108 that nodes can be moved from tree to tree easily this just causes
27109 all sorts of problems.
27110 * TreeNodeCollection: Don't need to give treenodes an index and
27111 treeview anymore when they are added, these are computed on the
27112 fly. Also make sure to remove a node before its added.
27114 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27117 - Added CaretSelection enum
27118 - Added comparison methods to Marker struct, makes selection code
27120 - Added SelectionStart and SelectionEnd as 'moveable' location for
27121 the CaretDirection enum and handler
27122 - Added selection_prev variable to track optimized invalidation for
27123 word and line selection
27124 - Added SelectionVisible property (returns true if there is a valid
27126 - Switched CaretHasFocus to only display the caret if there is no
27128 - Avoiding StringBuilder.ToString to retrieve a single char, instead
27129 using the direct character index; should be much faster
27130 - Added various conditional debug statements
27131 - Fixed invalidation calculation for selection ranges
27132 - Added ExpandSelection() method to support word and line selection
27133 - Switched SetSelectionToCaret to use new Marker compare overloads
27134 - Added central IsWordSeparator() method to determine word
27135 separators/whitespace and FindWordSeparator() to streamline common
27136 usage of IsWordSeparator()
27138 - Removed unneeded grabbed variable, it was just mirroring
27140 - No longer firing OnTextChanged event when Text setter is called,
27141 since the base will fire the event for us
27142 - Added handling of Ctrl-Up/Down selection
27143 - Added handling of Shift-Cursorkey selection
27144 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
27146 - Added handling of Shift and Ctrl-Shift-Home/End selection
27147 - Removed some debug output
27148 - Added handling for single/double/tripple-click to place caret/
27149 select word/select line respectively (Fixes bug #76031)
27150 - Added support for drag expansion of word/line selection
27151 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
27154 2005-11-02 Jackson Harper <jackson@ximian.com>
27156 * X11Dnd.cs: If the drag is going to and from a MWF window just
27157 copy the data instead of sending it out through the X Selection
27160 2005-11-02 Jackson Harper <jackson@ximian.com>
27163 * XplatUIX11.cs: When in a drag we don't want motion notify
27164 messages to get passed on to the other controls. This prevents
27165 mouse move messages from showing up in the drag source.
27167 2005-11-02 Jackson Harper <jackson@ximian.com>
27169 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
27170 the correct button is release to end a drag.
27171 * XplatUIX11.cs: Make the button state internal so the drag system
27172 can access it. Dragging needs to know about all button releases,
27173 not just left button.
27175 2005-11-02 Miguel de Icaza <miguel@novell.com>
27177 * Form.cs (Icon): If the icon is null, reset the icon to the
27180 * Cursor.cs: When writing the AND-mask bitmap do not include the
27181 number of colors, but hardcode those to two (black and white),
27182 fixes the loading of color cursors (Paint Dot Net).
27184 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
27185 turn off autoscaling.
27187 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
27189 2005-11-02 Jackson Harper <jackson@ximian.com>
27191 * X11Dnd.cs: Make sure to send a status message if the pointer
27192 enters a control that can not accept a drop, otherwise the cursor
27193 isn't updated correctly. Also tried to compress the lines of code
27196 2005-11-02 Jackson Harper <jackson@ximian.com>
27198 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
27199 set actions correctly. This isn't perfect as XDND and win32 have
27200 some differences on how you allow actions. I'll clear this up by
27201 adding a path for drag from MWF to MWF windows.
27202 * XplatUIX11.cs: Hook into the dnd system.
27204 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
27206 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
27207 previously shown but they are no longer need it. Very obvious when
27208 browsing files with FileDialog.
27210 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
27212 * Control.cs: We always need to call OnPaintBackground. We pretty much
27213 ignore AllPaintingInWmPaint and always do the painting there, whether
27214 it's set or not, since we always ignore the WM_ERASEBKGND message
27215 (which we don't generate on X11). This fixes #76616.
27216 * Panel.cs: Removed unneeded background painting. This happens properly
27217 in Control.cs already
27219 2005-10-31 Mike Kestner <mkestner@novell.com>
27221 * Menu.cs: Add items to collection before setting their index.
27222 * MenuItem.cs : add range checking with ArgumentException like MS.
27225 2005-10-31 Jackson Harper <jackson@ximian.com>
27227 * ListBox.cs: Invalidate if the area is visible at all not just
27228 contained in the visible rect. Fixes unselection of semi visible
27231 2005-10-31 Jackson Harper <jackson@ximian.com>
27233 * Control.cs: Consistently name the dnd methods. Make them
27234 internal so we can override them to match some MS behavoir
27236 * Win32DnD.cs: Use the new consistent names.
27238 2005-10-31 Jackson Harper <jackson@ximian.com>
27240 * TreeView.cs: Don't draw the selected node when we lose focus.
27242 2005-10-31 Jackson Harper <jackson@ximian.com>
27244 * X11Dnd.cs: We still need to reset the state even though a full
27245 reset isn't being done, otherwise status's still get sent all over
27248 2005-10-31 Jackson Harper <jackson@ximian.com>
27250 * Control.cs: Make the dnd_aware flag internal so the dnd
27251 subsystem can check it. Catch exceptions thrown in dnd handlers to
27253 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
27254 * X11Dnd.cs: Handle null data in the converters. Set the XDND
27255 version when sending a XdndEnter. Use the control/hwnd dnd_aware
27256 flags to reduce the number of dnd enters/status's sent.
27258 2005-10-31 Jackson Harper <jackson@ximian.com>
27260 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
27262 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
27264 * PictureBox.cs: Fixes 76512
27266 2005-10-28 Jackson Harper <jackson@ximian.com>
27268 * X11Dnd.cs: Early implementation to support winforms being a drag
27269 source for data on X11. Also restructured the converters so they
27270 can go both ways now.
27271 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
27273 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
27275 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
27278 2005-10-27 Jackson Harper <jackson@ximian.com>
27280 * TreeNode.cs: Implement serialization so my DnD examples will work.
27282 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
27284 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
27285 TreeView.cs: Don't dispose objects that are not owned.
27287 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
27289 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
27290 should retrieve the current cursor and report that, but XplatUI
27291 doesn't (yet) have an interface for that (and I'm not sure I even
27293 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
27294 until any message loop processing is done (and the WM_SETCURSOR
27295 replaces the cursor to the proper one)
27297 - Fixed override behaviour, we can't set the cursor globally on X11,
27298 just for our windows.
27299 - Invalidating the System.Drawing X11 display handle when we are
27301 * Control.cs: Fix to make csc happy
27303 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
27306 - get_Text: Add last line (without trailing newline) to returned
27307 value (Fixes 76212)
27308 - get_TextLength: Count last line in returned length
27309 - ToString: Call Text property instead of duplicating code
27311 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
27313 * ImageList.cs: Dispose ImageAttributes objects.
27315 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27317 * ImageList.cs: Use attribute constructors with less arguments where
27320 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27322 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
27323 Use typeof instead of strings when assembly is referenced. Added
27324 some more comments.
27326 2005-10-21 Jackson Harper <jackson@ximian.com>
27328 * ListView.cs: Raise a double click event. Also tried to somewhat
27329 fix when the selectedindexchanged event is raised. Its still
27332 2005-10-21 Jackson Harper <jackson@ximian.com>
27334 * TreeView.cs: New method to invalidate the plus minus area of a
27335 node without invalidating the whole node (maybe this can be used
27336 in some more places).
27337 * TreeNodeCollection.cs: When adding to an empty node we need to
27338 invalidate its plus minus area so the little block shows up.
27340 2005-10-21 Jackson Harper <jackson@ximian.com>
27342 * TreeView.cs: Make sure that when we invalidate a node the bounds
27343 are big enough to cover the selected box and the focus
27344 rectangle. Use a different colour for the lines connecting nodes
27345 so they show up with all themes.
27347 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27349 * NativeWindow.cs: Don't call anything that could call into the driver,
27350 we might be on a different thread.
27352 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27354 * Control.cs(Dispose): Since Dispose might run on a different thread,
27355 make sure that we call methods that could call into the driver via
27356 invoke, to avoid thread issues
27358 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27360 * XplatUI.cs: Removed finalizer
27361 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
27362 not allowing to be called on the finalizer thread.
27364 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
27367 - Reverted r51889 and r51891.
27368 - Added ImageListItem class that stores unmodified image items and image
27369 properties required to create list images until handle is created.
27370 - Added AddItem and moved image creation logic to AddItemInternal.
27371 - Added CreateHandle method that creates images based on unmodified items.
27372 - Added DestroyHandle that changes state to store unmodified items.
27373 - Add and AddStrip methods no more create handle.
27374 - ReduceColorDepth has no return value.
27375 - Dispose destroys handle.
27376 - Modified other methods to reflect the above changes.
27377 - Implemented key support.
27378 - Added profile 2.0 members and attributes.
27379 - Added private Reset and ShouldSerialize methods that provide the same
27380 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
27381 them as they are private.
27382 - Added some more comments about implementation details.
27384 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27386 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
27388 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27390 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
27392 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27394 * DataGridDrawingLogic.cs: Fixes column hit calcultation
27395 * DataGridColumnStyle.cs: Remove debug message
27397 2005-10-20 Jackson Harper <jackson@ximian.com>
27399 * TreeView.cs: We can always get input keys regardless of whether
27400 or not editing is enabled. They are used for navigation.
27402 2005-10-20 Jackson Harper <jackson@ximian.com>
27404 * TreeNode.cs: Use the viewport rect for determining if a node
27405 needs to be moved for visibility. Don't use Begin/End edit. This
27406 calls a full refresh when its done.
27407 * TreeView.cs: New SetBottom works correctly. Make the viewport
27408 rect property internal so the treenodes can see it. When clicking
27409 on a node we need to ensure that its visible because it might just
27410 be partly visible when clicked.
27412 2005-10-20 Jackson Harper <jackson@ximian.com>
27414 * TreeNodeCollection.cs: Remove debug code.
27416 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27418 * Datagrid.cs: Implements column sorting in Datagrid
27419 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
27421 2005-10-20 Jackson Harper <jackson@ximian.com>
27423 * TreeNodeCollection.cs: Remove items properly. Update the correct
27424 area after removing them.
27426 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27428 * Datagrid.cs: Should not call base.OnPaintBackground
27430 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27432 * XplatUIX11.cs (GetMessage):
27433 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
27434 window instead of client window
27435 - Now properly calculates NC_xBUTTONUP message coordinates
27436 - ScreenToMenu now properly calculates it's coordinates of whole
27437 window, since menus are in the whole window, not in the client
27439 - Added WholeToScreen coordinate translation method
27441 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27443 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
27444 want to return a message, loop back to the beginning of the function
27445 and grab the next real message to process instead.
27447 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27449 * Splitter.cs: Properly set limits if no filler control is used
27451 2005-10-19 Jackson Harper <jackson@ximian.com>
27453 * ColorDialog.cs: Don't show the help button if it is not enabled
27454 instead of disabling it (this is what MS does). Don't create the
27455 panel until the dialog is run, otherwise the vars (such as
27456 ShowHelp) are not set yet.
27458 2005-10-19 Jackson Harper <jackson@ximian.com>
27460 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
27461 are reduced when adding nodes.
27463 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
27466 2005-10-19 Jackson Harper <jackson@ximian.com>
27468 * FolderBrowserDialog.cs: End editing our treeview so the window
27469 actually gets refreshed.
27471 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27473 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
27474 Obsoleted handling of WM_ERASEBKGND, now always draws our background
27477 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27479 * MenuAPI.cs: Returns after Hidding window
27480 * XplatUIX11.cs: Added TODO found while debugging menu issues
27482 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27484 * XplatUIX11.cs: Do not re-map the whole window when it's size
27485 becomes non-zero unless it's supposed to be actually visible
27487 2005-10-18 Jackson Harper <jackson@ximian.com>
27489 * TreeView.cs: We don't need to keep a count anymore.
27490 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
27491 use the Grow method.
27493 2005-10-18 Jackson Harper <jackson@ximian.com>
27495 * TreeNodeCollection.cs: Insert is not supported on arrays, so
27496 implement it manually here.
27498 2005-10-18 Jackson Harper <jackson@ximian.com>
27500 * ImageList.cs: Dont kill the list when the colour depth is
27501 changed, just change the colour depth of all the images.
27502 - Same goes for setting the image size. Just resize them all
27503 instead of killing the list softly.
27505 2005-10-18 Jackson Harper <jackson@ximian.com>
27507 * Control.cs: Don't invalidate empty rectangles.
27509 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27512 - Adds checked item to the Checked/Item lists (where empty before)
27513 - Do not add items to the Selected lists if they are already present
27515 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
27516 - When deleting items make sure that we delete them for the Selected
27517 and Checked list also.
27519 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27521 * Label.cs: Dispose objects no longer used
27522 * ThemeWin32Classic.cs: Dispose objects no longer used
27524 2005-10-18 Jackson Harper <jackson@ximian.com>
27526 * TabControl.cs: Don't refresh the whole control when the tabs are
27527 scrolled, we just need to refresh the tab area.
27529 2005-10-17 Jackson Harper <jackson@ximian.com>
27531 * XplatUIX11.cs: Compress code a little bit. Only calculate the
27532 after handle when we need it.
27534 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27536 * Control.cs: When the parent size changes, recalculate anchor
27537 positions. Partial fix for #76462
27539 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27541 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
27542 drawn. Fixes #76462
27544 2005-10-17 Jackson Harper <jackson@ximian.com>
27546 * MonthCalendar.cs: Don't create the numeric up down until our
27547 handle is created. Otherwise our handle is created in the
27548 constructor and we don't know if we are a WS_CHILD or WS_POPUP
27551 2005-10-17 Jackson Harper <jackson@ximian.com>
27553 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
27556 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27557 * TreeNode.cs : small logical fix (was using local var instead of field)
27559 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
27561 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
27563 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
27565 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
27567 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
27570 - Re-implemented anchoring code. My first version was really broken.
27571 This fixes bug #76033. Unlike the previous implementation we will
27572 no longer have round errors since all numbers are calculated from
27573 scratch every time. Removed various anchor-related obsolete vars.
27574 - InitLayout no longer causes layout event firing and layout to be
27577 2005-10-16 Jackson Harper <jackson@ximian.com>
27579 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
27582 2005-10-16 Jackson Harper <jackson@ximian.com>
27584 * TabControl.cs: Remove debug code.
27586 2005-10-16 Jackson Harper <jackson@ximian.com>
27588 * XEventQueue.cs: Increase the default queue size (very simple
27589 apps needed to grow the queue).
27590 * Hwnd.cs: No finalizer so we don't need to suppress
27591 finalization. Compute the invalid area manually so a new rectangle
27592 does not newto be created.
27593 * ScrollableControl.cs: Don't set any params (otherwise visibility
27594 isn't set correctly).
27595 * MdiChildContext.cs: New constructor takes the mdi parent so it
27596 doesn't have to be computed and avoids a crash on windows. Draw
27597 the window icon properly, and allow the text to be seen.
27598 * Form.cs: Use new MdiChildContext constructor. Make sure the
27599 child context isn't null in wndproc.
27600 * TabControl.cs: Don't set focus, this is muddling keyboard
27601 behavoir. Expand the tab rows when a window size increase will
27602 allow extra tabs to be seen. Don't allow tabs smaller than the
27603 width of a window to be scrolled out of view.
27605 * TreeView.cs: Use measure string to calculate a nodes width, the
27606 width is cached and only updated when the text or the font is
27607 changed. Don't check for expand/collapse clicks on the first level
27608 nodes if root lines are disabled.
27610 2005-10-16 Ritvik Mayank <mritvik@novell.com>
27612 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
27614 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
27616 * DataGridBoolColumn.cs: fixes warning
27618 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
27620 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
27621 to match more to match more precisely the MS Net behavior
27623 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27625 * Hwnd.cs: Added field to track if window is mapped
27627 - Unmap windows if they become 0-size, re-map when
27628 they are >0 again; fixes #76035
27629 - Re-set our error handler after initializing X11Desktop
27630 to override any error handlers Gtk or whatever was called
27633 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27635 * CheckedListBox.cs: Removed unused vars
27636 * ListView.cs: Fixed signatures
27637 * RichTextBox.cs: Removed unused vars
27638 * TextBoxBase.cs: Removed unused vars
27639 * XplatUIWin32.cs: Removed unused vars
27640 * XplatUIX11.cs: Removed unused vars
27641 * XplatUI.cs: Updated version and date to latest published
27643 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27645 * Cursor.cs: Added private .ctor to work around a bug in
27646 resourceset (Thanks to Geoff Norton for the help on this)
27647 * SplitterEventArgs.cs: Made fields accessible so we don't
27648 waste boatloads of objects and can reuse the same one
27650 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
27651 any captions and borders when generating screen coordinates
27652 * Splitter.cs: Reimplemented control, now fully complete, uses
27653 rubberband drawing, supports and obeys all properties, has
27656 2005-10-13 Miguel de Icaza <miguel@novell.com>
27658 * Form.cs (Form): Setup default values for autoscale and
27659 autoscale_base_size; Make these instance variables, not static
27662 (OnLoad): on the first load, adjust the size of the form.
27664 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27666 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
27667 width argument to DrawReversibleRectangle()
27668 * XplatUIWin32.cs, XplatUIX11.cs:
27669 - Implemented width for DrawReversibleRectangle()
27670 - Added logic to DrawReversibleRectangle that recognizes a zero
27671 width or height and only draws a line in that situation
27673 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
27675 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
27676 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
27677 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
27678 method (it uses our FosterParent window to get a graphics context)
27680 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
27682 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
27683 and SetWindowBackground methods
27685 - Setting proper ControlStyles
27686 - We no longer call XplatUI.SetWindowBackground and XplatUI.
27687 EraseWindowBackground, instead we draw the window background
27688 ourselves in PaintControlBackground. This behaviour is
27689 required to match MS, where, when OnPaintBackground is not
27690 called, the background is not drawn.
27691 - Removed unneeded Refresh() in set_Text
27692 * Hwnd.cs: Dropped the ErasePending support. No longer needed
27694 - Created DeriveStyles method to translate from CreateParams to
27695 FormBorderStyle and TitleStyle, also handles BorderStyle (which
27696 matches FormBorderStyle enum values)
27697 - Consolidated SetHwndStyles and CalculateWindowRect border/title
27698 style calculations into single DeriveStyles method
27699 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
27700 from redrawing the whole window on any resize or expose.
27701 - Fixed CreateWindow usage of SetWindowValuemask. Before not
27702 all styles were applied to our whole/client window appropriately
27703 - Removed EraseWindowBackground() and SetWindowBackground() methods
27704 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
27705 no longer clear/redraw the background through X
27706 - Removed handling of erase_pending bit, we have no use for it (or
27709 - Removed generation and handling of WM_ERASEBKGND message
27710 - Removed EraseWindowBackground() and SetWindowBackground() methods
27711 - Removed handling of hwnd.ErasePending flag
27713 - Removed EraseWindowBackground() and SetWindowBackground() methods
27714 - We no longer call EraseWindowBackground on PaintEventStart, we
27715 ignore the fErase flag, erasing is handled in Control in the
27717 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
27718 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
27719 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
27720 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
27721 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
27722 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
27723 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
27725 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
27727 * PropertyGrids.cs: Get sub properties
27728 * PropertyGridView.cs: Fix drawing code
27730 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27732 * ListBox.cs: Fixes 76383
27734 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27736 * DataGridTextBoxColumn.cs: Sets location and size before attachment
27737 * ThemeWin32Classic.cs: Fixes border drawing and calculations
27738 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
27741 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27743 * ComboBox.cs: Fixes border drawing
27745 2005-10-10 Miguel de Icaza <miguel@novell.com>
27747 * MimeIcon.cs: Ignore errors if the file can not be read.
27749 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27751 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
27752 - Fixed border calculations
27753 - Fixed horizontal scrolling in single column listboxes
27754 - Fixed drawing issues
27756 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
27758 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
27759 FormBorderStyle enum
27760 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
27761 code to determine FormBorderStyles from CreateParams
27763 - Fixed bug where we'd set the wrong window styles if we were
27764 not creating an MDI window
27765 - Added call to XplatUI.SetBorderStyle when form borders are set
27766 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
27768 - Removed obsolete edge style
27769 - Switched from BorderStyle to FormBorderStyle
27771 2005-10-10 Jackson Harper <jackson@ximian.com>
27773 * Form.cs: Use the property to get the window handle instead of
27774 accessing it directly. Prevents a null reference exception.
27776 2005-10-10 Jackson Harper <jackson@ximian.com>
27778 * TreeView.cs: Don't adjust the rect given to DrawString now that
27779 our libgdiplus draws correctly.
27781 2005-10-08 Jackson Harper <jackson@ximian.com>
27783 * TreeView.cs: Don't try to find the clicked on node if there are
27784 no nodes in the tree.
27786 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
27792 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
27794 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
27795 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
27797 Use ResPool for brushes and dispose System.Drawing objects that
27798 are not used anymore.
27800 2005-10-07 Jackson Harper <jackson@ximian.com>
27802 * MdiChildContext.cs: Use the new borders instead of drawing them
27805 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
27807 * Calling UpdateBounds after changing the window's BorderStyle
27808 since the style can change the ClientSize
27810 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27812 * Control.cs: Made PaintControlBackground virtual
27813 * Panel.cs: Overriding PaintControlBackground instead of using paint
27814 event; paint event method was interfering with 'real' users of the
27817 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
27819 * ThemeWin32Classic.cs: remove border drawing since it is handled
27820 by the base control class now and was causing double border drawing.
27822 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27824 * Panel.cs: Redraw our background on paint. Not a pretty solution,
27825 but it does seem to match MS behaviour. This fixes bug #75324
27827 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27829 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
27830 somewhat hackish looking
27832 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27835 - We now accept Enter even if AcceptEnter is false, if the containing
27836 form does not have an AcceptButton configured (fixes bug #76355)
27837 - Calculations are now fixed to no longer use Width/Height, but
27838 ClientSize.Width/Height, since we now support borders (this was
27839 a result of fixing borders and therefore bug #76166)
27840 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
27841 true (fixes bug #76354)
27843 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27846 - Defaulting BorderStyle and setting it in XplatUI when our window
27848 - Added enum check to InternalBorderStyle setter
27850 - Added drawing of window borders
27851 - Now properly calculates WM decorations offset for toplevel
27852 windows (fixes bug #74763)
27854 - Implemented BorderStyles for windows (we're letting win32 draw
27856 - Fixed the signature for SetWindowLong
27857 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
27858 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
27860 * UpDownBase.cs: Remove drawing of borders, this is handled by
27861 the driver, outside the client area
27862 * ListView.cs: Removed bogus border calculations. The control should
27863 be oblivious to borders, since those are not part of the client
27865 * X11DesktopColors.cs: Commented out (currently) unneeded variables
27866 * ThemeWin32Classic.cs: Removed border calculations from ListView
27869 2005-10-06 Jackson Harper <jackson@ximian.com>
27871 * MdiChildContext.cs: Clear out the old virtual position remove
27872 all the unneeded calls to CreateGraphics.
27874 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27876 * TextControl.cs: Use proper color for highlighted text; fixes #76350
27878 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27881 - Added loading and setting of our new default icon
27882 - Only set icon if window is already created
27884 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27887 - Do not explicitly set the foreground and background colors, to
27888 allow inheriting from parents (fixes #76302)
27889 - Use Control's InternalBorderStyle property to deal with borders
27891 2005-10-06 Jackson Harper <jackson@ximian.com>
27893 * MdiChildContext.cs: Use the new xplatui function to draw a
27896 2005-10-06 Jackson Harper <jackson@ximian.com>
27898 * Form.cs: Add the parent before creating the child context cause
27899 we need the parent when setting up the child.
27901 2005-10-06 Jackson Harper <jackson@ximian.com>
27903 * FolderBrowserDialog.cs: redo the tree population code so a
27904 second thread isn't used. Should be a lot faster and more stable
27907 2005-10-05 Jackson Harper <jackson@ximian.com>
27909 * TreeView.cs: There are no expand/collapse boxes if the node has
27912 2005-10-05 Jackson Harper <jackson@ximian.com>
27914 * X11DesktopColors.cs: Get menu colours for the gtk theme.
27916 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
27918 * FileDialog.cs: Fix InitialDirectory
27920 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
27923 - Fixes changing between styles
27924 - Fixes simple mode
27925 - Fixes last item crashing when navigating with keyboard
27927 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
27929 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
27931 2005-10-05 Jackson Harper <jackson@ximian.com>
27933 * TreeView.cs: If updating the root node do a full refresh.
27934 * TreeNode.cs: The root node should be expanded by default. Also
27935 added a utility prop to tell if we are the root node.
27936 * TreeNodeCollection.cs: Only refresh if the node we are being
27937 added to is expanded. Also added a comment on a potential
27940 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
27942 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
27943 in dispose method. Fixes #76330
27945 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
27947 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
27949 - Implements vertical and horizontal scrolling using XplatUI
27950 - Fixes keyboard navagation
27951 - Fixes EnsureVisible
27953 - Handles and draws focus properly
27956 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
27958 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
27959 Create handle. NET_2_0: Destroy handle when value is null.
27961 2005-10-03 Jackson Harper <jackson@ximian.com>
27963 * ScrollBar.cs: My last scrollbar patch was broken. This is a
27964 revert and a new patch to prevent the thumb from refreshing so
27967 2005-10-02 Jackson Harper <jackson@ximian.com>
27969 * ScrollBar.cs: Don't update position if it hasn't actually
27970 changed. This occurs when you hold down the increment/decrement
27971 buttons and the thumb gets to the max/min.
27973 2005-10-01 Jackson Harper <jackson@ximian.com>
27976 * MdiChildContext.cs:
27977 * MdiClient.cs: Implement ActiveMdiChild in Form.
27979 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
27981 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
27983 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
27985 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
27988 2005-09-30 Jackson Harper <jackson@ximian.com>
27990 * ListBox.cs: Don't do a full refresh unless some data has
27993 2005-09-30 Jackson Harper <jackson@ximian.com>
27995 * TreeView.cs: Make sure that the checkboxes size is factored in
27996 even when not visible.
27998 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28000 * FileDialog.cs: Fix Jordi's build break
28002 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
28005 - Use standard the Windows colours for the combobox as espected
28006 - Dispose objects that use resouces when no longer need them
28008 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28010 * X11DesktopColors.cs: Initial incomplete implementation
28011 * XplatUIX11.cs: Added call to initialize X11DesktopColors
28013 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28016 - Switched Theme color names to match the names defined in
28017 System.Drawing.KnownColors. Life's hard enough, no need to make
28019 - Added setters to all theme color properties so themes can set
28020 their color schemes. The setters also propagate the color changes
28021 to System.Drawing.KnownColors via reflection
28022 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
28023 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
28024 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
28025 use the new, more logical theme color names
28026 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
28028 * ThemeWin32Classic.cs:
28029 - Removed code to set the old classic Windows colors. Instead it
28030 now relies on the colors returned by System.Drawing.KnownColors
28031 which will be either modern static colors (Unix) or colors
28032 read from the user's configuration (Win32)
28033 - Updated to use the new, more logical theme color names
28034 - Switched DataGrid drawing code to use only Theme colors instead of
28035 a mix of System.Drawing.KnownColors and Theme colors
28036 - DrawFrameControl(): Removed code that fills the button area, the
28037 fill would overwrite any previous fill done by a control. This
28039 - Added DrawReversibleRectangle() stub
28040 * ScrollableControl.cs: Set visible state to false when scrollbars
28041 are removed (pdn fix)
28042 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
28043 DrawReversibleRectangle() method to allow drawing primitive
28045 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
28047 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28049 * ImageList.cs: Add(Icon): Create handle.
28051 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
28054 * ThemeWin32Classic.cs:
28055 - Fixes detail mode
28057 - Issues with drawing
28059 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28061 * ImageList.cs: Moved RecreateHandle back to ImageList as event
28062 source has to be the ImageList.
28064 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28066 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
28068 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28070 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
28072 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28074 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
28076 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
28077 * GridItem.cs: Fixed TODOs
28078 * GridItemCollection.cs: Added ICollection interface
28080 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28082 * ImageList.cs: Resize icons when needed.
28084 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
28087 - Fixes GetBounds and returns on screen rects
28089 - Fixes vertical and horzintal scrolling of items
28090 * ThemeWin32Classic.cs:
28093 2005-09-29 Raja R Harinath <harinath@gmail.com>
28095 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
28097 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
28099 * ImageList.cs: Added comments about handle creation. Moved Handle,
28100 HandleCreated and OnRecreateHandle implementations to ImageCollection.
28101 Handle is created in Add methods.
28103 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
28105 * DataGridDrawingLogic.cs:
28106 - Takes rows into account on Colum calculations
28107 - Returns the column when clickig
28109 - Fixes default HitTestInfo values
28110 - Fixes HitTestInfo.ToString
28111 - Fixes ResetBackColor
28113 2005-09-28 Jackson Harper <jackson@ximian.com>
28115 * MdiChildContext.cs: Obey rules for fixed sized windows (no
28116 sizing or cursor changes). Also added some temp code to draw the
28117 titlebars text (Makes dev a little easier).
28119 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
28121 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
28123 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
28125 * ListBox.cs: Fixes bug 76253
28127 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
28129 * ImageList.cs: Added comments about the current implementation. Added
28130 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
28131 Format32bppArgb to preserve transparency and can use Graphics.FromImage
28132 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
28133 with Bitmap.LockBits for better performance. Revised the whole file to
28134 match MS.NET behaviour and provide better performance. Non-public
28135 interface members are calling public members even when they throw
28136 NotSupportedException for better maintainability. Moved ColorDepth,
28137 ImageSize, ImageStream and TransparentColor implementations to
28138 ImageCollection for better performance as these properties are not used
28140 * ImageListStreamer.cs: Added a new internal constructor that takes an
28141 ImageList.ImageCollection and serializes Images based on
28142 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
28143 match ImageList property name.
28145 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
28147 * ListBox.cs: Fixes IndexFromPoint for last item
28149 2005-09-27 Jackson Harper <jackson@ximian.com>
28151 * Form.cs: Set the position of new mdi children correctly.
28153 2005-09-27 Jackson Harper <jackson@ximian.com>
28155 * MdiClient.cs: New mdi children need to be added to the back of
28156 the controls collection so the zorder is set correctly. Also add a
28157 count of all the child windows that have been created.
28159 2005-09-27 Jackson Harper <jackson@ximian.com>
28161 * Form.cs (CreateParams): Setup MDI forms correctly.
28163 2005-09-27 Jackson Harper <jackson@ximian.com>
28165 * MdiChildContext.cs:
28166 * MonthCalendar.cs:
28172 * ScrollableControl.cs:
28173 * ComboBox.cs: Add implicit controls using the new implict control
28174 functionality in ControlCollection. Also try to block multiple
28175 control add in a suspend/resume layout to save some cycles.
28177 2005-09-27 Jackson Harper <jackson@ximian.com>
28179 * Control.cs: Add functionality to the controls collection to add
28180 'implicit controls' these are controls that are created by the
28181 containing control but should not be exposed to the user. Such as
28182 scrollbars in the treeview.
28183 * Form.cs: The list var of the ControlsCollection is no longer
28184 available because of the potential of implicit controls getting
28185 ignored by someone accessing the list directly.
28187 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
28189 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
28190 loose it's parent. (Fixed bug introduced in r49103 when we added
28191 setting the child parent to null on Remove)
28193 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
28195 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
28196 * Splitter.cs: Added missing attributes for BorderStyle property.
28197 * TextBoxBase.cs: Marked Calculate* methods internal.
28198 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
28201 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
28203 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
28205 2005-09-25 Jackson Harper <jackson@ximian.com>
28207 * TreeView.cs: Update the node bounds correctly regardless of
28208 whether the node is visible.
28210 2005-09-25 Jackson Harper <jackson@ximian.com>
28212 * ImageList.cs: Don't dispose the image after it is added to the
28213 image list. Only reformat images that need to be resized.
28215 2005-09-25 Jackson Harper <jackson@ximian.com>
28217 * ImageList.cs: Don't set the format when changing the image.
28219 2005-09-25 Jackson Harper <jackson@ximian.com>
28221 * TreeView.cs: We can't just assume the node has a font. Use the
28222 treeviews font if no node font is available.
28224 2005-09-25 Jackson Harper <jackson@ximian.com>
28226 * TreeView.cs: Allow the scrollbars to be reset with negative
28228 - Don't add scrollbars to negative sized windows.
28230 2005-09-23 Jackson Harper <jackson@ximian.com>
28232 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
28233 old Mono.Posix. Also remove some stray code that shouldn't have
28236 2005-09-23 Jackson Harper <jackson@ximian.com>
28238 * TreeView.cs: Attempt at proper sizing of the horizontal
28239 scrollbar. Also don't resize the scrollbars unless they are
28242 2005-09-23 Jackson Harper <jackson@ximian.com>
28244 * TreeView.cs: We don't need to expand the invalid area when the
28245 selection changes, as this is all drawn in the node's bounding
28246 box. The area needs to be expanded (previous typo was contracting
28247 it) when the focus rect moves.
28249 2005-09-23 Jackson Harper <jackson@ximian.com>
28251 * TreeView.cs: Display the selection box under the correct
28252 circumstances. We were rendering white text with no selection box
28255 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
28257 * TextControl.cs(Split): Now updates selection start/end if it points
28258 into a line that's being split. Fixes a FIXME and bug #75258
28260 2005-09-23 Jackson Harper <jackson@ximian.com>
28263 * ListControl.cs: Don't use the path when retrieving binding
28264 managers from the binding context. My bat sense tells me that the
28265 path is only used on insertion.
28267 2005-09-22 Jackson Harper <jackson@ximian.com>
28269 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
28271 2005-09-22 Jackson Harper <jackson@ximian.com>
28273 * Splitter.cs: There are special cursors used for splitting.
28274 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
28276 2005-09-22 Jackson Harper <jackson@ximian.com>
28278 * Splitter.cs: Change the cursor appropriately when the splitter
28279 is moused over, so the user actually knows there is a splitter
28282 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28284 * Label.cs : Fix ToString method to give same output as MS.NET
28286 2005-09-22 Jackson Harper <jackson@ximian.com>
28288 * TreeView.cs: Create the scrollbars when the handle is created
28289 and add them right away, just make them invisble. Also account for
28290 the window being shrunk vertically to the point that the vert
28291 scrollbar needs to be added.
28292 - Remove some 0.5 adjustments to get around anti aliasing issues.
28294 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
28296 * MainMenu.cs: Fixes default value
28297 * MenuItem.cs: Fixes default value
28299 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
28301 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
28303 2005-09-21 Jackson Harper <jackson@ximian.com>
28305 * Control.cs: Don't try to set the border style on the window if
28306 it hasn't been created. When the window is created the border
28307 style will be used.
28309 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28311 * Control.cs (Update): Don't call XplatUI if we don't have a
28314 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28316 * ContainerControl.cs: Instead of throwing an exception, print
28317 a one-time warning about Validate not being implemented
28318 * XplatUIWin32.cs: Removed debug output
28320 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28322 * Control.cs: Only set XplatUI background if we expect the windowing
28323 system to handle the background. This stops controls that draw their
28324 own background from flickering
28326 * XplatUIX11.cs: Support custom visuals and colormaps for window
28327 creation. This allows, amongst other things, using MWF X11 windows
28330 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28332 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
28333 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
28334 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
28335 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
28336 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
28337 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
28338 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
28339 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
28340 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
28341 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
28342 GridColumnStylesCollection.cs,
28343 IDataGridColumnStyleEditingNotificationService.cs,
28344 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
28345 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
28346 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
28347 TreeNodeCollection.cs, AmbientProperties.cs,
28348 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28349 DataObject.cs, ErrorProvider.cs, Splitter.cs,
28350 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
28351 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
28352 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
28353 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
28354 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
28355 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
28356 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
28357 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
28358 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
28359 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
28360 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
28361 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
28362 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
28363 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
28364 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
28365 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
28366 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
28367 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
28368 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
28369 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
28370 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
28371 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
28372 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
28373 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
28374 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
28375 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
28376 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
28377 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
28378 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
28379 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
28380 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
28381 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
28382 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
28383 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
28384 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
28386 2005-09-21 Jackson Harper <jackson@ximian.com>
28388 * TreeNode.cs: Call Before/After Expand not Collapse when
28391 2005-09-20 Jackson Harper <jackson@ximian.com>
28393 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
28395 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28399 - Fixes proper storing of subitems
28400 - Fixes not updated items
28402 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28404 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
28405 things if our window handle isn't created yet. Also disabled
28406 debug for TextBoxBase
28408 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28410 * MenuAPI.cs: Remove filtering of events to allow menu usage
28412 2005-09-20 Miguel de Icaza <miguel@novell.com>
28414 * Cursor.cs: Allow null to be passed to Cursor.Current.
28416 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
28418 * ThemeWin32Classic.cs:
28419 - Change some private methods/fields to protected virtual so that
28420 they can be accessed and overriden in derived classes
28421 - First refactoring of some methods. Derived themes now don't
28422 need to duplicate the complete code from ThemeWin32Classic
28424 - Added nice StatusBar
28425 - Derive from ThemeWin32Classic and not Theme
28426 - Removed duplicate ThemeWin32Classic code
28428 2005-09-20 Miguel de Icaza <miguel@novell.com>
28430 * Control.cs (ControlCollection.Add): If the value null is passed
28431 the control is ignored.
28433 Optimize this loop.
28435 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28437 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
28438 PostQuitMessage state.
28439 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
28441 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28443 * Application.cs: Our constructor will never get called, move
28444 initialization to fields; fixes bug #75933
28446 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28449 - Allow files to be selected properly using file name
28451 - Add ability to change diretory (absolute / relative)
28452 using file name combo box.
28454 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28457 - Fixes Multicolumn listboxes item wrong calculations
28458 - Allows to click when only one item is in the listbox
28459 - Fixes crash when no items using keyboard navigation
28461 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
28463 * ComboBox.cs: Reverted almost everything from the latest patch which
28466 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
28469 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
28471 - When DropDownStyle is Simple, it does not show scrollbar
28472 to the last item of the list.
28473 - When DropDownStyle is Simple, it crashed when the list was
28474 scrolled down with the down cursor key.
28475 - Fixed a bug that when DropDownStyle is DropDownList, the
28476 selected item was not shown.
28477 - The position of the selected item was not preserved when
28478 the next dropdown happened.
28479 * ThemeWin32Classic.cs:
28480 - Items were wrapped at the right end.
28481 * CheckedListBox.cs:
28484 - Items should be fully shown.
28485 - When resizing and vertical scrollbar disappeared, the item
28486 of index 0 should be on the top of the list.
28487 - GetItemRectangle should consider the size of ver. scrollbar
28489 - SizingGrip area should not be allocated when it is not
28491 - Now it reflects MinWidth of the containing panel and
28492 fixed a crash that happens when its width becomes so small.
28494 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28496 * CheckedListBox.cs: Fixes bug 76028
28497 * ListBox.cs: Fixes bug 76028
28499 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28501 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
28502 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
28504 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
28506 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
28508 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28510 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
28512 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28514 * IRootGridEntry.cs: Added
28515 * PropertyGridCommands.cs: Added
28516 * PropertiesTab.cs: Added missing methods and property
28517 * PropertyGridView.cs: Made class internal
28518 * PropertyGridTextBox.cs: Made class internal
28520 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28522 * MimeIcon.cs: Try to check some other environment variables
28523 if "DESKTOP_SESSION" returns "default"
28525 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28527 * ThemeNice.cs: Corrected background colors (e.g. menus)
28528 * ColorDialog.cs: Use correct background colors for controls
28530 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28532 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
28534 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
28536 * RichTextBox.cs: Added initial implementation
28537 * lang.cs: Removed. Was accidentally checked in long time ago
28538 * TODO: Removed. Contents were obsolete
28540 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28542 * PropertiesTab.cs : Added
28544 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28546 * PropertyGrid.cs : Update
28547 * PropertyGridView.cs : Update
28548 * System.Windows.Forms.resx : Added images and strings
28550 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
28552 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
28554 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
28556 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
28557 a busy loop right after the Ungrab the X11 display is otherwise
28560 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
28562 * ThemeWin32Classic.cs: Optimise the use of clipping
28564 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
28566 * DataGrid.cs: fixes recursion bug
28568 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
28571 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
28574 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
28576 * ThemeNice.cs: Draw nice ProgressBars
28578 2005-09-01 Miguel de Icaza <miguel@novell.com>
28580 * VScrollBar.cs: Another buglet found by Aaron's tool.
28582 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
28585 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
28588 - Added nicer menu drawing
28592 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28594 * CreateParams.cs (ToString): Made output match MS
28595 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
28596 handle is already created (to avoid forcing window creation)
28597 * XplatUIX11.cs: Set window text to caption after creating window,
28598 in case Text was set before window was created
28599 * Form.cs: Use this.Text instead of a static string as caption
28601 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28603 * NotifyIcon.cs: Don't set the window to visible; this screws
28604 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
28605 OnPaint without a bitmap)
28606 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
28607 happen very often anyway; we could add the check to the WM_PAINT
28608 event generation code
28610 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28612 * NotifyIcon.cs: Fill the icon area with a background color, to
28613 avoid 'residue' when transparent icons are drawn
28615 - Handle whole_window == client_window when destroying windows
28616 - SystrayAdd(): Set client_window to whole_window value to
28617 get mouse and other events passed to NotifyIcon
28619 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28621 * Form.cs: Set proper default for Opacity property
28623 - ShowSystray(): Don't bother creating telling the OS
28624 about the systray item if no icon is provided
28625 - Now handles WM_NCPAINT message to deal with whole/client window
28627 - Create window as visible to not get caught by Expose optimization
28628 * Hwnd.cs: Removed debug message
28629 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
28630 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
28631 PaintEventStart/End to use new client argument
28633 - Commented out debug messages
28634 - Switched PaintEventStart/End to use new client argument
28635 * XplatUI.cs: Added client window bool to PaintEventStart()/
28636 PaintEventEnd() calls, to support drawing in non-client areas
28637 * XplatUIDriver.cs:
28638 - Added client window bool to PaintEventStart()/PaintEventEnd()
28639 calls, to support drawing in non-client areas
28640 - Added conditional compile to allow using MWF BeginInvoke
28643 - Added some conditional debug output
28644 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
28645 whole/client window split
28646 - Implemented handling of client argument to PaintEventStart()/End()
28648 - Throw exception if BeginInvoke() is called and the window handle
28649 or one of the window's parent handles is not created
28650 - Added conditional compile to allow using MWF BeginInvoke on
28652 - get_Parent(): Only sets parent if handle is created. This avoids
28653 forcing window handle creation when parent is set.
28654 - Now fires Layout and Parent changed events in proper order
28655 - Switched to use Handle instead of window.Handle for Z-Order setting,
28656 the get_Parent() patch above causes us to possibly get null for 'window'
28657 - Implemented handling of client argument to PaintEventStart()/End()
28658 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
28660 - Now sends a Refresh() to all child windows when Refresh() is called
28662 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
28664 * Form.cs: Added (non-functional) Opacity property
28665 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
28667 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
28668 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
28669 use export MONO_THEME=nice to activate it.
28670 Currently supported controls:
28674 - TabControl (TabAlignment.Top only, other will follow)
28675 * ThemeEngine.cs: Add theme nice
28676 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
28679 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
28681 * Splitter.cs: Resize docked control and its neighbor.
28683 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28684 -- Making Windows with Menus layout correctly --
28685 * Form.cs : The first leg of the fix
28686 Menu setter - adjust Client Size as needed to make space for the menu
28687 SetClientSizeCore - doesn't call base version to be able to pass the
28688 menu handle to XplatUI.CalculateWindowRect
28689 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
28690 * XplatUIX11.cs: The critical second leg of the fix
28691 GetWindowPos needs to use a recalculated client_rect
28692 so that resizing the window doesn't break layout of child controls.
28693 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
28694 Lots of \t\n killed
28696 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
28698 * Label.cs: Now properly recalculates width and height on Font and Text
28699 changes if AutoSize is set
28701 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28702 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
28704 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
28706 * ImageList.cs: Makes ToString method compatible with MS
28708 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
28710 * MenuAPI.cs: fixes bug 75716
28712 2005-08-11 Umadevi S <sumadevi@novell.com>
28713 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
28715 2005-08-11 Umadevi S <sumadevi@novell.com>
28716 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
28718 2005-08-10 Umadevi S <sumadevi@novell.com>
28719 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
28721 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
28723 * Menu.cs: fixes bug 75700
28724 * MenuAPI.cs: fixes navigation issues
28726 2005-08-09 Umadevi S <sumadevi@novell.com>
28727 * CheckedListBox.cs - simple fix for GetItemChecked.
28729 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
28731 * ComboBox.cs: Serveral fixes
28732 * ListBox.cs: Serveral fixes
28734 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
28736 * ComboBox.cs: Fixes FindString methods and GetItemHeight
28737 * ListBox.cs: Fixes FindString methods
28739 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
28741 * DataGrid.cs: fixes bugs exposed by new tests
28743 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
28745 * Mime.cs: Compile Mono assembly references only if compiling
28746 with Mono (Allows to build with VS.Net again)
28748 2005-07-28 Marek Safar <marek.safar@seznam.cz>
28750 * Control.cs (PaintControlBackground): Draw background image
28752 (CheckForIllegalCrossThreadCalls): Stubbed.
28754 * Form.cs (OnCreateControl): Center when should be centered.
28756 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
28758 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
28760 * Binding.cs: Binding to properties should be case unsensitive
28762 2005-07-18 vlindos@nucleusys.com
28764 * DataGrid.cs: fixes setmember order
28766 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
28768 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
28769 * FileDialog.cs: FileDialog is now resizable and uses the new
28772 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
28774 * DataGridTextBoxColumn.cs: default value
28775 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
28776 * GridTableStylesCollection.cs: fixes checking MappingName
28777 * DataGridDrawingLogic.cs: fixes drawing logic issues
28778 * DataSourceHelper.cs: rewritten to make compatible with more data sources
28779 * DataGrid.cs: fixes
28781 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
28783 * MimeGenerated.cs: Use case sensitive comparer for
28784 NameValueCollections
28786 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
28788 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
28789 * ThemeWin32Classic.cs: bug fixes, code refactoring
28790 * DataGridDrawingLogic.cs: bug fixes, code refactoring
28791 * DataGrid.cs: bug fixes, code refactoring
28792 * DataGridTextBox.cs: bug fixes, code refactoring
28793 * DataGridColumnStyle.cs: bug fixes, code refactoring
28794 * Theme.cs: bug fixes, code refactoring
28796 2005-07-01 Peter Bartok <pbartok@novell.com>
28798 * TextControl.cs: Quick fix for the reported crash on ColorDialog
28799 and other text box usage
28801 2005-07-01 Jackson Harper <jackson@ximian.com>
28803 * TabControl.cs: Make sure the bottom of the tab covers the pages
28806 2005-06-30 Peter Bartok <pbartok@novell.com>
28808 * Form.cs (ShowDialog): Assign owner of the dialog
28809 * TextBoxBase.cs: Always refresh caret size when deleting, caret
28810 might have been moved to a tag with different height
28812 2005-06-30 Jackson Harper <jackson@ximian.com>
28814 * Form.cs: Don't create an infinite loop when setting focus
28815 * MenuItem.cs: Don't dirty the parents if we don't have any
28817 2005-06-29 Ben Maurer <bmaurer@ximian.com>
28819 * LibSupport.cs: Rename
28821 2005-06-29 Peter Bartok <pbartok@novell.com>
28823 * TextBoxBase.cs: Re-align caret after deleting a character
28825 - DeleteChars(): Ensure that tag covers the provided position
28826 - StreamLine(): Drop reference for dropped tag
28828 2005-06-29 Peter Bartok <pbartok@novell.com>
28831 - Selections now work properly, anchoring at the initial location
28832 and properly extending in either direction (SetSelectionToCaret(),
28833 SetSelectionStart() and SetSelectionEnd())
28834 - No longer redraws the whole control on selection change, now
28835 calculates delta between previous and new selection and only
28836 invalidates/redraws that area
28837 - Fixed FindPos() math off-by-one errors
28838 - Changed DeleteChars() to verify the provided tag covers the
28839 provided position, selections may have a tag that doesn't cover
28840 the position if the selection is at a tag border
28841 - Fixed off-by-one errors in DeleteChars()
28842 - Added missing streamlining check in DeleteChars() to remove
28844 - Implemented Invalidate() method, now properly calculates exposures
28845 between two given lines/positions
28846 - Implemented SetSelection()
28847 - Obsoleted and removed FixupSelection()
28848 - Improved RecalculateDocument() logic, removing code duplication
28850 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28852 * LibSupport.cs: changes to match different input/output arguments.
28854 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28856 * LibSupport.cs: added libsupport.so init routine.
28858 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
28860 * ControlBindingsCollection.cs
28861 - Throws an exception on null datasource when adding
28862 - Checks for duplicated bindings when adding
28864 2005-06-28 Jackson Harper <jackson@ximian.com>
28866 * TreeView.cs (OnKeyDown): Support left and right properly
28867 (navigates as well as expanding and collapsing.
28868 - Add support for Multiply, this expands all the selected nodes
28870 - Fix some tabbing.
28872 2005-06-28 Jackson Harper <jackson@ximian.com>
28874 * TreeView.cs: Implement keyboard navigation, currently supports,
28875 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
28876 support for toggling checkboxes with the space bar.
28878 2005-06-28 Jackson Harper <jackson@ximian.com>
28880 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
28883 2005-06-28 Jackson Harper <jackson@ximian.com>
28885 * TreeView.cs: Add missing event.
28887 2005-06-27 Peter Bartok <pbartok@novell.com>
28890 - Made line ending size configurable (now allows for counting
28891 lineendings as \n or \r\n)
28892 - Added margin to viewport to keep caret visible on right side
28893 - Fixed translation routines for line/pos to documentpos to consider
28894 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
28895 - Fixed some line-endings to be unix style
28896 - Fixed Document.FormatText to perform it's calculations 1-based
28897 - Added descriptions for a few methods that might otherwise get
28899 - Added NOTE section with some basic conventions to remember at
28900 the top of the file
28901 - Major fixup for RichTextBox selection drawing:
28902 * Fixed crashes when multiple tags on a single line were selected
28903 * fixed selection box drawing not overlaying text
28904 * fixed bogus offset calculation for tags not starting at index 1
28905 * Switched behaviour from using multiple Substrings of a
28906 StringBuilder.ToString() to using multiple
28907 StringBuilder.ToString(start, length) statements, hoping this is
28908 faster (kept original version commented out in the code, in case
28909 original version was faster)
28910 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
28912 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
28915 2005-06-27 Jackson Harper <jackson@ximian.com>
28917 * TabControl.cs: Move to the left and right with the arrow
28918 keys. These keys don't cycle beyond first and last like
28919 tab. Refresh all the tabs when scrolling them to the left or
28922 2005-06-27 Jackson Harper <jackson@ximian.com>
28925 - ToString: Added method
28926 - CreateParams: Remove TODO and comment
28927 - OnKeyDown: Cycle through bounds properly.
28928 - SelectedIndex: Scroll to the right or left if we need to
28929 display the newly selected tab.
28931 2005-06-23 Jackson Harper <jackson@ximian.com>
28933 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
28936 2005-06-23 Jackson Harper <jackson@ximian.com>
28938 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
28939 CTRL-SHIFT-TAB, and HOME, END are there any others?
28941 2005-06-23 Jackson Harper <jackson@ximian.com>
28943 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
28945 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
28947 * DataGridTextBoxColumn.cs: fixes and enhancements
28948 * ThemeWin32Classic.cs: fixes and enhancements
28949 * DataGridBoolColumn.cs: fixes and enhancements
28950 * DataGridDrawingLogic.cs: fixes and enhancements
28951 * CurrencyManager.cs: fixes and enhancements
28952 * DataGrid.cs: fixes and enhancements
28953 * DataGridColumnStyle.cs: fixes and enhancements
28955 2005-06-22 Jackson Harper <jackson@ximian.com>
28957 * TabControl.cs: Add some missing methods that just call into the
28958 base. Make the TabPageCollection's IList interface behave in the
28959 same manner as the MS implementation.
28961 2005-06-22 Peter Bartok <pbartok@novell.com>
28963 * TextControl.cs: Added sanity check
28965 - Fixed wrapping behaviour, don't set wrap on single line controls
28966 (this fixes the breakage of colordialog introduced in an earlier
28968 - Added rudimentary support for autoscrolling right-aligned controls
28969 (still needs fixing, also, center alignment scroll is missing)
28971 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
28973 * ScrollBar.cs: Fixes thumbpos on Maximum values
28975 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
28977 * PropertyGridView.cs: Pass context information to UITypeEditors
28979 2005-06-21 Peter Bartok <pbartok@novell.com>
28982 - Now calling PositionCaret with absolute space coordinates
28983 - Enabled vertical scrolling
28984 - Better tracking of scrollbar changes, tied into WidthChange
28986 - Improved cursor tracking
28987 - Removed debug output
28989 - PositionCaret coordinates are now works in absolute space, not
28991 - Improved tracking of document size
28992 - Added events for width and height changes
28994 2005-06-21 Peter Bartok <pbartok@novell.com>
28996 * Form.cs: Set focus to active control when form is activated
28998 - Added word-wrap functionality to RecalculateLine()
28999 - Added some short function descriptions for VS.Net to aid in
29000 writing dependent controls
29001 - Added Caret property, returning the current coords of the caret
29002 - Added ViewPortWidth and ViewPortHeight properties
29003 - Added Wrap property
29004 - Added CaretMoved event
29005 - Removed some old debug code
29006 - Split() can now create soft splits
29007 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
29008 - Added method to format existing text
29009 - Fixed size/alignment calculations to use viewport
29010 - RecalculateDocument now can handle changing line-numbers while
29014 - Added some wrap logic, we don't wrap if alignment is not left
29015 - Added casts for scrollbar var, base class switched types to
29016 also support RichTextBoxA
29017 - Implemented handling of scrollbar visibility flags
29020 - Switched scrollbars type to RichTextBoxScrollBars to support
29022 - Added tracking of canvas width/height
29023 - Switched scrollbars to be not selectable (to keep focus on text)
29024 - Added central CalculateDocument() method to handle all redraw
29026 - Added ReadOnly support
29027 - Added WordWrap support
29028 - Fixed handling of Enter key (we now treat it as a DialogKey)
29029 - Fixed caret positioning when h or v scroll is not zero
29030 - Fixed placing/generation of vertical scrollbar
29031 - Added CalculateScrollBars() method to allow updating scrollbar
29032 limits and visibility
29033 - Fixed handling of horizontal scroll
29034 - Added handling of vertical scroll
29035 - Implemented auto-'jump' when caret moves to close to a left or
29036 right border and there is text to be scrolled into view (currently
29037 there's the potential for a stack overflow, until a bug in
29038 scrollbar is fixed)
29040 2005-06-21 Geoff Norton <gnorton@customerdna.com>
29042 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
29044 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
29048 - return application/x-zerosize for files with size zero
29049 (if no extension pattern matches).
29050 - check matches collection for strings too.
29051 - return only the first mime type if the name value
29052 collection has more than one mime type.
29054 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
29056 * PropertyGrid.cs: Cleaned up some TODOs
29057 * PropertyGridView.cs: Added support for UITypeEditors
29059 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
29061 * DataGrid.cs: clears cached value
29063 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
29065 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
29066 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
29067 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
29068 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
29070 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
29072 * ThemeWin32Classic.cs: fixes colour
29074 2005-06-15 Peter Bartok <pbartok@novell.com>
29076 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
29077 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
29078 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
29079 * Control.cs: Added some MWFCategory and MWFDescription attributes
29080 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
29082 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
29084 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
29087 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
29089 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
29090 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
29091 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
29092 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
29093 * DataGrid.cs: default datagrid settings for Default Styles, fixes
29094 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
29096 2005-06-13 Jackson Harper <jackson@ximian.com>
29098 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
29099 isn't printed when the user enables dropping. (X11 does accept
29102 2005-06-13 Jackson Harper <jackson@ximian.com>
29104 * TreeView.cs: Remove some TODOS.
29106 2005-06-13 Jackson Harper <jackson@ximian.com>
29108 * Form.cs: Hook into the mdi framework.
29109 * MdiClient.cs: Use the base control collections add method so
29110 parents get setup correctly. Set the default back colour and dock
29112 * MdiChildContext.cs: New class, this bad actor handles an
29113 instance of an MDI window. Right now there is only basic
29114 support. You can drag, close, and resize windows. Minimize and
29115 Maximize are partially implemented.
29117 2005-06-13 Jackson Harper <jackson@ximian.com>
29119 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
29120 freaky when both vals are negative. NOTE: There are probably other
29121 places in XplatUIX11 that this needs to be done.
29123 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
29125 * DataGrid.cs: implement missing methods, move KeyboardNavigation
29126 * DataGridColumnStyle.cs: fixes signature
29128 2005-06-12 Jackson Harper <jackson@ximian.com>
29130 * XplatUIX11.cs: Use sizing cursors similar to the ones on
29133 2005-06-11 Jackson Harper <jackson@ximian.com>
29135 * StatusBarPanel.cs: Signature cleanups. Implement
29138 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
29140 * DataGridTextBoxColumn.cs: Honors aligment
29141 * GridColumnStylesCollection.cs: Contains is case unsensitive
29142 * GridTableStylesCollection.cs: several fixes
29143 * DataGridTableStyle.cs: default column creation
29144 * DataGridDrawingLogic.cs: fixes
29145 * CurrencyManager.cs: ListName property
29146 * DataGrid.cs: multiple styles support
29147 * DataGridColumnStyle.cs: fixes
29150 2005-06-10 Peter Bartok <pbartok@novell.com>
29152 * Control.cs(Select): Moved SetFocus call to avoid potential
29153 loops if controls change the active control when getting focus
29154 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
29155 the up/down buttons
29157 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
29159 * ImageListConverter.cs: Implemented
29161 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29163 * MonthCalendar.cs: Wired in NumericUpDown control for year
29165 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29167 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
29168 DoubleClick events, since they are not meant to be fired.
29170 2005-06-09 Peter Bartok <pbartok@novell.com>
29172 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
29173 Jonathan's standalone controls into MWF, implemented missing
29174 events, attributes and methods; added xxxAccessible classes
29175 * AccessibleObject.cs: Made fields internal so other classes
29176 can change them if needed
29178 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
29180 * UpDownBase.cs: Complete implementation
29181 * NumericUpDown.cs: Complete implementation
29182 * DomainUpDown.cs: Complete implementation
29184 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
29186 * DataGridTextBoxColumn.cs: drawing fixes
29187 * DataGridCell.cs: fixes ToString method to match MSNet
29188 * DataGridTableStyle.cs: fixes
29189 * DataGridBoolColumn.cs: fixes, drawing
29190 * DataGridDrawingLogic.cs: fixes, new methods
29191 * DataGridTextBox.cs: Keyboard and fixes
29193 - Keyboard navigation
29195 - Row selection (single, multiple, deletion, etc)
29198 2005-06-07 Jackson Harper <jackson@ximian.com>
29200 * ThemeWin32Classic.cs: Clear the background area when drawing
29203 2005-06-06 Peter Bartok <pbartok@novell.com>
29205 * ImageListStreamer.cs: Fixed signature for GetData
29206 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
29208 - Added missing ChildAccessibleObject class
29209 - Added missing OnXXXFocus overrides, switched to using those
29210 instead of the event handler
29212 - Added Parent property for ControlAccessibleObject
29215 - Added ResetBindings()
29216 * ListBindingConverter.cs: Implemented some methods
29217 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
29218 * ImageList.cs: Implemented basic handle scheme, removed TODOs
29219 * ContainerControl.cs: Fixed signature, now subscribing to the
29220 ControlRemoved event instead of overriding the handler, LAMESPEC
29221 * CurrencyManager.cs: Added missing attribute
29222 * MonthCalendar.cs: Added missing properties
29224 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29226 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
29228 2005-06-06 Gaurav Vaish and Ankit Jain
29230 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
29231 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
29233 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29235 * Control.cs: fixes CreateParams Width / Height.
29237 2005-06-05 Peter Bartok <pbartok@novell.com>
29239 * Win32DnD.cs: Removed compilation warnings
29241 2005-06-05 Peter Bartok <pbartok@novell.com>
29243 * Control.cs (CreateParams): Since we don't know if one of the
29244 properties we use is overridden, lets make sure if we fail accessing
29245 we continue with a backup plan
29247 2005-06-05 Peter Bartok <pbartok@novell.com>
29250 - Removed debug output
29251 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
29253 - Plugged resource leak
29254 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
29257 2005-06-05 Peter Bartok <pbartok@novell.com>
29259 * XplatUIWin32.cs: Removed DnD code
29260 * Win32DnD.cs: Implemented drop source and drop target functionality
29262 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29264 * UpDownBase.cs: remove duplicate addition of event, enable some code
29265 that was commented out.
29266 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
29267 Validate input when a key is pressed. It works fine now for every
29268 combination of Hexadecimal. Only missing some drawing love when sharing
29269 space with other controls.
29271 2005-06-04 Peter Bartok <pbartok@novell.com>
29274 - We need to pass a window for DragDrop, so enable callback events
29275 - Added DnD callback events when being a DragSource
29276 * XplatUI.cs (StartDrag): Added window handle argument
29277 * XplatUIDriver.cs (StartDrag): Added window handle argument
29278 * QueryContinueDragEventArgs: Made fields internally accessible so
29279 drivers can set them
29280 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
29283 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
29285 * DataGridTextBoxColumn.cs: column text editing
29286 * DataGridTableStyle.cs: Respect columns styles created by the user
29287 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
29288 * DataGridBoolColumn.cs: bool column editing
29289 * DataGrid.cs: fixes to scrolling, properties, etc
29290 * DataGridTextBox.cs: handle keyboard
29291 * DataGridColumnStyle.cs: fixes
29293 2005-06-02 Jackson Harper <jackson@ximian.com>
29295 * ImageListStreamer.cs: Somewhat broken implementation of
29296 GetObjectData. The RLE needs some work to match MS properly.
29298 2005-06-02 Jackson Harper <jackson@ximian.com>
29300 * X11Dnd.cs: Attempting to keep at least one file in MWF
29303 2005-06-02 Peter Bartok <pbartok@novell.com>
29305 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
29308 2005-06-02 Peter Bartok <pbartok@novell.com>
29310 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
29311 * XplatUI.cs: Added DoDragDrop() method
29312 * XplatUIDriver.cs: Added DoDragDrop() method
29314 2005-06-02 Jackson Harper <jackson@ximian.com>
29316 * Splitter.cs: Implement BorderStyle.
29318 2005-06-02 Jackson Harper <jackson@ximian.com>
29320 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
29321 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
29324 2005-06-02 Peter Bartok <pbartok@novell.com>
29327 - Added Data setter
29328 - Fixed broken insertion code for SetData, now also
29329 overwrites any existing entry of the same format name
29330 * Hwnd.cs: Added list of pointers that automatically gets
29331 freed when the window is disposed
29332 * XplatUI.cs: Call driver initialization method when loading
29335 - OnDragLeave takes EventArgs, not DragEventArgs
29336 - Added setting of WS_EX_ACCEPTFILES style when dropping is
29338 - Forces style update when drop state changes
29339 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
29340 not perfect since we cannot (yet) call the IDataObject.GetData()
29341 method, we keep getting 0x80004005 error, dunno why)
29343 2005-06-02 Peter Bartok <pbartok@novell.com>
29345 * DragEventArgs.cs: Make fields internal so we can cache the
29346 object and re-set the fields from XplatUI
29348 2005-06-02 Jackson Harper <jackson@ximian.com>
29350 * Control.cs: Add some internal methods so the DnD subsystem can
29351 raise DnD events. Also call into the driver when AllowDrop is set.
29353 * XplatUIDriver.cs: New method for setting whether or not a window
29354 is allowed to accept drag and drop messages.
29356 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
29358 * ScrollBar.cs: Make sure that values sent in Scroll events
29359 are always between Maximum and Minimum.
29361 2005-06-01 Marek Safar <marek.safar@seznam.cz>
29363 * Menu.cs: Call MenuChanged when menuitem visibility has been
29365 * MenuItem.cs: Rebuild menu when item is (not) visible.
29366 * MainMenu.cs: MainMenu has special MenuChanged.
29367 * Theme.cs: Caption and FrameBorderSize are not fixed.
29368 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
29369 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
29371 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
29372 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
29374 2005-05-30 Jackson Harper <jackson@ximian.com>
29376 * DataFormat.cs: We can't statically initialize this stuff because
29377 it calls into the xplatui and could create a loop. So we lazy init
29380 2005-05-28 Jackson Harper <jackson@ximian.com>
29382 * Control.cs: Proper implementation of Product(Name/Version).
29384 2005-05-27 Jackson Harper <jackson@ximian.com>
29386 * DataObject.cs: Dont crash if no data is found.
29388 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29389 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
29390 as per status page, guessing it should be set to true
29392 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
29394 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
29395 * DataGridTableStyle.cs: set proper formatting text, def header text
29396 * ThemeWin32Classic.cs: new themable paramaters
29397 * DataGridBoolColumn.cs: paint check box, get data, fixes
29398 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
29399 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
29400 * DataGridColumnStyle.cs: fixes
29401 * Theme.cs: new themable paramaters
29403 2005-05-26 Peter Bartok <pbartok@novell.com>
29405 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
29407 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29408 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
29410 2005-05-24 Peter Bartok <pbartok@novell.com>
29412 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
29413 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
29414 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
29415 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
29416 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
29417 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
29418 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
29419 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
29420 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
29421 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
29422 missing attributes, etc
29423 * DataGridPreferredColumnWidthTypeConverter.cs: Added
29425 2005-05-24 Peter Bartok <pbartok@novell.com>
29427 * Help.cs: Added, implemented trivial functions, throws up MessageBox
29428 when user tries to get help
29429 * DataObject.cs, DataFormats.cs, LinkArea.cs,
29430 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
29431 to suppress warnings
29432 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
29433 avoid unreachable code warning
29435 2005-05-20 Peter Bartok <pbartok@novell.com>
29437 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
29439 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29441 * DataGridTextBoxColumn.cs: Basic painting methods
29442 * DataGridTableStyle.cs: Set table style in the column
29443 * ThemeWin32Classic.cs: Use Theme for colors
29444 * DataGridDrawingLogic.cs: Implement more drawing
29445 * DataGrid.cs: drawing, theming, enhacements, fixes
29446 * DataGridColumnStyle.cs: fixes, drawing
29447 * Theme.cs: theming for Datagrid
29449 2005-05-20 Peter Bartok <pbartok@novell.com>
29451 * Cursor.cs: Implemented GetObjectData() method
29453 2005-05-20 Peter Bartok <pbartok@novell.com>
29455 * Cursors.cs: Added setting of cursor name
29457 - Implemented constructors
29458 - Implemented Draw and DrawStretched
29459 - Implemented Current property
29460 - Implemented == and != operators
29461 - Implemented Dispose()
29462 - Implemented ToString
29463 - Added missing attributes
29465 - Added missing reset for OverrideCursor when DoEvents is called
29466 - Fixed creation of cursor, logic was wrong
29468 - Added missing reset for OverrideCursor when DoEvents is called
29469 - Fixed creation of cursor, bit arrays were swapped
29470 * Clipboard.cs: Removed obsolete MonoTODO attribute
29472 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29474 * ComboBox.cs: fixes OnSelectedItemChanged
29475 * ControlBindingsCollection.cs: fixes item range check
29477 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29480 - Calc preferred height properly
29481 - Implement missing properties
29483 * NumericUpDown.cs: Implement missing events
29485 2005-05-19 Jackson Harper <jackson@ximian.com>
29487 * TabControl.cs: New method that resizes the tab pages before
29488 redrawing them. This as needed as the control is double buffered
29489 and sizing will not be recalculated unless ResizeTabPages is
29491 * TabPage.cs: Set base.Text instead of Text in the constructor so
29492 that UpdateOwner does not get called. Use the new Redraw method of
29493 TabControl instead of Refresh so the sizing is recalculated.
29494 * ThemeWin32Classic.cs: Draw the text for button tabs.
29496 2005-05-19 Jackson Harper <jackson@ximian.com>
29498 * Control.cs: Paint control background images. Fix typo where
29499 PaintControlBackground was not getting called correctly.
29501 2005-05-19 Peter Bartok <pbartok@novell.com>
29503 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
29504 I can investigate, apparently I broke FileDialog
29506 2005-05-19 Marek Safar <marek.safar@seznam.cz>
29508 * AxHost.cs: Some simple properties.
29509 * Control.cs: window must be accessible after ctor.
29510 * Form.cs: Added TransparencyKey property.
29511 * TextBoxBase.cs: Implemented Clear. Text property can be null.
29512 * XplatUIWin32.cs: SetBorderStyle implemented.
29514 2005-05-18 Peter Bartok <pbartok@novell.com>
29516 * DataObject.cs: Entries are not global but particular to the
29517 DataObject, now it behaves that way
29518 * XplatUIWin32.cs: Implemented Clipboard methods
29519 * Clipboard.cs: Implemented
29520 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
29521 * XplatUIOSX.cs: Updated to final clipboard prototypes
29522 * XplatUIX11.cs: Implemented Clipboard methods
29523 * XplatUIDriver.cs: Updated to final clipboard prototypes
29524 * XplatUIStructs.cs:
29525 - Added BITMAPINFOHEADER struct
29526 - Added ClipboardFormats enum
29528 - Added ClipboardStruct
29529 - Added Atom enum items for clipboard types
29530 - Fixed atom types for Selection event structures
29532 - Added internal properties and methods for drivers to enumerate
29534 - Switched initialization method to allow drivers to assign their
29535 own IDs even for the MS predefined clipboard IDs
29536 * XplatUI.cs: Updated to final clipboard interface
29538 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29539 * PropertyGridView.cs: Fixed compiler warnings.
29541 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29542 * PropertyGrid.cs: Added some event calls
29543 * PropertyGridView.cs: Change drawing code to use double buffering
29544 * PropertyGridTextBox.cs: Changed Text property name
29545 * GridItem.cs: Added Bounds property.
29546 * GridEntry.cs: Added Bounds property.
29548 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
29550 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
29551 since GetType() may not return the correct type if the object is
29554 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
29556 * TreeNodeCollection.cs: fixes get/set item ranges
29558 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
29560 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
29562 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
29564 * ComboBox.cs: Fix item range comparation
29565 * ListView.cs: Fix item range comparation
29567 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
29570 - Clear example panel when OnPaint is called
29571 - Better solution for displaying the example panel text
29572 - Select default indexes in the ListBoxes
29574 2005-05-11 Geoff Norton <gnorton@customerdna.com>
29576 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
29578 2005-05-11 Peter Bartok <pbartok@novell.com>
29580 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
29581 * SelectionRangeConverter.cs: Implemented
29582 * PropertyGrid.cs: Fixed attribute value
29584 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
29585 - Added Sebastien Pouliot's CAS Stack Propagation fixes
29586 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
29587 that's common to all drivers. First methods to go there are
29588 Sebastien Pouliot's CAS Stack Propagation helper methods
29589 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
29590 Sebastien Pouliot for CAS Stack Propagation
29592 2005-05-11 Geoff Norton <gnorton@customerdna.com>
29595 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
29597 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
29599 * DataGridTextBoxColumn.cs: fixed some members
29600 * GridColumnStylesCollection.cs: indexed column is case insensitive
29601 * DataGridTableStyle.cs: fixes
29602 * ThemeWin32Classic.cs: add new theme parameter
29603 * Theme.cs: add new theme parameter
29604 * DataGridDrawingLogic.cs: Datagrid's drawing logic
29605 * DataGrid.cs: fixes, new internal properties, etc.
29606 * DataGridColumnStyle.cs: allows to set grid value
29609 2005-05-10 Peter Bartok <pbartok@novell.com>
29611 * AccessibleObject.cs:
29612 - Removed MonoTODO attribute on help, method is correct
29613 - Fixed Bounds property
29614 * AxHost.cs: Moved MonoTODO
29615 * ButtonBase.cs: Now setting AccessibleObject properties
29616 * RadioButton.cs: Setting proper AccessibleObject role
29617 * CheckBox.cs: Setting proper AccessibleObject role
29618 * ControlBindingsCollection.cs: Added properties, methods and attributes
29619 * DataFormats.cs: Fixed awkward internal API, and changed to enable
29620 userdefined DataFormats.Format items as well
29621 * ListControl.cs: Removed data_member from the public eye
29622 * OpenFileDialog.cs:
29623 - Made class sealed
29624 - Added missing attributes
29625 * SaveFileDialog.cs: Added missing attributes
29626 * ImageListStreamer.cs: Fixed code that caused warnings
29627 * LinkLabel.cs: Removed unreachable code
29628 * TreeView.cs: Fixed code that caused warnings
29629 * PropertyGridView.cs: Fixed code that caused warnings
29630 * GridColumnStylesCollection.cs: Added missing attributes
29631 * GridTableStylesCollection: Added missing attribute
29632 * PropertyManager: Added .ctor
29633 * SecurityIDType: Added
29634 * DataObject.cs: Implemented class
29635 * LinkArea.cs: Added missing attribute
29637 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
29639 * RadioButton.cs: call base method to allow to fire OnClick event
29640 * UpDownBase.cs: OnMouseUp call base method
29641 * CheckedListBox.cs: call base method before returning
29642 * TrackBar.cs: call base method before returning
29645 2005-05-10 Peter Bartok <pbartok@novell.com>
29647 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
29650 2005-05-10 Peter Bartok <pbartok@novell.com>
29652 * DataFormats.cs: Implemented
29653 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
29654 XplatUIX11.cs: Added Clipboard APIs
29655 * XplatUIWin32.cs: Implemented Clipboard APIs
29656 * FolderBrowserDialog.cs: Added missing event, attributes
29658 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
29660 * CheckBox.cs: call base method to allow to fire OnClick event
29662 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
29664 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
29666 2005-05-06 Peter Bartok <pbartok@novell.com>
29668 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
29669 * Screen.cs: Implemented
29670 * HelpNavigator.cs: Added
29671 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
29673 * HelpProvider.cs: Implemented all we can do until we have a CHM
29674 help library (which means that "What's This" does work now)
29676 2005-05-06 Jackson Harper <jackson@ximian.com>
29678 * XplatUIX11.cs: Fix waking up the main loop.
29680 2005-05-05 Peter Bartok <pbartok@novell.com>
29682 * XplatUI.cs: Updated revision
29683 * Form.cs: Removed enless loop
29684 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
29685 * Label.cs (OnPaint): Added call to base.OnPaint()
29686 * ToolTip.cs: Made ToolTipWindow reusable for other controls
29687 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
29688 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
29690 * ButtonBase.cs: Moved base.OnPaint() call to end of method
29691 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
29692 to ToolTip.ToolTipWindow for drawing and size methods; this allows
29693 reuse of ToolTipWindow by other controls
29694 * SizeGrip.cs: Moved base.OnPaint() call to end of method
29695 * XplatUIX11.cs: Now clipping drawing area (experimental)
29696 * PictureBox.cs: Moved base.OnPaint() call to end of method
29697 * Theme.cs: Fixed ToolTip abstracts to match new format
29698 * ErrorProvider.cs: Implemented
29700 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
29702 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
29706 - Implements LinkBehavior
29707 - Fixes many issues
29709 2005-05-03 Jackson Harper <jackson@ximian.com>
29711 * ListView.cs: Calculate the scrollbar positioning on resize and
29712 paint, so they get put in the correct place.
29714 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
29716 * ColorDialogs.cs: The small color panels are now handled by
29717 SmallColorControl. This fixes drawing of the focus rectangle
29718 and adds a 3D border.
29720 2005-05-03 Peter Bartok <pbartok@novell.com>
29722 * Control.cs: Modified version of Jonathan Chamber's fix for
29725 2005-05-03 Jackson Harper <jackson@ximian.com>
29727 * ListView.cs: Remove redraw variable. Control now handles whether
29728 or not a redraw needs to be done, and will only raise the paint
29729 event if redrawing is needed.
29731 2005-05-03 Jackson Harper <jackson@ximian.com>
29733 * Splitter.cs: No decorations for the splitter form. Cache the
29736 2005-05-03 Jackson Harper <jackson@ximian.com>
29738 * TreeView.cs: Use dashed lines to connect nodes. Use the
29739 ControlPaint method for drawing the focus rect instead of doing
29742 2005-05-02 Peter Bartok <pbartok@novell.com>
29744 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
29746 2005-04-29 Jackson Harper <jackson@ximian.com>
29748 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
29749 entire image buffer. Just clear the clipping rectangle.
29751 2005-04-29 Jackson Harper <jackson@ximian.com>
29753 * ThemeWin32Classic.cs: Don't draw list view items that are
29754 outside the clipping rectangle.
29756 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
29758 * ListBox.cs: added horizontal item scroll
29760 2005-04-29 Jackson Harper <jackson@ximian.com>
29762 * ThemeWin32Classic.cs: Remove some old debug code that was
29763 causing flicker with the new double buffering code.
29765 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
29767 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
29768 behave like combobox and comboboxlist (still not sure if this is
29771 2005-04-28 Jackson Harper <jackson@ximian.com>
29773 * ThemeWin32Classic.cs: Don't fill the middle of progress
29774 bars. This fills areas outside of the clip bounds that don't need
29777 2005-04-28 Jackson Harper <jackson@ximian.com>
29779 * Control.cs: Don't expose functionality to touch the image buffers.
29781 * ListView.cs: We do not need to (and no longer can) manipulate
29782 the image buffers directly. All of this is handled by Control.
29784 2005-04-28 Peter Bartok <pbartok@novell.com>
29786 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29787 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
29788 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
29790 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
29793 - Adjust control's height for non-simple comboboxes (bug fix)
29795 * MenuAPI.cs: remove unused var
29796 * ScrollBar.cs: remove unsed var
29798 * ListBox.cs: unselect items when clearing
29800 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
29802 * ListControl.cs: honors OnPositionChanged and default Selected Item
29803 * ListBox.cs: unselect items when clearing
29805 2005-04-27 Jackson Harper <jackson@ximian.com>
29807 * X11Keyboard.cs: Initialize a default keyboard and give a warning
29808 if a "correct" keyboard is not found. This will make us not crash,
29809 but might give some users bad keyboard layouts...seems to be the
29810 same thing rewind does.
29812 2005-04-27 Jackson Harper <jackson@ximian.com>
29814 * BindingManagerBase.cs: Attach the current/position changed
29815 handlers to their respective events.
29817 2005-04-27 Jackson Harper <jackson@ximian.com>
29819 * Control.cs: Make sure that the first WM_PAINT does a full draw,
29821 * ThemeWin32Classic.cs: Don't fill the background for picture
29822 boxes. This could overright user drawing.
29823 * ComboBox.cs: Just fill the clipping rect not the entire client
29824 rect when drawing the background. This prevents pieces of the
29825 image buffer from getting overwritten and is theoretically faster.
29827 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
29829 * ComboBox.cs: Databinding support fixes, fire missing events
29830 * ListControl.cs: implement missing methods and properties, fixes
29831 * ThemeWin32Classic.cs: Databiding support on Drawing
29832 * CheckedListBox.cs: Databinding support fixes, fire missing events
29833 * ListBox.cs: Databinding support fixes, fire missing events
29835 2005-04-25 Peter Bartok <pbartok@novell.com>
29837 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
29839 2005-04-25 Jackson Harper <jackson@ximian.com>
29841 * TreeView.cs: Use the horizontal scrollbars height not width when
29842 determining how much of the client area is available.
29844 2005-04-25 Jackson Harper <jackson@ximian.com>
29846 * Control.cs: Double buffering is handled differently now. As per
29847 the spec, the extra buffer is created in the WM_PAINT message and
29848 passed down to the control's drawing code.
29856 * PropertyGridView.cs:
29868 * DateTimePicker.cs:
29870 * TreeView.cs: Update to new double buffering system.
29871 * MonthCalendar.cs: Uncomment block, as Capture is now
29872 working. Update to new double buffering
29873 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
29874 * PaintEventArgs.cs: New internal method allows us to set the
29875 graphics object. This is used for double buffering.
29876 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
29877 rectangle. The internal paint_area var has been removed from
29878 StatusBar. The clipping rect should be used instead.
29879 * Theme.cs: Give the PictureBox drawing method a clipping rect.
29880 * TabPage.cs: The RefreshTabs method was removed, so just call the
29881 tab controls Refresh method now.
29882 * TabControl.cs: Update to new double buffering. Make sure the
29883 handle is created before sizing the tab pages, otherwise we will
29884 get stuck in a loop.
29886 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
29888 * LinkLabel.cs: Fix typo, bug #74719; patch
29889 from Borja Sanchez Zamorano
29891 2005-04-22 Jackson Harper <jackson@ximian.com>
29893 * TreeNode.cs: Implement Handle stuff.
29894 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
29896 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
29898 * DataGridTextBoxColumn.cs: call base constructors, fixes
29899 * GridColumnStylesCollection.cs: missing events, methods, and functionality
29900 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
29901 * DataGridTableStyle.cs: implements create default column styles
29902 * DataGridBoolColumn.cs: which types can handle
29903 * DataGrid.cs: missing methods, fixes, new functionality
29904 * DataGridColumnStyle.cs: fixes
29906 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
29907 * FolderBrowserDialog.cs:
29908 - Use a thread to fill the TreeView
29909 - Adjusted some sizes
29911 2005-04-19 Peter Bartok <pbartok@novell.com>
29913 * LinkLabel.cs: (Re-)create the pieces when setting the Text
29914 property. Fixes #74360.
29916 2005-04-19 Jackson Harper <jackson@ximian.com>
29918 * XEventQueue.cs: Lock when getting the lockqueue size.
29919 * PictureBox.cs: Call base OnPaint
29921 2005-04-19 Peter Bartok <pbartok@novell.com>
29923 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
29924 messages were no longer being processed (this broke BeginInvoke)
29927 2005-04-18 Jackson Harper <jackson@ximian.com>
29929 * TreeView.cs: buglet that caused node images to get drawn
29930 regardless of whether or not they were in the clipping rectangle.
29932 2005-04-18 Jackson Harper <jackson@ximian.com>
29934 * CurrencyManager.cs: There are four rules for GetItemProperties:
29935 - If the type is an array use the element type of the array
29936 - If the type is a typed list, use the type
29937 - If the list contains an Item property that is not an object, use
29939 - use the first element of the list if there are any elements in
29942 2005-04-17 Jackson Harper <jackson@ximian.oom>
29944 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
29945 click. This handles offsets for scrolling properly and reduces
29946 memory. Also fixed GetNode to not offset now that TopNode works
29948 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
29950 2005-04-17 Jackson Harper <jackson@ximian.com>
29952 * CursorConverter.cs: Initial implementation.
29954 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
29956 * ListControl.cs: work towards complex data binding support on ListControl
29957 * CurrencyManager.cs: work towards complex data binding support on ListControl
29958 * ListBox.cs: work towards complex data binding support on ListControl
29961 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
29963 * GridTableStylesCollection.cs: fixes name and constructor
29964 * DataGridTableStyle.cs: fixes
29965 * DataGridBoolColumn.cs: fixes names and constructors
29966 * DataGrid.cs: define methods and properties. Some init implementations
29967 * DataGridCell.cs: define methods and properties. Some init implementations
29968 * GridTablesFactory.cs: Define methods and properties
29970 2005-04-15 Geoff Norton <gnorton@customerdna.com>
29972 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
29973 graphics port changes. We still want the coordinates in global screen
29976 2005-04-14 Jackson Harper <jackson@ximian.com>
29978 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
29979 check plus minus or checkbox clicks unless those features are enabled.
29981 2005-04-14 Jackson Harper <jackson@ximian.com>
29983 * TreeView.cs: Add methods for setting the top and bottom visible
29984 nodes. TreeNode::EnsureVisible uses these methods.
29985 * TreeNode.cs: Implement EnsureVisible
29987 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
29989 * Form.cs: Pospone menu assignation if the window has not been created yet
29990 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
29993 2005-04-12 Jackson Harper <jackson@ximian.com>
29995 * TreeView.cs: Set the TopNode properly when scrolling
29996 occurs. This has the added benifit of reducing the amount of
29997 walking that needs to be done when drawing. Also removed an old
29999 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
30001 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
30003 * Timer.cs: fixes interval setting when the timer is already enabled
30005 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
30007 * FolderBrowserDialog.cs: First approach
30009 2005-04-09 Peter Bartok <pbartok@novell.com>
30011 * FolderBrowserDialog: Added
30013 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
30015 * LinkLabel.cs: move drawing code into the theme
30016 * ThemeWin32Classic.cs: drawing code and painting background bugfix
30017 * Theme.cs: define DrawLinkLabel method
30019 2005-04-05 Jackson Harper <jackson@ximian.com>
30021 * BindingContext.cs: Use weak references so these bad actors don't
30022 stay alive longer then they need to.
30024 2005-04-05 Jackson Harper <jackson@ximian.com>
30026 * ListControl.cs: Basic implementation of complex databinding.
30028 * ListBox.cs: Add calls to ListControl databinding methods.
30030 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
30033 - Don't change PopupButtonState to Normal when the
30034 PopupButton gets pressed several times.
30035 - Renamed ButtonPanel to PopupButtonPanel
30037 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
30039 * ColorDialog.cs: Use cached objects instead of creating them
30040 * LinkLabel.cs: Use cached objects instead of creating them
30041 * Splitter.cs: Use cached objects instead of creating them
30042 * FontDialog.cs: Use cached objects instead of creating them
30043 * PropertyGridView.cs: Use cached objects instead of creating them
30044 * MessageBox.cs: Use cached objects instead of creating them
30045 * FileDialog.cs: Use cached objects instead of creating them
30046 * ThemeWin32Classic.cs: Use cached objects instead of creating them
30047 * TreeView.cs: Use cached objects instead of creating them
30049 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
30051 * Control.cs: use Equals to compare the font since no == op
30052 * ScrollBar.cs: use Equals to compare the font since no == op
30054 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
30056 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
30058 2005-04-01 Jackson Harper <jackson@ximian.com>
30060 * Binding.cs: Implement IsBinding.
30061 * BindingManagerBase.cs:
30062 * PropertyManager.cs:
30063 * CurrencyManager.cs: Add IsSuspended property.
30065 2005-04-01 Jackson Harper <jackson@ximian.com>
30067 * Binding.cs: Had some IsAssignableFrom calls backwards.
30069 2005-04-01 Jackson Harper <jackson@ximian.com>
30071 * Binding.cs: Handle null data members when pulling data.
30072 * PropertyManager.cs: Handle the data member being a property that
30075 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
30077 * DataGridTextBoxColumn.cs: fixes signature
30078 * DataGrid.cs: calls right constructor
30080 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
30082 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
30083 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
30084 * GridTableStylesCollection.cs: implements GridTableStylesCollection
30085 * DataGridTableStyle.cs: implements DataGridTableStyle
30086 * DataGridBoolColumn.cs: implements DataGridBoolColumn
30087 * DataGridTextBox.cs: implements DataGridTextBox
30088 * DataGridColumnStyle.cs: implements DataGridColumnStyle
30090 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
30092 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
30094 2005-03-29 Peter Bartok <pbartok@novell.com>
30097 - Properly implemented CompanyName property
30098 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
30099 returns a path that includes CompanyName, ProductName and
30100 Version (fixes bug #70330)
30102 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
30104 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
30107 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
30109 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
30111 - Added ReadOnly CheckBox
30112 - Further refactoring: moved some code from Open-/SaveFileDialog
30115 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
30117 * OpenFileDialog.cs: Fixed CheckFileExists
30119 Moved FileView and DirComboBox outside FileDialog class.
30120 They can now be used outside FileDialog
30122 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
30124 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
30125 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
30127 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
30129 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30130 - Added missing CreatePrompt property in SaveDialog
30131 - Overall SaveDialog handling should be better now
30132 - Added non standard ShowHiddenFiles property
30133 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
30134 - Added InitialDirectory and RestoreDirectory support
30136 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
30138 * FileDialog.cs: Made dirComboBox usable
30140 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
30142 * FileDialog.cs: Added Filter support (case sensitiv)
30144 2005-03-24 Jackson Harper <jackson@ximian.com>
30146 * TabControl.cs: Need a couple more pixels for the lines.
30148 2005-03-23 Jackson Harper <jackson@ximian.com>
30150 * TabControl.cs: Give the tab page focus when it is selected.
30152 2005-03-23 Jackson Harper <jackson@ximian.com>
30154 * TabControl.cs: Account for the drawing of tabs borders when
30155 invalidating. If the slider was clicked dont do click detection on
30158 2005-03-23 Jackson Harper <jackson@ximian.com>
30160 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
30162 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
30164 * CategoryGridEntry.cs: Added
30165 * GridItem.cs: Added helper properties
30166 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
30167 * GridEntry.cs: Updated code for collection
30168 * PropertyGrid.cs: Cleaned up some formatting
30169 * PropertyGridView.cs: Added drop down functionality for enums.
30170 * GridItemCollection.cs: Added enumerator logic
30171 * PropertyGridEntry.cs: Added
30173 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30176 - Removed unnecessary commented code
30177 - Fixed handling for entering the filename manually in the combobox
30179 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30181 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
30183 2005-03-18 Peter Bartok <pbartok@novell.com>
30185 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
30186 them being touching the border
30188 2005-03-18 Peter Bartok <pbartok@novell.com>
30190 * TextControl.cs: Quick hack to center text better
30192 2005-03-18 Peter Bartok <pbartok@novell.com>
30195 - Don't throw NotImplemented exceptions, just print a notice once
30196 instead (requested by Miguel). This makes running existing SWF
30199 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
30200 - Added context menu trigger on right click
30201 * Panel.cs: Trigger invalidate on resize
30203 - Removed old double-buffer drawing
30204 - Added ResizeRedraw style to force proper update of statusbar
30206 - Removed debug output
30207 * ThemeWin32Classic.cs:
30208 - Fixed drawing of status bar, now draws Text property if there
30209 are no defined panels
30211 2005-03-18 Jackson Harper <jackson@ximian.com>
30213 * ImageList.cs: When the image stream is set pull all the images
30215 * ImageListStreamer.cs: Implement reading image list streams.
30217 2005-03-18 Peter Bartok <pbartok@novell.com>
30219 * ThemeWin32Classic.cs (DrawPictureBox):
30220 - Fixed calculations for centered drawing
30221 - Fixed drawing for normal mode, not scaling the image on normal
30223 2005-03-18 Peter Bartok <pbartok@novell.com>
30225 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
30228 - Made Open/Save button the accept button for FileDialog
30229 - Tied the cancel button to the IButtonControl cancel button
30230 - Save/Open now properly builds the pathname
30231 - Now handles user-entered text
30232 - Preventing crash on right-click if no item is selected
30233 - Fixed Text property, now uses contents of textbox
30234 - Fixed SelectedText property, now just returns the text part that
30235 is selected in the text box
30237 2005-03-18 Jackson Harper <jackson@ximian.com>
30239 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
30240 rect, make sure to de-adjust the interior rect after drawing the
30243 2005-03-18 Peter Bartok <pbartok@novell.com>
30245 * MenuAPI.cs: Remove menu *before* executing selected action to
30246 prevent the menu from 'hanging around'
30248 2005-03-17 Geoff Norton <gnorton@customerdna.com>
30250 * XplatUIOSX.cs: Implemented WorkingArea property
30252 2005-03-17 Peter Bartok <pbartok@novell.com>
30254 * XplatUIX11.cs: Fixed menu coord calculations
30255 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
30256 for calculating offsets
30258 2005-03-17 Peter Bartok <pbartok@novell.com>
30260 * Hwnd.cs: Do not consider menu presence for default client
30261 rectangle location/size
30262 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30263 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
30264 translation functions
30265 * FileDialog.cs: Fixed (what I presume is a) typo
30267 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
30269 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
30270 X access (avoids X-Async errors)
30272 2005-03-16 Jackson Harper <jackson@ximian.com>
30274 * TabControl.cs: Raise the SelectedIndexChanged event.
30276 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
30278 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30279 - Removed vertical ToolBar and replaced it with a custom panel
30280 (desktop and home button already work)
30281 - Added Help button (some controls get resized or relocated then)
30282 - Draw correct text depending on Open or Save.
30283 - Fixed some typos...
30285 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
30288 - Only change Maximum and Minimum when need it (bug fix)
30290 2005-03-15 Peter Bartok <pbartok@novell.com>
30292 * Form.cs: Use Handle for icon, to trigger creation if
30293 the window does not yet exist
30295 - CanSelect: Slight performance improvement
30296 - Focus(): Preventing possible recursion
30297 - Invalidate(): Removed ControlStyle based clear flag setting
30298 - WM_PAINT: fixed logic for calling OnPaintBackground
30299 - WM_ERASEBKGND: Fixed logic, added call to new driver method
30300 EraseWindowBackground if the control doesn't paint background
30302 - Moved EraseWindowBackground() method to internal methods
30303 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
30304 is sent via SendMessage on BeginPaint call on Win32
30306 - Added EraseWindowBackground() method
30307 - No longer sends WM_ERASEBKGND on .Expose, but on call to
30308 PaintEventStart, which more closely matches Win32 behaviour
30309 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
30310 - Fixed SetFocus() to properly deal with client and whole windows
30311 * Hwnd.cs: Added ErasePending property
30312 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
30313 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
30315 2005-03-12 Geoff Norton <gnorton@customerdna.com>
30318 - Fix hard loop when timers exist.
30319 - Fix bugs with middle and right click for 3 button mice.
30321 2005-03-11 Peter Bartok <pbartok@novell.com>
30324 - get_WorkingArea: Need to call X directly, GetWindowPos only
30325 returns cached data now
30326 - Added sanity check to GetWindowPos hwnd usage
30328 2005-03-11 Jackson Harper <jackson@ximian.com>
30330 * BindingManagerBase.cs: This method isn't used anymore as
30331 PullData now updates the data in the control.
30333 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
30335 * Form.cs: fixes menu drawing on X11
30336 * MenuAPI.cs: fixes menu drawing on X11
30338 2005-03-11 Peter Bartok <pbartok@novell.com>
30340 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
30341 from Jonathan Gilbert; should fix bug #73606
30342 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
30343 in Screen coordinates. Thanks, Jordi.
30344 * Form.cs: Added missing attribute
30346 2005-03-11 Peter Bartok <pbartok@novell.com>
30349 - Rudimentary Mdi support
30350 - Removed outdated FormParent code
30351 - Implemented lots of missing properties and methods, still missing
30352 transparency support
30353 - Added missing attributes
30354 - Implemented support for MaximumBounds
30355 - Added firing of various events
30356 * XplatUI.cs: Added SetIcon() method
30357 * XplatUIDriver.cs: Added SetIcon() abstract
30358 * XplatUIOSX.cs: Stubbed out SetIcon() method
30360 - Implemented SetIcon() support
30361 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
30362 - Switched to unix line endings
30364 - Made POINT internal so for can access it as part of MINMAX
30365 - Implemented SetIcon() support
30366 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
30367 native Mdi support again, might have to go managed)
30368 * Control.cs: Now fires the StyleChanged event
30369 * MdiClient.cs: Added; still mostly empty
30371 2005-03-10 Peter Bartok <pbartok@novell.com>
30373 * SaveFileDialog.cs: Added emtpy file
30375 2005-03-08 Peter Bartok <pbartok@novell.com>
30377 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
30378 in turn triggers OnCreateContro) when creating a handle for the
30380 * TextControl.cs: Fixed endless loop in certain cases when
30381 replacing the current selection
30383 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
30386 - Honors NewValue changes in Scroll events allowing apps to change it
30387 - Adds First and Last Scroll events
30388 - Fixes Thumb events
30390 2005-03-07 Peter Bartok <pbartok@novell.com>
30392 * Hwnd.cs: Added DefaultClientRectangle property
30393 * XplatUI.cs: Now using the X11 driver Where() method, which provides
30394 more detailed debug information
30396 - Fixed size-change feedback loop, where we would pull an old size
30397 off the queue and mistakenly change our window's size to an
30399 - Now compressing ConfigureNotify events, to reduce looping and
30401 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
30404 2005-03-07 Jackson Harper <jackson@ximian.com>
30406 * Binding.cs: Push data pushes from data -> property. Check if the
30407 property is readonly when attempting to set it.
30409 2005-03-07 Jackson Harper <jackson@ximian.com>
30411 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
30412 instead of IsSubclassOf. Pulling data now sets the value on the
30414 * PropertyManager.cs:
30415 * CurrencyManager.cs: Just need to pull data when updating now,
30416 because PullData will set the value on the control.
30418 2005-03-04 Jackson Harper <jackson@ximian.com>
30420 * Binding.cs: Implement data type parsing and converting on pulled
30421 data. TODO: Are there more ways the data can be converted?
30423 2005-03-04 Jackson Harper <jackson@ximian.com>
30425 * Binding.cs: Support <Property>IsNull checks. Also bind to the
30426 controls Validating method so we can repull the data when the
30427 control loses focus.
30429 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
30432 - Fixes null string format
30435 - Adds enum type checks
30436 - Fixes redrawing and recalc need after changing some properties
30437 - Fixes on focus_item set after the event
30438 - Fixes adding columns after the control has been created
30440 * ThemeWin32Classic.cs:
30441 - Fixes CheckBox focus rectangle
30442 - Fixes ColumnHeader drawing
30445 2005-03-03 Jackson Harper <jackson@ximian.com>
30447 * Binding.cs: Bind to <Property>Changed events so we can detect
30448 when properties are changed and update the data.
30450 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
30453 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
30454 - Fixes ImageList constructor with ImageList container
30455 - Fixes image scaling (wrong parameters at DrawImage)
30457 2005-02-02 Jackson Harper <jackson@ximian.com>
30459 * Binding.cs: Make property searches case-insensitive. Eliminate
30460 some duplicated code.
30462 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
30465 - Handle focus event
30466 - Fix scrollbar events
30467 - Discard highlighted item if remove it
30468 - Fixes SelectedItem with strings
30470 2005-03-01 Peter Bartok <pbartok@novell.com>
30473 - Fixed Visible property, now follows (once again) parent chain
30474 to return false if any control in the chain is visible=false
30475 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
30476 - Fixed several places where is_visible instead of Visible was used
30477 - Implemented FIXME related to focus selection when setting focused
30478 control to be invisible
30480 * XplatUIWin32.cs: Now using proper method to find out if window is
30481 visible. Thanks to Jordi for pointing it out
30483 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
30485 * ComboBox.cs: show/hide scrollbar instead of creating it
30487 2005-02-27 Jackson Harper <jackson@ximian.com>
30489 * CurrencyManager.cs: Add PositionChanged stuff.
30491 2005-02-27 Peter Bartok <pbartok@novell.com>
30493 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
30494 * XplatUIOSX.cs: Added GetMenuOrigin() stub
30495 * XplatUIWin32.cs: Implemented GetMenuOrigin()
30497 - Implemented GetMenuDC()
30498 - Implemented GetMenuOrigin()
30499 - Implemented ReleaseMenuDC()
30500 - Implemented generation of WM_NCPAINT message
30501 - Implemented generation and handling of WM_NCCALCSIZE message
30502 * Form.cs: Added debug helper message for Jordi's menu work
30504 - Modified ClientRect property; added setter, fixed getter to handle
30505 setting of ClientRect
30506 - Added MenuOrigin property
30508 2005-02-26 Peter Bartok <pbartok@novell.com>
30511 - Destroys the caret if a window that's being destroyed contains it
30512 - Ignores expose events coming from the X11 queue for windows that
30513 already are destroyed
30514 - Now uses the proper variable for handling DestroyNotify, before we
30515 marked the wrong window as destroyed
30516 - Improved/added some debug output
30518 2005-02-26 Peter Bartok <pbartok@novell.com>
30520 * X11Keyboard.cs: Fixes to work on 64bit systems
30522 2005-02-26 Peter Bartok <pbartok@novell.com>
30525 - Now calling OnHandleDestroyed from DestroyHandle()
30526 instead of Dispose()
30527 - Removed bogus call to controls.Remove() from DestroyHandle()
30529 2005-02-26 Peter Bartok <pbartok@novell.com>
30531 * Control.cs: Properly destroy child windows when our handle is
30534 2005-02-25 Peter Bartok <pbartok@novell.com>
30537 - Added 'DriverDebug' define to allow tracing XplatUI API calls
30538 - Alphabetized Static Methods and Subclasses
30541 - Added XException class to allow custom handling of X11 exceptions
30542 - Created custom X11 error handler, tied into XException class
30543 - Added support for MONO_XEXCEPTIONS env var to allow the user
30544 to either throw an exception on X errors or continue running
30545 after displaying the error
30546 - Added handling of DestroyNotify message
30547 - Added handler for CreateNotify message (still disabled)
30548 - Improved (tried to at least) Where method to provide file and lineno
30550 - Added XErrorHandler delegate
30551 - Added XRequest enumeration (to suppor translation of errors)
30553 2005-02-25 Jackson Harper <jackson@ximian.com>
30555 * PropertyManager.cs: Implement editing features
30556 * CurrencyManager.cs:
30557 * Binding.cs: First attempt at UpdateIsBinding
30558 * BindingManagerBase.cs: Call UpdateIsBinding before
30559 pushing/pulling data.
30561 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
30563 * MenuAPI.cs: Respect disabled items
30564 * ThemeWin32Classic.cs
30565 - Caches ImageAttributes creation for DrawImageDisabled
30566 - Fixes vertical menu line drawing
30567 - Draws disabled arrows in disable menu items
30569 2005-02-24 Peter Bartok <pbartok@novell.com>
30572 - Added UserData property to allow associating arbitrary objects
30574 - Fixed leak; now removing Hwnd references from static windows array
30576 - Fixed Graphics leak in PaintEventEnd
30577 - Removed usage of HandleData, switched over to Hwnd class
30578 * HandleData.cs: Removed, obsoleted by Hwnd.cs
30580 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
30582 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
30583 * ScrollBar.cs: Fixes bug
30584 * TrackBar.cs: removes death code, clipping, mimize refreshes,
30585 keyboard navigation enhancements
30587 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
30589 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
30590 * GroupBox.cs: Add control styles
30591 * Label.cs: Add control styles
30592 * UpDownBase.cs: Add control styles
30593 * ListBox.cs: Add control styles
30594 * XplatUIWin32.cs: Fixes wrong parameter order
30597 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
30599 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
30601 2005-02-23 Jackson Harper <jackson@ximian.com>
30603 * PropertyManager.cs: Implement property binding. This doesn't
30604 seem to work yet though as (I think) there are some bugs in
30605 System.ComponentModel.PropertyDescriptor.
30606 * BindingContext.cs: Use new PropertyManager constructor.
30608 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
30610 * ProgressBar.cs: use clip region in ProgressBar
30611 * ThemeWin32Classic.cs: use clip region in ProgressBar
30613 2004-02-22 Jackson Harper <jackson@ximian.com>
30615 * BindingsCollection.cs: Remove some debug code.
30617 2005-02-22 Jackson Harper <jackson@ximian.com>
30619 * BindingContext.cs:
30620 * ControlBindingsCollection.cs:
30621 * CurrencyManager.cs:
30623 * BindingManagerBase.cs: Initial implementation
30624 * BindingsCollection.cs: Add an internal contains method that the
30625 BindingManagerBase uses to ensure bindings aren't added twice to
30627 * PropertyManager.cs: Stubbed out.
30629 * ContainerControl.cs: Hook up databinding
30631 2005-02-22 Geoff Norton <gnorton@customerdna.com>
30634 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
30635 Fixed Invalidate/Update chain.
30636 Fixed tons of other minor bugs (this is almost a complete rewrite).
30638 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
30640 * ComboBox.cs: do subcontrol creation when the control is created
30642 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30644 * Label.cs: fixes image drawing (image and imagelist)
30645 * ThemeWin32Classic.cs: cache brushes
30647 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30649 * Form.cs: Move menu drawing code to Theme class
30650 * ComboBox.cs: Move ComboBox drawing code to Theme class
30651 * MenuItem.cs: Move menu drawing code to Theme class
30652 * MenuAPI.cs: Move menu drawing code to Theme class
30653 * ThemeWin32Classic.cs: New methods
30654 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
30655 * ListBox.cs: Move Listbox drawing code to Theme class
30656 * Theme.cs: New methods
30658 2005-02-20 Peter Bartok <pbartok@novell.com>
30661 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
30662 only process mnemonics on those)
30663 - Fixed event sequence for key handling; first calling
30664 ProcessKeyEventArgs now
30666 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
30667 for processing non-character keys
30668 - Fixed WM_CHAR to generate proper event sequence before processing
30669 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
30672 2005-02-19 Peter Bartok <pbartok@novell.com>
30674 * UserControl.cs: Added TextChanged event; added attributes
30675 * SizeGrip.cs: Implemented resizing and optional display of grip
30676 * Form.cs: Fixed attribute
30677 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30678 Changed meaning of ScrollWindow bool argument; instead of the
30679 clear attribute (which will be true usually anyway), it gives the
30680 option of moving child controls as well.
30682 - Changed to match new ScrollWindow argument
30683 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
30684 now handles the implicit parent window a WM puts around us
30685 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
30687 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
30688 * TreeView.cs: Adjusted to new ScrollWindow arguments
30690 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30692 * Form.cs: Menu integration with non-client area
30693 * MenuItem.cs: Menu integration with non-client area
30694 * MenuAPI.cs: Menu integration with non-client area
30696 2005-02-18 Peter Bartok <pbartok@novell.com>
30698 * MethodInvoker.cs: Added
30699 * MdiLayout.cs: Added
30700 * SendKeys.cs: Started implementation
30701 * ErrorIconAlignment.cs: Added
30703 2005-02-18 Peter Bartok <pbartok@novell.com>
30705 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
30706 * Form.cs: Added handling for Menu-related Non-client messages
30708 2005-02-17 Peter Bartok <pbartok@novell.com>
30710 * UpDownBase.cs: Fixed typo, compilation errors
30711 * DomainUpDown.cs: Fixed attribute value
30713 2005-02-16 Miguel de Icaza <miguel@novell.com>
30715 * UpDownBase.cs: Attach entry events.
30717 Add ForeColor property, Focused, InterceptArrowKeys (interception
30718 does not work yet).
30720 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
30723 - Redraw non client are on Setmenu
30724 - Calc proper menu starting point
30726 2005-02-17 Peter Bartok <pbartok@novell.com>
30728 * Application.cs: Fixed message_filter check
30730 2005-02-17 Peter Bartok <pbartok@novell.com>
30732 * Application.cs: Now calls registered message filters
30733 * DockStyle.cs: Fixed attribute
30734 * Form.cs: Fixed attribute
30735 * Menu.cs: Fixed attribute
30736 * ToolTip.cs: Fixed attribute
30737 * TreeNode.cs: Added missing attributes and arranged in regions
30738 * PropertyGrid.cs: Fixed signatures
30739 * TreeNodeCollection.cs: Added attributes
30740 * Splitter.cs: Added missing attributes; arranged into regions
30741 * TabPage.cs: Added missing attributes; arranged into regions
30742 * TextBoxBase.cs: Added missing attributes
30743 * TextBox.cs: Added missing attributes
30744 * ArrangeDirection.cs: Added missing attributes
30745 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
30746 * ToolBarButton.cs: Fixed attributes
30747 * AnchorStyles.cs: Fixed attribute
30748 * TrackBar.cs: Fixed attributes
30749 * TabControl.cs: Added missing attributes and arranged into regions
30750 * ToolBar.cs: Fixed attribute
30751 * StatusBar.cs: Fixed signature, organized into regions and added
30753 * StatusBarPanel.cs: Fixed attributes
30754 * ContentsResizedEventArgs.cs: Implemented
30755 * ContentsResizedEventHandler.cs: Implemented
30756 * DateBoldEventArgs.cs: Implemented
30757 * DateBoldEventHandler.cs: Implemented
30758 * UpDownEventArgs.cs: Implemented
30759 * UpDownEventHandler.cs: Implemented
30761 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
30763 * Form.cs: first Menu NC refactoring
30764 * MenuAPI.cs: first Menu NC refactoring
30766 2005-02-16 Peter Bartok <pbartok@novell.com>
30768 * ImeMode.cs: Added missing attributes
30769 * Menu.cs: Fixed attribute
30770 * GroupBox.cs: Fixed attribute
30771 * Label.cs: Fixed attribute
30772 * ColorDialog.cs (RunDialog): Removed TODO attribute
30773 * ComboBox.cs: Fixed attributes
30774 * ListControl.cs: Added missing attributes
30775 * PropertyGrid.cs: Fixed attributes
30776 * Control.cs: Fixed attributes
30777 * ListViewItem.cs: Added TypeConverter attribute
30778 * NotifyIcon.cs: Fixed attributes
30779 * ListView.cs: Fixed attributes
30780 * ButtonBase.cs: Fixed attribute
30781 * ImageList.cs: Added missing attributes
30782 * ContainerControl.cs: Fixed signature
30783 * CheckedListBox.cs: Fixed attribute; added missing attributes
30784 * Panel.cs: Fixed attributes
30785 * PropertyTabChangedEventArgs.cs: Added missing attribute
30786 * PropertyValueChangedEventArgs.cs: Added missing attribute
30787 * Binding.cs: Fixed attribute
30788 * ListViewItemConverter: Implemented ListViewSubItemConverter class
30789 * ListBox.cs: Fixed attribute; added missing attributes;
30790 * ScrollableControl.cs: Added missing attributes
30791 * PictureBox.cs: Added missing attributes; implemented missing property
30792 * DateTimePicker.cs: Added missing attributes
30793 * Theme.cs (ToolWindowCaptionHeight): Fixed type
30794 * MonthCalendar.cs: Fixed attributes
30795 * StatusBarPanel.cs: Added missing attributes
30796 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
30798 2005-02-16 Peter Bartok <pbartok@novell.com>
30800 * TextBoxBase.cs: The previous method to enforce height yet remember
30801 the requested high was less than ideal, this is an attempt to do
30803 * Control.cs: Added comment about possible problem
30804 * Copyright: Updated format
30805 * GridItemType.cs: Fixed swapped values
30807 2005-02-15 Jackson Harper <jackson@ximian.com>
30809 * BaseCollection.cs: Use property so we never access an
30810 uninitialized list. Also initialize the list in the property.
30812 2005-02-15 Peter Bartok <pbartok@novell.com>
30814 * GroupBox.cs (ProcessMnemonic): Implemented
30815 * Label.cs (ProcessMnemonic): Implemented
30816 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
30819 2005-02-15 Peter Bartok <pbartok@novell.com>
30821 * RadioButton.cs (ProcessMnemonic): Implemented
30822 * CheckBox.cs (ProcessMnemonic): Implemented
30824 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
30826 - Added internal method to allow calling ProcessMnemonic from other
30828 * ContainerControl.cs:
30829 - Started support for handling validation chain handling
30830 - Implemented ProcessMnemonic support
30831 - Added Select() call to Active, to make sure the active control
30833 * Form.cs: Setting toplevel flag for Forms (this was lost in the
30834 FormParent rewrite)
30835 * ThemeWin32Classic.cs:
30836 - DrawCheckBox(): Fixed stringformat to show hotkeys
30837 - DrawRadioButton(): Fixed stringformat to show hotkeys
30838 * CommonDialog.cs: Removed WndProc override, not needed
30840 2005-02-14 Peter Bartok <pbartok@novell.com>
30842 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
30843 missed those in the rewrite
30845 2005-02-14 Miguel de Icaza <miguel@novell.com>
30847 * NumericUpDown.cs (Increment, ToString): Add.
30848 (DecimalPlaces): implement.
30852 * UpDownBase.cs: Add the designer attributes.
30854 2005-02-13 Peter Bartok <pbartok@novell.com>
30856 * Panel.cs: Removed border_style, now in Control
30857 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
30858 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
30860 2005-02-13 Peter Bartok <pbartok@novell.com>
30862 * MouseButtons.cs: Added missing attributes
30863 * XplatUIStructs.cs: Added enumeration for title styles
30864 * LeftRightAlignment.cs: Added missing attributes
30865 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
30866 it compatible with Graphics.FromHwnd()
30867 * SelectedGridItemChangedEventArgs.cs: Fixed property type
30868 * Keys.cs: Added missing attributes
30869 * SelectionRange.cs: Added missing attributes
30870 * SelectionRangeConverter.cs: Added
30872 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
30873 ReleaseMenuDC methods
30874 - Renamed ReleaseWindow to UngrabWindow
30875 - Added proper startup notice to allow version identification
30877 - Added missing attributes
30878 - Removed FormParent concept
30879 * Label.cs: Removed border_style field, now in Control
30880 * RadioButton.cs: Now properly selects RadioButton when focus is
30882 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
30884 - Added missing attributes
30885 - Added borderstyle handling
30886 - Removed FormParent concept support
30887 - Fixed calls to XplatUI to match changed APIs
30888 - Fixed bug that would case us to use disposed Graphics objects
30889 - Removed unneeded internal methods
30890 - PerformLayout(): Fixed to handle DockStyle.Fill properly
30891 - SelectNextControl(): Fixed to properly check common parents
30892 * TextBoxBase.cs: Removed border_style field (now in Control)
30894 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
30895 fixed calculations for form size
30896 - Added support for localized strings and icons
30897 - Improved form size calculations, added border
30898 * ListView.cs: Removed border_style field (now in Control)
30899 * X11Structs.cs: Moved several structs from X11 driver here
30900 * X11Keyboard.cs: Changed debug message
30901 * Application.cs: Removed FormParent concept support
30903 - Resetting end_modal flag
30904 - Removed FormParent concept support
30905 * NativeWindow.cs: Removed FormParent concept support
30906 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
30907 Client area and Non-Client whole window to allow support for WM_NC
30909 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
30910 prevent using it until it supports Hwnd as per Geoff Norton's request
30911 * ToolBar.cs: Fixed drawing, was not doing proper drawing
30912 * PictureBox.cs: Removed border_style field, now in Control
30913 * XplatUIWin32.cs: Added new driver methods
30915 2005-02-12 Peter Bartok <pbartok@novell.com>
30917 * OpacityConverter.cs: Implemented
30918 * Hwnd.cs: Internal class to support drivers that need to emulate
30919 client area/non-client area window behaviour
30921 2005-02-11 Peter Bartok <pbartok@novell.com>
30923 * KeysConverter.cs: Implemented
30925 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
30927 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
30928 * LinkLabel: Added missing attributes
30929 * MainMenu.cs: fixes ToString
30930 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
30931 * ListBox.cs: fixes event position
30932 * TrackBar.cs: adds missing attributes and events
30934 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
30936 * MenuItem.cs: Use SystemInformation and bug fixes
30937 * MenuAPI.cs: Use SystemInformation and bug fixes
30939 2005-02-09 Jackson Harper <jackson@ximian.com>
30941 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
30942 their keystate otherwise things like VK_MENU get stuck "on".
30944 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
30946 * ListBox.cs: Fixes AddRange bug
30948 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
30951 - Add missing attributes
30952 - Add missing method
30954 * CheckedListBox.cs: Added missing attributes
30955 - Add missing attributes
30956 - Remove extra method
30958 * ComboBox.cs: Added missing attributes
30959 * VScrollBar.cs: Added missing attributes
30960 * ScrollBar.cs: Added missing attributes
30961 * ListBox.cs: Fixes signature, add missing consts
30962 * LinkArea.cs: Added missing attributes
30965 2005-02-08 Peter Bartok <pbartok@novell.com>
30967 * Menu.cs: Added missing attributes
30968 * MainMenu.cs: Added missing attributes
30969 * GroupBox.cs: Added missing attributes
30970 * Label.cs: Added missing attributes
30971 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
30973 - Added Instance and Options properties
30974 - Added missing attributes
30975 * Cursor.cs: Made Serializable
30976 * NotifyIcon: Added missing attributes
30977 * MenuItem.cs: Added missing attributes
30978 * TextBoxBase.cs: Implemented AppendText() and Select() methods
30979 * Panel.cs: Added Missing attributes
30980 * MonthCalendar.cs: Fixed CreateParams
30982 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
30986 - Fixes issues with links
30987 - Adds the class attributes
30989 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
30992 - Fixes button when no items available in dropdown
30993 - Fixes repainting problems
30994 - Adds the class attributes
30996 2005-02-07 Geoff Norton <gnorton@customerdna.com>
30998 * XplatUIOSX.cs: Detect the menu bar and title bar height from
30999 the current theme. Cache these on startup.
31001 2005-02-07 Jackson Harper <jackson@ximian.com>
31003 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
31004 the scrollbar buttons when they are depressed.
31006 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31008 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
31009 Get the display size from the main displayid. We currently dont
31010 support multiple display configurations.
31012 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31014 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
31016 2005-02-07 Miguel de Icaza <miguel@novell.com>
31018 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
31020 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
31022 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
31024 2005-02-04 Jackson Harper <jackson@ximian.com>
31026 * ThemeWin32Classic.cs: Respect the clipping rect when
31027 drawing. Only fill the intersection of clips and rects so there
31028 isn't a lot of large fills.
31029 * ScrollBar.cs: Pass the correct clipping rect to the theme
31030 engine. Remove some debug code.
31032 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
31034 * DateTimePicker.cs:
31035 - Fixed crash on DateTime.Parse, use Constructor instead
31037 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
31041 - Owner draw support (MeasureItem and DrawItem)
31043 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
31046 - Implements FindMergePosition and MergeMenu functions (very poor documented)
31047 - Fixes MenuItems.Add range
31049 - MergeMenu and Clone and CloneMenu functions
31051 2005-02-03 Jackson Harper <jackson@ximian.com>
31053 * ScrollBar.cs: Make abstract
31054 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
31057 2005-02-03 Jackson Harper <jackson@ximian.com>
31059 * ScrollBar.cs: First part of my scrollbar fixups. This removes
31060 all the unneeded refreshes and uses invalidates with properly
31063 2005-02-03 Peter Bartok <pbartok@novell.com>
31065 * ComponentModel.cs: Added
31066 * IDataGridEditingService.cs: Added
31067 * Timer.cs: Added missing attributes
31068 * ToolTip.cs: Added missing attributes
31070 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
31072 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
31074 2005-02-03 Peter Bartok <pbartok@novell.com>
31076 * ListBox.cs: Added missing attributes
31078 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
31081 - Fixes font height after font change
31082 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
31084 2005-02-02 Peter Bartok <pbartok@novell.com>
31086 * HandleData.cs: Introduced static methods to allow class
31087 to be more self-contained and track it's own HandleData objects
31088 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
31089 HandleData to use new static methods
31091 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
31094 - Fixes default size and PreferredHeight
31096 - ObjectCollection.Insert implementation
31102 - ObjectCollection.Insert implementation
31103 - No selection after clean
31106 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31108 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
31110 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
31113 - Caches ItemHeight calculation for OwnerDrawVariable
31114 - Handles dropdown properly
31115 - Fixes several minor bugs
31117 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
31120 - Fixes 71946 and 71950
31121 - Fixes changing Multicolumn on the fly
31122 - Fixes keyboard navigation on Multicolumn listboxes
31124 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31126 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
31127 crash reporter log.
31129 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31131 * XplatUIOSX.cs: Allow applications to actually exit.
31133 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31135 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
31136 their parent at creation time rather than lazily later. Fixes a major
31137 regression we were experiencing.
31139 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31141 * ThemeWin32Classic.cs: more date time picker painting fixes
31142 * DateTimePicker.cs: more monthcalendar drop down fixes
31143 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
31145 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
31148 - When moving the thumb going outside the control should stop the moving
31149 - Adds the firing of missing events
31150 - Fixes no button show if Size is not specified
31151 - End / Home keys for keyboard navigation
31153 2005-01-30 Peter Bartok <pbartok@novell.com>
31155 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
31156 sanity check to prevent theoretical loop
31157 * XplatUIWin32.cs (SetVisible): Removed debug output
31158 * XplatUIX11.cs (SystrayChange): Added sanity check
31159 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
31160 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
31161 behaviour, valid until the X11 client window rewrite is done
31162 * TextBox.cs (ctor): Setting proper default foreground and background
31165 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
31167 * Theme: Added DrawDateTimePicker to interface
31168 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
31169 * DateTimePicker.cs: Created (still needs keys and painting code)
31170 * DateTimePickerFormat.cs: added
31171 * MonthCalendar.cs: fixed CreateParams for popup window mode
31173 2005-01-29 Peter Bartok <pbartok@novell.com>
31175 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
31176 this should also the calculations for ligher/darker
31177 * Theme.cs: Fixed defaults for ScrollBar widths/heights
31179 2005-01-29 Peter Bartok <pbartok@novell.com>
31181 * ArrangeDirection.cs: Added
31182 * ArrangeStartingPositon.cs: Added
31183 * SystemInformation.cs: Implemented
31184 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31185 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
31186 used by SystemInformation class
31187 * X11Strucs.cs: Added XSizeHints structure
31189 - Fixed CreateParams to make sure the menu window is always visible
31190 - TrackPopupMenu: Added check to make sure we don't draw the
31193 2005-01-29 Peter Bartok <pbartok@novell.com>
31195 * HandleData.cs: Added method for altering invalid area
31196 * TextBoxBase.cs: Implemented TextLength
31198 2005-01-28 Peter Bartok <pbartok@novell.com>
31200 * XplatUIX11.cs: Improvement over last patch, not sending
31201 the WM_PAINT directly anymore, instead we scroll any pending
31202 exposed areas and let the system pick out the WM_PAINT later
31204 2005-01-28 Peter Bartok <pbartok@novell.com>
31206 * SWF.csproj: Deleted, no longer used. Instead,
31207 Managed.Windows.Forms/SWF.csproj should be used
31208 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
31209 directly, to avoid a potential race condition with the next
31212 2005-01-28 Peter Bartok <pbartok@novell.com>
31214 * XplatUI.cs: Made class internal
31216 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
31218 * CheckedListBox.cs:
31221 - Missing methods and events
31223 2005-01-27 Peter Bartok <pbartok@novell.com>
31225 * Application.cs (Run): Don't use form if we don't have one
31227 2005-01-27 Peter Bartok <pbartok@novell.com>
31229 * TextBoxBase.cs (get_Lines): Fixed index off by one error
31231 2005-01-27 Peter Bartok <pbartok@novell.com>
31233 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
31234 * GridItem.cs: Added; Patch by Jonathan S. Chambers
31235 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
31236 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
31237 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
31238 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
31239 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31240 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31241 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31242 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31243 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31244 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31246 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31249 - Draw focus on Simple Combobox
31250 - Fixes drawing issues
31253 2005-01-27 Peter Bartok <pbartok@novell.com>
31256 - Place window in default location, instead of hardcoded 0/0
31257 - Send initial LocationChanged event
31259 - UpdateBounds after creation to find out where the WM placed us
31260 - Make sure that if the ParentForm changes location the Form
31262 * XplatUIX11.cs: XGetGeometry will not return the coords relative
31263 to the root, but to whatever the WM placed around us.
31264 Translate to root coordinates before returning toplevel
31266 * XplatUIWin32.cs: Removed debug output
31267 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
31268 flag to GetWindowPos, to allow translation of coordinates on X11
31270 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31272 * ListBox.cs: connect LostFocus Event
31274 2005-01-27 Peter Bartok <pbartok@novell.com>
31276 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31277 XplatUIX11.cs: Extended the Systray API
31278 * Form.cs: Removed debug output
31279 * Application.cs: Fixed focus assignment, always need to call
31280 XplatUI.Activate() since Form.Activate() has rules that may
31282 * NotifyIcon.cs: Should be complete now
31283 * ToolTip.cs: Worked around possible timer bug
31285 2005-01-27 Jackson Harper <jackson@ximian.com>
31288 - Only invalidate the effected tabs when the
31289 selected index changes. This reduces drawing and gets rid of some
31291 - Only refresh if the tabs need to be shifted, otherwise only
31292 invalidate the slider button.
31293 - On windows the tabs are not filled to right if the slider is
31296 2005-01-27 Jackson Harper <jackson@ximian.com>
31298 * TabControl.cs: Only refresh on mouseup if we are showing the
31299 slider. Also only invalidate the button whose state has changed.
31301 2005-01-26 Peter Bartok <pbartok@novell.com>
31303 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
31304 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
31305 and SystrayRemove() methods
31306 * XplatUIOSX.cs: Stubbed Systray methods
31308 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
31310 - Fixed broken XChangeProperty calls (marshalling messed up things)
31311 * X11Structs.cs: Added enums and structs required for Size hinting
31312 * NotifyIcon.cs: Added & implemented
31314 2005-01-26 Jackson Harper <jackson@ximian.com>
31316 * TabControl.cs: Space vertically layed out tabs properly.
31318 2005-01-26 Peter Bartok <pbartok@novell.com>
31320 * Form.cs (CreateClientParams): Always set the location to 0,0
31321 since we're a child window.
31323 * Control.cs (SetVisibleCore): Always explicitly setting the location
31324 of a toplevel window, apparently X11 doesn't like to move windows
31325 while they're not mapped.
31327 2005-01-26 Jackson Harper <jackson@ximian.com>
31329 * TabControl.cs: Implement FillToRight size mode with vertically
31332 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31334 * ControlPaint.cs, ThemeWin32Classic.cs
31335 - Fixes DrawFocusRectangle
31337 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31340 - MenuBar tracking only starts when item is first clicked
31341 - Fixes menu hidding for multiple subitems
31342 - Unselect item in MenuBar when item Executed
31345 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
31348 - IsInputKey for ListBox
31351 - Shift and Control item selection
31352 - Implement SelectionMode.MultiExtended
31353 - Fixes RightToLeft
31355 - IsInputKey implemented
31356 - Do not generate OnTextChangedEdit on internal txt changes
31358 2005-01-23 Peter Bartok <pbartok@novell.com>
31360 * AccessibleObject.cs: Partially implemented Select()
31361 * MonthCalendar.cs: Added missing attributes and events
31362 * Form.cs: Fixed CreateParams behaviour, now controls derived from
31363 form can properly override CreateParams.
31364 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31365 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
31366 Control performs Invalidate & Update
31367 * NativeWindow (CreateHandle): Added special handling for Form
31368 and Form.FormParent classes to allow overriding of From.CreateParams
31370 - ControlNativeWindow: Renamed 'control' variable to more intuitive
31372 - ControlNativeWindow: Added Owner property
31373 - Removed usage of Refresh() on property changes, changed into
31374 Invalidate(), we need to wait until the queue is processed for
31375 updates, direct calls might cause problems if not all vars for
31376 Paint are initialized
31377 - Added call to UpdateStyles() when creating the window, to set any
31378 styles that CreateWindow might have ignored.
31379 - Added support for Form CreateParent overrides to UpdateStyles()
31380 * MessageBox.cs: Removed no longer needed FormParent override stuff,
31381 CreateParams are now properly overridable
31382 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
31383 CreateParams are now properly overridable
31385 2005-01-23 Miguel de Icaza <miguel@ximian.com>
31387 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
31390 Capture LostFocus and OnTextBoxChanged. The later introduces a
31391 recursive invocation that I have not figured out yet.
31393 Reset the timer when not using (it was accumulating).
31396 (OnTextBoxChanged): Set UserEdit to true here to track whether the
31397 user has made changes that require validation.
31399 Reset changing to avoid loops.
31401 2005-01-22 Miguel de Icaza <miguel@ximian.com>
31403 * NumericUpDown.cs: Display value at startup.
31405 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
31408 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
31409 filled in. Added some basic parsing of text.
31411 Still missing the OnXXX method overrides, and figuring out the
31412 events that must be emitted.
31414 * UpDownBase.cs: Handle UserEdit on the Text property.
31416 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
31419 - Fixes IntegralHeight
31422 2005-01-21 Jackson Harper <jackson@ximian.com>
31424 * TabControl.cs: Set the SelectedIndex property when SelectedTab
31425 is set so that the page visibility is updated and the tabs are
31428 2005-01-21 Jackson Harper <jackson@ximian.com>
31430 * TabControl.cs: Use cliping rectangle for blitting. Give the
31431 theme the clipping rect so we can do clipping while
31432 drawing. Remove some debug code.
31434 2005-01-21 Jackson Harper <jackson@ximian.com>
31436 * TabPage.cs: Add a new method so tab pages can force the tab
31437 control to recalculate the tab page sizes.
31438 * TabControl.cs: UpdateOwner needs to make the tab control recalc
31441 2005-01-20 Jackson Harper <jackson@ximian.com>
31443 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
31445 2005-01-20 Jackson Harper <jackson@ximian.com>
31447 * TreeView.cs: Set the bounds for nodes properly. They were
31448 getting screwed up when checkboxes were not enabled, but images
31451 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
31454 - Owner draw support
31457 2005-01-20 Jackson Harper <jackson@ximian.com>
31459 * XplatUIStructs.cs: More misc keys
31460 * X11Keyboard.cs: Ignore some control keys.
31462 2005-01-20 Jackson Harper <jackson@ximian.com>
31464 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
31465 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
31467 2005-01-19 Peter Bartok <pbartok@novell.com>
31469 * Control.cs: Un-selecting the control when it is loosing focus
31471 2005-01-19 Jackson Harper <jackson@ximian.com>
31473 * TreeView.cs: Hook up to the text controls leave event so we can
31474 end editing when the users clicks outside the text box.
31476 2005-01-19 Jackson Harper <jackson@ximian.com>
31478 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
31479 get set in the conversion array.
31481 2005-01-19 Peter Bartok <pbartok@novell.com>
31483 * Application.cs (ModalRun): Added a call to CreateControl to ensure
31484 focus is properly set
31486 - Added missing attributes
31487 - removed styles, those are already set in the base class
31489 - Added missing attributes
31490 - Added clip window styles
31491 * CheckBox.cs: Added missing attributes
31493 - FormParentWindow.CreateParams: Added required clip styles
31494 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
31495 also filters modifier keys
31497 - Added assignment of Accept and Cancel button to enable Enter
31498 and Esc keys in MessageBox dialogs
31499 - FormParentWindow.CreateParams: Added required clip styles
31500 * RadioButton.cs: Added missing attributes
31501 * TextControl.cs: No longer draws selection if control does not
31504 - Now draws simple rectangle around test area to make it obvious
31505 there's a control. This is a hack until we properly support borders
31506 - A few simple fixes to support selections better, now erases selected
31507 text when typing, and resets selection when using movement keys
31509 2005-01-19 Miguel de Icaza <miguel@ximian.com>
31511 * UpDownBase.cs: Added some new properties.
31513 * DomainUpDown.cs: Implement a lot to get my test working.
31515 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31517 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
31519 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31521 * OSXStructs (WindowAttributes): Fixed csc complaints
31523 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31526 OSXStructs.cs: Initial refactor to move enums and consts into
31527 OSXStructs and use them in the driver for greater readability.
31529 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31531 * XplatUIOSX.cs: Initial support for Standard Cursors.
31532 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
31534 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
31536 * ComboBox.cs: ability to change style when the ctrl is already
31537 created, missing methods and events, bug fixes, signature fixes
31539 2005-01-19 Peter Bartok <pbartok@novell.com>
31541 * Cursors.cs (ctor): Added ctor to fix signature
31543 2005-01-18 Peter Bartok <pbartok@novell.com>
31545 * Button.cs: Implemented DoubleClick event
31547 - Fixed keyboard handling to behave like MS, where the press of
31548 Spacebar is equivalent to a mousedown, and the key release is
31549 equivalent to mouseup. Now a spacebar push will give the same
31550 visual feedback like a mouse click.
31551 - Added missing attributes
31552 - Added ImeModeChanged event
31553 - Added support for generating DoubleClick event for derived classes
31555 - Implemented DoubleClick event
31556 - Added missing attributes
31557 * CommonDialog.cs: Added missing attribute
31558 * ContextMenu.cs: Added missing attributes
31560 - AutoChecked buttons do not allow to be unselected when clicked
31561 (otherwise we might end up with no selected buttons in a group)
31562 - Added missing attributes
31563 - Implemented DoubleClickEvent
31564 * ThreadExceptionDialog.cs: Enabled TextBox code
31566 2005-01-18 Peter Bartok <pbartok@novell.com>
31568 * Form.cs: Removed debug output
31569 * Button.cs: Added support for DoubleClick method
31571 2005-01-18 Peter Bartok <pbartok@novell.com>
31574 - Added method to parent window that allows triggering size
31575 calculations when a menu is added/removed
31576 - set_Menu: Cleaned up mess from early days of Form and Control,
31577 now properly triggers a recalc when a menu is added/removed
31578 - Added case to select form itself as focused form if no child
31580 - Added PerformLayout call when showing dialog, to ensure properly
31583 - Select(): Made internal so Form can access it
31584 - Focus(): Only call Xplat layer if required (avoids loop), and sets
31586 * Application.cs (Run): Removed hack and calls PerformLayout instead
31587 to trigger calculation when Form becomes visible
31589 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
31591 * ComboBox.cs: fixes for ownerdraw
31593 2005-01-18 Peter Bartok <pbartok@novell.com>
31596 - Sentinel is no longer static, each Document gets it's own, this
31597 avoids locking or alternatively overwrite problems when more
31598 than one text control is used simultaneously.
31599 - Switched to use Hilight and HilightText brushes for text selection
31601 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
31603 2005-01-18 Peter Bartok <pbartok@novell.com>
31606 - Hooked up the following events:
31614 o SystemColorsChanged
31615 o ParentFontChanged
31617 - Removed debug output
31618 - Added a call to the current theme's ResetDefaults when a color change
31620 * Form.cs: Now setting the proper ImeMode
31621 * Theme.cs: Defined a method to force recreation of cached resources
31622 and rereading of system defaults (ResetDefaults())
31623 * ThemeWin32Classic.cs: Added ResetDefaults() stub
31625 2005-01-17 Peter Bartok <pbartok@novell.com>
31627 * Control.cs: Added missing attributes
31629 2005-01-17 Jackson Harper <jackson@ximian.com>
31631 * TreeNode.cs: Implement editing. Add missing properties selected
31633 * TreeView.cs: Implement node editing. Also some fixes to use
31634 Invalidate (invalid area) instead of Refresh when selecting.
31636 2005-01-17 Peter Bartok <pbartok@novell.com>
31639 - Implemented InvokeGotFocus() method
31640 - Implemented InvokeLostFocus() method
31641 - Implemented InvokePaint() method
31642 - Implemented InvokePaintBackground() method
31643 - Implemented InvokeClick() method
31644 - Implemented FindForm() method
31645 - Implemented RectangleToClient() method
31646 - Implemented ClientToRectangle() method
31647 - Implemented ResetBackColor() method
31648 - Implemented ResetCursor() method
31649 - Implemented ResetFont() method
31650 - Implemented ResteForeColor() method
31651 - Implemented ResetImeMode() method
31652 - Implemented ResetLeftToRight() method
31653 - Implemented ResetText() method
31654 - Implemented Scale() methods
31655 - Implemented ScaleCore() method
31656 - Implemented Update() method
31657 - Removed unused variables
31658 - Stubbed AccessibilityNotifyClients and
31659 ControlAccessibleObject.NotifyClients() methods (dunno what to do
31661 - Now setting proper default for RightToLeft property
31662 - Fixed bug in SetClientSizeCore that would cause windows to get
31664 - Now sending Click/DoubleClick events
31665 - Now selecting controls when left mouse button is clicked on
31667 * AccessibleEvents.cs: Added
31668 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
31669 * XplatUIOSX.cs: Stubbed UpdateWindow() method
31670 * XplatUIWin32.cs: Implemented UpdateWindow() method
31671 * XplatUIX11.cs: Implemented UpdateWindow() method
31672 * Form.cs: Removed stray semicolon causing CS0162 warning
31673 * ThemeWin32Classic.cs: Fixed unused variable warnings
31674 * ScrollableControl.cs: Now calls base method for ScaleCore
31675 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
31676 style to avoid interference with internal click handler (which is
31677 different than standard Control click handling)
31679 - Now unchecks all sibling radio buttons when control is
31680 selected (Fixes #68756)
31681 - Removed internal tabstop variable, using the one inherited from
31684 2005-01-17 Jackson Harper <jackson@ximian.com>
31686 * NavigateEventArgs.cs: Fix base type.
31687 * LinkLabel.cs: Sig fix
31689 2005-01-17 Jackson Harper <jackson@ximian.com>
31691 * TreeView.cs: Only invalidate the effected nodes bounds when
31694 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31696 * XplatUIWin32.cs: fixes Win32 marshaling
31697 * XplatUIX11.cs: fixes method signature
31699 2005-01-17 Peter Bartok <pbartok@novell.com>
31701 * XplatUIX11.cs: Clean up resources when we no longer need them
31703 2005-01-17 Peter Bartok <pbartok@novell.com>
31705 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
31706 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
31707 and DestroyCursor() methods.
31708 * Cursor.cs: Partially implemented, now supports standard cursors;
31709 still contains some debug code
31710 * Cursors.cs: Implemented class
31712 - WndProc(): Added handling of WM_SETCURSOR message, setting the
31714 - Implemented Cursor property
31715 - Replaced break; with return; more straightforwar and possibly
31717 - Now properly setting the result for WM_HELP
31718 * X11Structs.cs: Added CursorFontShape enum
31719 * XplatUIStructs.cs:
31720 - Added StdCursor enum (to support DefineStdCursor() method)
31721 - Added HitTest enum (to support sending WM_SETCURSOR message)
31723 - Now sends the WM_SETCURSOR message
31724 - Implemented new cursor methods
31725 * XplatUIOSX.cs: Stubbed new cursor methods
31727 - Implemented new cursor methods
31728 - Added GetSystemMetrics function and associated enumeration
31730 2005-01-15 Peter Bartok <pbartok@novell.com>
31733 - WndProc(): Now handles EnableNotifyMessage
31734 - SelectNextControl(): Fixed bug where if no child or sibling
31735 controls exist we looped endlessly
31737 2005-01-14 Jackson Harper <jackson@ximian.com>
31739 * TreeView.cs: Recalculate the tab pages when a new one is added
31740 so that the proper bounding rects are created.
31742 2005-01-14 Jackson Harper <jackson@ximian.com>
31744 * TreeView.cs: Draw a gray box instead of a grip in the lower
31745 right hand corner when there are both horizontal and vertical
31748 2005-01-14 Jackson Harper <jackson@ximian.com>
31750 * Control.cs: When erasing backgrounds use FromHwnd instead of
31751 FromHdc when there is a NULL wparam. This occurs on the X driver.
31752 * XplatUIX11.cs: Set the wparam to NULL.
31754 2005-01-13 Jackson Harper <jackson@ximian.com>
31756 * PictureBox.cs: Implement missing methods (except ToString, need
31757 to test that on windows) and events. When visibility is changed we
31758 need to redraw the image because the buffers are killed. When size
31759 is changed refresh if the sizemode needs it.
31761 2005-01-13 Peter Bartok <pbartok@novell.com>
31763 * Control.cs (SelectNextControl): Was using wrong method to select
31766 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31768 * ComboBox.cs: fixes dropstyle
31770 2005-01-13 Peter Bartok <pbartok@novell.com>
31773 - Implemented Select() override
31774 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
31775 - Now sets keyboard focus on startup
31776 * Control.cs (SelectNextControl): Now properly handles directed=true
31778 - WndProc: Now passes tab key on to base if AcceptTabChar=false
31779 - Added (really bad) focus rectangle (mostly for testing)
31780 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
31781 to enforce redraw on focus changes
31782 * ContainerControl.cs:
31783 - Fixed detection of Shift-Tab key presses
31784 - Fixed traversal with arrow keys
31785 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
31786 gonna keep this or if it's complete yet
31788 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31790 * ComboBox.cs: missing properties, fixes
31792 2005-01-13 Peter Bartok <pbartok@novell.com>
31794 * Panel.cs (ctor): Setting Selectable window style to off
31795 * Splitter.cs (ctor): Setting Selectable window style to off
31796 * GroupBox.cs (ctor): Setting Selectable window style to off
31797 * Label.cs (ctor): Setting Selectable window style to off
31799 2005-01-12 Miguel de Icaza <miguel@ximian.com>
31801 * UpDownBase.cs (InitTimer): If the timer has been already
31802 created, enable it.
31804 Use a TextBox instead of a Label.
31806 2005-01-12 Jackson Harper <jackson@ximian.com>
31808 * TreeView.cs: Refresh the tree after sorting the nodes. Always
31809 draw the connecting node lines (when ShowLines is true).
31810 * TreeNode.cs: The nodes index can now be updated. This is used
31811 when a node collection is sorted.
31812 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
31813 insert or an existing unsorted node collection can be sorted.
31815 2005-01-12 Peter Bartok <pbartok@novell.com>
31817 * ContainerControl.cs: Implemented ProcessDialogKeys()
31819 2005-01-12 Peter Bartok <pbartok@novell.com>
31822 - Implemented SelectNextControl() method
31823 - Several focus related bug fixes
31824 - Fixed Docking calculations to match MS documentation and
31827 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
31829 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
31832 2005-01-12 Peter Bartok <pbartok@novell.com>
31835 - Fixed broken Contains() method
31836 - Implemented GetNextControl() method. Finally. This is the pre-
31837 requisite for focus handling.
31839 2005-01-12 Peter Bartok <pbartok@novell.com>
31841 * OSXStrucs.cs: Added
31843 2005-01-12 Peter Bartok <pbartok@novell.com>
31846 - Removed PeekMessageFlags
31847 - Implemented SetWindowStyle() method
31848 * XplatUIStructs.cs: Added PeekMessageFlags
31849 * X11Structs: Added missing border_width field to XWindowChanges struct
31851 - PeekMessage: Now throws exception if flags which are not yet
31852 supported are passed
31853 - Implemented SetWindowStyle() method
31854 - Fixed SetZOrder to handle AfterHwnd properly
31855 * XplatUI.cs: Added SetWindowStyle() method
31856 * XplatUIDriver.cs: Added SetWindowStyle() abstract
31858 - Implemented UpdateStyles() method
31859 - Implemented UpdateZOrder() method
31860 * XplatUIOSX.cs: Added SetWindowStyle() stub
31862 2005-01-12 Geoff Norton <gnorton@customerdna.com>
31864 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
31868 2005-01-11 Jackson Harper <jackson@ximian.com>
31870 * TreeView.cs: Still need to draw lines to siblings even if out of
31871 the current node is out of the clip.
31873 2005-01-11 Jackson Harper <jackson@ximian.com>
31875 * TreeView.cs: When setting the hbar/vbar/grip position use
31876 SetBounds so that perform layout is only called once. Also suspend
31877 and resume layout so layout is only done once for all controls.
31878 - Removed some debug fluff
31879 * SizeGrip.cs: Call base implmentation in overriding methods.
31880 - When visibility is changed the drawing buffers are killed so we
31883 2005-01-11 Jackson Harper <jackson@ximian.com>
31885 * TreeView.cs: Calculate the open node count while drawing. This
31886 saves us an entire tree traversal for every paint operation. Use
31887 a member var for the open node count so less vars are passed around.
31889 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
31891 * MonthCalendar.cs:
31892 - fixed selection to use mousemove, not mouse polling on timer
31893 * ThemeWin32Classic.cs
31894 - removed redundant unused variable "no_more_content"
31896 2005-01-11 Peter Bartok <pbartok@novell.com>
31898 * XplatUIX11.cs (DoEvents): Needs to return when no more events
31899 are pending, so it now calls PeekMessage instead of GetMessage;
31900 implemented a incomplete version of PeekMessage
31902 2005-01-11 Peter Bartok <pbartok@novell.com>
31904 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
31906 * TextBoxBase.cs: Added sending of TextChanged event
31908 2005-01-10 Jackson Harper <jackson@ximian.com>
31910 * TreeView.cs: Try not to draw outside the clipping rectangle on
31913 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
31915 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
31917 2005-01-10 Jackson Harper <jackson@ximian.com>
31920 - Implement fast scrolling. Now only the newly
31921 exposed nodes are drawn and the old image is moved using the
31922 XplatUI::ScrollWindow method.
31923 - Factor in height of nodes when calculating whether or not the
31924 node is in the clipping rect.
31926 2005-01-10 Jackson Harper <jackson@ximian.com>
31928 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
31930 2005-01-10 Peter Bartok <pbartok@novell.com>
31932 * Application.cs: Added temporary hack to resolve all our resize
31933 required issues on startup. This will get fixed properly at
31934 some point in the future
31936 2005-01-10 Jackson Harper <jackson@ximian.com>
31938 * SizeGrip.cs: New internal class that is used as a sizing
31939 grip control...hence the name.
31941 2005-01-10 Peter Bartok <pbartok@novell.com>
31943 * Control.cs: Implemented proper TabIndex handling, now assigning
31944 a tabindex when a control is added to a container
31945 * GroupBox.cs (ctor): Now sets the Container style bit, required
31946 for Control.GetNextControl()
31948 2005-01-09 Jackson Harper <jackson@ximian.com>
31950 * TextBoxBase.cs: Clear window when scrolling (fixes build).
31952 2005-01-09 Peter Bartok <pbartok@novell.com>
31954 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31955 XplatUIX11.cs: Added ability to control ScrollWindow expose and
31956 an overload for ScrollWindow to allow only scrolling a rectangle
31958 2005-01-09 Peter Bartok <pbartok@novell.com>
31961 - Implemented SetDesktopBounds method
31962 - Implemented SetDesktopLocation method
31964 2005-01-08 Jackson Harper <jackson@ximian.com>
31966 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
31967 the node count has changed, this removes to VScroll::Refresh calls
31970 2005-01-08 Geoff Norton <gnorton@customerdna.com>
31972 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
31974 2005-01-07 Jackson Harper <jackson@ximian.com>
31976 * TreeNode.cs: Just update the single node when it is
31977 checked. Don't refresh after toggling, the Expand/Collapse already
31979 * TreeView.cs: Respect clipping a little more when drawing. Try
31980 not to redraw things that don't need to be redrawn. Just hide the
31981 scrollbars when they are no longer needed instead of removing
31982 them, so they don't have to be created again and again.
31984 2005-01-07 Geoff Norton <gnorton@customerdna.com>
31986 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
31987 coordinates to window space to place the caret properly, FIXED.
31988 Implement GetWindowState & SetWindowState
31990 2005-01-06 Peter Bartok <pbartok@novell.com>
31993 - Implemented ClientSize property
31994 - Implemented DesktopBounds property
31995 - Implemented DesktopLocation property
31996 - Implemented IsRestrictedWindow property
31997 - Implemented Size property
31998 - Implemented TopLevel property
31999 - Implemented FormWindowState property
32001 - Implemented GetTopLevel() method
32002 - Implemented SetTopLevel() method
32003 * X11Structs.cs (Atom):
32004 - Added AnyPropertyType definition
32005 - Added MapState definiton and updated XWindowAttribute struct
32006 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
32007 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
32008 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
32010 - Implemented GetWindowState() and SetWindowState() methods
32011 - Fixed Win32GetWindowLong return type
32013 - Introduced central function for sending NET_WM messages
32014 - Implemented GetWindowState() and SetWindowState() methods
32015 * TextBoxBase.cs (set_Lines):
32016 - Now uses Foreground color for text added via Text property (Duh!)
32017 - Added code to remember programmatically requested size (fixes
32018 behaviour when Multiline is set after Size)
32019 - Added AutoSize logic
32021 2005-01-06 Jackson Harper <jackson@ximian.com>
32023 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
32025 2005-01-06 Jackson Harper <jackson@ximian.com>
32027 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
32028 set to less then 0.
32030 2005-01-06 Jackson Harper <jackson@ximian.com>
32032 * ScrollableControl.cs: Lazy init the scrollbars.
32034 2005-01-06 Jackson Harper <jackson@ximian.com>
32036 * Theme.cs: Speed up getting pens and solid brushes, by using
32037 their ARGB as a hash instead of tostring and not calling Contains.
32039 2005-01-06 Peter Bartok <pbartok@novell.com>
32042 - Implemented OnActivated and OnDeactivate event trigger
32043 - Implemented Activate() method
32044 - Fixed ShowDialog() to activate the form that was active before
32045 the dialog was shown
32047 - Added global active_window var that tracks the currently active
32049 - Now always grabs Property changes from the root window to always
32050 catch changes on the active window property
32051 - Added code to PropertyNotify handler to send Active/Inactive
32052 messages when state changes. This puts X11 and Win32 en par on
32053 WM_ACTIVATE notifications (except for double notifications when
32054 the user clicks away from our modal window to another one of our
32057 2005-01-05 Jackson Harper <jackson@ximian.com>
32059 * ImageList.cs: Implment ctor
32061 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32063 * XplatUIOSX.cs: Implement Activate/SetTopmost
32065 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32067 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
32069 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32071 * XplatUIOSX.cs: Implement GetActive/SetFocus.
32073 2005-01-05 Peter Bartok <pbartok@novell.com>
32075 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
32076 XplatUIOSX.cs: Added GetActive method to return the currently
32077 active window for the application (or null, if none is active)
32079 - Implemented ActiveForm
32080 - Commented out owner assignment for modal dialogs (causes problems
32081 on Win32, since the owner will be disabled)
32082 - Reworked some Active/Focus handling (still incomplete)
32083 * CommonDialog.cs: Commented out owner assignment for modal dialogs
32084 (causes problems on Win32, since the owner will be disabled)
32085 * IWin32Window: Added ComVisible attribute
32087 2005-01-05 Peter Bartok <pbartok@novell.com>
32089 * ToolTip.cs (WndProc): Enable setting focus now that we have the
32090 required XplatUI functions.
32092 2005-01-05 Peter Bartok <pbartok@novell.com>
32094 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
32095 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
32096 to implement focus and activation handling; still incomplete and
32099 2005-01-04 Peter Bartok <pbartok@novell.com>
32101 * TextBoxBase.cs: Changed access level for Document property to
32102 match switch to internal for TextControl
32104 2005-01-04 Peter Bartok <pbartok@novell.com>
32106 * AccessibleObject: Added ComVisible attribute
32108 2005-01-04 Jackson Harper <jackson@ximian.com>
32110 * X11Keyboard.cs: Remove unneeded var.
32112 2005-01-04 Jackson Harper <jackson@ximian.com>
32114 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
32116 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
32117 ClientMessage. This makes apps exit cleanly (more often).
32119 2005-01-04 Jackson Harper <jackson@ximian.com>
32121 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
32122 handling focus, return correct colors and fonts,
32123 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
32124 handle selection, horizontal scrolling, and mouse interaction.
32126 2005-01-04 Peter Bartok <pbartok@novell.com>
32128 * ICommandExecutor.cs: Added
32129 * IDataGridColumnStyleEditingNotificationService.cs: Added
32130 * IFeatureSupport.cs: Added
32131 * IFileReaderService.cs: Added
32132 * IDataObject.cs: Added ComVisible attribute
32133 * AmbientProperties.cs: Added
32134 * BaseCollection.cs: Added missing attributes
32135 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
32136 * BaseCollection.cs: Added missing attributes
32137 * Binding.cs: Added TypeConverter attribute
32138 * BindingContext.cs: Added DefaultEvent attribute
32139 * BindingsCollection.cs: Added DefaultEvent attribute
32140 * Button.cs: Added DefaultValue attribute
32141 * DragEventArgs.cs: Added ComVisible attribute
32142 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
32143 * KeyEventArgs.cs: Added ComVisible attribute
32144 * KeyPressEventArgs.cs: Added ComVisible attribute
32145 * MouseEventArgs.cs: Added ComVisible attribute
32146 * NavigateEventArgs.cs: Added
32147 * NavigateEventHandler.cs: Added
32148 * FeatureSupport.cs: Added
32149 * OSFeature.cs: Added
32150 * Theme.cs: Added abstract Version property to support OSFeature
32151 * ThemeWin32Classic.cs: Added Version property to
32152 support OSFeature.Themes
32153 * ProgressBar.cs: Removed OnPaintBackground override, not required since
32154 the proper styles to avoid background drawing are set, also doesn't
32156 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
32157 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
32158 * ScrollEventArgs.cs: Added ComVisible attribute
32159 * SplitterEventArgs.cs: Added ComVisible attribute
32160 * AccessibleSelection.cs: Added Flags attribute
32161 * Appearance.cs: Added ComVisible attribute
32162 * Border3DSide.cs: Added ComVisible attribute
32163 * Border3DStyle.cs: Added ComVisible attribute
32164 * BorderStyle.cs: Added ComVisible attribute
32165 * DragAction.cs: Added ComVisible attribute
32166 * ErrorBlinkStyle.cs: Added
32167 * ScrollEventType.cs: Added ComVisible attribute
32168 * AnchorStyles.cs: Added Editor attribute
32169 * DockStyle.cs: Added Editor attribute
32170 * HorizontalAlignment.cs: Added ComVisible attribute
32171 * HelpEventArgs.cs: Added ComVisible attribute
32172 * PaintEventArgs.cs: Added IDisposable
32174 2005-01-04 Peter Bartok <pbartok@novell.com>
32176 * TextControl.cs: Switched Line, LineTag and Document classes to
32179 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32181 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
32182 Simple mode, fixes, IntegralHeight, etc.
32184 2005-01-04 Peter Bartok <pbartok@novell.com>
32186 * TextBoxBase.cs: Using proper font variable now
32188 2005-01-04 Peter Bartok <pbartok@novell.com>
32190 * Form.cs (ShowDialog): Set parent to owner, if provided
32191 * GroupBox.cs: Removed unused vars
32193 - Added GetHashCode() for Document and LineTag classes
32194 - Removed unused variables
32195 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
32196 to allow translation between continuous char position and line/pos
32197 * CheckBox.cs: Removed vars that are provided by base class
32198 * RadioButton.cs: Removed vars that are provided by base class, added
32199 new keyword where required
32200 * LinkLabel.cs: Added new keyword where required
32201 * Control.cs (WndProc): Removed unused variable
32203 - Finished SelectionLength property
32204 - Implemented SelectionStart property
32205 - Implemented Text property
32206 - Removed unused vars
32207 * MessageBox.cs: Added new keyword where required
32208 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
32210 * MenuAPI.cs: Added new keyword where required
32211 * ButtonBase.cs: Removed vars that are provided by base class, added
32212 new keyword where required
32213 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
32214 argument to double, to allow compiling with csc 2.0 (Atsushi ran
32216 * Application.cs (Run): Now triggers the ThreadExit event
32217 * CommonDialog.cs: Added new keyword where required; now properly sets
32218 parent (owner) for dialog
32219 * XplatUIX11.cs: Commented out unused vars
32220 * StatusBar.cs: Fixed signature for Text property
32221 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
32223 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32225 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
32226 TrackBar.cs, MonthCalendar.cs: remove unused vars
32228 2005-01-03 Jackson Harper <jackson@ximian.com>
32230 * ThemeWin32Classic.cs:
32231 * X11Keyboard.cs: Remove unused vars.
32233 2005-01-03 Peter Bartok <pbartok@novell.com>
32236 - set_Text: Tied into TextControl
32237 - set_TextAlignment: Tied into TextControl
32239 - Added alignment properties and implemented alignment handling
32240 and drawing (still has a bug, not generating proper expose events)
32241 - Added new Line() constructor to allow passing the line alignment
32242 - Fixed selection setting, properly handling end<start now
32243 - Added aligment considerations to RecalculateDocument()
32245 - Now properly enforces control height for single line controls
32246 - Added support for CharacterCasing
32247 - Added IsInputKey override
32248 - Fixed Keys.Enter logic
32249 - Added SetBoundsCore override
32250 - Fixed mouse selection handling
32252 2005-01-03 Jackson Harper <jackson@ximian.com>
32255 - Collapse and uncheck all nodes when CheckBoxes is disabled.
32256 - Checkboxes are always aligned to the bottom of the node,
32257 regardless of item height.
32258 - Use the node bounds to draw the text so we can center it when
32259 the item height is greater then the font height.
32260 - Node::Bounds are only the text part of the node.
32261 * TreeNode.cs: New method to combine collapsing and unchecking all
32264 2005-01-02 Jackson Harper <jackson@ximian.com>
32266 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
32267 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
32268 tree when a check is changed. TODO: Only refresh the checked node.
32270 2004-12-30 Jackson Harper <jackson@ximian.com>
32272 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
32273 * TreeNode.cs: When collapsing make sure to never collapse the
32276 2004-12-29 Jackson Harper <jackson@ximian.com>
32278 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
32280 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
32282 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
32284 2004-12-28 Peter Bartok <pbartok@novell.com>
32286 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
32289 2004-12-28 Peter Bartok <pbartok@novell.com>
32291 * Control.cs (WndProc): Added WM_HELP handler, now generates
32292 HelpRequested event
32293 * Form.cs: Added HelpButton property and required support code
32294 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
32296 2004-12-28 Peter Bartok <pbartok@novell.com>
32299 - Made DialogForm.owner variable internal
32300 - Added check to ensure owner form is set before setting
32301 owner properties in CreateParams
32303 2004-12-28 Geoff Norton <gnorton@customerdna.com>
32305 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
32306 swizzling. Implement ClientToScreen and ScreenToClient. Implement
32307 GetCursorPos. Fix major visibility issues. Rework the windowing
32308 system to support borderless/titleless windows (implements menus).
32309 Fix GetWindowPos. Implement initial background color support for
32312 2004-12-28 Peter Bartok <pbartok@novell.com>
32314 * Form.cs (get_CreateParams): Make sure we have an owner before using
32315 the owner variable. Implement proper default if no owner exists
32317 2004-12-28 Peter Bartok <pbartok@novell.com>
32319 * In preparation for making Managed.Windows.Forms the default build target
32320 for System.Windows.Forms, the following stubbed files were added.
32321 Dialogs are currently being implemented by contributors and are only
32322 short-term place holders.
32323 * ColorDialog.cs: Initial check-in (minmal stub)
32324 * DataGrid.cs: Initial check-in (minimal stub)
32325 * DataGridLineStyle.cs: Initial check-in (minimal stub)
32326 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
32327 * DataGridTableStyle.cs: Initial check-in (minimal stub)
32328 * FontDialog.cs: Initial check-in (minimal stub)
32329 * FileDialog.cs: Initial check-in (minimal stub)
32330 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
32331 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
32332 * OpenFileDialog: Initial check-in (minimal stub)
32333 * IComponentEditorPageSite.cs: Initial check-in
32334 * Splitter.cs: Initial check-in (for Jackson)
32335 * SplitterEventArgs.cs: Initial check-in (for Jackson)
32336 * SplitterEventHandler.cs: Initial check-in (for Jackson)
32337 * TextBox.cs: Initial check-in; still needs some wiring to
32338 TextControl backend
32339 * Form.cs: Implemented ControlBox property
32340 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
32341 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
32342 * TextControl.cs: Added selection functionality; added todo header
32344 - Implemented Lines property
32345 - Implemented TextHeight property
32346 - Implemented SelectedText property
32347 - Implemented SelectionLength property
32348 - Implemented SelectAll method
32349 - Implemented ToString method
32350 - Removed and cleaned up some debug code
32351 - Implemented (still buggy) mouse text selection
32353 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
32355 * ComboBox.cs: Complete DropDownList implementation, fixes.
32357 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
32359 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
32360 * ComboBoxStyle.cs: ComboBoxStyle enum
32361 * ComboBox.cs: Initial work on ComboBox control
32363 2004-12-21 Peter Bartok <pbartok@novell.com>
32365 * Control.cs (ctor, CreateParams): Moved setting of is_visible
32366 forward so that anything that creates a window gets the default,
32367 also no longer uses Visible property in CreateParams to avoid
32368 walking up the parent chain and possibly get the wrong visible
32369 status. Fixed IsVisible to no longer walk up to the parent.
32371 2004-12-21 Peter Bartok <pbartok@novell.com>
32373 * Form.cs (ShowDialog): Unset modality for the proper window
32375 2004-12-20 Peter Bartok <pbartok@novell.com>
32377 * CommonDialog.cs: Initial check-in
32379 2004-12-20 Peter Bartok <pbartok@novell.com>
32381 * Control.cs (Visible): Now uses the parent window instead of the
32382 client area window for the property
32385 - ShowDialog(): Now uses the proper window for modality
32386 - The default visibility state for the form parent is now false. This
32387 will prevent the user from seeing all the changes to the form and
32388 its controls before the application hits Application.Run()
32389 - Removed some stale commented out code
32392 - Added FindWindow() method to have a method to check for existence
32394 - Added ability to override default exception handling (for example
32395 when debugging with VS.Net; to do this the ExternalExceptionHandler
32397 - Removed some useless debug output
32400 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
32401 not working as expected
32402 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
32403 property to allow switching back to the modal window if focus is
32404 given to another one of our windows (Application Modal)
32405 - Now only sets override_redirect if we create a window
32407 - Moved EventMask selection before mapping of newly created window
32408 so we can catch the map event as well
32409 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
32410 - Added various Atom related DllImports
32411 - Implemented Exit() method
32412 - .ctor() : No longer shows window if WS_VISIBLE is not defined
32413 in the CreateParams
32415 * MessageBox.cs: Now properly deals with the FormParent window by
32416 providing an override the FormParent CreateParams property to
32417 set as POPUP instead of OVERLAPPED window.
32419 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32421 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
32422 Minor code cleanup.
32424 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32426 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
32428 2004-12-18 Peter Bartok <pbartok@novell.com>
32430 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
32431 implementing SetModal() method
32433 2004-12-18 Peter Bartok <pbartok@novell.com>
32435 * X11Structs.cs (XGCValues): Fixed type of function element
32436 * XplatUI.cs: Added ScrollWindow() method
32437 * XplatUIDriver.cs: Added ScrollWindow() abstract
32438 * XplatUIWin32.cs: Implemented ScrollWindow() method
32439 * XplatUIX11.cs: Implemented ScrollWindow() method
32440 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
32442 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32444 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
32445 Some more keyboard support (INCOMPLETE)
32447 2004-12-17 Peter Bartok <pbartok@novell.com>
32450 - Added color attribute to line tags.
32451 - Added color argument to all functions dealing with tags
32452 - Added color argument support to various functions
32453 - Fixed miss-calculation of baseline/shift in certain circumstances
32455 * TextBoxBase.cs: Added new color option to test code
32457 2004-12-17 Jackson Harper <jackson@ximian.com>
32460 * MonthCalendar.cs: Signature fixes
32462 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32464 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
32465 keyboard event moved it. Create a new graphics context for each paint resolves this
32467 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32469 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
32470 Make caret exist and go blink blink. Initial keyboard support.
32471 Fix exception handler, Add Invalidate support. Change way RefreshWindow
32474 2004-12-17 Jackson Harper <jackson@ximian.com>
32476 * XplatUIStructs.cs: Updated set of virtual keycodes.
32477 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
32479 2004-12-17 Jackson Harper <jackson@ximian.com>
32481 * XplatUIX11.cs: Prune old keyboard code.
32483 2004-12-17 Jackson Harper <jackson@ximian.com>
32485 * XplatUIX11.cs: When generating mouse wparams get the modifier
32486 keys from the ModifierKeys property.
32488 2004-12-17 Jackson Harper <jackson@ximian.com>
32490 * X11Keyboard.cs: Send up/down input when generating
32491 messages. Remove some unused vars.
32493 2004-12-17 Jackson Harper <jackson@ximian.com>
32496 * TreeView.cs: get rid of warnings.
32498 2004-12-17 Jackson Harper <jackson@ximian.com>
32500 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
32502 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
32504 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
32505 CheckedListBox.cs: Implementation
32507 2004-12-17 Peter Bartok <pbartok@novell.com>
32509 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
32511 2004-12-16 Peter Bartok <pbartok@novell.com>
32514 - InsertCharAtCaret(): Fixed start pos fixup
32515 - CaretLine_get: No longer derives the line from the tag, the tag
32516 could be stale if lines in the document have been added or deleted
32517 - RebalanceAfterDelete(): Fixed bug in balancing code
32518 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
32519 - Line.Streamline(): Now can also elminate leading empty tags
32520 - DumpTree(): Added a few more tests and prevented exception on
32522 - Added Debug section for Combining lines
32523 - Delete(): Now copies all remaining properties of a line
32526 - Left mousebutton now sets the caret (and middle button still acts
32527 as formatting tester, which must go away soon)
32528 - Added Debug section for Deleting/Combining lines
32529 - Fixed calculations for UpdateView after Combining lines
32531 2004-12-16 Peter Bartok <pbartok@novell.com>
32533 * TextControl.cs: Now properly aligns text on a baseline, using the
32534 new XplatUI.GetFontMetrics() method. Simplified several calculations
32535 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
32538 2004-12-16 Peter Bartok <pbartok@novell.com>
32540 * XplatUI.cs: Added GetFontMetrics() method
32541 * XplatUIDriver.cs: Added GetFontMetrics() abstract
32542 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
32543 into libgdiplus, our private GetFontMetrics function
32544 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
32545 * XplatUIWin32.cs: Implemented GetFontMetrics() method
32547 2004-12-16 Jackson Harper <jackson@ximain.com>
32549 * XplatUIStruct.cs: Add enum for dead keys
32550 * X11Keyboard.cs: Map and unmap dead keys.
32552 2004-12-16 Jackson Harper <jackson@ximian.com>
32554 * X11Keyboard.cs: Detect and use the num lock mask.
32556 2004-12-16 Peter Bartok <pbartok@novell.com>
32558 * Control.cs (CreateGraphics): Added check to make sure the
32559 handle of the window exists before calling Graphics.FromHwnd()
32561 2004-12-16 Peter Bartok <pbartok@novell.com>
32563 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
32564 contains a lot of code that's not supposed to be there for the
32565 real thing, but required for developing/testing the textbox
32568 2004-12-16 Peter Bartok <pbartok@novell.com>
32571 - Fixed Streamline method
32572 - Added FindTag method to Line
32573 - Added DumpTree method for debugging
32574 - Added DecrementLines() method for deleting lines
32575 - Fixed UpdateView to update the cursor to end-of-line on single-line
32577 - Added PositionCaret() method
32578 - Fixed MoveCaret(LineDown) to move into the last line, too
32579 - Added InsertChar overload
32580 - Fixed InsertChar tag offset calculations
32581 - Added DeleteChar() method
32582 - Added Combine() method for folding lines
32583 - Fixed Delete() method, no longer allocates wasted Line object and
32584 now copies all properties when swapping nodes
32585 - Delete() method now updates document line counter
32587 2004-12-15 Jackson Harper <jackson@ximian.com>
32589 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
32590 * X11Keyboard.cs: Expose the currently selected modifier keys
32591 through a property.
32593 2004-12-15 Peter Bartok <pbartok@novell.com>
32595 * TextControl.cs: Initial check-in. Still incomplete
32597 2004-12-15 Jackson Harper <jackson@ximian.com>
32600 * TreeView.cs: Fix build on csc (second time today ;-))
32602 2004-12-15 Jackson Harper <jackson@ximian.com>
32604 * TreeView.cs: Store the treenodes plus/minus box bounds when it
32605 is calculated and use this for click testing.
32606 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
32608 2004-12-15 Jackson Harper <jackson@ximian.com>
32610 * TreeView.cs: Pass the nodes image index to the image list when
32611 drawing that image.
32613 2004-12-15 Jackson Harper <jackson@ximian.com>
32615 * X11Keyboard.cs: Set messages hwnd.
32616 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
32617 post_message calls.
32619 2004-12-15 Jackson Harper <jackson@ximian.com>
32621 * X11Keyboard.cs: Fix to compile with csc.
32623 2004-12-15 Jackson Harper <jackson@ximian.com>
32625 * X11Structs.cs: Add key mask values
32626 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
32627 * X11Keyboard.cs: New file - Extrapolates and interpolates key
32628 down/up foo into WM_CHAR foo
32629 * KeyboardLayouts.cs: Common keyboard layouts
32630 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
32631 post messages into the main queue.
32633 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
32635 * Button.cs: implement ProcessMnemonic
32636 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
32638 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
32639 * ButtonBase.cs: Show HotkeyPrefix (not the &)
32641 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
32643 * MonthCalendar.cs: Implemented click-hold for next/previous month
32646 2004-12-11 Peter Bartok <pbartok@novell.com>
32649 - Added XKeyboardState (moved from XplatUIX11.cs)
32650 - Added XCreateGC related enums and structures
32651 - Added GXFunction for XSetFunction
32653 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
32655 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
32656 CaretVisible() calls
32658 * ToolTip.cs: Added code to prevent stealing focus from app windows
32660 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
32661 DestroyCaret, SetCaretPos and CaretVisible)
32664 - Added implementation for caret functions
32665 - Moved hover variables into a struct, to make it a bit easier
32666 on the eyes and to debug
32667 - Removed XKeyboardState (moved to XplatUIX11.cs)
32668 - Moved Keyboard properties into the properties region
32670 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
32671 call to get a graphics context for our control
32673 * XplatUIOSX.cs: Added empty overrides for the new caret functions
32675 * TreeView.cs: Fixed bug. No matter what color was set it would always
32676 return SystemColors.Window
32678 * XplatUIWin32.cs: Implemented caret overrides
32680 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
32682 * ListBox.cs: fire events, implement missing methods and properties,
32685 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
32687 * MonthCalendar.cs: invalidation bug fixing
32688 * ThemeWin32Classic.cs: paint fixing
32690 2004-12-09 Geoff Norton <gnorton@customerdna.com>
32692 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
32693 prepare the CGContextRef there now.
32695 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
32697 * MonthCalendar.cs:
32698 - optimisationL only invalidate areas that have changed
32699 * ThemeWin32Classic.cs:
32700 - only paint parts that intersect with clip_area
32702 2004-12-09 Peter Bartok <pbartok@novell.com>
32704 * Application.cs: Undid changes from r37004 which cause problems
32707 2004-12-09 Ravindra <rkumar@novell.com>
32709 * ToolBar.cs: Added support for displaying ContextMenu
32710 attached to a button on ToolBar.
32711 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
32714 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
32716 * Label.cs: autosize works in text change and removes unnecessary
32719 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
32721 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32724 2004-12-08 Geoff Norton <gnorton@customerdna.com>
32726 * XplatUIOSX.cs: Added mouse move/click/grab support
32727 Remove some debugging WriteLines not needed anymore.
32728 Add window resizing/positioning.
32729 Fix visibility on reparenting.
32731 2004-12-08 Peter Bartok <pbartok@novell.com>
32733 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
32735 2004-12-07 Geoff Norton <gnorton@customerdna.com>
32737 * XplatUIOSX.cs: Initial checkin
32738 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
32740 2004-12-03 Ravindra <rkumar@novell.com>
32742 * ListView.cs: Added some keybindings and fixed scrolling.
32743 ScrollBars listen to ValueChanged event instead of Scroll
32744 Event. This would let us take care of all changes being
32745 done in the scrollbars' values programmatically or manually.
32746 * ListView.cs (CanMultiselect): Added a check for shift key.
32747 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
32748 * ListViewItem.cs (Clone): Fixed. We need to make a copy
32749 of ListViewSubItemCollection as well.
32751 2004-12-06 Peter Bartok <pbartok@novell.com>
32753 * Control.cs (Parent): Added check and exception to prevent
32756 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
32758 * ListBox.cs: implemented clipping, selection single and multiple,
32761 2004-12-03 Ravindra <rkumar@novell.com>
32763 * ListView.cs (ListView_KeyDown):
32764 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
32765 when CTRL key is pressed.
32766 * ListViewItem.cs (Selected): Fixed setting the property.
32768 2004-12-03 Marek Safar <marek.safar@seznam.cz>
32770 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
32772 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
32773 MinimizeBox, ShowInTaskbar, TopMost properties.
32775 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
32776 will be implemented).
32778 2004-12-03 Marek Safar <marek.safar@seznam.cz>
32780 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
32782 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
32785 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
32787 * TreeView.cs: BackColor is Colors.Window.
32789 2004-12-01 Jackson Harper <jackson@ximian.com>
32791 * TreeView.cs: When resizing the tree if the user is making it
32792 smaller we don't get expose events, so we need to handle adding
32793 the horizontal scrollbar in the size changed handler as well as
32794 the expose handler.
32796 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
32798 * DrawItemState.cs: fixes wrong enum values
32800 2004-12-01 Jackson Harper <jackson@ximian.com>
32802 * TreeView.cs: Resize the hbar as well as the vbar on resize.
32804 2004-12-01 Jackson Harper <jackson@ximian.com>
32806 * NodeLabelEditEventArgs.cs:
32807 * NodeLabelEditEventHandler.cs:
32808 * OpenTreeNodeEnumerator.cs:
32810 * TreeNodeCollection.cs:
32812 * TreeViewAction.cs:
32813 * TreeViewCancelEventArgs.cs:
32814 * TreeViewCancelEventHandler.cs:
32815 * TreeViewEventArgs.cs:
32816 * TreeViewEventHandler.cs: Initial implementation.
32818 2004-12-01 Ravindra <rkumar@novell.com>
32820 * ListView.cs (CalculateListView): Fixed scrolling related
32821 calculations. Also, removed some debug statements from other
32823 * ListViewItem.cs: Changed access to 'selected' instance variable
32824 from private to internal.
32825 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
32827 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
32829 * ThemeWin32Classic.cs: remove cache of brush and pens for
32830 specific controls and use the global system, fixes scrollbutton
32831 bugs (for small sizes, disabled, etc)
32833 * ScrollBar.cs: does not show the thumb for very small controls
32834 (as MS) and allow smaller buttons that the regular size
32836 2004-12-01 Miguel de Icaza <miguel@ximian.com>
32838 * UpDownBase.cs: Add abstract methods for the interface.
32839 Add new virtual methods (need to be hooked up to TextEntry when it
32841 Add override methods for most features.
32842 Computes the size, forces the height of the text entry.
32844 * NumericUpDown.cs: Put here the current testing code.
32846 * Set eol-style property on all files that do not have mixed line
32847 endings, to minimize the future problems. There are still a few
32848 files with mixed endings, and someone should choose whether they
32849 want to move it or not.
32851 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
32853 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
32856 2004-11-30 Ravindra <rkumar@novell.com>
32858 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
32859 drawing and replaced use of SystemColors by theme colors.
32860 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
32861 * ListView.cs (ListViewItemCollection.Add): Throw exception when
32862 same ListViewItem is being added more than once.
32864 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
32866 * MonthCalendar.cs:
32867 - ControlStyles love to make the control not flicker
32869 2004-11-30 Peter Bartok <pbartok@novell.com>
32871 * CharacterCasing.cs: Added
32873 2004-11-29 Peter Bartok <pbartok@novell.com>
32875 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32876 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
32877 I am removing these files as they conflict with already completed
32878 work. While it is fantastic to get contributions to MWF, I
32879 respectfully ask that everyone please coordinate their contributions
32880 through mono-winforms-list or #mono-winforms at this time. We're
32881 explicitly avoiding stubbing and don't want controls that don't have
32882 their basic functionality implemented in svn. Please also see
32883 http://www.mono-project.com/contributing/winforms.html
32886 2004-11-29 Marek Safar <marek.safar@seznam.cz>
32888 * Application.cs (ModalRun): Don't hang after exit.
32890 * Theme.cs: New TreeViewDefaultSize property.
32892 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
32893 with less hardcoded SystemColors constant.
32894 Implemented TreeViewDefaultSize.
32896 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32897 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
32900 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
32902 * MonthCalendar.cs:
32903 - Fix NextMonthDate and PrevMonthDate click moving calendar
32905 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
32907 * MonthCalendar.cs:
32908 - Fix usage of ScrollChange Property when scrolling months
32910 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
32912 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
32913 - Fixes menu destroying
32914 - Support adding and removing items on already created menus
32916 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
32918 * MonthCalendar.cs:
32919 - Re-worked all bolded dates handling to match win32
32920 * ThemeWin32Classic.cs:
32921 - Fixed rendering with bolded dates
32923 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
32925 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
32926 - Horizontal scroolbar
32931 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
32933 * MonthCalendar.cs:
32934 - Fix Usage of MaxSelectionCount from SelectionRange
32935 - Fixed Shift + Cursor Selection
32936 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
32937 - Fixed normal cursor selection to be compat with win32
32938 - Fixed Shift + Mouse Click selection
32940 2004-11-24 Peter Bartok <pbartok@novell.com>
32942 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
32943 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
32945 - CreatedKeyBoardMsg now updates keystate with Alt key
32946 - Added workaround for timer crash to CheckTimers, Jackson will
32947 develop a proper fix and check in later
32948 - Implemented DispatchMessage
32949 - Removed calling the native window proc from GetMessage (call
32950 now moved to DispatchMessage)
32952 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
32953 the keydata (Fixes bug #69831)
32956 - (DispatchMessage): Switched to return IntPtr
32957 - Added DllImport for SetFocus
32959 2004-11-24 Ravindra <rkumar@novell.com>
32961 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
32962 background drawing.
32963 * ListViewItem.cs: Fixed various properties, calculations
32964 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
32965 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
32966 and some internal properties. Fixed MouseDown handler and Paint
32969 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
32971 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
32973 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
32975 * ContainerControl.cs: correct accidental check in of local changes
32977 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
32979 * ThemeWin32Classic.cs:
32980 - Fixed Drawing Last month in grid (sometimes not showing)
32981 * MonthCalendar.cs:
32982 - Fixed title width calculation bug (makeing title small)
32984 2004-11-23 Peter Bartok <pbartok@novell.com>
32987 - Added generation of WM_MOUSEHOVER event
32988 - Added missing assignment of async_method atom
32989 - Fixed WM_ERASEBKGND; now only redraws the exposed area
32991 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
32993 * ThemeWin32Classic.cs:
32994 - Fixed Drawing of today circle when showtodaycircle not set
32995 - fixed drawing of first and last month in the grid (gay dates)
32996 * MonthCalendar.cs:
32997 - Fixed Drawing of today circle
32998 - Fixed drawing of grady dates
32999 - Fixed HitTest for today link when ShowToday set to false
33000 - Fixed DefaultSize to obey ShowToday
33002 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
33004 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
33005 * System.Windows.Forms/Theme.cs
33006 * MonthCalendar.cs: added for MonthCalendar
33007 * SelectionRange.cs: added for MonthCalendar
33008 * Day.cs: added for MonthCalendar: added for MonthCalendar
33009 * DateRangeEventArgs.cs: added for MonthCalendar
33010 * DateRangeEventHandler.cs: added for MonthCalendar
33012 2004-11-22 Ravindra <rkumar@novell.com>
33014 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
33017 2004-11-22 Miguel de Icaza <miguel@ximian.com>
33019 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
33022 * NumericUpDown.cs: Added new implementation.
33023 * UpDownBase.cs: Added new implementation.
33025 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
33028 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
33031 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
33034 2004-11-21 Miguel de Icaza <miguel@ximian.com>
33036 * Timer.cs (Dispose): Should call the base dispose when
33039 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
33041 * ScrollBar.cs: updates thumb position when max, min or increment
33044 2004-11-21 Ravindra <rkumar@novell.com>
33046 * ListView.cs: Implemented item selection, activation and
33047 column header style. Fixed properties to do a redraw, if
33048 required. Added support for MouseHover, DoubleClick, KeyDown
33049 and KeyUp event handling and some minor fixes.
33050 * ListViewItem.cs: Fixed constructor.
33051 * ThemeWin32Classic.cs: Improved drawing for ListView.
33053 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
33055 * ThemeWin32Classic.cs: initial listbox drawing code
33056 * DrawMode.cs: new enumerator
33057 * ListControl.cs: stubbed class
33058 * ListBox.cs: initial implementation
33059 * Theme.cs: new methods definitions
33060 * SelectionMode.cs: new enumerator
33062 2004-11-17 Peter Bartok <pbartok@novell.com>
33064 * XplatUIWin32.cs: Added double-click events to the class style
33065 * Control.cs (WndProc):
33066 - Added handling of click-count to MouseDown/ MouseUp events.
33067 - Added handling of middle and right mouse buttons
33068 - Removed old debug code
33070 2004-11-17 Jackson Harper <jackson@ximian.com>
33072 * XplatUIX11.cs: Use the new Mono.Unix namespace.
33074 2004-11-17 Ravindra <rkumar@novell.com>
33076 * ListView.cs: Added event handling for MouseMove/Up/Down.
33077 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
33078 * ThemeWin32Classic.cs: We need to clear the graphics context and
33079 draw column header in a proper state.
33082 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
33084 * Menu.cs: fixes signature
33086 2004-11-16 Peter Bartok <pbartok@novell.com>
33088 * XplatUIX11.cs (GetMessage): Implemented generation of
33089 double click mouse messages
33091 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
33093 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
33096 2004-11-11 Peter Bartok <pbartok@novell.com>
33098 * HandleData.cs: Added Visible property
33099 * XplatUIX11.cs (IsVisible): Now uses Visible property from
33101 * XplatUIX11.cs: Removed old debug leftovers
33102 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
33103 * Control.cs (WndProc): Removed old debug leftovers,
33104 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
33105 needed WM_SIZE handling
33107 2004-11-11 Jackson Harper <jackson@ximian.com>
33109 * OwnerDrawPropertyBag.cs:
33110 * TreeViewImageIndexConverter.cs: Initial implementation
33112 2004-11-10 Jackson Harper <jackson@ximian.com>
33114 * ThemeWin32Classic.cs:
33115 * TabControl.cs: instead of moving tabs by the slider pos just
33116 start drawing at the tab that is offset by the slider. This way
33117 scrolling always moves by exactly one tab.
33119 2004-11-10 Jackson Harper <jackson@ximian.com>
33121 * TabControl.cs: You can only scroll left when the slider has
33122 already ben moved right.
33124 2004-11-10 Jackson Harper <jackson@ximian.com>
33126 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
33129 2004-11-10 Jackson Harper <jackson@ximian.com>
33131 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
33134 2004-11-09 Jackson Harper <jackson@ximian.com>
33136 * TabControl.cs (CalcXPos): New helper method so we can determine
33137 the proper place to start drawing vertical tabs.
33138 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
33140 2004-11-09 Jackson Harper <jackson@ximian.com>
33142 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
33143 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
33144 and Bottom, left and right are illegal values for this and
33145 multiline is enabled when the alignment is set to left or right.
33146 (DrawTab): Each alignment block should draw the text itself now
33147 because Left requires special love. Also add rendering for Left
33150 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
33152 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
33153 does not destroy the windows, removes debugging messages
33155 2004-11-09 jba <jba-mono@optusnet.com.au>
33157 * ThemeWin32Classic.cs
33158 (DrawButtonBase): Fix verticle text rect clipping in windows
33159 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33160 rendering and incorrect text rect clipping
33161 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33162 rendering and incorrect text rect clipping
33164 2004-11-08 Jackson Harper <jackson@ximian.com>
33166 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
33167 bottom when they are bottom aligned so the bottoms of the tabs get
33169 * TabControl.cs (DropRow): Move rows up instead of down when the
33170 tab control is bottom aligned.
33172 2004-11-08 13:59 pbartok
33175 - Added handling for various window styles
33176 - Added handling for popup windows
33177 - Added SetTopmost handling
33179 2004-11-08 13:55 pbartok
33182 - Added argument to SetTopmost method
33183 - Fixed broken ClientToScreen function
33185 2004-11-08 13:53 pbartok
33187 * XplatUIStructs.cs:
33188 - Added missing WS_EX styles
33190 2004-11-08 13:53 pbartok
33192 * XplatUI.cs, XplatUIDriver.cs:
33193 - Added argument to SetTopmost
33195 2004-11-08 13:52 pbartok
33198 - Added XSetWindowAttributes structure
33199 - Improved XWindowAttributes structure
33200 - Added SetWindowValuemask enum
33201 - Added window creation arguments enum
33202 - Added gravity enum
33203 - Added Motif hints structure
33204 - Added various Motif flags and enums
33205 - Added PropertyMode enum for property functions
33207 2004-11-08 13:50 pbartok
33210 - Fixed arguments for updated SetTopmost method
33212 2004-11-08 13:49 pbartok
33215 - Fixed arguments for updated SetTopmost function
33216 - Fixed usage of PointToClient
33218 2004-11-08 13:44 pbartok
33221 - Added Clipping of children and siblings
33223 2004-11-08 13:41 pbartok
33226 - Removed SetMenuBarWindow call. We do this in Form.cs
33228 2004-11-08 13:40 jackson
33230 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
33231 scrolling jimmi in the correct location with bottom aligned tabs
33233 2004-11-08 13:36 pbartok
33235 * ContainerControl.cs:
33236 - Implemented BindingContext
33237 - Implemented ParentForm
33239 2004-11-08 12:46 jackson
33241 * TabControl.cs: Put bottom rendered tabs in the right location
33243 2004-11-08 07:15 jordi
33245 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
33248 2004-11-05 17:30 jackson
33250 * TabControl.cs: When selected tabs are expanded make sure they
33251 don't go beyond the edges of the tab control
33253 2004-11-05 14:57 jackson
33255 * TabControl.cs: Reset show_slider so if the control is resized to
33256 a size where it is no longer needed it's not displayed anymore
33258 2004-11-05 13:16 jackson
33260 * TabControl.cs: Make tab pages non visible when added to the
33263 2004-11-05 12:42 jackson
33265 * TabControl.cs: Implement SizeMode.FillToRight
33267 2004-11-05 12:16 jackson
33269 * Control.cs: Do not call CreateHandle if the handle is already
33272 2004-11-05 11:46 jackson
33274 * TabControl.cs: Remove superflous call to CalcTabRows
33276 2004-11-05 09:07 jackson
33278 * XplatUIX11.cs: Update for Mono.Posix changes
33280 2004-11-05 07:00 ravindra
33282 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
33285 2004-11-04 22:47 jba
33287 * ThemeWin32Classic.cs:
33288 - Fix Button rendering for FlatStyle = Flat or Popup
33289 - Fix RadioButton and CheckBox rendering when Appearance = Button
33290 (normal and flatstyle).
33291 - Correct outer rectangle color when drawing focus rectangle
33292 - Adjust button bounds to be 1 px smaller when focused
33293 - Make button not draw sunken 3d border when pushed (windows compat)
33294 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
33295 - Offset the text in RadioButton and Checkbox when being rendered as
33297 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
33299 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
33300 - Fixed disabled text rendering for normally rendered radiobuttons
33302 2004-11-04 10:26 jackson
33304 * TabControl.cs: Recalculate tab rows when resizing
33306 2004-11-04 07:47 jordi
33308 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
33309 collection completion, drawing issues, missing features
33311 2004-11-04 05:03 ravindra
33314 - We need to recalculate the Thumb area when
33315 LargeChange/maximum/minimum values are changed.
33316 - We set the 'pos' in UpdatePos() method to minimum, if it's less
33317 than minimum. This is required to handle the case if large_change is
33318 more than max, and use LargeChange property instead of large_change
33320 - We return max+1 when large_change is more than max, like MS does.
33322 2004-11-04 04:29 ravindra
33324 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
33325 - Changed default value signatures (prefixed all with ListView).
33326 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
33328 - Fixed calculations for ListViewItem and implemented Clone()
33331 2004-11-04 04:26 ravindra
33333 * Theme.cs, ThemeWin32Classic.cs:
33334 - Changed default ListView values signatures (prefixed all with
33336 - Fixed default size values for VScrollBar and HScrollBar.
33337 - Fixed DrawListViewItem method.
33339 2004-11-04 04:05 ravindra
33341 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
33343 2004-11-04 04:04 ravindra
33345 * ImageList.cs: Implemented the missing overload for Draw method.
33347 2004-11-03 19:29 jackson
33349 * TabControl.cs: Handle dropping rows on selection properly
33351 2004-11-03 11:59 jackson
33353 * TabControl.cs: remove debug code
33355 2004-11-03 11:52 jackson
33357 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
33358 the scrolly widgerywoo
33360 2004-11-02 13:52 jackson
33362 * TabControl.cs: Resize the tab pages and tabs when the tab control
33365 2004-11-02 13:40 jackson
33367 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
33368 selected tab to the bottom
33370 2004-11-02 13:39 jackson
33372 * TabPage.cs: Store the tab pages row
33374 2004-11-02 12:33 jordi
33376 * MenuItem.cs: fixes handle creation
33378 2004-11-02 11:42 jackson
33380 * TabControl.cs: signature fix
33382 2004-11-02 08:56 jackson
33384 * TabControl.cs: Calculate whether the tab is on an edge properly.
33385 Remove top secret debugging code
33387 2004-11-01 19:57 jackson
33389 * TabControl.cs: Add click handling, and proper sizing
33391 2004-11-01 19:47 jackson
33393 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
33396 2004-11-01 19:39 jackson
33398 * TabPage.cs: add internal property to store the bounds of a tab
33401 2004-10-30 04:23 ravindra
33403 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
33406 2004-10-30 04:21 ravindra
33408 * ListView.cs, ListViewItem.cs: Added support for scrolling and
33409 fixed calculations.
33411 2004-10-30 03:06 pbartok
33414 - Removed extension of DllImported libs
33416 2004-10-29 09:55 jordi
33418 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
33419 navigation, itemcollection completion, menu fixes
33421 2004-10-27 22:58 pbartok
33424 - Now throws a nice error message when no X display could be opened
33426 2004-10-26 13:51 jordi
33428 * ListView.cs: removes warning
33430 2004-10-26 03:55 ravindra
33432 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
33433 ThemeWin32Classic.cs: Some formatting for my last checkins.
33435 2004-10-26 03:36 ravindra
33437 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
33438 control and default values.
33440 2004-10-26 03:35 ravindra
33442 * Theme.cs: Added some default values for ListView control.
33444 2004-10-26 03:33 ravindra
33446 * ToolBar.cs: ToolBar should use the user specified button size, if
33447 there is any. Added a size_specified flag for the same.
33449 2004-10-26 03:33 ravindra
33451 * ColumnHeader.cs: Added some internal members and calculations for
33454 2004-10-26 03:32 ravindra
33456 * ListViewItem.cs: Calculations for ListViewItem.
33458 2004-10-26 03:31 ravindra
33460 * ListView.cs: Added some internal members and calculations for
33463 2004-10-22 13:31 jordi
33465 * MenuAPI.cs: speedup menus drawing
33467 2004-10-22 13:16 jackson
33469 * XplatUIX11.cs: Make sure to update exposed regions when adding an
33472 2004-10-22 11:49 jackson
33476 2004-10-22 11:41 jackson
33478 * Control.cs: Check to see if the window should have its background
33479 repainted by X when drawing.
33481 2004-10-22 11:31 jackson
33483 * XplatUIX11.cs: When invalidating areas only use XClearArea if
33484 clear is true, this way we do not get flicker from X repainting the
33487 2004-10-22 11:28 jackson
33489 * XEventQueue.cs: Queue properly
33491 2004-10-21 09:38 jackson
33493 * XEventQueue.cs: Fix access modifier
33495 2004-10-21 09:36 jackson
33497 * XEventQueue.cs: Don't loose messages
33499 2004-10-21 09:22 jackson
33501 * XEventQueue.cs: Don't loose messages
33503 2004-10-20 04:15 jordi
33505 * BootMode.cs: enum need it by SystemInfo
33507 2004-10-19 21:58 pbartok
33510 - Small sanity check
33512 2004-10-19 21:56 pbartok
33515 - Added private FormParentWindow class which acts as the container
33516 for our form and as the non-client area where menus are drawn
33517 - Added/Moved required tie-ins to Jordi's menus
33518 - Fixed/Implemented the FormStartPosition functionality
33520 2004-10-19 21:52 pbartok
33523 - Removed unneeded locals
33524 - Added code to all size and location properties to understand and
33525 deal with the parent container of Form
33527 2004-10-19 21:33 pbartok
33530 - Fixed to deal with new Form subclasses for menus
33532 2004-10-19 17:48 jackson
33534 * XEventQueue.cs: commit correct version of file
33536 2004-10-19 16:50 jackson
33538 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
33540 2004-10-19 16:15 jordi
33542 * MenuAPI.cs: MenuBarCalcSize returns the height
33544 2004-10-19 08:31 pbartok
33547 - Added missing call to PreProcessMessage before calling OnXXXKey
33550 2004-10-19 00:04 ravindra
33552 * ToolTip.cs: Fixed constructor.
33554 2004-10-18 09:31 jordi
33556 * MenuAPI.cs: menuitems in menubars do not have shortcuts
33558 2004-10-18 09:26 jordi
33560 * MenuItem.cs: fixes MenuItem class signature
33562 2004-10-18 08:56 jordi
33564 * MenuAPI.cs: prevents windows from showing in the taskbar
33566 2004-10-18 00:28 ravindra
33568 * ToolTip.cs: Suppressed a warning message.
33570 2004-10-18 00:27 ravindra
33572 * Control.cs: Default value of visible property must be true.
33574 2004-10-17 23:19 pbartok
33577 - Complete implementation
33579 2004-10-17 23:19 pbartok
33582 - Added EnableWindow method
33583 - Added SetModal stub
33584 - Added generation of WM_ACTIVATE message (still needs testing)
33585 - Added SetTopMost stub
33586 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
33588 2004-10-17 23:17 pbartok
33591 - Removed VirtualKeys to XplatUIStructs
33592 - Implemented SetTopMost method
33593 - Implemented EnableWindow method
33594 - Bugfix in ScreenToClient()
33595 - Bugfixes in ClientToScreen()
33597 2004-10-17 22:51 pbartok
33599 * XplatUIStructs.cs:
33600 - Added WS_EX styles to WindowStyles enumeration
33602 2004-10-17 22:50 pbartok
33604 * XplatUI.cs, XplatUIDriver.cs:
33605 - Added method for enabling/disabling windows
33606 - Added method for setting window modality
33607 - Added method for setting topmost window
33609 2004-10-17 22:49 pbartok
33611 * ThemeWin32Classic.cs:
33612 - Added ToolTip drawing code
33614 2004-10-17 22:49 pbartok
33617 - Added ToolTip abstracts
33619 2004-10-17 22:47 pbartok
33622 - Fixed Form.ControlCollection to handle owner relations
33623 - Added Owner/OwnedForms handling
33624 - Implemented Z-Ordering for owned forms
33625 - Removed unneeded private overload of ShowDialog
33626 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
33628 - Fixed Close(), had wrong default
33629 - Added firing of OnLoad event
33630 - Added some commented out debug code for Ownership handling
33632 2004-10-17 22:16 pbartok
33635 - Fixed/implemented flat list of controls
33637 2004-10-17 22:14 pbartok
33640 - Added code to simulate modal dialogs on Win32
33642 2004-10-17 16:11 jordi
33644 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
33647 2004-10-17 13:39 jordi
33649 * MenuAPI.cs: menu drawing fixes
33651 2004-10-15 09:10 ravindra
33653 * StructFormat.cs: General Enum.
33655 2004-10-15 09:09 ravindra
33657 * SizeGripStyle.cs: Enum for Form.
33659 2004-10-15 09:08 ravindra
33661 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
33662 in Theme for ListView.
33664 2004-10-15 09:06 ravindra
33666 * ColumnHeader.cs: Flushing some formatting changes.
33668 2004-10-15 09:05 ravindra
33670 * ListViewItem.cs: Implemented GetBounds method and fixed coding
33673 2004-10-15 09:03 ravindra
33675 * ListView.cs: Implemented Paint method and fixed coding style.
33677 2004-10-15 07:34 jordi
33679 * MenuAPI.cs: fix for X11
33681 2004-10-15 07:32 ravindra
33683 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
33684 - Renamed Paint() method to Draw() for clarity. Also, moved
33685 DrawImage() to OnPaint().
33687 2004-10-15 07:25 ravindra
33689 * CheckBox.cs, RadioButton.cs:
33690 - Removed Redraw (), we get it from ButtonBase.
33691 - Implemented Paint (), to do class specific painting.
33693 2004-10-15 07:16 ravindra
33696 - Redraw () is not virtual now.
33697 - Added an internal virtual method Paint (), so that
33698 derived classes can do their painting on their own.
33699 - Modified OnPaint () to call Paint ().
33701 2004-10-15 06:43 jordi
33703 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
33704 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
33706 2004-10-15 00:30 ravindra
33709 - MessageBox on windows does not have min/max buttons.
33710 This change in CreateParams fixes this on Windows. We
33711 still need to implement this windowstyle behavior in
33714 2004-10-14 05:14 ravindra
33717 - Changed Redraw () to do a Refresh () always.
33718 - Fixed the MouseMove event handling when mouse is pressed,
33719 ie drag event handling.
33720 - Replaced the usage of ToolBarButton.Pressed property to
33721 ToolBarButton.pressed internal variable.
33723 2004-10-14 05:10 ravindra
33725 * ToolBarButton.cs:
33726 - Added an internal member 'inside' to handle mouse move
33727 with mouse pressed ie mouse drag event.
33728 - Changed 'Pressed' property to return true only when
33729 'inside' and 'pressed' are both true.
33730 - Some coding style love.
33732 2004-10-14 00:17 ravindra
33734 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
33737 2004-10-14 00:15 ravindra
33739 * ButtonBase.cs: Redraw () related improvements.
33741 2004-10-14 00:14 ravindra
33743 * MessageBox.cs: Moved InitFormSize () out of Paint method and
33744 removed unnecessary calls to Button.Show () method.
33746 2004-10-13 17:50 pbartok
33750 - Removed destroying of window until we solve the problem of X
33751 destroying the window before us on shutdown
33753 2004-10-13 16:32 pbartok
33756 - Now Redraws on MouseUp for FlatStyle Flat and Popup
33758 2004-10-13 14:18 pbartok
33761 - Added code to destroy the X window
33763 2004-10-13 14:18 pbartok
33766 - Added code to destroy a window
33768 2004-10-13 14:12 pbartok
33771 - Added the Redraw on Resize that got dropped in the last rev
33773 2004-10-13 09:06 pbartok
33775 * ThemeWin32Classic.cs:
33776 - Path from John BouAntoun:
33777 * Fix check rendering (centre correctly for normal style, offset
33778 correctly for FlatStyle).
33779 * Fix border color usage (use backcolor) for FlatStyle.Popup
33780 * Use checkbox.Capture instead of checkbox.is_pressed when
33781 rendering flatstyle states.
33783 2004-10-12 21:48 pbartok
33785 * ThemeWin32Classic.cs:
33786 - Removed all occurences of SystemColors and replaced them with the
33787 matching theme color
33789 2004-10-12 21:41 pbartok
33791 * ThemeWin32Classic.cs:
33792 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
33793 him using the function for flatstyle drawing
33794 - Changed functions to use the new version of CPDrawBorder3D
33796 2004-10-12 21:15 pbartok
33799 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
33800 match MS documentation. They need to return defined colors if the
33801 passed color matches the configured control color. Thanks to John
33802 BouAntoun for pointing this out.
33804 2004-10-12 20:57 pbartok
33807 - Fix from John BouAntoun: Raise ForeColorChanged event when text
33810 2004-10-12 20:46 pbartok
33813 - Fix from John BouAntoun: Now properly sets the Appearance property
33815 2004-10-12 20:45 pbartok
33817 * ThemeWin32Classic.cs:
33818 - Fixes from John BouAntoun: now handles forecolors and backcolors
33819 for flatstyle rendered controls much better; It also fixes normal
33820 checkbox rendering when pushed or disabled.
33822 2004-10-08 02:50 jordi
33824 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
33827 2004-10-07 08:56 jordi
33829 * ThemeWin32Classic.cs: Removes deletion of cached brushes
33831 2004-10-06 03:59 jordi
33833 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
33834 XplatUIWin32.cs: removes warnings from compilation
33836 2004-10-05 12:23 jackson
33838 * RadioButton.cs: Fix ctor
33840 2004-10-05 11:10 pbartok
33843 - Partial implementation by Benjamin Dasnois
33845 2004-10-05 10:15 jackson
33847 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
33850 2004-10-05 03:07 ravindra
33853 - Removed a private method, Draw ().
33854 - Fixed the ButtonDropDown event handling.
33855 - Fixed MouseMove event handling.
33857 2004-10-05 03:04 ravindra
33859 * ThemeWin32Classic.cs:
33860 - Added DrawListView method and ListViewDefaultSize property.
33861 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
33862 - Changed DOS style CRLF to Unix format (dos2unix).
33864 2004-10-05 03:03 ravindra
33867 - Added DrawListView method and ListViewDefaultSize property.
33869 2004-10-05 02:42 ravindra
33871 * ToolBarButton.cs: Added an internal member dd_pressed to handle
33872 clicks on DropDown arrow.
33874 2004-10-04 22:56 jackson
33876 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
33877 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
33878 Control handle the buffers, derived classes should not have to
33879 CreateBuffers themselves.
33881 2004-10-04 21:20 jackson
33883 * StatusBar.cs: The control handles resizing the buffers now.
33885 2004-10-04 21:18 jackson
33887 * Control.cs: When resizing the buffers should be invalidated. This
33888 should be handled in Control not in derived classes.
33890 2004-10-04 14:45 jackson
33894 2004-10-04 02:14 pbartok
33896 * LeftRightAlignment.cs:
33899 2004-10-04 01:09 jordi
33901 * ThemeWin32Classic.cs: fixes right button position causing right
33902 button not showing on horizontal scrollbars
33904 2004-10-02 13:12 pbartok
33907 - Simplified the Invalidate method by using an X call instead of
33908 generating the expose ourselves
33909 - Added an expose when the window background is changed
33910 - Implemented ClientToScreen method
33912 2004-10-02 13:08 pbartok
33915 - Added Win32EnableWindow method (test for implementing modal
33917 - Added ClientToScreen method and imports
33919 2004-10-02 13:07 pbartok
33921 * XplatUI.cs, XplatUIDriver.cs:
33922 - Added ClientToScreen coordinate translation method
33924 2004-10-02 13:06 pbartok
33926 * KeyPressEventArgs.cs:
33927 - Fixed access level for constructor
33929 2004-10-02 13:06 pbartok
33932 - Changed access level for the window_collection hash table
33934 2004-10-02 13:05 pbartok
33937 - Added KeyPreview property
33938 - Added Menu property (still incomplete, pending Jordi's menu work)
33939 - Implemented ProcessCmdKey
33940 - Implemented ProcessDialogKey
33941 - Implemented ProcessKeyPreview
33943 2004-10-02 13:02 pbartok
33946 - Added private method to get the Control object from the window
33948 - Implemented ContextMenu property
33949 - Implemented PointToScreen
33950 - Implemented PreProcessMessage
33951 - Implemented IsInputChar
33952 - Implemented IsInputKey
33953 - Implemented ProcessCmdKey
33954 - Completed ProcessKeyEventArgs
33955 - Fixed message loop to call the proper chain of functions on key
33957 - Implemented ProcessDialogChar
33958 - Implemented ProcessDialogKey
33959 - Implemented ProcessKeyMessage
33960 - Implemented ProcessKeyPreview
33961 - Added RaiseDragEvent stub (MS internal method)
33962 - Added RaiseKeyEvent stub (MS internal method)
33963 - Added RaiseMouseEvent stub (MS Internal method)
33964 - Added RaisePaintEvent stub (MS Internal method)
33965 - Added ResetMouseEventArgs stub (MS Internal method)
33966 - Implemented RtlTranslateAlignment
33967 - Implemented RtlTranslateContent
33968 - Implemented RtlTranslateHorizontal
33969 - Implemented RtlTranslateLeftRight
33970 - Added generation of KeyPress event
33972 2004-10-02 05:57 ravindra
33974 * ListViewItem.cs: Added attributes.
33976 2004-10-02 05:32 ravindra
33978 * ListView.cs: Added attributes.
33980 2004-10-01 11:53 jackson
33982 * Form.cs: Implement the Close method so work on MessageBox can
33985 2004-09-30 14:06 pbartok
33990 2004-09-30 11:34 jackson
33992 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
33994 2004-09-30 07:26 ravindra
33996 * ListViewItemConverter.cs: Converter for ListViewItem.
33998 2004-09-30 07:26 ravindra
34000 * SortOrder.cs: Enum for ListView control.
34002 2004-09-30 07:25 ravindra
34004 * ColumnHeader.cs: Supporting class for ListView control.
34006 2004-09-30 07:24 ravindra
34008 * ListView.cs, ListViewItem.cs: Initial implementation.
34010 2004-09-30 07:20 ravindra
34012 * ItemActivation.cs: Enum for ListView Control.
34014 2004-09-29 20:29 pbartok
34017 - Added lookup of pixel value for background color; tries to get a
34018 color 'close' to the requested color, it avoids having to create a
34019 colormap. Depending on the display this could mean the used color
34020 is slightly off the desired color. Might have to change it to a more
34021 resource intensive colormap approach, but it will work as a
34022 workaround to avoid red screens.
34024 2004-09-29 14:27 jackson
34026 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
34028 2004-09-28 12:44 pbartok
34030 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
34031 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
34032 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
34033 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
34034 TrackBar.cs, VScrollBar.cs:
34035 - Streamlined Theme interfaces:
34036 * Each DrawXXX method for a control now is passed the object for
34037 the control to be drawn in order to allow accessing any state the
34038 theme might require
34040 * ControlPaint methods for the theme now have a CP prefix to avoid
34041 name clashes with the Draw methods for controls
34043 * Every control now retrieves it's DefaultSize from the current
34046 2004-09-28 12:17 jackson
34048 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
34051 2004-09-24 14:57 jackson
34053 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
34054 Gives us a nice little performance boost.
34056 2004-09-24 12:02 jackson
34058 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
34059 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
34060 Control and supporting classes. Initial checkin
34062 2004-09-23 13:08 jackson
34064 * Form.cs: Temp build fixage
34066 2004-09-23 01:39 ravindra
34068 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
34069 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
34070 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
34071 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
34072 EventHandlers needed by ListView Control.
34074 2004-09-22 14:12 pbartok
34076 * ScrollableControl.cs:
34077 - Implemented DockPadding property
34078 - Implemented AutoScroll property
34079 - Implemented AutoScrollMargin property
34080 - Implemented AutoScrollMinSize property
34081 - Implemented AutoScrollPosition property
34082 - Implemented DisplayRectangle property (still incomplete)
34083 - Implemented CreateParams property
34084 - Implemented HScroll property
34085 - Implemented VScroll property
34086 - Implemented OnVisibleChanged property
34088 2004-09-22 14:09 pbartok
34091 - Added Form.ControllCollection class
34092 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
34093 RemoveOwnedForm (still incomplete, missing on-top and common
34094 minimize/maximize behaviour)
34095 - Added StartPosition property (still incomplete, does not use when
34097 - Added ShowDialog() methods (still incomplete, missing forcing the
34100 2004-09-22 14:05 pbartok
34103 - Added message loop for modal dialogs
34105 2004-09-22 14:02 pbartok
34108 - Fixed wrong types for events
34110 2004-09-22 14:00 pbartok
34112 * Shortcut.cs, FormWindowState.cs:
34113 - Fixed wrong values
34115 2004-09-22 12:01 jackson
34117 * Control.cs: Text is never null
34119 2004-09-20 22:14 pbartok
34122 - Fixed accessibility level for Idle handler
34124 2004-09-20 18:54 jackson
34126 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34127 XplatUIX11.cs: New message loop that uses poll so we don't get a
34130 2004-09-17 10:43 pbartok
34133 - Fixed behaviour of arrow buttons. Now properly behaves like
34134 Buttons (and like Microsoft's scrollbar arrow buttons)
34136 2004-09-17 10:14 pbartok
34139 - Added missing release of keyboard/mouse capture
34141 2004-09-17 06:18 jordi
34143 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
34144 Theme.cs: Very early menu support
34146 2004-09-16 17:45 pbartok
34149 - Fixed sending a window to the front
34150 - Added overload for SetWindowPos to avoid casting
34152 2004-09-16 17:44 pbartok
34155 - Added SendToBack and BringToFront methods
34157 2004-09-16 07:00 ravindra
34159 * Copyright: Added Novell URL.
34161 2004-09-16 07:00 ravindra
34163 * ToolBar.cs: Invalidate should be done before redrawing.
34165 2004-09-15 21:19 ravindra
34167 * ColumnHeaderStyle.cs: Enum for ListView Control.
34169 2004-09-15 21:18 ravindra
34171 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
34174 2004-09-13 18:26 jackson
34176 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
34179 2004-09-13 18:13 jackson
34181 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
34182 a second thread and post messages into the main threads message
34183 queue. This makes timing much more consistent. Both win2K and XP
34184 have a minimum timer value of 15 milliseconds, so we now do this
34187 2004-09-13 15:18 pbartok
34189 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34191 - Added Z-Ordering methods
34193 2004-09-13 10:56 pbartok
34196 - Fixed #region names
34197 - Moved properties and methods into their proper #regions
34199 2004-09-13 10:51 pbartok
34202 - Added Accept and CancelButton properties
34203 - Added ProcessDialogKey() method
34205 2004-09-13 08:18 pbartok
34207 * IWindowTarget.cs:
34210 2004-09-10 21:50 pbartok
34213 - Added DoDragDrop() [incomplete]
34214 - Properly implemented 'Visible' handling
34215 - Added SetVisibleCore()
34216 - Implemented FindChildAtPoint()
34217 - Implemented GetContainerControl()
34218 - Implemented Hide()
34220 2004-09-10 19:28 pbartok
34223 - Moved methods into their appropriate #regions
34224 - Reordered methods within regions alphabetically
34226 2004-09-10 18:57 pbartok
34228 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34229 - Added method to retrieve text from window
34231 2004-09-10 18:56 pbartok
34234 - Moved some internal functions into the internal region
34235 - Implemented FontHeight
34236 - Implemented RenderRightToLeft
34237 - Implemented ResizeRedraw
34238 - Implemented ShowFocusCues
34239 - Implemented ShowKeyboardCues
34240 - Implemented FromChildHandle
34241 - Implemented FromHandle
34242 - Implemented IsMnemonic
34243 - Implemented ReflectMessage
34244 - All public and protected Static Methods are now complete
34246 2004-09-10 16:54 pbartok
34249 - Implemented remaining missing public instance properties
34250 - Alphabetized some out of order properties
34252 2004-09-10 05:51 ravindra
34254 * PictureBox.cs: Added a check for null image.
34256 2004-09-10 00:59 jordi
34258 * GroupBox.cs: remove cvs tag
34260 2004-09-09 05:25 ravindra
34262 * ToolBar.cs: Make redraw accessible from ToolBarButton.
34264 2004-09-09 05:23 ravindra
34266 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
34269 2004-09-09 02:28 pbartok
34271 * ThemeWin32Classic.cs:
34272 - Improve disabled string look
34274 2004-09-09 01:15 jordi
34276 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
34279 2004-09-08 23:56 ravindra
34281 * ItemBoundsPortion.cs: It's enum, not a class!
34283 2004-09-08 23:47 ravindra
34285 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
34288 2004-09-08 21:13 ravindra
34290 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
34293 2004-09-08 21:03 ravindra
34295 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
34298 2004-09-08 21:01 ravindra
34300 * ScrollableControl.cs: Removed unreachable code.
34302 2004-09-08 06:45 jordi
34304 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
34306 2004-09-08 01:00 jackson
34308 * XplatUIX11.cs: Only run the timers when updating the message
34309 queue. This effectively gives X messages a higher priority then
34310 timer messages. Timers still need love though
34312 2004-09-07 14:01 jackson
34314 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
34315 this for us and the handle is no longer valid.
34317 2004-09-07 13:59 jackson
34319 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
34320 loop that manages to not crash. TODO: Add poll and cleanup timers
34322 2004-09-07 11:12 jordi
34324 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
34326 2004-09-07 03:40 jordi
34328 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
34329 fixes, methods, multiple links
34331 2004-09-06 06:55 jordi
34333 * Control.cs: Caches ClientRectangle rectangle value
34335 2004-09-05 02:03 jordi
34337 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
34340 2004-09-04 11:10 jordi
34342 * Label.cs: Refresh when font changed
34344 2004-09-02 16:24 pbartok
34347 - Added sanity check to creation of double buffer bitmap
34349 2004-09-02 16:24 pbartok
34352 - Fixed selection of text color
34353 - Fixed handling of resize event; now properly recreates double
34355 - Added missing assignment of TextAlignment
34356 - Added proper default for TextAlignment
34358 2004-09-02 14:26 pbartok
34361 - Added missing RadioButton.RadioButtonAccessibleObject class
34363 2004-09-02 14:26 pbartok
34366 - Added missing Control.ControlAccessibleObject class
34367 - Started to implement Select()ion mechanisms, still very incomplete
34369 2004-09-02 14:25 pbartok
34371 * AccessibleObject.cs:
34372 - Added missing methods
34374 2004-09-02 14:23 pbartok
34376 * AccessibleNavigation.cs, AccessibleSelection.cs:
34379 2004-09-02 10:32 jordi
34381 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
34382 pool for pens, brushes, and hatchbruses
34384 2004-09-01 15:30 jackson
34386 * StatusBar.cs: Fix typo
34388 2004-09-01 14:44 pbartok
34393 2004-09-01 14:39 pbartok
34395 * Button.cs, RadioButton.cs:
34396 - Functional initial check-in
34398 2004-09-01 14:01 pbartok
34401 - Added missing default
34402 - Added missing region mark
34404 2004-09-01 09:10 jordi
34406 * Label.cs: fixes method signatures, new methods, events, fixes
34409 2004-09-01 07:19 jordi
34411 * Control.cs: Init string variables with an empty object
34413 2004-09-01 04:20 jordi
34415 * Control.cs: fires OnFontChanged event
34417 2004-08-31 20:07 pbartok
34420 - Enabled display of strings
34422 2004-08-31 20:05 pbartok
34425 - Added (partial) implementation of DialogResult; rest needs to be
34426 implemented when the modal loop code is done
34428 2004-08-31 19:55 pbartok
34431 - Fixed to match the removal of the needs_redraw concept
34433 2004-08-31 19:55 pbartok
34436 - Removed the rather odd split between 'needs redraw' and redrawing
34437 - Now handles the events that require regeneration (ambient
34438 properties and size)
34440 2004-08-31 19:41 pbartok
34443 - Added firing of BackColorChanged event
34444 - Added TopLevelControl property
34445 - Fixed handling of WM_ERASEBKGRND message
34447 2004-08-31 12:49 pbartok
34453 2004-08-31 12:48 pbartok
34456 - Finished (famous last words)
34458 2004-08-31 04:35 jordi
34460 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
34461 scrolling bugs, adds new methods
34463 2004-08-30 14:42 pbartok
34466 - Implemented CheckBox drawing code
34468 2004-08-30 14:42 pbartok
34471 - Made Redraw() and CheckRedraw() virtual
34472 - Improved mouse up/down/move logic to properly track buttons
34474 2004-08-30 09:44 pbartok
34477 - Updated to fix broken build. Not complete yet.
34479 2004-08-30 09:28 pbartok
34484 2004-08-30 09:17 pbartok
34489 2004-08-27 16:12 ravindra
34491 * ToolBarButton.cs: Added TypeConverter attribute.
34493 2004-08-27 16:07 ravindra
34495 * ImageIndexConverter.cs: Implemented.
34497 2004-08-27 14:17 pbartok
34500 - Removed unneeded stack vars
34501 - First attempt to fix sizing issues when layout is suspended
34503 2004-08-25 15:35 jordi
34505 * ScrollBar.cs: more fixes to scrollbar
34507 2004-08-25 14:04 ravindra
34509 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
34510 Added the missing divider code and grip for ToolBar Control.
34512 2004-08-25 13:20 pbartok
34515 - Control now properly passes the ambient background color to child
34518 2004-08-25 13:20 jordi
34520 * ScrollBar.cs: small bug fix regarding bar position
34522 2004-08-25 12:33 pbartok
34525 - Now only calls SetTimer or KillTimer if the enabled state has
34528 2004-08-25 12:33 pbartok
34531 - Fixed timer handling, now seems to work
34532 - Improved error message for window creation
34534 2004-08-25 12:32 pbartok
34537 - Fixed generation of MouseUp message
34539 2004-08-25 12:29 jordi
34541 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
34542 and fixes for progressbar
34544 2004-08-24 18:43 ravindra
34546 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
34547 in ToolBar control.
34549 2004-08-24 17:15 pbartok
34553 - Added missing events
34556 2004-08-24 17:14 pbartok
34558 * StatusBar.cs, PictureBox.cs:
34559 - Now uses Control's CreateParams
34561 2004-08-24 16:36 pbartok
34564 - Fixed background color handling
34565 - Fixed sending of enter/leave events on a grab
34567 2004-08-24 16:35 pbartok
34570 - Refined definitions for CrossingEvent
34572 2004-08-24 12:37 jordi
34574 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
34575 formmating, methods signature, and adds missing events
34577 2004-08-24 12:24 jordi
34579 * Control.cs: fire OnEnabledChanged event
34581 2004-08-24 11:17 pbartok
34584 - Implemented SetTimer() and KillTimer()
34586 2004-08-24 11:16 pbartok
34589 - Now uses Remove instead of Add to kill the timer
34591 2004-08-24 10:16 jackson
34593 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
34594 picture boxes in the theme now. Draw picture box borders and obey
34597 2004-08-24 05:49 jackson
34599 * Timer.cs: Remove top secret debugging code
34601 2004-08-24 05:34 jackson
34603 * PictureBox.cs: Temp hack to make picture boxes draw their full
34606 2004-08-24 05:29 jackson
34608 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34609 XplatUIX11.cs: Move timers to the driver level. On X they are
34610 queued by the driver and checked on idle.
34612 2004-08-24 01:07 jackson
34614 * XplatUIX11.cs: Use a queue for async messages instead of passing
34615 them as ClientMessages since that was totally broken. Also simply
34616 check for events and return an idle message if none are found. This
34617 gives us an idle handler, and prevents deadlocking when no messages
34620 2004-08-23 18:19 ravindra
34622 * XplatUIWin32.cs: Removed the unwanted destructor.
34624 2004-08-23 17:27 pbartok
34627 - Finishing touches. Works now, just needs some optimizations.
34629 2004-08-23 16:53 jordi
34631 * ScrollBar.cs: small fix
34633 2004-08-23 16:45 pbartok
34636 - Removed debug output
34639 2004-08-23 16:43 jordi
34641 * ScrollBar.cs: [no log message]
34643 2004-08-23 16:10 pbartok
34646 - Fixed handling of WM_CLOSE message
34647 - Removed debug output
34649 2004-08-23 16:09 pbartok
34652 - Added handling of Idle event
34653 - Added handling of form closing
34654 - Fixed reporting of MessageLoop property
34655 - Removed some unneeded code, should provide a bit of a speedup
34657 2004-08-23 15:22 pbartok
34660 - Added InitLayout() method
34661 - Added code to properly perform layout when Anchor or Dock property
34663 - Changed 'interpretation' of ResumeLayout. MS seems to have a
34664 LAMESPEC, tried to do it in a way that makes sense
34666 2004-08-23 14:10 jordi
34668 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
34669 properties and methods
34671 2004-08-23 13:55 pbartok
34674 - Properly fixed Jordi's last fix
34675 - Now uses Cursor's Position property instead of calling XplatUI
34678 2004-08-23 13:44 jordi
34680 * PaintEventHandler.cs: Adding missing attribute
34682 2004-08-23 13:39 pbartok
34685 - Implemented Position property
34687 2004-08-23 13:39 pbartok
34689 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34690 - Added method to move mouse cursor
34692 2004-08-23 13:39 pbartok
34695 - Fixed setting of background color
34696 - Added method to move mouse cursor
34698 2004-08-23 13:16 jordi
34700 * Control.cs: avoids null exception
34702 2004-08-22 17:46 jackson
34704 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
34707 2004-08-22 17:40 jackson
34709 * XplatUIX11.cs: Add some missing locks
34711 2004-08-22 15:10 pbartok
34713 * Control.cs, Form.cs:
34714 - Removed OverlappedWindow style from Control, instead it's default
34716 - Made form windows OverlappedWindow by default
34718 2004-08-22 13:34 jackson
34720 * ScrollBar.cs: Update the position through the Value property so
34721 the OnValueChanged event is raised.
34723 2004-08-22 12:04 pbartok
34726 - Added Cursor.cs and UserControl.cs
34728 2004-08-22 12:03 pbartok
34731 - Started implementation, not usable yet
34733 2004-08-22 12:00 pbartok
34736 - Implemented UserControl (complete)
34738 2004-08-21 19:20 ravindra
34740 * ToolBar.cs: Correcting the formatting mess of VS.NET.
34742 2004-08-21 18:49 ravindra
34744 * ToolBar.cs: Probably this completes the missing attributes in
34747 2004-08-21 18:03 ravindra
34749 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
34750 Fixed toolbar control signatures.
34752 2004-08-21 16:32 pbartok
34757 2004-08-21 16:30 pbartok
34762 2004-08-21 16:19 pbartok
34764 * Control.cs, Label.cs:
34767 2004-08-21 15:57 pbartok
34770 - Added loads of debug output for development
34771 - Fixed typo in method name
34773 2004-08-21 15:52 pbartok
34775 * ToolBarButtonClickEventArgs.cs:
34776 - Added missing base class
34778 2004-08-21 14:53 pbartok
34781 - Updated to match new GrabWindow signature
34783 2004-08-21 14:51 pbartok
34785 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34786 - Added method to get default display size
34788 2004-08-21 14:23 pbartok
34790 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34791 - Added method to query current grab state
34792 - Added argument to allow confining a grab to a window
34794 2004-08-21 14:22 pbartok
34797 - Added [Flags] attribute so that modifiers can be used in bitwise
34800 2004-08-21 14:21 pbartok
34802 * TrackBar.cs, ScrollBar.cs:
34803 - Replaced direct XplatUI calls with their Control counterpart
34805 2004-08-21 13:32 pbartok
34808 - Implemented Created property
34810 2004-08-21 13:28 pbartok
34813 - Implemented ContainsFocus
34815 2004-08-21 13:26 pbartok
34818 - Implemented CausesValidation
34820 2004-08-21 13:21 pbartok
34823 - Implemented CanFocus
34824 - Implemented CanSelect
34825 - Implemented Capture
34827 2004-08-21 12:35 pbartok
34830 - Fixed bug with Async message handling
34831 - Implemented getting the ModifierKeys
34833 2004-08-21 12:32 jackson
34835 * AsyncMethodResult.cs: Make sure we have the mutex before we
34836 release it. Fixes BeginInvoke on windows
34838 2004-08-21 11:31 pbartok
34840 * XplatUIWin32.cs, XplatUIX11.cs:
34841 - Drivers now return proper mouse state
34843 2004-08-21 10:54 jackson
34845 * Control.cs: Implement EndInvoke
34847 2004-08-21 10:48 jackson
34849 * Timer.cs: Remove unneeded finalizer
34851 2004-08-20 19:52 ravindra
34853 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
34854 in mouse event handling in the ToolBar control.
34856 2004-08-20 19:50 ravindra
34858 * ImageList.cs: Changed draw method to use the arguments passed in
34861 2004-08-20 18:58 pbartok
34863 * XplatUIStructs.cs:
34864 - Added private message for async communication
34866 2004-08-20 17:38 ravindra
34868 * Control.cs: Made RightToLeft property virtual and removed a
34871 2004-08-20 14:39 jordi
34873 * ThemeGtk.cs: use style_attach
34875 2004-08-20 14:39 pbartok
34878 - Added jackson's Async code from X11 to Win32
34880 2004-08-20 14:09 pbartok
34883 - Added all new files
34885 2004-08-20 14:09 pbartok
34888 - Added call to set window background color
34890 2004-08-20 14:03 pbartok
34892 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34893 - Added method for setting the window background
34895 2004-08-20 14:02 pbartok
34898 - Added method for setting the background color
34899 - Added handling for erasing the window background
34901 2004-08-20 13:45 jordi
34903 * TrackBar.cs: fixes timer, new properties and methods
34905 2004-08-20 13:34 jackson
34907 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
34910 2004-08-20 13:22 jackson
34912 * Timer.cs: Timer Tick events are now handed through Controls Async
34913 mechanism so the callbacks are executed in the same thread as X
34915 2004-08-20 13:19 jackson
34917 * XplatUIDriver.cs: Expose functionality to send async messages
34920 2004-08-20 13:18 jackson
34922 * Control.cs: Implement Begininvoke
34924 2004-08-20 13:14 jackson
34926 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
34927 messages through the driver
34929 2004-08-20 13:12 jackson
34931 * XplatUIX11.cs: Lock before all X operations. Also added Async
34932 method functionality through XSendEvent
34934 2004-08-20 13:11 jackson
34936 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
34937 This will screw up on 64 bit systems)
34939 2004-08-20 13:10 jackson
34941 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
34942 Async messages through X/Win32
34944 2004-08-19 19:39 pbartok
34947 - Updated code to match new HandleData.DeviceContext type
34949 2004-08-19 19:38 pbartok
34952 - Made DeviceContext a generic object to allow usage from various
34954 - Added support for queueing Windows messages
34956 2004-08-19 19:37 pbartok
34959 - Added generation of MouseEnter, MouseLeave and MouseHover events
34960 - Added cleanup on EndPaint
34962 2004-08-19 19:17 pbartok
34965 - Added handling of WM_MOUSEHOVER
34966 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
34969 2004-08-19 18:55 jordi
34971 * ThemeGtk.cs: fixes button order
34973 2004-08-19 18:12 jordi
34975 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
34977 2004-08-19 17:09 pbartok
34980 - Added Right property
34981 - Added RightToLeft property
34983 2004-08-19 16:27 jordi
34985 * ThemeGtk.cs: experimental GTK theme support
34987 2004-08-19 16:26 jordi
34989 * ITheme.cs, Theme.cs: move themes from an interface to a class
34991 2004-08-19 16:25 jordi
34993 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
34996 2004-08-19 16:04 pbartok
34999 - Added colormap basics
35000 - Added a way to re-initialize with a different display handle
35001 - Fixed setting of the window background color
35002 - Added various X11 imports related to colors and colormaps
35004 2004-08-19 15:51 pbartok
35007 - Removed packing hints (Paolo suggested this a while back)
35008 - fixed colormap type
35009 - Added default Atom types
35010 - Added Screen and color structs and enums
35012 2004-08-19 15:39 pbartok
35015 - Added missing Draw() method
35016 - Added missing RecreateHandle event
35018 2004-08-19 15:30 pbartok
35021 - Added handling of WM_CLOSE
35023 2004-08-18 13:16 jordi
35025 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
35028 2004-08-18 09:56 jordi
35030 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
35032 2004-08-17 15:31 ravindra
35034 * SWF.csproj: Updated project.
35036 2004-08-17 15:25 pbartok
35039 - Drawing improvement; don't call UpdateBounds if we are not visible
35040 (or have been minimized)
35042 2004-08-17 15:24 pbartok
35045 - Finished IsVisible
35046 - Added Win32GetWindowPlacement
35048 2004-08-17 15:08 jackson
35050 * Panel.cs: Initial checkin of the Panel
35052 2004-08-17 14:25 pbartok
35055 - Fixed broken handling of default window sizes
35057 2004-08-17 13:29 jackson
35059 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
35060 has a large startup time.
35062 2004-08-17 10:25 jackson
35064 * HandleData.cs: union areas properly
35066 2004-08-17 10:12 jackson
35068 * HandleData.cs: union areas properly
35070 2004-08-16 20:00 ravindra
35072 * ToolBar.cs, ToolBarButton.cs: Added attributes.
35074 2004-08-16 18:48 ravindra
35076 * ToolBar.cs: Added attributes.
35078 2004-08-16 17:17 ravindra
35080 * SWF.csproj: Updated project.
35082 2004-08-16 17:16 jackson
35084 * XplatUIX11.cs: Check for more expose events before sending a
35085 WM_PAINT so they can all be grouped together. This makes dragging a
35086 window across another window redraw in a sane way.
35088 2004-08-16 15:47 pbartok
35091 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
35092 support OnMouseEnter/Leave()
35093 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
35096 2004-08-16 15:46 pbartok
35098 * XplatUIStructs.cs, XplatUIX11.cs:
35099 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
35100 OnMouseEnter/Leave()
35102 2004-08-16 15:34 jackson
35104 * XplatUIX11.cs: Group multiple expose events in HandleData, make
35105 sure messages get the message field set to WM_NULL if they are not
35108 2004-08-16 15:24 jackson
35110 * HandleData.cs: HandleData is used for storing message information
35113 2004-08-15 17:23 ravindra
35115 * ColorDepth.cs: Added attribute.
35117 2004-08-15 17:23 ravindra
35119 * SWF.csproj: Updated project for ToolBar Control.
35121 2004-08-15 17:20 ravindra
35123 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
35124 control and also dos2unix format.
35126 2004-08-15 17:13 ravindra
35128 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
35129 ToolBarButtonClickEventArgs.cs,
35130 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
35131 ToolBarTextAlign.cs: First Implementation of ToolBar control.
35133 2004-08-15 15:31 pbartok
35136 - First (mostly) working version
35138 2004-08-13 16:15 pbartok
35141 - Fixed Anchor default
35143 2004-08-13 15:43 pbartok
35146 - Changed GetCursorPos signature
35148 2004-08-13 15:42 pbartok
35150 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35151 - Changed signature for GetCursorPos
35153 2004-08-13 15:25 pbartok
35157 - Fixed resizing/exposure handling
35159 2004-08-13 15:22 jordi
35161 * ThemeWin32Classic.cs: removes redundant code and fixes issues
35164 2004-08-13 14:55 jordi
35166 * TrackBar.cs: change from wndproc to events
35168 2004-08-13 13:00 jordi
35170 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35171 XplatUIX11.cs: implements PointToClient (ScreenToClient)
35173 2004-08-13 12:53 pbartok
35176 - Changed GetWindowPos to also provide client area size
35177 - Fixed broken prototypes for several win32 functions
35179 2004-08-13 12:53 pbartok
35181 * XplatUI.cs, XplatUIDriver.cs:
35182 - Changed GetWindowPos to also provide client area size
35184 2004-08-13 12:52 pbartok
35187 - Added generation of WM_POSCHANGED
35188 - Changed GetWindowPos to also provide client area size
35190 2004-08-13 12:52 pbartok
35193 - Added Dispose() and destructor
35194 - Fixed resizing and bounds calculation
35196 - Added memory savings for invisible windows
35198 2004-08-13 12:46 jordi
35200 * TrackBar.cs: adds timer and grap window
35202 2004-08-13 10:25 jackson
35204 * Timer.cs: SWF Timer
35206 2004-08-12 16:59 pbartok
35208 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35209 - Implemented method to get current mouse position
35211 2004-08-12 14:29 jordi
35213 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
35214 enhancement, fix mouse problems, highli thumb, etc
35216 2004-08-12 13:31 pbartok
35219 - Fixed Anchoring bugs
35221 2004-08-12 13:01 jackson
35223 * StatusBar.cs: Don't forget things
35225 2004-08-12 12:54 jackson
35227 * ThemeWin32Classic.cs: Handle owner draw status bars
35229 2004-08-12 12:54 jackson
35231 * StatusBar.cs: Implement missing properties, events, and methods.
35232 Handle mouse clicking
35234 2004-08-12 10:19 jackson
35236 * StatusBarPanelClickEventArgs.cs,
35237 StatusBarPanelClickEventHandler.cs: Classes for handling status
35238 bar panel click events
35240 2004-08-12 10:10 jackson
35242 * Control.cs: Add missing properties
35244 2004-08-12 09:46 pbartok
35246 * BindingsManagerBase.cs:
35247 - Name changed to BindingManagerBase.cs
35249 2004-08-12 09:25 jordi
35251 * ScrollableControl.cs: calls ctrlbase instead of exeception
35253 2004-08-11 16:28 pbartok
35255 * InputLanguageChangingEventArgs.cs:
35256 - Never check in before compiling. Fixes the last check-in
35258 2004-08-11 16:26 pbartok
35260 * InputLanguageChangingEventArgs.cs:
35261 - More signature fixes
35263 2004-08-11 16:20 pbartok
35265 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
35266 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
35267 ImageListStreamer.cs, InputLanguage.cs,
35268 InputLanguageChangedEventArgs.cs,
35269 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
35270 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
35271 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
35272 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35275 2004-08-11 16:16 pbartok
35279 - Added .Net 1.1 method
35281 2004-08-11 15:25 pbartok
35284 - Fixed BindingManagerBase.cs filename
35286 2004-08-11 15:22 pbartok
35288 * BindingManagerBase.cs:
35289 - Was checked in with wrong filename
35291 2004-08-11 14:50 pbartok
35296 2004-08-11 13:41 jordi
35298 * XplatUIWin32.cs: Fixes ClientRect
35300 2004-08-11 13:19 pbartok
35302 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35304 - We had SetWindowPos and MoveWindow to set window positions and
35305 size, removed MoveWindow. We have GetWindowPos, so it made sense to
35306 keep SetWindowPos as matching counterpart
35307 - Added some X11 sanity checking
35309 2004-08-11 12:59 pbartok
35312 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
35313 (It seems that SetBounds is just a front for SetBoundsCore and
35314 SetBoundsCore updates the underlying window system and
35315 UpdateBounds is responsible for updating the variables associated
35316 with the Control and sending the events)
35317 - Major cleanup of Size handling; we now have two sizes, client_size
35318 and bounds. Bounds defines the window with decorations, client_size
35321 2004-08-11 12:55 pbartok
35323 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35324 - Added method to calculate difference between decorated window and
35327 2004-08-11 12:54 pbartok
35330 - Forcing redraw on resize
35332 2004-08-11 11:43 pbartok
35335 - Removed disposing of the actual images when the list is disposed
35337 2004-08-11 09:13 pbartok
35340 - Now properly reparents windows
35342 2004-08-11 08:37 pbartok
35347 2004-08-11 07:47 pbartok
35350 - Rewrote the collection stuff. Might not be as fast now, not
35351 keeping the number of children around and accessible directly, but
35352 it's more straightforward
35354 2004-08-11 07:44 pbartok
35356 * AccessibleObject.cs:
35357 - Fixed to match ControlCollection rewrite
35359 2004-08-11 07:43 pbartok
35362 - Added missing creation of the collection list
35364 2004-08-10 20:08 jackson
35366 * StatusBar.cs: Get the paint message from WndProc
35368 2004-08-10 19:31 jackson
35370 * ThemeWin32Classic.cs: Create Brushes as little as possible
35372 2004-08-10 19:20 jackson
35374 * UICues.cs: Add Flags attribute
35376 2004-08-10 19:19 jackson
35378 * StatusBarPanel.cs: Signature cleanup
35380 2004-08-10 19:10 jackson
35382 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
35383 Initial implementation of status bar item drawing
35385 2004-08-10 17:27 jordi
35387 * TrackBar.cs: add missing methods, properties, and restructure to
35390 2004-08-10 16:24 jackson
35392 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
35393 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
35396 2004-08-10 13:21 jordi
35398 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
35399 enhancements and standarize on win colors defaults
35401 2004-08-10 12:52 jackson
35403 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
35404 ThemeWin32Classic.cs: Implement DrawItem functionality
35406 2004-08-10 12:47 jordi
35408 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
35410 2004-08-10 12:32 jordi
35412 * Control.cs: throw ontextchange event
35414 2004-08-10 11:43 pbartok
35417 - Added more to the still unfinished Dock/Anchor layout code
35419 2004-08-10 11:39 pbartok
35421 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35422 - Added GetWindowPos method
35424 2004-08-10 11:36 pbartok
35427 - Implemented several methods
35429 2004-08-10 09:47 jackson
35431 * TrackBar.cs: Allow control to handle buffering
35433 2004-08-10 09:41 jackson
35435 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
35437 2004-08-10 09:24 jackson
35439 * Label.cs, LinkLabel.cs: Let Control handle buffering.
35441 2004-08-10 09:09 jackson
35443 * StatusBar.cs: Let Control handle all the buffering.
35445 2004-08-10 09:08 jackson
35447 * Control.cs: Control will now handle the buffering code, so each
35448 control does not have to implement this.
35450 2004-08-10 08:34 jackson
35452 * XplatUIDriver.cs: Use default colors from the theme
35454 2004-08-09 17:12 pbartok
35457 - Fixed several bugs Ravindra pointed out
35459 2004-08-09 16:11 pbartok
35462 - Added incomplete dock layout code
35463 - Added support for mouse wheel
35465 2004-08-09 16:09 pbartok
35468 - Added handling for middle and right mousebutton
35469 - Added handling for mouse wheel
35470 - Added handling for key state and mouse state and position
35471 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
35474 2004-08-09 15:40 jackson
35476 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
35477 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
35480 2004-08-09 15:37 jackson
35482 * StatusBar.cs: Initial implementation of StatusBar
35484 2004-08-09 15:36 jackson
35486 * ITheme.cs: Add support for drawing status bar and getting status
35489 2004-08-09 15:35 pbartok
35494 2004-08-09 15:34 jackson
35496 * ThemeWin32Classic.cs: Add support for drawing status bar and get
35497 status bar item sizes
35499 2004-08-09 15:21 jackson
35501 * ThemeWin32Classic.cs: Use known colors for default control
35504 2004-08-09 15:12 jackson
35506 * ThemeWin32Classic.cs: Make the default font static, it is static
35507 in control so this doesn't change functionality and creating fonts
35510 2004-08-09 14:56 pbartok
35513 - Added GrabMode enum
35515 2004-08-09 14:55 pbartok
35517 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35518 - Removed Run method, was only required for initial development
35520 2004-08-09 14:51 pbartok
35522 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35523 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
35526 2004-08-09 13:48 pbartok
35529 - Fixed default sizing for child windows
35531 2004-08-09 12:56 pbartok
35534 - Added generation of WM_DESTROY message
35535 - Added handling of window manager induced shutdown
35537 2004-08-09 11:31 jackson
35539 * ThemeWin32Classic.cs: New names for control properties
35541 2004-08-09 11:25 jackson
35543 * Control.cs: Use new color names
35545 2004-08-09 11:02 jackson
35547 * XplatUI.cs: Get default window properties from the theme
35549 2004-08-09 11:01 jackson
35551 * ITheme.cs: The theme engine now controls default window
35554 2004-08-09 11:00 jackson
35556 * ThemeWin32Classic.cs: Add default window color properties
35558 2004-08-09 10:17 jackson
35560 * ThemeWin32Classic.cs: Use correct default back color
35562 2004-08-09 10:05 jackson
35564 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
35567 2004-08-09 09:56 jackson
35569 * XplatUI.cs: Remove defaults, these are handled by the theme now.
35571 2004-08-09 09:54 jackson
35573 * Control.cs: Get default properties from the theme.
35575 2004-08-09 09:53 jackson
35577 * ITheme.cs: Themes now handle default control properties
35579 2004-08-09 09:53 jackson
35581 * ThemeWin32Classic.cs: Themes now handle default control
35582 properties so coloring will be consistent
35584 2004-08-08 16:54 jordi
35586 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
35588 2004-08-08 15:08 jordi
35590 * XplatUIX11.cs: fixes keyboard crash
35592 2004-08-08 13:47 jordi
35594 * Label.cs: add cvs header info
35596 2004-08-08 12:09 jackson
35598 * ThemeWin32Classic.cs: Add pen_buttonface
35600 2004-08-08 11:52 jordi
35602 * Label.cs, LinkLabel.cs: [no log message]
35604 2004-08-08 11:34 jordi
35606 * ThemeWin32Classic.cs: Use Windows Standard Colours
35608 2004-08-07 17:32 jordi
35610 * TrackBar.cs: throw exceptions of invalid enums values
35612 2004-08-07 17:31 jordi
35614 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
35617 2004-08-07 16:56 jackson
35619 * HorizontalAlignment.cs: Initial checkin
35621 2004-08-07 13:16 jordi
35623 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
35626 2004-08-07 13:05 jordi
35628 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
35629 GetSysColor defines
35631 2004-08-06 18:01 pbartok
35633 * ThemeWin32Classic.cs:
35634 - Fixed some rounding issues with float/int
35636 2004-08-06 18:00 jackson
35638 * DockStyle.cs, AnchorStyles.cs:
35640 Add flags and serializable attributes.
35642 2004-08-06 17:46 pbartok
35645 - Implemented GetParent
35647 2004-08-06 17:18 pbartok
35650 - Fixed some rounding issues with float/int
35652 2004-08-06 17:17 pbartok
35654 * X11Structs.cs, XplatUIX11.cs:
35655 - Fixed Refresh and Invalidate
35657 2004-08-06 15:30 pbartok
35659 * Control.cs, X11Structs.cs, XplatUIX11.cs:
35660 - Fixed recursive loop when resizing
35661 - Improved/fixed redrawing on expose messages
35663 2004-08-06 09:53 jordi
35665 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
35666 keyboard navigation
35668 2004-08-06 08:02 pbartok
35670 * X11Structs.cs, XplatUIX11.cs:
35671 - Fixed reparenting
35672 - Fixed window border creation
35674 2004-08-05 15:38 pbartok
35677 - Attempted fix for reparenting problems
35679 2004-08-04 15:14 pbartok
35682 - Fixed Invalidation bug (calculated wrong client area)
35683 - Added ClientSize setter
35685 2004-08-04 15:13 pbartok
35688 - Added AutoScale properties
35690 2004-08-04 15:13 pbartok
35693 - Added latest files
35695 2004-08-04 14:11 pbartok
35697 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35699 - Added Invalidate handling
35701 2004-08-03 17:09 jordi
35703 * XplatUIDriver.cs: fixes spelling mistake
35705 2004-07-27 09:53 jordi
35707 * TrackBar.cs: fixes trackbar events, def classname, methods
35710 2004-07-27 09:29 jordi
35712 * ScrollBar.cs: fixes scrollbar events
35714 2004-07-27 04:38 jordi
35716 * Control.cs: changes to be able to run winforms samples
35718 2004-07-26 11:42 jordi
35720 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
35721 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
35723 2004-07-26 05:41 jordi
35725 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
35726 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
35729 2004-07-22 09:22 jordi
35731 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
35732 check link overlapping, implement events, and fixes
35734 2004-07-21 10:28 jordi
35736 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
35738 2004-07-21 10:19 jordi
35740 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
35741 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
35742 LinkLabelLinkClickedEventArgs.cs,
35743 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
35744 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
35747 2004-07-19 13:09 jordi
35749 * Control.cs, Label.cs: label control re-written: added missing
35750 functionlity, events, and properties
35752 2004-07-19 10:49 jordi
35754 * Control.cs: fixes SetBounds logic
35756 2004-07-19 01:29 jordi
35758 * Control.cs: Call RefreshWindow only if the window has created
35760 2004-07-15 14:05 pbartok
35762 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
35763 - Implemented ImageList and ImageList.ImageCollection classes
35764 - Added ColorDepth enumeration
35765 - Updated SWF VS.Net project
35767 2004-07-15 11:06 jordi
35769 * XplatUIStructs.cs: added MsgButons enum
35771 2004-07-15 11:03 jordi
35773 * Control.cs: added basic mouse handeling events
35775 2004-07-15 03:38 jordi
35777 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
35778 Vertical TrackBar control implementation
35780 2004-07-13 09:33 jordi
35782 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
35784 2004-07-13 09:31 jordi
35786 * Control.cs, Form.cs: commit: new properties and fixes form size
35789 2004-07-09 14:13 miguel
35791 * ProgressBar.cs: Spelling
35793 2004-07-09 11:25 pbartok
35796 - Removed usage of Rectangle for drawing. Miguel pointed out it's
35799 2004-07-09 11:17 miguel
35801 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
35803 * ProgressBar.cs: Fixed spelling for `block'
35805 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
35808 Avoid using the += on rect.X, that exposed a bug in the compiler.
35810 2004-07-08 23:21 pbartok
35812 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
35813 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
35814 BaseCollection.cs, Binding.cs, BindingContext.cs,
35815 BindingMemberInfo.cs, BindingsCollection.cs,
35816 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
35817 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
35818 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
35819 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
35820 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
35821 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
35822 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
35823 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
35824 FrameStyle.cs, GiveFeedbackEventArgs.cs,
35825 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
35826 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
35827 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
35828 InputLanguageChangedEventArgs.cs,
35829 InputLanguageChangedEventHandler.cs,
35830 InputLanguageChangingEventArgs.cs,
35831 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
35832 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
35833 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
35834 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
35835 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
35836 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
35837 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
35838 QueryAccessibilityHelpEventArgs.cs,
35839 QueryAccessibilityHelpEventHandler.cs,
35840 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
35841 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
35842 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
35843 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
35844 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
35845 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
35846 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
35847 XplatUIX11.cs, lang.cs: