1 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
3 * MenuAPI.cs: When montion don't set the keyboard navigation state to
4 'navigating'. Fixes bug #411356.
6 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
8 [Fixed remaining issues of #406773 (#1)]
9 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
11 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
12 MainMenu (already done) and ContextMenu creation.
14 * ContextMenu.cs: Create tracker on construction.
16 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
18 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
19 possible to instantiate MenuTracker without GrabControl.
21 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
23 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
25 * MainMenu.cs: Set GrabControl on SetForm using current form.
27 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
29 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
31 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
33 * MenuAPI.cs: Check if menu is activated before deactivate it in
36 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
38 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
40 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
41 - One style instance can only participate in a single style collection.
42 - Styles can request their owner to layout whenever their properties
44 [Fixes bugs #412583 and #412582]
46 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
48 * X11Keyboard.cs: Implement the generation of the LParam for
49 all keyboard messages.
52 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
54 * ListBox.cs: Don't let the user set TopIndex so high that it
55 scrolls up far enough to show empty items.
58 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
60 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
61 (I'm an idiot and forgot to commit the actual changes, as well as
62 specify the right file, which is this one, not ListView.cs).
64 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
66 * ListView.cs: Don't draw ListViewSubItem instances from
67 DrawListViewItem - we need to reuse the main item's drawing for the
68 first sub item in case owner draw is true, but wants the system to
69 do the default draw for the first sub item, without incurring in a
73 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
75 * ToolStripButton.cs: Update Checked for CheckOnClick before
76 raising the Click event. [Fixes bug #412505]
78 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
80 * Form.cs: Remove some seems leftover code for non-TopLevel's
81 CreateParams, which is breaking ClientSize sizing, because it
82 removes the border window styles.
84 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
86 * PropertyGrid.cs: Invalidate the View when the PropertyTab
89 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
91 * WebBrowser.cs: Removed debug output.
93 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
95 * FileDialog.cs: Apply patch from Ernesto to clean up some
98 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
100 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
101 that the change has an immediate effect.
103 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
105 * ScrollableControl.cs: Update PerformLayout calls to include
106 provide the name of the property that changed.
108 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
110 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
111 location. Fixes drawing of border and cell borders if scrollable.
113 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
115 * ScrollableControl.cs: Perform layouting after the AutoScroll
116 properties have changed, so that the changes have immediate
120 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
122 * XplatUIX11.cs: Non Client area is actually Client such in the
123 case of NotifyIcon, so double check WholeWindow == ClientWindow
124 when adding an expose.
125 [Fixes bugs #324237 and #357022]
127 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
129 * TableLayoutPanel.cs: Invalidate after layouting, so that we
130 repaint the cell borders.
132 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
134 * PropertyGridTextBox.cs: Stop filtering messages prior to our
135 disposal to avoid unexpected ObjectDisposedExceptions.
137 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
139 * TableLayoutPanel.cs: Layout on Row/Column count change.
141 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
143 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
145 * PictureBox.cs: When ImageLocation is set to null or an empty string,
146 only set image to null if it was previously initialized from an url
147 (or using ImageLocation). In ImageLocation, load specified image
148 asynchronously if WaitOnLoad is false. Added support for local file
149 paths to LoadAsync, and added missing argument check.
151 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
154 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
155 order to set the value as required (which means: when selection
156 changes for a part being edited, and not before that if not needed).
157 Also use an enum to describe which part are we using, and use the
158 selection as a property in PartData, in order to notify the
159 DateTimePicker owner that we need to end the current edit.
162 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
164 * PropertyGridTextBox.cs: Validation should be performed only if we
165 are focused. We can lose focus for example if the Return key is used
166 to set the entry and there is an error. When the message box is
167 displayed we would have validate on click in the message box.
169 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
171 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
172 in order to determine that we are expandable is wrong. There was a bug,
173 now fixed, in TypeDescriptor that was causing the wrong converter to be
174 returned which caused GetPropertiesSupported == false in most cases.
177 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
179 * ImageList.cs: Fix ICollection.CopyTo implementation for
180 ImageListCollection. [Fixes bug #409169]
182 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
184 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
185 WorkingArea so that menus can appear on the second monitor
186 when one has dual monitors.
188 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
190 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
193 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
195 * TextBox.cs: Implement navigation support for auto complete in
196 TextBox, as well as refactor the code to show the auto complete window
197 when receiving a WM_CHAR message, instead of TextChanged, since
198 autocomplete itself should be able to set the Text a lot of times and
199 finally only typing should show it, not changes from code.
201 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
203 * TabControl.cs: When expanding the selected tab, don't adjust the
204 width if alignment is Right, since it has a different offset than 0,
205 as opposed to the other alignments.
206 Fixes the selected tab not being painted at all with alignment = Right
207 and using FillToRight size mode.
209 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
211 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
213 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
215 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
216 values from the textbox to the boundary values. [Fixes bug #409026]
218 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
220 * TreeNodeCollection.cs: We were copying one too many elements when
221 doing our array copy. Fixes a crash when RemoveAt is called.
224 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
226 * TabControl.cs: When doing the layout and need to call FillRow -using
227 FillToRight size mode-, use the overload receiving a bool param
228 indicating whether we need to do a vertical or horizontal calculation.
229 Fixes part of #399583.
231 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
233 * TextBox.cs: When painting, use the value returned by
234 GetLastVisibleItem instead of using the cached last_item field, since
235 there could be a desynchronization between the layout and the
236 painting. Fixes a AOOR exception in auto complete mode.
238 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
240 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
241 NonClientAreaEnabled until our VisualStyles is modified to allow it.
243 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
245 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
247 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
249 * TextBox.cs: When focus is lost, if the auto complete listbox is
252 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
254 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
255 tracking size for tool windows.
256 * Theme.cs, ThemeWin32Classic.cs : Extracted
257 ManagedWindowSpacingAfterLastTitleButton.
259 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
261 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
262 They are bit-rotted and have always been listed as "unsupported".
264 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
266 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
268 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
270 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
272 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
274 * ListBox.cs: Make sure last_item_visible gets reset before we try
275 to do a layout due to scrollbars appearing or disappearing.
278 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
280 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
281 for different window themes. [Fixes bug #339140]
283 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
285 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
286 in ManagedWindowBorderWidth.
288 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
290 * InternalWindowManager.cs: Change MouseMove to take a point, so
291 we can use the same point later on.
292 * MdiWindowManager.cs: Store point sent to MouseMove so we can
293 later reset to it. On Windows, the Cursor.Position had already
294 changed by the time we were resetting to it.
297 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
299 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
301 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
305 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
307 * MdiWindowManager.cs: Double-clicking on the title bar should not
308 maximize a MDI form if MaximizeBox = false.
310 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
312 * ThemeVisualStyles.cs: Fixed a warning.
314 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
316 * ThemeVisualStyles.cs: Fixed warnings and formatted.
318 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
320 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
321 implementation produces a better result.
323 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
325 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
328 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
330 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
331 cannot be used from the ThemeEngine constructor.
332 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
333 Application.VisualStylesEnabled because it does not work on X11.
335 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
337 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
338 that we did not always check for, as well as fixes to the IList
339 implementations. [Fixes bug #402703]
341 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
343 * IDeviceContext.cs: Added Dispose.
345 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
347 * Control.cs: Added OnSizeInitializedOrChanged.
348 * Form.cs: OnLoadInternal: Added a call to
349 Control.OnSizeInitializedOrChanged.
350 * InternalWindowManager.cs:
351 * HandleTitleBarMouseMove: No longer invalidates the parent window.
352 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
353 * TitleButton: Added Entered.
354 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
355 * MdiWindowManager.cs:
356 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
357 move over the maximized title buttons causes a change.
358 * IsActive: Can now be called before the window is added to a MDI parent.
359 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
360 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
361 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
362 * ThemeWin32Classic.cs:
363 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
364 * DrawTitleButton takes a new form parameter.
365 * Added ManagedWindowTitleButtonHasHotElementStyle,
366 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
368 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
370 * ThemeEngine.cs: ThemeVisualStyles is now selected if
371 Application.EnableVisualStyles has been called, even if the current system
372 configuration does not support rendering with Visual Styles.
373 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
374 Styles should not be used.
376 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
378 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
379 ComboBox in FormsTest.
381 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
383 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
384 for fixed toolwindows.
386 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
388 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
390 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
392 * Control.cs: CreateControl just returns if the Control is diposed
393 and doesn't throw ObjectDisposedException.
396 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
398 * Control.cs: Do not create the control if the parent isn't created
399 yet, e.g in the case of a parented form on which .Show is called.
400 It will be created when the parent is made visible/created.
403 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
405 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
406 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
409 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
411 * Form.cs: When disposed set owner to null. Improves #402446.
413 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
415 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
416 use children's PreferredSize if in AutoSize mode and ExplicitBounds
418 * Form.cs: Take the Padding into account for the PreferredSize.
421 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
423 * TabControl.cs: Since we don't support more than one direction in
424 TabControl rows alignment (this is, the row becomes the
425 bottom row when selected), make Direction return always 1. This way
426 the layout doesn't get confused about a bad calculation.
429 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
431 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
432 so that the wparam is properly set.
433 Fixes form moving in the test case in bug 402446.
435 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
437 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
438 the full tree instead of nothing. [Improves bug #406584]
440 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
442 * ThemeWin32Classic.cs: Adjusted minimized window painting.
444 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
446 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
449 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
451 * TreeView.cs: Add a null check when using CollapseAll on an
452 empty tree. [Fixes bug #406449]
454 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
456 * Form.cs: Make OnMenuComplete internal so we can call it.
457 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
460 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
462 * TabControl.cs: Handle Up and Down keys when TabControl is in
466 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
468 * TabControl.cs: Invalidate when we remove a tab. Guard against
469 an AOORE when trying to remove a tabpage that is not owned by the
473 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
475 * ScrollBar.cs: Change the LargeChange calculation to be correct.
476 Ensure we are using LargeChange instead of large_change so we our
477 calculations are correct.
480 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
482 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
483 we need to ensure the ColumnCount/RowCount gets set.
486 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
488 * ListBox.cs: When handling item navigation, if selection mode is
489 None, call EnsureVisible, since scrolling is normally handled by
490 selection, that we are not calling in this case.
493 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
495 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
496 a null check to our focus walking code. [Fixes bug #394332]
498 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
500 * ComboBox.cs: Case missed in bug 379596 "Support item
501 navigation by entering text": On _close_ drop-down select
502 the first item matching the text in the textbox. [Fixes bug #397265]
504 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
506 * DataGridView.cs: Fix a crash when sorting by column headers,
507 mentioned in bug #404841. Remove some dead switch cases.
509 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
512 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
513 uses the AutoComplete support in the internal TextBox. Also TextBox
514 can store a reference to ComboBox, in case AutoCompleteSource is set
515 to ListItems (this is, ComboBox's items, and we don't want to pass an
516 additional collection).
518 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
520 * ListViewItem.cs: Restore the initial value of bounds rect to
521 Rectangle.Empty, and is this value for Layout detection in virtual
522 mode. Fixes the tests.
524 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
526 * XPlatUI.cs: Remove references to "new" X11 backend.
528 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
530 * Control.cs: Add an internal virtual OnDragDropEnd method
531 to allow controls such as ListBox, which depend on a sequence
532 of MouseDown+Move+End events, to handle the lack of a MouseUp
533 when a DnD operation is started in MouseDown.
534 * ListBox.cs: If a DnD operation is started in MouseDown we won't
535 get a MouseUp, so reset our state whenever a DnD operation ends.
537 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
539 * PropertyGrid.cs: Clear the root griditem first thing when
540 new object/s is/are selected. Fixes some rare cases where
541 the View will get a paint request and won't know that the
542 grid is in the process of repopulating.
544 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
546 * XplatUIX11.cs, InternalWindowManager.cs:
547 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
548 doesn't automagically update the FormBorderStyle, so we must
549 double check the CreateParams explicitly to determine if the
550 window is a toolwindow.
551 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
552 instead of doing custom checks.
554 Fixes toolwindows for the test case in bug #402446
556 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
558 * Control.cs: Visibility of the control should be false
559 when the handle is destroyed in WmDestroy and not immediately
560 in Dispose(). This is effectively where the disposing process
561 ends even though the control is marked as Disposed immediately
562 after calling Dispose().
565 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
567 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
568 when the textbox gets focus.
571 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
573 * PropertyGridTextBox.cs, PropertyGridView.cs:
574 - Alt + Down should show the drop down editor.
575 - Focus the editor when showing it
578 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
580 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
581 that are not the first panel.
582 * StatusBar.cs: Ensure that the X coordinate of panels is always
583 stored. Fix IList implementation of StatusBarPanelCollection to
584 call the regular methods.
585 [Fixes bug #403599, #402165]
587 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
589 * ThemeWin32Classic.cs: Fix position calculation for centered
590 text on status bar panels. [Fixes bug #402165]
592 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
594 * Splitter.cs: Fix Splitter to:
595 - Work for arbitrary splitter size
596 - Handle MinSize and MinExtra properly
597 - Get rid of absolute positioning during drag and use relative
598 - Multiple other fixes
601 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
603 * Cursor.cs: Show shouldn't hide the cursor.
605 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
607 * ListViewItem.cs: When invalidating, add some extra space to bounds,
608 since focus rectangle and selection can add some space and need to
609 take into account those small offsets - specially in Details view.
610 * ListView.cs: Instead of invalidate using item Bounds directly, call
611 item.Invalidate, to have the code centralized.
612 Fixes focused/selection garbage when selecting and deselecting items
615 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
617 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
618 mode we can check whether we have to force a Layout or not, and can
619 cache based on this, instead of avoiding caching all the the time. Do
620 this check in GetBounds and TextBounds.
621 Fixes selection in Details view.
623 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
625 * ListView.cs: Make HeaderControl internal, thus the theme engine can
626 get its *real* height instead of trying to infere it.
627 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
628 get the position of them, since it's in general a bad idea in general,
629 and because we can't do that in virtual mode. Instead get the first
630 visible item as well as item height, and draw them.
633 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
635 * ToolStripSplitButton.cs: We can't add in extra width if
636 the button is not AutoSize. [Fixes bug #401279]
638 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
640 * PaddingConverter.cs:
641 - Implement conversion to InstanceDescriptor
642 - Handle "All" in CreateInstance by using the supplied
643 ITypeDescriptorContext.
644 [Fixes bugs #396076 and #396078]
646 Patch by Andy Hume <andyhume32@yahoo.co.uk>
647 Code contributed under MIT/X11 license.
649 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
651 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
653 Add Category attributes.
654 Code is contributed under the MIT/X11 license.
656 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
659 - Fix a NRE when unparenting a form.
660 - Do not recreate or destroy a parented form when
663 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
665 * TextBox.cs: Implement basic support for AutComplete with custom
668 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
670 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
671 DropDownButtonBounds should be from the origin of the button, not the
672 ToolStrip. [Fixes bug #401279]
674 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
676 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
677 running gtk_init_check. This prevents GAIL from loading
678 unnecessarily, which was breaking UIA support. Initial fix for bug
680 * Application.cs: Add UIA support to Winforms. New static constructor
681 uses reflection to initialize UIAutomationWinforms assembly. Added
682 PreRun event so UIA can initialize before the mainloop starts, and
683 FormAdded event so UIA can provide a11y support for new Forms in an
686 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
688 * DataGridView.cs: When binding to a dataset, subscribe to table
689 and column change events. Unsubscribe to these when we clear bindings.
692 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
694 [DataGrid drawing refactory]
696 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
698 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
699 must be handle by Theme, now it call DataGridPaintColumnHeader.
701 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
702 test cases must be also fixed because it checks for wrong size.
704 * ThemeWin32Classic.cs:
705 - Draw the bottom line of grid caption.
706 - Prevent to draw caption text when it is empty.
707 - Use CPDrawBorder3D for 3D efects to simplify code.
708 - Uses 3D (when not flat) to paint corner shared between row and column
710 - Fix header drawing issues on win32, now borders are drawing.
711 - Fix column header paint issues to mimic win32.
712 - Adjust header drawing for last column, like first one it must be draw
714 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
716 - DataGridPaintColumnHeader created to draw column headers, it also
717 paint stuff right on Win32.
718 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
722 - DataGridPaintRowHeaderStar method added.
723 - DataGridPaintColumnHeader method added.
725 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
727 * Control.cs: Don't reset to Dock style layout if DockStyle is
728 set to none. [Fixes bug #399316]
730 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
732 * Win32DnD.cs: Fix the check for control not equal null.
733 Fixes bug #341420 and #381886.
735 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
737 * DataGridViewRowCollection.cs: Update the indexes of rows after
738 one has been removed.
739 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
740 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
741 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
742 rows for the Rows collection, or deleting rows from the bound DataSet.
744 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
746 * DataGridView.cs: Listen to a DataSet's changed event even
747 when autogeneratecolumns is false. Refactor the changed event's
748 add row code to use the same as the existing add row code.
751 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
753 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
754 much any time the caret moves and there is text, not just when
755 the selection changes as one would think.
756 * RichTextBox.cs: Override RaiseSelectionChanged and fire
760 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
762 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
763 instead of trying to duplicate the code.
764 * ListBox.cs: Make method internal so we can send keyboard events.
767 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
769 * TextBoxBase.cs: When pasting and checking the max length,
770 subtract the selected text length (the text we will be replacing) from
772 * TextControl.cs: Ensure every character insertion is reflected in
773 charcount, so max length will work properly.
776 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
778 * ListBox.cs: Ensure scrollbars are updated when a single
779 column listbox with an already set top-index is created.
782 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
784 * FontDialog.cs: Typing in the font/style textboxes should search
785 the list boxes case-insensitively. [Fixes bug #398343]
787 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
789 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
790 widths of icon and buttons instead of hard coded values.
792 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
794 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
795 as well as generating a SelectedIndexChanged event, just like .Net does
799 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
801 * ListBox.cs: When navigating items visually, use FocusedItem as the
802 reference point instead of SelectedIndex, since even in
803 SelectionMode.None we need to support navigation, and in that case we
804 just can't use SelectedIndex.
805 Fixes part of #398345.
807 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
809 * Control.cs: Make a SetBoundsInternal that avoids the new
811 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
812 SetBoundsInternal instead of SetBoundsCoreInternal.
814 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
816 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
817 SetBounds for the scrollbars.
819 2008-06-10 Andreia Gaita <avidigal@novell.com>
821 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
822 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
823 OnMouseMove, OnMouseOver, OnMouseUp
824 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
825 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
826 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
827 to the WebControl object to pass to new collection objects
828 * HtmlHistory.cs: Implement support for individual window histories.
829 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
830 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
831 GotFocus, LostFocus, OnLoad, OnUnload
832 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
834 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
835 security level changes and context menu event support.
837 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
839 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
840 as happens with Esc, patch my Andy Hume.
843 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
845 * MdiWindowManager.cs: DrawMaximizedButtons now uses
846 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
847 * Theme.cs: Made MenuButtonSize platform dependent. Added
848 ManagedWindowButtonSize.
849 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
850 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
852 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
854 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
855 Added support for rendering with VisualStyles.
857 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
859 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
860 support for rendering the border with VisualStyles.
862 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
864 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
865 the icon is not shown.
866 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
869 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
871 * InternalWindowManager.cs: Draw minimized windows even if they don't have
874 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
876 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
878 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
880 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
883 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
885 * ComboBox.cs: When snaping height -because of IntegralHeight set to
886 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
887 if the requested height leaves the listbox area with *less* than the
888 required are to see one item. We were setting it to PreferredHeight
889 even for values matching the height for a single item.
892 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
894 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
896 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
898 * DataGridViewCell.cs: Use property instead of field.
900 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
902 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
905 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
907 * Theme.cs: Added #region around the managed window code. Made the managed
908 window methods abstract.
909 * ThemeWin32Classic.cs: Added #region around the managed window code.
911 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
913 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
915 * ThemeWin32Classic.cs: Removed HasBorders checks in
916 DrawManagedWindowDecorations.
918 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
920 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
921 Extracted ManagedWindowGetTitleBarIconArea.
923 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
925 * DataGridViewCellStyle.cs: Don't clone the font.
927 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
929 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
931 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
933 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
934 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
937 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
939 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
940 Use Format/FormatProvider before trying converters.
941 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
942 are 'set'. Change constructor to not use ApplyStyle since it wants
943 everything applied. Clone the Font.
944 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
947 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
949 * ListView.cs: We need to calculate the scrollbars even if the handle
950 hasn't been created - this is needed when methods using scrollbars
951 info, such EnsureVisible, are called before control has been created.
954 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
956 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
957 only if the elements are defined.
959 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
961 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
962 section. Also, when setting bounds, snap height as well as save the
963 requested height if Dock has any value affecting the height: Left,
964 Right and Bottom - important if using IntegralHeight as true.
966 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
968 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
969 passed to SetBounds to reflect the new adjusted height (Integral-wise),
970 instead of doing that only in our SetBoundsCore override, since the
971 bounds cached can be the same as saved one and we could not get the
975 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
977 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
978 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
979 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
980 ToolWindowCaptionButtonSize.
981 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
983 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
985 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
987 * Theme.cs: Made DoubleClickTime plaform dependent.
989 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
991 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
992 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
993 ToolWindowCaptionHeight.
995 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
997 * InternalWindowManager.cs: The adjustment to ensure positive client area
998 sizes is now platform dependent (disabled on Windows).
999 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1000 RequiresPositiveClientAreaSize.
1002 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1004 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
1006 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1008 * InternalWindowManager.cs: Changed IconicSize to use
1009 SystemInformation.MinimizedWindowSize.
1010 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
1011 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
1013 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1015 * ComboBox.cs: If the combobox is anchored both on top and bottom,
1016 adjust height if IntegralHeight is true when calling SetBoundsCore (as
1017 likely the height was modified even if Height wasn't specified in
1018 BoundsSpecified parameter).
1019 Fixes part of #396297.
1021 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1023 * InternalWindowsManager.cs: Changed minimum window size while resizing to
1024 SystemInformation.MinWindowTrackSize.
1025 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
1026 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
1028 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1030 * MenuItem.cs: Fixed Dispose.
1032 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1034 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
1035 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
1036 EnteredHeaderCell, PressedHeaderCell: Added.
1037 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
1038 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
1039 theme a chance to override default painting.
1040 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
1041 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
1042 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
1043 ListView and DataGridView header rendering.
1045 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1047 * RichTextBox.cs: GetPositionFromCharIndex should return the
1048 visual position of the character relative to the viewport.
1049 [Fixes part of bug #396664]
1051 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1053 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
1054 and not just for the existance of an UITypeEditor. In some cases
1055 there is an editor associated just to do PaintValue, but which
1056 doesn't actually support editing.
1059 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1061 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
1062 if needed, instead of 0 - this should help us in the corner case where
1063 we have more than one item but we are only partially showing 1 item.
1064 Fixes part of #374713.
1066 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1068 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
1069 control, return immediately if the any parent control's handle hasn't
1070 been created or isn't visible, as well as avoiding creating the parent
1071 Form if the handle hasn't been previously created.
1074 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
1076 * TableLayoutPanel.cs: Use border sizes when calculating the
1077 panel's preferred size. [Fixes part of bug #396433]
1079 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
1081 * SplitContainer.cs:
1082 - Fix SplitterDistance to update only if needed.
1083 - Make it force min and max validation.
1084 - Handle properly mouse moves outside the resizeable area.
1087 2008-06-02 Andreia Gaita <avidigal@novell.com>
1089 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
1090 (which also suppresses all popup dialogs). Throw NotSupported
1091 exceptions for activex getters/setters.
1092 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
1093 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
1094 StatusText, Version, GoSearch
1095 * HtmlDocument.cs: Add DocType support
1097 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
1099 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
1102 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
1104 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
1106 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
1108 * TableLayoutPanel.cs: When calculating preferred size, use the
1109 actual number of columns and rows, not what the user set them to.
1112 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
1114 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
1117 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1119 * XplatUIX11.cs: When detecting areas obscured in a control by other
1120 toplevel windows while scrolling, return if the control hasn't a
1124 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1126 * XplatUIX11.cs: Properly detect the visible area of a control being
1127 scrolled (obscured by other winforms controls and any X toplevel
1128 windows), to mark as invalid the requested area to be scrolled that
1129 isn't visible and thus can't be copied.
1132 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1134 * ListBox.cs: Compute the precise amount to vertically scroll when
1135 using DrawMode.OwnerDrawVariable.
1136 Patch by jkeymer (j.keymer@gmx.net).
1138 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1140 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
1141 to avoid setting an invalid value for the verticall scrollbar
1142 when navigating items. And, duh, also remove my silly debug messages
1143 from previous commits.
1146 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
1148 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
1149 make it MS compatible.
1151 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
1153 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
1154 - Allow the editing of entries even if their parent is read-only.
1155 - Do not render expandable properties read-only.
1156 - Refactor expansion checks form PropertyGrid into PropertyGrid.
1158 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
1160 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1161 support for the hover style.
1163 2008-05-29 Andreia Gaita <avidigal@novell.com>
1165 * ContainerControl.cs: Check for null dead-end when traversing the tree
1168 [Fixes #394332, patch by Ernesto Carrea]
1170 2008-05-29 Geoff Norton <gnorton@novell.com>
1172 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
1173 constant that it is. Fixes #393981
1175 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
1177 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
1178 that the user probably doesn't want to set this.
1180 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
1182 * ThemeWin32Classic.cs: Don't let the text size be bigger than
1183 the control size for CheckBox/RadioBox.
1184 [Fixes part of bug #394645]
1186 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1188 * PropertyGrid.cs: Update the state of the sorting buttons in
1189 the toolbar if PropertySort is set programatically.
1191 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1193 * GridItemCollection.cs: Add multiple items with conflicting names
1194 support and also preserve name ordering.
1197 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1199 * GridItemCollection.cs: Revert my multiple items with same
1202 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1204 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
1206 Fixes part of #393908.
1208 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
1210 * ToolStripDrowDown.cs: When using the Show () methods that have a
1211 Control parameter, set the menu owner to that Control.
1214 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
1216 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
1219 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1221 * GridItemCollection.cs: Refactor to support multiple items with the
1225 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
1227 * Control.cs: The 2.0 check for illegal cross thread calls in
1228 Control.Handle were throwing an exception when we were getting
1229 the Handle in order to invoke correctly. Created a private
1230 version that does not contain this check.
1233 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1235 * PropertyGrid.cs: Respect DefaultTabType.
1237 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1239 * ListView.cs: SPACE selects an item.
1242 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1244 * ListView.cs: Reset the search string whenever the items are
1248 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1250 * ListControl.cs: For the first added item PositionChanged is fired
1251 _before_ ItemChanged, which leave us in a temporary invalid state - so
1252 we need to set the selected index from ItemChanged handler *if* we
1253 know that the first item has just been added *and* the items have been
1254 actually added to the ListControl.
1257 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1259 * TabControl.cs: Only clicks with the left button should be
1263 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1267 * TextBox.cs: Expose an internal method in TextBox to restore the
1268 original context menu, and call it from ComboBox to re-use it in the
1269 combobox containing the file name in FileDialog.cs.
1270 Fixes part of #393775.
1272 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
1274 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
1277 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
1279 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
1282 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1284 * ComboBox.cs: Minor correction to previous patch: PageDown should
1285 also *try* to move by one item if the computed offset is negative,
1286 just like the PageUp case.
1288 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1290 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
1291 should be done for at least 1 item, and not stay at the same item.
1292 Fixes part of #374713.
1294 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
1296 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
1297 directories. [Fixes bug #393931]
1299 2008-05-22 Andreia Gaita <avidigal@novell.com>
1301 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
1302 Don't fire events until the initial about:blank page has finished
1303 loading. Clean up events.
1305 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
1307 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
1308 FocusIn() too. This should fix the issue on switching
1311 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
1313 * X11Keyboard.cs : set XIM font size to somewhat reasonable
1314 number (ideally the input textbox size, but that could be
1317 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
1319 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
1320 the ToolStripItem's TextChanged. [Fixes bug #393597]
1322 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1324 * TabControl.cs: When invalidating in SelectedIndex and we need to
1325 inflate to take into account the border of the tabs, make sure that
1326 the invalidated rect doesn't overflow the control bounds, since that
1327 would avoid updating at all.
1329 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1331 * TabControl.cs: Don't substract scroller width from the row width,
1332 since we need to take into account the total width of the control when
1333 calculating the position of the tabs. This avoids showing scroller
1334 when it is actually not needed.
1335 Fixes part of #322325.
1337 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1339 * ThemeVisualStyles.cs: Added support for TextBoxBase.
1341 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1343 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1344 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
1346 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1348 * DataGridView.cs: Only paint the top left header cell if there
1351 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1353 * DataGridView.cs: When binding to a BindingSource, get the underlying
1354 list to bind to. [Fixes bug #345483]
1356 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1358 * DataGridView.cs: Do not bind to collection properties.
1361 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1363 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
1365 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1367 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
1370 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1372 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
1374 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1376 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
1379 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1381 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
1383 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1385 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
1388 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1390 * TabControl.cs: Extended to handle the hot style.
1392 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1394 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
1395 Extended UpDownBase code to handle hot and disabled styles.
1397 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1399 * DataGridView.cs: Handle databinding to generic list type things.
1402 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1404 * DataGridViewCellCollection.cs: Add a method to find the cell
1405 with the given DataPropertyName.
1406 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
1407 * DataGridViewColumnCollection.cs: Add a method to clear all
1408 autogenerated columns.
1409 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
1413 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1415 * DataGridView.cs: Don't try to update the RowTemplate with
1416 a null CellTemplate.
1418 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1420 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
1421 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
1422 * DataGridView.cs: Lots of fixes/enhancements to databinding to
1425 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1427 * Control.cs: Remove invalidating implicit child controls when
1428 control is invalidated. It was causing too many redraws on
1429 controls with implicit scrollbars.
1430 * ListView.cs: Listen to the Invalidated event and invalidate
1433 2008-05-20 Andreia Gaita <avidigal@novell.com>
1435 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
1436 * HtmlDocument.cs: Check for nulls
1438 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1440 * Control.cs: In ControlCollection.RemoveInternal, remove the
1441 internal control before calling PerformLayout and OnControlRemoved,
1442 which was leaving us in an invalid state and causing a X error (bad
1443 match). Observe that Remove () call has the same order.
1444 Fixes an X error changing ComboBoxStyle.DropDownStyle.
1446 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1448 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
1449 being fired if ControlStyles.UserPaint style is activated.
1452 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1454 * GridEntry.cs: Don't be so strict when setting the value -
1455 do not check if what we set is what we get.
1458 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1460 * XplatUIX11.cs: If there are no timers timeout should be 0
1463 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1465 * Control.cs: As a followup to invalidating implicit children when
1466 a control is invalidated, only invalidate them if they are in the
1469 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1471 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
1473 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1475 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
1477 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1479 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
1480 * XplatUIWin32.cs: Made Win32DeleteObject public.
1482 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1484 * GridEntry.cs: Determine HasDefaultValue more strictly by using
1485 PropertyDescriptor.ShouldSerializeValue.
1488 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1490 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
1491 in the classic theme.
1493 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1495 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
1497 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
1498 ScrollBarHasPressedThumbStyle.
1500 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1502 * TextRenderer.cs: Included some methods in the 1.1 profile.
1504 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1506 * Control.cs: When we make a control visible, it may have been
1507 previously visible and while it wasn't visible, the z-order of
1508 things may have been shuffled, so the control needs to have its
1509 z-order updated just in case. [Fixes bug #391518]
1511 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1513 * ThemeVisualStyles.cs: Added support for GroupBox.
1515 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1517 * GroupBoxRenderer.cs: Included in the 1.1 profile.
1519 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
1521 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
1522 bug #389996; XSelectInput() behaved as mouse handler robber,
1523 so remove extra call to it.
1525 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1527 * Control.cs: Simplify ControlCollection.Contains method.
1529 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1531 * DataGridViewRow.cs: Implement GetPreferredSize.
1533 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1535 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
1537 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1539 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
1540 painting and edit control fixes.
1542 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1544 * DataGridView.cs, DataGridViewCell.cs: Work around some external
1545 checks to make sure we are in an actual row/col for top left header cell.
1546 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
1548 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1550 * Control.cs: Use long instead of int when handling WParam from
1551 mousewheel scrolling. Int was overflowing on Win64.
1553 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1555 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
1556 flow panel without scrolling first, and then calculate the
1557 scrolling based on the new layout. [Fixes bug #390149]
1559 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1561 * ListBox.cs: Invalidate after scrolling up when selected index
1562 changes. [Fixes bug #390151]
1564 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1566 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
1567 set, default height to 150. I tried first with DefaultSize, but this
1568 is not generating a SetBoundsCore call before handle creation time, so
1569 we can take it into account. This is just what .net does.
1571 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1573 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
1574 as it broke some stuff. Calberto is filing a bug for eno to
1577 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1579 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
1580 to 0 is the current value is -1, and if style is not Simple, just
1581 return, like .net does.
1582 Fixes part of #374713.
1584 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1586 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
1587 progress bar stuffs, use doubles instead of ints to prevent
1588 overflow. [Fixes bug #389798]
1590 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1592 * XplatUIX11.cs, X11Keyboard.cs :
1593 Significant refactoring on XIM support. Now IM engine UI
1594 should show up, at mostly-correct preedit position.
1595 - Eliminated use of FocusWindow, as it is never mapped
1596 and hence blocks correct preedit position. XIC is now
1597 created per window, and it must be destroyed too when
1598 the window is destroyed.
1599 - WM_QUIT messages should not be filtered even when hwnd
1600 is zombie. Filtering it could cause endless loop.
1601 - Preedit position must move only when the window is alive.
1602 - Make it IDisposable and make sure to release XIM/XICs.
1604 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1606 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
1607 XplatUIX11.cs, XplatUIWin32.cs :
1608 fix for bug #325033 and #387693;
1609 - WM_QUIT should not be sent when no running application
1611 - SetTimer/KillTimer (especially on win32) should be
1612 invoked for the window that the timer is/will_be attached.
1613 - There could be unattached timers to a window when it's
1614 started. For those timers, hold pending timers and when
1615 a window is mapped, attach them to it.
1616 - WaitForHwndMessage() could run into loop when
1617 WM_SHOWWINDOW is handled before this method is called.
1618 So, strictly check wm_showwindow state.
1619 - Tick handler should not be invoked while one Tick handler
1620 call is still running (introduced Busy state).
1622 2008-05-13 Andreia Gaita <avidigal@novell.com>
1624 * WebBrowserBase.cs: Override Internal alternative methods for
1625 SetBoundsCore and OnResize instead of the protected ones.
1626 * Control.cs: Move SetBoundsCore and OnResize implementations to
1627 SetBoundsCoreInternal and OnResizeInternal, so they can be
1628 overriden internally (WebBrowserBase needs to catch them but can't
1629 override the protected methods without api compat problems)
1631 2008-05-13 Andreia Gaita <avidigal@novell.com>
1633 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
1635 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1638 * ListView.cs: Remove debug messages.
1640 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1642 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
1643 area is empty. Also calculate scrollbars in Simple mode based in area
1644 height and total number of items, not in MaxDropDownItems.
1645 Fixes part of #371991.
1647 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1649 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
1651 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1653 * BindingSource.cs: GetListSortDescription is not public.
1655 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1657 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
1659 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1661 * HtmlElement.cs: Fix parameter names to match MS.
1662 * HtmlWindowCollection.cs: Should not be sealed.
1664 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1666 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
1667 button, because the thumb button will not get drawn if the scrollbar
1668 is disabled. [Fixes bug #389262]
1670 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1672 * ListBox.cs: Handle End key for multi-column listboxen.
1675 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1677 * ListBox.cs: Fix algorithm to determine which column our item is in.
1680 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1682 * ListBox.cs: Invalidate when the listbox is resized.
1685 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1687 * ListBox.cs: There is always at least one row in the ListBox (if
1688 we are doing these calculations.) [Fixes bug #389253]
1690 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1692 * ListBox.cs: There is always at least one column in the ListBox.
1695 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1697 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
1698 ensure in Simple mode that the height is exactly the requested one.
1699 Also add the ComboBoxListControl to the controls collection in Simple
1700 mode even if handle hasn't been created.
1701 Fixes part of #371991.
1703 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1705 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
1706 our ComboBox owner instead of giving it back to the previous control (
1707 as done in other controls). Also remove the empty override of Select
1708 method, since we want to be selected *and* give focus to our owner.
1709 This should let the user do keys-navigation in Simple mode.
1711 2008-05-10 Geoff Norton <gnorton@novell.com>
1713 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
1714 problems with rapid scrolling of treeviews. Fixes #381084
1716 2008-05-10 Geoff Norton <gnorton@novell.com>
1718 * XplatUICarbon.cs: Deactivate the active window before
1719 activating the desired window. Completes fixing #386504
1721 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1723 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
1724 SmallChange to the item size width plus the padding, to match .net.
1726 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1728 * FileDialog.cs: Apply the custom filter typed by the user in the file
1729 name combobox as much as possible while navigating in the file dialog.
1732 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1734 * Binding.cs: Actually use NullValue if the retrieved value of
1735 data source is null or DBNull. Makes a test pass.
1737 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
1739 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
1740 * MimeIcon.cs: Provide a way to get icons from resources.
1742 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1744 * Binding.cs: When the value retrieved from the control to be assigned
1745 to the data source is null, actually use the 2.0 DataSourceNullValue
1746 value. Make pass a data binding test.
1748 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1750 * Control.cs: We need to invalidate implicit children even when
1751 invalidate is called with invalidatechildren = false. (Implicit
1752 children are really part of the parent.)
1753 * ListView.cs: Double-buffer internal child controls for less
1755 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
1756 owner ListView subitems for greatly increased performance.
1759 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
1761 * FileDialog.cs: When the user types a wildcard character in the
1762 filename combobox, update the contents of the folder using the text as
1764 Fixes part of #385261.
1766 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1768 * ListBox.cs: Various fixes for MultiColumn listboxen.
1771 2008-05-08 Andreia Gaita <avidigal@novell.com>
1773 * HtmlElement.cs: Implement Style property
1775 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1777 * ListBox.cs: Respect checkboxes when measuring item size.
1778 * ThemeWin32Classis.cs: When drawing list items, don't draw
1779 text outside of the item's bounds to prevent overlapping.
1780 (.Net actually overlaps, but that's just silly.)
1783 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
1785 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
1786 Gert Driesen. Fixes bug #324830.
1788 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
1790 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
1793 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1795 * BindingSource.cs: When calling IsSynchronized, return the value of
1796 the related IList list.
1798 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1800 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
1803 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
1805 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
1806 navigation to scroll the grid if the current cell is not visible.
1808 2008-05-07 Andreia Gaita <avidigal@novell.com>
1810 * HtmlElement.cs: Implement TabIndex
1812 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
1814 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
1815 properties, even when there are no items.
1818 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
1820 * NativeWindow.cs: Add support for multiple handles per window.
1821 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
1822 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
1823 directly - use FromHandle instead.
1826 2008-05-07 Andreia Gaita <avidigal@novell.com>
1828 * HtmlElement.cs: Implement InnerHTML setter
1830 2008-05-07 Andreia Gaita <avidigal@novell.com>
1832 * HtmlDocument.cs: Implement Focused
1834 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1836 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
1837 methods, as well as add messages to the exceptions.
1839 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1841 * BindingSource.cs: Setting DataSource should only reset DataMember if
1842 the previous value was null (make pass a not working test).
1844 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1846 * BindingSource.cs: When EndInit call is postponed and is called until
1847 DataSource.EndInit is called, remove the handler for data source.
1849 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1851 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
1853 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1855 * ToolStripManager.cs: Store references to toolstrips as
1856 weak references so they do not prevent forms from getting collected.
1859 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1861 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
1862 on .Net. So do the same thing in WndProc.
1864 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1866 * TrackBar.cs: Commit patch from Andy Hume that corrects
1867 the clickable areas to better match .Net.
1870 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1872 * TrackBar.cs: Commit patch from Andy Hume that adds the
1873 ResizeRedraw control flag so the track bar repaints itself
1874 when it is resized. [Fixes bug #387072]
1876 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1878 * TrackBar.cs: Commit patch from Andy Hume that adds better
1879 support for keyboard navigation when the TrackBar is vertical.
1882 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1884 * BindingSource.cs: Implement ISupportInitializeNotification support.
1886 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
1888 * ThemeVisualStyles.cs: Added support for ToolBar.
1890 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
1892 * ToolBar.cs: Made the Vertical property internal.
1894 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1896 * ThemeVisualStyles.cs: Added support for TrackBar.
1898 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1900 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
1901 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
1902 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
1903 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
1904 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
1905 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
1907 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1909 * ThemeVisualStyles.cs: Added support for UpDownBase.
1911 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1913 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
1914 Extracted Theme.UpDownBaseDrawButton.
1916 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
1918 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
1919 removed from the static toolstrips collection in ToolStripManager
1920 when they are disposed. Provides a workaround for bug #386483.
1922 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
1924 * GridEntry.cs: Read-only properties with Editor with
1925 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
1928 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
1930 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
1931 the menu key and there are no items on the menu.
1934 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
1936 * Control.cs: Avoid calling ToString on a string.
1937 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
1938 * GroupBox.cs: In FlatStyle property throw, not just create, the
1939 exception. Avoid calling ToString on a string.
1940 * ProgressBar.cs: Avoid calling ToString on a string.
1941 * ScrollBar.cs: Avoid calling ToString on a string.
1942 [All issues were found using Gendarme]
1944 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
1946 * NotifyIcon.cs: Prevent click events to be trigger after double click
1947 events. Fixes remaining issues of bug #324832.
1949 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
1951 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
1952 to mimic win32 behavior. Partially fixes bug #324832.
1954 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1956 * BindingSource.cs: Implement Find methods.
1958 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1960 * BindingSource.cs: Implement Sort, ApplySort overloads, and
1963 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1965 * ListBindingHelper.cs: When calling GetListItemProperties and the
1966 passed object is ITypedList, return the result of
1967 ITypedList.GetItemProperties instead.
1969 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1971 * LinkLabel.cs: Set default value of name on constructor of Link class
1972 only for 2.0 profile.
1974 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1976 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
1977 Fixes remaining issues of bug #346154.
1979 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1981 * LinkLabel.cs: Set a default value for name on internal contructor of
1982 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
1984 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1986 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
1987 and refer all instances to owner.links. Partially fixes #346154.
1989 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1991 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
1992 length equal zero. Also called CreateLinkPieces in constructor. It fixes
1993 the LinkLabel test 'TestLinkArea'.
1995 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1997 * Form.cs: Remove menu before close form to prevent form to be not gaced.
2000 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2002 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
2005 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2007 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
2010 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2012 * MenuAPI.cs: Remove unused ProcessCmdKey method.
2014 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2016 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
2019 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2021 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
2024 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2026 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
2027 sometimes we open a conext menu on mouse down of some controls and the mouse
2028 up is dispatched to menu and dont need to. It fix remaining issues of
2029 #363711 and other problems related to menu mouse click events.
2031 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2033 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
2034 some var names to better fit changes, now we have month_menu and today_menu
2035 vars. Fixes bug #363711.
2037 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2039 * MonthCalendar.cs: Handle every right mouse click to open context menu,
2040 right now the default month menu but it will be change to have "Go to today"
2043 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2045 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
2047 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2049 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
2051 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2053 * ThemeVisualStyles.cs: Added support for TreeView.
2055 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2057 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
2058 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
2060 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2062 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
2064 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2066 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
2067 Implement 2.0 SP1 stuffs.
2069 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2071 * FileDialog.cs: Implement 2.0 SP1 stuffs.
2073 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2075 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
2076 Implement CanEnableIme property. (2.0 SP1)
2078 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2080 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
2083 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2085 * Control.cs: Provide an internal way for a control to override
2086 the setting of Height.
2087 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
2088 set height using new method.
2090 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2092 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
2094 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2096 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2097 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
2099 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2101 * ThemeVisualStyles.cs: Added support for StatusBar.
2103 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2105 * DataObject.cs: Add the other IDataObject interface.
2107 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2109 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
2110 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
2112 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2114 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
2115 * ListView.cs: Hide non-public API.
2116 * MaskedTextBox.cs: Remove extra attribute.
2118 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2120 * DataGridViewImageCell.cs: Use formatted value instead of value
2121 to calculate preferred size.
2123 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2125 * ListBox.cs: Move some initialization around so that selected_indices
2126 is not accessed before it is created.
2128 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2130 * InputLanguageCollection.cs: Implement the collection better.
2133 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2135 * ToolStripDropDownItem.cs: Get the correct event object for
2136 DropDownItemClicked.
2137 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
2140 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2142 * DataGridViewRowCollection.cs: We don't currently support shared
2143 rows. Should fix test failures caused by previous commit.
2145 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2147 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
2148 datagridview gets set. Only paint cells in visible columns.
2149 * DataGridViewCell.cs: Draw border after cell content.
2150 * DataGridView.cs: Invalidate after setting some properties. Only
2151 use visible columns. Fit hit test bug with areas in the col/row header
2152 area but not in a row or col. Implement UpdateCell/Row methods.
2154 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2156 * DataGridViewElement.cs: Don't throw NIEX.
2157 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
2158 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
2159 * DataGridViewCheckBoxColumn.cs: Implement ToString.
2160 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
2161 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
2162 if the user filled in the formatting Value, use it.
2164 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2166 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
2169 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2171 * BindingSource.cs: Some corrections to Filter property, as well as
2172 setting it for our list when resetting it.
2174 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
2176 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
2177 than the maximum. Fixes reopened bug #384182.
2179 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2181 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
2182 Fixes remaining issues of #367490.
2184 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2186 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
2187 SystemInformation.WorkingArea to get max_screen value.
2189 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2191 * BindingSource.cs: Implement Filter and RemoveFilter.
2193 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2195 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
2197 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2199 * X11Dnd.cs: When trying to convert data and we know we started the
2200 dnd loop, don't try to use the cached data if the loop is not running,
2201 which means that the data has been resetted.
2204 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2206 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
2209 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2211 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
2212 it to drawn off screen edge. Fixes bug #367490.
2214 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2216 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
2217 menu position to have only one assignment of Location var.
2219 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2221 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
2222 for this patch. Fixes bug #384115.
2224 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
2226 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
2227 the same. If LargeChange is zero, set a minimum size for the scroll
2228 thumb grip. [Fixes bug #384182]
2230 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
2232 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
2235 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
2237 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
2239 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2241 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
2242 patch from Ernesto).
2244 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2246 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
2248 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2250 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
2252 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2254 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
2256 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2258 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
2260 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
2262 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
2264 2008-04-27 Andreia Gaita <avidigal@novell.com>
2266 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
2267 supposed to return a reference to an mshtml interface, which we
2269 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
2270 reference to an mshtml interface, which we don't support). Code
2272 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
2273 DomDocument getter (it's supposed to return a reference to an
2274 mshtml interface, which we don't support). Code formatting cleanup.
2276 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2278 * ListView.cs: Ouch, forgot to commit.
2280 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2283 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
2285 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2287 * ListView.cs: When calculating box selection for virtual mode, don't
2288 look for intersection with item's text, but item bounds, since that
2289 would mean read ListViewItem's text for _every_ item, and that's
2290 something we just can't do in virtual mode (items are only requested
2293 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
2295 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
2296 partial support for managed windows (based on the patch from Ernesto).
2298 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2300 * ListView.cs: When doing a key search use FindItemWithText method
2301 instead of doing the search by ourselves, this way we avoid
2302 duplicating the code and also we handle the special case for virtual
2303 mode. To achieve that make our private overload of FindItemWithText
2304 internal and also have a 'roundtrip' parameter.
2306 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2308 * ListView.cs: When doing the layout don't request the
2309 ListViewItem instance if we are in virtual mode (since we can't request it
2310 until the item is actully drawn).
2312 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2314 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
2317 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2319 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
2320 the patch from Ernesto).
2322 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2324 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
2325 * ThemeVisualStyles.cs: Added.
2327 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2329 * IDeviceContext.cs: Added a missing using.
2331 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2333 * ButtonBase.cs: Made IsDefault protected internal.
2334 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
2336 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2338 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
2339 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
2340 RadioButtonRenderer.cs: Included in the 1.1 profile.
2341 * IDeviceContext.cs: Added.
2342 * TextRenderer.cs: Included a member in the 1.1 profile.
2344 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2346 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
2348 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2350 * ErrorProvider.cs: Make the error icons come after the control
2351 they refer to. It isn't the way the MS does it, but its better
2352 than what we were doing. See bug #368587.
2354 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2356 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
2357 from Eric Albright that lazy loads the input language as ensures
2358 everything gets properly initialized. Fixes bug #373871.
2360 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2362 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
2363 implicit mnemonics. [Fixes bug #383000]
2365 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2367 * X11Dnd.cs: When canceling the operation, automatically restore the
2368 default cursor - normally the default cursor is restored when the
2369 mouse buttons are released, but we should be able to restore it even
2370 if the buttons are still pressed (for example, when pressing ESC to
2374 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2376 * X11Dnd.cs: When starting a new drad and drop operation, set control
2377 field to null, just as the other fields, to avoid calling any
2378 operation on a previous control. Also, when calling DndLeave on a
2379 control, set it to null, thus we don't fire that event multiple times
2383 2008-04-23 Geoff Norton <gnorton@novell.com>
2385 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
2386 the whole_window object. Fixes #377084.
2388 2008-04-23 Andreia Gaita <avidigal@novell.com>
2390 * HtmlElement.cs: Implement RaiseEvent (event injection into the
2393 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
2395 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
2397 2008-04-23 Andreia Gaita <avidigal@novell.com>
2399 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
2402 2008-04-23 Andreia Gaita <avidigal@novell.com>
2404 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
2407 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2409 * X11Dnd.cs: When the drop was cancelled, or could just not be
2410 performed, return DragDropEffect.None always (match .net).
2412 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2414 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
2416 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2418 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
2420 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2422 * DataGridView.cs: Add support for error icon tool tips.
2423 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
2424 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
2426 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
2428 * X11Structs.cs: Add mouse button masks enum.
2429 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
2430 WM_EXITSIZEMOVE only once at the beginning and at the end of the
2431 form resize/move operation instead of for each step of it.
2432 [Fixes bug #346529 for the x11 backend]
2434 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2436 * DataGridView*: Implement support for drawing error icons.
2438 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2440 * TreeView.cs: Make vbar and hbar internal.
2441 * TreeNode.cs: If collapsing the node removes one of the TreeView's
2442 scrollbars, invalidate the whole thing.
2445 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2447 * TreeView.cs: Calling Sort() sets Sorted = true.
2448 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
2449 if the nodes need to be sorted.
2452 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
2454 * Form.cs: Fire SizeChanged for both when the form is minimized and
2456 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
2457 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
2459 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2461 * ComboBox.cs: If the combobox is disabled, draw a disabled
2462 background before painting anything else.
2465 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2467 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
2468 forget to send a Leave event to the target window - just as .net does
2469 when cancelling dnd operations.
2471 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2473 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
2474 soon as possible - this happens when we send the drop message to the
2475 target window. This way we avoid firing any DragOver _after_ drop finished.
2478 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2480 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
2481 * Form.cs: Handle form minimization as a special state, where size doesn't
2482 change, but we have to fire SizeChanged.
2483 [Fixes bug #325122 for the win32 and x11 backends]
2485 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2487 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
2488 if the handle is disabled.
2491 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2493 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
2494 for forms with FormBorderStyle.None.
2497 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2499 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
2501 [Fixes bug #346529 for the X11 backend]
2503 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2506 - Send a mouse Enter message after say dragging the mouse with a
2507 button down and then release it in another client.
2508 - Reset the cursor to prevent X11 from remembering it and setting it
2509 before the control gets WM_SETCURSOR.
2510 - Qeueue a mouse move after a mouse enter like win32.
2513 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2515 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
2516 It's sent when the form gets moved, resized, closed.
2517 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
2518 [Fixes bug #359193 for X11]
2520 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2522 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
2525 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2527 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
2528 group. Fixes the 1.1 build.
2530 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2532 * ListView.cs: Use display indexes for selection in Details view, as
2533 well as do the proper layout based on display indexes for that view
2536 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2538 * ListView.cs: Focused item information is now stored as a display
2539 index, and display indexes are used all over the place for selection,
2540 instead of ListViewItem.Index values, which doesn't give us enough
2541 information to modify the selection in groups mode, and was broken.
2543 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
2545 * Control.cs: Do not fire MouseDown if validation of the control has
2547 * Form.cs: Validate the form before closing.
2548 [Fixes bugs #330501 and #353310]
2550 2008-04-18 Andreia Gaita <avidigal@novell.com>
2552 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
2553 CreateWebBrowserSiteBase implementations
2554 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
2555 Style and TabIndex setters
2557 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2559 * ListViewGroup.cs: When returning the actual item count, return the
2560 proper count for default group.
2563 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2566 * ListViewGroup.cs: When calculating groups layout, get the actual
2567 number of items per group, since groups added to the group BUT not
2568 added to the ListView are just ignored, and can cause some nasty
2569 exceptions because of the lack of synchronization. Also for
2570 ListViewGroup don't use lazy initialization for items, since we
2571 the common scenario is to use it always - and it helps us to refactor
2572 and clean the .ctor overloads.
2574 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2576 * ListView.cs: When adding an item to a ListViewItemCollection
2577 belonging to a group (ListViewGroup.Items), don't generate a redraw if
2578 the added item hasn't beeen previously added to the ListView instance
2579 refered by the group, since it will be ignored. This should avoid some
2580 really nasty flickering.
2582 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2584 * ListView.cs: When accessing an item in a specific display
2585 position, use the helper method GetItemAtDisplayIndex, instead of
2586 direct access to the reordered_items_indices array. When doing layout
2587 for groups set the correct Items index for the display position (since
2588 in groups mode items don't have the same position as in Items
2590 * ListViewGroup.cs: Add a field to store the starting item number,
2591 which is later used when calculating the layout.
2595 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
2597 * Application.cs: Fixed ProductVersion to fallback to the assembly
2598 version. Fixes regression for bug #325413.
2600 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2602 * ListView.cs: New helper method to retrieve an item in a _specific
2603 display_ position (the items can be displayed in a different order
2604 than one of Items collection).
2605 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
2606 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
2607 specific display position (again remember that items can be sorted
2608 different than Items).
2610 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2612 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
2613 list and update it when the collection changes. We were recreating
2614 this several times per row paint and for every pixel the mouse moved
2616 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
2619 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2621 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
2622 list to use generics.
2623 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
2624 and remove unneccessay casts.
2626 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2628 * DataGridViewBand.cs: Add internal way to set displayed variable.
2629 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
2630 * DataGridView.cs: Make sure we always keep track of Displayed
2631 rows and columns, and only draw things that are displayed.
2633 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
2635 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
2636 whether the key events are filtered or not. Introduced
2637 PreFilter() process for this purpose. This fixes atokx3/iiimx
2640 2008-04-16 Andreia Gaita <avidigal@novell.com>
2642 * HtmlHistory.cs: Implement Length property
2644 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
2646 * DataGridView.cs: Call EndEdit when a sort is performed so we take
2647 away the edit textbox. Refactor to reuse column sort code.
2649 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
2651 * MenuAPI.cs: Remove the code that save and restore capture status of
2652 grab_control, this fixes some Menu and Context menu bugs but maybe it can
2653 cause some others, I cant figure the possible problems of this patch but
2654 right now remove the code looks to be better than keep it. This patch fixes
2655 bugs #357638, #378721 and #379570.
2657 2008-04-12 Andreia Gaita <avidigal@novell.com>
2659 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
2660 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
2661 add missing properties and event handlers.
2663 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
2665 * ListBox.cs: Make sure the LargeChange we are setting is at least
2666 zero, to prevent an IOORE. [Fixes bug #379531]
2668 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
2670 * ComboBox.cs: Support item navigation by entering text. Firstly,
2671 in DropDownList mode, for each key-press select the next item
2672 starting with that letter.
2673 For other modes, when no item selected, on arrow-up/-down and open
2674 drop-down select the first item matching the text in the textbox.
2676 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
2678 * X11Keyboard.cs : Control.FromHandle() could return null
2679 in MoveCurrentCaretPos().
2681 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2683 * ListView.cs: When changing the size in VirtualMode, also Reset the
2685 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
2686 changing selection info for VirtualMode.
2689 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2691 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
2692 view, don't use LineLimit for the first item - use NoWrap *always*
2693 instead, since ListView.LabelWrap is not used for this view.
2696 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2698 * Binding.cs: Call UpdateIsBinding when setting control - probably
2699 Binding is already usable and we don't need to wait to check the
2700 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
2701 Created, just like 2.0 does.
2702 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
2704 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2706 * Binding.cs: Just realized we don't need to have a handler for
2707 BindingContextChanged, since this info should be now consumed directly
2708 in the BindingManagerBase. And also, the manager.IsBindingSuspended
2709 state info is checked directly, instead of caching it.
2711 * CurrencyManager.cs: IsSuspended should return always false if Count
2714 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2716 * Binding.cs: When calling PushData, return if manager.Count == 0,
2717 since we just don't have data to be read. Also, when setting the
2718 Control for binding, hook up some events to refresh the IsBinding
2719 state when BindingContext change or control gets created; use
2720 Control.IsHandleCreated instead of Control.Created check to set
2721 IsBinding state - we *actually* need to modify IsBinding when control
2722 is created, but we don't have any Created event, only HandleCreated.
2723 Fixes part of #349364.
2725 2008-04-11 Geoff Norton <gnorton@novell.com>
2727 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
2728 warping a null Caret.
2730 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2732 * DataGridView.cs: Implement row/column autosizing methods. Implement
2734 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
2735 * DataGridViewRowCollection.cs: Add an internal sorting method.
2737 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2739 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
2740 value in ListView drawing code.
2742 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2744 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
2745 is clicked. Respect the user setting Cancel in FileOk.
2747 2008-04-11 Geoff Norton <gnorton@novell.com>
2749 * ListView.cs: Avoid setting and resetting control Width/Heights and
2750 calculate the final value and set it once. Prevents a feedback loop
2753 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2755 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
2758 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
2760 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
2761 Add some on-the-spot code, but it seems we don't need it.
2763 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2765 * Form.cs: Add method for DataGridView to trigger focus cues
2766 even when it handles the tab keypress.
2768 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2770 * DataGridView.cs: More keyboard handling, tab, esc.
2771 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
2772 when at the beginning or end of the text in the text box.
2774 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2776 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
2778 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2780 * DataGridView.cs: Some fixups for showing and adding the edit control.
2781 * DataGridViewButtonColumn.cs: Implement ToString.
2782 * DataGridViewCell.cs: Size and position the control simultaneously.
2783 * DataGridViewTextBoxCell.cs: Use base to position control.
2785 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2787 * DataGridViewCell.cs: Fix up some formatting and painting code.
2788 * DataGridViewImageCell.cs: Implement some NIEX methods.
2790 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2792 * ToolStripItemCollection.cs: What moving an item from one owner
2793 to another, remove from source owner before adding to destination.
2796 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2798 * PictureBox.cs: Call Load when ImageLocation is set.
2801 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
2803 * X11Keyboard.cs, XplatUIX11.cs :
2804 Implement over-the-spot mode (with some odd offsets).
2805 - set preedit position when caret is set.
2806 - Wrap XMoveResizeWindow() to move preedit position.
2808 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2810 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
2813 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2815 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
2816 and ScanTableIndex public, it fix compilations errors when compiling
2817 WinForms to generate keyboard layout resources.
2819 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2821 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
2822 different element count than scan table. It prevents some errors in non
2825 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
2827 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
2829 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
2831 * DataGridView.cs: Call OnContentClick.
2832 * DataGridViewCell.cs: Do a null check on ValueType instead
2834 * DataGridViewCheckBoxCell.cs: Implement.
2836 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2838 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
2840 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2842 * X11Keyboard.cs : Check XGetIMValues() return value in
2843 case it does not return input styles in some environment.
2845 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2847 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
2849 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2851 * BindingContext.cs: Stub UpdateBinding method.
2853 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
2855 * X11Structs.cs : added couple of structs for XIM support.
2857 Release XIM in case it failed to create XIC.
2858 Use consts for XNblah string.
2859 Add support for IM style customization and XIC creation
2860 for preedit-position and preedit-callback.
2861 Right now use MONO_WINFORMS_XIM_STYLE environment variable
2862 (list of: over-the-spot | on-the-spot | root). Only root
2865 (redoing r99172 with fix.)
2867 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2869 * TreeView.cs: Center the checkbox a little better.
2871 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2873 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
2874 Apply very nice patch from Ernesto Carrea that simplifies our
2875 scrollbar drawing. [From bug #376146]
2877 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2879 * TreeView.cs: Correct the location of the root node checkbox when
2880 ShowRootLines = false. Don't draw the root lines for the root node
2881 when ShowRootLines = false. [Fixes bug #377535]
2883 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
2885 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
2887 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
2889 * MaskedTextBox.cs: Added missing attribute. Code formatting.
2890 * PageSetupDialog.cs: Added missing attribute. Code formatting.
2891 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
2892 * ImeMode.cs: Added missing field.
2893 * HtmlWindow.cs: Code formatting. Fixed line endings.
2894 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
2896 * HtmlHistory.cs: Code formatting. Fixed line endings.
2897 * HtmlDocument.cs: Code formatting. Fixed line endings.
2898 * ToolStripPanel.cs: Added missing IList implementation.
2899 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
2901 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
2903 * BindingContext.cs: Changed argument names to fix corcompare errors.
2904 * DataGridView.cs: Removed extra explicit interface implementation
2905 of IDropTarget. Code formatting.
2906 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
2907 * ComboBox.cs: Changed argument names to fix corcompare errors.
2908 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
2910 * GridColumnStylesCollection.cs: Changed argument names to fix
2911 corcompare errors. Removed extra tabs.
2912 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
2914 * Control.cs: Changed argument names to fix corcompare errors. Code
2915 formatting. Removed extra explicit IList implementation.
2916 * TextBox.cs: Changed argument names to fix corcompare errors. Code
2917 formatting. Use string.Empty instead of "".
2918 * GridItemCollection.cs: Changed argument names to fix corcompare
2919 errors. Code formatting.
2920 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
2921 corcompare errors. Code formatting.
2922 * ImageList.cs: Changed argument names to fix corcompare errors.
2923 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
2924 * DataGridViewRowCollection.cs: Changed argument names to fix
2925 corcompare errors. Code formatting.
2926 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
2927 * DataGridViewSelectedCellCollection.cs: Changed argument names to
2928 fix corcompare errors. Code formatting.
2929 * DataGridViewComboBoxCell.cs: Changed argument names to fix
2930 corcompare errors. Code formatting.
2931 * LinkLabel.cs: Changed argument names to fix corcompare errors.
2932 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
2934 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
2936 * BindingSource.cs: Changed argument names to fix corcompare errors.
2937 Removed extra explicit interface implementations.
2938 * DataGridViewSelectedRowCollection.cs: Changed argument names to
2939 fix corcompare errors. Code formatting.
2940 * ToolStripItemCollection.cs: Removed extra explicit interface
2941 implementation of IList.ReadOnly.
2942 * DataGridViewColumnCollection.cs: Changed argument names to fix
2943 corcompare errors. Code formatting.
2944 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
2945 * ListView.cs: Changed argument names to fix corcompare errors.
2946 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
2948 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
2950 * ListBindingHelper.cs: Changed argument names to fix corcompare
2952 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
2953 fix corcompare errors. Code formatting.
2954 * ToolStripPanel.cs: Removed extra explicit implementation of
2955 IDropTarget interface.
2956 * ListBox.cs: Changed argument names to fix corcompare errors. Code
2957 formatting. Removed extra tabs and spaces.
2958 * DataGridViewCellCollection.cs: Changed argument names to fix
2960 * Help.cs: Changed argument names to fix corcompare errors. Code
2962 * TabControl.cs: Changed argument names to fix corcompare errors.
2963 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
2965 * TableLayoutSettings.cs: Changed argument names to fix corcompare
2968 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2970 * ListBindingHelper.cs: When returning properties, only return those
2971 that are browsable. Also, don't do a linear search of the properties,
2972 but use the indexer of the PropertyDescriptorCollection class.
2974 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2976 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
2977 Dictionary containing the related (child) currency managers. Also,
2978 when setting DataSource, add datasource to our List if it is not a list.
2980 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2982 * PropertyGridTextBox.cs: Fix background color of the buttons.
2983 * PropertyGridView.cs: Make the entry less jumpy.
2985 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2987 * PropertyGrid.cs: Fix unused variable warnings.
2989 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2991 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
2992 double-click. It expanded it once in the mouse down and then
2993 again in the double-click handler.
2995 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
2997 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
2998 TypeConverter and UITypeEditors.
3000 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
3002 * Control.cs: Visibility should be set synchronously,
3003 so we must also redraw once it is and not rely on layouting or
3004 other code to repaint.
3007 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
3009 * DataGridViewCell.cs: Respect DataGridView.GridColor.
3011 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3013 * Control.cs: Invalidate when the alpha channel is less than 255,
3014 not only when control is transparent.
3016 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3018 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
3019 Implement some painting convenience methods that threw NIEX.
3021 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3023 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
3024 * DataGridViewLinkCell.cs: Implement.
3026 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3028 * GridEntry.cs: Report the conversion exception error description.
3031 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3033 * PropertyGridView.cs: Do not scroll to item on resize.
3036 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3038 * BindingContext.cs: When retrieving a BindingManagerBase, if the
3039 dataSource parameter is ICurrencyManagerProvider, then return
3040 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
3041 instead of creating a new one.
3043 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3045 * BindingSource.cs: Implement support for Type instances as
3048 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3050 * DataGridView.cs: Minor cleanups and call CellMouseUp.
3051 * DataGridViewCell.cs: Make some painting routines internally virtual.
3052 * DataGridViewButtonCell.cs: Implement.
3054 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3056 * Control.cs: We always need to invalidate our children with
3057 transparent backgrounds when we are invalidated.
3060 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3062 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
3063 and CancelCurrentEdit on CurrencyManager respectively. Implement
3064 support for ICancelAddNew too.
3066 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3068 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
3069 call EndNew/CancelNew if list is ICancelAddNew.
3071 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
3073 * DataGridView.cs: Guard against an exception while painting
3074 if there are no rows.
3076 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
3078 * DataGridView.cs: Implement a bunch of keyboard commands.
3080 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
3082 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
3083 isn't set, don't call OnPaint. [Fixes bug #375300]
3085 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3087 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
3088 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
3089 hookup the remaining events related to CurrencyManager, and fire
3090 OnListChanged also for the Clear () method.
3092 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3094 * BindingSource.cs: Use Current and Position implementations in
3095 CurrencyManager instead of using our own routines, since we need
3096 to be in synch with it. Count should NEVER return a -1 value, and
3097 also report ListChanged events for both simple IList data
3098 sources (manually) as well for IBindingList ones (by hooking up an
3099 event handler for it).
3101 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3103 * BindingSource.cs: Make one .ctor call the another, to avoid
3104 duplicate code. Add the CurrencyManager property, and also for AddNew
3105 throw the proper exceptions and show better error messages.
3107 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3109 * ComboBox.cs: Only adjust selectedindex if Handle has been
3110 created. Fixes failing test.
3112 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3114 * ComboBox.cs: Adjust selectedindex if we insert a new item
3115 above the current selectedindex in a sorted ComboBox.
3118 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3120 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
3123 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3125 * DataGridViewTextBoxCell.cs: Implement stuffs.
3127 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3129 * TreeView.cs: Create the scrollbars even earlier to be
3130 double dog certain they are created before they are accessed.
3132 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3134 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
3136 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3138 * ScrollBar.cs: Create an internal safe Value setter so we
3139 won't crash if we try to set a value outside the min and max.
3140 * TextBoxBase.cs: Use safe value setter to guard against a
3141 potential NRE that is being reported by Reflector.
3143 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3145 * TreeView.cs: Create the scrollbars earlier in the constructor
3146 to attempt to guard against an NRE in SetTop in Reflector.
3148 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3150 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
3151 DataGridViewRowCollection.cs: Do not scroll column and row headers,
3152 show messagebox on data format error, use column display index
3153 correctly, make sure HitTest supports new layout stuff,
3154 make sure scrollbars support new layout stuff.
3156 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
3158 * XplatUIX11.cs : Patch by Doug Rintoul.
3159 For some IM engines, keypress events need to delay call
3160 to XPending() and XNextEvent() in the loop so that it
3161 does not mess the orders in XIM commit callback.
3162 Some KeyRelease events such as shift keys need to be
3163 processed both in the IM engine and winforms driver
3164 itself since winforms holds its own state check.
3166 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
3168 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
3170 * X11Keyboard.cs, XplatUIX11.cs :
3171 add primitive support for XIM input support (preedit-
3172 nothing and status-nothing). It requires precise event
3173 capturing (XSelectInput/"filterEvents") and different
3174 call to XFilterEvent against root window.
3175 Get composed string and send dummy WM_IME_COMPOSITION.
3176 Free XIM and XIC instances in finalizer.
3178 (This first patch does not include suggested changes
3179 by Doug Rintoul. It will follow.)
3181 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3183 * DataGridView.cs: When binding to a property, if the property
3184 doesn't have a setter, set the column to readonly.
3187 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3189 * ComboBox.cs: Guard against NRE if an arrow key is hit while
3190 we aren't dropped down. Support Home/End in DropDownList mode.
3193 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3195 * TreeNodeCollection.cs: Don't increment count until we've
3196 saved our index to return.
3199 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3201 * Label.cs: Add padding to the label's AutoSize calculation.
3204 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3206 * ListBindingHelper.cs: Actually implement GetListName method.
3208 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3210 * BindingSource.cs: Throw the propert expceptions for some methods, as
3211 well as detect the list item type for Add method if DataSource is null.
3213 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3215 * DataGridViewCell.cs: I don't know why I commented this out,
3216 putting it back for now.
3218 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3220 * DataGridViewCell.cs: Remove storage for owning column, just
3222 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
3223 * DataGridViewColumnHeaderCell.cs: If the header text has been
3224 explicitly set, return it.
3227 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3229 * DataGridViewRowCollection.cs: Disable row sharing when
3230 using data binding. Its a great feature, but lets work on
3231 getting DGV usable first before we worry about optimizations.
3233 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3235 * BindingSource.cs: When resetting our internal list, compute list
3236 item type information to be used for indirect list access. Also
3237 implement/tune some properties and methods related to the list access
3239 * ListBindingHelper.cs: Add a stub for GetListName method, used from
3242 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3244 * DataGridView.cs: If RowCount is increased while ColumnCount
3245 is zero, add a column. [Fixes bug #331649]
3247 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3249 * DataGridViewRowCollection.cs: When adding new rows for
3250 databinding, make sure they are place before the add row.
3253 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3255 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
3256 instead of Index order.
3258 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3260 * DataGridView.cs: If columns are added by increasing ColumnCount,
3261 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
3264 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3266 * DataGridView.cs: Turn off and on the "new row" when
3267 AllowUserToAddRows is toggled. When the handle is created,
3268 set current cell and selected cell/row/col.
3270 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3272 * ComboBox.cs: When navigating the drop down by keyboard, we
3273 need to scroll the list box if our selection moves out of the
3274 currently shown items. [Fixes bug #371990]
3276 2008-03-24 Luke Page <luke.a.page@gmail.com>
3278 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
3279 on the control. Also now handles unicode compatibility characters and
3280 stores the unicode compatibility length on the stack. Fixes Bugs
3281 #355198 and #366436.
3283 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3285 * BindingSource..cs: Take into account DataMember when re-creating the
3286 List property, and also create a specific kind of list as needed.
3288 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3290 * ListBindingHelper.cs: Add a new case for GetList () method - when we
3291 get an empty IEnumerable, try to detect whether the datamember is
3292 valid or not for that type, if true, return null, and throw exception
3295 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
3297 * ComboBox.cs: Alt-Down should drop down the list, Esc should
3298 retract it. [Fixes bug #371989]
3300 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
3302 * PropertyGrid.cs: Initialize the sorting button as pushed.
3304 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
3307 - Visually select the PropertyTab.
3308 - Filter Properties by Attributes properly.
3310 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3312 * MenuItem.cs: Remove menu item from parent when disposed.
3315 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3317 * ToolBar.cs: Don't reset layout_type if Dock = None.
3319 2008-03-21 Andreia Gaita <avidigal@novell.com>
3321 * UserControl.cs: Select the first available control when we get focus.
3324 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3326 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
3327 the content if we are in edit mode. [Fixes bug #343964]
3329 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3331 * DataGridViewCell.cs: Fix border painting for column headers.
3333 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3335 * BindingSource.cs: When setting or resetting data source,
3336 use ListBindingHelper.GetList () method, since it will get the list in
3337 case datasource is IListSource.
3339 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3341 * DataGridViewCell.cs: Implement lots more stuffs.
3343 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3345 * PropertyGridView.cs, GridEntry.cs: Implement support for
3346 UITypeEditor.IsDropDownResizable.
3348 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3350 * DataGridViewCell.cs: Remove unused variables, improve how
3351 several of the property getters work.
3352 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
3353 get its size from the parent row/col.
3355 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3357 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
3358 user alters manually the PropertyTabs collection via the
3359 PropertyTabs property.
3361 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3363 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
3364 new tests for them to be sure to be compatible with .net.
3366 2008-03-20 Andreia Gaita <avidigal@novell.com>
3368 * WebBrowserBase.cs: Fix attributes, add events
3369 * WebBrowser.cs: Fix Padding signature
3371 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3373 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
3375 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
3377 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
3378 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
3379 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
3380 passes the new suite of tests for it.
3382 2008-03-18 Andreia Gaita <avidigal@novell.com>
3384 * WebBrowser.cs: Add missing attributes, missing Padding and
3385 DefaultSize properties, remove extraneous getters
3387 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3389 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
3392 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3394 * ComboBox.cs: Move resetting the selected index to keypress
3395 instead of textchanged. Changing the text programmatically
3396 should not trigger resetting the selected index. Fixes test.
3398 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3400 * ComboBox.cs: When the user types into the textbox, reset
3401 the selected index to -1. [Fixes bug #371672]
3403 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3405 * FileDialog.cs: Support Control-A for selecting everything
3406 in an OpenFileDialog. [Fixes bug #371564]
3408 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
3410 * DataGridView.cs: When row/column visible/height properties
3411 change, invalidate. Take the NIEX out of InvalidateRow/Column
3412 etc. We don't support them yet, but we can just invalidate
3413 everything until we do support them. (Added MonoTODO). Set
3414 proper control styles.
3415 * DataGridViewRow.cs: Don't call PaintHeader if row headers
3418 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3420 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
3422 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3424 * DataGridViewRow.cs: Only paint the white background in
3425 cell bounds, the row bounds extends past the cells if the
3426 grid width isn't as wide as the DGV.
3428 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3430 * DataGridView*: Completely revamp the drawing to match the
3431 public API. Our grids now look better, and call all the
3432 appropriate methods and event to allow users to override
3433 the painting and do their own.
3435 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3437 * ListBindingHelper.cs: Implement 2.0 GetList methods.
3439 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3441 * DataGridView.cs: Implement BorderStyle.
3443 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3445 * FileDialog.cs: Apply patch from Andy Hume: Any time we
3446 are comparing attributes, make sure we only look at the
3447 one we are interested. These calls were failing if there
3448 were more than one attribute.
3451 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3453 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
3455 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3457 * PageSetupDialog.cs: Stub EnableMetric.
3458 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
3459 * PrintPreviewDialog.cs: Add ProcessDialogKey,
3462 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3464 * MonthCalendar.cs: Remove unused variable.
3466 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3468 * DataGridView*.cs: corcompare stuffs.
3470 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3472 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
3473 The savings aren't worth the extra code to fix the optimization.
3476 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3478 * ToolBar.cs: Always call base.Dock in the Dock override so that
3479 Control's layout_type gets reset correctly.
3482 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
3484 * X11Dnd.cs: End DnD operation also for the middle mouse button.
3486 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3488 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
3489 at the same time we do explicit ones, because we have to give all
3490 other controls on the container a chance to handle explicit ones
3491 first. If no one has an explicit mnemonic, then we can let the
3492 MenuStrip have a shot at implicit mnemonics.
3493 * MenuStrip.cs: Create an implicit mnemonic function.
3494 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
3495 mnemonics for MenuStrips.
3498 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3500 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
3501 DataGridColumnStyle.cs: corcompare stuffs.
3503 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3505 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
3506 Details - This is needed after we added the bits to use any available
3507 column also for List and SmallIcon view.
3509 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3511 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
3512 at the proper place, not only when changing SelectedIndex and changing
3513 the selection using keys/mouse, as .net does.
3515 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3517 * ControlBindingsCollection.cs: Implement last 2.0
3518 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
3519 in the new 2.0 Add methods.
3521 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3523 * ListBox.cs: When calling SelectedIndexCollection.Clear,
3524 return if no items are previously selected - this is done to avoid
3525 firing OnSelectedIndexChanged without need to do so. Also,
3526 when creating handle ensure that the focused item is visible (as
3529 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3531 * ListBox.cs: Rewrote/refactored most of selection code. We require
3532 the following things in selection: a) keep selection sorted (both
3533 indices and items), b) SelectedIndices automatically detect the
3534 selection mode, c) SelectedIndex should be the first selected item
3535 index, d) Need to Focus/adjust scroll bar when selecting a new item,
3536 not only for SelectedIndex, which is specially important in Multi*
3537 selection modes. To achieve this we are moving the selection core to
3538 SelectedIndexCollection and make depend all selection modifications on
3542 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3544 * ToolStrip.cs: Enable implicit mnemonics for drop down
3545 menu strips. [Fixes part of bug #367692]
3547 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3549 corcompare - fix parameter names [stragglers].
3550 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
3551 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
3554 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3556 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
3557 was a mnemonic pressed as well as Alt. Also, if nothing handles a
3558 mnemonic, let the ToolStripManager have it even if it doesn't
3559 have a matching mnemonic.
3562 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3564 corcompare - fix warning about implicit implementation
3565 * ToolStrip.cs: Add IToolStripData interface.
3566 * IToolStripData.cs: Add.
3568 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3570 corcompare - fix warning about implicit implementation
3571 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
3574 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3576 corcompare - fix parameter names [N-Z].
3577 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
3578 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
3579 PropertyManager.cs, RichTextBox.cs,
3580 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
3581 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
3582 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
3583 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
3584 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
3585 ToolStripContentPanel.cs, ToolStripDropDown.cs,
3586 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
3587 ToolStripPanel.cs, ToolStripSeparator.cs,
3588 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
3589 UICuesEventHandler.cs, UpDownBase.cs.
3591 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3593 corcompare - fix parameter names [G-M].
3594 GridColumnStylesCollection.cs, GridItemCollection.cs,
3595 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
3596 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
3597 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
3598 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
3599 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
3601 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3603 corcompare - fix parameter names [A-F].
3604 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
3605 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
3606 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
3607 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
3608 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
3609 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
3610 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
3612 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3614 * GridEntry.cs: Do not convert not only if the types match,
3615 but also if the property type is assigneable from the value's
3619 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3621 * PropertyGridView.cs:
3622 - Subscribe to the listbox only once and not everytime.
3623 - Update the textbox even if SetValue fails.
3624 - Close the listbox before calling TrySetValue just in case.
3627 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
3629 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
3631 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3633 * ListView.cs: Implement support for custom column width based on
3634 Columns collection (we were previously using this collection only
3638 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3640 * ListViewItem.cs: For Tile view, always set bounds for the first
3641 subitem (which is the main one), and also don't let Width be larger
3642 than ListView.TileSize.Width. Improve code readibility also.
3643 * ThemeWin32Classic.cs: When painting the ListViewItem instances
3644 in Tile view, _always_ use the NoWrap flag.
3647 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
3649 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
3651 * GridEntry.cs: For MS compitability make all child properties
3652 readonly if the parent is readonly. Ugh.
3653 [Fixes bug #365945 and #365944]
3655 2008-02-29 Andreia Gaita <avidigal@novell.com>
3657 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
3658 relative to the history
3660 2008-02-29 Andreia Gaita <avidigal@novell.com>
3662 * HtmlElement.cs: More handlers for mouse and key events
3664 2008-02-28 Andreia Gaita <avidigal@novell.com>
3666 * WebBrowserBase.cs: MouseClick sig changed.
3667 * HtmlHistory.cs: Implement history navigation
3668 * HtmlElement.cs: Add event handlers, and connect them.
3670 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
3673 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
3674 so that DisplayNameAttribute doesn't get ignored.
3675 - Check for ParenthesizeNameAttribute and parenthesize the Label.
3676 - Add support for PasswordPropertyTextAttribute
3677 * PropertyGridView.cs: Check if an entry is a password.
3678 [Fixes bugs #365589, #365586, #365588]
3680 2008-02-28 Andreia Gaita <avidigal@novell.com>
3682 * PropertyGridView.cs: Revert the message filtering change, as we
3683 need it to block after all. Remove block parameter, unnecessary.
3685 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
3687 * UserControl.cs: Better implementation of GetPreferredSize.
3688 First step to fixing bug #361441.
3690 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3692 * Binding.cs: Actually implement data binding support for
3693 classes implementing IBindableComponent.
3694 * ControlBindingsCollection.cs: Likewise.
3696 2008-02-26 Andreia Gaita <avidigal@novell.com>
3698 * PropertyGridView.cs: Use a message filter to check when to
3701 2008-02-26 Andreia Gaita <avidigal@novell.com>
3703 * Application.cs: Change the message_filters loop so a filter
3704 can be removed while looping.
3706 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
3708 * GridEntry.cs: Optimization in ToggleValue so that it caches
3710 * PropertyGridView.cs: An optimization so that the property isn't
3711 re-read twice for each StandardValue added to the drop-down menu.
3712 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
3716 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
3718 * Application.cs: Apply patch from Justin Cherniak to match
3719 MS better for ProductName, ProductVersion, and CompanyName.
3722 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3724 * Binding.cs: Actually implement 2.0 NullValue property. Also
3725 when changing the formatting related properties, only update the state
3726 if formatting_enabled is true (we don't mind otherwise).
3728 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
3730 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
3733 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3735 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
3736 of GetType on the current value as it uses reflection to
3737 determine the type. This fixes the case where the new value is
3740 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3742 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
3745 2008-02-24 Luke Page <luke.a.page@gmail.com>
3747 * Line.cs, TextControl.cs: Implement offset x and y so that a
3748 document doesn't have to begin at (0,0) on the viewpoint.
3749 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
3750 bars and switches the text alignment (and therefore is now
3751 implemented for textbox). Fixes #321383.
3753 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3755 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
3756 properties. Also when changing FormattingEnabled update the control
3757 property -as .Net does-.
3759 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
3761 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
3762 * Binding.cs: Add stubs for the overloads of the Add method in
3765 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3767 * Binding.cs: PullData () returns a false value if we got an exception.
3768 Also when validating the control and we get an error, instead of
3769 setting the value of the previous one, cancel the event (tested in 1.1
3772 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
3774 * TreeView.cs: Make selected_node and highlighted_node internal.
3775 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
3776 to null when Nodes.Clear is called.
3779 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3781 * FontDialog.cs: Ensure that when the Font is set in code,
3782 all the gui pieces are updated accordingly.
3785 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3787 * TextRenderer.cs: Respect proposed size for MeasureString.
3788 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
3789 autosize, use a proposed width to force wrapping for long text.
3792 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3794 * TreeView.cs: Factor in checkboxes = false and state images in
3795 to HitTest. [Fixes bug #363360]
3797 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3799 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
3800 when drawing the selected range.
3803 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3805 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
3806 ResizeRedraw control styles.
3809 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3811 * TreeView.cs: StateImages are basically custom checkboxes, so
3812 factor their size the same as real checkboxes when determining
3816 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3818 * MessageBox.cs: Make the message box wider if the form caption
3819 is longer than the text in the form.
3822 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
3824 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
3826 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3828 * TreeNode.cs: Guard against an NRE when the parent's
3829 StateImageList hasn't been set.
3832 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3834 * SplitContainer.cs: Add SupportsTransparentBackColor and
3835 OptimizedDoubleBuffering control styles.
3838 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3840 * Application.cs: For the app data paths and the registry key paths,
3841 ensure they are created before returning them to the user.
3844 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3846 * Application.cs: Guard against an NRE in CompanyName and
3849 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3851 * Application.cs: For CompanyName, ProductName, and ProductVersion,
3852 make sure we handle all three cases correctly: attribute is present,
3853 attribute is present but is an empty string, and attribute is not
3856 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
3858 * PropertyGridView.cs:
3859 - Fix a NRE that caused a test failure
3860 - Another performance improvement - cache the standard values
3863 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3865 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
3868 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
3870 * PropertyGridView.cs: Fix a big performance bug.
3872 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3874 * SelectionRange.cs: Apply patch from Andy Hume to make
3875 constructor behavior more accurate. [Fixes bug #362117]
3877 2008-02-19 Andreia Gaita <avidigal@novell.com>
3879 * Control.cs: Added a new flag is_disposing to track if the
3880 window is currently in the process of being disposed of.
3881 This is used so that, when firing visibility changes triggered
3882 by unparenting controls during Dispose, the control doesn't
3885 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3887 * ComboBox.cs: Set height to preferred height when the handle
3888 is created. [Fixes bug #360862]
3890 2008-02-18 Andreia Gaita <avidigal@novell.com>
3892 * XplatUIX11.cs: Create FosterParent with border width at 0.
3893 With the previous value of 4, everytime a control got reparented
3894 from parent = null, it's location would be shifted right and
3895 down by 4, since these coordinates would be offset by the
3896 FosterParent's border width.
3898 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
3900 * Control.cs: During diposing firstly remove ourselfes from
3901 the parent and *then* destroy our handle, because removing
3902 ourselfes from the parent controls collection causes
3903 VisibilityChange, etc events, which require a handle and end
3904 up recreating the control.
3906 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
3908 * GridEntry.cs: Set expanded state before notifying that the
3909 expansion has taken place.
3910 * PropertyGridView.cs:
3911 - Set the propertygridtextbox text to the selected
3912 StandardValue before proceeding to setting it.
3913 - Scrolling bugfixes.
3915 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3918 - Fix ValueText to not return null.
3919 - Fix conversion error reporting to actually happen.
3920 * PropertyGridView.cs: Set entry only if the text has changed.
3923 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3926 - Fix handling of a null current value.
3927 - Swallow editor exceptions.
3930 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3932 * PropertyGrid.cs: Clear current items first thing before
3933 repopulating subitems.
3935 - Handle null StandardValuesCollection.
3936 - Mark as not editable if there is no PropertyDescriptor and
3937 if the Converter cannot convert from string.
3938 [Part of fix for bugs #360666 and #358332]
3940 2008-02-15 Luke Page <luke.a.page@gmail.com>
3941 * MaskedTextBox.cs: Now skips non editable characters after a
3942 character has been entered and we are progressing to the next
3943 position in the MaskedTextBox.
3945 2008-02-15 Luke Page <luke.a.page@gmail.com>
3946 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
3947 that it changes the selection rather than just repositioning the
3948 cursor. Fixes Bug #360873.
3950 2008-02-15 Luke Page <luke.a.page@gmail.com>
3951 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
3952 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
3953 correctly. See #359330
3955 2008-02-15 Andreia Gaita <avidigal@novell.com>
3957 * XplatUIX11.cs: If the handle is null when posting a message, use the
3958 current thread queue to post instead. Fixes #332409
3960 * SendKeys.cs: Slight optimization
3962 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
3964 * PropertyGrid.cs, PropertyGridView.cs:
3965 Fix multiple scrolling and sizing issues.
3968 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
3970 * PropertyGridView.cs: Ensure that drop down editors are shown
3971 in the WorkingArea of the screen.
3974 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
3976 * GridEntry.cs: Fail silently when UITypeEditor is missing.
3979 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3981 * Binding.cs: Implement 2.0 DataSourceNullValue property.
3983 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3985 * PropertyGridView.cs:
3986 - Clear the controls in the drop down form after it is hidden.
3987 - Fix Width sizing of the dropdown editors to match MSFT.
3989 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3991 * PropertyGridView.cs:
3992 - Fix height for drawing the grid entry
3993 text value, so that it clips multiline text properly.
3994 - Fix unfocusing to match MSFT.
3996 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3998 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
3999 Fixes a bug where on repopulation after value changed items become
4002 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4004 * Binding.cs: For the 2.0 profile, look for a
4005 'PropertyChanged' event in the target control, and add checks for
4006 DataSourceUpdateMode property to change -or not- the data source
4007 from validation/control property change.
4009 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
4011 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
4012 not compare struct with null in 2.0).
4014 2008-02-10 Luke Page <luke.a.page@gmail.com>
4016 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
4017 updates the provider and if not using a provider, uses the internal document
4018 class implementation of password char. Also when showing text, uses display string
4019 from the provider, instead of the actual text.
4021 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4023 * Binding.cs: Ooooops, forgot to take into account the data_source
4024 and binding_member_info null case (it was breaking the Binding tests).
4026 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4028 * Binding.cs: Implement support for data source changes exposed by
4029 'PropertyNameChanged' events, and update the control property as
4032 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4034 * Binding.cs: Implement 2.0 WriteValue method.
4036 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4038 Commit patch from James Purcell for better AutoScale implementation:
4040 * ScaleControl should call GetScaledBounds with the control's total size rather
4041 than client size. GetScaledBounds should handle ignoring the borders in its
4042 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
4043 (for the most part they just call the base code now since that is fixed).
4044 * Added ScaleChildrenInternal to allow controls to disable scaling of children
4045 without having to override ScaleChildren (since none of .NET's controls do).
4046 This is required for most controls in Mono that have scrollbars to prevent the
4047 scrollbars from being moved/resized.
4048 * Nested ContainerControls can have a different scale mode than their parent.
4049 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
4050 designer produce different results both of which look incorrect).
4051 * Default AutoScaleMode for ContainerControl should be Inherit.
4052 * Simplified workaround for ComboBox scaling issue.
4053 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
4054 1.0 style auto scaling should scale the whole control's size instead of
4055 ignoring the borders (except for Form) and the rounding is done differently to
4056 preserve control alignment.
4057 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
4059 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
4060 * CurrentAutoScaleDimensions should round the estimated character width instead
4062 * ListBox's GetScaledBounds should always use the height it was set to instead
4063 of the height that was passed in. This prevents rounding errors from
4064 accumulating quickly with IntegralHeight.
4067 2008-02-08 Andreia Gaita <avidigal@novell.com>
4069 * Form.cs: Add a null check (darn it).
4071 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4073 * MdiClient.cs: Make sure the requesting form actually owns the
4074 control menu items before removing them. Also, use
4075 Suspend/ResumeLayout when adding or removing items so we only
4079 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4081 * Control.cs: Guard against an NRE in ShowFocusCues.
4084 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4086 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
4087 property, as well as stubbing DataSourceUpdateMode.
4089 2008-02-08 Andreia Gaita <avidigal@novell.com>
4091 * Form.cs: When closing forms, get focus back to the active control of the
4092 active form. [Fixes #341314, corner case]
4094 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4096 * MdiClient.cs: After we move the scrollbars, invalidate the NC
4097 area, so any old scrollbar artifacts are cleaned up.
4100 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4102 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
4103 for our menus, display that control box menu instead of the 1.1
4106 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4108 * MdiControlStrip.cs: Add property to access the mdi form tied to
4110 * MdiClient.cs: Be smarter about removing and adding toolstripitems
4111 to the implicitly merged menu. Every time we clicked the form, items
4112 were getting removed and the re-added, causing the form to jump around
4113 as the menu resized.
4115 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4117 * MdiClient.cs: Make sure the NormalBounds always gets set. It
4118 was being reset by the implicit menu merge for menustrips.
4121 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4123 * Form.cs: Don't do the previous change when WindowState = Normal,
4124 or it messes up where the window is placed. Fixes test failure.
4126 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4128 * Form.cs: When becoming visible, if we are an MDI child, call
4129 SetWindowState with a dummy old_state so that changes will actually
4131 [Fixes the 2nd part of bug #325473]
4133 2008-02-07 Andreia Gaita <avidigal@novell.com>
4135 * Control.cs: Reset properties to their pre parent-change values in case
4136 the new parent == null (in which case we're basically removing the control,
4137 and don't want any events fired due to fake property changes)
4140 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
4142 * PropertyGridView.cs:
4143 - Refactor SetValue to allow setting the value
4144 when a custom editor is used, but the entry is not editable.
4145 - Remove the custom editor control on CloseDropDown.
4148 2008-02-06 Andreia Gaita <avidigal@novell.com>
4150 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
4151 reflection only on 1.1, this property is public on system.drawing on 2.0.
4154 2008-02-06 Andreia Gaita <avidigal@novell.com>
4156 * WebBrowser.cs: Do a normal page refresh by default.
4158 2008-02-05 Andreia Gaita <avidigal@novell.com>
4160 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
4161 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
4162 platforms. Fixes #359036
4164 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
4165 platform-specific flags.
4167 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4169 * Binding.cs: Add 2.0 BindableComponent property - just return control
4172 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
4174 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
4175 Jonathan for this patch. Fixes #358442.
4177 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
4179 * Form.cs: If we change the active MDI child form, let the others
4180 know they need to repaint their title bar so it will appear inactive.
4181 [Fixes part 1 of bug #325473]
4183 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
4185 * PropertyGridView.cs: Do not trucate custom editors' width
4186 and align them to the left.
4187 [Fixes #358353 and #358349]
4189 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4191 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
4192 Also fix the arguments passed to CollectionChangeEventArgs in the
4195 2008-02-04 Geoff Norton <gnorton@novell.com>
4197 * Hwnd.cs: The conversion to Quartz coordinates happens in
4198 System.Drawing. Removing this translation from here.
4200 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
4202 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
4203 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
4204 GridItemCollection.cs:
4205 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
4207 2008-02-04 Geoff Norton <gnorton@novell.com>
4209 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
4210 SYSKEYUP if any other key has been pressed in the mean time.
4213 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4215 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
4216 when the item in current position is different than 0. Also, save the
4217 item index in the beginning of the operation, instead of getting the
4218 index of the item when the event is actually performed. Lastly clean
4219 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
4223 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4225 * Form.cs: Alt-Minus for MDI children system menu should work
4226 with both the minus keys on the keyboard.
4229 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4231 * Control.cs: Don't invalidate on region change. The WM should
4232 take care of this automagically. Keeps us out of an infinite
4233 paint loop if someone changes the Region in the OnPaint.
4236 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
4238 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
4240 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4242 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
4243 down the MonthCalendar only on F4, not Alt+F4.
4244 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
4247 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4249 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
4250 if its part of a DateTimePicker, else, use the back color.
4253 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4255 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
4258 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4260 * CurrencyManager.cs: When we get a ListChanged event from our source,
4261 always fire our own ListChanged event, as .Net does.
4263 2008-02-03 Luke Page <luke.a.page@gmail.com>
4265 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
4268 2008-02-03 Luke Page <luke.a.page@gmail.com>
4270 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
4271 property. Removed if for richtext property that was always true.
4272 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
4274 2008-02-03 Luke Page <luke.a.page@gmail.com>
4276 * TextBoxBase.cs - commited patch from James Purcell that
4277 correctly sets the FixedHeight control style when the MultiLine
4278 property is changed on a TextBox control. Fixes bug 358229.
4280 2008-02-02 Luke Page <luke.a.page@gmail.com>
4282 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
4283 Fixes bug 351938 - caret is positioned correctly when drawn
4284 and when calculating textual position of caret, no longer
4285 has a NRE in certain situations.
4287 2008-02-01 Geoff Norton <gnorton@novell.com>
4289 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
4290 get that region removed from the paint event.
4291 * XplatUICarbon.cs: Remove the window mapping after disposing of
4292 window. Prevents a crash with handle reuse. Optimize exposes
4293 only onto visible windows (rare; but possible).
4295 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4297 * UpDownBase.cs: Make sure the internal textbox calls the base's
4298 OnMouseDown and OnMouseUp so the textbox will function correctly.
4299 There were notes saying it doesn't chain up, but its an internal
4300 class, so our implementation may differ.
4303 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4305 * ListBox.cs: Fix a logic error and don't process MouseDown
4306 for mouse buttons other than Left.
4308 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4310 * Control.cs: Remove HeightInternal.
4311 * ListBox.cs: Commit patch from James Purcell that correctly
4312 calculates heights for ListBoxen.
4315 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4317 * Label.cs: Apply patch from James Purcell that corrects the
4318 signature of the AutoSize property.
4321 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4323 * ListBox.cs: Don't throw [Mouse]Click events for buttons
4324 other than the left mouse button.
4326 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
4328 * Control.cs: Remove my awesome optimization as it caused some
4329 regressions with control ordering. :(
4332 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
4334 * PropertyGridView.cs: Fix a NRE on double click when there is no
4337 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4339 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
4341 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
4343 * ListBox.cs: Call MouseClick and MouseDoubleClick.
4346 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4348 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
4349 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
4350 instead of Hwnd.bmp_g.
4352 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4354 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
4355 Use the Hwnd one instead.
4357 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4359 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
4361 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4363 * Form.cs: corcompare for RestoreBounds.
4365 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4367 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
4369 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4371 * Form.cs: Handle Alt-Minus for MDI children forms.
4372 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
4373 Add mnemonics to the control menu.
4376 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4378 * Binding.cs: Initial implementation bits of FormattingEnabled
4379 property and BindingComplete event (2.0).
4380 * BindingCompleteEventArgs.cs: Internal methods for setting error text
4383 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
4385 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
4386 table.Location. [Fixes bug #354672]
4388 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
4390 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
4391 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
4393 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4395 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
4396 of doing all the re-bound work, just invalidate and call SetControlText
4397 to set the updated text of selected item to our textbox.
4400 2008-01-28 Andreia Gaita <avidigal@novell.com>
4402 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
4403 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
4404 missing properties and methods. Add Load, Unload, Error, GotFocus,
4405 LostFocus, Resize, Scroll events (only load and unload are connected)
4407 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
4409 * AccessibleObject.cs: Modified argument names to match MS.
4410 * Button.cs: Modified argument names to match MS.
4411 * BindingContext.cs: Modified argument names to match MS.
4412 * BindingMemberInfo.cs: Modified argument names to match MS.
4413 * ButtonBase.cs: Modified argument names to match MS.
4414 * ComboBox.cs: Modified argument names to match MS.
4415 * Control.cs: Modified argument names to match MS.
4416 * CheckedListBox.cs: Modified argument names to match MS.
4417 * CommonDialog.cs: Modified argument names to match MS.
4418 * DataGrid.cs: Modified argument names to match MS.
4419 * CursorConverter.cs: Modified argument names to match MS.
4420 * ControlPaint.cs: Modified argument names to match MS.
4421 * CheckBox.cs: Modified argument names to match MS.
4422 * ControlBindingsCollection.cs: Modified argument names to match MS.
4423 * BindingSource.cs: Modified argument names to match MS.
4424 * DataFormats.cs: Modified argument names to match MS.
4425 * ContainerControl.cs: Modified argument names to match MS.
4426 * CurrencyManager.cs: Modified argument names to match MS.
4427 * Application.cs: Modified argument names to match MS.
4428 * ContextMenuStrip.cs: Modified argument names to match MS.
4429 * ContextMenu.cs: Modified argument names to match MS.
4430 * BindingManagerBase.cs: Modified argument names to match MS.
4431 * WindowsFormsSection.cs: Fixed line ending.
4433 2008-01-27 Andreia Gaita <avidigal@novell.com>
4435 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
4436 detecting that the dropdown toolwindow is hidden. EndLoop outside the
4439 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
4441 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
4442 MS. Code formatting.
4444 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4446 * Binding.cs: Don't avoid the Format event if the control
4447 property type is object. Also, if the value retrieved by
4448 the data source is null _and_ the control proeprty type
4449 is object, return Convert.DBNull (match .Net).
4450 Fixes part of #324286.
4452 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4454 * ListControl.cs: Since we are getting two BinginContextChanged events
4455 for the same binding context instance (when the control is added to
4456 form, and when the form is actually shown), take it into account only the
4457 first time for a given binding context instance.
4458 Fixes part of #324286.
4460 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4462 * PropertryGridView.cs: Ops.
4464 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4466 * PropertyGridView.cs: Close dropdown form if the owner form is
4470 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
4472 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
4473 RootGridEntry.cs, CategoryGridEntry.cs:
4474 PropertyGrid rewrite.
4475 - Rewrite all of the control logic in PropertyGrid.
4476 - Rewrite all of the ComponentModel logic in GridEntry.
4477 - Rewrite all UI work in PropertyGridView.
4478 - Many bugfixes, etc.
4480 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
4482 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
4483 when all contained controls are autosize or dock-fill. Also take into
4484 account when the total percentage of column/row sizes is not 100%.
4487 2008-01-24 Andreia Gaita <avidigal@novell.com>
4490 - Save a reference to the IDocument in the instance and
4491 use that one instead of going to WebHost.Document; the document that the
4492 WebHost returns might not be the right one (in case of frames).
4493 - Use the hashcode returned from the IDocument interface.
4494 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
4495 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
4496 LinkColor, Url, VisitedColor, Window
4499 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
4500 set_Attribute, NextSibling, Parent, TagName, AppendChild,
4501 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
4502 SetAttribute, Equals, equality operators.
4503 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
4504 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
4506 * HtmlElementCollection.cs: Change implementation to use a generic
4507 collection. Implemented Enumerator and CopyTo
4509 * HtmlHistory.cs: Add constructor, no implementation yet.
4511 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
4512 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
4513 Equals, equality operators.
4515 * HtmlWindowCollection.cs: Implemented.
4517 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
4518 has been deprecated).
4520 * WebBrowserBase.cs: Use Completed event to track document loading
4521 (Navigated has been deprecated)
4523 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
4525 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
4526 level MenuItems do not respect tabs.
4529 2008-01-23 Geoff Norton <gnorton@novell.com>
4531 * XplatUICarbon.cs: Ensure that windows are created in their initial
4532 FormWindowState. Finished fixing Fullscreen windows on Carbon
4534 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4536 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
4537 be used as grab_control. Also save status of capture before show ContextMenu
4538 and restore it after close.
4540 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4542 * Control.cs: Internal FindRootParent method added to return high control
4545 2008-01-23 Geoff Norton <gnorton@novell.com>
4547 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
4548 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
4549 it work again. Handle HITTEST events.
4551 2008-01-23 Geoff Norton <gnorton@novell.com>
4553 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
4554 a crash in certain cases. Support for fullscreen windows in certain cases.
4556 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
4558 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
4561 2008-01-23 Geoff Norton <gnorton@novell.com>
4563 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
4565 2008-01-23 Geoff Norton <gnorton@novell.com>
4567 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
4569 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4571 * SplitContainer.cs: Remove unused declarations.
4572 * Binding.cs: Remove unused declarations.
4574 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4576 * Form.cs: Remove unused declaration of 'active' in Activate method.
4577 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
4578 prevent compilation warnings.
4579 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
4580 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
4581 * Bindings.cs: Remove unused formatting_enabled declaration.
4582 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4584 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4586 * PropertyGridView.cs: Remove usused 'ex' declaration.
4587 * DataGridView.cs: Remove unused declarations.
4589 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4591 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
4593 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
4594 to Control class, it makes possible to grab menu to controls that can't
4595 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
4596 WmMouseMove removed since it was used only to track menu events.
4599 - Moved all active_tracker stuff from Form.
4600 - ProcessActiveTracker added to prevent code duplicity, now mouse events
4601 can call this method instead of reimplement all necessary code handle for
4603 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
4607 - Remove special handle to ToolStripOverflow, now we can grab menu to
4608 controls that can't reach Form using parent tree.
4609 - Change type of grab_control from Form to Control.
4611 2008-01-22 Geoff Norton <gnorton@novell.com>
4613 * TextBoxBase.cs: Split up the sizing of controls and placing of
4614 controls. Fixes a bug where scrollbars in Reflector could be sized
4615 wrong and have non-working thumbers.
4617 2008-01-23 Geoff Norton <gnorton@novell.com>
4619 * XplatUI.cs: Refactor environment variables to default support to the
4620 Carbon driver on the Mac.
4622 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4624 * Label.cs: Uses new LabelPainter for drawing operations.
4625 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
4626 * Theme.cs: DrawLabel and LabelDefaultSize removed.
4628 2008-01-22 Geoff Norton <gnorton@novell.com>
4630 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
4632 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4634 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
4635 through the normal flat button code and don't draw the checkbox glyph.
4636 * Theme.cs: Button->ButtonBase signature change.
4639 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4641 * LinkLabel.cs: Uses new class LinkLabelPainter.
4643 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4645 * MessageBox.cs: Adjust right border space, we don't need to add
4646 "space_border*2" two times.
4648 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4650 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
4651 becomes a wrapper around Padding.
4652 [Fixes a part of bug #354676]
4654 2008-01-22 Geoff Norton <gnorton@novell.com>
4656 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
4657 acquired. Also ensure the buffer is large enough to grab the header
4658 we need on linux boxes.
4660 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4662 * Control.cs: Implement a custom enumerator so people can delete
4663 from the Controls collection while in a foreach.
4666 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4668 * PropertyGridView.cs: Fix focusing behavior:
4669 - Tab should focus the grid text box.
4670 - Clicking on the labels shouldn't focus the grid text box.
4672 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4674 * PropertyGridView.cs: IsValueTypeGridItem should return true
4677 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4679 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
4680 - Renamed GridEntry.SelectedObjects to TargetObjects to better
4681 reflect the property name role.
4682 - PropertyGrid.GetTarget is not required as the target is known
4684 - Setting values will handle value types as a special case now and
4685 populate them up in the chain.
4688 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
4690 * Hwnd.cs: Create a public property for the Graphics we keep around.
4692 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4694 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
4695 when the current object selection changes.
4696 Fixes failing test SelectedObject_Null2.B5.
4698 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4700 * PropertyGrid.cs: Process Browsable properties with
4701 DesignerSerializationVisibilityAttribute.Content as being expandable.
4702 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
4703 will not be expandable. We should be nested components-friendly now.
4705 2008-01-21 Andreia Gaita <avidigal@novell.com>
4707 * WebBrowserBase.cs: Check if control was loaded properly,
4708 don't bind if it wasn't.
4710 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
4711 GetElementFromPoint, equality operators, OpenNew, Write.
4712 Remove extra set_Body
4714 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4716 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
4717 that makes our AutoScale* stuff more tolerant to different orders
4718 of being set. [Fixes bug #354669]
4720 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4722 * PropertyGridView.cs, PropertyGridTextBox.cs:
4723 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
4724 [Fixes #339005 and #348209]
4726 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4728 * PropertyGridView.cs: Hide the grid text box before adjusting it
4729 for the newly selected GridItem.
4732 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4734 * Form.cs: Give MDI children the opportunity to cancel the parent form
4735 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
4736 properly for both the parent and child.
4737 * Application.cs: Signature of internal method changed, pass the previous
4741 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4743 * PropertyGridView.cs: Set the property value only if it has changed.
4746 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4748 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
4749 If the mouse hasn't actually moved, ignore these messages so the currently
4750 highlighted menuitem isn't reset to the one under the mouse.
4753 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4755 * PropertyGridView.cs: When the property changes Invalidate the GridItem
4756 in order for the properties with UITypeEditor.GetPaintValueSupported == true
4757 to reflect the change visually.
4760 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4762 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
4763 to 2.0 button drawing.
4764 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
4765 the button text is tall enough for one line. LineLimit says it will
4766 always draw at least one line, but it is a lie.
4769 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
4771 * XplatUIStructs.cs, X11Keyboard.cs :
4772 added some more VK_* keys to be handled.
4774 2008-01-16 Andreia Gaita <avidigal@novell.com>
4776 * Control.cs: Check if there is a container before setting or getting
4777 the validation flag.
4779 2008-01-16 Andreia Gaita <avidigal@novell.com>
4781 * ContainerControl.cs: Add flag to track if a control cancels validation,
4782 so we don't fire click events.
4785 - (HandleClick) Check if validation was cancelled before firing the click
4786 events (doubleclicks are fired, but not clicks)
4787 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
4788 ContainerControl.set_ActiveControl, but in the case of non-selectable
4789 controls, like a Label, activecontrol is not set.
4791 * ButtonBase.cs: Only fire clicks if validation passes.
4795 2008-01-16 Geoff Norton <gnorton@novell.com>
4797 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
4800 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
4802 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
4803 SelectedPath, just display the default dialog instead of crashing.
4806 2008-01-16 Geoff Norton <gnorton@novell.com>
4808 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
4809 AddExpose instead of trusting apples compositing manager which doesn't
4810 work for our use case. Remove some dead code causing warnings and
4811 redecorate some other code to prevent warnings.
4813 2008-01-16 Geoff Norton <gnorton@novell.com>
4815 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
4816 carbon signals us to redraw. Fixes another portion of the flickering bug
4818 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4820 * Form.cs: Prevent the MdiParent property to be set when value is the same
4821 as value already set. Fixes bug #328019.
4823 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4825 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
4826 it prevents NRE when closing mdi child windows. Fixes bug #325211.
4828 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4830 * InternalWindowManager.cs: Invalidade close button after mouse up when
4831 mdi form is prevented to close.
4833 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4835 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
4836 thanks to Andy Hume. Fixes bug #325433.
4838 2008-01-16 Andreia Gaita <avidigal@novell.com>
4840 * LinkLabel.cs: Reset focused_index when resellecting the control.
4843 2008-01-15 Geoff Norton <gnorton@novell.com>
4845 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
4848 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
4850 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
4853 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
4855 * ContainerControl.cs: Setting AutoScaleMode to anything should set
4856 Form.AutoScale to false.
4857 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
4858 AutoScaleBaseSize should be changed on Font change unless it has been
4862 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
4864 * MenuAPI.cs: On instance of MenuTracker check if source control is
4865 ToolStripOverflow and use properly method to find form.
4868 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
4870 [Fixes bug #323241 Transparent toolbar support]
4872 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
4875 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
4876 defined in control style to mimic win32 behavior.
4878 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
4879 it will be transparent.
4881 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
4883 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
4884 CreateParams for ToolBar controls.
4886 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4888 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
4889 FixedToolWindow, SizeableToolWindow, or None for border styles have
4890 different minimum sizes than regular forms. Implemented to fix
4891 regression in PDN with toolbox being too wide.
4893 2008-01-14 Andreia Gaita <avidigal@novell.com>
4895 * HtmlElementCollection.cs: Implemented
4897 * HtmlElement.cs: Implemented:
4905 * HtmlDocument.cs: Implemented GetElementsByTagName.
4907 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4909 * Screen.cs: Stub BitsPerPixel to always return 32.
4911 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4913 * Form.cs: Implement RestoreBounds.
4915 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4917 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
4918 Sebastien and his fabulous magical problem-finding machine:
4919 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
4920 respect the value set.
4922 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
4924 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
4925 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
4927 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4929 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
4930 messages (to match .Net), we need to remove the capture ourselves.
4932 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
4934 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
4935 will process the message and close our window.
4938 2008-01-10 Geoff Norton <gnorton@novell.com>
4940 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
4941 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
4944 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4946 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
4949 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4951 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
4952 Linux doesn't care, having a minimum matches MS and keeps the window
4953 from becoming too small to use window decorations.
4956 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4958 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
4959 ShowFocusCues. Make focus rectangles fit the text instead of the whole
4960 control. [Fixes bug #325419]
4962 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4964 * ComboBox.cs: Guard against an NRE if the user open a new form from a
4965 SelectedIndexChanged event. This closes the combobox dropdown, and we
4966 were trying to dispose it. [Fixes bug #352830]
4968 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
4970 * Control.cs, Form.cs: Implement the necessary semantics for
4971 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
4972 to determine if a focus rectangle should be drawn.
4973 * PropertyGrid.cs: Fix property visibility to match override.
4974 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
4976 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
4978 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
4981 2008-01-09 Geoff Norton <gnorton@novell.com>
4983 * XplatUICarbon.cs: Scroll windows in the correct direction.
4985 2008-01-09 Geoff Norton <gnorton@novell.com>
4987 * XplatUICarbon.cs: Track all created utility windows so we can hide them
4988 when the app is deactivated or spaces is enabled.
4990 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4992 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
4993 extra separation pixel for the label rect origin if SmallImageList is
4994 null, and thus we don't need that separation between icon and label
4996 Patch by Ernesto Carrea.
4999 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
5001 * StatusStrip.cs: Invalidate after completing a layout. The base
5002 OnLayout does this, but we don't call the base.
5003 * ToolStripItem.cs: Revert the previous change to invalidate after
5005 [Fixes bug #351341 better.]
5007 2008-01-07 Geoff Norton <gnorton@novell.com>
5009 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
5010 not a notification to exit the application. Listen for WM_QUIT
5013 2008-01-07 Andreia Gaita <avidigal@novell.com>
5015 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
5017 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
5019 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
5020 so it can repaint at the correct location.
5023 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5025 * ListControl.cs: SelectedValue should return a null value if
5026 SelectedIndex is -1. Also, when setting it, it should throw an
5027 ArgumentNullException if the value is null, as well as taking
5028 into account the String.Empty value, instead of ignoring it (we have
5029 tests for that now).
5030 Fixes part of #324286.
5032 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
5034 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
5035 SelectionStart is updated after pressing enter. Fixes bug #351918.
5037 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5039 * TextControl.cs: Revert a piece r92316 that prevented the fix
5040 from working when there were multiple tags in the text box.
5043 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5045 * TextControl.cs: Apply patch from Luke Page that prevents an
5046 NRE when determining the beginning of a paragraph.
5049 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5051 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
5052 caret gets moved with clicking away from a selected block of
5053 text. Fixes bug #351885.
5055 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5057 * TextControl.cs: Apply patch from Luke Page that takes line
5058 alignment into account for mouse selection, so that center and
5059 right aligned text can be selected.
5062 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5064 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
5065 issues after loading an RTF file by using the correct line feeds.
5068 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5070 * TextControl.cs: When deleting multiple line selections, we need
5071 to invalidate every line beginning at the first line of the selection.
5072 Patch from Luke Page fixes bug #351791.
5074 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5076 * ListControl.cs: When getting a CurrencyManager.PositionChanged
5077 event, don't set SelectedIndex if the number of items is 1. This is
5078 because, for the first item, PositionChanged is fired _before_
5079 ItemChanged (the place where we actually populate the items), and
5080 leave us in a temporary invalid state (since items collection is
5084 2008-01-04 Geoff Norton <gnorton@novell.com>
5086 * XplatUICarbon.cs: Create native toolwindows instead of
5087 the managed drawing ones.
5089 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5091 * LineTag.cs: If the line doesn't have any characters, return
5092 0 for GetCharIndex. Fixes an AOORE exception after certain
5093 caret movements. Fixes bug #351683. Patch by Luke Page.
5095 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5097 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
5098 is hit when there is selected text, only the selected text gets
5099 deleted, not the character in front of the selection as well.
5102 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5104 * ComboBox.cs: When the values are displayed, calculate the
5105 ComboListBox scrollbar's LargeChange based on the visible area's
5106 height and the actuall ItemHeight, instead of calculating it
5107 based on MaxDropItems value, since it's not used by our _current_
5111 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5113 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5114 Patch from Luke Page that fixes issues with font colors and styles
5115 not showing up in a readonly RichTextBox. Fixes bug #324354.
5117 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5119 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
5120 from Luke Page. This one fixes bug #349926.
5122 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5124 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
5125 an item in the IBindingList source changes with
5126 ListChangedType.ItemAdded. Ignore for now firing the event for other
5127 changes, since we want to have tests for those cases as well.
5129 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5131 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
5134 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5136 * TextBoxTextRenderer.cs: Implement a cache for measuring each
5137 character. This is effective because the typical usage of a
5138 TextBox is with a limited amount of fonts and characters, and
5139 the current implementation of TextBox measures everything one
5140 character at a time. Another second or two speedup for bug #347238.
5142 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5144 * Control.cs: Rewrite the Font getter to only query the parent's
5145 Font property once instead of twice. Since this operation is
5146 recursive, the queries were growing exponentially as the control
5147 tree got deeper. Another second or two speedup for bug #347238.
5149 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5151 * Control.cs: Avoid setting a parent (and more importantly, updating
5152 the zorder of all its children) if the parent is already correct in
5153 WmShowWindow. Decreases the startup time of the test case on bug
5154 #347238 from 35 seconds to 11 seconds.
5156 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5158 * X11Dnd.cs: When the dnd operation has started and we are
5159 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
5160 This is done to match .Net, which doesn't send those messages after
5161 dnd operation was completed/cancelled.
5164 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
5166 * ToolStrip.cs: Previous change should be != null, not == null.
5169 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
5171 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
5172 user may have moved the mouse off the current item during the event.
5174 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5176 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
5177 calling GetItemAt for every MouseMove event by also taking into
5178 account whether any mouse button is pressed (probably dragging);
5179 if so, we can call GetItemAt, and if not, try to not call it
5180 (GetItemAt can be quite expensive when used with a large number of items).
5182 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5184 * ListView.cs: Implement -finally- support for dnd, by calling
5185 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
5187 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
5188 simple calculation of distances for all the items in the owner
5191 2007-12-21 Geoff Norton <gnorton@novell.com>
5193 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
5194 for windows that are originally created as invisible. Fixes missing
5195 main window in paint-mono.
5197 2007-12-21 Geoff Norton <gnorton@novell.com>
5199 * XplatUICarbon.cs: Register our D&D handler. Register our custom
5200 subclass handler for com.novell.mwfview subclassing HIView. Implement
5201 Pasteboard and Dnd methods.
5203 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5205 * ListBox.cs: When we got focus, give focus to first item if there
5206 wasn't any pervious focused item. Also update navigation to depend on
5207 SelectedIndex rather than FocusedItem, just as .Net does.
5210 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5212 * ListBox.cs: Both FindString and FindStringExact methods must do an
5213 case insensitive search, should allow the last valid index to be
5214 passed in the overload taking an initial index, and should also
5215 continue searching from the top back to the specified index when it
5218 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5220 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
5221 redraw issue, and allows RichTextBox to draw colored text even while
5222 disabled or readonly.
5224 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5226 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
5227 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
5228 and doesn't grey text in a disabled RichTextBox.
5230 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5232 * RichTextBox.cs: Apply patch from Luke Page that adds better support
5233 for many RTF commands: quad alignment, separate formatting for blocks
5234 inside groups, and ParDef support. Makes the test case from bug #324589
5237 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5239 * LineTag.cs: Fix an error in the new Draw method that caused
5240 a crash when rendering the document on bug #324589.
5242 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5244 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
5245 TextControl.cs: Apply patch from Luke Page that adds support
5246 for URL links in RichTextBox.
5247 [Fixes enhancement #342516]
5249 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
5251 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
5252 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
5254 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5256 * ListBox.cs: When a key gets pressed, try to find a string
5257 if the key is a character or a digit.
5260 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5262 * TableLayoutPanel.cs: Remove some unused variables.
5264 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5266 * DateTimePicker.cs: Commit patch from Luke Page that ensures
5267 we don't end up at an invalid date when we click the up/down
5268 spinner to change the month or year. Fixes bug #348682.
5270 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5272 * Application.cs: Calling Exit in 2.0 should chain to the
5273 Exit (CancelEventArgs) version so it can be cancelled.
5274 * Form.cs: Create a flag to allow raising the Closing
5275 events to be skipped. We raise them once in Application.Exit
5276 and don't want to raise them again when the Form is actually
5277 closed. [Fixes bug #349073]
5279 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
5281 * ToolStripDropDown.cs: Guard against an NRE when there
5282 hasn't been a mainform set in the application context.
5285 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5287 * ListBox.cs: When SetBoundsCore gets called, besides
5288 calling UpdateScrollBars, update the value of
5289 last_visible_index, since we could need to show more items
5290 than before, and we need to let the paint routines know that.
5293 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5295 * ListView.cs: Add DesignerSerializationVisibility attribute to
5296 InsertionMark property.
5297 * ListViewItem.cs: Add same attribute to Position property.
5299 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5301 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
5304 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
5306 * ThemeWin32Classic.cs: Don't draw the background on a
5307 flat button if there is a background image.
5310 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5312 * ListBox.cs: If we remove the item currently selected,
5313 remove it not only from SelectedItems, but also
5314 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
5315 the items count decreased and focused_item has bigger value than that.
5317 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
5319 * Control.cs: Perform our layout after we resize ourselves
5320 if we had to adjust our AutoSize. Missed commit for bug
5323 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
5325 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
5326 we can provide an implementation of AutoSize.
5329 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5331 * ListBox.cs: Add the internal overload Sort (bool paint),
5332 to indicate whether we actually need a paint or we will
5333 call Refresh ourselves. This way we don't request a paint
5334 _before_ having an updated and valid layout.
5337 2007-12-12 Andreia Gaita <avidigal@novell.com>
5339 * XPlatUIX11.cs: Send paint messages when updating a systray icon
5340 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
5341 properly invalidated.
5344 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5346 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
5347 don't simply assign it to our internal group field, but instead
5348 use our Group property, which should do all the neccessary work
5349 required to support groups. Fixes an issue reported to me (mail) by a
5350 guy using this new feature.
5352 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
5354 * Control.cs: Use Scale instead of ScaleControl to ensure the
5355 whole hierarchy gets scaled.
5358 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5360 * DateTimePicker.cs: Don't set the internal MonthCalendar's
5361 Parent property. Doing this causes the control to be hosted by
5362 the Form instead of being a popup window.
5365 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5367 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
5368 at an index higher than Count, just use Add instead of Insert.
5371 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5373 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
5374 DrawPictureBox, this is handled by Control.PaintBackground.
5377 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
5379 * MenuAPI.cs: When process menu keys return true by default only if menu is
5380 active. Fixes bug #342892.
5382 2007-12-09 Andreia Gaita <avidigal@novell.com>
5384 * Control.cs: check if windows are actually mapped before
5385 trying to zorder. Fixes #342509, #346955
5387 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5390 * ListViewInsertionMark.cs:
5391 * ThemeWin32Classic.cs: Implement the drawing side of the
5392 new 2.0 ListView.InsertionMark property.
5394 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
5396 * CurrencyManager.cs: Silence some debug spew.
5398 2007-12-07 Geoff Norton <gnorton@novell.com>
5400 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
5401 masks for our children as well as siblings to avoid having to query
5402 Quartz for this information.
5403 * XplatUICarbon.cs: Implement a delegate based system to pass
5404 information to System.Drawing. Implement Async methods. Remove
5405 the hack for the resize thumb and imlpement a transparent Grow Box.
5406 Rework the messaging system to proplery create window's and messages,
5409 2007-12-06 Andreia Gaita <avidigal@novell.com>
5411 * X11Keyboard.cs: Use Xutf8LookupString to support international
5412 characters under alternate codepages. Patch from #340878
5414 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5416 * ListView.cs: When doing layout computations, set position in the
5417 ListView instances (we cache the position just as .Net does).
5418 * ListViewItem.cs: New internal setter method for Position. Also set
5419 position field as also available in 1.1, since we are going to use it
5420 now in the common case.
5422 2007-12-06 Andreia Gaita <avidigal@novell.com>
5424 * Control.cs: When removing controls, get the actual container
5425 to notify about active control changes. Fixes 341314.
5427 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5429 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
5431 2007-12-05 Andreia Gaita <avidigal@novell.com>
5433 * Control.cs: When updating the zorder, ignore windows that are not
5434 mapped. Fixes #342509
5436 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5438 * ListViewItem.cs: Actually implement serialization on this class.
5440 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
5442 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
5443 LinkCollection. Spaces to tabs, and removed extra tabs.
5445 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5447 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
5448 tests to fail (hopefully).
5450 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5452 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
5453 the image margin so custom renderers can correctly place it.
5455 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5457 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
5458 so custom renderers can correctly place it.
5460 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5462 * Application.cs: Let WM_CHAR messages flow through to controls
5463 hosted in Strips. [Fixes bug #343972]
5465 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5467 * ToolStripManager.cs: Guard against an NRE I ran into.
5469 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5471 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
5472 a Link is manually added to the Links collection, we need to set
5473 its owner, so it can invalidate properly.
5476 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5478 * ListView.cs: When changing ListViewItem.Position (which calls
5479 ListView.ChangeItemLocation), invalidate not only the area
5480 corresponding to the main item, but also to the area occupied
5481 by the items being moved.
5483 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5485 * ListView.cs: When changing the position of a given item,
5486 don't use item bounds, but item areas (which includes the item spacing
5487 between them). Also, use first/last position if the requested
5488 position is outside bounds (as .Net does). Invalidate the previous and
5489 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
5490 in a specific position, instead of directly accessing Items collection
5491 (this is done to get the right item - remember an Item can have a
5492 different position in the grid than in the Items collection).
5494 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5496 * MessageBox.cs: Calculate text area instead of just top left, this rect
5497 area will be used in DrawString. Fixes bug #343364.
5499 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5501 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
5502 screen width. Partially fixes bug #343364.
5504 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5506 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
5507 code inside recalculate, it makes code more simple.
5509 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
5511 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
5512 between update or add icon. Fixes bug #324344.
5514 2007-11-21 Andreia Gaita <avidigal@novell.com>
5516 * XPlatUIX11.cs: Do not treat tool windows as if they have no
5517 window manager, since that stretches the drawing area to include
5518 the window decorations, and they get hidden. Reverts r84444 and fixes
5519 #335849 and #342790 (mdi and pdn3 regression)
5521 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5523 * ListView.cs: When setting focused item, try to give focus to the
5524 previous one _only_ if the previous one remains valid.
5527 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
5529 * Application.cs: Revert r89650, as it broke a common case to fix
5530 an obscure case. Fixes bug #342606.
5532 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5534 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
5536 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5538 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
5539 alignment. [Fixes #324228]
5541 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5543 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
5546 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
5548 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
5549 it prevent problems when empty captions. [Fixes #342141]
5551 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5553 * Label.cs: Use Size instead of None. Fixes bug #342077.
5555 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5557 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
5559 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5561 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
5562 but there isn't a MdiContainer.
5565 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5567 * TextControl.cs: Don't recalculate document if the recalc_start and
5568 recalc_end hasn't changed.
5571 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
5573 * DataGridViewTextBoxCell.cs: Removed CWL.
5575 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5577 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
5579 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5581 * TextControl.cs: Missed some code for bug 341534 to trigger a
5582 recalculation when the font changes.
5584 2007-11-16 Andreia Gaita <avidigal@novell.com>
5586 * Control.cs: When updating the zorder, check if the child to update is
5587 the same control that is set to always be on top (i.e., scrollbars), and
5588 just put it on top directly. Fixes BadMatch error on pdn3
5590 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5592 * ListView.cs: Throw the needed exceptions for FindNearestItem.
5594 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5596 * Control.cs: Don't perform a new layout when a label changes its text,
5597 cause label handles its own autosizing.
5600 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5602 * ListView.cs: Implement 2.0 FindNearestItem methods.
5604 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5606 * ToolStripPanel.cs: Make Join at least add the control to the panel,
5607 even if the rest of what Join does isn't supported. Add some more
5608 support for vertical toolbars.
5609 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
5610 [Fixes the application breaking parts of bug #341998]
5612 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5614 * ToolStripItem.cs: When determining if we have a check/image margin,
5615 we need to look at ShowCheckMargin as well as ShowImageMargin.
5617 2007-11-15 Geoff Norton <gnorton@novell.com>
5619 * XplatUIOSX.cs: Rename to...
5620 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
5621 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
5623 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5625 * KeysConverter.cs: The default values should be an array of Keys, not
5626 strings. Also, the array has more values for 2.0.
5629 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5631 * Application.cs: Change ExecutablePath to use
5632 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
5635 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5637 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
5638 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
5639 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
5640 be ignored. Create a new GetLineEnding that can specify which types of
5641 line endings to look for. On Insert, only create new lines for \n and \r\n.
5644 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5646 * TextBoxBase.cs: As we loop through each line changing the font, tell
5647 the document that the line needs to be recalculated. Fixes bug #341534.
5649 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
5650 [Another round of refactoring]
5651 * Line.cs: Add DeleteCharacters.
5652 * LineTag.cs: Add Delete.
5653 * TextBoxBase.cs: Update to use new methods.
5654 * TextControl.cs: Refactor the Delete* methods.
5656 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
5658 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
5659 the patch. [Fixes #324856]
5661 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5664 * ListViewItem.cs: Add an initial implementation of
5665 2.0 ListViewItem.Position getter.
5667 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5669 * ListView.cs: Add a reordered_items_indices array, to allow us
5670 to have a different sorting than that of Items (the sorting in Items
5671 could not match the actual sorting in screen). This is needed to
5672 implement a pair of 2.0 features.
5673 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
5674 actual position in the ListView grid, since it could have a position
5675 different than its Index (position in ListViewItemCollection).
5677 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5679 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
5680 not draw partial lines.
5681 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
5682 LineLimit flag from the base is preserved.
5683 Fixes the windows part of bug #338965.
5685 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5687 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
5688 so that it can be canceled in KeyPress.
5691 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5693 * ListView.cs: In ItemControl, reset mouse-handling related
5694 fields even if we dont' have items (we still should reset them when
5695 we had items but then called Items.Clear). Partially based in a patch
5699 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
5701 * Application.cs: In ProductVersion first try AssemblyFileVersion
5702 before falling back to assembly version. Fixes bug #339787.
5704 2007-11-08 Andreia Gaita <avidigal@novell.com>
5706 * HtmlElement.cs: Implement InnerText setter.
5707 * WebBrowserBase.cs: Implement Navigated event support.
5708 Add flag to track when the browser "document" is ready to be retrieved.
5709 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
5710 Make sure browser document is ready before retrieving it.
5711 Clean up cached objects (document) when moving to a new page through
5712 any of the navigation methods.
5713 Use the new Mono.WebBrowser.INavigation interface to control navigation.
5714 Implement OnNavigated event.
5716 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
5718 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
5719 DrawLinkLabel, this is handled by OnPaintBackground.
5720 Fixes bug #339565, part II.
5722 2007-11-07 Andreia Gaita <avidigal@novell.com>
5724 * Control.cs: Revert r88915. Selecting text on a textbox depends on
5725 getting a Select call on click, so this call needs to be here for now.
5728 2007-11-07 Geoff Norton <gnorton@novell.com>
5730 * OSXStructs.cs: Add the kEventClassApplication constants.
5731 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
5732 application is deactivated otherwise Menu overlays linger on top of
5733 other application windows.
5735 2007-11-07 Geoff Norton <gnorton@novell.com>
5737 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
5738 dont support cursors yet anyways. This allows Reflector to run.
5740 2007-11-07 Geoff Norton <gnorton@novell.com>
5742 * XplatUIOSX.cs: Implement DragSize.
5744 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5746 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
5747 ItemControl, request the focus, as .Net does. This is needed after
5748 Control does not request focus anymore when it receives a
5751 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
5753 * Label.cs: Make DrawImage internal so it can be called from Theme code.
5754 Remove the DrawImage call from OnPaint.
5755 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
5756 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
5757 but before we draw the text for DrawLabel and DrawLinkLabel.
5760 2007-11-05 Andreia Gaita <avidigal@novell.com>
5762 * Control.cs: Remove select call on click. Fixes #325809
5764 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5766 * ListViewItem.cs: Add 2.0 Position property getter.
5768 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5770 * ListView.cs: Add 2.0 BackgroundImageTiled property.
5771 Also, to make it work properly, change item's BackColor and
5772 BackgroundImageLayout as needed.
5773 * ThemeWin32Classic.cs: Don't fill any background rectangle
5774 in ListView.ItemControl when drawing items; just let the Control
5775 base implementation fill it.
5777 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5779 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
5780 as well as adding a custom 'dummy' Converter, as .net does.
5782 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5784 * PropertyGridView.cs: When clicking drop-down button,
5785 select an index in the listbox only if our standard values collection
5786 has one or more items.
5788 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5790 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
5793 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5795 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
5796 the value is not changed. This ensure a pushed button remains in that
5797 state when clicked again. When switching the value of PropertySort
5798 between Categorized and CategorizedAlphabetical, do not update the
5799 grid items and do not fire a PropertyChangedEvent. When clicking the
5800 sorting buttons, do not modify the PropertySort value when switching
5801 between Categorized and CategorizedAlphabetical but only update the
5804 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5806 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
5808 * PropertyGrid.cs: Also put Categorized button in pushed state when
5809 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
5810 for help description label.
5812 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5814 * ListView.cs: When calculating the biggest item for a given column,
5815 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
5818 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
5820 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
5821 value for PropertySort on 1.0 profile. PropertySortChanged event
5822 should only be fired on 2.0 profile. Fixed NullReferenceException
5823 in UpdateSortLayout when PropertyGrid contains no items.
5825 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
5827 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
5830 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5832 * ListViewItem.cs: Implement 2.0 IndentCount property.
5834 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5836 * X11Dnd.cs: When sending status in a dnd operation, compare current
5837 effect with the 'allowed' field instead of 'drag_data.Allowed', since
5838 the later is only created when a Winforms application is both the
5839 source and the target, but not when we are the target only.
5840 Fixes part of #324251.
5842 2007-11-01 Geoff Norton <gnorton@novell.com>
5844 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
5846 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
5847 children out of the drawing view on mac.
5848 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
5849 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
5851 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
5853 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
5854 on the non-hosted-control part of it shouldn't do anything.
5855 Fixes part of bug #327498.
5857 2007-11-01 Andreia Gaita <avidigal@novell.com>
5859 * WebBrowserBase.cs: revert previous change, resize can be called anytime
5861 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
5863 * Application.cs: When a toolstrip has the keyboard input loop, let messages
5864 it does not use flow through to controls that are hosted in menus.
5865 Same with mouse clicks.
5866 * Form.cs: Don't close all menus on click if the click is on a
5867 control hosted in a menu.
5868 Fixes part of bug #327498, and part of bug #325969.
5870 2007-10-31 Andreia Gaita <avidigal@novell.com>
5872 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
5874 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
5876 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
5877 Addresses an issue raised in bug #336218.
5879 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
5881 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
5882 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
5884 2007-10-30 Andreia Gaita <avidigal@novell.com>
5886 * ContainerControl.cs: Check if the active control is a
5887 child of a removed control and update active_control accordingly.
5890 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5892 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
5893 or the MaxDate. Fixed bug #337693.
5895 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5897 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
5898 after calling SetWindowLong for a form, to force an immediate NC refresh.
5899 Fixes first part of bug #325150.
5901 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5903 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
5904 simple. Fixes the last part of bug #322668.
5906 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5908 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
5909 needs to be TopMost as well, or else the MessageBox is under the form.
5910 Patch by George fixes bug #325300.
5912 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5914 * X11Dnd.cs: When starting a new drag operation, reset the static
5915 'dropped' field to false (previously the implementation didn't reset
5916 it and got confused after the first drag).
5919 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5921 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
5922 items instead of re-creating them all. For this purpose we now cache
5923 both CategoryGridEntry items and the GridEntries for the main object's
5925 * GridItem.cs: Make SetParent method abstract.
5926 * GridEntry.cs: Override the SetParent method (already there, but now
5930 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5932 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
5933 depending on its depth (as .Net does). Update the needed values in
5934 MouseDown handler. Also draw the plus/minus rect after the label,
5935 so we don't draw on top of it.
5937 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
5939 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
5940 processed by forms or controls when menu is active. [Fixes #333548]
5942 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5944 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
5945 parent doesn't have focus. This was causing ToolStripTextBoxes to take
5946 focus on mouse over.
5948 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5950 * TextControl.cs: Code cleaning, simplifying.
5952 2007-10-24 Geoff Norton <gnorton@novell.com>
5954 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
5955 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
5957 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5959 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
5960 the cap is maxvalue, not actually 0. [Fixes bug #336218]
5962 2007-10-24 Andreia Gaita <avidigal@novell.com>
5964 * SendKeys.cs: apply jpobst's patch to bug #332409
5966 2007-10-23 Andreia Gaita <avidigal@novell.com>
5968 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
5969 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
5972 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5974 * PropertyGridView.cs: If a property has an UIEditor available,
5975 make the drop-down/editor button available only if the property
5978 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5980 * PropertyGridView.cs: Don't make the grid item textbox
5981 editable when a drop-down control is available, but
5982 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
5983 true. The same bur the color of the grid item value's label.
5985 2007-10-22 Geoff Norton <gnorton@novell.com>
5987 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
5988 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
5989 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
5990 driver. Padd the bottom of all real windows so the resize thumb doesn't
5991 obscure scroll/status bars.
5993 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
5995 * WindowsFormsSection.cs: Implement.
5997 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
5999 * MdiClient.cs: Maximize new active mdi child when a maximized child is
6000 closed see #325434 patch.
6002 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
6004 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
6007 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6009 * PropertyGridView.cs: When showing the textbox for a grid item,
6010 have two local variables to store the read-only and non-editable
6011 status of a grid item (we were previously using just one variable
6012 to do this, when actually they are slightly different).
6013 Fixes part of #325023.
6015 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6017 * PropertyGridView.cs: When showing a drop-down list, try to get the
6018 values using TypeConverter.ConvertTo (to convert to a string). Fixes
6021 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6023 * PropertyGrid.cs: When updating a property and populating sub grid
6024 items, remove the previous ones, and invalidate the specific area.
6025 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
6026 area behind a grid item.
6027 * GridItemCollection.cs: Add an internal Clear method, to allow us to
6028 clean the items if needed (specially for controls implementing
6029 ICustomTypeDescriptor and returning a variable number of properties).
6032 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
6034 * TextControl.cs: Clean up and document the Insert function.
6036 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6038 * TextControl.cs: Make sure we know our start point for updating the view
6039 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
6042 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6044 * ListView: Couple of corcompare fixes.
6046 2007-10-17 Geoff Norton <gnorton@novell.com>
6048 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
6049 the title caption of real window.
6051 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6053 * ErrorProvider.cs: Add the error provider's internal window to a
6054 containercontrol when the parent changes. [Fixes bug #329714]
6056 2007-10-17 Geoff Norton <gnorton@novell.com>
6058 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
6059 When we make a new window; restore the old active window - fixes dialogs.
6061 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6063 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
6064 when modifying a property, and if found then invalidate as
6066 Fixes part of #324865.
6068 2007-10-17 Geoff Norton <gnorton@novell.com>
6070 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
6071 highly experimental. Fixed coordinate translation. Fixed window locations.
6072 Initial support for clipping. Implemented NC areas and menus. Support for
6073 launching from command line from Will Johansson (wjohansson@atacomm.com).
6074 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
6075 wjohansson@atacomm.com)
6076 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
6077 Hwnds now track the existence of all of their children for Mac clipping.
6078 * XplatUI.cs: Re-enabled the native driver on the Mac.
6080 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6082 * Line.cs: Move the InsertString function to here.
6083 * TextControl.cs: Cleanup some duplicate code, move some InsertString
6084 functionality to Line.
6086 2007-10-17 Geoff Norton <gnorton@novell.com>
6088 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
6090 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
6092 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
6093 always setting value to true.
6094 * Form.cs: When changing AcceptButton, notify new and original button.
6096 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
6098 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
6099 a custom control that implements IButtonControl instead of an actual
6100 button. [Fixes bug #334244]
6102 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
6104 * Form.cs: Change SelectActiveControl to internal, we need to call it in
6107 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
6108 active control when activate a new mdi window.
6112 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
6114 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
6118 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6120 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
6121 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
6122 so we always recalculate the whole document instead of just the new part.
6125 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6127 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
6128 when the mouse was to the left of the first character in the line.
6130 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6132 * TextBox.cs, TextBoxBase.cs: When setting the document's password
6133 character, use the property instead of the variable so that the
6134 UseSystemPasswordChar property is taken into account.
6137 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6139 * FolderBrowserDialog.cs: When a node is right clicked and the "New
6140 folder" contex menu appears, actually add the new folder to it, even
6141 if the node is not currently selected. Still use SelectedNode in case
6142 there wasn't found a node under the pointer.
6145 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6147 * ListViewItem.cs: When retrieving the focused state, the index check
6148 should be done only when ListView is in virtualmode, as it is an
6149 expensive check for normal mode.
6151 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6153 * ListViewItem.cs: Make the focus state information be stored
6154 in the ListView, not in the items. This is done to match the MS
6155 behaviour for items that are not yet part of a ListView control;
6156 besides that, since just one item can be focused at the same time,
6157 we save a little space in our items.
6158 Fixes part of #331643.
6160 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6162 * ComboBox.cs: When focus is lost, deselect the text. When setting
6163 text of control, select all text. Do not hide selection when control
6164 does not have focus. Fixes bug #333663.
6166 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6168 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
6169 instead of ArgumentException when SelectionLength is set to negative
6170 value. Added same check to SelectionStart. Code formatting.
6172 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6174 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
6175 or SelectionStart. Code formatting.
6177 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6179 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
6180 indicating that there was not a previous drag-and-drop operation going
6182 Fixes part of #325071.
6184 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6186 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
6187 AllowedEffect, don't let the drop operation happen.
6190 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6192 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
6194 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6196 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
6199 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6201 * Line.cs: Add a method that finds the tag that contains an x-coord.
6202 * LineTag.cs: Add a method that finds the character at an x-coord using
6203 a binary search, the old way was a linear search.
6204 * TextControl.cs: Change FindCursor to use the above new methods.
6206 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6208 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
6209 value different than AllowedEffect). This should be possible to
6210 indicate that dragging is not possible in some control/area.
6212 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
6214 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
6215 descent internally when font changes instead of outside code being responsible
6217 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
6218 instead of accessing internal variables.
6220 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
6222 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
6223 remove special treatment for ArrangeIcons since it is already arranged.
6225 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6227 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
6228 the Win32 backend uses Color.
6229 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
6230 Refactor to store a Color instead of a Brush for Color.
6232 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6234 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
6235 away. I didn't realize I needed this when I refactored these earlier.
6237 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6239 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
6240 store a Color structure and use the ResPool for back color instead of
6241 holding onto brushes.
6243 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6245 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
6248 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6250 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
6251 to recalculate its size. Fixes a part of bug #331052.
6253 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6255 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
6256 button. Fixes a part of bug #331052.
6258 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6260 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
6262 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
6266 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6268 * TextBoxTextRenderer.cs: Don't make this a static class, as static
6269 doesn't exist in 1.1. (Thanks jb!)
6271 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6273 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
6274 class to allow us to use different backends on different platforms.
6275 Linux uses the current [Draw|Measure]String backend. Windows uses
6276 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
6277 of GDI+. This leads to better looking text and more accurate measurements
6278 on Windows, fixing many of the reported issues.
6279 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
6281 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6283 * FolderBrowserDialog.cs: When running on Windows,
6284 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
6285 since we must match both "C:" and "C:\" forms. A little hackish, but
6289 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6291 * ListView.cs: When calling EndEdit (after editing an item),
6292 create a new instance of LabelEditEventArgs to keep clean the fields
6293 in case we get a new call to BeginEdit; also do Application.DoEvents
6294 to have focus in synch. This is a fix similar to TreeView's #325244.
6296 2007-10-07 Andreia Gaita <avidigal@novell.com>
6298 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
6299 * WebBrowserBase.cs: Added dialog support, calling the
6300 WebBrowserDialogs classes for each specific dialog type.
6302 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6304 * ListView.cs: When the last item is focused and is removed,
6305 move the focus to the previous item (in Items order). This is what MS
6309 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6311 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
6312 instead of the opposite (RemoveAt call Remove). This is a better
6313 approach since we don't need to to a pair of traversals when using
6316 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6318 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
6319 check that the node actually has nodes, and if not, move to the
6320 parent node instead.
6323 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6325 * TreeView.cs: Move the previous change to the general case (to
6326 call Application.DoEvents in cases where the method was called by
6329 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6331 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
6332 call Application.DoEvents. This is neccessary when we get a call to
6333 BeginEdit from an AfterLabelEdit handler, because the focus always
6334 goes to the TreeView, even if we try to give it to our
6335 LabelEditTextBox. The call do Application.DoEvents seems to
6336 synchronize the focus, basically.
6339 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6341 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
6342 should be false. This also removes some nasty recursive paths. Fixes
6345 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
6347 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
6348 state to normal. Also resize window when cascading. Fixes #325433.
6350 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6352 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
6353 DefaultForeColor, as drawing empty colored lines isn't very useful.
6354 [Fixes the not drawn lines part of bug #324358]
6356 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6358 * TextControl.cs: Move Line and LineTag classes into separate files to
6359 make things easier to find.
6360 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
6361 * RichTextBox.cs: Capitalize LineTag.Length property access.
6362 - This is purely an organizational/formatting change, no logic changed. -
6364 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6366 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
6369 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6371 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
6374 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6376 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
6377 prevent calling of OnBackColorChanged. Fixes #325321.
6379 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6381 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
6382 because control can be disabled because owner is disabled.
6384 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
6386 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
6387 string.Empty, test failed from previous change.
6389 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
6391 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
6392 is null, not String.Empty. See bug #323038.
6394 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
6396 * TextControl.cs: Change the margins to match MS a little better.
6397 Still not perfect for X11 due to some DrawString differences, but
6398 is still an improvement over the old stuff.
6399 Partially fixes #324467.
6401 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6403 * FolderBrowserDialog.cs: When using MyComputer as
6404 RootFolder, let absolute paths be considered as valid ones. Also, use
6405 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
6406 for Windows compatibility.
6407 Partially fixes #325247.
6409 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6411 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
6412 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
6413 method, since it causes the dialog to not select folders directly
6414 under the root path (when setting SelectedPath property).
6416 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6418 * TreeNode.cs: When calling Expand/Collapse and need to call
6419 ExpandBelow/CollapseBelow respectively, take into account
6420 partially visible nodes (previously Expanding/Collapsing
6421 a partially visible node in the bottom was not updating its +- sign).
6423 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6425 * TreeView.cs: When calling Expand on a TreeNode, and we need to
6426 expand nodes below (ExpandBelow), scroll the entire Viewport
6427 area if the node is above it and not visible (instead of scrolling
6428 the area from node's Bottom, which applies only when the node is
6432 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6434 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
6435 node in the bottom area (as .Net does). This is done to preserve the
6436 scroll position when ExpandAll is called before handle is created for
6437 the 1.1 profile (bottom area, as opposed to top area in 2.0).
6440 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6442 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
6443 bottom area if we are in fact not using the vertical scroll bar.
6446 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6448 * Control.cs: Comment out a double buffering optimization that doesn't
6449 take into account invalidates created in OnPaint, causing the control
6450 to never be redrawn. It would take quite a bit of work to work around
6451 this, but I left it commented with an explanation for later possible
6455 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6457 * Control.cs: Ask parent to perform a layout if control is AutoSize and
6459 * RadioButton.cs: Implement GetPreferredSizeCore.
6462 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6464 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
6467 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6469 * Application.cs: Move the sync context stuff to Run instead of RunLoop
6470 so that it doesn't get uninstalled on modal forms.
6471 * Control.cs: Install a sync context when a control is created.
6472 * WindowsFormsSyncronizationContext.cs: Create a private static control
6473 to invoke on. This is easier than trying to find a created control we
6477 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
6479 * Application.cs: Install a WindowsFormsSynchronizationContext in the
6480 run loop, and uninstall it when done.
6481 * WindowsFormsSynchronizationContext.cs: Implement.
6482 [Fixes the common case in bug #327608]
6484 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
6486 * DataGridViewCellCollection.cs: Added argument checks for indexers.
6487 Use case-insensitive lookup of column name in indexer. Code
6490 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6492 * TreeNode.cs: When collapsing or expanding a node, check whether its
6493 change will affect the visible area (we were previously doing a
6494 IsVisible check, but that check is not enough since children nodes
6495 could be still visible). Fixes part of #325266.
6497 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6499 * TreeView.cs: Always select the first node when the TreeView gets
6500 focus if there is no currently selected node.
6503 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6505 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
6506 node being selected is null.
6507 [Patch from Yves Bastide fixes bug #326858]
6509 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6511 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
6512 whether all the parent nodes are expanded.
6513 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
6514 call RecalculateVisibleOrder if all previous nodes are expanded.
6515 Before that we were doing a IsVisible check, but sometimes the node
6516 is not in the visible area, but _should_already be ready, because of
6517 all previous nodes are expanded. Fixes #325259.
6519 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6521 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
6522 portion of the item is clicked.
6524 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6526 * TextControl.cs: Do not tell the system to move the cursor if the
6527 textbox isn't focused. Fixes part of bug #322668.
6529 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6531 * ComboBox.cs: When there are no items, do not show the dropdown if
6532 the down arrow is clicked. Fixes part of bug #322668.
6534 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6536 * ToolStripComboBox.cs: Manually set the size of this control in the
6537 constructor, as it doesn't seem to be the same as DefaultSize.
6538 Fixes a failing monobuild test.
6540 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6542 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
6543 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
6545 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6547 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
6548 Desktop. This lets it work for people who have moved their desktops
6549 from the default location on windows. For people who have not, both
6550 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
6552 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6554 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
6555 but when the base constructor sets this, the control is null. Set it
6556 again in the constructor. Fixes a failing monobuild test.
6558 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6560 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
6562 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
6565 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6567 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
6568 will handle it themselves.
6569 * ToolStripItem.cs: When deciding what the text of a tooltip should
6570 be, use the Text property instead of the text field.
6571 * ToolStripTextBox.cs: Handle tooltips.
6572 [Fixes bugs #325417 and #325973]
6574 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6576 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
6577 left click. Fixes the easy part of bug #325969.
6579 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6581 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
6582 bug #325406, but set a minimum for StatusStrip to 22 to keep
6583 bug #325390 fixed. I think this minimum would have been figured
6584 up automatically if the grip was actually a ToolStripItem, but it
6587 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6589 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
6590 as this is apparently the actual value used by .Net. Also apply
6591 ItemPadding in Details view only, and decrease the general width padding,
6592 to have only the needed. This should fix #324340 in Windows too.
6594 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6596 * ListViewItem.cs: Don't Invalidate item if parent is inside
6597 a BeginUpdate/EndUpdate block. This prevents to have differences
6598 between the ListView and items state, as well as avoid some exceptions
6600 * ListView.cs: Make 'updating' field internal.
6602 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6604 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
6605 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
6606 size if appropriate.
6607 Fixes reopened bug #325414.
6609 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6611 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
6612 * ToolStripItem.cs: Invalidate before and after our new autosize when
6614 Fixes reopened bug #325390.
6616 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6618 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
6619 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
6622 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6624 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
6626 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6628 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
6629 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
6632 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6634 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
6635 item to select when the ToolStrip is selected.
6636 * ToolStripControlHost: Realign the control when the bounds or visibility
6638 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
6639 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
6641 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
6642 base.OnPaint. Was causing text not to be drawn.
6644 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6646 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
6648 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6650 * TreeView.cs: When creating the label edit text box,
6651 set is initially to Visible = false. This is done to
6652 prevent a confusion in the layout which makes it to lose
6653 focus when shown the first time. Fixes part of #82592.
6655 2007-09-13 Andreia Gaita <avidigal@novell.com>
6657 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
6659 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6661 * ToolStrip.cs: Take Margin into account when calculating preferred
6662 size. Also, allow preferred size to get smaller than the explicit
6664 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
6665 First step towards fixing bug #82747.
6667 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6669 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
6670 full row select background over the plus/minus glyph. Also, turn
6671 off the focus rectangle for full row select since MS doesn't seem
6672 to ever paint it. [Fixes bug #81839]
6674 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6676 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
6677 This was causing keyboard opened dropdowns to lose focus.
6680 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6682 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
6683 ClientRectangle instead. [Fixes bug #82838]
6685 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6687 * SplitContainer.cs: We can't reset Visible on every layout because
6688 someone may have set Visible = false explicitly on a SplitterPanel.
6689 Make sure when we switch orientation the SplitterDistance does not
6690 change. Fixes two failing tests.
6692 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6694 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
6695 TextRenderer, since the latter is only available in 2.0.
6697 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
6699 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
6700 * SplitContainer.cs: Implement FixedPanel layouting.
6702 2007-09-12 Andreia Gaita <avidigal@novell.com>
6704 * WebBrowserBase.cs: setup shutdown routine
6706 2007-09-12 Andreia Gaita <avidigal@novell.com>
6708 * Application.cs: Let keyboard events that are targetted
6709 to non-mwf windows hosted inside mwf (as in, webbrowser),
6710 propagate properly. Fixes keyboard handling on the webbrowser.
6712 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6714 * ListView.cs: When handling MouseUp event and we are
6715 highligting a node with the mouse right button, don't trigger
6716 Before/AfterSelecting event, since we are not actually selecting
6719 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6721 * TreeView.cs: When editing a node, modify the edit text box
6722 depending on the text length (as you are typing), like MS does.
6724 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6726 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
6727 Override GetPreferredSizeCore to perform calculations. Remove custom
6728 autosize logic. [Fixes bug #82739]
6730 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6732 * TextBoxBase.cs: Modified should default to false.
6734 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6736 * Control.cs: Update the anchoring distances even when layout is supspended.
6737 Patch provided by George fixes bug #82805.
6739 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6741 * Control.cs: Provide a setter for ExplicitHeight.
6742 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
6743 remove the hacks in here for requested_height.
6746 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6748 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
6749 Maximum to lower that its current Value caused an ArgumentException by setting
6750 the Value to the new Maximum.
6752 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6754 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
6755 handle moves to the closest tick when it is being dragged.
6758 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6760 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
6761 can't let them count as real items when calculating where to merge in the
6762 user's items. [Fixed bug #82786]
6764 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6766 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
6767 who want to add a menu item directly onto a toolstrip.
6768 [Fixes bug #82775, part II]
6770 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6772 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
6773 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
6774 don't set it to available.
6775 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
6776 [Fixes bug #82727, part II]
6778 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6780 * StatusStrip.cs: Change item placement to None if not visible.
6781 * ToolStripItem.cs: Invalidate when InternalVisible changes.
6782 These should have been committed to fix 82723, but I missed them.
6784 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6786 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
6787 Click, and that it is only called once.
6788 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
6789 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
6793 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6795 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
6797 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
6798 instead of 8, just like above. Partially fixes #82734.
6800 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6802 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
6805 * ListView.cs: Remove extra space between rows in Details view (match
6807 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
6810 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
6812 * Application.cs: Modified ProductVersion to return value of
6813 AssemblyInformationVersion if available, and fallback to assembly
6814 version. Fixes bug #82746. Code formatting.
6815 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
6818 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6820 * Control.cs: When updating ZOrder for a child control,
6821 take into account the implicit ones (we need it in our controls
6822 using them). Fixes #82642.
6824 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
6826 * ToolStripItem.cs: Add support for animated images.
6829 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
6831 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
6832 visible. [Fixes bug #82727]
6834 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6836 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
6837 so we repaint using the new size. [Fixes bug #82723]
6839 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6841 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
6842 option. [Fixes bug #81779]
6844 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6846 * TreeView.cs: Override HandleClick because the StandardClick style is
6847 set to false. According to MSDN (and testing), the click events should
6848 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
6850 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6852 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
6853 the border will disappear. Fixes reopened #82653.
6855 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6857 * Control.cs: If the control is autosize, and its preferred size changes
6858 when it lays out its children, tell its parent so it can be re-layed out.
6859 Fixing some of the fallout from r85433.
6861 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6863 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
6864 and CheckBox share some code.
6866 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6868 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
6869 the TrackBar, not every mouse move. [Fixed bug #82718]
6871 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6873 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
6874 under 2.0 rendering. [Fixes bug #82657]
6876 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6878 * TreeView.cs: If we found a TreeNode to display a context menu, but
6879 it doesn't have one to show, let the TreeView display its menu
6880 instead. [Fixes bug #82680]
6882 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6884 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
6885 OnPaintInternal instead. Give the internal TextBox a Border property
6886 so it can draw itself more correctly. [Fixes bug #82653]
6888 2007-09-06 Zoltan Varga <vargaz@gmail.com>
6890 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
6892 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6894 * ComboBox.cs: Adjust combobox button state to reflect current state when
6895 back to enabled = true. Fixes first issue of #82654.
6897 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6899 * Control.cs: Fix last patch regression, prevent forms to update zorder when
6900 setting visible property.
6902 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6904 * Control.cs: Update zorder after control creation in SetVisibleCore, it
6905 fix zorder for controls initially created as non visible. Fixes #82667.
6907 2007-09-04 Everaldo Canuto <everaldo@simios.org>
6909 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
6910 mimic win32 look. Fixes #82656.
6912 2007-09-01 Zoltan Varga <vargaz@gmail.com>
6914 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
6915 Stubs for new net 3.5 classes.
6917 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6919 * ListViewItem.cs: In ListViewItemCollection operations calculate
6920 Layout for owner as well as invalidate it. Fixes part of #82642.
6922 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
6924 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
6925 when returning Enabled. [Fixes bug #82651]
6927 2007-08-30 Everaldo Canuto <everaldo@simios.org>
6929 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
6931 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6933 * ListView.cs: Put item padding info in a single place
6934 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
6936 * ThemeWin32Classic.cs:
6937 * Theme.cs: Likewise.
6939 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6941 * ListView.cs: When a ListViewSubItem instance is invalidated,
6942 invoke Invalidate on parent ListViewItem, not parent ListView.
6945 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6947 * ListView.cs, ListViewItem.cs: corcompare stuffs.
6949 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6951 * BindingMemberInfo.cs: Implement == and != operators.
6953 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6955 * HtmlElementEventArgs.cs: Implement properties.
6957 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6959 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
6961 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6963 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
6964 Add (string,string,string) to implement the imagekey. It turns out, we
6965 use the requested imagekey whereas .Net does not. So I broke ours to match
6968 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6970 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
6972 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6974 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
6976 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
6978 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
6979 up-to-date. Fixes bug #82618.
6981 2007-08-29 Everaldo Canuto <everaldo@simios.org>
6983 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
6984 reflect document changes. Fixes #82367.
6986 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6988 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
6989 as well as add new ones. This should make work the BackgroundImage
6990 property for ListView again.
6992 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6994 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
6995 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
6996 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
6998 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7000 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
7003 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7005 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
7006 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
7008 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7010 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
7011 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
7013 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7015 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
7017 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7019 * GridEntry.cs: Implement GetService.
7021 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
7023 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
7024 for label editting, make sure we focus back on the TreeView.
7027 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7029 * ListView.cs: Add some 2.0 overrides.
7031 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7033 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
7034 because getter dont returns right value before handle creation. Thanks
7035 to George. Fixes #82569.
7037 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7039 * Theme.cs: Revert last patch, it causes error under win32.
7041 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7043 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
7044 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
7045 logical Desktop rather than the physical file system location. Fixes #82603.
7047 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
7049 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
7050 for the patch. Fixes #82568.
7052 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7054 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
7057 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7059 * ListViewInsertionMark.cs: New stubbed class.
7061 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7063 * FolderBrowserDialog.cs: When adding folder, immediately create the
7064 directory with temporary name and rename the directory when editing
7065 finishes. This matches MS. Ensure the node for the new folder is
7066 selected and LabelEdit is disabled, when editing is either finished
7069 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7071 * TreeView.cs: When editing label of node, ensure node is visible.
7073 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
7075 * PropertyGridView.cs: Set the value only if it has changed.
7077 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7079 * ListView.cs: Some more code refactoring to add support sorting
7080 with groups (now for Details view). Remove unused code also.
7082 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7084 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
7085 Not a big fan of reacting immediately to a field in an EventArg, but that's
7086 the way it's done. (This is part of the previous commit that got left out.)
7088 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7090 * FolderBrowserDialog.cs: Removed need for separate description field.
7091 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
7092 has focus when dialog box is displayed again, regardless of what
7093 button was pressed the previous time. Set RootFolder and SelectedPath
7094 each time dialog box is displayed. This ensures the treeview is
7095 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
7096 when it does not have focus. Added support for more special folders.
7098 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7100 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
7101 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
7102 it resets the edit_args.
7103 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
7106 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
7108 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
7109 button to match MS. Provide more meaningful exception message for
7110 invalid RootFolder value. Use zero-length string when SelectedPath
7111 is set to null. Allow non-rooted paths in SelectedPath, but ignore
7112 them in FolderBrowserTreeView. Allow folders to be created in
7113 RootFolder. Fixes bug #82576.
7115 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7117 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
7118 since we need to take into account the group headers and the margin
7120 * ListViewGroup.cs: Add a rows field to store the number of rows per
7123 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7125 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
7126 Anyways, let's just follow the lead.
7128 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7130 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
7131 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
7132 controls in GetPreferredSizeCore.
7133 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
7136 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7138 * PrintDialog.cs: Need to instantiate the form variable here too.
7140 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7142 * ListView.cs: Do some reorganization to support sorting in groups,
7143 by doing the layout sequentially in ListView.Items. Also add support
7144 for the Default Group, which should be available for items with no
7146 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
7147 for storing layout info also.
7148 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
7149 collection, as well as providing internal members to do a traversal
7150 including the default group (needed when doing layout/drawing).
7151 * ThemeWin32Classic.cs: When drawing group headers use internal
7152 ListViewGroupCollection members to take into account the default
7155 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
7157 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
7159 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7161 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
7162 been created. If handle is created, we want arror keys. If we are editing
7163 a node, we want things like enter, esc, home, end, page up, page down.
7164 Allows Esc to work for FolderBrowserDialog.
7166 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7168 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
7169 they close when ESC is pressed. Thanks Andy!
7171 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7173 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
7174 This way we can tell if this is a CommonDialog provided with mono, or one
7175 that is being implemented outside by a developer. If it is an external one,
7176 the developer is responsible for showing their own form. We were showing
7177 our blank form after the developer showed his.
7178 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
7179 PageSetupDialog.cs: Instantiate form variable in our constructor.
7182 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7184 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
7185 and always return true. [Fixes bug #81616]
7187 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7189 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
7190 TextBox. [Fixes bug #82549]
7192 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
7194 * FileDialog.cs: When Save/Open is clicked and no filename is selected
7195 or entered then do not close the dialog. Fixes bug #82539. Removed
7198 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
7200 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
7201 code to this method. It is calling every time filter changes. This method
7202 will help to fix the bug #80887.
7204 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
7206 * CheckBox.cs: Implement AutoSize calculation.
7208 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
7210 * CheckBox.cs: Use new 2.0 rendering for 2.0.
7211 * Theme.cs: Method declarations for 2.0 rendering path.
7212 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
7214 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7216 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
7218 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7220 * ListViewGroupCollection.cs: Implement AddRange the right way, to
7221 only call Redraw on the parent one time.
7223 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7225 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
7226 GetClipboardContent.
7227 * DataGridViewCell.cs: Implemented GetClipboardContent,
7228 GetEditedFormattedValue, GetFormattedValue.
7229 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
7231 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
7233 * TableLayoutStyleCollection.cs: corcompare fix.
7235 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7237 * DataObject.cs: Implemented retrieval of convertible / not convertible
7240 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
7242 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
7243 ourselves. This ensures the entire old bounds are repainted, in case our new
7244 size is smaller. [Fixes bug #82518]
7246 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
7248 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
7249 flag to make fast handle of mouse events, without this the mouse move is
7250 handled in some manner, whether it is a mouse move or not. Fixes #81588.
7252 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7254 * ListView.cs: When doing layout calculations don't use a ref
7255 param to keep the current item; instead use its Index value (this
7256 is specially important when doing the layout with Groups
7257 and Items being sparse). Also don't take into account items added to
7258 the Group but not yet added to the main ListView.Items collection.
7260 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7262 * ListViewGroupCollection.cs: Forgot to mimic an issue
7263 in the indexer (don't assign the ListView owner for new values).
7265 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7267 * ListViewGroupCollection.cs: Make the string indexer use
7268 the int based indexer to re-use code, instead of duplicate the code.
7269 Also Redraw as needed and take into account null values.
7271 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
7273 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
7276 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
7278 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
7279 when other buttons are clicked or navigated to.
7281 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7283 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
7284 it's XplatUIX11 that attaches them.
7286 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7288 * DataGridView.cs: If a column has been added, recreate the editing row.
7291 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7293 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
7294 of the tag to draw. Makes disappearing text show up again.
7296 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7298 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
7299 Contents. Fixes #82487.
7301 2007-08-19 Andreia Gaita <avidigal@novell.com>
7303 * Added HtmlElement.cs, HtmlElementCollection.cs,
7304 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
7306 2007-08-19 Andreia Gaita <avidigal@novell.com>
7308 * BindingSource.cs: Implement this, dispose and getenumerator.
7309 * DataGridViewRowCollection.cs: Move the InvalidOperationException
7310 out of AddInternal, throw it only on public Add calls. The
7311 UsingWebBrowser sample was blowing up with this when setting the
7312 DataSource after adding DataBindings, so it's likely that .net
7313 only throws this exception when Add is called directly.
7315 * ToolStripControlHost.cs: Return the hosted control's text
7316 property, and not the ToolStripItem one (it would always return
7319 * HtmlDocument.cs: Implement GetElementById and All
7320 * WebBrowser.cs: Remove exception on set_DocumentStream.
7322 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7324 * Form.cs: Fix the max and min value for opacity (0~1).
7326 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7329 * DataGridTableStyle.cs: Default header font is now null, on getter it
7330 returns datagrid font when is null. On setter permits null.
7333 - When ResetHeaderFont set header font to null.
7334 - On EndInit set grid_style.DataGrid.
7336 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7338 * TabControl.cs: Fix regression in default padding x.
7340 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7342 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
7344 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7346 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
7347 not 2. Fixes #82229.
7349 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7351 * TabControl.cs: Fix tab size when image height is less than text height.
7352 Partially fixes #81837.
7354 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7356 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
7357 "alt + tab". It works only for Win32, for X11 theres no way to remove window
7358 from taskbar and keep it on "alt_tab". Fixes #81722.
7360 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7362 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
7363 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
7364 Fixes #80877 and #79418.
7366 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7368 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
7369 between position and one of the screen borders. Fixes #82349.
7371 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7373 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
7374 the MessageBox in the taskbar. Fixes #82457.
7376 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7378 * MessageBox.cs: Fix form size when icon is set and text height is bigger
7379 than icon. Fixes #82468.
7381 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7383 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
7384 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
7385 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
7386 Refactored HandleNCCalcSize somewhat to avoid code duplication.
7387 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
7388 FormBorderStyle to decide if we're calculating a new size from the
7389 client size or not. CreateParams: Don't fake tool windows, only the X11
7390 backend manages toolwindows manually.
7392 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7394 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
7395 ObjectDisposedException.
7397 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7399 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
7400 in OnLoad should not have any effect. [Fixes bug #82470]
7402 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7404 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
7405 paint for controls that create their own ToolTipWindow instead of
7406 going through ToolTip.
7408 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7410 * ToolTip.cs: Make Hide internal instead of public to match MS API.
7412 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7414 * ListViewGroupCollection.cs: Use generic List instead of an
7415 ArrayList, since this collection is 2.0 only.
7417 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
7419 * ToolTip.cs (Hide): Made public to make the build work (should
7420 this not be public?).
7422 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7424 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
7426 * ToolTip.cs: Add an internal Visible property to facilitate transition.
7428 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7430 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
7431 PopupEventHandler.cs: Make these internal for 1.1.
7432 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
7433 use ToolTipWindow internals.
7434 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
7435 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
7437 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7439 * X11Dnd.cs: Add a null check.
7441 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7443 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
7444 nothing else succeeds. Fixes #82453.
7446 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7448 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
7449 rectangle if we're painting to another window than the one the paint
7450 message was generated on. Simplify the code somewhat, which makes
7451 PaintEventEnd also simpler.
7453 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7455 * Control.cs: When changing parent of a form, let the form decide whether
7456 XplatUI.SetParent should be called or not.
7457 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
7458 recreating the handle. If the new parent's handle isn't created, don't
7459 recreate our handle, just destroy it. CreateParams: Check if the
7460 parent's handle is created before fetching it.
7462 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7464 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
7465 Update calls to PaintEventStart/End to take a Message argument.
7466 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
7467 take a Message argument.
7468 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
7469 Message argument, and handle the case where we don't paint to the window
7470 for which the paint message was generated.
7472 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7474 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
7475 Marshal.GetLastWin32Error. Plug nasty memory leak in
7476 PaintEventStart/End, we were creating a DC we weren't releasing.
7478 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7480 * ListView.cs: Add Groups support in Details view. Also have a small
7481 method to do the layout of the group header. Don't use a separate
7482 method to do the groups calculation in Icons view, since our methods
7483 are now a little simpler.
7484 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
7486 * ThemeWin32Classic.cs: Likewise.
7488 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7490 * Application.cs: Add FilterMessage method and rework our message loop
7493 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7495 * Application.cs: Add some methods and stub a few methods that are
7496 pretty much never used.
7498 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
7500 * TreeNode.cs: Add some serialization methods.
7502 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7504 * ListView.cs: In ListViewItemCollection have a
7505 'is_main_collection' field to not modify ListViewItem.ListView
7506 when using it as ListViewGroup.Items (and not ListView.Items)
7507 and also don't modify selection state (.Net behaviour).
7508 Instead, set group for items contained in a ListViewGroup.Items collection.
7509 * ListViewItem.cs: Simplify some code in Group setter.
7510 * ListViewGroup.cs: use the new .ctor to pass the current instance
7511 to the ItemsCollection.
7512 * ListViewGroup.cs: Set the ListView property for ListViewGroup
7513 instances when adding/removing. Also make Remove use RemoveAt, which
7514 should perform better.
7516 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7518 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
7519 that crept into the 1.1 profile.
7521 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7523 * ToolBarButton.cs: Implement ImageKey.
7525 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7527 * ToolBar.cs: Implement ScaleControl/ScaleCore.
7529 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7531 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
7532 created, it might have gotten destroyed since we last checked. Fixes
7535 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
7537 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
7538 tooltip will hide when mouse is moved off the control.
7541 2007-08-11 Andreia Gaita <avidigal@novell.com>
7543 * WebBrowserBase.cs, WebBrowser.cs: add implementation
7544 using Mono.Mozilla for loading and navigating webcontrol
7546 The initial implementation was done on
7547 /trunk/mozembed/tests/browser , and copied here.
7549 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
7551 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
7552 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
7554 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7556 * DataGridView.cs: Add support for an editing row. Fixes #82226.
7557 RowTemplateFull: throw an exception if a column doesn't have a template.
7558 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
7559 add the row just before it.
7560 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
7562 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
7563 DataGridView field to be able to reach the grid's editing row.
7565 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7567 * ToolTip.cs: If the control's handle hasn't been created when it has a
7568 tooltip set on it, don't check to see if we need to show the tooltip. This
7569 check was causing the control's handle to be created.
7572 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7574 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
7576 Handle Not Created -1 0
7580 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7582 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
7585 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7587 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
7588 * ToolTip.cs: Implement some properties and owner draw.
7590 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7592 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
7593 show them again, since setting visibility causes a paint, causing an
7594 endless loop (instead use a temporary and set it all when it's known if
7595 they should be shown or not). Fixes #79265.
7597 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7599 * DataGridView.cs: Only do a full column/row selection if a header was
7600 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
7601 isn't pressed, deselect everything before selecting something.
7603 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7605 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
7606 behaviour according to bug #81075 - they are returned in the order they
7607 are selected. Fix HitTest to check if the point is within any of the
7608 headers. Allow for row/column selection when in ColumnHeader or
7609 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
7610 the row and column to call when their selected state changes, and
7611 updated selected_[rows|columns] whenever SetSelected* is called.
7612 * DataGridViewBand.cs: Initialize isRow correctly. Call
7613 SetSelected[Row|Column]CoreInternal when the selected state changes, and
7614 add a SelectedInternal to avoid StackOverflows.
7615 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
7616 ReadOnly no matter what.
7617 * DataGridViewSelectedColumnCollection.cs,
7618 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
7619 the items in reverse order (just as MS does...)
7621 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7623 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
7624 itself, not part of a mnemonic. [Fixes bug #82378]
7626 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7628 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
7629 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
7630 the DGV, the column, the row, or the cell itself is readonly.
7632 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7634 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
7636 * FileDialog.cs: Same.
7637 * TextRendered.cs: Same.
7638 * FolderBrowserDialog.cs: Same.
7639 * TextBoxBase.cs: Same.
7640 * Application.cs: Same.
7642 * ThemeClearLooks.cs: Same.
7644 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7646 * XplatUI.cs: Added RunningOnUnix property to be used by controls
7647 instead of duplicating these checks everywhere.
7648 * FileDialog.cs: Use case-insensitive comparison for populating the
7649 DirComboBox when not running on unix. Fixes bug #82385.
7650 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
7653 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7655 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
7656 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
7657 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
7658 cell and column selection with ctrl and shift pressed. Call the correct
7659 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
7660 the corresponding virtual method (PaintBackground to paint background,
7662 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
7663 either the column, row or the cell itself is selected.
7664 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
7666 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
7667 here. When the row is selected, don't select all cells. Each cell now
7668 queries the row to see if the row is selected.
7670 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7672 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
7675 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7677 * ListView.cs: In ListViewItemsCollection check that owner is
7678 not null before trying to access it (this happens quite often
7679 using Groups). Also don't duplicate calls by calling CollectionChanged
7682 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7684 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
7685 when we are dismissed to clear keyboard mnemonics.
7686 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
7687 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
7688 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
7689 was activated by keyboard or the OS tells us to always draw them.
7690 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
7691 [Fixes bugs #82376, #82377]
7693 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7695 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
7696 shot at having it because Alt was pressed.
7697 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
7698 the first real menu item.
7699 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
7700 a mnemonic if Text is null.
7703 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7705 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
7706 search do check whether the item is already contained in the
7707 collection or not; instead check if the owner of the item is the same
7708 as ours. Also, remove a redundant check in the same method.
7710 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7712 * Control.cs: Allow the clip region to be set back to null.
7713 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
7714 [Fixes button still showing up in bug #82370 when Show Through is turned off]
7716 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
7718 * GridEntry.cs: Add a null check.
7719 * PropertyGrid.cs: When checking for existing grid entries, ignore category
7720 entries. Fixes #82297.
7722 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7724 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
7727 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7729 * ListBox.cs: Implement ScaleControl.
7731 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7733 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
7735 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
7736 parent has a menu strip. Fixes #81689.
7738 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7740 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
7741 moments, so apply some fuzzy logic to determine if the mouse is still
7742 inside a control or not. Fixes #82288 (for the third time).
7744 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7746 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
7747 Don't create the child if it has been disposed already (may happen if
7748 the user closes the form the Load event).
7750 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7752 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
7755 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7757 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
7758 might call us after we've been destroyed, in which case our own private
7759 parent field is null. Fixes #82326.
7761 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7763 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
7764 check for setting the dropdown's owner.
7766 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7768 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
7769 before removing system menu items.
7771 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
7773 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
7775 * MdiControlStrip.cs: Added. These are the menu items used in mdi
7777 * ToolStrip.cs: Add a null check to mnemonics.
7778 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
7780 [Fixes most of bug #81689]
7782 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7784 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
7786 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7788 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
7790 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7792 * DataGridViewCell.cs: EditType: returns
7793 DataGridViewTextBoxEditingControl always.
7795 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
7797 * TextRenderer.cs: Remove the LineLimit string format flag from the
7798 DrawString fallback method so that things like buttons that aren't
7799 tall enough to draw a full line will still draw part of the text.
7800 [Fixes part of bug #82272]
7802 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7804 * DataGridView.cs: Implemented AutoResizeColumn(s).
7805 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
7806 according to the Alignment.
7807 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
7808 Implement alignment and padding when painting.
7809 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
7811 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
7813 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
7816 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7818 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
7821 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7823 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
7824 hide GetPreferredSize from public API.
7825 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
7826 * ToolStripItem.cs: Stub out drag and drop methods and events.
7827 * ToolStripManager.cs: Stub out Save/LoadSettings.
7828 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
7829 * ToolStripPanel.cs: Fix corcompare error.
7830 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
7831 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
7832 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
7834 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7836 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
7837 bounds height instead of PreferredHeight. Puts things back the way
7838 they were for height while still fixing the width. Fixes broken unit
7841 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7843 * Binding.cs: Implement 2.0 constructors and add a null check.
7845 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7847 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
7848 and fix row index (off by one).
7850 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7852 * PropertyGridView.cs: Remove debug output.
7854 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7856 * Control.cs: We need to reset the is_created flags when the handle is
7857 destroyed. Fixes #82187.
7858 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
7859 client coordinates if the window doesn't have a parent.
7860 Win32GetParent returns the parent or the owner, and for top-level
7861 windows with no parent (but with an owner) we were calculating the
7862 location from the location of the owner.
7863 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
7864 form has been disposed.
7865 * MdiClient.cs: Add a null-check.
7867 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
7869 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
7870 actually do auto-sizing. Override the internal GetPreferredSizeCore
7871 so we can provide an implementation that returns the current width
7872 and preferred height. Allows anchor = right to work with TextBox 2.0.
7875 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7877 * ListView.cs: Add support for navigating items in Groups mode, by
7878 creating a big matrix containing all rows and cols of all groups. When
7879 are in other mode than Details, pressing Up should have a similar
7880 behaviour as that one of Down (moving to the next available column if
7881 current one doesn't have an item in the requested row). Also, don't
7882 proceed to use groups if ShowGroups is false.
7883 * ListViewGroup.cs: Add an internal int field to store the starting
7884 row of the group (used by the big matrix used for navigating the
7886 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
7889 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
7891 * ToolStripDropDown.cs: When we do Show, start with the
7892 DefaultDropDownDirection, but if our popup menu is going to off-screen,
7893 modify the direction to keep it on screen. [Fixes bug #82210]
7895 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
7897 * FileDialog.cs: Accept any FilterIndex value, and store it
7898 unmodified. When FilterIndex is less than 1, or greater than number
7899 of filters, then default to first filter. Only add filter extension to
7900 file if user did not specifiy an extension. When type of dialog is
7901 OpenFileDialog and DefaultExt is set, then only use filter extension
7902 if: CheckFileExists is true and no file wih the default extension
7903 exists, or CheckFileExists is false, and user specified file does not
7904 exist. When CheckFileExists is true, then add first extension of
7905 selected filter that matches existing file. Perform checks for
7906 existing file, overwrite and create after extension has been added to
7907 file name. When CheckFileExists is true and type is SaveFileDialog,
7908 then only consider first filter extension if DefaultExt is set.
7909 When CheckFileExists is true, then ignore DefaultExt if file with that
7910 extension does not exist. Also perform check for existing file when
7911 type is SaveFileDialog. Changed some field to constants.
7913 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7915 * ListView.cs: Take into account the region used by header
7916 control when doing the vertical scroll (this way we invalidate
7917 the precise area, and don't get any dirty one).
7919 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
7921 * FileDialog.cs: Check for valid filterIndex on button open/save.
7924 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7926 * ListView.cs: Update some layout calculations in details view
7927 and clean the code in a pair of assignations.
7929 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7931 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
7932 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
7933 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
7934 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
7936 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7938 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
7939 performance of thread-safe Graphic methods. (Thanks rolf!)
7941 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7943 * ListView.cs: When doing the layout calculations, don't calculate
7944 scroll bars before handle is created. This is unnecessary and also
7945 calculating them before handle creation item causes a number of random
7946 bugs (which begin to appear after Chris' big patch for handle creation
7949 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7951 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
7952 for things that don't have a Graphics object. Currently, things just use
7953 the static Hwnd.bmp_g which is not thread safe.
7955 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7957 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
7958 dialog. Fixes #82187.
7960 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7962 * DataGridViewElement.cs: Initialize state.
7963 * DataGridView.cs: Forward a few Mouse events to cells. Add
7964 GetRowInternal and GetCellInternal that doesn't unshare rows.
7965 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
7966 don't use the index, but look it up. Add
7967 DataGridViewControlCollection.RemoveInternal to remove controls
7968 that Remove won't remove (scrollbars, edit control).
7969 * DataGridViewColumn.cs: Initialize State correctly.
7970 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
7971 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
7973 * DataGridViewRowCollection.cs: Implemented shared rows.
7974 * DataGridViewRow.cs: Throw exceptions as MS do.
7975 * DataGridViewCell.cs: A few properties are implemented by a
7976 Get<Property> method, so move implementation there and remove the
7977 NIEX in the method. Add a bunch of OnXInternal that DataGridView
7978 calls when necessary.
7979 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
7980 complicates matters.
7981 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
7984 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7986 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
7987 the children controls. Instead, we will just set up the proper docking for the
7988 children controls so we don't have to worry about it. [Fixes bug #82188]
7990 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7992 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
7993 canceling and correct Before/AfterLabelEdit properties as layed out in bug
7994 81847. [Fixes bug #81847]
7996 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7998 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
7999 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
8000 an explicit size based on the design-time size of the text. Since our fonts
8001 may not match this explicit size, we tend to cut off the ends of people's labels.
8003 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
8005 * Menu.cs: Add some missing methods to MenuItemCollection.
8007 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8009 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
8010 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
8011 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
8012 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
8013 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
8014 * DataGridViewElement.cs: State defaults to Visible.
8015 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
8016 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
8018 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8020 * Control.cs: Minor 1.1 corcompare fix.
8022 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8024 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
8025 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
8027 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8029 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
8030 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
8031 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
8032 DataGridViewSelectedColumnCollection.cs,
8033 DataGridViewSelectedRowCollection.cs: Corcompare work.
8035 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8037 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
8038 it is autoset by VS2005 designer and the effect is barely noticeable.
8040 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8042 * TreeView.cs: Implement HitTest.
8044 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8046 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
8047 manually adding and removing the control from the Controls
8049 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
8050 EditingControlInternal property that tracks the editing control.
8051 Always keeping the scrollbars in the Controls collection, as MS
8052 testing confirms is the right behaviour.
8054 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8056 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
8057 according to MSDN and new test.
8059 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8061 * TreeNode.cs: Implement ToolTipText.
8062 * TreeView.cs: Implement tooltips, NodeMouse* events.
8064 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8066 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
8068 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8070 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
8071 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
8073 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
8075 * Control.cs, Form.cs, ContainerControl.cs,
8076 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
8077 for misc properties.
8079 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8081 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
8082 * TreeView.cs: Implement StateImageList.
8084 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8086 * Form.cs: Don't check if the current form is the active form before
8087 activating it. Fixes #81904.
8089 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8091 * Form.cs: Don't check if the current form is the active form before
8092 activating it. Fixes #81904.
8094 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8096 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
8098 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8100 * Form.cs: Don't try to position the form after loading if the form was
8101 disposed. Fixes #81969.
8103 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8105 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
8106 properties. Had to change ToolBar into ToolStrip, which required a
8109 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8111 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
8112 resized, fixes part of #79829 (vertical lines in toolbar).
8113 PropertyGrid: Refactored Populate* to something that's easier to
8114 follow at least for me, as well as splitting it up into several new
8115 methods, required to update only subitems when something has
8116 changed by a popup editor or listbox. Don't use events to check
8117 when any values are changed, since the events are unreliable (we're
8118 changing the objects the events are registered with, and if the
8119 event handling requires the objects to be immutable (objects stored
8120 in hashtables for instance), the events will never be raised).
8121 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
8122 everytime we change a value, since events are unreliable.
8123 DropDownButtonClicked: For the same reason don't compare objects to
8124 check if it has changed or not, it would require all objects to
8125 derive Equals. Fix dialog location on windows, MS is doing weird
8126 things when creating parented forms.
8127 * GridEntry.cs: Add a SelectedObject setter.
8129 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
8131 * TreeNode.cs: Add some corcompare attributes.
8132 * TreeNodeCollection.cs: Implement 2.0 stuffs.
8133 * TreeView.cs: Implement some 2.0 stuffs.
8135 2007-07-18 Andreia Gaita <avidigal@novell.com>
8137 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
8140 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
8142 * ListBox.cs: Implement custom tab offsets.
8144 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8146 * ToolStripContentPanel.cs: Support System renderer.
8147 * ToolStripControlHost.cs: Set RightToLeft to default to No.
8149 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8151 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
8153 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8155 * CheckBox.cs: Chain TextAlign to base implementation instead of
8156 maintaining another one.
8158 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8160 * ButtonBase.cs: Fix an incorrect string constant.
8162 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8164 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
8165 of creating one for measuring strings.
8167 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8169 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
8170 Implement MaxItemSize.
8172 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
8174 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
8175 for DeviceContext. Instead, use the static one available in Hwnd.
8176 Informal tests show this saves about 500k on formtest.exe.
8178 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
8180 * ContainerControl.cs: Implement 2.0 AutoScaling.
8182 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8184 * ComboBox.cs: Work around bug #82120 (bug in mcs).
8186 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
8188 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
8189 Darken the focus color.
8191 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
8193 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
8195 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
8196 X, Y instead of a rect for drawing text.
8197 - For ControlPaint.DrawCheckBox, center the check a little better when the
8198 checkbox is odd width. When drawing a flat checkbox, use a white background
8199 when state != inactive.
8200 [Fixes bugs #82097, 82100]
8202 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
8204 * ListControl.cs: When changing CurrencyManager, disconnect event
8205 handlers from previous one. Fixes bug #81771. Code formatting.
8207 2007-07-15 Andreia Gaita <avidigal@novell.com>
8209 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
8210 full preview invalidation from layout invalidation, and only invalidate
8211 the layout when setting zoom or other properties. Invalidation should
8212 always be done even when resetting properties with the same values as
8213 what is there. Fixes #81744 and #79830.
8215 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8217 * ListView.cs: Implement initial support for Groups. Split some of the
8218 LayoutIcons code to render a partial list of the items (needed by
8219 items contained in ListViewGroup instances). Let the
8220 ListViewItemsCollection.ListView property be modifiable (needed when
8222 * ListViewGroup.cs: Use a Bounds property rather than a Location
8223 one. Also invalidate the bounds when they get changed.
8224 * ThemeWin32Classic.cs: When drawing items, also draw the group header
8225 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
8228 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8230 * ListView.cs: When space gets pressed and CheckBoxes is true,
8231 don't invoke the Begin and EndUpdate methods. We are generating
8232 a redraw of the entire control without need to do so.
8234 2007-07-13 William Holmes <billholmes54@gmail.com>
8236 * Control.cs: Changing logic in FindFlatForward and
8237 FindFlatBackward to handle multiple Controls with
8239 This fixes bug 81687.
8241 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
8243 * OSFeature.cs: Enable IsPresent.
8245 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8247 * Control.cs: Don't do anything in WmShowWindow if the control has been
8248 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
8249 control is created, put on a form, the control is disposed (the
8250 form is never shown), and then we get a MapNotify, triggering a
8252 * Form.cs: Exclude the current form when sending Deactivate to all
8254 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
8255 there was a race condition because assigning the handle raises
8256 events, we can get more messages, therefore trying to assign the
8257 handle again, which would fail if any of those event handlers
8258 closed/disposed the control.
8260 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8262 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
8264 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
8266 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
8267 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
8269 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
8271 * DateTimePicker.cs: If there's no part format specifier, return an
8274 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
8276 * FlatButtonAppearance.cs: Throw NotSupportedException for a
8277 Transparent BorderColor.
8279 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
8281 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
8282 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
8283 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
8284 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
8285 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
8286 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
8287 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
8289 * X11Structs.cs: Remove warnings, add ToString implementations.
8291 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8293 * XplatUIX11.cs: Translate min/max size according to the actual min/max
8294 size, and not the current size. Fixes #81798.
8296 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8298 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
8299 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
8300 to the control yet).
8302 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8304 * PropertyGridTextBox.cs: Add a method that sends any forwarded
8305 mousedowns to the contained textbox.
8306 * X11Structs.cs: More ToString implementation.
8307 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
8310 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8312 * PropertyGridView.cs: Add a null-check, fixes a few tests.
8314 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
8316 * TableLayoutPanelCellPosition.cs: TypeConverter.
8318 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8322 * PropertyGridTextBox.cs: Propagate any color changes to all contained
8324 * PropertyGridView.cs: A few color fixes.
8326 2007-07-10 Jackson Harper <jackson@ximian.com>
8328 * TextControl.cs: Remove some old unused text formatting stuff.
8330 2007-07-10 Jackson Harper <jackson@ximian.com>
8332 * TreeView.cs: Update full row select invalidation to match the
8333 newer DrawSelection... method.
8334 - Make sure to invalidate the entire width when selecting a new
8335 node, if we have full row selection enabled.
8337 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8339 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
8340 display of properties again.
8342 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
8344 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
8345 to existing collections.
8347 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8349 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
8350 that changed between 1.1 and 2.0.
8352 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8354 * PowerStatus.cs: Added. This is just a data class, it is filled
8355 in by SystemInformation.
8357 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8359 * Message.cs: Add op_Equality and op_Inequality.
8361 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8363 * MenuStrip.cs: Finish corcompare work.
8365 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8367 * LinkArea.cs: Add op_Equality and op_Inequality.
8369 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8371 * Application.cs: Add MessageLoopCallback delegate.
8373 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8375 * ListBox.cs: First set of 2.0 stuffs.
8377 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8379 * Control.cs: Make an internal Height property we can override
8380 without messing up the public API.
8381 * ListBox.cs: Override HeightInternal to always return the size
8382 the user set. [Fixes bug #80466]
8384 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
8386 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
8387 paint cell borders if we haven't calculated where they go yet.
8388 [Fixes bugs #82040 and #82041]
8390 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8392 * ListView.cs: In Details view, set the location of item_control
8393 in the (0,0) position (and the header_control is thus on the
8394 item_control). This way the Bounds of the Items are relative to the
8395 ListView control (before this, they had a Bounds value without the
8396 header_control offset, which wasn't matching .Net). Fixes #82004.
8398 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8400 * ListControl.cs: When DataSource is set to null, pass an empty
8401 array of object to SetItemsCore. This is done to clean the items
8402 in the ListContol children. Fixes #81788.
8404 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8406 * ListControl.cs: Add 2.0 stuffs.
8408 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8410 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
8411 Refresh is overkill for just about every repaint request.
8413 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8415 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
8416 so remove my custom Get method and fix the property getter.
8418 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8420 * Label.cs: DefaultMargin for 2.0.
8422 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8424 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
8425 reported issue where other controls with mnemonics would steal strokes
8426 from a selected ComboBox.
8428 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8430 * ScrollOrientation.cs: Make internal for 1.1.
8431 * ScrollEventArgs.cs: Add 2.0 stuffs.
8433 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
8435 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8436 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
8437 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
8439 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8441 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
8443 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8445 * ListView.cs: Implement the so-incredibly broken 2.0
8446 VirtualItemsSelectionRangeChanged event.
8448 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8450 * ListView.cs: When enter is pressed and selection is non empty,
8451 an OnItemActivate event must be fired.
8453 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8455 * ListView.cs: Store the FocusedItem information as an
8456 int instead of a ListViewItem (needed by VirtualMode).
8457 Update the calls to SetFocusedItem to pass an index instead of
8459 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
8460 the Focused state from the owner ListView.
8462 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8464 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
8465 property. Also, invalidate previous focused item in the mentioned
8466 property (match .Net).
8468 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8470 * ListView.cs: Implement 2.0 FocusedItem property setter.
8472 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8474 * ListView.cs: Implement 2.0 TopItem property setter.
8476 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
8478 * StatusStrip.cs: The default renderer is System.
8479 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
8480 if the user specifies it.
8481 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
8482 if we are ManagerRenderMode.
8483 * ToolStripMenuItem.cs: Calculate our text color better.
8484 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
8485 from Professional to the base class based off working with the System renderer.
8486 * ToolStripSystemRenderer.cs: Added.
8488 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8490 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
8492 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
8494 * ToolTip.cs: Implement 2.0 Tag property.
8496 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8498 * ListView.cs: Implement 2.0 HitTest methods.
8500 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8502 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
8503 item is under the pointer or not (sugar). Also remove the TODO
8504 regarding to the cursor changes in OneClick activation.
8505 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
8506 the subitems use the parent's HotFont if UseItemStyleForSubItems is
8507 true; otherwise don't show the underline style.
8509 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8511 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
8512 the code to retrieve the item at position only one time. Also
8513 change cursor when Activation is ItemActivation.OneClick as well
8514 as invalidate the item if HotTracking is true (to show/hide the
8515 underline style). Add an internal HotItemIndex property to retrieve
8516 the current hot item's index.
8517 * ListViewItem.cs: Add an internal HotFont property to cache the
8518 font used when HotTracking is true and the pointer moves within the
8520 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
8521 HotFont depending on the hot state of the item.
8523 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8525 * ListView.cs: Implement 2.0 HotTracking property.
8527 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8529 * ToolStripControlHost.cs: If our hosted control never got created,
8530 don't try to dispose it. [Fixes bug #81909]
8532 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8534 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
8536 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8538 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
8540 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8542 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
8544 * DrawListViewColumnHeaderEventArgs.cs:
8545 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
8546 using the DrawText () methods.
8548 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
8550 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
8551 background which got erased in my changes yesterday.
8553 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8555 * ListViewItem.cs: Actually set bounds for subitems in Details view
8557 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
8558 can invoke from the owner draw routines if we need it. Also, add
8559 support for Owner draw in Details view.
8561 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8563 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
8564 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
8565 ShowImageMargin setting, properly align text in a ToolStripLabel
8566 hosted on a ToolStripDropDown.
8568 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8570 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
8571 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
8573 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8575 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
8577 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8579 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
8580 location to match ToolStripMenuItems.
8582 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8584 * DrawListViewColumnHeaderEventArgs.cs:
8585 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
8586 column headers in ListView.
8588 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8590 * UserControl.cs: Implement AutoSize.
8592 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8594 * DrawListViewItemEventArgs.cs:
8596 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
8599 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8601 * ToolStripDropDownItemAccessibleObject.cs: Added.
8602 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8603 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8604 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
8605 ToolStripTextBox.cs: corcompare work.
8607 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8609 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
8610 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
8611 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
8614 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8616 * OSFeature.cs: Add IsPresent.
8617 * PrintPreviewControl.cs: Add RightToLeft.
8618 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
8619 * SplitterPanel.cs: Add AutoSizeMode.
8621 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8623 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
8624 * MdiClient.cs: Add 2.0 ScaleControl.
8625 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
8626 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
8628 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8630 * Form.cs: Implement some scaling methods, stub some RTL methods,
8633 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8635 * Control.cs: corcompare work.
8636 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
8638 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8640 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
8641 ControlPaint 2.0 stuffs.
8643 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8645 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
8647 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8649 * UpDownBase.cs: Add 2.0 stuffs.
8651 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8653 * NumericUpDown.cs: Add 2.0 stuffs.
8655 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8657 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
8659 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8661 * ErrorProvider.cs: Implement 2.0 stuffs.
8663 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8665 * DomainUpDown.cs: Implement 2.0 stuffs.
8667 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8669 * CheckedListBox.cs: Fix RefreshItems signature.
8671 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8673 * PictureBox.cs: Implement 2.0 stuffs.
8675 2007-06-12 Andreia Gaita <avidigal@novell.com>
8677 * TabControl.cs: Check if there are tabpages before checking
8678 the selected index - fix #81802 (font changes raise a ResizeTabs
8679 call on controls.add, which blew up nicely with no tabpages)
8681 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8684 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
8686 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8689 * ListViewItem.cs: In VirtualMode the selection information
8690 resides in the ListView, rather than in the Items. Also, throw
8691 InvalidOperationExceptions when VirtualMode is being used and
8692 CheckedItemCollection is accessed.
8694 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8696 * ComboBox.cs: Add ScaleControl.
8698 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8700 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
8702 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8704 * GroupBox.cs: Add 2.0 stuffs.
8706 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8708 * Panel.cs: Add autosize properties/event.
8710 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8713 - When we remove a control, remove it from the collection before performing the layout.
8714 - Setup an internal property for explicit_bounds.
8715 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
8716 - Perform a layout when we set a new AutoSizeMode.
8718 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8720 * ScrollableControl.cs: Add 2.0 stuffs.
8722 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8724 * ScrollBar.cs: Add 2.0 stuffs.
8726 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8728 * Splitter.cs: Add 2.0 stuffs.
8730 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8732 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
8733 to have BindingContext simply use base implementation.
8735 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8737 * ColumnHeader.cs: corcompare fix.
8739 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8741 * Button.cs: corcompare fixes.
8742 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
8744 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8746 * Button.cs: Override GetPreferredSizeCore.
8747 * ButtonBase.cs: PerformLayout after changing properties that can affect
8748 AutoSize. Simplify some mouse/keyboard code.
8749 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
8750 * MouseEventArgs.cs: Make Location internal for 1.1.
8751 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
8752 * Theme.cs: Add CalculateButtonAutoSize.
8753 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
8755 2007-06-05 Miguel de Icaza <miguel@novell.com>
8757 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
8759 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8761 * ListViewItem.cs: We can't cache Bounds in VirtualMode
8762 since we can get different item instances every time we retrieve it.
8764 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8766 * ListView.cs: Work around for #81602, since an unkown an pretty
8767 infrequent condition appears only in some systems (old linux boxes, it
8770 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8772 * Button.cs: Completely reformat and a little refactor to bring
8773 this closer to Mono circa 2007.
8775 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8777 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
8778 to be ButtonBase.Invalidate.
8780 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8782 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
8784 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8786 * ButtonBase.cs: Completely reformat and a little refactor to bring
8787 this closer to Mono circa 2007.
8789 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
8791 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
8792 values for autosize. Fixes #80137.
8794 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8796 * Control.cs: Don't perform layout when AutoSize changes.
8797 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
8798 directly when autosizing, use SetBounds with BoundsSpecified.None.
8799 Fixes unit tests my last commit broke.
8801 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8803 * Control.cs: Perform layout when AutoSize changes.
8804 * Form.cs: Implement AutoSizing.
8806 2007-06-01 Chris Toshok <toshok@ximian.com>
8808 * DataGrid.cs: remove the XXX'ed check at the top of
8809 ProcessGridKey. fixes #80464.
8811 2007-06-01 Chris Toshok <toshok@ximian.com>
8813 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
8814 adding idempotent (add/remove in Edit()), and also make sure we
8815 don't add it until after we set the text, so it's not tripped in
8816 Edit(). Fixes unit test regression.
8818 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8820 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
8821 change is user explicit, not when the layout engine moves stuff. Fixes
8822 anchoring to bottom and right. [Fixes bug #81790]
8824 2007-06-01 Andreia Gaita <avidigal@novell.com>
8826 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
8828 2007-06-01 Andreia Gaita <avidigal@novell.com>
8830 * ContainerControl.cs:
8831 Fire enter event for common ancestor if it is not a ContainerControl.
8832 Send focus to the active_control and not the 'value', the active
8833 control might have been changed in one of the events fired.
8834 Definitely fixes #80159.
8836 2007-06-01 Andreia Gaita <avidigal@novell.com>
8838 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
8840 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8842 * PropertyGrid.cs: Anchor the help description to the bottom of the
8843 help panel and refactor SelectGridItem into a
8844 SelectGridItemInternal that can be set to null (and update it to
8845 clear the help texts when it is set to null). Set root item to null
8846 when there's no SelectedObject. Fixes #80438.
8847 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
8848 when we're recalculating after a resize (only).
8850 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8852 * ListView.cs: Implement 2.0 RedrawItems method.
8854 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8856 * ListControl.cs: Disconnect PositionChanged and ItemChanged
8857 handlers from previous data manager when DataSource is set to
8860 2007-05-31 Jackson Harper <jackson@ximian.com>
8862 * TextBoxBase.cs: These seem to be the correct values.
8864 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
8866 * FileDialog.cs: When close dialog with ok set filterindex using combobox
8867 value. Fixes #81784.
8869 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
8871 * Control.cs: Implement 2.0 scaling methods.
8873 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8875 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
8876 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
8879 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8881 * ProgressBar.cs: Implemented missing 2.0 members.
8883 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8885 * Control.cs: Corcompare issues.
8886 * MessageBox.cs: Implemented missing 2.0 functions.
8888 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8890 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
8891 Implemented more 2.0 members.
8893 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8895 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
8896 null (strange, but it seems to happen when running unit tests).
8898 2007-05-30 Andreia Gaita <avidigal@novell.com>
8900 * ContainerControl.cs: Set active_control even earlier, before
8901 firing any events, and undo it if validation returns false.
8903 2007-05-30 Andreia Gaita <avidigal@novell.com>
8905 * ContainerControl.cs: Raise Validation and Enter/Leave events
8906 even if there is no Form and set active_control earlier, just
8907 before firing Enter events (toshok's patches). Fixes #80647.
8909 2007-05-30 Jackson Harper <jackson@ximian.com>
8911 * TextControl.cs: Redid the pageup/pagedown a little to simplify
8912 things and fix bug #81311.
8914 2007-05-30 Jackson Harper <jackson@ximian.com>
8916 * X11Dnd.cs: Now that we have our own event loop, we need to
8917 cancel when we get a mouseup but it won't be accepted.
8919 2007-05-30 Chris Toshok <toshok@ximian.com>
8921 * DataGrid.cs (set_CurrentCell): guard against negative
8924 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
8925 array index syntax instead of looping over the property names.
8927 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
8928 and set IsInEditOrNavigateMode to false there.
8930 2007-05-30 Jackson Harper <jackson@ximian.com>
8932 * TreeView.cs: Make sure we don't get a bad visible order when
8933 setting to the top node. Fixes some misc crashing in
8936 2007-05-30 Andreia Gaita <avidigal@novell.com>
8938 * UserControl.cs: Add 2.0 AutoSizeMode
8940 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8942 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
8944 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8946 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
8947 lines. Fixes #80285.
8949 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8951 * DataGridColumnStyle.cs: Add char trimming column header text format.
8953 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8955 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
8958 2007-05-29 Jackson Harper <jackson@ximian.com>
8960 * TreeNode.cs: Fix off by one on calculating whether or not a node
8963 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
8965 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
8966 * ScrollableControl.cs: Force an UpdateDistances when we move the
8970 2007-05-29 Andreia Gaita <avidigal@novell.com>
8972 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
8973 update the page setup screen.
8975 2007-05-29 Andreia Gaita <avidigal@novell.com>
8977 * PageSetupDialog.cs: Fix landscape mode.
8979 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8981 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
8982 IconSizeHorizontalSpacing.
8984 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8986 * ListView.cs: The declaration of prev_tooltip_item should be inside
8987 a NET_2_0 conditional (avoid a warning).
8989 2007-05-28 Andreia Gaita <avidigal@novell.com>
8991 * PageSetupDialog.cs: Implement PrintPreview control to display
8992 the preview thumbnail. Change unit conversion to use
8993 PrinterUnitConvert methods.
8995 Note: there is a huge bug in ms.net where the default margins are
8996 interpreted as centimeters (?), when in fact they are set in inches. When
8997 loading the page setup dialog initially (ms.net), the default margins
8998 are set to 1 inch, and the dialog shows them with value 10, when in fact
8999 it should be 25 (properly converted). Our dialog doesn't have this bug.
9001 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
9003 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
9005 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9008 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
9011 2007-05-28 Andreia Gaita <avidigal@novell.com>
9013 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
9014 an IntPtr on csc (it builds fine on mcs, could it be a compiler
9015 bug?), convert the ptr to Int32 first.
9017 2007-05-28 Jackson Harper <jackson@ximian.com>
9019 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
9020 recieved, we will exit the dnd tracking loop.
9022 2007-05-28 Jackson Harper <jackson@ximian.com>
9024 * X11Dnd.cs: Keep tracking until the xdnd finished event is
9025 recieved. TODO: I should probably stick a timer on the dropped
9026 event, and finish the drag if the XDND Finished event never shows
9027 (because some apps don't seem to send it).
9029 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
9031 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
9034 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9036 * MonthCalendar.cs: Only mark the keypresses we actually handle as
9039 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9041 * MonthCalendar.cs: Set the size after initializing all the relevant
9042 variables. Fixes #81742.
9044 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9046 * KeyEventArgs.cs: Fix typo.
9048 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
9050 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
9051 to match MS. Fixed MinDate to only accept value less than or equal
9052 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
9053 Removed TODO's that are now verified by unit tests.
9055 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
9057 * TreeNodeCollection.cs: Minor corrections to exceptions to match
9060 2007-05-25 Jackson Harper <jackson@ximian.com>
9062 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
9063 it's own message loop.
9064 * XplatUIX11.cs: Remove some of the dnd hooks
9066 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
9068 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
9069 instead of MinimizedWindowSize.
9071 2007-05-25 Jackson Harper <jackson@ximian.com>
9073 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
9075 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9077 * KeyEventArgs.cs: Added SuppressKeyPress.
9078 * Control.cs: Added support for SuppressKeyPress.
9080 2007-05-24 Andreia Gaita <avidigal@novell.com>
9082 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
9083 problems with PieChart. suppress_validation should not be a counter,
9084 if there are several BeginInit calls, the first EndInit will
9085 activate validation. Fix exceptions thrown by set_Value.
9086 * UpDownBase.cs: ValidateText only if it's the user editing it.
9088 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9090 * ListControl.cs: FilterItemOnProperty should return the filtered
9091 item proeprty even if DataSource is null. The same applies for
9092 GetItemText. Fixes #80427.
9094 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9096 * Control.cs: If a control doesn't have a parent when it's Dock is
9097 set, but it has children, it needs to do a layout. Fixes some nested
9098 controls issues. [Fixes bug #81199]
9100 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9102 * ComboBox.cs: If there are few items in the drop down list, make it
9103 the exact size the items need, no bigger. Fixes #81612.
9105 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9107 * Application.cs: When we have captured the keyboard for a menu,
9108 check for mouse down events in case we need to close the menu.
9109 * Control.cs, Form.cs: Remove mouse down checks for menus.
9111 2007-05-24 Jackson Harper <jackson@ximian.com>
9113 * TextControl.cs: Handle tabs in non multiline mode a little
9116 2007-05-24 Jackson Harper <jackson@ximian.com>
9118 * TextControl.cs: We need to manually break apart tabbed text and
9119 move the tabs, since the system.drawing tabbing mechanism relies
9121 * TextBoxBase.cs: Move the caret properly when the user enters a
9124 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9126 * ContainerControl.cs: Don't check CanSelect before calling
9128 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
9129 release a KeyboardActive on click if it's not ours.
9131 2007-05-23 Andreia Gaita <avidigal@novell.com>
9133 * ColumnHeader.cs: Add TypeConverter
9135 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9137 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
9139 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9141 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
9143 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9145 * LinkLabel.cs: Implement public Padding property.
9147 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9149 * LinkLabel.cs: Implement public FlatStyle.
9151 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
9153 * Control.cs: Apply patch from George to call parent.PerformLayout
9154 when Visible is changed. [Fixes bugs #81118, 81718]
9156 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9158 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
9160 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9162 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
9164 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9166 * ContextMenu.cs: Implement Collapse.
9168 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9170 * ToolBarButton.cs: Implement Name.
9172 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
9174 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
9175 use current_item, it prevents some NRE. Fixes #81675.
9177 2007-05-22 Andreia Gaita <avidigal@novell.com>
9179 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
9180 without updating the text.
9182 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
9184 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
9185 without calling DeleteObject. [Should fix bug #81709]
9187 2007-05-22 Jackson Harper <jackson@ximian.com>
9189 * RichTextBox.cs: Set the line endings correctly, when flushing
9192 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
9194 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
9197 2007-05-22 Jackson Harper <jackson@ximian.com>
9199 * TreeView.cs: Setting top with a null node should set to the very
9202 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9204 * Form.cs: ShowDialog: destroy the handle when message loop is
9205 finished, matches MS behaviour. Refactor parts of WmClose into
9206 RaiseCloseEvents, that only raises events if they haven't already
9207 been raised. Fixes #81688 and #81521.
9208 * Application.cs: Don't call close on the form when exiting a modal
9209 loop, it will raise all the (Form)Closed/Closing events again if
9210 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
9211 which doesn'r raise any events it they have been raised before.
9213 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
9215 * Control.cs: Add OnPrint.
9216 * ToolStrip.cs: Add GetChildAtPoint.
9217 * ToolStripContainer.cs: Add OnRightToLeftChanged.
9218 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
9220 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
9222 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
9224 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9226 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
9227 isn't visible anymore. Fixes #81651.
9229 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9231 * Control.cs: WmShowWindow: Update children's z-order after setting
9232 their parent. SetParent may show the window, thereby corrupting
9233 z-order, since the window will be shown on top.
9234 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
9235 multiple (and redundant) WM_SHOWWINDOW messages.
9236 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
9237 event has already been raised.
9238 * Form.cs: Change is_changing_visible_state to a counter, since
9239 SetVisibleCore can be called recursively. CreateHandle: when
9240 creating mdi children, send (De)Activated events.
9241 * MdiClient.cs: Update use of is_changing_visible_state.
9242 * Application.cs: OnThreadException: Surround exception handling with
9243 try/finally to ensure we always reset the error-handling state
9246 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9248 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
9251 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9253 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
9254 SmallIcon views, now that we have a standarized horizontal spacing.
9256 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
9257 4, just like the other views (Match .Net).
9259 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
9261 * Control.cs: Delay calculating anchor distances until we actually layout.
9262 Always query the WM for the actual size and location it put us at instead of
9263 only when we send negative values.
9264 [Fixes bugs #81694, 81695]
9266 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9268 * Application.cs: Avoid a possible stack overflow when trying to exit
9271 2007-05-19 Marek Safar <marek.safar@gmail.com>
9273 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
9276 2007-05-19 Andreia Gaita <avidigal@novell.com>
9278 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
9279 * NumericUpDownAcceleration.cs,
9280 NumericUpDownAccelerationCollection.cs: Added 2.0
9283 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
9285 * RichTextBox.cs: Recalculate the document after the ScrollBars
9286 property is changed. Fixes bug #81681.
9288 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
9290 * DataObject.cs: Implement 2.0 methods.
9292 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9294 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
9295 in the center of the checkbox, not in the left-top corner.
9298 2007-05-18 Jackson Harper <jackson@ximian.com>
9300 * RichTextBox.cs: Recalculate the document after the scrollbars
9301 property is changed.
9302 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
9305 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9307 * CreateParams.cs: Make HasWindowManager marginally faster.
9308 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
9309 into Hwnd so that other drivers can use it as well.
9310 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
9311 the default location from Hwnd. Fixes MDI client windows always
9312 showing up at (0,0) in Windows (Win32 won't set the default
9313 location since the window styles aren't correct).
9315 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
9317 * TreeView.cs: Modified DoubleBuffered to just use the base
9320 2007-05-18 Jackson Harper <jackson@ximian.com>
9322 * TreeView.cs: Set the top node to the last child node when
9324 - When we get focus, if there is no selected node, use the top
9327 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
9329 * KeysConverter.cs: Add CanConvertTo.
9330 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
9331 * LinkConverter.cs: Added.
9333 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9335 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
9336 it prevents error when file dont have write access. Fixes #81669 and #81667.
9338 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9340 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
9341 button text. Fixes #79640.
9343 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9345 * Control.cs: According to MSDN controls created in the designer theres
9346 keyboard accelerators visible by default. So included check for design
9347 in ShowKeyboardCuesInternal.
9349 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9351 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
9354 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9356 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
9357 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
9359 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9361 * Control.cs: Finish implementation of UI State using WmChangeUIState
9362 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
9363 in some controls to check for show_keyboard_cues to draw accell keys "_".
9365 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9367 * ListBox.cs: When calculating the horizontal scrollbar
9368 in single column mode, don't use values less than 0 for
9369 Maximum. Fixes #81474.
9371 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9373 * ListBox.cs: Throw the some missing exceptions in
9374 ListBox.ObjectCollection methods.
9376 2007-05-17 Jackson Harper <jackson@ximian.com>
9378 * TextBoxBase.cs: Recalculate the document when the word wrap
9379 value has changed. This fixes 81488.
9381 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9383 * Clipboard.cs: Implement missing GetText overload.
9385 2007-05-17 Chris Toshok <toshok@ximian.com>
9387 * Control.cs (CheckDataBindings): remove the binding_context arg
9390 * CurrencyManager.cs (OnItemChanged): fix this now that
9391 BindingManagerBase is fixed. also remove the comment telling where
9392 the fix should go. We set transfering_data to true/false around
9393 the call to PushData to keep UpdateIsBinding from being called.
9394 (ListChangedHandler): remove the extra OnMetaDataChanged call for
9395 PropertyDescriptorAdded in the 1.1 case. The extra call is
9396 actually generated by System.Data generating 2 metadata changed
9397 events of its own per column add. The fix should go there. Add a
9398 comment to that affect in our test's Assert.Ignore.
9400 * BindingManagerBase.cs: Rework PullData and PushData slightly.
9401 we keep a boolean flag (transfering_data) that keeps us from
9402 calling UpdateIsBinding multiple times if we re-enter either of
9405 * ControlBindingsCollection.cs (AddCore): remove the
9406 binding_context arg to binding.Check.
9408 * Binding.cs (IsBinding): don't check if we're binding here, just
9409 return our cached value. we update it in UpdateIsBinding.
9410 (Check): don't take the binding_context arg, we'll just use our
9411 control's. Also, for some reason MS doesn't use the data member
9412 field when getting the bindingmanager for this binding. it just
9413 uses the datasource. Make this method callable multiple times,
9414 and only do the is_null_desc stuff if manager.Position != -1 (so
9415 we don't get an exception accessing manager.Current).
9416 (UpdateIsBinding): move the code from IsBinding here.
9417 (PositionChangedHandler): call Check here to we can initialize
9418 things that require a non- -1 position.
9420 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9422 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
9425 2007-05-17 Andreia Gaita <avidigal@novell.com>
9427 * TabControl.cs: Add 2.0 methods and events, including
9428 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
9429 * TabPage.cs: Add 2.0 methods
9431 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9433 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
9434 keyboard_cues is properly handled by message method.
9436 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9438 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
9440 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9442 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
9444 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
9447 - WmUpdateUIState added to handle state changes, it make call to
9448 OnChangeUICues event.
9449 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
9452 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
9454 * ImageKeyConverter.cs: Added.
9455 * TreeViewImageKeyConverter.cs: Added.
9457 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9459 * ToolTips.cs: Update Text if SetToolTip is called for a control
9460 already showing the tooltip, as well as restarting its timer; show
9461 tooltip if we are inside the control bounds by the time of calling
9462 SetToolTip. Inside ShowTooltip remove the check to not show the
9463 tooltip again for the active control (it is allowed by .Net to
9464 show the tooltip on the same control multiple times).
9466 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9468 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9470 2007-05-16 Andreia Gaita <avidigal@novell.com>
9472 * ContainerControl.cs: only process tab key if there are no
9473 modifier keys present, otherwise the control does the
9474 tab processing, if it needs to. Fixes #81622
9475 * TabControl.cs: Fixes calculation for which tab to select on
9478 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9480 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9482 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
9484 * Control.cs: Make IsInputCharInternal to allow controls to
9485 override it and still match MS API.
9486 * TextBoxBase.cs: Override IsInputCharInternal and always
9490 2007-05-15 Jackson Harper <jackson@ximian.com>
9492 * TextBox.cs: Disable some of the menu options when using a
9495 2007-05-15 Jackson Harper <jackson@ximian.com>
9499 * RichTextBox.cs: Some new 2.0 methods
9501 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
9503 * FileDialog.cs: On 1.0 profile, do not support multidotted
9506 2007-05-14 Jackson Harper <jackson@ximian.com>
9508 * TextBoxBase.cs: Implement some of the new 2.0 methods.
9509 * RichTextBox.cs: We need to override these methods on 2.0.
9510 * MaskedTextBox.cs: These are implemented now
9511 * TextControl.cs: This was off by one.
9513 2007-05-14 Jackson Harper <jackson@ximian.com>
9515 * TextControl.cs: Because the line endings are including in the
9516 text, we don't need to add them in anymore.
9518 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9520 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
9521 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
9523 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9525 * ToolBar.cs: Adjust size to default size when button theres no text and
9526 image, it fixes remaining issues from #81524.
9528 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9531 - When not flat call redraw to recalculate sizes on creare handle to match
9533 - Revert 77220 because it causes some regressions in toobar
9536 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9538 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
9539 now actually enters a usable state.
9541 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9543 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
9544 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
9547 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9549 * ToolBar.cs: Save default_size on create handle to use later for buttons
9550 without text, needed to mimic win32 behavior.
9552 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9554 * ToolBar.cs: Fix button layour to best fit width or height according to
9555 vertical or not. Fixes #81524.
9557 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9559 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
9560 toolbar size info because different styles theres different sizes.
9563 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9565 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
9566 if we are using checkboxes, checked is true, and we have less
9567 than two images in StateImageList; for the 1.1 in the same scenario
9568 draw the first image if we have at least one image in StateImageList.
9569 Fixes part of #81191.
9571 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9573 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
9574 the owner's Items collection on merge.
9576 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9578 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
9579 * ToolStripItemCollection.cs: Lots of fixes to when events get called
9580 and parent/owner gets changed based on gert's unit tests.
9582 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9584 * MaskedTextBox.cs: Started implementing parts of it.
9586 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9588 * ListView.cs: When clicking the checkbox on the items
9589 take into account the double clicks even if we have only
9590 one image in StateImageList (only for 1.0/1.1). Also
9591 generate an extra change of checked state when we receive
9592 the second click on checkbox (match .Net behaviour).
9593 Fixes part of #81191.
9595 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9597 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
9599 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9601 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
9602 even if OnLoad is overriden and base.OnLoad is not called.
9605 2007-05-10 Andreia Gaita <avidigal@novell.com>
9607 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
9608 shame. (I blame my ever-persisting and annoying cold)
9610 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9612 * ListView.cs: Don't eat navigation keys. Let them flow through to
9613 KeyDown/KeyPress routines. [Fixes bug #81569]
9615 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9617 * ListView.cs: When handling keys for selecting the item based off
9618 keyboard input, do not consider keys pressed with Alt or Control. Also,
9619 correctly handle keys when the Shift key is down. [Fixes bug #81578]
9621 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9623 * Control.cs: When using UseWaitCursor, we have to store the requested
9624 Cursor to use when UseWaitCursor is turned off.
9626 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9628 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
9630 * Application.cs: Use PreProcessControlMessage instead of
9632 * PreProcessControlMessage.cs: Make internal for 1.1.
9634 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9636 * Control.cs: Add InternalContains focus property, which hast the same
9637 functionality of ContainsFocus, but also including implicit controls.
9638 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
9639 since we need to know if the focus is contained in our implicit
9640 ItemControl when calculating Layout. Fixes part of #80888.
9642 2007-05-08 Everaldo Canuto <everaldo@simios.org>
9644 * ToolTip.cs: Remove center form string alignment as it must be align to
9647 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
9649 * ToolStripItemCollection.cs: Set the new item's parent and owner
9650 in Insert like we do in Add. [Fixes bug #81568]
9652 2007-05-08 Jackson Harper <jackson@ximian.com>
9654 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
9655 - Off by one error in SetTop
9656 - Disable DoubeBuffering
9658 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9660 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
9661 control as much as necessary in order to make it entirely visible,
9662 instead of centering the control in the container (matches MS
9663 behaviour). CalculateCanvasSize: we need to take the current scroll
9664 position into account when calculating the maximum canvas,
9665 otherwise the following scenario will fail: resize so that the
9666 scrollbars appear, use the scrollbars to scroll, resize again
9667 smaller, and now the canvas size is too small. Recalculate: when
9668 showing scrollbars make sure they start off at 0, and try to scroll
9669 the active control into view. Fixes #79540. HandleScrollBar: don't
9670 scroll anywhere if the scrollbar isn't visible.
9672 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9674 * ListView.cs: When focus changed, call Layout/Invalidate
9675 in the focused item to update the selected state (should show
9676 entire label when ListView is focused, and a part of it if is not).
9677 * ListViewItem.cs: When doing layout for LargeIcon, take into account
9678 for displaying the entire label not only the Focused state of the
9679 item, but also the Focused state of the ListView (match .Net
9682 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9684 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
9685 Implement UseWaitCursor.
9687 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9688 Applying contributed patch from Sergey Volk.
9690 * Clipboard.cs: Implement SetDataObject retry logic and new overload
9692 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
9694 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9696 * Control.cs: Implement DrawToBitmap.
9698 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9699 Applying contributed patch from Stefan Noack.
9701 * Control.cs: Add [Get|Set]AutoSizeMode.
9703 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9705 * MdiClient.cs: Unmerge menus when the last child is closed.
9707 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9709 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
9710 * ToolStripManager.cs: Call Merge on DropDowns.
9713 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9715 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
9717 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
9718 visibility. We can't create forms visible, since we have to set the
9719 owner before making the form visible (otherwise Win32 will do
9720 strange things with task bar icons). The problem is that we set the
9721 internal is_visible to true before creating the control, so
9722 is_changing_visible_state is the only way of determining if we're
9723 in the process of creating the form due to setting Visible=true -
9724 this works because SetVisibleCore explicitly makes the form
9725 visibile afterwards anyways. Fixes #80775.
9727 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9729 * ThemeWin32Classic.cs: When drawing ListViewItems,
9730 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
9731 or LargeIcon _and_ item is not focused (match .Net behaviour).
9733 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9735 * Control.cs, Form.cs: Fix some obsolete method warnings.
9737 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9739 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
9740 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
9742 2007-05-04 Andreia Gaita <avidigal@novell.com>
9744 * ContainerControl.cs: Fix active_control attribution when going
9745 up the parent chain so that the first parent container gets the control
9746 and the rest of the parent containers get the child containers (skips
9747 non-containers). Fixes #80729
9749 2007-05-04 Randolph Chung <tausq@debian.org>
9751 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
9754 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9756 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
9757 takes a size parameter, since the CreateParam's size isn't true for
9758 minimized forms. Fixes #81518,
9760 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9762 * Form.cs: Add OnDeactivateInternal.
9763 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
9765 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9767 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
9768 accessing the parent. Fixes #81508.
9770 2007-05-03 Chris Toshok <toshok@ximian.com>
9772 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
9773 2.0 block, pass listposition + 1 to ChangeRecordState when a row
9774 was added before the current listposition. Fixes the
9775 TestInsertRowBeforeCurrent unit test.
9777 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
9779 * Application.cs: Add RaiseIdle.
9780 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9781 XplatUIX11.cs: Implement RaiseIdle.
9783 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
9784 corcompare work: N - Z
9788 * ScrollableControl.cs
9792 * SystemInformation.cs
9794 * TableLayoutControlCollection.cs
9795 * TableLayoutPanel.cs
9800 * ToolStripComboBox.cs
9801 * ToolStripContainer.cs
9802 * ToolStripContentPanel.cs
9803 * ToolStripDropDown.cs
9804 * ToolStripDropDownItem.cs
9805 * ToolStripDropDownMenu.cs
9807 * ToolStripItemCollection.cs
9808 * ToolStripMenuItem.cs
9810 * ToolStripSplitButton.cs
9813 * TreeNodeCollection.cs
9814 * TreeNodeMouseHoverEventArgs.cs
9817 2007-05-01 Everaldo Canuto <everaldo@simios.org>
9819 * ContextMenu.cs: Add public method Show with alignment property to 2.0
9820 stuff. Thanks aatdark for the patch.
9822 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9824 * GridItem.cs: Implement 2.0 Tag property.
9826 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
9828 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
9829 count instead of Nodes.Length. [Fixes bug #81448]
9831 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9833 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
9836 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9837 corcompare work: A - M
9838 * BindingNavigator.cs
9843 * FlowLayoutPanel.cs
9849 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9851 * Application.cs: Give toolstrips a chance to process mnemonics.
9852 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
9853 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
9854 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
9856 2007-05-01 Jackson Harper <jackson@ximian.com>
9858 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
9860 - Don't set the BoundsSpecified
9862 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9864 * Application.cs: When using the toolstrip shortcut mechanism, allow the
9865 message to pass through to a regular control if it hosted by a toolstrip.
9866 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9867 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
9869 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9871 * TextRenderer.cs: Use the flags argument when using the MeasureString
9874 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9876 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
9877 the MDI menu item. [Fixes bug #81483]
9879 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
9881 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
9882 string. When setting Name to null, use zero-length string instead.
9884 2007-04-29 Andreia Gaita <avidigal@novell.com>
9886 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
9887 DeselectTab). Implement missing 2.0 TabPageCollection methods
9888 (Add, ContainsKey, RemoveByKey, IndexOfKey)
9890 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
9892 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
9894 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
9896 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
9897 Fixes bug #81479. Include details of exception when LoadFile fails.
9899 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
9901 * DrawListViewSubItemEventArgs.cs: Added missing setter
9903 2007-04-27 Andreia Gaita <avidigal@novell.com>
9905 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
9906 Hide methods (not complete). Implement missing 2.0 OnPopup event.
9908 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9910 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
9911 removed in ly last commit (it was breaking the Label edit feature).
9913 * ThemeWin32Classic.cs: When drawing a ListViewItem use
9914 StringAlignment.Near for LineAlignment (match .Net).
9916 2007-04-27 Andreia Gaita <avidigal@novell.com>
9918 * TabControl.cs: Change SetTab so it adds the tabpage to the list
9919 of controls if it isn't already there - was blowing up when doing
9920 tabcontrol.TabPages[i]=new TabPage().
9921 SetTab now does a replace by removing the page at the index.
9922 Add a new InsertTab method that inserts a page in a given index
9923 instead of replacing.
9924 Implements TabPageCollection.Insert(int, TabPage).
9926 2007-04-27 Chris Toshok <toshok@ximian.com>
9928 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
9929 internal handler that can be invoked from our subclasses.) Also,
9930 add a comment to PushData about how we need to fix it.
9932 * CurrencyManager.cs: tons of changes here. trying to get things
9933 matching the behavior of .net wrt event orders (ItemChanged,
9934 CurrentChanged, PositionChanged.) I've implemented a private .net
9935 symbol (ChangeRecordState) that appears in stack traces because
9936 it's actually easier to do this than to effective inline all its
9937 various behaviors at every call site.
9939 * RelatedPropertyManager.cs: guard against an exception here by
9940 not using parent.Current if the position is set to -1 (if the
9941 parent datasource is cleared, for instance).
9943 * Binding.cs: don't parse data in PushData (this might be wrong,
9944 but it jives with MS's behavior.) Also, don't call PushData when
9945 we get a CurrentChanged event.
9947 2007-04-27 Andreia Gaita <avidigal@novell.com>
9951 WebBrowserSiteBase.cs,
9952 HtmlDocument.cs: Added stubbed out classes, no real implementations
9955 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9957 * MainMenu.cs: In draw method without parameters call draw method with
9958 PaintEvent, another one (just rect) adjust rectangle and we dont need it
9959 as Rect property is already adjusted. Fixes #80694.
9961 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
9963 * Application.cs: Need to handle keyboard menu deselection here.
9964 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
9965 navigation, allowing keyboard to work on X11.
9966 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
9968 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9970 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
9971 menu bar. It fixes some drawing issues in menu bar.
9973 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9975 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
9976 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
9977 when <alt> key is pressed.
9979 2007-04-26 Everaldo Canuto <everaldo@simios.org>
9981 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
9982 example just set visible to false and make this prevent from other problems.
9983 In SystrayAdd always remove pending expose. Fixes #81072.
9985 2007-04-26 Marek Safar <marek.safar@gmail.com>
9987 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
9990 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9992 * ListView.cs: Added three missing 2.0 events and corresponding
9993 EventHandlers. Added the OwnerDraw property.
9994 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
9996 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9998 * DrawListViewItemEventArgs.cs
9999 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
10001 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10003 * TextControl.cs: Fixed typo in constructor
10005 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
10007 * Application.cs: Create a shortcut path so that currently selected
10008 MenuStrips can intercept keyboard events without having focus.
10009 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
10010 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
10011 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
10012 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
10013 generate WM_SYSCOMMAND message in X11 for other platforms.
10014 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
10015 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
10016 * ToolStripSplitButton.cs: Add DefaultItem property.
10018 2007-04-26 Everaldo Canuto <everaldo@simios.org>
10020 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
10021 fixes some menu draw problem on Windows with border diferent from default
10022 it also fixes #81403.
10024 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10026 * Form.cs: Refactor WndProc into separate methods, just like Control is
10029 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10031 * Control.cs: set_Text: move the call to the driver into a seperate
10032 virtual method so that Form can override it.
10033 * MaskedTextBox.cs: Corcompare fixes.
10034 * Form.cs: Override UpdateWindowText and only update the styles if the
10035 form has been shown (fixes #81405).
10037 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10039 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
10040 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
10041 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
10042 the form lost focus or another control was clicked.
10044 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
10046 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
10049 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10051 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
10052 DrawListViewItemEventHandler.cs,
10053 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
10055 * X11Structs.cs: More ToString implementation.
10057 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10059 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
10060 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
10062 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10064 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
10066 * FormCollection.cs: Don't add a form if it's already in the
10068 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
10069 according to behaviour and MSDN. The ownerWin32 is the active
10070 window at the moment when we call ShowDialog, not the context's
10071 main form (the context's main form may open another form that opens
10072 a form with ShowDialog, the win32 owner is the second form). Add
10073 and remove forms to the Application.OpenForms in other places to
10074 better match MS behaviour. Add an IsActive property that raises
10075 On(de)Activated only if the active state has changed (we were
10076 raising OnDeactivated before OnActivated while creating forms).
10077 * Application.cs: Refactor Enabling/Disabling of windows for modal
10078 dialog loops out to separate methods, and restore the thread
10079 context when we quit the method. Fixes #81407.
10081 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10083 * ListView.cs: In ItemControl.HandleClicks, also fire
10084 2.0 MouseClick or MouseDoubleClick events on the parent,
10085 not only the Click/DoubleClick events.
10087 2007-04-24 Andreia Gaita <avidigal@novell.com>
10089 * TableLayoutSettings.cs:
10090 - Added a GetControls method and a support structure to help the
10091 TypeConverter to enumerate the controls for serialization.
10092 - Added a new serialization constructor.
10093 - Added a isSerialized flag initialized to true on the
10094 serialization constructor so that the TableLayoutPanel.LayoutSettings
10095 setter does not throw the designed NotSupportedOperation exception
10096 when the object is built through deserialization.
10097 - Implemented GetObjectData
10099 * TableLayoutPanel.cs: Added check on LayoutSettings.
10101 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10103 * ListView.cs: Report Click and DoubleClick events to the parent
10104 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
10105 from breaking the click count state when using dialog forms (Control
10106 reports the clicks in a similar fashion). In the previous behaviour
10107 the last WM_LBUTTONUP message in a double click was sent to the
10108 ListView's form, instead of the ListView, which was breaking the click
10109 count for it. Fixes #80387.
10111 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
10113 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
10115 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
10117 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
10118 us from created dropdowns for menu items that do not have subitems.
10119 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
10120 Check HasDropDownItems before calling DropDown so a dropdown will not be
10121 created if it isn't needed.
10123 2007-04-24 Jackson Harper <jackson@ximian.com>
10125 * TreeView.cs: Set the first node to the selected node when we get
10126 focus if there is no selected node.
10128 2007-04-24 Andreia Gaita <avidigal@novell.com>
10130 * MimeIcon.cs: remove using blocks so that image streams are
10131 not disposed of. Fixes #80151
10133 2007-04-24 Jackson Harper <jackson@ximian.com>
10135 * TextBoxBase.cs: Fixup the height of textboxes when the control
10138 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
10140 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
10141 for each ToolStripItem when the parent's RightToLeftChanged is called.
10143 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10145 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
10147 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
10148 property, so that the setter can be overriden too.
10149 * TextBox.cs: Change GetContextMenuInternal() to use
10150 ContextMenuInternal.
10152 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10154 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10157 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10159 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10162 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10164 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
10165 avoid duplicate work. Mostily skeleton code, it's not working at
10168 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
10170 * NotifyIcon.cs : stub for MouseClick event
10171 * Application.cs: stub for SetUnhandledExceptionMode
10173 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
10175 * BindingNavigator.cs : Initial (partial) implementation
10177 2007-04-23 Jackson Harper <jackson@ximian.com>
10179 * TreeView.cs: Do not create the treeview's handle when setting
10180 the scroll position.
10181 - ExpandAll needs to compute the scrollbars so it knows which
10182 position to set the bar too.
10184 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
10186 2007-04-23 Jackson Harper <jackson@ximian.com>
10188 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
10191 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
10193 * ToolStripItem.cs: Make GetImageSize internal.
10194 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
10195 need to draw an item. Fixes a reported issue where images on menus
10196 that were not 16x16 were drawing incorrectly.
10198 2007-04-21 Miguel de Icaza <miguel@novell.com>
10200 * Padding.cs: Use the converter, fixes the resgen2 issue with
10203 2007-04-21 Jackson Harper <jackson@ximian.com>
10205 * TreeView.cs: Dont try to unhighlight the selected node if there
10206 isn't a selected node.
10208 2007-04-21 Jackson Harper <jackson@ximian.com>
10214 * TreeView.cs: Use the InternalBorderStyle property to set the
10215 initial border style, this forces the client rectangle to be sized
10218 2007-04-20 Jackson Harper <jackson@ximian.com>
10220 * TreeView.cs: Simplify scrolling to the last node after expanding
10222 - Fix some off by ones with setting the bottom.
10224 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
10226 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
10227 that. We were incorrectly doing it the other way around. Also,
10228 update ClientSize if we change the BorderStyle before the control
10231 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
10233 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
10234 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
10235 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
10236 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
10237 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
10238 Caption to CaptionHeight.
10239 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
10240 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
10241 and FixedFrameBorderSize to return value from current XplatUI driver.
10242 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
10243 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
10244 and FixedFrameBorderSize using win32 API. Renamed Caption to
10246 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
10247 * SystemInformation.cs: Fixed typo in BorderSize.
10249 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
10251 * XplatUI.cs: Added MenuAccessKeysUnderlined.
10252 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
10253 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
10255 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
10256 value from XplatUI driver.
10257 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
10258 SystemParametersInfo.
10259 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
10261 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
10264 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10266 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
10268 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10270 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
10272 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
10274 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
10275 MenuStrips that contain ToolStripSeparators.
10277 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10279 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
10280 DefineStdCursorBitmap.
10281 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
10282 has been created off a standard cursor. This is used to get a
10283 bitmap of the standard cursor when Draw or DrawStretched is called
10284 in order to draw the cursor.
10285 * X11Structs.cs: Added XcursorImage and XcursorImages.
10286 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
10287 DefineStdCursorBitmap.
10288 * Cursors.cs: Update all relevant creations of Cursor to use the new
10289 internal constructor.
10291 2007-04-19 Jackson Harper <jackson@ximian.com>
10293 * TextBox.cs: Move the has_been_focused into the base control, so
10294 some of the text adding methods can manipulate it (probably time
10295 for a better name for this flag too).
10296 - Call a new version of selectall that doesn't scroll
10297 * TextBoxBase.cs: When we append text, if the document is empty,
10298 don't scroll. If the document has text already, we scroll to the
10299 end of the appended text.
10300 - When the text is changed, we reset the has_been_focused, so the
10301 next time the control gets focused, all the text is selected.
10303 2007-04-19 Jackson Harper <jackson@ximian.com>
10305 * TextControl.cs: Move the margins to the document, add a method
10306 so the margin sizes can be updated.
10307 * TextBoxBase.cs: When the border style is changed, update the
10310 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
10312 * Control.cs: Respect DefaultPadding.
10313 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
10314 padding into account.
10315 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
10317 2007-04-19 Jackson Harper <jackson@ximian.com>
10319 * TextControl.cs: Oops, we need to use the ClientRect not the
10322 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10324 * ListView.cs: In ItemControl.ItemsMouseDown, take into
10325 account the double clicks when CheckBoxes are used and
10326 the pointer is inside the checkbox. Fixes part of #81191.
10328 2007-04-18 Jackson Harper <jackson@ximian.com>
10330 * TextControl.cs: Pressing the end key shouldn't move the caret
10331 past the line ending.
10332 * TextBoxBase.cs: We can still delete if we are in the line
10333 ending and the combine will just kill the existing line ending.
10335 2007-04-18 Jackson Harper <jackson@ximian.com>
10337 * TextControl.cs: We can't move lines, then invalidate their
10338 bounds, we need to get the old bounds and combine that with the
10340 * TextBoxBase.cs: Before combining two lines for a delete, we need
10341 to invalidate the area of the old line, since that will be moved
10342 in the combine operation.
10344 2007-04-18 Everaldo Canuto <everaldo@simios.org>
10346 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
10347 with transparent background. Fixes #80482.
10349 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
10351 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
10352 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
10355 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10357 * CreateParams.cs: Add a couple of helper methods and do a less string
10358 concatenation in ToString.
10359 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
10360 overload that takes a Control parameter, since this method may be
10361 called before a control is assigned to the hwnd (from
10362 CreateWindow), and update CreateWindow to use the new overload. In
10363 GetMenuOrigin subtract the title bar from the y position if the
10364 form has a window manager (since we're painting it and not X).
10365 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
10366 CreateParams to calculate the origin (since border sizes may vary).
10367 In ScreenToMenu only subtract the title height if we actually have
10369 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
10370 mdi children never have menus of themselves.
10371 * InternalWindowManager.cs: Implement menu handling like form does.
10372 Added GetMenuOrigin to calculate the menu origin, can't use the
10373 CreateParams from the form like normally since it's lying.
10374 * Hwnd.cs: Implement GetBorderSize better (in the sense more
10375 windows-like) and add Inflate and comparison operators to the
10376 Borders type. When calculating MenuOrigin and it's a form with a
10377 window manager, use the window manager to calculate it.
10379 2007-04-17 Chris Toshok <toshok@ximian.com>
10381 * Control.cs (CreateControl): turns out in 2.0 we don't need this
10382 OnBindingContextChanged thing here. It's only generated from
10383 ContainerControl.OnCreateControl. Fixes a newly written unit test
10384 - BindingTest.BindingContextChangedTest4.
10386 2007-04-17 Jackson Harper <jackson@ximian.com>
10388 * ScrollBar.cs: When setting values, make sure the current
10389 position stays within the new values range.
10391 2007-04-17 Chris Toshok <toshok@ximian.com>
10393 * Control.cs (CreateControl): talk about a bizarre corner case.
10394 Don't emit OnBindingContextChanged here if we're a parentless
10395 control (i.e. if we're a form.). Fixes
10396 BindingTest.BindingContextChangedTest2.
10398 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10400 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
10401 from win32. Fixes #81255.
10403 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10405 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
10406 already present in CalculateButtonTextAndImageLayout.
10408 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10410 * XplatUIX11.cs: When setting min/max size for a window we need to
10411 translate the coordinates to x coordinates. Create an overload of
10412 SetWindowMinMax that takes a CreateParams handling this, and change
10413 SetWMStyles to call this function (can't use Control.FromHandle in
10414 the SetWindowMinMax to get the control/CreateParams from the handle
10415 because the handle might not have been assigned to the control
10416 yet). Fixes #81371.
10418 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10420 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
10421 if StateImageList is non-null and it has less than two items (match MS
10422 behaviour). Also, in HandleNavKeys handle the Space key, calling
10423 the new ToggleItemsCheckState method, which tries to change the
10424 checked state of the selected items. Fixes part of #81191.
10426 2007-04-16 Jackson Harper <jackson@ximian.com>
10428 * RichTextBox.cs: namespace cleanup.
10430 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10432 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
10434 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10437 * Control.cs: Call invalidate in set_Region.
10439 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
10440 it dont works here.
10442 2007-04-16 Jackson Harper <jackson@ximian.com>
10444 * TextBoxBase.cs: When enter is pressed, we need to update all
10445 lines below the current.
10447 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
10449 * MdiClient.cs: Implement implicit menu merging for MDI
10450 children. When a child form is active, if it has a menustrip
10451 and the parent form has a MainMenuStrip, automatically merge
10454 2007-04-15 Andreia Gaita <avidigal@novell.com>
10456 * TabControl.cs: Refactored sizing methods to not repeat
10457 code all over the place. Tab bounds are now calculated
10458 as if alignment is top and single line, and only when
10459 setting the bounds are the positions adjusted according
10460 to alignment. Replaced hardcoded positions, spacings and
10461 paddings by getting the values the ThemeEngine.
10464 * Theme.cs: Change TabControl properties and methods so
10465 that all start with TabControl*. Added more properties
10466 to help remove hardcoded values on tabcontrol.
10467 Add CPDrawBorder3D declaration so the Theming classes
10470 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
10472 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
10473 on the Theming namespace, and call the appropriate methods here.
10474 Change CPDrawBorder3D to public.
10476 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10478 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
10479 the control after firing the OnMouseUp event, instead of sending
10480 the message before the mentioned event. This is so we can match the
10481 MS behaviour. Fixes part of #80385.
10483 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10485 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
10486 RightToLeft property.
10488 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10490 * ToolStrip.cs: Add properties and internal methods to support merging.
10491 * ToolStripItem.cs: Add MergeAction and MergeIndex.
10492 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
10493 not trigger reparenting or layouts.
10494 * ToolStripManager.cs: Add Merge and RevertMerge methods.
10495 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
10496 is hosting the overflow menu.
10498 2007-04-13 Jackson Harper <jackson@ximian.com>
10500 * TextControl.cs: Set the line ending correctly for the first
10503 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
10505 * Theme.cs: Update GetMethod to get the new definition for
10506 KnownColors.Update (and fix theme color updates).
10508 2007-04-12 Everaldo Canuto <everaldo@simios.org>
10510 * MessageBox.cs: Fix some test and button position.
10512 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10514 * Form.cs: Consider the implicit controls in
10515 GetRealChildAtPoint. We need it since this method
10516 is called on Form when handling the some messages in
10517 WndProc, and need to consider those implicit ones too.
10520 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
10522 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
10523 if there are no ShortcutKeys set.
10524 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
10525 set, use it when painting.
10527 2007-04-12 Jackson Harper <jackson@ximian.com>
10529 * TextControl.cs: Fix some off-by-one issues in line duplication
10530 and insertion in the undo manager. Also, overwrite the first tag
10531 of a line on insert, if it is just a zero lengthed tag. This
10532 prevents us from getting an extra stranded tag at the beginning of
10535 2007-04-11 Everaldo Canuto <everaldo@simios.org>
10537 * Label.cs: Remove check for handle created in CalcAutoSize, we need
10538 to calculated proper size including when handle was not created yet.
10540 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10542 * MdiWindowManager.cs: When moving a form, allow the form to be moved
10543 when the mouse is outside of it's parent's client rectangle. Fixes
10544 #79982 (take 3, part 2).
10546 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10548 * X11Structs.cs: Add a few ToString() overrides.
10549 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
10550 the window location in a window-manager independent way. Reworked
10551 FrameExtents, it now actually works. Reworked AddConfigureNotify
10552 and ReparentNotify handling to use GetTopLevelWindowLocation
10553 instead of the earlier, more hacky solution. Reworked SetWMStyles,
10554 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
10555 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
10556 for all other windows (fixes #81281 part 1), a toolwindow is hidden
10557 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
10558 and generally refactored to do as few calculations as possible
10561 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
10563 * Theme.cs: Change "reflective-contract" between MWF and SD to
10564 minimize # of calls, avoid Color serialization and avoid updating
10565 every "known colors" each time a single one is updated.
10567 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10569 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
10570 when not readonly and the text is explicitly set. Code style updates.
10571 * DataGridTableStyle.cs: Removed extra line.
10572 * DataGrid.cs: Code style updates. Removed extra whitespace.
10573 * DataGridColumnStyle.cs: Code style updates. Removed extra
10576 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10578 * XplatUIX11.cs: Added comment that "fixes" #80021.
10580 2007-04-09 Jackson Harper <jackson@ximian.com>
10582 * TextControl.cs: We don't need this -1 on the line count anymore.
10584 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10586 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
10587 entered value to underlying type, and convert it back to a string to
10588 apply formatting. Modified GetFormattedValue to use TypeConverter
10591 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
10593 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
10594 Use SubItems property when we want to ensure there's at least one
10595 subitem. Modified SubItems property to ensure there's always at least
10596 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
10597 the NRE's reported by MS.
10599 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
10601 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
10602 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
10603 Spaces to tabs. Removed extra tabs.
10605 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
10607 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10608 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
10610 2007-04-06 Jackson Harper <jackson@ximian.com>
10612 * TextBoxBase.cs: When a delete removes a line, recalculate all
10613 lines below that line (they need to get offsets setup correctly)
10616 2007-04-05 Jackson Harper <jackson@ximian.com>
10618 * TextControl.cs: We need to invalidate across the width of the
10619 document when we are invalidating multiple lines.
10620 * TextBoxBase.cs: Don't delete into the line ending.
10622 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10624 * ListView.cs: Restore the check for the MouseHover event
10625 in ListView. It looks like the ListView fires more than one MouseHover
10626 event when HoverSelection is true _only_ in weird-corner scenarios, but
10627 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
10630 2007-04-05 Mike Kestner <mkestner@novell.com>
10632 * ListView.cs : raise MouseDown before updating selection.
10633 [Fixes #80373 tab 1&3]
10635 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10637 * ToolStripRenderer.cs: Add static method to mirror image.
10638 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
10639 and RightToLeftAutoMirrorImage.
10640 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
10642 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10644 * ToolStripSplitStackLayout.cs: Support Alignment property.
10645 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
10647 2007-04-05 Jackson Harper <jackson@ximian.com>
10649 * TextControl.cs: Move around the line endings when crossing line
10651 - When combining lines, strip the ending text off the first line.
10653 2007-04-05 Jackson Harper <jackson@ximian.com>
10656 * TextBoxBase.cs: Try to never move the cursor into the line
10659 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10661 * ToolStripItem.cs: Make sure we aren't firing mouse events when
10662 the item is disabled. Also add a few missing methods.
10664 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10666 * ListView.cs: We don't need the MouseEnter/MouseLeave check
10667 to fire just one MouseHover event when HoverSelection is true, since
10668 .Net does fire more than one MouseHover event in that scenario. Also,
10669 fix the selection in HoverSelection, by invoking UpdateMultiSelect
10670 if MultiSelect is true, instead of only setting ListViewItem.Selected.
10671 Finally, we need to reset the Hover logic in MouseMove, even when we
10672 don't have a selected item.
10674 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10676 * ToolStrip.cs: Add several missing methods, properties, and events.
10678 2007-04-04 Chris Toshok <toshok@ximian.com>
10680 * DataGridTextBoxColumn.cs: set the bounds of the text box to
10681 (0,0,0,0) in Commit, as MS does.
10683 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
10684 make sure we set CurrentRow on a row header click *before* calling
10685 Select. This moves the current cell (and the textbox) to the new
10686 row. The call to Select then hides the textbox, giving us the
10687 correct behavior. Fixes #80362.
10689 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
10690 (ListChangedHandler): reorder the position/current changed events,
10691 and call UpdateIsBinding in the ItemAdded case.
10693 * GridColumnStylesCollection.cs: add some columns events, one of
10694 which raises the CollectionChanged event.
10696 2007-04-04 Jackson Harper <jackson@ximian.com>
10698 * TextControl.cs: When we delete multiple selection lines
10699 invalidate the selection area, don't need to do that for single
10700 lines because the final update view will handle it.
10702 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10704 * Control.cs: When we CreateControl, we need to also create all of the
10705 control's children. The child's OnLoad must also fire before the parent's
10706 OnLoad. Fixes the toolbox size in PDN.
10708 2007-04-04 Jackson Harper <jackson@ximian.com>
10710 * TextBoxBase.cs: When the user presses enter, insert a line
10711 ending into the text. (Maybe this would be a good spot for
10712 Environment.NewLine).
10713 * TextControl.cs: Remove undo manager hack, line endings get
10714 inserted properly now.
10716 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10719 - Remove unneeded parameters in UpdateCursor.
10720 - Fix UpdateCursor to check if menu is active.
10721 - Call UpdateCursor when menu deactivate my click.
10722 [Fixes remaining issues from #80410]
10724 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10726 * Control.cs: GetRealChildAtPoint method added, it make an
10727 recursive child control search for the point.
10729 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
10732 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
10734 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10736 * Form.cs: Fix mouse position when send back mouse event after closes
10739 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10741 * Form.cs: Simplify the BUTTONDOWN for active tracker.
10743 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10745 * Control.cs: Fix an issue where if a user resized a control inside
10746 a sizing method like OnResize, we would overwrite their explicit
10747 value. Also, only call DefaultSize once in the constructor instead
10748 of 4 times. Also, do not call SetBoundsCore from SetBounds if
10749 nothing actually changed.
10751 2007-04-03 Jackson Harper <jackson@ximian.com>
10753 * TextControl.cs: Don't attempt to copy text for lines with no
10754 text in them (technically this shouldn't happen, but we aren't
10755 always inserting line endings when we should be).
10757 2007-04-03 Jackson Harper <jackson@ximian.com>
10759 * TextBoxBase.cs: Calculate the scrollbars before calculating the
10760 document, because this sets some of the document size properties
10763 2007-04-03 Jackson Harper <jackson@ximian.com>
10765 * TextBoxBase.cs: We need to calculate maximums even if this is
10766 not a multiline control, because the maxs are used for scrolling.
10767 - Display the caret after doing a page up/down, we need to
10768 manually display it because a proper CaretMoved event isn't
10769 triggered (this is because of the way the math is done to
10770 determine how far to scroll).
10772 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10774 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
10775 (ToolBar was relying on SetBoundsCore to default the values sent
10776 base off of BoundsSpecified.)
10778 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10780 * DateTimePicker.cs: Change Text so that when a null value or empty
10781 string is assigned to the test we always raise ValueChanged and
10782 TextChanged (earlier implementation would only raise ValueChanged
10783 if the current date value was different from DateTime.Now).
10785 2007-04-03 Andreia Gaita <avidigal@novell.com>
10787 * ButtonBase: Call update after invalidation, fixes #80194
10789 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10791 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
10794 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10796 * XplatUIX11.cs: SetWMStyles: If the control is a form with
10797 FormBorderStyle = None, don't give the window any decorations.
10800 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10802 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10803 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
10804 to check for is a mix of several styles (such as WS_CAPTION for
10806 * Control.cs: Don't paint an area bigger than the client area when
10807 painting the background colour. Add an internal GetCreateParams.
10808 Update calls to XplatUI.CalculateWindowRect due to API change.
10809 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
10810 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
10811 the size if it hasn't been handled by any windows. When creating
10812 and moving windows, X wants the location of the entire window, but
10813 the size of the client window, so add
10814 TranslateClientRectangleToXClientRectangle,
10815 TranslateWindowSizeToXWindowSIze and
10816 TranslatedXWindowSizeToWindowSize to cope with this, and call them
10817 before every window creation and move. Update CalculateWIndowRect
10818 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
10819 In AddConfigureNotify don't do anything if the hwnd is a zombie
10820 (fixes the BadWindow we were getting while running the tests),
10821 always calculate the offsets when it's a parentless window, not
10822 only when reparented, and translate the window size, since we're
10823 getting the client size of the whole window, excluding entire
10825 * Theme.cs: Added BorderSizableSize.
10826 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10827 anymore. Update calls to XplatUI.CalculateWindowRect due to API
10829 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
10830 change. Fake the window styles here instead of in XplatUIWin32 so
10831 that all back-ends get the same window styles (and it's Form that's
10832 deciding when to use wm, not the Win32 backend anyways)
10833 * Hwnd.cs: Completely reworked GetWindowRectangle and
10834 GetClientRectangle - they are now passed a CreateParams and they
10835 only use Style and ExStyle to determine the rectangles (they should
10836 now work just like Win32AdjustWindowRectEx - though quite a few
10837 special cases are probably missing). They should also be 100%
10838 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
10839 == rect), and all numbers (borders, menu sizes) are taken from the
10840 current theme. Added a GetBorders helper function that will return
10841 the borders for any given CreateParams (including captions and
10842 menus), and GetBorderSize that returns the given border size only.
10843 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10844 Hwnd.GetClientRectangle.
10846 2007-04-02 Chris Toshok <toshok@ximian.com>
10848 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
10849 logic between the values we present to the user and the values
10850 which are stored in the column's property. Also, don't call
10851 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
10853 2007-04-02 Jackson Harper <jackson@ximian.com>
10855 * TextBoxBase.cs: Scroll faster!
10857 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
10859 * StatusStrip.cs: Layout fixes for PDN.
10860 * ToolStrip.cs: Set item's available to true, and placement to main when
10862 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
10863 changing in setter before doing any work, add InternalVisible.
10864 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
10865 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10868 2007-04-02 Jackson Harper <jackson@ximian.com>
10870 * TextBox.cs: LBUTTON does not make the textbox select all of it's
10873 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10875 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
10876 Makes ToolStripComboBoxes show up again.
10878 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10880 * ListView.cs: Add a hover_pending field in ListView
10881 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
10882 cycle (we are resetting the MouseHover logic in XplatUI
10883 to handle HoverSelection). Fixes #80429.
10885 2007-04-02 Jackson Harper <jackson@ximian.com>
10887 * TextControl.cs: Make sure the attributes get set on the last
10889 - Still have to do the end tag if we have stepped all the ways to
10892 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
10894 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
10895 on an internal libgdiplus call when the information is already
10896 available via the public API.
10898 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10900 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
10901 control is removed from a control collecftion.
10902 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
10903 Fixes FormPropertyTest (failed on rare occasions).
10904 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
10905 of Win32SetParent (when changing from no parent to a parent it
10906 might add the new parent's location in screen coordinates to this
10907 window's location).
10908 * Form.cs: Rework ChangingParent once again, now the handle is
10909 recreated whenever a FormWindowManager is added or removed (that is
10910 whenever a normal form is parented or abandoned). Also change
10911 CreateParams so that all non-toplevel windows always get the
10912 specified sice (StartupPosition is never considered for
10913 non-TopLevel forms).
10914 * ContainerControl.cs: Add ChildControlRemoved, the container control
10915 needs to be notified when a control is removed from it's
10916 collection, in the case the removed control is the active control.
10918 2007-04-02 Jackson Harper <jackson@ximian.com>
10920 * RichTextBox.cs: Use the new methods for setting the font and
10921 color, these methods set the specified attribute without
10922 overriding the other attributes.
10924 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
10926 * ToolStripPanel.cs: Fixes for better layouts in PDN.
10928 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
10930 * TextBox.cs: Added internal ChangeBackColor method to special-case
10931 Color.Empty. Added check for invalid ScrollBars value.
10932 * TextBoxBase.cs: Added internal ChangeBackColor method.
10933 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
10934 internal ChangeBackColor method to special-case Color.Empty. Added
10935 check for invalid ScrollBars value.
10937 2007-03-30 Everaldo Canuto <everaldo@simios.org>
10939 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
10941 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
10943 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
10944 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
10945 [Based on submitted patch from Olivier Duff.]
10947 2007-03-30 Jackson Harper <jackson@ximian.com>
10949 * TextBox.cs: Only select all on initial focus if the user has not
10950 specified a selection area.
10952 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
10954 * UserControl.cs: Override CreateParams.
10956 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10960 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10961 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
10962 check for is a mix of several styles (such as WS_CAPTION for instance).
10963 * Control.cs: Don't paint an area bigger than the client area when painting
10964 the background colour. Add an internal GetCreateParams. Update calls to
10965 XplatUI.CalculateWindowRect due to API change.
10966 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
10967 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
10968 hasn't been handled by any windows. When creating and moving windows, X
10969 wants the location of the entire window, but the size of the client
10970 window, so add TranslateClientRectangleToXClientRectangle,
10971 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
10972 to cope with this, and call them before every window creation and move.
10973 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
10974 removing DeriveStyles). In AddConfigureNotify don't do anything if the
10975 hwnd is a zombie (fixes the BadWindow we were getting while running the
10976 tests), always calculate the offsets when it's a parentless window, not
10977 only when reparented, and translate the window size, since we're getting
10978 the client size of the whole window, excluding entire window.
10979 * Theme.cs: Added BorderSizableSize.
10980 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10981 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
10982 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
10983 Fake the window styles here instead of in XplatUIWin32 so that all
10984 back-ends get the same window styles (and it's Form that's deciding when
10985 to use wm, not the Win32 backend anyways)
10986 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
10987 they are now passed a CreateParams and they only use Style and ExStyle
10988 to determine the rectangles (they should now work just like
10989 Win32AdjustWindowRectEx - though quite a few special cases are probably
10990 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
10991 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
10992 sizes) are taken from the current theme. Added a GetBorders helper
10993 function that will return the borders for any given CreateParams
10994 (including captions and menus), and GetBorderSize that returns the given
10996 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10997 Hwnd.GetClientRectangle.
10999 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11001 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
11002 layout of the mdi children is handled by CreateParams. Fixes
11005 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11007 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
11010 * Form.cs: When active tracker mouse down is not processed, send event
11011 back to control inside mouse position. [Fixes #81227]
11013 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11015 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
11016 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
11017 stealing focus from the active form on Windows. (Control will be made
11018 visible in ShowWindow.)
11020 2007-03-29 Mike Kestner <mkestner@novell.com>
11022 * ImageList.cs : add internal Changed event.
11023 * ListView.cs : hook up to StateImageList.Changed to perform
11024 invalidations when the the state icon list changes. [Fixes #81191]
11026 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11028 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
11029 to prevent tooltips from stealing focus from the active form on Windows.
11031 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11033 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
11035 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
11037 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11039 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
11042 2007-03-29 Jackson Harper <jackson@ximian.com>
11044 * TextControl.cs: When deleting text from non multiline textboxes,
11045 we need to update the entire document, because line offsets will
11048 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11050 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
11051 added to theme, now we can create themes that uses diferent notify engines
11052 like notification-daemon from galago project or growl for Mac OS.
11054 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11056 * NotifyIcon.cs: Prevent Balloon to show in task bar.
11058 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11060 * XplatUIX11.cs: Prevent system to open more than one balloon.
11062 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
11063 some compiler warning messages.
11065 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11069 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
11071 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
11072 implemented, this methods is used by NotifyIcon.BalloonWindow class.
11074 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
11077 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11079 * ListViewItem.cs: Forgot to make Invalidate internal.
11081 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11083 * ListView.cs: Add a InvalidateSelection method to
11084 invalidate methods which are currently selected, and call
11085 it when setting FullRowSelect and HideSelection, instead of
11088 2007-03-28 Chris Toshok <toshok@ximian.com>
11090 * XplatUIX11.cs (UnmapWindow): reindent this block.
11092 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
11093 the selection_start if we're moving the selection (that is, not
11094 extending it). Fixes bug #80461.
11096 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11098 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
11099 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
11100 create private ControlCollection.
11102 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11104 * Control.cs: We need to call OnVisibleChanged for our implicit
11105 children as well as our normal children. Fixes scrollbars in
11106 comboboxes not showing up.
11108 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11110 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
11111 the check for IsHandleCreated first. The check in CreateHandle is not
11112 good enough because CreateHandle can be overriden, and the override
11113 should not be called if the handle is already created.
11115 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11117 * ToolStrip.cs: Remove MonoTODO for tooltips.
11118 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
11119 * ToolStripContainer.cs: Add custom ControlCollection class.
11120 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
11121 * ToolStripDropDown.cs: Add some missing properties/methods.
11122 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
11123 * ToolStripItem.cs: Remove MonoTODO for tooltips.
11124 * ToolStripManager.cs: Add IsShortcutDefined.
11125 * ToolStripOverflow.cs: Override LayoutEngine.
11126 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
11127 * ToolStripSeparator.cs: Add ImageKey.
11129 2007-03-28 Jackson Harper <jackson@ximian.com>
11131 * TextControl.cs: If a char delete removes a line ending, we need
11132 to update the ending style.
11133 - Make sure the line ending calcs get called.
11135 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11137 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
11138 it was making the new code not work. Fixed a typo in the new code
11139 as well. Fixes #79826.
11141 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11144 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
11145 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
11146 - SystrayBalloon method implemented.
11147 [Add support for notifyicon balloon on win32, #79149]
11149 2007-03-27 Mike Kestner <mkestner@novell.com>
11151 * ThemeWin32Classic.cs : update StateImageList selection to mirror
11152 the ms behavior when only one image is added to the list.
11155 2007-03-27 Jackson Harper <jackson@ximian.com>
11157 * TextControl.cs: Improvements to non multiline line ending
11160 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11162 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
11164 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11167 - Balloon message handling added.
11168 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
11170 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11171 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
11172 to SystrayBalloon to me like other Systray method, also a
11173 handle parameter added.
11175 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11177 * ListView.cs: Show scrollbars even when items.Count == 0
11178 but the columns Width is bigger than the ListView.Width.
11179 Also, when columns.Count == 0 set layout_wd and layout_ht
11180 to the ClientRectangle values, so we don't show any scrollbar
11183 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11185 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
11187 2007-03-27 Jackson Harper <jackson@ximian.com>
11189 * RichTextBox.cs: The RTF library decodes the text properly for us
11192 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11194 * ListView.cs: Display HeaderControl even when columns.Count == 0.
11195 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
11196 ListView header (HeaderControl), instead of Control.BackColor.
11198 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
11200 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
11201 Fixes tab control issues where controls would not show up because they
11202 never received their OnVisibleChanged call.
11204 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11206 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
11209 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
11211 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
11212 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
11213 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
11214 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
11215 the handle. Fix WindowState by using the internal variable until we are
11216 sure that we've been shown.
11217 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
11221 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
11223 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
11224 (at least borders). Fixes #79386 on Linux (with a small difference
11225 in behaviour: when trying to resize a caption-less window metacity
11226 shows the sysmenu. Resizing is still possible though).
11227 * XplatUIWin32.cs: When setting window styles send request an extra
11228 WM_NCCALCSIZE when it's a form without title (due to no text and no
11229 caption), since Win32 seems to calculate it wrong the first time we
11230 get the message, though the second time things work as they should.
11231 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
11232 newly reparented window might show up unparented. Update
11233 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
11234 there's no title text. Fixes #79386.
11236 2007-03-27 Mike Kestner <mkestner@novell.com>
11238 * ListBox.cs : don't perform invalidations if the handle hasn't been
11239 created. [Fixes #80753]
11241 2007-03-27 Mike Kestner <mkestner@novell.com>
11243 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
11246 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11248 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
11249 needed to implement Balloon.
11251 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11253 * ListViewItem.cs: In the constructors that take
11254 an array of strings, don't use ListViewSubItemCollection.AddRange
11255 method to add items, since we need to have a different behaviour (in
11256 the constructors we add an item for each null string, opposed to
11257 the behaviour of AddRange, which adds nothing).
11259 2007-03-26 Andreia Gaita <avidigal@novell.com>
11261 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
11263 2007-03-26 Jackson Harper <jackson@ximian.com>
11265 * TextControl.cs: Draw and measure line endings when in non
11267 - When searching the text, count the end of the last line as a
11270 2007-03-26 Jackson Harper <jackson@ximian.com>
11272 * RichTextBox.cs: The selection_start and selection_end don't
11273 really track the correct tags for the selection. So we'll manually
11274 compute the correct tag here.
11276 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11278 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
11279 and Continuous styles. Fixes #79469.
11281 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
11283 * ToolStrip.cs: Implement Tooltips.
11284 * ToolStripItem.cs: Create internal method for determining tooltip.
11286 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
11288 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
11290 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11292 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
11293 it prevents a problem thak keeps icon visible after application
11296 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11298 * NotifyIcon.cs: Balloon properties and methods created.
11300 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11301 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
11303 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
11305 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
11307 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
11309 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
11310 parameter indicates which aspects were explicit/user-set.
11311 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
11313 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
11315 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
11316 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
11317 SmallChange, and Value (2.0).
11318 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
11320 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11322 * ListView.cs: Always set item_control.Width in LayoutDetails
11323 if View is Details. Setting it later in CalculateScrollBars
11324 in a not-so-corner scenario (the sum of columns width is
11325 not bigger than the ListView width when handle is created, and then
11326 that sum gets bigger by increasing the width of the columns)
11327 causes a very weird recursion path (which shouldn't be happening,
11328 since header_control sets it in CalculateScrollBars too). This bug
11329 appeared after Chris' fixes for handle created issues, so probably
11330 it's related to some handle-creation time.
11332 2007-03-23 Chris Toshok <toshok@ximian.com>
11334 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
11335 case where there's an add row, just so we don't end up in a case
11336 where it's not displayed (this happens when the row is partially
11337 obscured). Fixes bug #79574.
11339 2007-03-23 Jackson Harper <jackson@ximian.com>
11343 * RichTextBox.cs: Preserve line endings in the lines text buffer,
11344 also added an enum that represents the line ending type.
11346 2007-03-23 Andreia Gaita <avidigal@novell.com>
11348 * NumericUpDown.cs: Fix logic so Text and Value properties are not
11349 messed with in every method call, but only from DownButton,
11350 UpButton, UpdateEditText() and ValidateText. Fixes #80346
11352 2007-03-23 Chris Toshok <toshok@ximian.com>
11354 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
11355 format objects if the format spec is "". Fixes bug #80889.
11357 2007-03-22 Miguel de Icaza <miguel@novell.com>
11359 * ToolStripPanel.cs (Join): added stubs to build PDN3
11361 * Control.cs (AutoScrollOffset): Add.
11363 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
11364 property, its only implemented for Win32, on X11 it defaults to
11365 some hardcoded value.
11367 * ToolStripItem.cs (AllowDrop): Add property
11369 2007-03-22 Mike Kestner <mkestner@novell.com>
11371 * ListView.cs : in FullRowSelect Details mode, only enable box
11372 selection if the user clicks over the "item" column outside of the
11373 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
11375 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11377 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
11378 handle is not created yet.
11379 * Form.cs: Select: Don't call CreateHandle if the handle is already
11380 created, avoids a stack overflow on Windows when we are recreating
11382 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
11383 they are made visible, and override AfterTopMostControl to keep
11384 them on top when other controls are brought to front.
11385 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
11386 or force_*scroll_visible is true (old implementation always shows
11387 scrollbars when needed, no matter what auto_scroll was set to).
11388 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
11389 IsHandleCreated check.
11391 2007-03-22 Andreia Gaita <avidigal@novell.com>
11393 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
11394 row or col separator.
11395 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
11397 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11399 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
11401 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11403 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
11404 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
11405 every time. Fixes #80410.
11407 2007-03-22 Chris Toshok <toshok@ximian.com>
11409 * BindingSource.cs (AddNew): partially implement.
11411 remove a couple of NotImplementedException's
11412 to get bug #81148 closed.
11414 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11419 - UpdateCursor method added to update the screen cursor.
11420 - GetAvailableCursor method added to return cursor for enabled tree,
11421 it searches for cursor on control and it's parent's for enabled control.
11422 - Call UpdateCursor method on setter of Cursor property.
11423 - On setter of Enabled call UpdateCursor when it is false, we need to
11424 change cursor to normal (or to this parent cursor) because cursor
11425 setting theres no effect to disabled controls.
11426 - Some minor source changes to follow the coding style guidelines.
11428 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
11431 2007-03-22 Chris Toshok <toshok@ximian.com>
11433 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
11436 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11438 * XplatUIX11.cs: Implement default locations for forms.
11439 * Form.cs: Completely rework startup location for forms. Fixes #79964.
11440 * Hwnd.cs: Add previous_child_startup_location (to track the current
11441 startup location for any child forms of the current form) and
11442 previous_main_startup_location (to track the startup location for
11443 the current toplevel form).
11445 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11447 * Control.cs: Don't trigger a layout if an implicit control is added
11448 that isn't visible. Also, don't notify the owner when an implicit control
11449 is added. (Owners shouldn't even know about their implicit controls.)
11451 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11453 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
11454 to save some re-layouts.
11456 2007-03-21 Everaldo Canuto <everaldo@simios.org>
11458 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
11461 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11463 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
11464 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
11466 2007-03-21 Mike Kestner <mkestner@novell.com>
11468 * ListView.cs : disable selection update for non-left button clicks
11469 with mods and over selected items. [Fixes #80524]
11471 2007-03-20 Jackson Harper <jackson@ximian.com>
11474 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
11477 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11479 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
11480 very probably a more complicated calculation there. Update the
11481 textbox' ForeColor and BackColor when the ComboBox' colors are
11482 changed. Change the border change in LayoutComboBox to only affect
11483 the textbox, not all the calculations there. Seems to fix most of
11486 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11488 * ComboBox.cs: Handle Home and End keys as well as all combinations of
11489 modifiers + navigation keys as input keys, enables advanced text
11490 selection in the combobox (like Shift+Left Arrow for instance).
11491 ComboTextBox now overrides Focused and returns whatever
11492 ComboBox.Focused returns, since it really should be focused
11493 whenever the ComboBox is. Fixes #80795. Also make the border around
11494 the text box one pixel bigger, as mentioned in #79436.
11496 2007-03-20 Jackson Harper <jackson@ximian.com>
11498 * TreeView.cs: Don't offset the images, this was causing some
11499 artifacts when expanding/collapsing with images that were the
11500 exact height of the treenode.
11502 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11504 * TrackBar.cs: Query the theme for the correct value when the mouse
11505 moves and the thumb is pressed.
11506 * Theme.cs: Added TrackBarValueFromMousePosition
11507 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
11508 implementation was updating the trackbar value when drawing, now
11509 the drawing methods only draw. Fixes #80900. Refactored the
11510 calculations out to TrackBarValueFromMousePosition and
11511 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
11512 according to the mouse position whenever it wants to. Changed the
11513 light coloured pen when drawing the thumb from ControlLight to
11514 ControlLightLight, because the ControlLight is the same colour as
11515 the background so the 3D effect is lost.
11517 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11519 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
11520 defined. Fixes #80784.
11522 2007-03-20 Marek Habersack <mhabersack@novell.com>
11524 * ContextMenuStrip.cs: align with the change introduced in
11527 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11529 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
11530 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
11533 2007-03-19 Chris Toshok <toshok@ximian.com>
11535 * Control.cs (WmPaint): don't make use of the Handle property
11536 after an event is emitted, as the user could have closed the
11537 form/destroyed the control. Store the Handle in a local variable
11538 and make use of that. Fixes bug #80768.
11540 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11542 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
11543 behavior in X11 environments.
11545 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11547 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
11548 because on setter of topmost we dont call SetTopmost when handle is not
11551 2007-03-20 Jackson Harper <jackson@ximian.com>
11553 * TextControl.cs: Need to use SelectionLength () not
11554 selection_length, since that var is reset to -1.
11555 - Draw the caret when we don't have focus.
11556 * TextBox.cs: The selectall actually doesn't occur until the first
11558 * TextBoxBase.cs: Need to update the caret position after a
11561 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11563 * ListView.cs: Enable scrolling when using Tile view.
11565 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11569 * XplatUIDriver.cs: Abstract SetOwner method created.
11571 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
11572 must be implemented and was masked as todo.
11574 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
11577 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
11578 cheking for null owner to remove transient. The SetTopmost will be change
11581 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
11582 SetTopmost. Now owned forms will work properly in win32 and X11.
11584 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11586 * MdiWindowManager.cs: Update function name.
11587 * Form.cs: After closing a form MdiParent is always null.
11588 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
11589 better what it should do: necessary book-keeping when the form is
11590 closed, it should not close the form itself.
11592 2007-03-19 Andreia Gaita <avidigal@novell.com>
11594 * ListViewItem.cs: Fix back and fore color. The subitems only
11595 use their own colors if they are set, otherwise use the listview's
11596 colors. Don't set default colors on constructor for subitem.
11599 2007-03-19 Mike Kestner <mkestner@novell.com>
11601 * ListView.cs : make box selection for Details views with
11602 FullRowSelect conform to MS behavior when clicking in the "item"
11603 column and clicking outside the defined columns.
11604 [Fixes case 5-6 of #80374]
11606 2007-03-19 Chris Toshok <toshok@ximian.com>
11608 * ScrollableControl.cs: create the controls from within the ctor,
11609 but don't actually add them until our handle is created. this
11610 fixes a NRE possibility jpobst found (if you override OnLayout in
11611 a subclass, it's called before your ctor). Also, add a
11612 IsHandleCreated guard to UpdateSizeGripVisibility as well.
11614 2007-03-19 Jackson Harper <jackson@ximian.com>
11616 * TextBox.cs: Reduce the amount of invalidation we do.
11617 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
11618 some of them are true by default on MS.
11619 - Add some functions to reduce the amount of invalidates we do.
11620 * TextControl.cs: Less invalidation.
11622 2007-03-19 Chris Toshok <toshok@ximian.com>
11624 [ Fixes #81773, and *seems* to fix #81553 as well ]
11626 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
11627 AccumulateDestroyedHandles. We need to do it *after* we send
11628 WM_DESTROY, as the user's code can access Control.Handle in
11629 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
11630 move the WM_DESTROY/zombie handling to before the call to
11631 XDestroyWindow. For some reason without this ordering
11632 FormTest.RecreateHandle hangs. This ordering is semantically
11633 equivalent, however, as XDestroyWindow is async anyway.
11635 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
11637 * RichTextBox.cs: Reset backcolor_set after setting default.
11639 2007-03-19 Chris Toshok <toshok@ximian.com>
11641 * ScrollableControl.cs: the scroll position should not effect the
11642 canvas size. commit patch from georgegiolfan@yahoo.com, which
11643 fixes some really bizarre behavior on resizing. Fixes bug #80778.
11645 2007-03-19 Chris Toshok <toshok@ximian.com>
11647 * ScrollableControl.cs: clean this up a bit. create the
11648 scrollbars in the ctor and just show/hide them as needed. Also,
11649 make hscroll_visible/vscroll_visible internal to Recalculate, and
11650 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
11651 everywhere else. This seems to fix the scrollbars appearing
11652 beneath the content for me (i have *no* idea why that is,
11655 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11657 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
11658 some redundacy for stuff in Anchor and Dock that base will take care of.
11661 2007-03-19 Mike Kestner <mkestner@novell.com>
11663 * ListView.cs : make box selection for Details views without
11664 FullRowSelect dependent on the text bounds, not item bounds.
11665 * ListViewItem.cs : add an internal property to obtain the TextBounds
11666 in Details view. [Fixes case 1-4 of #80374]
11668 2007-03-19 Andreia Gaita <avidigal@novell.com>
11670 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
11671 we're < 2.0. #78448 && #80316
11673 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11675 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
11676 have the same style available as the previously selected one. Also,
11677 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
11679 2007-03-19 Jackson Harper <jackson@ximian.com>
11681 * TextControl.cs: Add an alignment property that all new lines
11683 - Make sure to use the align shift when calculating the line's X
11685 * TextBox.cs: Set the alignment on the document as well as on all
11686 the document lines.
11688 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11690 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
11691 throw if setting the parent of an mdichild that already has an
11692 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
11693 AssemblyProductAttribute in the assembly, use the type's namespace (as
11694 MS seems to do). CreateControl: don't create the handle if the control
11695 is not visible (according to MS behaviour and spec). SetTopLevel: Only
11696 create handle if the control is not a form. Change FocusInternal to
11697 virtual so that it can be overriden by Form.
11698 * TextBox.cs: Update call to FocusInternal.
11699 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
11700 form is not a toplevel form when it's a mdi child, so update is_toplevel
11701 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
11702 hasn't been created. Show (IWin32Window): Don't allow this overload for
11703 toplevel windows. CenterToParent/CenterToScreen/Select: create the
11704 handle as MS does. SetVisibleCore: if called on a MdiChild and the
11705 parent isn't visible yet, save the visibility and restore it when the
11706 parent is made visible.
11707 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
11708 methods, since the visibility of the scrollbars can be changed from
11709 several places, not only from AutoScroll.
11712 2007-03-19 Jackson Harper <jackson@ximian.com>
11714 * RichTextBox.cs: Enable shortcuts by default.
11715 * TextBoxBase.cs: Add conditional shortcuts.
11717 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11719 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
11721 2007-03-19 Chris Toshok <toshok@ximian.com>
11723 [ Fixes bug #80604]
11725 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
11726 swallow the message we're waiting on, instead of delivering it, as
11727 this is only used for the WM_SHOWWINDOW raised from
11728 MapWindow/UnmapWindow, and the message needs to be generated
11729 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
11730 before doing the Map/Unmap. Also make sure that the Hwnd is still
11731 alive after the message has been handled.
11733 *before* the window is shown.
11735 * Control.cs (CreateControl): guard a few more things inside the
11736 if (!is_created) block, as we might end up being called again -
11738 (WmShowWindow): call CreateControl if we're showing the control.
11740 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11742 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
11743 controls without a handle if they have any parent with a handle. In
11744 Dispose add a check whether the handle is created or not before
11745 calling BeginInvoke, this removes the need of the extra disposing
11746 parameter (which was bogus anyway since it didn't prevent the
11747 invoke from happening, it only skipped the check for an existing
11748 handle, meaning that the invoke would call on an inexistent
11751 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11753 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
11754 appears in taskbar.
11756 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11759 - Fixed a problem that dont show help button for messages with 3 buttons.
11760 - Refactory button size and position calculations, now dont use fixed
11761 values, also fixed button sizes (#80043) and form's border space.
11762 - AddButton method created, now all other AddButton methods call this one.
11763 - Some other source code cosmetic changes.
11765 2007-03-18 Jackson Harper <jackson@ximian.com>
11767 * RichTextBox.cs: Don't do this all fonts must match check if
11768 there is only one char selected.
11770 2007-03-18 Jackson Harper <jackson@ximian.com>
11772 * TreeView.cs: ScrollWindow works properly now, so we don't need
11773 to screw around with the scroll area. This fixes some artifacts
11774 when expanding and collapsing.
11776 2007-03-18 Jackson Harper <jackson@ximian.com>
11778 * TextBoxBase.cs: Allow updating the selection position when the
11779 cursor is outside the textarea, but we have a capture.
11780 * TextControl.cs: A special case for when the cursor is outside
11781 the bounds of the TB.
11783 2007-03-18 Jackson Harper <jackson@ximian.com>
11785 * TextBoxBase.cs: Remove image pasting code for now. There is no
11786 way to get an image on the clipboard right now anyways.
11788 * RichTextBox.cs: Use the new RTF Picture class for pictures.
11790 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11793 - Set window properties in constructor intead of on CreateParams.
11794 - Remove topmost from Window ExStyle.
11795 - Set ShowInTaskbar to false.
11796 - Set form border to FixedDialog.
11797 - Some cosmetic changes and remove unneeded comments.
11798 - It fixes itens 2,3 and 4 of bug #80043.
11800 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
11802 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
11803 none was explicitly set. Fixes part of bug #79949.
11805 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
11807 * ToolStripComboBox.cs: Add AutoComplete*.
11809 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
11811 * ToolStripComboBox.cs: Add FlatStyle.
11813 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
11815 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
11816 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
11818 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11820 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
11821 CheckBox.cs, RadioButton.cs, BindingSource.cs,
11822 DataGridColumnStyle.cs: Remove warnings.
11824 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11826 * Menu.cs: MergeMenu: Check menu argument for null before looping over
11828 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
11829 visibility of mdi child forms. FormSizeChangedHandler: update the
11830 maximized size if size has changed while maximized.
11831 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
11832 creating the handle.
11833 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
11834 avoid creating the handle if not created.
11835 * XplatUI.cs: Update debug output.
11836 * XplatUIStructs.cs: Added ToString's for a couple of structs.
11838 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
11840 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
11842 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
11843 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
11844 Implement keyboard shortcuts.
11846 2007-03-15 Everaldo Canuto <everaldo@simios.org>
11848 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
11849 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
11850 ColorDialog and all derived classes.
11852 2007-03-15 Everaldo Canuto <everaldo@simios.org>
11854 [ Fixes bug #79828 ]
11857 - Rename ToolBarButtonInfor to ToolBarItem.
11858 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
11859 - Maintain an array of ToolBarItem, used instead of ToolBarButton
11860 collection to be able add same button more than one time on a toolbar.
11861 - Refactory all properties and methods to use ToolBarItem.
11863 * ToolBarButton.cs:
11864 - Remove all propeties and methods that is now in ToolBarItem.
11865 - Rectangle propery now gets the rectangle from first ToolBarItem to
11866 mimic win32 behavior.
11867 - Size calculation and layout methods also removed.
11869 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
11870 ToolBarItem instead of ToolBarButton to right drawing buttons when
11871 same button/separator was added more than one time to ToolBar.
11873 * ThemeNice.cs: Same as above.
11875 2007-03-15 Andreia Gaita <avidigal@novell.com>
11877 * XplatUIX11.cs: Fire extra MouseMove events right after
11878 MouseDown and MouseUp, emulating win32's <censored> behaviour
11879 for apps that rely on it.
11881 2007-03-15 Jackson Harper <jackson@ximian.com>
11884 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
11885 it is drawn on the controls client window and there is no NC
11887 - Set the background color to gray on 2.0 when we are readonly.
11889 2007-03-15 Chris Toshok <toshok@ximian.com>
11891 [ Fixes bug #81144 ]
11893 * XplatUIX11.cs: implement VirtualScreen independently of
11894 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
11897 2007-03-15 Chris Toshok <toshok@ximian.com>
11899 * Hwnd.cs: add an internal field for the cached_window_state.
11901 * XplatUIX11.cs: cache the window state, invalidating the cache
11902 (and thus re-querying the X server) only when we see an update to
11903 the _NET_WM_STATE property.
11905 2007-03-15 Chris Toshok <toshok@ximian.com>
11907 * BindingSource.cs: get a lot of the unit tests working.
11909 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
11911 * Control.cs: Modify UpdateStyles to store distances when bounds >=
11912 0 instead of just bounds > 0. [Fixes bug #80912]
11914 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
11916 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
11919 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
11921 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
11922 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
11923 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
11924 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
11926 2007-03-15 Chris Toshok <toshok@ximian.com>
11930 * Control.cs: add Ivan's fix for 81101, with a slight modification
11931 - you can set control.Target to null.
11933 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
11935 * ToolStripItem.cs: If our OwnerItem is null, we can't use
11936 HideDropDown, use Hide instead to prevent an NRE.
11939 2007-03-14 Jackson Harper <jackson@ximian.com>
11941 * TextBoxBase.cs: Mess with the creation stuff a little. We need
11942 to calculate the document before the handle is created, in some
11943 cases. (Actually just one case).
11945 2007-03-14 Jackson Harper <jackson@ximian.com>
11947 * TextBoxBase.cs: Need to display the caret after letting the base
11948 wndproc handle the focus methods, because the caret display
11949 methods check the focus state.
11950 - Try to display the caret after updating it's position with SelectWord.
11951 - Don't need to do an immediate update on this recalc, since there
11952 will be an invalidate anyways.
11954 2007-03-14 Jackson Harper <jackson@ximian.com>
11956 * TreeView.cs: Some workarounds so that we can match event order a
11959 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
11961 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
11962 #80803. Avoid NullReferenceException when Control does not have
11963 parent. Fixed different blinkstyle issues. Only subscribe to Tick
11964 event a single time. Only draw error icon when control is created and
11965 visible. Fixes failing unit tests.
11967 2007-03-14 Andreia Gaita <avidigal@novell.com>
11969 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
11970 Selecting events. Fire Leave and Enter events when changing tabs.
11972 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
11974 * TreeView.cs: Add TreeViewNodeSorter.
11975 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
11977 2007-03-14 Chris Toshok <toshok@ximian.com>
11979 * Form.cs: go ahead and remove the RecreateHandles that jpobst
11980 removed earlier and I had him add back it. It turns out metacity
11981 *does* in fact handle the MOTIF_WM_HINTS property changing, it
11982 just doesn't redraw the window titlebar until you resize the
11983 window. This also means we aren't recreating the entire window
11984 hierarchy on X when you change this property. And it looks better
11987 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11990 * ListView.cs: Collecting selection information
11991 is now done in SelectedIndexCollection rather than in
11992 SelectedListViewItemCollection. This is done so we can
11993 have the selection information code in one single place
11994 (virtual mode selection information entirely depends on
11995 SelectedIndexCollection).
11997 2007-03-13 Miguel de Icaza <miguel@novell.com>
11999 * ErrorProvider.cs: Add stubs for ISupportInitialize
12001 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12003 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
12004 in the right order with the right values, from the Checked property,
12005 just as MS does (instead of triggering them from ListView).
12007 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
12009 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12011 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
12012 the correct handler in OnItemCheck method (ItemCheckEventHandler
12013 instead of EventHandler). This used to throw an InvalidCastException.
12015 2007-03-13 Jackson Harper <jackson@ximian.com>
12017 * TextBoxBase.cs: Calculate the document before the handle is
12018 created, so there isn't an extra invalidate called.
12020 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
12022 * Form.cs: Don't set owner in ShowDialog until we are sure
12023 that we aren't going to throw an exception. [Fixes bug #80773]
12025 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
12027 * TreeView.cs: Make it compile.
12029 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12031 * Control.cs: Another place we don't call SizeFromClientSize.
12032 * Form.cs: Another place we don't call SizeFromClientSize.
12035 2007-03-12 Jackson Harper <jackson@ximian.com>
12037 * TreeView.cs: Basically emulating some strangness here with
12038 exanding nodes and setting node positions when windows aren't
12040 - Also attempting to walk the node tree less than previously, and
12041 just use visible order calculations for determining offsets.
12042 - oops made scrolling backwards.
12043 * TreeNode.cs: We need to start nodes with a zero visible order,
12044 because the order calcs are based on the first nodes order.
12046 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12048 * Form.cs: Don't exit the program if RecreateHandle is called on
12051 2007-03-12 Chris Toshok <toshok@ximian.com>
12053 * XEventQueue.cs: remove the use of PostQuitState.
12055 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
12056 WM_QUIT message in GetMessage, return false (and if we're in the
12057 nested WaitForHwndMessage, repost the WM_QUIT message).
12059 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12061 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
12062 or the MaximizeBox properties. [Part of bug #80640]
12064 2007-03-12 Everaldo Canuto <everaldo@simios.org>
12066 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
12069 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12071 * ToolStripItem.cs: Fix some tests I broke by checking Visible
12072 instead of visible.
12074 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
12076 * FileDialog.cs: Use text of File name combobox to determine what
12077 files the user selected. Added tokenizer to parse the file names.
12080 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12082 * Control.cs: We can't call SizeFromClientSize in the constructor,
12083 but we still need to do the same work, so make an internal version.
12086 2007-03-12 Jackson Harper <jackson@ximian.com>
12090 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
12093 2007-03-12 Jackson Harper <jackson@ximian.com>
12095 * TextBoxBase.cs: Now that the handles are being created a little
12096 later, we need to make sure that the document is recalculated when
12097 the handle is created.
12099 2007-03-11 Everaldo Canuto <everaldo@simios.org>
12101 * Theme.cs: GetLinkFont abstract method added.
12104 - Remove CalcTrimRectangle, no longer needed.
12105 - Factor also remove, position issues must be fixed in libgdiplus.
12106 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
12107 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
12108 care about font used to draw links.
12109 - Set TabStop to true when control is "Selectable", control is selectable
12110 when have one or more links. Fixes #80501 (test case is also added).
12111 - Set the LinkArea values after links change, LinkArea values must be
12112 based in first link position and size, a test case was created.
12113 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
12114 the attribute must be true LinkArea.Length > 0. The same was applied to
12117 * ThemeWin32Classic.cs:
12118 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
12120 - Use CPDrawStringDisabled to draw disabled text instead of hard code
12122 - Draw focus rectangle for every parts focused, including parts that
12123 is on another line, its because regions returns various rectangles
12124 and not only one. Needed to mimic W32 look.
12125 - Uses Graphics.Clip to delimite region painted, it mean that now
12126 complete text is passed to DrawString, with this we solve layout
12127 issues without create another text renderer.
12128 - Uses Region.Intersect to fix some flickers problems, now only needed
12129 parts will redrawed.
12130 - This changes fixes #79614 and some other unreported issues, on Linux
12131 some layout problems still remain, the problem is under
12132 MeasureCharacterRanges but it is an libgdiplus bug.
12134 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
12136 * TextBox.cs: Set for foreground color.
12137 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
12138 this is already done in Control.
12140 2007-03-10 Jackson Harper <jackson@ximian.com>
12142 * TextBox.cs: Set the background color, but reset the
12143 backcolor_set flag which is just for the user setting the
12146 2007-03-09 Chris Toshok <toshok@ximian.com>
12148 * Control.cs: really remove the call to XplatUI.SetVisible from
12149 CreateHandle(), like I said I did when I merged the branch.
12151 * BindingSource.cs: implement some more of this stuff.
12153 2007-03-09 Jackson Harper <jackson@ximian.com>
12155 * TextBox.cs: Don't explicitly set our background colors.
12157 * TextBoxBase.cs: Draw readonly text.
12158 - Need to invalidate when backcolor or readonly are changed.
12160 2007-03-09 Jackson Harper <jackson@ximian.com>
12162 * TextBoxBase.cs: Don't set the forecolor until the handle is
12164 - Do not raise OnPaint, and removed some old debug code.
12166 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
12168 * ScrollableControl.cs: Fix mouse wheel scrolling.
12170 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
12172 * Control.cs: Wire up MouseDoubleClick event.
12174 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
12176 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
12178 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
12179 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
12180 item is added. This logic was moved to ToolStrip.OnItemAdded.
12183 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12185 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
12187 2007-03-08 Jackson Harper <jackson@ximian.com>
12189 * TreeView.cs: Show the correct image for selected node (this used
12190 to work, not sure how the code got deleted). Also implemented 2.0 feature
12193 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12196 * ListViewItem.cs: Cache index in items when retrieving them
12199 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
12201 * ToolStripItem.cs: Don't return the explicit_size if we are using
12202 AutoSize. Fixes invalidation issue when user has explicitly set a
12203 size and has AutoSize = true.
12205 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
12207 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
12209 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12211 * DataGridView.cs: Remove event handler from DataView when a
12212 DataTable is used as DataSource.
12214 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
12216 * Control.cs: Create internal setter for client_size to allow it to be
12217 set without triggering resizing code.
12218 * Form.cs: Calculate client_size in constructor, only change client_size
12219 in FormBorderStyle property if Handle has been created.
12220 [Fixes #80574, #80791]
12222 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
12224 * SystemInformation.cs: Add TerminalServerSession.
12226 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12228 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
12231 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12233 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
12234 Handle before we were supposed to. Now checks ActivateOnShow property
12236 * Control.cs: Add internal ActivateOnShow property.
12237 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
12238 for ActivateOnShow.
12239 * Hwnd.cs Remove no longer needed no_activate field.
12241 2007-03-07 Jackson Harper <jackson@ximian.com>
12243 * TreeView.cs: Implement owner draw tree nodes. And a couple more
12245 * DrawTreeNodeEventHandler.cs: Add
12246 * DrawTreeNodeEventArgs.cs: Correct default value.
12248 2007-03-07 Chris Toshok <toshok@ximian.com>
12250 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
12251 to be called before NativeWindow.WndProc. Put the HwndCreating
12252 magic there to hook up our Hwnd's to handles.
12254 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
12256 * DataGridView.cs: Comment out debug code.
12258 2007-03-07 Chris Toshok <toshok@ximian.com>
12260 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
12261 to make the rest of the world happy]
12263 * Control.cs (CreateHandle): there's no need to call
12264 XplatUI.SetVisible here, it's effectively done by
12265 XplatUI.CreateWindow on X now, and always was on windows.
12267 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
12268 shortcircuit out of the loop if we have a message loop running on
12271 [Changelog from merge]
12273 2007-03-05 Chris Toshok <toshok@ximian.com>
12275 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
12276 causes handle creation.
12278 2007-02-28 Chris Toshok <toshok@ximian.com>
12280 * ApplicationContext.cs: Add a flag to make sure we only raise the
12281 ThreadExit event once (ExitThreadCore can be indirectly called
12282 from a few places.) I don't like the additional flag, but it
12283 makes the event ordering/count correct.
12285 * Application.cs (MWFThread.LoopCount): don't use an enumerator
12286 without locking the collection. An enumerator doesn't give us any
12287 protection from modification anyway. Lock the thread hash and
12288 replace the complicated enumerator loop with a foreach.
12289 (Application.CloseForms): make internal so it can be called from
12290 ApplicationContext. This should probably be moved to MWFThread.
12291 (Application.ExitThread): don't call MWFThread.Current.Exit()
12292 here. just call XplatUI.PostQuitMessage. We'll exit the thread
12293 when the runloop exits (in response to WM_QUIT.)
12294 (Application.RunLoop): add a comment (and check) for
12295 context.MainForm being null after setting context.MainForm.Visible
12296 = true. This is because you're perfectly free to dispose of a
12297 form in VisibilityChanged. Chalk this up to another case where we
12298 need to synchronously generate WM_ACTIVATE from Control.Show.
12299 Also, add handling for WM_QUIT here so we'll exit the loop.
12301 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
12302 fact that we don't wait if we're only unmapping the whole_window
12303 makes me a bit nervous, but it doesn't seem to cause any problems
12306 also, add a comment about the stupid, broken and wrong resetting
12307 of PostQuitState to false in GetMessage().
12309 In PostQuitMessage, we need to add a WM_QUIT message to the
12310 thread's queue. We use the FosterParent to get the right
12313 Lastly, in SetVisible, we need to unmap both windows, since the
12314 waiting only happens when we're unmapping the client window. So
12315 now, the *only* time we unmap just the whole_window is in the hack
12316 for resizing a control to 0,0.
12318 2007-02-21 Chris Toshok <toshok@ximian.com>
12320 * Application.cs (CloseForms): rewrite this so that we don't
12321 modify the list while we're traversing it.
12323 2007-02-20 Chris Toshok <toshok@ximian.com>
12325 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
12326 of OnHandleCreated.
12327 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
12328 handle is created. otherwise we'll create it here.
12329 (VerticalScrollEvent): same here.
12331 * Application.cs (CloseForms): call Form.Dispose, don't post
12334 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
12335 here. Application should Dispose() of the Form's.
12337 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
12338 WM_DESTROY as well.
12339 (MapWindow,UnmapWindow): only actually do the waiting for
12340 SHOWWINDOW if the control we're dealing with is a Form.
12341 (CreateWindow): if the control isn't a form, SendMessage
12342 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
12344 * Control.cs (SetVisibleCore): always use is_visible here, not
12345 value. If we use value, we can end up re-setting something
12346 visible if, for instance, you do Control.Hide() in a delegate
12347 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
12349 2007-02-20 Chris Toshok <toshok@ximian.com>
12351 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
12352 the message we need. PeekMessage returning false should not be a
12353 condition under which we exit the loop.
12355 2007-02-15 Chris Toshok <toshok@ximian.com>
12357 * Control.cs (Refresh): only refresh if we've got a handle and are
12359 (CreateAccessibilityInstance): CreateControl() here.
12360 (UpdateChildrenZOrder): complicate the code loop even more by
12361 taking into account controls that haven't had their handle
12362 created, and those that aren't visible. But on the flip side,
12363 simplify the code by splitting it into two loops. one which
12364 builds up the list of child controls we're interested in, and the
12365 other that sets the z order of those children.
12367 2007-02-14 Chris Toshok <toshok@ximian.com>
12369 * Control.cs: Control.AccessibilityObject causes the control to be
12370 created, not just the handle.
12372 2007-02-14 Chris Toshok <toshok@ximian.com>
12374 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
12375 problem on X where a window might have its handle created (and be
12376 visible) while the window is unmapped. calling XConfigureWindow
12377 on an unmapped window is bad, and generates X errors.
12379 2007-02-13 Chris Toshok <toshok@ximian.com>
12381 * Control.cs (CreateHandle): don't loop over our children setting
12382 their parent here. do it when in WndProc when we're shown.
12383 (UpdateChildrenZOrder): make this internal so we can call it from
12385 (WndProc): for WM_SHOWWINDOW, reparent the child control after
12386 creating its handle. Also, remove the calls to PerformLayout from
12387 here. they're done in ScrollableControl.OnVisibleChanged. Also,
12388 OnVisibleChanged only seems to be called directly here for the
12389 toplevel control. It's propagated down the window hierarchy by
12390 calls to child.OnParentVisibleChanged.
12391 (OnVisibleChanged): don't do layout here - it's done (oddly
12392 enough, according to a glance at stack traces on ms.net..) in
12395 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
12396 z order of our children before calling PerformLayout.
12398 2007-02-12 Chris Toshok <toshok@ximian.com>
12400 [big change, fixes #80020]
12402 * AccessibleObject.cs: we need to make owner internal again to fix
12403 some of ControlAccessibleObject.
12405 * Control.cs: lots of changes here. add support for WM_CREATE,
12406 for which we generate OnHandleCreated. Remove the OnHandleCreated
12407 call from CreateHandle. Also add support for WM_SHOWWINDOW where
12408 we create child controls. leave the MonoTODO's for the
12409 accessibility calls, but fix the exceptions so the tests pass.
12411 Add the InvalidOperationExceptions to Invoke methods, and remove a
12412 couple of InvokeInternal methods we aren't using.
12414 Also, add a couple of CreateHandle calls in places where we know
12415 the handles are being created but our code doesn't reference
12418 Make SetVisibleCore call OnVisibleChange if the handle isn't
12419 created. If the handle is created, we rely on XplatUI.SetVisible
12420 generating the event synchronously.
12422 Lastly, make sure we don't use this.Handle inside CreateHandle,
12423 because we can call back into client (and that code can dispose of
12426 * XplatUIStructs.cs: misc/cleanup.
12428 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
12429 although we don't populate the wParam properly.
12430 (CreateWindow): generate WM_CREATE.
12431 (MapWindow,UnmapWindow): make these calls synchronous, at great
12432 performance expense (particularly in the unmap case), to match
12435 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
12437 (set_MdiParent): don't recreate the handle unless it's been
12440 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
12443 * NativeWindow.cs: this is probably the weirdest part of the
12444 patch. We need a way to link up the window being created to the
12445 WM_CREATE message. Since we can only be creating one window at a
12446 time on a given thread, we keep track of a per-thread reference so
12447 we can dispatch it properly. We also need to keep track of the
12448 Hwnd currently being created so that the win32 backend doesn't
12451 * XplatUIWin32.cs: a similar change to the one we made in
12454 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12456 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
12457 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
12458 to draw the menu shortcut string.
12460 2007-03-07 Jackson Harper <jackson@ximian.com>
12462 * TreeNode.cs: Add the 2.0 collapse method.
12464 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12466 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
12468 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12470 * DataGridView.cs: Change DataSource will clear column and row
12471 lists. Call Invalidate() to reflect DataSource change.
12473 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12475 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
12476 and a new row is added to it.
12478 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12480 * DataGridView.cs: Add columns when DataSource is en empty list but
12481 is a System.Data.DataView (from a System.Data.DataTable).
12483 2007-03-06 Andreia Gaita <avidigal@novell.com>
12485 * Label.cs: Implement AutoEllipsis (2.0)
12487 2007-03-06 Jackson Harper <jackson@ximian.com>
12489 * TreeView.cs: Implement 2.0 TopNode setter property.
12490 - Use a local var instead of the skipped_nodes field for computing
12491 how many nodes to skip. Otherwise we won't scroll because the
12492 valuechanged handler checks if skipped_nodes is equal to the new
12494 - Implement 2.0 Sort method.
12495 - Add useless 2.0 DoubleBuffer property
12496 - Implement 2.0 LineColors property. Lets you change the color of
12497 the lines in the tree. Terribly useful for creating non cohesive
12499 - Implement 2.0 image key feature.
12501 2007-03-06 Jackson Harper <jackson@ximian.com>
12503 * TreeView.cs: We can't get the bounds of the nodes before raising
12504 the AfterSelect event, because that event could change the node's
12505 bounds (scrolling, font change, etc).
12507 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12509 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
12510 * Form.cs: Don't recreate handle when creating FormWindowManager, just
12511 update window styles. In CreateParams us VisibleInternal instead of
12512 VIsible to get the actual visible flag set for this form.
12513 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
12514 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
12515 handle the case when the form is already maximized, in which case
12516 it should be restored. Fixes #81043.
12518 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12520 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
12522 2007-03-05 Jackson Harper <jackson@ximian.com>
12524 * TreeViewHitTestInfo.cs: implement.
12526 2007-03-05 Jackson Harper <jackson@ximian.com>
12528 * InternalWindowManager.cs: class status fix.
12530 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
12532 * InternalWindowManager.cs: All windows that have a parent
12533 are confined to their parent when they're being moved.
12536 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
12538 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
12539 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
12541 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12543 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
12544 buttons invisible before deciding which ones should be visible
12545 (fixes minimize/maximize buttons showing up in toolwindows). Remove
12546 an unused variable.
12547 * InternalWindowManager.cs: Remove warning.
12549 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12551 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
12552 to throw an InvalidOperationException is virtual mode is being used.
12554 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12556 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
12557 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
12558 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
12559 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12560 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
12561 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
12563 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12565 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
12566 driver.KeyboardDelay from XplatUI.KeyboardDelay
12567 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
12568 (patch by Sergey Volk)
12570 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12572 * ToolWindowManager.cs: Added, contains logic for
12574 * CreateParams.cs: Add a few helper methods and an
12575 internal variable to know which control the CreateParams belongs
12577 * Control.cs: Call Form.ChangingParent when the
12578 parent is about to be changed.
12579 * XplatUIX11.cs: DeriveStyles (): Set
12580 caption_height for all windows that have captions and are children.
12581 Update to use ToolWindowManager instead of InternalWindowManager
12583 * XplatUIWin32.cs: Set fake window styles for all
12584 windows that have window managers.
12585 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
12586 now duplicated for mdi windows when they are
12587 maximized, first for the buttons the window itself has, then for
12588 the buttons that appear in the menu bar. Makes things a little
12589 easier). Updated UpdateWindowDecorations, SetWindowState and the
12590 mouse eventhandlers accordingly.
12591 * Form.cs: Add ChangingParent (), contains the
12592 logic of what should happen when the parent changes. In MdiParent
12593 don't set things that ChangingParent () is doing. When handling
12594 WM_CLOSE, we can close the form if there are any other modal forms
12595 and the current form is a descendent of the modal form.
12596 * InternalWindowManager.cs: A lot of refactoring,
12597 the title buttons are now extracted to a separate container class
12598 that takes care of all button code (clicks, tooltips, etc). Moved
12599 Iconic|Maximized|Normal Bounds properties to this class from
12600 MdiWindowManager, so that the window state logic can succeed for
12601 other than mdi wm's. Implemented general window state change logic.
12602 Moved CreateButtons to ThemeWin32Classic, since the theme might
12603 override which buttons are available when as well as the exact
12605 * FormWindowManager.cs: Added, contains logic for
12607 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
12608 which buttons go where (and if they are at all visible).
12609 Removed special handling of maximized windows, since they aren't special.
12610 In DrawManagedWindowDecorations don't try to draw the text if it is
12612 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
12613 use whatever the wm gives us.
12615 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12617 * ButtonBase.cs: Add 2.0 properties.
12618 * Button.cs: Override Draw for 2.0.
12619 * Control.cs: Add Entered and Selected properties.
12620 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
12621 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
12622 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
12624 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
12626 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12628 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
12630 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12632 * XplatUIWin32.cs: Register a new class with Windows each time we get
12633 a new ClassStyle. [Fixes bugs #79432, #80817]
12634 * Controls.cs: Set the correct ClassStyle in CreateParams.
12635 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
12637 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
12639 * ListView.cs: Add fireEvent argument to ReorderColumn since the
12640 ColumnReordered event must not be signaled when modifying DisplayIndex
12641 of a ColumnHeader. Added internal ReorderColumns method which takes
12642 care of drawing, and updating the internal DisplayIndex of the
12643 ColumnHeader. Added AddColumn method which is invoked from
12644 ColumnHeaderCollection when adding or inserting columns, and which
12645 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
12646 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
12647 Recalculated dispay indices after removing a ColumnHeader.
12648 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
12649 match MS. Allows last display index to be returned after ListView
12650 is disposed. Update actual location of ColumnHeader when DisplayIndex
12653 2007-03-01 Everaldo Canuto <everaldo@simios.org>
12655 * LinkLabel.cs: Improve CalcTrimRectangle.
12657 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
12659 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12661 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
12662 get rectangle as a result value.
12664 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12666 * LinkLabel.cs: Theres some diferences between rectangle return from
12667 MeasureCharacterRanges and the area used for DrawString to fix this
12668 CalcMeasurementFactor method was created, it calcules the diferences
12669 to be use later to adjust rectangle in draw operations. Fixes #80473.
12671 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
12672 to adjust draw rectangle.
12674 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12676 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
12677 text and some other changes to reduce and optimize source code.
12679 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12681 * RadioButton.cs: Implement 2.0 event.
12682 * RelatedImageListAttribute.cs: Implement new class.
12684 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12686 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
12688 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12690 * CheckBox.cs: Implement 2.0 functionality.
12692 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12694 * ListView.cs: Refactor Add and AddRange methods of
12695 ListViewItemCollection, to not update the ListView
12696 everytime an item is added in AddRange. Also move the update
12697 code to a new CollectionChanged method, and call it
12698 from other methods that need it as well (this should also fix some
12699 bugs when Sorting is used).
12701 2007-02-27 Jackson Harper <jackson@ximian.com>
12703 * TextControl.cs: Try to never let the caret stay in a non-text
12705 * TextBoxBase.cs: Update the caret.
12707 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
12709 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
12710 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
12711 delete POINT structure, duplicate of one in XplatUIStructs.
12712 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
12714 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
12716 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
12717 edit box since otherwise the Label would immediately be set (even if
12718 the user did not modify the label). In OnKeyDown set Handled to true
12719 if Return or Escape was pressed. In ColumnHeaderCollection unlink
12720 columns that are to be removed. In ListViewItemCollection unlink items
12721 that are to be removed.
12723 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
12725 * TextRenderer.cs: If we set a GDI clip region, we need to clear
12726 it when we are done. [Fixes bug #80949]
12728 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12730 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
12732 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12734 * ListView.cs: I forgot to commit the changes for ListView
12735 in my previous patch.
12737 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12739 * Clipboard.cs: Partially implement an overload of SetDataObject.
12740 * Form.cs: Implement ShowWithoutActivation.
12741 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
12743 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12745 This is a first set of changes to make the Virtual mode works,
12746 by avoiding the retrieval of ListViewItem instances until
12749 * ListView.cs: Store item position in the ListView instead of the
12750 ListViewItem, this way we don't request the Bounds property of
12751 ListViewItem inside the ListView calculations, as well as cache the item
12752 size in item_size field. Store indexes instead of ListViewItem
12753 instances in the matrix used by icon view. Add a ItemMatrixLocation
12754 struct to hold the row and col info of the matrix info.
12756 * ListViewItem.cs: Don't store the location anymore, and only cache
12757 the rectangles for GetBounds. Use the ListView.GetItemLocation
12758 method to retrieve the actual location.
12760 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12762 * TextRenderer.cs: Add clipping support, thanks to George.
12765 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12767 * ListViewItem.cs: Cancel label edit when item is removed from
12769 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
12770 event before the edit textbox is displayed. Added CancelEdit method
12771 which is used end to editing while ignoring the value set by the
12772 user. In EndEdit, set focus to ListView to avoid losing focus to
12773 other controls. In ListViewItemCollection.Clear, cancel editing of
12774 any of the items. In Remove, cancel editing of item being removed.
12775 Avoid udplicate code by modifing RemoveAt to invoke Remove.
12777 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12779 * FileDialog.cs: Update FSEntry when move is successful. Fixes
12782 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12784 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
12785 compatible with non X11 systems. Fixes #80901.
12787 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12789 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
12790 whether the item should be unselected and reselect. We do no want this
12791 when we're starting to edit the label. Do not fire the
12792 SelectedIndexChanged event from ListView when its already been fired
12793 by modifying ListViewItem.Selected. Fixes bug #80943.
12795 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12797 * TextRenderer.cs: Previos commit logic was backwards.
12799 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12801 * TextRenderer.cs: Don't add padding on MeasureText if we were
12802 sent the NoPadding flag.
12804 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12806 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
12807 after DrawButton. To prevent image overlaps button borders SetClip and
12808 ResetClip added before and after draw image. Fixes #79129.
12810 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12812 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
12813 window size, it fix problem when you run under win32 that theres
12814 Size diferent than ClientSize. Also fix controls size and positions
12815 to mimic Win32. Fixes #80837.
12817 2007-02-22 Everaldo Canuto <everaldo@simios.org>
12819 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
12820 menu area to fix some problems for non X11 systems. Fixes #80613.
12822 2007-02-22 Jackson Harper <jackson@ximian.com>
12824 * TreeNode.cs: When a node is expanded, set its is_expanded flag
12825 even if it doesn't have any children.
12827 2007-02-22 Jackson Harper <jackson@ximian.com>
12829 * TreeView.cs: Calculate the top node 'on the fly', this
12830 eliminates issues where you need to click on the tree before
12831 scrolling it to get the top node computed correctly.
12832 * TreeNodeCollection.cs: We don't need to mess with the top node
12835 2007-02-22 Jackson Harper <jackson@ximian.com>
12837 * DataGridViewRow.cs: Fix typo so height can actually be set.
12838 Patch by Peter Grimm.
12840 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12842 * FileDialog.cs: Fixed support for renaming files and directories.
12843 * ListView.cs: Do not lose focus when edit is canceled. Process
12844 Escape as regular key (to prevent closing of dialogs).
12846 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12848 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
12849 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
12851 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12853 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
12854 did not modify label.
12855 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
12856 modified the text. Reset Label when user presses Escape in edit mode.
12857 Move focus to ListView after having cancelled or finished editing the
12860 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
12862 * ComboBox.cs: Removed unnecessary initializations. Marked items field
12863 private. Clear textbox when Text is set to null and SelectedIndex is
12865 * FileDialog.cs: Removed unnecessary initializations. Removed
12866 workarounds for ComboBox bugs that are now fixed. Modified
12867 DefaultExt, InitialDirectory and Title property to change null to
12868 zero-length string in getters. Avoid directly accessing fields.
12870 2007-02-20 Jackson Harper <jackson@ximian.com>
12872 * TextControl.cs: Remove RecalAlignments call, that was some
12873 debugging leftovers.
12874 - Don't use the line indent when we shouldn't.
12875 * RichTextBox.cs: Add support for paragraph left indents.
12877 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12879 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
12880 Seems like the class status pages doesn't catch params differences.
12882 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
12884 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
12886 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
12888 * ComboBox.cs: Setting Text should have no effect if item text of
12889 selected item exactly matches value. First lookup text using
12890 case-sensitive comparison, and fallback to case-insensitive comparison.
12891 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
12892 allow startIndex to be last index. Changed ArgumentOutOfRangeException
12893 paramname to match MS. Restart from first item if string is not found
12894 after startIndex. Fixed paramname of ArgumentNullException that is
12895 thrown for null value in ObjectCollection.Contains.
12897 2007-02-19 Everaldo Canuto <everaldo@simios.org>
12899 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
12901 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12903 * ListControl.cs: In SelectedValue use value.Equals to compare for
12904 equality instead of ==, otherwise it will fail for strings.
12907 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12909 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
12910 since the caret won't show up unless ShowSelection is true.
12913 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12915 * Application.cs: When disabling all forms but the main form, do not
12916 disable any descendants of the main form (such as mdi children or
12917 other parented forms). Fixes #80822 on Windows.
12918 * Form.cs: If we have a parent, set the WS_CHILD style.
12919 * Control.cs: Update the window styles if the control whose parent has
12920 changed is a form (the WS_CHILD style has to be switched).
12922 2007-02-19 Everaldo Canuto <everaldo@simios.org>
12924 * XplatUIStructs.cs: MsgUIState structure added.
12926 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
12928 * FileDialog.cs: Removed need for separate fileName field. On 2.0
12929 profile, do not check filename(s) for illegal character if filename(s)
12930 were set non-interactively but always check on 1.0 profile. Fixed NRE
12931 in DefaultExt and only strip off first leading dot. Improve exception
12932 message when invalid Filter is set. Do not ignore InitialDirectory if
12933 it does no exist. Store specified Title, and if empty use default
12934 title (depending on type of dialog). Added an internal DialogTitle
12935 property for retrieving dialog title. Fixed logic of displayed dir to
12936 more closely match MS. Avoid setting ComboBox.Text to a zero-length
12937 string as its buggy.
12938 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
12939 FileName is a zero-length string (it can never be null). Override
12940 DialogTitle property to set default title of dialog box.
12941 * SaveFileDialog.cs: Override DialogTitle property to set default
12942 title of dialog box.
12944 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
12946 * FileDialog.cs: Modify default text of filename and filetype labels
12947 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
12948 after we've updated the SelectedIndex. Fixes part of bug #80887.
12949 * SaveFileDialog.cs: Set text of filetype label.
12951 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12953 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
12954 label field. Needed by latest Jackson's fixes for ListView.
12956 2007-02-16 Andreia Gaita <avidigal@novell.com>
12958 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
12959 print preview images.
12961 2007-02-16 Jackson Harper <jackson@ximian.com>
12963 * ListView.cs: Make AfterLabelEdit work correctly.
12964 * FileDialog.cs: After changing the name of the folder, we have to
12965 make sure that it is created, or that we pop up an error because
12968 2007-02-16 Jackson Harper <jackson@ximian.com>
12970 * X11Dnd.cs: Implement aliases on mime handlers, so things like
12971 System.String are mapped to text.
12972 - Handle dataobjects, getting all the possible formats out of them
12973 - We dont need the drag event args before we give feedback. This
12974 allows feedback cursors to be immediate before selections have
12977 2007-02-16 Jackson Harper <jackson@ximian.com>
12979 * TextBoxBase.cs: Modified the method for inserting images to
12980 taking a line and position instead of tag and position.
12981 * RichTextBox.cs: Handle PngBlip data by inserting the png image
12983 * TextControl.cs: Allow images to be inserted as the first tag of
12985 - Fix some off by one issues when we assume the first tag is a
12986 text tag, not an image tag.
12988 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12990 * ListView.cs: Set focus to ListView when ItemControl gets a
12991 WM_RBUTTONDOWN message, to mimic .Net behaviour.
12992 Fixes part of #80467.
12994 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
12996 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
12997 validate Text input (if null or empty string reset Value to default
12998 value). Fixes #80830.
13000 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13002 * ListView.cs: Set owner as null for columns and items when
13003 Dispose is invoked. Fixes #80607.
13005 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
13007 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
13008 showing DropDowns, don't show a Grip when doing Flow layout.
13009 [This fixes the toolbox in PDN 2.72.]
13010 * ToolStripItem.cs: Add Anchor property and some internal properties to
13011 reduces needed changes to FlowLayout.
13012 * ToolStripOverflow.cs: Remove unused variable.
13013 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
13014 use it in the layout calculations.
13016 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13018 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
13019 reported in #79640.
13021 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
13024 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13026 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
13027 MeasureString format, it can make button very large in some cases, it is
13028 strange but is what win32 do.
13030 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13032 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
13035 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
13036 rendering, the value is based on MenuAccessKeysUnderlined.
13038 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13040 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
13043 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
13045 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
13046 and use MenuAccessKeysUnderlined instead.
13048 2007-02-13 Andreia Gaita <avidigal@novell.com>
13050 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
13051 A selected control would not get a Focus call if:
13052 - the default active control of the container is the same as
13053 the one that was selected
13054 - we are switching from one container to another
13055 Under these conditions, the container being selected already has
13056 an active_control, which is the same as the one being activated,
13057 so set_ActiveControl would always return and not send the Focus
13058 call. Fix to check if the currently active control of the container
13059 is actually focused.
13061 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
13063 * StatusStrip.cs: Implement the spring layout.
13064 * ToolStripControlHost.cs: Make sure the hosted control's visibility
13065 always matches the host.
13066 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
13067 and TextAfterImage.
13069 2007-02-13 Andreia Gaita <avidigal@novell.com>
13071 * Control.cs: Code reorganization only.
13072 - Reorganize the WndProc cases so that each case has it's own handling method,
13073 to help with the no-line-numbering stack traces.
13074 - Formatting changes (it's vstudio's fault, really :p)
13076 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
13078 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
13079 Thread.CurrentUICulture to match DateTimePicker's (and MS)
13082 2007-02-12 Jackson Harper <jackson@ximian.com>
13085 * TextBox.cs: By default we have a non multiline document
13086 - use the multiline property instead of the internal variable
13087 * TextBoxBase.cs: Treat multiline and non multiline the same in
13089 - Use the documents multiline flag instead of tracking it ourself
13090 * TextControl.cs: Attempt at getting multiline to match MS
13091 behavior. Lines now track an offset, which is either their X or Y
13092 offset depending on whether or not we are in multiline mode.
13093 - Update all the methods to understand that lines have an X value.
13094 - Fix crash in Undo::Duplicate when empty lines are deleted.
13096 2007-02-12 Everaldo Canuto <everaldo@simios.org>
13098 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
13099 code moved to properties PreferredHeight and PreferredWidth. It solve the
13100 all problems when preferred sizes must be recalculated. Fixes #80801.
13102 2007-02-12 Everaldo Canuto <everaldo@simios.org>
13104 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
13105 font height when compatible_text_rendering is false. Partially fix #80801.
13107 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13109 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
13111 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13113 * Form.cs: Improved exception messages in ShowDialog.
13115 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13117 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
13118 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
13119 if not set. Fixes bug #80764. Avoid accessing current_settings field
13122 2007-02-08 Everaldo Canuto <everaldo@simios.org>
13124 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
13127 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
13128 public in 2.0 and for easy maintenance and dont break compatibility it is
13131 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13133 * ToolStripItem.cs: Implement using images from ImageList.
13135 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13137 * DateTimePicker.cs: Change default date-formatting culture from
13138 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
13139 seems to be the way MS does it.
13141 2007-02-08 Andreia Gaita <avidigal@novell.com>
13143 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
13144 (the 6 was cut off on the right side)
13146 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13148 * Form.cs: Tell MenuStrips to close when the form is clicked.
13149 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
13150 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
13151 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
13152 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
13153 support for Overflow, where items that do not fit are automatically
13154 reparented to a drop down menu.
13155 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
13156 Also: fixes bug #80747.
13158 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13160 * ComboBox.cs: Remove warning (unused code).
13161 * ScrollableControl.cs: Remove warning for 1.1 profile.
13163 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13165 * Form.cs: Remove a warning.
13167 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13169 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
13170 'g' specifier, not documented anywhere, but seems to always show up
13171 as a single space (might have something to do with the DateTime 'g'
13172 specifier, which is the era format, but since DateTimePicker can't
13173 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
13174 won't crash if the format has an unmatched quote. Now shows
13175 single-character formats correctly. Fixes #80744.
13177 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13179 * StatusStrip.cs: Stretch property needs to call base.Stretch,
13180 not this.Stretch to fix stack overflow. [Fixes bug #80760]
13182 2007-02-07 Chris Toshok <toshok@ximian.com>
13184 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
13185 background color. it overwrites the background image we've
13186 already painted. Fixes #80599.
13188 2007-02-07 Chris Toshok <toshok@ximian.com>
13190 * DataGrid.cs: return immediately from Edit() when there are no
13191 columns. Fixes #80662.
13193 2007-02-07 Chris Toshok <toshok@ximian.com>
13195 * MessageBox.cs: fix #80625. don't always show the Help button in
13196 2.0. use the displayHelpButton parameter to determine if we
13197 should show it. Also, make the internal show_help field private.
13199 2007-02-07 Chris Toshok <toshok@ximian.com>
13201 * Control.cs (SetVisibleCore): check in the proposed patch for
13202 80604, and set is_visible before calling CreateControl.
13204 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
13206 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
13207 MonoInternalNote. This is added automagically by VS2005, so let's not crash
13210 2007-02-06 Everaldo Canuto <everaldo@simios.org>
13212 * MenuAPI.cs: hotkey_active internal field added, it is required because
13213 we need to know when hotkeys must be draw, before this change a keystate
13214 Navigating was used but we can have menu in navigating state without
13215 hotkeys. Fixes #80694.
13217 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
13219 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13221 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
13222 corresponding events and methods to be internal for 1.1 profile and
13223 public for 2.0 profile (required by SizeGrip).
13224 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
13225 implicit control list). Don't set the size nor the location of the
13226 SizeGrip anymore as it's not needed.
13227 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
13228 draw directly on the captured control (fixes #80656). Removed
13229 ShowGrip (it wasn't used anywhere), redraw (always true), added
13230 GetDefaultSize and GetDefaultRectangle to calculate defaults.
13231 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
13232 be called from SizeGrip.
13234 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13236 * Timer.cs: Throw ArgumentException if Interval <= 0.
13238 2007-02-05 Jackson Harper <jackson@ximian.com>
13240 * TreeView.cs: We need to check scrollbar visibility when window
13241 visibility is updated, because non visible trees don't ever add
13243 * Cursor.cs: We want the override cursor to be reset to NULL when
13244 we set current cursor to the default cursor.
13246 2007-02-05 Jackson Harper <jackson@ximian.com>
13248 * TextControl.cs: Don't have crlfs when we are non multiline.
13249 - Consolidate the line position.
13251 2007-02-05 Jackson Harper <jackson@ximian.com>
13253 * X11Keyboard.cs: BACK+CTRL gets a special char code.
13255 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13257 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
13258 handling LeaveNotify->NotifyUngrab in order to send
13259 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
13260 after calling XUngrabPointer, so we call WindowUngrabbed directly
13261 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
13262 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
13263 MouseCaptureChanged correctly. Also create handles if changing
13264 Capture (matches MS behaviour).
13266 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13268 * SizeGrip.cs: Make the last change 2.0 only.
13270 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13272 * SizeGrip.cs: If resizing and the capture is lost, revert any size
13273 changes to initial size (fixes #80597).
13275 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13277 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
13279 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13281 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
13282 background) and only allow dragging if enabled. This way the
13283 sizegrip can be used to fill the open square that otherwise would
13284 have been shown in the bottom right corner of ScrollableControl
13285 when ScrollableControl is not suppose to support sizing.
13286 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
13287 sizegrip is shown and enabled, and hook up with necessary events.
13289 2007-02-01 Chris Toshok <toshok@ximian.com>
13291 * DataGridTextBoxColumn.cs: clean up the
13292 GetFormattedString/GetColumnValueAtRow combination of functions.
13293 Also fix UpdateUI, and the initial state of
13294 IsInEditOrNavigateMode.
13296 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
13297 aren't supposed to scroll the textbox here, we're supposed to
13298 scroll the datagrid.
13300 2007-02-01 Chris Toshok <toshok@ximian.com>
13302 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
13303 setting the position.
13305 2007-02-01 Chris Toshok <toshok@ximian.com>
13307 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
13308 here, since the most recent focus fixes keep us from generating
13309 the Leave event when our textbox gets focus.
13310 (Edit): we should be passing null for the column style's
13311 instantText parameter.
13313 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
13315 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
13316 raised. Fixes menu text/icons not showing up in PDN.
13318 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
13320 * Control.cs: Remove code in constructor that makes every
13321 control with WS_CHILD set have initial location -1, -1.
13323 2007-01-31 Jackson Harper <jackson@ximian.com>
13325 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
13327 * XplatUIX11.cs: Give teh keyboard to teh dnd.
13329 2007-01-31 Jackson Harper <jackson@ximian.com>
13331 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
13332 - Remove some debug code.
13334 2007-01-31 Jackson Harper <jackson@ximian.com>
13336 * XplatUIX11.cs: If you set the override cursor during a grab, it
13337 should actually override the grab cursor. This comes into play
13338 when you are setting custom cursors in a DND feedback method.
13340 2007-01-31 Jackson Harper <jackson@ximian.com>
13342 * X11Dnd.cs: Add support for handling the QueryContinue and
13343 GiveFeedback events.
13344 - Cancel drag and drop actions when the escape key is clicked.
13345 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
13346 can handle the ESCAPE key.
13347 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
13348 done when dnd events are continued after the button is released.
13349 - Add a new helper method so that dnd can translate key events.
13351 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
13353 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
13354 make it more obvious what is happening.
13356 2007-01-30 Jackson Harper <jackson@ximian.com>
13358 * XplatUIX11.cs: Don't break when handling button release in drag
13359 and drop operations. We need that BUTTONUP message to get through
13360 so capture is released.
13361 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
13362 this is handled automatically when the mouse is down.
13364 2007-01-30 Jackson Harper <jackson@ximian.com>
13366 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
13367 is closed, so we need to make sure that we aren't changing the
13368 dialog result when the OK (Open or Save) button has been clicked
13369 and we are closing the window ourselves. Note we don't need to
13370 worry about the cache being written in this case, because it was
13371 already done in the previous FilOk call.
13373 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13375 * DateTimePicker.cs: Remove a warning.
13376 * ComboBox.cs: Remove a couple of warnings.
13378 2007-01-29 Chris Toshok <toshok@ximian.com>
13380 * XplatUIX11.cs: don't crash, and remove the icon if the user has
13381 set one, if SetIcon is passed a null icon.
13383 2007-01-29 Andreia Gaita <avidigal@novell.com>
13385 * TextBox.cs: Redraw when the password characters changes
13386 * TextControl.cs: Check if textbox has a password char and draw
13387 a line of password chars instead of the text in the line. LineTag gets
13388 an extra Draw() method which allows document.Draw to override the text
13389 that will be drawn. Removes 1024 char limitation on length of passworded
13392 2007-01-29 Jackson Harper <jackson@ximian.com>
13394 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
13395 single chars is not.
13397 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
13399 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
13400 one pixel. Fix a StackOverflowException caused by an overload wrongly
13403 2007-01-26 Everaldo Canuto <everaldo@simios.org>
13405 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
13406 also remove ProcessArrowKey and put the code inside ProcessKeys.
13408 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
13410 * PaddingConverter.cs: Added.
13412 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13414 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
13415 ShowPanels is false (fixes #80600). Only draw up to 127 characters
13416 of text (fixes #80601). For panels clip the text to draw to the
13417 panel (fixes #80603).
13419 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13421 * ComboBox.cs: Fixed implementation of ResetText.
13423 2007-01-25 Jackson Harper <jackson@ximian.com>
13425 * TextControl.cs: For the last char of a line we need to use the
13426 line size, not that chars width, since it won't actually be
13427 computed since the right side of a char is based on the start of
13428 the left side of the next char, and the next char does not exist.
13430 2007-01-25 Chris Toshok <toshok@ximian.com>
13432 * Splitter.cs: fix the new unit tests, and reindent some switch
13435 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13437 * ComboBox.cs: Implemented 2.0 methods and events.
13438 * TextBoxBase.cs: Added OnTextUpdate, so that
13439 ComboBox.ComboTextBox can inform ComboBox of it.
13441 2007-01-25 Jackson Harper <jackson@ximian.com>
13443 * TextControl.cs: Respect ShowSelection when deciding whether or
13444 not to display the caret, this allows comboboxes to have carets
13445 when the combotextbox does not have focus.
13447 2007-01-25 Jackson Harper <jackson@ximian.com>
13449 * TextControl.cs: Add a Suspend/Resume for updating, basically the
13450 same as the Suspend/Resume for recalc, except this will do actual
13452 - New Undo manager, works much like the MS version.
13454 * TextBoxBase.cs: The Cut operation is undoable.
13456 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13458 * TextBoxBase.cs: Don't antialias text. Makes it look way better
13459 on Windows (no difference on Linux).
13461 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13463 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
13464 we don't want to activate any windows. Fixes #79433.
13466 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
13468 - ButtonBase.cs: Fix capitalization of parameter: disposing.
13471 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
13474 - Move to using System.ComponentModel.EventHandlerList
13475 - Replace Refresh with Invalidate
13476 - Clear the mime filecache on closing
13477 - Some other memory reducing work. After beeing closed FD now uses
13478 only about 300 KB for the fdo mime stuff plus the memory of the
13480 * Mime.cs: Changed coding style and removed unnecessary commented
13481 code. Some more memory memory reducing work.
13483 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13485 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
13486 a few other missing 2.0 properties.
13487 * Theme.cs: Added DrawFlatStyleComboBox.
13488 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
13490 2007-01-24 Chris Toshok <toshok@ximian.com>
13492 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
13493 wake_waiting flag, not just when there's data to be read. if we
13494 don't, then future wakeup's won't reach us and we'll be doomed to
13495 wait for the entire 1 second timeout forever (unless there are X
13498 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13500 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
13501 until you pass Items.Count, not Items.Count - 1 like 1.1.
13503 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
13505 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
13507 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13509 * ToolStripContainer.cs: The recent Dock fix exposed that I was
13510 adding the panels in the wrong order.
13512 2007-01-24 Jackson Harper <jackson@ximian.com>
13514 * TextBoxBase.cs: When we move the caret we also need to move the
13515 selection, this fixes some random crashing after doing select
13516 text, unselect, delete a char, paste.
13518 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13520 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
13522 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13524 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
13525 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
13526 * ToolBar.cs: Force redraw in BackgroundImageChanged.
13528 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13531 - Implement support for vertical toolbars. Fixes #80539;
13532 - Call LayoutToolBar when resize, it fix some other problems in layout.
13533 - Rename requested_height to requested_size, as we can have width on it
13534 when toolbar is vertical.
13535 - Create a private property "Vertical" that uses Dock to verify when
13536 toolbar is vertical or not.
13537 - Set ControlStyles when change Dock property.
13538 - Refactory in LayoutToolBar to have better variables names and to support
13540 - Fixes default value for ButtonSize when button count is equal zero, size
13541 must be (39, 36) test case writed.
13543 2007-01-23 Chris Toshok <toshok@ximian.com>
13545 * Control.cs: fix the checks so that they work correctly for mdi
13548 2007-01-23 Chris Toshok <toshok@ximian.com>
13550 * Control.cs: ControlCollection seems to have super-secret
13551 abstraction breaking knowledge of Mdi containers. allow MdiClient
13552 to add toplevel controls.
13554 2007-01-23 Chris Toshok <toshok@ximian.com>
13556 * Control.cs: throw an ArgumentException if a toplevel control is
13557 added to our control collection from ControlCollection.Add, as
13558 well as from ControlCollection.IList.Add. This fixes the
13559 ControlSetTopLevelTest.TestTopLevelAdd unit test.
13561 Also, in ControlCollection.IList.Add, don't through an
13562 ArgumentNullException, throw an ArgumentException, when value ==
13563 null. This matches MS.
13565 2007-01-23 Chris Toshok <toshok@ximian.com>
13567 * BindingSource.cs: initial, incomplete, implementation of
13570 2007-01-23 Jackson Harper <jackson@ximian.com>
13573 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
13574 that I can fix a broken unit test (TextBoxTest::ClearUndo)
13576 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13578 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
13580 2007-01-23 Andreia Gaita <avidigal@novell.com>
13582 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
13583 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
13584 IndexOfKey() for 2.0
13586 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
13588 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
13589 to prevent it from changing z-order.
13590 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
13591 leave UI updates in MdiWindowManager.
13592 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
13593 1 sized (NC handling goes weird on Linux otherwise).
13594 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
13595 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
13596 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
13597 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
13598 and SetWindowState(s) to allow for changing the size of an activated child
13599 before activating it (reduces a lot of flicker).
13601 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13603 * Form.cs: Changing FormBorderStyle has different semantics based
13604 on whether the Form is visible or not. If not visible, don't change
13605 the Size. But InvalidateNC needs to be called to force the window
13606 to pick up the changes and redraw itself. [Fixes bug #80574]
13608 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13611 * ContainerControl.cs: ProcessCmdKey.
13612 * ErrorProvider.cs: new constructor.
13613 * Form.cs: fix AutoValidateEvent compiler warning.
13614 * Label.cs: fix OnAutoSizeChanged compiler warning.
13615 * MenuStrip.cs: fix CanOverflow compiler warning.
13616 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
13617 * TextBox.cs: Dispose.
13618 * ToolStrip.cs: CanOverflow, re-enable double buffering.
13619 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
13620 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
13621 * ToolStripItem.cs: Overflow, RightToLeft properties.
13623 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13625 * Form.cs: Move the layout of the main form to MdiWindowManager.
13626 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
13627 do a layout of the main window to update MdiClient's client area to
13628 the right area. Fixes #80533. Remove the calculation of nc size,
13629 it was just wrong and the correct one is the same as for
13630 InternalWindowManager.
13632 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
13634 * Control.cs: Setting Anchor or Dock needs to reset the other
13635 to its default. [Fixes bug #80556]
13637 2007-01-20 Chris Toshok <toshok@ximian.com>
13639 * CheckedListBox.cs: class status changes.
13641 * ScrollableControl.cs: same.
13643 * RichTextBox.cs: same.
13645 * ContainerControl.cs: same.
13647 * ListView.cs: same.
13649 * NotifyIcon.cs: same.
13651 * MenuStrip.cs: same.
13653 * RadioButton.cs: same.
13655 * CheckBox.cs: same.
13657 * PrintPreviewDialog.cs: same.
13661 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
13663 * TreeNode.cs: Apply Alan's patch for Name property.
13665 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13667 * Form.cs: Implemented SizeGripStyle.
13668 * SizeGrip.cs: Check for minimum and maximum size for the
13669 control being resized and only resize if size has actually
13672 2007-01-19 Chris Toshok <toshok@ximian.com>
13674 * DataGridColumnStyle.cs: stop setting _readonly in the
13675 PropertyDescriptor setter. fixes a unit test failure.
13677 also, rename ParentReadOnly to TableStyleReadOnly, and have it
13678 just consult our table style (if we have one). We don't need to
13679 consult the datagrid readonly attribute because that's passed in
13680 as the _ro arg to Edit. this simplifies things a little.
13682 * DataGrid.cs: use CurrentColumn instead of
13683 current_cell.ColumnNumber just to simplify some of the code.
13685 switch the order of some things in the CurrentCell setter to keep
13686 the previous cell from getting a textbox again -
13687 EnsureCellVisibility causes scrolling to happen, which calls Edit.
13688 So we need to set the new cell before calling it.
13690 call Edit in OnEnter, as does Microsoft.
13692 also, make sure the current table style isn't the one we create
13693 initially when checking to see if it's different than the one
13694 we're setting it to in BindColumns (this fixes #80421).
13696 * GridTableStylesCollection.cs: table styles can have "" for a
13697 mapping name. part of the fix for #80421.
13699 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
13700 Edit significantly.
13702 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13704 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
13705 and less GDI object leaky-er.
13707 2007-01-18 Andreia Gaita <avidigal@novell.com>
13709 * LinkLabel.cs: Add opaque control style
13711 2007-01-18 Jackson Harper <jackson@ximian.com>
13713 * TextControl.cs: Calculate width properly.
13714 - Don't store the tag's X offset, this can be figured out very
13716 - When getting the caret tag make sure to get the last empty tag.
13718 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13720 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
13723 * Control.cs: Color.Empty shouldn't count for previous transparent
13726 2007-01-18 Jackson Harper <jackson@ximian.com>
13730 * TextControl.cs: Starting to merge in some pieces of my older
13731 undo work. Basically just some slight cleanup of the undo API.
13733 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13735 * TrackBar.cs: Fix signature of RightToLeftLayout.
13736 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
13737 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
13738 * Application.cs: Implemented UseWaitCursor.
13740 2007-01-18 Jackson Harper <jackson@ximian.com>
13742 * TextControl.cs: We can't skip tags if any part of the tag is
13745 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13747 * ContainerControl.cs: Override OnLayout.
13749 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13751 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
13753 * ContextMenuStrip.cs: Make sure context menu is shown on top of
13756 2007-01-18 Chris Toshok <toshok@ximian.com>
13758 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
13759 (leftover from the container_selected days, I'd wager). fixes bug
13762 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13764 * Control.cs: Apply patch from George to fix the new testcase on
13765 bug #80451. We can't just check for Color.Transparent, we need
13766 to check if the back color's alpha channel is < 255.
13768 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13770 * Form.cs: Move setting show_icon = true to before the constructor
13771 so that the base constructor has that information when it calculates
13772 the form's size. Was causing forms to be (6, 6) bigger than they
13773 were supposed to be. Thanks for catching this Rolf!
13775 2007-01-18 Jackson Harper <jackson@ximian.com>
13777 * TextControl.cs: When replacing a selection we need to invalidate
13778 from the initial selection start, because selection start is moved
13779 to the end of the replacement.
13781 2007-01-18 Andreia Gaita <avidigal@novell.com>
13783 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
13785 2007-01-18 Chris Toshok <toshok@ximian.com>
13787 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
13790 2007-01-17 Everaldo Canuto <everaldo@simios.org>
13792 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
13793 layout methods and properties from ToolBarButton must be available
13794 into ToolBarButtonInfo.
13796 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13798 * Control.cs: If the control has a transparent background, we
13799 need to refresh it when it moves and when it's parent's background
13800 image changes. [Fixes bug #80451]
13802 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13804 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
13806 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13808 * XplatUIWin32.cs: Implement proper double buffering for Windows.
13809 [Fixes bug #80447, and probably speeds up things as well]
13811 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13813 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
13814 * XplatUIWin32.cs: We need to recalculate NC size after changing
13815 window style to toolwindow (otherwise the client rectangle will be
13816 3 pixels to small for some reason).
13817 * MdiWindowManager.cs: Revert NC size calculations to match how
13818 they are calculated only based on window styles (to match
13819 Win32AdjustWindowRectEx, since otherwise when setting size or
13820 location, Control will call Win32AdjustWindowRectEx to update client
13821 size, which would provoke a paint, then we'd get a NCCALCSIZE and
13822 calculate a different value of client size causing another paint
13824 * InternalWindowManager.cs: When moving or resizing a window only
13825 update size or location if they actually changed.
13826 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
13827 (seems to match Windows behaviour better). Cleaned up
13828 ManagedWindowDecorations to draw what's needed and nothing else
13829 (was drawing borders and lines where they shouldn't be)
13830 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
13831 (style = 0xFFFF) and takes into account caption height when
13832 calculating window rectangle.
13834 2007-01-16 Everaldo Canuto <everaldo@simios.org>
13836 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
13837 can be added to toolbar multiple times, we need to maintain a list of
13838 button information for each positions.
13840 2007-01-16 Everaldo Canuto <everaldo@simios.org>
13842 * ToolBar.cs: Some small stetic changes.
13844 2007-01-16 Jackson Harper <jackson@ximian.com>
13846 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
13847 that allow us to have nested recalc = false blocks.
13848 - Add paste support for images in the RichTextBox
13849 * RichTextBox.cs: flush the text after the color is changed, so
13850 the change takes effect.
13851 - Use SuspendRecalc
13852 - Some extra debugging info
13853 * TextControl.cs: Tags no longer track their length, it is just
13854 computed from the next tags length, this makes things a little
13855 simpler and reduces places that we have to track length changes.
13856 - Refactored the linetag class a little so we could make it
13857 a base class for different kinds of tags
13858 - Created a image tag, a tag that can have a single image inserted
13860 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
13861 that we can call suspend multiple times.
13862 - Add some debugging methods
13864 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13866 * MdiClient.cs: Add ActivatePreviousChild for
13867 mdi child window navigation.
13868 * Form.cs: Use MdiClient.ActivateNextChild/
13869 ActivatePreviousChild instead of Form.SelectNextControl
13870 to select the next/previous child since
13871 SelectNextControl doesn't do it in the same order
13872 as mdi children should do it.
13874 2007-01-16 Chris Toshok <toshok@ximian.com>
13876 * Control.cs: remove container_selected field.
13878 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13880 * MdiClient.cs: Update main form's ActiveChild when
13881 updating keyboard focus for the mdi child.
13883 2007-01-16 Jonathan Pobst <jpobst@novell.com>
13885 * Control.cs: PreferredSize fix.
13887 * Form.cs: Add several 2.0 events, properties, and methods.
13889 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
13891 * Form.cs: Provide meaningful message when MdiParent is assigned a
13892 Form that is not an MdiContainer.
13894 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13896 * MdiClient.cs: Update main form's ActiveChild when
13897 activating a mdi child.
13899 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13901 * MdiWindowManager.cs: Fix NRE when merging menus and main form
13902 doesn't have a menu.
13904 * Form.cs: Request NCRecalc after creating a mdi child window.
13905 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
13906 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
13908 * MdiClient.cs: Add new method SendFocusToActiveChild that either
13909 sends keyboard focus to the active child, or to the MdiClient
13910 if there are no child forms.
13912 2007-01-15 Chris Toshok <toshok@ximian.com>
13914 * ListView.cs: drop the *Internal overrides, just do our work in
13915 ItemControl's WndProc instead.
13917 * UpDownBase.cs: a few large changes. Fix up the Selectable state
13918 of the various controls, and forward the events properly (in the
13919 same manner as MS) from the textbox to the UpDown. Also the
13920 ActiveControl of the UpDownBase gets set properly now. Finally,
13921 we don't call UpdateEditText from the ctor. Fixes bug #79957.
13923 * NumericUpDown.cs: set Text in the ctor.
13925 * DomainUpDown.cs: call UpdateEditText in the ctor.
13927 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
13928 so even a Selectable = false textbox can be focused if you click
13931 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
13932 just add their handling in their respective WndProc's. Also add
13933 an explicit FocusInternal method that doesn't consult CanFocus
13934 before calling Select(this).
13936 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
13937 do our work in WndProc instead.
13939 * TabControl.cs: same.
13941 * ComboBox.cs: same.
13943 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13945 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
13948 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13951 * ThemeWin32Classic.cs: Don't draw the item text outside
13952 item bounds in Details view, as well as use trimming.
13955 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13957 * Form.cs: Implement Form.ShowIcon.
13959 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
13960 null, which when combined with the DlgModalFrame window style removes
13961 the icon from the title bar.
13963 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13965 * Control.cs: Call OnMouseClick after OnClick. (2.0)
13967 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13969 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
13970 menu when mdi child windows theres a menu, uses insert to get icon
13971 at first position. Partially fix #80006.
13973 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13975 * Clipboard.cs: Implement 2.0 methods.
13977 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13979 * Menu.cs: Implement Insert method of MenuItemCollection class
13982 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13984 * ListView.cs: Implement 2.0 FindItemWithText method.
13986 2007-01-11 Everaldo Canuto <everaldo@simios.org>
13988 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
13989 to calculate menu bar size. Fixes #80290.
13991 2007-01-11 Everaldo Canuto <everaldo@simios.org>
13993 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
13995 2007-01-11 Chris Toshok <toshok@ximian.com>
13997 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
14000 2007-01-11 Chris Toshok <toshok@ximian.com>
14002 * LinkLabel.cs: make sure to call base.Select in our Select method
14003 if it turns out we're going to be selected (i.e. if we have a link
14004 that is going to receive focus). That way our container's
14005 ActiveControl is updated properly.
14007 2007-01-11 Chris Toshok <toshok@ximian.com>
14009 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
14010 they have 1 or more links. this fixes the crash gert reported.
14012 2007-01-11 Andreia Gaita <avidigal@novell.com>
14014 * ContainerControl.cs: Remove ContainerSelected flag, not needed
14017 * Control.cs (Controls.Add): Check if control to be added to the collection
14018 is a top level control, and throw an ArgumentException if it is.
14019 Remove ContainerSelectedFlag, not needed anymore.
14021 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
14022 top most control doesn't activate the form. This fixes a problem in the
14023 MessageBox, where the default button wouldn't get focus because the form
14024 was activated before being Loaded - when the Owner is set, SetTopMost is
14025 called, and it would activate it.
14027 2007-01-11 Jonathan Pobst <jpobst@novell.com>
14029 * Button.cs: When clicked and setting the parent form's DialogResult,
14030 use FindForm instead of Parent, since parent could be a container
14031 control and not the Form. Fixes bug #80495.
14033 2007-01-10 Chris Toshok <toshok@ximian.com>
14035 * Form.cs: move the call to SendControlFocus into the same
14038 2007-01-10 Chris Toshok <toshok@ximian.com>
14040 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
14041 It breaks in the face of the new ActiveControl stuff, and should
14044 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
14045 activecontrol's focus if it's not already set, after we set
14046 ActiveControl, but before we call OnActivated. Re-fixes #79667
14047 after the previous focus/active control fixes regressed it.
14049 * Control.cs: reindent some code.
14051 2007-01-10 Chris Toshok <toshok@ximian.com>
14053 * Splitter.cs: clearing some outstanding changes from my tree.
14054 Replace all accesses (not writes) to the internal dock_style field
14055 with the Dock property.
14057 2007-01-10 Chris Toshok <toshok@ximian.com>
14059 * Control.cs: make FireEnter, FireLeave, FireValidating, and
14060 FireValidated virtual.
14062 * Form.cs: override and don't chain up calls to FireEnter and
14065 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14067 * ListView.cs: Add more text padding space when using
14068 auto resize for columns (the previous value didn't work fine).
14070 * ThemeWin32Classic.cs: Update text position inside columns,
14071 to match the appeareance of .Net.
14073 * ColumnHeader.cs: When using auto resize, only the Width should
14074 depend on the sub items, not the Height. Also, set width after
14075 auto resizing (the value of Width should never remain as -1 or -2).
14077 2007-01-10 Chris Toshok <toshok@ximian.com>
14079 * Application.cs: fix compilation errors when debug is enabled.
14081 2007-01-10 Chris Toshok <toshok@ximian.com>
14083 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
14084 add some nice ascii art pictures and explanation of the process).
14085 (GetMostDeeplyNestedActiveControl): new utility function we need
14086 because our ActiveControl can refer to a child container with its
14089 * Form.cs (OnActivated): remove the call to SelectActiveControl
14090 from here, since you can override this method and not chain up,
14091 and winforms still sets the active control.
14092 (OnCreateControl): also remove the unnecessary SelectActiveControl
14094 (WndProc): it's actually called from the WM_ACTIVATE block, just
14095 before calling OnActivated.
14097 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
14098 inside the else. the ActiveControl setter will end up setting
14099 focus on @control. This keeps us from setting it again (and
14100 generating an extra LostFocus/GotFocus pair).
14101 (Select (bool, bool)): reindent.
14103 2007-01-10 Jonathan Pobst <jpobst@novell.com>
14105 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
14106 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
14107 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
14108 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14109 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
14110 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
14111 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
14112 ToolStripTextBox.cs: Another wave of corcompare work.
14114 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14116 * ColumnHeader.cs: Implement 2.0 AutoResize method using
14117 the Width property.
14119 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
14120 methods by callling Column.AutoResize method on columns.
14122 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
14124 * Control.cs: Provide proper implementations of PreferredSize
14125 and GetPreferredSize (2.0).
14127 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
14129 * Form.cs: Remove one character (!) to make my previous OnClosing
14130 stuff work for modal windows like MessageBox.
14132 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14135 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
14136 ListView.Columns to get the last displayed column. Fixes #80452.
14138 2007-01-09 Everaldo Canuto <everaldo@simios.org>
14140 * Label.cs, LinkLabel.cs: Source code identation fixes.
14142 2007-01-08 Everaldo Canuto <everaldo@simios.org>
14144 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
14145 we dont need to invalidate only borders because when we invalidate four
14146 border lines the invalidate's generates a complete redraw of button,
14147 because it now invalidate a complete rect some other redraws operations
14148 are fixed. Fixes #80196.
14150 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
14151 Remove ToolBarInvalidateEntireButton as it is not used.
14153 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
14155 * Form.cs: Make sure that both OnClosing and OnFormClosing are
14156 called for 2.0 profile.
14157 * CloseReason.cs: Make class internal for 1.1.
14159 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
14161 * ToolStripManager.cs: Implement FindToolStrip functionality.
14162 * ToolStrip.cs: Register and unregister with ToolStripManager.
14164 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
14166 * Control.cs: This was messy. 2.0 moves much of ControlCollection
14167 to ArrangedElementCollection. Implemented this with as few #if's as
14168 possible (which is still too many).
14170 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
14172 * Control.cs: Implement SizeFromClientSize() [2.0].
14174 2007-01-07 Everaldo Canuto <everaldo@simios.org>
14176 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
14177 use Theme.BorderSize to calculate area instead of static value 1,
14178 by the way use new BorderStaticSize instead Border3DSize when
14179 border_static is true. Fixes #79537.
14181 * XplatUIOSX.cs: Fix call to GetClientRectangle.
14183 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
14186 2007-01-06 Everaldo Canuto <everaldo@simios.org>
14188 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
14190 2007-01-06 Everaldo Canuto <everaldo@simios.org>
14192 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
14193 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
14196 - border_static field added, it will used to define when a control
14197 theres 3D border but it must be static (thin).
14198 - In GetWindowRectangle use Theme.BorderSize to calculate area
14199 instead of static value 1, by the way use new BorderStaticSize instead
14200 Border3DSize when border_static is true.
14202 * XplatUIX11.cs, XplatUIOSX.cs:
14203 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
14205 * Theme.cs: BorderStaticSize field added.
14207 2007-01-05 Everaldo Canuto <everaldo@simios.org>
14209 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
14211 2007-01-05 Everaldo Canuto <everaldo@simios.org>
14213 * Control.cs: Under InternalBorderStyle call RecreateHangle to
14214 mimic same behavior than win32 that set border only in CreateParams,
14215 it fix problems under CreateParams overrides. Fix #79442 and partial
14218 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
14219 of thi control you must call recreate handle.
14221 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
14222 need to do anything as RecreateHangle will take care about borders.
14224 2007-01-05 Mike Kestner <mkestner@novell.com>
14226 * ListView.cs: hack to eliminate Lost/Got focus notifications on
14227 cycles between the ItemControl and parent. Fixes #80388.
14229 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
14231 * Control.cs: Lazy init layout engine. Do not directly use
14232 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
14234 2007-01-05 Chris Toshok <toshok@ximian.com>
14236 * DataGrid.cs: don't forceably rebind columns in SetDataSource
14237 unless our list manager has changed (i.e. unless we have reason to
14238 believe our columns have changed). Fixes #80422.
14240 also, disable the call do BindColumns in
14241 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
14242 1.1 the event isn't raised in response to a column addition on a
14245 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
14247 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
14248 that inheritors can not call it if they choose. Fixes bug #80456.
14250 2007-01-05 Andreia Gaita <avidigal@novell.com>
14252 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
14253 doesn't blow up with a null exception on marshalling.
14255 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
14257 * Control.cs: Implement several 2.0 protected properties and methods.
14258 Ensure that all necessary events are being called when properties
14261 2007-01-05 Mike Kestner <mkestner@novell.com>
14263 * ListView.cs: implement PgUp/PgDn for Details view. Also
14264 fixes First/LastVisibleIndex to use the item_control.ClientRect
14265 instead of the parent control. Fixes #80378.
14267 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
14269 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
14270 determine whether to use yard-pound or not (bug #78399).
14272 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14274 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
14275 problems. So it is time to bring back the old popupbutton colors.
14277 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14280 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
14281 property by using the internal information of the
14282 columns order in ListView.
14284 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
14286 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
14287 Add 2.0 Tag properties.
14289 * LinkArea.cs: Add 2.0 ToString method.
14291 2007-01-03 Chris Toshok <toshok@ximian.com>
14293 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
14294 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
14295 when we're editing, which fixes #80047.
14297 2007-01-03 Chris Toshok <toshok@ximian.com>
14299 * Form.cs: apply patch contributed by Dominik Seichter. fixes
14302 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
14304 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
14305 property and implementation.
14307 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
14308 for MdiWindowListItem property.
14310 * ToolStripDropDown.cs: Don't consider hidden menu items while
14311 laying out the menu.
14313 2007-01-03 Andreia Gaita <avidigal@novell.com>
14315 * SendKeys.cs: window handle is not needed in win32, so just
14316 get the active window for X after parsing keys and don't use
14317 it when building the message; it is passed by parameter to the
14318 Xplat method and used there to build the message instead. Also,
14319 wait for events to be processed on SendWait, as opposed to Send,
14320 which doesn't wait :) Playing with threads and Send() completely
14321 hangs on ms.net, only SendWait() works.
14324 X11Display.cs: Check for valid window handle.
14326 2007-01-03 Jackson Harper <jackson@ximian.com>
14328 * TextControl.cs: Need to prevent wrap calculations when replacing
14329 text (this was there before i removed it accidently).
14330 - Don't update the cursor during the positioning, just set it to
14331 selection_start at the end of the operaion.
14333 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14336 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
14338 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14340 * MonthCalendar.cs: Added Click and DoubleClick events again,
14341 but this time they only hide Control's Click and DoubleClick.
14343 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
14345 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
14346 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
14348 2007-01-02 Jackson Harper <jackson@ximian.com>
14350 * TextBoxBase.cs: We move the caret with the split now, so we
14351 don't need to explicitly move the caret after splitting. This
14352 fixes the caret bumping down an extra line on Enter.
14354 2007-01-02 Miguel de Icaza <miguel@novell.com>
14356 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
14359 * ScrollableControl.cs: Add Scroll event.
14361 2007-01-02 Mike Kestner <mkestner@novell.com>
14363 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
14364 to fix all hdr height padding codepaths. Fixes #80207.
14366 2007-01-02 Chris Toshok <toshok@ximian.com>
14368 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
14369 setting it to the Control defaults anyway, and it being after the
14370 Dock set was screwing up layout.
14371 (set_Dock): don't short circuit out of setting base.Dock. Also,
14372 no need to call UpdateStatusBar here, as it'll be re-layed out if
14375 2007-01-02 Mike Kestner <mkestner@novell.com>
14377 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
14378 to header height for width == -1. Fixes the rest of #80207.
14380 2007-01-02 Mike Kestner <mkestner@novell.com>
14382 * ListView.cs: rework the mouse event forwarding everaldo added
14383 to translate the coordinates to the parent control not
14384 raise the parent events until after we've done our work. Hover
14385 needs more work, in the case where HoverSelection is on, because
14386 the item control receives more than one MouseHover per Enter
14387 event, so we need to ensure only the "first" hover gets forwarded.
14388 Opening a minor bug for that.
14390 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
14392 * CheckedListBox.cs: Fixed SelectionMode to match MS.
14393 * ListControl.cs: Implemented AllowSelection property. Removed extra
14395 * ListBox.cs: Implemented AllowSelection property.
14397 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14399 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
14400 SelectedItem, it prevent for errors when you must disable item
14401 before perform click. Fixes #80409.
14403 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14405 * MenuAPI.cs: Prevent second level and beyond submenus to close
14406 until first level when move out side of popup.
14408 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14411 - Down submenu positin in three pixels.
14412 - Closes sub menu when mouse leaves from menu. Fixes #80402.
14414 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14416 * ThemeWin32Classic.cs:
14417 - Fix popup menu size adding one pixel on the top.
14418 - Down menu item border from two to one to mimic Win32.
14419 - Some source identation fixes.
14421 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14423 * ThemeWin32Classic.cs: Use float numbers to calculate size and
14424 position of menu arrows, it fix wrong arrow size.
14426 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14428 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
14429 instead of line, it simplify draw operation and fix it using 3D
14430 borders to mimic Win32.
14432 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
14434 * StatusStrip.cs: Add implementation of the sizing grip.
14436 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
14437 StatusStrip rendering.
14439 2006-12-31 Chris Toshok <toshok@ximian.com>
14441 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
14442 override the layout style (anchor/dock) of the control. assign to
14443 Dock instead. Fixes bug #80416.
14445 * ToolStrip.cs: same.
14447 2006-12-31 Andreia Gaita <avidigal@novell.com>
14449 * ContainerControl.cs: Use ContainerSelected flag to check if
14450 a Container is directly selected, or if Select is called on a
14451 non-container. If a container is directly selected, focus events
14452 should not be raised.
14453 Apply #80411 patch to throw exception on set_ActiveControl if
14454 control is the same as the current one.
14456 * Control.cs: Use ContainerSelected flag (see above).
14457 Add invalidation check to raise event but not invalidate if
14459 Apply #80411 patch.
14462 2006-12-31 Everaldo Canuto <everaldo@simios.org>
14464 * MenuAPI.cs: After click, dont close popup menu when menu is
14465 ContextMenu. Fixes #80399.
14467 2006-12-30 Chris Toshok <toshok@ximian.com>
14469 * ContainerControl.cs: make sure we throw the exception if the
14470 container control doesn't contain the control we're setting
14473 2006-12-30 Chris Toshok <toshok@ximian.com>
14475 * Control.cs (SetTopLevel): fix the exception raised by
14476 SetTopLevel for child controls.
14477 (set_Anchor): call UpdateDistances when setting the anchor type.
14478 This fixes bug #80336.
14480 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14482 * Theme.cs: For now, revert back to 8pt font.
14484 2006-12-29 Everaldo Canuto <everaldo@simios.org>
14486 * MenuAPI.cs: Set popup as active when open a ContextMenu.
14489 2006-12-29 Chris Toshok <toshok@ximian.com>
14491 * Control.cs: reorder the code in OnResize to give the same event
14494 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14496 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
14497 TileHorizontally and TileVertically.
14499 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
14501 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
14502 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
14503 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
14504 Corrected copyright and email adress.
14506 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14508 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
14509 of Exception in FullPath property if no TreeView is associated with
14512 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14514 * Theme.cs: Marked default_font as private, and initialize it in ctor
14515 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
14517 * ThemeGtk.cs: Removed default_font intialization.
14518 * ThemeWin32Classic.cs: Removed default_font initialization.
14520 2006-12-28 Chris Toshok <toshok@ximian.com>
14522 * Control.cs: fix a couple of place where we were creating handles
14523 more aggressively than we should be. Fixes ControlRefresh unit
14526 2006-12-28 Chris Toshok <toshok@ximian.com>
14528 * Control.cs: contrary to what the comment said, Control.Dock does
14529 not supercede Control.Anchor - the last one you assign to decides
14530 the layout behavior. so we need to keep track of which was the
14531 last set. Also, fix some of the affected property arguments in
14532 PerformLayout calls, and remove an redundant parent.PerformLayout
14535 Add a VisibleInternal property, which returns is_visible. We
14536 can/should get rid of all the usage of this field elsewhere.
14538 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14540 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
14541 control style, not DoubleBuffer. Added UseDoubleBuffering property
14542 that indicates whether doublebuffering is enabled and supported.
14543 (comment from and code based on Gert Driesen's patch in #80324).
14546 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14548 * Control.cs: Fixed a NRE.
14550 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14552 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
14555 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14557 * Control.cs: Rewrote double buffering, now a seperate
14558 class handles all the buffering, no Graphics is disposed of
14559 until the painting is finished (earlier implementation
14560 would crash if the control was resized in the OnPaint,
14561 since it would cause the double buffer to be recreated
14562 and the old one disposed), a separate Graphics is
14563 created for every paint (MS behaviour and anyways the state
14564 of the Graphics would have to be saved and restored otherwise)
14566 * XplatUIDriver.cs:
14568 * XplatUI.cs: Added and implemented GetOffscreenGraphics
14569 so that we can get the graphics for the back buffer without
14570 having to create a new one and remove the offscreen_dc parameter
14571 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
14573 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14575 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
14576 Also make virtual all the key-related methods.
14578 * ListViewItem.cs: Make virtual the key related methods for
14579 ListViewSubItemCollection.
14581 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14585 * ThemeWin32Classic.cs:
14586 * Theme.cs: Initial support for Tile view in ListView,
14587 as well as the implementation of the required bits for it (Item
14590 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14592 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
14593 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
14594 Provide useful exception messages.
14596 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14598 * TrackBar.cs: Remove a warning.
14599 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
14600 when used by DateTimePicker, fixes #80287. This also requires that
14601 MonthCalendar implements it's own drawing for the yearly updown control,
14602 otherwise the Capture tracking would be too complicated. Removed the Click
14603 and DoubleClick events (according to comments they were hiding the base class
14604 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
14605 raise these events, not that they cannot be raised. It is possible to raise
14606 them by calling OnClick and OnDoubleClick). Added two internal fields in
14607 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
14608 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
14609 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
14610 event, no longer needed.
14612 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14614 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
14615 true if new value differs from current value.
14617 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14619 * Control.cs: ControlCollection.Count must be public. Fixed build of
14622 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14624 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
14626 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14628 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
14630 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14632 * Control.cs: Invalidates control including when Width and Height is
14633 equal zero or is not visible, only Paint event must be care about
14634 this. Fixes #79913.
14636 2006-12-26 Chris Toshok <toshok@ximian.com>
14638 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
14639 more corcompare work.
14641 * DataGridView.cs: fix compiler warning.
14643 * ColumnHeader.cs: some corcompare work, and also take the
14644 opportunity to make the internal fields private.
14646 * ListView.cs: fix the fallout from the above field change.
14648 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14650 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
14651 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
14652 ToolStripTextBox.cs: Fixes to events and corcompare.
14654 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14656 * ListView.cs: Call owner.OnMousexx event to propagate events from
14657 item to ListView. Fixes #80367.
14659 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14661 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
14662 if value is less than one. ItemHeight should not be set to a value
14663 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
14664 Removed extra tabs.
14666 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14668 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
14669 * ToolStripStatusLabel.cs: Add Spring for Moma.
14671 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14673 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
14674 Fixed code formatting. Removed debug code.
14675 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
14677 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14679 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
14680 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
14681 ArgumentOutOfRangeException if ColumnCount is negative. In
14682 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
14683 less than 4 or higher than 32768.
14684 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
14685 Fixed FormatProvider to return CurrentCulture unless explicitly set.
14686 Fixed IsFormatProviderDefault to return true if FormatProvider has
14687 not been explicitly set.
14689 2006-12-25 Chris Toshok <toshok@ximian.com>
14691 * Application.cs: add a couple of 2.0 events.
14693 2006-12-25 Chris Toshok <toshok@ximian.com>
14695 * Control.cs: fix compiler warning.
14697 * AxHost.cs: corcompare fixes.
14699 * ApplicationContext.cs: corcompare fixes.
14701 2006-12-25 Chris Toshok <toshok@ximian.com>
14703 * Control.cs: only update dist_right/dist_bottom if the
14704 width/height is > 0. this fixes anchored controls being resized
14705 smaller until they disappear and then resized larger again.
14707 2006-12-25 Chris Toshok <toshok@ximian.com>
14709 * Control.cs: a couple of changes. Remove dist_left and dist_top,
14710 since they're nothing more than X/Left and Y/Top, respectively.
14712 Also, move back to a per-control Bitmap/Graphics for
14713 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
14714 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
14717 2006-12-25 Miguel de Icaza <miguel@novell.com>
14719 * MessageBox.cs: Implemented overload that takes a new "bool
14720 displayHelpButton" by adding a new internal field "show_help".
14721 When clicked this will raise the HelpRequested on the owner or the
14724 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
14725 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
14727 * ListView.cs: Add support ColumnWidthChanged and
14728 ColumnWidthChanging.
14730 Add support for ColumnReordered event.
14731 (ReorderColumn): Add NET_2_0 specific support for cancelling the
14734 Very nice codebase!
14736 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
14738 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
14740 2006-12-24 Chris Toshok <toshok@ximian.com>
14742 * GridTablesFactory.cs: 2.0 corcompare work.
14744 * ToolStripContainer.cs: add "override" to
14745 ContextMenuStripChanged, and remove the local event object.
14747 * ToolStripDropDown.cs: same with a couple properties.
14749 * ToolStripPanel.cs: same with AutoSizeChanged event.
14751 * TextBoxBase.cs: add "override" to AutoSizeChanged.
14753 * Form.cs: add the remaining 2.0 events, and do some corcompare
14756 * DateTimePicker.cs: add "new" to padding.
14758 * ButtonBase.cs: use Control's use_compatible_text_rendering.
14760 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
14762 * DataGridView.cs: PaddingChanged is overridden.
14764 2006-12-24 Chris Toshok <toshok@ximian.com>
14766 * Control.cs: corecompare work here too.
14768 * DataGridViewElement.cs, DataGridView.cs,
14769 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
14770 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
14771 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
14772 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
14775 2006-12-24 Miguel de Icaza <miguel@novell.com>
14777 * Control.cs: Switched the error message on the console for a
14778 todo. A review of the code will have to cope with this anyways
14779 (since its a large feature, it is in our radar) and it was
14780 producing too much output when running PDN.
14782 * ToolStripComboBox.cs: Set the text when the SelectedIndex
14783 changes. Applications depend on this (PDN 2.72)
14785 2006-12-23 Chris Toshok <toshok@ximian.com>
14787 * TableLayoutSettings.cs: finish up the corcompare work for this
14790 2006-12-23 Chris Toshok <toshok@ximian.com>
14792 * Control.cs: make SetImplicitBounds internal, do some futzing
14793 with LayoutEngine so that it's available in 1.1, and remove the
14794 entire duplicated code mess from PerformLayout. Use
14795 System.Windows.Forms.Layout.DefaultLayout instead.
14797 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
14799 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
14801 * Form.cs: Add MainMenuStrip property.
14803 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
14805 * Control.cs: Add ContextMenuStrip property and implementation.
14806 Fix ContextMenu implementation to show menu centered on control when
14807 activated using the keyboard instead of showing at screen (0,0).
14809 * ToolStripDropDown.cs: Fix needed overload of Show ().
14811 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14813 * Menu.cs: Name property added for 2.0 profile.
14815 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14817 * Menu.cs: Update information about FindMenuItem, method to be
14820 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14822 * MenuAPI.cs: When deselect items deselect also selected subitems.
14824 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14826 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
14827 FindSubItemByCoord to found itens that is not active, also an
14828 cheking added to FindSubItemByCoord to search for items only
14829 in visible popup windows. Fixes #80274.
14831 2006-12-22 Everaldo Canuto <everaldo@simios.org>
14833 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
14834 internal property, it be care about change ExStyle.
14836 2006-12-22 Andreia Gaita <avidigal@novell.com>
14838 * ContainerControl.cs: set activeControl for parent forms up the
14839 tree when the new activecontrol is a container.
14840 When validating the active control, if it is a container, also
14841 raise up the validation for it's active control. Fixes #80280
14843 * Control.cs: Add internal property flag and check to prevent
14844 Focus events from getting raised when Select() is called for
14845 a ContainerControl. There are still too many focus events being
14846 raised at the moment though.
14847 Cleaned up the code a bit.
14849 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14851 * Control.cs: Added all missing 2.0 events.and
14852 fixed a couple of corcompare issues.
14853 * TrackBar.cs: Implemented missing 2.0 bits.
14854 * MonthCalendar.cs,
14855 * DateTimePicker.cs,
14856 * MdiClient.cs: Fixed some corcompare issues.
14858 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14860 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
14861 SplitterPanel.cs: corecompare work.
14863 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14865 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
14866 Clean up warnings for BackgroundImageChanged and PaddingChanged
14867 events now that they are implemented in Control.cs.
14869 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14871 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
14873 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
14874 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
14875 of TableLayoutPanel and supporting cast.
14877 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
14880 - GrabWindow now confines the mouse pointer to the confine window.
14881 - Added Win32ClipCursor and Win32GetClipCursor.
14884 - Added CaptureWithConfine to be able to capture and confine
14887 * InternalWindowManager.cs:
14888 - Call CaptureWithConfine instead of Capture if we're an
14889 MdiChild (fixes #79982).
14891 2006-12-21 Chris Toshok <toshok@ximian.com>
14893 * DataGrid.cs: guard against the initial state of selection, where
14894 selection_start == -1. make sure we only select from index >= 0.
14897 2006-12-21 Chris Toshok <toshok@ximian.com>
14899 * Control.cs: we don't need to be so draconian with
14900 UpdateDistances, and we thusly don't need to call it before
14901 calling PerformLayout in ResumeLayout. Fixes bug #80289.
14903 2006-12-21 Daniel Nauck <dna@mono-project.de>
14906 TextBox.cs: Implemented AutoComplete properties.
14908 2006-12-20 Chris Toshok <toshok@ximian.com>
14910 * DataGridView*.cs: some corecompare work.
14912 2006-12-20 Jackson Harper <jackson@ximian.com>
14914 * XplatUIX11.cs: We need to hide the caret when deleting it,
14915 otherwise you get carets left lying around everywhere.
14916 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
14917 prevents getting some weird half drawn caret tracers when
14919 * TextControl.cs: Attempt to reduce the number of times we need to
14920 recreate the caret.
14922 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
14924 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
14926 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14928 * DateTimePicker.cs:
14929 - Implemented missing 2.0 bits.
14930 - Changed some default values to match MS.
14932 2006-12-20 Jackson Harper <jackson@ximian.com>
14934 * TextBoxBase.cs: When changing the font across the document we
14935 can't recalculate after changing each line, since that will cahnge
14937 - PreferredHeight is a little different than i thought.
14938 - When backspacing, move the caret before we do the actual char
14939 delete, because when that delete crosses a wrap boundary the
14940 positional information will change.
14942 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14944 * Control.cs: Added some missing 2.0 bits:
14945 BackgroundImageLayout, BackgroundImageLayoutChanged,
14946 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
14947 add IBindableComponent and IDropTarget implementation.
14949 * MonthCalendar.cs:
14950 - Added all missing 2.0 features:
14951 BackgroundImageLayout, RightToLeftLayout,
14952 OnHandleDestroyed, RightToLeftLayoutChanged,
14953 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
14955 - Rewrote all the BoldDate code, it was completely broken.
14956 - Fixed all the tests (the tests can now be re-enabled, the
14957 problems were not with the tests, but with the control, it was
14960 * DateTimePicker.cs: Changed the location where the
14961 MonthCalendar is shown.
14963 2006-12-19 Chris Toshok <toshok@ximian.com>
14965 * DataGridView.cs: add IDropTarget implementation.
14967 * ToolStripPanel.cs: add IDropTarget implementation.
14969 2006-12-19 Jackson Harper <jackson@ximian.com>
14971 * TextControl.cs: soft now means something different than what it
14972 used to mean, we want to move the caret regardless of whether or
14973 not this break was soft (would we really have wanted the caret
14974 to not move with the break in the old context?)
14975 * TreeView.cs: Make sure we factor in the vert scrollbar when
14976 calculating the horizontal scrollbar's maximum.
14978 2006-12-19 Andreia Gaita <avidigal@novell.org>
14980 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
14981 check for keywords in alternate casing, close bug #80049.
14983 2006-12-19 Chris Toshok <toshok@ximian.com>
14985 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
14986 methods (which all do nothing).
14988 * IDropTarget.cs: add the 4 missing methods.
14990 2006-12-19 Chris Toshok <toshok@ximian.com>
14992 * TableLayoutRowStyleCollection.cs: corcompare work.
14994 * TableLayoutSettings.cs: same.
14996 * TableLayoutStyle.cs: same.
14998 * TableLayoutColumnStyleCollection.cs: same.
15000 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
15002 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
15003 TableLayoutPanel I've had in my local tree for way too long.
15005 2006-12-19 Miguel de Icaza <miguel@novell.com>
15007 * TableLayoutSettings.cs: Finish the public API (still needs all
15008 the logic to update on changes).
15010 * TableLayoutPanelCellPosition.cs: new file.
15012 * TableLayoutRowStyleCollection.cs,
15013 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
15014 TableLayoutSettings.cs: Track the final 2.0 table api.
15016 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15018 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
15019 and Image List 2.0 members for ColummnHeader.
15020 * ListView.cs: Add key-related 2.0 methods for
15021 ColumnHeaderCollection.
15023 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15025 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
15026 ArgumentNullException if items argument is null. Ignore null item in
15027 arrays. Removed extra tabs.
15029 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15031 * MonthCalendar.cs: Fixed InvalidCastException.
15033 2006-12-19 Jackson Harper <jackson@ximian.com>
15035 * TextControl.cs: Don't increment the position here.
15036 - When calculating char positions only add in the line break size
15037 for hard line breaks.
15039 2006-12-19 Andreia Gaita <avidigal@novell.org>
15041 * SendKeys.cs: Changed some things to match ms.net behaviour
15042 when parsing shifted capital letters.
15044 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
15045 Add window handle as parameter to SendInput. X11 needs the
15046 window handle, and the handle being passed to it in the keys
15047 queue is the active control handle (which windows needs), not
15050 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
15051 to support SendKeys on X.
15053 * X11Keyboard: Implement helper method to lookup a linux keycode
15054 given the virtual keycode. Added table of keycode-2-virtualkey
15055 values to support this.
15057 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15059 * ListView.cs: Add support for SelectedIndexCollection
15060 and SelectedItemCollection 2.0 methods. Implement support
15062 * ListViewItem.cs: Add support for ListViewSubItemCollection
15063 2.0 methods. Also, fix an incorrect behavior of AddRange method
15064 (it shouldn't call Clear).
15065 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
15067 2006-12-19 Jackson Harper <jackson@ximian.com>
15070 * TextBoxBase.cs: New args for FormatText
15071 * TextControl.cs: Rewrote the main drawing method, this version
15072 feels a little easier to understand and debug to me. Hopefully it
15073 does to others also
15074 - Fix FormatText to OR in the new formating values. Added
15075 FormatSpecified param, basically this works in the same way as
15076 BoundsSpecified in Control.
15077 - Set the caret properties when the caret is positioned.
15078 - When wrapping text make sure that we calculate the width of the
15080 - when calculating alignments we might have wrapped down to the
15081 next line, so don't search for an individual tag, search for the
15083 - We need to invalidate the selection area when we replace the
15086 2006-12-19 Daniel Nauck <dna@mono-project.de>
15088 * Application.cs: add Restart () 2.0 support
15090 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15092 * MenuItem.cs: Invalidate menu item rectangle after change Enable
15093 property. Fixes #80268.
15095 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15097 * MenuAPI.cs: Dont trigger select event when closes top menu
15098 item. Fixes #80270.
15100 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15102 * MenuAPI.cs: When you click on menuitem only trigger onselect
15103 event for top menu itens. Fixes #80271.
15105 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15107 * MdiWindowManager.cs: Make IconicBounds depend on
15108 the bottom of MdiClient, not the top (fixes #80267)
15110 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15112 * MdiClient.cs: Added missing 2.0 attribute
15114 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15116 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
15117 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
15119 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15121 * MenuAPI.cs: Fix click when menuitem is not popup,
15122 this regression was caused by last commit (#80272).
15124 2006-12-17 Everaldo Canuto <everaldo@simios.org>
15126 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
15127 fire click event or close menu. Fixes #80272.
15129 2006-12-17 Daniel Nauck <dna@mono-project.de>
15131 * ListViewHitTestInfo.cs: add
15133 2006-12-17 Daniel Nauck <dna@mono-project.de>
15135 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
15136 * FlatButtonAppearance.cs: add
15137 * DockingAttribute.cs: add
15139 2006-12-17 Chris Toshok <toshok@ximian.com>
15141 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
15142 and rebind our columns when it does - this way, if you make
15143 changes to the DataTable (or set the Table attribute on a DataView
15144 after setting it as the DataGrid's DataSource, the changes are
15145 made visible.) Fixes bug #80107.
15147 2006-12-17 Daniel Nauck <dna@mono-project.de>
15149 * ListViewGroup.cs: add internal Location property for layouting.
15150 * Theme.cs: add abstract ListViewGroupHeight function.
15151 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
15153 2006-12-16 Andreia Gaita <avidigal@novell.com>
15155 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
15156 Added reset of selected index to 0 when adding first tab page.
15159 * NumericUpDown.cs: Fix NET_2_0 check
15161 2006-12-16 Daniel Nauck <dna@mono-project.de>
15163 * ListViewGroup.cs: fixed DefaultValueAttribute value
15165 2006-12-16 Daniel Nauck <dna@mono-project.de>
15167 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
15169 2006-12-15 Miguel de Icaza <miguel@novell.com>
15171 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
15172 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
15173 ScrollableControl.cs: Add a handful of methods that are
15176 2006-12-15 Chris Toshok <toshok@ximian.com>
15178 * XplatUIWin32.cs: initial implementation of the Reversible
15179 drawing functions. there are some problems. DrawReversibleFrame
15180 doesn't seem to work at all for Dashed FrameStyle, and in the
15181 Thick case there are drawing errors at the corners (we probably
15182 need to bind Rectangle instead of doing moveto/lineto's.)
15184 2006-12-16 Andreia Gaita <avidigal@novell.com>
15186 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
15187 to send blocks of key messages. Send accumulates keys to send with Flush,
15188 while SendWait sends all keys immediately.
15190 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15191 XplatUIX11.cs, XplatUIX11-new.cs:
15192 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
15193 to Win32 SendInput.
15194 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
15196 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
15197 testing for ms.net on this class is very tricky, as the tests run too fast
15198 to allow the hook to release, essentially freezing the keyboard and the
15199 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
15202 2006-12-16 Daniel Nauck <dna@mono-project.de>
15204 * Padding.cs: fixed serialization compability to MS ("_var" field names),
15205 added missing attributes.
15207 2006-12-15 Daniel Nauck <dna@mono-project.de>
15209 * ListViewGroup.cs: Added missing attributes.
15210 * ListViewGroupCollection.cs: Added missing attributes.
15212 2006-12-15 Daniel Nauck <dna@mono-project.de>
15214 * ListViewItem.cs: fixed ListViewSubItem text property.
15216 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15218 * Control.cs: Added missing 2.0 attributes
15220 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15222 * MdiClient.cs: Added missing 2.0 attribute.
15223 * MonthCalendar.cs: Added some missing 2.0 attributes
15226 2006-12-15 Daniel Nauck <dna@mono-project.de>
15228 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
15230 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
15232 * MainMenu.cs: Add the new 2.0 constructor to help out people
15233 using the MainMenu in VS2005.
15235 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15237 * MdiChildContext.cs: Removed it, no longer used.
15238 * MdiClient.cs: Added missing 2.0 attributes.
15240 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15242 * InternalWindowManager.cs: Fix a NullRef with previous
15243 changes for toolwindows.
15245 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15248 - Added AfterTopMostControl to allow for certain controls
15249 to always stay on top when normal controls are brought to
15253 - (DrawInversibleRectangle): Get window rectangle from Win32
15254 in stead of from control, since Win32 doesn't calculate
15255 screen coords correctly from control's Location if it
15256 have docked siblings.
15258 * MdiWindowManager.cs:
15259 - Correct the control menu popup location when clicked on
15260 the maximized form icon. (fixes #80223.1)
15261 - Don't show moving rectangle if mouse hasn't moved from
15262 the original clicked point.
15263 - Removed FormGotFocus handler (not used).
15264 - Calculate the control buttons location from the main
15265 window's size and not client size (fixes #79770).
15266 - Form is now closed when the form icon is double-clicked
15268 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
15270 * InternalWindowManager.cs:
15271 - Moved some MDI-only methods to MdiWindowManager.
15272 - Removed unused properties and methods.
15273 - Unified method naming for methods handling wm messages.
15274 - Moved all message handling to seperate methods for
15277 * ThemeWin32Classic.cs:
15278 - DrawManagedWindowDecorations now draws the title bar
15279 with a gradient brush.
15280 - Add a CPDrawButtonInternal that allows us to specify
15281 light, normal and dark colors for the buttons (control
15282 buttons for MDI children were drawn with the same light
15283 color as the background, therefore loosing the 3D effect).
15286 - Add a CapturedControl property that is used to
15287 determine the control to resize (defaults to parent).
15288 Needed for MdiClient, since its SizeGrip's parent is
15289 MdiClient, but the control to resize is the main form.
15292 - Set SizeGrip's CapturedControl to the main form in order
15293 to resize the main form and not the MdiClient.
15294 - Override AfterTopMostControl to leave the scrollbars
15297 2006-12-15 Daniel Nauck <dna@mono-project.de>
15299 * ListView.cs: fixed ListViewItemCollection AddRange and
15300 implemented ListViewItemCollection AddRange 2.0 support.
15302 2006-12-15 Daniel Nauck <dna@mono-project.de>
15304 * ListViewGroup.cs: Add.
15305 * ListViewGroupCollection.cs: Add
15306 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
15307 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
15308 stub for ImageKey 2.0 support.
15310 2006-12-14 Mike Kestner <mkestner@novell.com>
15312 * ListView.cs: add text padding to the autocalculation for columns
15313 of width -2. Fixes #80207.
15315 2006-12-14 Mike Kestner <mkestner@novell.com>
15317 * ListView.cs: add some index guarding for partial row navigation
15318 logic. Fixes #80250.
15320 2006-12-14 Mike Kestner <mkestner@novell.com>
15322 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
15323 are added or inserted to the collection. Fixes #81099.
15325 2006-12-13 Everaldo Canuto <everaldo@simios.org>
15327 * MenuAPI.cs: Closes menu when right click out side of popup
15328 it fix problem in ContextMenu and MainMenu. Fixes #80252.
15330 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15332 * ListViewItem.cs: Fix dumb error.
15334 * ListView.cs: Add Find and ContainsKey methods in
15335 ListViewItemCollection, and also return true for IsReadOnly
15336 and IsFixedSize (changes for 2.0).
15338 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
15340 * Control.cs: Allow Region to be set to null.
15342 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15344 * MdiWindowManager.cs: Remove unused (commented out) code.
15345 * Form.cs: When the MdiChild is maximized, the form needs
15346 WM_NCMOUSELEAVE, so request it.
15347 * InternalWindowManager.cs:
15348 - Added tooltips to control buttons.
15349 - Removed duplicated control button handling code.
15350 - Removed unused (commented out) code.
15352 2006-12-12 Everaldo Canuto <everaldo@simios.org>
15354 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
15355 was used because we must set cursor without trigger ChangeCursor event
15356 and without change Cursor control property. Fixes #79963.
15358 2006-12-12 Andreia Gaita <avidigal@novell.com>
15360 * Control.cs: Check if Region setter value is null, and ignore
15362 2006-12-12 Jackson Harper <jackson@ximian.com>
15364 * TextControl.cs: We were almost always drawing one more line then
15365 needed, since the GetLineByPixel will return the last line found
15366 at that pixel. In most cases though, we were invalidating up to
15367 the junction between two lines.
15368 - Improve debug code.
15370 2006-12-12 Chris Toshok <toshok@ximian.com>
15372 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
15373 and FillReversibleRectangle.
15375 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
15376 and FillReversibleRectangle.
15378 * XplatUIWin32.cs: add stubs which do nothing for
15379 DrawReversibleFrame, DrawReversibleLine, and
15380 FillReversibleRectangle.
15382 * XplatUIOSX.cs: add stubs which raise NIE for
15383 DrawReversibleFrame, DrawReversibleLine, and
15384 FillReversibleRectangle.
15386 * XplatUIX11.cs: add working implementation for
15387 DrawReversibleFrame, DrawReversibleLine, and
15388 FillReversibleRectangle.
15390 * ControlPaint.cs: implement DrawReversibleFrame,
15391 DrawReversibleLine, and FillReversibleRectangle, by calling into
15392 the appropriate XplatUI method.
15394 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15396 * Form.cs: Make MdiClient have the focus even if it's
15397 not selectable, since it should receive WM_KEY* and WM_MOUSE
15398 messages. Fixes #79907.
15400 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15402 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
15403 queried after the window is created.
15405 * XplatUIX11.cs: Added SendParentNotify to implement
15406 WM_PARENTNOTIFY logic. Fixes #79965.
15408 * Control.cs: Added MakeParam.
15410 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15412 * MdiClient.cs: Resume Layout before setting window
15413 states (fixes #80201).
15415 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15417 * MenuAPI.cs: Deselect a menu item after performing
15418 the click (fixes #80197).
15420 2006-12-11 Jackson Harper <jackson@ximian.com>
15422 * TextBoxBase.cs: We need to cap this value, since Maximum -
15423 ViewPortHeight can be less than zero.
15424 - Only do selection with the left mouse button.
15425 * TextBox.cs: Don't tell the world that we have a context menu.
15426 * Control.cs: New method so that we can control whether or not the
15427 context menu is visible outside MWF.
15429 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15431 * ToolBarButton.cs: Fix text positon.
15433 2006-12-11 Miguel de Icaza <miguel@novell.com>
15435 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
15437 * Control.cs (DoubleBuffered): Add implementation.
15439 * Application.cs (OpenForms): Add.
15441 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15443 * Form.cs: Use opacity instead of Opactiy to determine if we need
15444 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
15446 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15448 * Control.cs: Fix NRE if Control.Site was set to null.
15450 2006-12-11 Chris Toshok <toshok@ximian.com>
15452 * Control.cs: ControlCollection.Remove should return if the arg is
15453 null, and ControlCollection.SetChildIndex should raise a ANE.
15455 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
15457 * Control.cs: Verify value set for Dock property. Code formatting
15460 2006-12-11 Jackson Harper <jackson@ximian.com>
15462 * TextControl.cs: Draw the caret and the selection when a flag is
15464 * TextBoxBase.cs: We want to draw the caret and the selection for
15465 TextBox but not for TextBoxBase.
15466 - If the window is resized and scrolling is no longer needed (the
15467 whole doc is visible) set the scroll position to zero.
15468 - The default SelectWord (the one TextBox uses) should move the
15469 caret to the end of the word.
15470 - SelectAll moves the caret to the end of the selection.
15471 * TextBox.cs: We don't selectall on focus, we just do it when the
15472 control is created.
15474 2006-12-11 Mike Kestner <mkestner@novell.com>
15476 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
15478 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15480 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
15482 * ListViewItem.cs: Add Name 2.0 property.
15484 2006-12-11 Andreia Gaita <avidigal@novell.com>
15486 * TabControl.cs: Set visibility on selected or default tab
15487 when tabcontrol handle is created, so that it's contents
15488 actually show up (duh). Fixes #80193
15489 Don't redraw the control if there is no handle created, as
15490 the selected index might be completely invalid. Added some tests
15493 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15495 * ToolBar.cs: Uses maximun width and height of all buttons as
15496 button rectangle when ButtonSize specified, it looks strange but
15497 is what happens in Win32. Fixes #80189.
15499 2006-12-11 Jackson Harper <jackson@ximian.com>
15501 * TextControl.cs: Need to track undo levels ourself, since
15502 compound actions will mess them up.
15504 2006-12-10 Andreia Gaita <avidigal@novell.com>
15506 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
15507 SelectedIndex value is changed (even if it's not valid).
15508 Reset SelectedIndex to 0 when the handle is created and if
15509 the current index is invalid.
15510 Fixes SelectdeIndex unit tests and #80128
15512 2006-12-08 Chris Toshok <toshok@ximian.com>
15514 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
15515 calls EndEdit, it needs to be called before we set current_cell to
15516 its new value. Otherwise, we end up committing the value in the
15517 textbox to the new cell as well. Fixes bug #80160.
15519 2006-12-08 Chris Toshok <toshok@ximian.com>
15521 * Form.cs (set_CancelButton): if the button's DialogResult is
15522 None, set it to Cancel. Fixes bug 80180.
15524 2006-12-08 Jackson Harper <jackson@ximian.com>
15526 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
15527 to watch ourselves when setting the canvas size and setting the
15530 2006-12-08 Chris Toshok <toshok@ximian.com>
15532 * DataGrid.cs: comment out the two MakeTransparent calls for the
15533 time being so people using trunk (and not 1.2.2) on windows can
15534 actually use the datagrid. This deals with bug #80151.
15536 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15538 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
15539 Graphics.DrawImage (image, int, int, int, int) overload instead
15540 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
15541 the dpi difference and was blurring images it drew.
15544 2006-12-08 Chris Toshok <toshok@ximian.com>
15546 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
15547 rowcnt is 0 (such as with an empty datasource), and make sure we
15548 initialize not_usedarea.Y to cells.Y, so we don't draw over the
15549 other areas (caption, parent row, etc, etc). Fixes bug #80095.
15551 2006-12-08 Chris Toshok <toshok@ximian.com>
15553 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
15556 2006-12-08 Chris Toshok <toshok@ximian.com>
15558 [ Fixes bug #80167 ]
15560 * ThemeWin32Classic.cs: don't draw the image if the button's flat
15561 style is FlatStyle.System.
15563 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
15564 ButtonBase.flat_style private, and switch uses of it to the public
15567 2006-12-08 Chris Toshok <toshok@ximian.com>
15569 [ Fixes bug #80121 ]
15571 * ThemeWin32Classic.cs: center the caption text in the datagrid
15574 * DataGrid.cs: lessen the amount we add to the caption height from
15575 6 to 2. 6 was making it huge.
15577 2006-12-08 Andreia Gaita <avidigal@novell.com>
15579 * UpDownBase: Handle MouseWheel call directly instead of capturing
15580 the inner textbox's OnMouseWheel. Fixes #80166
15582 2006-12-08 Jackson Harper <jackson@ximian.com>
15584 * TextControl.cs: We need to invalidate the textbox when we empty
15585 it (how had this not been discovered before?)
15587 2006-12-08 Jackson Harper <jackson@ximian.com>
15589 * TextBoxBase.cs: Reworked the mouse down code so I could get it
15590 to behave like MS, we now ignore the eventargs.Click and just
15591 track state ourself, which we were already doing anyways.
15592 - Constrain the double click handler to the double click size.
15594 2006-12-08 Chris Toshok <toshok@ximian.com>
15596 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
15597 direction if that scrollbar isn't shown. fixes bug #80158.
15599 2006-12-08 Andreia Gaita <avidigal@novell.com>
15601 * NumericUpDown.cs: Update value on getter. Fixes #79950
15603 2006-12-08 Chris Toshok <toshok@ximian.com>
15605 * MenuItem.cs: add back in the event cloning code. I didn't know
15606 how to do it in the face of the EventHandlerList work i'd done
15607 last week. Fixes bug #80183.
15609 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15611 * Control.cs: Add an invalidate to the BackgroundImage setter.
15614 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15616 * ToolStrip*: Add some small properties reported by MoMA, fix event
15617 firing and default properties based off of unit tests, and add some
15618 attributes based off of the class status page.
15620 2006-12-07 Jackson Harper <jackson@ximian.com>
15622 * TextBoxBase.cs: Take HideSelection into account when determining
15623 whether or not to show the selection.
15624 * RichTextBox.cs: After inserting the RTF into the document move
15625 the cursor to the beginning of the document.
15627 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15629 * Control.cs: Remove static ArrayList "controls" which maintained
15630 a reference to every control created.
15631 * Application.cs: Create a static FormCollection to maintain a reference
15632 to every form created. Use it in places that formerly enumerated through
15633 the controls one looking for forms.
15634 * Form.cs: Add and remove self from above FormCollection.
15636 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
15638 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
15639 not libgdk (though it makes me wonder why I didn't have any
15642 2006-12-07 Chris Toshok <toshok@ximian.com>
15644 [ you had to know this was coming after that last commit...]
15646 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
15647 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
15648 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
15651 2006-12-07 Chris Toshok <toshok@ximian.com>
15653 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
15654 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
15655 all the behavior we need for double buffering.
15657 * XplatUIDriver.cs: implement the 3 double buffer methods using a
15658 client side Bitmap, just like the old Control-based double buffer
15659 code did. The methods are virtual, so each XplatUI driver
15660 subclass can replace the implementation to use a faster, platform
15663 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
15664 double buffer code, and clean things up a bit in the process.
15666 2006-12-06 Chris Toshok <toshok@ximian.com>
15668 * Control.cs: reindent WndProc.
15670 2006-12-06 Chris Toshok <toshok@ximian.com>
15672 [ I wanna be like BenM when I grow up ]
15674 * Hwnd.cs: create a single static Graphics object on the static
15675 Bitmap we create. use this for our text measurements.
15677 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
15678 This was causing us to allocate a backbuffer for every control,
15679 even when it wasn't flagged as double buffered. Instead use the
15680 single graphics instance. This might have implications for
15681 multithreaded applications. If we run into problems we can switch
15682 to creating 1 Graphics per control, on the static Hwnd bitmap.
15684 this change nets us a 7M savings in private dirty mappings when
15685 running FormsTest.exe.
15687 2006-12-06 Chris Toshok <toshok@ximian.com>
15689 * ListView.cs: the BackgroundImage override is just to set
15690 attributes. chain up to base.BackgroundImage.
15692 * RichTextBox.cs: same.
15694 * ToolBar.cs: same, but we need to also redraw the toolbar when it
15695 changes, so instead a handler for BackgroundImageChanged.
15697 * Control.cs: make background_image private.
15699 2006-12-06 Chris Toshok <toshok@ximian.com>
15701 * ScrollBar.cs: change the assignment of cursor to Cursor. not
15702 sure we even need this assignment, but roll with it for now.
15704 * Control.cs: make the cursor field private.
15706 2006-12-06 Chris Toshok <toshok@ximian.com>
15708 * Form.cs: we don't need to explicitly set ImeMode to
15709 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
15710 behavior in the face of ImeMode.Inherit.
15712 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
15713 change the ctor's assignment to use ImeMode instead of ime_mode.
15715 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
15716 ImeModeInherit. Only check for the parent's imemode (and return
15717 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
15718 This fixes the button unit test, which sets both ImeMode and
15719 DefaultImeMode to ImeMode.Disable.
15721 also make the ime_mode field private.
15723 2006-12-06 Chris Toshok <toshok@ximian.com>
15725 * Control.cs: make control_style private.
15727 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
15728 setting the styles to true, then setting them to false instead of
15729 reverting to their previous values.
15731 also, call SetStyle on the scrollbars instead of using
15732 control_style directly.
15734 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
15736 * FormCollection.cs: Implement. [2.0]
15738 2006-12-06 Chris Toshok <toshok@ximian.com>
15740 * Control.cs: make tab_stop private.
15742 * Label.cs: set TabStop, not tab_stop. reformat some event
15743 add/remove methods to make them more compact.
15745 2006-12-06 Chris Toshok <toshok@ximian.com>
15747 * RadioButton.cs: fix TabStop handling.
15749 2006-12-06 Chris Toshok <toshok@ximian.com>
15751 * TextBox.cs: remove the explicit assignments to has_focus.
15754 * ButtonBase.cs: remove the assignment to has_focus. Control will
15757 2006-12-06 Chris Toshok <toshok@ximian.com>
15759 * ButtonBase.cs: remove all uses of is_enabled from this code.
15760 it's always true when any of the code containing the checks is
15763 2006-12-06 Chris Toshok <toshok@ximian.com>
15765 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
15766 with different semantics (some are present in both 1.1 and 2.0
15767 profiles) so that we match MS's behavior in our unit tests.
15769 2006-12-06 Jackson Harper <jackson@ximian.com>
15771 * TextControl.cs: Make this operation undoable.
15772 * TextBoxBase.cs: Factor the border width into the preferred
15774 - implement Modified as per the spec.
15776 2006-12-06 Chris Toshok <toshok@ximian.com>
15778 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
15780 2006-12-06 Chris Toshok <toshok@ximian.com>
15782 * Control.cs: make right_to_left and context_menu fields private.
15784 2006-12-06 Chris Toshok <toshok@ximian.com>
15786 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
15787 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
15788 Control.child_controls private. switch all uses over to
15791 2006-12-06 Chris Toshok <toshok@ximian.com>
15793 * System.Windows.Forms/GroupBox.cs,
15794 System.Windows.Forms/AccessibleObject.cs,
15795 System.Windows.Forms/ErrorProvider.cs,
15796 System.Windows.Forms/Control.cs,
15797 System.Windows.Forms/UpDownBase.cs,
15798 System.Windows.Forms/ScrollBar.cs,
15799 System.Windows.Forms/DateTimePicker.cs,
15800 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
15801 System.Windows.Forms/ToolTip.cs,
15802 System.Windows.Forms/RadioButton.cs,
15803 System.Windows.Forms/LinkLabel.cs,
15804 System.Windows.Forms/Splitter.cs,
15805 System.Windows.Forms/TextBoxBase.cs,
15806 System.Windows.Forms/ToolStripTextBox.cs,
15807 System.Windows.Forms/ContainerControl.cs,
15808 System.Windows.Forms/ThemeWin32Classic.cs,
15809 System.Windows.Forms/SizeGrip.cs,
15810 System.Windows.Forms/ToolStripDropDown.cs,
15811 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
15812 private. switch all uses over to Control.Parent.
15814 2006-12-06 Chris Toshok <toshok@ximian.com>
15816 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
15817 Control does this before calling emitting these events.
15819 * TabControl.cs: same.
15821 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
15822 Control.client_rect.
15824 * ButtonBase.cs: use the ClientSize property instead of the
15827 * ScrollableControl.cs: same.
15829 * Control.cs: another pass at making properties private. also,
15830 move the initialization of tab_stop to the ctor.
15832 2006-12-05 Andreia Gaita <avidigal@novell.com>
15834 * TabControl.cs: Let the selected index be set freely if the
15835 control handle is not yet created.
15837 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
15839 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
15840 internal until I can rewrite DefaultLayout.
15841 * ToolStrip.cs: Fix build error and some general cleaning.
15842 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
15843 Fix build errors caused by making some of Control's fields private.
15845 2006-12-05 Jackson Harper <jackson@ximian.com>
15847 * TextControl.cs: Redo Insert a little so that it use IndexOf
15848 instead of Split, this prevents it from messing up on things like
15849 \n\n\n. Also more effecient since the split array doesn't need to
15851 * TextBoxBase.cs: AppendText doesnt handle multiline and non
15852 multiline text differently, this is the first of many fixes that
15853 will make multiline/non-multiline the same thing as far as the
15854 TextBoxBase is concerned.
15855 - Don't split the text and insert lines, this can lose some line
15856 endings (like is the last line a soft or hard break). Instead use
15858 - Fix an off by one when combining all the lines in the Text
15860 - Remove separate multiline handling from the Text getter/setter.
15862 2006-12-05 Chris Toshok <toshok@ximian.com>
15864 * ButtonBase.cs: a few changes:
15866 - don't reinitialize internal Control fields in the ctor when they
15867 have the same values as Control sets them.
15869 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
15870 this before calling those methods.
15872 - we don't need to call Refresh for anything. use Invalidate
15875 - OnEnabledChanged doesn't need to redraw at all - Control.cs
15876 calls Refresh in its OnEnabledChanged.
15878 - several of the events we were registered for in the ctor to
15879 redraw ourselves already include calls to Invalidate in the
15880 property setters that raise the events. remove the extra
15883 - reformat a switch statement that was 83274658 columns wide.
15885 2006-12-05 Mike Kestner <mkestner@novell.com>
15887 * ComboBox.cs: fix a unit test regression from a TextBox
15888 SelectionLength return of -1 when there's no selection.
15890 2006-12-05 Chris Toshok <toshok@ximian.com>
15892 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
15893 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
15894 cleaning up some of the internal Control fields being used by
15897 2006-12-05 Mike Kestner <mkestner@novell.com>
15899 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
15900 listbox after AddImplicit calls since it defaults to hidden. Add a
15901 hack to preserve requested heights across DropDownStyle changes.
15903 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
15905 * PropertyGrid.cs: Hide FindFirstItem method from public API.
15907 2006-12-05 Chris Toshok <toshok@ximian.com>
15909 * DataGridView.cs: fix compiler warnings.
15911 * PrintControllerWithStatusDialog.cs: same.
15913 * ToolBar.cs: same.
15915 * FolderBrowserDialog.cs: same.
15917 * Splitter.cs: same.
15919 * DataGridViewComboBoxCell.cs: same.
15921 * XplatUIWin32.cs: same.
15923 * PictureBox.cs: same.
15925 * Win32DnD.cs: same.
15927 * PageSetupDialog.cs: same.
15929 * FileDialog.cs: same.
15931 * PrintDialog.cs: same.
15933 * DataGridTextBoxColumn.cs: same.
15935 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
15937 2006-12-05 Chris Toshok <toshok@ximian.com>
15939 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
15940 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
15941 System.ComponentModel.EventHandlerList work.
15943 2006-12-05 Jonathan Chambers <joncham@gmail.com>
15945 * DrawTreeNodeEventArgs.cs: Added.
15947 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15949 * InternalWindowManager.cs: Remove an unused field.
15951 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15953 * InternalWindowManager.cs:
15954 - Save the point where the title bar is clicked.
15956 * MdiWindowManager.cs:
15957 - Only allow moving of the window as long as the
15958 clicked point on the title bar does not get out of
15959 MdiClient's rectangle. Fixes #79982.
15962 - Added Horizontal/VerticalScrollbarVisible.
15963 - Simplified the scrollbar sizing algorithm.
15964 - Cache the difference in scrolled value in
15965 H/VBarValueChanged and move the calculation out
15968 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15970 * Control.cs: Make the Console.WriteLine in WndProc
15973 2006-12-05 Chris Toshok <toshok@ximian.com>
15975 * ToolStripManager.cs, ToolStripButton.cs,
15976 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
15977 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
15978 ToolStripSplitButton.cs, ToolStripSeparator.cs,
15979 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
15980 ToolStripProgressBar.cs, ToolStripContainer.cs,
15981 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
15982 to using System.ComponentModel.EventHandlerList.
15984 2006-12-04 Chris Toshok <toshok@ximian.com>
15986 * LinkLabel.cs: fix up compiler warnings.
15988 * TableLayoutSettings.cs: same.
15990 * TreeView.cs: same.
15992 * ToolBar.cs: same.
15994 * TabControl.cs: same.
15996 * RichTextBox.cs: same.
15998 * ListViewItem.cs: same.
16000 * PropertyGrid.cs: same.
16002 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
16006 * TextRenderer.cs: fix up compiler warnings.
16010 * Form.cs: corcompare fixes.
16012 * PictureBox.cs: fix up compiler warnings.
16014 * ImageListStreamer.cs: same.
16016 * TrackBar.cs: corcompare fix.
16018 * Control.cs: fix up compiler warnings.
16020 * SplitterPanel.cs: same.
16022 * NumericTextBox.cs: same.
16024 * ImageList.cs: same.
16026 * StatusStrip.cs: same.
16028 * ProgressBar.cs: corcompare fix.
16030 * ToolStripButton.cs: fix up compiler warnings.
16032 * ToolStripStatusLabel.cs: same.
16034 * ToolStripSplitButton.cs: same.
16036 * ToolStripSeparator.cs: same.
16038 * ToolStripProgressBar.cs: same.
16040 * ToolStripDropDownMenu.cs: same
16042 * ToolStripDropDown.cs: same.
16044 * ToolStripDropDownButton.cs: same.
16046 * ToolStrip.cs: same.
16048 * ToolStripControlHost.cs: same.
16050 * ToolStripContentPanel.cs: same.
16052 * ToolStripDropDown.cs: same.
16054 * ToolStripContainer.cs: same.
16056 * ToolStripPanel.cs: same, and add "new" where we need it to work
16057 with the new ArrangedElementCollection.
16059 * ToolStripItemCollection.cs: add "new" where we need it to work
16060 with the new ArrangedElementCollection.
16062 2006-12-04 Andreia Gaita <avidigal@novell.com>
16064 * TabControl.cs: Fix default tab selection to after TabControl
16065 gets focus and not before. Fixes #80128
16067 2006-12-04 Chris Toshok <toshok@ximian.com>
16069 * DataGridTableStyle.cs: remove the gross calling of
16070 datagrid.Refresh from here. It's a broken idea and it doesn't
16073 * DataGrid.cs: instead, just register/unregister from the
16074 DataGridTableStyle events in CurrentTableStyle. we play it
16075 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
16076 even though some would most likely not require it. Fixes bug
16077 #80115 (and one portion of #80117 as a side effect).
16079 2006-12-04 Chris Toshok <toshok@ximian.com>
16081 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
16082 so the textbox (if any) goes away. Fixes bug #80117.
16084 2006-12-04 Chris Toshok <toshok@ximian.com>
16086 * DataGridColumnStyle.cs: set the column's readonly property
16087 initially based on the property descriptor's IsReadOnly. Fixes
16090 2006-12-04 Chris Toshok <toshok@ximian.com>
16092 * ComboBox.cs: wrap the dropdown style changing work in
16093 SuspendLayout/ResumeLayout. Fixes bug #79968.
16095 2006-12-04 Jackson Harper <jackson@ximian.com>
16097 * TextBoxBase.cs: Fix off by one, since these are one-based.
16098 * TextBox.cs: Select all the text when we get focus. The TextBox
16099 does this but the RTB does not.
16101 2006-12-04 Chris Toshok <toshok@ximian.com>
16103 * DataGridTextBoxColumn.cs: remove some spew.
16105 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
16106 but some part of me is saying "it shouldn't be here.." At any
16107 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
16110 2006-12-04 Chris Toshok <toshok@ximian.com>
16112 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
16113 to reassign the propertydescriptor.
16115 2006-12-04 Jackson Harper <jackson@ximian.com>
16118 * TextControl.cs: Remove some unused variables. Maybe this will
16119 patch things up between mike and I.
16120 - don't split lines less then one char wide, if the viewport is
16121 that small text won't be visible anyways.
16123 2006-12-04 Jackson Harper <jackson@ximian.com>
16125 * TextBoxBase.cs: Default selection length is -1, need to do some
16126 more testing on windows to see when this is used for the property.
16127 - Redid the Lines [] property to that we properly remove soft line
16129 - added support for preserving carriage returns
16130 - CanUndo is not a variable like 'is undo enabled' it just returns
16131 true if there is undo operations available.
16132 - AppendText doesn't need to grab the last tag itself anymore,
16133 this happens automatically when we move the cursor.
16134 * TextControl.cs: Add CompoundActions to the undo class. This
16135 allows combining the other operations into one big option. ie a
16136 paste will combine { delete old, insert new, move cursor }
16137 - Add InsertString undo operation
16138 - New method for deleting multiline text
16139 - Add carriage returns to lines. So we can preserve carriage
16140 returns when text is 'roundtripped'
16142 2006-12-04 Chris Toshok <toshok@ximian.com>
16144 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
16145 minimum 0. Fixes the scrollbar exception in bug #80136.
16147 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16150 * MdiWindowManager: Removed unused fields and methods.
16152 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16154 * StatusBar.cs: Update all panels when a AutoSize=Contents
16155 panel needs updating.
16157 * StatusBarPanel.cs: Remove twidth and only use initialize.
16160 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16162 * Form.cs: When a form's MdiParent is set add it directly
16163 on top of the z-order in stead of relying on MdiClient's
16164 ActivateChild to do it. Fixes #80135.
16167 - Remove original_order, mdi_child_list is already doing
16169 - Create mdi_child_list on construction in
16170 stead of first use (avoids a few null checks).
16172 * MenuItem.cs: Use an already existing list of mdi children
16173 to get the correct order of children and remove the other
16176 2006-12-04 Chris Toshok <toshok@ximian.com>
16178 * PropertyGridView.cs: cached_splitter_location is only used in
16179 !DOUBLEBUFFER code.
16181 * PropertyGrid.cs: implement the ComComponentNameChanged event
16182 using Events, hoping that would fix the warning. Looks like a
16183 compiler bug instead (#80144).
16185 * PropertyManager.cs: remove unused method.
16187 2006-11-04 Everaldo Canuto <everaldo@simios.org>
16189 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
16190 include parentesis to fix expression evaluation. Fixes #79634.
16192 2006-11-02 Everaldo Canuto <everaldo@simios.org>
16195 - Changes to fix behavior in Menu control, some reported in #80097
16196 and other detected during behavior refactory like a select event
16198 - Remove unneded "if's" conditions.
16199 - Created an internal to flag when popup is active in control, we need
16200 it because in .NET you can have menu active but without popup active
16201 when you active menu using popup without visible items.
16202 - Mimic win32 behavior for Select and Popup events.
16203 - Dont open popup menu when you dont have visible subitems.
16204 - Do nothing when click on disabled menu item.
16205 - Some small changes to follow the coding style guidelines.
16206 - Unselect menu only when another control gives focus. Fixes #80097.
16207 - Remove unused code.
16209 * MenuItem.cs: internal VisibleItems method to check if menu
16210 theres visible subitems, it will be usefull to fix some
16211 behavior in Menu control.
16213 2006-11-01 Everaldo Canuto <everaldo@simios.org>
16215 * Timer.cs: Tag property for 2.0 profile.
16217 2006-12-01 Chris Toshok <toshok@ximian.com>
16219 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
16221 * Win32DnD.cs: comment out some unused fields.
16223 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
16224 some unused properties/methods.
16226 * XplatUIX11.cs: fix MousePosition so we override the base class's
16227 property instead of conflicting with it.
16229 * PictureBox.cs: comment out some unused fields
16231 * OSXStructs.cs: make some struct fields public.
16233 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
16234 MousePosition so we override the base class's property instead of
16235 conflicting with it.
16237 * X11Dnd.cs: comment out some unused fields
16239 * X11DesktopColors.cs: fix some struct field visibility to quiet
16242 * X11Dnd.cs: remove some debug code.
16244 * ThemeClearlooks.cs: comment out unused field.
16246 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
16248 * ThemeGtk.cs: comment out some unused pinvokes.
16250 * Timer.cs: remove some unused fields.
16252 * ThemeClearlooks.cs: comment out unused field.
16254 * UpDownBase.cs: comment out unused field.
16256 * DataObject.cs: comment out unused field.
16258 * DataGridBoolColumn.cs: reomve unused field.
16260 * DataGrid.cs: remove unused field.
16262 * Cursor.cs: remove old ToBitmap code.
16264 * ControlPaint.cs: remove unused method.
16266 * ScrollBar.cs: remove unused fields.
16268 * ComboBox.cs: remove unused field, and chain up to
16269 AccessibleObject ctor.
16271 * ListBox.cs: remove unused field.
16273 * ButtonBase.cs: wrap a couple fields in NET_2_0.
16275 * GridEntry.cs: remove unused fields.
16277 * Binding.cs: remove unused fields.
16279 * AxHost.cs: remove unused method.
16281 * ContainerControl.cs: remove unused field.
16283 * ScrollableControl.cs: remove unused fields.
16285 2006-12-01 Chris Toshok <toshok@ximian.com>
16287 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
16288 the Where/WhereString stuff. it's easy enough to CWL
16289 Environment.StackTrace.
16291 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
16292 unused private fields.
16294 2006-12-01 Jackson Harper <jackson@ximian.com>
16296 * TextControl.cs: Do not update the view while inserting multiline
16297 text. If we update the view we might wrap lines, before entering
16298 the new lines, which causes the new line insertion calculations to
16299 be totally fubared.
16300 - Remove an old TODO
16301 - Make debug output a little nicer
16303 2006-12-01 Chris Toshok <toshok@ximian.com>
16305 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
16307 2006-12-01 Chris Toshok <toshok@ximian.com>
16309 [ fix the majority of the CS0108 warnings we've been suppressing ]
16311 * TreeView.cs: mark BackgroundImageChanged as 'new'.
16313 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
16314 to "LayoutToolBar" to quiet mcs.
16316 * TabControl.cs: mark our ControlCollection class as 'new'.
16318 * TextBoxBase.cs: mark some events as 'new'.
16320 * Splitter.cs: TabStop is 'new'.
16322 * ControlBindingsCollection.cs: mark a few methods as new since
16323 they change the visibility from protected to public.
16325 * RadioButton.cs: DoubleClick -> base class, and remove unused
16328 * MonthCalendar.cs: ImeMode property -> base class, and mark many
16331 * NumericUpDown.cs: TextChanged -> base class.
16333 * CheckedListBox.cs: mark our ObjectCollection class as new to
16336 * FolderBrowserDialog.cs: make HelpRequest event new and have it
16337 muck with the base class.
16339 * StatusBar.cs: fix some mcs warnings about Update being the same
16340 name as a base class method.
16342 * RichTextBox.cs: mark some events as new, and make them do things
16343 to the base class impl.
16345 * UserControl.cs: mark TextChanged as new, and have it manipulate
16348 * UpDownBase.cs: mark some things new.
16350 * CheckBox.cs: mark DoubleClick "new", and add some text about
16351 what we need to look at.
16353 * Panel.cs: make the events "new", and manipulate the base
16354 version. these are just here for attributes.
16356 * AccessibleObject.cs: make owner private.
16358 * Control.cs: deal with AccessibleObject.owner being private.
16359 cache our own copy if we need it.
16361 * Button.cs: add "new" to the DoubleClickEvent.
16363 * ListBox.cs: no need to track our own has_focus here. let
16364 Control.has_focus do it for us. Also some other work to clear up
16365 warnings about not overriding base class methods of the same name.
16367 * ComboBox.cs: clear up some warnings about not override base
16368 class methods of the same name.
16370 2006-12-01 Chris Toshok <toshok@ximian.com>
16372 * Form.cs: flag a few things as "new" to quiet some of the mcs
16377 * PrintPreviewDialog.cs: same.
16379 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
16380 now DGV isn't so horrible on the class status page. also, move
16381 all events to using System.ComponentModel.EventHandlerList. my
16384 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
16386 * MdiWindowManager.cs:
16387 - Set form to active mdi child if shown,
16388 and update the active mdi child to the next
16389 remaining child in the z-order if the form is hidden.
16392 - Track if the form has been visible and if its
16393 visibility is beeing changed, so that the MdiClient
16394 can properly decide the ActiveMdiChild. The MdiClient
16395 cannot track this since the form can change visibility
16396 before MdiClient is created.
16399 - Don't activate anything of the parent form is changing
16401 - Rework ActiveMdiChild to only return visible mdi
16402 children and take into account several other corner
16405 2006-12-01 Chris Toshok <toshok@ximian.com>
16407 * IBindableComponent.cs: new 2.0 interface.
16409 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
16411 * DataGrid.cs: Font for caption area is bold by default.
16413 2006-12-01 Everaldo Canuto <everaldo@simios.org>
16415 * Menu.cs: Tag property for 2.0.
16417 2006-11-01 Everaldo Canuto <everaldo@simios.org>
16419 * ThemeWin32Classic.cs: Adjust menu separator drawing.
16421 2006-12-01 Chris Toshok <toshok@ximian.com>
16423 * TreeView.cs: doh, the Begin* events should be
16424 TreeViewCancelEventHandler.
16426 2006-12-01 Chris Toshok <toshok@ximian.com>
16428 * Form.cs: Form.ControlCollection already stores off the
16429 form_owner field. don't access the base class's internal "owner"
16432 * Control.cs: make all the fields in Control.ControlCollection
16433 private. there's no need for any internal fields here.
16435 2006-12-01 Chris Toshok <toshok@ximian.com>
16437 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
16438 OnHandleCreated. Fixes bug #80109.
16440 2006-12-01 Chris Toshok <toshok@ximian.com>
16442 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
16443 SplitContainer.cs, Control.cs, StatusStrip.cs,
16444 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
16445 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
16446 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
16447 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
16448 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
16449 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
16450 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
16451 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
16452 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
16453 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
16455 do most of the work to convert our code over to use
16456 System.ComponentModel.Component.Events for
16457 adding/removing/dispatching events.
16460 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16462 * DataGridView.cs: Fix an ArgumentNullException reported
16463 twice today in IRC.
16465 2006-11-30 Mike Kestner <mkestner@novell.com>
16467 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
16468 grabbed listbox. Fixes #80036 and #80101.
16470 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16472 * Message.cs: Changed ToString() to match MS.
16474 2006-11-30 Jackson Harper <jackson@ximian.com>
16476 * TextBoxBase.cs: You can still change the selected text on a read
16478 * TextControl.cs: Lower magic number for wrap calculations. This
16479 lets text get closer to the right (far) edge.
16481 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16483 * Control.cs: Tweak 2.0 layout properties.
16484 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
16485 * TextRenderer.cs: Add a new overload.
16486 * ToolStrip*: Huge amount of changes and new features.
16488 2006-11-30 Mike Kestner <mkestner@novell.com>
16490 * ComboBox.cs: fixes for LargeChange and Maximum to get the
16491 scroll range correct. Fixes #79994.
16493 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16495 * MdiWindowManager.cs: Update main form's text when
16496 a form is closed. (fixes #80038)
16498 2006-11-30 Everaldo Canuto <everaldo@simios.org>
16501 - Fix an regression in ButtonSize.
16502 - Get ImeMode default value change to "Disable".
16503 - Get ShowTooltips default value change to true, default value is
16504 "false" but after make a test in .NET we get "true" result as default.
16506 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
16508 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
16510 2006-11-29 Chris Toshok <toshok@ximian.com>
16512 * XplatUIWin32.cs (GetWindowTransparency): check return value of
16513 GetLayeredWindowAttributes. if it's 0, return 1.0, as
16514 SetWindowTransparency hasn't been called.
16516 2006-11-29 Chris Toshok <toshok@ximian.com>
16518 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
16520 (set_AllowTransparency): reorder things a little so that the
16521 WS_EX_LAYERED style is removed properly.
16523 2006-11-29 Chris Toshok <toshok@ximian.com>
16525 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
16527 * Form.cs: only call the XplatUI transparency method (get/set) if
16528 SupportsTransparency says it's supported. Otherwise fallback to
16529 doing nothing (in the set case) or returning the instance field we
16530 cache (in the get case).
16532 * XplatUIStructs.cs: add TransparencySupport flag enum.
16534 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
16535 change to SupportsTransparency.
16537 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
16538 TransparencySupport.None from SupportsTransparency.
16540 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
16541 TransparencySupport.Set from SupportsTransparency.
16543 * XplatUIWin32.cs: implement GetWindowTransparency calling
16544 GetLayeredWindowAttributes, and implement SupportsTransparency by
16545 checking whether or not both
16546 GetWindowTransparency/SetWindowTransparency are available
16547 entrypoints. We need to do this since SetWindowTransparency is
16548 available as of win2k, but GetWindowTransparency requires winxp.
16551 * XplatUI.cs: Add GetWindowTransparency, and change
16552 SupportsTransparency to allow for either/both Get/Set.
16554 2006-11-29 Chris Toshok <toshok@ximian.com>
16556 * DataGrid.cs: keep from going into an infinite loop redrawing a
16557 datagrid that has no datasource. Fixes bug #80033.
16559 2006-11-29 Chris Toshok <toshok@ximian.com>
16561 * MenuItem.cs: fix the NRE when we assign text (and therefore call
16562 Invalidate) before the mainmenu has been assigned to a control.
16564 2006-11-29 Chris Toshok <toshok@ximian.com>
16566 * DataGrid.cs: detect when we should be double the double click
16567 row/column autosize stuff, although that codepath has yet to be
16568 written. part of the work for bug #79891.
16570 2006-11-29 Chris Toshok <toshok@ximian.com>
16572 * Binding.cs (SetControl): fix unit test.
16574 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16576 * PageSetupDialog.cs: Validate the margins and set them in
16578 * NumericTextBox.cs: New class to mimic the behavior of the
16579 textboxes used in the printing dialogs.
16581 2006-11-29 Andreia Gaita <avidigal@novell.com>
16583 * Form.cs: Revert previous change (remove call UpdateBounds
16584 from form constructor), because it messes with the handle creation
16585 order, and that one needs lots and lots of love.
16586 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
16587 for valid printer and throw InvalidPrinterException if document
16588 is set but printer not valid), adding a MonoTODO. Once
16589 handle creation is done properly, we can put this back in.
16591 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16593 * MenuItem.cs: Create a invalidate method for menu item, to be
16594 calling from set text, it make text changes to imadiate update
16595 on screen. Fixes #80013.
16597 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16599 * ToolBar.cs: Fixes and simplify toolbar button layout, it
16600 fixes bug #80070 and some other problem on toolbar buttons
16603 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16605 * ThemeWin32Classic.cs: Paint toolbar toggle button background
16606 with dotted brush. Fixes #79564
16608 2006-11-28 Andreia Gaita <avidigal@novell.com>
16610 * Form.cs: Removed call to UpdateBounds on Form
16611 constructor, it was causing a call to CreateHandle
16612 before it was supposed to.
16613 * PrintControllerWithStatusDialog: Applied patch
16614 by Chris Toshok to hide controller when there are
16615 no printers available.
16616 PrintDialog.cs: initialize printer settings to
16617 null - correct DefaultValues test #5
16618 * PrintPreviewControl.cs: Move PrintController
16619 initialization to GeneratePreview
16620 * PrintPreviewDialog.cs:
16621 - Remove Preview generation from Document_set(). It is
16623 - Throw InvalidPrinterException on CreateHandle if
16624 a Document is set but there are no printers or
16625 printer is not valid.
16626 * ThemeWin32Classic: don't paint PrintPreviewControl
16627 if there is nothing to paint
16629 2006-11-28 Miguel de Icaza <miguel@novell.com>
16631 * Form.cs: Add another popular method.
16633 * TabPage.cs: ditto.
16635 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16637 * MenuItem.cs: Fixed a warning.
16638 * InternalWindowManager: Fixed a warning.
16640 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16643 - When cloning a menu also clone MdiList and clone the
16644 window menu items properly (as the forms and menuitems
16645 are kept in an internal hashtable, these need updating
16647 - Rewrote the window menu code, menu items are added in the
16648 order the forms were added to their parent, and they are
16649 updated every time the window menu is shown (before the
16650 list was only generated once, in the current order of the
16651 forms, and would never be updated). A checkmark is shown
16652 next to the item corresponding to the active mdi child.
16654 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16656 * XplatUIStructs.cs:
16657 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
16660 - Added TME_NONCLIENT to TMEFlags.
16661 - Handles WM_NCMOUSEMOVE in GetMessage to
16662 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
16664 * MdiWindowManager:
16665 - Now merges mdi child menu to parent menu when maximized.
16666 - Recalculate NC areas of both mdi child and mdi parent.
16668 on window state and size changes.Fixes #79844 (3).
16669 - Handle WM_NCCALCSIZE to properly calculate borders.
16672 - Add/remove to the mdi containers list of mdi children
16673 in the order they are added.
16674 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
16675 to the maximized mdi child.
16677 * InternalWindowManager.cs:
16678 - Only execute a click on the control buttons on the mouse up,
16679 not on the mouse down. Show the state of the button
16680 (was only showing Normal state, never Pressed state). The
16681 pressed button now follows the mouse (if you click the Close
16682 button and move the mouse over the Maximize button, the
16683 Maximize button will be shown as pressed). Since Win32 does
16684 not generate WM_NCLBUTTONUP if you release the button outside
16685 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
16688 * ThemeWin32Classic.cs:
16689 - Draw a missing border around mdi child forms. Fixes #79844 (2).
16692 - Added a list of forms which contains the order the forms are
16693 added to the mdi parent.
16694 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
16695 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
16696 - If the active form changes set the scrollbars to the top
16697 of the Z order, otherwise the form could hide them.
16698 - Scrollbars are now sized according to ClientSize, not
16699 to Size, and they take into account the other scrollbar
16700 to determine maximum.
16702 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16705 * XplatUIDriver.cs:
16709 - Added RequestAdditionalWM_NCMessages for windows to
16710 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
16711 Currently only implemented in XplatUIWin32.
16713 2006-11-27 Chris Toshok <toshok@ximian.com>
16715 * Hwnd.cs: only add the hwnd to the windows hash in
16716 set_WholeWindow and set_ClientWindow if whole_window/client_window
16717 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
16719 2006-11-27 Mike Kestner <mkestner@novell.com>
16721 * ComboBox.cs: remove redundant OnDropDown call. It is called
16722 from the ComboListBox.ShowWindow code. Fixes #79969.
16724 2006-11-27 Chris Toshok <toshok@ximian.com>
16726 * Hwnd.cs: remove the setters for ExposePending and
16727 NCExposePending - noone uses them.
16729 2006-11-27 Jackson Harper <jackson@ximian.com>
16731 * TextControl.cs: new param for ReplaceSelection which determines
16732 whether we select the new selection, or set the cursor to the end
16733 of the new selection.
16734 * TextBoxBase.cs: Use new param for ReplaceSelection. When
16735 pasting, select the new text.
16736 * RichTextBox.cs: Use new param for ReplaceSelection.
16738 2006-11-27 Jackson Harper <jackson@ximian.com>
16740 * TextBoxBase.cs: Set the selection to the caret after the caret
16741 is moved, otherwise they get out of sync.
16743 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16745 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
16748 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16750 * ThemeWin32Classic.cs:
16751 - Fix toolbar drop down arrow position.
16752 - Fix drop down appearance when ToolBar.Appearance is normal,
16755 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
16757 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
16758 * Control.cs: Same.
16759 * UpDownBase.cs: Same.
16760 * ButtonBase.cs: Same.
16761 * ScrollBar.cs: Same.
16762 * TrackBar.cs: Same.
16763 * PictureBox.cs: Same.
16764 * UserControl.cs: Same.
16766 * ListControl.cs: Same.
16767 * TextBoxBase.cs: Same.
16768 * ListView.cs: Same.
16769 * RichTextBox.cs: Same.
16770 * TreeView.cs: Same.
16772 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
16775 - Text label for where
16776 - Text label comment was not shown
16778 2006-11-23 Everaldo Canuto <everaldo@simios.org>
16780 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
16782 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16784 * InternalWindowManager.cs:
16785 - Handle WM_PARENTNOTIFY to activate the form
16786 if any child control is clicked.
16787 - The form is only sizable if not minimized.
16789 * MdiWindowManager.cs:
16790 - Save the IconicBounds if the form is moved.
16791 - Rework SetWindowState, now the window bounds
16792 are stored only if the old window state is Normal.
16795 - In SetWindowStates store the old window state if
16796 the window is maximized and restore window state if
16797 the window looses focus.
16798 - Don't handle any scrollbar value changes if
16799 initializing the scroll bars. Fixes #79771.
16800 - Reworked ArrangeIconicWindows. Current algorithm
16801 tests bounds agains all other minimized windows, if
16802 any intersections create new bounds (going left to
16803 right, bottom to top) and then test again. When
16804 successful the bounds are saved and never computed
16805 again. Fixes #79774.
16807 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16809 * InternalWindowManager.cs: Added HandleTitleBarUp.
16811 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16813 * NumericUpDown.cs: In .NET 1.1, user entered text is still
16814 hexadecimal in ParseUserEdit.
16817 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16819 * MdiWindowManager.cs:
16820 - Handle a click on the form's icon to show the
16821 system menu (when maximized). Fixes #79775.
16822 - Change the existing click handler for the form's
16823 icon when not maximized to show on MouseUp.
16826 * Form.cs: In OnResize only layout the mdi child's
16827 parent if it actually has a parent. Might not if
16828 the window is closing.
16831 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16833 * MdiClient.cs: Ignore active MDI client for text of parent, if
16834 child has no text set.
16836 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16838 * ToolBar.cs: Fixed ToString to match MS.
16840 2006-11-22 Andreia Gaita <avidigal@novell.com>
16843 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
16844 update inner values on set. Fixes #79966.
16845 - Override OnLostFocus to update value on NET 2. Fixes #79950.
16846 - Fix hexadecimal parsing.
16848 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
16849 parent. Fixes #79957
16851 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16853 * Control.cs: After calling SetWindowsPos in SetBoundsCore
16854 the actual size has to be queried, since if height /
16855 width is negative Win32 changes it to 0.
16856 Fixes #79999 on Windows.
16858 * XplatUIX11.cs: Set height / width to 0 if negative
16859 in SetWindowPos. Fixes #79999 on Linux.
16861 2006-11-22 Everaldo Canuto <everaldo@simios.org>
16863 * ThemeWin32Classic.cs: Fix text redenring when button is
16866 2006-11-22 Everaldo Canuto <everaldo@simios.org>
16868 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
16869 and later navigate by mouse. Fixes #79528.
16871 2006-11-21 Everaldo Canuto <everaldo@simios.org>
16873 * ToolBar.cs: Set default value for TabStop to false in
16874 constructor, it fixes remaining behavior of bug #79863.
16876 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
16878 * MdiWindowManager.cs:
16879 * InternalWindowManager.cs:
16880 - Moved a few methods specific to Mdi from
16881 InternalWindowManager to MdiWindowManager.
16884 2006-11-21 Chris Toshok <toshok@ximian.com>
16886 * XplatUIOSX.cs: stub out InvalidateNC.
16888 * XplatUIWin32.cs: implement InvalidateNC using the call I found
16889 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
16891 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
16893 * XplatUIDriver.cs: add InvalidateNC abstract method.
16895 * XplatUI.cs: add InvalidateNC.
16897 2006-11-21 Everaldo Canuto <everaldo@simios.org>
16899 * ToolBar.cs: Invalidate complete button area when pressed status
16901 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
16902 * ThemeWin32Classic.cs: Increase vertical and horizontal position
16903 by 1 when button is pressed.
16905 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16907 * ToolButton.cs: Invalidate middle of DropDown button when
16908 ToolBar theres DropDownArrows.
16909 * ThemeWin32Classic.cs: Change position of DropDown arrow and
16910 fix DropDown drawing operations.
16912 2006-11-20 Chris Toshok <toshok@ximian.com>
16914 * NativeWindow.cs: fix the formatting of functions ('{' on the
16915 following line), and enable the thread exception dialog.
16917 * Application.cs: remove the duplicate exception catching from
16920 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16922 * Toolbar.cs: Triggers button click event when click on icon
16923 of dropdown ToolBarButton. Fixes #79912.
16925 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16928 * ThemeWin32Classic.cs:
16929 - Added a property WindowBorderFont to enable themeing
16930 of mdi child windows' Text.
16932 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16934 * InternalWindowManager.cs:
16937 * MdiWindowManager.cs:
16938 - If mdi child is maximized, set mdi parent's
16939 text to "Parent - [Child]". Fixes #79770.
16940 - If there is any maximized mdi child windows, only the active
16941 window (and any new windows) is maximized, the rest are normal.
16942 - On a WindowState change only save mdi child's window bounds
16943 if the old window state was normal. Fixes #79774.
16944 - The scroll bars are now calculated on hopefully all
16945 necessary events. Fixed #79771 / #79844->6 / #79906.
16946 - MdiClient.SizeScrollBars() now takes into account docked
16947 controls in the parent when calculating available space.
16948 - InternalWindowManager now always repaints the entire title
16949 area. Fixes #79844->1/4/5.
16950 - Added RequestNCRecalc on mdi child windowstate changes.
16953 2006-11-20 Mike Kestner <mkestner@novell.com>
16955 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
16956 in the MouseUp handler of the listbox and move the return handling
16957 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
16959 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16961 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
16963 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
16965 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
16966 working in 1.2.x anymore. So, updated.
16968 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
16970 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
16971 NumberGroupSeparator of current culture instead of assuming en-US.
16974 2006-11-17 Mike Kestner <mkestner@novell.com>
16976 * Control.cs: Add the concept of implicit bounds setting so that
16977 dock/undock round trips preserve explicitly set size/locations.
16980 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
16982 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
16983 can't handle those filters. (Fixes bug #79961)
16985 2006-11-17 Chris Toshok <toshok@ximian.com>
16987 [ fixes the exit/crashes associated with #79835. it's clearly
16988 suboptimal though, we need to figure out a better way to solve
16991 * PrintPreviewControl.cs: deal with the new invalid printer
16994 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
16995 and return false (so CommonDialog.ShowDialog doesn't actually show
16998 * PrintDialog.cs: enable/disable the Ok button depending on
16999 whether or not the printer is valid.
17001 * CommonDialog.cs (ShowDialog): only actually show the form if
17002 RunDialog returns true.
17004 2006-11-17 Jackson Harper <jackson@ximian.com>
17006 * TextControl.cs: When soft splitting a line, mark it as a soft
17007 split line. Also carry over the current line break to the next
17010 2006-11-17 Chris Toshok <toshok@ximian.com>
17012 * XplatUIX11.cs: when scrolling a window with an invalid area, we
17013 only want to shift the part of the invalid area that overlaps the
17014 area we're scrolling. we also don't want to clear the invalid
17015 area unless the invalid area was entirely contained within the
17018 2006-11-16 Chris Toshok <toshok@ximian.com>
17020 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
17021 also make sure to free the memory returned by XGetWindowProperty
17024 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
17026 2006-11-16 Chris Toshok <toshok@ximian.com>
17028 * XplatUI.cs: add a new super secret way to get at the totally
17029 unsupported X11 backend.
17031 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
17033 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
17035 2006-11-16 Jackson Harper <jackson@ximian.com>
17037 * TreeView.cs: Allow more explicit setting of top node position
17038 for scrollbars. Slower algo, but more accurate.
17039 - CollapseAll should maintain the current top node.
17040 * TextBoxBase.cs: When positioning the caret, use the line, pos
17041 method, since the x, y method does not grab the correct tag, and
17042 the caret height never gets set correctly. (Maybe I should just do
17043 away with the caret having its own height, and always use the
17044 carets current tag for height).
17046 2006-11-16 Jonathan Pobst <monkey@jpobst.com
17048 [Fixes 79778, 79923]
17050 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
17051 Parent to the FosterParent instead.
17053 2006-11-16 Jackson Harper <jackson@ximian.com>
17055 * TreeView.cs: Need to recalc the topnode when we expand or
17056 collapse. The scrolling methods can't handle this on their own,
17057 since they use differences between the last scroll position, and
17058 those difference get completely messed up since we are expanding
17059 nodes. This problem should probably be fixed in the scrolling
17060 methods, so they can figure out exactly where they are, but this
17061 will slow things down a little.
17062 * ThemeWin32Classic.cs: Special case for groupboxes with empty
17063 strings, makes nunit-gui look a lot nicer.
17065 2006-11-16 Chris Toshok <toshok@ximian.com>
17067 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
17068 the broken multithreaded event handling we have in here. File
17069 this entry under "Why we should move to the new X11 backend".
17071 Any thread can make it into UpdateMessageQueue, which gets events
17072 from the X socket - some of which could belong to hwnds being
17073 managed by a different thread. We can also have multiple threads
17074 in UpdateMessageQueue at the same time, with each one reading from
17075 the X socket. This leads to many problems, with the following
17078 We can't use hwnd.Queue.Enqueue anywhere in here and must use
17081 The MotionNotify compression we do can't work across threads
17082 (without locking the entire queue, perhaps) since we call
17083 hwnd.Queue.Peek, so we just punt and don't compress motion events
17084 unless the owning thread is the one which got the X event.
17086 ConfigureNotify is another fun one, since it modifies the hwnd's
17087 bounds and then enqueues the event. We add a lock to Hwnd which
17088 is held when setting configure_pending to true (and enqueuing the
17091 There is a race wrt the wake socket. we need to make sure that
17092 only 1 thread is waiting on that socket, or else a thread could
17093 sleep waiting for data that never comes. It's difficult (but not
17094 impossible) to make happen, because it seems to require something
17095 like the following:
17097 1. Thread 1 polls on wake_receive
17099 2. poll returns saying there's data to be read on
17102 3. Thread 2 polls on wake_receive and immediately returns
17103 saying there's data to be read.
17105 4. Thread 2 reads the wakeup byte from wake_receive
17107 5. Thread 1 attempts to read the wakeup byte from
17110 6. Thread 2 exits (due to a form closing, perhaps).
17112 7. Thread 1 blocks forever.
17116 Fixing the Expose handling isn't done yet, and the races inherent
17117 in that piece of code are responsible for the drawing mistakes you
17118 see when generating expose events in a MT app (like NPlot). This
17119 one is the likely to be the hardest to bandaid, and it doesn't
17120 appear to cause anything but drawing problems. The other issues
17121 caused apps to exit or hang.
17123 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
17124 called from a different thread than the one that should be calling
17127 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
17129 2006-11-15 Chris Toshok <toshok@ximian.com>
17131 * Application.cs: null out the context's MainForm when we exit
17132 RunLoop. Fixes a newly checked in unit test as well as the last
17133 ODE from bug #79933.
17135 2006-11-15 Chris Toshok <toshok@ximian.com>
17137 * Form.cs (set_Owner): allow a null value so we can clear the
17139 (Dispose): set all our owned_form's Owner properties to null, and
17140 clear the owned_forms collection.
17141 (WM_CLOSE): clean up this a little bit.. still not right though.
17143 * ApplicationContext.cs: OnMainFormClosed should only call
17144 ExitThreadCore if the main form isn't recreating. Fixes unit
17147 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17151 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
17153 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17157 * Hwnd.cs: Add a flag to show a window, but not activate it, to
17158 keep popup window types from stealing focus from the main form
17161 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
17163 * MenuAPI.cs: Set above flag to true.
17165 2006-11-15 Chris Toshok <toshok@ximian.com>
17167 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
17168 the button being released is not in wParam.
17170 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17172 * Form.cs: Add the released button to MouseEventArgs.Button
17173 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
17176 2006-11-15 Chris Toshok <toshok@ximian.com>
17178 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
17179 GetText(). untested because it's unused in our implementation.
17180 Control.Text always caches the text, even if
17181 ControlStyles.CacheText is not set.
17185 2006-11-15 Chris Toshok <toshok@ximian.com>
17189 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
17190 message. no hiding, no disposing.
17192 in the WM_CLOSE handler, hide the form if it's modal.
17194 2006-11-15 Chris Toshok <toshok@ximian.com>
17196 * XplatUIX11.cs: use AddExpose instead of sending a message.
17197 fixes textbox border drawing.
17199 2006-11-15 Chris Toshok <toshok@ximian.com>
17201 * PropertyGridView.cs: keep from crashing on mouse move/down when
17202 the property grid is empty.
17204 2006-11-14 Jackson Harper <jackson@ximian.com>
17206 * TextControl.cs: Make PageUp and PageDown more like the MS
17208 * TextBoxBase.cs: When we set the text property position the
17209 cursor at the beginning of the document.
17211 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
17213 * Form.cs: if a mdi child's WindowState has changed
17214 before it's creation, it would display wrong control
17217 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
17219 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
17222 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
17224 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
17225 the window gets to paint its borders even if the window is
17228 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
17229 otherwise the old control buttons would still be painted
17230 if the window gets bigger.
17232 * PaintEventArgs.cs: add an internal method so that the clip
17233 rectangle can be changed.
17235 2006-11-13 Chris Toshok <toshok@ximian.com>
17237 [ fixes bug #79745 ]
17239 * NotifyIcon.cs: lots of cleanup.
17241 * X11Structs.cs: add an enum for XEMBED messages.
17243 * XplatUIX11.cs: reindent one of the giant switch statements, it
17244 was taking up an additional tab stop, and this file is already way
17245 too wide for my laptop's screen.
17247 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
17248 we get it, resize the hwnd to the WMNormalHints max_width/height.
17250 2006-11-13 Jackson Harper <jackson@ximian.com>
17252 * TextBoxBase.cs: Compute the value changes for the mouse wheel
17255 2006-11-13 Chris Toshok <toshok@ximian.com>
17257 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
17258 #79898. force a reference to the Region to stick around so the
17259 unmanaged object isn't collected (rendering our handle in the MSG
17262 2006-11-13 Chris Toshok <toshok@ximian.com>
17264 * XplatUIX11.cs: fix #79917 for window managers which support
17266 using XStoreName on the raw utf8, and we need to convert to
17267 COMPOUND_TEXT if it's non-latin1.
17269 2006-11-13 Chris Toshok <toshok@ximian.com>
17271 * Form.cs (set_DialogResult): we need to set closing to false if
17272 we're setting our result to None. fixes bug #79908.
17274 2006-11-13 Jackson Harper <jackson@ximian.com>
17276 * TextControl.cs: When formatting text, compute the adjusted tag
17277 lengths correctly, using FindTag for the end tag instead of trying
17278 to figure it out outselves.
17279 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
17280 the item, ItemHeight doesn't work, because trees with large
17281 imagelists use those for their height
17282 * TreeView.cs: ActualItemHeight factors in the image height
17283 - compute left edge of checkboxes correctly
17284 - when expanding/collapsing move the bottom down one pixel, so we
17285 aren't moving part of the node
17287 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17289 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
17290 stack in PaintEventStart so that it won't get disposed by the gc
17291 before reaching PaintEventEnd.
17293 2006-11-13 Jackson Harper <jackson@ximian.com>
17295 * TextBoxBase.cs: Don't select the word if we are on a line with
17297 - We don't need to position the caret on mouse up, since the mouse
17298 move handler should be doing this
17299 - When double clicking a blank line, the caret is advanced to the
17302 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
17304 * TreeNodeCollection.cs: Avoid duplicating indexer code.
17306 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
17308 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
17309 Fixes part of bug #79910.
17311 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
17313 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
17314 (bug #79903). Some minor string updates to match ms.
17316 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17318 * FileDialog.cs: Don't add an extension if the filename
17319 already ends with that extension.
17321 2006-11-10 Jackson Harper <jackson@ximian.com>
17323 * TreeView.cs: Use the currently highlighted node for the
17324 BeforeSelect event.
17325 * TextBoxBase.cs: There is no need to expand selection on
17327 - CanUndo means 'is there any undo operations', not 'is undo
17328 allowed on this textcontrol. Fixed ClearUndo unit test.
17330 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
17332 * Button.cs: only perform click when button is Selectable (so as
17333 not to activate default buttons when they're disabled)
17335 * Control.cs: Rewrite of the SelectNextControl and related
17336 methods. HandleClick now selects next control if the current one
17339 * Form.cs: OnActivated selects next active control only if Load
17340 has already occurred. If Load hasn't run, there's no point in
17341 selecting here, Load might change the state of controls.
17343 * FocusTest.cs: Tests marked as working again for these fixes
17345 2006-11-10 Chris Toshok <toshok@ximian.com>
17347 * XplatUIX11.cs: a couple of fixes.
17349 - use XInternAtoms with almost all the atoms we need to register,
17350 instead of many, many calls to XInternAtom. should help a bit on
17351 startup time, at the expense of making the code look a little
17354 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
17355 isn't reparented (which seems to be a clue that we're running fon
17356 compiz) and they have an Owner form. This fixes the tool windows
17357 in paint.net when running under compiz.
17359 - when setting the opacity of a window, support both the case
17360 where the window has been reparented and also when it hasn't been.
17361 Since compiz/beryl doesn't seem to reparent windows, and these are
17362 the only window managers which support translucency, I'm not sure
17363 why we need the hwnd.reparented case at all.. but leave it in.
17364 now we get translucent windows in paint.net under compiz/beryl.
17366 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17368 * FileDialog.cs: Always return the value for FilterIndex that
17369 was set. Internally convert it to values that make sense.
17371 2006-11-10 Everaldo Canuto <everaldo@simios.org>
17373 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
17375 2006-11-10 Everaldo Canuto <everaldo@simios.org>
17377 * Toolbar.cs: Change default value of DropDownArrows to true, the
17378 signature still using false to make it compatible with MS but the
17379 initial value is true. Fixes #79855.
17381 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17383 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
17384 only available on Linux.
17386 2006-11-09 Everaldo Canuto <everaldo@simios.org>
17388 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
17389 reduce number of calls to redraw method during toolbar creation.
17391 2006-11-09 Mike Kestner <mkestner@novell.com>
17393 * ListView.cs : raise SelectedIndexChanged when an item is selected
17394 programmatically via the Item.Selected property. Gert's nice
17395 ListViewSelectedIndexChanged test fixture now runs clean.
17397 2006-11-09 Mike Kestner <mkestner@novell.com>
17399 * ListView.cs : raise SelectedIndexChanged when a selected item is
17400 removed from the item collection using Remove or RemoveAt.
17402 2006-11-09 Mike Kestner <mkestner@novell.com>
17404 * ListView.cs : raise SelectedIndexChanged once per selected item
17405 for compat with MS. Fixes #79849+.
17407 2006-11-09 Chris Toshok <toshok@ximian.com>
17409 * TabControl.cs: initialize row_count to 0, and set it to 1 when
17410 we need to (if we have any tab pages). Fixes unit test.
17412 2006-11-09 Chris Toshok <toshok@ximian.com>
17414 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
17415 width is 0, not 3. Fixes a unit test.
17417 2006-11-09 Mike Kestner <mkestner@novell.com>
17419 * ListView.cs : use Implicit scrollbars so that focus isn't
17420 stolen from the listview when they are clicked. Fixes #79850.
17422 2006-11-09 Chris Toshok <toshok@ximian.com>
17424 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
17425 have a root item. Fixes #79879.
17427 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
17431 - An ArgumentException is now thrown if a wrong filter
17432 is applied (matches ms). The previous filter doesn't change
17433 anymore if an exception is thrown.
17434 - Changing the FileName property also affects FileNames
17435 * ColorDialog.cs: The length of the CustomColors array is always
17436 16. It doesn't matter if we use a smaller array or null to update
17437 or change the custom colors property.
17438 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
17439 for RootFolder if we get a undefined value.
17441 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17443 * StatusBarPanel.cs:
17444 - Width is set to MinWidth if Width is smaller than
17445 MinWidth. Fixes #79842.
17446 - MinWidth now always overrides Width (MSDN says MinWidth
17447 is set to Width when AutoSize = None, but they do not
17449 - Style has now the the correct default value.
17451 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17454 - The control is completely invalidated on
17455 Got/LostFocus to draw the focus rectangle correctly.
17456 - When AutoSize then height is always 45 (width for
17457 vertical controls).
17459 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
17460 on the mouse when moved and it doesn't move when grabbed
17461 until the mouse moves as well. Also fixed some wrong
17462 calculations when clicking on the thumb (control thought
17463 click was outside of thumb and didn't grab it).
17464 Fixes some of the issues in #79718.
17466 2006-11-08 Everaldo Canuto <everaldo@simios.org>
17468 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
17470 2006-11-08 Chris Toshok <toshok@ximian.com>
17472 * PropertyGridView.cs: only call ToggleValue if the item is not
17475 2006-11-08 Jackson Harper <jackson@ximian.com>
17477 * TextBoxBase.cs: The RichTextBox and textbox have very different
17478 word selection methods. Implement the textbox's simple word
17479 selection here, and let the RichTextBox override and provide it's
17481 - Don't do extra selection on mouseup
17482 * RichTextBox.cs: Use the documents word selection algorithm, I
17483 think ideally, this function will be pulled into the
17484 RichTextBox.cs code someday.
17486 2006-11-08 Chris Toshok <toshok@ximian.com>
17488 * RootGridEntry.cs: new class to represent GridItemType.Root.
17490 * CategoryGridEntry.cs: reformat, and add boilerplate.
17492 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
17493 returns the UI parent anyway, and we need special handling to
17494 implement the GetTarget method in the face of it. Also, implement
17497 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
17498 a root grid item, and use that instead of PropertyGrid.grid_items.
17499 Also, make use of TypeConverters (and add limitted support for
17500 ICustomTypeDescriptors) when initially populating the grid.
17501 Arrays now show up more or less properly.
17503 2006-11-08 Chris Toshok <toshok@ximian.com>
17505 * Application.cs: set the modal dialog to non modal after we close
17506 it. Fixes bug #79866.
17508 2006-11-08 Jackson Harper <jackson@ximian.com>
17510 * TextControl.cs: When combining lines carry over the line end
17511 style from the end line.
17512 - Invalidate the selected area when setting it, if it is visible.
17513 * TextBoxBase.cs: Only rich text box can do full line selects.
17514 - Make sure to set the cursor position when there is a click,
17515 otherwise two clicks in separate areas could cause a large chunk
17518 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17520 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
17523 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17525 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
17526 time. Remove tooltips when ToolButton click events. Fixes #79856.
17528 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17530 * MenuAPI.cs: Ignore right click for menu actions and fixes
17531 menu border when clicked. Fixes #79846.
17533 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17535 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
17536 MouseState after create wParam for message, this fixes mouse button
17537 equal none in mouse up events.
17539 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
17541 * Control.cs : Focus() now calls Select to set the Container's
17542 Active Control and to give it focus. To avoid infinite recursion
17543 (because ActiveControl also calls Focus at one point), a check
17544 is made in Focus with the help of a new internal variable
17547 2006-11-07 Mike Kestner <mkestner@novell.com>
17549 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
17550 if there's a selection. Fixes #79849.
17552 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
17554 * PropertyGrid.cs: Avoid fixed height of help description label.
17555 Fixes part of bug #79829.
17557 2006-11-07 Chris Toshok <toshok@ximian.com>
17559 * XplatUIX11.cs: fix #79790 again, by using the
17560 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
17562 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17564 * ToolBar.cs: Fix left click checking.
17566 2006-11-07 Chris Toshok <toshok@ximian.com>
17568 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
17570 2006-11-07 Chris Toshok <toshok@ximian.com>
17572 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
17573 PropertyManager unit tests.
17575 * PropertyManager.cs: make property_name internal.
17577 2006-11-07 Chris Toshok <toshok@ximian.com>
17579 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
17580 pass a unit test. Also, don't set image_index to anything in
17581 response to setting the ImageList property.
17583 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17585 * ToolBar.cs: Ignore click events when mouse button is not a
17586 left button, only accepts other button for dropdown menus.
17589 2006-11-07 Chris Toshok <toshok@ximian.com>
17591 * DataGrid.cs: make the back and parent row buttons a little less
17594 2006-11-07 Jackson Harper <jackson@ximian.com>
17596 * TextBoxBase.cs: When converting to Text don't put line breaks in
17597 for soft line breaks.
17598 * TextControl.cs: There is an initial "fake" line in the document,
17599 this is now a soft break line, so that an extra line feed doesn't
17600 get added to the end of documents.
17602 2006-11-07 Chris Toshok <toshok@ximian.com>
17606 * CurrencyManager.cs: if the list is readonly, don't bother
17607 checking if IBindingList.AllowNew is true.
17609 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
17610 for non-DataRowView datasources.. or rather, make it not crash.
17611 (DataGridPaintRelationRow): make sure we limit the row painting to
17612 the area not covered by the row header, and make our cell width at
17613 least large enough to cover the relation area. This allows grids
17614 that have relations but no rows to render correctly.
17615 (DataGridPaintRowContents): same type of changes here.
17616 (SetDataSource): move back to always calling
17617 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
17618 navigating back through relations.
17619 (HitTest): handle the case where we have no cells but have
17620 relations. Right now we generate a hit in cell 0 of whatever the
17621 row is, not sure if this is strictly correct, but it works for our
17624 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
17625 bother doing anything.
17627 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
17629 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
17630 early version of StatusStrip. Not responsible for eaten
17631 application or firstborn children.
17633 2006-11-06 Chris Toshok <toshok@ximian.com>
17635 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
17636 call GetTabRect with a -1 index. Fixes #79847.
17638 2006-11-06 Jackson Harper <jackson@ximian.com>
17640 * TreeNodeCollection.cs: Update scrollbars after clearing.
17642 2006-11-06 Chris Toshok <toshok@ximian.com>
17644 * NumericUpDown.cs: fix the ToString method for some unit test
17647 2006-11-06 Chris Toshok <toshok@ximian.com>
17650 - set the initial SelectedGridItem if we can.
17652 - Exclude non-mergable properties only if we're merging > 1
17653 object. Merging 1 object isn't really merging, obviously.
17655 - Handle PropertySort.NoSort just like Alphabetical, which is
17656 wrong of course, but at least gets things on the screen.
17658 * PropertyGridView.cs:
17659 - Add method "FindFirstItem" which finds the first property grid
17660 item, so we can select it by default.
17662 - make use of GridEntry.CanResetValue.
17664 - Don't call RedrawBelowItemOnExpansion here anymore, the
17665 individual GridEntry's will do that.
17667 - Remove the ITypeDescriptorContextImpl internal class.
17670 - this class needs to implement ITypeDescriptorContext, as it's
17671 what MS's PropertyDescriptorGridEntry does, which means we can
17672 remove the ITypeDescriptorContextImpl internal class from
17673 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
17675 - keep a reference to our PropertyGridView, and move the call to
17676 RedrawBelowItemOnExpansion here from PGV. This means
17677 programmaticly setting Expanded actually does something visible.
17679 - add a CanResetValue() function which takes into account our
17680 possibly multiple "selected_objects" in the merged case. Shifting
17681 PropertyGridView to use this method fixes another unreported
17682 crasher found running the test for #79829.
17684 - when Top or Bounds is updated, make sure the PropertyGridTextBox
17685 is updated to reflect this.
17687 * CategoryGridEntry.cs: the ctor takes the PGV now.
17689 2006-11-06 Jackson Harper <jackson@ximian.com>
17691 * TextControl.cs: These are 1 based.
17692 * TextBoxBase.cs: When setting the selected text, don't change the
17693 selected text tags, this is done by ReplaceText, just position the
17694 cursor at the end of the new text.
17696 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17698 * ListView.cs: Allow label edit only when, when LabelEdit is
17701 2006-11-06 Jackson Harper <jackson@ximian.com>
17703 * TextControl.cs: If a suitable wrapping position isn't found,
17704 just wrap right in the middle of a word.
17706 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17708 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
17711 2006-11-06 Jackson Harper <jackson@ximian.com>
17713 * TreeView.cs: Can't use the VisibleCount property when setting
17714 scrollbar heights, because this doesn't take into account whether
17715 or not the horz scrollbar just came visible.
17717 2006-11-05 Everaldo Canuto <everaldo@simios.org>
17719 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
17720 activated. Fixes #79369, #79832.
17722 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
17724 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
17725 had to remove support for links that point to a directory. FileInfo
17726 returns no usefull information (means, the directory they point to)
17727 for such links. Replaced some empty string ("") with String.Empty.
17729 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17731 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
17732 NullReferenceException when attempting to remove node that is not in
17733 collection. Throw NullReferenceException when null is passed to
17734 Remove. Allow first element of the collection to be removed. Fixes
17735 bug #79831. In GetEnumerator ().Current return null if positioned
17736 before the first element of the collection. In GetEnumerator ().Reset,
17737 position before first element of the collection.
17739 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17741 * PropertyGrid.cs: To match MS, remove default title and description
17742 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
17745 2006-11-04 Chris Toshok <toshok@ximian.com>
17747 * Theme.cs: add a Clamp method, just for kicks.
17749 * ThemeWin32Classic.cs: clamp all color components to [0..255].
17751 2006-11-04 Chris Toshok <toshok@ximian.com>
17753 * Form.cs: if the form isn't visible, Close() does nothing.
17755 2006-11-03 Chris Toshok <toshok@ximian.com>
17757 * Form.cs (Close): if the form is modal, don't Dispose of it, only
17759 (WndProc): don't Dispose after handling the WM_CLOSE message.
17761 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
17762 them as such, instead of using casts from Control to Form. Also,
17763 don't Dispose of the modal dialog when we fall out of the loop -
17764 Close() it instead.
17768 2006-11-03 Chris Toshok <toshok@ximian.com>
17770 * Control.cs (Dispose): only go through the dispose thing if we're
17771 @disposing, and we haven't already been disposed. Fixes bug
17774 * Form.cs: no reason to call "base.Dispose()" here instead of
17777 2006-11-03 Mike Kestner <mkestner@novell.com>
17779 * ComboBox.cs : use ToString instead of casts in AddItem for
17780 sorting functionality. Fixes #79812.
17782 2006-11-03 Chris Toshok <toshok@ximian.com>
17784 * Application.cs: pave the way for actually using the thread
17785 exception dialog. it's ifdefed out at the moment.
17787 2006-11-03 Chris Toshok <toshok@ximian.com>
17789 * ThreadExceptionDialog.cs: until we get a better layout, actually
17790 hide the details textbox and label when we shouldn't see them.
17792 2006-11-03 Jackson Harper <jackson@ximian.com>
17794 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
17795 multiline textboxes anymore. This method also determines the
17796 width/height of a textboxes canvas area.
17797 - Sorta a revert of the last patch. For multiline just position
17798 the controls, then bail. This way the scrollbar width won't be
17801 2006-11-03 Everaldo Canuto <everaldo@simios.org>
17803 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
17804 it dont need. Fixes #79537.
17806 2006-11-02 Jackson Harper <jackson@ximian.com>
17808 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
17809 send the status after firing the DndOver event.
17811 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17813 * TrackBar.cs: Now orientation only switches height / width if
17814 the control's handle is created (Win32 does it like this). Also
17815 fixed a typo in ToString() for a test to pass, changed the
17816 exception thrown in set_LargeChange and set_SmallChange to
17817 match Win32 behaviour, and added TrackBar tests to the unit
17820 2006-11-02 Chris Toshok <toshok@ximian.com>
17822 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
17823 not _NET_WM_STATE_NO_TASKBAR.
17825 2006-11-02 Jackson Harper <jackson@ximian.com>
17827 * TextControl.cs: Increment count by one, since in the update view
17830 2006-11-02 Jackson Harper <jackson@ximian.com>
17832 * TextBoxBase.cs: Use client rectangle not bounds for checking if
17833 the mouse is in the client rectangle (duh).
17835 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17837 * TrackBar.cs: Fixed trackbar jumping around when clicking
17838 on it - the trackbar was not detecting correctly at which
17839 side of the thumb the click was done. (fixes #79718)
17841 2006-11-02 Everaldo Canuto <everaldo@simios.org>
17843 * ListBox.cs: scroll visible area when change SelectedIndex to
17844 a non visible area. Fixes #79481.
17846 2006-11-01 Jackson Harper <jackson@ximian.com>
17848 * TextControl.cs: When replacing the selection move the selection
17849 start/end/anchor to the end of the new text.
17851 2006-11-01 Jackson Harper <jackson@ximian.com>
17853 * XplatUIWin32.cs: When setting the parent change the controls
17854 visibility to it's visibility flag, not to it's old parents
17855 visibility (.Visible walks the parent chain).
17857 2006-11-01 Chris Toshok <toshok@ximian.com>
17859 * XplatUIX11.cs: revert the #79790 fix, as the simple.
17860 XSetTransientForHint fix breaks paint .net's tool windows. more
17861 work needed for that one.
17863 2006-11-01 Chris Toshok <toshok@ximian.com>
17865 * ScrollBar.cs: throw ArgumentException instead of Exception in
17866 LargeChange/SmallChange setters. fixes unit tests.
17868 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
17870 * ContainerControl.cs: reverted rev.67183 (which was itself
17871 a reversion of rev.66853... eh).
17873 * Control.cs: Fixes Reflector hang by changing Focus() call
17874 to what it was before rev.66643 (calling Select() here sets
17875 ActiveControl, which in some situations calls back Focus and
17876 eventually does a stack overflow). Temp fix.
17877 Changes to GetNextControl() to not look for children to select when
17878 parent cannot be selectable (so it looks for siblings instead)
17880 2006-10-31 Mike Kestner <mkestner@novell.com>
17882 * CheckedListBox.cs : off by one error in returned index from
17883 ObjectCollection.Add. Fixes #79758.
17885 2006-10-31 Chris Toshok <toshok@ximian.com>
17887 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
17888 calls for the textbox/spinner, to keep from recursing to the point
17889 where we crash. Fixes #79760.
17891 2006-10-31 Chris Toshok <toshok@ximian.com>
17893 * ListControl.cs (set_SelectedValue): don't throw exceptions on
17894 null/"" value, just return. matches ms's behavior and fixes some
17897 2006-10-31 Chris Toshok <toshok@ximian.com>
17899 * Control.cs (set_Capture): make a logic a little easier to
17902 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
17903 if it's being destroyed. A necessary fix surely, but a bandaid
17904 also, to fix the stuck capture problem in bug #78413.
17906 2006-10-31 Chris Toshok <toshok@ximian.com>
17908 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
17909 convention of clearing hwnd.ClientRect when we set the
17910 width/height (so it'll be recalculated by Hwnd).
17912 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
17914 * ContainerControl.cs: reversed Contains check from
17915 ActiveControl due to hanging problems. This fix
17916 partly regresses #79667 (button does not have
17917 initial focus), so this might be a symptom for
17918 a larger parenting problem (set_ActiveControl
17919 is being called but the child control does
17920 not have the parent set yet?)
17922 2006-10-31 Mike Kestner <mkestner@novell.com>
17924 * MenuAPI.cs : fix keynav when menu is click activated.
17926 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
17928 * ToolStrip*: Version 0.2.
17930 * MenuStrip.cs: Version 0.1.
17932 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
17934 2006-10-30 Chris Toshok <toshok@ximian.com>
17936 [ fixes the oversized notify icon issue in bug #79745 ]
17938 * NotifyIcon.cs: scale the icon down to the size we're given by
17939 the XplatUI layer (this would be faster if we did it once instead
17940 of whenever we paint..) Also, remove the WM_NCPAINT handling,
17941 since it's never invoked.
17943 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
17944 pixels high by default, so let's hardcode our systray icon to that
17945 size. The SYSTEM_TRAY protocol should really have a way for
17946 client apps to query for the correct icon size.. but oh well. A
17947 couple of patches to deal with the screwy client_window ==
17948 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
17949 instance, and also make sure we don't XSelectInput twice).
17951 2006-10-30 Chris Toshok <toshok@ximian.com>
17953 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
17954 recreating forms. Control recreation is the bane of my existence.
17955 Fix it in a way that keeps everyone happy.
17957 2006-10-30 Chris Toshok <toshok@ximian.com>
17959 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
17960 just non-CHILD ones. otherwise sometimes scrollbars end up with
17961 client_windows not being resized to the proper size (ReportBuilder
17962 shows this extremely well).
17964 2006-10-30 Chris Toshok <toshok@ximian.com>
17966 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
17967 for non-WS_EX_APPWINDOW windows. This is what keeps them from
17968 showing up in the gnome taskbar. Fixes bug #79790.
17970 2006-10-30 Chris Toshok <toshok@ximian.com>
17972 * ApplicationContext.cs: guard against a NRE.
17974 * Application.cs: null out the old MainForm for the context, so we
17975 don't try to use it again once it's disposed. Fixes bug #79783.
17977 2006-10-30 Chris Toshok <toshok@ximian.com>
17979 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
17980 BindingContext, set the data source directly, otherwise do the
17981 lazy approach - the actual ListManager will be created when we get
17982 a BindingContext. Fixes bug #79700.
17984 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
17986 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17987 XplatUIX11.cs: Remove old 2 parameter SetVisible.
17989 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
17991 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
17993 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
17994 of SetVisible that allows a window to be shown, but not activated.
17995 This is needed on Windows for MenuStrip, and can probably be used
17996 with MainMenu and ComboBox to fix the focus stealing issues on
17999 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
18001 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
18003 * PictureBox.cs: Fix the output of the ToString method.
18005 2006-10-29 Chris Toshok <toshok@ximian.com>
18007 * Control.cs (get_TopLevelControl): fix bug #79781.
18009 2006-10-29 Chris Toshok <toshok@ximian.com>
18011 * ListControl.cs (set_DataSource): throw Exception here, not
18012 ArgumentException, to match MS behavior.
18014 2006-10-29 Chris Toshok <toshok@ximian.com>
18016 * Form.cs: remove the try-catch's around calls to GetWindowState.
18017 We can just check the return value.
18019 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
18022 * XplatUI.cs: Add note about additional return value for
18025 2006-10-29 Chris Toshok <toshok@ximian.com>
18027 * Control.cs (CreateHandle): when we create our handle, we also
18028 create the handles of our child controls. Fixes one of the
18029 Control unit tests (CH11).
18031 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18033 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
18035 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18037 * ThemeClearlooks.cs: A little speedup.
18039 2006-10-27 Chris Toshok <toshok@ximian.com>
18041 * Control.cs: implement Control.FromChildHandle in a way that
18042 matches the docs (and fixes the failed test.)
18044 2006-10-27 Chris Toshok <toshok@ximian.com>
18046 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
18049 * DataGrid.cs: implement ResetForeColor such that the tests
18052 2006-10-27 Chris Toshok <toshok@ximian.com>
18054 * ToolBarButton.cs: setting text/tooltiptext to null results in it
18055 being set to "". Fixes bug #79759.
18057 2006-10-27 Jackson Harper <jackson@ximian.com>
18059 * TextControl.cs: We need to clear the entire selection area when
18060 setting the start, otherwise multiline selections are still
18063 2006-10-26 Chris Toshok <toshok@ximian.com>
18065 * PropertyGridView.cs:
18067 - ifdef all the code specific to the double
18068 buffer case, and provide some alternatives in the non-doublebuffer
18069 code, which makes heavy use of XplatUI.ScrollWindow to move things
18070 around without having to invalidate (and cause flicker). There
18071 are still some drawing problems in the non-doublebuffered case, so
18072 DOUBLEBUFFER is defined by default.
18074 - Fix the way dropdowns are handled. now we explicitly watch for
18075 the events which might cause the dropdown to close, and break out
18076 of the nested event loop there. This gets rid of all Capture
18077 code, at the expense of the Msg special casing. Seems to work,
18078 though, and fixes bug #79743.
18080 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18081 * Control.cs: SetIsRecreating now recreates implicitly added
18082 child controls as well. Finally fixes #79629. The flag passed to
18083 SetIsRecreating has also been removed since it wasn't used.
18085 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18087 * PageSetupDialog.cs: Clean some code, fix some bits,
18088 add some checks, and add a printer sub-dialog.
18090 2006-10-26 Chris Toshok <toshok@ximian.com>
18092 * PropertyGrid.cs: make set_SelectedObject call
18093 set_SelectedObjects, and move the duplicate logic to the
18094 SelectedObjects setter. Also, raise SelectedObjectsChanged.
18096 * PropertyGridView.cs: hide the textbox when we get a
18097 SelectedObjectsChanged event.
18101 2006-10-26 Chris Toshok <toshok@ximian.com>
18103 * PropertyGridView.cs: deal with the type converter not supporting
18104 GetStandardValues() or GetStandardValues() returning null, which
18105 is does in the default case. Fixes #79742.
18107 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
18109 * CheckedListBox.cs: nunit no longer crashes when selecting
18110 Project/Edit menu option
18112 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
18114 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
18115 is no menu selected. fixes #79739
18117 2006-10-25 Chris Toshok <toshok@ximian.com>
18119 * PropertyGridView.cs: factor out the splitter invalidation code
18120 into the SplitterPercent setter, and for kicks implement the
18121 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
18122 amount in either direction.
18124 2006-10-25 Chris Toshok <toshok@ximian.com>
18126 * PropertyGridView.cs: do some cleanup of the brush used to draw
18127 text - read only fields should be grayed out. not sure how to do
18128 this with the textbox, though. but the textbox's should also be
18129 readonly now at least. Also, hide/show the textbox when resizing
18132 * CursorConverter.cs: use System.Reflection when getting the
18133 properties of Cursors, as TypeDescriptor.GetProperties isn't
18134 returning static properties.
18136 2006-10-25 Chris Toshok <toshok@ximian.com>
18138 * PropertyGridView.cs: factor out the up/down handling, and reuse
18139 it for page up/down. also add End/Home support.
18141 2006-10-25 Chris Toshok <toshok@ximian.com>
18143 * PropertyGridView.cs:
18145 - ensure the selected grid item is visible in the scrolled area,
18148 - fix Keys.Down handling when you're on the last item in the
18151 2006-10-25 Mike Kestner <mkestner@novell.com>
18153 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
18154 clicks too. Fixes #79725.
18156 2006-10-24 Chris Toshok <toshok@ximian.com>
18158 * PropertyGrid.cs: use property.Converter instead of
18159 TypeDescriptor.GetConverter(property.PropertyType), so we catch
18160 TypeConverters declared on the property as well as on the
18161 PropertyType. Fixes bug #79678.
18163 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
18165 * MimeIcon.cs, Mime.cs:
18166 Fallback to the default platform handler if no shared mime info
18167 stuff exists (fixes #79693).
18169 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18170 * ContainerControl.cs: Incorrect contains check in ActiveControl
18171 from previous fix (duh).
18173 2006-10-20 Chris Toshok <toshok@ximian.com>
18175 * PropertyGridView.cs: the dropdown should be MIN(number of items
18176 in list, 15). Fixes #79551.
18178 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18179 Fixes #79384, #79394, #79652, #79667
18182 - Modal windows are now destroyed in the proper order for windows
18184 * ContainerControl.cs:
18186 - ActiveControl setter has more conditions on when to return:
18187 - if we're reselecting the active control, but it actually
18188 didn't have focus (window hidden or some such), it runs
18189 - if the active control being selected doesn't actually
18190 exist in the container, it returns
18194 - The ShowDialog now gets the current form as the owner when
18195 invoking without parameters, and correctly activates the owner
18200 - MessageBox now catches the Escape key to exit
18202 2006-10-20 Chris Toshok <toshok@ximian.com>
18204 * PropertyGridView.cs: fix a number of issues (bug #78565, and
18205 most of bug #79676):
18207 - you can navigate around the property grid with the arrow keys.
18209 - the dropdown is sized properly when the pg has a vertical
18212 - fix the indentation for subentries, and properly select the
18215 - fix the gray bar's drawing (only draw it to the last element,
18216 not for the height of the control. Also make sure we draw that
18217 last horizontal grid line.
18219 - use the same mechanism the datagrid uses wrt the editing textbox
18220 when scrolling/resizing/etc. Namely, we hide it first, do the
18221 operation, then show it again (if it's still visible).
18223 - aggressively remove a lot of unnecessary refreshes (and also
18224 calls to Invalidate(). call more limited variants, and only redraw
18229 - when we're populating the merged collection, fill in the UI
18230 parent with either the passed in item, or the category item we
18233 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
18235 * GridItem.cs: drop some fully qualified names.
18237 * GridEntry.cs: add a "UIParent", which is basically the parent
18240 * GridItemCollection.cs: add an IndexOf method.
18242 2006-10-20 Mike Kestner <mkestner@novell.com>
18244 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
18245 a working win32 NC invalidation mechanism, we can't invalidate
18246 menus. [Fixes #79705]
18248 2006-10-20 Mike Kestner <mkestner@novell.com>
18250 * ListBox.cs : don't update the VScrollbar if the list is empty,
18251 just hide it. [Fixes #79692]
18253 2006-10-20 Jackson Harper <jackson@ximian.com>
18255 * RichTextBox.cs: Handle some special chars better, and don't skip
18256 the entire group when we encounter a special char that we don't
18259 2006-10-18 Chris Toshok <toshok@ximian.com>
18261 * PropertyGridView.cs: address a number of issues from bug #79676,
18262 mostly of the cosmetic variety.
18264 - The highlight rectangle for indented items not extends all the
18267 - Indented items aren't indented so much.
18269 - the dropdown is properly sized width-wise if the pg has a
18270 vertical scrollbar.
18272 2006-10-18 Chris Toshok <toshok@ximian.com>
18274 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
18275 systray stuff is rather convoluted to begin with.
18277 systray icons are a single window for some reason (that I haven't
18278 figured out yet), and for them, client_window == whole_window.
18279 Given the way the tests are structured elsewhere to determine
18280 which paints are pending (client vs. nc), that situation will
18281 always yield PAINT, not NCPAINT. So, if we have a pending
18282 nc_expose and no pending expose, remove the hwnd from the paint
18283 queue, and also set nc_expose_pending to false, to keep us from
18284 blocking further expose's adding the hwnd to the paint queue.
18286 phew. like i said, a rather convoluted change. Fixes the
18287 notifyicon repaint issues in bug #79645.
18289 2006-10-18 Chris Toshok <toshok@ximian.com>
18291 * Form.cs: when getting the backcolor of the form, don't get
18292 base.BackColor, as this allows parents to influence the background
18293 color. This breaks mdi forms. Instead, if the background_color
18294 is empty, return the default.
18296 2006-10-18 Chris Toshok <toshok@ximian.com>
18298 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
18299 to being private instead of internal static.
18301 * Control.cs: remove all the stupid ParentWaitingOnRecreation
18302 crap, it wasn't working for more deeply nested controls anyway,
18303 and we already have the is_recreating flag - use that instead.
18304 Before calling DestroyHandle in RecreateHandle, recurse through
18305 the control tree setting it to true. this returns the recreate
18306 code to much of its original simplicity, while now guaranteeing we
18307 actually recreate everything we're supposed to. This change gets
18308 fyireporting actually showing mdi children.
18310 2006-10-17 Chris Toshok <toshok@ximian.com>
18312 * Form.cs: remove some debug spew, and collapse some duplicate
18313 code at the end of SetClientSizeCore.
18316 - add some more debug spew here too wrt Destroy handling.
18317 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
18318 in Control's handling of WM_DESTROY.
18319 - Remove the handling of zombie window DestroyNotifies from the
18320 event loop - we don't need it. Now the only DestroyNotifies we
18321 actually handle are ones generated by X.
18322 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
18323 match gtk's (functioning) handling of this. This keep metacity
18324 from leaving droppings in the form of wm borders with no window
18325 contents all over the place.
18328 - add a bunch of debug spew wrt control recreation.
18329 - fix a bug where we weren't tracking Visible properly on
18331 - fixed the WM_PAINT double buffer handling to support re-entrant
18332 calls (yes, i know it's gross, but it's happening to us).
18334 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18335 * ThemeWin32Classic.cs: changed drawing of selected days
18336 to make them look better.
18338 2006-10-16 Chris Toshok <toshok@ximian.com>
18340 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
18341 drawing_stack. Nuke the ClientDC/NonClientDC properties.
18343 * XplatUIX11.cs: move away from using hwnd.client_dc and
18344 hwnd.non_client_dc and on to a stack of dc's (and in window's
18345 case, PAINTSTRUCT's), so we can deal with nested Paint calls
18346 without puking or not disposing of Graphics objects.
18348 * XplatUIOSX.cs: same.
18350 * XplatUIWin32.cs: same.
18352 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
18354 * FileDialog.cs: Don't call on_directory_changed inside
18355 OnSelectedIndexChanged (it changes the SelectedIndex too).
18356 Instead move it to OnSelectionChangeCommitted.
18358 2006-10-13 Chris Toshok <toshok@ximian.com>
18360 * XplatUIX11.cs: more Destroy work. the current code does the
18361 following things, in order:
18363 1. Enumerates all handles of all controls at or below the one
18364 being destroyed, in pre-order. As it is doing this, it marks the
18365 handles as zombie and clears all references to them.
18367 2. calls XDestroyWindow on the window passed in.
18369 3. SendMessage's WM_DESTROY to all he handles in the accumulated
18372 2006-10-13 Chris Toshok <toshok@ximian.com>
18374 * XplatUIX11.cs: set hwnd.zombie to true before calling
18375 SendMessage (WM_DESTROY). this keeps us from marking the new
18376 window a zombie, and also keeps us from calling sendmessage at
18379 2006-10-13 Jackson Harper <jackson@ximian.com>
18381 * TextControl.cs: Do not show the caret and selection at the same
18382 time. Reduces ugliness by 35%.
18384 2006-10-13 Chris Toshok <toshok@ximian.com>
18386 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
18387 zombie after we do the recursive call, so we actually do call
18388 SendMessage on the children controls.
18389 (GetMessage): if we find a pending paint event for a zombie hwnd,
18390 remove the hwnd from the paint queue, or else it will always be
18391 there (and we'll effectively loop infinitely)
18393 2006-10-13 Mike Kestner <mkestner@novell.com>
18395 * MenuItem.cs : add Selected format under keynav too.
18398 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
18400 * PropertyGrid.cs: Fixed some NRE's and small difference between our
18401 implementation and that of MS.
18403 2006-10-13 Chris Toshok <toshok@ximian.com>
18405 * Control.cs (OnInvalidated) only futz with the invalid_region if
18406 the control is double buffered. this fixes the apparent hang in
18407 the ListView unit tests. Someone needs to make the
18408 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
18410 2006-10-13 Chris Toshok <toshok@ximian.com>
18412 * PropertyGridView.cs:
18414 - do a little refactoring so that only one place calls
18415 dropdown_form.Hide, and that is CloseDropDown. make everywhere
18416 else call that. Also make it Refresh, since there are redraw bugs
18417 otherwise (we should take a look at that...)
18419 - do a little more refactoring work to share the body of code
18420 involved with the drop down. it was duplicated in the code
18421 dealing with the listbox handling and in the code dealing with the
18424 - add a Capture to the dropdown form's control once it's
18425 displayed, and add a MouseDown handler that checks to make sure
18426 the position is inside the control. If it's not, close the
18427 dropdown. This fixes #78190.
18429 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
18430 if the value is different than the initial value.
18432 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
18434 * Control.cs: see #78650
18435 - Fixed GetNextControl for several cases:
18436 - Changed FindFlatForward to return
18437 correct sibling control when more than one
18438 control has same TabIndex as the currently
18440 - Changed FindFlatBackward to loop children
18441 from last to first and apply same logic as in
18443 - Changed FindControlForward to search for
18444 children when control is not a container
18445 but has children, or search for siblings if
18446 control is a container...
18447 - Changed FindControlBackward to continue
18448 searching for child controls when hitting
18451 - Fixed Focus method to update ActiveControl
18452 (FocusTest.FocusSetsActive failure)
18455 - Focus rectangle now refreshes when gaining
18457 - Removed grab for Tab key on IsInputKey that
18458 was keeping tab navigation from working (#78650)
18460 2006-10-13 Chris Toshok <toshok@ximian.com>
18462 * PropertyGridView.cs:
18463 - Rewrite SetPropertyValue to loop over SelectedGridItem's
18466 - Deal with GridItem.Value == null a few places.
18469 - replace the PopulateGridItemCollection with a pair of methods
18470 which compute the intersection of all the properties in the
18471 SelectedObjects array. Fixes #79615.
18473 - Throw ArgumentException from set_SelectedObjects if there's a
18476 - Add GetTarget method which can be used to traverse up the
18477 GridItem.Parent chain. It depends on the assumption that
18478 selected_objects for different GridEntries are always in the same
18479 order (a safe assumption). Use this method and loop over all the
18480 selected objects in the entry when calling RemoveValueChanged and
18483 * GridEntry.cs: Make this handle multiple selected objects.
18484 .Value returns null if not all the selected objects share the same
18487 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
18488 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
18489 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
18490 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
18491 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
18492 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
18493 add additional functionality.
18495 2006-10-12 Mike Kestner <mkestner@novell.com>
18497 * ErrorProvider.cs : new ToolTipWindow ctor sig.
18498 * HelpProvider.cs : new ToolTipWindow ctor sig.
18499 * ToolTip.cs : remove ToolTip param from Window sig since it is
18501 * ToolBar.cs : add tooltip support. Fixes #79565.
18503 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18505 * ComboBox.cs: move the events in set_SelectedIndex to
18506 after the call to HighlightIndex in order to avoid
18507 possible recursion and subsequent problems with the call
18508 to HighlightIndex and include a range check in
18509 set_HighlightIndex. Fixes #79588
18511 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18513 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
18514 to ui thread's settings instead of sunday.
18515 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
18517 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18519 * DateTimePicker.cs
18521 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
18522 and implement missing functionality (selecting different parts
18523 of the date and edit them individually with the keyboard).
18525 2006-10-11 Chris Toshok <toshok@ximian.com>
18527 * Control.cs (OnInvalidated): fix NRE relating to last change.
18529 2006-10-11 Chris Toshok <toshok@ximian.com>
18531 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
18532 atoms in _NET_WM_STATE here if the window is maximized. We need
18533 to do this because we're *replacing* the existing _NET_WM_STATE
18534 property, so those atoms will be lost otherwise, and any further
18535 call to GetWindowState will return Normal for a window which is
18536 actually maximized. Fixes #79338.
18538 2006-10-11 Jackson Harper <jackson@ximian.com>
18540 * TextControl.cs: Special case for setting selection end to
18541 selection start, we basically kill the anchor.
18542 - some todo comments.
18544 2006-10-11 Chris Toshok <toshok@ximian.com>
18546 * Control.cs: switch to using an "invalid_region" to track which
18547 parts of the image buffer need updating. This is more code than
18548 the simple fix from r66532. That version just attempted to always
18549 fill the entire buffer on redraw, which turns out to be
18550 inefficient when invalidating small rectangles. This version
18551 simply adds the invalid rectangle to the invalid region. When we
18552 get any WM_PAINT message we see if it can be filled using the
18553 image buffer, and if it can't (if the paint event's clip rectangle
18554 is visible in the invalid region) we first fill the image buffer.
18555 So, the image buffer is still a cache, we just fill it lazily.
18557 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
18558 need it any longer.
18560 2006-10-11 Chris Toshok <toshok@ximian.com>
18562 * XplatUIX11.cs (SetWindowPos): we need to update both position as
18563 well as size after calling XMoveResizeWindow. This keeps us from
18564 ignoring future SetWindowPos calls. Fixes the disappearing
18565 DateTimePicker in the ToolBarDockExample from bug #72499.
18567 2006-10-11 Chris Toshok <toshok@ximian.com>
18569 * TextBoxBase.cs: reorder things a bit when it comes to
18570 resizing-causing-recalculation. we were recalculating the
18571 document when our position was changed, which shouldn't happen.
18572 We only care about size changes. Clear up some more redundant
18573 recalculation calls while I'm at it. This makes the toolbar dock
18574 example snappy when you're just dragging toolbars around (since it
18575 causes a relayout whenever you move one.)
18577 2006-10-11 Chris Toshok <toshok@ximian.com>
18579 * ToolBarButton.cs (get_Rectangle): this only returns
18580 Rectangle.Empty if Visible == false, or Parent == null.
18581 Parent.Visible doesn't matter.
18583 2006-10-10 Chris Toshok <toshok@ximian.com>
18585 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
18586 by .net 1.1, so switch to an internal method instead.
18588 2006-10-10 Chris Toshok <toshok@ximian.com>
18590 * Control.cs (WM_PAINT): when a control is double buffered we draw
18591 initially to the ImageBuffer and then copy from there. But when a
18592 parent control which has child controls is double buffered, the
18593 initial drawing doesn't encompass the entire ClientRectangle of
18594 the parent control, so we end up with uninitialized bits (this is
18595 easily seen by dragging the top toolbar in
18596 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
18597 manually set the ClipRectangle of the paint_event (only the one we
18598 use to populate the ImageBuffer) to ClientRectangle. Fixes more
18599 of the nastiness in bug #72499.
18601 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
18602 which we use in Control.cs's WM_PAINT handling.
18604 2006-10-10 Jackson Harper <jackson@ximian.com>
18606 * TextBoxBase.cs: Finish off the autoscrolling stuff.
18608 2006-10-10 Chris Toshok <toshok@ximian.com>
18610 * Cursor.cs: Apply a slightly different patch to the one suggested
18613 2006-10-10 Jackson Harper <jackson@ximian.com>
18615 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
18616 not the parent form.
18617 * TextControl.cs: use difference in old line count vs new count to
18618 calculate how many lines were added, this takes into account soft
18619 line breaks properly.
18621 2006-10-10 Chris Toshok <toshok@ximian.com>
18623 * LinkLabel.cs: don't call MeasureCharacterRanges against a
18624 rectangle located at 0,0 and the size of the text. Use
18625 ClientRectangle instead. This fixes rendering of non-left aligned
18628 2006-10-10 Jackson Harper <jackson@ximian.com>
18630 * TextBoxBase.cs: When we set the selection start position the
18632 * TextControl.cs: Need to update the caret when we decrement it to
18634 - Make sure that the selection_visible flag gets reset to false if
18635 the selection isn't visible. Before this you could get it set to
18636 visible by changing the selection start, then changing the end to
18639 2006-10-09 Jackson Harper <jackson@ximian.com>
18641 * TreeView.cs: Don't update scrollbars when we aren't visible.
18642 * TreeNodeCollection.cs: Only need to update scrollbars if being
18643 added to an expanded visible node or the root node.
18645 2006-10-09 Chris Toshok <toshok@ximian.com>
18647 * XplatUIX11.cs (SendMessage): fix NRE.
18649 2006-10-09 Jackson Harper <jackson@ximian.com>
18651 * TextBoxBase.cs: Implement horizontal autoscrolling.
18652 * TextControl.cs: Add a movement types that allows moving forward
18653 and backwards without wrapping.
18655 2006-10-09 Mike Kestner <mkestner@novell.com>
18657 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
18658 with focus "expansion" of labels. Fixes #79532 and then some.
18659 * ThemeWin32Classic.cs : add LineLimit to ListView label format
18662 2006-10-09 Jackson Harper <jackson@ximian.com>
18664 * TextBoxBase.cs: Set the default max values to MaxValue since
18665 we use the scrollbar for autoscrolling and the default value is
18666 100. If we don't do this the caret won't keep up with typing
18667 after about 18 characters.
18668 * TextControl.cs: Make sure the selection is offset by the
18669 viewport x. This fixes selection when using auto scrolling.
18671 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
18673 * Form.cs: The active control should be selected after the
18674 OnLoad so that any child control initialization that affects
18675 the selection is done. Fixes #79406
18677 2006-10-06 Chris Toshok <toshok@ximian.com>
18679 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
18680 to have no evil effects.
18682 - Stop selecting StructureNotifyMask on non-toplevel windows.
18684 The only way children should be resized is by using the SWF api,
18685 and we already send WM_WINDOWPOSCHANGED messages in those cases.
18686 Toplevel windows can be interacted with via the window manager,
18687 and so we keep the input mask there.
18689 The other event StructureNotifyMask gives us (that we care
18690 about) is DestroyNotify. The code is already structured such
18691 that it assumes we won't be getting a DestroyNotify event for
18692 the window we pass to XDestroyWindow (which is what
18693 StructureNotifyMask is supposed to guarantee.) So, that code
18694 shouldn't be affected by this either.
18696 - Stop selecting VisibilityChangeMask altogether.
18698 We weren't doing anything with the resulting events anyway.
18700 This vastly reduces the number of X requests and events we see
18701 when resizing/laying out a large ui.
18703 2006-10-06 Chris Toshok <toshok@ximian.com>
18705 * ScrollableControl.cs (DisplayRectangle): we need to take into
18706 account the DockPadding regardless of whether or not auto_scroll
18707 == true. rework this slightly to this effect, and fix bug #79606,
18708 and part of #72499 (you can now see the drag handles and drag
18711 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
18713 * ListViewItem.cs: Collections of selected and checked items are now
18714 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
18715 we mark the collection "dirty".
18716 * ListView.cs: Marked collections readonly. Modified UpdateSelection
18717 to only clear SelectedItems when a new item is selected and MultiSelect
18718 is enabled. CheckedItems and SelectedItems now subscribe to Changed
18719 event of ListViewItemCollection, and mark its list dirty whenever
18720 that event is fire. This allows us to return selected/checked items
18721 in the same order as they are in the Items collection. This matches
18724 2006-10-06 Chris Toshok <toshok@ximian.com>
18726 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
18727 right mouse clicks. Fixes bug #79593.
18729 2006-10-06 Chris Toshok <toshok@ximian.com>
18731 * Splitter.cs: doh, fix splitters that don't want to cancel the
18732 movement when you drag them. Also, impose the limits on the
18733 values we send to the SplitterMovingEvent. Fixes #79598.
18735 2006-10-06 Jackson Harper <jackson@ximian.com>
18737 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
18738 since we use this for auto scrolling also.
18740 2006-10-05 Chris Toshok <toshok@ximian.com>
18742 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
18743 beginning to think that most datagrid column types don't need this
18744 method. Fixes bug #79392.
18746 2006-10-05 Chris Toshok <toshok@ximian.com>
18748 * DataGrid.cs: move back to a more lazy scheme for creating the
18749 CurrencyManager, so we aren't updating it every time you set
18750 either DataSource or DataMember. Also, don't call
18751 RecreateDataGridRows if the currency manager hasn't changed.
18753 2006-10-05 Chris Toshok <toshok@ximian.com>
18755 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
18756 emitted, SelectedIndex should already be updated. Fixes bug
18759 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
18761 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
18762 ToolStripTextBox.cs: Initial commit.
18763 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
18765 2006-10-05 Jackson Harper <jackson@ximian.com>
18767 * TabControl.cs: We need to invalidate the tab control area when
18768 new ones are added (duh).
18770 2006-10-03 Chris Toshok <toshok@ximian.com>
18772 * Form.cs (ProcessDialogKey): if the focused control is in this
18773 form and is a button, call its PerformClick method here. Fixes
18776 2006-10-04 Jackson Harper <jackson@ximian.com>
18778 * TabPage.cs: Ignore setting of Visible, and add an internal
18779 method for setting the controls visibility. TabPage's Visible
18780 property is a little strange on MS, this seems to make us
18781 compatible, and fixes cases where people set all the tab pages to
18783 * TabControl.cs: Use the new internal setting on tab pages
18786 2006-10-03 Mike Kestner <mkestner@novell.com>
18788 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
18790 2006-10-03 Mike Kestner <mkestner@novell.com>
18792 * ListView.cs : use is_visible instead of Visible to check if
18793 scrollbars should be placed/sized. Also some max_wrap_width
18794 love for LargeIcon view. [Fixes #79533]
18796 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
18799 Make set_TextAlign() do actually update the align. Fixed #78403.
18801 2006-10-03 Chris Toshok <toshok@ximian.com>
18803 * DataGrid.cs: fix a crash when switching datasources if the
18804 vertical scrollbar is at someplace other than Value = 0. Also,
18805 reduce the number of recalculation passes we do in SetDataSource
18808 2006-10-03 Jackson Harper <jackson@ximian.com>
18810 * TextBoxBase.cs: Move the if value the same bail check up, we
18811 don't want to empty the document if it is already empty, this
18812 seems to severly mess up the caret. TODO: I should probably fix
18813 the empty statement to update teh caret somehow.
18815 2006-10-03 Chris Toshok <toshok@ximian.com>
18817 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
18818 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
18819 reflection, an internal row type, properties on said type, etc.)
18820 will work with our datagrid. Fixes #79531.
18822 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
18824 * FileDialog.cs: Don't crash if a path is not accessible
18825 (System.UnauthorizedAccessException). Fixes #79569.
18826 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
18827 a ':' too. Return unknown icon for those paths/files.
18829 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
18831 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
18832 GetContainerControl returns null.
18834 2006-10-02 Chris Toshok <toshok@ximian.com>
18836 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
18837 call to XGetWindowAttributes instead of "handle". fixes an X
18838 error using notifyicon after the NotifyIconWindow to Form base
18841 2006-10-02 Chris Toshok <toshok@ximian.com>
18843 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
18844 server grab and looping we need to do to get down to the most
18845 deeply nested child window.
18846 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
18847 QueryPointer again after the WarpPointer so we can generate a
18848 proper (fake) MotionNotify event to be enqueued in the destination
18850 (GetCursorPos): call QueryPointer.
18854 2006-10-02 Jackson Harper <jackson@ximian.com>
18856 * NotifyIcon.cs: Derive the notify icon from a form, so things
18857 like FindForm work on it.
18858 - Swallow the WM_CONTEXTMENU message, since that is generated on
18859 mouse down, and context menu is a mouse up kinda guy. I believe
18860 the correct fix here is probably to make the notify icon entirely
18861 NC area, but this seems to work fine for anyone not manipulating
18864 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
18866 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
18867 ToolStripItemCollection.cs, ToolStripLabel.cs,
18868 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
18869 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
18870 Initial implementation.
18871 * TextRenderer.cs: Provide padding to MeasureText.
18873 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
18875 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
18876 of ButtonBaseAccessibleObject. Fix bug #79552.
18878 2006-10-02 Jackson Harper <jackson@ximian.com>
18880 * MdiWindowManager.cs: When maximizing use the containers client
18881 rect, not it's bounds, so nc area is accounted correctly.
18882 - Use the parent form's size for the menu position, since the
18883 client isn't always the full form size.
18885 2006-10-01 Chris Toshok <toshok@ximian.com>
18887 * ScrollableControl.cs: make sure neither right_edge or
18888 bottom_edge are < 0, since they're used as LargeChange for the
18889 horiz/vert scrollbars respectively. Fixes #79539.
18891 2006-10-01 Chris Toshok <toshok@ximian.com>
18893 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
18894 the xplatuix11 code can cause us to destroy/recreate our handle.
18898 - this code can be invoked many times for the same Hwnd. Make
18899 sure we only destroy the client window once (the first time this
18900 method is called). This fixes bug #79544.
18901 - Remove the call to the improperly bound XSync. why we had two
18902 bindings to this, I will never know, but this call resulted in
18903 events being discarded from the queue(!).
18904 - correct a misunderstanding of _XEMBED_INFO - the second atom is
18905 not our current state but the state we wish to be in. So, 0 if
18906 we don't want to be mapped. Change it to 1.
18907 (SystrayRemove): The XEMBED spec makes mention of the fact that
18908 gtk doesn't support the reparent of client windows away from the
18909 embedder. Looking at gtksocket-x11.c seems to agree with this.
18910 The only avenue we have for removing systray icons is to destroy
18911 them. We don't want the handle to go away for good, though, so
18912 call InternalRecreateHandle on the NotifyIconWindow. Fixes
18915 2006-10-01 Chris Toshok <toshok@ximian.com>
18917 * Form.cs (WndProc): inline the native_enabled variable usage into
18918 the cases in which it's used. Fixes #79536.
18920 2006-09-29 Mike Kestner <mkestner@novell.com>
18922 * ListView.cs : toggle the selection state for ctrl clicks in
18923 multiselect mode. [Fixes #79417]
18925 2006-09-29 Mike Kestner <mkestner@novell.com>
18927 * ListView.cs : kill CanMultiSelect and refactor the selection
18928 code to support multiselection in the absence of mod keys. Steal
18929 arrow/home/end keys by overriding InternalPreProcessMessage to
18930 restore regressed keynav behavior.
18933 2006-09-29 Jackson Harper <jackson@ximian.com>
18935 * MdiClient.cs: Repaint the titlebars when the active window is
18938 2006-09-29 Chris Toshok <toshok@ximian.com>
18940 * Application.cs: when entering a runloop with a modal, make sure
18941 the hwnd is enabled. Fixes #79480.
18943 2006-09-29 Chris Toshok <toshok@ximian.com>
18945 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
18946 when ListManager.CanAddRows == false, bump us back one.
18948 * DataGridColumnStyle.cs (ParentReadOnly): remove the
18949 listmanager.CanAddRows check. This makes ArrayLists uneditable
18950 using a datagrid, which is not right.
18951 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
18952 is an IEditable, but call property_descriptor.SetValue regardless.
18955 2006-09-29 Chris Toshok <toshok@ximian.com>
18957 * DataGridBoolColumn.cs: we need to test equality in the face of
18958 possible null values (as is the case with the default NullValue).
18959 This patch keeps us from crashing in that case.
18961 2006-09-29 Jackson Harper <jackson@ximian.com>
18963 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
18964 here, since it will get called for every node collection in the
18965 tree. This is now done in the treeview once the sorting is
18967 * TreeView.cs: Recalculate the visible order, and update the
18968 scrollbars after sorting, set the top nope to the root so that the
18969 recalc actually works.
18971 2006-09-29 Chris Toshok <toshok@ximian.com>
18973 * LinkLabel.cs: more handling of the default link collection in
18974 the face of LinkArea manipulation. The default link collection
18975 contains 1 element (start=0,length=-1). If the user sets LinkArea
18976 to anything and the links collection is the default, clear it.
18977 Then only add the link if its nonempty. Fixes #79518.
18979 2006-09-29 Chris Toshok <toshok@ximian.com>
18981 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
18982 piece correctly when we hit a '\n'. Fixes #79517.
18984 2006-09-29 Chris Toshok <toshok@ximian.com>
18986 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
18987 change the binding of gdk_init_check to take two IntPtr's, and
18988 pass IntPtr.Zero for both of them. Fixes #79520.
18990 2006-09-29 Mike Kestner <mkestner@novell.com>
18992 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
18995 2006-09-28 Jackson Harper <jackson@ximian.com>
18997 * XplatUIX11.cs: When translating NC messages make sure we go from
18998 whole window to screen, not client window to screen.
18999 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
19000 method doesn't exist
19001 - Skip over controls that aren't forms when arranging.
19003 2006-09-28 Jackson Harper <jackson@ximian.com>
19005 * XplatUIWin32.cs: Clip the rect to the parent window.
19006 * XplatUIStructs.cs: Add clipping modes struct.
19007 * InternalWindowManager.cs: New private method that factors title
19008 bar heights in when calculating the pos of an NC mouse message.
19009 - Use SendMessage to force a paint when the form's size is changed
19010 instead of painting the decorations immediately.
19011 - Don't let the NC button click messages get to DefWndProc,
19012 because they will attempt to handle windowing themself, and this
19013 messes up z-order (it will put them in front of the scrollbars).
19014 * XplatUIX11.cs: Make sure that we don't reset window managers if
19015 we already have one (ie the window is an MDI window).
19017 2006-09-28 Chris Toshok <toshok@ximian.com>
19019 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
19020 menu code really needs going over.
19022 2006-09-27 Chris Toshok <toshok@ximian.com>
19024 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
19025 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
19026 window is maximizable. So, we need to make sure that even if we
19027 clear the border/wm frame of those functions, they're still
19028 available (basically, we remove the decoration without removing
19029 the function). Half the fix for #79338.
19031 2006-09-27 Chris Toshok <toshok@ximian.com>
19033 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
19036 2006-09-27 Chris Toshok <toshok@ximian.com>
19038 * Splitter.cs: reorder things a bit so that we don't actually
19039 draw/move the splitter until after calling OnSplitterMoving. This
19040 lets users cancel/disallow the movement by explicitly setting
19041 event.SplitX/SplitY. Fixes #79372.
19043 2006-09-27 Jackson Harper <jackson@ximian.com>
19045 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
19046 because it is most likely on a window being destroyed, and that
19047 will give us an X11 error.
19049 2006-09-27 Chris Toshok <toshok@ximian.com>
19051 * PropertyGridView.cs: half of the fix for #78190. Clicking on
19052 the dropdown button now toggles between showing and hiding the
19053 dropdown. Also, get rid of dropdown_form_showing and just use
19054 dropdown_form.Visible. We still don't do a grab, but I'll leave
19055 that part to someone who has handled Capture-fu before.
19057 2006-09-27 Chris Toshok <toshok@ximian.com>
19059 * DataGrid.cs: return false if alt isn't pressed when '0' is
19060 pressed. this keeps the '0' key from being swallowed, and fixes
19063 2006-09-27 Chris Toshok <toshok@ximian.com>
19065 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
19066 Calling Refresh (in response to a scrollbar event) screws up the
19067 scrollbar painting. Fixes bug #78923.
19069 2006-09-27 Chris Toshok <toshok@ximian.com>
19071 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
19072 then insert into hashtable" blocks threadsafe.
19074 2006-09-27 Chris Toshok <toshok@ximian.com>
19076 * MessageBox.cs (CreateParams): the styles should be |'ed with our
19077 baseclass's, since otherwise the
19078 ControlBox/MinimizeBox/MaximizeBox assignments above have no
19079 effect. This gets the close button back in messageboxes.
19081 2006-09-27 Chris Toshok <toshok@ximian.com>
19083 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
19084 flag, not just != 0. this makes flags that are actually multiple
19085 bits (like WS_CAPTION) work. fixes bug #79508.
19087 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
19089 * PageSetupDialog.cs: add support for getting and settings the
19090 paper size, source and orientation.
19092 2006-09-26 Chris Toshok <toshok@ximian.com>
19094 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
19095 and caption == "", we need to remove the resize handles as well as
19098 * Control.cs (set_Text): turns out that setting Text on a form
19099 should change the WM styles on the window, since if ControlBox ==
19100 false, the only way to get a window border is to have a non-""
19101 Text property. check winforms/forms/text.cs for an example. so,
19102 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
19103 update both window styles and title. This fixes a lot of dialogs
19104 (including the preferences dialog in MonoCalendar.)
19106 2006-09-26 Chris Toshok <toshok@ximian.com>
19108 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
19109 control isn't a Form), call Win32ShowWindow to hide the window,
19110 but don't update the control Visible property. When we reparent
19111 back to a parent control, call SetVisible in order for the
19112 window's visibility to be reinstated.
19114 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
19117 * Control.cs (ControlCollection.Remove): remove that value.Hide()
19118 call for good, since it breaks MonoCalendar (and other things I'm
19119 sure.) Also, set all_controls to null *after* the owner calls,
19120 which end up regenerating it.
19121 (ChangeParent): allow new_parent to be == null, passing
19122 IntPtr.Zero down to XplatUI.
19124 this fixes #79294 the right way.
19126 2006-09-26 Mike Kestner <mkestner@novell.com>
19128 * GridEntry.cs : internal SetParent method.
19129 * PropertyGrid.cs : attach to property changed on the proper
19130 target if we have a hierarchical grid with subobjects. Setup
19131 GridItem.Parent for hierarchical items.
19132 * PropertyGridView.cs : Set value on the correct target for
19133 hierarchical grids. [Fixes #78903]
19135 2006-09-26 Chris Toshok <toshok@ximian.com>
19137 * Control.cs (ChildNeedsRecreating): this should return true if
19138 either we're being recreated and the child is in our list, or our
19139 parent is waiting for our recreation.
19141 2006-09-26 Chris Toshok <toshok@ximian.com>
19143 * Control.cs (ControlCollection.Remove): reinstate the
19144 value.Hide() call as suggested in bug #79294.
19146 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
19148 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
19149 coordinates (versus a relative move).
19151 2006-09-26 Chris Toshok <toshok@ximian.com>
19153 * Control.cs: rework child recreation a little bit. It turns out
19154 that we race between the DestroyNotify the WM_DESTROY message. If
19155 the parent gets its DestroyNotify before the child gets the
19156 WM_DESTROY message, the child ends up not recreating (since the
19157 parent finishes its recreation on DestroyNotify, and the child
19158 checks ParentIsRecreating.)
19160 So, instead we store off a list of all the child controls which
19161 need to be recreated when the parent control starts to recreate
19162 itself. Then, when child controls get their WM_DESTROY message we
19163 check to see if they're in the parent's pending recreation list,
19164 and if so, we recreate. This removes all dependency on ordering
19165 from the code and fixes the initial MonoCalendar upgrade dialog.
19167 2006-09-26 Jackson Harper <jackson@ximian.com>
19169 * TextControl.cs: Use the Line to get the length of the line,
19170 since soft line breaks can change the end line.
19172 2006-09-26 Chris Toshok <toshok@ximian.com>
19174 * Control.cs (ControlCollection.AddImplicit): don't add the
19175 control again if it's already in one of our lists. This keeps us
19176 from adding controls over and over again for comboboxes when their
19177 handle gets recreated (as the combobox adds implicit controls in
19178 OnHandleCreated). Fixes the X11 errors in bug #79480.
19180 2006-09-26 Jackson Harper <jackson@ximian.com>
19182 * TextControl.cs: When deleting characters make sure that any
19183 orphaned zero lengthed tags get deleted.
19184 - Fix ToString for zero lengthed tags.
19186 2006-09-25 Jackson Harper <jackson@ximian.com>
19188 * TextControl.cs: When getting a tag at the location there can be
19189 multiple tags at the same spot, these are 0-lengthed tags that
19190 appear when extra formatting has been stuck in a location. We
19191 need to pull out the last of these 0 lengthed tags.
19193 2006-09-25 Jackson Harper <jackson@ximian.com>
19195 * TextControl.cs: Fix print out in debug method.
19196 * TextBoxBase.cs: When text is set bail if we are setting to the
19199 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
19201 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
19202 It is now possible to change the selected index in a FontXXXListBox
19203 with the up and down arrow keys from the FontXXXTextBoxes.
19204 Also, send the FontXXXTextBox mouse wheel event to the corresponding
19205 FontXXXListBoxes to match ms.
19207 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
19209 * SystemInformation.cs: Return a clone of the theme's MenuFont because
19210 anyone can dispose it, anytime. All other properties returns enums,
19211 structs or basic types so they don't need such tricks.
19213 2006-09-22 Jackson Harper <jackson@ximian.com>
19220 * XplatUIDriver.cs: Update interface to add a primary selection
19221 flag, so the driver can use the primary selection buffer if
19223 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
19225 * RichTextBox.cs: We need to supply the data object to paste now
19226 (so we can choose to supply CLIPBOARD or PRIMARY).
19227 * TextBoxBase.cs: Supply data object to paste (see above).
19228 - Middle click uses the primary selection data object.
19230 2006-09-21 Chris Toshok <toshok@ximian.com>
19232 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
19233 of SetWMStyles. It's still a rat's nest and is largely
19234 order-dependent which I dislike immensely. This also fixes the X
19235 button disappearing from toplevel forms.
19237 2006-09-21 Mike Kestner <mkestner@novell.com>
19239 * ListBox.cs: move Jordi's click/dblclick raising code to the
19242 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
19244 * ListBox.cs: Fixes 79450
19246 2006-09-21 Mike Kestner <mkestner@novell.com>
19248 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
19249 to deal with people updating the TreeNodeCollection after the tree
19250 is disposed. "Fixes" 79330.
19252 2006-09-20 Jackson Harper <jackson@ximian.com>
19254 * TextControl.cs: Push the cursor record onto the undo stack
19255 before the delete action. This fixes 78651.
19257 2006-09-20 Jonathan Chambers <joncham@gmail.com>
19259 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
19260 CreateParams. Fixes 79329.
19262 2006-09-19 Chris Toshok <toshok@ximian.com>
19264 * XplatUIX11.cs: a couple of blanket code massage passes to clean
19265 things up a bit. First, get rid of the NetAtoms array (and the NA
19266 enum), and just embed the atoms as static fields. Also, add a
19267 couple of functions (StyleSet and ExStyleSet) to clean up all the
19268 bitmask testing of styles.
19270 * X11Structs.cs: remove the NA enum, not needed anymore.
19272 2006-09-19 Chris Toshok <toshok@ximian.com>
19274 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
19275 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
19276 added cleanup to get MessageBox titles appearing again, which were
19277 broken by my earlier fix for caption-less/ControlBox-less windows.
19279 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
19281 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
19282 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
19283 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
19284 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
19285 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
19286 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
19287 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
19288 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
19289 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
19290 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
19291 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
19293 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
19294 ToolStripButton.cs: Stubs needed for above.
19295 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
19297 2006-09-15 Chris Toshok <toshok@ximian.com>
19300 - make the MessageQueues hashtable Synchronized.
19302 - SendMessage: if the Hwnd is owned by a different thread, use the
19303 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
19304 thread. Fixes bug #79201.
19306 2006-09-15 Chris Toshok <toshok@ximian.com>
19308 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
19309 ControlBox == false, we disallow maximize/minimize/close. If the
19310 form Caption is "" we also disallow move (and get rid of the Title
19311 decoration). Unfortunately, regardless of how things are set,
19312 we're stuck with the Title and WM menu.
19314 2006-09-15 Chris Toshok <toshok@ximian.com>
19316 * Application.cs: add locking around the static message_filters
19317 ArrayList, part of #79196.
19319 2006-09-15 Chris Toshok <toshok@ximian.com>
19321 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
19322 Form.ControlBox == false, the window has no titlebar nor resize
19323 handles. fixes bug #79368.
19325 2006-09-15 Chris Toshok <toshok@ximian.com>
19327 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
19328 >= 0. Fixes bug #79370.
19330 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
19331 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
19333 Add properties: LayoutEngine, Margin, DefaultMargin.
19334 Add method: GetPreferredSize.
19335 Move layout logic from PerformLayout to layout engines.
19337 2006-09-13 Chris Toshok <toshok@ximian.com>
19339 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
19340 fix for #79326 broke #78718, so this change addresses that.
19342 - in SendWMDestroyMessages remove the call to
19343 CleanupCachedWindows, since we might be recreating the control and
19344 need to maintain the references to right Hwnd handles. Also, set
19345 the zombie flag to true for each of the children in the hierarchy
19346 instead of calling hwnd.Dispose. This will cause GetMessage to
19347 ignore all events for the window except for DestroyNotify.
19349 - In GetMessage, ignore messages except for DestroyNotify for
19352 * Control.cs: revert the is_recreating fix from the last
19353 ChangeLog. It's definitely "right", but it breaks switching from
19354 an MDI form to a non-MDI form. Will need to revisit that.
19356 * Hwnd.cs: add a zombie flag, which means "the
19357 client_window/whole_window handles are invalid, but we're waiting
19358 for the DestroyNotify event to come in for them". Set the flag to
19359 false explicitly if setting WholeWindow/ClientWindow, and also
19362 2006-09-13 Chris Toshok <toshok@ximian.com>
19364 * XplatUIX11.cs: rework window destruction slightly.
19366 - when destroying the windows associated with a control, we don't
19367 need 2 separate XDestroyWindow calls. Just the one for the
19368 whole_window (or for client_window if whole_window is somehow
19369 IntPtr.Zero -- can this happen?) is enough.
19371 - reworked SendWMDestroyMessages slightly, so we always dispose
19372 the child control hwnd's after sending the messages.
19374 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
19375 the two places it was used (one was even using hwnd.Handle and the
19376 other hwnd.client_window. ugh), adding another call in
19377 SendWMDestroyMessages. We need this new call because now the
19378 DestroyNotify events in the queue will be ignored for the child
19379 controls (as their hwnd's were disposed, and the window id's
19380 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
19382 - this fixes bug #79326.
19384 2006-09-13 Chris Toshok <toshok@ximian.com>
19386 * Control.cs: don't always set is_recreating to false at the end
19387 of RecreateHandle, since sometimes we're not done (and won't be
19388 until WndProc handles the WM_DESTROY message). Also, set
19389 is_recreating to false in the WM_DESTROY handling code. Part of
19390 the fix for bug #79326.
19392 2006-09-13 Miguel de Icaza <miguel@novell.com>
19394 * X11DesktopColors.cs: Start the droppage of debugging messages.
19396 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
19398 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
19400 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
19402 2006-09-12 Chris Toshok <toshok@ximian.com>
19404 * DataGrid.cs (get_ListManager): if the list_manager is null, try
19405 to create it using SetDataSource. Fixes bug #79151.
19407 2006-09-11 Chris Toshok <toshok@ximian.com>
19409 * XEventQueue.cs: add a DispatchIdle property.
19411 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
19412 either the queue is null, or the queue has DispatchIdle set to
19414 (DoEvents): set queue.DispatchIdle to false around the
19415 peek/translate/dispatch message loop in this method. This keeps
19416 Application.Doevents from emitting idle events. Part of the fix
19419 2006-09-11 Chris Toshok <toshok@ximian.com>
19421 * DataGrid.cs (set_DataSource): make this work for both the
19422 winforms/datagrid test and ReportBuilder. It seems as though when
19423 we've created a ListManager (or maybe it's if we have a
19424 BindingContext?), when we set the DataSource it clears the
19425 DataMember to "". otherwise we reuse the datamember. Fixes bug
19428 2006-09-11 Chris Toshok <toshok@ximian.com>
19430 * XplatUIX11.cs: deal with queue being null, which happens in all
19431 the Clipboard functions. Fixes one of the two problems mentioned
19434 2006-09-11 Chris Toshok <toshok@ximian.com>
19436 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
19437 button on various spots (including outside the menu) works closer
19438 to MS, and doesn't crash. Fixes #79343.
19440 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
19442 * ListView.cs: Do not initialize item_sorter in init. To match MS,
19443 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
19444 and the internal comparer is set. When a new ListViewItemSorter is set,
19445 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
19446 was specified. No further processing is necessary if SortOrder is set
19447 to it's current value. If Sorting is modified to None, and View is
19448 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
19449 (either custom or our internal ItemComparer) to null, on 1.0 profile
19450 only set item_sorter to null if its our internal IComparer. If Sorting
19451 is modified to Ascending or Descending, then use our internal IComparer
19452 if none is set, and if the current IComparer is our internal one then:
19453 on 2.0 profile always replace it with one for new Sorting, and on 1.0
19454 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
19455 Enum.IsDefined to verify whether a valid View value is specified in
19456 its setter. Automatically sort listview items when listview is
19457 created. In Sort, do nothing if ListView is not yet created, or if
19458 no item_sorter is set (no Sorting was set, Sorting was explicitly set
19459 to None or ListViewItemSorter was set to null). Added Sort overload
19460 taking a bool to indicate whether the ListView should be redrawn when
19461 items are sorted (we use this in ListViewItemCollection to avoid double
19462 redraws). Modified our internal IComparer to take the sort order into
19463 account. In Add and AddRange methods of ListViewItemCollection, also
19464 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
19465 view), but use overload with noredraw option to avoid double redraw.
19466 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
19467 true when View is Tile, and do the same when attempting to set View to
19468 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
19469 for selected/checked indices, as it involves overhead when sorting is
19470 done while these collections are not used all that often. Instead
19471 we'll build the indices on demand. Modified IList implementation of
19472 CheckedIndexCollection to use public methods if object is int.
19473 Modified CheckedListViewItemCollection to hide checked items if
19474 ListView.CheckBoxes is false. Removed LAMESPEC remark in
19475 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
19476 IList implementation in SelectedIndexCollection to use public methods
19477 if object is int. Modified SelectedListViewItemCollection to hide
19478 selected items if listview is not yet created.
19479 * ListViewItem.cs: CheckedIndices list no longer needs to be
19480 maintained separately (see ListView changes). Also clone font, fixes
19483 2006-09-11 Mike Kestner <mkestner@novell.com>
19485 * ComboBox.cs: if we are updating the contents of the currently
19486 selected index, refresh the control or the textbox selection.
19489 2006-09-11 Mike Kestner <mkestner@novell.com>
19491 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
19492 the 'specified' logic has been moved there. This seems like a bug
19493 in Control.cs, since our current SetBoundsCore completely ignores
19494 the specified parameter. Peter's commit seems to indicate that is
19495 the way the MS control implementation works. [Fixes #79325]
19497 2006-09-10 Jonathan Chambers <joncham@gmail.com>
19499 * XplatUI.cs: Set default_class_name to be composed
19500 of current domain id. This allows MWF to be loaded in multiple
19503 2006-09-09 Miguel de Icaza <miguel@novell.com>
19505 * X11Keyboard.cs: If we are unable to obtain the input method, do
19506 not call CreateXic to create the input context. Should fix
19509 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
19511 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
19512 Simplified gnome support by adding more pinvokes to get the
19513 icon for a file or mime type.
19515 2006-09-08 Jackson Harper <jackson@ximian.com>
19517 * MenuAPI.cs: Deslect popup context menu items before closing the
19518 window, so that you don't see the previously selected item
19519 selected when you reopen the menu.
19520 * TextControl.cs: Update the cursor position even if we don't have
19521 focus. This fixes typing in things like the ComboBox. I'm not
19522 totally sure we should always set the visibility if we don't have
19523 focus, but couldn't find any corner cases where the cursor showed
19524 up when it shouldn't.
19526 2006-09-08 Chris Toshok <toshok@ximian.com>
19528 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
19529 our arrays are length 256. & 0xff before indexing. Fixes the
19530 crash in bug #78077.
19532 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19534 * ThemeWin32Classic.cs:
19535 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
19536 is true. Handle that check box too.
19538 2006-09-07 Chris Toshok <toshok@ximian.com>
19540 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
19543 2006-09-07 Chris Toshok <toshok@ximian.com>
19545 * Control.cs: in set_BackColor only do the work if
19546 background_color != value.
19548 * XplatUIX11.cs: move the clearing of invalid areas (both client
19549 and nc) to the same block of code where we set (nc_)expose_pending
19550 to false. That is, move it from PaintEventEnd to PaintEventStart,
19551 so things that cause invalidates from within OnPaint will trigger
19552 another call to OnPaint. Fixes bug #79262.
19554 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
19556 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
19557 * FileDialog.cs: Fix typo
19559 2006-09-07 Jackson Harper <jackson@ximian.com>
19561 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
19562 for tab pages if they have any.
19564 2006-09-06 Mike Kestner <mkestner@novell.com>
19566 * Splitter.cs: use the "current" rect when finishing drag handle
19567 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
19569 2006-09-06 Mike Kestner <mkestner@novell.com>
19571 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
19572 support offset splitters. [Fixes #79298]
19574 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
19576 * Mime.cs: Fixed a bug that could override the global mime type
19579 2006-09-05 Jackson Harper <jackson@ximian.com>
19581 * TabControl.cs: Better calculation method for setting the slider
19582 pos. Prevents crashes on really wide tabs.
19583 - Draw Image on tab pages if an image list is used.
19585 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19587 * MonthCalendar.cs: When Font changes, the Size should be
19588 updated to fit the new font's space requirements.
19590 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
19592 * ListBox.cs: If the items are cleared with Items.Clear set
19595 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19597 * MonthCalendar.cs: Handle arrow keys as input keys. Also
19598 fire DateChanged event instead of DateSelected event when
19599 the date was changed by keyboard interaction.
19601 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19603 * DateTimePicker.cs: Handle DateChanged for the associated
19604 month_calendar control, and set month_calendar.Font from
19605 OnFontChanged method, as well as resize the height of the
19606 control when needed. Make PreferredHeight proportional.
19608 2006-09-01 Chris Toshok <toshok@ximian.com>
19610 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
19613 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
19615 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
19617 * FileDialog.cs: Set ClientSize instead of window size, to allow space
19618 for decorations (Fixes #79219)
19620 2006-09-01 Mike Kestner <mkestner@novell.com>
19622 * ComboBox.cs: first stab at sorting plus some selection handling
19623 fixes to bring us more in line with MS behavior. Also switches back
19624 to index based selection. Alternative patches for index-based
19625 selection were provided by Jackson Harper, Carlos Alberto Cortez,
19626 and latency@gmx.de on bug 78848. I assume they were similar to this
19627 code I've had simmering in my tree forever.
19630 2006-09-01 Chris Toshok <toshok@ximian.com>
19632 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
19633 when setting list position guard against ending up with a -1 index
19634 (the other part of the fix for #78812). Should probably make sure
19635 we don't need the analogous fix in the ItemDeleted case.
19638 - in SetDataSource, work around the fact that the way
19639 OnBindingContextChanged is invoked will cause us to re-enter this
19640 method. I'll remove the hack once I investigate
19641 OnBindingContextChanged.
19643 - fix the logic in set_DataSource and set_DataMember (basically
19644 what to do if the other of the two is null.)
19646 - in OnListManagerItemChanged, we need to take into account the
19647 edit row when deciding whether or not to call RecreateDataGridRows
19648 (part of the fix for #78812).
19650 2006-09-01 Jackson Harper <jackson@ximian.com>
19652 * Splitter.cs: Don't do anything if there is no control to affect
19653 (prevents us from crashing in weird tet cases).
19654 * TreeView.cs: Bounding box for the mouse movement reverting
19655 focus/selection back to previously selected node. This matches
19656 MS, and makes the tree a lot more useable.
19657 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
19658 use clipping so they are not drawn. This fixes when the control
19659 is set to have a transparent background, or if it was over an
19662 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
19664 * MimeIcon.cs: Improved handling for reading default icons when
19665 using gnome (2.16 made it necessary). Check and read svg icons
19666 first, then 48x48 and then 32x32 icons.
19668 2006-08-31 Chris Toshok <toshok@ximian.com>
19670 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
19673 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
19674 ProcessKeyPreview. Fixes part of #77806.
19676 * DataGrid.cs: big patch.
19678 - revert the queueing up of DataSource/DataMember if inside
19679 BeginInit/EndInit calls. That's not the way the datagrid achieves
19680 its delayed databinding. Instead, call SetDataSource in
19681 OnBindingContextChanged. This mimic's MS's behavior, and fixes
19684 - Also, it wasn't mentioned in #78811, but the test case exhibits
19685 behavior that was lacking in our datagrid implementation - Columns
19686 that have mapping names that don't exist in the datasource's
19687 properties aren't shown. Yuck. To fix this I added the bound
19688 field to the column style, and basically any calculation to figure
19689 out anything about columns uses a loop to find the bound columns.
19690 still need to investigate if I can cache an array of the bound
19691 columns or if the indices must be the same.
19693 - When setting CurrentCell, we no longer abort if the cell being
19694 edited was in the add row. This fixes the other part of #77806.
19696 - The new code also fixes #78807.
19698 * ThemeWin32Classic.cs: perpetrate the same disgusting
19699 column.bound field hack, and only render bound fields.
19701 2006-08-31 Chris Toshok <toshok@ximian.com>
19703 * DataGridColumnStyle.cs: add bound field. this field is true if
19704 the datasource has a property corresponding to the mapping name.
19706 * DataGridTableStyle.cs: set the bound field on the column styles
19707 depending on whether or not we have a column for that property.
19709 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
19711 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
19712 splitter control (fixes #79228)
19714 2006-08-31 Chris Toshok <toshok@ximian.com>
19716 * DataGridColumnStyle.cs: we need to delay the assignment of
19717 property descriptor until the last possible moment due to the lazy
19718 databinding stuff in the datagrid. Also, fix the exceptions
19719 thrown by CheckValidDataSource to match MS.
19721 2006-08-31 Jackson Harper <jackson@ximian.com>
19723 * Form.cs: When activated select the active control, if there is
19724 no active control, we select the first control.
19725 * XplatUIX11.cs: If there is no focus control when we get a
19726 FocusIn event, find the toplevel form and activate it. This
19727 occurs when you popup a window, it becomes the focus window, then
19728 you close that window, giving focus back to the main window.
19730 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19732 * MonthCalendar.cs:
19733 * ThemeWin32Classic.cs: Cache Font in bold style, as well
19734 as StringFormat with Center alignments in MonthCalendar,
19735 instead of creating new ones when drawing the control.
19736 Also, draw the month name in bold style.
19738 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
19741 - PerformLayout(): It would seem MS performs the fill even if the
19742 control is not visible (part of #79218 fix)
19743 - ResetBackColor(): Use the setter to reset the color, to allow
19744 overriders to catch the change.
19746 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
19747 - CreateHandle(): dito (part of $79218 fix)
19748 - Don't set an icon if we have a dialog
19749 * ScrollableControl.cs:
19750 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
19751 - ScrollIntoView(): No need to scroll if control is already visible
19752 (resolves fixme and fixes #79218)
19754 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19756 * MonthCalendar.cs: Change proportions in SingleMonthSize
19757 to match the aspect of the original control.
19759 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
19761 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
19762 get updated when they get maximized.
19764 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
19766 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
19768 2006-08-29 Chris Toshok <toshok@ximian.com>
19770 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
19772 2006-08-29 Jackson Harper <jackson@ximian.com>
19774 * TreeView.cs: Need to track selected node and highlighted node,
19775 they aren't always the same thing, when the mouse is down on a
19776 node it is hilighted, but not selected yet.
19777 - Do the HideSelection stuff right
19778 - Need to focus on rbutton mouse down. And redraw selection when
19779 right click is mouse upped.
19781 2006-08-29 Mike Kestner <mkestner@novell.com>
19783 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
19784 when SubItems.Count < Columns.Count. [Fixes #79167]
19786 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19788 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
19790 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19792 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
19793 from X. Only send based on ConfigureNotify if we don't have the
19794 correct location in hwnd (if the window manager moved us)
19796 2006-08-28 Mike Kestner <mkestner@novell.com>
19798 * ListView.cs: remove a TODO.
19799 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
19800 [Fixes ListView part of #79166]
19802 2006-08-28 Mike Kestner <mkestner@novell.com>
19804 * ListView.cs: move wheel handler to parent since it is focused
19805 instead of the item_control now. [Fixes #79177]
19807 2006-08-28 Mike Kestner <mkestner@novell.com>
19809 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
19810 when the control is focused. [Fixes #79171]
19812 2006-08-28 Mike Kestner <mkestner@novell.com>
19814 * ListView.cs: size the item and header controls for empty and
19815 unscrollable views.
19816 * ThemeWin32Classic.cs: draw disabled backgrounds.
19819 2006-08-28 Chris Toshok <toshok@ximian.com>
19821 * Form.cs: remove unused "active_form" static field.
19823 * Hwnd.cs: lock around accesses to static windows collection.
19825 * Application.cs: lock threads in Exit ().
19827 2006-08-28 Chris Toshok <toshok@ximian.com>
19829 * NativeWindow.cs: lock around accesses to window_collection.
19831 2006-08-28 Chris Toshok <toshok@ximian.com>
19833 * Control.cs: err, fix this the right way, by locking on controls
19834 when using it. not by making it synchronized.
19836 2006-08-28 Chris Toshok <toshok@ximian.com>
19838 * Control.cs: make the static "controls" field synchronized, as it
19839 gets updated from multiple threads.
19841 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19843 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
19844 Prevent other threads from exiting when calling thread sets quit state.
19845 * XEventQueue.cs: Added PostQuitState property
19847 2006-08-27 Chris Toshok <toshok@ximian.com>
19849 * AsyncMethodData.cs: add a slot for the window handle.
19851 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
19852 window (the destination control's window, not the foster window).
19854 * Control.cs (BeginInvokeInternal): store the window's handle in
19855 the AsyncMethodData.
19858 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19861 - PostQuitMessage: Removed resetting S.D display handle, we might have
19862 another loop started after calling PostQuitMessage (Fixes #79119)
19863 - Created destructor to reset S.D handle
19865 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19867 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
19869 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19871 * TextControl.cs (Insert): Update the caret position even if we don't
19872 have a handle yet, just don't call the driver in that case.
19873 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
19874 to the end of the new selection text (Fixes #79184)
19876 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19878 * Form.cs (Activate): Only activate if the handle is created)
19880 - Mark window as invisible when it's disposed
19881 - Check if window handle is created when setting window visible,
19882 instead of relying just on the is_created variable
19883 - Check if object is disposed when creating the control (Fixes #79155)
19885 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19887 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
19888 when allowing layout again. Otherwise we re-generate the anchoring
19889 distance to the border again and actually alter what the user wanted
19890 This is ugly, it'd be better if we used DisplayRectangle instead of
19891 ClientRectangle for Control.UpdateDistances, but that causes us to
19892 have other problems (initial anchoring positons would be wrong)
19895 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19898 - The size and location setters shouldn't go directly to
19899 SetBoundsCore, but to SetBounds, which triggers layout on the
19900 parent, then calls SetBoundsCore. (Related to fix for #78835)
19901 - SetBounds: Moved actual location update code into this function
19902 from SetBoundsCore, to match MS. Added call to PerformLayout if
19903 we have a parent (to trigger resizing of anchored parents if the
19904 child size has changed (see testcase for #78835)
19905 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
19907 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
19909 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19911 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
19912 System.Drawing when a toplevel window gets closed; there might
19913 be other toplevel windows belonging to the same app (Fixes #78052)
19915 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
19917 * FileDialog.cs: After reading FileDialog settings from mwf_config
19918 use Desktop prefix only if a real folder doesn't exist anymore.
19919 * FontDialog.cs: Added char sets.
19920 It is now possible to select the font, size or style with the
19923 2006-08-25 Kornél Pál <kornelpal@gmail.com>
19925 * PrintPreviewDialog.cs: Use assembly name constants.
19927 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19929 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
19930 scrollbar from whacking it's buttons)
19932 2006-08-24 Chris Toshok <toshok@ximian.com>
19934 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
19935 in this patch (aggregating setting Left/Top/Width/Height to
19936 setting Bounds on the scrollbars), but the crux of the fix is in
19937 Recalculate, where we scroll by the remaining scroll_position if
19938 we're hiding a scrollbar. The 2*$5 reward in the comment is
19941 2006-08-24 Jackson Harper <jackson@ximian.com>
19944 * MdiWindowManager.cs: If the form is made a non-mdi window we
19945 need to remove the form closed event so that closing forms works
19948 2006-08-24 Jackson Harper <jackson@ximian.com>
19950 * Control.cs: Make IsRecreating internal so that the driver can
19952 - Temporarily remove the Hide when controls are removed, its
19953 making a whole bunch of things not work because visibility isn't
19954 getting reset elsewhere correctly
19955 * Form.cs: Need to do a full handle recreation when the mdi parent
19957 * XplatUIX11.cs: If we are recreating handles don't dispose the
19958 HWNDs. What was happening is the handles were being recreated in
19959 SendWMDestroyMessages, but then flow continued on in that method
19960 and destroyed the new handles.
19962 2006-08-23 Jackson Harper <jackson@ximian.com>
19964 * Form.cs: MdiClient is always at the back of the bus
19965 * Control.cs: When the order of items in the collection is changed
19966 we need to reset the all_controls array
19967 - do the same sorta setup thats done when adding a control when a
19968 control is set on the collection.
19970 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19972 * TextBoxBase.cs (get_Text): Return an empty array if our document
19973 is empty (fixes #79052)
19975 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19977 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
19978 on WM_SYSCHAR messages (fixes #79053)
19980 2006-08-23 Chris Toshok <toshok@ximian.com>
19982 * DataGrid.cs: fix flickering when scrolling vertically.
19984 2006-08-23 Chris Toshok <toshok@ximian.com>
19986 * DataGrid.cs (EndEdit): only invalidate the row header when we
19989 2006-08-23 Chris Toshok <toshok@ximian.com>
19991 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
19992 methods. fixes the flicker when scrolling around.
19994 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19996 * FileDialog.cs: Making sure the control is created before we get a
19997 chance to use it with BeginInvoke (Fixes #79096)
19999 2006-08-23 Chris Toshok <toshok@ximian.com>
20001 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
20002 width to use when painting the rows.
20004 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20007 - Throw ArgumentException if a negative value is passed to SelectionLength
20008 - Update the selection end if start is moved. end needs to be always
20009 after start. (Fixes #79095)
20010 - Track selection length; MS keeps the selection length even if start
20011 is changed; reset on all other operations affection selection
20013 2006-08-22 Jackson Harper <jackson@ximian.com>
20015 * TreeView.cs: Make sure both scrollbars get displayed and sized
20016 correctly when the other bar is visible.
20017 - Use the original clip rectangle for checking if the area between
20018 the two scrollbars is visible, not the viewport adjusted clipping
20021 2006-08-22 Jackson Harper <jackson@ximian.com>
20023 * Binding.cs: We don't use IsBinding because it requires the
20024 control to be created, which really shouldn't be necessary just to
20025 set a property on the control.
20027 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20029 * ComboBox.cs: Some CB.ObjectCollection methods must throw
20030 ArgumentNullReferenceException when the argument is null.
20032 2006-08-21 Jackson Harper <jackson@ximian.com>
20034 * Timer.cs: Track the thread that the timer is started in (NOT
20035 CREATED), this way messages for it will only be triggered on its
20037 * XEventQueue.cs: Track the timers here, this makes timers per
20039 * XplatUIX11.cs: The timers are moved to the XEventQueue.
20041 2006-08-19 Chris Toshok <toshok@ximian.com>
20043 * XplatUIX11.cs: after further communication with pdb, we get the
20044 best of both worlds. SetZOrder working for un-Mapped windows, and
20045 no X errors for un-mapped windows.
20047 2006-08-19 Chris Toshok <toshok@ximian.com>
20049 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
20050 as it was causing pdn toolbars to not have the correct stacking.
20052 2006-08-18 Mike Kestner <mkestner@novell.com>
20054 * ListView.cs : guard against negative ClientArea.Width in scrollbar
20055 calculation. Not sure why control should ever be setting a negative
20056 width though. Fixes #78931.
20058 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20060 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
20061 null items in ObjectCollection class.
20062 * ListBox.cs.: Likewise.
20064 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
20066 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
20067 as the base method in ThemeWin32Classic should work fine.
20070 2006-08-18 Jackson Harper <jackson@ximian.com>
20072 * Binding.cs: When validating if the value entered doesn't convert
20073 properly reset to the old value.
20074 * RadioButton.cs: Don't fire click when we get focus.
20076 2006-08-18 Jackson Harper <jackson@ximian.com>
20078 * FileDialog.cs: Paint the selection on the directory combobox the
20081 2006-08-17 Jackson Harper <jackson@ximian.com>
20083 * ErrorProvider.cs: Don't allow the error control to be selected.
20084 * Control.cs: Don't send the SetFocus messages, the control
20085 activation will do this, and if we do it blindly here validation
20088 2006-08-17 Jackson Harper <jackson@ximian.com>
20091 * ContainerControl.cs: Make validation events fire in the correct
20092 order. TODO: For some reason the first validation event is not
20095 2006-08-17 Mike Kestner <mkestner@novell.com>
20097 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
20099 2006-08-17 Mike Kestner <mkestner@novell.com>
20101 * ComboBox.cs : implement scroll wheel support for popped-down
20102 state. Fixes #78945.
20104 2006-08-17 Jackson Harper <jackson@ximian.com>
20106 * TreeView.cs: Specify treeview actions (old patch that didn't get
20107 committed for some reason).
20108 - Don't let the mouse wheel scroll us too far. Just want to make
20109 the bottom node visible, not scroll it all the ways to the top.
20111 2006-08-17 Jackson Harper <jackson@ximian.com>
20113 * XplatUIX11.cs: Mouse wheel events go to the focused window.
20115 2006-08-17 Mike Kestner <mkestner@novell.com>
20117 * ComboBox.cs : don't do mouseover selection in simple mode.
20119 2006-08-16 Jackson Harper <jackson@ximian.com>
20121 * Form.cs: Fire the closing events for all the mdi child windows
20122 when a window is closed. If the cancel args are set to true, the
20123 main window still gets the event fired, but it doesn't not close.
20124 * MdiWindowManager.cs: Do this closing cleanup in a Closed
20125 handler, instead of when the button is clicked, so cancelling the
20126 close works correctly.
20127 * ComboBox.cs: Send the mouse down to the scrollbar.
20129 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20131 * ListBox.cs: When passing 'null' to SelectedItem,
20132 set SelectedIndex to -1, to unselect items. This is the
20133 observed behaviour in .Net.
20135 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
20137 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
20138 MS flags saying there won't be any. (fixes #78800)
20139 * Control.cs (HandleClick): Made virtual
20141 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
20143 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
20144 cultures. Fixed bug #78399.
20146 2006-08-16 Jackson Harper <jackson@ximian.com>
20148 * Form.cs: Use the MdiClients MdiChildren property to access
20149 MdiChildren instead of creating the array from the child controls.
20150 * MdiClient.cs: Maintain a separate array of the mdi children, so
20151 that insertion order is maintained when the Z-order is changed.
20153 2006-08-16 Mike Kestner <mkestner@novell.com>
20155 * ListView.cs : add an ItemComparer and default to it for sorting.
20156 Fixes #79076, but sorting needs a complete overhaul to be compat with
20159 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20161 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
20163 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20165 * Hwnd.cs (Mapped): Properly traverse the tree
20167 2006-08-15 Chris Toshok <toshok@ximian.com>
20169 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
20170 pass manager.Current.GetType() to ParseData. It has to be the
20171 property type. So, hold off doing the ParseData until we're in
20172 SetPropertyValue where we know the type. This fixes the crash in
20173 #78821 but the textbox is still empty.
20175 2006-08-15 Chris Toshok <toshok@ximian.com>
20178 - when we're scrolling, only call Edit() again if the
20179 current cell is still unobscured. Fixes bug #78927.
20180 - when handling mousedown on a cell, ensure the cell is visible
20181 before calling Edit.
20182 - remove the properties from DataGridRow, and remove the
20183 DataGridParentRow class altogether.
20186 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20188 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
20189 fire OnTextChanged by ourselves. There's no point calling base,
20190 we don't set the base value anywhere else. Fixes #78773.
20192 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20194 * ListBox.cs: Call CollectionChanged when modifying
20195 an item from Items indexer, to update the actual items
20198 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20200 * PrintDialog.cs: Small fixes for focus and a pair of checks,
20201 to match .Net behaviour.
20203 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20205 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
20207 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20209 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
20211 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20213 * MessageBox.cs: Prevent potential NRE exception.
20214 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
20216 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
20218 * MessageBox.cs: Calculate the owner of a messagebox, also make
20219 it topmost. Fixes #78753
20221 2006-08-14 Chris Toshok <toshok@ximian.com>
20223 * XplatUIX11.cs: A couple of fixes so that metacity will let us
20224 programmatically move windows. first, set the PPosition hint as
20225 well as the USPosition hint. Second include some code from pdb
20226 that sets the window type to NORMAL when we set the transient for
20227 hint. This is because, in the absence of a window type, metacity
20228 thinks any window with TransientFor set is a dialog, and refuses
20229 to let us move it programmatically. fascists.
20231 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
20233 * XplatUIX11.cs: When setting normal hints, take into consideration
20234 an different hints previously set so we don't delete them (fixes #78866)
20236 2006-08-12 Chris Toshok <toshok@ximian.com>
20238 * ToolBarButton.cs: make Layout return a boolean, if something to
20239 do with the button's layout changed.
20242 - add another parameter to Redraw, @force, which all existing
20244 - make the Layout function return a boolean which is true if the
20245 layout has actually changed. Redraw now uses this (and @force)
20246 to determine when to invalidate. At present the only place
20247 where @force can be false is the call from OnResize, when
20248 background_image == null. So, resizing a toolbar when the
20249 layout doesn't change results in no drawing.
20251 2006-08-12 Chris Toshok <toshok@ximian.com>
20253 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
20254 the VScrollBar and HScrollbar reversed. oops.
20256 * DataGrid.cs: fix the logic that assigns sizes to the implicit
20257 scrollbars. we were assigning them twice (once in
20258 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
20259 therefore causing two scrollbar resizes (and redraws?) to happen
20262 2006-08-12 Chris Toshok <toshok@ximian.com>
20264 * ToolBarButton.cs: redraw the entire button if the theme tells us
20267 * Theme.cs: add ToolBarInvalidateEntireButton.
20269 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
20270 buttons, just the border.
20272 * ThemeNice.cs: redraw the entire toolbar button since we need to
20273 draw the highlight image.
20275 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
20276 we need to redraw the entire button (not just the border).
20278 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
20280 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
20281 for vertical bars. Fixes the mismatches shown by #78513
20283 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
20285 * FileDialog.cs: If a saved/remembered path doesn't exist
20286 anymore, fall back to "Desktop".
20288 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
20290 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
20291 parent. It's apparently legal to not have one
20293 - SetZOrder: Don't try to set Z-Order on an unmapped window
20294 - CreateWindow: 0,0 are legal coordinates for a window. don't move
20295 it unless the coordinates are negative
20297 2006-08-10 Mike Kestner <mkestner@novell.com>
20299 * ListControl.cs: allow null for DataSource. Clear DisplayMember
20300 when setting to null per msdn docs. Fixes #78854.
20302 2006-08-10 Chris Toshok <toshok@ximian.com>
20304 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
20305 flickering by setting a clip rectangle on the Graphics when we
20306 need to redraw just a particular menuitem. Also, rename "OnClick"
20307 to "OnMouseDown" to reflect what it actually is.
20309 * Form.cs: track the OnMouseDown change.
20311 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
20313 * CommonDialog.cs: Properly inherit the CreateParams from the form
20314 and only change what we need. Fixes #78865
20316 2006-08-10 Chris Toshok <toshok@ximian.com>
20318 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
20319 flickering in flat mode (and most of the flickering in general) by
20320 only invalidating the button border (and not the entire rectangle)
20321 when the state changes. A couple of cases still flicker:
20322 ToggleButtons, and the dropdown arrow case when the user mouse
20325 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
20327 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
20328 for german keyboards. Numlock state shouldn't affect the behaviour
20329 of the Del key. Fixes bug #78291.
20331 2006-08-10 Chris Toshok <toshok@ximian.com>
20333 * ListControl.cs: remove the items.Clear line from BindDataItems,
20334 as this is the first thing done by both subclasses in their
20335 SetItemsCore overrides. Also, add a ItemChanged handler, and when
20336 passed -1, refresh the list. This gets databinding working when
20337 the datasource is set on the list before the datasource is
20338 populated (as in wf-apps/ReportBuilder.)
20340 * ComboBox.cs: remove the argument to BindDataItems. This call
20341 should really go away, and be initiated by the ListControl code.
20343 * ListBox.cs: same.
20345 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20347 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
20348 if no data is in the document when the control is displayed
20350 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20352 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
20355 - PositionCaret: Allow positioning of caret but don't call methods
20356 requiring a handle if the window isn't created yet
20357 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
20358 - owner_HandleCreated: Don't position the caret, just update it's
20359 location. User might have already set a different position
20361 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20363 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
20364 windows. Screws up the returned coordinates for child windows.
20365 Fixes #78825. I'm hoping this doesn't break something, since the
20366 code was explicitly put in 8 months ago, but no bug was attached.
20367 Menus still seem to work properly.
20369 2006-08-08 Chris Toshok <toshok@ximian.com>
20371 * DataGrid.cs: make BeginInit/EndInit actually do what they're
20372 supposed to do - delay data binding until the EndInit call. Also,
20373 make the table style collection's CollectionChangeAction.Refresh
20376 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
20377 (with action = Refresh) when a consituent table's MappingName is
20380 2006-08-08 Chris Toshok <toshok@ximian.com>
20382 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
20383 Invalidate, since changing the text can change the size of the all
20386 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
20388 * Form.cs (AddOwnedForm): Still need to add the form to our listif
20389 we don't have it yet
20391 2006-08-08 Chris Toshok <toshok@ximian.com>
20393 * PrintControllerWithStatusDialog.cs: don't .Close() the status
20394 dialog, as this causes X errors later on, since we actually
20395 destroy the window. Instead, .Hide() it.
20397 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
20399 * ComboBox.cs: Added focus reflection for popup window
20401 - Removed transient setting for non-app windows for now, not sure it
20403 - Fixed logic checking if we have captions when deciding
20404 override_redirect, WS_CAPTION is two bits and a 0 check was not
20406 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
20409 - AddOwnedForm: Don't just add the form to the list, call the property
20410 to ensure the driver is informed about the ownership as well
20411 - CreateHandle: Set the TopMost status in the driver if we have an owner
20412 * XplatUI.cs: Fixed debug statement
20414 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
20415 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20416 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
20417 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
20418 TrackBarRenderer.cs: Make constructor private.
20419 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
20420 * ProfessionalColorTable.cs: Make properties virtual.
20422 2006-08-06 Duncan Mak <duncan@novell.com>
20424 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
20427 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20428 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20429 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
20430 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
20431 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
20432 Initial import of new 2.0 classes.
20434 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20435 * Application.cs: Add 2.0 VisualStyles properties.
20437 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20438 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20439 XplatUIX11.cs: Create property to allow access to existing private
20440 variable "themes_enabled"
20442 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20444 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
20445 file size, as otherwise our class libraries fail using windows. Fixes
20448 2006-08-04 Jackson Harper <jackson@ximian.com>
20451 * XplatUIX11.cs: Move the toolwindow window manager creation into
20452 the X11 driver, this way on win32 we can let windows create/handle
20455 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20457 * PrintDialog.cs: Remove some redundant checks, add some others,
20458 clean some code, and move the focus to the text boxes when the
20459 values are incorrect.
20461 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
20463 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
20465 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20467 * NumericUpDown.cs: Setting the Minimum and Maximum is now
20468 handled correctly. Fixes bug #79001.
20470 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20472 * PrintDialog.cs: The "Copies" numeric up down must have
20473 set the Minimum property to 1; only if the value is bigger
20474 than 1, activate "Collate" check box. This is the behaviour of .Net.
20475 Also modify the Document elements only if it is not null.
20477 2006-08-03 Jackson Harper <jackson@ximian.com>
20479 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
20480 length. (We have a larger array then actual node count).
20482 2006-08-03 Jackson Harper <jackson@ximian.com>
20484 * ComboBox.cs: Don't show selection by default.
20485 - The SelectAll isn't needed here, since the focus code should do
20487 - DDL style lists to manual selection drawing, so when they
20488 get/lose focus they have to invalidate.
20490 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
20492 * TextBoxBase.cs: Don't always show all selections by default.
20494 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
20495 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
20496 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
20497 Fixed various typos.
20499 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20501 * Control.cs: Removing the controls in a ControlCollection with
20502 Clear now hides the controls as expected. Fixes bug #78804.
20504 2006-08-03 Jackson Harper <jackson@ximian.com>
20506 * Control.cs: Revert previous focus patch, it breaks reflector.
20508 2006-08-03 Jackson Harper <jackson@ximian.com>
20510 * ComboBox.cs: Cleanup selection and focus with the combobox.
20511 This also eliminates some duplicated keyboard code, since now
20512 everything is handled by the main class.
20513 - Make list selection work on mouse up instead of down, to match
20516 2006-08-02 Jackson Harper <jackson@ximian.com>
20518 * Control.cs: Setting focus needs to go through the whole
20519 selection mechanism.
20521 2006-08-02 Chris Toshok <toshok@ximian.com>
20523 * PrintPreviewDialog.cs: change MinimumSize to use
20524 base.MinimumSize so it works.
20526 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
20529 - UpdateCaret: Added sanity check in case caret isn't defined yet
20530 - Line.Delete: Now updating selection and caret markers if we're
20531 transfering a node (Properly fixes #78323)
20532 - SetSelectionEnd: Added sanity check
20533 * TextBoxBase.cs: Removed broken attempt to fix #78323
20535 2006-08-01 Chris Toshok <toshok@ximian.com>
20537 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
20538 Close() call is handled in Form, not here.
20540 2006-08-01 Chris Toshok <toshok@ximian.com>
20542 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
20545 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
20546 for sizes < 100% zoom. The code now aggressively attempts to keep
20547 from calling document.Print (), and tries not to use the scaling
20548 g.DrawImage whenever possible (it still does if you scale to >
20549 100%, since usually that involves huge images).
20551 * PrintPreviewControl.cs: hook up the close button.
20553 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
20554 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
20555 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
20556 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
20557 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
20558 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
20559 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
20560 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
20561 Removed [Serializable] for 2.0 Event Handlers.
20563 2006-07-31 Jackson Harper <jackson@ximian.com>
20565 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
20566 * TextControl.cs: Uncomment out the body of this method.
20568 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
20570 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
20573 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20575 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
20576 that embed TextBox and need selections visible even if textbox is not
20577 focused to enforce that behaviour.
20578 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
20581 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20584 - Added new SetSelectionStart/SetSelectionEnd overloads
20585 - Fixed viewport width assignment to be accurate
20586 - Adjusted alignment line shift calculations to allow cursor on right
20587 aligned lines to be always visible at the right border (like MS)
20589 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
20590 - TextBoxBase_SizeChanged: recalculating canvas on size changes
20591 - CalculateScrollBars: Use ViewPort size instead of window size, to
20592 properly consider space occupied by the border and scrollbars
20594 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
20595 calculations; no longer leaves artifacts
20596 - CaretMoved: Adjusted window scrolling to match MS and fixed several
20597 calculation bugs (Still missing right/center align calculations)
20599 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20601 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
20602 use of both scroll rect and clip rect, as they do the same.
20604 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20606 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
20607 in the event handler (fixes #78912)
20609 2006-07-31 Chris Toshok <toshok@ximian.com>
20611 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
20612 grid.ListManager.Count, since grid.ListManager might be null.
20613 This of course begs the question "why are we drawing rows for a
20614 grid with no list manager (and therefor no rows)?" Fixes the
20615 crash in bug #78929.
20617 2006-07-31 Chris Toshok <toshok@ximian.com>
20619 * RelatedPropertyManager.cs: Don't always chain up to the parent
20620 ctor. instead, call SetDataSource if the parent's position is !=
20621 -1. Fixes the crash in #78822.
20623 2006-07-31 Chris Toshok <toshok@ximian.com>
20625 * DataGrid.cs (get_ListManager): use field instead of property
20626 accessors for datasource and datamember.
20627 (RowsCount): make internal again.
20628 (OnMouseDown): end edits before resizing columns/rows.
20629 (OnMouseUp): restart edits after resizing columns/rows.
20631 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
20633 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
20634 This fixes the situation where the last set cursor is displayed
20635 whenever the mouse is over scrollbars.
20637 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20639 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
20640 Document properties, as well as initial values.
20642 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
20644 * XplatUIWin32.cs (SetBorderStyle): Setting both border
20645 and ClientEdge results in a 3-pixel border, which is
20648 2006-07-28 Jackson Harper <jackson@ximian.com>
20650 * TreeNodeCollection.cs: Fix the clear method.
20651 - Fix the Shrink also
20653 2006-07-27 Jackson Harper <jackson@ximian.com>
20655 * TreeView.cs: Make sure the visible order is computed when we
20656 attempt to size the scrollbars (for trees that mess with the
20657 scrolling when they shouldn't.
20658 - Make sure to give the scrollbars valid values.
20660 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20662 * XplatUIX11.cs: Move motion compression code to where it
20663 has less performance impact
20665 2006-07-26 Jackson Harper <jackson@ximian.com>
20667 * UpDownBase.cs: When the control is selected make the child
20668 controls non selectable, so that a click on them won't do a
20669 focus/unfocus cycle.
20670 - Don't give focus to the text box when the spinner is selected.
20671 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
20673 2006-07-26 Chris Toshok <toshok@ximian.com>
20675 * ThemeWin32Classic.cs: add print preview rendering. I'm not
20676 satisfied with this solution. If the bitmaps are small, we should
20677 just cache them in the PrintPreviewDialog and draw them here.
20678 Also, the layout is broken for the 2-up and 3-up cases.
20680 * Theme.cs: add PrintPReviewControlPaint.
20682 * PrintPreviewDialog.cs: first pass implementation.
20684 * PrintPreviewControl.cs: first pass implementation. No
20687 * PrintDialog.cs: only validate fields if that particular portion
20688 of the UI is enabled. Also, set the document's controller to a
20689 PrintControllerWithStatusDialog wrapping the document's print
20692 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
20693 bring up a SaveFileDialog (i hope we don't want to match the
20694 behavior of the crappy windows file entry) and set the
20695 PrinterSettings.PrintFileName accordingly.
20697 2006-07-26 Jackson Harper <jackson@ximian.com>
20699 * ContainerControl.cs: Add a field that disables auto selecting
20700 the next control in a container when the container is activated.
20701 * UpDownBase.cs: Don't select the text box when the up down is
20704 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20706 * XEventQueue.cs: Added methods for peeking (used for compression
20707 of successive events)
20708 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
20709 mouse move events (fixes #78732)
20711 2006-07-25 Jackson Harper <jackson@ximian.com>
20713 * UpDownBase.cs: Use an internal class for the textbox so that we
20714 can control focus. the updown control should always have focus,
20715 if either the text area or the buttons are clicked.
20716 - Send the key messages to the textbox, since it never actually
20718 - Activate and decativate the textbox caret.
20720 2006-07-24 Jackson Harper <jackson@ximian.com>
20722 * Control.cs: Use the directed select when selecting a control,
20723 this way the container controls override will get called and the
20724 whole ActiveControl chain will get triggered. TODO: probably need
20725 to make sure this gets done everywhere instead of the old
20727 * ContainerControl.cs: Implement the directed Select method to
20728 find and activate the correct child control.
20730 2006-07-22 Mike Kestner <mkestner@novell.com>
20732 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
20733 menu handling code so that clicks without a grab work too.
20736 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
20738 * FileDialog.cs: Enable the BackButton when dirstack has one element.
20739 Added some small optimizations.
20741 2006-07-21 Matt Hargett <matt@use.net>
20743 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
20745 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
20747 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
20748 tests pass and match MS in some strange border cases.
20750 2006-07-21 Chris Toshok <toshok@ximian.com>
20752 * ThemeWin32Classic.cs: handle drawing of the relation links and
20753 parent row buttons.
20755 * Theme.cs: change args to DataGridPaintParentRow.
20757 * DataGrid.cs: Don't use controls for the relation links and
20758 parent buttons, so we have to handle all their interactions in
20759 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
20760 when we're navigating through child tables, so we can reinstate
20761 selection, expanded state, current cell, etc.
20763 2006-07-20 Chris Toshok <toshok@ximian.com>
20765 * ToolBar.cs: When we redraw a button, for whatever reason,
20766 there's no reason to redraw the entire toolbar. Also, don't call
20767 Control.Refresh from within Redraw, as it's much heavier than
20768 Invalidate (which is really what we want).
20770 2006-07-20 Chris Toshok <toshok@ximian.com>
20772 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
20773 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
20774 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
20775 traces from within a debug IBindingList datasource
20776 (in mono/winforms/datagrid) for *days*, I've finally gotten things
20777 to work in a similar fashion.
20779 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20781 * ListBox.cs: Don't call Sort () when setting
20782 the Sorted property to false (avoid an unnecessary sort).
20784 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20786 * ListControl.cs: DataSource should throw an ArgumentException
20787 instead of a normal exception when the argument is not of the
20790 2006-07-20 Mike Kestner <mkestner@novell.com>
20792 * Control.cs: add InternalPreProcessMessage to allow us to steal
20793 key events before MWF gets its paws on them. Adapted from a
20795 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
20796 up/down/left/right navigation. Override the new internal control
20797 method to steal the events since they never make it to WndProc.
20798 * ToolBarButton.cs: don't worry about pushed when setting hilight
20799 since the drawing code prefers pushed to hilight. Invalidate on
20800 Hilight changes. Fixes #78547 and #78525.
20802 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20804 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
20805 the canvas size. Fixes #78868
20807 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20809 * Splitter.cs: Track requested split position until first layout
20810 is performed. Fixes #78871
20812 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20814 * Application.cs: Removed code that forces 1.x for the version
20815 number if the version started with 0. Not sure why that code was
20816 there and I couldn't find any bugs that indicated we needed it.
20819 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
20821 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
20822 ResetDefaults(), just write some output to the console until it's
20823 implemented. Fixes bug #78907 for now. Eliminated two warnings.
20825 2006-07-19 Jonathan Chambers <joncham@gmail.com>
20827 * PropertyGridView.cs: set StartPosition of drop down forms
20828 so they appear in correct initial spot. Fixes #78190.
20830 2006-07-19 Mike Kestner <mkestner@novell.com>
20832 * ThemeWin32Classic.cs: use parent background color when drawing
20833 flat toolbars. Restructure the conditionals to make sure non-flat
20834 non-Divider toolbars are filled too. Fixes #78837.
20836 2006-07-19 Mike Kestner <mkestner@novell.com>
20838 * ListBox.cs: Sort on collection changes even if the handle
20839 isn't created yet. Fixes #78813.
20841 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20843 * ListControl.cs: DisplayMember should never be null,
20844 and now we assign String.Empty when null is passed to it (this
20847 2006-07-17 Mike Kestner <mkestner@novell.com>
20849 * ListViewItem.cs: restructure Font and subitem Font handling
20850 to hold a specific font and refer back to owner on null.
20853 2006-07-17 Mike Kestner <mkestner@novell.com>
20855 * ToolBar.cs: bandaid for side-effect of previous patch which was
20856 discarding explicit heights for non-AutoSize toolbars. Need to
20857 extend my format tester to deal with AutoSize=false. Fixes #78864.
20859 2006-07-15 Jackson Harper <jackson@ximian.com>
20861 * LabelEditTextBox.cs:
20862 * TreeView.cs: Use a new LabelEdit class for node editing, this
20863 class automatically 'closes' itself when it gets the enter key or
20865 - Use the client rectangle when setting the trees scrollbars, so
20866 border style is taken into account.
20868 2006-07-14 Jackson Harper <jackson@ximian.com>
20871 * TreeView.cs: Make the editing work similar to MSs, firing the
20872 events correctly and ending edits correctly.
20874 2006-07-14 Mike Kestner <mkestner@novell.com>
20876 * ToolBarButton.cs:
20877 * ToolBar.cs: layout restructuring and redraw enhancements to support
20878 formatting changes gracefully, like setting TextAlign, ImageList,
20879 ButtonSize, and Appearance. Handles explicit button sizing quirks
20880 of the MS controls. Things like flat toolbars ignoring button size
20881 but becoming constant sized at the largest button's size. Normal
20882 toolbars with an image set cannot be shrunk smaller than the image,
20883 but text can be clipped/ignored.
20884 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
20885 is zero. Seems like DrawString should be smart enough to not put
20886 anything on screen though. Also trim labels and ellipsize at the char
20887 boundary, not word.
20888 Fixes #78711 and #78483.
20890 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20892 * FolderBrowserDialog.cs: Disable "New Folder" button and
20893 "New Folder" contextmenu menuitem if a folder like "My Computer"
20896 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20898 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
20899 * FolderBrowserDialog.cs:
20900 - Use MWFConfig to store and read size and position settings
20901 - Added code to create a new folder (button or context menu).
20902 Use TreeView labeledit to change the name of the new folder.
20904 2006-07-14 Jackson Harper <jackson@ximian.com>
20906 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
20907 when the tree is scrolled we end editing.
20909 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20911 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
20914 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
20916 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
20917 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
20918 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
20919 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
20920 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
20921 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
20922 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
20923 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
20924 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
20925 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
20926 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
20927 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
20928 ListViewItemSelectionChangedEventHandler.cs,
20929 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
20930 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
20931 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
20932 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
20933 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
20934 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
20935 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
20936 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
20937 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
20938 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
20939 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
20940 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
20941 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
20942 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
20943 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
20944 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
20945 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
20946 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
20947 WebBrowserNavigatingEventHandler.cs,
20948 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
20950 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
20952 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
20953 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
20954 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
20955 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
20956 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
20957 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
20958 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
20959 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
20960 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
20961 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
20962 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
20963 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
20964 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
20965 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
20966 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
20967 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
20968 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
20969 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
20970 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
20971 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
20972 ListViewItemStates.cs, MaskFormat.cs: Added
20974 2006-07-13 Jonathan Chambers <joncham@gmail.com>
20976 * PropertyGridView.cs: Fix keyboard navigation of drop down.
20977 Patch from eno for bug 78558.
20979 2006-07-13 Jackson Harper <jackson@ximian.com>
20981 * TreeView.cs: When an edit is finished make sure that the
20982 selected node is visible.
20983 - When setting the top/bottom use the scrollbars is_visible, so
20984 everything will be set correctly even if the tree isn't visible
20987 2006-07-13 Jackson Harper <jackson@ximian.com>
20989 * ComboBox.cs: Revert the item->index part of my previous patch.
20990 * TreeView.cs: Use LostFocus instead of Leave for detecting when
20991 the edit box has lost focus (duh).
20992 - Just make the edit box not visible when we get return, that will
20993 take the focus, which will call EndEdit
20994 * TreeNode.cs When we start editing, notify the treeview.
20996 2006-07-12 Jackson Harper <jackson@ximian.com>
20998 * ComboBox.cs: Clear out old items before setting the item list.
20999 This prevents databound controls from having their items added
21001 - Switch the combobox to use indices whereever possible instead of
21002 using Item's. This allows usto navigate through lists that have
21003 more then one item with the same string value (ie a, b, b, a).
21004 - Scroll the listboxes scrollbar when a non visible item is
21006 - Allow keypress to cycle through all the possible values. For
21007 example if you have b1, b2, b3 and hold down the B key all the
21008 values will be cycled through.
21010 2006-07-12 Jackson Harper <jackson@ximian.com>
21013 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
21014 this using the internal methods.
21015 * Control.cs: Add OnGotFocusInternal. A new method that allows
21016 controls to "override" OnGotFocus and change focus behavior if
21018 - Same thing for LostFocus
21019 * ComboBox.cs: Pass off focus to the text control properly.
21021 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
21023 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
21024 * FolderBrowserDialog.cs: Almost a complete rewrite.
21025 - Better support for Environment.Specialfolders
21026 - Added support for MWFVFS
21027 - Made setting SelectedPath work
21029 2006-07-12 Jackson Harper <jackson@ximian.com>
21031 * Control.cs: Optimze getting all the controls.
21033 2006-07-11 Jackson Harper <jackson@ximian.com>
21035 * ContainerControl.cs: Override SETFOCUS in the container control,
21036 so that it is not selected on mouse click.
21038 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21040 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
21041 Hopefully we will have a better way once all of focus is complete.
21043 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21045 * ThemeWin32Classic.cs: Commented out some debug code and fixed
21046 a compile error with csc.
21048 2006-07-11 Jackson Harper <jackson@ximian.com>
21050 * Control.cs: When hiding a control only select the next control
21051 if the current control was focused.
21052 - Don't handle enter/leave when setting/killing focus, this is
21053 done by the container control.
21054 - Remove is_selected, it's not needed anymore.
21055 - Add utility methods for selecting a child control, and for
21056 firing the Enter/Leave events.
21057 * ContainerControl.cs: When a control is activated fire the
21058 enter/leave events.
21059 - Don't wrap when processing the tab key, so that focus can be
21060 moved outside of the container.
21061 - Use the correct active control
21063 2006-07-11 Jackson Harper <jackson@ximian.com>
21065 * ComboBox.cs: Remove some debug code that was blinding me.
21066 * UpDownBase.cs: These controls actually aren't implicit, they are
21067 visible to the user.
21069 2006-07-10 Chris Toshok <toshok@ximian.com>
21071 * DataGrid.cs: move back to the is_adding boolean field. god i
21072 hate this is_editing/is_adding/is_changing stuff.
21074 2006-07-10 Chris Toshok <toshok@ximian.com>
21076 * DataGridTableStyle.cs: just check if the property type is bool.
21077 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
21078 Don't use CanRenderType.
21080 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
21081 if our text == NullText. Remove CanRenderType.
21083 * DataGridBoolColumn.cs: nuke CanRenderType.
21085 * DataGrid.cs: reenable some code to end the current edit inside
21086 of set_CurrentCell. This fixes the other 1.1.16 regression.
21087 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
21088 Also, remove the visible_row_count arg from CalcRowHeaders, since
21089 we don't need to worry about the actual height of the area.
21091 2006-07-10 Chris Toshok <toshok@ximian.com>
21093 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
21096 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
21097 the real sense of the IsInEditOrNavigateMode property (true =
21098 navigate, false = edit). Also, update OnKeyPress to reflect this.
21100 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
21101 column style exists, we still need to set its property descriptor
21102 to match up with our list manager.
21104 2006-07-10 Chris Toshok <toshok@ximian.com>
21106 * ThemeWin32Classic.cs: implement the new row/header painting
21107 approach. The parent row painting will likely go away and
21108 replaced with label controls, but the rest seems to work ok (and
21111 * Theme.cs: change the way we draw datagrid rows. we don't draw
21112 the row headers as a block now. Instead we draw them in the
21113 normal draw-row loop. Add some calls for drawing parent rows and
21116 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
21117 a default table style. Set the defaults from ThemeEngine.Current,
21118 not SystemColors. Fix lots of misc issues with property setters.
21120 * DataGrid.cs: move loads of style information out of this class
21121 as it's being duplicated with DataGridTableStyle. keep track of a
21122 special DataGridTableStyle for the properties we used to mirror
21123 here. Switch all the style properties to access this table style
21124 instead of instance fields of this class. Also add a internal
21125 class to represent parent rows (more needs to be stored here, like
21126 the selection state from the parent table, as well as the
21127 expansion state.) Also, for datasources with relations, do the
21128 right thing for collapse/expand, and add support for the
21129 navigation/parent row buttons.
21131 Lastly, fix the crash in the 1.1.16 build.
21133 * GridTableStylesCollection.cs: make the explicit interface
21134 implementations call the class's methods as opposed to duplicating
21137 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
21138 0 so the text doesn't jump around when we move the cursor.
21140 2006-07-10 Jackson Harper <jackson@ximian.com>
21143 * ListBox.cs: Match MS's ToString (this makes debugging focus
21144 stuff infinitely easier).
21146 2006-07-10 Jackson Harper <jackson@ximian.com>
21148 * Control.cs (SelectNextControl): When checking the control's
21149 parent use this instead of ctrl.parent so that null can be passed
21150 to SelectNextControl. (I have unit tests for this).
21151 - Remove unused var.
21153 2006-07-10 Chris Toshok <toshok@ximian.com>
21155 * CurrencyManager.cs: correct one regression, the removal of the
21156 finalType field. Also, add a MonoTODO on CanAddRows, implement
21157 Refresh() correctly, and fix some event emission in
21158 ListChangedHandler.
21160 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
21162 * FileDialog.cs: Don't use brackets for new folders if they exist
21163 under *nix. Instead use -(number of existing folders +1).
21165 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
21168 - Fixed really nasty bug #78771
21169 - Don't block the whole GUI when reading directories with a lot of
21170 entries. Use an other thread instead and call BeginInvoke to
21171 update the ListView in MWFFileView
21173 2006-07-07 Chris Toshok <toshok@ximian.com>
21175 * Control.cs (Dispose): release any Capture when disposing.
21177 2006-07-07 Chris Toshok <toshok@ximian.com>
21179 * LinkLabel.cs (Select): if we chain up to the parent, set
21180 focused_index to -1 so we'll search for the first available link
21181 the next time the user tabs into us. Also, if the direction is
21182 backward and focused_index == -1, start the search from the last
21185 2006-07-07 Chris Toshok <toshok@ximian.com>
21187 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
21188 is beyond the end of the text, don't do anything.
21189 (CreateLinkPieces): set our ControlStyles.Selectable based on
21190 whether or not we have any links.
21191 (Link.Invalidate): use a loop instead of foreach.
21192 (Link.set_Start): null out owner.sorted_links so it'll be
21193 recreated by CreateLinkPieces.
21195 2006-07-06 Chris Toshok <toshok@ximian.com>
21197 * LinkLabel.cs: revert the SetStyle change.
21199 2006-07-06 Chris Toshok <toshok@ximian.com>
21201 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
21202 (OnEnableChanged): s/Refresh/Invalidate
21203 (OnGotFocus): if we have a focused index already, refocus it (so
21204 if we mouse out/in to the window it'll focus the right link).
21205 (OnKeyDown): move the tab handling out of here.
21206 (OnLostFocus): don't set focused_index to -1, so we can refocus it
21207 when we lose focus.
21208 (OnMouseDown): don't Capture here - Control handles it. Also,
21209 focus the active link.
21210 (OnMouseUp): don't deal with Capture.
21211 (OnPaintBackgroundInternal): remove.
21212 (OnTextAlignChanged): CreateLinkPieces before calling the
21213 superclass's method.
21214 (OnTextChanged): call CreateLinkPieces before calling superclass's
21216 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
21218 (Select): implement this, moving the selection between different
21219 links, and call parent.SelectNextControl if we don't have another
21220 link to focus in the given direction.
21221 (CreateLinkPieces): call Invalidate instead of Refresh.
21223 2006-07-06 Chris Toshok <toshok@ximian.com>
21225 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
21226 new LinkLabel internals.
21228 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
21229 over pieces looking for active/focused/etc links. also, deal with
21230 runs of text (and links) with embedded \n's in them, and use
21231 MeasureCharacterRanges instead of MeasureString to figure out the
21232 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
21235 2006-07-04 Jackson Harper <jackson@ximian.com>
21237 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
21238 XKB or key auto repeat, do it manually. Without key auto repeat,
21239 when a key is held down we get key press, key release, key press,
21240 key release, ... with auto repeat we get key press, key press, key
21241 press ..., and then a release when the key is actually released.
21243 2006-07-03 Jackson Harper <jackson@ximian.com>
21246 * ThemeWin32Classic.cs: Tabs do not obey normal background color
21247 rules, they are always control color regardless of the background
21250 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
21252 * FileDialog.cs: Added internal class MWFConfig.
21253 Removed Registry support and replaced it with support for the new
21254 MWFConfig class. See MWFConfig comments for more information.
21256 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
21258 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
21259 rectangle. Added some patches from eno from bug #78490 and fixed
21260 the arrow position for small up and down CPDrawScrollButtons.
21262 2006-06-30 Jackson Harper <jackson@ximian.com>
21264 * InternalWindowManager.cs: Remove some debug code.
21265 * Form.cs: When an MdiParent is set to null, the window is
21266 "detatched" and becomes a normal window.
21267 * MdiClient.cs: Don't bring the new child form to the front until
21268 it is activated (setting it as active does this), this makes the
21269 previously active forms titlebar get redrawn as inactive.
21271 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
21273 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
21274 with later controls
21276 2006-06-29 Mike Kestner <mkestner@novell.com>
21278 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
21279 arrow in keynav state. Fixes #78682.
21281 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
21283 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
21284 order (fixes #78393)
21286 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
21288 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
21289 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
21290 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
21291 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
21292 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
21293 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
21294 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
21295 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
21296 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
21297 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
21298 enumerations (FlagsAttribute, SerializableAttribute, added/removed
21301 2006-06-28 Mike Kestner <mkestner@novell.com>
21303 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
21305 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
21308 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
21309 item lines from other area (It also makes BackColor consistent and
21310 compatible with .NET). Fixed bug #78564.
21312 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
21314 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
21315 Patch from Eno for #78555.
21317 2006-06-27 Chris Toshok <toshok@ximian.com>
21319 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
21321 * DataGridColumnStyle.cs: same.
21323 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
21325 * DataGridDrawingLogic.cs: nuke.
21327 2006-06-27 Chris Toshok <toshok@ximian.com>
21329 * DataGridTableStyle.cs: clean up the constructors, and build the
21330 list of child relations for this table. I have no idea if this is
21331 where we should be doing it (it probably isn't), but since we're
21332 already iterating over the properties..
21334 * DataGrid.cs: add row resizing. for now we add a DataGridRow
21335 struct and array for keeping track of row information, similar to
21336 what's shown in a hack on
21337 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
21339 * Theme.cs: be consistent about the naming of DataGrid methods,
21340 prefering ColumnWidths and RowHeights over columnsWidths and
21343 * ThemeWin32Classic.cs: same, and also add support for variable
21344 sized rows (and the +/- expansion icons for related rows).
21346 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21348 * TextBoxBase.cs: Applied Eno's patch from #78660
21350 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21352 * Form.cs (ScaleCore): We don't want to scale our form if it's
21353 state is minimized or maximized, but we still need to scale our
21354 child windows. Also, added try/finally block to ensure layout
21355 gets reset (Fixes #78697)
21357 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21359 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
21361 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21363 * Form.cs: Fixed c+p error and added check to resize form if minimum
21364 size is bigger than current size (Fixes #78709)
21366 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
21368 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
21370 2006-06-26 Mike Kestner <mkestner@novell.com>
21372 * ComboBox.cs: only do Keypress handling in the combo when there
21373 are items in the collection. Fixes #78710.
21375 2006-06-26 Chris Toshok <toshok@ximian.com>
21377 * Binding.cs: make this work bi-directionally. also, clear up
21378 other mixups between Push/Pull Data (e.g. we're supposed to pull
21379 data when validating).
21381 * BindingManagerBase.cs: trim some fully qualified collection
21384 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
21386 2006-06-23 Chris Toshok <toshok@ximian.com>
21388 * PropertyManager.cs: It appears (according to the unit tests)
21389 that PropertyManager doesn't use
21390 PropertyDescriptor.AddValueChanged to track propery value changes
21391 in its datasource, but uses the same scheme as Binding, where it
21392 looks for a <Property>Changed event and binds to it.
21394 Also, according to the docs, IsSuspended always returns false for
21395 a property manager with a non-null datasource.
21397 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21399 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
21400 need to update the actual DialogResult. (Fixes #78613)
21402 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21404 * Form.cs (ShowDialog): Release any captures before running the
21405 new message pump (fixes #78680)
21407 2006-06-22 Mike Kestner <mkestner@novell.com>
21409 * ListView.cs: Layout column widths properly in details mode even
21410 if HeaderStyle.None is set. Fixes #78691.
21412 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21414 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
21416 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21418 * Control.cs (ContainsFocus): Using new driver method to get focused
21419 window, instead of trying to use internal tracking var, which can
21420 recursion issues (Fixes #78685)
21421 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21422 XplatUIWin32.cs: Added GetFocus method to return focused window
21424 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21426 * ColorDialog.cs: when the mouse button is pressed inside the color
21427 matrix, don't let the cursor move out of it until the button is
21428 released, which is the behavior on windows. Changed 'colours' by
21429 'colors' to use the same word consistently.
21431 2006-06-21 Chris Toshok <toshok@ximian.com>
21433 * DataGrid.cs: add in some basic navigation stuff (navigating to a
21434 child relation and back, using a stack). Also, remove
21435 GetDataSource and the code that calls it - it's not needed. Also,
21436 track CurrencyManager.ListName's removal.
21438 2006-06-21 Chris Toshok <toshok@ximian.com>
21440 * CurrencyManager.cs: push some of the original type checking from
21441 BindingContext.CreateBindingManager to here, and remove some of
21442 the finalType stuff. Need more tests to make sure I've got the
21443 ListName part right, and we might need more in SetDataSource.
21445 * PropertyManager.cs: add a ctor that takes just the datasource,
21446 and no property name. Make SetDataSource work with a null
21447 property_name, and make Current return the data_source if the
21448 property descriptor is null. this makes 'string foo = "hi";
21449 BindingContext[foo].Current' return "hi" as it should.
21451 * RelatedCurrencyManager.cs: make this code more generic - there's
21452 no reason the parent manager has to be CurrencyManager, and
21453 there's no reason to pass the DataRelation. It suffices to use a
21454 BindingManagerBase and PropetyDescriptor.
21456 * RelatedPropertyManager.cs: make a similar change here.
21458 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
21459 flower I knew it could be.
21461 2006-06-20 Chris Toshok <toshok@ximian.com>
21463 * PropertyManager.cs: the PropertyChangedHandler is invoked when
21464 data in the source has changed and we need to update the control,
21465 so s/PullData/PushData.
21467 * CurrencyManager.cs: Refresh is meant to update the control from
21468 data in the datasource. So, s/PullData/PushData.
21470 * BindingContext.cs: add more ugliness (we weren't handling the
21471 case where data_source = DataTable and data_member = column_name).
21473 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
21474 from the perspective of the datasource. PullData pulls from the
21475 control, PushData pushes to the control.
21477 2006-06-20 Chris Toshok <toshok@ximian.com>
21479 * BindingContext.cs: rewrite the CreateBindingManager code to
21480 handle navigation paths more or less properly. This could
21481 definitely stand some more work, in particular to push the
21482 recursion up to the toplevel. But that relies on fixes in other
21483 places (System.Data comes to mind).
21485 Also, move to a flat hashtable (and encode the twolevel nature of
21486 the dictionary into the hash key). This lets us implement the
21487 IEnumerable.GetEnumerator method.
21489 * RelatedCurrencyManager.cs: new class. Update our view based on
21490 our relation and our parent CurrencyManager's position.
21492 * CurrencyManager.cs: split out some logic from the ctor into
21493 SetView, so it can be called from the new RelatedCurrencyManager
21496 * RelatedPropertyManager.cs: new class. Update our datasource
21497 based on the position of our parent CurrencyManager.
21499 * PropertyManager.cs: split out some logic from the ctor into
21500 SetDataSource, so it can be called from the new RelatedDataSource
21501 subclass. Also, make the Current getter return the value
21502 of the PropertyDescriptor, not the data_source.
21504 * Binding.cs: no need to duplicate the string splitting code here.
21506 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21509 - set_Enabled: OnEnabledChanged is not called if the inherited state
21510 of the control is not altered, even though we might be changing the
21511 internal state of the control (#78458)
21512 - set_Enabled: (Re)Moved the enabling/disabling of the window to
21513 OnEnabledChanged, to allow easy altering of any child window state
21514 - OnEnabledChanged: Added code to enable/disable driver window state
21515 - OnParentEnabledChanged: Instead of firing the event, call
21516 OnEnabledChanged, which will fire the event and also a) set driver
21517 window state and pass the enabled state to any grandchildren (#78458)
21519 2006-06-19 Jackson Harper <jackson@ximian.com>
21521 * InternalWindowManager.cs: We don't set the cursor explicitly
21522 thats done via the response to NCHITTESTs.
21523 - Don't need to adjust for titlebar heights anymore, the
21524 coordinates are coming in the correct coordinates now (see peters
21528 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21530 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
21531 being translated relative to whole window, instead of client window.
21532 That caused broken offsets on mouseclick (and caused gas for our
21533 InternalWindowManager)
21535 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21538 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
21539 - Undo(): Added replay of cursor move on DeleteChars action; added
21540 calling Undo() again if a recorded cursor move is invalid (to
21541 ensure that some action is performed on Undo)
21542 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
21544 2006-06-16 Jackson Harper <jackson@ximian.com>
21546 * MdiClient.cs: Instead of just sizing maximized windows when
21547 there is a resize we also have to adjust the Y of minimized
21548 windows, so they stay pinned to the bottom of the mdi container.
21549 - Eliminate separate tracking of the active control, we can just
21550 get this from the controls collection.
21551 - Paint the decorations for the newly activated titlebar so we get
21553 * InternalWindowManager.cs:
21554 * ThemeWin32Classic.cs: Minimized windows get all three buttons
21555 even if they are a tool window.
21557 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21559 * TextControl.cs (Undo): Handle non-existent cursor locations in the
21560 undo buffer, these can happen when text was deleted and the cursor
21561 was recorded first. Since we will also have a recorded cursor
21562 after the delete this is not an issue. (Fixes #78651)
21564 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
21566 * AccessibleObject.cs: Remove dependence on Control.is_selected;
21567 instead properly track control states internally (allows us to
21568 remove is_selected from Control)
21570 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21572 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
21573 whose width is not a multiple of 8.
21575 2006-06-13 Jackson Harper <jackson@ximian.com>
21577 * MdiClient.cs: Only maximize the next child if the current one
21580 2006-06-13 Chris Toshok <toshok@ximian.com>
21582 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
21583 modified. Also, guard against grid or grid_drawing being null in
21586 * DataGrid.cs: Reformat tons of getters/setters. In the
21587 DataMember setter, just call SetNewDataSource instead of
21588 duplicating some of its functionality. In SetNewDataSource, don't
21589 check ListManager for null, since the property getter creates the
21592 * DataGridTableStyle.cs: don't set TableStyle or call
21593 SetDataGridInternal on the column here, it's done in
21594 GridColumnStylesCollection.Add.
21596 * GridColumnStylesCollection.cs: fix all the explicit interface
21597 implementations to just call our methods. Nuke AddInternal() and
21598 move the body of it to Add(). Also, add a call to
21599 column.SetDataGridInternal to Add().
21601 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
21602 base()+duplicate code. Also, use the Format property instead of
21603 format to generate an Invalidate ala MS. Lastly, create the
21604 textbox here, unconditionally.
21605 (set_Format): call Invalidate.
21606 (get_TextBox): no need to call EnsureTextBox.
21607 (Commit): remove the message box.
21608 (Edit) remove the call to EnsureTextBox.
21609 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
21610 (EnterNullValue): no need to check textbox for null.
21611 (HideEditBox): no need to check textbox for null.
21612 (SetDataGridInColumn): add the textbox to the grid's controls.
21613 (EnsureTextBox): nuke.
21615 2006-06-13 Jackson Harper <jackson@ximian.com>
21617 * MdiWindowManager.cs: Hook up to the maximized menus paint event
21618 and redraw the buttons when needed. Unhook when the window is
21620 * MainMenu.cs: Add an internal Paint event, the mdi window manager
21621 needs this so that it can redraw its buttons when the menu is
21623 * InternalWindowManager.cs:
21624 * Form.cs: The method order has changed for DrawMaximizedButtons,
21625 so that it can be a PaintEventHandler.
21627 2006-06-13 Jackson Harper <jackson@ximian.com>
21629 * MdiClient.cs: When we close a maximized mdi window, the next mdi
21630 window is activated and maximized, even if it wasn't before.
21631 - When a new window is activated repaint the decorations of the
21632 old one, so that it no longer has the Active "look" (the blue
21634 * InternalWindowManager.cs: Open up CreateButtons to base classes
21635 so they can recreate the buttons on state changes.
21636 - If a window is maximized give it all three buttons
21637 * MdiWindowManager.cs: Create the titlebar buttons when the state
21638 is changed, this is needed because a toolwindow will not have all
21639 three buttons until it is maximized.
21641 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
21643 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
21646 2006-06-12 Jackson Harper <jackson@ximian.com>
21648 * KeysConverter.cs: Make sure we handle the Ctrl special case
21649 if its the only key.
21651 2006-06-12 Jackson Harper <jackson@ximian.com>
21653 * Theme.cs: Add a method to get the size of a managed window
21655 * InternalWindowManager.cs: Remove the ButtonSize property, this
21656 should be retrieved from the theme.
21657 * MdiWindowManager.cs: Get the button size from the theme
21658 * ThemeWin32Classic.cs: Make the method to get the managed window
21659 titlebar button size public.
21660 - Handle the different button sizes of maximized toolwindows
21661 (should match any maximized window).
21662 - Get the titlebar height from the theme, not the WM (which gets
21663 it from the theme).
21665 2006-06-12 Jackson Harper <jackson@ximian.com>
21667 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
21668 event down to the mdi window manager.
21669 - Expose some extra stuff to base classes
21670 - Make sure to end the Capture on an NC Mouse up, so that we can
21671 get double clicks properly, and the sizing doens't stick.
21672 - When doing PointToClient contain it in the workable desktop
21673 area, this prevents windows from changing size when the cursor is
21674 pulled outside of the working area while sizing.
21675 * MdiWindowManager.cs: When we get a double click maximize the
21677 - Reset the cursor after handling mode changes.
21679 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
21681 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
21682 current desktop, instead of just assuming a 0, 0 origin. This
21683 is needed for our internal window manager, to know the top
21684 margin of the desktop
21686 2006-06-12 Chris Toshok <toshok@ximian.com>
21688 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
21689 we need this to get rid of the selected background in the bool
21691 (CancelEditing): move the ConcedeFocus call to above the Abort
21692 call. Also, set is_changing to false and invalidate the row
21693 header if we were changing before.
21694 (ProcessKeyPreviewInternal): remove, since noone outside this
21695 class calls it anymore. Roll the code into ProcessKeyPreview.
21696 (EndEdit): remove the internal version.
21697 (InvalidateCurrentRowHeader): make private.
21699 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
21700 Keys.Escape handling (and with it the last call to
21701 DataGrid.EndEdit from outside the class.)
21704 2006-06-12 Chris Toshok <toshok@ximian.com>
21706 * DataGridTextBox.cs (.ctor): isedit defaults to false.
21707 (OnKeyPress): set isedit to true.
21708 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
21709 already handled by the grid.
21711 * DataGrid.cs (set_CurrentCell): more work here. it's still not
21713 (set_DataSource): SetDataSource always returns true, so stop
21714 putting it in an if statement.
21715 (EndEdit): get rid of some {}'s
21716 (ProcessGridKey): return true in case Keys.Escape.
21717 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
21718 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
21719 PositionChanged, stopped connecting to CurrentChanged.
21720 (GetDataSource): simplify this a bunch.
21721 (SetDataSource): change return type from bool to void.
21722 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
21723 to this, and make sure we don't set ListManager.Position inside
21725 (OnListManagerItemChanged): if we're passed an actual index,
21728 * CurrencyManager.cs (set_Position): don't call PullData here.
21730 2006-06-09 Jackson Harper <jackson@ximian.com>
21732 * TreeNode.cs: Recalculate the visible order before doing the
21733 Expand/Collapse Below calls, because those calls generate an
21735 - Reduce calls to the TreeView property, which is mildly expensive
21736 by using a local var.
21737 * Form.cs: Layout the MDI child windows when creating the parent
21739 - Don't use the internal constructor anymore
21740 * MdiClient.cs: use the parent form width/height (if available)
21741 when laying out the child windows, we do this because the
21742 mdiclient isn't docked yet when the initial layout is done.
21743 - Don't need an internal constructor anymore.
21745 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21747 * FileDialog.cs: handle access errors when trying to create a folder
21748 or changing to a directory. No need to initialize out parameters.
21750 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21752 * FileDialog.cs: Append a number when creating a new folder if the
21753 folder already exists (use parenthesis instead of square brackets)
21755 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21758 - Disabled registry support for windows and added better registry
21759 error checking for other systems (need to investigate why it
21760 works perfectly on my system)
21761 - If a folder already exist show an error MessageBox instead of
21762 trying to create an indexed name.
21763 - Fixed a non intentional typo.
21765 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21767 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
21769 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21771 * FileDialog.cs: When creating a new folder don't crash if the
21772 folder already exists.
21774 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21776 * FileDialog.cs: Allmost a complete rewrite.
21777 - added a "virtual" file system that handles the differences
21778 between unix and windows file systems (especially the directory
21779 structure). Moved most of the directory and file handling code
21781 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
21782 UnixFileSystem and FSEntry.
21783 - Recently used folder/directory, size, location and used file names
21784 (file name ComboBox) are now stored in the registry and get read
21785 before the dialog shows up (fixes part 6 of bug #78446).
21786 - Creation of new folders/directories is now possible (context menu
21787 or ToolBar). Added TextEntryDialog for this that fills in the gap
21788 until ListView.LabelEdit works.
21789 - Fixed cursor handling (bug #78527) and focus handling for
21791 - Various "Search in" ComboBox enhancements. The content of the
21792 dropdown listbox now almost matches ms.
21793 - Changed the behaviour when the user switches to SpecialFolder
21794 Recent to show the ListView in View.Details.
21795 - Beside using the ToolBar to change the View property of the
21796 file ListView it is now possible to use the context menu too.
21798 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21800 * ComboBox.cs: Don't create a new ObjectCollection when an item
21801 gets inserted. Just insert the item in the existing object_items
21804 2006-06-08 Jackson Harper <jackson@ximian.com>
21806 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
21807 that the treeview and root node checks are done also, this fixes a
21808 regression i caused in the unit tests.
21810 2006-06-07 Wade Berrier <wberrier@novell.com>
21812 * RichTextBox.cs: More ISO8859-1 -> unicode
21814 2006-06-07 Mike Kestner <mkestner@novell.com>
21816 * ComboBox.cs : use items to hold highlight/selection so that
21817 collection insertions don't require synchronization.
21819 2006-06-07 Jackson Harper <jackson@ximian.com>
21821 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
21822 routine. We now always keep the sized edge at the cursor instead
21823 of computing movement and adjusting rects. There is one buglet
21824 with this method though when the cursor is moved over area that
21825 the window can not expand too (such as the toolbars on the desktop).
21827 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21829 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
21830 here. Fixes crash on startup in AlbumSurfer.
21832 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
21834 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
21837 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21839 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
21840 statement to avoid calling XNextEvent which will block if another thread
21841 took the event that we were expecting. Fixes bug #78605.
21843 2006-06-07 Mike Kestner <mkestner@novell.com>
21845 * ListView.cs : isolated checkbox clicking from the selection logic.
21846 Toggle check state on item doubleclicks. Really fixes #78454 part2.
21848 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21850 * Form.cs: Check that the value passed to Form.DialogResult
21851 is a valid enum value.
21853 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21855 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
21856 Computer'. Clicking it in the network view goes to 'My Computer'.
21857 Added CIFS filesystem type. Display the mount point of filesystems.
21858 Avoid duplicate mount points (happens for me with CIFS);
21860 2006-06-06 Jackson Harper <jackson@ximian.com>
21862 * InternalWindowManager.cs: Draw the maximized windows buttons
21865 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21867 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
21868 all other dialogs. Fixes bug #78585.
21870 2006-06-06 Mike Kestner <mkestner@novell.com>
21872 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
21873 Only invalidate checkbox on checkstate changes to avoid flicker.
21874 * ListBox.cs : avoid unselect/select when clicking selected item.
21875 avoid reselection flicker for already multiselected items.
21878 2006-06-06 Jackson Harper <jackson@ximian.com>
21880 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
21881 the parent form so that the menu is removed if needed.
21883 2006-06-06 Mike Kestner <mkestner@novell.com>
21885 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
21886 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
21888 2006-06-06 Mike Kestner <mkestner@novell.com>
21890 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
21893 2006-06-06 Jackson Harper <jackson@ximian.com>
21895 * Control.cs: Use the property (instead of the field) to get the
21896 default cursor so it is instantiated correctly.
21897 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
21898 resizes so we need to manually repaint the window decorations here.
21899 - Set the titlebar button locations as soon as they are created,
21900 otherwise they are not set correctly on win32.
21902 2006-06-06 Chris Toshok <toshok@ximian.com>
21904 * CurrencyManager.cs (set_Position): call PullData before
21906 (AddNew): after calling IBindingList.AddNew, update our
21907 listposition, and call OnCurrentChanged/OnPositionChanged (without
21909 (OnCurrentChanged): remove the call to PullData from here.
21910 (OnItemChanged): remove the call to PushData from here.
21911 (OnPositionChanged): change the test from == null to != null to
21912 match the other methods.
21913 (ListChangedHandler): the grossest part of the patch. Implement
21914 this such that it passes the unit tests in CurrencyManagerTest and
21915 the output more or less matches that of MS's implementation.
21917 2006-06-06 Mike Kestner <mkestner@novell.com>
21919 * ListView.cs : only update check state on single click.
21920 * ThemeWin32Classic.cs : fix focus drawing for details view without
21921 fullrowselect. Fixes #78454.
21922 * XplatUIX11.cs : fix for double click emission.
21924 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
21926 * PropertyGridView.cs : Applied Atsushi's patch to fix
21927 font dialog bug (#78197).
21929 2006-06-05 Jackson Harper <jackson@ximian.com>
21931 * TreeNode.cs: Compute the next node for expanding/collapsing
21932 correctly. We now factor in nodes without a NextNode
21933 correctly. (Fixes somes cases in nunit-gui).
21934 * InternalWindowManager.cs: Set the bounds when updating the
21935 virtual position of a tool window.
21937 2006-06-05 Chris Toshok <toshok@ximian.com>
21939 * DataGrid.cs: rename cached_currencymgr to list_manager.
21940 (set_CurrentCell): move SetCurrentCell code here, and clean it up
21942 (CurrentRow, CurrentColumn): single accessors so we can make the
21943 cursor movement code a lot easier to understand.
21944 (CurrentRowIndex): implement this in terms of CurrentRow.
21945 (BeginEdit): clean this up a bit.
21946 (CancelEditing): sort out the is_editing/is_changing/is_adding
21948 (EndEdit): minor changes.
21949 (OnKeyDown): add a comment about a (most likely) unnecessary
21951 (OnMouseDown): cancel editing when we click on a row header. And
21952 use the CurrentRow setter, not CurrentCell.
21953 (ProcessDialogKey): directly call ProcessGridKey.
21954 (UpdateSelectionAfterCursorMove): factor out this common block of
21955 code (it's used everywhere that we move the cursor by updating row
21957 (ProcessGridKey): pretty substantial overhaul. Use the
21958 CurrentRow/CurrentColumn properties to make the code a lot more
21959 readable. Only use the CurrentCell property when we have to
21960 modify both row and column at once. Tab behavior is still broken,
21961 and Delete is untested.
21962 (Select): if we have no selected rows, set selection_start to
21964 (EditCurrentCell): rename EditCell this. It was only ever invoked
21965 with CurrentCell as the arg, so drop the arg and rename it.
21967 * DataGridColumnStyle.cs: clean up the constructors a little, and
21968 drop CommonConstructor().
21970 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
21971 actually get notified when the user hits it.
21972 (ProcessKeyMessage): *substantially* simplify this method.
21973 There's no reason (that I can see) for the textbox to be making
21974 calls into the datagrid at all. Remove all of them but the ones
21975 for Enter handling. those will take some more work.
21977 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
21978 calling HideEditBox.
21979 (HideEditBox): if we have an active textbox, render it invisible
21980 without causing a re-layout of the datagrid.
21982 2006-06-05 Mike Kestner <mkestner@novell.com>
21984 * ListView.cs : fix NRE crasher when focuseditem is cleared by
21985 collection changes by resetting it to Items[0]. Fixes #78587.
21987 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21989 * MessageBox.cs: if the height of the text is larger than the icon_size,
21990 use that. Fixes bug #78575.
21992 2006-06-05 Jackson Harper <jackson@ximian.com>
21994 * TreeView.cs: Fix line drawing when scrolling. To do this each
21995 node is basically responsible for drawing its entire horizontal
21996 area. When drawing a node it draws its parent node lines if
21998 - Adjust the clip area to the viewport rectangle
21999 - Fix Left/Right key handling to match MS. (It expand/collapses
22000 and moves to parents/first child but does not move selection to
22002 - Fix SetTop to work with new bound calculation code
22003 - When scrollbars are no longer needed we need to reset scrolling
22004 vars and recalculate the visible order so the redraw is correct
22005 * TreeNode.cs: We can't expand/collapse nodes with no children.
22007 2006-06-03 John Luke <john.luke@gmail.com>
22009 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
22010 so the colors work without dev packages
22012 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
22015 - Select: Implemented to just use activate. Seems to match MS
22016 behaviour closest. Documented to only do actual control walking
22017 based on it's parameters if in a container control so I moved
22019 - Removed selection check logic from our internal Select() method
22020 * ContainerControl.cs:
22021 - Select: Moved selection logic from Control here, since MS documents
22022 that containers obey the bool arguments. No longer calling base
22024 2006-06-02 Jackson Harper <jackson@ximian.com>
22026 * TreeView.cs: If the selected node isn't changed when we get
22027 focus update the previously selected node so that we see the
22030 2006-06-02 Mike Kestner <mkestner@novell.com>
22032 * ComboBox.cs: restructure grab and general mouse event handling.
22033 Make the composite control raise mouse events like it was a single
22034 control for leaves/enters/motion/up/down events. fix dropdown list
22035 coordinate mangling and refactor it into the scrollbar subclass to
22036 reduce code duplication. Fixes #78282 #78361 and #78457.
22038 2006-06-02 Mike Kestner <mkestner@novell.com>
22040 * ScrollBar.cs: remove Capture setting/clearing, as it happens
22041 automatically in the Control.WndProc.
22043 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22045 * FileDialog.cs: fix crash when running SharpChess, which sets the
22046 FilterIndex to 2 with only one Filter.
22048 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22050 * ToolBar.cs: add SizeSpecified property.
22051 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
22052 try to figure out our real size, otherwise fallback to what the
22055 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22057 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
22058 * Control.cs (WndProc): MS always calls the DefWndProc to pass
22061 2006-06-01 Mike Kestner <mkestner@novell.com>
22063 * ListView.cs: revamp the focus management in ListView. It still
22064 causes churn of LostFocus/GotFocus emissions on clicks, but it's
22065 better than not handling focus at all. Will revisit when pdb feels
22066 the general focus handling is solid. Fixes #78526.
22068 2006-06-01 Jackson Harper <jackson@ximian.com>
22070 * TreeView.cs: Set the default border style in the constructor.
22071 - Move painting to use OnPaintInternal instead of capturing
22072 WM_PAINT, this is the correct way of doing things
22073 - UpdateBelow shouldn't invalidate the scrollbar area
22074 - Cap the top on update below in case the node was above the top
22075 of the viewport rectangle.
22076 - ExpandBelow and Collapse below need to obey Begin/End Update.
22077 * TreeNode.cs: Make is_expanded internal so the treenode
22078 collection can change it without firing the whole event chain.
22079 * TreeNodeCollection.cs: When clearing all the child nodes make
22080 sure to recalc the visible order.
22081 - Improve algo for remove the top node
22083 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22085 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
22086 SendMessage directly calling window procedures, which in turn might
22089 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22091 * Control.cs: Don't handle WM_SETFOCUS if the same window already
22092 has focus (works around X11 sending a FocusIn after our SetFocus)
22093 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
22095 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
22097 * Mime.cs: Fix for the NET_2_0 build.
22098 NameValueCollection needs StringComparer now.
22100 2006-05-31 Chris Toshok <toshok@ximian.com>
22102 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
22103 return (via an out parameter) the starting X of the column.
22104 (UpdateVisibleColumn): track change to FromPixelToColumn.
22105 (HitTest): add a ColumnResize case here.
22106 (DrawResizeLine): new function, probably poorly named.
22108 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
22109 only need to keep one reference.
22110 (set_ListManager): same.
22111 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
22112 Also, add support for HitTestType.ColumnResize.
22113 (OnMouseMove): add column resize behavior here, and change the
22114 cursor to the correct one as we move around the datagrid.
22115 (OnMouseUp): terminate the column resize if we're resizing.
22116 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
22117 for the current cell.
22118 (ConnectListManagerEvents): use cached_currencymgr.
22119 (DisconnectListManagerEvents): fill this in, using
22120 cached_currencymgr.
22121 (SetCurrentCell): remove cached_currencymgr_events handling.
22122 (SetDataMember): only call DisconnectListManagerEvents if
22123 cached_currencymgr is != null.
22124 (SetDataSource): same.
22125 (OnListManagerCurrentChanged): cached_currencymgr_events ->
22126 cached_currencymgr.
22128 2006-05-31 Jackson Harper <jackson@ximian.com>
22130 * BindingManagerBase.cs: Remove somedebug code that creeped into
22132 * TreeNode.cs: We get the indent level dynamically right now, so
22133 don't track it as a member.
22134 * TreeNodeCollection.cs: Make sure all nodes added to the list
22135 have parents, treeviews/topnodes setup properly.
22136 - Don't attempt to track indent level.
22138 2006-05-30 Jackson Harper <jackson@ximian.com>
22140 * BindingContext.cs: Create the currency manager tables here.
22141 This allows us to more easily create null tables (when bad data
22142 members are used), and more easily create related currency
22144 * CurrencyManager.cs: All the table creation stuff is done by the
22145 binding context now.
22146 - Current should throw an exception if listposition is -1.
22147 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
22150 2006-05-30 Mike Kestner <mkestner@novell.com>
22152 * ListView.cs: allow reexpansion of zero-width column headers.
22155 2006-05-28 Chris Toshok <toshok@ximian.com>
22157 * CurrencyManager.cs (get_Current): after the late binding
22158 listposition = -1 fix, we need to guard against it here and return
22159 null, otherwise we raise an exception (which is swallowed
22160 elsewhere, and breaks datagrid databinding.)
22162 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22164 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
22165 than WM_SYSKEY, don't throw if get something unexpected (#78507)
22167 2006-05-26 Jackson Harper <jackson@ximian.com>
22170 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
22171 values, it's faster and it's all we care about (we don't care if
22172 the names aren't equal).
22173 * KeyboardLayouts.cs: Eliminate some dead code.
22175 * X11Keyboard.cs: Lazy init keyboard detection.
22176 - Cleanup access modifiers a little.
22178 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22180 * XplatUIX11.cs: Once again, attempting to get layout just right.
22182 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22184 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
22185 the sizes of each link section, that will result in sizes that
22186 match DrawString's layout (Fixes #78391)
22188 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
22190 * FileDialog.cs: If AddExtension property is true autocomplete the
22191 extensions in SaveFileDialog correctly. Fixes bug #78453.
22192 Set MyNetwork and MyComputer to "C:\" for windows. This should
22193 fix part 8 of bug #78446 for now.
22195 2006-05-26 Chris Toshok <toshok@ximian.com>
22197 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
22198 invalidate the current row header if we need to, but presumably
22199 we'll invalidate the row corrsponding to the bounds or
22201 (GridHScrolled): switch back to this method, as it's part of the
22202 public api. *sigh*.
22203 (GridVScrolled): same.
22204 (OnMouseWheel): hack up something that more or less works. Call
22205 GridHScrolled/GridVScrolled directly, instead of duplicating much
22206 of their code here.
22207 (EnsureCellVisibility): reinstate a bunch of this code, since we
22208 can't just set the scrollbar Value and expect to do all the work
22209 in the ValueChanged handler. Also, Call Update() after scrolling
22210 in one direction so the other XplatX11.ScrollWindow call has the
22211 proper stuff in the proper places.
22212 (EditCell): set is_editing to true before calling .Edit.
22214 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
22215 don't bother comparing first.
22216 (OnKeyPress): call grid.ColumnStartedEditing before calling
22217 base.OnKeyPress. this will set is_changing and invalidate the row
22218 header if necessary.
22219 (ProcessKeyMessage): for WM_CHAR messages, call
22220 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
22223 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
22224 it's done in the DataGrid.
22225 (NextState): call grid.ColumnStartedEditing, which takes care of
22226 invalidating the row header (and setting is_changing).
22228 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
22229 here. it's done in the DataGrid.
22231 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22233 * Control.cs: allow changing the cursor when the mouse position is
22234 out of bounds but Capture is set.
22235 * LinkLabel.cs: handle the case when the mouse button is pressed on the
22236 linklabel but released somewhere else.
22238 2006-05-25 Jackson Harper <jackson@ximian.com>
22240 * TreeView.cs: When we get focus if there is no selected node make
22242 - Remove some uneeded setup code from Draw.
22243 * TreeNodeCollection.cs: If the tree doesn't have a top node when
22244 a new node is inserted make the new node the top.
22246 * Timer.cs: Use Utc time so that no local time zone stuff needs to
22247 be used (should be faster).
22249 2006-05-25 Chris Toshok <toshok@ximian.com>
22251 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
22252 problem with the last commit.
22254 2006-05-25 Chris Toshok <toshok@ximian.com>
22256 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
22257 need the invalidate call here, while scrolling right-to-left via
22258 the left arrow key (i.e. moving the editing cell while scrolling).
22260 * DataGrid.cs (.ctor): remove the initialization of
22261 ctrl_pressed/shift_pressed. We no longer track them using key
22262 up/down handlers, but by using Control.ModifierKeys. Also, switch
22263 to using ValueChanged handlers on the scrollbars instead of
22264 Scrolled event handlers. This simplifies a bunch of the scrolling
22266 (GridHValueChanged): rename from GridHScrolled, and change it to
22267 work with the new event args.
22268 (GridVValueChanged): same.
22269 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
22270 (OnMouseWheel): actually scroll the datagrid. Don't change the
22272 (ProcessGridKey): correct all the keyboard navigation stuff I
22273 could find. Ctrl up/down/left/right/home/end work now.
22274 (EnsureCellVisibility): correct method name spelling. Also,
22275 simplify this a touch by not explicitly calling the
22276 ScrollToRow/ScrollToColumnInPixels methods. We just set the
22278 (OnKeyUpDG): no need for this method now.
22280 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22282 * LinkLabel.cs: display the OverrideCursor when hovering the label.
22285 2006-05-25 Chris Toshok <toshok@ximian.com>
22287 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
22290 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
22292 * Application.cs: Moved setting of is_modal and closing to before
22293 we create the control, to allow the event handlers called as a
22294 result of creation affect closing. Also removed Gonzalo's previous
22295 change to setting DialogResult, the behaviour has been moved to
22298 - ShowDialog(): Removed explicit creation of the form, let RunLoop
22300 - ShowDialog(): If no dialog result is set, we need to return Cancel
22301 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
22302 the close is cancelled
22304 2006-05-25 Jackson Harper <jackson@ximian.com>
22306 * StatusBar.cs: We only need to update the sizes of the other
22307 panels when we have auto size contents. Also we are only updating
22308 the contents of the panel, not the borders, so compensate for the
22309 border width (TODO: get this width from the theme somehow).
22310 * TreeView.cs: Scrollable is true by default
22311 - Use invalidate instead of refresh where needed
22312 - Factor the scrollable value into scrollbar updating
22313 - Update the scrollbars if the Scrollable property is altered
22314 - Update the selected node if its ImageIndex is changed
22315 - Handle null nodes in UpdateNode (mainly so we don't have to
22316 check if selected is null when updating it
22317 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
22318 are factored into the visible count
22319 - Use VisibleCount for clarity in the code
22320 - When the font is changed we need to recurse through all the
22321 nodes and invalidate their sizes
22323 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22325 * Application.cs: set the DialogResult to fixed when the main form is
22326 hidden or destroyed while being modal.
22328 2006-05-25 Miguel de Icaza <miguel@novell.com>
22330 * Theme.cs: Use Tangoified messagebox icons.
22332 (GetSizedResourceImage): Also cope with width = 0 and do not
22333 trigger a warning in that case (0 means "give me your icon from
22334 the resouce, no special size needed).
22336 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
22338 * Application.cs: Leave runloop if the the main modal form is
22339 hidden (fixes #78484)
22341 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
22343 * BindingContext.cs : reject null datasource in Contains() and
22345 * CurrencyManager.cs : check data_member validity when data_source
22346 is dataset. When it is late binding, the initial position is -1.
22348 2006-05-24 Jackson Harper <jackson@ximian.com>
22350 * TreeNodeCollection.cs: Dont't recalculate the visible order on
22351 inserted nodes that aren't visible. This changes the
22352 max_visible_order which confuses scrollbar settings.
22353 - Use the enumerator to get the prev node instead of duplicating
22355 * TreeView.cs: Use new method for setting scrollbar values
22356 - Don't set the bounds every time the scrollbar is updated
22357 - When updating below the root node use an invalidate instead of a
22358 refresh to prevent the child controls (scrollbars) from being
22359 refreshed. (UpdateBelow still needs to be reworked anyways).
22360 - Reenable SetBottom now that visible orders are set correctly,
22361 added some debug code incase we ever get bad values there again.
22362 - Set the scrollbar max to 2 less then the max value, this
22363 compensates for the max value being one above the node count, and
22364 for scrollbars adding one extra "notch".
22365 - When drawing image nodes if there is an imagelist we draw the
22366 first image in the list if the supplied image index is out of the
22367 image list's bounds.
22369 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22371 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
22372 we receive a size change from the WM (Fixes #78503)
22374 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22376 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
22377 rectangle (Fixes #78501)
22379 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22382 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
22384 - Fixed MouseMove to no longer switch pressed state unless the left
22385 mouse button is pressed. Atsushi provided the original patch (#78485)
22387 2006-05-24 Jackson Harper <jackson@ximian.com>
22389 * ScrollBar.cs: New internal methods that allow us to change a
22390 couple values on the scrollbar (the most common case is maximum
22391 and large change) without getting multiple invalidates.
22393 2006-05-24 Chris Toshok <toshok@ximian.com>
22395 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
22396 (Edit): save off the original state in oldState, and set
22397 grid.is_editing to true.
22398 (OnKeyDown): abort editing if escape is pressed. also, call
22399 NextState if space is pressed.
22400 (OnMouseDown): call NextState.
22401 (NextState): factor out shared code from OnKeyDown and OnMouseDown
22402 here. Also, only invalidate the row header once (on the initial
22403 is_changing switch) to save on redraws.
22405 2006-05-24 Chris Toshok <toshok@ximian.com>
22407 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
22408 if the value in the cell is different than it was before. This
22409 keeps us from triggering a layout when we move around a datarid
22410 with a highlighted cell.
22411 (Edit): suspend layout when creating/positining the text box, and
22412 resume passing false so we don't ever actually re-layout.
22413 (ReleaseHostedControl): same.
22414 (EnsureTextBox): reformat slightly, and set WordWrap to false.
22416 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
22417 control-key sequences should go to the datagrid - remove that
22418 lock. Also, modify the conditions under which we move between
22419 cells when moving the cursor within a cell, and remove the "this"
22420 and "base" from field accesses. We weren't even consistent, given
22421 they all were in the base class.
22423 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
22425 * Binding.cs : (.ctor)
22426 An obvious NRE fix for BindingTest.CtorNullTest().
22428 2006-05-23 Chris Toshok <toshok@ximian.com>
22430 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
22431 them between lines. This fixes some quirks editing cells in the
22434 2006-05-23 Jackson Harper <jackson@ximian.com>
22436 * TreeView.cs: Use begin/end update when doing expand/collapse all
22437 so that we don't get flicker on the scrollbar.
22439 2006-05-23 Jackson Harper <jackson@ximian.com>
22441 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
22442 treenode calculations to be independant of the painting code. To
22443 do this nodes track a visible order which is calculated by the
22445 - Call new methods for expanding/collapsing nodes. These methods
22446 use scrollwindow so we don't have to update everything below the
22448 * TreeView.cs: Refactored drawing and scrolling code. We don't
22449 need to update nodes when drawing anymore or calculate scrollbar
22451 - Added new methods for expanding/collapsing nodes. These methods
22452 use ScrollWindow so as to not have to redraw all the nodes below.
22453 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
22454 we add/remove nodes or sort.
22455 - Handle removing the selected and the top node properly.
22457 2006-05-23 Chris Toshok <toshok@ximian.com>
22459 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
22460 maybe this should actually happen in the datagrid code?
22461 (EndEdit): no need to invalidate anything, given that
22462 ReleaseHostedControl causes the datagrid to relayout, which
22463 invalidates everything anyway.
22465 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
22466 in SetCurrentCell).
22467 (set_SelectionBackColor): call InvalidateSelection instead of
22469 (set_SelectionForeColor): same.
22470 (BeginEdit): Flesh this out a bit.
22471 (CancelEditing): only do any of this if we're editing/adding.
22473 (OnMouseDown): there's no need to cancel editing here, it's done
22475 (SetCurrentCell): only invalidate the current row header if it's a
22476 different row than the new one.
22477 (ShiftSelection): fix this to work like MS does.
22478 (ResetSelection): factor out the invalidation of selected_rows to
22479 InvalidateSelection.
22480 (SetDataSource): cancel any editing that's going on.
22482 * DataGridColumnStyle.cs
22483 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
22484 call the non-interface version.
22486 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
22487 header rectangle with the clip rectangle so we don't redraw the
22488 entire header for just a small area. Gets rid of the last flicker
22489 when horizontally scrolling.
22490 (DataGridPaintRow): same.
22492 2006-05-23 Mike Kestner <mkestner@novell.com>
22494 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
22495 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
22496 poorly placed checkbox on the MS control. Fixes Alex's unfiled
22497 Critical bug report.
22499 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22501 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
22502 and this fixes #78493
22504 2006-05-23 Miguel de Icaza <miguel@novell.com>
22506 * Theme.cs (GetSizedResourceImage): Scale images if the proper
22509 * FileDialog.cs: Do not change the background for the side bar as
22510 it wont work nicely with the theme, and also reduces the artifacts
22511 in rendering the icons (which I want to fix too).
22513 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
22514 resources, not resgen resources.
22516 (PlatformDefaultHandler): Pull images using the new API.
22518 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22520 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
22521 a reference to the hwnd and will not remove it unless there are
22522 no pending exposures (fixes #78341)
22523 * XplatUI.cs: Improved debug
22525 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
22527 * MenuAPI.cs : don't handle OnClick event when it was not the left
22528 button. Fixed bug #78487.
22530 2006-05-23 Mike Kestner <mkestner@novell.com>
22532 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
22533 prefer submenus to the top menu for item lookup, to avoid popping down
22536 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
22538 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
22539 Graphics.FillRectangle as the visual results are really bad (even
22540 on win). We now draw perfect arrows (and perfect shadows when the
22541 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
22542 Pen.DashPattern to draw the dots of each line.
22544 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
22546 * FileDialog.cs: Update the filename combobox when navigating through
22547 the ListView with the cursor keys. Fixes part 7 of bug #78446.
22549 2006-05-22 Mike Kestner <mkestner@novell.com>
22551 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
22554 2006-05-22 Mike Kestner <mkestner@novell.com>
22556 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
22557 requests. Fix a misspelled parameter and a copy paste exception error
22560 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
22562 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
22563 to get the same width/height (5/13) on X11 as the default font has on
22564 win32. This means that our DefaultFont emSize is smaller than the
22565 the MS SWF equivalent (even thought the width/height stays the same)
22567 2006-05-20 Jackson Harper <jackson@ximian.com>
22570 * MdiWindowManager.cs:
22571 * InternalWindowManager.cs: Make sure to use the border width from
22574 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
22576 * PrintDialog.cs: Implements printer details
22578 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
22580 * FileDialog.cs: Added focus handling for PopupButtonPanel.
22581 Fixes part 1 and 2 of bug #78446
22583 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
22585 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
22586 instead of sticking to the first ever calculated value
22588 2006-05-19 Mike Kestner <mkestner@novell.com>
22590 * ComboBox.cs: fix mouse motion selection to use MousePosition and
22591 PointToClient, since Capture is set. Fixes #78344.
22593 2006-05-19 Mike Kestner <mkestner@novell.com>
22595 * ListView.cs: match MS behavior in Details view where items are not
22596 drawn if Columns.Count == 0.
22597 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
22598 Use a separate pen to draw the check, since changing the width affects
22599 the box as well. Fixes #78454.
22601 2006-05-18 Miguel de Icaza <miguel@novell.com>
22603 * ListView.cs: ArgumentOutOfRangeException, single versions of the
22604 exception should throw the name of the invalid argument.
22606 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
22607 there are no files listed.
22609 2006-05-18 Jackson Harper <jackson@ximian.com>
22611 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
22614 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22616 * Control.cs: Brought back our old UpdateZOrder method as a private
22617 function and switched our calls from UpdateZOrder to the new one.
22618 This fixes the Paint.Net canvas disappearing bug.
22620 2006-05-18 Jackson Harper <jackson@ximian.com>
22623 * ThemeWin32Classic.cs:
22624 * InternalWindowManager.cs: Move the drawing into the theme,
22625 expose everything the theme should need from the window manager.
22627 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22629 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
22630 from the call to NativeWindow to avoid walking up the parent chain
22631 further than needed (speeds up setting cursors and avoids setting
22632 the wrong cursor if a parent has another cursor defined)
22633 * Cursor.cs: When loading an icon as cursor, MS uses the center of
22634 the icon as hotspot, not what's contained as hotspot in the icon
22635 file. This fixes the perceived drawing offset seen with Paint.Net
22637 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22640 - Store the calculated rectangle in Hwnd object and use it when
22641 setting the client size
22642 - Force Toolwindows to always be type Dock, to ensure they're on top
22644 2006-05-18 Mike Kestner <mkestner@novell.com>
22646 * ComboBox.cs: first pass at ComboBox rework. Layout is more
22647 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
22648 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
22649 Substantial refactoring to remove confusing nested classes. Coding
22650 standard and Get+Set->property refactorings. Shift to index based
22651 highlighting in ComboListBox instead of constantly using IndexOf and
22652 Items[]. Add invalidations on resize for DropDownList to fix ugliness
22653 in FileDialog growth. Draw borders manually since Simple mode needs
22654 to look like two independent controls. Make listbox border
22655 conditional to DropDownStyle. Improved OwnerDraw support.
22657 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
22659 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
22660 Don't set the disposed graphics to null, so we can throw the "right"
22661 exception if the graphics is reused later (added a flag to avoid
22662 double disposing). Some behaviours are different under 2.0 and are
22663 filled under bug #78448.
22665 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22667 * Control.cs: When double-buffering is enabled, we need to reset
22668 our graphics context between paint calls. Otherwise, any
22669 transformations and other alterations on the context will
22670 become cumulative (#77734)
22672 2006-05-18 Mike Kestner <mkestner@novell.com>
22674 * ListView.cs: do focused item selection like MS on clicks.
22675 Rework focus handling for ItemControl so LostFocus invalidates as
22677 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
22678 the ListView ItemControl has focus.
22680 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
22682 * XplatUIX11.cs: If client_window ends up being width or height zero
22683 due to border settings, move it off window inside whole_window (#78433)
22685 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22687 * Mime.cs: Shrink the mime file cache correctly.
22689 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22691 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
22693 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22695 * XplatUIX11.cs (AddExpose): More sanity checks
22697 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22700 - AddExpose: Don't add expose ranges outside the size of our
22702 - Cast opacity values to Int32 to avoid crashes with certain
22704 - Added disabled code paths that protect against illegal cross-
22705 thread painting (Developers.exe)
22707 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22709 * ProgressBar.cs: Invalidate the control when it's resized
22710 since block size is based on control size. (#78388)
22712 2006-05-16 Miguel de Icaza <miguel@novell.com>
22714 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
22715 of setting the incoming argument to the "reset" value, we set the
22716 this.datamember to string.empty (before we were invalidating the
22721 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22723 * Form.cs: Only apply transparency settings after the form
22724 is created. (Fixes #77800)
22726 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22728 * ApplicationContext.cs: Grab the HandleDestroyed event so
22729 we know when to fire OnMainFormClosed
22731 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22733 * Application.cs: Introduced sub-class to allow tracking of
22734 threads and centralized triggering of the event mess for
22735 ThreadExit, AppExit, etc.. (#76156)
22737 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
22740 - Do not return a null icon index value for a mime subclass.
22741 Instead try the main mime type class too.
22742 - Seems that some newer distributions don't have a link to some
22743 gnome default icons anymore. So check the default gnome dir too.
22746 2006-05-16 Jackson Harper <jackson@ximian.com>
22748 * MdiClient.cs: Don't paint the parent background image if we have
22749 our own background image.
22751 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22754 - PerformLayout: Do not shrink space filled by DockStyle.Fill
22755 controls, all filled controls are supposed to overlap (#78080)
22756 - UpdateZOrder is supposed to update the control's z-order in the
22757 parent's z-order chain. Fixed to behave like that
22758 - BringToFront: Removed obsolete code
22759 - SendToBack: Simplyfied
22760 - SetChildIndex: Trigger layout calculations when Z-order changes
22761 since layout is done by z-order
22763 2006-05-16 Chris Toshok <toshok@ximian.com>
22765 [ fixes bug #78410 ]
22766 * DataGrid.cs (set_AlternatingBackColor): use
22767 grid_drawing.InvalidateCells instead of Refresh().
22768 (set_BackColor): call grid_drawing.InvalidateCells.
22769 (set_BackgroundColor): use Invalidate instead of Refresh.
22771 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
22772 invalidate the cell area.
22774 2006-05-15 Chris Toshok <toshok@ximian.com>
22776 [ fixes bug #78011 ]
22777 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
22778 on to DataGridPaintRow.
22779 (DataGridPaintRow): take a clip argument, and only draw the cells
22780 which intersect it. same with the not_usedarea.
22782 * Theme.cs (DataGridPaintRow) add @clip parameter.
22784 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
22785 XplatUI.ScrollWindow.
22786 (ScrollToRow): same.
22788 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
22789 with last column which was causing a gray swath to appear with the
22790 XplatUI.ScrollWindow code.
22792 2006-05-15 Chris Toshok <toshok@ximian.com>
22794 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
22795 use XplatUI.ScrollWindow.
22796 (VerticalScrollEvent): use XplatUI.ScrollWindow.
22798 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22800 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
22802 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22804 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
22805 file since there are no equivalent X11 cursors
22807 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
22809 * MonthCalendar.cs : DateTimePicker should reflect selected date
22810 on mouse*up*, not mouse*down*. Fixed originally reported part of
22813 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
22815 * TabControl.cs : When argument index is equal or more than tab
22816 count, just ignore. Fixed bug #78395.
22818 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22820 * Control.cs: Dispose all child controls when control is diposed (#78394)
22822 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22824 * ColorDialog.cs: Finally it is possible to select the color with
22827 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22829 * PrintDialog.cs: Fix typo
22831 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22833 * PrintDialog.cs: PrintDialog is not resizable
22834 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
22835 color. Made some ToolBar drawing methods protected virtual.
22837 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
22839 * PrintDialog.cs: Implementation of the PrintDialog
22841 2006-05-12 Chris Toshok <toshok@ximian.com>
22843 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
22844 thumb, instead use MoveThumb. This has the side effect of making
22845 most of the other thumb moving machinery use MoveThumb as well.
22846 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
22847 need to actually invalidate the rectangle where the new thumb will
22849 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
22850 We force an Update() after, so it's not as fast as it could be,
22851 but at least there's zero flicker and no droppings.
22852 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
22853 (UpdateThumbPos): add another argument (dirty), which says whether
22854 or not to calculate/add dirty regions which we later invalidate.
22855 For cases where we know we're going to use MoveThumb, we pass
22856 false for this. Otherwise, pass true.
22858 2006-05-12 Jackson Harper <jackson@ximian.com>
22860 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
22863 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
22865 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
22866 and GetClipRegion methods and UserClipWontExposeParent property.
22867 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
22868 overriding UserClipWontExposeParent property, setting to false, since
22869 Win32 handles the required expose messages to draw our clipped parent
22871 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
22872 PaintEventStart to set the user clip region if set.
22874 - Now internally tracking the Region for the control since we need to
22875 store it if the handle is not yet created and only set it when it
22876 becomes created. Before setting the region forced handle creation
22877 - Added code to draw the parents underneath a user-clipped region
22878 * Hwnd.cs: Added UserClip property
22880 2006-05-12 Chris Toshok <toshok@ximian.com>
22882 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
22883 (set_Maximum): same.
22884 (set_Minimum): same.
22885 (set_SmallChange): same.
22886 (OnMouseUpSB): remove the call to refresh when releasing the
22887 thumb. We shouldn't need it.
22889 2006-05-12 Miguel de Icaza <miguel@novell.com>
22891 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
22892 AutoSize set to None, we do not need to relayout everything, we
22893 just need to invalidate the current region.
22895 (Draw): Do not draw the entire ClientArea, just redraw the
22896 clip area being passed.
22898 * MdiClient.cs: Make MdiClient constructor with the Form argument
22901 2006-05-12 Jackson Harper <jackson@ximian.com>
22903 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
22904 parents background image, but strangely not their own.
22905 - (DrawStatusBarPanel): Take into account horizontal alignment
22906 when drawing the strings and icons.
22908 2006-05-12 Mike Kestner <mkestner@novell.com>
22910 * ListBox.cs: avoid invalidations for focus when the collection is
22913 2006-05-12 Chris Toshok <toshok@ximian.com>
22915 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
22916 invalidate the entire thumb area. Call InvalidateDirty which
22917 limits the redraw to the thumb itself and surrounding pixels.
22919 * XplatUIX11.cs (ScrollWindow): optimize copying.
22921 2006-05-12 Chris Toshok <toshok@ximian.com>
22923 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
22924 Figure out the positioning/layout in a single pass instead of
22925 multiple recursive invocations. Speeds up the initial display of
22926 the data grid. Also, make many things private that were
22927 originally public but unused outside this class.
22929 2006-05-11 Jackson Harper <jackson@ximian.com>
22931 * MdiClient.cs: Improved layout code.
22933 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
22935 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
22936 not SelectedObject.
22938 2006-05-11 Chris Toshok <toshok@ximian.com>
22940 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
22941 union of that will always be {0,0,width,height}.
22943 2006-05-11 Jackson Harper <jackson@ximian.com>
22945 * Form.cs: Match MS's DefaultSize for forms (they must have
22946 changed the size in sp2).
22948 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
22950 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
22952 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
22954 * TextControl.cs : Fixed bug #78109. This incorrect position
22955 comparison caused crash on automatic line split.
22956 * TextBoxBase.cs : reduce duplicate code.
22958 2006-05-10 Jackson Harper <jackson@ximian.com>
22960 * MdiClient.cs: Active form is only sent to the back when using
22961 the Next form functionality, when a form is clicked the current
22962 active shouldn't be sent to the back.
22963 - Layout the mdi windows when the container is first made visible.
22964 * Form.cs: Give the MdiClient a ref to the containing form when we
22967 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
22969 * LinkLabel.cs : link_font could be uninitialized, so populate one
22970 before actual use. Fixed bug #78340.
22972 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
22974 * XplatUIX11.cs : clipboard format native value is IntPtr.
22977 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22980 - Instead of showing context menus directly we send WM_CONTEXTMENU,
22981 which is passed up the parent chain by DefWndProc
22982 - We now handle WM_CONTEXTMENU to display any menu, or pass it
22983 to DefWndProc (#77956)
22984 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
22986 2006-05-10 Jackson Harper <jackson@ximian.com>
22988 * MdiClient.cs: We need to remove the controls from the mdi
22989 collection, when we close the window.
22990 * MdiWindowManager.cs: Special handling of closing mdi windows.
22991 * InternalWindowManager.cs: Make the close method virtual so the
22992 mdi window manager can handle it specially.
22994 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
22997 - Recalculate grid when the data source has changed
22998 - Matches styles provided by user from all data sources types
22999 * DataGridTableStyle.cs: For columns that provided by the user set the
23000 with the preferred value is there was unassigned.
23001 * CurrencyManager.cs: throw OnItemChanged event
23003 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23005 * PictureBox.cs: Don't animate until handle is created. Start animation
23006 when handle is created.
23008 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23010 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
23012 * XEventQueue.cs: We don't need to provide the extra info
23014 2006-05-10 Jackson Harper <jackson@ximian.com>
23016 * MdiClient.cs: If the mdi clients parent form has a background
23017 image set, we draw that background image for the mdi area's
23020 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23022 * TextBoxBase.cs: Set IBeam cursor (#78347)
23024 2006-05-10 Mike Kestner <mkestner@novell.com>
23026 * ToolBar.cs: fix some text padding issues with ButtonSize
23027 calculation. Update the default size to match MS documentation.
23028 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
23029 button size. Fixes #78296.
23031 2006-05-10 Mike Kestner <mkestner@novell.com>
23033 * ListBox.cs: use is_visible for scrollbar positioning in case the
23034 control isn't on screen yet. Fix off by one with Right vs Width
23035 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
23037 2006-05-10 Jackson Harper <jackson@ximian.com>
23039 * X11Dnd.cs: Drop to a control with another control on top of it.
23040 * ToolBar.cs: Work on a copy of the buttons list, so that it can
23041 be modified in click handlers. TODO: Look for similar problems in
23044 2006-05-09 Jackson Harper <jackson@ximian.com>
23046 * Form.cs: Window managers need the old window state when setting
23048 * InternalWindowManager.cs: Allow the base mdi window manager to
23049 handle more of the MDI only stuff (like maximize buttons).
23050 * MdiWindowManager.cs: Fix some snafus in changing the window
23051 state. Add all the menu functionality, for both popup and
23053 * MdiClient.cs: When a new form is selected the currently
23054 activated form is sent to the back, this matches MS.
23055 - Implement a new method to activate the next mdi child window.
23057 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23060 - Added new InternalCapture method to allow controls to prevent
23061 the capture behaviour on the click handlers
23062 - Switched to use InternalCapture
23064 - Using InternalCapture to prevent mouse captures from being released
23065 on mouse button release (Fixes #78100)
23066 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
23067 returns Form borders if a caption is present. (Fixes #78310)
23069 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23071 * TreeNode.cs: Changed serialization .ctor to not require every field
23072 to be present. (#78265)
23073 * OwnerDrawPropertyBag.cs: Added serialization .ctor
23075 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
23077 * MimeIcon.cs: for is faster than foreach for strings.
23079 2006-05-05 Mike Kestner <mkestner@novell.com>
23081 * CheckedListBox.cs: update check handling code to not use selected.
23082 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
23083 behavior for visual feedback, motion response, shift/ctrl handling,
23084 and properly deal with all 4 selection modes. Updates to bounds
23085 handling logic. Add scroll wheel support. [Fixes #77842]
23087 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
23090 - Moved adding of Implicit controls into .ctor. That way, subsequent
23091 creation of the controls will not cause them to think they are
23092 toplevel windows (fixes #78200 header problem)
23093 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
23094 - Switched visibility setting of header control to use internal field
23095 to avoid triggering handle creation
23096 - Now checking if handle is created before causing a refresh when items
23097 are added (This makes us now match handle creation time with MS)
23098 * Splitter.cs: Removed loading of private splitter cursor, switched to
23099 Cursors version now that that is loading the right ones
23100 * Cursors.cs: Load proper splitter cursors from resources
23101 * Cursor.cs: Added second method of loading resource cursors for the
23102 VS.Net users amongst us
23104 2006-05-05 Mike Kestner <mkestner@novell.com>
23106 * ListView.cs: give header_control a minimum size based on the
23109 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
23111 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
23112 window seems to do that with metacity, so set that type. (#78120)
23114 2006-05-05 Mike Kestner <mkestner@novell.com>
23116 * ListViewItem.cs: fix Details mode checkbox layout bug.
23117 * ThemeWin32Classic.cs: draw a ListView column header for unused space
23118 at the end of the header, if it exists. [Fixes for #78200]
23120 2006-05-04 Jackson Harper <jackson@ximian.com>
23122 * MdiClient.cs: Add a helper property to get the container form.
23123 * MdiWindowManager.cs: We have to make sure to use the menu origin
23124 when drawing the icons and buttons, this fixes maximized window
23125 icons/buttons on win32.
23126 * InternalWindowManager.cs: Reset the restore captions when a
23127 window goes from Maximized to Minimized and vice versa. Move the
23128 DrawMaximizedButtons into the MdiWindowManager source, tool
23129 windows can't be maximized. NOTE: This could use a little
23130 refactoring if time ever permits.
23132 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
23134 * TextBox.cs: Add MWFCategoryAttributes
23135 * TextBoxBase.cs: Add MWFCategoryAttributes
23136 * Form.cs: Add MWFCategoryAttributes
23138 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
23140 * Control.cs: Add MWFCategoryAttributes
23141 * ScrollableControl.cs: Add MWFCategoryAttributes
23143 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
23145 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
23146 Divider is true. Fix a little glitch in PropertyToolBar
23149 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
23152 - Dispose: Call base.Dispose, this causes the disposed event
23153 to be fired (and probably other, more important stuff)
23154 - SetVisibleCore: Set is_visible to true after creating the
23155 window so that the window still gets created invisible (if
23156 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
23157 to generate a WM_ACTIVE message
23158 * Form.cs: Call Dispose when we want to destroy the window, instead of
23159 just destroying the handle (Dispose will do that for us)
23161 - RootWindow also needs a queue, so we can properly process the
23162 property change events from RootWindow (like Activate)
23163 - Generatic synthetic WM_ACTIVE message when the active window is
23166 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23168 * LinkLabel.cs: Trigger a recalc of our label dimensions when
23171 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23173 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
23174 for determining width and height (image might not be assigned if
23175 we're drawing an imagelist)
23177 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23179 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
23180 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
23182 * Theme.cs: No longer returns hardcoded menu height, instead calls
23184 * Form.cs (OnLoad): Scaling happens before triggering Load events
23187 2006-05-01 Mike Kestner <mkestner@novell.com>
23189 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
23191 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
23193 * TextBoxBase.cs: Removed Fixme
23194 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
23196 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
23199 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
23200 the rectangle relative to the parent, considering borders. We
23201 don't really want that.
23202 - ScrollWindow: Fixed warning to be more understandable
23203 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
23204 scrollbars and scroll only the visible area
23205 * RichTextBox.cs: Removed debug output
23207 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23209 * NumericUpDown.cs (Text): Just use base
23210 * UpDownBase.cs: Ensure txtView is created before using it
23212 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23214 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
23215 casting to IntPtr to avoid 64bit overflow errors
23217 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23220 - AllowDrop: Don't force handle creation.
23221 - CreateHandle: Added call to tell driver if we're allowed to drop
23223 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23225 * FileDialog.cs: Remember the last directory not only for the
23226 current instance but also for new FileDialog instances.
23228 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23230 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
23231 broke sending async messages
23233 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23236 - ScrollWindow: Fixed method. We finally generate expose events again
23237 for scrolled areas. This was causing 'garbage' when scrolling
23238 textbox and other controls that used ScrollWindow
23239 - Switched from using the regular queue for paint events to the MS
23240 model of 'generating' paint events when the queue is empty.
23241 We use the new XQueueEvent.Paint subclass to store which windows
23243 - AddExpose now takes the x/y/width/height of the exposed area
23244 and inserts the window into the paint queue if not already there
23245 - InvalidateWholeWindow: Switched to use new AddExpose method
23246 - UpdateMessageQueue: Added which queue to monitor for paint events
23247 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
23248 the unlikely case nothing above handles it. We reset the expose
23249 pending states to get them off the queue.
23250 - GetMessage: Now pulls a paint event if no other events are in the
23252 - Invalidate: Switched to new AddExpose method
23253 - PeekMessage: Updated to understand pending paint events
23254 - UpdateWindow: Fixed logic bug. We were only updating if the window
23255 didn't need updating. Also switched to sending WM_PAINT directly,
23257 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
23258 and random access Remove(). The random access is needed to handle
23259 UpdateWindow() where a WM_PAINT is sent directly without accessing
23261 * ScrollBar.cs: Added Update() calls to cause immediate updates to
23262 allow for better feedback when scrolling. Scrollbars are small and
23263 the immediate update should make it 'feel' more responsive without
23264 slowing things down. ScrollBar still needs it's invaliate logic
23265 updated to not always invalidate the whole bar on certain changes.
23267 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23270 (BackColor): if the control does not support a transparent background,
23271 return the default backcolor when the parent backcolor is transparent.
23273 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
23275 * Application.cs: Updated to new StartLoop/GetMessage API
23276 * RichTextBox.cs: Provide some output on RTF parsing errors
23277 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
23278 new queue_id argument to GetMessage and PeekMessage to allow faster
23279 handling of per-thread queues in drivers.
23280 * Hwnd.cs: Added Queue tracking and property
23281 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
23282 * XEventQueue.cs: Added thread trackingA
23283 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
23285 - Implemented new per-thread queue
23286 - GetMessage: Fixed return/break behaviour on several cases. We were
23287 returning stale messages in some cases, instead of just processing
23290 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
23292 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
23294 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
23296 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
23297 fixed off-by-one comparisons between Width/Height and Right/Bottom.
23299 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
23301 * PropertyGridView.cs: Fix drop down width.
23303 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23305 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
23306 a mess in DrawToolBar, so I removed one of them.
23308 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23310 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
23311 needed (clip). Otherwise we get artifacts.
23313 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23315 * FixedSizeTextBox.cs: Added constructor to allow specifying which
23317 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
23318 and switched FixedSizeTextBox to only be fixed vertical (#78116)
23319 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
23320 if it matches the scale base font (avoids unneeded scaling)
23322 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
23324 * X11DesktopColors.cs: One gtk_init_check should be enough
23326 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23328 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
23331 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23334 - Generate OnTextChanged for Backspace even if we're only deleting
23335 the current selection
23336 - When setting the Text property, only select all text if the
23337 control does not have focus when it is being set. Otherwise
23338 just place the cursor at the beginning of the control
23340 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
23342 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
23343 Added a little helper to draw PropertyGrid ToolBar with a different
23344 border and a different BackColor.
23345 * PropertyGrid.cs: Some background parts didn't get painted with the
23346 correct background color. Added a class that helps us to draw the
23347 correct border for PropertyGridView and a class that helps us to
23348 draw ToolBars with a different backcolor
23349 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
23351 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
23353 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
23354 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
23356 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23358 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
23359 into the palette entries. Also, since we're working on a copy
23360 we needed to copy the palette back onto the bitmap.
23361 * Cursor.cs: Same fix as XplatUIWin32.cs.
23363 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23365 * ImageListStreamer.cs: Need to read the var (or we're off)
23367 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23369 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
23370 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
23371 TextBoxBase.cs: Unused var fixes
23372 * AxHost.cs: Small 2.0 fix
23373 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
23374 as it seems that is what at least Metacity expects. This will make
23375 icons show up on 64bit platforms. We still have some 64bit size
23376 issues, though, since the startup app window size still won't match.
23378 2006-04-25 Mike Kestner <mkestner@novell.com>
23380 * *.cs: cleanup newly reported exception var unused warnings.
23382 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23384 * ThemeWin32Classic.cs: Button image alignment now matches exactly
23387 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23389 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
23390 image. The image position is always the same, no matter if the
23391 button is pressed or not.
23393 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23395 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
23396 selection and set the correct filename for SaveFileDialog.
23397 Patch by Emery Conrad.
23399 2006-04-24 Mike Kestner <mkestner@novell.com>
23401 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
23402 check for item.X outside the ClientRect instead of item.Y. Fixes
23405 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23407 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
23408 trust that value blindly and do some sanity check. Fixes bug #77814.
23410 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23412 * ImageListStreamer.cs: save the mask as a 1bpp image.
23414 2006-04-21 Mike Kestner <mkestner@novell.com>
23416 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
23417 pass Checked and Indeterminate to the Theme Engine. Improve
23418 encapsulation with ListBox.
23419 * ListBox.cs: Keep a StringFormat instead of calculating it every item
23420 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
23421 nested types. Move all CheckState functionality to CheckedListBox.
23422 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
23423 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
23424 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
23425 single base list. Fix scrollbar sizing and placement to mirror MS.
23426 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
23428 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
23429 for CheckedListBox by using new DrawItemState info. Center the
23430 checkboxes on the items. Use new StringFormat property.
23432 2006-04-18 Jackson Harper <jackson@ximian.com>
23434 * Form.cs: MdiChildren don't do default locations the same way as
23435 regular forms. This prevents a crash when trying to position the
23438 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
23440 * PropertyGridTextBox.cs: Formatting, copyright
23441 * PropertiesTab.cs: Formatting
23442 * PropertyGrid.cs: Formatting
23443 * PropertyGridView.cs: Formatting, fix drop down, enabled double
23444 click toggling of values
23446 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
23448 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
23449 * Control.cs (.ctor): verify_thread_handle is static, don't reset
23450 every time a control is created
23451 * Application.cs: Removed obsolete EnableRTLMirroring method
23453 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
23455 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
23456 SelectedIndex to -1. Fixes bug #78121.
23458 2006-04-17 Jackson Harper <jackson@ximian.com>
23460 * Binding.cs: Handle null values for Current and BindingContext.
23461 This occurs when binding is a little delayed.
23462 * CurrencyManager.cs: return null for Current when there are no
23464 - Hookup to the listchanged event on the DataView and update
23465 bindings when the list is changed. This fixes late binding of
23468 2006-04-17 Jackson Harper <jackson@ximian.com>
23471 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
23474 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
23476 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
23478 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
23479 with the correct ButtonState
23481 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
23483 * XplatUIX11.cs: Improved distinguishing between window types to
23484 tell the WM a type closer to what the app wants (Fixes #78107)
23486 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23488 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
23491 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23493 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
23494 drawing code to reflect the size grip changes
23496 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23498 * ImageListStreamer.cs: fix handling of the mask that follows the main
23499 bitmap when deserializing and serialize it properly. The generated mask
23500 should better be a 1bpp image, but I'll do that later.
23502 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23504 * FileDialog.cs: Show something in the DirComboBox on *nix if the
23505 path doesn't fit into some of our Current.Places
23507 2006-04-13 Jackson Harper <jackson@ximian.com>
23509 * ComboBox.cs: Use borders instead of drawing our own decorations,
23510 try to obey correct rules for heights.
23513 * ThemeClearLooks.cs:
23514 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
23515 this is now handled by borders.
23516 - Remove unused DrawListBoxDecorationSize method.
23518 2006-04-13 Mike Kestner <mkestner@novell.com>
23520 * MenuAPI.cs: null guarding for the disbled click check fixes crash
23523 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23525 * ThemeWin32Classic.cs:
23526 - Fixed CPDrawStringDisabled
23527 - Corrected drawing of disabled menu items
23528 - Fixed drawing of disabled radio buttons (bug #78095)
23529 - Draw check in a disabled CheckBox with color ControlDark
23531 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23533 * Form.cs: Use the provided width when calculating the menu size;
23534 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
23535 and ClientSize.Width won't be updated yet
23536 * Application.cs: Use Visible instead of Show() to make form visible,
23537 this way we create the handle later and menusize is considered
23539 2006-04-12 Mike Kestner <mkestner@novell.com>
23541 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
23544 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23546 * TextBox.cs: Implemented context menu
23548 2006-04-12 Mike Kestner <mkestner@novell.com>
23550 * ListView.cs: implement box selection. fixes #77838.
23551 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
23553 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23555 * XplatUIX11.cs: Added setting of window type when transient window
23556 is created (metacity would move it otherwise)
23557 * X11Structs.cs: Added WINDOW_TYPE atoms
23558 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
23559 background (the control is Opaque but still wants transparent
23562 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23564 * Control.cs: Added OnPaintBackgroundInternal to allow controls
23565 that set Opaque but don't mean it (like all ButtonBase-derived
23566 controls) to still draw their background
23567 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
23570 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23572 * Control.cs (PaintControlBackground): Set the graphics object
23573 on our PaintEvent to null to prevent it from being disposed
23574 when the PaintEvent gets disposed
23576 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
23578 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
23579 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
23581 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23584 - Added transparency check to BackColor property. Transparent
23585 backgrounds are only allowed if the control styles permit it
23586 - Added recursive painting of parent control background and
23587 foreground if a control with a transparent backcolor is drawn
23588 (Thanks to Tim Ringenback for providing his 'hack' as a base
23589 for this patch) Fixes #77985 and #78026.
23590 - Added Opaque style check before calling OnPaintBackground, no
23591 need to draw the background if the control is opaque
23592 - Removed ControlAccessibleObject owner variable (inherited from
23593 base, no need to define again)
23594 - Added some documentation links explaining the drawing events
23597 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23599 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
23600 that the affected control is the located at the left border of our
23601 parent (Fixes #77936)
23603 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23605 * TextBoxBase.cs: When rendering disabled or readonly controls,
23606 draw the background with 'Control' instead of 'Window' color as
23607 long as the user hasn't specifically set a color
23609 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23611 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
23612 since that won't be updated if the user types text (only if it's
23613 programatically set)
23615 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23617 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
23618 layout changes do to app-triggered resizes will have the proper
23619 display rectangle for layout
23621 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
23623 * ThemeWin32Classic.cs:
23624 - Make use of the SystemBrushes and SystemPens wherever possible
23625 - Corrected some highlight colors
23626 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
23628 * Theme.cs: Added Empty field to CPColor struct
23630 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23632 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
23633 is displayed when calculating the display rectangle. Thanks to Mike
23634 for teaching me the err of my ways.
23636 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
23638 * ScrollableControl.cs:
23639 - Rewrote DisplayRectangle code, now returning the proper x/y coords
23640 (instead of 0,0) and we now return the real width/height instead of
23641 just the clientrectangle, adjusted for padding. The rectangle is
23642 now cached and created by the new CalculateDisplayRectangle method.
23643 - Created new CalculateDisplayRectange method, which basically does
23644 what get_DisplayRectangle() did originally, but now using the
23645 right edge instead of DisplayRectangle to determine the size of
23647 - get_Canvas(): Fixed it to properly calculate canvas for
23648 right/bottom controls which seem to be placed to the right/bottom
23649 of any controls that have a fixed location
23650 - Removed TODO that's taken care of
23651 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
23652 and SetDisplayRectLocation according to new MSDN2 docs
23653 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
23654 event when that is called, this is added for compatibility
23655 - ScrollControlIntoView(): Implemented.
23656 - Switched scrollbars to be implicit, they shouldn't be selectable
23657 * ContainerControl: Now that ScrollControlIntoView is implemented, we
23658 call it when the active control is set/changed
23659 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
23660 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
23661 implicit_control variable (used for native Win32 message generation)
23662 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
23663 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
23664 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
23665 * XplatUIStructs.cs: Added ScrollBarCommands enum
23667 2006-04-10 Jackson Harper <jackson@ximian.com>
23670 * CheckedListBox.cs:
23677 * PrintPreviewControl.cs:
23683 * UpDownBase.cs: Fixup base event overrides.
23685 2006-04-06 Mike Kestner <mkestner@novell.com>
23687 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
23688 all user-initiated value changes to min <= value <= max-thumbsz+1.
23689 (set_Value): check for vert/horiz when calculating new thumb position.
23690 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
23692 (OnMouseMoveSB): refactor the thumb dragging code and refine
23693 invalidation logic to reduce flicker.
23694 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
23695 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
23696 (UpdateThumbPosition): small code readability cleanup
23698 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
23700 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
23703 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23705 * ThemeNice.cs: Use a better graphics effect when a button is pressed
23707 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23709 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
23710 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
23711 This dramatically reduces the number of Pen.Dispose calls.
23712 Where possible call ResPool methods only once instead of calling it
23713 over and over again (for example for the same color).
23715 2006-04-06 Mike Kestner <mkestner@novell.com>
23717 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
23718 Also remove an unused private field on the collection. Fixes #77972.
23720 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23722 * ThemeNice.cs: Added ToolBar drawing code
23724 2006-04-06 Mike Kestner <mkestner@novell.com>
23726 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
23727 I'm assuming that means we need to look up the toplevel for the
23728 provided control. Fixes the crash trace in #77911 but exposes another
23729 crash in some strange reflection usage in NDocGui.
23731 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23733 * ThemeNice.cs: Gave it a little silver touch and added Images
23735 * FontDialog.cs: FontDialog is not resizable
23736 * FileDialg.cs: Added SizeGripStyle.Show
23738 2006-04-05 Jackson Harper <jackson@ximian.com>
23740 * KeyboardLayouts.cs: Remove warning.
23742 2006-04-05 Jackson Harper <jackson@ximian.com>
23744 * Control.cs: Enable OnPaintInternal so we can use it for drawing
23745 all of our controls instead of Paint +=.
23760 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
23761 use OnPaintInternal. Remove Width/Height and Visible checks in
23762 paint handler, this is done at a higher level now.
23763 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
23764 * PaintEventArgs.cs: Add a handled flag so controls that don't
23765 want anymore painting after OnPaintInternal can make sure OnPaint
23768 2006-04-05 Mike Kestner <mkestner@novell.com>
23770 * Form.cs: fix the menu WndProc hacks to respect the native enabled
23771 state of the form, so that we don't process events when Modal dialogs
23772 are up. Fixes #77922.
23774 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
23776 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
23779 2006-04-05 Mike Kestner <mkestner@novell.com>
23781 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
23783 2006-04-05 Mike Kestner <mkestner@novell.com>
23785 * ListView.cs (HeaderMouseMove): null guarding for the over column
23786 when setting up the drag_to_index. Fixes #78015.
23788 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23790 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
23791 in the taskbar. Transient windows seem to accomplish that.
23793 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23796 - Re-enabled CreateParams.X/Y code for FormStartPosition
23797 - Added code for manual placement when creating the Control
23798 - Incomplete patch to treat MDI forms differently when
23799 setting the ClientSizeCore. (Still need to figure out handling
23802 - When we're explicitly setting the X/Y position of a non-Child
23803 window, let the WM know. Metacity really wants this.
23805 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23807 * ThemeNice.cs: Added CPDrawButton
23809 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23811 * ThemeNice.cs: Changed the color for focused buttons and activated
23812 the arrows for small scroll buttons.
23814 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23816 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
23817 anymore. Changed some method modifiers to protected (virtual)
23818 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
23820 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
23821 Updated drawing of menus, buttons and progressbars; added
23824 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23826 * ImageListStreamer.cs: implemented serialization/deserialization
23829 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
23831 * ThemeWin32Classic.cs:
23832 - Removed all the DrawFrameControl stuff; CPDrawButton,
23833 CPDrawCheckBox and CPDrawRadioButton are now handled directly
23835 - Updated and corrected the drawing code of CPDrawButton,
23836 CPDrawCheckBox and CPDrawRadioButton to better match ms
23837 - Updated theme checkbox and radiobutton code to use the CP*
23840 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23842 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
23845 2006-03-31 Jackson Harper <jackson@ximian.com>
23847 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
23849 * UpDownBase.cs: Don't CreateGraphics manually, use a
23850 Refresh. Ideally we would invalidate the correct areas here.
23852 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23855 - We now track the mapping state of windows. If a window (or
23856 one of it's parents) is not mapped we no longer permit
23857 WM_PAINT messages to be generated since we'd otherwise get
23858 lots of BadMatch X errors. Jackson did all the work figuring
23860 - Destroying the caret if the window it's contained in is
23861 destroyed. Can't use regular DestroyCaret method since it
23862 might fall into a drawing function (trying to remove the
23863 caret) and with that generate new BadMatch errors. Again,
23864 Jackson tracked this down.
23865 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
23866 make sure we send the messages to all windows. (The old code
23867 would send the WM_DESTROY to the window, and then all child
23868 windows would be 'gone' because the WM_DESTROY handle lookup
23869 would no longer find the destroyed window)
23870 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
23871 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
23873 2006-03-31 Jackson Harper <jackson@ximian.com>
23875 * ScrollableControl.cs: Dont recalc if we are not visible.
23877 2006-03-31 Mike Kestner <mkestner@novell.com>
23879 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
23880 the visibility branch.
23882 2006-03-31 Jackson Harper <jackson@ximian.com>
23884 * ScrollBar.cs: Cap values when incrementing/decrementing.
23886 2006-03-31 Mike Kestner <mkestner@novell.com>
23888 * MenuAPI.cs: setup menu.tracker for popup/context menus.
23889 * ToolTip.cs: guard against timer expirations with no active control.
23890 Not sure why it happened.
23892 2006-03-31 Mike Kestner <mkestner@novell.com>
23894 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
23896 * ToolTip.cs: Position the tooltip based on where the cursor is at
23897 popup time, not at MouseEnter time. Add a Down state so that we don't
23898 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
23899 positioning offset. Lookup DisplaySize at positioning time, since it
23900 can theoretically change during invocation.
23901 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
23902 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
23904 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23906 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
23907 Fixes behaviour when the Text property of the box is String.Empty
23909 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23911 * XplatUIX11.cs: Only send mouseleave for our client windows, not
23912 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
23915 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23917 * FileDialog.cs: Visual enhancement for the popup buttons in
23920 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23922 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
23925 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
23927 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
23928 highlighted menu items to match ms
23930 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
23932 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
23934 2006-03-30 Mike Kestner <mkestner@novell.com>
23936 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
23937 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
23938 go active to account for HotLight to Selected transition.
23939 * MenuItem.cs: add internal Selected prop. Fill out the Status
23940 property by calculating it from item info. Add HotLight,
23941 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
23943 2006-03-30 Mike Kestner <mkestner@novell.com>
23945 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
23947 2006-03-29 Jackson Harper <jackson@ximian.com>
23949 * Form.cs: Implement TODO.
23951 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
23953 * PrintPreviewDialog.cs: Implemented missing methods and events; still
23954 missing proper dialog setup in the constructor
23956 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
23958 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
23960 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
23961 - Fixed ResetBindings and removed TODO
23962 - Added check for cross-thread calls to get_Handle()
23963 - Added Marshaller attribute for set_Font to satisfy class status
23964 * FontDialog.cs: Removed TODOs that seemed implemented
23965 * UpDownBase.cs: Removed unneeded TODO and Fixme
23966 * MessageBox.cs: Implemented support for Default button and removed TODO
23967 * FileDialog.cs: Removed obsolete TODO
23968 * DomainUpDown.cs: Removed obsolete TODO
23969 * ButtonBase.cs: Removed obsolete TODO
23970 * XplatUIWin32.cs: Removed obsolete TODO
23972 - Removed obsolete TODO
23973 - Calling CheckAcceptButton when the acceptbutton is changed to allow
23974 internal status updates
23975 - Making sure the active control is selected when the control is created
23976 * CurrencyManager.cs: Removed obsolete TODO
23978 2006-03-29 Mike Kestner <mkestner@novell.com>
23980 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
23981 of PrintPreviewDialog and RichTextBox.
23983 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
23985 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
23986 DarkDark, Light and LightLight colors for a specific color
23987 * ThemeWin32Classic.cs:
23988 - Use Button drawing code to draw RadioButtons and CheckBoxes with
23989 Appearance = Button
23990 - Make use of the new ResPool helper CPColor
23991 - Draw ProgressBar and StatusBar with correct 3D borders
23993 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
23995 * ColorDialog.cs: Return selected color. Fixes bug #77940.
23997 2006-03-28 Mike Kestner <mkestner@novell.com>
23999 * ListView.cs: fix Icon layout to plan for scrollbar widths when
24000 calculating col/row counts.
24002 2006-03-28 Mike Kestner <mkestner@novell.com>
24008 switch to explicit interface method implementation for some methods
24009 corcompare identifies as inconsistent with MS.
24011 2006-03-28 Mike Kestner <mkestner@novell.com>
24015 add a few missing methods from the class status output.
24017 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
24019 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
24022 2006-03-28 Mike Kestner <mkestner@novell.com>
24024 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
24026 2006-03-27 Mike Kestner <mkestner@novell.com>
24028 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
24029 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
24031 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
24033 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
24035 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24037 * ThemeWin32Classic.cs:
24038 - GroupBox: Inserted a little gap between the text and the lines
24040 - Made the code in CPDrawBorder3D more readable
24041 - Corrected the drawing location of the up and down arrows in
24044 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24046 * ControlPaint.cs: Corrected line widths in DrawBorder for
24047 ButtonBorderStyle Inset and Outset
24049 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24051 * ThemeWin32Classic.cs:
24052 - Rewrote the totally broken CPDrawBorder3D method. That was
24053 one of the main problems for the terrific ThemeWin32Classic
24055 - Updated and corrected Button drawing
24056 - Correct the dimensions of the SizeGrip to match ms ones
24057 - Removed a small drawing glitch in DrawComboBoxEditDecorations
24058 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
24059 Border3DStyle.Sunken to match ms.
24061 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24063 * ThemeWin32Classic.cs: First small part of the "de-uglify
24064 ThemeWin32Classic" effort, SizeGrip
24066 2006-03-24 Jackson Harper <jackson@ximian.com>
24068 * XplatUIX11.cs: Give a max idle time of one second, this matches
24069 MS and forces an Idle event every second when there are no other
24070 events in the queue.
24072 2006-03-24 Mike Kestner <mkestner@novell.com>
24074 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
24075 * ListView.Item.cs: fix layout issues with null image lists and images
24076 smaller than checkbox size.
24077 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
24078 mode like MS does. It's weird, but consistent. ;-)
24081 2006-03-24 Mike Kestner <mkestner@novell.com>
24083 * ListView.cs: Scroll wheel support for the item control. Fixes
24086 2006-03-23 Jackson Harper <jackson@ximian.com>
24088 * ScrollableControl.cs: Special case negative sized areas, not
24090 * MonthCalendar.cs: Save the rect of the clicked date so we can
24091 use it for invalidation.
24092 - Try to cut down on the number of invalidates
24093 - Invalidate the rect the mouse is over and was over when moving
24094 the mouse, so we get the focus box following the cursor.
24096 2006-03-23 Mike Kestner <mkestner@novell.com>
24098 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
24099 focus rectangle drawing. Fixes #77835.
24101 2006-03-23 Mike Kestner <mkestner@novell.com>
24103 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
24104 the if and else if and reverting back to the original == check on the
24107 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
24109 * FontDialog.cs: Update the example panel if the selected index of
24110 the fontListBox changes.
24112 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
24114 * FileDialog.cs: Make FileDialog remember which directory it was in
24115 last in the same execution.
24117 2006-03-22 Mike Kestner <mkestner@novell.com>
24119 * FileDialog.cs: make the DropDownMenu on the toolbar display
24120 RadioChecks since they are mutually exclusive and that's what MS does.
24122 2006-03-22 Mike Kestner <mkestner@novell.com>
24124 * Theme.cs: add Color param to CPDrawMenuGlyph.
24125 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
24126 checks and radio marks and arrows are visible on highlighted items.
24127 * ControlPaint.cs: update to use new Theme signature.
24129 2006-03-22 Mike Kestner <mkestner@novell.com>
24131 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
24132 is active. Fixes #77870.
24134 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
24136 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
24137 to be focused/selected after startup
24139 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
24142 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
24143 CustomColors and ShowHelp properties
24144 - Some internal rewrites to get better results when using the
24147 2006-03-22 Mike Kestner <mkestner@novell.com>
24149 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
24150 HoverSelection. Fixes #77836.
24152 2006-03-22 Mike Kestner <mkestner@novell.com>
24154 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
24155 ToggleButtons. (De)Sensitize the Back button around a stack count of
24156 1, not 0. Update ButtonSize based on a pixel count of the win32
24157 control. Adjust the toolbar size/location for new button size.
24159 2006-03-22 Jackson Harper <jackson@ximian.com>
24161 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
24163 * ScrollBar.cs: When doing increments and decrements we need to
24164 set the Value property so that ValueChanged gets raised. A
24165 possible optimization here would be to make an internal SetValue
24166 that doesn't invalidate immediately.
24167 * ToolTip.cs: Tooltips get added to their container (when
24168 supplied) so they get disposed when the container is disposed.
24169 - Don't create tooltips for String.Empty. This prevents all these
24170 little 2-3 pixel windows from showing up when running nunit-gui
24171 and driving me mad.
24172 * Form.cs: Don't set topmost when setting the owner if the handles
24173 haven't been created yet. The topmost set will happen when the
24174 handles are created.
24176 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
24179 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
24180 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
24181 visible (to allow them to recalculate their sizes)
24183 2006-03-21 Mike Kestner <mkestner@novell.com>
24185 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
24186 methods. Removed a ton of redundant code. Still not really happy with
24187 the border rendering, but I think that's mainly because of the
24188 ControlDarkDark being black instead of a dark grey. Depending on how
24189 close we want to be, we might want to revisit those color choices.
24190 Among the new features added during the refactor were DropDownArrow
24191 pressed rendering, Disabled image rendering. Proper flat appearance
24192 boundary rendering. Removed the Divider and Wrapping dividers since I
24193 can't figure out any combination of themes and conditions to make the
24194 MS control draw a horizontal line on a toolbar despite what the
24195 Divider property docs indicate.
24196 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
24197 conditions and incorrect layout. Updated to coding standard.
24198 * ToolBarButton.cs: refactored layout and positioning code from
24199 ToolBar to here. Invalidate wherever possible instead of forcing
24200 redraws of the whole toolbar.
24201 (Known remaining issues: explicit ButtonSize smaller than provided
24204 2006-03-21 Mike Kestner <mkestner@novell.com>
24206 * ContextMenu.cs (Show): use the position parameter instead of just
24207 showing at the MousePosition.
24209 2006-03-21 Jackson Harper <jackson@ximian.com>
24211 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
24212 control handle this.
24213 * TreeNodeCollection.cs: If we are clearing the root node we need
24214 to reset top_node so calcs can still happen.
24215 * ThemeWin32Classic.cs: This is a Flags so we need to check
24218 2006-03-21 Jackson Harper <jackson@ximian.com>
24220 * DataGrid.cs: Create columns when the binding context has been
24222 * X11Structs.cs: Keysyms are uints.
24223 - Add size to fix build.
24225 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
24227 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24229 - Added ResetMouseHover method to allow controls to retrigger
24230 hovering if they need it more than once
24231 - Implemented MouseHoverTime and MouseHoverSize properties
24232 * Timer.cs: Start() must reset the interval
24233 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
24236 2006-03-21 Jackson Harper <jackson@ximian.com>
24238 * X11Keyboard.cs: improved layout detection. Move the nonchar
24239 tables into this file.
24240 * KeyboardLayouts.cs: Move the tables into resource files.
24242 2006-03-21 Mike Kestner <mkestner@novell.com>
24244 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
24246 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
24248 * Mime.cs: Various speed optimizations. Looking up mime types
24249 is now 2 times faster than before
24251 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
24253 * CreateParams.cs: Added internal menu field
24255 - Switched call order for UpdateBounds; now we always call
24256 the one that also takes ClientSize, and we're calculating the
24257 client size via driver method in the others. The previous
24258 method of tracking client size by difference wasn't working
24259 for forms where even the starting client size wouldn't match
24260 the overall form size (due to borders) (Part of fix for #77729)
24261 - CreateParams(): Do not use parent.Handle unless the handle is
24262 already created. Causes havoc with Nexxia and throws off our
24263 creation of controls
24265 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
24266 - Switched handling of ConfigureNotify over to new PerformNCCalc
24267 method (consolidates code)
24268 - Changed RequestNCRecalc to use new PerformNCCalc method
24269 - Added calls to RequestNCRecalc when menus and borders are changed
24270 to allow app to set NC size. (Part of fix for #77729) This matches
24271 when MS send a WM_NCRECALC on Win32 windows.
24272 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
24273 (Part of fix for #77729). This matches what MS does, they also
24274 send that message when the form is made visible.
24275 - XException.GetMessage: Improved usability of X errors by including
24276 a translation of the window into Hwnd and Control class
24277 - Improved debug info for window creation, reparenting and destruction
24278 - Created helper method WindowIsMapped() [Currently not used]
24279 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
24281 - CreateParams: Now setting our menu on the new internal menu field
24282 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
24283 avoid calculating the same property twice
24285 - Improved usability of ToString() for debugging purposes
24286 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
24287 determine the height of the menu, instead of just the font. This
24288 required to also create a graphics context and to keep a bmp
24289 around (for performance reasons)
24291 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
24293 * MenuAPI.cs: Added OnMouseUp method
24295 - Now remembering the requested client size, avoids size errors
24296 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
24297 instead of base if the menu is active. This is required due to
24298 control now capturing and releasing on down/up and it would
24299 prematurely release our menu capture
24301 2006-03-17 Jackson Harper <jackson@ximian.com>
24303 * KeyboardLayouts.cs: Add the czech layouts.
24305 2006-03-16 Jackson Harper <jackson@ximian.com>
24307 * Control.cs: Use the viewport space when sizing not the controls
24308 client size, so things like ScrollableControl that effect the
24309 viewport size (when scrollbars are added) are computed correctly.
24310 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
24312 - Handle creating BindingManagers for null data sources.
24313 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
24314 source, otherwise when rows are added they are added to the 'fake'
24315 datasource and we will crash when trying to set the position in
24317 - Use Implicit scrollbars on the datagrid so they arent
24320 2006-03-16 Jackson Harper <jackson@ximian.com>
24323 * InternalWindowManager.cs:
24324 * MdiWindowManager.cs:
24325 * X11Keyboard.cs: I really want Mike to love me again (fix
24326 compiler warnings).
24328 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
24331 - OnMouseDown: Switch to editing mode when clicking on the cell
24332 even if we're clicking on the cell that's currently
24334 - ProcessGridKey: Left/Right now wrap like MS.Net does
24335 - ProcessGridKey: Tab now knows to add a new row when tab is
24336 pressed in the cell of the last column of the
24338 - ProcessGridKey: Enter now adds another row if pressed in the last
24339 row and selectes the new row, same column cell
24340 - ProcessGridKey: Home/End navigate columns, not rows, like
24341 originally implemented
24342 - Broke ProcessKeyPreview code out into an extra Internal method
24343 so it can be called from the edit code
24344 * DataGridTextBox.cs (ProcessKeyMessage):
24345 - Switched to accept Tab keypresses
24346 - Added F2 handling to allow jumping to the end of the edited cell
24347 - Added logic to allow moving caret left/right inside edited cell
24348 and making the edited cell jump when the caret hits cell borders
24349 - Tab and Enter are now passed to the datagrid after being handled
24351 - Removed capture code now that Control handles it
24352 - set_SelectionStart now ensures caret is visible
24354 2006-03-16 Jackson Harper <jackson@ximian.com>
24356 * TrackBar.cs: Debackwards the increment/decrement for handling
24357 mouse clicks on the bar with vertical trackbars.
24358 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
24359 bottom to match MS.
24361 2006-03-16 Mike Kestner <mkestner@novell.com>
24363 * ListView.cs: make shift/ctrl keyboard and mouse selection
24364 consistent with the MS control. Fix a bug in
24365 SelectedListViewItemCollection.Clear that was pissing me off for the
24366 better part of a day because the collection was being altered
24367 underneath us as we walked the list.
24369 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
24371 * Control.cs: Not sure how we could miss this so long, but it seems
24372 that MS.Net has Capture set all the way from before calling
24373 OnMouseDown through sending the mouse events until after
24374 OnMouseUp. This will fix DataGrid's selection being set to end
24375 at the location of the MouseUp.
24377 2006-03-15 Jackson Harper <jackson@ximian.com>
24379 * BindingContext.cs: Check the binding after its added so that it
24380 can initialize the binding managers and hookup to events.
24381 * Binding.cs: Data members seem to sometimes include rows/cols in
24382 the format Row.Column we now take this into account.
24383 - Hookup to the position changed event so we can update the
24384 control when the position has changed in the data set.
24385 * CurrencyManager.cs: Take into account the row/col naming
24386 convention when creating dataset tables.
24387 * BindingContext.cs: Using a newer better way of storing
24388 datasource/datamember pairs. Hopefully this better matches MS for
24389 looking up binding managers.
24392 2006-03-15 Jackson Harper <jackson@ximian.com>
24394 * BindingContext.cs: The currency manager needs the data member
24395 name, if the member is a data set we use the name to find the
24397 * CurrencyManager.cs: When creating the list prefer an IList over
24399 - Attempt to create a DataTable from a DataSet (TODO: might need
24400 some better error checking here, although MS doesn't seem to have much)
24401 - If we have a DataTable create a view and use it as our list.
24403 2006-03-15 Mike Kestner <mkestner@novell.com>
24405 * ListView.cs: keep a matrix of the icon mode layout to facilitate
24406 keyboard navigation. Support Up/Down/Left/Right selection correctly
24407 for all 4 View modes.
24408 * ListViewItem.cs: add internal row/col fields for icon layouts.
24410 2006-03-15 Jackson Harper <jackson@ximian.com>
24412 * TabControl.cs: Redraw the tabs when we resize so their newly
24413 calculated sizes are drawn on screen.
24414 * X11Keyboard.cs: Begginnings of XIM support. We also now support
24415 composite characters.
24416 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
24417 - filter events so that composite characters can be created
24419 * X11Structs.cs: Add XIMProperties enum.
24421 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24423 * Control.cs (BringToFront, SendToBack): Don't use window or handle
24424 unless it's created
24426 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24428 * Control.cs (PerformLayout): We don't need to consider visiblity
24429 for anchoring, only for docking. This fixes 'whacky' alignment
24430 in listbox and other controls that use implicit scrollbars after
24431 the previous PerformLayout patch
24432 * ListBox.cs: Switched to use implicit scrollbars
24434 2006-03-14 Mike Kestner <mkestner@novell.com>
24438 - chain up the "new event" overrides to base and use
24439 OnEvent to raise them. Part of fix for bug #76509.
24441 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
24443 * FileDialog.cs: Do not select an item in the parent directory
24446 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24448 * Control.cs (PerformLayout): It would seem that we considered
24449 invisible windows for our layout. Not quite the right thing
24450 to do. Now we don't any longer, thereby fixing bug #76889.
24452 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24454 * Control.cs (CanFocus): I goofed. A control can have focus
24455 even though it's not selectable. Made it match MS docs.
24457 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24459 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
24460 center by default (fixes #76895)
24461 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
24462 all uses of Border3DSides.All with the explicit ORd together
24463 Left|Right|Top|Bottom because I assume that nobody was aware
24464 that All also implies a center fill. Most places I checked had
24465 a fill right above.
24466 * ProgressBarStyle.cs: Added
24468 2006-03-13 Mike Kestner <mkestner@novell.com>
24470 * ListView.cs: fix breakage in drag shadow header positioning
24471 from Peter's csc compilation fix.
24473 2006-03-13 Mike Kestner <mkestner@novell.com>
24475 * ListView.cs: fix NRE produced by backspacing twice in a focused
24478 2006-03-13 Mike Kestner <mkestner@novell.com>
24480 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
24482 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24484 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
24486 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
24487 the allowed size before making programmatic size changes
24489 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24491 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
24492 set, metacity is broken and will still use the emty sizes in
24493 the struct. (Fix for #77089)
24495 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24497 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
24498 WindowExStyles and marked both enums as Flags
24499 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
24500 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
24501 to match WindowStyles split
24503 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
24504 - Updated to match WindowStyles split
24506 - Fixed FosterParent creation, was using ExStyle on the Style field
24507 (This should help with Popup focus issues)
24508 - Updated to match WindowStyles split
24510 2006-03-13 Jackson Harper <jackson@ximian.com>
24512 * MdiWindowManager.cs: Use the system menu height. Fixes some
24513 strange sizing issues.
24515 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24517 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
24519 - Scroll to caret after inserting text (#77672)
24520 - Make scroll range one pixel higher, fixes off-by-one error (and
24521 makes underlines visible on the last line)
24523 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24525 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
24526 the keyboard state from being stuck with keys in 'pressed' state when
24527 focus is switched away via keyboard
24528 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
24529 reset the keyboard if no X11 KeyUp events are expected to come
24530 * X11Structs.cs: Switched type of Visible to bool to match driver
24532 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24535 - Switched caret to be just 1 pixel wide, matches MS and looks less
24537 - Moved caret display 1 pixel down from the top of the control
24539 - InsertCharAtCharet: Update the selection start if moving the caret
24540 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
24541 - No longer always creating the caret when the caret methods are
24542 called. Only the actual ShowCaret/HideCaret will do that now
24543 - Only setting caret visible if the owner control has focus
24544 - UpdateView: Added invalidation-shortcut logic for center and right
24545 aligned text. Previously we'd update all according to the left
24546 logic which caused drawing errors. Also fixed height of invalidated
24547 areas, now properly invalidating the whole area (was off-by-one)
24548 - owner_HandleCreated: Always generate the document when the
24549 handle is created; this ensures that
24551 - Fixed situation where caret would disappear under the right
24552 window border, also improved scrolling behaviour on left-
24554 - Fixed right-aligned textboxes to have a border to the
24555 right instead of the caret being under the right border
24557 - Switched from 'nested' to simple visible/not visible tracking
24558 for caret (part of fix for #77671)
24559 - No longer passing through translated FocusIn/FocusOut messages
24560 since we were notifying too often and the wrong windows. Instead
24561 we just notify our focussed window of receiving or loosing focus
24562 * XplatUIWin32.cs: Switched from 'nested' show/hide
24563 counting for caret to simple visible yes/no behaviour (part of
24566 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24568 * Mime.cs: Remove debug code...
24570 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24572 * MimeGenerated.cs: Removed
24573 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
24574 and subclasses) from /usr/(local/)share/mime and
24575 $HOME/.local/share/mime.
24577 2006-03-10 Jackson Harper <jackson@ximian.com>
24579 * MdiWindowManager.cs: Recalc the NC area when a window is
24580 maximized/restored so that the menu area is drawn on forms that
24583 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24585 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24586 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
24587 us to force a WM_NCCALCRESIZE message being sent. This is needed
24588 for MDI maximizing.
24590 2006-03-10 Jackson Harper <jackson@ximian.com>
24592 * Form.cs: We need to use the ActiveMenu when calculating menu
24594 - Fix nullref when the window manager hasn't been created yet.
24595 * Control.cs: Fix nullref when we try to bring a control to the
24596 front that has no parent.
24597 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
24599 - Add a dummy item to the maximized menu so it always has the
24600 correct height. Otherwise when there are no menus we don't get our
24604 2006-03-10 Jackson Harper <jackson@ximian.com>
24606 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
24608 * Form.cs: Make the window_state internal so the window managers
24610 - When an MDI child is maximized let its window manager create the
24611 main menu (so it can add its icon).
24612 - Notify the window managers of state changes
24613 - Let the window manager paint its buttons and handle button
24614 clicks on the menu when it is maximized.
24615 * InternalWindowManager.cs: Move the prev_bounds into the mdi
24616 window manager, since tool windows don't use it, only mdi windows.
24617 - Tell the main form that we don't want it to handle NCPAINT
24618 itself to avoid extra painting.
24619 - Handle clicks on a maximized windows menu.
24620 - Handle window state changes
24621 - Handle minimize/maximize clicks correctly by setting the window state.
24622 * MdiWindowManager.cs: Add an icon menu that (the menu you get
24623 when clicking on the forms icon).
24624 - New method to create a forms maximized menu. This is its normal
24626 - Handle window state changes.
24627 - Handle sizing of maximized windows. Maximized windows are just
24628 drawn bigger then the parent visible area. All controls are still
24629 there, they are just outside the visible area (this matches windows).
24630 * MdiClient.cs: No scrollbars when a child window is maximized.
24631 - Let the children windows figure out how big they should be when
24632 sizing maximized windows.
24633 - Implement a version of ArrangeIconicWindows somewhat similar to
24634 Windows version. There are some little differences, but I don't
24635 think any app will rely on the layout of minimized mdi windows.
24637 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24639 * Padding.cs: Several fixes to allow compiling with csc 2.0
24641 2006-03-09 Jackson Harper <jackson@ximian.com>
24644 * MenuItem.cs: Cheap hack so we can add items to the list without
24645 the events being raised. This allows adding mdi items during
24646 drawing. TODO: Should probably find a better time to add the items.
24648 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24650 * ThemeWin32Classic.cs:
24651 - CheckBox_DrawText: Added logic to not wrap if not enough space
24652 is available (Fix for bug #77727)
24653 - RadioButton_DrawText: Added logic not to wrap if not enough
24654 space is available (Fix for bug #77727). Also removed some
24655 duplicate code, DrawString always drawing the regular text
24656 before hitting the if statement.
24658 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24660 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
24662 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24664 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
24665 * ContainerControl.cs: Partial implementation of some 2.0 scaling
24666 methods. Moved the new 2.0 properties into alphabetical order with
24667 other properties and added MonoTODO tags
24669 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24671 * AutoScaleMode.cs: Added. Fix build.
24673 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24675 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24676 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
24677 and was requiring premature handle creation for calls from above
24678 * Form.cs, Control.cs: Removed handle arguments from calls to
24679 CalculateClientRect()
24681 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24683 * ListView.cs (HeaderMouseMove): Fix csc compilation.
24684 drag_column.column_rect is MarshalByRef and can't be used that way
24686 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24688 * AxHost.cs: Added deserialization constructor for
24689 AxHost+State (fixes 77743)
24691 2006-03-09 Mike Kestner <mkestner@novell.com>
24694 - Added column drag reordering for details view.
24695 - fixed behavior when mouse is dragged off column and
24696 AllowColumnReorder is false.
24697 * ColumnHeader.cs: clone the format too in Clone.
24698 * Theme.cs: add DrawListViewHeaderDragDetails method.
24699 * ThemeWin32Classic.cs:
24700 - impl new method for drawing drag column shadows and targets.
24701 - support column offset for details mode in DrawListViewItem.
24703 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24705 * TextControl.cs: Reset the char_count when the document is cleared
24706 (Fixes bug reported on mono-winforms mailing list)
24708 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24710 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
24711 of calling base we simply process the key ourselves, since both
24712 DefWindowProc and the handled method would set m.Result.
24715 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24717 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
24718 method also moves the window; instead implemented a copy of
24719 Control.ScaleCore (Part of fix for #77456)
24721 - Created new CreateGraphicsInternal method to allow providing
24722 a graphics context when no handle is created without triggering
24723 handle creation. (Part of fix for #77456)
24724 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24726 - Switched Constructor to require TextBoxBase instead of Control (to
24727 allow uncast access to CreateGraphicsInternal)
24728 - Safeguarded use of owner.Handle property. No longer accessing it
24729 unless the handle is already created.
24730 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24731 - Now triggering a recalc when owning control becomes visible
24732 * TextBox.cs, RichTextBox.cs: Switched to use new internal
24733 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
24734 premature handle creation (Part of fix for #77456)
24736 - We now only destroy our double-buffering buffers when the
24737 control is resized or disposed, but not when visibility
24738 changes. (The code even re-created them twice every time)
24739 - Now requiring a redraw of the buffer on visibility changes
24740 (fixes bug 77654 part 2)
24741 - Not passing OnParentVisibleChanged up unless the control
24743 - CanFocus: Fixed to match MS documentation
24744 - Focus: Fixed to return actual focus state and to check if
24745 setting focus is legal before setting it
24747 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
24749 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
24750 when to draw focus rectangle by looking at parent focus and
24751 selected state instead. This fixes TabPages on Linux sometimes
24752 having none or multiple focus rectangles.
24753 * XplatUIX11.cs (SetFocus):
24754 - Don't set the focus if the same window already has focus
24755 - Use SendMessage instead of PostMessage (like it's Win32
24756 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
24757 to match MS behaviour
24758 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
24759 are not selectable.
24761 2006-03-07 Jackson Harper <jackson@ximian.com>
24763 * PictureBox.cs: Revert line I accidently committed last week.
24765 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
24768 - Added new IsRecreating and ParentIsRecreating properties to
24769 allow testing if RecreateHandle has been called on ourselves
24770 or one of our parents
24771 - WndProc(WM_DESTROY): If our control handle is being recreated
24772 we immediately need to create the handle when receiving the
24773 destroy, that way our child windows find a valid parent handle
24774 when they themselves are being recreated upon WM_DESTROY receipt
24775 (fix for bug #77654 part 1)
24777 - DestroyWindow: WM_DESTROY must be sent to our own window before
24778 notifying any child windows. MS documents that child windows
24779 are still valid when WM_DESTROY is received. (Control now relies on
24781 - Added some fine-grain debug options
24783 2006-03-06 Jackson Harper <jackson@ximian.com>
24785 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
24786 box and base calculations off this.
24787 * MdiChildContext.cs:
24788 * MdiWindowManager.cs: Don't need to ensure scrollbars here
24791 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
24793 * Splitter.cs: In situations where the affected control is added
24794 to the parent's control list after the splitter, we would not
24795 populate affected. Now we try populating it on mousedown, if
24796 it's not already set, and force it to be re-set whenever our
24799 2006-03-03 Matt Hargett <matt@use.net>
24801 * Control.cs: implement Control.Padding
24802 * Padding.cs: -Padding.All returns -1 when constructing with the
24803 implicit default ctor
24804 -Padding.ToString() matches MS.NET
24805 * ContainerControl.cs: implement
24806 ContainerControl.AutoScaleDimensions
24807 * ListControl.cs: implement ListControl.FormattingEnabled
24808 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
24810 * TabPage.cs: Implement UseVisualStyleBackColor.
24811 * PictureBox.cs: Implement PictureBox.InitialImage.
24813 2006-03-03 Mike Kestner <mkestner@novell.com>
24815 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
24816 event declarations to proxy to base event.
24817 * ListViewItem.cs: update to use ItemControl.
24818 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
24819 * ThemeWin32Classic.cs: update to new ListView theme API and fix
24820 column header label rendering for 0 width columns.
24822 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
24824 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
24825 that causes the control to be created. Fixes #77476.
24827 2006-03-02 Jackson Harper <jackson@ximian.com>
24829 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
24832 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
24834 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
24835 passed in for the EventArgs (fixes #77690)
24837 2006-03-01 Jackson Harper <jackson@ximian.com>
24839 * ScrollBar.cs: Refresh afterbeing resized.
24841 2006-02-28 Mike Kestner <mkestner@novell.com>
24843 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
24844 Clean up a tracker compile warning.
24845 * MenuItem.cs: add internal PerformPopup method.
24848 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24850 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
24851 implicit expose) when the text is set to null
24853 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24855 * RichTextBox.cs (FlushText): When newline is true, we always
24856 need to split the line, even if no text is on it and we may
24857 never eat newlines. (Fixes #77669)
24859 2006-02-28 Mike Kestner <mkestner@novell.com>
24861 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
24862 and set Selected instead.
24863 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
24866 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24868 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
24870 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
24873 - Got rid of the panel. All controls are now directly added to
24875 - It is now possible to set a font with the Font property
24876 - MinSize and MaxSize property do now what they should
24877 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
24878 - Searching and selecting a font with the font textbox works now,
24879 the same applies to the style and size textbox
24880 - Draw the correct 3D border in the example panel
24881 - Fixed a little mem leak (unused fonts didn't get disposed)
24882 - Many other internal updates/rewrites...
24885 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24888 - InsertRTFFromStream: Added 'number of characters inserted' argument
24889 - set_SelectedRTF: Now using the number of characters to calculate
24890 the new location for the selection and cursor (x/y cannot be used
24891 due to potentially already wrapped text)
24893 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24895 * TextControl.cs: Added property and implemented means to allow
24896 disabling recalculation of a document (can be used to speed up
24897 multiple inserts and is needed to make RTF inserts predictable, see
24899 * RichTextBox.cs: Using the new NoRecalc property of Document to
24900 keep x/y insert locations predictable. Also makes it faster inserting
24901 large chunks of RTF
24903 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24905 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
24906 it's easier for a child control to handle the other messages without
24907 having to duplicate the special functionality
24909 - WndProc: Removed calling base handler for WM_KEYDOWN and added
24910 code to handle processing the key ourselves, in order to get
24911 access to the result of KeyEventArgs.Handled. We now only call
24912 ProcessKey if they key hasn't been handled already. Fixes #77526.
24913 - set_Text: If null or empty string is given, just clear the
24914 document. Fixes part of #77526
24916 2006-02-27 Jackson Harper <jackson@ximian.com>
24918 * SizeGrip.cs: Paint the background color before painting the grip
24919 so things look right.
24920 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
24922 2006-02-27 Mike Kestner <mkestner@novell.com>
24925 - Restructure layout and invalidation model to remove a ton of
24926 flicker from the control and speed up performance in general.
24927 - Add manual column resize, flickers like crazy, but I already have
24928 some ideas on how I'll fix that. (#76822)
24929 - Merge the three Icon-based views into a single layout method.
24930 - Move item selection interaction logic from the item since
24931 interaction with the collections is more appropriate to the view.
24932 - Deselection on non-item clicks.
24934 - Encapsulate most of the layout. Add some internal props to trigger
24935 layout. Move to a model where Items invalidate themselves instead
24936 of just invalidating the whole control every time something changes.
24937 - Invalidate on Text/Caption changes.
24938 - switch to an offset based layout model to avoid having to absolute
24939 position every element on item moves.
24940 - correct checkbox layout to conform to MS layout.
24941 * ThemeWin32Classic.cs:
24942 - refactor some column header drawing code.
24943 - fix string justification for column headers (#76821)
24944 - make SmallIcon labels top justified for compat with MS impl.
24945 * ThemeClearlooks.cs:
24946 - adjust to new ListViewItem internal checkbox bounds api.
24948 2006-02-27 Jackson Harper <jackson@ximian.com>
24950 * Control.cs: Change where implicit controls fall in the zorder.
24951 They are now on top of all children.
24952 - Synced AddImplicit code with Add
24953 - Removed unused enumerator.
24954 * SizeGrip.cs: Remove the TODO as its been TODONE.
24956 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
24958 * TextControl.cs(Insert): Combine the last lines unless the insertion
24959 string ends with \n\n, otherwise we leave one line too many (Fixes
24960 something I noticed with the testapp for #77526; the bug itself was
24961 already fixed in the previous checkin)
24963 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
24966 - SelectionColor and SelectionFont methods no longer set absolute
24967 styles. Instead, the keep font or color respectively (This
24968 resolves a long-standing FIXME in the code)
24969 - When flushing RTF text, the insert code now considers text trailing
24970 behind the insertion point (Fixes the bug where when replacing
24971 the selected text via SelectedRTF the remainder of the line behind
24972 the selection would stay on the first insertion line)
24974 - AppendText now updates the selection points after inserting text
24975 - AppendText now ensures that the last tag (sometimes 0-length) of
24976 the document is used for the style information (Fixes part of
24979 - Created new FontDefiniton class to allow describing partial style
24981 - StreamLine() now takes a lines argument, to allow it to decide
24982 whether an encountered zero-length tag is the last in the document
24983 (which must be kept to not loose the font/color contained in it,
24985 - Created Combine() and Split() methods for Marker structs, to
24986 support marker updates due to reformatted documents (soft line
24988 - Implemented Document.CaretTag setter
24989 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
24990 of the last line (Not the cause, but also exposed by bug #77220)
24991 - Added LineTag argument to InsertString method, to allow callers
24992 to force a certain tag to be used (required to force use of the
24993 trailing zero-length tag of a document)
24994 - Now updating markers in Combine(), to avoid stale tag markers
24995 - Added some method descriptions to aid maintenance
24996 - Implemented new FormatText concept, allowing additive/subtractive
24997 formatting by only specifying the components that are to be
24998 changed. This was needed for resolving the RTB.SelectedColor/
24999 RTB.SelectedFont fixmes
25000 - Added Break() support method to allow breaking up linetags (used
25001 for partial formatting)
25002 - Added GenerateTextFormat() method. It is used for partial
25003 formatting and allows to generate a full font/color from given
25004 attributes and an existing tag.
25006 2006-02-26 Jackson Harper <jackson@ximian.com>
25008 * XplatUIX11.cs: Use the correct caption height.
25009 - Translate hittest coordinates to screen coords to match MS.
25010 * XplatUIWin32.cs: When we create MDI windows we need to reset
25011 some of the style flags, so we get a nice blank window, and can
25012 draw all the decorations ourselves.
25013 - Set a clipping rectangle on the non client paint event, the
25014 window manager drawing code needs one.
25015 * Form.cs: The window manager needs to know when the window state
25017 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
25018 don't need to factor in border and title sizes in these
25019 methods. TODO: Remove the args and fix the call points.
25020 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
25022 - Let the driver set the cursors.
25023 - Improve active window handling
25024 - Correct sizes for title bars and buttons.
25025 - Match MS drawing better
25026 * MdiWindowManager.cs: We don't need to handle border style
25027 updates specially anymore.
25028 - Check for scrollbars when windows are done moving
25029 - Handle Active properly.
25030 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
25031 correctly. I am spewing the exception though, so we don't hide the
25034 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
25036 * DataGridViewRowPostPaintEventArgs.cs,
25037 DataGridViewCellPaintingEventArgs.cs,
25038 DataGridViewRowCollection.cs,
25039 DataGridViewRowPrePaintEventArgs.cs,
25040 DataGridViewCell.cs: Clear a few warnings and implement a few
25041 exceptions that should be thrown.
25043 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25045 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
25046 'inheriting' our parent's (non-default) cursor. (Part of
25047 the fix for #77479)
25049 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25051 * XplatUIX11.cs: Fixed cast to make csc happy
25053 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25055 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
25056 it's for the client area (part of fix for #77479 and needed
25057 for MDI window cursor handling)
25059 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
25060 the appropriate default cursors and also passing the message
25061 up the parent chain
25062 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
25063 for non-client areas
25065 2006-02-15 Jackson Harper <jackson@ximian.com>
25067 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
25068 is a real MDI window
25070 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
25072 * X11DesktopColors.cs: Instead of checking the desktop session
25073 string for "KDE" check if it starts with "KDE"
25075 2006-02-10 Jackson Harper <jackson@ximian.com>
25077 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
25080 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
25082 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
25085 - Got rid of the panel. All controls are now directly added to
25087 - Changed to mono coding style
25089 2006-02-10 Jackson Harper <jackson@ximian.com>
25091 * InternalWindowManager.cs: We don't need the set visibility to
25092 false hack anymore now that peter has written beautiful shutdown
25095 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
25097 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
25098 where already explicitly destroyed
25100 2006-02-10 Jackson Harper <jackson@ximian.com>
25102 * MdiClient.cs: Handle the case where windows are too high or to
25103 the left and we need scrollbars.
25105 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
25107 * MimeIcon.cs: Added some icons
25110 - Got rid of the panel. All controls are now directly added to
25112 - Changed to mono coding style
25113 - On Linux "My Computer" and "My Network" will now show some
25114 more usefull information. A new class, MasterMount, gathers
25115 this information from /proc/mount. Updated MWFFileView to make
25116 use of this information
25117 - Fixed a bug that caused FileDialog to crash when
25118 ".recently_used" file had a zero size
25119 - FilterIndex does now what it should
25121 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
25124 2006-02-09 Jackson Harper <jackson@ximian.com>
25126 * ComboBox.cs: Don't touch if null.
25128 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
25130 * Cursor.cs: 64bit safeness fix
25131 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
25133 2006-02-09 Jackson Harper <jackson@ximian.com>
25135 * Form.cs: If a form is made into an MDI form update the styles so
25136 all the props can get set correctly.
25137 - Kill the mdi_container when we dont need it anymore.
25138 * InternalWindowManager.cs: Add missing NOT
25140 2006-02-08 Jackson Harper <jackson@ximian.com>
25142 * InternalWindowManager.cs: Respek clipping when drawing MDi
25145 2006-02-08 Jackson Harper <jackson@ximian.com>
25147 * Hwnd.cs: Add bits to track non client expose events.
25148 * XplatUIX11.cs: Track non client expose events on the hwnd. This
25149 gives us a proper invalid rect and will allow for some nice
25150 optimizations with NC client drawing
25151 - MDI windows are children windows, so move their style handling
25152 into the child window block.
25153 * InternalWindowManager.cs: Remove a state reset that was
25154 getting invoked at the wrong time. Fixes managed windows getting
25155 into a 'stuck' captured state.
25157 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
25159 * TextControl.cs (Document.ctor): Now initializing
25160 selection_anchor. Fixes #77493
25162 2006-02-07 Jackson Harper <jackson@ximian.com>
25164 * TrackBar.cs: The increment/decrements were backwards.
25166 2006-02-07 Mike Kestner <mkestner@novell.com>
25168 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
25169 to the instance itself.
25171 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
25173 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
25174 on ulongs and pointers, the size differs between 32bit and 64bit
25177 2006-02-07 Mike Kestner <mkestner@novell.com>
25179 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
25180 for 64 bit platforms to work around a metacity bug.
25182 2006-02-07 Jackson Harper <jackson@ximian.com>
25184 * TrackBar.cs: Process the input keys we need, and hookup to
25185 KeyDown instead of using WndProc, so we get key messages.
25187 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
25189 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
25191 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
25192 we need to translate the XdndVersion atoms array before sending it
25194 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
25197 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
25198 number of bits for the property, not the number of bytes. The
25199 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
25200 but would not crash since it specified 8 bits instead of 4 bits)
25201 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
25202 defined as XID -> long in the C headers)
25203 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
25204 references since those are now IntPtr to begin with
25205 - Switched all Atom.XXX 'int' casts to IntPtr casts
25206 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
25207 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
25208 - Added XChangeActivePointerGrab DllImport (for X11DnD)
25210 - Changed 'int' type for Atoms in XEvent structures to IntPtr
25211 - Changed atom in HoverStruct to be IntPtr
25213 - Removed local DllImports, switched code to use those from XplatUIX11
25214 - Removed/fixed casts related to the switch of Atom to be a IntPtr
25216 2006-02-06 Mike Kestner <mkestner@novell.com>
25218 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
25219 method signatures in the import region. There may still be some
25220 lingering struct marshaling issues, as I didn't drill down into those.
25223 2006-02-06 Jackson Harper <jackson@ximian.com>
25225 * ComboBox.cs: Dont manually set the top_item, this is computed
25226 when the scrollbar position is set.
25228 2006-02-06 Mike Kestner <mkestner@novell.com>
25230 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
25231 startup crashes on amd64. There's other fixes needed. All pinvoke
25232 usage of Atom needs to be mapped to IntPtr for example. And there are
25233 likely other int/long issues to be addressed.
25235 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
25237 * FileDialog.cs: One more...
25239 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
25241 * FileDialog.cs: Next try
25243 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
25245 * FileDialog.cs: First part of fix for #77464
25247 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
25249 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
25250 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
25251 AcceptButton border drawing.
25253 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
25255 * Form.cs: Moved positioning of form after auto scaling is applied,
25256 otherwise it would possibly use wrong form size.
25258 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
25260 * Control.cs (RecreateHandle): No need to re-create any child
25261 controls, the child windows will get destroyed automatically by
25262 the windowing system or driver, and re-created when the handle
25263 is being accessed the first time. Fixes #77456
25264 * Form.cs: No longer setting the form to closing if the handle is
25265 being recreated. This seems like the right thing to do, don't
25266 have a bug or testcase for this, though.
25268 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25270 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
25271 controls to avoid unwanted side effects
25273 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25276 - ScaleCore needs to scale the bounds, not the ClientSize of the
25277 control. Fixes #77416.
25278 - DefaultSize is 0,0 for control
25280 - DefaultSize is 100, 20
25281 - SetBoundsCore: Now enforcing the height, no matter if the provided
25282 height is more or less than the preferred one, as long as AutoSize
25284 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
25286 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25289 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
25290 call unless both performLayout is true *and* we have a pending
25292 - ResumeLayout: MS does not completely nest Suspend and Resume,
25293 they bottom out at 0, fixed our code to match that.
25294 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
25295 SetBoundsCore, we were updating even when we shouldn't. This fixes
25296 swf-anchors mis-anchoring when resizing the app fast and lots.
25297 - UpdateDistances: Now only setting the left and top distance if
25298 we have a parent and are not suspended, this is based on
25299 a suggestion by Don Edvaldson in bug #77355.
25300 - OnVisibleChanged: Fixed logic when to create the control. We may
25301 not create the control if we have no parent or if it's not visible;
25302 switched to using Visible property instead of is_visible field
25303 since the property also considers parent states. This fixes a bug
25304 when starting Paint.Net
25306 2006-02-02 Jackson Harper <jackson@ximian.com>
25308 * Form.cs: If the forms handle hasn't been created yet don't call
25309 into xplatui to make it top most, just set the topmost flag on the
25310 form in CreateParams
25311 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
25313 2006-02-01 Jackson Harper <jackson@ximian.com>
25315 * ScrollableControl.cs: Refactored the Recalculate method a
25316 little, this wasn't handling all the variants of bottom and right
25317 bars needed to be added and added/removed based on their
25318 counterparts being added/removed (which changes the drawable
25319 size). Also we special case client widths and heights of 0 and
25320 don't add the scrollbar for those.
25322 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
25325 - Added method to get AbsoluteGeometry(); currently unused, but might
25326 be used in the future, if we try again to figure out toplevel
25327 coordinates with some more crappy window managers
25328 - Added FrameExtents() method to retrieve the WM set decoration size
25329 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
25330 to deal with at least KDE, FVWM and metacity (Fixes #77092)
25332 - Added whacky_wm tracking var for metacity
25333 - Added logic to have default menu height if the actual menu height
25334 has not yet been calculated (part of fix for #77426)
25335 * Form.cs: Keep track whether client size has been set and re-set
25336 it if a menu is added/removed afterwards (Fixes #77426)
25338 2006-01-31 Jackson Harper <jackson@ximian.com>
25340 * Control.cs: When a new Site is set on the component attempt to
25341 pull the AmbientProperties from it.
25343 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
25345 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
25346 in the background of the owning form. Fixes #77332
25348 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25350 * MimeIcon.cs: Fix for #77409
25352 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25354 * XplatUIX11GTK.cs: Initial import
25356 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
25358 * FixedSizeTextBox: fixes class signature
25360 2006-01-30 Jackson Harper <jackson@ximian.com>
25362 * FixedSizeTextBox.cs: New internal class that represents a
25363 textBox that will not be scaled.
25366 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
25369 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
25371 * XplatUIX11.cs: Retrieve default screen number instead of
25372 assuming 0. Attempted fix for #77318
25374 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
25377 - GetWindowPos: When a window is parented by FosterParent, use
25378 the desktop instead of FosterParent as the base to get coordinates
25379 - CreateWindow: Don't make FosterParent the parent window for Popups
25380 if we don't want a taskbar entry, Popups automatically don't get one
25381 * Hwnd.cs: Need to call remove to actually remove the key from the
25384 2006-01-30 Mike Kestner <mkestner@novell.com>
25386 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
25388 2006-01-30 Jackson Harper <jackson@ximian.com>
25391 * TreeNode.cs: Raise events no matter how the treenode is
25392 checked. Patch by Don Edvalson.
25394 2006-01-30 Jackson Harper <jackson@ximian.com>
25396 * TreeNode.cs: Signature fix.
25398 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
25400 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
25402 2006-01-20 Mike Kestner <mkestner@novell.com>
25404 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
25405 event forwarding when menus are active.
25406 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
25407 Most of the patch is pdb's with a little rework.
25409 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25411 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
25412 Removed GetMenuDC and ReleaseMenuDC methods; replaced
25413 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
25414 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
25415 * InternalWindowManager.cs: Added use of PaintEventStart/End to
25416 handling of WM_NCPAINT message, now passing the PaintEventArgs to
25417 the PaintWindowDecorations method
25418 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
25419 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
25420 * MenuAPI.cs: Made tracker window invisible
25422 - Removed GetMenuDC and ReleaseMenuDC methods
25423 - Implemented the client=false path for PaintEventStart and
25426 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25428 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
25429 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
25432 - MaximizeBox, MinimizeBox: Recreate the handle when setting
25434 - CreateParams: Reworked the styles to match MS look'n'feel,
25435 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
25436 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
25438 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25440 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
25441 window is not mapped, since otherwise every form that's being
25442 created is considered minimized, which is wrong.
25443 * Form.cs: Catching the exception and returning our internal value
25446 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25448 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
25449 SetWindowMinMax() to have means to tell the driver about the minimum,
25450 maximum and maximized state window sizes. (Part of the fix for #76485)
25452 - Implemented tracking of minimum and maximum window size, now calling
25453 new SetWindowMinMax() driver method to tell the driver (Part of the
25455 - Finished handling of WM_GETMINMAXINFO method, now setting all values
25456 (Completes fix for #76485)
25457 - Calling new SetWindowMinMax driver method when the handle for a
25458 form is created, to make sure the driver knows about it even if
25459 the values have been set before the window was created
25460 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
25461 to avoid messing up our anchoring calculations (partial fix
25463 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
25465 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
25466 - Improved GetWindowState() to detect 'Minimized' state on Metacity
25467 (and presumably other freedesktop.org compliant WMs). Left the
25468 assumption unmapped=minimized, needed for SetVisible to work.
25469 - Now setting the window state when creating windows
25470 - Fixed SetVisible to consider/set the window state when mapping
25471 a Form. We cannot set the state before it's mapped, and we cannot
25472 use Form.WindowState once it's mapped (since it would ask the
25473 driver and get 'normal'. Therefore, we grab the state before
25474 mapping, map, and then set state.
25475 - Implmemented SetWindowMinMax method; Metacity does not seem to
25476 honor the ZoomHints, though.
25478 - Removed MINMAXINFO (moved to XplatUIStructs)
25479 - Added SetWindowMinMax stub (on Win32 the only way to set that
25480 information is in response to the WM_GETMINMAXINFO message, which
25481 is handled in Form.cs)
25482 - Added logic to SetVisible to set the proper window state when a
25483 form is made visible (fixes #75720)
25485 2006-01-26 Jackson Harper <jackson@ximian.com>
25487 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
25488 same way we handle them with Invoke.
25490 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
25493 - Added tracking of window state so CreateParams can return
25494 the appropriate style
25495 - Moved setting of WS_CAPTION style in CreateParams to allow
25496 styles without caption
25497 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
25498 control if the TextBox property is accessed. Fixes #77345
25500 - get_Created: now uses is_disposed and is_created to determine
25501 return value (suggested by Jackson)
25502 - CreateHandle: No longer exits if the handle is being recreated
25503 - RecreateHandle: If the handle is not yet created call the
25504 appropriate method to create either control or handle. If the
25505 control is already created CreateHandle will simply exit instead
25506 of just creating the handle
25507 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
25508 now SendMessage WM_DESTROY directly to the control when DestroyWindow
25511 - When DestroyWindow is called, instead of waiting for the
25512 DestroyNotification from X11, we directly post it to the WndProc
25513 and immediately dispose the hwnd object.
25514 Same applies to DestroyChildWindows, and this obsoletes the
25515 expose_pending tracking. Contrary to Win32 behaviour we destroy our
25516 child windows before our own, to avoid X11 errors.
25517 - Removed the direct sending of WM_PAINT on UpdateWindow
25519 - Reworked DoEvents and GetMessage to allow access to internal queue
25520 even when trying non-blocking access to the queue. Fixes #77335.
25521 Based on a patch suggestion by Don Edvalson. The new private
25522 GetMessage can now also be used as a backend for a PeekMessage
25524 * XplatUI.cs: Improved debug output for CreateWindow
25526 2006-01-25 Jackson Harper <jackson@ximian.com>
25528 * Help.cs: Allow param to be null. Patch by Don Edvalson.
25530 2006-01-24 Jackson Harper <jackson@ximian.com>
25532 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
25533 when we have a MaxDropItems lower then the selected index.
25535 2006-01-24 Jackson Harper <jackson@ximian.com>
25537 * Control.cs: Don't allow selection of non visible controls, allow
25538 selection of controls without parents.
25540 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25542 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
25543 * DataGridDrawingLogic.cs: Add editing row only when is necessary
25545 2006-01-23 Jackson Harper <jackson@ximian.com>
25547 * UpDownBase.cs: Make the textbox handle all the selection and
25548 tabbing. This fixes tabing to updown controls.
25550 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25552 * TextBoxBase.cs: fixes exception thown the object was null
25554 2006-01-23 Jackson Harper <jackson@ximian.com>
25556 * ButtonBase.cs: Just use the base CreateParams. They set
25557 visibility and enabled correctly.
25560 * MonthCalendar.cs: Lets let the base set as much of the
25561 createparams as possible so we don't have duplicate code all over
25564 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
25566 * ThemeGtk.cs: Added TrackBar and some experimental code to
25567 get double buffering back
25569 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
25571 * DataGrid.cs: Allows row number set internally higher than the last
25572 when creating a new row. Restores the editing functionality.
25574 2006-01-20 Mike Kestner <mkestner@novell.com>
25576 * MimeIcon.cs: delay Image creation until the icons are accessed
25577 instead of creating 190 scaled images on GnomeHandler startup.
25579 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25581 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
25582 first call base before processing the event. Fixes #77279
25584 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25586 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
25587 that the stride for the GDI bitmap would match the stride of
25590 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
25592 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
25594 2006-01-19 Jackson Harper <jackson@ximian.com>
25596 * ComboBox.cs: Hookup the text controls keydown event so we get
25597 those when the text control has the focus.
25599 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25601 * Label.cs: Now using the base events instead of defining new ones;
25602 this allows us to just call the base properties without having to
25603 duplicate all base property logic
25605 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25607 * Label.cs: A label by default is not a tabstop (Fixes one of our
25608 failing nunit tests)
25610 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25612 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
25613 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
25615 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25617 * Cursor.cs: Reimplemented creating cursor bitmaps without using
25618 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
25621 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
25622 constructor creates images that can't be saved. Part of the fix
25624 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
25625 - SetWindowState: Switched ShowWindow flags (part of an upcoming
25626 bug fix for handling window state in forms properly)
25628 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25630 * ThemeGtk.cs: Simplify ScrollBar drawing
25632 2006-01-18 Jackson Harper <jackson@ximian.com>
25634 * Splitter.cs: Set the default dock style for the splitter control
25635 in the constructor.
25637 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25639 * ThemeGtk.cs: Corrected StateType and ShadowType for
25642 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25644 * Control.cs: Make use of Theme.DoubleBufferingSupported
25646 - Added drawing for flat style buttons
25647 - Added ScrollBar drawing
25649 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25651 * ThemeClearlooks.cs: Removed some unneeded code.
25652 * ThemeGtk.cs: First part of ThemeGtk enhancements.
25654 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25656 * LinkLabel.cs: We need to update the hover drawing when
25657 leaving the control as well.
25659 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
25661 * DataGrid.cs: Clicking on non empty areas in the columns
25662 area was giving an exception
25664 2006-01-17 Jackson Harper <jackson@ximian.com>
25666 * ThemeWin32Classic.cs:
25667 * ListView.cs: Do not draw/clip the headers when the header style
25670 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25672 * DataGrid.cs: Fixes 77260
25674 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25676 * DataGrid.cs: Clicking on a column on a empty grid was giving
25679 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25681 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
25682 or any keypress will crash the grid.
25684 2006-01-17 Mike Kestner <mkestner@novell.com>
25686 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
25687 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
25688 invisible/previously-visible items.
25691 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
25693 * ThemeClearlooks.cs:
25694 - Added CL_Draw_Button method; now other theme controls that are
25695 not derived from button or do not have a button can draw buttons
25697 - Updated ComboBox drawing
25698 - Beautified RadioButton drawing
25699 - Corrected drawing of bottom and left tabs
25700 - Beautified DateTimePicker and MonthCalendar
25701 - Added CPDrawButton and CPDrawRadioButton
25703 2006-01-16 Jackson Harper <jackson@ximian.com>
25705 * ComboBox.cs: Set the initial value of the scrollbar to the
25706 current index. Reduce the numbers of refreshs and IndexOfs called.
25708 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
25710 * FileDialog.cs: When the file listview is focused hitting the
25711 backspace key moves the fileview to the parent directory
25713 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25716 - Added RecreateHandle call when changing taskbar visibility to
25717 trigger reparenting in Win32 driver (Fixes #75719)
25718 - If a window has minimize or maximize buttons, it cannot have
25721 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
25722 the toplevel form with FosterParent (A toolwindow not on the
25723 taskbar) (Fixes #75719)
25724 - Made FosterParent a toolwindow
25726 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25728 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
25730 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25732 * ToolTip.cs: If SetToolTip is called from a control and the mouse
25733 is currently over that control, make sure that tooltip_window.Text
25736 2006-01-13 Mike Kestner <mkestner@novell.com>
25738 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
25740 2006-01-13 Jackson Harper <jackson@ximian.com>
25742 * TreeView.cs: On MS GetNodeAt never actually factors in the X
25743 value passed. Also redraw the selected node when we recieve
25744 focus, so tabbing between trees works correctly.
25746 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25748 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
25749 ~/.gconf/%gconf-tree.xml, so use
25750 .gconf/desktop/gnome/interface/%gconf.xml
25752 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25754 * TextControl.cs: Draw text in gray if control is disabled
25756 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25758 * TreeView.cs: Draw the focus rectangle outside the highlight, to
25759 make sure it's always visible. Fixes #76680.
25761 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25763 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
25765 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
25767 * PageSetupDialog.cs: Added.
25768 * PrintDialog.cs: Attributes.
25769 * PrintPreviewControl.cs: Updates.
25770 * PrintPreviewDialog.cs: Updates.
25772 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25774 * Control.cs: Undid my selection check fix, since it's not needed
25776 - Now considering the presence of hscroll/vscroll when sizing
25777 vscroll/hscroll respectively. Fixed bug #77077
25778 - Added Left/Up/Down/Right to IsInputKey list to prevent
25779 ContainerControl from stealing them. This fixes what I broke
25780 with my last checkin.
25782 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25784 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
25785 I finally understand how the property can be set without a setter :-)
25787 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25790 - Switched RunLoop to use static Message.Create to create a
25792 - Added PreProcessMessage call in runloop for keyboard events; this
25793 is part of the fix for #77219, I overlooked this originally in the
25794 MSDN doc for PreProcessMessage
25796 - Removed call to PreProcessMessage from handling of keyboard
25797 messages; it's supposed to be done in the message pump
25798 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
25799 per MSDN documentation.
25800 - IsInputChar: All chars are input chars by default; removed the
25801 parent calling chain, MS does not document that
25802 - PreProcessMessage: If IsInputChar is true, we want to return false
25803 to allow dispatching of the message
25804 - When selecting the next control, now also check that we're not
25805 selecting ourselves again and therefore return a false positive.
25807 - Tried to match return values for IsInputKey and ProcessDialogKey
25808 to what MS returns; moved processing of our special keys outside
25809 ProcessDialogKey since MS does not seem to return true on those.
25810 - Moved code that previously was in ProcessDialogKey into new private
25811 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
25812 - Reworked handling of WM_CHAR to not have to duplicate code from
25813 Control.cs anymore, instead we simply call down to base.
25815 2006-01-12 Jackson Harper <jackson@ximian.com>
25817 * ComboBox.cs: We always need to refresh the text area when
25818 EndUpdate is called. Fixes the combobox in the file dialog.
25819 * Control.cs: Don't create the creator_thread until the controls
25820 handle is created. Also in InvokeRequired we check if the
25821 creator_thread is null. This gives the effect of InvokeRequired
25822 returning true if the controls handle is not created yet, and
25825 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25828 - Added StartLoop() driver method. This is used to allow drivers to
25829 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
25830 loop for a particular thread
25831 - Added EndLoop() driver method. This is called once the message
25832 pump for the thread is shut down
25833 - Added SupportsTransparency method to allow the driver to indicate
25834 opacity support for windows
25836 - Removed TODO attribute, completed AllowTransparency property
25837 - Added documented logic to Opacity
25838 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
25839 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
25840 versions of CompatibleTextRendering
25841 * X11Structs.cs: Added opacity atom to our atom enumeration
25842 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
25843 of a form might be set before it's reparented by the WM, and we need
25844 the opacity value without calling up to Form)
25845 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
25846 SupportsTransparency() driver methods
25847 * Application.cs: Now calling StartLoop and EndLoop driver methods
25849 - Added opacity atom registration
25850 - Added StartLoop()/EndLoop() methods. They're empty right now but
25851 will need to get implemented when we switch to a per-thread queue
25852 - Implemented SupportsTransparency() method
25853 - Implemented SetWindowTransparency() method
25854 - Added support for setting the opacity value when a window is
25855 reparented (since the opacity needs to be set on the WM frame)
25856 * XplatUIOSX.cs, XplatUIWin32.cs:
25857 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
25859 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
25861 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
25863 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
25865 * FileDialog.cs: Added ToolTip for MWFFileView
25866 * MimeIcon.cs: Rewrote GnomeHandler.
25867 - Get currently used gnome icon theme from
25868 ($HOME)/.gconf/%gconf-tree.xml
25869 - Make use of inherited icon themes
25870 - Support SVG icon themes like Tango via librsvg
25872 2006-01-12 Miguel de Icaza <miguel@novell.com>
25874 Revert's Jackson's revert which broke 2.0 builds. Fix both
25877 * Application.cs: Move the use_compatible_text_rendering outside
25878 the NET_2_0 define. If we ever need to use the
25879 use_compatible_text_rendering on the individual controls they will
25880 access the variable from the common shared code paths.
25882 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25885 - Added more granular debug options
25886 - Added method to print both window text and id
25887 - Switched debug output to use new Window() debug method
25888 - Added IsEnabled() driver method
25889 - Added EnableWindow() driver method
25891 - Removed end_modal; no longer needed, new loop handles termination
25892 via 'closing' variable
25893 - If form is modal, setting DialogResult will now initiate loop
25894 termination via 'closing' variable
25895 - Added support for is_enabled/WS_DISABLED to CreateParams
25896 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
25898 - Removed code that's now in RunLoop from ShowDialog()
25899 - Added various documented sanity checks to ShowDialog()
25900 - Added handling of WM_DESTROY message; we set 'closing' on getting
25901 the message to indicate the message pump to terminate
25902 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
25903 send by the Application.ExitThread method. (We send the message
25904 to destroy the window after all other events have been
25905 processed through the queue, instead of destroying the handle
25907 - Moved code from Close() method to WM_CLOSE handler; added logic
25908 to only send close-related events if the form is not displayed
25910 * Splitter.cs (..ctor): Fixed typo in resource name
25912 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
25914 - set_Cursor: Now only setting calling into XplatUI if the handle for
25915 the control is already created; this avoids implict handle creation
25916 or crashes if it's not created
25917 - set_Enabled: Now setting the enabled state via the new driver method
25918 instead of just tracking it
25919 - CreateParams: Added logic to set WS_DISABLED based on enabled state
25920 - CreateControl: Reordered event firing and method calls to more
25921 closely fire events in the order MS does. Now setting the
25922 enabled state in the driver when creating the control.
25923 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
25925 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
25926 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
25927 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
25929 - Added tracking of window enabled state (get_Enabled/set_Enabled)
25930 - Added EnabledHwnd property to easily allow a driver to find the
25931 handle of the first enabled window in the parent chain (this is
25932 used by drivers to pass up input events of disabled windows)
25933 * XplatUIDriver.cs: Added IsEnabled() method
25935 - Removed crude and obsolete exiting tracking variable
25936 - Removed internal ModalRun(); replaced by RunLoop()
25937 - Implemented private CloseForms() method to allow closing all
25938 windows owned by a particular (or all) threads
25939 - Exit() now properly closes all windows without forcing the message
25941 - Removed obsolete InternalExit() method
25942 - Changed Run() methods to use new RunLoop() message pump
25943 - Implemented new RunLoop() method for both modal and non-modal forms
25945 - get_CreateParams: Added setting of WS_DISABLED
25946 - Simplified ShowDialog(); now all the work is done in RunLoop(),
25947 invoked via Form.ShowDialog()
25948 * NativeWindow.cs: We don't remove the window from the collection when
25949 the handle is destroyed; there might still be messages for it in the
25950 queue (mainly the resulting WM_DESTROY); instead it will be removed
25951 when Control calls InvalidateHandle in the WM_DESTROY handler
25953 - CreateWindow: Added logic to handle the WS_DISABLED window style
25954 - EnableWindow: Implemented based on Hwnd.Enabled
25955 - GetMessage: Reset PostQuitState so the method can be called again
25956 - Implemented support for disabled windows (passing messages to the
25957 first enabled parent) in handling all input messages
25958 - Added optimizations for handling Expose events
25959 - Implemeted new driver method IsEnabled()
25960 - Now always resetting paint pending tracking vars when we start paint
25961 - Re-implemented UpdateWindow via just sending a WM_PAINT message
25962 * XplatUIOSX.cs: Added IsEnabled method stub
25963 * XplatUIWin32.cs: Implemented new IsEnabled() method
25965 2006-01-11 Jackson Harper <jackson@ximian.com>
25967 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25968 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
25969 variables a little.
25970 * ColorDialog.cs: Clear out the old form before adding the new
25973 2006-01-11 Jackson Harper <jackson@ximian.com>
25975 * X11Dnd.cs: Make sure to add all the text formats when adding
25976 strings to the data object.
25977 * TreeNodeCollection.cs: When adding to a sorted tree we need to
25978 do some redrawing too. Also change the UpdateNode to an
25979 UpdateBelow so the newly added node gets painted.
25981 2006-01-11 Miguel de Icaza <miguel@novell.com>
25983 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25984 LinkLabel.cs, PropertyGrid.cs: Implement the
25985 UseCompatibleTextRendering property for 2.x
25987 * Application.cs (SetCompatibleTextRenderingDefault): Add.
25989 2006-01-11 Jackson Harper <jackson@ximian.com>
25991 * TreeView.cs: Use the property for setting the selected node so
25992 the correct events get raised.
25993 * TreeNode.cs: Update the tree when the fore/back colours of a
25996 2006-01-10 Jackson Harper <jackson@ximian.com>
25998 * TreeView.cs: Allow setting SelectedNode to null.
26000 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26002 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
26004 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26006 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
26008 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26010 * PrintDialog.cs: Added attributes and set default property values.
26012 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26014 * PrintControllerWithStatusDialog.cs:
26015 Added PrintControllerWithStatusDialog.
26017 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26019 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26020 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
26022 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26024 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
26026 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
26028 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
26029 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
26031 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26033 * MimeIcon.cs: Added internal class SVGUtil.
26035 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26037 * FileDialog.cs: Don't crash if there are two files with the
26038 same name but different locations.
26040 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
26042 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
26043 dates across multiple month grids. Used to not highlight entire
26044 month, but does now.
26046 2006-01-06 Jackson Harper <jackson@ximian.com>
26048 * MonthCalendar.cs: Removed DoEvents call to prevent a running
26049 message loop. Change timer intervals to numbers that seem more
26052 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
26054 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
26055 object for location info since screen object is now implemented.
26057 2006-01-05 Jackson Harper <jackson@ximian.com>
26059 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
26060 * AsyncMethodResult.cs: We no longer use a WeakReference for the
26061 AsyncMethodResult, this is because we ALWAYS want the
26062 ManualResetEvent to get set.
26063 * Control.cs: When disposing use an async invoke to call shutdown
26064 code, so that thigns don't block on the finalizer thread. Also
26065 check if we even have a message loop before trying to send
26066 messages, if we don't then don't bother sending messages.
26067 - No more weak references for async methods
26068 * XplatUIDriver.cs: No more weak references for async methods.
26070 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26072 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
26073 returns two FontFamily with the same name
26075 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
26077 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
26078 drawing disabled text. Instead using the ColorGrayText color
26080 2006-01-04 Jackson Harper <jackson@ximian.com>
26082 * TreeNode.cs: redraw the node when its image index is changed.
26084 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
26086 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
26087 time I checked there are no others like it.
26089 2006-01-04 Jackson Harper <jackson@ximian.com>
26091 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
26092 this gives the behavoir I was looking for.
26093 * Control.cs: Special case Invoking EventHandlers, this matches MS
26094 and fixes part of bug #76326.
26096 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26098 * ThemeClearlooks.cs, FileDialog.cs:
26099 - Reflect the latest Theme class changes
26100 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
26103 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26105 * Theme.cs: Cache UI resource images and resize them if needed
26107 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26109 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
26110 is called. This fixes the crash in Nexxia when setting the font
26111 attributes in the chat. [However, RTF needs a look-over to make sure
26112 that all SelectionXXX methods handle the special case that selection
26113 is empty and therefore the change must be applied to all text starting
26114 at the cursor/selection start]
26116 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26118 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26119 XplatUIOSX.cs: Added SendMessage and PostMessage methods
26120 * X11Keyboard.cs: Switched to new way of calling PostMessage
26122 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26124 * Theme.cs: Added theme interface for images to allow the theme to
26125 control what images are used for things like FileDialog, MessageBox
26127 * MessageBox.cs: Now uses the new Theme icon/image interfaces
26129 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
26132 - Removed some dead code
26133 - Opening a recently used file does work now
26134 - Small UI enhancements
26137 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
26139 * FileDialog.cs: Forgot too add __MonoCS__
26141 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
26143 * FileDialog.cs: We are able to read recently used files now let's
26144 go on and write them.
26146 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
26148 * FileDialog.cs: Breathe some life into "last open"/"recently used"
26150 * MimeIcon.cs: Do a check for the top level media type also
26152 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
26154 * ThemeClearlooks.cs:
26155 - Added CPDrawStringDisabled
26156 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
26157 some chars if the text doesn't fit into text_rect
26158 - DrawListViewItem: If View = View.LargeIcon center the image;
26159 rewrote the drawing of ListViewItem.Text if View =
26162 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
26164 * MimeIcon.cs: Use default KDE icon theme if there is no
26165 "48x48" directory for the current icon theme, fixes #77114
26166 * Mime.cs: Disable not working and actually not used code.
26167 * ThemeWin32Classic.cs:
26168 - Replace "new SolidBrush" in GetControlBackBrush and
26169 GetControlForeBrush with ResPool.GetSolidBrush
26170 - Changed DrawListViewItem from private to protected virtual
26172 - Added form.MaximizeBox = true
26173 - Don't throw an exception if there is a broken symbolic link
26175 2005-12-23 Jackson Harper <jackson@ximian.com>
26177 * TabControl.cs: Give the panels focus, keyboard navigation is
26178 fixed so this works correctly now.
26179 - We need these key events also.
26180 * ToolBar.cs: Remove some of the poor mans double buffering.
26182 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
26184 * ComboBox.cs: The internal TextBox now returns the focus.
26186 2005-12-23 Jackson Harper <jackson@ximian.com>
26188 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
26190 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26192 * Control.cs: Removed debug code
26193 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
26196 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26198 * Control.cs: When creating the control, update the Z-order after
26199 all it's children are created, too. (Fixes nexxia not showing
26202 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26204 * Control.cs: Do not update the anchoring distances if layout is
26205 suspended, instead do it once layout is resumed
26207 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
26210 - After many hours of debugging, for both Jackson and
26211 myself, it turns out that it helps to set the parent of a control
26212 if you want to actually see it onscreen. In the spirit of that
26213 discovery, we're now setting the parent of the control and
26214 it's children when the control's handle is created. This fix
26215 will make Lutz Roeder's Reflector run happily.
26216 - now just creating the handle instead of the whole control when
26217 getting a graphics context for the control.
26219 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
26221 * ScrollableControl.cs: When calculating the canvas, don't consider
26222 the scrollbar widths. Instead, predict if horizontal scrollbar
26223 will affect canvas when deciding on vertical display and vice versa.
26225 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
26227 * RichTextBox.cs: Set default RTF font for documents that don't
26228 have a font table (Fixes #77076)
26230 2005-12-22 Jackson Harper <jackson@ximian.com>
26232 * TextBoxBase.cs: It's difficult to do, but you can have an empty
26233 clipboard. This prevents a NullRef in that case.
26234 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
26235 clipboard. PRIMARY is for the currently selected text only. (We
26236 should implement PRIMARY at some point.
26238 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26240 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
26241 a Unicode function with a structure that was defined in Ansi way.
26244 2005-12-21 Jackson Harper <jackson@ximian.com>
26246 * StatusBar.cs: Statusbar handles its fore/back colours on it's
26247 on. Because thats how it rolls. (and this avoids it using ambient
26249 * ThemeWin32Classic.cs: Use the proper back color for filling.
26250 * Menu.cs: Use the system menu bar color for drawing menu
26251 bars. Using the window back color will bring ambient colours into
26254 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
26256 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
26257 Bitmaps were created and not disposed.
26259 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26261 * Control.cs (CreateControl): Don't do anything if the control is
26262 already created, otherwise we'd fire the OnCreated event more than
26265 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26267 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
26268 will always match. Instead return -1. Fixes #76464.
26270 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26272 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
26273 neither the beginning nor the end of the line (Fixes bug #76479)
26275 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26278 - ControlNativeWindow.ControlFromHandle(): Now handling situation
26279 where handle is invalid
26280 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
26281 instead of slower linear search
26282 * NativeWindow.cs: Don't remove the window from the hashtable until
26283 after the driver has destroyed it (since the driver might use
26284 Control.FromHandle to lookup the control object
26285 * Hwnd.cs: Added DestroyPending property to track if a window is
26286 already destroyed as far as the driver is concerned and only hasn't
26287 yet notified the control
26289 - Activate(): Check if the window is still valid before using the
26291 - Implemented DestroyChildWindow() method to mark child windows as
26292 destroyed when a window is destroyed. This prevents situations
26293 where we might call an X method based on queued events for a
26294 window that already has been destroyed but we haven't yet pulled
26295 the destroy method from the queue.
26296 - Added a call to the new DestroyChildWindow() method to the drivers
26297 DestroyWindow code. Also now marking the destroyed window itself
26300 2005-12-20 Jackson Harper <jackson@ximian.com>
26303 * StatusBarPanel.cs: Don't calculate panel sizes on draw
26304 anymore. Just do them when needed, also track the rects of panels
26305 so that we can optimize refreshing more in the future.
26307 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
26309 * ColorDialog.cs: Fixed focus drawing in small color controls
26311 2005-12-19 Jackson Harper <jackson@ximian.com>
26313 * InternalWindowManager.cs:
26314 * MdiWindowManager.cs: Cleanup some coordinate system changes so
26315 moving windows works properly.
26317 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
26320 - Removed call to InitLayout() from SetBoundsCore(); doc says
26321 it's only called when a control is added to a container
26322 - Split InitLayout logic, moved to separate UpdateDistances() method
26323 since we need to perform those calculations more often than just
26324 when adding the control to a container. (Needed to fix #77022)
26325 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
26326 - Reduced the OnBindingContextChanged events count, don't send them
26327 unless the control is created, we still aren't totally matching
26328 MS, but I can't quite figure out some of their rules
26330 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26332 * ThemeClearlooks.cs: Corrected distance between ProgressBar
26335 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26337 * ThemeClearlooks.cs:
26338 - Updated ProgressBar drawing
26339 - Corrected drawing of ScrollBars and scroll buttons
26340 - Some temporary fixes for minor pixel artefacts
26342 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
26345 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
26346 cause events to be sent in the same order as MS does.
26347 - Added ChangeParent() method to trigger various OnXXXChanged events
26348 that need to be fired when a parent changes (This is a reworking
26349 of the patch from r54254, with the X11 errors fixed)
26350 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
26351 since on MS we get OnLayoutChanged events when calling Clear()
26352 - Changed Enabled property to consider parent state as well, if a
26353 parent is not enabled, the control will not be either
26354 - Changed Parent property to simply call Controls.Add() since that
26355 now does all the work required, this way we avoid code duplication
26356 - Threw in a few OnBindingsContextChanged calls to try and match
26357 when MS sends them. We seem to send a few too many, though.
26358 - Added call to CreateControl when adding the control to a parent.
26359 We were never calling CreateControl. Still needs some work, in
26360 some places we treat HandleCreated and ControlCreated as equal,
26362 - Removed obsolete commented out code from UpdateZOrder()
26364 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26366 * ThemeClearlooks.cs: Updated TrackBar drawing.
26368 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
26370 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
26372 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
26374 * FileDialog.cs: Add the Help button and the open readonly
26375 checkbox only if needed
26377 2005-12-16 Jackson Harper <jackson@ximian.com>
26379 * Control.cs: Make sure we have an active menu before trying to
26380 process commands on it. Prevents menu-less forms from crashing
26381 when Alt is pressed.
26382 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
26384 * RichTextBox.cs: Expand statement to help out gmcs and fix the
26387 2005-12-16 Jackson Harper <jackson@ximian.com>
26389 * InternalWindowManager.cs: Don't translate tool windows screen
26390 coordinates. This fixes windows 'bouncing' around when being moved.
26392 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26395 - MaxLength now treats 2^31-1 equal to unlimited length (this is
26396 not quite MS compatible, MS uses that number only for single line
26397 and 2^32-1 for multi-line, but I figure it won't hurt keeping
26399 - Now enforcing the MaxLength limit when entering characters
26400 - Added argument to internal Paste() method to track if it's called
26401 from programatically or via keyboard, since keyboard driven pastes
26402 need to enforce max-length
26403 - Added logic to Paste to only paste as many chars as MaxLength
26405 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
26407 - Added Length property to return number of characters in document
26408 - Added private CharCount property which only tracks actual chars
26409 in the document (no linefeeds) and fires event when CharCount
26411 - Added tracking of character count to all methods that alter it
26412 - Added LengthChanged event to allow applications to subscribe
26413 to any changes to the document
26415 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26418 - Removed local password_char field (moved to TextBoxBase)
26419 - Now setting the document's password var when password is
26422 - Added password_char field (needed here so MultiLine can
26424 - Added logic to MultiLine property setter to set the document's
26425 variable when password display is allowed
26426 - Removed debug code and made some debug code conditional
26428 - Added RecalculatePasswordLine() method to handle special password
26430 - Added PasswordChar property, also added related tracking vars
26431 - Draw() method now uses local text var for grabbing text to draw,
26432 this var is set to line.text unless we're doing password display,
26433 then it is set to the pre-generated all-password-chars line
26434 - Added calling RecalculatePasswordLine() method for password lines
26436 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26439 - Added Reparented property to allow tracking of Window Manager
26440 reparenting actions (which affect X/Y calculations of toplevel
26442 - Made ToString() print window handles in hex
26444 - AddConfigureNotify(): Now uses reparented state off Hwnd to
26445 determine if X/Y needs offsetting
26446 - AddConfigureNotify(): Fixed offset calculations
26447 - Now adds ReparentNotify messages into the queue
26448 - Now processes ReparentNotify messages and causes a
26449 WM_WINDOWPOSCHANGED message to be sent upstream if a window
26450 is reparented (as most likely it's X/Y coordinates are changed
26453 2005-12-14 Jackson Harper <jackson@ximian.com>
26455 * XplatUIX11.cs: Tool windows still need to respek focus.
26457 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26459 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
26460 have a working release
26462 2005-12-13 Jackson Harper <jackson@ximian.com>
26464 * Form.cs: Update styles after setting the border style regardless
26465 of whether or not the window is using a window manager.
26467 2005-12-13 Jackson Harper <jackson@ximian.com>
26469 * Form.cs: We now hook into an internal window manager instead of just an
26470 MDI subsystem, this is so we can have properly behaving tool windows.
26471 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
26472 * InternalWindowManager.cs: New internal class that acts as a
26473 window manager for tool windows and as a base for mdi windows.
26474 * MdiWindowManager.cs: New class that acts as a window manager for
26477 2005-12-12 Jackson Harper <jackson@ximian.com>
26479 * Control.cs: Updates so we match behavoir for for implicit
26480 controls. Fixes explosions in MDI.
26482 2005-12-12 Jackson Harper <jackson@ximian.com>
26484 * Control.cs: Implement Invalidate (Region).
26486 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
26489 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
26490 the same events as MS does. MS fires events for each property
26491 except, for unknown reasons, Cursor, when the control is reparented.
26492 I can't seem to totally match add/remove since MS also fires some
26493 VisibleChanged events, which makes no sense. Consolidated the
26494 parenting code into a separate method so it can be called from
26495 both Add and Remove. set_Parent no longer needs any special logic
26496 as it calls the parent's add method which implicitly fires
26498 - Removed some obsolete code and debug output
26499 - Enabled state is inherited from parents, if this is enabled
26501 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26503 * Form.cs: Removed commented out code
26505 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26508 - Added internal version of Invoke, with additional argument
26509 indicating if we're calling it from a Dispose() handler. That
26510 way we can avoid BeginInvoke throwing an exception if we're
26511 calling for an already destroyed window.
26512 - Added a dispose argument to BeginInvokeInternal, and made the
26513 check if a valid window handle chain exists conditional on
26514 it not being a dispose call
26515 - Removed code in DestroyHandle to destroy our children. Since we
26516 now handle the WM_DESTROY message we will catch all our children
26518 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
26520 - Added a field to track the application context of the form.
26521 - No need to set closing variable as response to WM_CLOSE, instead
26522 we destroy the window. We also call PostQuitMessage if the form
26523 has an application context (which makes it the main app form,
26524 which, when closed terminates the app)
26526 - Dropped Exit() method, it's naming was confusing
26527 - Added PostQuitMessage() which causes GetMessage to return false
26528 once the message queue is empty
26529 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
26531 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
26532 no longer a valid XplatUI method, but left it in since it's used
26533 internally. Added empty PostQuitMessage() method.
26534 * MenuAPI.cs: Replaced call to Exit() with call to
26535 PostQuitMessage, even though this is probably no longer needed.
26536 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
26537 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
26539 - Replaced call to XplatUI.Exit() with PostQuitMessage()
26540 - Removed old debug code that would call XplatUI for exception
26541 display, enabled standard exception handling (Still not enabled
26542 though, until NativeWindow's ExternalExceptionHandler define
26545 - Added internal method to allow control to update NativeWindow
26546 after a window has been destroyed
26547 - Added handling of already destroyed windows when calling i
26549 - Added removal of handle from list on ReleaseHandle
26551 - Dropped GetMessageResult var and related code
26552 - Added PostQuitState to field to track if PostQuitMessage has been
26554 - Dropped Exit() method
26555 - Added PostQuitMessage() method
26556 - GetMessage now will return false if PostQuitState is set and no
26557 more messages are in the queue.
26558 - Expose handler will no longer generate WM_PAINT messages if we are
26559 in PostQuitState since it's very likely any windows have already
26560 been destroyed, and since Hwnd won't get updated until we have
26561 processed the DestroyNotify we'd be causing X errors.
26563 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26565 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
26566 Thanks to Mike for pointing out the err of my ways.
26568 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26570 * Control.cs(PreProcessMessage): Moved menu handling back, but
26571 after all other key handling, to match MS (who handles Menu in
26573 * Menu.cs (WndProc): Removed my brainfart
26575 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26577 * Control.cs(PreProcessMessage): Removed special menu handling
26578 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
26580 2005-12-07 Mike Kestner <mkestner@novell.com>
26582 * Control.cs : special case SYSKEYUP so that we can adjust keynav
26583 state according in tracker.
26584 * Menu.cs : promote tracker field to base class and provide a tracker
26585 lookup capability. Add/Remove shortcuts dynamically if the top menu
26586 has a tracker. Unparent items that are removed from the collection.
26587 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
26588 * Theme*.cs: add always_show_hotkeys field to support configurability
26589 of mnemonic display. win32 doesn't show mnemonics until Alt is
26592 2005-12-07 Jackson Harper <jackson@ximian.com>
26594 * MdiChildContext.cs: Use Control.ResetCursor.
26595 * Control.cs: ResetCursor needs to set the property so that the
26596 correct XplatUI call gets made.
26598 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26600 * Control.cs: More fixes to make our key events match MS. We
26601 were not setting the modifier state on KeyData, and we were
26602 not generating any events when Alt was pressed with a key
26603 since handling of WM_SYSxxx was missing for the OnKey methods.
26605 2005-12-07 Jackson Harper <jackson@ximian.com>
26607 * MdiChildContext.cs: reenable the sizing code.
26608 - When the mouse leaves a window reset its cursor.
26610 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26612 * ThemeClearlooks.cs: Reflect latest Hwnd changes
26614 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26616 * Hwnd.cs: Now using the theme 3d bordersize to calculate
26617 widths of Fixed3D borders
26619 2005-12-07 Jackson Harper <jackson@ximian.com>
26621 * MdiClient.cs: Fix warnings. Earn Mike's love.
26623 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26625 * ThemeClearlooks.cs:
26626 - Adjusted mouse over button color
26627 - Added first parts of CheckBox drawing
26628 - Added correct color for selected text background
26629 - Fixed ComboBox drawing
26630 - Added CPDrawBorder3D and CPDrawBorder
26632 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26634 * XplatUIX11.cs: Added call to XBell for AudibleAlert
26636 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26638 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26639 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
26640 alert users via sound. We could add an enum arg with different
26641 types of alerts in the future
26643 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26645 * Control.cs: Fix behaviour problems pointed out by Mike
26647 2005-12-05 Mike Kestner <mkestner@novell.com>
26649 * StatusBarPanel.cs: add Invalidate method and hook it into all the
26650 prop setters. Calls parent.Refresh for now, but could be maybe be
26651 optimized with an internal method on StatusBar at some point.
26654 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
26656 * RichTextBox.cs: Implemented get_SelectionColor
26658 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
26660 * ThemeClearlooks.cs:
26661 - Removed dead code
26662 - Draw black button border only if button is Form.AcceptButton
26663 - Draw correct button color for pressed RadioButton if the mouse
26664 has entered the button
26665 - Updated ProgressBar drawing!
26666 - Updated CPDrawSizeGrip drawing
26667 - Updated StatusBarPanel drawing
26669 2005-12-05 Mike Kestner <mkestner@novell.com>
26671 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
26672 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
26674 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
26676 * ThemeClearlooks.cs: Initial check-in, activate with
26677 export MONO_THEME=clearlooks
26678 * ThemeEngine.cs: Added ThemeClearlooks
26680 2005-12-03 Mike Kestner <mkestner@novell.com>
26682 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
26685 2005-12-02 Jackson Harper <jackson@ximian.com>
26687 * Form.cs: If the child form has no menu the default main menu is
26688 used as the active menu.
26690 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26692 * ListBox.cs: Check if any items exist before trying to resolve
26693 coordinates into items
26695 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26697 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
26698 as the second color for the background hatch
26700 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26702 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
26703 * RichTextBox.cs: FormatText position arguments are 1-based, now making
26704 sure that what we pass to FormatText is always 1-based. Fixes #76885
26706 2005-11-29 Miguel de Icaza <miguel@novell.com>
26708 * NumericUpDown.cs (EndInit): When we are done initializing,
26709 reflect any updates on the UI.
26711 2005-12-02 Jackson Harper <jackson@ximian.com>
26713 * ImplicitHScrollBar.cs:
26714 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
26715 their container controls.
26716 * TreeView.cs: Use the new implicit scrollbars.
26718 2005-12-02 Jackson Harper <jackson@ximian.com>
26720 * TreeView.cs: Make top_node internal so the TreeNodeCollections
26722 * TreeNodeCollection.cs: If we remove the topnode we need to
26723 update topnode to the next node in line.
26724 - When clearing nodes go through the same process as removing
26725 them, so they get depareneted and checked if they are top node.
26727 2005-12-01 Jackson Harper <jackson@ximian.com>
26729 * TreeView.cs: When imagelists are used the image area is
26730 selectable as well as the text.
26731 - If there are no selected nodes select the first one.
26732 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
26733 so don't do it more then we need to.
26735 2005-12-01 Jackson Harper <jackson@ximian.com>
26737 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
26738 that arrows can be scaled.
26740 2005-12-01 Jackson Harper <jackson@ximian.com>
26742 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
26743 fail. Patch by Dieter Bremes
26745 2005-11-30 Jackson Harper <jackson@ximian.com>
26747 * Form.cs: Property is 2.0 only
26748 * PrintDialog.cs: Signature fix.
26750 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26753 - No longer artificially moves text 2 pixels down (now that we have
26754 borders this is no longer needed)
26755 - Added calcs for left, hanging and right indent
26757 2005-11-23 Mike Kestner <mkestner@novell.com>
26759 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
26761 2005-11-30 Jackson Harper <jackson@ximian.com>
26763 * MdiChildContext.cs: Set the cloned menus forms, as these don't
26764 get cloned as part of CloneMenu ().
26765 * Menu.cs: Make sure the parent of the items get set correctly
26766 when they are added. And the owners are notified of the changes.
26767 * Form.cs: Create an ActiveMenu property, so that when MDI is used
26768 we can change the menu being displayed/handled by the form without
26769 changing the menu assosciated with the form.
26770 - Don't let Mdi children draw/handle menus.
26772 2005-11-30 Jackson Harper <jackson@ximian.com>
26774 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
26775 a MenuChanged event. Just to make the API a little more
26778 * MenuItem.cs: Use the new OnMenuChanged
26779 * MdiChildContext.cs: Handle menu merging.
26780 * Form.cs: Implement MergedMenu.
26782 2005-11-30 Jackson Harper <jackson@ximian.com>
26784 * Menu.cs: We were misusing Add. Add goes behind the specified
26785 index according to the docs, and does not replace the specified
26786 index. So I added an Insert method.
26788 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26790 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
26791 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
26793 * RichTextBox.cs: Added calls to base for DnD events
26795 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
26798 - Fixed drag-selection related crash; style fixes
26799 - Implemented undo class
26800 o Implemented method to capture document state for specified
26801 range in document tree
26802 o Implemented method to restore captured document state
26803 o Implemented cursor tracking
26804 o Implemented basic undo stack
26805 - Added undo cursor tracking to methods altering cursor location
26806 - Added undo tracking to selection deletion (still missing
26807 other text-altering hookups)
26809 - Added SelectionLength property
26810 - Implemented CanPaste()
26811 - Implemented Paste()
26812 - Added missing protected methods
26813 - Fixed RTF->Document conversion; now uses font index 0 and color
26814 index 0 as the default font for the parsed text
26815 - Fixed RTF<->Document font size translation
26816 - Fixed RTF generation, now properly handles cross-tag boundaries
26817 for single line selection
26818 - No longer always appends blank line to generated RTF
26820 - Added missing attributes
26821 - Hooked up undo-related methods
26823 - Implemented Copy()
26824 - Implemented Paste()
26825 - Implemented Cut()
26826 - Fixed caret mis-behaviour on backspace across line-boundaries
26828 2005-11-29 Jackson Harper <jackson@ximian.com>
26830 * MdiClient.cs: Add a method for activating mdi children. Very
26831 basic right now. I imagine someday it might need more girth.
26832 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
26833 children windows names are added to the menu item.
26834 * ThemeWin32Classic.cs: Draw the arrow if the item is an
26835 mdilist. This happens regardless of whether or not there are any
26836 mdi windows to see in the list, and according to my tests happens
26837 before the items are even added. Also happens if there isn't even
26838 an mdi client to get windows from.
26840 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
26842 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
26843 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
26845 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
26847 * DataGridTableStyle.cs:
26848 - Create always the styles for the missing columns even if they are
26849 provided by the user (not default table style)
26852 - Fixes SetDataBinding (always re-attach source)
26853 - Fixes SetNewDataSource (only clear styles if they are not for
26855 - Expands OnTableStylesCollectionChanged to handle style refresh
26856 and remove properly
26858 2005-11-29 Jackson Harper <jackson@ximian.com>
26860 * FileDialog.cs: Implement missing bits, remove some dead
26862 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
26863 creation of the panel so that the options set on the dialog are
26864 seen when the panel is created.
26865 * TreeView.cs: raise a click when items are clicked.
26867 2005-11-29 Jackson Harper <jackson@ximian.com>
26869 * MdiClient.cs: Pass some signature methods through to base.
26871 2005-11-28 Jackson Harper <jackson@ximian.com>
26873 * ListView.cs: Raise the click event when items are clicked.
26875 2005-11-28 Jackson Harper <jackson@ximian.com>
26877 * MdiClient.cs: Make this algorithm even more beautiful. And fix
26880 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
26882 * ThemeNice.cs: - Removed 1 pixel bitmaps
26883 - Use SmoothingMode.AntiAlias where it makes sense
26884 (ScrollButton arrow for example)
26885 - Enhanced Button focus drawing
26886 - Fixed ComboBox drawing (no artefacts anymore, focus
26887 rectangle is back again, reduced size of ComboButton, etc.)
26888 - Fixed RadioButton focus drawing for Appearence.Button
26889 - Slight ScrollButton redesign
26890 - Some LinearGradientBrush size fixes
26891 - GroupBoxes have now rounded edges
26892 - Fixed StatusBar drawing
26894 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
26896 * ThemeNice.cs: - Remove dead code
26897 - use correct background colors for menus, etc.
26898 - Fake pixel drawing with 1 pixel bitmaps
26900 2005-11-24 Jackson Harper <jackson@ximian.com>
26902 * MdiClient.cs: Size the scrollbars when resizing the window.
26903 - Resize the maximized windows when the client is resized
26904 * Form.cs: Make the child context available
26906 2005-11-23 Jackson Harper <jackson@ximian.com>
26908 * MdiChildContext.cs: Don't size windows if they are maximized.
26910 2005-11-23 Mike Kestner <mkestner@novell.com>
26912 * ContextMenu.cs: use MenuTracker.
26913 * Control.cs: remove menu handle usage.
26914 * Form.cs: remove menu handle usage.
26915 * Hwnd.cs: remove menu handle usage.
26916 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
26917 motion and clicks to the new Tracker handlers.
26918 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
26920 * MenuAPI.cs: refactored to combine popup and menubar event handling.
26921 Killed the MENU and MENUITEM data types and associated collections
26922 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
26923 MenuTracker class that exposes the leftovers from the old MenuAPI
26924 static methods. Restructured Capture handling so that only one grab is
26925 done for the entire menu hierarchy instead of handing off grabs to
26926 submenus. Tracker now has an invisible control to Capture when active.
26927 * MenuItem.cs: add sizing accessors, kill Create
26929 * Theme.cs: remove menu handle and MENU(ITEM) usage.
26930 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
26931 MENU(ITEM). remove menu handle usage, use Menu directly.
26932 * XplatUIDriver.cs: remove menu handle usage.
26933 * XplatUIOSX.cs: remove menu handle usage.
26934 * XplatUIWin32.cs: remove menu handle usage.
26935 * XplatUIX11.cs: remove menu handle usage.
26937 2005-11-22 Jackson Harper <jackson@ximian.com>
26939 * Hwnd.cs: Don't compute the menu size for
26940 DefaultClientRectangle.
26941 - Reenable menu sizes being computed for GetClienRectangle.
26942 * Form.cs: Remove comment of trechery
26944 2005-11-22 Jackson Harper <jackson@ximian.com>
26946 * Hwnd.cs: The adjustments for the menu bar are made when it is
26947 attached to the form.
26949 2005-11-19 Jackson Harper <jackson@ximian.com>
26951 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
26952 (just like on windows).
26954 2005-11-19 Jackson Harper <jackson@ximian.com>
26956 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
26957 use real buttons anymore because they are in non client area. The
26958 one TODO here is that I need to somehow invalidate a section of
26959 the non client area.
26961 2005-11-18 Jackson Harper <jackson@ximian.com>
26963 * Control.cs: Put the enum check back in now that MDI doesnt have
26964 to use this to set border styles.
26965 * Form.cs: Only set mdi child windows borders if the handle has
26967 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
26968 this directly on to the driver.
26969 - Get the move start position before adjusting for the titlebar
26970 height, this fixes the windows "skipping" when they are first
26973 2005-11-18 Jackson Harper <jackson@ximian.com>
26975 * XplatUIX11.cs: Just compute the mdi borders separately as they
26976 don't totally match up with normal form borders.
26978 2005-11-18 Jackson Harper <jackson@ximian.com>
26980 * Control.cs: Set WS_ styles for borders, so that the driver does
26981 not have to retrieve the control instance to figure out what kind
26982 of borders it should have.
26983 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
26984 driver can know its an mdi child easily.
26985 * XplatUIX11.cs: Get the border styles and whether the window is
26986 MDI from the Styles and ExStyles params instead of having to get a
26987 control. This prevents a chicken and egg problem.
26989 2005-11-18 Jackson Harper <jackson@ximian.com>
26991 * MdiClient.cs: Fix typo so scrollbars show up correctly.
26993 2005-11-18 Jackson Harper <jackson@ximian.com>
26995 * MdiClient.cs: Calculate when to add and remove scrollbars
26997 * MdiChildContext.cs: Adjust the y position to take the titlebar
26999 - No height for FormBorderStyle.None
27001 2005-11-18 Jackson Harper <jackson@ximian.com>
27003 * Control.cs: Allow non enum values to be used for
27004 InternalBorderStyle. MDI does this to set a special border style.
27005 - New utility methods for converting points to/from client coords
27006 - Add the newly created control to the Controls collection before
27007 updating its style. This way UpdateStyle can walk the control
27008 heirarchy to find the control if needed.
27009 so I don't need to create a new Point object all the time.
27010 * Form.cs: Let MDI windows handle their border styles.
27011 - Set styles on MDI windows so the correct title style is derived.
27012 * MdiChildContext.cs: Move all the painting and window handling
27013 into the non client area.
27014 - Use correct sizing and put correct buttons on frames based on
27015 the FormBorderStyle.
27016 - Notify the mdi client about scrolling
27017 - Need to handle the buttons ourselves now, because they are all
27018 in non client areas and we can't add controls there.
27019 * MdiClient.cs: Halfway to scrolling, this implementation is
27020 somewhat broken though, we need to check to make sure other
27021 windows aren't causing scrolling before removing the bars. Also
27022 the bars need to be drawn on top, maybe I can switch implicit
27023 controls to be on top.
27024 * Hwnd.cs: caption_height and tool_caption_height are now
27025 properties of an hwnd, this way they can be set by the driver
27026 based on the type of window they are. In X11 the window manager
27027 handles the decorations so caption_height is zero unless its an
27029 - Add 3 pixel borders for MDI windows (0xFFFF).
27030 - Get rid of some code duplication, have DefaultClientRectanle
27031 just call GetClientRectangle.
27032 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
27034 - Set border styles differently for mdi windows.
27035 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
27038 2005-11-15 Mike Kestner <mkestner@novell.com>
27040 * Menu.cs: when adding an item to the collection, if item is already
27041 parented, remove it from the parent.
27043 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
27045 * X11DesktopColors.cs: Added KDE support
27047 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
27050 - Clipboard methods now can translate Rtf format
27051 - No longer removes clipboard contents whenever a new format is added
27052 to allow placing multiple formats on the clipboard
27053 * Clipboard.cs: Clipboard now supports getting a IDataObject and
27054 will place all formats contained in it onto the clipboard. Also
27055 now cleans the clipboard before placing a new object onto it
27057 - Implemented set_Rtf
27058 - Implemented set_SelectedRtf
27059 - Created InsertRTFFromStream() method to allow single code base
27060 for all properties and methods that insert RTF into document
27061 - Removed debug output
27063 - Fixed Delete(int) to fix up line numbers
27064 - Fixed ReplaceSelection to combine start and end line
27065 - Fixed serious DeleteChars bug that would leave the document tree
27067 - Improved DumpTree with several logic checks to detect broken
27069 - Removed debug lines
27070 - Fixed Caret.WordForward/WordBack moving code, now always also
27071 updates caret.tag (fixes crash when word-selecting across tag
27072 boundaries via keyboard)
27073 - Added Insert() method for inserting multiline text into documents
27074 - Fixed DeleteChars() calculation errors that would cause a broken
27075 tag chain with multiple tag lines
27076 - DeleteChars() no longer crashes on multi-tag lines if not all tags
27077 - Split() no longer moves caret if split is at caret location
27078 - ReplaceSelection() now updates the cursor and re-displays it
27079 - ReplaceSelection() now uses new Insert() method to avoid code
27081 - FormatText() can now handle formatting partial lines
27083 - Append now uses new TextControl.Insert() method (this avoids
27085 - Implemented Ctrl-X (Cut) (
27086 - Implemented Ctrl-C (Copy)
27087 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
27088 regeneration when pasting text; roundtripping Copy&Paste within
27089 edit control still fails due to some calculation bugs in GenerateRTF)
27090 - The Delete key will now remove the current selection if it is visible
27091 * TextBox.cs: Removed debug lines
27092 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
27093 driver to be initialized and can't therefore be done via a static ctor)
27095 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
27097 * TextControl.cs: Added backend code for finding char arrays and strings
27099 - Added mouse wheel scroll support
27100 - Added support for VScroll and HScroll events
27102 - Implemented all seven Find() variants
27103 - Implemented GetCharFromPosition()
27104 - Implemented GetCharIndexFromPosition()
27105 - Implemented GetLineFromIndex()
27106 - Implemented GetPositionFromCharIndex();
27107 - Implemented SaveFile for PlainText and UnicodeText
27108 - Fixed set_Font, now setting a new font applies that font to
27110 - Implemented generic Document to RTF converter
27111 - Implemented SaveFile for RichText format (still missing unicode
27112 conversion for non-ansi chars)
27113 - Implemented get_Rtf
27114 - Implemented get_SelectedRtf
27116 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
27118 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
27119 to allow any captures to be released before triggering OnClick. This
27120 way a click handler may capture the mouse without interference.
27121 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
27122 This way we send them even though X may not allow a grab (if the window
27123 isn't visible, for example)
27125 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
27127 * DataGridViewRowEventArgs.cs: DataGridView implementation
27128 * DataGridViewElement.cs: DataGridView implementation
27129 * DataGridViewComboBoxCell.cs: DataGridView implementation
27130 * DataGridViewDataErrorContexts.cs: DataGridView implementation
27131 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
27132 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
27133 * ImageLayout.cs: DataGridView implementation
27134 * DataGridViewComboBoxColumn.cs: DataGridView implementation
27135 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
27136 * DataGridViewSelectionMode.cs: DataGridView implementation
27137 * IDataGridViewEditingControl.cs: DataGridView implementation
27138 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
27139 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
27140 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
27141 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
27142 * DataGridViewColumnSortMode.cs: DataGridView implementation
27143 * DataGridView.cs: DataGridView implementation
27144 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
27145 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
27146 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
27147 * Padding.cs: DataGridView implementation
27148 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
27149 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
27150 * DataGridViewRowEventHandler.cs: DataGridView implementation
27151 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
27152 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
27153 * DataGridViewButtonCell.cs: DataGridView implementation
27154 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
27155 * DataGridViewEditMode.cs: DataGridView implementation
27156 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
27157 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
27158 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
27159 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
27160 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
27161 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
27162 * DataGridViewCellEventHandler.cs: DataGridView implementation
27163 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
27164 * DataGridViewCellStyleConverter.cs: DataGridView implementation
27165 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
27166 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
27167 * DataGridViewColumnEventArgs.cs: DataGridView implementation
27168 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
27169 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
27170 * QuestionEventArgs.cs: DataGridView implementation
27171 * IDataGridViewEditingCell.cs: DataGridView implementation
27172 * DataGridViewTriState.cs: DataGridView implementation
27173 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
27174 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
27175 * DataGridViewColumnCollection.cs: DataGridView implementation
27176 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
27177 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
27178 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
27179 * DataGridViewColumn.cs: DataGridView implementation
27180 * DataGridViewCellBorderStyle.cs: DataGridView implementation
27181 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
27182 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
27183 * DataGridViewRow.cs: DataGridView implementation
27184 * DataGridViewImageCellLayout.cs: DataGridView implementation
27185 * DataGridViewImageCell.cs: DataGridView implementation
27186 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
27187 * DataGridViewCheckBoxCell.cs: DataGridView implementation
27188 * DataGridViewHeaderCell.cs: DataGridView implementation
27189 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
27190 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
27191 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
27192 * DataGridViewTextBoxColumn.cs: DataGridView implementation
27193 * QuestionEventHandler.cs: DataGridView implementation
27194 * DataGridViewCellStyleScopes.cs: DataGridView implementation
27195 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
27196 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
27197 * DataGridViewCell.cs: DataGridView implementation
27198 * DataGridViewCellEventArgs.cs: DataGridView implementation
27199 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
27200 * DataGridViewCellStyle.cs: DataGridView implementation
27201 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
27202 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
27203 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
27204 * TextFormatFlags.cs: DataGridView implementation
27205 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
27206 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
27207 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
27208 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
27209 * DataGridViewButtonColumn.cs: DataGridView implementation
27210 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
27211 * HandledMouseEventArgs.cs: DataGridView implementation
27212 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
27213 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
27214 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
27215 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
27216 * DataGridViewRowCollection.cs: DataGridView implementation
27217 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
27218 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
27219 * DataGridViewHitTestType.cs: DataGridView implementation
27220 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
27221 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
27222 * DataGridViewColumnEventHandler.cs: DataGridView implementation
27223 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
27224 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
27225 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
27226 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
27227 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
27228 * DataGridViewContentAlignment.cs: DataGridView implementation
27229 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
27230 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
27231 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
27232 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
27233 * DataGridViewPaintParts.cs: DataGridView implementation
27234 * DataGridViewCellCollection.cs: DataGridView implementation
27235 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
27236 * DataGridViewImageColumn.cs: DataGridView implementation
27237 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
27238 * DataGridViewElementStates.cs: DataGridView implementation
27239 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
27240 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
27241 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
27242 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
27243 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
27244 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
27245 * DataGridViewRowHeaderCell.cs: DataGridView implementation
27246 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
27247 * DataGridViewTextBoxCell.cs: DataGridView implementation
27248 * DataGridViewBand.cs: DataGridView implementation
27249 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
27250 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
27251 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
27252 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
27253 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
27254 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
27255 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
27256 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
27257 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
27258 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
27259 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
27261 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
27263 * ThemeWin32Classic.cs:
27264 - Draw the outside focus rectangle around buttons
27265 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
27266 doesn't use end caps for every dash of a line anymore. This
27267 workaround ignores the forecolor.
27269 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
27271 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
27274 2005-11-07 Jackson Harper <jackson@ximian.com>
27276 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
27278 2005-11-07 Jackson Harper <jackson@ximian.com>
27280 * ScrollableControl.cs: Calculate the maximum and change vars
27281 (more) correctly so that scrollbars appear as a sensible size.
27283 2005-11-04 Jackson Harper <jackson@ximian.com>
27285 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
27287 * TreeView.cs: When the tree is sorted null out the top_node so
27288 that it is recalculated.
27289 - Use dotted lines instead of dashed lines to match MS better.
27291 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
27294 - Implements key search for items. Useful when browsing files with FileDialog
27295 - When changing view mode or when clear the items reset scrollbar positions
27297 2005-11-04 Jackson Harper <jackson@ximian.com>
27299 * CurrencyManager.cs: Implement the MetaDataChanged event, the
27300 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
27301 as to what the method may do as there is no real way of creating a
27302 derived CurrencyManager and calling the method.
27304 2005-11-03 Jackson Harper <jackson@ximian.com>
27306 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
27307 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
27308 method which seems to just be used internally to refresh the tabs.
27310 2005-11-03 Jackson Harper <jackson@ximian.com>
27312 * TabControl.cs: Implement the remove method. Fix some broken
27315 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27317 * DateTimePicker.cs:
27318 - Added missing DateTimePickerAccessibleObject class
27319 - Added missing events
27320 - Added OnFontChanged method
27321 * Form.cs: Added missing attributes
27322 * TreeView.cs: Added missing attributes
27324 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27326 * GridItemCollection.cs: Fix signatures
27328 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27330 * XplatUI.cs: Updated build rev/date
27331 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
27332 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
27333 * Application.cs: Trigger context-specific ExitThread events
27335 2005-11-03 Jackson Harper <jackson@ximian.com>
27339 * GridTableStylesCollection.cs:
27344 * MonthCalendar.cs: Signature fixes
27346 2005-11-03 Jackson Harper <jackson@ximian.com>
27348 * TreeNodeCollection.cs: Remove should not be virtual.
27349 * TreeView.cs: Implement the last of the missing methods.
27351 2005-11-03 Jackson Harper <jackson@ximian.com>
27353 * TreeNodeConverter.cs: Implement to get off my class-status back.
27355 2005-11-03 Jackson Harper <jackson@ximian.com>
27357 * TreeView.cs: Hookup the bits for drag and drop.
27358 * TreeNode.cs: Don't cache the tree_view or index anymore, now
27359 that nodes can be moved from tree to tree easily this just causes
27360 all sorts of problems.
27361 * TreeNodeCollection: Don't need to give treenodes an index and
27362 treeview anymore when they are added, these are computed on the
27363 fly. Also make sure to remove a node before its added.
27365 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27368 - Added CaretSelection enum
27369 - Added comparison methods to Marker struct, makes selection code
27371 - Added SelectionStart and SelectionEnd as 'moveable' location for
27372 the CaretDirection enum and handler
27373 - Added selection_prev variable to track optimized invalidation for
27374 word and line selection
27375 - Added SelectionVisible property (returns true if there is a valid
27377 - Switched CaretHasFocus to only display the caret if there is no
27379 - Avoiding StringBuilder.ToString to retrieve a single char, instead
27380 using the direct character index; should be much faster
27381 - Added various conditional debug statements
27382 - Fixed invalidation calculation for selection ranges
27383 - Added ExpandSelection() method to support word and line selection
27384 - Switched SetSelectionToCaret to use new Marker compare overloads
27385 - Added central IsWordSeparator() method to determine word
27386 separators/whitespace and FindWordSeparator() to streamline common
27387 usage of IsWordSeparator()
27389 - Removed unneeded grabbed variable, it was just mirroring
27391 - No longer firing OnTextChanged event when Text setter is called,
27392 since the base will fire the event for us
27393 - Added handling of Ctrl-Up/Down selection
27394 - Added handling of Shift-Cursorkey selection
27395 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
27397 - Added handling of Shift and Ctrl-Shift-Home/End selection
27398 - Removed some debug output
27399 - Added handling for single/double/tripple-click to place caret/
27400 select word/select line respectively (Fixes bug #76031)
27401 - Added support for drag expansion of word/line selection
27402 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
27405 2005-11-02 Jackson Harper <jackson@ximian.com>
27407 * X11Dnd.cs: If the drag is going to and from a MWF window just
27408 copy the data instead of sending it out through the X Selection
27411 2005-11-02 Jackson Harper <jackson@ximian.com>
27414 * XplatUIX11.cs: When in a drag we don't want motion notify
27415 messages to get passed on to the other controls. This prevents
27416 mouse move messages from showing up in the drag source.
27418 2005-11-02 Jackson Harper <jackson@ximian.com>
27420 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
27421 the correct button is release to end a drag.
27422 * XplatUIX11.cs: Make the button state internal so the drag system
27423 can access it. Dragging needs to know about all button releases,
27424 not just left button.
27426 2005-11-02 Miguel de Icaza <miguel@novell.com>
27428 * Form.cs (Icon): If the icon is null, reset the icon to the
27431 * Cursor.cs: When writing the AND-mask bitmap do not include the
27432 number of colors, but hardcode those to two (black and white),
27433 fixes the loading of color cursors (Paint Dot Net).
27435 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
27436 turn off autoscaling.
27438 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
27440 2005-11-02 Jackson Harper <jackson@ximian.com>
27442 * X11Dnd.cs: Make sure to send a status message if the pointer
27443 enters a control that can not accept a drop, otherwise the cursor
27444 isn't updated correctly. Also tried to compress the lines of code
27447 2005-11-02 Jackson Harper <jackson@ximian.com>
27449 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
27450 set actions correctly. This isn't perfect as XDND and win32 have
27451 some differences on how you allow actions. I'll clear this up by
27452 adding a path for drag from MWF to MWF windows.
27453 * XplatUIX11.cs: Hook into the dnd system.
27455 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
27457 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
27458 previously shown but they are no longer need it. Very obvious when
27459 browsing files with FileDialog.
27461 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
27463 * Control.cs: We always need to call OnPaintBackground. We pretty much
27464 ignore AllPaintingInWmPaint and always do the painting there, whether
27465 it's set or not, since we always ignore the WM_ERASEBKGND message
27466 (which we don't generate on X11). This fixes #76616.
27467 * Panel.cs: Removed unneeded background painting. This happens properly
27468 in Control.cs already
27470 2005-10-31 Mike Kestner <mkestner@novell.com>
27472 * Menu.cs: Add items to collection before setting their index.
27473 * MenuItem.cs : add range checking with ArgumentException like MS.
27476 2005-10-31 Jackson Harper <jackson@ximian.com>
27478 * ListBox.cs: Invalidate if the area is visible at all not just
27479 contained in the visible rect. Fixes unselection of semi visible
27482 2005-10-31 Jackson Harper <jackson@ximian.com>
27484 * Control.cs: Consistently name the dnd methods. Make them
27485 internal so we can override them to match some MS behavoir
27487 * Win32DnD.cs: Use the new consistent names.
27489 2005-10-31 Jackson Harper <jackson@ximian.com>
27491 * TreeView.cs: Don't draw the selected node when we lose focus.
27493 2005-10-31 Jackson Harper <jackson@ximian.com>
27495 * X11Dnd.cs: We still need to reset the state even though a full
27496 reset isn't being done, otherwise status's still get sent all over
27499 2005-10-31 Jackson Harper <jackson@ximian.com>
27501 * Control.cs: Make the dnd_aware flag internal so the dnd
27502 subsystem can check it. Catch exceptions thrown in dnd handlers to
27504 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
27505 * X11Dnd.cs: Handle null data in the converters. Set the XDND
27506 version when sending a XdndEnter. Use the control/hwnd dnd_aware
27507 flags to reduce the number of dnd enters/status's sent.
27509 2005-10-31 Jackson Harper <jackson@ximian.com>
27511 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
27513 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
27515 * PictureBox.cs: Fixes 76512
27517 2005-10-28 Jackson Harper <jackson@ximian.com>
27519 * X11Dnd.cs: Early implementation to support winforms being a drag
27520 source for data on X11. Also restructured the converters so they
27521 can go both ways now.
27522 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
27524 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
27526 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
27529 2005-10-27 Jackson Harper <jackson@ximian.com>
27531 * TreeNode.cs: Implement serialization so my DnD examples will work.
27533 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
27535 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
27536 TreeView.cs: Don't dispose objects that are not owned.
27538 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
27540 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
27541 should retrieve the current cursor and report that, but XplatUI
27542 doesn't (yet) have an interface for that (and I'm not sure I even
27544 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
27545 until any message loop processing is done (and the WM_SETCURSOR
27546 replaces the cursor to the proper one)
27548 - Fixed override behaviour, we can't set the cursor globally on X11,
27549 just for our windows.
27550 - Invalidating the System.Drawing X11 display handle when we are
27552 * Control.cs: Fix to make csc happy
27554 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
27557 - get_Text: Add last line (without trailing newline) to returned
27558 value (Fixes 76212)
27559 - get_TextLength: Count last line in returned length
27560 - ToString: Call Text property instead of duplicating code
27562 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
27564 * ImageList.cs: Dispose ImageAttributes objects.
27566 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27568 * ImageList.cs: Use attribute constructors with less arguments where
27571 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27573 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
27574 Use typeof instead of strings when assembly is referenced. Added
27575 some more comments.
27577 2005-10-21 Jackson Harper <jackson@ximian.com>
27579 * ListView.cs: Raise a double click event. Also tried to somewhat
27580 fix when the selectedindexchanged event is raised. Its still
27583 2005-10-21 Jackson Harper <jackson@ximian.com>
27585 * TreeView.cs: New method to invalidate the plus minus area of a
27586 node without invalidating the whole node (maybe this can be used
27587 in some more places).
27588 * TreeNodeCollection.cs: When adding to an empty node we need to
27589 invalidate its plus minus area so the little block shows up.
27591 2005-10-21 Jackson Harper <jackson@ximian.com>
27593 * TreeView.cs: Make sure that when we invalidate a node the bounds
27594 are big enough to cover the selected box and the focus
27595 rectangle. Use a different colour for the lines connecting nodes
27596 so they show up with all themes.
27598 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27600 * NativeWindow.cs: Don't call anything that could call into the driver,
27601 we might be on a different thread.
27603 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27605 * Control.cs(Dispose): Since Dispose might run on a different thread,
27606 make sure that we call methods that could call into the driver via
27607 invoke, to avoid thread issues
27609 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27611 * XplatUI.cs: Removed finalizer
27612 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
27613 not allowing to be called on the finalizer thread.
27615 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
27618 - Reverted r51889 and r51891.
27619 - Added ImageListItem class that stores unmodified image items and image
27620 properties required to create list images until handle is created.
27621 - Added AddItem and moved image creation logic to AddItemInternal.
27622 - Added CreateHandle method that creates images based on unmodified items.
27623 - Added DestroyHandle that changes state to store unmodified items.
27624 - Add and AddStrip methods no more create handle.
27625 - ReduceColorDepth has no return value.
27626 - Dispose destroys handle.
27627 - Modified other methods to reflect the above changes.
27628 - Implemented key support.
27629 - Added profile 2.0 members and attributes.
27630 - Added private Reset and ShouldSerialize methods that provide the same
27631 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
27632 them as they are private.
27633 - Added some more comments about implementation details.
27635 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27637 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
27639 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27641 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
27643 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27645 * DataGridDrawingLogic.cs: Fixes column hit calcultation
27646 * DataGridColumnStyle.cs: Remove debug message
27648 2005-10-20 Jackson Harper <jackson@ximian.com>
27650 * TreeView.cs: We can always get input keys regardless of whether
27651 or not editing is enabled. They are used for navigation.
27653 2005-10-20 Jackson Harper <jackson@ximian.com>
27655 * TreeNode.cs: Use the viewport rect for determining if a node
27656 needs to be moved for visibility. Don't use Begin/End edit. This
27657 calls a full refresh when its done.
27658 * TreeView.cs: New SetBottom works correctly. Make the viewport
27659 rect property internal so the treenodes can see it. When clicking
27660 on a node we need to ensure that its visible because it might just
27661 be partly visible when clicked.
27663 2005-10-20 Jackson Harper <jackson@ximian.com>
27665 * TreeNodeCollection.cs: Remove debug code.
27667 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27669 * Datagrid.cs: Implements column sorting in Datagrid
27670 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
27672 2005-10-20 Jackson Harper <jackson@ximian.com>
27674 * TreeNodeCollection.cs: Remove items properly. Update the correct
27675 area after removing them.
27677 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27679 * Datagrid.cs: Should not call base.OnPaintBackground
27681 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27683 * XplatUIX11.cs (GetMessage):
27684 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
27685 window instead of client window
27686 - Now properly calculates NC_xBUTTONUP message coordinates
27687 - ScreenToMenu now properly calculates it's coordinates of whole
27688 window, since menus are in the whole window, not in the client
27690 - Added WholeToScreen coordinate translation method
27692 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27694 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
27695 want to return a message, loop back to the beginning of the function
27696 and grab the next real message to process instead.
27698 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27700 * Splitter.cs: Properly set limits if no filler control is used
27702 2005-10-19 Jackson Harper <jackson@ximian.com>
27704 * ColorDialog.cs: Don't show the help button if it is not enabled
27705 instead of disabling it (this is what MS does). Don't create the
27706 panel until the dialog is run, otherwise the vars (such as
27707 ShowHelp) are not set yet.
27709 2005-10-19 Jackson Harper <jackson@ximian.com>
27711 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
27712 are reduced when adding nodes.
27714 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
27717 2005-10-19 Jackson Harper <jackson@ximian.com>
27719 * FolderBrowserDialog.cs: End editing our treeview so the window
27720 actually gets refreshed.
27722 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27724 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
27725 Obsoleted handling of WM_ERASEBKGND, now always draws our background
27728 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27730 * MenuAPI.cs: Returns after Hidding window
27731 * XplatUIX11.cs: Added TODO found while debugging menu issues
27733 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27735 * XplatUIX11.cs: Do not re-map the whole window when it's size
27736 becomes non-zero unless it's supposed to be actually visible
27738 2005-10-18 Jackson Harper <jackson@ximian.com>
27740 * TreeView.cs: We don't need to keep a count anymore.
27741 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
27742 use the Grow method.
27744 2005-10-18 Jackson Harper <jackson@ximian.com>
27746 * TreeNodeCollection.cs: Insert is not supported on arrays, so
27747 implement it manually here.
27749 2005-10-18 Jackson Harper <jackson@ximian.com>
27751 * ImageList.cs: Dont kill the list when the colour depth is
27752 changed, just change the colour depth of all the images.
27753 - Same goes for setting the image size. Just resize them all
27754 instead of killing the list softly.
27756 2005-10-18 Jackson Harper <jackson@ximian.com>
27758 * Control.cs: Don't invalidate empty rectangles.
27760 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27763 - Adds checked item to the Checked/Item lists (where empty before)
27764 - Do not add items to the Selected lists if they are already present
27766 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
27767 - When deleting items make sure that we delete them for the Selected
27768 and Checked list also.
27770 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27772 * Label.cs: Dispose objects no longer used
27773 * ThemeWin32Classic.cs: Dispose objects no longer used
27775 2005-10-18 Jackson Harper <jackson@ximian.com>
27777 * TabControl.cs: Don't refresh the whole control when the tabs are
27778 scrolled, we just need to refresh the tab area.
27780 2005-10-17 Jackson Harper <jackson@ximian.com>
27782 * XplatUIX11.cs: Compress code a little bit. Only calculate the
27783 after handle when we need it.
27785 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27787 * Control.cs: When the parent size changes, recalculate anchor
27788 positions. Partial fix for #76462
27790 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27792 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
27793 drawn. Fixes #76462
27795 2005-10-17 Jackson Harper <jackson@ximian.com>
27797 * MonthCalendar.cs: Don't create the numeric up down until our
27798 handle is created. Otherwise our handle is created in the
27799 constructor and we don't know if we are a WS_CHILD or WS_POPUP
27802 2005-10-17 Jackson Harper <jackson@ximian.com>
27804 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
27807 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27808 * TreeNode.cs : small logical fix (was using local var instead of field)
27810 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
27812 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
27814 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
27816 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
27818 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
27821 - Re-implemented anchoring code. My first version was really broken.
27822 This fixes bug #76033. Unlike the previous implementation we will
27823 no longer have round errors since all numbers are calculated from
27824 scratch every time. Removed various anchor-related obsolete vars.
27825 - InitLayout no longer causes layout event firing and layout to be
27828 2005-10-16 Jackson Harper <jackson@ximian.com>
27830 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
27833 2005-10-16 Jackson Harper <jackson@ximian.com>
27835 * TabControl.cs: Remove debug code.
27837 2005-10-16 Jackson Harper <jackson@ximian.com>
27839 * XEventQueue.cs: Increase the default queue size (very simple
27840 apps needed to grow the queue).
27841 * Hwnd.cs: No finalizer so we don't need to suppress
27842 finalization. Compute the invalid area manually so a new rectangle
27843 does not newto be created.
27844 * ScrollableControl.cs: Don't set any params (otherwise visibility
27845 isn't set correctly).
27846 * MdiChildContext.cs: New constructor takes the mdi parent so it
27847 doesn't have to be computed and avoids a crash on windows. Draw
27848 the window icon properly, and allow the text to be seen.
27849 * Form.cs: Use new MdiChildContext constructor. Make sure the
27850 child context isn't null in wndproc.
27851 * TabControl.cs: Don't set focus, this is muddling keyboard
27852 behavoir. Expand the tab rows when a window size increase will
27853 allow extra tabs to be seen. Don't allow tabs smaller than the
27854 width of a window to be scrolled out of view.
27856 * TreeView.cs: Use measure string to calculate a nodes width, the
27857 width is cached and only updated when the text or the font is
27858 changed. Don't check for expand/collapse clicks on the first level
27859 nodes if root lines are disabled.
27861 2005-10-16 Ritvik Mayank <mritvik@novell.com>
27863 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
27865 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
27867 * DataGridBoolColumn.cs: fixes warning
27869 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
27871 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
27872 to match more to match more precisely the MS Net behavior
27874 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27876 * Hwnd.cs: Added field to track if window is mapped
27878 - Unmap windows if they become 0-size, re-map when
27879 they are >0 again; fixes #76035
27880 - Re-set our error handler after initializing X11Desktop
27881 to override any error handlers Gtk or whatever was called
27884 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27886 * CheckedListBox.cs: Removed unused vars
27887 * ListView.cs: Fixed signatures
27888 * RichTextBox.cs: Removed unused vars
27889 * TextBoxBase.cs: Removed unused vars
27890 * XplatUIWin32.cs: Removed unused vars
27891 * XplatUIX11.cs: Removed unused vars
27892 * XplatUI.cs: Updated version and date to latest published
27894 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27896 * Cursor.cs: Added private .ctor to work around a bug in
27897 resourceset (Thanks to Geoff Norton for the help on this)
27898 * SplitterEventArgs.cs: Made fields accessible so we don't
27899 waste boatloads of objects and can reuse the same one
27901 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
27902 any captions and borders when generating screen coordinates
27903 * Splitter.cs: Reimplemented control, now fully complete, uses
27904 rubberband drawing, supports and obeys all properties, has
27907 2005-10-13 Miguel de Icaza <miguel@novell.com>
27909 * Form.cs (Form): Setup default values for autoscale and
27910 autoscale_base_size; Make these instance variables, not static
27913 (OnLoad): on the first load, adjust the size of the form.
27915 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27917 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
27918 width argument to DrawReversibleRectangle()
27919 * XplatUIWin32.cs, XplatUIX11.cs:
27920 - Implemented width for DrawReversibleRectangle()
27921 - Added logic to DrawReversibleRectangle that recognizes a zero
27922 width or height and only draws a line in that situation
27924 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
27926 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
27927 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
27928 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
27929 method (it uses our FosterParent window to get a graphics context)
27931 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
27933 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
27934 and SetWindowBackground methods
27936 - Setting proper ControlStyles
27937 - We no longer call XplatUI.SetWindowBackground and XplatUI.
27938 EraseWindowBackground, instead we draw the window background
27939 ourselves in PaintControlBackground. This behaviour is
27940 required to match MS, where, when OnPaintBackground is not
27941 called, the background is not drawn.
27942 - Removed unneeded Refresh() in set_Text
27943 * Hwnd.cs: Dropped the ErasePending support. No longer needed
27945 - Created DeriveStyles method to translate from CreateParams to
27946 FormBorderStyle and TitleStyle, also handles BorderStyle (which
27947 matches FormBorderStyle enum values)
27948 - Consolidated SetHwndStyles and CalculateWindowRect border/title
27949 style calculations into single DeriveStyles method
27950 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
27951 from redrawing the whole window on any resize or expose.
27952 - Fixed CreateWindow usage of SetWindowValuemask. Before not
27953 all styles were applied to our whole/client window appropriately
27954 - Removed EraseWindowBackground() and SetWindowBackground() methods
27955 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
27956 no longer clear/redraw the background through X
27957 - Removed handling of erase_pending bit, we have no use for it (or
27960 - Removed generation and handling of WM_ERASEBKGND message
27961 - Removed EraseWindowBackground() and SetWindowBackground() methods
27962 - Removed handling of hwnd.ErasePending flag
27964 - Removed EraseWindowBackground() and SetWindowBackground() methods
27965 - We no longer call EraseWindowBackground on PaintEventStart, we
27966 ignore the fErase flag, erasing is handled in Control in the
27968 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
27969 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
27970 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
27971 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
27972 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
27973 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
27974 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
27976 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
27978 * PropertyGrids.cs: Get sub properties
27979 * PropertyGridView.cs: Fix drawing code
27981 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27983 * ListBox.cs: Fixes 76383
27985 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27987 * DataGridTextBoxColumn.cs: Sets location and size before attachment
27988 * ThemeWin32Classic.cs: Fixes border drawing and calculations
27989 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
27992 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27994 * ComboBox.cs: Fixes border drawing
27996 2005-10-10 Miguel de Icaza <miguel@novell.com>
27998 * MimeIcon.cs: Ignore errors if the file can not be read.
28000 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28002 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
28003 - Fixed border calculations
28004 - Fixed horizontal scrolling in single column listboxes
28005 - Fixed drawing issues
28007 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
28009 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
28010 FormBorderStyle enum
28011 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
28012 code to determine FormBorderStyles from CreateParams
28014 - Fixed bug where we'd set the wrong window styles if we were
28015 not creating an MDI window
28016 - Added call to XplatUI.SetBorderStyle when form borders are set
28017 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
28019 - Removed obsolete edge style
28020 - Switched from BorderStyle to FormBorderStyle
28022 2005-10-10 Jackson Harper <jackson@ximian.com>
28024 * Form.cs: Use the property to get the window handle instead of
28025 accessing it directly. Prevents a null reference exception.
28027 2005-10-10 Jackson Harper <jackson@ximian.com>
28029 * TreeView.cs: Don't adjust the rect given to DrawString now that
28030 our libgdiplus draws correctly.
28032 2005-10-08 Jackson Harper <jackson@ximian.com>
28034 * TreeView.cs: Don't try to find the clicked on node if there are
28035 no nodes in the tree.
28037 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28043 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28045 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
28046 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
28048 Use ResPool for brushes and dispose System.Drawing objects that
28049 are not used anymore.
28051 2005-10-07 Jackson Harper <jackson@ximian.com>
28053 * MdiChildContext.cs: Use the new borders instead of drawing them
28056 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28058 * Calling UpdateBounds after changing the window's BorderStyle
28059 since the style can change the ClientSize
28061 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28063 * Control.cs: Made PaintControlBackground virtual
28064 * Panel.cs: Overriding PaintControlBackground instead of using paint
28065 event; paint event method was interfering with 'real' users of the
28068 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28070 * ThemeWin32Classic.cs: remove border drawing since it is handled
28071 by the base control class now and was causing double border drawing.
28073 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28075 * Panel.cs: Redraw our background on paint. Not a pretty solution,
28076 but it does seem to match MS behaviour. This fixes bug #75324
28078 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28080 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
28081 somewhat hackish looking
28083 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28086 - We now accept Enter even if AcceptEnter is false, if the containing
28087 form does not have an AcceptButton configured (fixes bug #76355)
28088 - Calculations are now fixed to no longer use Width/Height, but
28089 ClientSize.Width/Height, since we now support borders (this was
28090 a result of fixing borders and therefore bug #76166)
28091 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
28092 true (fixes bug #76354)
28094 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28097 - Defaulting BorderStyle and setting it in XplatUI when our window
28099 - Added enum check to InternalBorderStyle setter
28101 - Added drawing of window borders
28102 - Now properly calculates WM decorations offset for toplevel
28103 windows (fixes bug #74763)
28105 - Implemented BorderStyles for windows (we're letting win32 draw
28107 - Fixed the signature for SetWindowLong
28108 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
28109 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
28111 * UpDownBase.cs: Remove drawing of borders, this is handled by
28112 the driver, outside the client area
28113 * ListView.cs: Removed bogus border calculations. The control should
28114 be oblivious to borders, since those are not part of the client
28116 * X11DesktopColors.cs: Commented out (currently) unneeded variables
28117 * ThemeWin32Classic.cs: Removed border calculations from ListView
28120 2005-10-06 Jackson Harper <jackson@ximian.com>
28122 * MdiChildContext.cs: Clear out the old virtual position remove
28123 all the unneeded calls to CreateGraphics.
28125 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28127 * TextControl.cs: Use proper color for highlighted text; fixes #76350
28129 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28132 - Added loading and setting of our new default icon
28133 - Only set icon if window is already created
28135 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28138 - Do not explicitly set the foreground and background colors, to
28139 allow inheriting from parents (fixes #76302)
28140 - Use Control's InternalBorderStyle property to deal with borders
28142 2005-10-06 Jackson Harper <jackson@ximian.com>
28144 * MdiChildContext.cs: Use the new xplatui function to draw a
28147 2005-10-06 Jackson Harper <jackson@ximian.com>
28149 * Form.cs: Add the parent before creating the child context cause
28150 we need the parent when setting up the child.
28152 2005-10-06 Jackson Harper <jackson@ximian.com>
28154 * FolderBrowserDialog.cs: redo the tree population code so a
28155 second thread isn't used. Should be a lot faster and more stable
28158 2005-10-05 Jackson Harper <jackson@ximian.com>
28160 * TreeView.cs: There are no expand/collapse boxes if the node has
28163 2005-10-05 Jackson Harper <jackson@ximian.com>
28165 * X11DesktopColors.cs: Get menu colours for the gtk theme.
28167 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
28169 * FileDialog.cs: Fix InitialDirectory
28171 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
28174 - Fixes changing between styles
28175 - Fixes simple mode
28176 - Fixes last item crashing when navigating with keyboard
28178 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
28180 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
28182 2005-10-05 Jackson Harper <jackson@ximian.com>
28184 * TreeView.cs: If updating the root node do a full refresh.
28185 * TreeNode.cs: The root node should be expanded by default. Also
28186 added a utility prop to tell if we are the root node.
28187 * TreeNodeCollection.cs: Only refresh if the node we are being
28188 added to is expanded. Also added a comment on a potential
28191 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
28193 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
28194 in dispose method. Fixes #76330
28196 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
28198 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
28200 - Implements vertical and horizontal scrolling using XplatUI
28201 - Fixes keyboard navagation
28202 - Fixes EnsureVisible
28204 - Handles and draws focus properly
28207 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
28209 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
28210 Create handle. NET_2_0: Destroy handle when value is null.
28212 2005-10-03 Jackson Harper <jackson@ximian.com>
28214 * ScrollBar.cs: My last scrollbar patch was broken. This is a
28215 revert and a new patch to prevent the thumb from refreshing so
28218 2005-10-02 Jackson Harper <jackson@ximian.com>
28220 * ScrollBar.cs: Don't update position if it hasn't actually
28221 changed. This occurs when you hold down the increment/decrement
28222 buttons and the thumb gets to the max/min.
28224 2005-10-01 Jackson Harper <jackson@ximian.com>
28227 * MdiChildContext.cs:
28228 * MdiClient.cs: Implement ActiveMdiChild in Form.
28230 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
28232 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
28234 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
28236 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
28239 2005-09-30 Jackson Harper <jackson@ximian.com>
28241 * ListBox.cs: Don't do a full refresh unless some data has
28244 2005-09-30 Jackson Harper <jackson@ximian.com>
28246 * TreeView.cs: Make sure that the checkboxes size is factored in
28247 even when not visible.
28249 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28251 * FileDialog.cs: Fix Jordi's build break
28253 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
28256 - Use standard the Windows colours for the combobox as espected
28257 - Dispose objects that use resouces when no longer need them
28259 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28261 * X11DesktopColors.cs: Initial incomplete implementation
28262 * XplatUIX11.cs: Added call to initialize X11DesktopColors
28264 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28267 - Switched Theme color names to match the names defined in
28268 System.Drawing.KnownColors. Life's hard enough, no need to make
28270 - Added setters to all theme color properties so themes can set
28271 their color schemes. The setters also propagate the color changes
28272 to System.Drawing.KnownColors via reflection
28273 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
28274 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
28275 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
28276 use the new, more logical theme color names
28277 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
28279 * ThemeWin32Classic.cs:
28280 - Removed code to set the old classic Windows colors. Instead it
28281 now relies on the colors returned by System.Drawing.KnownColors
28282 which will be either modern static colors (Unix) or colors
28283 read from the user's configuration (Win32)
28284 - Updated to use the new, more logical theme color names
28285 - Switched DataGrid drawing code to use only Theme colors instead of
28286 a mix of System.Drawing.KnownColors and Theme colors
28287 - DrawFrameControl(): Removed code that fills the button area, the
28288 fill would overwrite any previous fill done by a control. This
28290 - Added DrawReversibleRectangle() stub
28291 * ScrollableControl.cs: Set visible state to false when scrollbars
28292 are removed (pdn fix)
28293 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
28294 DrawReversibleRectangle() method to allow drawing primitive
28296 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
28298 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28300 * ImageList.cs: Add(Icon): Create handle.
28302 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
28305 * ThemeWin32Classic.cs:
28306 - Fixes detail mode
28308 - Issues with drawing
28310 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28312 * ImageList.cs: Moved RecreateHandle back to ImageList as event
28313 source has to be the ImageList.
28315 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28317 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
28319 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28321 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
28323 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28325 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
28327 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
28328 * GridItem.cs: Fixed TODOs
28329 * GridItemCollection.cs: Added ICollection interface
28331 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28333 * ImageList.cs: Resize icons when needed.
28335 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
28338 - Fixes GetBounds and returns on screen rects
28340 - Fixes vertical and horzintal scrolling of items
28341 * ThemeWin32Classic.cs:
28344 2005-09-29 Raja R Harinath <harinath@gmail.com>
28346 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
28348 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
28350 * ImageList.cs: Added comments about handle creation. Moved Handle,
28351 HandleCreated and OnRecreateHandle implementations to ImageCollection.
28352 Handle is created in Add methods.
28354 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
28356 * DataGridDrawingLogic.cs:
28357 - Takes rows into account on Colum calculations
28358 - Returns the column when clickig
28360 - Fixes default HitTestInfo values
28361 - Fixes HitTestInfo.ToString
28362 - Fixes ResetBackColor
28364 2005-09-28 Jackson Harper <jackson@ximian.com>
28366 * MdiChildContext.cs: Obey rules for fixed sized windows (no
28367 sizing or cursor changes). Also added some temp code to draw the
28368 titlebars text (Makes dev a little easier).
28370 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
28372 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
28374 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
28376 * ListBox.cs: Fixes bug 76253
28378 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
28380 * ImageList.cs: Added comments about the current implementation. Added
28381 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
28382 Format32bppArgb to preserve transparency and can use Graphics.FromImage
28383 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
28384 with Bitmap.LockBits for better performance. Revised the whole file to
28385 match MS.NET behaviour and provide better performance. Non-public
28386 interface members are calling public members even when they throw
28387 NotSupportedException for better maintainability. Moved ColorDepth,
28388 ImageSize, ImageStream and TransparentColor implementations to
28389 ImageCollection for better performance as these properties are not used
28391 * ImageListStreamer.cs: Added a new internal constructor that takes an
28392 ImageList.ImageCollection and serializes Images based on
28393 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
28394 match ImageList property name.
28396 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
28398 * ListBox.cs: Fixes IndexFromPoint for last item
28400 2005-09-27 Jackson Harper <jackson@ximian.com>
28402 * Form.cs: Set the position of new mdi children correctly.
28404 2005-09-27 Jackson Harper <jackson@ximian.com>
28406 * MdiClient.cs: New mdi children need to be added to the back of
28407 the controls collection so the zorder is set correctly. Also add a
28408 count of all the child windows that have been created.
28410 2005-09-27 Jackson Harper <jackson@ximian.com>
28412 * Form.cs (CreateParams): Setup MDI forms correctly.
28414 2005-09-27 Jackson Harper <jackson@ximian.com>
28416 * MdiChildContext.cs:
28417 * MonthCalendar.cs:
28423 * ScrollableControl.cs:
28424 * ComboBox.cs: Add implicit controls using the new implict control
28425 functionality in ControlCollection. Also try to block multiple
28426 control add in a suspend/resume layout to save some cycles.
28428 2005-09-27 Jackson Harper <jackson@ximian.com>
28430 * Control.cs: Add functionality to the controls collection to add
28431 'implicit controls' these are controls that are created by the
28432 containing control but should not be exposed to the user. Such as
28433 scrollbars in the treeview.
28434 * Form.cs: The list var of the ControlsCollection is no longer
28435 available because of the potential of implicit controls getting
28436 ignored by someone accessing the list directly.
28438 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
28440 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
28441 loose it's parent. (Fixed bug introduced in r49103 when we added
28442 setting the child parent to null on Remove)
28444 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
28446 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
28447 * Splitter.cs: Added missing attributes for BorderStyle property.
28448 * TextBoxBase.cs: Marked Calculate* methods internal.
28449 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
28452 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
28454 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
28456 2005-09-25 Jackson Harper <jackson@ximian.com>
28458 * TreeView.cs: Update the node bounds correctly regardless of
28459 whether the node is visible.
28461 2005-09-25 Jackson Harper <jackson@ximian.com>
28463 * ImageList.cs: Don't dispose the image after it is added to the
28464 image list. Only reformat images that need to be resized.
28466 2005-09-25 Jackson Harper <jackson@ximian.com>
28468 * ImageList.cs: Don't set the format when changing the image.
28470 2005-09-25 Jackson Harper <jackson@ximian.com>
28472 * TreeView.cs: We can't just assume the node has a font. Use the
28473 treeviews font if no node font is available.
28475 2005-09-25 Jackson Harper <jackson@ximian.com>
28477 * TreeView.cs: Allow the scrollbars to be reset with negative
28479 - Don't add scrollbars to negative sized windows.
28481 2005-09-23 Jackson Harper <jackson@ximian.com>
28483 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
28484 old Mono.Posix. Also remove some stray code that shouldn't have
28487 2005-09-23 Jackson Harper <jackson@ximian.com>
28489 * TreeView.cs: Attempt at proper sizing of the horizontal
28490 scrollbar. Also don't resize the scrollbars unless they are
28493 2005-09-23 Jackson Harper <jackson@ximian.com>
28495 * TreeView.cs: We don't need to expand the invalid area when the
28496 selection changes, as this is all drawn in the node's bounding
28497 box. The area needs to be expanded (previous typo was contracting
28498 it) when the focus rect moves.
28500 2005-09-23 Jackson Harper <jackson@ximian.com>
28502 * TreeView.cs: Display the selection box under the correct
28503 circumstances. We were rendering white text with no selection box
28506 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
28508 * TextControl.cs(Split): Now updates selection start/end if it points
28509 into a line that's being split. Fixes a FIXME and bug #75258
28511 2005-09-23 Jackson Harper <jackson@ximian.com>
28514 * ListControl.cs: Don't use the path when retrieving binding
28515 managers from the binding context. My bat sense tells me that the
28516 path is only used on insertion.
28518 2005-09-22 Jackson Harper <jackson@ximian.com>
28520 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
28522 2005-09-22 Jackson Harper <jackson@ximian.com>
28524 * Splitter.cs: There are special cursors used for splitting.
28525 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
28527 2005-09-22 Jackson Harper <jackson@ximian.com>
28529 * Splitter.cs: Change the cursor appropriately when the splitter
28530 is moused over, so the user actually knows there is a splitter
28533 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28535 * Label.cs : Fix ToString method to give same output as MS.NET
28537 2005-09-22 Jackson Harper <jackson@ximian.com>
28539 * TreeView.cs: Create the scrollbars when the handle is created
28540 and add them right away, just make them invisble. Also account for
28541 the window being shrunk vertically to the point that the vert
28542 scrollbar needs to be added.
28543 - Remove some 0.5 adjustments to get around anti aliasing issues.
28545 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
28547 * MainMenu.cs: Fixes default value
28548 * MenuItem.cs: Fixes default value
28550 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
28552 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
28554 2005-09-21 Jackson Harper <jackson@ximian.com>
28556 * Control.cs: Don't try to set the border style on the window if
28557 it hasn't been created. When the window is created the border
28558 style will be used.
28560 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28562 * Control.cs (Update): Don't call XplatUI if we don't have a
28565 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28567 * ContainerControl.cs: Instead of throwing an exception, print
28568 a one-time warning about Validate not being implemented
28569 * XplatUIWin32.cs: Removed debug output
28571 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28573 * Control.cs: Only set XplatUI background if we expect the windowing
28574 system to handle the background. This stops controls that draw their
28575 own background from flickering
28577 * XplatUIX11.cs: Support custom visuals and colormaps for window
28578 creation. This allows, amongst other things, using MWF X11 windows
28581 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28583 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
28584 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
28585 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
28586 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
28587 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
28588 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
28589 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
28590 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
28591 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
28592 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
28593 GridColumnStylesCollection.cs,
28594 IDataGridColumnStyleEditingNotificationService.cs,
28595 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
28596 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
28597 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
28598 TreeNodeCollection.cs, AmbientProperties.cs,
28599 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28600 DataObject.cs, ErrorProvider.cs, Splitter.cs,
28601 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
28602 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
28603 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
28604 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
28605 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
28606 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
28607 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
28608 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
28609 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
28610 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
28611 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
28612 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
28613 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
28614 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
28615 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
28616 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
28617 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
28618 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
28619 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
28620 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
28621 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
28622 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
28623 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
28624 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
28625 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
28626 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
28627 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
28628 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
28629 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
28630 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
28631 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
28632 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
28633 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
28634 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
28635 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
28637 2005-09-21 Jackson Harper <jackson@ximian.com>
28639 * TreeNode.cs: Call Before/After Expand not Collapse when
28642 2005-09-20 Jackson Harper <jackson@ximian.com>
28644 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
28646 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28650 - Fixes proper storing of subitems
28651 - Fixes not updated items
28653 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28655 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
28656 things if our window handle isn't created yet. Also disabled
28657 debug for TextBoxBase
28659 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28661 * MenuAPI.cs: Remove filtering of events to allow menu usage
28663 2005-09-20 Miguel de Icaza <miguel@novell.com>
28665 * Cursor.cs: Allow null to be passed to Cursor.Current.
28667 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
28669 * ThemeWin32Classic.cs:
28670 - Change some private methods/fields to protected virtual so that
28671 they can be accessed and overriden in derived classes
28672 - First refactoring of some methods. Derived themes now don't
28673 need to duplicate the complete code from ThemeWin32Classic
28675 - Added nice StatusBar
28676 - Derive from ThemeWin32Classic and not Theme
28677 - Removed duplicate ThemeWin32Classic code
28679 2005-09-20 Miguel de Icaza <miguel@novell.com>
28681 * Control.cs (ControlCollection.Add): If the value null is passed
28682 the control is ignored.
28684 Optimize this loop.
28686 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28688 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
28689 PostQuitMessage state.
28690 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
28692 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28694 * Application.cs: Our constructor will never get called, move
28695 initialization to fields; fixes bug #75933
28697 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28700 - Allow files to be selected properly using file name
28702 - Add ability to change diretory (absolute / relative)
28703 using file name combo box.
28705 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28708 - Fixes Multicolumn listboxes item wrong calculations
28709 - Allows to click when only one item is in the listbox
28710 - Fixes crash when no items using keyboard navigation
28712 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
28714 * ComboBox.cs: Reverted almost everything from the latest patch which
28717 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
28720 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
28722 - When DropDownStyle is Simple, it does not show scrollbar
28723 to the last item of the list.
28724 - When DropDownStyle is Simple, it crashed when the list was
28725 scrolled down with the down cursor key.
28726 - Fixed a bug that when DropDownStyle is DropDownList, the
28727 selected item was not shown.
28728 - The position of the selected item was not preserved when
28729 the next dropdown happened.
28730 * ThemeWin32Classic.cs:
28731 - Items were wrapped at the right end.
28732 * CheckedListBox.cs:
28735 - Items should be fully shown.
28736 - When resizing and vertical scrollbar disappeared, the item
28737 of index 0 should be on the top of the list.
28738 - GetItemRectangle should consider the size of ver. scrollbar
28740 - SizingGrip area should not be allocated when it is not
28742 - Now it reflects MinWidth of the containing panel and
28743 fixed a crash that happens when its width becomes so small.
28745 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28747 * CheckedListBox.cs: Fixes bug 76028
28748 * ListBox.cs: Fixes bug 76028
28750 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28752 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
28753 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
28755 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
28757 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
28759 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28761 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
28763 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28765 * IRootGridEntry.cs: Added
28766 * PropertyGridCommands.cs: Added
28767 * PropertiesTab.cs: Added missing methods and property
28768 * PropertyGridView.cs: Made class internal
28769 * PropertyGridTextBox.cs: Made class internal
28771 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28773 * MimeIcon.cs: Try to check some other environment variables
28774 if "DESKTOP_SESSION" returns "default"
28776 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28778 * ThemeNice.cs: Corrected background colors (e.g. menus)
28779 * ColorDialog.cs: Use correct background colors for controls
28781 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28783 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
28785 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
28787 * RichTextBox.cs: Added initial implementation
28788 * lang.cs: Removed. Was accidentally checked in long time ago
28789 * TODO: Removed. Contents were obsolete
28791 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28793 * PropertiesTab.cs : Added
28795 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28797 * PropertyGrid.cs : Update
28798 * PropertyGridView.cs : Update
28799 * System.Windows.Forms.resx : Added images and strings
28801 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
28803 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
28805 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
28807 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
28808 a busy loop right after the Ungrab the X11 display is otherwise
28811 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
28813 * ThemeWin32Classic.cs: Optimise the use of clipping
28815 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
28817 * DataGrid.cs: fixes recursion bug
28819 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
28822 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
28825 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
28827 * ThemeNice.cs: Draw nice ProgressBars
28829 2005-09-01 Miguel de Icaza <miguel@novell.com>
28831 * VScrollBar.cs: Another buglet found by Aaron's tool.
28833 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
28836 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
28839 - Added nicer menu drawing
28843 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28845 * CreateParams.cs (ToString): Made output match MS
28846 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
28847 handle is already created (to avoid forcing window creation)
28848 * XplatUIX11.cs: Set window text to caption after creating window,
28849 in case Text was set before window was created
28850 * Form.cs: Use this.Text instead of a static string as caption
28852 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28854 * NotifyIcon.cs: Don't set the window to visible; this screws
28855 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
28856 OnPaint without a bitmap)
28857 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
28858 happen very often anyway; we could add the check to the WM_PAINT
28859 event generation code
28861 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28863 * NotifyIcon.cs: Fill the icon area with a background color, to
28864 avoid 'residue' when transparent icons are drawn
28866 - Handle whole_window == client_window when destroying windows
28867 - SystrayAdd(): Set client_window to whole_window value to
28868 get mouse and other events passed to NotifyIcon
28870 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28872 * Form.cs: Set proper default for Opacity property
28874 - ShowSystray(): Don't bother creating telling the OS
28875 about the systray item if no icon is provided
28876 - Now handles WM_NCPAINT message to deal with whole/client window
28878 - Create window as visible to not get caught by Expose optimization
28879 * Hwnd.cs: Removed debug message
28880 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
28881 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
28882 PaintEventStart/End to use new client argument
28884 - Commented out debug messages
28885 - Switched PaintEventStart/End to use new client argument
28886 * XplatUI.cs: Added client window bool to PaintEventStart()/
28887 PaintEventEnd() calls, to support drawing in non-client areas
28888 * XplatUIDriver.cs:
28889 - Added client window bool to PaintEventStart()/PaintEventEnd()
28890 calls, to support drawing in non-client areas
28891 - Added conditional compile to allow using MWF BeginInvoke
28894 - Added some conditional debug output
28895 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
28896 whole/client window split
28897 - Implemented handling of client argument to PaintEventStart()/End()
28899 - Throw exception if BeginInvoke() is called and the window handle
28900 or one of the window's parent handles is not created
28901 - Added conditional compile to allow using MWF BeginInvoke on
28903 - get_Parent(): Only sets parent if handle is created. This avoids
28904 forcing window handle creation when parent is set.
28905 - Now fires Layout and Parent changed events in proper order
28906 - Switched to use Handle instead of window.Handle for Z-Order setting,
28907 the get_Parent() patch above causes us to possibly get null for 'window'
28908 - Implemented handling of client argument to PaintEventStart()/End()
28909 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
28911 - Now sends a Refresh() to all child windows when Refresh() is called
28913 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
28915 * Form.cs: Added (non-functional) Opacity property
28916 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
28918 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
28919 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
28920 use export MONO_THEME=nice to activate it.
28921 Currently supported controls:
28925 - TabControl (TabAlignment.Top only, other will follow)
28926 * ThemeEngine.cs: Add theme nice
28927 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
28930 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
28932 * Splitter.cs: Resize docked control and its neighbor.
28934 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28935 -- Making Windows with Menus layout correctly --
28936 * Form.cs : The first leg of the fix
28937 Menu setter - adjust Client Size as needed to make space for the menu
28938 SetClientSizeCore - doesn't call base version to be able to pass the
28939 menu handle to XplatUI.CalculateWindowRect
28940 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
28941 * XplatUIX11.cs: The critical second leg of the fix
28942 GetWindowPos needs to use a recalculated client_rect
28943 so that resizing the window doesn't break layout of child controls.
28944 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
28945 Lots of \t\n killed
28947 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
28949 * Label.cs: Now properly recalculates width and height on Font and Text
28950 changes if AutoSize is set
28952 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28953 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
28955 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
28957 * ImageList.cs: Makes ToString method compatible with MS
28959 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
28961 * MenuAPI.cs: fixes bug 75716
28963 2005-08-11 Umadevi S <sumadevi@novell.com>
28964 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
28966 2005-08-11 Umadevi S <sumadevi@novell.com>
28967 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
28969 2005-08-10 Umadevi S <sumadevi@novell.com>
28970 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
28972 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
28974 * Menu.cs: fixes bug 75700
28975 * MenuAPI.cs: fixes navigation issues
28977 2005-08-09 Umadevi S <sumadevi@novell.com>
28978 * CheckedListBox.cs - simple fix for GetItemChecked.
28980 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
28982 * ComboBox.cs: Serveral fixes
28983 * ListBox.cs: Serveral fixes
28985 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
28987 * ComboBox.cs: Fixes FindString methods and GetItemHeight
28988 * ListBox.cs: Fixes FindString methods
28990 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
28992 * DataGrid.cs: fixes bugs exposed by new tests
28994 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
28996 * Mime.cs: Compile Mono assembly references only if compiling
28997 with Mono (Allows to build with VS.Net again)
28999 2005-07-28 Marek Safar <marek.safar@seznam.cz>
29001 * Control.cs (PaintControlBackground): Draw background image
29003 (CheckForIllegalCrossThreadCalls): Stubbed.
29005 * Form.cs (OnCreateControl): Center when should be centered.
29007 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
29009 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
29011 * Binding.cs: Binding to properties should be case unsensitive
29013 2005-07-18 vlindos@nucleusys.com
29015 * DataGrid.cs: fixes setmember order
29017 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
29019 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
29020 * FileDialog.cs: FileDialog is now resizable and uses the new
29023 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
29025 * DataGridTextBoxColumn.cs: default value
29026 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
29027 * GridTableStylesCollection.cs: fixes checking MappingName
29028 * DataGridDrawingLogic.cs: fixes drawing logic issues
29029 * DataSourceHelper.cs: rewritten to make compatible with more data sources
29030 * DataGrid.cs: fixes
29032 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
29034 * MimeGenerated.cs: Use case sensitive comparer for
29035 NameValueCollections
29037 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
29039 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
29040 * ThemeWin32Classic.cs: bug fixes, code refactoring
29041 * DataGridDrawingLogic.cs: bug fixes, code refactoring
29042 * DataGrid.cs: bug fixes, code refactoring
29043 * DataGridTextBox.cs: bug fixes, code refactoring
29044 * DataGridColumnStyle.cs: bug fixes, code refactoring
29045 * Theme.cs: bug fixes, code refactoring
29047 2005-07-01 Peter Bartok <pbartok@novell.com>
29049 * TextControl.cs: Quick fix for the reported crash on ColorDialog
29050 and other text box usage
29052 2005-07-01 Jackson Harper <jackson@ximian.com>
29054 * TabControl.cs: Make sure the bottom of the tab covers the pages
29057 2005-06-30 Peter Bartok <pbartok@novell.com>
29059 * Form.cs (ShowDialog): Assign owner of the dialog
29060 * TextBoxBase.cs: Always refresh caret size when deleting, caret
29061 might have been moved to a tag with different height
29063 2005-06-30 Jackson Harper <jackson@ximian.com>
29065 * Form.cs: Don't create an infinite loop when setting focus
29066 * MenuItem.cs: Don't dirty the parents if we don't have any
29068 2005-06-29 Ben Maurer <bmaurer@ximian.com>
29070 * LibSupport.cs: Rename
29072 2005-06-29 Peter Bartok <pbartok@novell.com>
29074 * TextBoxBase.cs: Re-align caret after deleting a character
29076 - DeleteChars(): Ensure that tag covers the provided position
29077 - StreamLine(): Drop reference for dropped tag
29079 2005-06-29 Peter Bartok <pbartok@novell.com>
29082 - Selections now work properly, anchoring at the initial location
29083 and properly extending in either direction (SetSelectionToCaret(),
29084 SetSelectionStart() and SetSelectionEnd())
29085 - No longer redraws the whole control on selection change, now
29086 calculates delta between previous and new selection and only
29087 invalidates/redraws that area
29088 - Fixed FindPos() math off-by-one errors
29089 - Changed DeleteChars() to verify the provided tag covers the
29090 provided position, selections may have a tag that doesn't cover
29091 the position if the selection is at a tag border
29092 - Fixed off-by-one errors in DeleteChars()
29093 - Added missing streamlining check in DeleteChars() to remove
29095 - Implemented Invalidate() method, now properly calculates exposures
29096 between two given lines/positions
29097 - Implemented SetSelection()
29098 - Obsoleted and removed FixupSelection()
29099 - Improved RecalculateDocument() logic, removing code duplication
29101 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29103 * LibSupport.cs: changes to match different input/output arguments.
29105 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29107 * LibSupport.cs: added libsupport.so init routine.
29109 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
29111 * ControlBindingsCollection.cs
29112 - Throws an exception on null datasource when adding
29113 - Checks for duplicated bindings when adding
29115 2005-06-28 Jackson Harper <jackson@ximian.com>
29117 * TreeView.cs (OnKeyDown): Support left and right properly
29118 (navigates as well as expanding and collapsing.
29119 - Add support for Multiply, this expands all the selected nodes
29121 - Fix some tabbing.
29123 2005-06-28 Jackson Harper <jackson@ximian.com>
29125 * TreeView.cs: Implement keyboard navigation, currently supports,
29126 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
29127 support for toggling checkboxes with the space bar.
29129 2005-06-28 Jackson Harper <jackson@ximian.com>
29131 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
29134 2005-06-28 Jackson Harper <jackson@ximian.com>
29136 * TreeView.cs: Add missing event.
29138 2005-06-27 Peter Bartok <pbartok@novell.com>
29141 - Made line ending size configurable (now allows for counting
29142 lineendings as \n or \r\n)
29143 - Added margin to viewport to keep caret visible on right side
29144 - Fixed translation routines for line/pos to documentpos to consider
29145 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
29146 - Fixed some line-endings to be unix style
29147 - Fixed Document.FormatText to perform it's calculations 1-based
29148 - Added descriptions for a few methods that might otherwise get
29150 - Added NOTE section with some basic conventions to remember at
29151 the top of the file
29152 - Major fixup for RichTextBox selection drawing:
29153 * Fixed crashes when multiple tags on a single line were selected
29154 * fixed selection box drawing not overlaying text
29155 * fixed bogus offset calculation for tags not starting at index 1
29156 * Switched behaviour from using multiple Substrings of a
29157 StringBuilder.ToString() to using multiple
29158 StringBuilder.ToString(start, length) statements, hoping this is
29159 faster (kept original version commented out in the code, in case
29160 original version was faster)
29161 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
29163 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
29166 2005-06-27 Jackson Harper <jackson@ximian.com>
29168 * TabControl.cs: Move to the left and right with the arrow
29169 keys. These keys don't cycle beyond first and last like
29170 tab. Refresh all the tabs when scrolling them to the left or
29173 2005-06-27 Jackson Harper <jackson@ximian.com>
29176 - ToString: Added method
29177 - CreateParams: Remove TODO and comment
29178 - OnKeyDown: Cycle through bounds properly.
29179 - SelectedIndex: Scroll to the right or left if we need to
29180 display the newly selected tab.
29182 2005-06-23 Jackson Harper <jackson@ximian.com>
29184 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
29187 2005-06-23 Jackson Harper <jackson@ximian.com>
29189 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
29190 CTRL-SHIFT-TAB, and HOME, END are there any others?
29192 2005-06-23 Jackson Harper <jackson@ximian.com>
29194 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
29196 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
29198 * DataGridTextBoxColumn.cs: fixes and enhancements
29199 * ThemeWin32Classic.cs: fixes and enhancements
29200 * DataGridBoolColumn.cs: fixes and enhancements
29201 * DataGridDrawingLogic.cs: fixes and enhancements
29202 * CurrencyManager.cs: fixes and enhancements
29203 * DataGrid.cs: fixes and enhancements
29204 * DataGridColumnStyle.cs: fixes and enhancements
29206 2005-06-22 Jackson Harper <jackson@ximian.com>
29208 * TabControl.cs: Add some missing methods that just call into the
29209 base. Make the TabPageCollection's IList interface behave in the
29210 same manner as the MS implementation.
29212 2005-06-22 Peter Bartok <pbartok@novell.com>
29214 * TextControl.cs: Added sanity check
29216 - Fixed wrapping behaviour, don't set wrap on single line controls
29217 (this fixes the breakage of colordialog introduced in an earlier
29219 - Added rudimentary support for autoscrolling right-aligned controls
29220 (still needs fixing, also, center alignment scroll is missing)
29222 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
29224 * ScrollBar.cs: Fixes thumbpos on Maximum values
29226 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
29228 * PropertyGridView.cs: Pass context information to UITypeEditors
29230 2005-06-21 Peter Bartok <pbartok@novell.com>
29233 - Now calling PositionCaret with absolute space coordinates
29234 - Enabled vertical scrolling
29235 - Better tracking of scrollbar changes, tied into WidthChange
29237 - Improved cursor tracking
29238 - Removed debug output
29240 - PositionCaret coordinates are now works in absolute space, not
29242 - Improved tracking of document size
29243 - Added events for width and height changes
29245 2005-06-21 Peter Bartok <pbartok@novell.com>
29247 * Form.cs: Set focus to active control when form is activated
29249 - Added word-wrap functionality to RecalculateLine()
29250 - Added some short function descriptions for VS.Net to aid in
29251 writing dependent controls
29252 - Added Caret property, returning the current coords of the caret
29253 - Added ViewPortWidth and ViewPortHeight properties
29254 - Added Wrap property
29255 - Added CaretMoved event
29256 - Removed some old debug code
29257 - Split() can now create soft splits
29258 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
29259 - Added method to format existing text
29260 - Fixed size/alignment calculations to use viewport
29261 - RecalculateDocument now can handle changing line-numbers while
29265 - Added some wrap logic, we don't wrap if alignment is not left
29266 - Added casts for scrollbar var, base class switched types to
29267 also support RichTextBoxA
29268 - Implemented handling of scrollbar visibility flags
29271 - Switched scrollbars type to RichTextBoxScrollBars to support
29273 - Added tracking of canvas width/height
29274 - Switched scrollbars to be not selectable (to keep focus on text)
29275 - Added central CalculateDocument() method to handle all redraw
29277 - Added ReadOnly support
29278 - Added WordWrap support
29279 - Fixed handling of Enter key (we now treat it as a DialogKey)
29280 - Fixed caret positioning when h or v scroll is not zero
29281 - Fixed placing/generation of vertical scrollbar
29282 - Added CalculateScrollBars() method to allow updating scrollbar
29283 limits and visibility
29284 - Fixed handling of horizontal scroll
29285 - Added handling of vertical scroll
29286 - Implemented auto-'jump' when caret moves to close to a left or
29287 right border and there is text to be scrolled into view (currently
29288 there's the potential for a stack overflow, until a bug in
29289 scrollbar is fixed)
29291 2005-06-21 Geoff Norton <gnorton@customerdna.com>
29293 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
29295 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
29299 - return application/x-zerosize for files with size zero
29300 (if no extension pattern matches).
29301 - check matches collection for strings too.
29302 - return only the first mime type if the name value
29303 collection has more than one mime type.
29305 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
29307 * PropertyGrid.cs: Cleaned up some TODOs
29308 * PropertyGridView.cs: Added support for UITypeEditors
29310 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
29312 * DataGrid.cs: clears cached value
29314 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
29316 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
29317 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
29318 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
29319 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
29321 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
29323 * ThemeWin32Classic.cs: fixes colour
29325 2005-06-15 Peter Bartok <pbartok@novell.com>
29327 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
29328 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
29329 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
29330 * Control.cs: Added some MWFCategory and MWFDescription attributes
29331 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
29333 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
29335 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
29338 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
29340 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
29341 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
29342 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
29343 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
29344 * DataGrid.cs: default datagrid settings for Default Styles, fixes
29345 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
29347 2005-06-13 Jackson Harper <jackson@ximian.com>
29349 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
29350 isn't printed when the user enables dropping. (X11 does accept
29353 2005-06-13 Jackson Harper <jackson@ximian.com>
29355 * TreeView.cs: Remove some TODOS.
29357 2005-06-13 Jackson Harper <jackson@ximian.com>
29359 * Form.cs: Hook into the mdi framework.
29360 * MdiClient.cs: Use the base control collections add method so
29361 parents get setup correctly. Set the default back colour and dock
29363 * MdiChildContext.cs: New class, this bad actor handles an
29364 instance of an MDI window. Right now there is only basic
29365 support. You can drag, close, and resize windows. Minimize and
29366 Maximize are partially implemented.
29368 2005-06-13 Jackson Harper <jackson@ximian.com>
29370 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
29371 freaky when both vals are negative. NOTE: There are probably other
29372 places in XplatUIX11 that this needs to be done.
29374 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
29376 * DataGrid.cs: implement missing methods, move KeyboardNavigation
29377 * DataGridColumnStyle.cs: fixes signature
29379 2005-06-12 Jackson Harper <jackson@ximian.com>
29381 * XplatUIX11.cs: Use sizing cursors similar to the ones on
29384 2005-06-11 Jackson Harper <jackson@ximian.com>
29386 * StatusBarPanel.cs: Signature cleanups. Implement
29389 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
29391 * DataGridTextBoxColumn.cs: Honors aligment
29392 * GridColumnStylesCollection.cs: Contains is case unsensitive
29393 * GridTableStylesCollection.cs: several fixes
29394 * DataGridTableStyle.cs: default column creation
29395 * DataGridDrawingLogic.cs: fixes
29396 * CurrencyManager.cs: ListName property
29397 * DataGrid.cs: multiple styles support
29398 * DataGridColumnStyle.cs: fixes
29401 2005-06-10 Peter Bartok <pbartok@novell.com>
29403 * Control.cs(Select): Moved SetFocus call to avoid potential
29404 loops if controls change the active control when getting focus
29405 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
29406 the up/down buttons
29408 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
29410 * ImageListConverter.cs: Implemented
29412 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29414 * MonthCalendar.cs: Wired in NumericUpDown control for year
29416 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29418 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
29419 DoubleClick events, since they are not meant to be fired.
29421 2005-06-09 Peter Bartok <pbartok@novell.com>
29423 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
29424 Jonathan's standalone controls into MWF, implemented missing
29425 events, attributes and methods; added xxxAccessible classes
29426 * AccessibleObject.cs: Made fields internal so other classes
29427 can change them if needed
29429 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
29431 * UpDownBase.cs: Complete implementation
29432 * NumericUpDown.cs: Complete implementation
29433 * DomainUpDown.cs: Complete implementation
29435 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
29437 * DataGridTextBoxColumn.cs: drawing fixes
29438 * DataGridCell.cs: fixes ToString method to match MSNet
29439 * DataGridTableStyle.cs: fixes
29440 * DataGridBoolColumn.cs: fixes, drawing
29441 * DataGridDrawingLogic.cs: fixes, new methods
29442 * DataGridTextBox.cs: Keyboard and fixes
29444 - Keyboard navigation
29446 - Row selection (single, multiple, deletion, etc)
29449 2005-06-07 Jackson Harper <jackson@ximian.com>
29451 * ThemeWin32Classic.cs: Clear the background area when drawing
29454 2005-06-06 Peter Bartok <pbartok@novell.com>
29456 * ImageListStreamer.cs: Fixed signature for GetData
29457 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
29459 - Added missing ChildAccessibleObject class
29460 - Added missing OnXXXFocus overrides, switched to using those
29461 instead of the event handler
29463 - Added Parent property for ControlAccessibleObject
29466 - Added ResetBindings()
29467 * ListBindingConverter.cs: Implemented some methods
29468 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
29469 * ImageList.cs: Implemented basic handle scheme, removed TODOs
29470 * ContainerControl.cs: Fixed signature, now subscribing to the
29471 ControlRemoved event instead of overriding the handler, LAMESPEC
29472 * CurrencyManager.cs: Added missing attribute
29473 * MonthCalendar.cs: Added missing properties
29475 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29477 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
29479 2005-06-06 Gaurav Vaish and Ankit Jain
29481 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
29482 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
29484 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29486 * Control.cs: fixes CreateParams Width / Height.
29488 2005-06-05 Peter Bartok <pbartok@novell.com>
29490 * Win32DnD.cs: Removed compilation warnings
29492 2005-06-05 Peter Bartok <pbartok@novell.com>
29494 * Control.cs (CreateParams): Since we don't know if one of the
29495 properties we use is overridden, lets make sure if we fail accessing
29496 we continue with a backup plan
29498 2005-06-05 Peter Bartok <pbartok@novell.com>
29501 - Removed debug output
29502 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
29504 - Plugged resource leak
29505 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
29508 2005-06-05 Peter Bartok <pbartok@novell.com>
29510 * XplatUIWin32.cs: Removed DnD code
29511 * Win32DnD.cs: Implemented drop source and drop target functionality
29513 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29515 * UpDownBase.cs: remove duplicate addition of event, enable some code
29516 that was commented out.
29517 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
29518 Validate input when a key is pressed. It works fine now for every
29519 combination of Hexadecimal. Only missing some drawing love when sharing
29520 space with other controls.
29522 2005-06-04 Peter Bartok <pbartok@novell.com>
29525 - We need to pass a window for DragDrop, so enable callback events
29526 - Added DnD callback events when being a DragSource
29527 * XplatUI.cs (StartDrag): Added window handle argument
29528 * XplatUIDriver.cs (StartDrag): Added window handle argument
29529 * QueryContinueDragEventArgs: Made fields internally accessible so
29530 drivers can set them
29531 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
29534 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
29536 * DataGridTextBoxColumn.cs: column text editing
29537 * DataGridTableStyle.cs: Respect columns styles created by the user
29538 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
29539 * DataGridBoolColumn.cs: bool column editing
29540 * DataGrid.cs: fixes to scrolling, properties, etc
29541 * DataGridTextBox.cs: handle keyboard
29542 * DataGridColumnStyle.cs: fixes
29544 2005-06-02 Jackson Harper <jackson@ximian.com>
29546 * ImageListStreamer.cs: Somewhat broken implementation of
29547 GetObjectData. The RLE needs some work to match MS properly.
29549 2005-06-02 Jackson Harper <jackson@ximian.com>
29551 * X11Dnd.cs: Attempting to keep at least one file in MWF
29554 2005-06-02 Peter Bartok <pbartok@novell.com>
29556 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
29559 2005-06-02 Peter Bartok <pbartok@novell.com>
29561 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
29562 * XplatUI.cs: Added DoDragDrop() method
29563 * XplatUIDriver.cs: Added DoDragDrop() method
29565 2005-06-02 Jackson Harper <jackson@ximian.com>
29567 * Splitter.cs: Implement BorderStyle.
29569 2005-06-02 Jackson Harper <jackson@ximian.com>
29571 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
29572 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
29575 2005-06-02 Peter Bartok <pbartok@novell.com>
29578 - Added Data setter
29579 - Fixed broken insertion code for SetData, now also
29580 overwrites any existing entry of the same format name
29581 * Hwnd.cs: Added list of pointers that automatically gets
29582 freed when the window is disposed
29583 * XplatUI.cs: Call driver initialization method when loading
29586 - OnDragLeave takes EventArgs, not DragEventArgs
29587 - Added setting of WS_EX_ACCEPTFILES style when dropping is
29589 - Forces style update when drop state changes
29590 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
29591 not perfect since we cannot (yet) call the IDataObject.GetData()
29592 method, we keep getting 0x80004005 error, dunno why)
29594 2005-06-02 Peter Bartok <pbartok@novell.com>
29596 * DragEventArgs.cs: Make fields internal so we can cache the
29597 object and re-set the fields from XplatUI
29599 2005-06-02 Jackson Harper <jackson@ximian.com>
29601 * Control.cs: Add some internal methods so the DnD subsystem can
29602 raise DnD events. Also call into the driver when AllowDrop is set.
29604 * XplatUIDriver.cs: New method for setting whether or not a window
29605 is allowed to accept drag and drop messages.
29607 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
29609 * ScrollBar.cs: Make sure that values sent in Scroll events
29610 are always between Maximum and Minimum.
29612 2005-06-01 Marek Safar <marek.safar@seznam.cz>
29614 * Menu.cs: Call MenuChanged when menuitem visibility has been
29616 * MenuItem.cs: Rebuild menu when item is (not) visible.
29617 * MainMenu.cs: MainMenu has special MenuChanged.
29618 * Theme.cs: Caption and FrameBorderSize are not fixed.
29619 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
29620 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
29622 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
29623 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
29625 2005-05-30 Jackson Harper <jackson@ximian.com>
29627 * DataFormat.cs: We can't statically initialize this stuff because
29628 it calls into the xplatui and could create a loop. So we lazy init
29631 2005-05-28 Jackson Harper <jackson@ximian.com>
29633 * Control.cs: Proper implementation of Product(Name/Version).
29635 2005-05-27 Jackson Harper <jackson@ximian.com>
29637 * DataObject.cs: Dont crash if no data is found.
29639 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29640 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
29641 as per status page, guessing it should be set to true
29643 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
29645 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
29646 * DataGridTableStyle.cs: set proper formatting text, def header text
29647 * ThemeWin32Classic.cs: new themable paramaters
29648 * DataGridBoolColumn.cs: paint check box, get data, fixes
29649 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
29650 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
29651 * DataGridColumnStyle.cs: fixes
29652 * Theme.cs: new themable paramaters
29654 2005-05-26 Peter Bartok <pbartok@novell.com>
29656 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
29658 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29659 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
29661 2005-05-24 Peter Bartok <pbartok@novell.com>
29663 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
29664 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
29665 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
29666 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
29667 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
29668 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
29669 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
29670 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
29671 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
29672 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
29673 missing attributes, etc
29674 * DataGridPreferredColumnWidthTypeConverter.cs: Added
29676 2005-05-24 Peter Bartok <pbartok@novell.com>
29678 * Help.cs: Added, implemented trivial functions, throws up MessageBox
29679 when user tries to get help
29680 * DataObject.cs, DataFormats.cs, LinkArea.cs,
29681 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
29682 to suppress warnings
29683 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
29684 avoid unreachable code warning
29686 2005-05-20 Peter Bartok <pbartok@novell.com>
29688 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
29690 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29692 * DataGridTextBoxColumn.cs: Basic painting methods
29693 * DataGridTableStyle.cs: Set table style in the column
29694 * ThemeWin32Classic.cs: Use Theme for colors
29695 * DataGridDrawingLogic.cs: Implement more drawing
29696 * DataGrid.cs: drawing, theming, enhacements, fixes
29697 * DataGridColumnStyle.cs: fixes, drawing
29698 * Theme.cs: theming for Datagrid
29700 2005-05-20 Peter Bartok <pbartok@novell.com>
29702 * Cursor.cs: Implemented GetObjectData() method
29704 2005-05-20 Peter Bartok <pbartok@novell.com>
29706 * Cursors.cs: Added setting of cursor name
29708 - Implemented constructors
29709 - Implemented Draw and DrawStretched
29710 - Implemented Current property
29711 - Implemented == and != operators
29712 - Implemented Dispose()
29713 - Implemented ToString
29714 - Added missing attributes
29716 - Added missing reset for OverrideCursor when DoEvents is called
29717 - Fixed creation of cursor, logic was wrong
29719 - Added missing reset for OverrideCursor when DoEvents is called
29720 - Fixed creation of cursor, bit arrays were swapped
29721 * Clipboard.cs: Removed obsolete MonoTODO attribute
29723 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29725 * ComboBox.cs: fixes OnSelectedItemChanged
29726 * ControlBindingsCollection.cs: fixes item range check
29728 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29731 - Calc preferred height properly
29732 - Implement missing properties
29734 * NumericUpDown.cs: Implement missing events
29736 2005-05-19 Jackson Harper <jackson@ximian.com>
29738 * TabControl.cs: New method that resizes the tab pages before
29739 redrawing them. This as needed as the control is double buffered
29740 and sizing will not be recalculated unless ResizeTabPages is
29742 * TabPage.cs: Set base.Text instead of Text in the constructor so
29743 that UpdateOwner does not get called. Use the new Redraw method of
29744 TabControl instead of Refresh so the sizing is recalculated.
29745 * ThemeWin32Classic.cs: Draw the text for button tabs.
29747 2005-05-19 Jackson Harper <jackson@ximian.com>
29749 * Control.cs: Paint control background images. Fix typo where
29750 PaintControlBackground was not getting called correctly.
29752 2005-05-19 Peter Bartok <pbartok@novell.com>
29754 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
29755 I can investigate, apparently I broke FileDialog
29757 2005-05-19 Marek Safar <marek.safar@seznam.cz>
29759 * AxHost.cs: Some simple properties.
29760 * Control.cs: window must be accessible after ctor.
29761 * Form.cs: Added TransparencyKey property.
29762 * TextBoxBase.cs: Implemented Clear. Text property can be null.
29763 * XplatUIWin32.cs: SetBorderStyle implemented.
29765 2005-05-18 Peter Bartok <pbartok@novell.com>
29767 * DataObject.cs: Entries are not global but particular to the
29768 DataObject, now it behaves that way
29769 * XplatUIWin32.cs: Implemented Clipboard methods
29770 * Clipboard.cs: Implemented
29771 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
29772 * XplatUIOSX.cs: Updated to final clipboard prototypes
29773 * XplatUIX11.cs: Implemented Clipboard methods
29774 * XplatUIDriver.cs: Updated to final clipboard prototypes
29775 * XplatUIStructs.cs:
29776 - Added BITMAPINFOHEADER struct
29777 - Added ClipboardFormats enum
29779 - Added ClipboardStruct
29780 - Added Atom enum items for clipboard types
29781 - Fixed atom types for Selection event structures
29783 - Added internal properties and methods for drivers to enumerate
29785 - Switched initialization method to allow drivers to assign their
29786 own IDs even for the MS predefined clipboard IDs
29787 * XplatUI.cs: Updated to final clipboard interface
29789 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29790 * PropertyGridView.cs: Fixed compiler warnings.
29792 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29793 * PropertyGrid.cs: Added some event calls
29794 * PropertyGridView.cs: Change drawing code to use double buffering
29795 * PropertyGridTextBox.cs: Changed Text property name
29796 * GridItem.cs: Added Bounds property.
29797 * GridEntry.cs: Added Bounds property.
29799 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
29801 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
29802 since GetType() may not return the correct type if the object is
29805 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
29807 * TreeNodeCollection.cs: fixes get/set item ranges
29809 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
29811 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
29813 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
29815 * ComboBox.cs: Fix item range comparation
29816 * ListView.cs: Fix item range comparation
29818 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
29821 - Clear example panel when OnPaint is called
29822 - Better solution for displaying the example panel text
29823 - Select default indexes in the ListBoxes
29825 2005-05-11 Geoff Norton <gnorton@customerdna.com>
29827 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
29829 2005-05-11 Peter Bartok <pbartok@novell.com>
29831 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
29832 * SelectionRangeConverter.cs: Implemented
29833 * PropertyGrid.cs: Fixed attribute value
29835 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
29836 - Added Sebastien Pouliot's CAS Stack Propagation fixes
29837 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
29838 that's common to all drivers. First methods to go there are
29839 Sebastien Pouliot's CAS Stack Propagation helper methods
29840 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
29841 Sebastien Pouliot for CAS Stack Propagation
29843 2005-05-11 Geoff Norton <gnorton@customerdna.com>
29846 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
29848 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
29850 * DataGridTextBoxColumn.cs: fixed some members
29851 * GridColumnStylesCollection.cs: indexed column is case insensitive
29852 * DataGridTableStyle.cs: fixes
29853 * ThemeWin32Classic.cs: add new theme parameter
29854 * Theme.cs: add new theme parameter
29855 * DataGridDrawingLogic.cs: Datagrid's drawing logic
29856 * DataGrid.cs: fixes, new internal properties, etc.
29857 * DataGridColumnStyle.cs: allows to set grid value
29860 2005-05-10 Peter Bartok <pbartok@novell.com>
29862 * AccessibleObject.cs:
29863 - Removed MonoTODO attribute on help, method is correct
29864 - Fixed Bounds property
29865 * AxHost.cs: Moved MonoTODO
29866 * ButtonBase.cs: Now setting AccessibleObject properties
29867 * RadioButton.cs: Setting proper AccessibleObject role
29868 * CheckBox.cs: Setting proper AccessibleObject role
29869 * ControlBindingsCollection.cs: Added properties, methods and attributes
29870 * DataFormats.cs: Fixed awkward internal API, and changed to enable
29871 userdefined DataFormats.Format items as well
29872 * ListControl.cs: Removed data_member from the public eye
29873 * OpenFileDialog.cs:
29874 - Made class sealed
29875 - Added missing attributes
29876 * SaveFileDialog.cs: Added missing attributes
29877 * ImageListStreamer.cs: Fixed code that caused warnings
29878 * LinkLabel.cs: Removed unreachable code
29879 * TreeView.cs: Fixed code that caused warnings
29880 * PropertyGridView.cs: Fixed code that caused warnings
29881 * GridColumnStylesCollection.cs: Added missing attributes
29882 * GridTableStylesCollection: Added missing attribute
29883 * PropertyManager: Added .ctor
29884 * SecurityIDType: Added
29885 * DataObject.cs: Implemented class
29886 * LinkArea.cs: Added missing attribute
29888 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
29890 * RadioButton.cs: call base method to allow to fire OnClick event
29891 * UpDownBase.cs: OnMouseUp call base method
29892 * CheckedListBox.cs: call base method before returning
29893 * TrackBar.cs: call base method before returning
29896 2005-05-10 Peter Bartok <pbartok@novell.com>
29898 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
29901 2005-05-10 Peter Bartok <pbartok@novell.com>
29903 * DataFormats.cs: Implemented
29904 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
29905 XplatUIX11.cs: Added Clipboard APIs
29906 * XplatUIWin32.cs: Implemented Clipboard APIs
29907 * FolderBrowserDialog.cs: Added missing event, attributes
29909 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
29911 * CheckBox.cs: call base method to allow to fire OnClick event
29913 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
29915 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
29917 2005-05-06 Peter Bartok <pbartok@novell.com>
29919 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
29920 * Screen.cs: Implemented
29921 * HelpNavigator.cs: Added
29922 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
29924 * HelpProvider.cs: Implemented all we can do until we have a CHM
29925 help library (which means that "What's This" does work now)
29927 2005-05-06 Jackson Harper <jackson@ximian.com>
29929 * XplatUIX11.cs: Fix waking up the main loop.
29931 2005-05-05 Peter Bartok <pbartok@novell.com>
29933 * XplatUI.cs: Updated revision
29934 * Form.cs: Removed enless loop
29935 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
29936 * Label.cs (OnPaint): Added call to base.OnPaint()
29937 * ToolTip.cs: Made ToolTipWindow reusable for other controls
29938 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
29939 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
29941 * ButtonBase.cs: Moved base.OnPaint() call to end of method
29942 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
29943 to ToolTip.ToolTipWindow for drawing and size methods; this allows
29944 reuse of ToolTipWindow by other controls
29945 * SizeGrip.cs: Moved base.OnPaint() call to end of method
29946 * XplatUIX11.cs: Now clipping drawing area (experimental)
29947 * PictureBox.cs: Moved base.OnPaint() call to end of method
29948 * Theme.cs: Fixed ToolTip abstracts to match new format
29949 * ErrorProvider.cs: Implemented
29951 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
29953 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
29957 - Implements LinkBehavior
29958 - Fixes many issues
29960 2005-05-03 Jackson Harper <jackson@ximian.com>
29962 * ListView.cs: Calculate the scrollbar positioning on resize and
29963 paint, so they get put in the correct place.
29965 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
29967 * ColorDialogs.cs: The small color panels are now handled by
29968 SmallColorControl. This fixes drawing of the focus rectangle
29969 and adds a 3D border.
29971 2005-05-03 Peter Bartok <pbartok@novell.com>
29973 * Control.cs: Modified version of Jonathan Chamber's fix for
29976 2005-05-03 Jackson Harper <jackson@ximian.com>
29978 * ListView.cs: Remove redraw variable. Control now handles whether
29979 or not a redraw needs to be done, and will only raise the paint
29980 event if redrawing is needed.
29982 2005-05-03 Jackson Harper <jackson@ximian.com>
29984 * Splitter.cs: No decorations for the splitter form. Cache the
29987 2005-05-03 Jackson Harper <jackson@ximian.com>
29989 * TreeView.cs: Use dashed lines to connect nodes. Use the
29990 ControlPaint method for drawing the focus rect instead of doing
29993 2005-05-02 Peter Bartok <pbartok@novell.com>
29995 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
29997 2005-04-29 Jackson Harper <jackson@ximian.com>
29999 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
30000 entire image buffer. Just clear the clipping rectangle.
30002 2005-04-29 Jackson Harper <jackson@ximian.com>
30004 * ThemeWin32Classic.cs: Don't draw list view items that are
30005 outside the clipping rectangle.
30007 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
30009 * ListBox.cs: added horizontal item scroll
30011 2005-04-29 Jackson Harper <jackson@ximian.com>
30013 * ThemeWin32Classic.cs: Remove some old debug code that was
30014 causing flicker with the new double buffering code.
30016 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
30018 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
30019 behave like combobox and comboboxlist (still not sure if this is
30022 2005-04-28 Jackson Harper <jackson@ximian.com>
30024 * ThemeWin32Classic.cs: Don't fill the middle of progress
30025 bars. This fills areas outside of the clip bounds that don't need
30028 2005-04-28 Jackson Harper <jackson@ximian.com>
30030 * Control.cs: Don't expose functionality to touch the image buffers.
30032 * ListView.cs: We do not need to (and no longer can) manipulate
30033 the image buffers directly. All of this is handled by Control.
30035 2005-04-28 Peter Bartok <pbartok@novell.com>
30037 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30038 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
30039 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
30041 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30044 - Adjust control's height for non-simple comboboxes (bug fix)
30046 * MenuAPI.cs: remove unused var
30047 * ScrollBar.cs: remove unsed var
30049 * ListBox.cs: unselect items when clearing
30051 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30053 * ListControl.cs: honors OnPositionChanged and default Selected Item
30054 * ListBox.cs: unselect items when clearing
30056 2005-04-27 Jackson Harper <jackson@ximian.com>
30058 * X11Keyboard.cs: Initialize a default keyboard and give a warning
30059 if a "correct" keyboard is not found. This will make us not crash,
30060 but might give some users bad keyboard layouts...seems to be the
30061 same thing rewind does.
30063 2005-04-27 Jackson Harper <jackson@ximian.com>
30065 * BindingManagerBase.cs: Attach the current/position changed
30066 handlers to their respective events.
30068 2005-04-27 Jackson Harper <jackson@ximian.com>
30070 * Control.cs: Make sure that the first WM_PAINT does a full draw,
30072 * ThemeWin32Classic.cs: Don't fill the background for picture
30073 boxes. This could overright user drawing.
30074 * ComboBox.cs: Just fill the clipping rect not the entire client
30075 rect when drawing the background. This prevents pieces of the
30076 image buffer from getting overwritten and is theoretically faster.
30078 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
30080 * ComboBox.cs: Databinding support fixes, fire missing events
30081 * ListControl.cs: implement missing methods and properties, fixes
30082 * ThemeWin32Classic.cs: Databiding support on Drawing
30083 * CheckedListBox.cs: Databinding support fixes, fire missing events
30084 * ListBox.cs: Databinding support fixes, fire missing events
30086 2005-04-25 Peter Bartok <pbartok@novell.com>
30088 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
30090 2005-04-25 Jackson Harper <jackson@ximian.com>
30092 * TreeView.cs: Use the horizontal scrollbars height not width when
30093 determining how much of the client area is available.
30095 2005-04-25 Jackson Harper <jackson@ximian.com>
30097 * Control.cs: Double buffering is handled differently now. As per
30098 the spec, the extra buffer is created in the WM_PAINT message and
30099 passed down to the control's drawing code.
30107 * PropertyGridView.cs:
30119 * DateTimePicker.cs:
30121 * TreeView.cs: Update to new double buffering system.
30122 * MonthCalendar.cs: Uncomment block, as Capture is now
30123 working. Update to new double buffering
30124 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
30125 * PaintEventArgs.cs: New internal method allows us to set the
30126 graphics object. This is used for double buffering.
30127 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
30128 rectangle. The internal paint_area var has been removed from
30129 StatusBar. The clipping rect should be used instead.
30130 * Theme.cs: Give the PictureBox drawing method a clipping rect.
30131 * TabPage.cs: The RefreshTabs method was removed, so just call the
30132 tab controls Refresh method now.
30133 * TabControl.cs: Update to new double buffering. Make sure the
30134 handle is created before sizing the tab pages, otherwise we will
30135 get stuck in a loop.
30137 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
30139 * LinkLabel.cs: Fix typo, bug #74719; patch
30140 from Borja Sanchez Zamorano
30142 2005-04-22 Jackson Harper <jackson@ximian.com>
30144 * TreeNode.cs: Implement Handle stuff.
30145 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
30147 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
30149 * DataGridTextBoxColumn.cs: call base constructors, fixes
30150 * GridColumnStylesCollection.cs: missing events, methods, and functionality
30151 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
30152 * DataGridTableStyle.cs: implements create default column styles
30153 * DataGridBoolColumn.cs: which types can handle
30154 * DataGrid.cs: missing methods, fixes, new functionality
30155 * DataGridColumnStyle.cs: fixes
30157 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
30158 * FolderBrowserDialog.cs:
30159 - Use a thread to fill the TreeView
30160 - Adjusted some sizes
30162 2005-04-19 Peter Bartok <pbartok@novell.com>
30164 * LinkLabel.cs: (Re-)create the pieces when setting the Text
30165 property. Fixes #74360.
30167 2005-04-19 Jackson Harper <jackson@ximian.com>
30169 * XEventQueue.cs: Lock when getting the lockqueue size.
30170 * PictureBox.cs: Call base OnPaint
30172 2005-04-19 Peter Bartok <pbartok@novell.com>
30174 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
30175 messages were no longer being processed (this broke BeginInvoke)
30178 2005-04-18 Jackson Harper <jackson@ximian.com>
30180 * TreeView.cs: buglet that caused node images to get drawn
30181 regardless of whether or not they were in the clipping rectangle.
30183 2005-04-18 Jackson Harper <jackson@ximian.com>
30185 * CurrencyManager.cs: There are four rules for GetItemProperties:
30186 - If the type is an array use the element type of the array
30187 - If the type is a typed list, use the type
30188 - If the list contains an Item property that is not an object, use
30190 - use the first element of the list if there are any elements in
30193 2005-04-17 Jackson Harper <jackson@ximian.oom>
30195 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
30196 click. This handles offsets for scrolling properly and reduces
30197 memory. Also fixed GetNode to not offset now that TopNode works
30199 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
30201 2005-04-17 Jackson Harper <jackson@ximian.com>
30203 * CursorConverter.cs: Initial implementation.
30205 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
30207 * ListControl.cs: work towards complex data binding support on ListControl
30208 * CurrencyManager.cs: work towards complex data binding support on ListControl
30209 * ListBox.cs: work towards complex data binding support on ListControl
30212 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
30214 * GridTableStylesCollection.cs: fixes name and constructor
30215 * DataGridTableStyle.cs: fixes
30216 * DataGridBoolColumn.cs: fixes names and constructors
30217 * DataGrid.cs: define methods and properties. Some init implementations
30218 * DataGridCell.cs: define methods and properties. Some init implementations
30219 * GridTablesFactory.cs: Define methods and properties
30221 2005-04-15 Geoff Norton <gnorton@customerdna.com>
30223 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
30224 graphics port changes. We still want the coordinates in global screen
30227 2005-04-14 Jackson Harper <jackson@ximian.com>
30229 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
30230 check plus minus or checkbox clicks unless those features are enabled.
30232 2005-04-14 Jackson Harper <jackson@ximian.com>
30234 * TreeView.cs: Add methods for setting the top and bottom visible
30235 nodes. TreeNode::EnsureVisible uses these methods.
30236 * TreeNode.cs: Implement EnsureVisible
30238 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
30240 * Form.cs: Pospone menu assignation if the window has not been created yet
30241 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
30244 2005-04-12 Jackson Harper <jackson@ximian.com>
30246 * TreeView.cs: Set the TopNode properly when scrolling
30247 occurs. This has the added benifit of reducing the amount of
30248 walking that needs to be done when drawing. Also removed an old
30250 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
30252 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
30254 * Timer.cs: fixes interval setting when the timer is already enabled
30256 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
30258 * FolderBrowserDialog.cs: First approach
30260 2005-04-09 Peter Bartok <pbartok@novell.com>
30262 * FolderBrowserDialog: Added
30264 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
30266 * LinkLabel.cs: move drawing code into the theme
30267 * ThemeWin32Classic.cs: drawing code and painting background bugfix
30268 * Theme.cs: define DrawLinkLabel method
30270 2005-04-05 Jackson Harper <jackson@ximian.com>
30272 * BindingContext.cs: Use weak references so these bad actors don't
30273 stay alive longer then they need to.
30275 2005-04-05 Jackson Harper <jackson@ximian.com>
30277 * ListControl.cs: Basic implementation of complex databinding.
30279 * ListBox.cs: Add calls to ListControl databinding methods.
30281 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
30284 - Don't change PopupButtonState to Normal when the
30285 PopupButton gets pressed several times.
30286 - Renamed ButtonPanel to PopupButtonPanel
30288 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
30290 * ColorDialog.cs: Use cached objects instead of creating them
30291 * LinkLabel.cs: Use cached objects instead of creating them
30292 * Splitter.cs: Use cached objects instead of creating them
30293 * FontDialog.cs: Use cached objects instead of creating them
30294 * PropertyGridView.cs: Use cached objects instead of creating them
30295 * MessageBox.cs: Use cached objects instead of creating them
30296 * FileDialog.cs: Use cached objects instead of creating them
30297 * ThemeWin32Classic.cs: Use cached objects instead of creating them
30298 * TreeView.cs: Use cached objects instead of creating them
30300 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
30302 * Control.cs: use Equals to compare the font since no == op
30303 * ScrollBar.cs: use Equals to compare the font since no == op
30305 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
30307 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
30309 2005-04-01 Jackson Harper <jackson@ximian.com>
30311 * Binding.cs: Implement IsBinding.
30312 * BindingManagerBase.cs:
30313 * PropertyManager.cs:
30314 * CurrencyManager.cs: Add IsSuspended property.
30316 2005-04-01 Jackson Harper <jackson@ximian.com>
30318 * Binding.cs: Had some IsAssignableFrom calls backwards.
30320 2005-04-01 Jackson Harper <jackson@ximian.com>
30322 * Binding.cs: Handle null data members when pulling data.
30323 * PropertyManager.cs: Handle the data member being a property that
30326 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
30328 * DataGridTextBoxColumn.cs: fixes signature
30329 * DataGrid.cs: calls right constructor
30331 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
30333 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
30334 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
30335 * GridTableStylesCollection.cs: implements GridTableStylesCollection
30336 * DataGridTableStyle.cs: implements DataGridTableStyle
30337 * DataGridBoolColumn.cs: implements DataGridBoolColumn
30338 * DataGridTextBox.cs: implements DataGridTextBox
30339 * DataGridColumnStyle.cs: implements DataGridColumnStyle
30341 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
30343 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
30345 2005-03-29 Peter Bartok <pbartok@novell.com>
30348 - Properly implemented CompanyName property
30349 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
30350 returns a path that includes CompanyName, ProductName and
30351 Version (fixes bug #70330)
30353 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
30355 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
30358 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
30360 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
30362 - Added ReadOnly CheckBox
30363 - Further refactoring: moved some code from Open-/SaveFileDialog
30366 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
30368 * OpenFileDialog.cs: Fixed CheckFileExists
30370 Moved FileView and DirComboBox outside FileDialog class.
30371 They can now be used outside FileDialog
30373 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
30375 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
30376 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
30378 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
30380 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30381 - Added missing CreatePrompt property in SaveDialog
30382 - Overall SaveDialog handling should be better now
30383 - Added non standard ShowHiddenFiles property
30384 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
30385 - Added InitialDirectory and RestoreDirectory support
30387 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
30389 * FileDialog.cs: Made dirComboBox usable
30391 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
30393 * FileDialog.cs: Added Filter support (case sensitiv)
30395 2005-03-24 Jackson Harper <jackson@ximian.com>
30397 * TabControl.cs: Need a couple more pixels for the lines.
30399 2005-03-23 Jackson Harper <jackson@ximian.com>
30401 * TabControl.cs: Give the tab page focus when it is selected.
30403 2005-03-23 Jackson Harper <jackson@ximian.com>
30405 * TabControl.cs: Account for the drawing of tabs borders when
30406 invalidating. If the slider was clicked dont do click detection on
30409 2005-03-23 Jackson Harper <jackson@ximian.com>
30411 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
30413 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
30415 * CategoryGridEntry.cs: Added
30416 * GridItem.cs: Added helper properties
30417 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
30418 * GridEntry.cs: Updated code for collection
30419 * PropertyGrid.cs: Cleaned up some formatting
30420 * PropertyGridView.cs: Added drop down functionality for enums.
30421 * GridItemCollection.cs: Added enumerator logic
30422 * PropertyGridEntry.cs: Added
30424 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30427 - Removed unnecessary commented code
30428 - Fixed handling for entering the filename manually in the combobox
30430 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30432 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
30434 2005-03-18 Peter Bartok <pbartok@novell.com>
30436 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
30437 them being touching the border
30439 2005-03-18 Peter Bartok <pbartok@novell.com>
30441 * TextControl.cs: Quick hack to center text better
30443 2005-03-18 Peter Bartok <pbartok@novell.com>
30446 - Don't throw NotImplemented exceptions, just print a notice once
30447 instead (requested by Miguel). This makes running existing SWF
30450 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
30451 - Added context menu trigger on right click
30452 * Panel.cs: Trigger invalidate on resize
30454 - Removed old double-buffer drawing
30455 - Added ResizeRedraw style to force proper update of statusbar
30457 - Removed debug output
30458 * ThemeWin32Classic.cs:
30459 - Fixed drawing of status bar, now draws Text property if there
30460 are no defined panels
30462 2005-03-18 Jackson Harper <jackson@ximian.com>
30464 * ImageList.cs: When the image stream is set pull all the images
30466 * ImageListStreamer.cs: Implement reading image list streams.
30468 2005-03-18 Peter Bartok <pbartok@novell.com>
30470 * ThemeWin32Classic.cs (DrawPictureBox):
30471 - Fixed calculations for centered drawing
30472 - Fixed drawing for normal mode, not scaling the image on normal
30474 2005-03-18 Peter Bartok <pbartok@novell.com>
30476 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
30479 - Made Open/Save button the accept button for FileDialog
30480 - Tied the cancel button to the IButtonControl cancel button
30481 - Save/Open now properly builds the pathname
30482 - Now handles user-entered text
30483 - Preventing crash on right-click if no item is selected
30484 - Fixed Text property, now uses contents of textbox
30485 - Fixed SelectedText property, now just returns the text part that
30486 is selected in the text box
30488 2005-03-18 Jackson Harper <jackson@ximian.com>
30490 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
30491 rect, make sure to de-adjust the interior rect after drawing the
30494 2005-03-18 Peter Bartok <pbartok@novell.com>
30496 * MenuAPI.cs: Remove menu *before* executing selected action to
30497 prevent the menu from 'hanging around'
30499 2005-03-17 Geoff Norton <gnorton@customerdna.com>
30501 * XplatUIOSX.cs: Implemented WorkingArea property
30503 2005-03-17 Peter Bartok <pbartok@novell.com>
30505 * XplatUIX11.cs: Fixed menu coord calculations
30506 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
30507 for calculating offsets
30509 2005-03-17 Peter Bartok <pbartok@novell.com>
30511 * Hwnd.cs: Do not consider menu presence for default client
30512 rectangle location/size
30513 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30514 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
30515 translation functions
30516 * FileDialog.cs: Fixed (what I presume is a) typo
30518 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
30520 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
30521 X access (avoids X-Async errors)
30523 2005-03-16 Jackson Harper <jackson@ximian.com>
30525 * TabControl.cs: Raise the SelectedIndexChanged event.
30527 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
30529 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30530 - Removed vertical ToolBar and replaced it with a custom panel
30531 (desktop and home button already work)
30532 - Added Help button (some controls get resized or relocated then)
30533 - Draw correct text depending on Open or Save.
30534 - Fixed some typos...
30536 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
30539 - Only change Maximum and Minimum when need it (bug fix)
30541 2005-03-15 Peter Bartok <pbartok@novell.com>
30543 * Form.cs: Use Handle for icon, to trigger creation if
30544 the window does not yet exist
30546 - CanSelect: Slight performance improvement
30547 - Focus(): Preventing possible recursion
30548 - Invalidate(): Removed ControlStyle based clear flag setting
30549 - WM_PAINT: fixed logic for calling OnPaintBackground
30550 - WM_ERASEBKGND: Fixed logic, added call to new driver method
30551 EraseWindowBackground if the control doesn't paint background
30553 - Moved EraseWindowBackground() method to internal methods
30554 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
30555 is sent via SendMessage on BeginPaint call on Win32
30557 - Added EraseWindowBackground() method
30558 - No longer sends WM_ERASEBKGND on .Expose, but on call to
30559 PaintEventStart, which more closely matches Win32 behaviour
30560 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
30561 - Fixed SetFocus() to properly deal with client and whole windows
30562 * Hwnd.cs: Added ErasePending property
30563 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
30564 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
30566 2005-03-12 Geoff Norton <gnorton@customerdna.com>
30569 - Fix hard loop when timers exist.
30570 - Fix bugs with middle and right click for 3 button mice.
30572 2005-03-11 Peter Bartok <pbartok@novell.com>
30575 - get_WorkingArea: Need to call X directly, GetWindowPos only
30576 returns cached data now
30577 - Added sanity check to GetWindowPos hwnd usage
30579 2005-03-11 Jackson Harper <jackson@ximian.com>
30581 * BindingManagerBase.cs: This method isn't used anymore as
30582 PullData now updates the data in the control.
30584 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
30586 * Form.cs: fixes menu drawing on X11
30587 * MenuAPI.cs: fixes menu drawing on X11
30589 2005-03-11 Peter Bartok <pbartok@novell.com>
30591 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
30592 from Jonathan Gilbert; should fix bug #73606
30593 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
30594 in Screen coordinates. Thanks, Jordi.
30595 * Form.cs: Added missing attribute
30597 2005-03-11 Peter Bartok <pbartok@novell.com>
30600 - Rudimentary Mdi support
30601 - Removed outdated FormParent code
30602 - Implemented lots of missing properties and methods, still missing
30603 transparency support
30604 - Added missing attributes
30605 - Implemented support for MaximumBounds
30606 - Added firing of various events
30607 * XplatUI.cs: Added SetIcon() method
30608 * XplatUIDriver.cs: Added SetIcon() abstract
30609 * XplatUIOSX.cs: Stubbed out SetIcon() method
30611 - Implemented SetIcon() support
30612 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
30613 - Switched to unix line endings
30615 - Made POINT internal so for can access it as part of MINMAX
30616 - Implemented SetIcon() support
30617 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
30618 native Mdi support again, might have to go managed)
30619 * Control.cs: Now fires the StyleChanged event
30620 * MdiClient.cs: Added; still mostly empty
30622 2005-03-10 Peter Bartok <pbartok@novell.com>
30624 * SaveFileDialog.cs: Added emtpy file
30626 2005-03-08 Peter Bartok <pbartok@novell.com>
30628 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
30629 in turn triggers OnCreateContro) when creating a handle for the
30631 * TextControl.cs: Fixed endless loop in certain cases when
30632 replacing the current selection
30634 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
30637 - Honors NewValue changes in Scroll events allowing apps to change it
30638 - Adds First and Last Scroll events
30639 - Fixes Thumb events
30641 2005-03-07 Peter Bartok <pbartok@novell.com>
30643 * Hwnd.cs: Added DefaultClientRectangle property
30644 * XplatUI.cs: Now using the X11 driver Where() method, which provides
30645 more detailed debug information
30647 - Fixed size-change feedback loop, where we would pull an old size
30648 off the queue and mistakenly change our window's size to an
30650 - Now compressing ConfigureNotify events, to reduce looping and
30652 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
30655 2005-03-07 Jackson Harper <jackson@ximian.com>
30657 * Binding.cs: Push data pushes from data -> property. Check if the
30658 property is readonly when attempting to set it.
30660 2005-03-07 Jackson Harper <jackson@ximian.com>
30662 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
30663 instead of IsSubclassOf. Pulling data now sets the value on the
30665 * PropertyManager.cs:
30666 * CurrencyManager.cs: Just need to pull data when updating now,
30667 because PullData will set the value on the control.
30669 2005-03-04 Jackson Harper <jackson@ximian.com>
30671 * Binding.cs: Implement data type parsing and converting on pulled
30672 data. TODO: Are there more ways the data can be converted?
30674 2005-03-04 Jackson Harper <jackson@ximian.com>
30676 * Binding.cs: Support <Property>IsNull checks. Also bind to the
30677 controls Validating method so we can repull the data when the
30678 control loses focus.
30680 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
30683 - Fixes null string format
30686 - Adds enum type checks
30687 - Fixes redrawing and recalc need after changing some properties
30688 - Fixes on focus_item set after the event
30689 - Fixes adding columns after the control has been created
30691 * ThemeWin32Classic.cs:
30692 - Fixes CheckBox focus rectangle
30693 - Fixes ColumnHeader drawing
30696 2005-03-03 Jackson Harper <jackson@ximian.com>
30698 * Binding.cs: Bind to <Property>Changed events so we can detect
30699 when properties are changed and update the data.
30701 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
30704 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
30705 - Fixes ImageList constructor with ImageList container
30706 - Fixes image scaling (wrong parameters at DrawImage)
30708 2005-02-02 Jackson Harper <jackson@ximian.com>
30710 * Binding.cs: Make property searches case-insensitive. Eliminate
30711 some duplicated code.
30713 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
30716 - Handle focus event
30717 - Fix scrollbar events
30718 - Discard highlighted item if remove it
30719 - Fixes SelectedItem with strings
30721 2005-03-01 Peter Bartok <pbartok@novell.com>
30724 - Fixed Visible property, now follows (once again) parent chain
30725 to return false if any control in the chain is visible=false
30726 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
30727 - Fixed several places where is_visible instead of Visible was used
30728 - Implemented FIXME related to focus selection when setting focused
30729 control to be invisible
30731 * XplatUIWin32.cs: Now using proper method to find out if window is
30732 visible. Thanks to Jordi for pointing it out
30734 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
30736 * ComboBox.cs: show/hide scrollbar instead of creating it
30738 2005-02-27 Jackson Harper <jackson@ximian.com>
30740 * CurrencyManager.cs: Add PositionChanged stuff.
30742 2005-02-27 Peter Bartok <pbartok@novell.com>
30744 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
30745 * XplatUIOSX.cs: Added GetMenuOrigin() stub
30746 * XplatUIWin32.cs: Implemented GetMenuOrigin()
30748 - Implemented GetMenuDC()
30749 - Implemented GetMenuOrigin()
30750 - Implemented ReleaseMenuDC()
30751 - Implemented generation of WM_NCPAINT message
30752 - Implemented generation and handling of WM_NCCALCSIZE message
30753 * Form.cs: Added debug helper message for Jordi's menu work
30755 - Modified ClientRect property; added setter, fixed getter to handle
30756 setting of ClientRect
30757 - Added MenuOrigin property
30759 2005-02-26 Peter Bartok <pbartok@novell.com>
30762 - Destroys the caret if a window that's being destroyed contains it
30763 - Ignores expose events coming from the X11 queue for windows that
30764 already are destroyed
30765 - Now uses the proper variable for handling DestroyNotify, before we
30766 marked the wrong window as destroyed
30767 - Improved/added some debug output
30769 2005-02-26 Peter Bartok <pbartok@novell.com>
30771 * X11Keyboard.cs: Fixes to work on 64bit systems
30773 2005-02-26 Peter Bartok <pbartok@novell.com>
30776 - Now calling OnHandleDestroyed from DestroyHandle()
30777 instead of Dispose()
30778 - Removed bogus call to controls.Remove() from DestroyHandle()
30780 2005-02-26 Peter Bartok <pbartok@novell.com>
30782 * Control.cs: Properly destroy child windows when our handle is
30785 2005-02-25 Peter Bartok <pbartok@novell.com>
30788 - Added 'DriverDebug' define to allow tracing XplatUI API calls
30789 - Alphabetized Static Methods and Subclasses
30792 - Added XException class to allow custom handling of X11 exceptions
30793 - Created custom X11 error handler, tied into XException class
30794 - Added support for MONO_XEXCEPTIONS env var to allow the user
30795 to either throw an exception on X errors or continue running
30796 after displaying the error
30797 - Added handling of DestroyNotify message
30798 - Added handler for CreateNotify message (still disabled)
30799 - Improved (tried to at least) Where method to provide file and lineno
30801 - Added XErrorHandler delegate
30802 - Added XRequest enumeration (to suppor translation of errors)
30804 2005-02-25 Jackson Harper <jackson@ximian.com>
30806 * PropertyManager.cs: Implement editing features
30807 * CurrencyManager.cs:
30808 * Binding.cs: First attempt at UpdateIsBinding
30809 * BindingManagerBase.cs: Call UpdateIsBinding before
30810 pushing/pulling data.
30812 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
30814 * MenuAPI.cs: Respect disabled items
30815 * ThemeWin32Classic.cs
30816 - Caches ImageAttributes creation for DrawImageDisabled
30817 - Fixes vertical menu line drawing
30818 - Draws disabled arrows in disable menu items
30820 2005-02-24 Peter Bartok <pbartok@novell.com>
30823 - Added UserData property to allow associating arbitrary objects
30825 - Fixed leak; now removing Hwnd references from static windows array
30827 - Fixed Graphics leak in PaintEventEnd
30828 - Removed usage of HandleData, switched over to Hwnd class
30829 * HandleData.cs: Removed, obsoleted by Hwnd.cs
30831 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
30833 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
30834 * ScrollBar.cs: Fixes bug
30835 * TrackBar.cs: removes death code, clipping, mimize refreshes,
30836 keyboard navigation enhancements
30838 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
30840 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
30841 * GroupBox.cs: Add control styles
30842 * Label.cs: Add control styles
30843 * UpDownBase.cs: Add control styles
30844 * ListBox.cs: Add control styles
30845 * XplatUIWin32.cs: Fixes wrong parameter order
30848 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
30850 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
30852 2005-02-23 Jackson Harper <jackson@ximian.com>
30854 * PropertyManager.cs: Implement property binding. This doesn't
30855 seem to work yet though as (I think) there are some bugs in
30856 System.ComponentModel.PropertyDescriptor.
30857 * BindingContext.cs: Use new PropertyManager constructor.
30859 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
30861 * ProgressBar.cs: use clip region in ProgressBar
30862 * ThemeWin32Classic.cs: use clip region in ProgressBar
30864 2004-02-22 Jackson Harper <jackson@ximian.com>
30866 * BindingsCollection.cs: Remove some debug code.
30868 2005-02-22 Jackson Harper <jackson@ximian.com>
30870 * BindingContext.cs:
30871 * ControlBindingsCollection.cs:
30872 * CurrencyManager.cs:
30874 * BindingManagerBase.cs: Initial implementation
30875 * BindingsCollection.cs: Add an internal contains method that the
30876 BindingManagerBase uses to ensure bindings aren't added twice to
30878 * PropertyManager.cs: Stubbed out.
30880 * ContainerControl.cs: Hook up databinding
30882 2005-02-22 Geoff Norton <gnorton@customerdna.com>
30885 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
30886 Fixed Invalidate/Update chain.
30887 Fixed tons of other minor bugs (this is almost a complete rewrite).
30889 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
30891 * ComboBox.cs: do subcontrol creation when the control is created
30893 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30895 * Label.cs: fixes image drawing (image and imagelist)
30896 * ThemeWin32Classic.cs: cache brushes
30898 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30900 * Form.cs: Move menu drawing code to Theme class
30901 * ComboBox.cs: Move ComboBox drawing code to Theme class
30902 * MenuItem.cs: Move menu drawing code to Theme class
30903 * MenuAPI.cs: Move menu drawing code to Theme class
30904 * ThemeWin32Classic.cs: New methods
30905 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
30906 * ListBox.cs: Move Listbox drawing code to Theme class
30907 * Theme.cs: New methods
30909 2005-02-20 Peter Bartok <pbartok@novell.com>
30912 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
30913 only process mnemonics on those)
30914 - Fixed event sequence for key handling; first calling
30915 ProcessKeyEventArgs now
30917 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
30918 for processing non-character keys
30919 - Fixed WM_CHAR to generate proper event sequence before processing
30920 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
30923 2005-02-19 Peter Bartok <pbartok@novell.com>
30925 * UserControl.cs: Added TextChanged event; added attributes
30926 * SizeGrip.cs: Implemented resizing and optional display of grip
30927 * Form.cs: Fixed attribute
30928 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30929 Changed meaning of ScrollWindow bool argument; instead of the
30930 clear attribute (which will be true usually anyway), it gives the
30931 option of moving child controls as well.
30933 - Changed to match new ScrollWindow argument
30934 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
30935 now handles the implicit parent window a WM puts around us
30936 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
30938 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
30939 * TreeView.cs: Adjusted to new ScrollWindow arguments
30941 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30943 * Form.cs: Menu integration with non-client area
30944 * MenuItem.cs: Menu integration with non-client area
30945 * MenuAPI.cs: Menu integration with non-client area
30947 2005-02-18 Peter Bartok <pbartok@novell.com>
30949 * MethodInvoker.cs: Added
30950 * MdiLayout.cs: Added
30951 * SendKeys.cs: Started implementation
30952 * ErrorIconAlignment.cs: Added
30954 2005-02-18 Peter Bartok <pbartok@novell.com>
30956 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
30957 * Form.cs: Added handling for Menu-related Non-client messages
30959 2005-02-17 Peter Bartok <pbartok@novell.com>
30961 * UpDownBase.cs: Fixed typo, compilation errors
30962 * DomainUpDown.cs: Fixed attribute value
30964 2005-02-16 Miguel de Icaza <miguel@novell.com>
30966 * UpDownBase.cs: Attach entry events.
30968 Add ForeColor property, Focused, InterceptArrowKeys (interception
30969 does not work yet).
30971 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
30974 - Redraw non client are on Setmenu
30975 - Calc proper menu starting point
30977 2005-02-17 Peter Bartok <pbartok@novell.com>
30979 * Application.cs: Fixed message_filter check
30981 2005-02-17 Peter Bartok <pbartok@novell.com>
30983 * Application.cs: Now calls registered message filters
30984 * DockStyle.cs: Fixed attribute
30985 * Form.cs: Fixed attribute
30986 * Menu.cs: Fixed attribute
30987 * ToolTip.cs: Fixed attribute
30988 * TreeNode.cs: Added missing attributes and arranged in regions
30989 * PropertyGrid.cs: Fixed signatures
30990 * TreeNodeCollection.cs: Added attributes
30991 * Splitter.cs: Added missing attributes; arranged into regions
30992 * TabPage.cs: Added missing attributes; arranged into regions
30993 * TextBoxBase.cs: Added missing attributes
30994 * TextBox.cs: Added missing attributes
30995 * ArrangeDirection.cs: Added missing attributes
30996 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
30997 * ToolBarButton.cs: Fixed attributes
30998 * AnchorStyles.cs: Fixed attribute
30999 * TrackBar.cs: Fixed attributes
31000 * TabControl.cs: Added missing attributes and arranged into regions
31001 * ToolBar.cs: Fixed attribute
31002 * StatusBar.cs: Fixed signature, organized into regions and added
31004 * StatusBarPanel.cs: Fixed attributes
31005 * ContentsResizedEventArgs.cs: Implemented
31006 * ContentsResizedEventHandler.cs: Implemented
31007 * DateBoldEventArgs.cs: Implemented
31008 * DateBoldEventHandler.cs: Implemented
31009 * UpDownEventArgs.cs: Implemented
31010 * UpDownEventHandler.cs: Implemented
31012 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
31014 * Form.cs: first Menu NC refactoring
31015 * MenuAPI.cs: first Menu NC refactoring
31017 2005-02-16 Peter Bartok <pbartok@novell.com>
31019 * ImeMode.cs: Added missing attributes
31020 * Menu.cs: Fixed attribute
31021 * GroupBox.cs: Fixed attribute
31022 * Label.cs: Fixed attribute
31023 * ColorDialog.cs (RunDialog): Removed TODO attribute
31024 * ComboBox.cs: Fixed attributes
31025 * ListControl.cs: Added missing attributes
31026 * PropertyGrid.cs: Fixed attributes
31027 * Control.cs: Fixed attributes
31028 * ListViewItem.cs: Added TypeConverter attribute
31029 * NotifyIcon.cs: Fixed attributes
31030 * ListView.cs: Fixed attributes
31031 * ButtonBase.cs: Fixed attribute
31032 * ImageList.cs: Added missing attributes
31033 * ContainerControl.cs: Fixed signature
31034 * CheckedListBox.cs: Fixed attribute; added missing attributes
31035 * Panel.cs: Fixed attributes
31036 * PropertyTabChangedEventArgs.cs: Added missing attribute
31037 * PropertyValueChangedEventArgs.cs: Added missing attribute
31038 * Binding.cs: Fixed attribute
31039 * ListViewItemConverter: Implemented ListViewSubItemConverter class
31040 * ListBox.cs: Fixed attribute; added missing attributes;
31041 * ScrollableControl.cs: Added missing attributes
31042 * PictureBox.cs: Added missing attributes; implemented missing property
31043 * DateTimePicker.cs: Added missing attributes
31044 * Theme.cs (ToolWindowCaptionHeight): Fixed type
31045 * MonthCalendar.cs: Fixed attributes
31046 * StatusBarPanel.cs: Added missing attributes
31047 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
31049 2005-02-16 Peter Bartok <pbartok@novell.com>
31051 * TextBoxBase.cs: The previous method to enforce height yet remember
31052 the requested high was less than ideal, this is an attempt to do
31054 * Control.cs: Added comment about possible problem
31055 * Copyright: Updated format
31056 * GridItemType.cs: Fixed swapped values
31058 2005-02-15 Jackson Harper <jackson@ximian.com>
31060 * BaseCollection.cs: Use property so we never access an
31061 uninitialized list. Also initialize the list in the property.
31063 2005-02-15 Peter Bartok <pbartok@novell.com>
31065 * GroupBox.cs (ProcessMnemonic): Implemented
31066 * Label.cs (ProcessMnemonic): Implemented
31067 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
31070 2005-02-15 Peter Bartok <pbartok@novell.com>
31072 * RadioButton.cs (ProcessMnemonic): Implemented
31073 * CheckBox.cs (ProcessMnemonic): Implemented
31075 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
31077 - Added internal method to allow calling ProcessMnemonic from other
31079 * ContainerControl.cs:
31080 - Started support for handling validation chain handling
31081 - Implemented ProcessMnemonic support
31082 - Added Select() call to Active, to make sure the active control
31084 * Form.cs: Setting toplevel flag for Forms (this was lost in the
31085 FormParent rewrite)
31086 * ThemeWin32Classic.cs:
31087 - DrawCheckBox(): Fixed stringformat to show hotkeys
31088 - DrawRadioButton(): Fixed stringformat to show hotkeys
31089 * CommonDialog.cs: Removed WndProc override, not needed
31091 2005-02-14 Peter Bartok <pbartok@novell.com>
31093 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
31094 missed those in the rewrite
31096 2005-02-14 Miguel de Icaza <miguel@novell.com>
31098 * NumericUpDown.cs (Increment, ToString): Add.
31099 (DecimalPlaces): implement.
31103 * UpDownBase.cs: Add the designer attributes.
31105 2005-02-13 Peter Bartok <pbartok@novell.com>
31107 * Panel.cs: Removed border_style, now in Control
31108 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
31109 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
31111 2005-02-13 Peter Bartok <pbartok@novell.com>
31113 * MouseButtons.cs: Added missing attributes
31114 * XplatUIStructs.cs: Added enumeration for title styles
31115 * LeftRightAlignment.cs: Added missing attributes
31116 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
31117 it compatible with Graphics.FromHwnd()
31118 * SelectedGridItemChangedEventArgs.cs: Fixed property type
31119 * Keys.cs: Added missing attributes
31120 * SelectionRange.cs: Added missing attributes
31121 * SelectionRangeConverter.cs: Added
31123 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
31124 ReleaseMenuDC methods
31125 - Renamed ReleaseWindow to UngrabWindow
31126 - Added proper startup notice to allow version identification
31128 - Added missing attributes
31129 - Removed FormParent concept
31130 * Label.cs: Removed border_style field, now in Control
31131 * RadioButton.cs: Now properly selects RadioButton when focus is
31133 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
31135 - Added missing attributes
31136 - Added borderstyle handling
31137 - Removed FormParent concept support
31138 - Fixed calls to XplatUI to match changed APIs
31139 - Fixed bug that would case us to use disposed Graphics objects
31140 - Removed unneeded internal methods
31141 - PerformLayout(): Fixed to handle DockStyle.Fill properly
31142 - SelectNextControl(): Fixed to properly check common parents
31143 * TextBoxBase.cs: Removed border_style field (now in Control)
31145 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
31146 fixed calculations for form size
31147 - Added support for localized strings and icons
31148 - Improved form size calculations, added border
31149 * ListView.cs: Removed border_style field (now in Control)
31150 * X11Structs.cs: Moved several structs from X11 driver here
31151 * X11Keyboard.cs: Changed debug message
31152 * Application.cs: Removed FormParent concept support
31154 - Resetting end_modal flag
31155 - Removed FormParent concept support
31156 * NativeWindow.cs: Removed FormParent concept support
31157 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
31158 Client area and Non-Client whole window to allow support for WM_NC
31160 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
31161 prevent using it until it supports Hwnd as per Geoff Norton's request
31162 * ToolBar.cs: Fixed drawing, was not doing proper drawing
31163 * PictureBox.cs: Removed border_style field, now in Control
31164 * XplatUIWin32.cs: Added new driver methods
31166 2005-02-12 Peter Bartok <pbartok@novell.com>
31168 * OpacityConverter.cs: Implemented
31169 * Hwnd.cs: Internal class to support drivers that need to emulate
31170 client area/non-client area window behaviour
31172 2005-02-11 Peter Bartok <pbartok@novell.com>
31174 * KeysConverter.cs: Implemented
31176 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
31178 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
31179 * LinkLabel: Added missing attributes
31180 * MainMenu.cs: fixes ToString
31181 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
31182 * ListBox.cs: fixes event position
31183 * TrackBar.cs: adds missing attributes and events
31185 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
31187 * MenuItem.cs: Use SystemInformation and bug fixes
31188 * MenuAPI.cs: Use SystemInformation and bug fixes
31190 2005-02-09 Jackson Harper <jackson@ximian.com>
31192 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
31193 their keystate otherwise things like VK_MENU get stuck "on".
31195 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
31197 * ListBox.cs: Fixes AddRange bug
31199 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
31202 - Add missing attributes
31203 - Add missing method
31205 * CheckedListBox.cs: Added missing attributes
31206 - Add missing attributes
31207 - Remove extra method
31209 * ComboBox.cs: Added missing attributes
31210 * VScrollBar.cs: Added missing attributes
31211 * ScrollBar.cs: Added missing attributes
31212 * ListBox.cs: Fixes signature, add missing consts
31213 * LinkArea.cs: Added missing attributes
31216 2005-02-08 Peter Bartok <pbartok@novell.com>
31218 * Menu.cs: Added missing attributes
31219 * MainMenu.cs: Added missing attributes
31220 * GroupBox.cs: Added missing attributes
31221 * Label.cs: Added missing attributes
31222 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
31224 - Added Instance and Options properties
31225 - Added missing attributes
31226 * Cursor.cs: Made Serializable
31227 * NotifyIcon: Added missing attributes
31228 * MenuItem.cs: Added missing attributes
31229 * TextBoxBase.cs: Implemented AppendText() and Select() methods
31230 * Panel.cs: Added Missing attributes
31231 * MonthCalendar.cs: Fixed CreateParams
31233 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
31237 - Fixes issues with links
31238 - Adds the class attributes
31240 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
31243 - Fixes button when no items available in dropdown
31244 - Fixes repainting problems
31245 - Adds the class attributes
31247 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31249 * XplatUIOSX.cs: Detect the menu bar and title bar height from
31250 the current theme. Cache these on startup.
31252 2005-02-07 Jackson Harper <jackson@ximian.com>
31254 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
31255 the scrollbar buttons when they are depressed.
31257 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31259 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
31260 Get the display size from the main displayid. We currently dont
31261 support multiple display configurations.
31263 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31265 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
31267 2005-02-07 Miguel de Icaza <miguel@novell.com>
31269 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
31271 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
31273 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
31275 2005-02-04 Jackson Harper <jackson@ximian.com>
31277 * ThemeWin32Classic.cs: Respect the clipping rect when
31278 drawing. Only fill the intersection of clips and rects so there
31279 isn't a lot of large fills.
31280 * ScrollBar.cs: Pass the correct clipping rect to the theme
31281 engine. Remove some debug code.
31283 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
31285 * DateTimePicker.cs:
31286 - Fixed crash on DateTime.Parse, use Constructor instead
31288 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
31292 - Owner draw support (MeasureItem and DrawItem)
31294 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
31297 - Implements FindMergePosition and MergeMenu functions (very poor documented)
31298 - Fixes MenuItems.Add range
31300 - MergeMenu and Clone and CloneMenu functions
31302 2005-02-03 Jackson Harper <jackson@ximian.com>
31304 * ScrollBar.cs: Make abstract
31305 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
31308 2005-02-03 Jackson Harper <jackson@ximian.com>
31310 * ScrollBar.cs: First part of my scrollbar fixups. This removes
31311 all the unneeded refreshes and uses invalidates with properly
31314 2005-02-03 Peter Bartok <pbartok@novell.com>
31316 * ComponentModel.cs: Added
31317 * IDataGridEditingService.cs: Added
31318 * Timer.cs: Added missing attributes
31319 * ToolTip.cs: Added missing attributes
31321 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
31323 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
31325 2005-02-03 Peter Bartok <pbartok@novell.com>
31327 * ListBox.cs: Added missing attributes
31329 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
31332 - Fixes font height after font change
31333 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
31335 2005-02-02 Peter Bartok <pbartok@novell.com>
31337 * HandleData.cs: Introduced static methods to allow class
31338 to be more self-contained and track it's own HandleData objects
31339 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
31340 HandleData to use new static methods
31342 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
31345 - Fixes default size and PreferredHeight
31347 - ObjectCollection.Insert implementation
31353 - ObjectCollection.Insert implementation
31354 - No selection after clean
31357 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31359 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
31361 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
31364 - Caches ItemHeight calculation for OwnerDrawVariable
31365 - Handles dropdown properly
31366 - Fixes several minor bugs
31368 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
31371 - Fixes 71946 and 71950
31372 - Fixes changing Multicolumn on the fly
31373 - Fixes keyboard navigation on Multicolumn listboxes
31375 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31377 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
31378 crash reporter log.
31380 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31382 * XplatUIOSX.cs: Allow applications to actually exit.
31384 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31386 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
31387 their parent at creation time rather than lazily later. Fixes a major
31388 regression we were experiencing.
31390 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31392 * ThemeWin32Classic.cs: more date time picker painting fixes
31393 * DateTimePicker.cs: more monthcalendar drop down fixes
31394 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
31396 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
31399 - When moving the thumb going outside the control should stop the moving
31400 - Adds the firing of missing events
31401 - Fixes no button show if Size is not specified
31402 - End / Home keys for keyboard navigation
31404 2005-01-30 Peter Bartok <pbartok@novell.com>
31406 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
31407 sanity check to prevent theoretical loop
31408 * XplatUIWin32.cs (SetVisible): Removed debug output
31409 * XplatUIX11.cs (SystrayChange): Added sanity check
31410 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
31411 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
31412 behaviour, valid until the X11 client window rewrite is done
31413 * TextBox.cs (ctor): Setting proper default foreground and background
31416 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
31418 * Theme: Added DrawDateTimePicker to interface
31419 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
31420 * DateTimePicker.cs: Created (still needs keys and painting code)
31421 * DateTimePickerFormat.cs: added
31422 * MonthCalendar.cs: fixed CreateParams for popup window mode
31424 2005-01-29 Peter Bartok <pbartok@novell.com>
31426 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
31427 this should also the calculations for ligher/darker
31428 * Theme.cs: Fixed defaults for ScrollBar widths/heights
31430 2005-01-29 Peter Bartok <pbartok@novell.com>
31432 * ArrangeDirection.cs: Added
31433 * ArrangeStartingPositon.cs: Added
31434 * SystemInformation.cs: Implemented
31435 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31436 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
31437 used by SystemInformation class
31438 * X11Strucs.cs: Added XSizeHints structure
31440 - Fixed CreateParams to make sure the menu window is always visible
31441 - TrackPopupMenu: Added check to make sure we don't draw the
31444 2005-01-29 Peter Bartok <pbartok@novell.com>
31446 * HandleData.cs: Added method for altering invalid area
31447 * TextBoxBase.cs: Implemented TextLength
31449 2005-01-28 Peter Bartok <pbartok@novell.com>
31451 * XplatUIX11.cs: Improvement over last patch, not sending
31452 the WM_PAINT directly anymore, instead we scroll any pending
31453 exposed areas and let the system pick out the WM_PAINT later
31455 2005-01-28 Peter Bartok <pbartok@novell.com>
31457 * SWF.csproj: Deleted, no longer used. Instead,
31458 Managed.Windows.Forms/SWF.csproj should be used
31459 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
31460 directly, to avoid a potential race condition with the next
31463 2005-01-28 Peter Bartok <pbartok@novell.com>
31465 * XplatUI.cs: Made class internal
31467 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
31469 * CheckedListBox.cs:
31472 - Missing methods and events
31474 2005-01-27 Peter Bartok <pbartok@novell.com>
31476 * Application.cs (Run): Don't use form if we don't have one
31478 2005-01-27 Peter Bartok <pbartok@novell.com>
31480 * TextBoxBase.cs (get_Lines): Fixed index off by one error
31482 2005-01-27 Peter Bartok <pbartok@novell.com>
31484 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
31485 * GridItem.cs: Added; Patch by Jonathan S. Chambers
31486 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
31487 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
31488 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
31489 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
31490 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31491 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31492 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31493 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31494 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31495 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31497 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31500 - Draw focus on Simple Combobox
31501 - Fixes drawing issues
31504 2005-01-27 Peter Bartok <pbartok@novell.com>
31507 - Place window in default location, instead of hardcoded 0/0
31508 - Send initial LocationChanged event
31510 - UpdateBounds after creation to find out where the WM placed us
31511 - Make sure that if the ParentForm changes location the Form
31513 * XplatUIX11.cs: XGetGeometry will not return the coords relative
31514 to the root, but to whatever the WM placed around us.
31515 Translate to root coordinates before returning toplevel
31517 * XplatUIWin32.cs: Removed debug output
31518 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
31519 flag to GetWindowPos, to allow translation of coordinates on X11
31521 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31523 * ListBox.cs: connect LostFocus Event
31525 2005-01-27 Peter Bartok <pbartok@novell.com>
31527 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31528 XplatUIX11.cs: Extended the Systray API
31529 * Form.cs: Removed debug output
31530 * Application.cs: Fixed focus assignment, always need to call
31531 XplatUI.Activate() since Form.Activate() has rules that may
31533 * NotifyIcon.cs: Should be complete now
31534 * ToolTip.cs: Worked around possible timer bug
31536 2005-01-27 Jackson Harper <jackson@ximian.com>
31539 - Only invalidate the effected tabs when the
31540 selected index changes. This reduces drawing and gets rid of some
31542 - Only refresh if the tabs need to be shifted, otherwise only
31543 invalidate the slider button.
31544 - On windows the tabs are not filled to right if the slider is
31547 2005-01-27 Jackson Harper <jackson@ximian.com>
31549 * TabControl.cs: Only refresh on mouseup if we are showing the
31550 slider. Also only invalidate the button whose state has changed.
31552 2005-01-26 Peter Bartok <pbartok@novell.com>
31554 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
31555 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
31556 and SystrayRemove() methods
31557 * XplatUIOSX.cs: Stubbed Systray methods
31559 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
31561 - Fixed broken XChangeProperty calls (marshalling messed up things)
31562 * X11Structs.cs: Added enums and structs required for Size hinting
31563 * NotifyIcon.cs: Added & implemented
31565 2005-01-26 Jackson Harper <jackson@ximian.com>
31567 * TabControl.cs: Space vertically layed out tabs properly.
31569 2005-01-26 Peter Bartok <pbartok@novell.com>
31571 * Form.cs (CreateClientParams): Always set the location to 0,0
31572 since we're a child window.
31574 * Control.cs (SetVisibleCore): Always explicitly setting the location
31575 of a toplevel window, apparently X11 doesn't like to move windows
31576 while they're not mapped.
31578 2005-01-26 Jackson Harper <jackson@ximian.com>
31580 * TabControl.cs: Implement FillToRight size mode with vertically
31583 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31585 * ControlPaint.cs, ThemeWin32Classic.cs
31586 - Fixes DrawFocusRectangle
31588 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31591 - MenuBar tracking only starts when item is first clicked
31592 - Fixes menu hidding for multiple subitems
31593 - Unselect item in MenuBar when item Executed
31596 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
31599 - IsInputKey for ListBox
31602 - Shift and Control item selection
31603 - Implement SelectionMode.MultiExtended
31604 - Fixes RightToLeft
31606 - IsInputKey implemented
31607 - Do not generate OnTextChangedEdit on internal txt changes
31609 2005-01-23 Peter Bartok <pbartok@novell.com>
31611 * AccessibleObject.cs: Partially implemented Select()
31612 * MonthCalendar.cs: Added missing attributes and events
31613 * Form.cs: Fixed CreateParams behaviour, now controls derived from
31614 form can properly override CreateParams.
31615 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31616 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
31617 Control performs Invalidate & Update
31618 * NativeWindow (CreateHandle): Added special handling for Form
31619 and Form.FormParent classes to allow overriding of From.CreateParams
31621 - ControlNativeWindow: Renamed 'control' variable to more intuitive
31623 - ControlNativeWindow: Added Owner property
31624 - Removed usage of Refresh() on property changes, changed into
31625 Invalidate(), we need to wait until the queue is processed for
31626 updates, direct calls might cause problems if not all vars for
31627 Paint are initialized
31628 - Added call to UpdateStyles() when creating the window, to set any
31629 styles that CreateWindow might have ignored.
31630 - Added support for Form CreateParent overrides to UpdateStyles()
31631 * MessageBox.cs: Removed no longer needed FormParent override stuff,
31632 CreateParams are now properly overridable
31633 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
31634 CreateParams are now properly overridable
31636 2005-01-23 Miguel de Icaza <miguel@ximian.com>
31638 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
31641 Capture LostFocus and OnTextBoxChanged. The later introduces a
31642 recursive invocation that I have not figured out yet.
31644 Reset the timer when not using (it was accumulating).
31647 (OnTextBoxChanged): Set UserEdit to true here to track whether the
31648 user has made changes that require validation.
31650 Reset changing to avoid loops.
31652 2005-01-22 Miguel de Icaza <miguel@ximian.com>
31654 * NumericUpDown.cs: Display value at startup.
31656 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
31659 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
31660 filled in. Added some basic parsing of text.
31662 Still missing the OnXXX method overrides, and figuring out the
31663 events that must be emitted.
31665 * UpDownBase.cs: Handle UserEdit on the Text property.
31667 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
31670 - Fixes IntegralHeight
31673 2005-01-21 Jackson Harper <jackson@ximian.com>
31675 * TabControl.cs: Set the SelectedIndex property when SelectedTab
31676 is set so that the page visibility is updated and the tabs are
31679 2005-01-21 Jackson Harper <jackson@ximian.com>
31681 * TabControl.cs: Use cliping rectangle for blitting. Give the
31682 theme the clipping rect so we can do clipping while
31683 drawing. Remove some debug code.
31685 2005-01-21 Jackson Harper <jackson@ximian.com>
31687 * TabPage.cs: Add a new method so tab pages can force the tab
31688 control to recalculate the tab page sizes.
31689 * TabControl.cs: UpdateOwner needs to make the tab control recalc
31692 2005-01-20 Jackson Harper <jackson@ximian.com>
31694 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
31696 2005-01-20 Jackson Harper <jackson@ximian.com>
31698 * TreeView.cs: Set the bounds for nodes properly. They were
31699 getting screwed up when checkboxes were not enabled, but images
31702 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
31705 - Owner draw support
31708 2005-01-20 Jackson Harper <jackson@ximian.com>
31710 * XplatUIStructs.cs: More misc keys
31711 * X11Keyboard.cs: Ignore some control keys.
31713 2005-01-20 Jackson Harper <jackson@ximian.com>
31715 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
31716 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
31718 2005-01-19 Peter Bartok <pbartok@novell.com>
31720 * Control.cs: Un-selecting the control when it is loosing focus
31722 2005-01-19 Jackson Harper <jackson@ximian.com>
31724 * TreeView.cs: Hook up to the text controls leave event so we can
31725 end editing when the users clicks outside the text box.
31727 2005-01-19 Jackson Harper <jackson@ximian.com>
31729 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
31730 get set in the conversion array.
31732 2005-01-19 Peter Bartok <pbartok@novell.com>
31734 * Application.cs (ModalRun): Added a call to CreateControl to ensure
31735 focus is properly set
31737 - Added missing attributes
31738 - removed styles, those are already set in the base class
31740 - Added missing attributes
31741 - Added clip window styles
31742 * CheckBox.cs: Added missing attributes
31744 - FormParentWindow.CreateParams: Added required clip styles
31745 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
31746 also filters modifier keys
31748 - Added assignment of Accept and Cancel button to enable Enter
31749 and Esc keys in MessageBox dialogs
31750 - FormParentWindow.CreateParams: Added required clip styles
31751 * RadioButton.cs: Added missing attributes
31752 * TextControl.cs: No longer draws selection if control does not
31755 - Now draws simple rectangle around test area to make it obvious
31756 there's a control. This is a hack until we properly support borders
31757 - A few simple fixes to support selections better, now erases selected
31758 text when typing, and resets selection when using movement keys
31760 2005-01-19 Miguel de Icaza <miguel@ximian.com>
31762 * UpDownBase.cs: Added some new properties.
31764 * DomainUpDown.cs: Implement a lot to get my test working.
31766 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31768 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
31770 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31772 * OSXStructs (WindowAttributes): Fixed csc complaints
31774 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31777 OSXStructs.cs: Initial refactor to move enums and consts into
31778 OSXStructs and use them in the driver for greater readability.
31780 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31782 * XplatUIOSX.cs: Initial support for Standard Cursors.
31783 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
31785 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
31787 * ComboBox.cs: ability to change style when the ctrl is already
31788 created, missing methods and events, bug fixes, signature fixes
31790 2005-01-19 Peter Bartok <pbartok@novell.com>
31792 * Cursors.cs (ctor): Added ctor to fix signature
31794 2005-01-18 Peter Bartok <pbartok@novell.com>
31796 * Button.cs: Implemented DoubleClick event
31798 - Fixed keyboard handling to behave like MS, where the press of
31799 Spacebar is equivalent to a mousedown, and the key release is
31800 equivalent to mouseup. Now a spacebar push will give the same
31801 visual feedback like a mouse click.
31802 - Added missing attributes
31803 - Added ImeModeChanged event
31804 - Added support for generating DoubleClick event for derived classes
31806 - Implemented DoubleClick event
31807 - Added missing attributes
31808 * CommonDialog.cs: Added missing attribute
31809 * ContextMenu.cs: Added missing attributes
31811 - AutoChecked buttons do not allow to be unselected when clicked
31812 (otherwise we might end up with no selected buttons in a group)
31813 - Added missing attributes
31814 - Implemented DoubleClickEvent
31815 * ThreadExceptionDialog.cs: Enabled TextBox code
31817 2005-01-18 Peter Bartok <pbartok@novell.com>
31819 * Form.cs: Removed debug output
31820 * Button.cs: Added support for DoubleClick method
31822 2005-01-18 Peter Bartok <pbartok@novell.com>
31825 - Added method to parent window that allows triggering size
31826 calculations when a menu is added/removed
31827 - set_Menu: Cleaned up mess from early days of Form and Control,
31828 now properly triggers a recalc when a menu is added/removed
31829 - Added case to select form itself as focused form if no child
31831 - Added PerformLayout call when showing dialog, to ensure properly
31834 - Select(): Made internal so Form can access it
31835 - Focus(): Only call Xplat layer if required (avoids loop), and sets
31837 * Application.cs (Run): Removed hack and calls PerformLayout instead
31838 to trigger calculation when Form becomes visible
31840 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
31842 * ComboBox.cs: fixes for ownerdraw
31844 2005-01-18 Peter Bartok <pbartok@novell.com>
31847 - Sentinel is no longer static, each Document gets it's own, this
31848 avoids locking or alternatively overwrite problems when more
31849 than one text control is used simultaneously.
31850 - Switched to use Hilight and HilightText brushes for text selection
31852 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
31854 2005-01-18 Peter Bartok <pbartok@novell.com>
31857 - Hooked up the following events:
31865 o SystemColorsChanged
31866 o ParentFontChanged
31868 - Removed debug output
31869 - Added a call to the current theme's ResetDefaults when a color change
31871 * Form.cs: Now setting the proper ImeMode
31872 * Theme.cs: Defined a method to force recreation of cached resources
31873 and rereading of system defaults (ResetDefaults())
31874 * ThemeWin32Classic.cs: Added ResetDefaults() stub
31876 2005-01-17 Peter Bartok <pbartok@novell.com>
31878 * Control.cs: Added missing attributes
31880 2005-01-17 Jackson Harper <jackson@ximian.com>
31882 * TreeNode.cs: Implement editing. Add missing properties selected
31884 * TreeView.cs: Implement node editing. Also some fixes to use
31885 Invalidate (invalid area) instead of Refresh when selecting.
31887 2005-01-17 Peter Bartok <pbartok@novell.com>
31890 - Implemented InvokeGotFocus() method
31891 - Implemented InvokeLostFocus() method
31892 - Implemented InvokePaint() method
31893 - Implemented InvokePaintBackground() method
31894 - Implemented InvokeClick() method
31895 - Implemented FindForm() method
31896 - Implemented RectangleToClient() method
31897 - Implemented ClientToRectangle() method
31898 - Implemented ResetBackColor() method
31899 - Implemented ResetCursor() method
31900 - Implemented ResetFont() method
31901 - Implemented ResteForeColor() method
31902 - Implemented ResetImeMode() method
31903 - Implemented ResetLeftToRight() method
31904 - Implemented ResetText() method
31905 - Implemented Scale() methods
31906 - Implemented ScaleCore() method
31907 - Implemented Update() method
31908 - Removed unused variables
31909 - Stubbed AccessibilityNotifyClients and
31910 ControlAccessibleObject.NotifyClients() methods (dunno what to do
31912 - Now setting proper default for RightToLeft property
31913 - Fixed bug in SetClientSizeCore that would cause windows to get
31915 - Now sending Click/DoubleClick events
31916 - Now selecting controls when left mouse button is clicked on
31918 * AccessibleEvents.cs: Added
31919 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
31920 * XplatUIOSX.cs: Stubbed UpdateWindow() method
31921 * XplatUIWin32.cs: Implemented UpdateWindow() method
31922 * XplatUIX11.cs: Implemented UpdateWindow() method
31923 * Form.cs: Removed stray semicolon causing CS0162 warning
31924 * ThemeWin32Classic.cs: Fixed unused variable warnings
31925 * ScrollableControl.cs: Now calls base method for ScaleCore
31926 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
31927 style to avoid interference with internal click handler (which is
31928 different than standard Control click handling)
31930 - Now unchecks all sibling radio buttons when control is
31931 selected (Fixes #68756)
31932 - Removed internal tabstop variable, using the one inherited from
31935 2005-01-17 Jackson Harper <jackson@ximian.com>
31937 * NavigateEventArgs.cs: Fix base type.
31938 * LinkLabel.cs: Sig fix
31940 2005-01-17 Jackson Harper <jackson@ximian.com>
31942 * TreeView.cs: Only invalidate the effected nodes bounds when
31945 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31947 * XplatUIWin32.cs: fixes Win32 marshaling
31948 * XplatUIX11.cs: fixes method signature
31950 2005-01-17 Peter Bartok <pbartok@novell.com>
31952 * XplatUIX11.cs: Clean up resources when we no longer need them
31954 2005-01-17 Peter Bartok <pbartok@novell.com>
31956 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
31957 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
31958 and DestroyCursor() methods.
31959 * Cursor.cs: Partially implemented, now supports standard cursors;
31960 still contains some debug code
31961 * Cursors.cs: Implemented class
31963 - WndProc(): Added handling of WM_SETCURSOR message, setting the
31965 - Implemented Cursor property
31966 - Replaced break; with return; more straightforwar and possibly
31968 - Now properly setting the result for WM_HELP
31969 * X11Structs.cs: Added CursorFontShape enum
31970 * XplatUIStructs.cs:
31971 - Added StdCursor enum (to support DefineStdCursor() method)
31972 - Added HitTest enum (to support sending WM_SETCURSOR message)
31974 - Now sends the WM_SETCURSOR message
31975 - Implemented new cursor methods
31976 * XplatUIOSX.cs: Stubbed new cursor methods
31978 - Implemented new cursor methods
31979 - Added GetSystemMetrics function and associated enumeration
31981 2005-01-15 Peter Bartok <pbartok@novell.com>
31984 - WndProc(): Now handles EnableNotifyMessage
31985 - SelectNextControl(): Fixed bug where if no child or sibling
31986 controls exist we looped endlessly
31988 2005-01-14 Jackson Harper <jackson@ximian.com>
31990 * TreeView.cs: Recalculate the tab pages when a new one is added
31991 so that the proper bounding rects are created.
31993 2005-01-14 Jackson Harper <jackson@ximian.com>
31995 * TreeView.cs: Draw a gray box instead of a grip in the lower
31996 right hand corner when there are both horizontal and vertical
31999 2005-01-14 Jackson Harper <jackson@ximian.com>
32001 * Control.cs: When erasing backgrounds use FromHwnd instead of
32002 FromHdc when there is a NULL wparam. This occurs on the X driver.
32003 * XplatUIX11.cs: Set the wparam to NULL.
32005 2005-01-13 Jackson Harper <jackson@ximian.com>
32007 * PictureBox.cs: Implement missing methods (except ToString, need
32008 to test that on windows) and events. When visibility is changed we
32009 need to redraw the image because the buffers are killed. When size
32010 is changed refresh if the sizemode needs it.
32012 2005-01-13 Peter Bartok <pbartok@novell.com>
32014 * Control.cs (SelectNextControl): Was using wrong method to select
32017 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32019 * ComboBox.cs: fixes dropstyle
32021 2005-01-13 Peter Bartok <pbartok@novell.com>
32024 - Implemented Select() override
32025 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
32026 - Now sets keyboard focus on startup
32027 * Control.cs (SelectNextControl): Now properly handles directed=true
32029 - WndProc: Now passes tab key on to base if AcceptTabChar=false
32030 - Added (really bad) focus rectangle (mostly for testing)
32031 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
32032 to enforce redraw on focus changes
32033 * ContainerControl.cs:
32034 - Fixed detection of Shift-Tab key presses
32035 - Fixed traversal with arrow keys
32036 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
32037 gonna keep this or if it's complete yet
32039 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32041 * ComboBox.cs: missing properties, fixes
32043 2005-01-13 Peter Bartok <pbartok@novell.com>
32045 * Panel.cs (ctor): Setting Selectable window style to off
32046 * Splitter.cs (ctor): Setting Selectable window style to off
32047 * GroupBox.cs (ctor): Setting Selectable window style to off
32048 * Label.cs (ctor): Setting Selectable window style to off
32050 2005-01-12 Miguel de Icaza <miguel@ximian.com>
32052 * UpDownBase.cs (InitTimer): If the timer has been already
32053 created, enable it.
32055 Use a TextBox instead of a Label.
32057 2005-01-12 Jackson Harper <jackson@ximian.com>
32059 * TreeView.cs: Refresh the tree after sorting the nodes. Always
32060 draw the connecting node lines (when ShowLines is true).
32061 * TreeNode.cs: The nodes index can now be updated. This is used
32062 when a node collection is sorted.
32063 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
32064 insert or an existing unsorted node collection can be sorted.
32066 2005-01-12 Peter Bartok <pbartok@novell.com>
32068 * ContainerControl.cs: Implemented ProcessDialogKeys()
32070 2005-01-12 Peter Bartok <pbartok@novell.com>
32073 - Implemented SelectNextControl() method
32074 - Several focus related bug fixes
32075 - Fixed Docking calculations to match MS documentation and
32078 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
32080 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
32083 2005-01-12 Peter Bartok <pbartok@novell.com>
32086 - Fixed broken Contains() method
32087 - Implemented GetNextControl() method. Finally. This is the pre-
32088 requisite for focus handling.
32090 2005-01-12 Peter Bartok <pbartok@novell.com>
32092 * OSXStrucs.cs: Added
32094 2005-01-12 Peter Bartok <pbartok@novell.com>
32097 - Removed PeekMessageFlags
32098 - Implemented SetWindowStyle() method
32099 * XplatUIStructs.cs: Added PeekMessageFlags
32100 * X11Structs: Added missing border_width field to XWindowChanges struct
32102 - PeekMessage: Now throws exception if flags which are not yet
32103 supported are passed
32104 - Implemented SetWindowStyle() method
32105 - Fixed SetZOrder to handle AfterHwnd properly
32106 * XplatUI.cs: Added SetWindowStyle() method
32107 * XplatUIDriver.cs: Added SetWindowStyle() abstract
32109 - Implemented UpdateStyles() method
32110 - Implemented UpdateZOrder() method
32111 * XplatUIOSX.cs: Added SetWindowStyle() stub
32113 2005-01-12 Geoff Norton <gnorton@customerdna.com>
32115 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
32119 2005-01-11 Jackson Harper <jackson@ximian.com>
32121 * TreeView.cs: Still need to draw lines to siblings even if out of
32122 the current node is out of the clip.
32124 2005-01-11 Jackson Harper <jackson@ximian.com>
32126 * TreeView.cs: When setting the hbar/vbar/grip position use
32127 SetBounds so that perform layout is only called once. Also suspend
32128 and resume layout so layout is only done once for all controls.
32129 - Removed some debug fluff
32130 * SizeGrip.cs: Call base implmentation in overriding methods.
32131 - When visibility is changed the drawing buffers are killed so we
32134 2005-01-11 Jackson Harper <jackson@ximian.com>
32136 * TreeView.cs: Calculate the open node count while drawing. This
32137 saves us an entire tree traversal for every paint operation. Use
32138 a member var for the open node count so less vars are passed around.
32140 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
32142 * MonthCalendar.cs:
32143 - fixed selection to use mousemove, not mouse polling on timer
32144 * ThemeWin32Classic.cs
32145 - removed redundant unused variable "no_more_content"
32147 2005-01-11 Peter Bartok <pbartok@novell.com>
32149 * XplatUIX11.cs (DoEvents): Needs to return when no more events
32150 are pending, so it now calls PeekMessage instead of GetMessage;
32151 implemented a incomplete version of PeekMessage
32153 2005-01-11 Peter Bartok <pbartok@novell.com>
32155 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
32157 * TextBoxBase.cs: Added sending of TextChanged event
32159 2005-01-10 Jackson Harper <jackson@ximian.com>
32161 * TreeView.cs: Try not to draw outside the clipping rectangle on
32164 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
32166 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
32168 2005-01-10 Jackson Harper <jackson@ximian.com>
32171 - Implement fast scrolling. Now only the newly
32172 exposed nodes are drawn and the old image is moved using the
32173 XplatUI::ScrollWindow method.
32174 - Factor in height of nodes when calculating whether or not the
32175 node is in the clipping rect.
32177 2005-01-10 Jackson Harper <jackson@ximian.com>
32179 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
32181 2005-01-10 Peter Bartok <pbartok@novell.com>
32183 * Application.cs: Added temporary hack to resolve all our resize
32184 required issues on startup. This will get fixed properly at
32185 some point in the future
32187 2005-01-10 Jackson Harper <jackson@ximian.com>
32189 * SizeGrip.cs: New internal class that is used as a sizing
32190 grip control...hence the name.
32192 2005-01-10 Peter Bartok <pbartok@novell.com>
32194 * Control.cs: Implemented proper TabIndex handling, now assigning
32195 a tabindex when a control is added to a container
32196 * GroupBox.cs (ctor): Now sets the Container style bit, required
32197 for Control.GetNextControl()
32199 2005-01-09 Jackson Harper <jackson@ximian.com>
32201 * TextBoxBase.cs: Clear window when scrolling (fixes build).
32203 2005-01-09 Peter Bartok <pbartok@novell.com>
32205 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32206 XplatUIX11.cs: Added ability to control ScrollWindow expose and
32207 an overload for ScrollWindow to allow only scrolling a rectangle
32209 2005-01-09 Peter Bartok <pbartok@novell.com>
32212 - Implemented SetDesktopBounds method
32213 - Implemented SetDesktopLocation method
32215 2005-01-08 Jackson Harper <jackson@ximian.com>
32217 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
32218 the node count has changed, this removes to VScroll::Refresh calls
32221 2005-01-08 Geoff Norton <gnorton@customerdna.com>
32223 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
32225 2005-01-07 Jackson Harper <jackson@ximian.com>
32227 * TreeNode.cs: Just update the single node when it is
32228 checked. Don't refresh after toggling, the Expand/Collapse already
32230 * TreeView.cs: Respect clipping a little more when drawing. Try
32231 not to redraw things that don't need to be redrawn. Just hide the
32232 scrollbars when they are no longer needed instead of removing
32233 them, so they don't have to be created again and again.
32235 2005-01-07 Geoff Norton <gnorton@customerdna.com>
32237 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
32238 coordinates to window space to place the caret properly, FIXED.
32239 Implement GetWindowState & SetWindowState
32241 2005-01-06 Peter Bartok <pbartok@novell.com>
32244 - Implemented ClientSize property
32245 - Implemented DesktopBounds property
32246 - Implemented DesktopLocation property
32247 - Implemented IsRestrictedWindow property
32248 - Implemented Size property
32249 - Implemented TopLevel property
32250 - Implemented FormWindowState property
32252 - Implemented GetTopLevel() method
32253 - Implemented SetTopLevel() method
32254 * X11Structs.cs (Atom):
32255 - Added AnyPropertyType definition
32256 - Added MapState definiton and updated XWindowAttribute struct
32257 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
32258 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
32259 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
32261 - Implemented GetWindowState() and SetWindowState() methods
32262 - Fixed Win32GetWindowLong return type
32264 - Introduced central function for sending NET_WM messages
32265 - Implemented GetWindowState() and SetWindowState() methods
32266 * TextBoxBase.cs (set_Lines):
32267 - Now uses Foreground color for text added via Text property (Duh!)
32268 - Added code to remember programmatically requested size (fixes
32269 behaviour when Multiline is set after Size)
32270 - Added AutoSize logic
32272 2005-01-06 Jackson Harper <jackson@ximian.com>
32274 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
32276 2005-01-06 Jackson Harper <jackson@ximian.com>
32278 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
32279 set to less then 0.
32281 2005-01-06 Jackson Harper <jackson@ximian.com>
32283 * ScrollableControl.cs: Lazy init the scrollbars.
32285 2005-01-06 Jackson Harper <jackson@ximian.com>
32287 * Theme.cs: Speed up getting pens and solid brushes, by using
32288 their ARGB as a hash instead of tostring and not calling Contains.
32290 2005-01-06 Peter Bartok <pbartok@novell.com>
32293 - Implemented OnActivated and OnDeactivate event trigger
32294 - Implemented Activate() method
32295 - Fixed ShowDialog() to activate the form that was active before
32296 the dialog was shown
32298 - Added global active_window var that tracks the currently active
32300 - Now always grabs Property changes from the root window to always
32301 catch changes on the active window property
32302 - Added code to PropertyNotify handler to send Active/Inactive
32303 messages when state changes. This puts X11 and Win32 en par on
32304 WM_ACTIVATE notifications (except for double notifications when
32305 the user clicks away from our modal window to another one of our
32308 2005-01-05 Jackson Harper <jackson@ximian.com>
32310 * ImageList.cs: Implment ctor
32312 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32314 * XplatUIOSX.cs: Implement Activate/SetTopmost
32316 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32318 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
32320 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32322 * XplatUIOSX.cs: Implement GetActive/SetFocus.
32324 2005-01-05 Peter Bartok <pbartok@novell.com>
32326 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
32327 XplatUIOSX.cs: Added GetActive method to return the currently
32328 active window for the application (or null, if none is active)
32330 - Implemented ActiveForm
32331 - Commented out owner assignment for modal dialogs (causes problems
32332 on Win32, since the owner will be disabled)
32333 - Reworked some Active/Focus handling (still incomplete)
32334 * CommonDialog.cs: Commented out owner assignment for modal dialogs
32335 (causes problems on Win32, since the owner will be disabled)
32336 * IWin32Window: Added ComVisible attribute
32338 2005-01-05 Peter Bartok <pbartok@novell.com>
32340 * ToolTip.cs (WndProc): Enable setting focus now that we have the
32341 required XplatUI functions.
32343 2005-01-05 Peter Bartok <pbartok@novell.com>
32345 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
32346 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
32347 to implement focus and activation handling; still incomplete and
32350 2005-01-04 Peter Bartok <pbartok@novell.com>
32352 * TextBoxBase.cs: Changed access level for Document property to
32353 match switch to internal for TextControl
32355 2005-01-04 Peter Bartok <pbartok@novell.com>
32357 * AccessibleObject: Added ComVisible attribute
32359 2005-01-04 Jackson Harper <jackson@ximian.com>
32361 * X11Keyboard.cs: Remove unneeded var.
32363 2005-01-04 Jackson Harper <jackson@ximian.com>
32365 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
32367 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
32368 ClientMessage. This makes apps exit cleanly (more often).
32370 2005-01-04 Jackson Harper <jackson@ximian.com>
32372 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
32373 handling focus, return correct colors and fonts,
32374 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
32375 handle selection, horizontal scrolling, and mouse interaction.
32377 2005-01-04 Peter Bartok <pbartok@novell.com>
32379 * ICommandExecutor.cs: Added
32380 * IDataGridColumnStyleEditingNotificationService.cs: Added
32381 * IFeatureSupport.cs: Added
32382 * IFileReaderService.cs: Added
32383 * IDataObject.cs: Added ComVisible attribute
32384 * AmbientProperties.cs: Added
32385 * BaseCollection.cs: Added missing attributes
32386 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
32387 * BaseCollection.cs: Added missing attributes
32388 * Binding.cs: Added TypeConverter attribute
32389 * BindingContext.cs: Added DefaultEvent attribute
32390 * BindingsCollection.cs: Added DefaultEvent attribute
32391 * Button.cs: Added DefaultValue attribute
32392 * DragEventArgs.cs: Added ComVisible attribute
32393 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
32394 * KeyEventArgs.cs: Added ComVisible attribute
32395 * KeyPressEventArgs.cs: Added ComVisible attribute
32396 * MouseEventArgs.cs: Added ComVisible attribute
32397 * NavigateEventArgs.cs: Added
32398 * NavigateEventHandler.cs: Added
32399 * FeatureSupport.cs: Added
32400 * OSFeature.cs: Added
32401 * Theme.cs: Added abstract Version property to support OSFeature
32402 * ThemeWin32Classic.cs: Added Version property to
32403 support OSFeature.Themes
32404 * ProgressBar.cs: Removed OnPaintBackground override, not required since
32405 the proper styles to avoid background drawing are set, also doesn't
32407 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
32408 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
32409 * ScrollEventArgs.cs: Added ComVisible attribute
32410 * SplitterEventArgs.cs: Added ComVisible attribute
32411 * AccessibleSelection.cs: Added Flags attribute
32412 * Appearance.cs: Added ComVisible attribute
32413 * Border3DSide.cs: Added ComVisible attribute
32414 * Border3DStyle.cs: Added ComVisible attribute
32415 * BorderStyle.cs: Added ComVisible attribute
32416 * DragAction.cs: Added ComVisible attribute
32417 * ErrorBlinkStyle.cs: Added
32418 * ScrollEventType.cs: Added ComVisible attribute
32419 * AnchorStyles.cs: Added Editor attribute
32420 * DockStyle.cs: Added Editor attribute
32421 * HorizontalAlignment.cs: Added ComVisible attribute
32422 * HelpEventArgs.cs: Added ComVisible attribute
32423 * PaintEventArgs.cs: Added IDisposable
32425 2005-01-04 Peter Bartok <pbartok@novell.com>
32427 * TextControl.cs: Switched Line, LineTag and Document classes to
32430 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32432 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
32433 Simple mode, fixes, IntegralHeight, etc.
32435 2005-01-04 Peter Bartok <pbartok@novell.com>
32437 * TextBoxBase.cs: Using proper font variable now
32439 2005-01-04 Peter Bartok <pbartok@novell.com>
32441 * Form.cs (ShowDialog): Set parent to owner, if provided
32442 * GroupBox.cs: Removed unused vars
32444 - Added GetHashCode() for Document and LineTag classes
32445 - Removed unused variables
32446 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
32447 to allow translation between continuous char position and line/pos
32448 * CheckBox.cs: Removed vars that are provided by base class
32449 * RadioButton.cs: Removed vars that are provided by base class, added
32450 new keyword where required
32451 * LinkLabel.cs: Added new keyword where required
32452 * Control.cs (WndProc): Removed unused variable
32454 - Finished SelectionLength property
32455 - Implemented SelectionStart property
32456 - Implemented Text property
32457 - Removed unused vars
32458 * MessageBox.cs: Added new keyword where required
32459 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
32461 * MenuAPI.cs: Added new keyword where required
32462 * ButtonBase.cs: Removed vars that are provided by base class, added
32463 new keyword where required
32464 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
32465 argument to double, to allow compiling with csc 2.0 (Atsushi ran
32467 * Application.cs (Run): Now triggers the ThreadExit event
32468 * CommonDialog.cs: Added new keyword where required; now properly sets
32469 parent (owner) for dialog
32470 * XplatUIX11.cs: Commented out unused vars
32471 * StatusBar.cs: Fixed signature for Text property
32472 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
32474 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32476 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
32477 TrackBar.cs, MonthCalendar.cs: remove unused vars
32479 2005-01-03 Jackson Harper <jackson@ximian.com>
32481 * ThemeWin32Classic.cs:
32482 * X11Keyboard.cs: Remove unused vars.
32484 2005-01-03 Peter Bartok <pbartok@novell.com>
32487 - set_Text: Tied into TextControl
32488 - set_TextAlignment: Tied into TextControl
32490 - Added alignment properties and implemented alignment handling
32491 and drawing (still has a bug, not generating proper expose events)
32492 - Added new Line() constructor to allow passing the line alignment
32493 - Fixed selection setting, properly handling end<start now
32494 - Added aligment considerations to RecalculateDocument()
32496 - Now properly enforces control height for single line controls
32497 - Added support for CharacterCasing
32498 - Added IsInputKey override
32499 - Fixed Keys.Enter logic
32500 - Added SetBoundsCore override
32501 - Fixed mouse selection handling
32503 2005-01-03 Jackson Harper <jackson@ximian.com>
32506 - Collapse and uncheck all nodes when CheckBoxes is disabled.
32507 - Checkboxes are always aligned to the bottom of the node,
32508 regardless of item height.
32509 - Use the node bounds to draw the text so we can center it when
32510 the item height is greater then the font height.
32511 - Node::Bounds are only the text part of the node.
32512 * TreeNode.cs: New method to combine collapsing and unchecking all
32515 2005-01-02 Jackson Harper <jackson@ximian.com>
32517 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
32518 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
32519 tree when a check is changed. TODO: Only refresh the checked node.
32521 2004-12-30 Jackson Harper <jackson@ximian.com>
32523 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
32524 * TreeNode.cs: When collapsing make sure to never collapse the
32527 2004-12-29 Jackson Harper <jackson@ximian.com>
32529 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
32531 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
32533 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
32535 2004-12-28 Peter Bartok <pbartok@novell.com>
32537 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
32540 2004-12-28 Peter Bartok <pbartok@novell.com>
32542 * Control.cs (WndProc): Added WM_HELP handler, now generates
32543 HelpRequested event
32544 * Form.cs: Added HelpButton property and required support code
32545 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
32547 2004-12-28 Peter Bartok <pbartok@novell.com>
32550 - Made DialogForm.owner variable internal
32551 - Added check to ensure owner form is set before setting
32552 owner properties in CreateParams
32554 2004-12-28 Geoff Norton <gnorton@customerdna.com>
32556 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
32557 swizzling. Implement ClientToScreen and ScreenToClient. Implement
32558 GetCursorPos. Fix major visibility issues. Rework the windowing
32559 system to support borderless/titleless windows (implements menus).
32560 Fix GetWindowPos. Implement initial background color support for
32563 2004-12-28 Peter Bartok <pbartok@novell.com>
32565 * Form.cs (get_CreateParams): Make sure we have an owner before using
32566 the owner variable. Implement proper default if no owner exists
32568 2004-12-28 Peter Bartok <pbartok@novell.com>
32570 * In preparation for making Managed.Windows.Forms the default build target
32571 for System.Windows.Forms, the following stubbed files were added.
32572 Dialogs are currently being implemented by contributors and are only
32573 short-term place holders.
32574 * ColorDialog.cs: Initial check-in (minmal stub)
32575 * DataGrid.cs: Initial check-in (minimal stub)
32576 * DataGridLineStyle.cs: Initial check-in (minimal stub)
32577 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
32578 * DataGridTableStyle.cs: Initial check-in (minimal stub)
32579 * FontDialog.cs: Initial check-in (minimal stub)
32580 * FileDialog.cs: Initial check-in (minimal stub)
32581 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
32582 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
32583 * OpenFileDialog: Initial check-in (minimal stub)
32584 * IComponentEditorPageSite.cs: Initial check-in
32585 * Splitter.cs: Initial check-in (for Jackson)
32586 * SplitterEventArgs.cs: Initial check-in (for Jackson)
32587 * SplitterEventHandler.cs: Initial check-in (for Jackson)
32588 * TextBox.cs: Initial check-in; still needs some wiring to
32589 TextControl backend
32590 * Form.cs: Implemented ControlBox property
32591 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
32592 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
32593 * TextControl.cs: Added selection functionality; added todo header
32595 - Implemented Lines property
32596 - Implemented TextHeight property
32597 - Implemented SelectedText property
32598 - Implemented SelectionLength property
32599 - Implemented SelectAll method
32600 - Implemented ToString method
32601 - Removed and cleaned up some debug code
32602 - Implemented (still buggy) mouse text selection
32604 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
32606 * ComboBox.cs: Complete DropDownList implementation, fixes.
32608 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
32610 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
32611 * ComboBoxStyle.cs: ComboBoxStyle enum
32612 * ComboBox.cs: Initial work on ComboBox control
32614 2004-12-21 Peter Bartok <pbartok@novell.com>
32616 * Control.cs (ctor, CreateParams): Moved setting of is_visible
32617 forward so that anything that creates a window gets the default,
32618 also no longer uses Visible property in CreateParams to avoid
32619 walking up the parent chain and possibly get the wrong visible
32620 status. Fixed IsVisible to no longer walk up to the parent.
32622 2004-12-21 Peter Bartok <pbartok@novell.com>
32624 * Form.cs (ShowDialog): Unset modality for the proper window
32626 2004-12-20 Peter Bartok <pbartok@novell.com>
32628 * CommonDialog.cs: Initial check-in
32630 2004-12-20 Peter Bartok <pbartok@novell.com>
32632 * Control.cs (Visible): Now uses the parent window instead of the
32633 client area window for the property
32636 - ShowDialog(): Now uses the proper window for modality
32637 - The default visibility state for the form parent is now false. This
32638 will prevent the user from seeing all the changes to the form and
32639 its controls before the application hits Application.Run()
32640 - Removed some stale commented out code
32643 - Added FindWindow() method to have a method to check for existence
32645 - Added ability to override default exception handling (for example
32646 when debugging with VS.Net; to do this the ExternalExceptionHandler
32648 - Removed some useless debug output
32651 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
32652 not working as expected
32653 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
32654 property to allow switching back to the modal window if focus is
32655 given to another one of our windows (Application Modal)
32656 - Now only sets override_redirect if we create a window
32658 - Moved EventMask selection before mapping of newly created window
32659 so we can catch the map event as well
32660 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
32661 - Added various Atom related DllImports
32662 - Implemented Exit() method
32663 - .ctor() : No longer shows window if WS_VISIBLE is not defined
32664 in the CreateParams
32666 * MessageBox.cs: Now properly deals with the FormParent window by
32667 providing an override the FormParent CreateParams property to
32668 set as POPUP instead of OVERLAPPED window.
32670 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32672 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
32673 Minor code cleanup.
32675 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32677 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
32679 2004-12-18 Peter Bartok <pbartok@novell.com>
32681 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
32682 implementing SetModal() method
32684 2004-12-18 Peter Bartok <pbartok@novell.com>
32686 * X11Structs.cs (XGCValues): Fixed type of function element
32687 * XplatUI.cs: Added ScrollWindow() method
32688 * XplatUIDriver.cs: Added ScrollWindow() abstract
32689 * XplatUIWin32.cs: Implemented ScrollWindow() method
32690 * XplatUIX11.cs: Implemented ScrollWindow() method
32691 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
32693 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32695 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
32696 Some more keyboard support (INCOMPLETE)
32698 2004-12-17 Peter Bartok <pbartok@novell.com>
32701 - Added color attribute to line tags.
32702 - Added color argument to all functions dealing with tags
32703 - Added color argument support to various functions
32704 - Fixed miss-calculation of baseline/shift in certain circumstances
32706 * TextBoxBase.cs: Added new color option to test code
32708 2004-12-17 Jackson Harper <jackson@ximian.com>
32711 * MonthCalendar.cs: Signature fixes
32713 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32715 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
32716 keyboard event moved it. Create a new graphics context for each paint resolves this
32718 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32720 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
32721 Make caret exist and go blink blink. Initial keyboard support.
32722 Fix exception handler, Add Invalidate support. Change way RefreshWindow
32725 2004-12-17 Jackson Harper <jackson@ximian.com>
32727 * XplatUIStructs.cs: Updated set of virtual keycodes.
32728 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
32730 2004-12-17 Jackson Harper <jackson@ximian.com>
32732 * XplatUIX11.cs: Prune old keyboard code.
32734 2004-12-17 Jackson Harper <jackson@ximian.com>
32736 * XplatUIX11.cs: When generating mouse wparams get the modifier
32737 keys from the ModifierKeys property.
32739 2004-12-17 Jackson Harper <jackson@ximian.com>
32741 * X11Keyboard.cs: Send up/down input when generating
32742 messages. Remove some unused vars.
32744 2004-12-17 Jackson Harper <jackson@ximian.com>
32747 * TreeView.cs: get rid of warnings.
32749 2004-12-17 Jackson Harper <jackson@ximian.com>
32751 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
32753 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
32755 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
32756 CheckedListBox.cs: Implementation
32758 2004-12-17 Peter Bartok <pbartok@novell.com>
32760 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
32762 2004-12-16 Peter Bartok <pbartok@novell.com>
32765 - InsertCharAtCaret(): Fixed start pos fixup
32766 - CaretLine_get: No longer derives the line from the tag, the tag
32767 could be stale if lines in the document have been added or deleted
32768 - RebalanceAfterDelete(): Fixed bug in balancing code
32769 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
32770 - Line.Streamline(): Now can also elminate leading empty tags
32771 - DumpTree(): Added a few more tests and prevented exception on
32773 - Added Debug section for Combining lines
32774 - Delete(): Now copies all remaining properties of a line
32777 - Left mousebutton now sets the caret (and middle button still acts
32778 as formatting tester, which must go away soon)
32779 - Added Debug section for Deleting/Combining lines
32780 - Fixed calculations for UpdateView after Combining lines
32782 2004-12-16 Peter Bartok <pbartok@novell.com>
32784 * TextControl.cs: Now properly aligns text on a baseline, using the
32785 new XplatUI.GetFontMetrics() method. Simplified several calculations
32786 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
32789 2004-12-16 Peter Bartok <pbartok@novell.com>
32791 * XplatUI.cs: Added GetFontMetrics() method
32792 * XplatUIDriver.cs: Added GetFontMetrics() abstract
32793 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
32794 into libgdiplus, our private GetFontMetrics function
32795 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
32796 * XplatUIWin32.cs: Implemented GetFontMetrics() method
32798 2004-12-16 Jackson Harper <jackson@ximain.com>
32800 * XplatUIStruct.cs: Add enum for dead keys
32801 * X11Keyboard.cs: Map and unmap dead keys.
32803 2004-12-16 Jackson Harper <jackson@ximian.com>
32805 * X11Keyboard.cs: Detect and use the num lock mask.
32807 2004-12-16 Peter Bartok <pbartok@novell.com>
32809 * Control.cs (CreateGraphics): Added check to make sure the
32810 handle of the window exists before calling Graphics.FromHwnd()
32812 2004-12-16 Peter Bartok <pbartok@novell.com>
32814 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
32815 contains a lot of code that's not supposed to be there for the
32816 real thing, but required for developing/testing the textbox
32819 2004-12-16 Peter Bartok <pbartok@novell.com>
32822 - Fixed Streamline method
32823 - Added FindTag method to Line
32824 - Added DumpTree method for debugging
32825 - Added DecrementLines() method for deleting lines
32826 - Fixed UpdateView to update the cursor to end-of-line on single-line
32828 - Added PositionCaret() method
32829 - Fixed MoveCaret(LineDown) to move into the last line, too
32830 - Added InsertChar overload
32831 - Fixed InsertChar tag offset calculations
32832 - Added DeleteChar() method
32833 - Added Combine() method for folding lines
32834 - Fixed Delete() method, no longer allocates wasted Line object and
32835 now copies all properties when swapping nodes
32836 - Delete() method now updates document line counter
32838 2004-12-15 Jackson Harper <jackson@ximian.com>
32840 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
32841 * X11Keyboard.cs: Expose the currently selected modifier keys
32842 through a property.
32844 2004-12-15 Peter Bartok <pbartok@novell.com>
32846 * TextControl.cs: Initial check-in. Still incomplete
32848 2004-12-15 Jackson Harper <jackson@ximian.com>
32851 * TreeView.cs: Fix build on csc (second time today ;-))
32853 2004-12-15 Jackson Harper <jackson@ximian.com>
32855 * TreeView.cs: Store the treenodes plus/minus box bounds when it
32856 is calculated and use this for click testing.
32857 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
32859 2004-12-15 Jackson Harper <jackson@ximian.com>
32861 * TreeView.cs: Pass the nodes image index to the image list when
32862 drawing that image.
32864 2004-12-15 Jackson Harper <jackson@ximian.com>
32866 * X11Keyboard.cs: Set messages hwnd.
32867 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
32868 post_message calls.
32870 2004-12-15 Jackson Harper <jackson@ximian.com>
32872 * X11Keyboard.cs: Fix to compile with csc.
32874 2004-12-15 Jackson Harper <jackson@ximian.com>
32876 * X11Structs.cs: Add key mask values
32877 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
32878 * X11Keyboard.cs: New file - Extrapolates and interpolates key
32879 down/up foo into WM_CHAR foo
32880 * KeyboardLayouts.cs: Common keyboard layouts
32881 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
32882 post messages into the main queue.
32884 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
32886 * Button.cs: implement ProcessMnemonic
32887 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
32889 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
32890 * ButtonBase.cs: Show HotkeyPrefix (not the &)
32892 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
32894 * MonthCalendar.cs: Implemented click-hold for next/previous month
32897 2004-12-11 Peter Bartok <pbartok@novell.com>
32900 - Added XKeyboardState (moved from XplatUIX11.cs)
32901 - Added XCreateGC related enums and structures
32902 - Added GXFunction for XSetFunction
32904 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
32906 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
32907 CaretVisible() calls
32909 * ToolTip.cs: Added code to prevent stealing focus from app windows
32911 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
32912 DestroyCaret, SetCaretPos and CaretVisible)
32915 - Added implementation for caret functions
32916 - Moved hover variables into a struct, to make it a bit easier
32917 on the eyes and to debug
32918 - Removed XKeyboardState (moved to XplatUIX11.cs)
32919 - Moved Keyboard properties into the properties region
32921 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
32922 call to get a graphics context for our control
32924 * XplatUIOSX.cs: Added empty overrides for the new caret functions
32926 * TreeView.cs: Fixed bug. No matter what color was set it would always
32927 return SystemColors.Window
32929 * XplatUIWin32.cs: Implemented caret overrides
32931 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
32933 * ListBox.cs: fire events, implement missing methods and properties,
32936 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
32938 * MonthCalendar.cs: invalidation bug fixing
32939 * ThemeWin32Classic.cs: paint fixing
32941 2004-12-09 Geoff Norton <gnorton@customerdna.com>
32943 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
32944 prepare the CGContextRef there now.
32946 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
32948 * MonthCalendar.cs:
32949 - optimisationL only invalidate areas that have changed
32950 * ThemeWin32Classic.cs:
32951 - only paint parts that intersect with clip_area
32953 2004-12-09 Peter Bartok <pbartok@novell.com>
32955 * Application.cs: Undid changes from r37004 which cause problems
32958 2004-12-09 Ravindra <rkumar@novell.com>
32960 * ToolBar.cs: Added support for displaying ContextMenu
32961 attached to a button on ToolBar.
32962 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
32965 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
32967 * Label.cs: autosize works in text change and removes unnecessary
32970 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
32972 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32975 2004-12-08 Geoff Norton <gnorton@customerdna.com>
32977 * XplatUIOSX.cs: Added mouse move/click/grab support
32978 Remove some debugging WriteLines not needed anymore.
32979 Add window resizing/positioning.
32980 Fix visibility on reparenting.
32982 2004-12-08 Peter Bartok <pbartok@novell.com>
32984 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
32986 2004-12-07 Geoff Norton <gnorton@customerdna.com>
32988 * XplatUIOSX.cs: Initial checkin
32989 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
32991 2004-12-03 Ravindra <rkumar@novell.com>
32993 * ListView.cs: Added some keybindings and fixed scrolling.
32994 ScrollBars listen to ValueChanged event instead of Scroll
32995 Event. This would let us take care of all changes being
32996 done in the scrollbars' values programmatically or manually.
32997 * ListView.cs (CanMultiselect): Added a check for shift key.
32998 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
32999 * ListViewItem.cs (Clone): Fixed. We need to make a copy
33000 of ListViewSubItemCollection as well.
33002 2004-12-06 Peter Bartok <pbartok@novell.com>
33004 * Control.cs (Parent): Added check and exception to prevent
33007 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
33009 * ListBox.cs: implemented clipping, selection single and multiple,
33012 2004-12-03 Ravindra <rkumar@novell.com>
33014 * ListView.cs (ListView_KeyDown):
33015 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
33016 when CTRL key is pressed.
33017 * ListViewItem.cs (Selected): Fixed setting the property.
33019 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33021 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
33023 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
33024 MinimizeBox, ShowInTaskbar, TopMost properties.
33026 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
33027 will be implemented).
33029 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33031 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
33033 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
33036 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
33038 * TreeView.cs: BackColor is Colors.Window.
33040 2004-12-01 Jackson Harper <jackson@ximian.com>
33042 * TreeView.cs: When resizing the tree if the user is making it
33043 smaller we don't get expose events, so we need to handle adding
33044 the horizontal scrollbar in the size changed handler as well as
33045 the expose handler.
33047 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
33049 * DrawItemState.cs: fixes wrong enum values
33051 2004-12-01 Jackson Harper <jackson@ximian.com>
33053 * TreeView.cs: Resize the hbar as well as the vbar on resize.
33055 2004-12-01 Jackson Harper <jackson@ximian.com>
33057 * NodeLabelEditEventArgs.cs:
33058 * NodeLabelEditEventHandler.cs:
33059 * OpenTreeNodeEnumerator.cs:
33061 * TreeNodeCollection.cs:
33063 * TreeViewAction.cs:
33064 * TreeViewCancelEventArgs.cs:
33065 * TreeViewCancelEventHandler.cs:
33066 * TreeViewEventArgs.cs:
33067 * TreeViewEventHandler.cs: Initial implementation.
33069 2004-12-01 Ravindra <rkumar@novell.com>
33071 * ListView.cs (CalculateListView): Fixed scrolling related
33072 calculations. Also, removed some debug statements from other
33074 * ListViewItem.cs: Changed access to 'selected' instance variable
33075 from private to internal.
33076 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
33078 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
33080 * ThemeWin32Classic.cs: remove cache of brush and pens for
33081 specific controls and use the global system, fixes scrollbutton
33082 bugs (for small sizes, disabled, etc)
33084 * ScrollBar.cs: does not show the thumb for very small controls
33085 (as MS) and allow smaller buttons that the regular size
33087 2004-12-01 Miguel de Icaza <miguel@ximian.com>
33089 * UpDownBase.cs: Add abstract methods for the interface.
33090 Add new virtual methods (need to be hooked up to TextEntry when it
33092 Add override methods for most features.
33093 Computes the size, forces the height of the text entry.
33095 * NumericUpDown.cs: Put here the current testing code.
33097 * Set eol-style property on all files that do not have mixed line
33098 endings, to minimize the future problems. There are still a few
33099 files with mixed endings, and someone should choose whether they
33100 want to move it or not.
33102 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
33104 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
33107 2004-11-30 Ravindra <rkumar@novell.com>
33109 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
33110 drawing and replaced use of SystemColors by theme colors.
33111 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
33112 * ListView.cs (ListViewItemCollection.Add): Throw exception when
33113 same ListViewItem is being added more than once.
33115 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
33117 * MonthCalendar.cs:
33118 - ControlStyles love to make the control not flicker
33120 2004-11-30 Peter Bartok <pbartok@novell.com>
33122 * CharacterCasing.cs: Added
33124 2004-11-29 Peter Bartok <pbartok@novell.com>
33126 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33127 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
33128 I am removing these files as they conflict with already completed
33129 work. While it is fantastic to get contributions to MWF, I
33130 respectfully ask that everyone please coordinate their contributions
33131 through mono-winforms-list or #mono-winforms at this time. We're
33132 explicitly avoiding stubbing and don't want controls that don't have
33133 their basic functionality implemented in svn. Please also see
33134 http://www.mono-project.com/contributing/winforms.html
33137 2004-11-29 Marek Safar <marek.safar@seznam.cz>
33139 * Application.cs (ModalRun): Don't hang after exit.
33141 * Theme.cs: New TreeViewDefaultSize property.
33143 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
33144 with less hardcoded SystemColors constant.
33145 Implemented TreeViewDefaultSize.
33147 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33148 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
33151 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
33153 * MonthCalendar.cs:
33154 - Fix NextMonthDate and PrevMonthDate click moving calendar
33156 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
33158 * MonthCalendar.cs:
33159 - Fix usage of ScrollChange Property when scrolling months
33161 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
33163 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
33164 - Fixes menu destroying
33165 - Support adding and removing items on already created menus
33167 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
33169 * MonthCalendar.cs:
33170 - Re-worked all bolded dates handling to match win32
33171 * ThemeWin32Classic.cs:
33172 - Fixed rendering with bolded dates
33174 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
33176 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
33177 - Horizontal scroolbar
33182 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
33184 * MonthCalendar.cs:
33185 - Fix Usage of MaxSelectionCount from SelectionRange
33186 - Fixed Shift + Cursor Selection
33187 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
33188 - Fixed normal cursor selection to be compat with win32
33189 - Fixed Shift + Mouse Click selection
33191 2004-11-24 Peter Bartok <pbartok@novell.com>
33193 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
33194 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
33196 - CreatedKeyBoardMsg now updates keystate with Alt key
33197 - Added workaround for timer crash to CheckTimers, Jackson will
33198 develop a proper fix and check in later
33199 - Implemented DispatchMessage
33200 - Removed calling the native window proc from GetMessage (call
33201 now moved to DispatchMessage)
33203 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
33204 the keydata (Fixes bug #69831)
33207 - (DispatchMessage): Switched to return IntPtr
33208 - Added DllImport for SetFocus
33210 2004-11-24 Ravindra <rkumar@novell.com>
33212 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
33213 background drawing.
33214 * ListViewItem.cs: Fixed various properties, calculations
33215 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
33216 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
33217 and some internal properties. Fixed MouseDown handler and Paint
33220 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
33222 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
33224 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
33226 * ContainerControl.cs: correct accidental check in of local changes
33228 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
33230 * ThemeWin32Classic.cs:
33231 - Fixed Drawing Last month in grid (sometimes not showing)
33232 * MonthCalendar.cs:
33233 - Fixed title width calculation bug (makeing title small)
33235 2004-11-23 Peter Bartok <pbartok@novell.com>
33238 - Added generation of WM_MOUSEHOVER event
33239 - Added missing assignment of async_method atom
33240 - Fixed WM_ERASEBKGND; now only redraws the exposed area
33242 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
33244 * ThemeWin32Classic.cs:
33245 - Fixed Drawing of today circle when showtodaycircle not set
33246 - fixed drawing of first and last month in the grid (gay dates)
33247 * MonthCalendar.cs:
33248 - Fixed Drawing of today circle
33249 - Fixed drawing of grady dates
33250 - Fixed HitTest for today link when ShowToday set to false
33251 - Fixed DefaultSize to obey ShowToday
33253 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
33255 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
33256 * System.Windows.Forms/Theme.cs
33257 * MonthCalendar.cs: added for MonthCalendar
33258 * SelectionRange.cs: added for MonthCalendar
33259 * Day.cs: added for MonthCalendar: added for MonthCalendar
33260 * DateRangeEventArgs.cs: added for MonthCalendar
33261 * DateRangeEventHandler.cs: added for MonthCalendar
33263 2004-11-22 Ravindra <rkumar@novell.com>
33265 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
33268 2004-11-22 Miguel de Icaza <miguel@ximian.com>
33270 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
33273 * NumericUpDown.cs: Added new implementation.
33274 * UpDownBase.cs: Added new implementation.
33276 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
33279 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
33282 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
33285 2004-11-21 Miguel de Icaza <miguel@ximian.com>
33287 * Timer.cs (Dispose): Should call the base dispose when
33290 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
33292 * ScrollBar.cs: updates thumb position when max, min or increment
33295 2004-11-21 Ravindra <rkumar@novell.com>
33297 * ListView.cs: Implemented item selection, activation and
33298 column header style. Fixed properties to do a redraw, if
33299 required. Added support for MouseHover, DoubleClick, KeyDown
33300 and KeyUp event handling and some minor fixes.
33301 * ListViewItem.cs: Fixed constructor.
33302 * ThemeWin32Classic.cs: Improved drawing for ListView.
33304 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
33306 * ThemeWin32Classic.cs: initial listbox drawing code
33307 * DrawMode.cs: new enumerator
33308 * ListControl.cs: stubbed class
33309 * ListBox.cs: initial implementation
33310 * Theme.cs: new methods definitions
33311 * SelectionMode.cs: new enumerator
33313 2004-11-17 Peter Bartok <pbartok@novell.com>
33315 * XplatUIWin32.cs: Added double-click events to the class style
33316 * Control.cs (WndProc):
33317 - Added handling of click-count to MouseDown/ MouseUp events.
33318 - Added handling of middle and right mouse buttons
33319 - Removed old debug code
33321 2004-11-17 Jackson Harper <jackson@ximian.com>
33323 * XplatUIX11.cs: Use the new Mono.Unix namespace.
33325 2004-11-17 Ravindra <rkumar@novell.com>
33327 * ListView.cs: Added event handling for MouseMove/Up/Down.
33328 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
33329 * ThemeWin32Classic.cs: We need to clear the graphics context and
33330 draw column header in a proper state.
33333 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
33335 * Menu.cs: fixes signature
33337 2004-11-16 Peter Bartok <pbartok@novell.com>
33339 * XplatUIX11.cs (GetMessage): Implemented generation of
33340 double click mouse messages
33342 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
33344 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
33347 2004-11-11 Peter Bartok <pbartok@novell.com>
33349 * HandleData.cs: Added Visible property
33350 * XplatUIX11.cs (IsVisible): Now uses Visible property from
33352 * XplatUIX11.cs: Removed old debug leftovers
33353 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
33354 * Control.cs (WndProc): Removed old debug leftovers,
33355 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
33356 needed WM_SIZE handling
33358 2004-11-11 Jackson Harper <jackson@ximian.com>
33360 * OwnerDrawPropertyBag.cs:
33361 * TreeViewImageIndexConverter.cs: Initial implementation
33363 2004-11-10 Jackson Harper <jackson@ximian.com>
33365 * ThemeWin32Classic.cs:
33366 * TabControl.cs: instead of moving tabs by the slider pos just
33367 start drawing at the tab that is offset by the slider. This way
33368 scrolling always moves by exactly one tab.
33370 2004-11-10 Jackson Harper <jackson@ximian.com>
33372 * TabControl.cs: You can only scroll left when the slider has
33373 already ben moved right.
33375 2004-11-10 Jackson Harper <jackson@ximian.com>
33377 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
33380 2004-11-10 Jackson Harper <jackson@ximian.com>
33382 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
33385 2004-11-09 Jackson Harper <jackson@ximian.com>
33387 * TabControl.cs (CalcXPos): New helper method so we can determine
33388 the proper place to start drawing vertical tabs.
33389 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
33391 2004-11-09 Jackson Harper <jackson@ximian.com>
33393 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
33394 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
33395 and Bottom, left and right are illegal values for this and
33396 multiline is enabled when the alignment is set to left or right.
33397 (DrawTab): Each alignment block should draw the text itself now
33398 because Left requires special love. Also add rendering for Left
33401 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
33403 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
33404 does not destroy the windows, removes debugging messages
33406 2004-11-09 jba <jba-mono@optusnet.com.au>
33408 * ThemeWin32Classic.cs
33409 (DrawButtonBase): Fix verticle text rect clipping in windows
33410 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33411 rendering and incorrect text rect clipping
33412 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33413 rendering and incorrect text rect clipping
33415 2004-11-08 Jackson Harper <jackson@ximian.com>
33417 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
33418 bottom when they are bottom aligned so the bottoms of the tabs get
33420 * TabControl.cs (DropRow): Move rows up instead of down when the
33421 tab control is bottom aligned.
33423 2004-11-08 13:59 pbartok
33426 - Added handling for various window styles
33427 - Added handling for popup windows
33428 - Added SetTopmost handling
33430 2004-11-08 13:55 pbartok
33433 - Added argument to SetTopmost method
33434 - Fixed broken ClientToScreen function
33436 2004-11-08 13:53 pbartok
33438 * XplatUIStructs.cs:
33439 - Added missing WS_EX styles
33441 2004-11-08 13:53 pbartok
33443 * XplatUI.cs, XplatUIDriver.cs:
33444 - Added argument to SetTopmost
33446 2004-11-08 13:52 pbartok
33449 - Added XSetWindowAttributes structure
33450 - Improved XWindowAttributes structure
33451 - Added SetWindowValuemask enum
33452 - Added window creation arguments enum
33453 - Added gravity enum
33454 - Added Motif hints structure
33455 - Added various Motif flags and enums
33456 - Added PropertyMode enum for property functions
33458 2004-11-08 13:50 pbartok
33461 - Fixed arguments for updated SetTopmost method
33463 2004-11-08 13:49 pbartok
33466 - Fixed arguments for updated SetTopmost function
33467 - Fixed usage of PointToClient
33469 2004-11-08 13:44 pbartok
33472 - Added Clipping of children and siblings
33474 2004-11-08 13:41 pbartok
33477 - Removed SetMenuBarWindow call. We do this in Form.cs
33479 2004-11-08 13:40 jackson
33481 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
33482 scrolling jimmi in the correct location with bottom aligned tabs
33484 2004-11-08 13:36 pbartok
33486 * ContainerControl.cs:
33487 - Implemented BindingContext
33488 - Implemented ParentForm
33490 2004-11-08 12:46 jackson
33492 * TabControl.cs: Put bottom rendered tabs in the right location
33494 2004-11-08 07:15 jordi
33496 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
33499 2004-11-05 17:30 jackson
33501 * TabControl.cs: When selected tabs are expanded make sure they
33502 don't go beyond the edges of the tab control
33504 2004-11-05 14:57 jackson
33506 * TabControl.cs: Reset show_slider so if the control is resized to
33507 a size where it is no longer needed it's not displayed anymore
33509 2004-11-05 13:16 jackson
33511 * TabControl.cs: Make tab pages non visible when added to the
33514 2004-11-05 12:42 jackson
33516 * TabControl.cs: Implement SizeMode.FillToRight
33518 2004-11-05 12:16 jackson
33520 * Control.cs: Do not call CreateHandle if the handle is already
33523 2004-11-05 11:46 jackson
33525 * TabControl.cs: Remove superflous call to CalcTabRows
33527 2004-11-05 09:07 jackson
33529 * XplatUIX11.cs: Update for Mono.Posix changes
33531 2004-11-05 07:00 ravindra
33533 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
33536 2004-11-04 22:47 jba
33538 * ThemeWin32Classic.cs:
33539 - Fix Button rendering for FlatStyle = Flat or Popup
33540 - Fix RadioButton and CheckBox rendering when Appearance = Button
33541 (normal and flatstyle).
33542 - Correct outer rectangle color when drawing focus rectangle
33543 - Adjust button bounds to be 1 px smaller when focused
33544 - Make button not draw sunken 3d border when pushed (windows compat)
33545 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
33546 - Offset the text in RadioButton and Checkbox when being rendered as
33548 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
33550 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
33551 - Fixed disabled text rendering for normally rendered radiobuttons
33553 2004-11-04 10:26 jackson
33555 * TabControl.cs: Recalculate tab rows when resizing
33557 2004-11-04 07:47 jordi
33559 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
33560 collection completion, drawing issues, missing features
33562 2004-11-04 05:03 ravindra
33565 - We need to recalculate the Thumb area when
33566 LargeChange/maximum/minimum values are changed.
33567 - We set the 'pos' in UpdatePos() method to minimum, if it's less
33568 than minimum. This is required to handle the case if large_change is
33569 more than max, and use LargeChange property instead of large_change
33571 - We return max+1 when large_change is more than max, like MS does.
33573 2004-11-04 04:29 ravindra
33575 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
33576 - Changed default value signatures (prefixed all with ListView).
33577 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
33579 - Fixed calculations for ListViewItem and implemented Clone()
33582 2004-11-04 04:26 ravindra
33584 * Theme.cs, ThemeWin32Classic.cs:
33585 - Changed default ListView values signatures (prefixed all with
33587 - Fixed default size values for VScrollBar and HScrollBar.
33588 - Fixed DrawListViewItem method.
33590 2004-11-04 04:05 ravindra
33592 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
33594 2004-11-04 04:04 ravindra
33596 * ImageList.cs: Implemented the missing overload for Draw method.
33598 2004-11-03 19:29 jackson
33600 * TabControl.cs: Handle dropping rows on selection properly
33602 2004-11-03 11:59 jackson
33604 * TabControl.cs: remove debug code
33606 2004-11-03 11:52 jackson
33608 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
33609 the scrolly widgerywoo
33611 2004-11-02 13:52 jackson
33613 * TabControl.cs: Resize the tab pages and tabs when the tab control
33616 2004-11-02 13:40 jackson
33618 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
33619 selected tab to the bottom
33621 2004-11-02 13:39 jackson
33623 * TabPage.cs: Store the tab pages row
33625 2004-11-02 12:33 jordi
33627 * MenuItem.cs: fixes handle creation
33629 2004-11-02 11:42 jackson
33631 * TabControl.cs: signature fix
33633 2004-11-02 08:56 jackson
33635 * TabControl.cs: Calculate whether the tab is on an edge properly.
33636 Remove top secret debugging code
33638 2004-11-01 19:57 jackson
33640 * TabControl.cs: Add click handling, and proper sizing
33642 2004-11-01 19:47 jackson
33644 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
33647 2004-11-01 19:39 jackson
33649 * TabPage.cs: add internal property to store the bounds of a tab
33652 2004-10-30 04:23 ravindra
33654 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
33657 2004-10-30 04:21 ravindra
33659 * ListView.cs, ListViewItem.cs: Added support for scrolling and
33660 fixed calculations.
33662 2004-10-30 03:06 pbartok
33665 - Removed extension of DllImported libs
33667 2004-10-29 09:55 jordi
33669 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
33670 navigation, itemcollection completion, menu fixes
33672 2004-10-27 22:58 pbartok
33675 - Now throws a nice error message when no X display could be opened
33677 2004-10-26 13:51 jordi
33679 * ListView.cs: removes warning
33681 2004-10-26 03:55 ravindra
33683 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
33684 ThemeWin32Classic.cs: Some formatting for my last checkins.
33686 2004-10-26 03:36 ravindra
33688 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
33689 control and default values.
33691 2004-10-26 03:35 ravindra
33693 * Theme.cs: Added some default values for ListView control.
33695 2004-10-26 03:33 ravindra
33697 * ToolBar.cs: ToolBar should use the user specified button size, if
33698 there is any. Added a size_specified flag for the same.
33700 2004-10-26 03:33 ravindra
33702 * ColumnHeader.cs: Added some internal members and calculations for
33705 2004-10-26 03:32 ravindra
33707 * ListViewItem.cs: Calculations for ListViewItem.
33709 2004-10-26 03:31 ravindra
33711 * ListView.cs: Added some internal members and calculations for
33714 2004-10-22 13:31 jordi
33716 * MenuAPI.cs: speedup menus drawing
33718 2004-10-22 13:16 jackson
33720 * XplatUIX11.cs: Make sure to update exposed regions when adding an
33723 2004-10-22 11:49 jackson
33727 2004-10-22 11:41 jackson
33729 * Control.cs: Check to see if the window should have its background
33730 repainted by X when drawing.
33732 2004-10-22 11:31 jackson
33734 * XplatUIX11.cs: When invalidating areas only use XClearArea if
33735 clear is true, this way we do not get flicker from X repainting the
33738 2004-10-22 11:28 jackson
33740 * XEventQueue.cs: Queue properly
33742 2004-10-21 09:38 jackson
33744 * XEventQueue.cs: Fix access modifier
33746 2004-10-21 09:36 jackson
33748 * XEventQueue.cs: Don't loose messages
33750 2004-10-21 09:22 jackson
33752 * XEventQueue.cs: Don't loose messages
33754 2004-10-20 04:15 jordi
33756 * BootMode.cs: enum need it by SystemInfo
33758 2004-10-19 21:58 pbartok
33761 - Small sanity check
33763 2004-10-19 21:56 pbartok
33766 - Added private FormParentWindow class which acts as the container
33767 for our form and as the non-client area where menus are drawn
33768 - Added/Moved required tie-ins to Jordi's menus
33769 - Fixed/Implemented the FormStartPosition functionality
33771 2004-10-19 21:52 pbartok
33774 - Removed unneeded locals
33775 - Added code to all size and location properties to understand and
33776 deal with the parent container of Form
33778 2004-10-19 21:33 pbartok
33781 - Fixed to deal with new Form subclasses for menus
33783 2004-10-19 17:48 jackson
33785 * XEventQueue.cs: commit correct version of file
33787 2004-10-19 16:50 jackson
33789 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
33791 2004-10-19 16:15 jordi
33793 * MenuAPI.cs: MenuBarCalcSize returns the height
33795 2004-10-19 08:31 pbartok
33798 - Added missing call to PreProcessMessage before calling OnXXXKey
33801 2004-10-19 00:04 ravindra
33803 * ToolTip.cs: Fixed constructor.
33805 2004-10-18 09:31 jordi
33807 * MenuAPI.cs: menuitems in menubars do not have shortcuts
33809 2004-10-18 09:26 jordi
33811 * MenuItem.cs: fixes MenuItem class signature
33813 2004-10-18 08:56 jordi
33815 * MenuAPI.cs: prevents windows from showing in the taskbar
33817 2004-10-18 00:28 ravindra
33819 * ToolTip.cs: Suppressed a warning message.
33821 2004-10-18 00:27 ravindra
33823 * Control.cs: Default value of visible property must be true.
33825 2004-10-17 23:19 pbartok
33828 - Complete implementation
33830 2004-10-17 23:19 pbartok
33833 - Added EnableWindow method
33834 - Added SetModal stub
33835 - Added generation of WM_ACTIVATE message (still needs testing)
33836 - Added SetTopMost stub
33837 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
33839 2004-10-17 23:17 pbartok
33842 - Removed VirtualKeys to XplatUIStructs
33843 - Implemented SetTopMost method
33844 - Implemented EnableWindow method
33845 - Bugfix in ScreenToClient()
33846 - Bugfixes in ClientToScreen()
33848 2004-10-17 22:51 pbartok
33850 * XplatUIStructs.cs:
33851 - Added WS_EX styles to WindowStyles enumeration
33853 2004-10-17 22:50 pbartok
33855 * XplatUI.cs, XplatUIDriver.cs:
33856 - Added method for enabling/disabling windows
33857 - Added method for setting window modality
33858 - Added method for setting topmost window
33860 2004-10-17 22:49 pbartok
33862 * ThemeWin32Classic.cs:
33863 - Added ToolTip drawing code
33865 2004-10-17 22:49 pbartok
33868 - Added ToolTip abstracts
33870 2004-10-17 22:47 pbartok
33873 - Fixed Form.ControlCollection to handle owner relations
33874 - Added Owner/OwnedForms handling
33875 - Implemented Z-Ordering for owned forms
33876 - Removed unneeded private overload of ShowDialog
33877 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
33879 - Fixed Close(), had wrong default
33880 - Added firing of OnLoad event
33881 - Added some commented out debug code for Ownership handling
33883 2004-10-17 22:16 pbartok
33886 - Fixed/implemented flat list of controls
33888 2004-10-17 22:14 pbartok
33891 - Added code to simulate modal dialogs on Win32
33893 2004-10-17 16:11 jordi
33895 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
33898 2004-10-17 13:39 jordi
33900 * MenuAPI.cs: menu drawing fixes
33902 2004-10-15 09:10 ravindra
33904 * StructFormat.cs: General Enum.
33906 2004-10-15 09:09 ravindra
33908 * SizeGripStyle.cs: Enum for Form.
33910 2004-10-15 09:08 ravindra
33912 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
33913 in Theme for ListView.
33915 2004-10-15 09:06 ravindra
33917 * ColumnHeader.cs: Flushing some formatting changes.
33919 2004-10-15 09:05 ravindra
33921 * ListViewItem.cs: Implemented GetBounds method and fixed coding
33924 2004-10-15 09:03 ravindra
33926 * ListView.cs: Implemented Paint method and fixed coding style.
33928 2004-10-15 07:34 jordi
33930 * MenuAPI.cs: fix for X11
33932 2004-10-15 07:32 ravindra
33934 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
33935 - Renamed Paint() method to Draw() for clarity. Also, moved
33936 DrawImage() to OnPaint().
33938 2004-10-15 07:25 ravindra
33940 * CheckBox.cs, RadioButton.cs:
33941 - Removed Redraw (), we get it from ButtonBase.
33942 - Implemented Paint (), to do class specific painting.
33944 2004-10-15 07:16 ravindra
33947 - Redraw () is not virtual now.
33948 - Added an internal virtual method Paint (), so that
33949 derived classes can do their painting on their own.
33950 - Modified OnPaint () to call Paint ().
33952 2004-10-15 06:43 jordi
33954 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
33955 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
33957 2004-10-15 00:30 ravindra
33960 - MessageBox on windows does not have min/max buttons.
33961 This change in CreateParams fixes this on Windows. We
33962 still need to implement this windowstyle behavior in
33965 2004-10-14 05:14 ravindra
33968 - Changed Redraw () to do a Refresh () always.
33969 - Fixed the MouseMove event handling when mouse is pressed,
33970 ie drag event handling.
33971 - Replaced the usage of ToolBarButton.Pressed property to
33972 ToolBarButton.pressed internal variable.
33974 2004-10-14 05:10 ravindra
33976 * ToolBarButton.cs:
33977 - Added an internal member 'inside' to handle mouse move
33978 with mouse pressed ie mouse drag event.
33979 - Changed 'Pressed' property to return true only when
33980 'inside' and 'pressed' are both true.
33981 - Some coding style love.
33983 2004-10-14 00:17 ravindra
33985 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
33988 2004-10-14 00:15 ravindra
33990 * ButtonBase.cs: Redraw () related improvements.
33992 2004-10-14 00:14 ravindra
33994 * MessageBox.cs: Moved InitFormSize () out of Paint method and
33995 removed unnecessary calls to Button.Show () method.
33997 2004-10-13 17:50 pbartok
34001 - Removed destroying of window until we solve the problem of X
34002 destroying the window before us on shutdown
34004 2004-10-13 16:32 pbartok
34007 - Now Redraws on MouseUp for FlatStyle Flat and Popup
34009 2004-10-13 14:18 pbartok
34012 - Added code to destroy the X window
34014 2004-10-13 14:18 pbartok
34017 - Added code to destroy a window
34019 2004-10-13 14:12 pbartok
34022 - Added the Redraw on Resize that got dropped in the last rev
34024 2004-10-13 09:06 pbartok
34026 * ThemeWin32Classic.cs:
34027 - Path from John BouAntoun:
34028 * Fix check rendering (centre correctly for normal style, offset
34029 correctly for FlatStyle).
34030 * Fix border color usage (use backcolor) for FlatStyle.Popup
34031 * Use checkbox.Capture instead of checkbox.is_pressed when
34032 rendering flatstyle states.
34034 2004-10-12 21:48 pbartok
34036 * ThemeWin32Classic.cs:
34037 - Removed all occurences of SystemColors and replaced them with the
34038 matching theme color
34040 2004-10-12 21:41 pbartok
34042 * ThemeWin32Classic.cs:
34043 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
34044 him using the function for flatstyle drawing
34045 - Changed functions to use the new version of CPDrawBorder3D
34047 2004-10-12 21:15 pbartok
34050 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
34051 match MS documentation. They need to return defined colors if the
34052 passed color matches the configured control color. Thanks to John
34053 BouAntoun for pointing this out.
34055 2004-10-12 20:57 pbartok
34058 - Fix from John BouAntoun: Raise ForeColorChanged event when text
34061 2004-10-12 20:46 pbartok
34064 - Fix from John BouAntoun: Now properly sets the Appearance property
34066 2004-10-12 20:45 pbartok
34068 * ThemeWin32Classic.cs:
34069 - Fixes from John BouAntoun: now handles forecolors and backcolors
34070 for flatstyle rendered controls much better; It also fixes normal
34071 checkbox rendering when pushed or disabled.
34073 2004-10-08 02:50 jordi
34075 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
34078 2004-10-07 08:56 jordi
34080 * ThemeWin32Classic.cs: Removes deletion of cached brushes
34082 2004-10-06 03:59 jordi
34084 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
34085 XplatUIWin32.cs: removes warnings from compilation
34087 2004-10-05 12:23 jackson
34089 * RadioButton.cs: Fix ctor
34091 2004-10-05 11:10 pbartok
34094 - Partial implementation by Benjamin Dasnois
34096 2004-10-05 10:15 jackson
34098 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
34101 2004-10-05 03:07 ravindra
34104 - Removed a private method, Draw ().
34105 - Fixed the ButtonDropDown event handling.
34106 - Fixed MouseMove event handling.
34108 2004-10-05 03:04 ravindra
34110 * ThemeWin32Classic.cs:
34111 - Added DrawListView method and ListViewDefaultSize property.
34112 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
34113 - Changed DOS style CRLF to Unix format (dos2unix).
34115 2004-10-05 03:03 ravindra
34118 - Added DrawListView method and ListViewDefaultSize property.
34120 2004-10-05 02:42 ravindra
34122 * ToolBarButton.cs: Added an internal member dd_pressed to handle
34123 clicks on DropDown arrow.
34125 2004-10-04 22:56 jackson
34127 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
34128 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
34129 Control handle the buffers, derived classes should not have to
34130 CreateBuffers themselves.
34132 2004-10-04 21:20 jackson
34134 * StatusBar.cs: The control handles resizing the buffers now.
34136 2004-10-04 21:18 jackson
34138 * Control.cs: When resizing the buffers should be invalidated. This
34139 should be handled in Control not in derived classes.
34141 2004-10-04 14:45 jackson
34145 2004-10-04 02:14 pbartok
34147 * LeftRightAlignment.cs:
34150 2004-10-04 01:09 jordi
34152 * ThemeWin32Classic.cs: fixes right button position causing right
34153 button not showing on horizontal scrollbars
34155 2004-10-02 13:12 pbartok
34158 - Simplified the Invalidate method by using an X call instead of
34159 generating the expose ourselves
34160 - Added an expose when the window background is changed
34161 - Implemented ClientToScreen method
34163 2004-10-02 13:08 pbartok
34166 - Added Win32EnableWindow method (test for implementing modal
34168 - Added ClientToScreen method and imports
34170 2004-10-02 13:07 pbartok
34172 * XplatUI.cs, XplatUIDriver.cs:
34173 - Added ClientToScreen coordinate translation method
34175 2004-10-02 13:06 pbartok
34177 * KeyPressEventArgs.cs:
34178 - Fixed access level for constructor
34180 2004-10-02 13:06 pbartok
34183 - Changed access level for the window_collection hash table
34185 2004-10-02 13:05 pbartok
34188 - Added KeyPreview property
34189 - Added Menu property (still incomplete, pending Jordi's menu work)
34190 - Implemented ProcessCmdKey
34191 - Implemented ProcessDialogKey
34192 - Implemented ProcessKeyPreview
34194 2004-10-02 13:02 pbartok
34197 - Added private method to get the Control object from the window
34199 - Implemented ContextMenu property
34200 - Implemented PointToScreen
34201 - Implemented PreProcessMessage
34202 - Implemented IsInputChar
34203 - Implemented IsInputKey
34204 - Implemented ProcessCmdKey
34205 - Completed ProcessKeyEventArgs
34206 - Fixed message loop to call the proper chain of functions on key
34208 - Implemented ProcessDialogChar
34209 - Implemented ProcessDialogKey
34210 - Implemented ProcessKeyMessage
34211 - Implemented ProcessKeyPreview
34212 - Added RaiseDragEvent stub (MS internal method)
34213 - Added RaiseKeyEvent stub (MS internal method)
34214 - Added RaiseMouseEvent stub (MS Internal method)
34215 - Added RaisePaintEvent stub (MS Internal method)
34216 - Added ResetMouseEventArgs stub (MS Internal method)
34217 - Implemented RtlTranslateAlignment
34218 - Implemented RtlTranslateContent
34219 - Implemented RtlTranslateHorizontal
34220 - Implemented RtlTranslateLeftRight
34221 - Added generation of KeyPress event
34223 2004-10-02 05:57 ravindra
34225 * ListViewItem.cs: Added attributes.
34227 2004-10-02 05:32 ravindra
34229 * ListView.cs: Added attributes.
34231 2004-10-01 11:53 jackson
34233 * Form.cs: Implement the Close method so work on MessageBox can
34236 2004-09-30 14:06 pbartok
34241 2004-09-30 11:34 jackson
34243 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
34245 2004-09-30 07:26 ravindra
34247 * ListViewItemConverter.cs: Converter for ListViewItem.
34249 2004-09-30 07:26 ravindra
34251 * SortOrder.cs: Enum for ListView control.
34253 2004-09-30 07:25 ravindra
34255 * ColumnHeader.cs: Supporting class for ListView control.
34257 2004-09-30 07:24 ravindra
34259 * ListView.cs, ListViewItem.cs: Initial implementation.
34261 2004-09-30 07:20 ravindra
34263 * ItemActivation.cs: Enum for ListView Control.
34265 2004-09-29 20:29 pbartok
34268 - Added lookup of pixel value for background color; tries to get a
34269 color 'close' to the requested color, it avoids having to create a
34270 colormap. Depending on the display this could mean the used color
34271 is slightly off the desired color. Might have to change it to a more
34272 resource intensive colormap approach, but it will work as a
34273 workaround to avoid red screens.
34275 2004-09-29 14:27 jackson
34277 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
34279 2004-09-28 12:44 pbartok
34281 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
34282 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
34283 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
34284 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
34285 TrackBar.cs, VScrollBar.cs:
34286 - Streamlined Theme interfaces:
34287 * Each DrawXXX method for a control now is passed the object for
34288 the control to be drawn in order to allow accessing any state the
34289 theme might require
34291 * ControlPaint methods for the theme now have a CP prefix to avoid
34292 name clashes with the Draw methods for controls
34294 * Every control now retrieves it's DefaultSize from the current
34297 2004-09-28 12:17 jackson
34299 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
34302 2004-09-24 14:57 jackson
34304 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
34305 Gives us a nice little performance boost.
34307 2004-09-24 12:02 jackson
34309 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
34310 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
34311 Control and supporting classes. Initial checkin
34313 2004-09-23 13:08 jackson
34315 * Form.cs: Temp build fixage
34317 2004-09-23 01:39 ravindra
34319 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
34320 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
34321 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
34322 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
34323 EventHandlers needed by ListView Control.
34325 2004-09-22 14:12 pbartok
34327 * ScrollableControl.cs:
34328 - Implemented DockPadding property
34329 - Implemented AutoScroll property
34330 - Implemented AutoScrollMargin property
34331 - Implemented AutoScrollMinSize property
34332 - Implemented AutoScrollPosition property
34333 - Implemented DisplayRectangle property (still incomplete)
34334 - Implemented CreateParams property
34335 - Implemented HScroll property
34336 - Implemented VScroll property
34337 - Implemented OnVisibleChanged property
34339 2004-09-22 14:09 pbartok
34342 - Added Form.ControllCollection class
34343 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
34344 RemoveOwnedForm (still incomplete, missing on-top and common
34345 minimize/maximize behaviour)
34346 - Added StartPosition property (still incomplete, does not use when
34348 - Added ShowDialog() methods (still incomplete, missing forcing the
34351 2004-09-22 14:05 pbartok
34354 - Added message loop for modal dialogs
34356 2004-09-22 14:02 pbartok
34359 - Fixed wrong types for events
34361 2004-09-22 14:00 pbartok
34363 * Shortcut.cs, FormWindowState.cs:
34364 - Fixed wrong values
34366 2004-09-22 12:01 jackson
34368 * Control.cs: Text is never null
34370 2004-09-20 22:14 pbartok
34373 - Fixed accessibility level for Idle handler
34375 2004-09-20 18:54 jackson
34377 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34378 XplatUIX11.cs: New message loop that uses poll so we don't get a
34381 2004-09-17 10:43 pbartok
34384 - Fixed behaviour of arrow buttons. Now properly behaves like
34385 Buttons (and like Microsoft's scrollbar arrow buttons)
34387 2004-09-17 10:14 pbartok
34390 - Added missing release of keyboard/mouse capture
34392 2004-09-17 06:18 jordi
34394 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
34395 Theme.cs: Very early menu support
34397 2004-09-16 17:45 pbartok
34400 - Fixed sending a window to the front
34401 - Added overload for SetWindowPos to avoid casting
34403 2004-09-16 17:44 pbartok
34406 - Added SendToBack and BringToFront methods
34408 2004-09-16 07:00 ravindra
34410 * Copyright: Added Novell URL.
34412 2004-09-16 07:00 ravindra
34414 * ToolBar.cs: Invalidate should be done before redrawing.
34416 2004-09-15 21:19 ravindra
34418 * ColumnHeaderStyle.cs: Enum for ListView Control.
34420 2004-09-15 21:18 ravindra
34422 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
34425 2004-09-13 18:26 jackson
34427 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
34430 2004-09-13 18:13 jackson
34432 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
34433 a second thread and post messages into the main threads message
34434 queue. This makes timing much more consistent. Both win2K and XP
34435 have a minimum timer value of 15 milliseconds, so we now do this
34438 2004-09-13 15:18 pbartok
34440 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34442 - Added Z-Ordering methods
34444 2004-09-13 10:56 pbartok
34447 - Fixed #region names
34448 - Moved properties and methods into their proper #regions
34450 2004-09-13 10:51 pbartok
34453 - Added Accept and CancelButton properties
34454 - Added ProcessDialogKey() method
34456 2004-09-13 08:18 pbartok
34458 * IWindowTarget.cs:
34461 2004-09-10 21:50 pbartok
34464 - Added DoDragDrop() [incomplete]
34465 - Properly implemented 'Visible' handling
34466 - Added SetVisibleCore()
34467 - Implemented FindChildAtPoint()
34468 - Implemented GetContainerControl()
34469 - Implemented Hide()
34471 2004-09-10 19:28 pbartok
34474 - Moved methods into their appropriate #regions
34475 - Reordered methods within regions alphabetically
34477 2004-09-10 18:57 pbartok
34479 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34480 - Added method to retrieve text from window
34482 2004-09-10 18:56 pbartok
34485 - Moved some internal functions into the internal region
34486 - Implemented FontHeight
34487 - Implemented RenderRightToLeft
34488 - Implemented ResizeRedraw
34489 - Implemented ShowFocusCues
34490 - Implemented ShowKeyboardCues
34491 - Implemented FromChildHandle
34492 - Implemented FromHandle
34493 - Implemented IsMnemonic
34494 - Implemented ReflectMessage
34495 - All public and protected Static Methods are now complete
34497 2004-09-10 16:54 pbartok
34500 - Implemented remaining missing public instance properties
34501 - Alphabetized some out of order properties
34503 2004-09-10 05:51 ravindra
34505 * PictureBox.cs: Added a check for null image.
34507 2004-09-10 00:59 jordi
34509 * GroupBox.cs: remove cvs tag
34511 2004-09-09 05:25 ravindra
34513 * ToolBar.cs: Make redraw accessible from ToolBarButton.
34515 2004-09-09 05:23 ravindra
34517 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
34520 2004-09-09 02:28 pbartok
34522 * ThemeWin32Classic.cs:
34523 - Improve disabled string look
34525 2004-09-09 01:15 jordi
34527 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
34530 2004-09-08 23:56 ravindra
34532 * ItemBoundsPortion.cs: It's enum, not a class!
34534 2004-09-08 23:47 ravindra
34536 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
34539 2004-09-08 21:13 ravindra
34541 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
34544 2004-09-08 21:03 ravindra
34546 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
34549 2004-09-08 21:01 ravindra
34551 * ScrollableControl.cs: Removed unreachable code.
34553 2004-09-08 06:45 jordi
34555 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
34557 2004-09-08 01:00 jackson
34559 * XplatUIX11.cs: Only run the timers when updating the message
34560 queue. This effectively gives X messages a higher priority then
34561 timer messages. Timers still need love though
34563 2004-09-07 14:01 jackson
34565 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
34566 this for us and the handle is no longer valid.
34568 2004-09-07 13:59 jackson
34570 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
34571 loop that manages to not crash. TODO: Add poll and cleanup timers
34573 2004-09-07 11:12 jordi
34575 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
34577 2004-09-07 03:40 jordi
34579 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
34580 fixes, methods, multiple links
34582 2004-09-06 06:55 jordi
34584 * Control.cs: Caches ClientRectangle rectangle value
34586 2004-09-05 02:03 jordi
34588 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
34591 2004-09-04 11:10 jordi
34593 * Label.cs: Refresh when font changed
34595 2004-09-02 16:24 pbartok
34598 - Added sanity check to creation of double buffer bitmap
34600 2004-09-02 16:24 pbartok
34603 - Fixed selection of text color
34604 - Fixed handling of resize event; now properly recreates double
34606 - Added missing assignment of TextAlignment
34607 - Added proper default for TextAlignment
34609 2004-09-02 14:26 pbartok
34612 - Added missing RadioButton.RadioButtonAccessibleObject class
34614 2004-09-02 14:26 pbartok
34617 - Added missing Control.ControlAccessibleObject class
34618 - Started to implement Select()ion mechanisms, still very incomplete
34620 2004-09-02 14:25 pbartok
34622 * AccessibleObject.cs:
34623 - Added missing methods
34625 2004-09-02 14:23 pbartok
34627 * AccessibleNavigation.cs, AccessibleSelection.cs:
34630 2004-09-02 10:32 jordi
34632 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
34633 pool for pens, brushes, and hatchbruses
34635 2004-09-01 15:30 jackson
34637 * StatusBar.cs: Fix typo
34639 2004-09-01 14:44 pbartok
34644 2004-09-01 14:39 pbartok
34646 * Button.cs, RadioButton.cs:
34647 - Functional initial check-in
34649 2004-09-01 14:01 pbartok
34652 - Added missing default
34653 - Added missing region mark
34655 2004-09-01 09:10 jordi
34657 * Label.cs: fixes method signatures, new methods, events, fixes
34660 2004-09-01 07:19 jordi
34662 * Control.cs: Init string variables with an empty object
34664 2004-09-01 04:20 jordi
34666 * Control.cs: fires OnFontChanged event
34668 2004-08-31 20:07 pbartok
34671 - Enabled display of strings
34673 2004-08-31 20:05 pbartok
34676 - Added (partial) implementation of DialogResult; rest needs to be
34677 implemented when the modal loop code is done
34679 2004-08-31 19:55 pbartok
34682 - Fixed to match the removal of the needs_redraw concept
34684 2004-08-31 19:55 pbartok
34687 - Removed the rather odd split between 'needs redraw' and redrawing
34688 - Now handles the events that require regeneration (ambient
34689 properties and size)
34691 2004-08-31 19:41 pbartok
34694 - Added firing of BackColorChanged event
34695 - Added TopLevelControl property
34696 - Fixed handling of WM_ERASEBKGRND message
34698 2004-08-31 12:49 pbartok
34704 2004-08-31 12:48 pbartok
34707 - Finished (famous last words)
34709 2004-08-31 04:35 jordi
34711 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
34712 scrolling bugs, adds new methods
34714 2004-08-30 14:42 pbartok
34717 - Implemented CheckBox drawing code
34719 2004-08-30 14:42 pbartok
34722 - Made Redraw() and CheckRedraw() virtual
34723 - Improved mouse up/down/move logic to properly track buttons
34725 2004-08-30 09:44 pbartok
34728 - Updated to fix broken build. Not complete yet.
34730 2004-08-30 09:28 pbartok
34735 2004-08-30 09:17 pbartok
34740 2004-08-27 16:12 ravindra
34742 * ToolBarButton.cs: Added TypeConverter attribute.
34744 2004-08-27 16:07 ravindra
34746 * ImageIndexConverter.cs: Implemented.
34748 2004-08-27 14:17 pbartok
34751 - Removed unneeded stack vars
34752 - First attempt to fix sizing issues when layout is suspended
34754 2004-08-25 15:35 jordi
34756 * ScrollBar.cs: more fixes to scrollbar
34758 2004-08-25 14:04 ravindra
34760 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
34761 Added the missing divider code and grip for ToolBar Control.
34763 2004-08-25 13:20 pbartok
34766 - Control now properly passes the ambient background color to child
34769 2004-08-25 13:20 jordi
34771 * ScrollBar.cs: small bug fix regarding bar position
34773 2004-08-25 12:33 pbartok
34776 - Now only calls SetTimer or KillTimer if the enabled state has
34779 2004-08-25 12:33 pbartok
34782 - Fixed timer handling, now seems to work
34783 - Improved error message for window creation
34785 2004-08-25 12:32 pbartok
34788 - Fixed generation of MouseUp message
34790 2004-08-25 12:29 jordi
34792 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
34793 and fixes for progressbar
34795 2004-08-24 18:43 ravindra
34797 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
34798 in ToolBar control.
34800 2004-08-24 17:15 pbartok
34804 - Added missing events
34807 2004-08-24 17:14 pbartok
34809 * StatusBar.cs, PictureBox.cs:
34810 - Now uses Control's CreateParams
34812 2004-08-24 16:36 pbartok
34815 - Fixed background color handling
34816 - Fixed sending of enter/leave events on a grab
34818 2004-08-24 16:35 pbartok
34821 - Refined definitions for CrossingEvent
34823 2004-08-24 12:37 jordi
34825 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
34826 formmating, methods signature, and adds missing events
34828 2004-08-24 12:24 jordi
34830 * Control.cs: fire OnEnabledChanged event
34832 2004-08-24 11:17 pbartok
34835 - Implemented SetTimer() and KillTimer()
34837 2004-08-24 11:16 pbartok
34840 - Now uses Remove instead of Add to kill the timer
34842 2004-08-24 10:16 jackson
34844 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
34845 picture boxes in the theme now. Draw picture box borders and obey
34848 2004-08-24 05:49 jackson
34850 * Timer.cs: Remove top secret debugging code
34852 2004-08-24 05:34 jackson
34854 * PictureBox.cs: Temp hack to make picture boxes draw their full
34857 2004-08-24 05:29 jackson
34859 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34860 XplatUIX11.cs: Move timers to the driver level. On X they are
34861 queued by the driver and checked on idle.
34863 2004-08-24 01:07 jackson
34865 * XplatUIX11.cs: Use a queue for async messages instead of passing
34866 them as ClientMessages since that was totally broken. Also simply
34867 check for events and return an idle message if none are found. This
34868 gives us an idle handler, and prevents deadlocking when no messages
34871 2004-08-23 18:19 ravindra
34873 * XplatUIWin32.cs: Removed the unwanted destructor.
34875 2004-08-23 17:27 pbartok
34878 - Finishing touches. Works now, just needs some optimizations.
34880 2004-08-23 16:53 jordi
34882 * ScrollBar.cs: small fix
34884 2004-08-23 16:45 pbartok
34887 - Removed debug output
34890 2004-08-23 16:43 jordi
34892 * ScrollBar.cs: [no log message]
34894 2004-08-23 16:10 pbartok
34897 - Fixed handling of WM_CLOSE message
34898 - Removed debug output
34900 2004-08-23 16:09 pbartok
34903 - Added handling of Idle event
34904 - Added handling of form closing
34905 - Fixed reporting of MessageLoop property
34906 - Removed some unneeded code, should provide a bit of a speedup
34908 2004-08-23 15:22 pbartok
34911 - Added InitLayout() method
34912 - Added code to properly perform layout when Anchor or Dock property
34914 - Changed 'interpretation' of ResumeLayout. MS seems to have a
34915 LAMESPEC, tried to do it in a way that makes sense
34917 2004-08-23 14:10 jordi
34919 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
34920 properties and methods
34922 2004-08-23 13:55 pbartok
34925 - Properly fixed Jordi's last fix
34926 - Now uses Cursor's Position property instead of calling XplatUI
34929 2004-08-23 13:44 jordi
34931 * PaintEventHandler.cs: Adding missing attribute
34933 2004-08-23 13:39 pbartok
34936 - Implemented Position property
34938 2004-08-23 13:39 pbartok
34940 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34941 - Added method to move mouse cursor
34943 2004-08-23 13:39 pbartok
34946 - Fixed setting of background color
34947 - Added method to move mouse cursor
34949 2004-08-23 13:16 jordi
34951 * Control.cs: avoids null exception
34953 2004-08-22 17:46 jackson
34955 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
34958 2004-08-22 17:40 jackson
34960 * XplatUIX11.cs: Add some missing locks
34962 2004-08-22 15:10 pbartok
34964 * Control.cs, Form.cs:
34965 - Removed OverlappedWindow style from Control, instead it's default
34967 - Made form windows OverlappedWindow by default
34969 2004-08-22 13:34 jackson
34971 * ScrollBar.cs: Update the position through the Value property so
34972 the OnValueChanged event is raised.
34974 2004-08-22 12:04 pbartok
34977 - Added Cursor.cs and UserControl.cs
34979 2004-08-22 12:03 pbartok
34982 - Started implementation, not usable yet
34984 2004-08-22 12:00 pbartok
34987 - Implemented UserControl (complete)
34989 2004-08-21 19:20 ravindra
34991 * ToolBar.cs: Correcting the formatting mess of VS.NET.
34993 2004-08-21 18:49 ravindra
34995 * ToolBar.cs: Probably this completes the missing attributes in
34998 2004-08-21 18:03 ravindra
35000 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
35001 Fixed toolbar control signatures.
35003 2004-08-21 16:32 pbartok
35008 2004-08-21 16:30 pbartok
35013 2004-08-21 16:19 pbartok
35015 * Control.cs, Label.cs:
35018 2004-08-21 15:57 pbartok
35021 - Added loads of debug output for development
35022 - Fixed typo in method name
35024 2004-08-21 15:52 pbartok
35026 * ToolBarButtonClickEventArgs.cs:
35027 - Added missing base class
35029 2004-08-21 14:53 pbartok
35032 - Updated to match new GrabWindow signature
35034 2004-08-21 14:51 pbartok
35036 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35037 - Added method to get default display size
35039 2004-08-21 14:23 pbartok
35041 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35042 - Added method to query current grab state
35043 - Added argument to allow confining a grab to a window
35045 2004-08-21 14:22 pbartok
35048 - Added [Flags] attribute so that modifiers can be used in bitwise
35051 2004-08-21 14:21 pbartok
35053 * TrackBar.cs, ScrollBar.cs:
35054 - Replaced direct XplatUI calls with their Control counterpart
35056 2004-08-21 13:32 pbartok
35059 - Implemented Created property
35061 2004-08-21 13:28 pbartok
35064 - Implemented ContainsFocus
35066 2004-08-21 13:26 pbartok
35069 - Implemented CausesValidation
35071 2004-08-21 13:21 pbartok
35074 - Implemented CanFocus
35075 - Implemented CanSelect
35076 - Implemented Capture
35078 2004-08-21 12:35 pbartok
35081 - Fixed bug with Async message handling
35082 - Implemented getting the ModifierKeys
35084 2004-08-21 12:32 jackson
35086 * AsyncMethodResult.cs: Make sure we have the mutex before we
35087 release it. Fixes BeginInvoke on windows
35089 2004-08-21 11:31 pbartok
35091 * XplatUIWin32.cs, XplatUIX11.cs:
35092 - Drivers now return proper mouse state
35094 2004-08-21 10:54 jackson
35096 * Control.cs: Implement EndInvoke
35098 2004-08-21 10:48 jackson
35100 * Timer.cs: Remove unneeded finalizer
35102 2004-08-20 19:52 ravindra
35104 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
35105 in mouse event handling in the ToolBar control.
35107 2004-08-20 19:50 ravindra
35109 * ImageList.cs: Changed draw method to use the arguments passed in
35112 2004-08-20 18:58 pbartok
35114 * XplatUIStructs.cs:
35115 - Added private message for async communication
35117 2004-08-20 17:38 ravindra
35119 * Control.cs: Made RightToLeft property virtual and removed a
35122 2004-08-20 14:39 jordi
35124 * ThemeGtk.cs: use style_attach
35126 2004-08-20 14:39 pbartok
35129 - Added jackson's Async code from X11 to Win32
35131 2004-08-20 14:09 pbartok
35134 - Added all new files
35136 2004-08-20 14:09 pbartok
35139 - Added call to set window background color
35141 2004-08-20 14:03 pbartok
35143 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35144 - Added method for setting the window background
35146 2004-08-20 14:02 pbartok
35149 - Added method for setting the background color
35150 - Added handling for erasing the window background
35152 2004-08-20 13:45 jordi
35154 * TrackBar.cs: fixes timer, new properties and methods
35156 2004-08-20 13:34 jackson
35158 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
35161 2004-08-20 13:22 jackson
35163 * Timer.cs: Timer Tick events are now handed through Controls Async
35164 mechanism so the callbacks are executed in the same thread as X
35166 2004-08-20 13:19 jackson
35168 * XplatUIDriver.cs: Expose functionality to send async messages
35171 2004-08-20 13:18 jackson
35173 * Control.cs: Implement Begininvoke
35175 2004-08-20 13:14 jackson
35177 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
35178 messages through the driver
35180 2004-08-20 13:12 jackson
35182 * XplatUIX11.cs: Lock before all X operations. Also added Async
35183 method functionality through XSendEvent
35185 2004-08-20 13:11 jackson
35187 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
35188 This will screw up on 64 bit systems)
35190 2004-08-20 13:10 jackson
35192 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
35193 Async messages through X/Win32
35195 2004-08-19 19:39 pbartok
35198 - Updated code to match new HandleData.DeviceContext type
35200 2004-08-19 19:38 pbartok
35203 - Made DeviceContext a generic object to allow usage from various
35205 - Added support for queueing Windows messages
35207 2004-08-19 19:37 pbartok
35210 - Added generation of MouseEnter, MouseLeave and MouseHover events
35211 - Added cleanup on EndPaint
35213 2004-08-19 19:17 pbartok
35216 - Added handling of WM_MOUSEHOVER
35217 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
35220 2004-08-19 18:55 jordi
35222 * ThemeGtk.cs: fixes button order
35224 2004-08-19 18:12 jordi
35226 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
35228 2004-08-19 17:09 pbartok
35231 - Added Right property
35232 - Added RightToLeft property
35234 2004-08-19 16:27 jordi
35236 * ThemeGtk.cs: experimental GTK theme support
35238 2004-08-19 16:26 jordi
35240 * ITheme.cs, Theme.cs: move themes from an interface to a class
35242 2004-08-19 16:25 jordi
35244 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
35247 2004-08-19 16:04 pbartok
35250 - Added colormap basics
35251 - Added a way to re-initialize with a different display handle
35252 - Fixed setting of the window background color
35253 - Added various X11 imports related to colors and colormaps
35255 2004-08-19 15:51 pbartok
35258 - Removed packing hints (Paolo suggested this a while back)
35259 - fixed colormap type
35260 - Added default Atom types
35261 - Added Screen and color structs and enums
35263 2004-08-19 15:39 pbartok
35266 - Added missing Draw() method
35267 - Added missing RecreateHandle event
35269 2004-08-19 15:30 pbartok
35272 - Added handling of WM_CLOSE
35274 2004-08-18 13:16 jordi
35276 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
35279 2004-08-18 09:56 jordi
35281 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
35283 2004-08-17 15:31 ravindra
35285 * SWF.csproj: Updated project.
35287 2004-08-17 15:25 pbartok
35290 - Drawing improvement; don't call UpdateBounds if we are not visible
35291 (or have been minimized)
35293 2004-08-17 15:24 pbartok
35296 - Finished IsVisible
35297 - Added Win32GetWindowPlacement
35299 2004-08-17 15:08 jackson
35301 * Panel.cs: Initial checkin of the Panel
35303 2004-08-17 14:25 pbartok
35306 - Fixed broken handling of default window sizes
35308 2004-08-17 13:29 jackson
35310 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
35311 has a large startup time.
35313 2004-08-17 10:25 jackson
35315 * HandleData.cs: union areas properly
35317 2004-08-17 10:12 jackson
35319 * HandleData.cs: union areas properly
35321 2004-08-16 20:00 ravindra
35323 * ToolBar.cs, ToolBarButton.cs: Added attributes.
35325 2004-08-16 18:48 ravindra
35327 * ToolBar.cs: Added attributes.
35329 2004-08-16 17:17 ravindra
35331 * SWF.csproj: Updated project.
35333 2004-08-16 17:16 jackson
35335 * XplatUIX11.cs: Check for more expose events before sending a
35336 WM_PAINT so they can all be grouped together. This makes dragging a
35337 window across another window redraw in a sane way.
35339 2004-08-16 15:47 pbartok
35342 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
35343 support OnMouseEnter/Leave()
35344 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
35347 2004-08-16 15:46 pbartok
35349 * XplatUIStructs.cs, XplatUIX11.cs:
35350 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
35351 OnMouseEnter/Leave()
35353 2004-08-16 15:34 jackson
35355 * XplatUIX11.cs: Group multiple expose events in HandleData, make
35356 sure messages get the message field set to WM_NULL if they are not
35359 2004-08-16 15:24 jackson
35361 * HandleData.cs: HandleData is used for storing message information
35364 2004-08-15 17:23 ravindra
35366 * ColorDepth.cs: Added attribute.
35368 2004-08-15 17:23 ravindra
35370 * SWF.csproj: Updated project for ToolBar Control.
35372 2004-08-15 17:20 ravindra
35374 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
35375 control and also dos2unix format.
35377 2004-08-15 17:13 ravindra
35379 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
35380 ToolBarButtonClickEventArgs.cs,
35381 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
35382 ToolBarTextAlign.cs: First Implementation of ToolBar control.
35384 2004-08-15 15:31 pbartok
35387 - First (mostly) working version
35389 2004-08-13 16:15 pbartok
35392 - Fixed Anchor default
35394 2004-08-13 15:43 pbartok
35397 - Changed GetCursorPos signature
35399 2004-08-13 15:42 pbartok
35401 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35402 - Changed signature for GetCursorPos
35404 2004-08-13 15:25 pbartok
35408 - Fixed resizing/exposure handling
35410 2004-08-13 15:22 jordi
35412 * ThemeWin32Classic.cs: removes redundant code and fixes issues
35415 2004-08-13 14:55 jordi
35417 * TrackBar.cs: change from wndproc to events
35419 2004-08-13 13:00 jordi
35421 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35422 XplatUIX11.cs: implements PointToClient (ScreenToClient)
35424 2004-08-13 12:53 pbartok
35427 - Changed GetWindowPos to also provide client area size
35428 - Fixed broken prototypes for several win32 functions
35430 2004-08-13 12:53 pbartok
35432 * XplatUI.cs, XplatUIDriver.cs:
35433 - Changed GetWindowPos to also provide client area size
35435 2004-08-13 12:52 pbartok
35438 - Added generation of WM_POSCHANGED
35439 - Changed GetWindowPos to also provide client area size
35441 2004-08-13 12:52 pbartok
35444 - Added Dispose() and destructor
35445 - Fixed resizing and bounds calculation
35447 - Added memory savings for invisible windows
35449 2004-08-13 12:46 jordi
35451 * TrackBar.cs: adds timer and grap window
35453 2004-08-13 10:25 jackson
35455 * Timer.cs: SWF Timer
35457 2004-08-12 16:59 pbartok
35459 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35460 - Implemented method to get current mouse position
35462 2004-08-12 14:29 jordi
35464 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
35465 enhancement, fix mouse problems, highli thumb, etc
35467 2004-08-12 13:31 pbartok
35470 - Fixed Anchoring bugs
35472 2004-08-12 13:01 jackson
35474 * StatusBar.cs: Don't forget things
35476 2004-08-12 12:54 jackson
35478 * ThemeWin32Classic.cs: Handle owner draw status bars
35480 2004-08-12 12:54 jackson
35482 * StatusBar.cs: Implement missing properties, events, and methods.
35483 Handle mouse clicking
35485 2004-08-12 10:19 jackson
35487 * StatusBarPanelClickEventArgs.cs,
35488 StatusBarPanelClickEventHandler.cs: Classes for handling status
35489 bar panel click events
35491 2004-08-12 10:10 jackson
35493 * Control.cs: Add missing properties
35495 2004-08-12 09:46 pbartok
35497 * BindingsManagerBase.cs:
35498 - Name changed to BindingManagerBase.cs
35500 2004-08-12 09:25 jordi
35502 * ScrollableControl.cs: calls ctrlbase instead of exeception
35504 2004-08-11 16:28 pbartok
35506 * InputLanguageChangingEventArgs.cs:
35507 - Never check in before compiling. Fixes the last check-in
35509 2004-08-11 16:26 pbartok
35511 * InputLanguageChangingEventArgs.cs:
35512 - More signature fixes
35514 2004-08-11 16:20 pbartok
35516 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
35517 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
35518 ImageListStreamer.cs, InputLanguage.cs,
35519 InputLanguageChangedEventArgs.cs,
35520 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
35521 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
35522 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
35523 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35526 2004-08-11 16:16 pbartok
35530 - Added .Net 1.1 method
35532 2004-08-11 15:25 pbartok
35535 - Fixed BindingManagerBase.cs filename
35537 2004-08-11 15:22 pbartok
35539 * BindingManagerBase.cs:
35540 - Was checked in with wrong filename
35542 2004-08-11 14:50 pbartok
35547 2004-08-11 13:41 jordi
35549 * XplatUIWin32.cs: Fixes ClientRect
35551 2004-08-11 13:19 pbartok
35553 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35555 - We had SetWindowPos and MoveWindow to set window positions and
35556 size, removed MoveWindow. We have GetWindowPos, so it made sense to
35557 keep SetWindowPos as matching counterpart
35558 - Added some X11 sanity checking
35560 2004-08-11 12:59 pbartok
35563 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
35564 (It seems that SetBounds is just a front for SetBoundsCore and
35565 SetBoundsCore updates the underlying window system and
35566 UpdateBounds is responsible for updating the variables associated
35567 with the Control and sending the events)
35568 - Major cleanup of Size handling; we now have two sizes, client_size
35569 and bounds. Bounds defines the window with decorations, client_size
35572 2004-08-11 12:55 pbartok
35574 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35575 - Added method to calculate difference between decorated window and
35578 2004-08-11 12:54 pbartok
35581 - Forcing redraw on resize
35583 2004-08-11 11:43 pbartok
35586 - Removed disposing of the actual images when the list is disposed
35588 2004-08-11 09:13 pbartok
35591 - Now properly reparents windows
35593 2004-08-11 08:37 pbartok
35598 2004-08-11 07:47 pbartok
35601 - Rewrote the collection stuff. Might not be as fast now, not
35602 keeping the number of children around and accessible directly, but
35603 it's more straightforward
35605 2004-08-11 07:44 pbartok
35607 * AccessibleObject.cs:
35608 - Fixed to match ControlCollection rewrite
35610 2004-08-11 07:43 pbartok
35613 - Added missing creation of the collection list
35615 2004-08-10 20:08 jackson
35617 * StatusBar.cs: Get the paint message from WndProc
35619 2004-08-10 19:31 jackson
35621 * ThemeWin32Classic.cs: Create Brushes as little as possible
35623 2004-08-10 19:20 jackson
35625 * UICues.cs: Add Flags attribute
35627 2004-08-10 19:19 jackson
35629 * StatusBarPanel.cs: Signature cleanup
35631 2004-08-10 19:10 jackson
35633 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
35634 Initial implementation of status bar item drawing
35636 2004-08-10 17:27 jordi
35638 * TrackBar.cs: add missing methods, properties, and restructure to
35641 2004-08-10 16:24 jackson
35643 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
35644 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
35647 2004-08-10 13:21 jordi
35649 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
35650 enhancements and standarize on win colors defaults
35652 2004-08-10 12:52 jackson
35654 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
35655 ThemeWin32Classic.cs: Implement DrawItem functionality
35657 2004-08-10 12:47 jordi
35659 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
35661 2004-08-10 12:32 jordi
35663 * Control.cs: throw ontextchange event
35665 2004-08-10 11:43 pbartok
35668 - Added more to the still unfinished Dock/Anchor layout code
35670 2004-08-10 11:39 pbartok
35672 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35673 - Added GetWindowPos method
35675 2004-08-10 11:36 pbartok
35678 - Implemented several methods
35680 2004-08-10 09:47 jackson
35682 * TrackBar.cs: Allow control to handle buffering
35684 2004-08-10 09:41 jackson
35686 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
35688 2004-08-10 09:24 jackson
35690 * Label.cs, LinkLabel.cs: Let Control handle buffering.
35692 2004-08-10 09:09 jackson
35694 * StatusBar.cs: Let Control handle all the buffering.
35696 2004-08-10 09:08 jackson
35698 * Control.cs: Control will now handle the buffering code, so each
35699 control does not have to implement this.
35701 2004-08-10 08:34 jackson
35703 * XplatUIDriver.cs: Use default colors from the theme
35705 2004-08-09 17:12 pbartok
35708 - Fixed several bugs Ravindra pointed out
35710 2004-08-09 16:11 pbartok
35713 - Added incomplete dock layout code
35714 - Added support for mouse wheel
35716 2004-08-09 16:09 pbartok
35719 - Added handling for middle and right mousebutton
35720 - Added handling for mouse wheel
35721 - Added handling for key state and mouse state and position
35722 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
35725 2004-08-09 15:40 jackson
35727 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
35728 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
35731 2004-08-09 15:37 jackson
35733 * StatusBar.cs: Initial implementation of StatusBar
35735 2004-08-09 15:36 jackson
35737 * ITheme.cs: Add support for drawing status bar and getting status
35740 2004-08-09 15:35 pbartok
35745 2004-08-09 15:34 jackson
35747 * ThemeWin32Classic.cs: Add support for drawing status bar and get
35748 status bar item sizes
35750 2004-08-09 15:21 jackson
35752 * ThemeWin32Classic.cs: Use known colors for default control
35755 2004-08-09 15:12 jackson
35757 * ThemeWin32Classic.cs: Make the default font static, it is static
35758 in control so this doesn't change functionality and creating fonts
35761 2004-08-09 14:56 pbartok
35764 - Added GrabMode enum
35766 2004-08-09 14:55 pbartok
35768 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35769 - Removed Run method, was only required for initial development
35771 2004-08-09 14:51 pbartok
35773 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35774 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
35777 2004-08-09 13:48 pbartok
35780 - Fixed default sizing for child windows
35782 2004-08-09 12:56 pbartok
35785 - Added generation of WM_DESTROY message
35786 - Added handling of window manager induced shutdown
35788 2004-08-09 11:31 jackson
35790 * ThemeWin32Classic.cs: New names for control properties
35792 2004-08-09 11:25 jackson
35794 * Control.cs: Use new color names
35796 2004-08-09 11:02 jackson
35798 * XplatUI.cs: Get default window properties from the theme
35800 2004-08-09 11:01 jackson
35802 * ITheme.cs: The theme engine now controls default window
35805 2004-08-09 11:00 jackson
35807 * ThemeWin32Classic.cs: Add default window color properties
35809 2004-08-09 10:17 jackson
35811 * ThemeWin32Classic.cs: Use correct default back color
35813 2004-08-09 10:05 jackson
35815 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
35818 2004-08-09 09:56 jackson
35820 * XplatUI.cs: Remove defaults, these are handled by the theme now.
35822 2004-08-09 09:54 jackson
35824 * Control.cs: Get default properties from the theme.
35826 2004-08-09 09:53 jackson
35828 * ITheme.cs: Themes now handle default control properties
35830 2004-08-09 09:53 jackson
35832 * ThemeWin32Classic.cs: Themes now handle default control
35833 properties so coloring will be consistent
35835 2004-08-08 16:54 jordi
35837 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
35839 2004-08-08 15:08 jordi
35841 * XplatUIX11.cs: fixes keyboard crash
35843 2004-08-08 13:47 jordi
35845 * Label.cs: add cvs header info
35847 2004-08-08 12:09 jackson
35849 * ThemeWin32Classic.cs: Add pen_buttonface
35851 2004-08-08 11:52 jordi
35853 * Label.cs, LinkLabel.cs: [no log message]
35855 2004-08-08 11:34 jordi
35857 * ThemeWin32Classic.cs: Use Windows Standard Colours
35859 2004-08-07 17:32 jordi
35861 * TrackBar.cs: throw exceptions of invalid enums values
35863 2004-08-07 17:31 jordi
35865 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
35868 2004-08-07 16:56 jackson
35870 * HorizontalAlignment.cs: Initial checkin
35872 2004-08-07 13:16 jordi
35874 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
35877 2004-08-07 13:05 jordi
35879 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
35880 GetSysColor defines
35882 2004-08-06 18:01 pbartok
35884 * ThemeWin32Classic.cs:
35885 - Fixed some rounding issues with float/int
35887 2004-08-06 18:00 jackson
35889 * DockStyle.cs, AnchorStyles.cs:
35891 Add flags and serializable attributes.
35893 2004-08-06 17:46 pbartok
35896 - Implemented GetParent
35898 2004-08-06 17:18 pbartok
35901 - Fixed some rounding issues with float/int
35903 2004-08-06 17:17 pbartok
35905 * X11Structs.cs, XplatUIX11.cs:
35906 - Fixed Refresh and Invalidate
35908 2004-08-06 15:30 pbartok
35910 * Control.cs, X11Structs.cs, XplatUIX11.cs:
35911 - Fixed recursive loop when resizing
35912 - Improved/fixed redrawing on expose messages
35914 2004-08-06 09:53 jordi
35916 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
35917 keyboard navigation
35919 2004-08-06 08:02 pbartok
35921 * X11Structs.cs, XplatUIX11.cs:
35922 - Fixed reparenting
35923 - Fixed window border creation
35925 2004-08-05 15:38 pbartok
35928 - Attempted fix for reparenting problems
35930 2004-08-04 15:14 pbartok
35933 - Fixed Invalidation bug (calculated wrong client area)
35934 - Added ClientSize setter
35936 2004-08-04 15:13 pbartok
35939 - Added AutoScale properties
35941 2004-08-04 15:13 pbartok
35944 - Added latest files
35946 2004-08-04 14:11 pbartok
35948 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35950 - Added Invalidate handling
35952 2004-08-03 17:09 jordi
35954 * XplatUIDriver.cs: fixes spelling mistake
35956 2004-07-27 09:53 jordi
35958 * TrackBar.cs: fixes trackbar events, def classname, methods
35961 2004-07-27 09:29 jordi
35963 * ScrollBar.cs: fixes scrollbar events
35965 2004-07-27 04:38 jordi
35967 * Control.cs: changes to be able to run winforms samples
35969 2004-07-26 11:42 jordi
35971 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
35972 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
35974 2004-07-26 05:41 jordi
35976 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
35977 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
35980 2004-07-22 09:22 jordi
35982 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
35983 check link overlapping, implement events, and fixes
35985 2004-07-21 10:28 jordi
35987 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
35989 2004-07-21 10:19 jordi
35991 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
35992 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
35993 LinkLabelLinkClickedEventArgs.cs,
35994 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
35995 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
35998 2004-07-19 13:09 jordi
36000 * Control.cs, Label.cs: label control re-written: added missing
36001 functionlity, events, and properties
36003 2004-07-19 10:49 jordi
36005 * Control.cs: fixes SetBounds logic
36007 2004-07-19 01:29 jordi
36009 * Control.cs: Call RefreshWindow only if the window has created
36011 2004-07-15 14:05 pbartok
36013 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
36014 - Implemented ImageList and ImageList.ImageCollection classes
36015 - Added ColorDepth enumeration
36016 - Updated SWF VS.Net project
36018 2004-07-15 11:06 jordi
36020 * XplatUIStructs.cs: added MsgButons enum
36022 2004-07-15 11:03 jordi
36024 * Control.cs: added basic mouse handeling events
36026 2004-07-15 03:38 jordi
36028 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
36029 Vertical TrackBar control implementation
36031 2004-07-13 09:33 jordi
36033 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
36035 2004-07-13 09:31 jordi
36037 * Control.cs, Form.cs: commit: new properties and fixes form size
36040 2004-07-09 14:13 miguel
36042 * ProgressBar.cs: Spelling
36044 2004-07-09 11:25 pbartok
36047 - Removed usage of Rectangle for drawing. Miguel pointed out it's
36050 2004-07-09 11:17 miguel
36052 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
36054 * ProgressBar.cs: Fixed spelling for `block'
36056 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
36059 Avoid using the += on rect.X, that exposed a bug in the compiler.
36061 2004-07-08 23:21 pbartok
36063 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
36064 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
36065 BaseCollection.cs, Binding.cs, BindingContext.cs,
36066 BindingMemberInfo.cs, BindingsCollection.cs,
36067 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
36068 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
36069 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
36070 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
36071 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
36072 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
36073 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
36074 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
36075 FrameStyle.cs, GiveFeedbackEventArgs.cs,
36076 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
36077 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
36078 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
36079 InputLanguageChangedEventArgs.cs,
36080 InputLanguageChangedEventHandler.cs,
36081 InputLanguageChangingEventArgs.cs,
36082 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
36083 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
36084 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
36085 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
36086 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
36087 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
36088 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
36089 QueryAccessibilityHelpEventArgs.cs,
36090 QueryAccessibilityHelpEventHandler.cs,
36091 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
36092 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
36093 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
36094 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
36095 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
36096 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
36097 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
36098 XplatUIX11.cs, lang.cs: