1 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
3 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
5 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
7 * ErrorProvider.cs: Unbreak my previous commit.
9 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
11 * ErrorProvider.cs: Icon should always be 16x16.
14 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
16 * GridEntry.cs: Invalidate the child items cache when the property
19 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
21 * GridEntry.cs, PropertyGridView.cs:
22 - Update the ReadOnly detection and rendering to finally hopefully
23 match the one of MSFT.
24 - Niceify and move the debug CWLS.
27 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
29 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
30 PropertyGridView.sc: Implement lazy/delayed propertygrid population
31 on item expansion. Improves performance and fixes bug #417955.
34 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
36 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
37 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
38 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
39 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
40 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
41 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
45 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
47 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
48 to Windows when creating a window, as we fake MDI stuffs.
51 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
53 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
56 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
58 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
61 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
63 * ErrorProvider.cs: Fix a regression NRE when setting properties
64 for a control before it has a parent.
67 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
69 * LinkLabel.cs: Always clear any previous links when LinkArea
70 is set. [Fixes bug #410709]
72 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
74 * X11Keyboard.cs : comment out some Console.WriteLine().
76 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
78 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
79 even if premises are not filled. Also XLookupString() was not
80 receiving correct input, which blocked precise input handling
83 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
85 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
86 it caused timer registration twice. Fixed bug #418107.
88 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
90 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
91 ComponentModel layer, which will properly prioritize the attributes.
92 Avoids wrong prioritization of duplicate attributes when retrieving
93 the converter and editor.
96 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
98 * GridEntry.cs: Perform stricter check for the ParentEntry's
99 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
103 2008-08-14 Geoff Norton <gnorton@novell.com>
105 * XplatUICarbon.cs: Track the ActiveWindow internally for GetActive().
106 Don't prematurely display POPUP windows. Fully fixed #393317.
108 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
110 * XplatUIX11.cs: Handle the obscured regions while scrolling using
111 GraphicsExpose event, processing it just after we copy the scrolled
112 area. This ensures that the next calls to ScrollWindow will copy
113 regions already updated, and the scrolling will be smooth. Also remove
114 the code that was trying to detect the obscured regions, since we are
115 not using it anymore (too slow).
117 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
119 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
120 MultiExtended mode, by separating some logic between the ctrl/shift
121 handling. Also ignore any MouseMove events generated together with
122 MouseDown events - we are only interested in the real motion event.
123 Fixes part of #414963.
125 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
127 * XplatUIX11.cs: When getting EnterNotify with mode other than
128 NotifyNormal (pseudo motion events), ignore them as we used to do
129 before, since it's breaking our selection code and some drag and drop
130 operations, because of the confusion of generating extra events (not
133 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
135 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
136 is selected. [Fixes bug #414143]
138 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
140 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
141 and not the parent one (the propertyowner). Fixes the behavior of
142 GetConverter/GetEditor.
145 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
147 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
148 [Fixes part of bug #415452]
150 2008-08-07 Andreia Gaita <avidigal@novell.com>
152 * WebBrowser.cs: Remove extraneous CWL. Fixes #411372 (partially)
154 2008-08-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
156 * ListBox.cs: Selection changes made in the MouseDown handler should
157 use the *Core versions of selection in SelectedIndices collection,
158 since the SelectedIndexChanged/SelectedValueChanged events are fired
159 until we get a MouseUp event, and thus we need to separate the logic
160 from the events, as done in the keyboard navigation. Also, fire those
161 selection events from keyboard navigation in SelectionMode.None, even
162 if we don't have a selection, as .Net does.
164 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
166 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
167 GridEntry, not the current.
170 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
172 * TextBoxBase.cs: De-internalize max_length field.
173 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
174 share the same logic.
177 2008-08-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
180 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
181 order to set the value as required (which means: when selection
182 changes for a part being edited, and not before that if not needed).
183 Also use an enum to describe which part are we using, and use the
184 selection as a property in PartData, in order to notify the
185 DateTimePicker owner that we need to end the current edit.
188 2008-08-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
190 * ThemeWin32Classic.cs: Don't draw ListViewSubItem instances from
191 DrawListViewItem - we need to reuse the main item's drawing for the
192 first sub item in case owner draw is true, but wants the system to
193 do the default draw for the first sub item, without incurring in a
197 2008-08-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
199 * ListBindingHelper.cs: When looking for an object's properties, check
200 if it implements ICustomTypeDescriptor, in which case we should
201 resolve the propertu based on its GetProperties method, not in its
202 actual properties. This is what .Net seems to do.
203 Fixes a UsingWebBrowser problem during initialization.
206 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
208 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
209 last change introduced when an item is clicked but isn't on a toolstrip.
211 2008-07-31 Geoff Norton <gnorton@novell.com>
213 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
216 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
218 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
219 sitting on a MenuStrip.
221 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
223 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
226 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
228 * Form.cs: Ensure that we reset the shown_raised flag after
229 the form is closed, so that we raise the show events the next
230 time the form is shown.
233 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
235 * Form.cs: Ensure closing events are raised only once.
238 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
240 * ListBox.cs: Don't let the user set TopIndex so high that it
241 scrolls up far enough to show empty items.
244 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
246 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
247 so that we can successfully generate the LParam in-place instead of
248 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
249 navigation for menus.
251 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
253 * MenuAPI.cs: When montion don't set the keyboard navigation state to
254 'navigating'. Fixes bug #411356.
256 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
258 [Fixed remaining issues of #406773 (#1)]
259 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
261 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
262 MainMenu (already done) and ContextMenu creation.
264 * ContextMenu.cs: Create tracker on construction.
266 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
268 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
269 possible to instantiate MenuTracker without GrabControl.
271 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
273 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
275 * MainMenu.cs: Set GrabControl on SetForm using current form.
277 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
279 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
281 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
283 * MenuAPI.cs: Check if menu is activated before deactivate it in
286 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
288 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
290 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
291 - One style instance can only participate in a single style collection.
292 - Styles can request their owner to layout whenever their properties
294 [Fixes bugs #412583 and #412582]
296 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
298 * X11Keyboard.cs: Implement the generation of the LParam for
299 all keyboard messages.
302 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
304 * ToolStripButton.cs: Update Checked for CheckOnClick before
305 raising the Click event. [Fixes bug #412505]
307 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
309 * Form.cs: Remove some seems leftover code for non-TopLevel's
310 CreateParams, which is breaking ClientSize sizing, because it
311 removes the border window styles.
313 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
315 * PropertyGrid.cs: Invalidate the View when the PropertyTab
318 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
320 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
321 that the change has an immediate effect.
323 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
325 * ScrollableControl.cs: Update PerformLayout calls to include
326 provide the name of the property that changed.
328 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
330 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
331 location. Fixes drawing of border and cell borders if scrollable.
333 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
335 * ScrollableControl.cs: Perform layouting after the AutoScroll
336 properties have changed, so that the changes have immediate
340 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
342 * XplatUIX11.cs: Non Client area is actually Client such in the
343 case of NotifyIcon, so double check WholeWindow == ClientWindow
344 when adding an expose.
345 [Fixes bugs #324237 and #357022]
347 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
349 * TableLayoutPanel.cs: Invalidate after layouting, so that we
350 repaint the cell borders.
352 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
354 * PropertyGridTextBox.cs: Stop filtering messages prior to our
355 disposal to avoid unexpected ObjectDisposedExceptions.
357 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
359 * TableLayoutPanel.cs: Layout on Row/Column count change.
361 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
363 * ImageList.cs: Fix ICollection.CopyTo implementation for
364 ImageListCollection. [Fixes bug #409169]
366 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
368 * PropertyGridTextBox.cs: Validation should be performed only if we
369 are focused. We can lose focus for example if the Return key is used
370 to set the entry and there is an error. When the message box is
371 displayed we would have validate on click in the message box.
373 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
375 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
376 in order to determine that we are expandable is wrong. There was a bug,
377 now fixed, in TypeDescriptor that was causing the wrong converter to be
378 returned which caused GetPropertiesSupported == false in most cases.
381 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
383 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
384 WorkingArea so that menus can appear on the second monitor
385 when one has dual monitors.
387 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
389 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
392 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
394 * TextBox.cs: Implement navigation support for auto complete in
395 TextBox, as well as refactor the code to show the auto complete window
396 when receiving a WM_CHAR message, instead of TextChanged, since
397 autocomplete itself should be able to set the Text a lot of times and
398 finally only typing should show it, not changes from code.
400 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
402 * TabControl.cs: When expanding the selected tab, don't adjust the
403 width if alignment is Right, since it has a different offset than 0,
404 as opposed to the other alignments.
405 Fixes the selected tab not being painted at all with alignment = Right
406 and using FillToRight size mode.
408 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
410 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
412 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
414 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
415 values from the textbox to the boundary values. [Fixes bug #409026]
417 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
419 * TreeNodeCollection.cs: We were copying one too many elements when
420 doing our array copy. Fixes a crash when RemoveAt is called.
423 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
425 * TabControl.cs: When doing the layout and need to call FillRow -using
426 FillToRight size mode-, use the overload receiving a bool param
427 indicating whether we need to do a vertical or horizontal calculation.
428 Fixes part of #399583.
430 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
432 * TextBox.cs: When painting, use the value returned by
433 GetLastVisibleItem instead of using the cached last_item field, since
434 there could be a desynchronization between the layout and the
435 painting. Fixes a AOOR exception in auto complete mode.
437 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
439 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
440 NonClientAreaEnabled until our VisualStyles is modified to allow it.
442 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
444 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
446 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
448 * TextBox.cs: When focus is lost, if the auto complete listbox is
451 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
453 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
454 tracking size for tool windows.
455 * Theme.cs, ThemeWin32Classic.cs : Extracted
456 ManagedWindowSpacingAfterLastTitleButton.
458 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
460 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
461 They are bit-rotted and have always been listed as "unsupported".
463 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
465 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
467 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
469 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
471 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
473 * ListBox.cs: Make sure last_item_visible gets reset before we try
474 to do a layout due to scrollbars appearing or disappearing.
477 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
479 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
480 for different window themes. [Fixes bug #339140]
482 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
484 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
485 in ManagedWindowBorderWidth.
487 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
489 * InternalWindowManager.cs: Change MouseMove to take a point, so
490 we can use the same point later on.
491 * MdiWindowManager.cs: Store point sent to MouseMove so we can
492 later reset to it. On Windows, the Cursor.Position had already
493 changed by the time we were resetting to it.
496 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
498 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
500 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
504 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
506 * MdiWindowManager.cs: Double-clicking on the title bar should not
507 maximize a MDI form if MaximizeBox = false.
509 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
511 * ThemeVisualStyles.cs: Fixed a warning.
513 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
515 * ThemeVisualStyles.cs: Fixed warnings and formatted.
517 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
519 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
520 implementation produces a better result.
522 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
524 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
527 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
529 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
530 cannot be used from the ThemeEngine constructor.
531 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
532 Application.VisualStylesEnabled because it does not work on X11.
534 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
536 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
537 that we did not always check for, as well as fixes to the IList
538 implementations. [Fixes bug #402703]
540 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
542 * IDeviceContext.cs: Added Dispose.
544 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
546 * Control.cs: Added OnSizeInitializedOrChanged.
547 * Form.cs: OnLoadInternal: Added a call to
548 Control.OnSizeInitializedOrChanged.
549 * InternalWindowManager.cs:
550 * HandleTitleBarMouseMove: No longer invalidates the parent window.
551 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
552 * TitleButton: Added Entered.
553 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
554 * MdiWindowManager.cs:
555 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
556 move over the maximized title buttons causes a change.
557 * IsActive: Can now be called before the window is added to a MDI parent.
558 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
559 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
560 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
561 * ThemeWin32Classic.cs:
562 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
563 * DrawTitleButton takes a new form parameter.
564 * Added ManagedWindowTitleButtonHasHotElementStyle,
565 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
567 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
569 * ThemeEngine.cs: ThemeVisualStyles is now selected if
570 Application.EnableVisualStyles has been called, even if the current system
571 configuration does not support rendering with Visual Styles.
572 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
573 Styles should not be used.
575 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
577 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
578 ComboBox in FormsTest.
580 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
582 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
583 for fixed toolwindows.
585 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
587 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
589 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
591 * Control.cs: CreateControl just returns if the Control is diposed
592 and doesn't throw ObjectDisposedException.
595 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
597 * Control.cs: Do not create the control if the parent isn't created
598 yet, e.g in the case of a parented form on which .Show is called.
599 It will be created when the parent is made visible/created.
602 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
604 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
605 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
608 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
610 * Form.cs: When disposed set owner to null. Improves #402446.
612 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
614 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
615 use children's PreferredSize if in AutoSize mode and ExplicitBounds
617 * Form.cs: Take the Padding into account for the PreferredSize.
620 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
622 * TabControl.cs: Since we don't support more than one direction in
623 TabControl rows alignment (this is, the row becomes the
624 bottom row when selected), make Direction return always 1. This way
625 the layout doesn't get confused about a bad calculation.
628 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
630 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
631 so that the wparam is properly set.
632 Fixes form moving in the test case in bug 402446.
634 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
636 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
637 the full tree instead of nothing. [Improves bug #406584]
639 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
641 * ThemeWin32Classic.cs: Adjusted minimized window painting.
643 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
645 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
648 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
650 * TreeView.cs: Add a null check when using CollapseAll on an
651 empty tree. [Fixes bug #406449]
653 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
655 * Form.cs: Make OnMenuComplete internal so we can call it.
656 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
659 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
661 * TabControl.cs: Handle Up and Down keys when TabControl is in
665 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
667 * TabControl.cs: Invalidate when we remove a tab. Guard against
668 an AOORE when trying to remove a tabpage that is not owned by the
672 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
674 * ScrollBar.cs: Change the LargeChange calculation to be correct.
675 Ensure we are using LargeChange instead of large_change so we our
676 calculations are correct.
679 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
681 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
682 we need to ensure the ColumnCount/RowCount gets set.
685 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
687 * ListBox.cs: When handling item navigation, if selection mode is
688 None, call EnsureVisible, since scrolling is normally handled by
689 selection, that we are not calling in this case.
692 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
694 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
695 a null check to our focus walking code. [Fixes bug #394332]
697 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
699 * ComboBox.cs: Case missed in bug 379596 "Support item
700 navigation by entering text": On _close_ drop-down select
701 the first item matching the text in the textbox. [Fixes bug #397265]
703 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
705 * DataGridView.cs: Fix a crash when sorting by column headers,
706 mentioned in bug #404841. Remove some dead switch cases.
708 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
711 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
712 uses the AutoComplete support in the internal TextBox. Also TextBox
713 can store a reference to ComboBox, in case AutoCompleteSource is set
714 to ListItems (this is, ComboBox's items, and we don't want to pass an
715 additional collection).
717 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
719 * ListViewItem.cs: Restore the initial value of bounds rect to
720 Rectangle.Empty, and is this value for Layout detection in virtual
721 mode. Fixes the tests.
723 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
725 * XPlatUI.cs: Remove references to "new" X11 backend.
727 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
729 * Control.cs: Add an internal virtual OnDragDropEnd method
730 to allow controls such as ListBox, which depend on a sequence
731 of MouseDown+Move+End events, to handle the lack of a MouseUp
732 when a DnD operation is started in MouseDown.
733 * ListBox.cs: If a DnD operation is started in MouseDown we won't
734 get a MouseUp, so reset our state whenever a DnD operation ends.
736 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
738 * PropertyGrid.cs: Clear the root griditem first thing when
739 new object/s is/are selected. Fixes some rare cases where
740 the View will get a paint request and won't know that the
741 grid is in the process of repopulating.
743 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
745 * XplatUIX11.cs, InternalWindowManager.cs:
746 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
747 doesn't automagically update the FormBorderStyle, so we must
748 double check the CreateParams explicitly to determine if the
749 window is a toolwindow.
750 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
751 instead of doing custom checks.
753 Fixes toolwindows for the test case in bug #402446
755 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
757 * Control.cs: Visibility of the control should be false
758 when the handle is destroyed in WmDestroy and not immediately
759 in Dispose(). This is effectively where the disposing process
760 ends even though the control is marked as Disposed immediately
761 after calling Dispose().
764 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
766 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
767 when the textbox gets focus.
770 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
772 * PropertyGridTextBox.cs, PropertyGridView.cs:
773 - Alt + Down should show the drop down editor.
774 - Focus the editor when showing it
777 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
779 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
780 that are not the first panel.
781 * StatusBar.cs: Ensure that the X coordinate of panels is always
782 stored. Fix IList implementation of StatusBarPanelCollection to
783 call the regular methods.
784 [Fixes bug #403599, #402165]
786 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
788 * ThemeWin32Classic.cs: Fix position calculation for centered
789 text on status bar panels. [Fixes bug #402165]
791 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
793 * Splitter.cs: Fix Splitter to:
794 - Work for arbitrary splitter size
795 - Handle MinSize and MinExtra properly
796 - Get rid of absolute positioning during drag and use relative
797 - Multiple other fixes
800 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
802 * Cursor.cs: Show shouldn't hide the cursor.
804 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
806 * ListViewItem.cs: When invalidating, add some extra space to bounds,
807 since focus rectangle and selection can add some space and need to
808 take into account those small offsets - specially in Details view.
809 * ListView.cs: Instead of invalidate using item Bounds directly, call
810 item.Invalidate, to have the code centralized.
811 Fixes focused/selection garbage when selecting and deselecting items
814 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
816 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
817 mode we can check whether we have to force a Layout or not, and can
818 cache based on this, instead of avoiding caching all the the time. Do
819 this check in GetBounds and TextBounds.
820 Fixes selection in Details view.
822 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
824 * ListView.cs: Make HeaderControl internal, thus the theme engine can
825 get its *real* height instead of trying to infere it.
826 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
827 get the position of them, since it's in general a bad idea in general,
828 and because we can't do that in virtual mode. Instead get the first
829 visible item as well as item height, and draw them.
832 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
834 * ToolStripSplitButton.cs: We can't add in extra width if
835 the button is not AutoSize. [Fixes bug #401279]
837 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
839 * PaddingConverter.cs:
840 - Implement conversion to InstanceDescriptor
841 - Handle "All" in CreateInstance by using the supplied
842 ITypeDescriptorContext.
843 [Fixes bugs #396076 and #396078]
845 Patch by Andy Hume <andyhume32@yahoo.co.uk>
846 Code contributed under MIT/X11 license.
848 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
850 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
852 Add Category attributes.
853 Code is contributed under the MIT/X11 license.
855 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
858 - Fix a NRE when unparenting a form.
859 - Do not recreate or destroy a parented form when
862 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
864 * TextBox.cs: Implement basic support for AutComplete with custom
867 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
869 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
870 DropDownButtonBounds should be from the origin of the button, not the
871 ToolStrip. [Fixes bug #401279]
873 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
875 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
876 running gtk_init_check. This prevents GAIL from loading
877 unnecessarily, which was breaking UIA support. Initial fix for bug
879 * Application.cs: Add UIA support to Winforms. New static constructor
880 uses reflection to initialize UIAutomationWinforms assembly. Added
881 PreRun event so UIA can initialize before the mainloop starts, and
882 FormAdded event so UIA can provide a11y support for new Forms in an
885 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
887 * DataGridView.cs: When binding to a dataset, subscribe to table
888 and column change events. Unsubscribe to these when we clear bindings.
891 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
893 [DataGrid drawing refactory]
895 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
897 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
898 must be handle by Theme, now it call DataGridPaintColumnHeader.
900 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
901 test cases must be also fixed because it checks for wrong size.
903 * ThemeWin32Classic.cs:
904 - Draw the bottom line of grid caption.
905 - Prevent to draw caption text when it is empty.
906 - Use CPDrawBorder3D for 3D efects to simplify code.
907 - Uses 3D (when not flat) to paint corner shared between row and column
909 - Fix header drawing issues on win32, now borders are drawing.
910 - Fix column header paint issues to mimic win32.
911 - Adjust header drawing for last column, like first one it must be draw
913 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
915 - DataGridPaintColumnHeader created to draw column headers, it also
916 paint stuff right on Win32.
917 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
921 - DataGridPaintRowHeaderStar method added.
922 - DataGridPaintColumnHeader method added.
924 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
926 * Control.cs: Don't reset to Dock style layout if DockStyle is
927 set to none. [Fixes bug #399316]
929 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
931 * Win32DnD.cs: Fix the check for control not equal null.
932 Fixes bug #341420 and #381886.
934 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
936 * DataGridViewRowCollection.cs: Update the indexes of rows after
937 one has been removed.
938 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
939 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
940 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
941 rows for the Rows collection, or deleting rows from the bound DataSet.
943 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
945 * DataGridView.cs: Listen to a DataSet's changed event even
946 when autogeneratecolumns is false. Refactor the changed event's
947 add row code to use the same as the existing add row code.
950 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
952 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
953 much any time the caret moves and there is text, not just when
954 the selection changes as one would think.
955 * RichTextBox.cs: Override RaiseSelectionChanged and fire
959 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
961 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
962 instead of trying to duplicate the code.
963 * ListBox.cs: Make method internal so we can send keyboard events.
966 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
968 * TextBoxBase.cs: When pasting and checking the max length,
969 subtract the selected text length (the text we will be replacing) from
971 * TextControl.cs: Ensure every character insertion is reflected in
972 charcount, so max length will work properly.
975 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
977 * ListBox.cs: Ensure scrollbars are updated when a single
978 column listbox with an already set top-index is created.
981 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
983 * FontDialog.cs: Typing in the font/style textboxes should search
984 the list boxes case-insensitively. [Fixes bug #398343]
986 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
988 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
989 widths of icon and buttons instead of hard coded values.
991 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
993 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
994 as well as generating a SelectedIndexChanged event, just like .Net does
998 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1000 * ListBox.cs: When navigating items visually, use FocusedItem as the
1001 reference point instead of SelectedIndex, since even in
1002 SelectionMode.None we need to support navigation, and in that case we
1003 just can't use SelectedIndex.
1004 Fixes part of #398345.
1006 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
1008 * Control.cs: Make a SetBoundsInternal that avoids the new
1010 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
1011 SetBoundsInternal instead of SetBoundsCoreInternal.
1013 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
1015 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
1016 SetBounds for the scrollbars.
1018 2008-06-10 Andreia Gaita <avidigal@novell.com>
1020 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
1021 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
1022 OnMouseMove, OnMouseOver, OnMouseUp
1023 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
1024 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
1025 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
1026 to the WebControl object to pass to new collection objects
1027 * HtmlHistory.cs: Implement support for individual window histories.
1028 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
1029 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
1030 GotFocus, LostFocus, OnLoad, OnUnload
1031 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
1033 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
1034 security level changes and context menu event support.
1036 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1038 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
1039 as happens with Esc, patch my Andy Hume.
1042 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1044 * MdiWindowManager.cs: DrawMaximizedButtons now uses
1045 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
1046 * Theme.cs: Made MenuButtonSize platform dependent. Added
1047 ManagedWindowButtonSize.
1048 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
1049 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
1051 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1053 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
1054 Added support for rendering with VisualStyles.
1056 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1058 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1059 support for rendering the border with VisualStyles.
1061 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1063 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
1064 the icon is not shown.
1065 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
1068 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1070 * InternalWindowManager.cs: Draw minimized windows even if they don't have
1073 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1075 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
1077 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1079 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
1082 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1084 * ComboBox.cs: When snaping height -because of IntegralHeight set to
1085 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
1086 if the requested height leaves the listbox area with *less* than the
1087 required are to see one item. We were setting it to PreferredHeight
1088 even for values matching the height for a single item.
1091 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1093 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
1095 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1097 * DataGridViewCell.cs: Use property instead of field.
1099 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1101 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
1104 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1106 * Theme.cs: Added #region around the managed window code. Made the managed
1107 window methods abstract.
1108 * ThemeWin32Classic.cs: Added #region around the managed window code.
1110 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1112 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
1114 * ThemeWin32Classic.cs: Removed HasBorders checks in
1115 DrawManagedWindowDecorations.
1117 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1119 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1120 Extracted ManagedWindowGetTitleBarIconArea.
1122 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1124 * DataGridViewCellStyle.cs: Don't clone the font.
1126 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1128 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
1130 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1132 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
1133 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
1136 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1138 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
1139 Use Format/FormatProvider before trying converters.
1140 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
1141 are 'set'. Change constructor to not use ApplyStyle since it wants
1142 everything applied. Clone the Font.
1143 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
1144 ApplyStyle the rest.
1146 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1148 * ListView.cs: We need to calculate the scrollbars even if the handle
1149 hasn't been created - this is needed when methods using scrollbars
1150 info, such EnsureVisible, are called before control has been created.
1153 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
1155 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
1156 only if the elements are defined.
1158 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1160 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
1161 section. Also, when setting bounds, snap height as well as save the
1162 requested height if Dock has any value affecting the height: Left,
1163 Right and Bottom - important if using IntegralHeight as true.
1165 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1167 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
1168 passed to SetBounds to reflect the new adjusted height (Integral-wise),
1169 instead of doing that only in our SetBoundsCore override, since the
1170 bounds cached can be the same as saved one and we could not get the
1174 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1176 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
1177 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
1178 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
1179 ToolWindowCaptionButtonSize.
1180 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
1182 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1184 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
1186 * Theme.cs: Made DoubleClickTime plaform dependent.
1188 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1190 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
1191 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1192 ToolWindowCaptionHeight.
1194 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1196 * InternalWindowManager.cs: The adjustment to ensure positive client area
1197 sizes is now platform dependent (disabled on Windows).
1198 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1199 RequiresPositiveClientAreaSize.
1201 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1203 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
1205 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1207 * InternalWindowManager.cs: Changed IconicSize to use
1208 SystemInformation.MinimizedWindowSize.
1209 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
1210 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
1212 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1214 * ComboBox.cs: If the combobox is anchored both on top and bottom,
1215 adjust height if IntegralHeight is true when calling SetBoundsCore (as
1216 likely the height was modified even if Height wasn't specified in
1217 BoundsSpecified parameter).
1218 Fixes part of #396297.
1220 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1222 * InternalWindowsManager.cs: Changed minimum window size while resizing to
1223 SystemInformation.MinWindowTrackSize.
1224 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
1225 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
1227 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1229 * MenuItem.cs: Fixed Dispose.
1231 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1233 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
1234 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
1235 EnteredHeaderCell, PressedHeaderCell: Added.
1236 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
1237 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
1238 theme a chance to override default painting.
1239 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
1240 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
1241 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
1242 ListView and DataGridView header rendering.
1244 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1246 * RichTextBox.cs: GetPositionFromCharIndex should return the
1247 visual position of the character relative to the viewport.
1248 [Fixes part of bug #396664]
1250 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1252 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
1253 and not just for the existance of an UITypeEditor. In some cases
1254 there is an editor associated just to do PaintValue, but which
1255 doesn't actually support editing.
1258 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1260 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
1261 if needed, instead of 0 - this should help us in the corner case where
1262 we have more than one item but we are only partially showing 1 item.
1263 Fixes part of #374713.
1265 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1267 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
1268 control, return immediately if the any parent control's handle hasn't
1269 been created or isn't visible, as well as avoiding creating the parent
1270 Form if the handle hasn't been previously created.
1273 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
1275 * TableLayoutPanel.cs: Use border sizes when calculating the
1276 panel's preferred size. [Fixes part of bug #396433]
1278 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
1280 * SplitContainer.cs:
1281 - Fix SplitterDistance to update only if needed.
1282 - Make it force min and max validation.
1283 - Handle properly mouse moves outside the resizeable area.
1286 2008-06-02 Andreia Gaita <avidigal@novell.com>
1288 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
1289 (which also suppresses all popup dialogs). Throw NotSupported
1290 exceptions for activex getters/setters.
1291 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
1292 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
1293 StatusText, Version, GoSearch
1294 * HtmlDocument.cs: Add DocType support
1296 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
1298 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
1301 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
1303 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
1305 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
1307 * TableLayoutPanel.cs: When calculating preferred size, use the
1308 actual number of columns and rows, not what the user set them to.
1311 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
1313 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
1316 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1318 * XplatUIX11.cs: When detecting areas obscured in a control by other
1319 toplevel windows while scrolling, return if the control hasn't a
1323 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1325 * XplatUIX11.cs: Properly detect the visible area of a control being
1326 scrolled (obscured by other winforms controls and any X toplevel
1327 windows), to mark as invalid the requested area to be scrolled that
1328 isn't visible and thus can't be copied.
1331 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1333 * ListBox.cs: Compute the precise amount to vertically scroll when
1334 using DrawMode.OwnerDrawVariable.
1335 Patch by jkeymer (j.keymer@gmx.net).
1337 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1339 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
1340 to avoid setting an invalid value for the verticall scrollbar
1341 when navigating items. And, duh, also remove my silly debug messages
1342 from previous commits.
1345 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
1347 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
1348 make it MS compatible.
1350 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
1352 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
1353 - Allow the editing of entries even if their parent is read-only.
1354 - Do not render expandable properties read-only.
1355 - Refactor expansion checks form PropertyGrid into PropertyGrid.
1357 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
1359 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1360 support for the hover style.
1362 2008-05-29 Andreia Gaita <avidigal@novell.com>
1364 * ContainerControl.cs: Check for null dead-end when traversing the tree
1367 [Fixes #394332, patch by Ernesto Carrea]
1369 2008-05-29 Geoff Norton <gnorton@novell.com>
1371 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
1372 constant that it is. Fixes #393981
1374 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
1376 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
1377 that the user probably doesn't want to set this.
1379 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
1381 * ThemeWin32Classic.cs: Don't let the text size be bigger than
1382 the control size for CheckBox/RadioBox.
1383 [Fixes part of bug #394645]
1385 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1387 * PropertyGrid.cs: Update the state of the sorting buttons in
1388 the toolbar if PropertySort is set programatically.
1390 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1392 * GridItemCollection.cs: Add multiple items with conflicting names
1393 support and also preserve name ordering.
1396 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1398 * GridItemCollection.cs: Revert my multiple items with same
1401 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1403 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
1405 Fixes part of #393908.
1407 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
1409 * ToolStripDrowDown.cs: When using the Show () methods that have a
1410 Control parameter, set the menu owner to that Control.
1413 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
1415 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
1418 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1420 * GridItemCollection.cs: Refactor to support multiple items with the
1424 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
1426 * Control.cs: The 2.0 check for illegal cross thread calls in
1427 Control.Handle were throwing an exception when we were getting
1428 the Handle in order to invoke correctly. Created a private
1429 version that does not contain this check.
1432 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1434 * PropertyGrid.cs: Respect DefaultTabType.
1436 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1438 * ListView.cs: SPACE selects an item.
1441 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1443 * ListView.cs: Reset the search string whenever the items are
1447 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1449 * ListControl.cs: For the first added item PositionChanged is fired
1450 _before_ ItemChanged, which leave us in a temporary invalid state - so
1451 we need to set the selected index from ItemChanged handler *if* we
1452 know that the first item has just been added *and* the items have been
1453 actually added to the ListControl.
1456 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1458 * TabControl.cs: Only clicks with the left button should be
1462 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1466 * TextBox.cs: Expose an internal method in TextBox to restore the
1467 original context menu, and call it from ComboBox to re-use it in the
1468 combobox containing the file name in FileDialog.cs.
1469 Fixes part of #393775.
1471 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
1473 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
1476 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
1478 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
1481 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1483 * ComboBox.cs: Minor correction to previous patch: PageDown should
1484 also *try* to move by one item if the computed offset is negative,
1485 just like the PageUp case.
1487 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1489 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
1490 should be done for at least 1 item, and not stay at the same item.
1491 Fixes part of #374713.
1493 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
1495 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
1496 directories. [Fixes bug #393931]
1498 2008-05-22 Andreia Gaita <avidigal@novell.com>
1500 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
1501 Don't fire events until the initial about:blank page has finished
1502 loading. Clean up events.
1504 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
1506 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
1507 FocusIn() too. This should fix the issue on switching
1510 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
1512 * X11Keyboard.cs : set XIM font size to somewhat reasonable
1513 number (ideally the input textbox size, but that could be
1516 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
1518 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
1519 the ToolStripItem's TextChanged. [Fixes bug #393597]
1521 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1523 * TabControl.cs: When invalidating in SelectedIndex and we need to
1524 inflate to take into account the border of the tabs, make sure that
1525 the invalidated rect doesn't overflow the control bounds, since that
1526 would avoid updating at all.
1528 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1530 * TabControl.cs: Don't substract scroller width from the row width,
1531 since we need to take into account the total width of the control when
1532 calculating the position of the tabs. This avoids showing scroller
1533 when it is actually not needed.
1534 Fixes part of #322325.
1536 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1538 * ThemeVisualStyles.cs: Added support for TextBoxBase.
1540 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1542 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1543 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
1545 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1547 * DataGridView.cs: Only paint the top left header cell if there
1550 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1552 * DataGridView.cs: When binding to a BindingSource, get the underlying
1553 list to bind to. [Fixes bug #345483]
1555 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1557 * DataGridView.cs: Do not bind to collection properties.
1560 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1562 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
1564 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1566 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
1569 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1571 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
1573 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1575 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
1578 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1580 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
1582 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1584 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
1587 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1589 * TabControl.cs: Extended to handle the hot style.
1591 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1593 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
1594 Extended UpDownBase code to handle hot and disabled styles.
1596 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1598 * DataGridView.cs: Handle databinding to generic list type things.
1601 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1603 * DataGridViewCellCollection.cs: Add a method to find the cell
1604 with the given DataPropertyName.
1605 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
1606 * DataGridViewColumnCollection.cs: Add a method to clear all
1607 autogenerated columns.
1608 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
1612 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1614 * DataGridView.cs: Don't try to update the RowTemplate with
1615 a null CellTemplate.
1617 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1619 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
1620 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
1621 * DataGridView.cs: Lots of fixes/enhancements to databinding to
1624 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1626 * Control.cs: Remove invalidating implicit child controls when
1627 control is invalidated. It was causing too many redraws on
1628 controls with implicit scrollbars.
1629 * ListView.cs: Listen to the Invalidated event and invalidate
1632 2008-05-20 Andreia Gaita <avidigal@novell.com>
1634 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
1635 * HtmlDocument.cs: Check for nulls
1637 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1639 * Control.cs: In ControlCollection.RemoveInternal, remove the
1640 internal control before calling PerformLayout and OnControlRemoved,
1641 which was leaving us in an invalid state and causing a X error (bad
1642 match). Observe that Remove () call has the same order.
1643 Fixes an X error changing ComboBoxStyle.DropDownStyle.
1645 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1647 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
1648 being fired if ControlStyles.UserPaint style is activated.
1651 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1653 * GridEntry.cs: Don't be so strict when setting the value -
1654 do not check if what we set is what we get.
1657 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1659 * XplatUIX11.cs: If there are no timers timeout should be 0
1662 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1664 * Control.cs: As a followup to invalidating implicit children when
1665 a control is invalidated, only invalidate them if they are in the
1668 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1670 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
1672 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1674 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
1676 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1678 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
1679 * XplatUIWin32.cs: Made Win32DeleteObject public.
1681 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1683 * GridEntry.cs: Determine HasDefaultValue more strictly by using
1684 PropertyDescriptor.ShouldSerializeValue.
1687 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1689 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
1690 in the classic theme.
1692 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1694 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
1696 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
1697 ScrollBarHasPressedThumbStyle.
1699 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1701 * TextRenderer.cs: Included some methods in the 1.1 profile.
1703 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1705 * Control.cs: When we make a control visible, it may have been
1706 previously visible and while it wasn't visible, the z-order of
1707 things may have been shuffled, so the control needs to have its
1708 z-order updated just in case. [Fixes bug #391518]
1710 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1712 * ThemeVisualStyles.cs: Added support for GroupBox.
1714 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1716 * GroupBoxRenderer.cs: Included in the 1.1 profile.
1718 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
1720 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
1721 bug #389996; XSelectInput() behaved as mouse handler robber,
1722 so remove extra call to it.
1724 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1726 * Control.cs: Simplify ControlCollection.Contains method.
1728 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1730 * DataGridViewRow.cs: Implement GetPreferredSize.
1732 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1734 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
1736 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1738 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
1739 painting and edit control fixes.
1741 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1743 * DataGridView.cs, DataGridViewCell.cs: Work around some external
1744 checks to make sure we are in an actual row/col for top left header cell.
1745 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
1747 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1749 * Control.cs: Use long instead of int when handling WParam from
1750 mousewheel scrolling. Int was overflowing on Win64.
1752 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1754 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
1755 flow panel without scrolling first, and then calculate the
1756 scrolling based on the new layout. [Fixes bug #390149]
1758 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1760 * ListBox.cs: Invalidate after scrolling up when selected index
1761 changes. [Fixes bug #390151]
1763 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1765 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
1766 set, default height to 150. I tried first with DefaultSize, but this
1767 is not generating a SetBoundsCore call before handle creation time, so
1768 we can take it into account. This is just what .net does.
1770 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1772 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
1773 as it broke some stuff. Calberto is filing a bug for eno to
1776 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1778 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
1779 to 0 is the current value is -1, and if style is not Simple, just
1780 return, like .net does.
1781 Fixes part of #374713.
1783 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1785 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
1786 progress bar stuffs, use doubles instead of ints to prevent
1787 overflow. [Fixes bug #389798]
1789 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1791 * XplatUIX11.cs, X11Keyboard.cs :
1792 Significant refactoring on XIM support. Now IM engine UI
1793 should show up, at mostly-correct preedit position.
1794 - Eliminated use of FocusWindow, as it is never mapped
1795 and hence blocks correct preedit position. XIC is now
1796 created per window, and it must be destroyed too when
1797 the window is destroyed.
1798 - WM_QUIT messages should not be filtered even when hwnd
1799 is zombie. Filtering it could cause endless loop.
1800 - Preedit position must move only when the window is alive.
1801 - Make it IDisposable and make sure to release XIM/XICs.
1803 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1805 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
1806 XplatUIX11.cs, XplatUIWin32.cs :
1807 fix for bug #325033 and #387693;
1808 - WM_QUIT should not be sent when no running application
1810 - SetTimer/KillTimer (especially on win32) should be
1811 invoked for the window that the timer is/will_be attached.
1812 - There could be unattached timers to a window when it's
1813 started. For those timers, hold pending timers and when
1814 a window is mapped, attach them to it.
1815 - WaitForHwndMessage() could run into loop when
1816 WM_SHOWWINDOW is handled before this method is called.
1817 So, strictly check wm_showwindow state.
1818 - Tick handler should not be invoked while one Tick handler
1819 call is still running (introduced Busy state).
1821 2008-05-13 Andreia Gaita <avidigal@novell.com>
1823 * WebBrowserBase.cs: Override Internal alternative methods for
1824 SetBoundsCore and OnResize instead of the protected ones.
1825 * Control.cs: Move SetBoundsCore and OnResize implementations to
1826 SetBoundsCoreInternal and OnResizeInternal, so they can be
1827 overriden internally (WebBrowserBase needs to catch them but can't
1828 override the protected methods without api compat problems)
1830 2008-05-13 Andreia Gaita <avidigal@novell.com>
1832 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
1834 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1837 * ListView.cs: Remove debug messages.
1839 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1841 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
1842 area is empty. Also calculate scrollbars in Simple mode based in area
1843 height and total number of items, not in MaxDropDownItems.
1844 Fixes part of #371991.
1846 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1848 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
1850 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1852 * BindingSource.cs: GetListSortDescription is not public.
1854 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1856 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
1858 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1860 * HtmlElement.cs: Fix parameter names to match MS.
1861 * HtmlWindowCollection.cs: Should not be sealed.
1863 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1865 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
1866 button, because the thumb button will not get drawn if the scrollbar
1867 is disabled. [Fixes bug #389262]
1869 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1871 * ListBox.cs: Handle End key for multi-column listboxen.
1874 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1876 * ListBox.cs: Fix algorithm to determine which column our item is in.
1879 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1881 * ListBox.cs: Invalidate when the listbox is resized.
1884 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1886 * ListBox.cs: There is always at least one row in the ListBox (if
1887 we are doing these calculations.) [Fixes bug #389253]
1889 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1891 * ListBox.cs: There is always at least one column in the ListBox.
1894 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1896 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
1897 ensure in Simple mode that the height is exactly the requested one.
1898 Also add the ComboBoxListControl to the controls collection in Simple
1899 mode even if handle hasn't been created.
1900 Fixes part of #371991.
1902 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1904 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
1905 our ComboBox owner instead of giving it back to the previous control (
1906 as done in other controls). Also remove the empty override of Select
1907 method, since we want to be selected *and* give focus to our owner.
1908 This should let the user do keys-navigation in Simple mode.
1910 2008-05-10 Geoff Norton <gnorton@novell.com>
1912 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
1913 problems with rapid scrolling of treeviews. Fixes #381084
1915 2008-05-10 Geoff Norton <gnorton@novell.com>
1917 * XplatUICarbon.cs: Deactivate the active window before
1918 activating the desired window. Completes fixing #386504
1920 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1922 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
1923 SmallChange to the item size width plus the padding, to match .net.
1925 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1927 * FileDialog.cs: Apply the custom filter typed by the user in the file
1928 name combobox as much as possible while navigating in the file dialog.
1931 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1933 * Binding.cs: Actually use NullValue if the retrieved value of
1934 data source is null or DBNull. Makes a test pass.
1936 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
1938 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
1939 * MimeIcon.cs: Provide a way to get icons from resources.
1941 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1943 * Binding.cs: When the value retrieved from the control to be assigned
1944 to the data source is null, actually use the 2.0 DataSourceNullValue
1945 value. Make pass a data binding test.
1947 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1949 * Control.cs: We need to invalidate implicit children even when
1950 invalidate is called with invalidatechildren = false. (Implicit
1951 children are really part of the parent.)
1952 * ListView.cs: Double-buffer internal child controls for less
1954 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
1955 owner ListView subitems for greatly increased performance.
1958 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
1960 * FileDialog.cs: When the user types a wildcard character in the
1961 filename combobox, update the contents of the folder using the text as
1963 Fixes part of #385261.
1965 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1967 * ListBox.cs: Various fixes for MultiColumn listboxen.
1970 2008-05-08 Andreia Gaita <avidigal@novell.com>
1972 * HtmlElement.cs: Implement Style property
1974 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1976 * ListBox.cs: Respect checkboxes when measuring item size.
1977 * ThemeWin32Classis.cs: When drawing list items, don't draw
1978 text outside of the item's bounds to prevent overlapping.
1979 (.Net actually overlaps, but that's just silly.)
1982 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
1984 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
1985 Gert Driesen. Fixes bug #324830.
1987 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
1989 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
1992 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1994 * BindingSource.cs: When calling IsSynchronized, return the value of
1995 the related IList list.
1997 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1999 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
2002 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2004 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
2005 navigation to scroll the grid if the current cell is not visible.
2007 2008-05-07 Andreia Gaita <avidigal@novell.com>
2009 * HtmlElement.cs: Implement TabIndex
2011 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2013 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
2014 properties, even when there are no items.
2017 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
2019 * NativeWindow.cs: Add support for multiple handles per window.
2020 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
2021 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
2022 directly - use FromHandle instead.
2025 2008-05-07 Andreia Gaita <avidigal@novell.com>
2027 * HtmlElement.cs: Implement InnerHTML setter
2029 2008-05-07 Andreia Gaita <avidigal@novell.com>
2031 * HtmlDocument.cs: Implement Focused
2033 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2035 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
2036 methods, as well as add messages to the exceptions.
2038 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2040 * BindingSource.cs: Setting DataSource should only reset DataMember if
2041 the previous value was null (make pass a not working test).
2043 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2045 * BindingSource.cs: When EndInit call is postponed and is called until
2046 DataSource.EndInit is called, remove the handler for data source.
2048 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2050 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
2052 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2054 * ToolStripManager.cs: Store references to toolstrips as
2055 weak references so they do not prevent forms from getting collected.
2058 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2060 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
2061 on .Net. So do the same thing in WndProc.
2063 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2065 * TrackBar.cs: Commit patch from Andy Hume that corrects
2066 the clickable areas to better match .Net.
2069 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2071 * TrackBar.cs: Commit patch from Andy Hume that adds the
2072 ResizeRedraw control flag so the track bar repaints itself
2073 when it is resized. [Fixes bug #387072]
2075 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2077 * TrackBar.cs: Commit patch from Andy Hume that adds better
2078 support for keyboard navigation when the TrackBar is vertical.
2081 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2083 * BindingSource.cs: Implement ISupportInitializeNotification support.
2085 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2087 * ThemeVisualStyles.cs: Added support for ToolBar.
2089 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2091 * ToolBar.cs: Made the Vertical property internal.
2093 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2095 * ThemeVisualStyles.cs: Added support for TrackBar.
2097 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2099 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
2100 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
2101 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
2102 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
2103 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
2104 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
2106 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2108 * ThemeVisualStyles.cs: Added support for UpDownBase.
2110 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2112 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
2113 Extracted Theme.UpDownBaseDrawButton.
2115 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
2117 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
2118 removed from the static toolstrips collection in ToolStripManager
2119 when they are disposed. Provides a workaround for bug #386483.
2121 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
2123 * GridEntry.cs: Read-only properties with Editor with
2124 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
2127 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
2129 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
2130 the menu key and there are no items on the menu.
2133 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
2135 * Control.cs: Avoid calling ToString on a string.
2136 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
2137 * GroupBox.cs: In FlatStyle property throw, not just create, the
2138 exception. Avoid calling ToString on a string.
2139 * ProgressBar.cs: Avoid calling ToString on a string.
2140 * ScrollBar.cs: Avoid calling ToString on a string.
2141 [All issues were found using Gendarme]
2143 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
2145 * NotifyIcon.cs: Prevent click events to be trigger after double click
2146 events. Fixes remaining issues of bug #324832.
2148 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
2150 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
2151 to mimic win32 behavior. Partially fixes bug #324832.
2153 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2155 * BindingSource.cs: Implement Find methods.
2157 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2159 * BindingSource.cs: Implement Sort, ApplySort overloads, and
2162 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2164 * ListBindingHelper.cs: When calling GetListItemProperties and the
2165 passed object is ITypedList, return the result of
2166 ITypedList.GetItemProperties instead.
2168 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2170 * LinkLabel.cs: Set default value of name on constructor of Link class
2171 only for 2.0 profile.
2173 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2175 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
2176 Fixes remaining issues of bug #346154.
2178 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2180 * LinkLabel.cs: Set a default value for name on internal contructor of
2181 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
2183 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2185 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
2186 and refer all instances to owner.links. Partially fixes #346154.
2188 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2190 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
2191 length equal zero. Also called CreateLinkPieces in constructor. It fixes
2192 the LinkLabel test 'TestLinkArea'.
2194 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2196 * Form.cs: Remove menu before close form to prevent form to be not gaced.
2199 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2201 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
2204 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2206 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
2209 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2211 * MenuAPI.cs: Remove unused ProcessCmdKey method.
2213 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2215 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
2218 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2220 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
2223 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2225 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
2226 sometimes we open a conext menu on mouse down of some controls and the mouse
2227 up is dispatched to menu and dont need to. It fix remaining issues of
2228 #363711 and other problems related to menu mouse click events.
2230 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2232 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
2233 some var names to better fit changes, now we have month_menu and today_menu
2234 vars. Fixes bug #363711.
2236 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2238 * MonthCalendar.cs: Handle every right mouse click to open context menu,
2239 right now the default month menu but it will be change to have "Go to today"
2242 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2244 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
2246 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2248 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
2250 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2252 * ThemeVisualStyles.cs: Added support for TreeView.
2254 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2256 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
2257 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
2259 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2261 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
2263 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2265 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
2266 Implement 2.0 SP1 stuffs.
2268 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2270 * FileDialog.cs: Implement 2.0 SP1 stuffs.
2272 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2274 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
2275 Implement CanEnableIme property. (2.0 SP1)
2277 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2279 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
2282 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2284 * Control.cs: Provide an internal way for a control to override
2285 the setting of Height.
2286 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
2287 set height using new method.
2289 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2291 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
2293 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2295 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2296 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
2298 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2300 * ThemeVisualStyles.cs: Added support for StatusBar.
2302 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2304 * DataObject.cs: Add the other IDataObject interface.
2306 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2308 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
2309 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
2311 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2313 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
2314 * ListView.cs: Hide non-public API.
2315 * MaskedTextBox.cs: Remove extra attribute.
2317 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2319 * DataGridViewImageCell.cs: Use formatted value instead of value
2320 to calculate preferred size.
2322 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2324 * ListBox.cs: Move some initialization around so that selected_indices
2325 is not accessed before it is created.
2327 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2329 * InputLanguageCollection.cs: Implement the collection better.
2332 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2334 * ToolStripDropDownItem.cs: Get the correct event object for
2335 DropDownItemClicked.
2336 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
2339 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2341 * DataGridViewRowCollection.cs: We don't currently support shared
2342 rows. Should fix test failures caused by previous commit.
2344 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2346 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
2347 datagridview gets set. Only paint cells in visible columns.
2348 * DataGridViewCell.cs: Draw border after cell content.
2349 * DataGridView.cs: Invalidate after setting some properties. Only
2350 use visible columns. Fit hit test bug with areas in the col/row header
2351 area but not in a row or col. Implement UpdateCell/Row methods.
2353 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2355 * DataGridViewElement.cs: Don't throw NIEX.
2356 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
2357 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
2358 * DataGridViewCheckBoxColumn.cs: Implement ToString.
2359 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
2360 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
2361 if the user filled in the formatting Value, use it.
2363 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2365 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
2368 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2370 * BindingSource.cs: Some corrections to Filter property, as well as
2371 setting it for our list when resetting it.
2373 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
2375 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
2376 than the maximum. Fixes reopened bug #384182.
2378 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2380 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
2381 Fixes remaining issues of #367490.
2383 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2385 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
2386 SystemInformation.WorkingArea to get max_screen value.
2388 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2390 * BindingSource.cs: Implement Filter and RemoveFilter.
2392 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2394 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
2396 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2398 * X11Dnd.cs: When trying to convert data and we know we started the
2399 dnd loop, don't try to use the cached data if the loop is not running,
2400 which means that the data has been resetted.
2403 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2405 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
2408 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2410 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
2411 it to drawn off screen edge. Fixes bug #367490.
2413 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2415 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
2416 menu position to have only one assignment of Location var.
2418 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2420 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
2421 for this patch. Fixes bug #384115.
2423 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
2425 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
2426 the same. If LargeChange is zero, set a minimum size for the scroll
2427 thumb grip. [Fixes bug #384182]
2429 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
2431 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
2434 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
2436 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
2438 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2440 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
2441 patch from Ernesto).
2443 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2445 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
2447 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2449 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
2451 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2453 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
2455 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2457 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
2459 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
2461 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
2463 2008-04-27 Andreia Gaita <avidigal@novell.com>
2465 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
2466 supposed to return a reference to an mshtml interface, which we
2468 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
2469 reference to an mshtml interface, which we don't support). Code
2471 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
2472 DomDocument getter (it's supposed to return a reference to an
2473 mshtml interface, which we don't support). Code formatting cleanup.
2475 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2477 * ListView.cs: Ouch, forgot to commit.
2479 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2482 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
2484 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2486 * ListView.cs: When calculating box selection for virtual mode, don't
2487 look for intersection with item's text, but item bounds, since that
2488 would mean read ListViewItem's text for _every_ item, and that's
2489 something we just can't do in virtual mode (items are only requested
2492 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
2494 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
2495 partial support for managed windows (based on the patch from Ernesto).
2497 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2499 * ListView.cs: When doing a key search use FindItemWithText method
2500 instead of doing the search by ourselves, this way we avoid
2501 duplicating the code and also we handle the special case for virtual
2502 mode. To achieve that make our private overload of FindItemWithText
2503 internal and also have a 'roundtrip' parameter.
2505 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2507 * ListView.cs: When doing the layout don't request the
2508 ListViewItem instance if we are in virtual mode (since we can't request it
2509 until the item is actully drawn).
2511 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2513 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
2516 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2518 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
2519 the patch from Ernesto).
2521 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2523 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
2524 * ThemeVisualStyles.cs: Added.
2526 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2528 * IDeviceContext.cs: Added a missing using.
2530 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2532 * ButtonBase.cs: Made IsDefault protected internal.
2533 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
2535 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2537 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
2538 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
2539 RadioButtonRenderer.cs: Included in the 1.1 profile.
2540 * IDeviceContext.cs: Added.
2541 * TextRenderer.cs: Included a member in the 1.1 profile.
2543 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2545 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
2547 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2549 * ErrorProvider.cs: Make the error icons come after the control
2550 they refer to. It isn't the way the MS does it, but its better
2551 than what we were doing. See bug #368587.
2553 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2555 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
2556 from Eric Albright that lazy loads the input language as ensures
2557 everything gets properly initialized. Fixes bug #373871.
2559 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2561 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
2562 implicit mnemonics. [Fixes bug #383000]
2564 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2566 * X11Dnd.cs: When canceling the operation, automatically restore the
2567 default cursor - normally the default cursor is restored when the
2568 mouse buttons are released, but we should be able to restore it even
2569 if the buttons are still pressed (for example, when pressing ESC to
2573 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2575 * X11Dnd.cs: When starting a new drad and drop operation, set control
2576 field to null, just as the other fields, to avoid calling any
2577 operation on a previous control. Also, when calling DndLeave on a
2578 control, set it to null, thus we don't fire that event multiple times
2582 2008-04-23 Geoff Norton <gnorton@novell.com>
2584 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
2585 the whole_window object. Fixes #377084.
2587 2008-04-23 Andreia Gaita <avidigal@novell.com>
2589 * HtmlElement.cs: Implement RaiseEvent (event injection into the
2592 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
2594 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
2596 2008-04-23 Andreia Gaita <avidigal@novell.com>
2598 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
2601 2008-04-23 Andreia Gaita <avidigal@novell.com>
2603 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
2606 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2608 * X11Dnd.cs: When the drop was cancelled, or could just not be
2609 performed, return DragDropEffect.None always (match .net).
2611 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2613 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
2615 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2617 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
2619 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2621 * DataGridView.cs: Add support for error icon tool tips.
2622 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
2623 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
2625 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
2627 * X11Structs.cs: Add mouse button masks enum.
2628 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
2629 WM_EXITSIZEMOVE only once at the beginning and at the end of the
2630 form resize/move operation instead of for each step of it.
2631 [Fixes bug #346529 for the x11 backend]
2633 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2635 * DataGridView*: Implement support for drawing error icons.
2637 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2639 * TreeView.cs: Make vbar and hbar internal.
2640 * TreeNode.cs: If collapsing the node removes one of the TreeView's
2641 scrollbars, invalidate the whole thing.
2644 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2646 * TreeView.cs: Calling Sort() sets Sorted = true.
2647 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
2648 if the nodes need to be sorted.
2651 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
2653 * Form.cs: Fire SizeChanged for both when the form is minimized and
2655 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
2656 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
2658 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2660 * ComboBox.cs: If the combobox is disabled, draw a disabled
2661 background before painting anything else.
2664 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2666 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
2667 forget to send a Leave event to the target window - just as .net does
2668 when cancelling dnd operations.
2670 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2672 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
2673 soon as possible - this happens when we send the drop message to the
2674 target window. This way we avoid firing any DragOver _after_ drop finished.
2677 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2679 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
2680 * Form.cs: Handle form minimization as a special state, where size doesn't
2681 change, but we have to fire SizeChanged.
2682 [Fixes bug #325122 for the win32 and x11 backends]
2684 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2686 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
2687 if the handle is disabled.
2690 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2692 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
2693 for forms with FormBorderStyle.None.
2696 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2698 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
2700 [Fixes bug #346529 for the X11 backend]
2702 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2705 - Send a mouse Enter message after say dragging the mouse with a
2706 button down and then release it in another client.
2707 - Reset the cursor to prevent X11 from remembering it and setting it
2708 before the control gets WM_SETCURSOR.
2709 - Qeueue a mouse move after a mouse enter like win32.
2712 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2714 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
2715 It's sent when the form gets moved, resized, closed.
2716 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
2717 [Fixes bug #359193 for X11]
2719 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2721 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
2724 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2726 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
2727 group. Fixes the 1.1 build.
2729 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2731 * ListView.cs: Use display indexes for selection in Details view, as
2732 well as do the proper layout based on display indexes for that view
2735 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2737 * ListView.cs: Focused item information is now stored as a display
2738 index, and display indexes are used all over the place for selection,
2739 instead of ListViewItem.Index values, which doesn't give us enough
2740 information to modify the selection in groups mode, and was broken.
2742 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
2744 * Control.cs: Do not fire MouseDown if validation of the control has
2746 * Form.cs: Validate the form before closing.
2747 [Fixes bugs #330501 and #353310]
2749 2008-04-18 Andreia Gaita <avidigal@novell.com>
2751 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
2752 CreateWebBrowserSiteBase implementations
2753 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
2754 Style and TabIndex setters
2756 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2758 * ListViewGroup.cs: When returning the actual item count, return the
2759 proper count for default group.
2762 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2765 * ListViewGroup.cs: When calculating groups layout, get the actual
2766 number of items per group, since groups added to the group BUT not
2767 added to the ListView are just ignored, and can cause some nasty
2768 exceptions because of the lack of synchronization. Also for
2769 ListViewGroup don't use lazy initialization for items, since we
2770 the common scenario is to use it always - and it helps us to refactor
2771 and clean the .ctor overloads.
2773 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2775 * ListView.cs: When adding an item to a ListViewItemCollection
2776 belonging to a group (ListViewGroup.Items), don't generate a redraw if
2777 the added item hasn't beeen previously added to the ListView instance
2778 refered by the group, since it will be ignored. This should avoid some
2779 really nasty flickering.
2781 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2783 * ListView.cs: When accessing an item in a specific display
2784 position, use the helper method GetItemAtDisplayIndex, instead of
2785 direct access to the reordered_items_indices array. When doing layout
2786 for groups set the correct Items index for the display position (since
2787 in groups mode items don't have the same position as in Items
2789 * ListViewGroup.cs: Add a field to store the starting item number,
2790 which is later used when calculating the layout.
2794 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
2796 * Application.cs: Fixed ProductVersion to fallback to the assembly
2797 version. Fixes regression for bug #325413.
2799 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2801 * ListView.cs: New helper method to retrieve an item in a _specific
2802 display_ position (the items can be displayed in a different order
2803 than one of Items collection).
2804 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
2805 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
2806 specific display position (again remember that items can be sorted
2807 different than Items).
2809 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2811 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
2812 list and update it when the collection changes. We were recreating
2813 this several times per row paint and for every pixel the mouse moved
2815 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
2818 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2820 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
2821 list to use generics.
2822 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
2823 and remove unneccessay casts.
2825 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2827 * DataGridViewBand.cs: Add internal way to set displayed variable.
2828 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
2829 * DataGridView.cs: Make sure we always keep track of Displayed
2830 rows and columns, and only draw things that are displayed.
2832 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
2834 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
2835 whether the key events are filtered or not. Introduced
2836 PreFilter() process for this purpose. This fixes atokx3/iiimx
2839 2008-04-16 Andreia Gaita <avidigal@novell.com>
2841 * HtmlHistory.cs: Implement Length property
2843 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
2845 * DataGridView.cs: Call EndEdit when a sort is performed so we take
2846 away the edit textbox. Refactor to reuse column sort code.
2848 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
2850 * MenuAPI.cs: Remove the code that save and restore capture status of
2851 grab_control, this fixes some Menu and Context menu bugs but maybe it can
2852 cause some others, I cant figure the possible problems of this patch but
2853 right now remove the code looks to be better than keep it. This patch fixes
2854 bugs #357638, #378721 and #379570.
2856 2008-04-12 Andreia Gaita <avidigal@novell.com>
2858 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
2859 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
2860 add missing properties and event handlers.
2862 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
2864 * ListBox.cs: Make sure the LargeChange we are setting is at least
2865 zero, to prevent an IOORE. [Fixes bug #379531]
2867 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
2869 * ComboBox.cs: Support item navigation by entering text. Firstly,
2870 in DropDownList mode, for each key-press select the next item
2871 starting with that letter.
2872 For other modes, when no item selected, on arrow-up/-down and open
2873 drop-down select the first item matching the text in the textbox.
2875 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
2877 * X11Keyboard.cs : Control.FromHandle() could return null
2878 in MoveCurrentCaretPos().
2880 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2882 * ListView.cs: When changing the size in VirtualMode, also Reset the
2884 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
2885 changing selection info for VirtualMode.
2888 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2890 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
2891 view, don't use LineLimit for the first item - use NoWrap *always*
2892 instead, since ListView.LabelWrap is not used for this view.
2895 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2897 * Binding.cs: Call UpdateIsBinding when setting control - probably
2898 Binding is already usable and we don't need to wait to check the
2899 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
2900 Created, just like 2.0 does.
2901 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
2903 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2905 * Binding.cs: Just realized we don't need to have a handler for
2906 BindingContextChanged, since this info should be now consumed directly
2907 in the BindingManagerBase. And also, the manager.IsBindingSuspended
2908 state info is checked directly, instead of caching it.
2910 * CurrencyManager.cs: IsSuspended should return always false if Count
2913 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2915 * Binding.cs: When calling PushData, return if manager.Count == 0,
2916 since we just don't have data to be read. Also, when setting the
2917 Control for binding, hook up some events to refresh the IsBinding
2918 state when BindingContext change or control gets created; use
2919 Control.IsHandleCreated instead of Control.Created check to set
2920 IsBinding state - we *actually* need to modify IsBinding when control
2921 is created, but we don't have any Created event, only HandleCreated.
2922 Fixes part of #349364.
2924 2008-04-11 Geoff Norton <gnorton@novell.com>
2926 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
2927 warping a null Caret.
2929 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2931 * DataGridView.cs: Implement row/column autosizing methods. Implement
2933 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
2934 * DataGridViewRowCollection.cs: Add an internal sorting method.
2936 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2938 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
2939 value in ListView drawing code.
2941 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2943 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
2944 is clicked. Respect the user setting Cancel in FileOk.
2946 2008-04-11 Geoff Norton <gnorton@novell.com>
2948 * ListView.cs: Avoid setting and resetting control Width/Heights and
2949 calculate the final value and set it once. Prevents a feedback loop
2952 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2954 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
2957 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
2959 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
2960 Add some on-the-spot code, but it seems we don't need it.
2962 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2964 * Form.cs: Add method for DataGridView to trigger focus cues
2965 even when it handles the tab keypress.
2967 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2969 * DataGridView.cs: More keyboard handling, tab, esc.
2970 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
2971 when at the beginning or end of the text in the text box.
2973 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2975 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
2977 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2979 * DataGridView.cs: Some fixups for showing and adding the edit control.
2980 * DataGridViewButtonColumn.cs: Implement ToString.
2981 * DataGridViewCell.cs: Size and position the control simultaneously.
2982 * DataGridViewTextBoxCell.cs: Use base to position control.
2984 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2986 * DataGridViewCell.cs: Fix up some formatting and painting code.
2987 * DataGridViewImageCell.cs: Implement some NIEX methods.
2989 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2991 * ToolStripItemCollection.cs: What moving an item from one owner
2992 to another, remove from source owner before adding to destination.
2995 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2997 * PictureBox.cs: Call Load when ImageLocation is set.
3000 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
3002 * X11Keyboard.cs, XplatUIX11.cs :
3003 Implement over-the-spot mode (with some odd offsets).
3004 - set preedit position when caret is set.
3005 - Wrap XMoveResizeWindow() to move preedit position.
3007 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3009 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
3012 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3014 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
3015 and ScanTableIndex public, it fix compilations errors when compiling
3016 WinForms to generate keyboard layout resources.
3018 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3020 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
3021 different element count than scan table. It prevents some errors in non
3024 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3026 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
3028 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3030 * DataGridView.cs: Call OnContentClick.
3031 * DataGridViewCell.cs: Do a null check on ValueType instead
3033 * DataGridViewCheckBoxCell.cs: Implement.
3035 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3037 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
3039 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3041 * X11Keyboard.cs : Check XGetIMValues() return value in
3042 case it does not return input styles in some environment.
3044 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3046 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
3048 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3050 * BindingContext.cs: Stub UpdateBinding method.
3052 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
3054 * X11Structs.cs : added couple of structs for XIM support.
3056 Release XIM in case it failed to create XIC.
3057 Use consts for XNblah string.
3058 Add support for IM style customization and XIC creation
3059 for preedit-position and preedit-callback.
3060 Right now use MONO_WINFORMS_XIM_STYLE environment variable
3061 (list of: over-the-spot | on-the-spot | root). Only root
3064 (redoing r99172 with fix.)
3066 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3068 * TreeView.cs: Center the checkbox a little better.
3070 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3072 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
3073 Apply very nice patch from Ernesto Carrea that simplifies our
3074 scrollbar drawing. [From bug #376146]
3076 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3078 * TreeView.cs: Correct the location of the root node checkbox when
3079 ShowRootLines = false. Don't draw the root lines for the root node
3080 when ShowRootLines = false. [Fixes bug #377535]
3082 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3084 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
3086 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
3088 * MaskedTextBox.cs: Added missing attribute. Code formatting.
3089 * PageSetupDialog.cs: Added missing attribute. Code formatting.
3090 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
3091 * ImeMode.cs: Added missing field.
3092 * HtmlWindow.cs: Code formatting. Fixed line endings.
3093 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
3095 * HtmlHistory.cs: Code formatting. Fixed line endings.
3096 * HtmlDocument.cs: Code formatting. Fixed line endings.
3097 * ToolStripPanel.cs: Added missing IList implementation.
3098 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
3100 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3102 * BindingContext.cs: Changed argument names to fix corcompare errors.
3103 * DataGridView.cs: Removed extra explicit interface implementation
3104 of IDropTarget. Code formatting.
3105 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
3106 * ComboBox.cs: Changed argument names to fix corcompare errors.
3107 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
3109 * GridColumnStylesCollection.cs: Changed argument names to fix
3110 corcompare errors. Removed extra tabs.
3111 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
3113 * Control.cs: Changed argument names to fix corcompare errors. Code
3114 formatting. Removed extra explicit IList implementation.
3115 * TextBox.cs: Changed argument names to fix corcompare errors. Code
3116 formatting. Use string.Empty instead of "".
3117 * GridItemCollection.cs: Changed argument names to fix corcompare
3118 errors. Code formatting.
3119 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
3120 corcompare errors. Code formatting.
3121 * ImageList.cs: Changed argument names to fix corcompare errors.
3122 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
3123 * DataGridViewRowCollection.cs: Changed argument names to fix
3124 corcompare errors. Code formatting.
3125 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
3126 * DataGridViewSelectedCellCollection.cs: Changed argument names to
3127 fix corcompare errors. Code formatting.
3128 * DataGridViewComboBoxCell.cs: Changed argument names to fix
3129 corcompare errors. Code formatting.
3130 * LinkLabel.cs: Changed argument names to fix corcompare errors.
3131 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
3133 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
3135 * BindingSource.cs: Changed argument names to fix corcompare errors.
3136 Removed extra explicit interface implementations.
3137 * DataGridViewSelectedRowCollection.cs: Changed argument names to
3138 fix corcompare errors. Code formatting.
3139 * ToolStripItemCollection.cs: Removed extra explicit interface
3140 implementation of IList.ReadOnly.
3141 * DataGridViewColumnCollection.cs: Changed argument names to fix
3142 corcompare errors. Code formatting.
3143 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
3144 * ListView.cs: Changed argument names to fix corcompare errors.
3145 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
3147 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
3149 * ListBindingHelper.cs: Changed argument names to fix corcompare
3151 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
3152 fix corcompare errors. Code formatting.
3153 * ToolStripPanel.cs: Removed extra explicit implementation of
3154 IDropTarget interface.
3155 * ListBox.cs: Changed argument names to fix corcompare errors. Code
3156 formatting. Removed extra tabs and spaces.
3157 * DataGridViewCellCollection.cs: Changed argument names to fix
3159 * Help.cs: Changed argument names to fix corcompare errors. Code
3161 * TabControl.cs: Changed argument names to fix corcompare errors.
3162 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
3164 * TableLayoutSettings.cs: Changed argument names to fix corcompare
3167 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3169 * ListBindingHelper.cs: When returning properties, only return those
3170 that are browsable. Also, don't do a linear search of the properties,
3171 but use the indexer of the PropertyDescriptorCollection class.
3173 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3175 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
3176 Dictionary containing the related (child) currency managers. Also,
3177 when setting DataSource, add datasource to our List if it is not a list.
3179 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3181 * PropertyGridTextBox.cs: Fix background color of the buttons.
3182 * PropertyGridView.cs: Make the entry less jumpy.
3184 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3186 * PropertyGrid.cs: Fix unused variable warnings.
3188 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3190 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
3191 double-click. It expanded it once in the mouse down and then
3192 again in the double-click handler.
3194 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
3196 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
3197 TypeConverter and UITypeEditors.
3199 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
3201 * Control.cs: Visibility should be set synchronously,
3202 so we must also redraw once it is and not rely on layouting or
3203 other code to repaint.
3206 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
3208 * DataGridViewCell.cs: Respect DataGridView.GridColor.
3210 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3212 * Control.cs: Invalidate when the alpha channel is less than 255,
3213 not only when control is transparent.
3215 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3217 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
3218 Implement some painting convenience methods that threw NIEX.
3220 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3222 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
3223 * DataGridViewLinkCell.cs: Implement.
3225 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3227 * GridEntry.cs: Report the conversion exception error description.
3230 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3232 * PropertyGridView.cs: Do not scroll to item on resize.
3235 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3237 * BindingContext.cs: When retrieving a BindingManagerBase, if the
3238 dataSource parameter is ICurrencyManagerProvider, then return
3239 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
3240 instead of creating a new one.
3242 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3244 * BindingSource.cs: Implement support for Type instances as
3247 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3249 * DataGridView.cs: Minor cleanups and call CellMouseUp.
3250 * DataGridViewCell.cs: Make some painting routines internally virtual.
3251 * DataGridViewButtonCell.cs: Implement.
3253 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3255 * Control.cs: We always need to invalidate our children with
3256 transparent backgrounds when we are invalidated.
3259 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3261 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
3262 and CancelCurrentEdit on CurrencyManager respectively. Implement
3263 support for ICancelAddNew too.
3265 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3267 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
3268 call EndNew/CancelNew if list is ICancelAddNew.
3270 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
3272 * DataGridView.cs: Guard against an exception while painting
3273 if there are no rows.
3275 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
3277 * DataGridView.cs: Implement a bunch of keyboard commands.
3279 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
3281 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
3282 isn't set, don't call OnPaint. [Fixes bug #375300]
3284 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3286 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
3287 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
3288 hookup the remaining events related to CurrencyManager, and fire
3289 OnListChanged also for the Clear () method.
3291 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3293 * BindingSource.cs: Use Current and Position implementations in
3294 CurrencyManager instead of using our own routines, since we need
3295 to be in synch with it. Count should NEVER return a -1 value, and
3296 also report ListChanged events for both simple IList data
3297 sources (manually) as well for IBindingList ones (by hooking up an
3298 event handler for it).
3300 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3302 * BindingSource.cs: Make one .ctor call the another, to avoid
3303 duplicate code. Add the CurrencyManager property, and also for AddNew
3304 throw the proper exceptions and show better error messages.
3306 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3308 * ComboBox.cs: Only adjust selectedindex if Handle has been
3309 created. Fixes failing test.
3311 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3313 * ComboBox.cs: Adjust selectedindex if we insert a new item
3314 above the current selectedindex in a sorted ComboBox.
3317 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3319 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
3322 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3324 * DataGridViewTextBoxCell.cs: Implement stuffs.
3326 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3328 * TreeView.cs: Create the scrollbars even earlier to be
3329 double dog certain they are created before they are accessed.
3331 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3333 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
3335 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3337 * ScrollBar.cs: Create an internal safe Value setter so we
3338 won't crash if we try to set a value outside the min and max.
3339 * TextBoxBase.cs: Use safe value setter to guard against a
3340 potential NRE that is being reported by Reflector.
3342 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3344 * TreeView.cs: Create the scrollbars earlier in the constructor
3345 to attempt to guard against an NRE in SetTop in Reflector.
3347 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3349 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
3350 DataGridViewRowCollection.cs: Do not scroll column and row headers,
3351 show messagebox on data format error, use column display index
3352 correctly, make sure HitTest supports new layout stuff,
3353 make sure scrollbars support new layout stuff.
3355 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
3357 * XplatUIX11.cs : Patch by Doug Rintoul.
3358 For some IM engines, keypress events need to delay call
3359 to XPending() and XNextEvent() in the loop so that it
3360 does not mess the orders in XIM commit callback.
3361 Some KeyRelease events such as shift keys need to be
3362 processed both in the IM engine and winforms driver
3363 itself since winforms holds its own state check.
3365 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
3367 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
3369 * X11Keyboard.cs, XplatUIX11.cs :
3370 add primitive support for XIM input support (preedit-
3371 nothing and status-nothing). It requires precise event
3372 capturing (XSelectInput/"filterEvents") and different
3373 call to XFilterEvent against root window.
3374 Get composed string and send dummy WM_IME_COMPOSITION.
3375 Free XIM and XIC instances in finalizer.
3377 (This first patch does not include suggested changes
3378 by Doug Rintoul. It will follow.)
3380 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3382 * DataGridView.cs: When binding to a property, if the property
3383 doesn't have a setter, set the column to readonly.
3386 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3388 * ComboBox.cs: Guard against NRE if an arrow key is hit while
3389 we aren't dropped down. Support Home/End in DropDownList mode.
3392 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3394 * TreeNodeCollection.cs: Don't increment count until we've
3395 saved our index to return.
3398 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3400 * Label.cs: Add padding to the label's AutoSize calculation.
3403 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3405 * ListBindingHelper.cs: Actually implement GetListName method.
3407 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3409 * BindingSource.cs: Throw the propert expceptions for some methods, as
3410 well as detect the list item type for Add method if DataSource is null.
3412 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3414 * DataGridViewCell.cs: I don't know why I commented this out,
3415 putting it back for now.
3417 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3419 * DataGridViewCell.cs: Remove storage for owning column, just
3421 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
3422 * DataGridViewColumnHeaderCell.cs: If the header text has been
3423 explicitly set, return it.
3426 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3428 * DataGridViewRowCollection.cs: Disable row sharing when
3429 using data binding. Its a great feature, but lets work on
3430 getting DGV usable first before we worry about optimizations.
3432 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3434 * BindingSource.cs: When resetting our internal list, compute list
3435 item type information to be used for indirect list access. Also
3436 implement/tune some properties and methods related to the list access
3438 * ListBindingHelper.cs: Add a stub for GetListName method, used from
3441 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3443 * DataGridView.cs: If RowCount is increased while ColumnCount
3444 is zero, add a column. [Fixes bug #331649]
3446 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3448 * DataGridViewRowCollection.cs: When adding new rows for
3449 databinding, make sure they are place before the add row.
3452 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3454 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
3455 instead of Index order.
3457 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3459 * DataGridView.cs: If columns are added by increasing ColumnCount,
3460 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
3463 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3465 * DataGridView.cs: Turn off and on the "new row" when
3466 AllowUserToAddRows is toggled. When the handle is created,
3467 set current cell and selected cell/row/col.
3469 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3471 * ComboBox.cs: When navigating the drop down by keyboard, we
3472 need to scroll the list box if our selection moves out of the
3473 currently shown items. [Fixes bug #371990]
3475 2008-03-24 Luke Page <luke.a.page@gmail.com>
3477 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
3478 on the control. Also now handles unicode compatibility characters and
3479 stores the unicode compatibility length on the stack. Fixes Bugs
3480 #355198 and #366436.
3482 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3484 * BindingSource..cs: Take into account DataMember when re-creating the
3485 List property, and also create a specific kind of list as needed.
3487 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3489 * ListBindingHelper.cs: Add a new case for GetList () method - when we
3490 get an empty IEnumerable, try to detect whether the datamember is
3491 valid or not for that type, if true, return null, and throw exception
3494 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
3496 * ComboBox.cs: Alt-Down should drop down the list, Esc should
3497 retract it. [Fixes bug #371989]
3499 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
3501 * PropertyGrid.cs: Initialize the sorting button as pushed.
3503 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
3506 - Visually select the PropertyTab.
3507 - Filter Properties by Attributes properly.
3509 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3511 * MenuItem.cs: Remove menu item from parent when disposed.
3514 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3516 * ToolBar.cs: Don't reset layout_type if Dock = None.
3518 2008-03-21 Andreia Gaita <avidigal@novell.com>
3520 * UserControl.cs: Select the first available control when we get focus.
3523 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3525 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
3526 the content if we are in edit mode. [Fixes bug #343964]
3528 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3530 * DataGridViewCell.cs: Fix border painting for column headers.
3532 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3534 * BindingSource.cs: When setting or resetting data source,
3535 use ListBindingHelper.GetList () method, since it will get the list in
3536 case datasource is IListSource.
3538 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3540 * DataGridViewCell.cs: Implement lots more stuffs.
3542 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3544 * PropertyGridView.cs, GridEntry.cs: Implement support for
3545 UITypeEditor.IsDropDownResizable.
3547 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3549 * DataGridViewCell.cs: Remove unused variables, improve how
3550 several of the property getters work.
3551 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
3552 get its size from the parent row/col.
3554 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3556 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
3557 user alters manually the PropertyTabs collection via the
3558 PropertyTabs property.
3560 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3562 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
3563 new tests for them to be sure to be compatible with .net.
3565 2008-03-20 Andreia Gaita <avidigal@novell.com>
3567 * WebBrowserBase.cs: Fix attributes, add events
3568 * WebBrowser.cs: Fix Padding signature
3570 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3572 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
3574 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
3576 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
3577 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
3578 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
3579 passes the new suite of tests for it.
3581 2008-03-18 Andreia Gaita <avidigal@novell.com>
3583 * WebBrowser.cs: Add missing attributes, missing Padding and
3584 DefaultSize properties, remove extraneous getters
3586 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3588 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
3591 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3593 * ComboBox.cs: Move resetting the selected index to keypress
3594 instead of textchanged. Changing the text programmatically
3595 should not trigger resetting the selected index. Fixes test.
3597 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3599 * ComboBox.cs: When the user types into the textbox, reset
3600 the selected index to -1. [Fixes bug #371672]
3602 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3604 * FileDialog.cs: Support Control-A for selecting everything
3605 in an OpenFileDialog. [Fixes bug #371564]
3607 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
3609 * DataGridView.cs: When row/column visible/height properties
3610 change, invalidate. Take the NIEX out of InvalidateRow/Column
3611 etc. We don't support them yet, but we can just invalidate
3612 everything until we do support them. (Added MonoTODO). Set
3613 proper control styles.
3614 * DataGridViewRow.cs: Don't call PaintHeader if row headers
3617 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3619 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
3621 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3623 * DataGridViewRow.cs: Only paint the white background in
3624 cell bounds, the row bounds extends past the cells if the
3625 grid width isn't as wide as the DGV.
3627 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3629 * DataGridView*: Completely revamp the drawing to match the
3630 public API. Our grids now look better, and call all the
3631 appropriate methods and event to allow users to override
3632 the painting and do their own.
3634 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3636 * ListBindingHelper.cs: Implement 2.0 GetList methods.
3638 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3640 * DataGridView.cs: Implement BorderStyle.
3642 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3644 * FileDialog.cs: Apply patch from Andy Hume: Any time we
3645 are comparing attributes, make sure we only look at the
3646 one we are interested. These calls were failing if there
3647 were more than one attribute.
3650 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3652 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
3654 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3656 * PageSetupDialog.cs: Stub EnableMetric.
3657 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
3658 * PrintPreviewDialog.cs: Add ProcessDialogKey,
3661 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3663 * MonthCalendar.cs: Remove unused variable.
3665 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3667 * DataGridView*.cs: corcompare stuffs.
3669 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3671 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
3672 The savings aren't worth the extra code to fix the optimization.
3675 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3677 * ToolBar.cs: Always call base.Dock in the Dock override so that
3678 Control's layout_type gets reset correctly.
3681 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
3683 * X11Dnd.cs: End DnD operation also for the middle mouse button.
3685 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3687 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
3688 at the same time we do explicit ones, because we have to give all
3689 other controls on the container a chance to handle explicit ones
3690 first. If no one has an explicit mnemonic, then we can let the
3691 MenuStrip have a shot at implicit mnemonics.
3692 * MenuStrip.cs: Create an implicit mnemonic function.
3693 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
3694 mnemonics for MenuStrips.
3697 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3699 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
3700 DataGridColumnStyle.cs: corcompare stuffs.
3702 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3704 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
3705 Details - This is needed after we added the bits to use any available
3706 column also for List and SmallIcon view.
3708 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3710 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
3711 at the proper place, not only when changing SelectedIndex and changing
3712 the selection using keys/mouse, as .net does.
3714 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3716 * ControlBindingsCollection.cs: Implement last 2.0
3717 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
3718 in the new 2.0 Add methods.
3720 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3722 * ListBox.cs: When calling SelectedIndexCollection.Clear,
3723 return if no items are previously selected - this is done to avoid
3724 firing OnSelectedIndexChanged without need to do so. Also,
3725 when creating handle ensure that the focused item is visible (as
3728 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3730 * ListBox.cs: Rewrote/refactored most of selection code. We require
3731 the following things in selection: a) keep selection sorted (both
3732 indices and items), b) SelectedIndices automatically detect the
3733 selection mode, c) SelectedIndex should be the first selected item
3734 index, d) Need to Focus/adjust scroll bar when selecting a new item,
3735 not only for SelectedIndex, which is specially important in Multi*
3736 selection modes. To achieve this we are moving the selection core to
3737 SelectedIndexCollection and make depend all selection modifications on
3741 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3743 * ToolStrip.cs: Enable implicit mnemonics for drop down
3744 menu strips. [Fixes part of bug #367692]
3746 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3748 corcompare - fix parameter names [stragglers].
3749 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
3750 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
3753 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3755 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
3756 was a mnemonic pressed as well as Alt. Also, if nothing handles a
3757 mnemonic, let the ToolStripManager have it even if it doesn't
3758 have a matching mnemonic.
3761 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3763 corcompare - fix warning about implicit implementation
3764 * ToolStrip.cs: Add IToolStripData interface.
3765 * IToolStripData.cs: Add.
3767 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3769 corcompare - fix warning about implicit implementation
3770 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
3773 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3775 corcompare - fix parameter names [N-Z].
3776 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
3777 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
3778 PropertyManager.cs, RichTextBox.cs,
3779 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
3780 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
3781 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
3782 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
3783 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
3784 ToolStripContentPanel.cs, ToolStripDropDown.cs,
3785 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
3786 ToolStripPanel.cs, ToolStripSeparator.cs,
3787 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
3788 UICuesEventHandler.cs, UpDownBase.cs.
3790 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3792 corcompare - fix parameter names [G-M].
3793 GridColumnStylesCollection.cs, GridItemCollection.cs,
3794 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
3795 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
3796 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
3797 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
3798 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
3800 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3802 corcompare - fix parameter names [A-F].
3803 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
3804 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
3805 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
3806 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
3807 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
3808 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
3809 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
3811 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3813 * GridEntry.cs: Do not convert not only if the types match,
3814 but also if the property type is assigneable from the value's
3818 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3820 * PropertyGridView.cs:
3821 - Subscribe to the listbox only once and not everytime.
3822 - Update the textbox even if SetValue fails.
3823 - Close the listbox before calling TrySetValue just in case.
3826 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
3828 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
3830 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3832 * ListView.cs: Implement support for custom column width based on
3833 Columns collection (we were previously using this collection only
3837 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3839 * ListViewItem.cs: For Tile view, always set bounds for the first
3840 subitem (which is the main one), and also don't let Width be larger
3841 than ListView.TileSize.Width. Improve code readibility also.
3842 * ThemeWin32Classic.cs: When painting the ListViewItem instances
3843 in Tile view, _always_ use the NoWrap flag.
3846 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
3848 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
3850 * GridEntry.cs: For MS compitability make all child properties
3851 readonly if the parent is readonly. Ugh.
3852 [Fixes bug #365945 and #365944]
3854 2008-02-29 Andreia Gaita <avidigal@novell.com>
3856 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
3857 relative to the history
3859 2008-02-29 Andreia Gaita <avidigal@novell.com>
3861 * HtmlElement.cs: More handlers for mouse and key events
3863 2008-02-28 Andreia Gaita <avidigal@novell.com>
3865 * WebBrowserBase.cs: MouseClick sig changed.
3866 * HtmlHistory.cs: Implement history navigation
3867 * HtmlElement.cs: Add event handlers, and connect them.
3869 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
3872 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
3873 so that DisplayNameAttribute doesn't get ignored.
3874 - Check for ParenthesizeNameAttribute and parenthesize the Label.
3875 - Add support for PasswordPropertyTextAttribute
3876 * PropertyGridView.cs: Check if an entry is a password.
3877 [Fixes bugs #365589, #365586, #365588]
3879 2008-02-28 Andreia Gaita <avidigal@novell.com>
3881 * PropertyGridView.cs: Revert the message filtering change, as we
3882 need it to block after all. Remove block parameter, unnecessary.
3884 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
3886 * UserControl.cs: Better implementation of GetPreferredSize.
3887 First step to fixing bug #361441.
3889 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3891 * Binding.cs: Actually implement data binding support for
3892 classes implementing IBindableComponent.
3893 * ControlBindingsCollection.cs: Likewise.
3895 2008-02-26 Andreia Gaita <avidigal@novell.com>
3897 * PropertyGridView.cs: Use a message filter to check when to
3900 2008-02-26 Andreia Gaita <avidigal@novell.com>
3902 * Application.cs: Change the message_filters loop so a filter
3903 can be removed while looping.
3905 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
3907 * GridEntry.cs: Optimization in ToggleValue so that it caches
3909 * PropertyGridView.cs: An optimization so that the property isn't
3910 re-read twice for each StandardValue added to the drop-down menu.
3911 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
3915 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
3917 * Application.cs: Apply patch from Justin Cherniak to match
3918 MS better for ProductName, ProductVersion, and CompanyName.
3921 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3923 * Binding.cs: Actually implement 2.0 NullValue property. Also
3924 when changing the formatting related properties, only update the state
3925 if formatting_enabled is true (we don't mind otherwise).
3927 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
3929 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
3932 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3934 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
3935 of GetType on the current value as it uses reflection to
3936 determine the type. This fixes the case where the new value is
3939 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3941 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
3944 2008-02-24 Luke Page <luke.a.page@gmail.com>
3946 * Line.cs, TextControl.cs: Implement offset x and y so that a
3947 document doesn't have to begin at (0,0) on the viewpoint.
3948 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
3949 bars and switches the text alignment (and therefore is now
3950 implemented for textbox). Fixes #321383.
3952 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3954 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
3955 properties. Also when changing FormattingEnabled update the control
3956 property -as .Net does-.
3958 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
3960 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
3961 * Binding.cs: Add stubs for the overloads of the Add method in
3964 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3966 * Binding.cs: PullData () returns a false value if we got an exception.
3967 Also when validating the control and we get an error, instead of
3968 setting the value of the previous one, cancel the event (tested in 1.1
3971 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
3973 * TreeView.cs: Make selected_node and highlighted_node internal.
3974 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
3975 to null when Nodes.Clear is called.
3978 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3980 * FontDialog.cs: Ensure that when the Font is set in code,
3981 all the gui pieces are updated accordingly.
3984 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3986 * TextRenderer.cs: Respect proposed size for MeasureString.
3987 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
3988 autosize, use a proposed width to force wrapping for long text.
3991 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3993 * TreeView.cs: Factor in checkboxes = false and state images in
3994 to HitTest. [Fixes bug #363360]
3996 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3998 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
3999 when drawing the selected range.
4002 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4004 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
4005 ResizeRedraw control styles.
4008 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4010 * TreeView.cs: StateImages are basically custom checkboxes, so
4011 factor their size the same as real checkboxes when determining
4015 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4017 * MessageBox.cs: Make the message box wider if the form caption
4018 is longer than the text in the form.
4021 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4023 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
4025 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4027 * TreeNode.cs: Guard against an NRE when the parent's
4028 StateImageList hasn't been set.
4031 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4033 * SplitContainer.cs: Add SupportsTransparentBackColor and
4034 OptimizedDoubleBuffering control styles.
4037 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4039 * Application.cs: For the app data paths and the registry key paths,
4040 ensure they are created before returning them to the user.
4043 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4045 * Application.cs: Guard against an NRE in CompanyName and
4048 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4050 * Application.cs: For CompanyName, ProductName, and ProductVersion,
4051 make sure we handle all three cases correctly: attribute is present,
4052 attribute is present but is an empty string, and attribute is not
4055 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4057 * PropertyGridView.cs:
4058 - Fix a NRE that caused a test failure
4059 - Another performance improvement - cache the standard values
4062 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4064 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
4067 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
4069 * PropertyGridView.cs: Fix a big performance bug.
4071 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4073 * SelectionRange.cs: Apply patch from Andy Hume to make
4074 constructor behavior more accurate. [Fixes bug #362117]
4076 2008-02-19 Andreia Gaita <avidigal@novell.com>
4078 * Control.cs: Added a new flag is_disposing to track if the
4079 window is currently in the process of being disposed of.
4080 This is used so that, when firing visibility changes triggered
4081 by unparenting controls during Dispose, the control doesn't
4084 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4086 * ComboBox.cs: Set height to preferred height when the handle
4087 is created. [Fixes bug #360862]
4089 2008-02-18 Andreia Gaita <avidigal@novell.com>
4091 * XplatUIX11.cs: Create FosterParent with border width at 0.
4092 With the previous value of 4, everytime a control got reparented
4093 from parent = null, it's location would be shifted right and
4094 down by 4, since these coordinates would be offset by the
4095 FosterParent's border width.
4097 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
4099 * Control.cs: During diposing firstly remove ourselfes from
4100 the parent and *then* destroy our handle, because removing
4101 ourselfes from the parent controls collection causes
4102 VisibilityChange, etc events, which require a handle and end
4103 up recreating the control.
4105 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
4107 * GridEntry.cs: Set expanded state before notifying that the
4108 expansion has taken place.
4109 * PropertyGridView.cs:
4110 - Set the propertygridtextbox text to the selected
4111 StandardValue before proceeding to setting it.
4112 - Scrolling bugfixes.
4114 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4117 - Fix ValueText to not return null.
4118 - Fix conversion error reporting to actually happen.
4119 * PropertyGridView.cs: Set entry only if the text has changed.
4122 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4125 - Fix handling of a null current value.
4126 - Swallow editor exceptions.
4129 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4131 * PropertyGrid.cs: Clear current items first thing before
4132 repopulating subitems.
4134 - Handle null StandardValuesCollection.
4135 - Mark as not editable if there is no PropertyDescriptor and
4136 if the Converter cannot convert from string.
4137 [Part of fix for bugs #360666 and #358332]
4139 2008-02-15 Luke Page <luke.a.page@gmail.com>
4140 * MaskedTextBox.cs: Now skips non editable characters after a
4141 character has been entered and we are progressing to the next
4142 position in the MaskedTextBox.
4144 2008-02-15 Luke Page <luke.a.page@gmail.com>
4145 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
4146 that it changes the selection rather than just repositioning the
4147 cursor. Fixes Bug #360873.
4149 2008-02-15 Luke Page <luke.a.page@gmail.com>
4150 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
4151 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
4152 correctly. See #359330
4154 2008-02-15 Andreia Gaita <avidigal@novell.com>
4156 * XplatUIX11.cs: If the handle is null when posting a message, use the
4157 current thread queue to post instead. Fixes #332409
4159 * SendKeys.cs: Slight optimization
4161 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
4163 * PropertyGrid.cs, PropertyGridView.cs:
4164 Fix multiple scrolling and sizing issues.
4167 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
4169 * PropertyGridView.cs: Ensure that drop down editors are shown
4170 in the WorkingArea of the screen.
4173 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
4175 * GridEntry.cs: Fail silently when UITypeEditor is missing.
4178 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4180 * Binding.cs: Implement 2.0 DataSourceNullValue property.
4182 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4184 * PropertyGridView.cs:
4185 - Clear the controls in the drop down form after it is hidden.
4186 - Fix Width sizing of the dropdown editors to match MSFT.
4188 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4190 * PropertyGridView.cs:
4191 - Fix height for drawing the grid entry
4192 text value, so that it clips multiline text properly.
4193 - Fix unfocusing to match MSFT.
4195 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4197 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
4198 Fixes a bug where on repopulation after value changed items become
4201 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4203 * Binding.cs: For the 2.0 profile, look for a
4204 'PropertyChanged' event in the target control, and add checks for
4205 DataSourceUpdateMode property to change -or not- the data source
4206 from validation/control property change.
4208 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
4210 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
4211 not compare struct with null in 2.0).
4213 2008-02-10 Luke Page <luke.a.page@gmail.com>
4215 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
4216 updates the provider and if not using a provider, uses the internal document
4217 class implementation of password char. Also when showing text, uses display string
4218 from the provider, instead of the actual text.
4220 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4222 * Binding.cs: Ooooops, forgot to take into account the data_source
4223 and binding_member_info null case (it was breaking the Binding tests).
4225 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4227 * Binding.cs: Implement support for data source changes exposed by
4228 'PropertyNameChanged' events, and update the control property as
4231 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4233 * Binding.cs: Implement 2.0 WriteValue method.
4235 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4237 Commit patch from James Purcell for better AutoScale implementation:
4239 * ScaleControl should call GetScaledBounds with the control's total size rather
4240 than client size. GetScaledBounds should handle ignoring the borders in its
4241 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
4242 (for the most part they just call the base code now since that is fixed).
4243 * Added ScaleChildrenInternal to allow controls to disable scaling of children
4244 without having to override ScaleChildren (since none of .NET's controls do).
4245 This is required for most controls in Mono that have scrollbars to prevent the
4246 scrollbars from being moved/resized.
4247 * Nested ContainerControls can have a different scale mode than their parent.
4248 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
4249 designer produce different results both of which look incorrect).
4250 * Default AutoScaleMode for ContainerControl should be Inherit.
4251 * Simplified workaround for ComboBox scaling issue.
4252 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
4253 1.0 style auto scaling should scale the whole control's size instead of
4254 ignoring the borders (except for Form) and the rounding is done differently to
4255 preserve control alignment.
4256 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
4258 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
4259 * CurrentAutoScaleDimensions should round the estimated character width instead
4261 * ListBox's GetScaledBounds should always use the height it was set to instead
4262 of the height that was passed in. This prevents rounding errors from
4263 accumulating quickly with IntegralHeight.
4266 2008-02-08 Andreia Gaita <avidigal@novell.com>
4268 * Form.cs: Add a null check (darn it).
4270 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4272 * MdiClient.cs: Make sure the requesting form actually owns the
4273 control menu items before removing them. Also, use
4274 Suspend/ResumeLayout when adding or removing items so we only
4278 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4280 * Control.cs: Guard against an NRE in ShowFocusCues.
4283 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4285 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
4286 property, as well as stubbing DataSourceUpdateMode.
4288 2008-02-08 Andreia Gaita <avidigal@novell.com>
4290 * Form.cs: When closing forms, get focus back to the active control of the
4291 active form. [Fixes #341314, corner case]
4293 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4295 * MdiClient.cs: After we move the scrollbars, invalidate the NC
4296 area, so any old scrollbar artifacts are cleaned up.
4299 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4301 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
4302 for our menus, display that control box menu instead of the 1.1
4305 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4307 * MdiControlStrip.cs: Add property to access the mdi form tied to
4309 * MdiClient.cs: Be smarter about removing and adding toolstripitems
4310 to the implicitly merged menu. Every time we clicked the form, items
4311 were getting removed and the re-added, causing the form to jump around
4312 as the menu resized.
4314 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4316 * MdiClient.cs: Make sure the NormalBounds always gets set. It
4317 was being reset by the implicit menu merge for menustrips.
4320 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4322 * Form.cs: Don't do the previous change when WindowState = Normal,
4323 or it messes up where the window is placed. Fixes test failure.
4325 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4327 * Form.cs: When becoming visible, if we are an MDI child, call
4328 SetWindowState with a dummy old_state so that changes will actually
4330 [Fixes the 2nd part of bug #325473]
4332 2008-02-07 Andreia Gaita <avidigal@novell.com>
4334 * Control.cs: Reset properties to their pre parent-change values in case
4335 the new parent == null (in which case we're basically removing the control,
4336 and don't want any events fired due to fake property changes)
4339 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
4341 * PropertyGridView.cs:
4342 - Refactor SetValue to allow setting the value
4343 when a custom editor is used, but the entry is not editable.
4344 - Remove the custom editor control on CloseDropDown.
4347 2008-02-06 Andreia Gaita <avidigal@novell.com>
4349 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
4350 reflection only on 1.1, this property is public on system.drawing on 2.0.
4353 2008-02-06 Andreia Gaita <avidigal@novell.com>
4355 * WebBrowser.cs: Do a normal page refresh by default.
4357 2008-02-05 Andreia Gaita <avidigal@novell.com>
4359 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
4360 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
4361 platforms. Fixes #359036
4363 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
4364 platform-specific flags.
4366 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4368 * Binding.cs: Add 2.0 BindableComponent property - just return control
4371 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
4373 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
4374 Jonathan for this patch. Fixes #358442.
4376 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
4378 * Form.cs: If we change the active MDI child form, let the others
4379 know they need to repaint their title bar so it will appear inactive.
4380 [Fixes part 1 of bug #325473]
4382 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
4384 * PropertyGridView.cs: Do not trucate custom editors' width
4385 and align them to the left.
4386 [Fixes #358353 and #358349]
4388 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4390 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
4391 Also fix the arguments passed to CollectionChangeEventArgs in the
4394 2008-02-04 Geoff Norton <gnorton@novell.com>
4396 * Hwnd.cs: The conversion to Quartz coordinates happens in
4397 System.Drawing. Removing this translation from here.
4399 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
4401 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
4402 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
4403 GridItemCollection.cs:
4404 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
4406 2008-02-04 Geoff Norton <gnorton@novell.com>
4408 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
4409 SYSKEYUP if any other key has been pressed in the mean time.
4412 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4414 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
4415 when the item in current position is different than 0. Also, save the
4416 item index in the beginning of the operation, instead of getting the
4417 index of the item when the event is actually performed. Lastly clean
4418 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
4422 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4424 * Form.cs: Alt-Minus for MDI children system menu should work
4425 with both the minus keys on the keyboard.
4428 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4430 * Control.cs: Don't invalidate on region change. The WM should
4431 take care of this automagically. Keeps us out of an infinite
4432 paint loop if someone changes the Region in the OnPaint.
4435 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
4437 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
4439 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4441 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
4442 down the MonthCalendar only on F4, not Alt+F4.
4443 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
4446 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4448 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
4449 if its part of a DateTimePicker, else, use the back color.
4452 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4454 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
4457 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4459 * CurrencyManager.cs: When we get a ListChanged event from our source,
4460 always fire our own ListChanged event, as .Net does.
4462 2008-02-03 Luke Page <luke.a.page@gmail.com>
4464 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
4467 2008-02-03 Luke Page <luke.a.page@gmail.com>
4469 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
4470 property. Removed if for richtext property that was always true.
4471 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
4473 2008-02-03 Luke Page <luke.a.page@gmail.com>
4475 * TextBoxBase.cs - commited patch from James Purcell that
4476 correctly sets the FixedHeight control style when the MultiLine
4477 property is changed on a TextBox control. Fixes bug 358229.
4479 2008-02-02 Luke Page <luke.a.page@gmail.com>
4481 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
4482 Fixes bug 351938 - caret is positioned correctly when drawn
4483 and when calculating textual position of caret, no longer
4484 has a NRE in certain situations.
4486 2008-02-01 Geoff Norton <gnorton@novell.com>
4488 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
4489 get that region removed from the paint event.
4490 * XplatUICarbon.cs: Remove the window mapping after disposing of
4491 window. Prevents a crash with handle reuse. Optimize exposes
4492 only onto visible windows (rare; but possible).
4494 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4496 * UpDownBase.cs: Make sure the internal textbox calls the base's
4497 OnMouseDown and OnMouseUp so the textbox will function correctly.
4498 There were notes saying it doesn't chain up, but its an internal
4499 class, so our implementation may differ.
4502 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4504 * ListBox.cs: Fix a logic error and don't process MouseDown
4505 for mouse buttons other than Left.
4507 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4509 * Control.cs: Remove HeightInternal.
4510 * ListBox.cs: Commit patch from James Purcell that correctly
4511 calculates heights for ListBoxen.
4514 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4516 * Label.cs: Apply patch from James Purcell that corrects the
4517 signature of the AutoSize property.
4520 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4522 * ListBox.cs: Don't throw [Mouse]Click events for buttons
4523 other than the left mouse button.
4525 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
4527 * Control.cs: Remove my awesome optimization as it caused some
4528 regressions with control ordering. :(
4531 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
4533 * PropertyGridView.cs: Fix a NRE on double click when there is no
4536 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4538 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
4540 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
4542 * ListBox.cs: Call MouseClick and MouseDoubleClick.
4545 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4547 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
4548 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
4549 instead of Hwnd.bmp_g.
4551 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4553 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
4554 Use the Hwnd one instead.
4556 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4558 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
4560 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4562 * Form.cs: corcompare for RestoreBounds.
4564 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4566 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
4568 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4570 * Form.cs: Handle Alt-Minus for MDI children forms.
4571 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
4572 Add mnemonics to the control menu.
4575 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4577 * Binding.cs: Initial implementation bits of FormattingEnabled
4578 property and BindingComplete event (2.0).
4579 * BindingCompleteEventArgs.cs: Internal methods for setting error text
4582 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
4584 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
4585 table.Location. [Fixes bug #354672]
4587 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
4589 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
4590 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
4592 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4594 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
4595 of doing all the re-bound work, just invalidate and call SetControlText
4596 to set the updated text of selected item to our textbox.
4599 2008-01-28 Andreia Gaita <avidigal@novell.com>
4601 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
4602 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
4603 missing properties and methods. Add Load, Unload, Error, GotFocus,
4604 LostFocus, Resize, Scroll events (only load and unload are connected)
4606 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
4608 * AccessibleObject.cs: Modified argument names to match MS.
4609 * Button.cs: Modified argument names to match MS.
4610 * BindingContext.cs: Modified argument names to match MS.
4611 * BindingMemberInfo.cs: Modified argument names to match MS.
4612 * ButtonBase.cs: Modified argument names to match MS.
4613 * ComboBox.cs: Modified argument names to match MS.
4614 * Control.cs: Modified argument names to match MS.
4615 * CheckedListBox.cs: Modified argument names to match MS.
4616 * CommonDialog.cs: Modified argument names to match MS.
4617 * DataGrid.cs: Modified argument names to match MS.
4618 * CursorConverter.cs: Modified argument names to match MS.
4619 * ControlPaint.cs: Modified argument names to match MS.
4620 * CheckBox.cs: Modified argument names to match MS.
4621 * ControlBindingsCollection.cs: Modified argument names to match MS.
4622 * BindingSource.cs: Modified argument names to match MS.
4623 * DataFormats.cs: Modified argument names to match MS.
4624 * ContainerControl.cs: Modified argument names to match MS.
4625 * CurrencyManager.cs: Modified argument names to match MS.
4626 * Application.cs: Modified argument names to match MS.
4627 * ContextMenuStrip.cs: Modified argument names to match MS.
4628 * ContextMenu.cs: Modified argument names to match MS.
4629 * BindingManagerBase.cs: Modified argument names to match MS.
4630 * WindowsFormsSection.cs: Fixed line ending.
4632 2008-01-27 Andreia Gaita <avidigal@novell.com>
4634 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
4635 detecting that the dropdown toolwindow is hidden. EndLoop outside the
4638 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
4640 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
4641 MS. Code formatting.
4643 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4645 * Binding.cs: Don't avoid the Format event if the control
4646 property type is object. Also, if the value retrieved by
4647 the data source is null _and_ the control proeprty type
4648 is object, return Convert.DBNull (match .Net).
4649 Fixes part of #324286.
4651 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4653 * ListControl.cs: Since we are getting two BinginContextChanged events
4654 for the same binding context instance (when the control is added to
4655 form, and when the form is actually shown), take it into account only the
4656 first time for a given binding context instance.
4657 Fixes part of #324286.
4659 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4661 * PropertryGridView.cs: Ops.
4663 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4665 * PropertyGridView.cs: Close dropdown form if the owner form is
4669 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
4671 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
4672 RootGridEntry.cs, CategoryGridEntry.cs:
4673 PropertyGrid rewrite.
4674 - Rewrite all of the control logic in PropertyGrid.
4675 - Rewrite all of the ComponentModel logic in GridEntry.
4676 - Rewrite all UI work in PropertyGridView.
4677 - Many bugfixes, etc.
4679 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
4681 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
4682 when all contained controls are autosize or dock-fill. Also take into
4683 account when the total percentage of column/row sizes is not 100%.
4686 2008-01-24 Andreia Gaita <avidigal@novell.com>
4689 - Save a reference to the IDocument in the instance and
4690 use that one instead of going to WebHost.Document; the document that the
4691 WebHost returns might not be the right one (in case of frames).
4692 - Use the hashcode returned from the IDocument interface.
4693 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
4694 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
4695 LinkColor, Url, VisitedColor, Window
4698 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
4699 set_Attribute, NextSibling, Parent, TagName, AppendChild,
4700 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
4701 SetAttribute, Equals, equality operators.
4702 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
4703 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
4705 * HtmlElementCollection.cs: Change implementation to use a generic
4706 collection. Implemented Enumerator and CopyTo
4708 * HtmlHistory.cs: Add constructor, no implementation yet.
4710 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
4711 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
4712 Equals, equality operators.
4714 * HtmlWindowCollection.cs: Implemented.
4716 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
4717 has been deprecated).
4719 * WebBrowserBase.cs: Use Completed event to track document loading
4720 (Navigated has been deprecated)
4722 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
4724 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
4725 level MenuItems do not respect tabs.
4728 2008-01-23 Geoff Norton <gnorton@novell.com>
4730 * XplatUICarbon.cs: Ensure that windows are created in their initial
4731 FormWindowState. Finished fixing Fullscreen windows on Carbon
4733 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4735 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
4736 be used as grab_control. Also save status of capture before show ContextMenu
4737 and restore it after close.
4739 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4741 * Control.cs: Internal FindRootParent method added to return high control
4744 2008-01-23 Geoff Norton <gnorton@novell.com>
4746 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
4747 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
4748 it work again. Handle HITTEST events.
4750 2008-01-23 Geoff Norton <gnorton@novell.com>
4752 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
4753 a crash in certain cases. Support for fullscreen windows in certain cases.
4755 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
4757 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
4760 2008-01-23 Geoff Norton <gnorton@novell.com>
4762 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
4764 2008-01-23 Geoff Norton <gnorton@novell.com>
4766 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
4768 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4770 * SplitContainer.cs: Remove unused declarations.
4771 * Binding.cs: Remove unused declarations.
4773 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4775 * Form.cs: Remove unused declaration of 'active' in Activate method.
4776 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
4777 prevent compilation warnings.
4778 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
4779 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
4780 * Bindings.cs: Remove unused formatting_enabled declaration.
4781 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4783 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4785 * PropertyGridView.cs: Remove usused 'ex' declaration.
4786 * DataGridView.cs: Remove unused declarations.
4788 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4790 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
4792 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
4793 to Control class, it makes possible to grab menu to controls that can't
4794 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
4795 WmMouseMove removed since it was used only to track menu events.
4798 - Moved all active_tracker stuff from Form.
4799 - ProcessActiveTracker added to prevent code duplicity, now mouse events
4800 can call this method instead of reimplement all necessary code handle for
4802 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
4806 - Remove special handle to ToolStripOverflow, now we can grab menu to
4807 controls that can't reach Form using parent tree.
4808 - Change type of grab_control from Form to Control.
4810 2008-01-22 Geoff Norton <gnorton@novell.com>
4812 * TextBoxBase.cs: Split up the sizing of controls and placing of
4813 controls. Fixes a bug where scrollbars in Reflector could be sized
4814 wrong and have non-working thumbers.
4816 2008-01-23 Geoff Norton <gnorton@novell.com>
4818 * XplatUI.cs: Refactor environment variables to default support to the
4819 Carbon driver on the Mac.
4821 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4823 * Label.cs: Uses new LabelPainter for drawing operations.
4824 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
4825 * Theme.cs: DrawLabel and LabelDefaultSize removed.
4827 2008-01-22 Geoff Norton <gnorton@novell.com>
4829 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
4831 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4833 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
4834 through the normal flat button code and don't draw the checkbox glyph.
4835 * Theme.cs: Button->ButtonBase signature change.
4838 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4840 * LinkLabel.cs: Uses new class LinkLabelPainter.
4842 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4844 * MessageBox.cs: Adjust right border space, we don't need to add
4845 "space_border*2" two times.
4847 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4849 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
4850 becomes a wrapper around Padding.
4851 [Fixes a part of bug #354676]
4853 2008-01-22 Geoff Norton <gnorton@novell.com>
4855 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
4856 acquired. Also ensure the buffer is large enough to grab the header
4857 we need on linux boxes.
4859 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4861 * Control.cs: Implement a custom enumerator so people can delete
4862 from the Controls collection while in a foreach.
4865 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4867 * PropertyGridView.cs: Fix focusing behavior:
4868 - Tab should focus the grid text box.
4869 - Clicking on the labels shouldn't focus the grid text box.
4871 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4873 * PropertyGridView.cs: IsValueTypeGridItem should return true
4876 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4878 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
4879 - Renamed GridEntry.SelectedObjects to TargetObjects to better
4880 reflect the property name role.
4881 - PropertyGrid.GetTarget is not required as the target is known
4883 - Setting values will handle value types as a special case now and
4884 populate them up in the chain.
4887 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
4889 * Hwnd.cs: Create a public property for the Graphics we keep around.
4891 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4893 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
4894 when the current object selection changes.
4895 Fixes failing test SelectedObject_Null2.B5.
4897 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4899 * PropertyGrid.cs: Process Browsable properties with
4900 DesignerSerializationVisibilityAttribute.Content as being expandable.
4901 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
4902 will not be expandable. We should be nested components-friendly now.
4904 2008-01-21 Andreia Gaita <avidigal@novell.com>
4906 * WebBrowserBase.cs: Check if control was loaded properly,
4907 don't bind if it wasn't.
4909 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
4910 GetElementFromPoint, equality operators, OpenNew, Write.
4911 Remove extra set_Body
4913 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4915 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
4916 that makes our AutoScale* stuff more tolerant to different orders
4917 of being set. [Fixes bug #354669]
4919 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4921 * PropertyGridView.cs, PropertyGridTextBox.cs:
4922 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
4923 [Fixes #339005 and #348209]
4925 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4927 * PropertyGridView.cs: Hide the grid text box before adjusting it
4928 for the newly selected GridItem.
4931 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4933 * Form.cs: Give MDI children the opportunity to cancel the parent form
4934 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
4935 properly for both the parent and child.
4936 * Application.cs: Signature of internal method changed, pass the previous
4940 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4942 * PropertyGridView.cs: Set the property value only if it has changed.
4945 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4947 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
4948 If the mouse hasn't actually moved, ignore these messages so the currently
4949 highlighted menuitem isn't reset to the one under the mouse.
4952 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4954 * PropertyGridView.cs: When the property changes Invalidate the GridItem
4955 in order for the properties with UITypeEditor.GetPaintValueSupported == true
4956 to reflect the change visually.
4959 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4961 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
4962 to 2.0 button drawing.
4963 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
4964 the button text is tall enough for one line. LineLimit says it will
4965 always draw at least one line, but it is a lie.
4968 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
4970 * XplatUIStructs.cs, X11Keyboard.cs :
4971 added some more VK_* keys to be handled.
4973 2008-01-16 Andreia Gaita <avidigal@novell.com>
4975 * Control.cs: Check if there is a container before setting or getting
4976 the validation flag.
4978 2008-01-16 Andreia Gaita <avidigal@novell.com>
4980 * ContainerControl.cs: Add flag to track if a control cancels validation,
4981 so we don't fire click events.
4984 - (HandleClick) Check if validation was cancelled before firing the click
4985 events (doubleclicks are fired, but not clicks)
4986 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
4987 ContainerControl.set_ActiveControl, but in the case of non-selectable
4988 controls, like a Label, activecontrol is not set.
4990 * ButtonBase.cs: Only fire clicks if validation passes.
4994 2008-01-16 Geoff Norton <gnorton@novell.com>
4996 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
4999 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
5001 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
5002 SelectedPath, just display the default dialog instead of crashing.
5005 2008-01-16 Geoff Norton <gnorton@novell.com>
5007 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
5008 AddExpose instead of trusting apples compositing manager which doesn't
5009 work for our use case. Remove some dead code causing warnings and
5010 redecorate some other code to prevent warnings.
5012 2008-01-16 Geoff Norton <gnorton@novell.com>
5014 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
5015 carbon signals us to redraw. Fixes another portion of the flickering bug
5017 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5019 * Form.cs: Prevent the MdiParent property to be set when value is the same
5020 as value already set. Fixes bug #328019.
5022 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5024 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
5025 it prevents NRE when closing mdi child windows. Fixes bug #325211.
5027 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5029 * InternalWindowManager.cs: Invalidade close button after mouse up when
5030 mdi form is prevented to close.
5032 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5034 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
5035 thanks to Andy Hume. Fixes bug #325433.
5037 2008-01-16 Andreia Gaita <avidigal@novell.com>
5039 * LinkLabel.cs: Reset focused_index when resellecting the control.
5042 2008-01-15 Geoff Norton <gnorton@novell.com>
5044 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
5047 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5049 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
5052 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5054 * ContainerControl.cs: Setting AutoScaleMode to anything should set
5055 Form.AutoScale to false.
5056 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
5057 AutoScaleBaseSize should be changed on Font change unless it has been
5061 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5063 * MenuAPI.cs: On instance of MenuTracker check if source control is
5064 ToolStripOverflow and use properly method to find form.
5067 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5069 [Fixes bug #323241 Transparent toolbar support]
5071 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
5074 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
5075 defined in control style to mimic win32 behavior.
5077 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
5078 it will be transparent.
5080 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
5082 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
5083 CreateParams for ToolBar controls.
5085 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5087 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
5088 FixedToolWindow, SizeableToolWindow, or None for border styles have
5089 different minimum sizes than regular forms. Implemented to fix
5090 regression in PDN with toolbox being too wide.
5092 2008-01-14 Andreia Gaita <avidigal@novell.com>
5094 * HtmlElementCollection.cs: Implemented
5096 * HtmlElement.cs: Implemented:
5104 * HtmlDocument.cs: Implemented GetElementsByTagName.
5106 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5108 * Screen.cs: Stub BitsPerPixel to always return 32.
5110 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5112 * Form.cs: Implement RestoreBounds.
5114 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5116 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
5117 Sebastien and his fabulous magical problem-finding machine:
5118 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
5119 respect the value set.
5121 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
5123 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
5124 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
5126 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5128 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
5129 messages (to match .Net), we need to remove the capture ourselves.
5131 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
5133 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
5134 will process the message and close our window.
5137 2008-01-10 Geoff Norton <gnorton@novell.com>
5139 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
5140 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
5143 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5145 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
5148 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5150 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
5151 Linux doesn't care, having a minimum matches MS and keeps the window
5152 from becoming too small to use window decorations.
5155 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5157 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
5158 ShowFocusCues. Make focus rectangles fit the text instead of the whole
5159 control. [Fixes bug #325419]
5161 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5163 * ComboBox.cs: Guard against an NRE if the user open a new form from a
5164 SelectedIndexChanged event. This closes the combobox dropdown, and we
5165 were trying to dispose it. [Fixes bug #352830]
5167 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
5169 * Control.cs, Form.cs: Implement the necessary semantics for
5170 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
5171 to determine if a focus rectangle should be drawn.
5172 * PropertyGrid.cs: Fix property visibility to match override.
5173 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
5175 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
5177 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
5180 2008-01-09 Geoff Norton <gnorton@novell.com>
5182 * XplatUICarbon.cs: Scroll windows in the correct direction.
5184 2008-01-09 Geoff Norton <gnorton@novell.com>
5186 * XplatUICarbon.cs: Track all created utility windows so we can hide them
5187 when the app is deactivated or spaces is enabled.
5189 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5191 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
5192 extra separation pixel for the label rect origin if SmallImageList is
5193 null, and thus we don't need that separation between icon and label
5195 Patch by Ernesto Carrea.
5198 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
5200 * StatusStrip.cs: Invalidate after completing a layout. The base
5201 OnLayout does this, but we don't call the base.
5202 * ToolStripItem.cs: Revert the previous change to invalidate after
5204 [Fixes bug #351341 better.]
5206 2008-01-07 Geoff Norton <gnorton@novell.com>
5208 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
5209 not a notification to exit the application. Listen for WM_QUIT
5212 2008-01-07 Andreia Gaita <avidigal@novell.com>
5214 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
5216 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
5218 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
5219 so it can repaint at the correct location.
5222 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5224 * ListControl.cs: SelectedValue should return a null value if
5225 SelectedIndex is -1. Also, when setting it, it should throw an
5226 ArgumentNullException if the value is null, as well as taking
5227 into account the String.Empty value, instead of ignoring it (we have
5228 tests for that now).
5229 Fixes part of #324286.
5231 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
5233 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
5234 SelectionStart is updated after pressing enter. Fixes bug #351918.
5236 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5238 * TextControl.cs: Revert a piece r92316 that prevented the fix
5239 from working when there were multiple tags in the text box.
5242 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5244 * TextControl.cs: Apply patch from Luke Page that prevents an
5245 NRE when determining the beginning of a paragraph.
5248 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5250 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
5251 caret gets moved with clicking away from a selected block of
5252 text. Fixes bug #351885.
5254 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5256 * TextControl.cs: Apply patch from Luke Page that takes line
5257 alignment into account for mouse selection, so that center and
5258 right aligned text can be selected.
5261 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5263 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
5264 issues after loading an RTF file by using the correct line feeds.
5267 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5269 * TextControl.cs: When deleting multiple line selections, we need
5270 to invalidate every line beginning at the first line of the selection.
5271 Patch from Luke Page fixes bug #351791.
5273 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5275 * ListControl.cs: When getting a CurrencyManager.PositionChanged
5276 event, don't set SelectedIndex if the number of items is 1. This is
5277 because, for the first item, PositionChanged is fired _before_
5278 ItemChanged (the place where we actually populate the items), and
5279 leave us in a temporary invalid state (since items collection is
5283 2008-01-04 Geoff Norton <gnorton@novell.com>
5285 * XplatUICarbon.cs: Create native toolwindows instead of
5286 the managed drawing ones.
5288 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5290 * LineTag.cs: If the line doesn't have any characters, return
5291 0 for GetCharIndex. Fixes an AOORE exception after certain
5292 caret movements. Fixes bug #351683. Patch by Luke Page.
5294 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5296 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
5297 is hit when there is selected text, only the selected text gets
5298 deleted, not the character in front of the selection as well.
5301 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5303 * ComboBox.cs: When the values are displayed, calculate the
5304 ComboListBox scrollbar's LargeChange based on the visible area's
5305 height and the actuall ItemHeight, instead of calculating it
5306 based on MaxDropItems value, since it's not used by our _current_
5310 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5312 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5313 Patch from Luke Page that fixes issues with font colors and styles
5314 not showing up in a readonly RichTextBox. Fixes bug #324354.
5316 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5318 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
5319 from Luke Page. This one fixes bug #349926.
5321 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5323 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
5324 an item in the IBindingList source changes with
5325 ListChangedType.ItemAdded. Ignore for now firing the event for other
5326 changes, since we want to have tests for those cases as well.
5328 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5330 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
5333 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5335 * TextBoxTextRenderer.cs: Implement a cache for measuring each
5336 character. This is effective because the typical usage of a
5337 TextBox is with a limited amount of fonts and characters, and
5338 the current implementation of TextBox measures everything one
5339 character at a time. Another second or two speedup for bug #347238.
5341 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5343 * Control.cs: Rewrite the Font getter to only query the parent's
5344 Font property once instead of twice. Since this operation is
5345 recursive, the queries were growing exponentially as the control
5346 tree got deeper. Another second or two speedup for bug #347238.
5348 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5350 * Control.cs: Avoid setting a parent (and more importantly, updating
5351 the zorder of all its children) if the parent is already correct in
5352 WmShowWindow. Decreases the startup time of the test case on bug
5353 #347238 from 35 seconds to 11 seconds.
5355 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5357 * X11Dnd.cs: When the dnd operation has started and we are
5358 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
5359 This is done to match .Net, which doesn't send those messages after
5360 dnd operation was completed/cancelled.
5363 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
5365 * ToolStrip.cs: Previous change should be != null, not == null.
5368 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
5370 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
5371 user may have moved the mouse off the current item during the event.
5373 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5375 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
5376 calling GetItemAt for every MouseMove event by also taking into
5377 account whether any mouse button is pressed (probably dragging);
5378 if so, we can call GetItemAt, and if not, try to not call it
5379 (GetItemAt can be quite expensive when used with a large number of items).
5381 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5383 * ListView.cs: Implement -finally- support for dnd, by calling
5384 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
5386 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
5387 simple calculation of distances for all the items in the owner
5390 2007-12-21 Geoff Norton <gnorton@novell.com>
5392 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
5393 for windows that are originally created as invisible. Fixes missing
5394 main window in paint-mono.
5396 2007-12-21 Geoff Norton <gnorton@novell.com>
5398 * XplatUICarbon.cs: Register our D&D handler. Register our custom
5399 subclass handler for com.novell.mwfview subclassing HIView. Implement
5400 Pasteboard and Dnd methods.
5402 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5404 * ListBox.cs: When we got focus, give focus to first item if there
5405 wasn't any pervious focused item. Also update navigation to depend on
5406 SelectedIndex rather than FocusedItem, just as .Net does.
5409 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5411 * ListBox.cs: Both FindString and FindStringExact methods must do an
5412 case insensitive search, should allow the last valid index to be
5413 passed in the overload taking an initial index, and should also
5414 continue searching from the top back to the specified index when it
5417 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5419 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
5420 redraw issue, and allows RichTextBox to draw colored text even while
5421 disabled or readonly.
5423 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5425 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
5426 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
5427 and doesn't grey text in a disabled RichTextBox.
5429 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5431 * RichTextBox.cs: Apply patch from Luke Page that adds better support
5432 for many RTF commands: quad alignment, separate formatting for blocks
5433 inside groups, and ParDef support. Makes the test case from bug #324589
5436 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5438 * LineTag.cs: Fix an error in the new Draw method that caused
5439 a crash when rendering the document on bug #324589.
5441 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5443 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
5444 TextControl.cs: Apply patch from Luke Page that adds support
5445 for URL links in RichTextBox.
5446 [Fixes enhancement #342516]
5448 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
5450 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
5451 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
5453 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5455 * ListBox.cs: When a key gets pressed, try to find a string
5456 if the key is a character or a digit.
5459 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5461 * TableLayoutPanel.cs: Remove some unused variables.
5463 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5465 * DateTimePicker.cs: Commit patch from Luke Page that ensures
5466 we don't end up at an invalid date when we click the up/down
5467 spinner to change the month or year. Fixes bug #348682.
5469 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5471 * Application.cs: Calling Exit in 2.0 should chain to the
5472 Exit (CancelEventArgs) version so it can be cancelled.
5473 * Form.cs: Create a flag to allow raising the Closing
5474 events to be skipped. We raise them once in Application.Exit
5475 and don't want to raise them again when the Form is actually
5476 closed. [Fixes bug #349073]
5478 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
5480 * ToolStripDropDown.cs: Guard against an NRE when there
5481 hasn't been a mainform set in the application context.
5484 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5486 * ListBox.cs: When SetBoundsCore gets called, besides
5487 calling UpdateScrollBars, update the value of
5488 last_visible_index, since we could need to show more items
5489 than before, and we need to let the paint routines know that.
5492 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5494 * ListView.cs: Add DesignerSerializationVisibility attribute to
5495 InsertionMark property.
5496 * ListViewItem.cs: Add same attribute to Position property.
5498 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5500 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
5503 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
5505 * ThemeWin32Classic.cs: Don't draw the background on a
5506 flat button if there is a background image.
5509 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5511 * ListBox.cs: If we remove the item currently selected,
5512 remove it not only from SelectedItems, but also
5513 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
5514 the items count decreased and focused_item has bigger value than that.
5516 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
5518 * Control.cs: Perform our layout after we resize ourselves
5519 if we had to adjust our AutoSize. Missed commit for bug
5522 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
5524 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
5525 we can provide an implementation of AutoSize.
5528 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5530 * ListBox.cs: Add the internal overload Sort (bool paint),
5531 to indicate whether we actually need a paint or we will
5532 call Refresh ourselves. This way we don't request a paint
5533 _before_ having an updated and valid layout.
5536 2007-12-12 Andreia Gaita <avidigal@novell.com>
5538 * XPlatUIX11.cs: Send paint messages when updating a systray icon
5539 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
5540 properly invalidated.
5543 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5545 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
5546 don't simply assign it to our internal group field, but instead
5547 use our Group property, which should do all the neccessary work
5548 required to support groups. Fixes an issue reported to me (mail) by a
5549 guy using this new feature.
5551 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
5553 * Control.cs: Use Scale instead of ScaleControl to ensure the
5554 whole hierarchy gets scaled.
5557 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5559 * DateTimePicker.cs: Don't set the internal MonthCalendar's
5560 Parent property. Doing this causes the control to be hosted by
5561 the Form instead of being a popup window.
5564 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5566 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
5567 at an index higher than Count, just use Add instead of Insert.
5570 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5572 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
5573 DrawPictureBox, this is handled by Control.PaintBackground.
5576 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
5578 * MenuAPI.cs: When process menu keys return true by default only if menu is
5579 active. Fixes bug #342892.
5581 2007-12-09 Andreia Gaita <avidigal@novell.com>
5583 * Control.cs: check if windows are actually mapped before
5584 trying to zorder. Fixes #342509, #346955
5586 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5589 * ListViewInsertionMark.cs:
5590 * ThemeWin32Classic.cs: Implement the drawing side of the
5591 new 2.0 ListView.InsertionMark property.
5593 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
5595 * CurrencyManager.cs: Silence some debug spew.
5597 2007-12-07 Geoff Norton <gnorton@novell.com>
5599 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
5600 masks for our children as well as siblings to avoid having to query
5601 Quartz for this information.
5602 * XplatUICarbon.cs: Implement a delegate based system to pass
5603 information to System.Drawing. Implement Async methods. Remove
5604 the hack for the resize thumb and imlpement a transparent Grow Box.
5605 Rework the messaging system to proplery create window's and messages,
5608 2007-12-06 Andreia Gaita <avidigal@novell.com>
5610 * X11Keyboard.cs: Use Xutf8LookupString to support international
5611 characters under alternate codepages. Patch from #340878
5613 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5615 * ListView.cs: When doing layout computations, set position in the
5616 ListView instances (we cache the position just as .Net does).
5617 * ListViewItem.cs: New internal setter method for Position. Also set
5618 position field as also available in 1.1, since we are going to use it
5619 now in the common case.
5621 2007-12-06 Andreia Gaita <avidigal@novell.com>
5623 * Control.cs: When removing controls, get the actual container
5624 to notify about active control changes. Fixes 341314.
5626 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5628 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
5630 2007-12-05 Andreia Gaita <avidigal@novell.com>
5632 * Control.cs: When updating the zorder, ignore windows that are not
5633 mapped. Fixes #342509
5635 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5637 * ListViewItem.cs: Actually implement serialization on this class.
5639 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
5641 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
5642 LinkCollection. Spaces to tabs, and removed extra tabs.
5644 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5646 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
5647 tests to fail (hopefully).
5649 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5651 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
5652 the image margin so custom renderers can correctly place it.
5654 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5656 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
5657 so custom renderers can correctly place it.
5659 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5661 * Application.cs: Let WM_CHAR messages flow through to controls
5662 hosted in Strips. [Fixes bug #343972]
5664 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5666 * ToolStripManager.cs: Guard against an NRE I ran into.
5668 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5670 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
5671 a Link is manually added to the Links collection, we need to set
5672 its owner, so it can invalidate properly.
5675 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5677 * ListView.cs: When changing ListViewItem.Position (which calls
5678 ListView.ChangeItemLocation), invalidate not only the area
5679 corresponding to the main item, but also to the area occupied
5680 by the items being moved.
5682 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5684 * ListView.cs: When changing the position of a given item,
5685 don't use item bounds, but item areas (which includes the item spacing
5686 between them). Also, use first/last position if the requested
5687 position is outside bounds (as .Net does). Invalidate the previous and
5688 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
5689 in a specific position, instead of directly accessing Items collection
5690 (this is done to get the right item - remember an Item can have a
5691 different position in the grid than in the Items collection).
5693 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5695 * MessageBox.cs: Calculate text area instead of just top left, this rect
5696 area will be used in DrawString. Fixes bug #343364.
5698 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5700 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
5701 screen width. Partially fixes bug #343364.
5703 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5705 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
5706 code inside recalculate, it makes code more simple.
5708 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
5710 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
5711 between update or add icon. Fixes bug #324344.
5713 2007-11-21 Andreia Gaita <avidigal@novell.com>
5715 * XPlatUIX11.cs: Do not treat tool windows as if they have no
5716 window manager, since that stretches the drawing area to include
5717 the window decorations, and they get hidden. Reverts r84444 and fixes
5718 #335849 and #342790 (mdi and pdn3 regression)
5720 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5722 * ListView.cs: When setting focused item, try to give focus to the
5723 previous one _only_ if the previous one remains valid.
5726 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
5728 * Application.cs: Revert r89650, as it broke a common case to fix
5729 an obscure case. Fixes bug #342606.
5731 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5733 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
5735 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5737 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
5738 alignment. [Fixes #324228]
5740 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5742 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
5745 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
5747 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
5748 it prevent problems when empty captions. [Fixes #342141]
5750 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5752 * Label.cs: Use Size instead of None. Fixes bug #342077.
5754 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5756 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
5758 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5760 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
5761 but there isn't a MdiContainer.
5764 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5766 * TextControl.cs: Don't recalculate document if the recalc_start and
5767 recalc_end hasn't changed.
5770 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
5772 * DataGridViewTextBoxCell.cs: Removed CWL.
5774 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5776 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
5778 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5780 * TextControl.cs: Missed some code for bug 341534 to trigger a
5781 recalculation when the font changes.
5783 2007-11-16 Andreia Gaita <avidigal@novell.com>
5785 * Control.cs: When updating the zorder, check if the child to update is
5786 the same control that is set to always be on top (i.e., scrollbars), and
5787 just put it on top directly. Fixes BadMatch error on pdn3
5789 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5791 * ListView.cs: Throw the needed exceptions for FindNearestItem.
5793 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5795 * Control.cs: Don't perform a new layout when a label changes its text,
5796 cause label handles its own autosizing.
5799 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5801 * ListView.cs: Implement 2.0 FindNearestItem methods.
5803 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5805 * ToolStripPanel.cs: Make Join at least add the control to the panel,
5806 even if the rest of what Join does isn't supported. Add some more
5807 support for vertical toolbars.
5808 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
5809 [Fixes the application breaking parts of bug #341998]
5811 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5813 * ToolStripItem.cs: When determining if we have a check/image margin,
5814 we need to look at ShowCheckMargin as well as ShowImageMargin.
5816 2007-11-15 Geoff Norton <gnorton@novell.com>
5818 * XplatUIOSX.cs: Rename to...
5819 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
5820 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
5822 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5824 * KeysConverter.cs: The default values should be an array of Keys, not
5825 strings. Also, the array has more values for 2.0.
5828 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5830 * Application.cs: Change ExecutablePath to use
5831 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
5834 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5836 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
5837 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
5838 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
5839 be ignored. Create a new GetLineEnding that can specify which types of
5840 line endings to look for. On Insert, only create new lines for \n and \r\n.
5843 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5845 * TextBoxBase.cs: As we loop through each line changing the font, tell
5846 the document that the line needs to be recalculated. Fixes bug #341534.
5848 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
5849 [Another round of refactoring]
5850 * Line.cs: Add DeleteCharacters.
5851 * LineTag.cs: Add Delete.
5852 * TextBoxBase.cs: Update to use new methods.
5853 * TextControl.cs: Refactor the Delete* methods.
5855 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
5857 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
5858 the patch. [Fixes #324856]
5860 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5863 * ListViewItem.cs: Add an initial implementation of
5864 2.0 ListViewItem.Position getter.
5866 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5868 * ListView.cs: Add a reordered_items_indices array, to allow us
5869 to have a different sorting than that of Items (the sorting in Items
5870 could not match the actual sorting in screen). This is needed to
5871 implement a pair of 2.0 features.
5872 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
5873 actual position in the ListView grid, since it could have a position
5874 different than its Index (position in ListViewItemCollection).
5876 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5878 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
5879 not draw partial lines.
5880 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
5881 LineLimit flag from the base is preserved.
5882 Fixes the windows part of bug #338965.
5884 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5886 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
5887 so that it can be canceled in KeyPress.
5890 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5892 * ListView.cs: In ItemControl, reset mouse-handling related
5893 fields even if we dont' have items (we still should reset them when
5894 we had items but then called Items.Clear). Partially based in a patch
5898 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
5900 * Application.cs: In ProductVersion first try AssemblyFileVersion
5901 before falling back to assembly version. Fixes bug #339787.
5903 2007-11-08 Andreia Gaita <avidigal@novell.com>
5905 * HtmlElement.cs: Implement InnerText setter.
5906 * WebBrowserBase.cs: Implement Navigated event support.
5907 Add flag to track when the browser "document" is ready to be retrieved.
5908 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
5909 Make sure browser document is ready before retrieving it.
5910 Clean up cached objects (document) when moving to a new page through
5911 any of the navigation methods.
5912 Use the new Mono.WebBrowser.INavigation interface to control navigation.
5913 Implement OnNavigated event.
5915 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
5917 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
5918 DrawLinkLabel, this is handled by OnPaintBackground.
5919 Fixes bug #339565, part II.
5921 2007-11-07 Andreia Gaita <avidigal@novell.com>
5923 * Control.cs: Revert r88915. Selecting text on a textbox depends on
5924 getting a Select call on click, so this call needs to be here for now.
5927 2007-11-07 Geoff Norton <gnorton@novell.com>
5929 * OSXStructs.cs: Add the kEventClassApplication constants.
5930 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
5931 application is deactivated otherwise Menu overlays linger on top of
5932 other application windows.
5934 2007-11-07 Geoff Norton <gnorton@novell.com>
5936 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
5937 dont support cursors yet anyways. This allows Reflector to run.
5939 2007-11-07 Geoff Norton <gnorton@novell.com>
5941 * XplatUIOSX.cs: Implement DragSize.
5943 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5945 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
5946 ItemControl, request the focus, as .Net does. This is needed after
5947 Control does not request focus anymore when it receives a
5950 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
5952 * Label.cs: Make DrawImage internal so it can be called from Theme code.
5953 Remove the DrawImage call from OnPaint.
5954 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
5955 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
5956 but before we draw the text for DrawLabel and DrawLinkLabel.
5959 2007-11-05 Andreia Gaita <avidigal@novell.com>
5961 * Control.cs: Remove select call on click. Fixes #325809
5963 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5965 * ListViewItem.cs: Add 2.0 Position property getter.
5967 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5969 * ListView.cs: Add 2.0 BackgroundImageTiled property.
5970 Also, to make it work properly, change item's BackColor and
5971 BackgroundImageLayout as needed.
5972 * ThemeWin32Classic.cs: Don't fill any background rectangle
5973 in ListView.ItemControl when drawing items; just let the Control
5974 base implementation fill it.
5976 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5978 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
5979 as well as adding a custom 'dummy' Converter, as .net does.
5981 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5983 * PropertyGridView.cs: When clicking drop-down button,
5984 select an index in the listbox only if our standard values collection
5985 has one or more items.
5987 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5989 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
5992 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5994 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
5995 the value is not changed. This ensure a pushed button remains in that
5996 state when clicked again. When switching the value of PropertySort
5997 between Categorized and CategorizedAlphabetical, do not update the
5998 grid items and do not fire a PropertyChangedEvent. When clicking the
5999 sorting buttons, do not modify the PropertySort value when switching
6000 between Categorized and CategorizedAlphabetical but only update the
6003 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6005 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
6007 * PropertyGrid.cs: Also put Categorized button in pushed state when
6008 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
6009 for help description label.
6011 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6013 * ListView.cs: When calculating the biggest item for a given column,
6014 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
6017 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
6019 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
6020 value for PropertySort on 1.0 profile. PropertySortChanged event
6021 should only be fired on 2.0 profile. Fixed NullReferenceException
6022 in UpdateSortLayout when PropertyGrid contains no items.
6024 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
6026 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
6029 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6031 * ListViewItem.cs: Implement 2.0 IndentCount property.
6033 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6035 * X11Dnd.cs: When sending status in a dnd operation, compare current
6036 effect with the 'allowed' field instead of 'drag_data.Allowed', since
6037 the later is only created when a Winforms application is both the
6038 source and the target, but not when we are the target only.
6039 Fixes part of #324251.
6041 2007-11-01 Geoff Norton <gnorton@novell.com>
6043 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
6045 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
6046 children out of the drawing view on mac.
6047 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
6048 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
6050 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6052 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
6053 on the non-hosted-control part of it shouldn't do anything.
6054 Fixes part of bug #327498.
6056 2007-11-01 Andreia Gaita <avidigal@novell.com>
6058 * WebBrowserBase.cs: revert previous change, resize can be called anytime
6060 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6062 * Application.cs: When a toolstrip has the keyboard input loop, let messages
6063 it does not use flow through to controls that are hosted in menus.
6064 Same with mouse clicks.
6065 * Form.cs: Don't close all menus on click if the click is on a
6066 control hosted in a menu.
6067 Fixes part of bug #327498, and part of bug #325969.
6069 2007-10-31 Andreia Gaita <avidigal@novell.com>
6071 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
6073 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
6075 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
6076 Addresses an issue raised in bug #336218.
6078 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
6080 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
6081 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
6083 2007-10-30 Andreia Gaita <avidigal@novell.com>
6085 * ContainerControl.cs: Check if the active control is a
6086 child of a removed control and update active_control accordingly.
6089 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6091 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
6092 or the MaxDate. Fixed bug #337693.
6094 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6096 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
6097 after calling SetWindowLong for a form, to force an immediate NC refresh.
6098 Fixes first part of bug #325150.
6100 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6102 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
6103 simple. Fixes the last part of bug #322668.
6105 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6107 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
6108 needs to be TopMost as well, or else the MessageBox is under the form.
6109 Patch by George fixes bug #325300.
6111 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6113 * X11Dnd.cs: When starting a new drag operation, reset the static
6114 'dropped' field to false (previously the implementation didn't reset
6115 it and got confused after the first drag).
6118 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6120 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
6121 items instead of re-creating them all. For this purpose we now cache
6122 both CategoryGridEntry items and the GridEntries for the main object's
6124 * GridItem.cs: Make SetParent method abstract.
6125 * GridEntry.cs: Override the SetParent method (already there, but now
6129 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6131 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
6132 depending on its depth (as .Net does). Update the needed values in
6133 MouseDown handler. Also draw the plus/minus rect after the label,
6134 so we don't draw on top of it.
6136 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
6138 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
6139 processed by forms or controls when menu is active. [Fixes #333548]
6141 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6143 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
6144 parent doesn't have focus. This was causing ToolStripTextBoxes to take
6145 focus on mouse over.
6147 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6149 * TextControl.cs: Code cleaning, simplifying.
6151 2007-10-24 Geoff Norton <gnorton@novell.com>
6153 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
6154 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
6156 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6158 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
6159 the cap is maxvalue, not actually 0. [Fixes bug #336218]
6161 2007-10-24 Andreia Gaita <avidigal@novell.com>
6163 * SendKeys.cs: apply jpobst's patch to bug #332409
6165 2007-10-23 Andreia Gaita <avidigal@novell.com>
6167 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
6168 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
6171 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6173 * PropertyGridView.cs: If a property has an UIEditor available,
6174 make the drop-down/editor button available only if the property
6177 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6179 * PropertyGridView.cs: Don't make the grid item textbox
6180 editable when a drop-down control is available, but
6181 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
6182 true. The same bur the color of the grid item value's label.
6184 2007-10-22 Geoff Norton <gnorton@novell.com>
6186 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
6187 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
6188 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
6189 driver. Padd the bottom of all real windows so the resize thumb doesn't
6190 obscure scroll/status bars.
6192 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
6194 * WindowsFormsSection.cs: Implement.
6196 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
6198 * MdiClient.cs: Maximize new active mdi child when a maximized child is
6199 closed see #325434 patch.
6201 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
6203 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
6206 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6208 * PropertyGridView.cs: When showing the textbox for a grid item,
6209 have two local variables to store the read-only and non-editable
6210 status of a grid item (we were previously using just one variable
6211 to do this, when actually they are slightly different).
6212 Fixes part of #325023.
6214 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6216 * PropertyGridView.cs: When showing a drop-down list, try to get the
6217 values using TypeConverter.ConvertTo (to convert to a string). Fixes
6220 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6222 * PropertyGrid.cs: When updating a property and populating sub grid
6223 items, remove the previous ones, and invalidate the specific area.
6224 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
6225 area behind a grid item.
6226 * GridItemCollection.cs: Add an internal Clear method, to allow us to
6227 clean the items if needed (specially for controls implementing
6228 ICustomTypeDescriptor and returning a variable number of properties).
6231 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
6233 * TextControl.cs: Clean up and document the Insert function.
6235 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6237 * TextControl.cs: Make sure we know our start point for updating the view
6238 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
6241 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6243 * ListView: Couple of corcompare fixes.
6245 2007-10-17 Geoff Norton <gnorton@novell.com>
6247 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
6248 the title caption of real window.
6250 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6252 * ErrorProvider.cs: Add the error provider's internal window to a
6253 containercontrol when the parent changes. [Fixes bug #329714]
6255 2007-10-17 Geoff Norton <gnorton@novell.com>
6257 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
6258 When we make a new window; restore the old active window - fixes dialogs.
6260 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6262 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
6263 when modifying a property, and if found then invalidate as
6265 Fixes part of #324865.
6267 2007-10-17 Geoff Norton <gnorton@novell.com>
6269 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
6270 highly experimental. Fixed coordinate translation. Fixed window locations.
6271 Initial support for clipping. Implemented NC areas and menus. Support for
6272 launching from command line from Will Johansson (wjohansson@atacomm.com).
6273 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
6274 wjohansson@atacomm.com)
6275 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
6276 Hwnds now track the existence of all of their children for Mac clipping.
6277 * XplatUI.cs: Re-enabled the native driver on the Mac.
6279 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6281 * Line.cs: Move the InsertString function to here.
6282 * TextControl.cs: Cleanup some duplicate code, move some InsertString
6283 functionality to Line.
6285 2007-10-17 Geoff Norton <gnorton@novell.com>
6287 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
6289 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
6291 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
6292 always setting value to true.
6293 * Form.cs: When changing AcceptButton, notify new and original button.
6295 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
6297 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
6298 a custom control that implements IButtonControl instead of an actual
6299 button. [Fixes bug #334244]
6301 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
6303 * Form.cs: Change SelectActiveControl to internal, we need to call it in
6306 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
6307 active control when activate a new mdi window.
6311 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
6313 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
6317 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6319 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
6320 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
6321 so we always recalculate the whole document instead of just the new part.
6324 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6326 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
6327 when the mouse was to the left of the first character in the line.
6329 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6331 * TextBox.cs, TextBoxBase.cs: When setting the document's password
6332 character, use the property instead of the variable so that the
6333 UseSystemPasswordChar property is taken into account.
6336 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6338 * FolderBrowserDialog.cs: When a node is right clicked and the "New
6339 folder" contex menu appears, actually add the new folder to it, even
6340 if the node is not currently selected. Still use SelectedNode in case
6341 there wasn't found a node under the pointer.
6344 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6346 * ListViewItem.cs: When retrieving the focused state, the index check
6347 should be done only when ListView is in virtualmode, as it is an
6348 expensive check for normal mode.
6350 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6352 * ListViewItem.cs: Make the focus state information be stored
6353 in the ListView, not in the items. This is done to match the MS
6354 behaviour for items that are not yet part of a ListView control;
6355 besides that, since just one item can be focused at the same time,
6356 we save a little space in our items.
6357 Fixes part of #331643.
6359 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6361 * ComboBox.cs: When focus is lost, deselect the text. When setting
6362 text of control, select all text. Do not hide selection when control
6363 does not have focus. Fixes bug #333663.
6365 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6367 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
6368 instead of ArgumentException when SelectionLength is set to negative
6369 value. Added same check to SelectionStart. Code formatting.
6371 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6373 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
6374 or SelectionStart. Code formatting.
6376 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6378 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
6379 indicating that there was not a previous drag-and-drop operation going
6381 Fixes part of #325071.
6383 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6385 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
6386 AllowedEffect, don't let the drop operation happen.
6389 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6391 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
6393 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6395 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
6398 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6400 * Line.cs: Add a method that finds the tag that contains an x-coord.
6401 * LineTag.cs: Add a method that finds the character at an x-coord using
6402 a binary search, the old way was a linear search.
6403 * TextControl.cs: Change FindCursor to use the above new methods.
6405 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6407 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
6408 value different than AllowedEffect). This should be possible to
6409 indicate that dragging is not possible in some control/area.
6411 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
6413 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
6414 descent internally when font changes instead of outside code being responsible
6416 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
6417 instead of accessing internal variables.
6419 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
6421 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
6422 remove special treatment for ArrangeIcons since it is already arranged.
6424 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6426 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
6427 the Win32 backend uses Color.
6428 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
6429 Refactor to store a Color instead of a Brush for Color.
6431 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6433 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
6434 away. I didn't realize I needed this when I refactored these earlier.
6436 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6438 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
6439 store a Color structure and use the ResPool for back color instead of
6440 holding onto brushes.
6442 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6444 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
6447 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6449 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
6450 to recalculate its size. Fixes a part of bug #331052.
6452 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6454 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
6455 button. Fixes a part of bug #331052.
6457 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6459 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
6461 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
6465 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6467 * TextBoxTextRenderer.cs: Don't make this a static class, as static
6468 doesn't exist in 1.1. (Thanks jb!)
6470 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6472 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
6473 class to allow us to use different backends on different platforms.
6474 Linux uses the current [Draw|Measure]String backend. Windows uses
6475 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
6476 of GDI+. This leads to better looking text and more accurate measurements
6477 on Windows, fixing many of the reported issues.
6478 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
6480 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6482 * FolderBrowserDialog.cs: When running on Windows,
6483 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
6484 since we must match both "C:" and "C:\" forms. A little hackish, but
6488 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6490 * ListView.cs: When calling EndEdit (after editing an item),
6491 create a new instance of LabelEditEventArgs to keep clean the fields
6492 in case we get a new call to BeginEdit; also do Application.DoEvents
6493 to have focus in synch. This is a fix similar to TreeView's #325244.
6495 2007-10-07 Andreia Gaita <avidigal@novell.com>
6497 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
6498 * WebBrowserBase.cs: Added dialog support, calling the
6499 WebBrowserDialogs classes for each specific dialog type.
6501 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6503 * ListView.cs: When the last item is focused and is removed,
6504 move the focus to the previous item (in Items order). This is what MS
6508 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6510 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
6511 instead of the opposite (RemoveAt call Remove). This is a better
6512 approach since we don't need to to a pair of traversals when using
6515 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6517 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
6518 check that the node actually has nodes, and if not, move to the
6519 parent node instead.
6522 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6524 * TreeView.cs: Move the previous change to the general case (to
6525 call Application.DoEvents in cases where the method was called by
6528 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6530 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
6531 call Application.DoEvents. This is neccessary when we get a call to
6532 BeginEdit from an AfterLabelEdit handler, because the focus always
6533 goes to the TreeView, even if we try to give it to our
6534 LabelEditTextBox. The call do Application.DoEvents seems to
6535 synchronize the focus, basically.
6538 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6540 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
6541 should be false. This also removes some nasty recursive paths. Fixes
6544 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
6546 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
6547 state to normal. Also resize window when cascading. Fixes #325433.
6549 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6551 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
6552 DefaultForeColor, as drawing empty colored lines isn't very useful.
6553 [Fixes the not drawn lines part of bug #324358]
6555 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6557 * TextControl.cs: Move Line and LineTag classes into separate files to
6558 make things easier to find.
6559 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
6560 * RichTextBox.cs: Capitalize LineTag.Length property access.
6561 - This is purely an organizational/formatting change, no logic changed. -
6563 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6565 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
6568 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6570 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
6573 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6575 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
6576 prevent calling of OnBackColorChanged. Fixes #325321.
6578 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6580 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
6581 because control can be disabled because owner is disabled.
6583 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
6585 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
6586 string.Empty, test failed from previous change.
6588 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
6590 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
6591 is null, not String.Empty. See bug #323038.
6593 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
6595 * TextControl.cs: Change the margins to match MS a little better.
6596 Still not perfect for X11 due to some DrawString differences, but
6597 is still an improvement over the old stuff.
6598 Partially fixes #324467.
6600 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6602 * FolderBrowserDialog.cs: When using MyComputer as
6603 RootFolder, let absolute paths be considered as valid ones. Also, use
6604 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
6605 for Windows compatibility.
6606 Partially fixes #325247.
6608 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6610 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
6611 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
6612 method, since it causes the dialog to not select folders directly
6613 under the root path (when setting SelectedPath property).
6615 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6617 * TreeNode.cs: When calling Expand/Collapse and need to call
6618 ExpandBelow/CollapseBelow respectively, take into account
6619 partially visible nodes (previously Expanding/Collapsing
6620 a partially visible node in the bottom was not updating its +- sign).
6622 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6624 * TreeView.cs: When calling Expand on a TreeNode, and we need to
6625 expand nodes below (ExpandBelow), scroll the entire Viewport
6626 area if the node is above it and not visible (instead of scrolling
6627 the area from node's Bottom, which applies only when the node is
6631 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6633 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
6634 node in the bottom area (as .Net does). This is done to preserve the
6635 scroll position when ExpandAll is called before handle is created for
6636 the 1.1 profile (bottom area, as opposed to top area in 2.0).
6639 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6641 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
6642 bottom area if we are in fact not using the vertical scroll bar.
6645 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6647 * Control.cs: Comment out a double buffering optimization that doesn't
6648 take into account invalidates created in OnPaint, causing the control
6649 to never be redrawn. It would take quite a bit of work to work around
6650 this, but I left it commented with an explanation for later possible
6654 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6656 * Control.cs: Ask parent to perform a layout if control is AutoSize and
6658 * RadioButton.cs: Implement GetPreferredSizeCore.
6661 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6663 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
6666 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6668 * Application.cs: Move the sync context stuff to Run instead of RunLoop
6669 so that it doesn't get uninstalled on modal forms.
6670 * Control.cs: Install a sync context when a control is created.
6671 * WindowsFormsSyncronizationContext.cs: Create a private static control
6672 to invoke on. This is easier than trying to find a created control we
6676 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
6678 * Application.cs: Install a WindowsFormsSynchronizationContext in the
6679 run loop, and uninstall it when done.
6680 * WindowsFormsSynchronizationContext.cs: Implement.
6681 [Fixes the common case in bug #327608]
6683 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
6685 * DataGridViewCellCollection.cs: Added argument checks for indexers.
6686 Use case-insensitive lookup of column name in indexer. Code
6689 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6691 * TreeNode.cs: When collapsing or expanding a node, check whether its
6692 change will affect the visible area (we were previously doing a
6693 IsVisible check, but that check is not enough since children nodes
6694 could be still visible). Fixes part of #325266.
6696 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6698 * TreeView.cs: Always select the first node when the TreeView gets
6699 focus if there is no currently selected node.
6702 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6704 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
6705 node being selected is null.
6706 [Patch from Yves Bastide fixes bug #326858]
6708 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6710 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
6711 whether all the parent nodes are expanded.
6712 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
6713 call RecalculateVisibleOrder if all previous nodes are expanded.
6714 Before that we were doing a IsVisible check, but sometimes the node
6715 is not in the visible area, but _should_already be ready, because of
6716 all previous nodes are expanded. Fixes #325259.
6718 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6720 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
6721 portion of the item is clicked.
6723 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6725 * TextControl.cs: Do not tell the system to move the cursor if the
6726 textbox isn't focused. Fixes part of bug #322668.
6728 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6730 * ComboBox.cs: When there are no items, do not show the dropdown if
6731 the down arrow is clicked. Fixes part of bug #322668.
6733 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6735 * ToolStripComboBox.cs: Manually set the size of this control in the
6736 constructor, as it doesn't seem to be the same as DefaultSize.
6737 Fixes a failing monobuild test.
6739 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6741 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
6742 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
6744 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6746 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
6747 Desktop. This lets it work for people who have moved their desktops
6748 from the default location on windows. For people who have not, both
6749 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
6751 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6753 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
6754 but when the base constructor sets this, the control is null. Set it
6755 again in the constructor. Fixes a failing monobuild test.
6757 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6759 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
6761 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
6764 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6766 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
6767 will handle it themselves.
6768 * ToolStripItem.cs: When deciding what the text of a tooltip should
6769 be, use the Text property instead of the text field.
6770 * ToolStripTextBox.cs: Handle tooltips.
6771 [Fixes bugs #325417 and #325973]
6773 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6775 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
6776 left click. Fixes the easy part of bug #325969.
6778 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6780 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
6781 bug #325406, but set a minimum for StatusStrip to 22 to keep
6782 bug #325390 fixed. I think this minimum would have been figured
6783 up automatically if the grip was actually a ToolStripItem, but it
6786 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6788 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
6789 as this is apparently the actual value used by .Net. Also apply
6790 ItemPadding in Details view only, and decrease the general width padding,
6791 to have only the needed. This should fix #324340 in Windows too.
6793 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6795 * ListViewItem.cs: Don't Invalidate item if parent is inside
6796 a BeginUpdate/EndUpdate block. This prevents to have differences
6797 between the ListView and items state, as well as avoid some exceptions
6799 * ListView.cs: Make 'updating' field internal.
6801 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6803 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
6804 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
6805 size if appropriate.
6806 Fixes reopened bug #325414.
6808 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6810 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
6811 * ToolStripItem.cs: Invalidate before and after our new autosize when
6813 Fixes reopened bug #325390.
6815 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6817 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
6818 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
6821 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6823 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
6825 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6827 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
6828 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
6831 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6833 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
6834 item to select when the ToolStrip is selected.
6835 * ToolStripControlHost: Realign the control when the bounds or visibility
6837 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
6838 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
6840 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
6841 base.OnPaint. Was causing text not to be drawn.
6843 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6845 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
6847 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6849 * TreeView.cs: When creating the label edit text box,
6850 set is initially to Visible = false. This is done to
6851 prevent a confusion in the layout which makes it to lose
6852 focus when shown the first time. Fixes part of #82592.
6854 2007-09-13 Andreia Gaita <avidigal@novell.com>
6856 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
6858 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6860 * ToolStrip.cs: Take Margin into account when calculating preferred
6861 size. Also, allow preferred size to get smaller than the explicit
6863 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
6864 First step towards fixing bug #82747.
6866 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6868 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
6869 full row select background over the plus/minus glyph. Also, turn
6870 off the focus rectangle for full row select since MS doesn't seem
6871 to ever paint it. [Fixes bug #81839]
6873 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6875 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
6876 This was causing keyboard opened dropdowns to lose focus.
6879 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6881 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
6882 ClientRectangle instead. [Fixes bug #82838]
6884 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6886 * SplitContainer.cs: We can't reset Visible on every layout because
6887 someone may have set Visible = false explicitly on a SplitterPanel.
6888 Make sure when we switch orientation the SplitterDistance does not
6889 change. Fixes two failing tests.
6891 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6893 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
6894 TextRenderer, since the latter is only available in 2.0.
6896 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
6898 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
6899 * SplitContainer.cs: Implement FixedPanel layouting.
6901 2007-09-12 Andreia Gaita <avidigal@novell.com>
6903 * WebBrowserBase.cs: setup shutdown routine
6905 2007-09-12 Andreia Gaita <avidigal@novell.com>
6907 * Application.cs: Let keyboard events that are targetted
6908 to non-mwf windows hosted inside mwf (as in, webbrowser),
6909 propagate properly. Fixes keyboard handling on the webbrowser.
6911 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6913 * ListView.cs: When handling MouseUp event and we are
6914 highligting a node with the mouse right button, don't trigger
6915 Before/AfterSelecting event, since we are not actually selecting
6918 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6920 * TreeView.cs: When editing a node, modify the edit text box
6921 depending on the text length (as you are typing), like MS does.
6923 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6925 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
6926 Override GetPreferredSizeCore to perform calculations. Remove custom
6927 autosize logic. [Fixes bug #82739]
6929 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6931 * TextBoxBase.cs: Modified should default to false.
6933 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6935 * Control.cs: Update the anchoring distances even when layout is supspended.
6936 Patch provided by George fixes bug #82805.
6938 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6940 * Control.cs: Provide a setter for ExplicitHeight.
6941 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
6942 remove the hacks in here for requested_height.
6945 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6947 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
6948 Maximum to lower that its current Value caused an ArgumentException by setting
6949 the Value to the new Maximum.
6951 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6953 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
6954 handle moves to the closest tick when it is being dragged.
6957 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6959 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
6960 can't let them count as real items when calculating where to merge in the
6961 user's items. [Fixed bug #82786]
6963 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6965 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
6966 who want to add a menu item directly onto a toolstrip.
6967 [Fixes bug #82775, part II]
6969 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6971 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
6972 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
6973 don't set it to available.
6974 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
6975 [Fixes bug #82727, part II]
6977 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6979 * StatusStrip.cs: Change item placement to None if not visible.
6980 * ToolStripItem.cs: Invalidate when InternalVisible changes.
6981 These should have been committed to fix 82723, but I missed them.
6983 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6985 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
6986 Click, and that it is only called once.
6987 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
6988 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
6992 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6994 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
6996 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
6997 instead of 8, just like above. Partially fixes #82734.
6999 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7001 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
7004 * ListView.cs: Remove extra space between rows in Details view (match
7006 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
7009 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
7011 * Application.cs: Modified ProductVersion to return value of
7012 AssemblyInformationVersion if available, and fallback to assembly
7013 version. Fixes bug #82746. Code formatting.
7014 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
7017 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7019 * Control.cs: When updating ZOrder for a child control,
7020 take into account the implicit ones (we need it in our controls
7021 using them). Fixes #82642.
7023 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7025 * ToolStripItem.cs: Add support for animated images.
7028 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7030 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
7031 visible. [Fixes bug #82727]
7033 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7035 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
7036 so we repaint using the new size. [Fixes bug #82723]
7038 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7040 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
7041 option. [Fixes bug #81779]
7043 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7045 * TreeView.cs: Override HandleClick because the StandardClick style is
7046 set to false. According to MSDN (and testing), the click events should
7047 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
7049 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7051 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
7052 the border will disappear. Fixes reopened #82653.
7054 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7056 * Control.cs: If the control is autosize, and its preferred size changes
7057 when it lays out its children, tell its parent so it can be re-layed out.
7058 Fixing some of the fallout from r85433.
7060 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7062 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
7063 and CheckBox share some code.
7065 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7067 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
7068 the TrackBar, not every mouse move. [Fixed bug #82718]
7070 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7072 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
7073 under 2.0 rendering. [Fixes bug #82657]
7075 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7077 * TreeView.cs: If we found a TreeNode to display a context menu, but
7078 it doesn't have one to show, let the TreeView display its menu
7079 instead. [Fixes bug #82680]
7081 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7083 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
7084 OnPaintInternal instead. Give the internal TextBox a Border property
7085 so it can draw itself more correctly. [Fixes bug #82653]
7087 2007-09-06 Zoltan Varga <vargaz@gmail.com>
7089 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
7091 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7093 * ComboBox.cs: Adjust combobox button state to reflect current state when
7094 back to enabled = true. Fixes first issue of #82654.
7096 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7098 * Control.cs: Fix last patch regression, prevent forms to update zorder when
7099 setting visible property.
7101 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7103 * Control.cs: Update zorder after control creation in SetVisibleCore, it
7104 fix zorder for controls initially created as non visible. Fixes #82667.
7106 2007-09-04 Everaldo Canuto <everaldo@simios.org>
7108 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
7109 mimic win32 look. Fixes #82656.
7111 2007-09-01 Zoltan Varga <vargaz@gmail.com>
7113 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
7114 Stubs for new net 3.5 classes.
7116 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7118 * ListViewItem.cs: In ListViewItemCollection operations calculate
7119 Layout for owner as well as invalidate it. Fixes part of #82642.
7121 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
7123 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
7124 when returning Enabled. [Fixes bug #82651]
7126 2007-08-30 Everaldo Canuto <everaldo@simios.org>
7128 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
7130 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7132 * ListView.cs: Put item padding info in a single place
7133 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
7135 * ThemeWin32Classic.cs:
7136 * Theme.cs: Likewise.
7138 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7140 * ListView.cs: When a ListViewSubItem instance is invalidated,
7141 invoke Invalidate on parent ListViewItem, not parent ListView.
7144 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7146 * ListView.cs, ListViewItem.cs: corcompare stuffs.
7148 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7150 * BindingMemberInfo.cs: Implement == and != operators.
7152 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7154 * HtmlElementEventArgs.cs: Implement properties.
7156 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7158 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
7160 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7162 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
7163 Add (string,string,string) to implement the imagekey. It turns out, we
7164 use the requested imagekey whereas .Net does not. So I broke ours to match
7167 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7169 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
7171 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7173 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
7175 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
7177 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
7178 up-to-date. Fixes bug #82618.
7180 2007-08-29 Everaldo Canuto <everaldo@simios.org>
7182 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
7183 reflect document changes. Fixes #82367.
7185 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7187 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
7188 as well as add new ones. This should make work the BackgroundImage
7189 property for ListView again.
7191 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7193 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
7194 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
7195 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
7197 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7199 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
7202 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7204 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
7205 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
7207 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7209 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
7210 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
7212 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7214 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
7216 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7218 * GridEntry.cs: Implement GetService.
7220 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
7222 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
7223 for label editting, make sure we focus back on the TreeView.
7226 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7228 * ListView.cs: Add some 2.0 overrides.
7230 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7232 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
7233 because getter dont returns right value before handle creation. Thanks
7234 to George. Fixes #82569.
7236 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7238 * Theme.cs: Revert last patch, it causes error under win32.
7240 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7242 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
7243 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
7244 logical Desktop rather than the physical file system location. Fixes #82603.
7246 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
7248 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
7249 for the patch. Fixes #82568.
7251 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7253 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
7256 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7258 * ListViewInsertionMark.cs: New stubbed class.
7260 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7262 * FolderBrowserDialog.cs: When adding folder, immediately create the
7263 directory with temporary name and rename the directory when editing
7264 finishes. This matches MS. Ensure the node for the new folder is
7265 selected and LabelEdit is disabled, when editing is either finished
7268 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7270 * TreeView.cs: When editing label of node, ensure node is visible.
7272 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
7274 * PropertyGridView.cs: Set the value only if it has changed.
7276 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7278 * ListView.cs: Some more code refactoring to add support sorting
7279 with groups (now for Details view). Remove unused code also.
7281 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7283 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
7284 Not a big fan of reacting immediately to a field in an EventArg, but that's
7285 the way it's done. (This is part of the previous commit that got left out.)
7287 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7289 * FolderBrowserDialog.cs: Removed need for separate description field.
7290 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
7291 has focus when dialog box is displayed again, regardless of what
7292 button was pressed the previous time. Set RootFolder and SelectedPath
7293 each time dialog box is displayed. This ensures the treeview is
7294 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
7295 when it does not have focus. Added support for more special folders.
7297 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7299 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
7300 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
7301 it resets the edit_args.
7302 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
7305 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
7307 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
7308 button to match MS. Provide more meaningful exception message for
7309 invalid RootFolder value. Use zero-length string when SelectedPath
7310 is set to null. Allow non-rooted paths in SelectedPath, but ignore
7311 them in FolderBrowserTreeView. Allow folders to be created in
7312 RootFolder. Fixes bug #82576.
7314 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7316 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
7317 since we need to take into account the group headers and the margin
7319 * ListViewGroup.cs: Add a rows field to store the number of rows per
7322 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7324 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
7325 Anyways, let's just follow the lead.
7327 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7329 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
7330 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
7331 controls in GetPreferredSizeCore.
7332 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
7335 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7337 * PrintDialog.cs: Need to instantiate the form variable here too.
7339 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7341 * ListView.cs: Do some reorganization to support sorting in groups,
7342 by doing the layout sequentially in ListView.Items. Also add support
7343 for the Default Group, which should be available for items with no
7345 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
7346 for storing layout info also.
7347 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
7348 collection, as well as providing internal members to do a traversal
7349 including the default group (needed when doing layout/drawing).
7350 * ThemeWin32Classic.cs: When drawing group headers use internal
7351 ListViewGroupCollection members to take into account the default
7354 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
7356 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
7358 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7360 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
7361 been created. If handle is created, we want arror keys. If we are editing
7362 a node, we want things like enter, esc, home, end, page up, page down.
7363 Allows Esc to work for FolderBrowserDialog.
7365 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7367 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
7368 they close when ESC is pressed. Thanks Andy!
7370 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7372 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
7373 This way we can tell if this is a CommonDialog provided with mono, or one
7374 that is being implemented outside by a developer. If it is an external one,
7375 the developer is responsible for showing their own form. We were showing
7376 our blank form after the developer showed his.
7377 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
7378 PageSetupDialog.cs: Instantiate form variable in our constructor.
7381 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7383 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
7384 and always return true. [Fixes bug #81616]
7386 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7388 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
7389 TextBox. [Fixes bug #82549]
7391 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
7393 * FileDialog.cs: When Save/Open is clicked and no filename is selected
7394 or entered then do not close the dialog. Fixes bug #82539. Removed
7397 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
7399 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
7400 code to this method. It is calling every time filter changes. This method
7401 will help to fix the bug #80887.
7403 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
7405 * CheckBox.cs: Implement AutoSize calculation.
7407 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
7409 * CheckBox.cs: Use new 2.0 rendering for 2.0.
7410 * Theme.cs: Method declarations for 2.0 rendering path.
7411 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
7413 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7415 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
7417 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7419 * ListViewGroupCollection.cs: Implement AddRange the right way, to
7420 only call Redraw on the parent one time.
7422 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7424 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
7425 GetClipboardContent.
7426 * DataGridViewCell.cs: Implemented GetClipboardContent,
7427 GetEditedFormattedValue, GetFormattedValue.
7428 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
7430 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
7432 * TableLayoutStyleCollection.cs: corcompare fix.
7434 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7436 * DataObject.cs: Implemented retrieval of convertible / not convertible
7439 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
7441 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
7442 ourselves. This ensures the entire old bounds are repainted, in case our new
7443 size is smaller. [Fixes bug #82518]
7445 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
7447 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
7448 flag to make fast handle of mouse events, without this the mouse move is
7449 handled in some manner, whether it is a mouse move or not. Fixes #81588.
7451 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7453 * ListView.cs: When doing layout calculations don't use a ref
7454 param to keep the current item; instead use its Index value (this
7455 is specially important when doing the layout with Groups
7456 and Items being sparse). Also don't take into account items added to
7457 the Group but not yet added to the main ListView.Items collection.
7459 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7461 * ListViewGroupCollection.cs: Forgot to mimic an issue
7462 in the indexer (don't assign the ListView owner for new values).
7464 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7466 * ListViewGroupCollection.cs: Make the string indexer use
7467 the int based indexer to re-use code, instead of duplicate the code.
7468 Also Redraw as needed and take into account null values.
7470 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
7472 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
7475 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
7477 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
7478 when other buttons are clicked or navigated to.
7480 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7482 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
7483 it's XplatUIX11 that attaches them.
7485 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7487 * DataGridView.cs: If a column has been added, recreate the editing row.
7490 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7492 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
7493 of the tag to draw. Makes disappearing text show up again.
7495 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7497 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
7498 Contents. Fixes #82487.
7500 2007-08-19 Andreia Gaita <avidigal@novell.com>
7502 * Added HtmlElement.cs, HtmlElementCollection.cs,
7503 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
7505 2007-08-19 Andreia Gaita <avidigal@novell.com>
7507 * BindingSource.cs: Implement this, dispose and getenumerator.
7508 * DataGridViewRowCollection.cs: Move the InvalidOperationException
7509 out of AddInternal, throw it only on public Add calls. The
7510 UsingWebBrowser sample was blowing up with this when setting the
7511 DataSource after adding DataBindings, so it's likely that .net
7512 only throws this exception when Add is called directly.
7514 * ToolStripControlHost.cs: Return the hosted control's text
7515 property, and not the ToolStripItem one (it would always return
7518 * HtmlDocument.cs: Implement GetElementById and All
7519 * WebBrowser.cs: Remove exception on set_DocumentStream.
7521 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7523 * Form.cs: Fix the max and min value for opacity (0~1).
7525 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7528 * DataGridTableStyle.cs: Default header font is now null, on getter it
7529 returns datagrid font when is null. On setter permits null.
7532 - When ResetHeaderFont set header font to null.
7533 - On EndInit set grid_style.DataGrid.
7535 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7537 * TabControl.cs: Fix regression in default padding x.
7539 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7541 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
7543 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7545 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
7546 not 2. Fixes #82229.
7548 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7550 * TabControl.cs: Fix tab size when image height is less than text height.
7551 Partially fixes #81837.
7553 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7555 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
7556 "alt + tab". It works only for Win32, for X11 theres no way to remove window
7557 from taskbar and keep it on "alt_tab". Fixes #81722.
7559 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7561 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
7562 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
7563 Fixes #80877 and #79418.
7565 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7567 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
7568 between position and one of the screen borders. Fixes #82349.
7570 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7572 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
7573 the MessageBox in the taskbar. Fixes #82457.
7575 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7577 * MessageBox.cs: Fix form size when icon is set and text height is bigger
7578 than icon. Fixes #82468.
7580 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7582 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
7583 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
7584 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
7585 Refactored HandleNCCalcSize somewhat to avoid code duplication.
7586 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
7587 FormBorderStyle to decide if we're calculating a new size from the
7588 client size or not. CreateParams: Don't fake tool windows, only the X11
7589 backend manages toolwindows manually.
7591 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7593 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
7594 ObjectDisposedException.
7596 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7598 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
7599 in OnLoad should not have any effect. [Fixes bug #82470]
7601 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7603 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
7604 paint for controls that create their own ToolTipWindow instead of
7605 going through ToolTip.
7607 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7609 * ToolTip.cs: Make Hide internal instead of public to match MS API.
7611 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7613 * ListViewGroupCollection.cs: Use generic List instead of an
7614 ArrayList, since this collection is 2.0 only.
7616 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
7618 * ToolTip.cs (Hide): Made public to make the build work (should
7619 this not be public?).
7621 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7623 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
7625 * ToolTip.cs: Add an internal Visible property to facilitate transition.
7627 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7629 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
7630 PopupEventHandler.cs: Make these internal for 1.1.
7631 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
7632 use ToolTipWindow internals.
7633 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
7634 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
7636 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7638 * X11Dnd.cs: Add a null check.
7640 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7642 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
7643 nothing else succeeds. Fixes #82453.
7645 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7647 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
7648 rectangle if we're painting to another window than the one the paint
7649 message was generated on. Simplify the code somewhat, which makes
7650 PaintEventEnd also simpler.
7652 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7654 * Control.cs: When changing parent of a form, let the form decide whether
7655 XplatUI.SetParent should be called or not.
7656 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
7657 recreating the handle. If the new parent's handle isn't created, don't
7658 recreate our handle, just destroy it. CreateParams: Check if the
7659 parent's handle is created before fetching it.
7661 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7663 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
7664 Update calls to PaintEventStart/End to take a Message argument.
7665 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
7666 take a Message argument.
7667 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
7668 Message argument, and handle the case where we don't paint to the window
7669 for which the paint message was generated.
7671 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7673 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
7674 Marshal.GetLastWin32Error. Plug nasty memory leak in
7675 PaintEventStart/End, we were creating a DC we weren't releasing.
7677 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7679 * ListView.cs: Add Groups support in Details view. Also have a small
7680 method to do the layout of the group header. Don't use a separate
7681 method to do the groups calculation in Icons view, since our methods
7682 are now a little simpler.
7683 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
7685 * ThemeWin32Classic.cs: Likewise.
7687 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7689 * Application.cs: Add FilterMessage method and rework our message loop
7692 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7694 * Application.cs: Add some methods and stub a few methods that are
7695 pretty much never used.
7697 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
7699 * TreeNode.cs: Add some serialization methods.
7701 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7703 * ListView.cs: In ListViewItemCollection have a
7704 'is_main_collection' field to not modify ListViewItem.ListView
7705 when using it as ListViewGroup.Items (and not ListView.Items)
7706 and also don't modify selection state (.Net behaviour).
7707 Instead, set group for items contained in a ListViewGroup.Items collection.
7708 * ListViewItem.cs: Simplify some code in Group setter.
7709 * ListViewGroup.cs: use the new .ctor to pass the current instance
7710 to the ItemsCollection.
7711 * ListViewGroup.cs: Set the ListView property for ListViewGroup
7712 instances when adding/removing. Also make Remove use RemoveAt, which
7713 should perform better.
7715 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7717 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
7718 that crept into the 1.1 profile.
7720 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7722 * ToolBarButton.cs: Implement ImageKey.
7724 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7726 * ToolBar.cs: Implement ScaleControl/ScaleCore.
7728 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7730 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
7731 created, it might have gotten destroyed since we last checked. Fixes
7734 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
7736 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
7737 tooltip will hide when mouse is moved off the control.
7740 2007-08-11 Andreia Gaita <avidigal@novell.com>
7742 * WebBrowserBase.cs, WebBrowser.cs: add implementation
7743 using Mono.Mozilla for loading and navigating webcontrol
7745 The initial implementation was done on
7746 /trunk/mozembed/tests/browser , and copied here.
7748 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
7750 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
7751 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
7753 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7755 * DataGridView.cs: Add support for an editing row. Fixes #82226.
7756 RowTemplateFull: throw an exception if a column doesn't have a template.
7757 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
7758 add the row just before it.
7759 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
7761 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
7762 DataGridView field to be able to reach the grid's editing row.
7764 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7766 * ToolTip.cs: If the control's handle hasn't been created when it has a
7767 tooltip set on it, don't check to see if we need to show the tooltip. This
7768 check was causing the control's handle to be created.
7771 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7773 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
7775 Handle Not Created -1 0
7779 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7781 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
7784 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7786 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
7787 * ToolTip.cs: Implement some properties and owner draw.
7789 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7791 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
7792 show them again, since setting visibility causes a paint, causing an
7793 endless loop (instead use a temporary and set it all when it's known if
7794 they should be shown or not). Fixes #79265.
7796 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7798 * DataGridView.cs: Only do a full column/row selection if a header was
7799 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
7800 isn't pressed, deselect everything before selecting something.
7802 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7804 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
7805 behaviour according to bug #81075 - they are returned in the order they
7806 are selected. Fix HitTest to check if the point is within any of the
7807 headers. Allow for row/column selection when in ColumnHeader or
7808 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
7809 the row and column to call when their selected state changes, and
7810 updated selected_[rows|columns] whenever SetSelected* is called.
7811 * DataGridViewBand.cs: Initialize isRow correctly. Call
7812 SetSelected[Row|Column]CoreInternal when the selected state changes, and
7813 add a SelectedInternal to avoid StackOverflows.
7814 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
7815 ReadOnly no matter what.
7816 * DataGridViewSelectedColumnCollection.cs,
7817 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
7818 the items in reverse order (just as MS does...)
7820 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7822 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
7823 itself, not part of a mnemonic. [Fixes bug #82378]
7825 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7827 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
7828 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
7829 the DGV, the column, the row, or the cell itself is readonly.
7831 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7833 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
7835 * FileDialog.cs: Same.
7836 * TextRendered.cs: Same.
7837 * FolderBrowserDialog.cs: Same.
7838 * TextBoxBase.cs: Same.
7839 * Application.cs: Same.
7841 * ThemeClearLooks.cs: Same.
7843 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7845 * XplatUI.cs: Added RunningOnUnix property to be used by controls
7846 instead of duplicating these checks everywhere.
7847 * FileDialog.cs: Use case-insensitive comparison for populating the
7848 DirComboBox when not running on unix. Fixes bug #82385.
7849 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
7852 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7854 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
7855 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
7856 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
7857 cell and column selection with ctrl and shift pressed. Call the correct
7858 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
7859 the corresponding virtual method (PaintBackground to paint background,
7861 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
7862 either the column, row or the cell itself is selected.
7863 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
7865 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
7866 here. When the row is selected, don't select all cells. Each cell now
7867 queries the row to see if the row is selected.
7869 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7871 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
7874 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7876 * ListView.cs: In ListViewItemsCollection check that owner is
7877 not null before trying to access it (this happens quite often
7878 using Groups). Also don't duplicate calls by calling CollectionChanged
7881 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7883 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
7884 when we are dismissed to clear keyboard mnemonics.
7885 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
7886 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
7887 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
7888 was activated by keyboard or the OS tells us to always draw them.
7889 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
7890 [Fixes bugs #82376, #82377]
7892 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7894 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
7895 shot at having it because Alt was pressed.
7896 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
7897 the first real menu item.
7898 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
7899 a mnemonic if Text is null.
7902 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7904 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
7905 search do check whether the item is already contained in the
7906 collection or not; instead check if the owner of the item is the same
7907 as ours. Also, remove a redundant check in the same method.
7909 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7911 * Control.cs: Allow the clip region to be set back to null.
7912 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
7913 [Fixes button still showing up in bug #82370 when Show Through is turned off]
7915 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
7917 * GridEntry.cs: Add a null check.
7918 * PropertyGrid.cs: When checking for existing grid entries, ignore category
7919 entries. Fixes #82297.
7921 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7923 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
7926 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7928 * ListBox.cs: Implement ScaleControl.
7930 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7932 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
7934 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
7935 parent has a menu strip. Fixes #81689.
7937 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7939 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
7940 moments, so apply some fuzzy logic to determine if the mouse is still
7941 inside a control or not. Fixes #82288 (for the third time).
7943 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7945 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
7946 Don't create the child if it has been disposed already (may happen if
7947 the user closes the form the Load event).
7949 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7951 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
7954 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7956 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
7957 might call us after we've been destroyed, in which case our own private
7958 parent field is null. Fixes #82326.
7960 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7962 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
7963 check for setting the dropdown's owner.
7965 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7967 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
7968 before removing system menu items.
7970 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
7972 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
7974 * MdiControlStrip.cs: Added. These are the menu items used in mdi
7976 * ToolStrip.cs: Add a null check to mnemonics.
7977 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
7979 [Fixes most of bug #81689]
7981 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7983 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
7985 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7987 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
7989 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7991 * DataGridViewCell.cs: EditType: returns
7992 DataGridViewTextBoxEditingControl always.
7994 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
7996 * TextRenderer.cs: Remove the LineLimit string format flag from the
7997 DrawString fallback method so that things like buttons that aren't
7998 tall enough to draw a full line will still draw part of the text.
7999 [Fixes part of bug #82272]
8001 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8003 * DataGridView.cs: Implemented AutoResizeColumn(s).
8004 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
8005 according to the Alignment.
8006 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
8007 Implement alignment and padding when painting.
8008 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
8010 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
8012 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
8015 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8017 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
8020 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8022 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
8023 hide GetPreferredSize from public API.
8024 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
8025 * ToolStripItem.cs: Stub out drag and drop methods and events.
8026 * ToolStripManager.cs: Stub out Save/LoadSettings.
8027 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
8028 * ToolStripPanel.cs: Fix corcompare error.
8029 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
8030 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
8031 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
8033 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8035 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
8036 bounds height instead of PreferredHeight. Puts things back the way
8037 they were for height while still fixing the width. Fixes broken unit
8040 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8042 * Binding.cs: Implement 2.0 constructors and add a null check.
8044 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8046 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
8047 and fix row index (off by one).
8049 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8051 * PropertyGridView.cs: Remove debug output.
8053 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8055 * Control.cs: We need to reset the is_created flags when the handle is
8056 destroyed. Fixes #82187.
8057 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
8058 client coordinates if the window doesn't have a parent.
8059 Win32GetParent returns the parent or the owner, and for top-level
8060 windows with no parent (but with an owner) we were calculating the
8061 location from the location of the owner.
8062 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
8063 form has been disposed.
8064 * MdiClient.cs: Add a null-check.
8066 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8068 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
8069 actually do auto-sizing. Override the internal GetPreferredSizeCore
8070 so we can provide an implementation that returns the current width
8071 and preferred height. Allows anchor = right to work with TextBox 2.0.
8074 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8076 * ListView.cs: Add support for navigating items in Groups mode, by
8077 creating a big matrix containing all rows and cols of all groups. When
8078 are in other mode than Details, pressing Up should have a similar
8079 behaviour as that one of Down (moving to the next available column if
8080 current one doesn't have an item in the requested row). Also, don't
8081 proceed to use groups if ShowGroups is false.
8082 * ListViewGroup.cs: Add an internal int field to store the starting
8083 row of the group (used by the big matrix used for navigating the
8085 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
8088 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8090 * ToolStripDropDown.cs: When we do Show, start with the
8091 DefaultDropDownDirection, but if our popup menu is going to off-screen,
8092 modify the direction to keep it on screen. [Fixes bug #82210]
8094 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
8096 * FileDialog.cs: Accept any FilterIndex value, and store it
8097 unmodified. When FilterIndex is less than 1, or greater than number
8098 of filters, then default to first filter. Only add filter extension to
8099 file if user did not specifiy an extension. When type of dialog is
8100 OpenFileDialog and DefaultExt is set, then only use filter extension
8101 if: CheckFileExists is true and no file wih the default extension
8102 exists, or CheckFileExists is false, and user specified file does not
8103 exist. When CheckFileExists is true, then add first extension of
8104 selected filter that matches existing file. Perform checks for
8105 existing file, overwrite and create after extension has been added to
8106 file name. When CheckFileExists is true and type is SaveFileDialog,
8107 then only consider first filter extension if DefaultExt is set.
8108 When CheckFileExists is true, then ignore DefaultExt if file with that
8109 extension does not exist. Also perform check for existing file when
8110 type is SaveFileDialog. Changed some field to constants.
8112 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8114 * ListView.cs: Take into account the region used by header
8115 control when doing the vertical scroll (this way we invalidate
8116 the precise area, and don't get any dirty one).
8118 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
8120 * FileDialog.cs: Check for valid filterIndex on button open/save.
8123 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8125 * ListView.cs: Update some layout calculations in details view
8126 and clean the code in a pair of assignations.
8128 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8130 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
8131 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
8132 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
8133 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
8135 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8137 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
8138 performance of thread-safe Graphic methods. (Thanks rolf!)
8140 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8142 * ListView.cs: When doing the layout calculations, don't calculate
8143 scroll bars before handle is created. This is unnecessary and also
8144 calculating them before handle creation item causes a number of random
8145 bugs (which begin to appear after Chris' big patch for handle creation
8148 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8150 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
8151 for things that don't have a Graphics object. Currently, things just use
8152 the static Hwnd.bmp_g which is not thread safe.
8154 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8156 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
8157 dialog. Fixes #82187.
8159 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8161 * DataGridViewElement.cs: Initialize state.
8162 * DataGridView.cs: Forward a few Mouse events to cells. Add
8163 GetRowInternal and GetCellInternal that doesn't unshare rows.
8164 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
8165 don't use the index, but look it up. Add
8166 DataGridViewControlCollection.RemoveInternal to remove controls
8167 that Remove won't remove (scrollbars, edit control).
8168 * DataGridViewColumn.cs: Initialize State correctly.
8169 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
8170 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
8172 * DataGridViewRowCollection.cs: Implemented shared rows.
8173 * DataGridViewRow.cs: Throw exceptions as MS do.
8174 * DataGridViewCell.cs: A few properties are implemented by a
8175 Get<Property> method, so move implementation there and remove the
8176 NIEX in the method. Add a bunch of OnXInternal that DataGridView
8177 calls when necessary.
8178 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
8179 complicates matters.
8180 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
8183 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8185 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
8186 the children controls. Instead, we will just set up the proper docking for the
8187 children controls so we don't have to worry about it. [Fixes bug #82188]
8189 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8191 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
8192 canceling and correct Before/AfterLabelEdit properties as layed out in bug
8193 81847. [Fixes bug #81847]
8195 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8197 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
8198 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
8199 an explicit size based on the design-time size of the text. Since our fonts
8200 may not match this explicit size, we tend to cut off the ends of people's labels.
8202 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
8204 * Menu.cs: Add some missing methods to MenuItemCollection.
8206 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8208 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
8209 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
8210 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
8211 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
8212 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
8213 * DataGridViewElement.cs: State defaults to Visible.
8214 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
8215 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
8217 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8219 * Control.cs: Minor 1.1 corcompare fix.
8221 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8223 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
8224 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
8226 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8228 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
8229 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
8230 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
8231 DataGridViewSelectedColumnCollection.cs,
8232 DataGridViewSelectedRowCollection.cs: Corcompare work.
8234 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8236 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
8237 it is autoset by VS2005 designer and the effect is barely noticeable.
8239 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8241 * TreeView.cs: Implement HitTest.
8243 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8245 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
8246 manually adding and removing the control from the Controls
8248 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
8249 EditingControlInternal property that tracks the editing control.
8250 Always keeping the scrollbars in the Controls collection, as MS
8251 testing confirms is the right behaviour.
8253 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8255 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
8256 according to MSDN and new test.
8258 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8260 * TreeNode.cs: Implement ToolTipText.
8261 * TreeView.cs: Implement tooltips, NodeMouse* events.
8263 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8265 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
8267 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8269 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
8270 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
8272 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
8274 * Control.cs, Form.cs, ContainerControl.cs,
8275 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
8276 for misc properties.
8278 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8280 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
8281 * TreeView.cs: Implement StateImageList.
8283 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8285 * Form.cs: Don't check if the current form is the active form before
8286 activating it. Fixes #81904.
8288 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8290 * Form.cs: Don't check if the current form is the active form before
8291 activating it. Fixes #81904.
8293 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8295 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
8297 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8299 * Form.cs: Don't try to position the form after loading if the form was
8300 disposed. Fixes #81969.
8302 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8304 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
8305 properties. Had to change ToolBar into ToolStrip, which required a
8308 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8310 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
8311 resized, fixes part of #79829 (vertical lines in toolbar).
8312 PropertyGrid: Refactored Populate* to something that's easier to
8313 follow at least for me, as well as splitting it up into several new
8314 methods, required to update only subitems when something has
8315 changed by a popup editor or listbox. Don't use events to check
8316 when any values are changed, since the events are unreliable (we're
8317 changing the objects the events are registered with, and if the
8318 event handling requires the objects to be immutable (objects stored
8319 in hashtables for instance), the events will never be raised).
8320 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
8321 everytime we change a value, since events are unreliable.
8322 DropDownButtonClicked: For the same reason don't compare objects to
8323 check if it has changed or not, it would require all objects to
8324 derive Equals. Fix dialog location on windows, MS is doing weird
8325 things when creating parented forms.
8326 * GridEntry.cs: Add a SelectedObject setter.
8328 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
8330 * TreeNode.cs: Add some corcompare attributes.
8331 * TreeNodeCollection.cs: Implement 2.0 stuffs.
8332 * TreeView.cs: Implement some 2.0 stuffs.
8334 2007-07-18 Andreia Gaita <avidigal@novell.com>
8336 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
8339 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
8341 * ListBox.cs: Implement custom tab offsets.
8343 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8345 * ToolStripContentPanel.cs: Support System renderer.
8346 * ToolStripControlHost.cs: Set RightToLeft to default to No.
8348 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8350 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
8352 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8354 * CheckBox.cs: Chain TextAlign to base implementation instead of
8355 maintaining another one.
8357 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8359 * ButtonBase.cs: Fix an incorrect string constant.
8361 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8363 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
8364 of creating one for measuring strings.
8366 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8368 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
8369 Implement MaxItemSize.
8371 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
8373 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
8374 for DeviceContext. Instead, use the static one available in Hwnd.
8375 Informal tests show this saves about 500k on formtest.exe.
8377 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
8379 * ContainerControl.cs: Implement 2.0 AutoScaling.
8381 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8383 * ComboBox.cs: Work around bug #82120 (bug in mcs).
8385 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
8387 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
8388 Darken the focus color.
8390 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
8392 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
8394 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
8395 X, Y instead of a rect for drawing text.
8396 - For ControlPaint.DrawCheckBox, center the check a little better when the
8397 checkbox is odd width. When drawing a flat checkbox, use a white background
8398 when state != inactive.
8399 [Fixes bugs #82097, 82100]
8401 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
8403 * ListControl.cs: When changing CurrencyManager, disconnect event
8404 handlers from previous one. Fixes bug #81771. Code formatting.
8406 2007-07-15 Andreia Gaita <avidigal@novell.com>
8408 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
8409 full preview invalidation from layout invalidation, and only invalidate
8410 the layout when setting zoom or other properties. Invalidation should
8411 always be done even when resetting properties with the same values as
8412 what is there. Fixes #81744 and #79830.
8414 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8416 * ListView.cs: Implement initial support for Groups. Split some of the
8417 LayoutIcons code to render a partial list of the items (needed by
8418 items contained in ListViewGroup instances). Let the
8419 ListViewItemsCollection.ListView property be modifiable (needed when
8421 * ListViewGroup.cs: Use a Bounds property rather than a Location
8422 one. Also invalidate the bounds when they get changed.
8423 * ThemeWin32Classic.cs: When drawing items, also draw the group header
8424 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
8427 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8429 * ListView.cs: When space gets pressed and CheckBoxes is true,
8430 don't invoke the Begin and EndUpdate methods. We are generating
8431 a redraw of the entire control without need to do so.
8433 2007-07-13 William Holmes <billholmes54@gmail.com>
8435 * Control.cs: Changing logic in FindFlatForward and
8436 FindFlatBackward to handle multiple Controls with
8438 This fixes bug 81687.
8440 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
8442 * OSFeature.cs: Enable IsPresent.
8444 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8446 * Control.cs: Don't do anything in WmShowWindow if the control has been
8447 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
8448 control is created, put on a form, the control is disposed (the
8449 form is never shown), and then we get a MapNotify, triggering a
8451 * Form.cs: Exclude the current form when sending Deactivate to all
8453 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
8454 there was a race condition because assigning the handle raises
8455 events, we can get more messages, therefore trying to assign the
8456 handle again, which would fail if any of those event handlers
8457 closed/disposed the control.
8459 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8461 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
8463 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
8465 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
8466 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
8468 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
8470 * DateTimePicker.cs: If there's no part format specifier, return an
8473 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
8475 * FlatButtonAppearance.cs: Throw NotSupportedException for a
8476 Transparent BorderColor.
8478 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
8480 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
8481 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
8482 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
8483 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
8484 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
8485 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
8486 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
8488 * X11Structs.cs: Remove warnings, add ToString implementations.
8490 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8492 * XplatUIX11.cs: Translate min/max size according to the actual min/max
8493 size, and not the current size. Fixes #81798.
8495 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8497 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
8498 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
8499 to the control yet).
8501 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8503 * PropertyGridTextBox.cs: Add a method that sends any forwarded
8504 mousedowns to the contained textbox.
8505 * X11Structs.cs: More ToString implementation.
8506 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
8509 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8511 * PropertyGridView.cs: Add a null-check, fixes a few tests.
8513 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
8515 * TableLayoutPanelCellPosition.cs: TypeConverter.
8517 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8521 * PropertyGridTextBox.cs: Propagate any color changes to all contained
8523 * PropertyGridView.cs: A few color fixes.
8525 2007-07-10 Jackson Harper <jackson@ximian.com>
8527 * TextControl.cs: Remove some old unused text formatting stuff.
8529 2007-07-10 Jackson Harper <jackson@ximian.com>
8531 * TreeView.cs: Update full row select invalidation to match the
8532 newer DrawSelection... method.
8533 - Make sure to invalidate the entire width when selecting a new
8534 node, if we have full row selection enabled.
8536 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8538 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
8539 display of properties again.
8541 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
8543 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
8544 to existing collections.
8546 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8548 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
8549 that changed between 1.1 and 2.0.
8551 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8553 * PowerStatus.cs: Added. This is just a data class, it is filled
8554 in by SystemInformation.
8556 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8558 * Message.cs: Add op_Equality and op_Inequality.
8560 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8562 * MenuStrip.cs: Finish corcompare work.
8564 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8566 * LinkArea.cs: Add op_Equality and op_Inequality.
8568 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8570 * Application.cs: Add MessageLoopCallback delegate.
8572 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8574 * ListBox.cs: First set of 2.0 stuffs.
8576 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8578 * Control.cs: Make an internal Height property we can override
8579 without messing up the public API.
8580 * ListBox.cs: Override HeightInternal to always return the size
8581 the user set. [Fixes bug #80466]
8583 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
8585 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
8586 paint cell borders if we haven't calculated where they go yet.
8587 [Fixes bugs #82040 and #82041]
8589 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8591 * ListView.cs: In Details view, set the location of item_control
8592 in the (0,0) position (and the header_control is thus on the
8593 item_control). This way the Bounds of the Items are relative to the
8594 ListView control (before this, they had a Bounds value without the
8595 header_control offset, which wasn't matching .Net). Fixes #82004.
8597 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8599 * ListControl.cs: When DataSource is set to null, pass an empty
8600 array of object to SetItemsCore. This is done to clean the items
8601 in the ListContol children. Fixes #81788.
8603 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8605 * ListControl.cs: Add 2.0 stuffs.
8607 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8609 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
8610 Refresh is overkill for just about every repaint request.
8612 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8614 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
8615 so remove my custom Get method and fix the property getter.
8617 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8619 * Label.cs: DefaultMargin for 2.0.
8621 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8623 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
8624 reported issue where other controls with mnemonics would steal strokes
8625 from a selected ComboBox.
8627 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8629 * ScrollOrientation.cs: Make internal for 1.1.
8630 * ScrollEventArgs.cs: Add 2.0 stuffs.
8632 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
8634 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8635 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
8636 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
8638 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8640 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
8642 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8644 * ListView.cs: Implement the so-incredibly broken 2.0
8645 VirtualItemsSelectionRangeChanged event.
8647 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8649 * ListView.cs: When enter is pressed and selection is non empty,
8650 an OnItemActivate event must be fired.
8652 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8654 * ListView.cs: Store the FocusedItem information as an
8655 int instead of a ListViewItem (needed by VirtualMode).
8656 Update the calls to SetFocusedItem to pass an index instead of
8658 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
8659 the Focused state from the owner ListView.
8661 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8663 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
8664 property. Also, invalidate previous focused item in the mentioned
8665 property (match .Net).
8667 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8669 * ListView.cs: Implement 2.0 FocusedItem property setter.
8671 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8673 * ListView.cs: Implement 2.0 TopItem property setter.
8675 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
8677 * StatusStrip.cs: The default renderer is System.
8678 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
8679 if the user specifies it.
8680 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
8681 if we are ManagerRenderMode.
8682 * ToolStripMenuItem.cs: Calculate our text color better.
8683 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
8684 from Professional to the base class based off working with the System renderer.
8685 * ToolStripSystemRenderer.cs: Added.
8687 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8689 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
8691 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
8693 * ToolTip.cs: Implement 2.0 Tag property.
8695 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8697 * ListView.cs: Implement 2.0 HitTest methods.
8699 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8701 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
8702 item is under the pointer or not (sugar). Also remove the TODO
8703 regarding to the cursor changes in OneClick activation.
8704 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
8705 the subitems use the parent's HotFont if UseItemStyleForSubItems is
8706 true; otherwise don't show the underline style.
8708 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8710 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
8711 the code to retrieve the item at position only one time. Also
8712 change cursor when Activation is ItemActivation.OneClick as well
8713 as invalidate the item if HotTracking is true (to show/hide the
8714 underline style). Add an internal HotItemIndex property to retrieve
8715 the current hot item's index.
8716 * ListViewItem.cs: Add an internal HotFont property to cache the
8717 font used when HotTracking is true and the pointer moves within the
8719 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
8720 HotFont depending on the hot state of the item.
8722 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8724 * ListView.cs: Implement 2.0 HotTracking property.
8726 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8728 * ToolStripControlHost.cs: If our hosted control never got created,
8729 don't try to dispose it. [Fixes bug #81909]
8731 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8733 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
8735 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8737 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
8739 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8741 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
8743 * DrawListViewColumnHeaderEventArgs.cs:
8744 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
8745 using the DrawText () methods.
8747 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
8749 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
8750 background which got erased in my changes yesterday.
8752 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8754 * ListViewItem.cs: Actually set bounds for subitems in Details view
8756 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
8757 can invoke from the owner draw routines if we need it. Also, add
8758 support for Owner draw in Details view.
8760 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8762 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
8763 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
8764 ShowImageMargin setting, properly align text in a ToolStripLabel
8765 hosted on a ToolStripDropDown.
8767 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8769 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
8770 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
8772 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8774 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
8776 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8778 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
8779 location to match ToolStripMenuItems.
8781 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8783 * DrawListViewColumnHeaderEventArgs.cs:
8784 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
8785 column headers in ListView.
8787 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8789 * UserControl.cs: Implement AutoSize.
8791 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8793 * DrawListViewItemEventArgs.cs:
8795 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
8798 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8800 * ToolStripDropDownItemAccessibleObject.cs: Added.
8801 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8802 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8803 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
8804 ToolStripTextBox.cs: corcompare work.
8806 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8808 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
8809 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
8810 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
8813 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8815 * OSFeature.cs: Add IsPresent.
8816 * PrintPreviewControl.cs: Add RightToLeft.
8817 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
8818 * SplitterPanel.cs: Add AutoSizeMode.
8820 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8822 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
8823 * MdiClient.cs: Add 2.0 ScaleControl.
8824 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
8825 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
8827 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8829 * Form.cs: Implement some scaling methods, stub some RTL methods,
8832 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8834 * Control.cs: corcompare work.
8835 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
8837 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8839 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
8840 ControlPaint 2.0 stuffs.
8842 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8844 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
8846 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8848 * UpDownBase.cs: Add 2.0 stuffs.
8850 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8852 * NumericUpDown.cs: Add 2.0 stuffs.
8854 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8856 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
8858 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8860 * ErrorProvider.cs: Implement 2.0 stuffs.
8862 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8864 * DomainUpDown.cs: Implement 2.0 stuffs.
8866 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8868 * CheckedListBox.cs: Fix RefreshItems signature.
8870 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8872 * PictureBox.cs: Implement 2.0 stuffs.
8874 2007-06-12 Andreia Gaita <avidigal@novell.com>
8876 * TabControl.cs: Check if there are tabpages before checking
8877 the selected index - fix #81802 (font changes raise a ResizeTabs
8878 call on controls.add, which blew up nicely with no tabpages)
8880 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8883 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
8885 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8888 * ListViewItem.cs: In VirtualMode the selection information
8889 resides in the ListView, rather than in the Items. Also, throw
8890 InvalidOperationExceptions when VirtualMode is being used and
8891 CheckedItemCollection is accessed.
8893 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8895 * ComboBox.cs: Add ScaleControl.
8897 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8899 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
8901 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8903 * GroupBox.cs: Add 2.0 stuffs.
8905 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8907 * Panel.cs: Add autosize properties/event.
8909 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8912 - When we remove a control, remove it from the collection before performing the layout.
8913 - Setup an internal property for explicit_bounds.
8914 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
8915 - Perform a layout when we set a new AutoSizeMode.
8917 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8919 * ScrollableControl.cs: Add 2.0 stuffs.
8921 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8923 * ScrollBar.cs: Add 2.0 stuffs.
8925 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8927 * Splitter.cs: Add 2.0 stuffs.
8929 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8931 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
8932 to have BindingContext simply use base implementation.
8934 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8936 * ColumnHeader.cs: corcompare fix.
8938 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8940 * Button.cs: corcompare fixes.
8941 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
8943 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8945 * Button.cs: Override GetPreferredSizeCore.
8946 * ButtonBase.cs: PerformLayout after changing properties that can affect
8947 AutoSize. Simplify some mouse/keyboard code.
8948 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
8949 * MouseEventArgs.cs: Make Location internal for 1.1.
8950 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
8951 * Theme.cs: Add CalculateButtonAutoSize.
8952 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
8954 2007-06-05 Miguel de Icaza <miguel@novell.com>
8956 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
8958 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8960 * ListViewItem.cs: We can't cache Bounds in VirtualMode
8961 since we can get different item instances every time we retrieve it.
8963 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8965 * ListView.cs: Work around for #81602, since an unkown an pretty
8966 infrequent condition appears only in some systems (old linux boxes, it
8969 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8971 * Button.cs: Completely reformat and a little refactor to bring
8972 this closer to Mono circa 2007.
8974 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8976 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
8977 to be ButtonBase.Invalidate.
8979 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8981 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
8983 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8985 * ButtonBase.cs: Completely reformat and a little refactor to bring
8986 this closer to Mono circa 2007.
8988 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
8990 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
8991 values for autosize. Fixes #80137.
8993 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8995 * Control.cs: Don't perform layout when AutoSize changes.
8996 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
8997 directly when autosizing, use SetBounds with BoundsSpecified.None.
8998 Fixes unit tests my last commit broke.
9000 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9002 * Control.cs: Perform layout when AutoSize changes.
9003 * Form.cs: Implement AutoSizing.
9005 2007-06-01 Chris Toshok <toshok@ximian.com>
9007 * DataGrid.cs: remove the XXX'ed check at the top of
9008 ProcessGridKey. fixes #80464.
9010 2007-06-01 Chris Toshok <toshok@ximian.com>
9012 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
9013 adding idempotent (add/remove in Edit()), and also make sure we
9014 don't add it until after we set the text, so it's not tripped in
9015 Edit(). Fixes unit test regression.
9017 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9019 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
9020 change is user explicit, not when the layout engine moves stuff. Fixes
9021 anchoring to bottom and right. [Fixes bug #81790]
9023 2007-06-01 Andreia Gaita <avidigal@novell.com>
9025 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
9027 2007-06-01 Andreia Gaita <avidigal@novell.com>
9029 * ContainerControl.cs:
9030 Fire enter event for common ancestor if it is not a ContainerControl.
9031 Send focus to the active_control and not the 'value', the active
9032 control might have been changed in one of the events fired.
9033 Definitely fixes #80159.
9035 2007-06-01 Andreia Gaita <avidigal@novell.com>
9037 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
9039 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9041 * PropertyGrid.cs: Anchor the help description to the bottom of the
9042 help panel and refactor SelectGridItem into a
9043 SelectGridItemInternal that can be set to null (and update it to
9044 clear the help texts when it is set to null). Set root item to null
9045 when there's no SelectedObject. Fixes #80438.
9046 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
9047 when we're recalculating after a resize (only).
9049 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9051 * ListView.cs: Implement 2.0 RedrawItems method.
9053 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9055 * ListControl.cs: Disconnect PositionChanged and ItemChanged
9056 handlers from previous data manager when DataSource is set to
9059 2007-05-31 Jackson Harper <jackson@ximian.com>
9061 * TextBoxBase.cs: These seem to be the correct values.
9063 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
9065 * FileDialog.cs: When close dialog with ok set filterindex using combobox
9066 value. Fixes #81784.
9068 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
9070 * Control.cs: Implement 2.0 scaling methods.
9072 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9074 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
9075 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
9078 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9080 * ProgressBar.cs: Implemented missing 2.0 members.
9082 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9084 * Control.cs: Corcompare issues.
9085 * MessageBox.cs: Implemented missing 2.0 functions.
9087 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9089 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9090 Implemented more 2.0 members.
9092 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9094 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
9095 null (strange, but it seems to happen when running unit tests).
9097 2007-05-30 Andreia Gaita <avidigal@novell.com>
9099 * ContainerControl.cs: Set active_control even earlier, before
9100 firing any events, and undo it if validation returns false.
9102 2007-05-30 Andreia Gaita <avidigal@novell.com>
9104 * ContainerControl.cs: Raise Validation and Enter/Leave events
9105 even if there is no Form and set active_control earlier, just
9106 before firing Enter events (toshok's patches). Fixes #80647.
9108 2007-05-30 Jackson Harper <jackson@ximian.com>
9110 * TextControl.cs: Redid the pageup/pagedown a little to simplify
9111 things and fix bug #81311.
9113 2007-05-30 Jackson Harper <jackson@ximian.com>
9115 * X11Dnd.cs: Now that we have our own event loop, we need to
9116 cancel when we get a mouseup but it won't be accepted.
9118 2007-05-30 Chris Toshok <toshok@ximian.com>
9120 * DataGrid.cs (set_CurrentCell): guard against negative
9123 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
9124 array index syntax instead of looping over the property names.
9126 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
9127 and set IsInEditOrNavigateMode to false there.
9129 2007-05-30 Jackson Harper <jackson@ximian.com>
9131 * TreeView.cs: Make sure we don't get a bad visible order when
9132 setting to the top node. Fixes some misc crashing in
9135 2007-05-30 Andreia Gaita <avidigal@novell.com>
9137 * UserControl.cs: Add 2.0 AutoSizeMode
9139 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9141 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
9143 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9145 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
9146 lines. Fixes #80285.
9148 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9150 * DataGridColumnStyle.cs: Add char trimming column header text format.
9152 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9154 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
9157 2007-05-29 Jackson Harper <jackson@ximian.com>
9159 * TreeNode.cs: Fix off by one on calculating whether or not a node
9162 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
9164 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
9165 * ScrollableControl.cs: Force an UpdateDistances when we move the
9169 2007-05-29 Andreia Gaita <avidigal@novell.com>
9171 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
9172 update the page setup screen.
9174 2007-05-29 Andreia Gaita <avidigal@novell.com>
9176 * PageSetupDialog.cs: Fix landscape mode.
9178 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9180 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
9181 IconSizeHorizontalSpacing.
9183 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9185 * ListView.cs: The declaration of prev_tooltip_item should be inside
9186 a NET_2_0 conditional (avoid a warning).
9188 2007-05-28 Andreia Gaita <avidigal@novell.com>
9190 * PageSetupDialog.cs: Implement PrintPreview control to display
9191 the preview thumbnail. Change unit conversion to use
9192 PrinterUnitConvert methods.
9194 Note: there is a huge bug in ms.net where the default margins are
9195 interpreted as centimeters (?), when in fact they are set in inches. When
9196 loading the page setup dialog initially (ms.net), the default margins
9197 are set to 1 inch, and the dialog shows them with value 10, when in fact
9198 it should be 25 (properly converted). Our dialog doesn't have this bug.
9200 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
9202 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
9204 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9207 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
9210 2007-05-28 Andreia Gaita <avidigal@novell.com>
9212 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
9213 an IntPtr on csc (it builds fine on mcs, could it be a compiler
9214 bug?), convert the ptr to Int32 first.
9216 2007-05-28 Jackson Harper <jackson@ximian.com>
9218 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
9219 recieved, we will exit the dnd tracking loop.
9221 2007-05-28 Jackson Harper <jackson@ximian.com>
9223 * X11Dnd.cs: Keep tracking until the xdnd finished event is
9224 recieved. TODO: I should probably stick a timer on the dropped
9225 event, and finish the drag if the XDND Finished event never shows
9226 (because some apps don't seem to send it).
9228 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
9230 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
9233 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9235 * MonthCalendar.cs: Only mark the keypresses we actually handle as
9238 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9240 * MonthCalendar.cs: Set the size after initializing all the relevant
9241 variables. Fixes #81742.
9243 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9245 * KeyEventArgs.cs: Fix typo.
9247 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
9249 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
9250 to match MS. Fixed MinDate to only accept value less than or equal
9251 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
9252 Removed TODO's that are now verified by unit tests.
9254 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
9256 * TreeNodeCollection.cs: Minor corrections to exceptions to match
9259 2007-05-25 Jackson Harper <jackson@ximian.com>
9261 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
9262 it's own message loop.
9263 * XplatUIX11.cs: Remove some of the dnd hooks
9265 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
9267 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
9268 instead of MinimizedWindowSize.
9270 2007-05-25 Jackson Harper <jackson@ximian.com>
9272 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
9274 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9276 * KeyEventArgs.cs: Added SuppressKeyPress.
9277 * Control.cs: Added support for SuppressKeyPress.
9279 2007-05-24 Andreia Gaita <avidigal@novell.com>
9281 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
9282 problems with PieChart. suppress_validation should not be a counter,
9283 if there are several BeginInit calls, the first EndInit will
9284 activate validation. Fix exceptions thrown by set_Value.
9285 * UpDownBase.cs: ValidateText only if it's the user editing it.
9287 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9289 * ListControl.cs: FilterItemOnProperty should return the filtered
9290 item proeprty even if DataSource is null. The same applies for
9291 GetItemText. Fixes #80427.
9293 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9295 * Control.cs: If a control doesn't have a parent when it's Dock is
9296 set, but it has children, it needs to do a layout. Fixes some nested
9297 controls issues. [Fixes bug #81199]
9299 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9301 * ComboBox.cs: If there are few items in the drop down list, make it
9302 the exact size the items need, no bigger. Fixes #81612.
9304 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9306 * Application.cs: When we have captured the keyboard for a menu,
9307 check for mouse down events in case we need to close the menu.
9308 * Control.cs, Form.cs: Remove mouse down checks for menus.
9310 2007-05-24 Jackson Harper <jackson@ximian.com>
9312 * TextControl.cs: Handle tabs in non multiline mode a little
9315 2007-05-24 Jackson Harper <jackson@ximian.com>
9317 * TextControl.cs: We need to manually break apart tabbed text and
9318 move the tabs, since the system.drawing tabbing mechanism relies
9320 * TextBoxBase.cs: Move the caret properly when the user enters a
9323 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9325 * ContainerControl.cs: Don't check CanSelect before calling
9327 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
9328 release a KeyboardActive on click if it's not ours.
9330 2007-05-23 Andreia Gaita <avidigal@novell.com>
9332 * ColumnHeader.cs: Add TypeConverter
9334 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9336 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
9338 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9340 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
9342 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9344 * LinkLabel.cs: Implement public Padding property.
9346 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9348 * LinkLabel.cs: Implement public FlatStyle.
9350 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
9352 * Control.cs: Apply patch from George to call parent.PerformLayout
9353 when Visible is changed. [Fixes bugs #81118, 81718]
9355 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9357 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
9359 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9361 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
9363 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9365 * ContextMenu.cs: Implement Collapse.
9367 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9369 * ToolBarButton.cs: Implement Name.
9371 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
9373 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
9374 use current_item, it prevents some NRE. Fixes #81675.
9376 2007-05-22 Andreia Gaita <avidigal@novell.com>
9378 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
9379 without updating the text.
9381 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
9383 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
9384 without calling DeleteObject. [Should fix bug #81709]
9386 2007-05-22 Jackson Harper <jackson@ximian.com>
9388 * RichTextBox.cs: Set the line endings correctly, when flushing
9391 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
9393 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
9396 2007-05-22 Jackson Harper <jackson@ximian.com>
9398 * TreeView.cs: Setting top with a null node should set to the very
9401 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9403 * Form.cs: ShowDialog: destroy the handle when message loop is
9404 finished, matches MS behaviour. Refactor parts of WmClose into
9405 RaiseCloseEvents, that only raises events if they haven't already
9406 been raised. Fixes #81688 and #81521.
9407 * Application.cs: Don't call close on the form when exiting a modal
9408 loop, it will raise all the (Form)Closed/Closing events again if
9409 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
9410 which doesn'r raise any events it they have been raised before.
9412 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
9414 * Control.cs: Add OnPrint.
9415 * ToolStrip.cs: Add GetChildAtPoint.
9416 * ToolStripContainer.cs: Add OnRightToLeftChanged.
9417 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
9419 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
9421 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
9423 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9425 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
9426 isn't visible anymore. Fixes #81651.
9428 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9430 * Control.cs: WmShowWindow: Update children's z-order after setting
9431 their parent. SetParent may show the window, thereby corrupting
9432 z-order, since the window will be shown on top.
9433 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
9434 multiple (and redundant) WM_SHOWWINDOW messages.
9435 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
9436 event has already been raised.
9437 * Form.cs: Change is_changing_visible_state to a counter, since
9438 SetVisibleCore can be called recursively. CreateHandle: when
9439 creating mdi children, send (De)Activated events.
9440 * MdiClient.cs: Update use of is_changing_visible_state.
9441 * Application.cs: OnThreadException: Surround exception handling with
9442 try/finally to ensure we always reset the error-handling state
9445 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9447 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
9450 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9452 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
9453 SmallIcon views, now that we have a standarized horizontal spacing.
9455 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
9456 4, just like the other views (Match .Net).
9458 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
9460 * Control.cs: Delay calculating anchor distances until we actually layout.
9461 Always query the WM for the actual size and location it put us at instead of
9462 only when we send negative values.
9463 [Fixes bugs #81694, 81695]
9465 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9467 * Application.cs: Avoid a possible stack overflow when trying to exit
9470 2007-05-19 Marek Safar <marek.safar@gmail.com>
9472 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
9475 2007-05-19 Andreia Gaita <avidigal@novell.com>
9477 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
9478 * NumericUpDownAcceleration.cs,
9479 NumericUpDownAccelerationCollection.cs: Added 2.0
9482 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
9484 * RichTextBox.cs: Recalculate the document after the ScrollBars
9485 property is changed. Fixes bug #81681.
9487 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
9489 * DataObject.cs: Implement 2.0 methods.
9491 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9493 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
9494 in the center of the checkbox, not in the left-top corner.
9497 2007-05-18 Jackson Harper <jackson@ximian.com>
9499 * RichTextBox.cs: Recalculate the document after the scrollbars
9500 property is changed.
9501 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
9504 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9506 * CreateParams.cs: Make HasWindowManager marginally faster.
9507 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
9508 into Hwnd so that other drivers can use it as well.
9509 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
9510 the default location from Hwnd. Fixes MDI client windows always
9511 showing up at (0,0) in Windows (Win32 won't set the default
9512 location since the window styles aren't correct).
9514 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
9516 * TreeView.cs: Modified DoubleBuffered to just use the base
9519 2007-05-18 Jackson Harper <jackson@ximian.com>
9521 * TreeView.cs: Set the top node to the last child node when
9523 - When we get focus, if there is no selected node, use the top
9526 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
9528 * KeysConverter.cs: Add CanConvertTo.
9529 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
9530 * LinkConverter.cs: Added.
9532 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9534 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
9535 it prevents error when file dont have write access. Fixes #81669 and #81667.
9537 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9539 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
9540 button text. Fixes #79640.
9542 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9544 * Control.cs: According to MSDN controls created in the designer theres
9545 keyboard accelerators visible by default. So included check for design
9546 in ShowKeyboardCuesInternal.
9548 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9550 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
9553 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9555 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
9556 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
9558 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9560 * Control.cs: Finish implementation of UI State using WmChangeUIState
9561 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
9562 in some controls to check for show_keyboard_cues to draw accell keys "_".
9564 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9566 * ListBox.cs: When calculating the horizontal scrollbar
9567 in single column mode, don't use values less than 0 for
9568 Maximum. Fixes #81474.
9570 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9572 * ListBox.cs: Throw the some missing exceptions in
9573 ListBox.ObjectCollection methods.
9575 2007-05-17 Jackson Harper <jackson@ximian.com>
9577 * TextBoxBase.cs: Recalculate the document when the word wrap
9578 value has changed. This fixes 81488.
9580 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9582 * Clipboard.cs: Implement missing GetText overload.
9584 2007-05-17 Chris Toshok <toshok@ximian.com>
9586 * Control.cs (CheckDataBindings): remove the binding_context arg
9589 * CurrencyManager.cs (OnItemChanged): fix this now that
9590 BindingManagerBase is fixed. also remove the comment telling where
9591 the fix should go. We set transfering_data to true/false around
9592 the call to PushData to keep UpdateIsBinding from being called.
9593 (ListChangedHandler): remove the extra OnMetaDataChanged call for
9594 PropertyDescriptorAdded in the 1.1 case. The extra call is
9595 actually generated by System.Data generating 2 metadata changed
9596 events of its own per column add. The fix should go there. Add a
9597 comment to that affect in our test's Assert.Ignore.
9599 * BindingManagerBase.cs: Rework PullData and PushData slightly.
9600 we keep a boolean flag (transfering_data) that keeps us from
9601 calling UpdateIsBinding multiple times if we re-enter either of
9604 * ControlBindingsCollection.cs (AddCore): remove the
9605 binding_context arg to binding.Check.
9607 * Binding.cs (IsBinding): don't check if we're binding here, just
9608 return our cached value. we update it in UpdateIsBinding.
9609 (Check): don't take the binding_context arg, we'll just use our
9610 control's. Also, for some reason MS doesn't use the data member
9611 field when getting the bindingmanager for this binding. it just
9612 uses the datasource. Make this method callable multiple times,
9613 and only do the is_null_desc stuff if manager.Position != -1 (so
9614 we don't get an exception accessing manager.Current).
9615 (UpdateIsBinding): move the code from IsBinding here.
9616 (PositionChangedHandler): call Check here to we can initialize
9617 things that require a non- -1 position.
9619 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9621 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
9624 2007-05-17 Andreia Gaita <avidigal@novell.com>
9626 * TabControl.cs: Add 2.0 methods and events, including
9627 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
9628 * TabPage.cs: Add 2.0 methods
9630 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9632 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
9633 keyboard_cues is properly handled by message method.
9635 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9637 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
9639 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9641 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
9643 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
9646 - WmUpdateUIState added to handle state changes, it make call to
9647 OnChangeUICues event.
9648 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
9651 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
9653 * ImageKeyConverter.cs: Added.
9654 * TreeViewImageKeyConverter.cs: Added.
9656 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9658 * ToolTips.cs: Update Text if SetToolTip is called for a control
9659 already showing the tooltip, as well as restarting its timer; show
9660 tooltip if we are inside the control bounds by the time of calling
9661 SetToolTip. Inside ShowTooltip remove the check to not show the
9662 tooltip again for the active control (it is allowed by .Net to
9663 show the tooltip on the same control multiple times).
9665 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9667 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9669 2007-05-16 Andreia Gaita <avidigal@novell.com>
9671 * ContainerControl.cs: only process tab key if there are no
9672 modifier keys present, otherwise the control does the
9673 tab processing, if it needs to. Fixes #81622
9674 * TabControl.cs: Fixes calculation for which tab to select on
9677 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9679 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9681 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
9683 * Control.cs: Make IsInputCharInternal to allow controls to
9684 override it and still match MS API.
9685 * TextBoxBase.cs: Override IsInputCharInternal and always
9689 2007-05-15 Jackson Harper <jackson@ximian.com>
9691 * TextBox.cs: Disable some of the menu options when using a
9694 2007-05-15 Jackson Harper <jackson@ximian.com>
9698 * RichTextBox.cs: Some new 2.0 methods
9700 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
9702 * FileDialog.cs: On 1.0 profile, do not support multidotted
9705 2007-05-14 Jackson Harper <jackson@ximian.com>
9707 * TextBoxBase.cs: Implement some of the new 2.0 methods.
9708 * RichTextBox.cs: We need to override these methods on 2.0.
9709 * MaskedTextBox.cs: These are implemented now
9710 * TextControl.cs: This was off by one.
9712 2007-05-14 Jackson Harper <jackson@ximian.com>
9714 * TextControl.cs: Because the line endings are including in the
9715 text, we don't need to add them in anymore.
9717 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9719 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
9720 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
9722 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9724 * ToolBar.cs: Adjust size to default size when button theres no text and
9725 image, it fixes remaining issues from #81524.
9727 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9730 - When not flat call redraw to recalculate sizes on creare handle to match
9732 - Revert 77220 because it causes some regressions in toobar
9735 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9737 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
9738 now actually enters a usable state.
9740 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9742 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
9743 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
9746 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9748 * ToolBar.cs: Save default_size on create handle to use later for buttons
9749 without text, needed to mimic win32 behavior.
9751 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9753 * ToolBar.cs: Fix button layour to best fit width or height according to
9754 vertical or not. Fixes #81524.
9756 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9758 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
9759 toolbar size info because different styles theres different sizes.
9762 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9764 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
9765 if we are using checkboxes, checked is true, and we have less
9766 than two images in StateImageList; for the 1.1 in the same scenario
9767 draw the first image if we have at least one image in StateImageList.
9768 Fixes part of #81191.
9770 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9772 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
9773 the owner's Items collection on merge.
9775 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9777 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
9778 * ToolStripItemCollection.cs: Lots of fixes to when events get called
9779 and parent/owner gets changed based on gert's unit tests.
9781 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9783 * MaskedTextBox.cs: Started implementing parts of it.
9785 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9787 * ListView.cs: When clicking the checkbox on the items
9788 take into account the double clicks even if we have only
9789 one image in StateImageList (only for 1.0/1.1). Also
9790 generate an extra change of checked state when we receive
9791 the second click on checkbox (match .Net behaviour).
9792 Fixes part of #81191.
9794 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9796 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
9798 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9800 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
9801 even if OnLoad is overriden and base.OnLoad is not called.
9804 2007-05-10 Andreia Gaita <avidigal@novell.com>
9806 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
9807 shame. (I blame my ever-persisting and annoying cold)
9809 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9811 * ListView.cs: Don't eat navigation keys. Let them flow through to
9812 KeyDown/KeyPress routines. [Fixes bug #81569]
9814 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9816 * ListView.cs: When handling keys for selecting the item based off
9817 keyboard input, do not consider keys pressed with Alt or Control. Also,
9818 correctly handle keys when the Shift key is down. [Fixes bug #81578]
9820 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9822 * Control.cs: When using UseWaitCursor, we have to store the requested
9823 Cursor to use when UseWaitCursor is turned off.
9825 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9827 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
9829 * Application.cs: Use PreProcessControlMessage instead of
9831 * PreProcessControlMessage.cs: Make internal for 1.1.
9833 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9835 * Control.cs: Add InternalContains focus property, which hast the same
9836 functionality of ContainsFocus, but also including implicit controls.
9837 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
9838 since we need to know if the focus is contained in our implicit
9839 ItemControl when calculating Layout. Fixes part of #80888.
9841 2007-05-08 Everaldo Canuto <everaldo@simios.org>
9843 * ToolTip.cs: Remove center form string alignment as it must be align to
9846 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
9848 * ToolStripItemCollection.cs: Set the new item's parent and owner
9849 in Insert like we do in Add. [Fixes bug #81568]
9851 2007-05-08 Jackson Harper <jackson@ximian.com>
9853 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
9854 - Off by one error in SetTop
9855 - Disable DoubeBuffering
9857 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9859 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
9860 control as much as necessary in order to make it entirely visible,
9861 instead of centering the control in the container (matches MS
9862 behaviour). CalculateCanvasSize: we need to take the current scroll
9863 position into account when calculating the maximum canvas,
9864 otherwise the following scenario will fail: resize so that the
9865 scrollbars appear, use the scrollbars to scroll, resize again
9866 smaller, and now the canvas size is too small. Recalculate: when
9867 showing scrollbars make sure they start off at 0, and try to scroll
9868 the active control into view. Fixes #79540. HandleScrollBar: don't
9869 scroll anywhere if the scrollbar isn't visible.
9871 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9873 * ListView.cs: When focus changed, call Layout/Invalidate
9874 in the focused item to update the selected state (should show
9875 entire label when ListView is focused, and a part of it if is not).
9876 * ListViewItem.cs: When doing layout for LargeIcon, take into account
9877 for displaying the entire label not only the Focused state of the
9878 item, but also the Focused state of the ListView (match .Net
9881 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9883 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
9884 Implement UseWaitCursor.
9886 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9887 Applying contributed patch from Sergey Volk.
9889 * Clipboard.cs: Implement SetDataObject retry logic and new overload
9891 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
9893 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9895 * Control.cs: Implement DrawToBitmap.
9897 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9898 Applying contributed patch from Stefan Noack.
9900 * Control.cs: Add [Get|Set]AutoSizeMode.
9902 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9904 * MdiClient.cs: Unmerge menus when the last child is closed.
9906 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9908 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
9909 * ToolStripManager.cs: Call Merge on DropDowns.
9912 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9914 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
9916 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
9917 visibility. We can't create forms visible, since we have to set the
9918 owner before making the form visible (otherwise Win32 will do
9919 strange things with task bar icons). The problem is that we set the
9920 internal is_visible to true before creating the control, so
9921 is_changing_visible_state is the only way of determining if we're
9922 in the process of creating the form due to setting Visible=true -
9923 this works because SetVisibleCore explicitly makes the form
9924 visibile afterwards anyways. Fixes #80775.
9926 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9928 * ThemeWin32Classic.cs: When drawing ListViewItems,
9929 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
9930 or LargeIcon _and_ item is not focused (match .Net behaviour).
9932 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9934 * Control.cs, Form.cs: Fix some obsolete method warnings.
9936 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9938 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
9939 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
9941 2007-05-04 Andreia Gaita <avidigal@novell.com>
9943 * ContainerControl.cs: Fix active_control attribution when going
9944 up the parent chain so that the first parent container gets the control
9945 and the rest of the parent containers get the child containers (skips
9946 non-containers). Fixes #80729
9948 2007-05-04 Randolph Chung <tausq@debian.org>
9950 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
9953 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9955 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
9956 takes a size parameter, since the CreateParam's size isn't true for
9957 minimized forms. Fixes #81518,
9959 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9961 * Form.cs: Add OnDeactivateInternal.
9962 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
9964 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9966 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
9967 accessing the parent. Fixes #81508.
9969 2007-05-03 Chris Toshok <toshok@ximian.com>
9971 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
9972 2.0 block, pass listposition + 1 to ChangeRecordState when a row
9973 was added before the current listposition. Fixes the
9974 TestInsertRowBeforeCurrent unit test.
9976 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
9978 * Application.cs: Add RaiseIdle.
9979 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9980 XplatUIX11.cs: Implement RaiseIdle.
9982 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
9983 corcompare work: N - Z
9987 * ScrollableControl.cs
9991 * SystemInformation.cs
9993 * TableLayoutControlCollection.cs
9994 * TableLayoutPanel.cs
9999 * ToolStripComboBox.cs
10000 * ToolStripContainer.cs
10001 * ToolStripContentPanel.cs
10002 * ToolStripDropDown.cs
10003 * ToolStripDropDownItem.cs
10004 * ToolStripDropDownMenu.cs
10006 * ToolStripItemCollection.cs
10007 * ToolStripMenuItem.cs
10008 * ToolStripPanel.cs
10009 * ToolStripSplitButton.cs
10012 * TreeNodeCollection.cs
10013 * TreeNodeMouseHoverEventArgs.cs
10016 2007-05-01 Everaldo Canuto <everaldo@simios.org>
10018 * ContextMenu.cs: Add public method Show with alignment property to 2.0
10019 stuff. Thanks aatdark for the patch.
10021 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10023 * GridItem.cs: Implement 2.0 Tag property.
10025 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
10027 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
10028 count instead of Nodes.Length. [Fixes bug #81448]
10030 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10032 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
10035 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10036 corcompare work: A - M
10037 * BindingNavigator.cs
10042 * FlowLayoutPanel.cs
10048 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10050 * Application.cs: Give toolstrips a chance to process mnemonics.
10051 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
10052 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
10053 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
10055 2007-05-01 Jackson Harper <jackson@ximian.com>
10057 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
10059 - Don't set the BoundsSpecified
10061 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10063 * Application.cs: When using the toolstrip shortcut mechanism, allow the
10064 message to pass through to a regular control if it hosted by a toolstrip.
10065 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10066 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
10068 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10070 * TextRenderer.cs: Use the flags argument when using the MeasureString
10071 fallback algorithm.
10073 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10075 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
10076 the MDI menu item. [Fixes bug #81483]
10078 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
10080 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
10081 string. When setting Name to null, use zero-length string instead.
10083 2007-04-29 Andreia Gaita <avidigal@novell.com>
10085 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
10086 DeselectTab). Implement missing 2.0 TabPageCollection methods
10087 (Add, ContainsKey, RemoveByKey, IndexOfKey)
10089 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
10091 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
10093 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
10095 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
10096 Fixes bug #81479. Include details of exception when LoadFile fails.
10098 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
10100 * DrawListViewSubItemEventArgs.cs: Added missing setter
10102 2007-04-27 Andreia Gaita <avidigal@novell.com>
10104 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
10105 Hide methods (not complete). Implement missing 2.0 OnPopup event.
10107 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10109 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
10110 removed in ly last commit (it was breaking the Label edit feature).
10112 * ThemeWin32Classic.cs: When drawing a ListViewItem use
10113 StringAlignment.Near for LineAlignment (match .Net).
10115 2007-04-27 Andreia Gaita <avidigal@novell.com>
10117 * TabControl.cs: Change SetTab so it adds the tabpage to the list
10118 of controls if it isn't already there - was blowing up when doing
10119 tabcontrol.TabPages[i]=new TabPage().
10120 SetTab now does a replace by removing the page at the index.
10121 Add a new InsertTab method that inserts a page in a given index
10122 instead of replacing.
10123 Implements TabPageCollection.Insert(int, TabPage).
10125 2007-04-27 Chris Toshok <toshok@ximian.com>
10127 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
10128 internal handler that can be invoked from our subclasses.) Also,
10129 add a comment to PushData about how we need to fix it.
10131 * CurrencyManager.cs: tons of changes here. trying to get things
10132 matching the behavior of .net wrt event orders (ItemChanged,
10133 CurrentChanged, PositionChanged.) I've implemented a private .net
10134 symbol (ChangeRecordState) that appears in stack traces because
10135 it's actually easier to do this than to effective inline all its
10136 various behaviors at every call site.
10138 * RelatedPropertyManager.cs: guard against an exception here by
10139 not using parent.Current if the position is set to -1 (if the
10140 parent datasource is cleared, for instance).
10142 * Binding.cs: don't parse data in PushData (this might be wrong,
10143 but it jives with MS's behavior.) Also, don't call PushData when
10144 we get a CurrentChanged event.
10146 2007-04-27 Andreia Gaita <avidigal@novell.com>
10150 WebBrowserSiteBase.cs,
10151 HtmlDocument.cs: Added stubbed out classes, no real implementations
10154 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10156 * MainMenu.cs: In draw method without parameters call draw method with
10157 PaintEvent, another one (just rect) adjust rectangle and we dont need it
10158 as Rect property is already adjusted. Fixes #80694.
10160 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
10162 * Application.cs: Need to handle keyboard menu deselection here.
10163 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
10164 navigation, allowing keyboard to work on X11.
10165 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
10167 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10169 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
10170 menu bar. It fixes some drawing issues in menu bar.
10172 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10174 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
10175 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
10176 when <alt> key is pressed.
10178 2007-04-26 Everaldo Canuto <everaldo@simios.org>
10180 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
10181 example just set visible to false and make this prevent from other problems.
10182 In SystrayAdd always remove pending expose. Fixes #81072.
10184 2007-04-26 Marek Safar <marek.safar@gmail.com>
10186 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
10189 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10191 * ListView.cs: Added three missing 2.0 events and corresponding
10192 EventHandlers. Added the OwnerDraw property.
10193 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
10195 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10197 * DrawListViewItemEventArgs.cs
10198 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
10200 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10202 * TextControl.cs: Fixed typo in constructor
10204 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
10206 * Application.cs: Create a shortcut path so that currently selected
10207 MenuStrips can intercept keyboard events without having focus.
10208 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
10209 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
10210 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
10211 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
10212 generate WM_SYSCOMMAND message in X11 for other platforms.
10213 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
10214 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
10215 * ToolStripSplitButton.cs: Add DefaultItem property.
10217 2007-04-26 Everaldo Canuto <everaldo@simios.org>
10219 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
10220 fixes some menu draw problem on Windows with border diferent from default
10221 it also fixes #81403.
10223 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10225 * Form.cs: Refactor WndProc into separate methods, just like Control is
10228 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10230 * Control.cs: set_Text: move the call to the driver into a seperate
10231 virtual method so that Form can override it.
10232 * MaskedTextBox.cs: Corcompare fixes.
10233 * Form.cs: Override UpdateWindowText and only update the styles if the
10234 form has been shown (fixes #81405).
10236 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10238 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
10239 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
10240 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
10241 the form lost focus or another control was clicked.
10243 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
10245 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
10248 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10250 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
10251 DrawListViewItemEventHandler.cs,
10252 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
10254 * X11Structs.cs: More ToString implementation.
10256 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10258 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
10259 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
10261 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10263 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
10265 * FormCollection.cs: Don't add a form if it's already in the
10267 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
10268 according to behaviour and MSDN. The ownerWin32 is the active
10269 window at the moment when we call ShowDialog, not the context's
10270 main form (the context's main form may open another form that opens
10271 a form with ShowDialog, the win32 owner is the second form). Add
10272 and remove forms to the Application.OpenForms in other places to
10273 better match MS behaviour. Add an IsActive property that raises
10274 On(de)Activated only if the active state has changed (we were
10275 raising OnDeactivated before OnActivated while creating forms).
10276 * Application.cs: Refactor Enabling/Disabling of windows for modal
10277 dialog loops out to separate methods, and restore the thread
10278 context when we quit the method. Fixes #81407.
10280 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10282 * ListView.cs: In ItemControl.HandleClicks, also fire
10283 2.0 MouseClick or MouseDoubleClick events on the parent,
10284 not only the Click/DoubleClick events.
10286 2007-04-24 Andreia Gaita <avidigal@novell.com>
10288 * TableLayoutSettings.cs:
10289 - Added a GetControls method and a support structure to help the
10290 TypeConverter to enumerate the controls for serialization.
10291 - Added a new serialization constructor.
10292 - Added a isSerialized flag initialized to true on the
10293 serialization constructor so that the TableLayoutPanel.LayoutSettings
10294 setter does not throw the designed NotSupportedOperation exception
10295 when the object is built through deserialization.
10296 - Implemented GetObjectData
10298 * TableLayoutPanel.cs: Added check on LayoutSettings.
10300 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10302 * ListView.cs: Report Click and DoubleClick events to the parent
10303 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
10304 from breaking the click count state when using dialog forms (Control
10305 reports the clicks in a similar fashion). In the previous behaviour
10306 the last WM_LBUTTONUP message in a double click was sent to the
10307 ListView's form, instead of the ListView, which was breaking the click
10308 count for it. Fixes #80387.
10310 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
10312 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
10314 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
10316 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
10317 us from created dropdowns for menu items that do not have subitems.
10318 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
10319 Check HasDropDownItems before calling DropDown so a dropdown will not be
10320 created if it isn't needed.
10322 2007-04-24 Jackson Harper <jackson@ximian.com>
10324 * TreeView.cs: Set the first node to the selected node when we get
10325 focus if there is no selected node.
10327 2007-04-24 Andreia Gaita <avidigal@novell.com>
10329 * MimeIcon.cs: remove using blocks so that image streams are
10330 not disposed of. Fixes #80151
10332 2007-04-24 Jackson Harper <jackson@ximian.com>
10334 * TextBoxBase.cs: Fixup the height of textboxes when the control
10337 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
10339 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
10340 for each ToolStripItem when the parent's RightToLeftChanged is called.
10342 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10344 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
10346 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
10347 property, so that the setter can be overriden too.
10348 * TextBox.cs: Change GetContextMenuInternal() to use
10349 ContextMenuInternal.
10351 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10353 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10356 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10358 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10361 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10363 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
10364 avoid duplicate work. Mostily skeleton code, it's not working at
10367 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
10369 * NotifyIcon.cs : stub for MouseClick event
10370 * Application.cs: stub for SetUnhandledExceptionMode
10372 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
10374 * BindingNavigator.cs : Initial (partial) implementation
10376 2007-04-23 Jackson Harper <jackson@ximian.com>
10378 * TreeView.cs: Do not create the treeview's handle when setting
10379 the scroll position.
10380 - ExpandAll needs to compute the scrollbars so it knows which
10381 position to set the bar too.
10383 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
10385 2007-04-23 Jackson Harper <jackson@ximian.com>
10387 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
10390 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
10392 * ToolStripItem.cs: Make GetImageSize internal.
10393 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
10394 need to draw an item. Fixes a reported issue where images on menus
10395 that were not 16x16 were drawing incorrectly.
10397 2007-04-21 Miguel de Icaza <miguel@novell.com>
10399 * Padding.cs: Use the converter, fixes the resgen2 issue with
10402 2007-04-21 Jackson Harper <jackson@ximian.com>
10404 * TreeView.cs: Dont try to unhighlight the selected node if there
10405 isn't a selected node.
10407 2007-04-21 Jackson Harper <jackson@ximian.com>
10413 * TreeView.cs: Use the InternalBorderStyle property to set the
10414 initial border style, this forces the client rectangle to be sized
10417 2007-04-20 Jackson Harper <jackson@ximian.com>
10419 * TreeView.cs: Simplify scrolling to the last node after expanding
10421 - Fix some off by ones with setting the bottom.
10423 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
10425 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
10426 that. We were incorrectly doing it the other way around. Also,
10427 update ClientSize if we change the BorderStyle before the control
10430 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
10432 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
10433 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
10434 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
10435 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
10436 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
10437 Caption to CaptionHeight.
10438 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
10439 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
10440 and FixedFrameBorderSize to return value from current XplatUI driver.
10441 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
10442 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
10443 and FixedFrameBorderSize using win32 API. Renamed Caption to
10445 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
10446 * SystemInformation.cs: Fixed typo in BorderSize.
10448 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
10450 * XplatUI.cs: Added MenuAccessKeysUnderlined.
10451 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
10452 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
10454 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
10455 value from XplatUI driver.
10456 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
10457 SystemParametersInfo.
10458 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
10460 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
10463 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10465 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
10467 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10469 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
10471 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
10473 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
10474 MenuStrips that contain ToolStripSeparators.
10476 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10478 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
10479 DefineStdCursorBitmap.
10480 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
10481 has been created off a standard cursor. This is used to get a
10482 bitmap of the standard cursor when Draw or DrawStretched is called
10483 in order to draw the cursor.
10484 * X11Structs.cs: Added XcursorImage and XcursorImages.
10485 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
10486 DefineStdCursorBitmap.
10487 * Cursors.cs: Update all relevant creations of Cursor to use the new
10488 internal constructor.
10490 2007-04-19 Jackson Harper <jackson@ximian.com>
10492 * TextBox.cs: Move the has_been_focused into the base control, so
10493 some of the text adding methods can manipulate it (probably time
10494 for a better name for this flag too).
10495 - Call a new version of selectall that doesn't scroll
10496 * TextBoxBase.cs: When we append text, if the document is empty,
10497 don't scroll. If the document has text already, we scroll to the
10498 end of the appended text.
10499 - When the text is changed, we reset the has_been_focused, so the
10500 next time the control gets focused, all the text is selected.
10502 2007-04-19 Jackson Harper <jackson@ximian.com>
10504 * TextControl.cs: Move the margins to the document, add a method
10505 so the margin sizes can be updated.
10506 * TextBoxBase.cs: When the border style is changed, update the
10509 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
10511 * Control.cs: Respect DefaultPadding.
10512 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
10513 padding into account.
10514 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
10516 2007-04-19 Jackson Harper <jackson@ximian.com>
10518 * TextControl.cs: Oops, we need to use the ClientRect not the
10521 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10523 * ListView.cs: In ItemControl.ItemsMouseDown, take into
10524 account the double clicks when CheckBoxes are used and
10525 the pointer is inside the checkbox. Fixes part of #81191.
10527 2007-04-18 Jackson Harper <jackson@ximian.com>
10529 * TextControl.cs: Pressing the end key shouldn't move the caret
10530 past the line ending.
10531 * TextBoxBase.cs: We can still delete if we are in the line
10532 ending and the combine will just kill the existing line ending.
10534 2007-04-18 Jackson Harper <jackson@ximian.com>
10536 * TextControl.cs: We can't move lines, then invalidate their
10537 bounds, we need to get the old bounds and combine that with the
10539 * TextBoxBase.cs: Before combining two lines for a delete, we need
10540 to invalidate the area of the old line, since that will be moved
10541 in the combine operation.
10543 2007-04-18 Everaldo Canuto <everaldo@simios.org>
10545 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
10546 with transparent background. Fixes #80482.
10548 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
10550 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
10551 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
10554 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10556 * CreateParams.cs: Add a couple of helper methods and do a less string
10557 concatenation in ToString.
10558 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
10559 overload that takes a Control parameter, since this method may be
10560 called before a control is assigned to the hwnd (from
10561 CreateWindow), and update CreateWindow to use the new overload. In
10562 GetMenuOrigin subtract the title bar from the y position if the
10563 form has a window manager (since we're painting it and not X).
10564 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
10565 CreateParams to calculate the origin (since border sizes may vary).
10566 In ScreenToMenu only subtract the title height if we actually have
10568 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
10569 mdi children never have menus of themselves.
10570 * InternalWindowManager.cs: Implement menu handling like form does.
10571 Added GetMenuOrigin to calculate the menu origin, can't use the
10572 CreateParams from the form like normally since it's lying.
10573 * Hwnd.cs: Implement GetBorderSize better (in the sense more
10574 windows-like) and add Inflate and comparison operators to the
10575 Borders type. When calculating MenuOrigin and it's a form with a
10576 window manager, use the window manager to calculate it.
10578 2007-04-17 Chris Toshok <toshok@ximian.com>
10580 * Control.cs (CreateControl): turns out in 2.0 we don't need this
10581 OnBindingContextChanged thing here. It's only generated from
10582 ContainerControl.OnCreateControl. Fixes a newly written unit test
10583 - BindingTest.BindingContextChangedTest4.
10585 2007-04-17 Jackson Harper <jackson@ximian.com>
10587 * ScrollBar.cs: When setting values, make sure the current
10588 position stays within the new values range.
10590 2007-04-17 Chris Toshok <toshok@ximian.com>
10592 * Control.cs (CreateControl): talk about a bizarre corner case.
10593 Don't emit OnBindingContextChanged here if we're a parentless
10594 control (i.e. if we're a form.). Fixes
10595 BindingTest.BindingContextChangedTest2.
10597 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10599 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
10600 from win32. Fixes #81255.
10602 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10604 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
10605 already present in CalculateButtonTextAndImageLayout.
10607 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10609 * XplatUIX11.cs: When setting min/max size for a window we need to
10610 translate the coordinates to x coordinates. Create an overload of
10611 SetWindowMinMax that takes a CreateParams handling this, and change
10612 SetWMStyles to call this function (can't use Control.FromHandle in
10613 the SetWindowMinMax to get the control/CreateParams from the handle
10614 because the handle might not have been assigned to the control
10615 yet). Fixes #81371.
10617 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10619 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
10620 if StateImageList is non-null and it has less than two items (match MS
10621 behaviour). Also, in HandleNavKeys handle the Space key, calling
10622 the new ToggleItemsCheckState method, which tries to change the
10623 checked state of the selected items. Fixes part of #81191.
10625 2007-04-16 Jackson Harper <jackson@ximian.com>
10627 * RichTextBox.cs: namespace cleanup.
10629 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10631 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
10633 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10636 * Control.cs: Call invalidate in set_Region.
10638 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
10639 it dont works here.
10641 2007-04-16 Jackson Harper <jackson@ximian.com>
10643 * TextBoxBase.cs: When enter is pressed, we need to update all
10644 lines below the current.
10646 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
10648 * MdiClient.cs: Implement implicit menu merging for MDI
10649 children. When a child form is active, if it has a menustrip
10650 and the parent form has a MainMenuStrip, automatically merge
10653 2007-04-15 Andreia Gaita <avidigal@novell.com>
10655 * TabControl.cs: Refactored sizing methods to not repeat
10656 code all over the place. Tab bounds are now calculated
10657 as if alignment is top and single line, and only when
10658 setting the bounds are the positions adjusted according
10659 to alignment. Replaced hardcoded positions, spacings and
10660 paddings by getting the values the ThemeEngine.
10663 * Theme.cs: Change TabControl properties and methods so
10664 that all start with TabControl*. Added more properties
10665 to help remove hardcoded values on tabcontrol.
10666 Add CPDrawBorder3D declaration so the Theming classes
10669 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
10671 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
10672 on the Theming namespace, and call the appropriate methods here.
10673 Change CPDrawBorder3D to public.
10675 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10677 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
10678 the control after firing the OnMouseUp event, instead of sending
10679 the message before the mentioned event. This is so we can match the
10680 MS behaviour. Fixes part of #80385.
10682 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10684 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
10685 RightToLeft property.
10687 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10689 * ToolStrip.cs: Add properties and internal methods to support merging.
10690 * ToolStripItem.cs: Add MergeAction and MergeIndex.
10691 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
10692 not trigger reparenting or layouts.
10693 * ToolStripManager.cs: Add Merge and RevertMerge methods.
10694 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
10695 is hosting the overflow menu.
10697 2007-04-13 Jackson Harper <jackson@ximian.com>
10699 * TextControl.cs: Set the line ending correctly for the first
10702 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
10704 * Theme.cs: Update GetMethod to get the new definition for
10705 KnownColors.Update (and fix theme color updates).
10707 2007-04-12 Everaldo Canuto <everaldo@simios.org>
10709 * MessageBox.cs: Fix some test and button position.
10711 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10713 * Form.cs: Consider the implicit controls in
10714 GetRealChildAtPoint. We need it since this method
10715 is called on Form when handling the some messages in
10716 WndProc, and need to consider those implicit ones too.
10719 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
10721 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
10722 if there are no ShortcutKeys set.
10723 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
10724 set, use it when painting.
10726 2007-04-12 Jackson Harper <jackson@ximian.com>
10728 * TextControl.cs: Fix some off-by-one issues in line duplication
10729 and insertion in the undo manager. Also, overwrite the first tag
10730 of a line on insert, if it is just a zero lengthed tag. This
10731 prevents us from getting an extra stranded tag at the beginning of
10734 2007-04-11 Everaldo Canuto <everaldo@simios.org>
10736 * Label.cs: Remove check for handle created in CalcAutoSize, we need
10737 to calculated proper size including when handle was not created yet.
10739 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10741 * MdiWindowManager.cs: When moving a form, allow the form to be moved
10742 when the mouse is outside of it's parent's client rectangle. Fixes
10743 #79982 (take 3, part 2).
10745 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10747 * X11Structs.cs: Add a few ToString() overrides.
10748 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
10749 the window location in a window-manager independent way. Reworked
10750 FrameExtents, it now actually works. Reworked AddConfigureNotify
10751 and ReparentNotify handling to use GetTopLevelWindowLocation
10752 instead of the earlier, more hacky solution. Reworked SetWMStyles,
10753 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
10754 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
10755 for all other windows (fixes #81281 part 1), a toolwindow is hidden
10756 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
10757 and generally refactored to do as few calculations as possible
10760 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
10762 * Theme.cs: Change "reflective-contract" between MWF and SD to
10763 minimize # of calls, avoid Color serialization and avoid updating
10764 every "known colors" each time a single one is updated.
10766 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10768 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
10769 when not readonly and the text is explicitly set. Code style updates.
10770 * DataGridTableStyle.cs: Removed extra line.
10771 * DataGrid.cs: Code style updates. Removed extra whitespace.
10772 * DataGridColumnStyle.cs: Code style updates. Removed extra
10775 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10777 * XplatUIX11.cs: Added comment that "fixes" #80021.
10779 2007-04-09 Jackson Harper <jackson@ximian.com>
10781 * TextControl.cs: We don't need this -1 on the line count anymore.
10783 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10785 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
10786 entered value to underlying type, and convert it back to a string to
10787 apply formatting. Modified GetFormattedValue to use TypeConverter
10790 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
10792 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
10793 Use SubItems property when we want to ensure there's at least one
10794 subitem. Modified SubItems property to ensure there's always at least
10795 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
10796 the NRE's reported by MS.
10798 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
10800 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
10801 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
10802 Spaces to tabs. Removed extra tabs.
10804 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
10806 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10807 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
10809 2007-04-06 Jackson Harper <jackson@ximian.com>
10811 * TextBoxBase.cs: When a delete removes a line, recalculate all
10812 lines below that line (they need to get offsets setup correctly)
10815 2007-04-05 Jackson Harper <jackson@ximian.com>
10817 * TextControl.cs: We need to invalidate across the width of the
10818 document when we are invalidating multiple lines.
10819 * TextBoxBase.cs: Don't delete into the line ending.
10821 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10823 * ListView.cs: Restore the check for the MouseHover event
10824 in ListView. It looks like the ListView fires more than one MouseHover
10825 event when HoverSelection is true _only_ in weird-corner scenarios, but
10826 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
10829 2007-04-05 Mike Kestner <mkestner@novell.com>
10831 * ListView.cs : raise MouseDown before updating selection.
10832 [Fixes #80373 tab 1&3]
10834 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10836 * ToolStripRenderer.cs: Add static method to mirror image.
10837 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
10838 and RightToLeftAutoMirrorImage.
10839 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
10841 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10843 * ToolStripSplitStackLayout.cs: Support Alignment property.
10844 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
10846 2007-04-05 Jackson Harper <jackson@ximian.com>
10848 * TextControl.cs: Move around the line endings when crossing line
10850 - When combining lines, strip the ending text off the first line.
10852 2007-04-05 Jackson Harper <jackson@ximian.com>
10855 * TextBoxBase.cs: Try to never move the cursor into the line
10858 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10860 * ToolStripItem.cs: Make sure we aren't firing mouse events when
10861 the item is disabled. Also add a few missing methods.
10863 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10865 * ListView.cs: We don't need the MouseEnter/MouseLeave check
10866 to fire just one MouseHover event when HoverSelection is true, since
10867 .Net does fire more than one MouseHover event in that scenario. Also,
10868 fix the selection in HoverSelection, by invoking UpdateMultiSelect
10869 if MultiSelect is true, instead of only setting ListViewItem.Selected.
10870 Finally, we need to reset the Hover logic in MouseMove, even when we
10871 don't have a selected item.
10873 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10875 * ToolStrip.cs: Add several missing methods, properties, and events.
10877 2007-04-04 Chris Toshok <toshok@ximian.com>
10879 * DataGridTextBoxColumn.cs: set the bounds of the text box to
10880 (0,0,0,0) in Commit, as MS does.
10882 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
10883 make sure we set CurrentRow on a row header click *before* calling
10884 Select. This moves the current cell (and the textbox) to the new
10885 row. The call to Select then hides the textbox, giving us the
10886 correct behavior. Fixes #80362.
10888 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
10889 (ListChangedHandler): reorder the position/current changed events,
10890 and call UpdateIsBinding in the ItemAdded case.
10892 * GridColumnStylesCollection.cs: add some columns events, one of
10893 which raises the CollectionChanged event.
10895 2007-04-04 Jackson Harper <jackson@ximian.com>
10897 * TextControl.cs: When we delete multiple selection lines
10898 invalidate the selection area, don't need to do that for single
10899 lines because the final update view will handle it.
10901 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10903 * Control.cs: When we CreateControl, we need to also create all of the
10904 control's children. The child's OnLoad must also fire before the parent's
10905 OnLoad. Fixes the toolbox size in PDN.
10907 2007-04-04 Jackson Harper <jackson@ximian.com>
10909 * TextBoxBase.cs: When the user presses enter, insert a line
10910 ending into the text. (Maybe this would be a good spot for
10911 Environment.NewLine).
10912 * TextControl.cs: Remove undo manager hack, line endings get
10913 inserted properly now.
10915 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10918 - Remove unneeded parameters in UpdateCursor.
10919 - Fix UpdateCursor to check if menu is active.
10920 - Call UpdateCursor when menu deactivate my click.
10921 [Fixes remaining issues from #80410]
10923 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10925 * Control.cs: GetRealChildAtPoint method added, it make an
10926 recursive child control search for the point.
10928 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
10931 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
10933 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10935 * Form.cs: Fix mouse position when send back mouse event after closes
10938 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10940 * Form.cs: Simplify the BUTTONDOWN for active tracker.
10942 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10944 * Control.cs: Fix an issue where if a user resized a control inside
10945 a sizing method like OnResize, we would overwrite their explicit
10946 value. Also, only call DefaultSize once in the constructor instead
10947 of 4 times. Also, do not call SetBoundsCore from SetBounds if
10948 nothing actually changed.
10950 2007-04-03 Jackson Harper <jackson@ximian.com>
10952 * TextControl.cs: Don't attempt to copy text for lines with no
10953 text in them (technically this shouldn't happen, but we aren't
10954 always inserting line endings when we should be).
10956 2007-04-03 Jackson Harper <jackson@ximian.com>
10958 * TextBoxBase.cs: Calculate the scrollbars before calculating the
10959 document, because this sets some of the document size properties
10962 2007-04-03 Jackson Harper <jackson@ximian.com>
10964 * TextBoxBase.cs: We need to calculate maximums even if this is
10965 not a multiline control, because the maxs are used for scrolling.
10966 - Display the caret after doing a page up/down, we need to
10967 manually display it because a proper CaretMoved event isn't
10968 triggered (this is because of the way the math is done to
10969 determine how far to scroll).
10971 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10973 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
10974 (ToolBar was relying on SetBoundsCore to default the values sent
10975 base off of BoundsSpecified.)
10977 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10979 * DateTimePicker.cs: Change Text so that when a null value or empty
10980 string is assigned to the test we always raise ValueChanged and
10981 TextChanged (earlier implementation would only raise ValueChanged
10982 if the current date value was different from DateTime.Now).
10984 2007-04-03 Andreia Gaita <avidigal@novell.com>
10986 * ButtonBase: Call update after invalidation, fixes #80194
10988 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10990 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
10993 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10995 * XplatUIX11.cs: SetWMStyles: If the control is a form with
10996 FormBorderStyle = None, don't give the window any decorations.
10999 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11001 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11002 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
11003 to check for is a mix of several styles (such as WS_CAPTION for
11005 * Control.cs: Don't paint an area bigger than the client area when
11006 painting the background colour. Add an internal GetCreateParams.
11007 Update calls to XplatUI.CalculateWindowRect due to API change.
11008 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
11009 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
11010 the size if it hasn't been handled by any windows. When creating
11011 and moving windows, X wants the location of the entire window, but
11012 the size of the client window, so add
11013 TranslateClientRectangleToXClientRectangle,
11014 TranslateWindowSizeToXWindowSIze and
11015 TranslatedXWindowSizeToWindowSize to cope with this, and call them
11016 before every window creation and move. Update CalculateWIndowRect
11017 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
11018 In AddConfigureNotify don't do anything if the hwnd is a zombie
11019 (fixes the BadWindow we were getting while running the tests),
11020 always calculate the offsets when it's a parentless window, not
11021 only when reparented, and translate the window size, since we're
11022 getting the client size of the whole window, excluding entire
11024 * Theme.cs: Added BorderSizableSize.
11025 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11026 anymore. Update calls to XplatUI.CalculateWindowRect due to API
11028 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
11029 change. Fake the window styles here instead of in XplatUIWin32 so
11030 that all back-ends get the same window styles (and it's Form that's
11031 deciding when to use wm, not the Win32 backend anyways)
11032 * Hwnd.cs: Completely reworked GetWindowRectangle and
11033 GetClientRectangle - they are now passed a CreateParams and they
11034 only use Style and ExStyle to determine the rectangles (they should
11035 now work just like Win32AdjustWindowRectEx - though quite a few
11036 special cases are probably missing). They should also be 100%
11037 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
11038 == rect), and all numbers (borders, menu sizes) are taken from the
11039 current theme. Added a GetBorders helper function that will return
11040 the borders for any given CreateParams (including captions and
11041 menus), and GetBorderSize that returns the given border size only.
11042 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11043 Hwnd.GetClientRectangle.
11045 2007-04-02 Chris Toshok <toshok@ximian.com>
11047 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
11048 logic between the values we present to the user and the values
11049 which are stored in the column's property. Also, don't call
11050 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
11052 2007-04-02 Jackson Harper <jackson@ximian.com>
11054 * TextBoxBase.cs: Scroll faster!
11056 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
11058 * StatusStrip.cs: Layout fixes for PDN.
11059 * ToolStrip.cs: Set item's available to true, and placement to main when
11061 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
11062 changing in setter before doing any work, add InternalVisible.
11063 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
11064 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11067 2007-04-02 Jackson Harper <jackson@ximian.com>
11069 * TextBox.cs: LBUTTON does not make the textbox select all of it's
11072 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11074 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
11075 Makes ToolStripComboBoxes show up again.
11077 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11079 * ListView.cs: Add a hover_pending field in ListView
11080 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
11081 cycle (we are resetting the MouseHover logic in XplatUI
11082 to handle HoverSelection). Fixes #80429.
11084 2007-04-02 Jackson Harper <jackson@ximian.com>
11086 * TextControl.cs: Make sure the attributes get set on the last
11088 - Still have to do the end tag if we have stepped all the ways to
11091 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
11093 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
11094 on an internal libgdiplus call when the information is already
11095 available via the public API.
11097 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11099 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
11100 control is removed from a control collecftion.
11101 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
11102 Fixes FormPropertyTest (failed on rare occasions).
11103 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
11104 of Win32SetParent (when changing from no parent to a parent it
11105 might add the new parent's location in screen coordinates to this
11106 window's location).
11107 * Form.cs: Rework ChangingParent once again, now the handle is
11108 recreated whenever a FormWindowManager is added or removed (that is
11109 whenever a normal form is parented or abandoned). Also change
11110 CreateParams so that all non-toplevel windows always get the
11111 specified sice (StartupPosition is never considered for
11112 non-TopLevel forms).
11113 * ContainerControl.cs: Add ChildControlRemoved, the container control
11114 needs to be notified when a control is removed from it's
11115 collection, in the case the removed control is the active control.
11117 2007-04-02 Jackson Harper <jackson@ximian.com>
11119 * RichTextBox.cs: Use the new methods for setting the font and
11120 color, these methods set the specified attribute without
11121 overriding the other attributes.
11123 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
11125 * ToolStripPanel.cs: Fixes for better layouts in PDN.
11127 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
11129 * TextBox.cs: Added internal ChangeBackColor method to special-case
11130 Color.Empty. Added check for invalid ScrollBars value.
11131 * TextBoxBase.cs: Added internal ChangeBackColor method.
11132 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
11133 internal ChangeBackColor method to special-case Color.Empty. Added
11134 check for invalid ScrollBars value.
11136 2007-03-30 Everaldo Canuto <everaldo@simios.org>
11138 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
11140 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
11142 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
11143 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
11144 [Based on submitted patch from Olivier Duff.]
11146 2007-03-30 Jackson Harper <jackson@ximian.com>
11148 * TextBox.cs: Only select all on initial focus if the user has not
11149 specified a selection area.
11151 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
11153 * UserControl.cs: Override CreateParams.
11155 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11159 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11160 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
11161 check for is a mix of several styles (such as WS_CAPTION for instance).
11162 * Control.cs: Don't paint an area bigger than the client area when painting
11163 the background colour. Add an internal GetCreateParams. Update calls to
11164 XplatUI.CalculateWindowRect due to API change.
11165 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
11166 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
11167 hasn't been handled by any windows. When creating and moving windows, X
11168 wants the location of the entire window, but the size of the client
11169 window, so add TranslateClientRectangleToXClientRectangle,
11170 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
11171 to cope with this, and call them before every window creation and move.
11172 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
11173 removing DeriveStyles). In AddConfigureNotify don't do anything if the
11174 hwnd is a zombie (fixes the BadWindow we were getting while running the
11175 tests), always calculate the offsets when it's a parentless window, not
11176 only when reparented, and translate the window size, since we're getting
11177 the client size of the whole window, excluding entire window.
11178 * Theme.cs: Added BorderSizableSize.
11179 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11180 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
11181 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
11182 Fake the window styles here instead of in XplatUIWin32 so that all
11183 back-ends get the same window styles (and it's Form that's deciding when
11184 to use wm, not the Win32 backend anyways)
11185 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
11186 they are now passed a CreateParams and they only use Style and ExStyle
11187 to determine the rectangles (they should now work just like
11188 Win32AdjustWindowRectEx - though quite a few special cases are probably
11189 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
11190 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
11191 sizes) are taken from the current theme. Added a GetBorders helper
11192 function that will return the borders for any given CreateParams
11193 (including captions and menus), and GetBorderSize that returns the given
11195 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11196 Hwnd.GetClientRectangle.
11198 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11200 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
11201 layout of the mdi children is handled by CreateParams. Fixes
11204 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11206 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
11209 * Form.cs: When active tracker mouse down is not processed, send event
11210 back to control inside mouse position. [Fixes #81227]
11212 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11214 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
11215 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
11216 stealing focus from the active form on Windows. (Control will be made
11217 visible in ShowWindow.)
11219 2007-03-29 Mike Kestner <mkestner@novell.com>
11221 * ImageList.cs : add internal Changed event.
11222 * ListView.cs : hook up to StateImageList.Changed to perform
11223 invalidations when the the state icon list changes. [Fixes #81191]
11225 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11227 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
11228 to prevent tooltips from stealing focus from the active form on Windows.
11230 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11232 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
11234 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
11236 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11238 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
11241 2007-03-29 Jackson Harper <jackson@ximian.com>
11243 * TextControl.cs: When deleting text from non multiline textboxes,
11244 we need to update the entire document, because line offsets will
11247 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11249 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
11250 added to theme, now we can create themes that uses diferent notify engines
11251 like notification-daemon from galago project or growl for Mac OS.
11253 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11255 * NotifyIcon.cs: Prevent Balloon to show in task bar.
11257 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11259 * XplatUIX11.cs: Prevent system to open more than one balloon.
11261 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
11262 some compiler warning messages.
11264 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11268 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
11270 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
11271 implemented, this methods is used by NotifyIcon.BalloonWindow class.
11273 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
11276 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11278 * ListViewItem.cs: Forgot to make Invalidate internal.
11280 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11282 * ListView.cs: Add a InvalidateSelection method to
11283 invalidate methods which are currently selected, and call
11284 it when setting FullRowSelect and HideSelection, instead of
11287 2007-03-28 Chris Toshok <toshok@ximian.com>
11289 * XplatUIX11.cs (UnmapWindow): reindent this block.
11291 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
11292 the selection_start if we're moving the selection (that is, not
11293 extending it). Fixes bug #80461.
11295 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11297 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
11298 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
11299 create private ControlCollection.
11301 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11303 * Control.cs: We need to call OnVisibleChanged for our implicit
11304 children as well as our normal children. Fixes scrollbars in
11305 comboboxes not showing up.
11307 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11309 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
11310 the check for IsHandleCreated first. The check in CreateHandle is not
11311 good enough because CreateHandle can be overriden, and the override
11312 should not be called if the handle is already created.
11314 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11316 * ToolStrip.cs: Remove MonoTODO for tooltips.
11317 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
11318 * ToolStripContainer.cs: Add custom ControlCollection class.
11319 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
11320 * ToolStripDropDown.cs: Add some missing properties/methods.
11321 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
11322 * ToolStripItem.cs: Remove MonoTODO for tooltips.
11323 * ToolStripManager.cs: Add IsShortcutDefined.
11324 * ToolStripOverflow.cs: Override LayoutEngine.
11325 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
11326 * ToolStripSeparator.cs: Add ImageKey.
11328 2007-03-28 Jackson Harper <jackson@ximian.com>
11330 * TextControl.cs: If a char delete removes a line ending, we need
11331 to update the ending style.
11332 - Make sure the line ending calcs get called.
11334 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11336 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
11337 it was making the new code not work. Fixed a typo in the new code
11338 as well. Fixes #79826.
11340 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11343 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
11344 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
11345 - SystrayBalloon method implemented.
11346 [Add support for notifyicon balloon on win32, #79149]
11348 2007-03-27 Mike Kestner <mkestner@novell.com>
11350 * ThemeWin32Classic.cs : update StateImageList selection to mirror
11351 the ms behavior when only one image is added to the list.
11354 2007-03-27 Jackson Harper <jackson@ximian.com>
11356 * TextControl.cs: Improvements to non multiline line ending
11359 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11361 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
11363 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11366 - Balloon message handling added.
11367 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
11369 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11370 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
11371 to SystrayBalloon to me like other Systray method, also a
11372 handle parameter added.
11374 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11376 * ListView.cs: Show scrollbars even when items.Count == 0
11377 but the columns Width is bigger than the ListView.Width.
11378 Also, when columns.Count == 0 set layout_wd and layout_ht
11379 to the ClientRectangle values, so we don't show any scrollbar
11382 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11384 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
11386 2007-03-27 Jackson Harper <jackson@ximian.com>
11388 * RichTextBox.cs: The RTF library decodes the text properly for us
11391 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11393 * ListView.cs: Display HeaderControl even when columns.Count == 0.
11394 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
11395 ListView header (HeaderControl), instead of Control.BackColor.
11397 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
11399 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
11400 Fixes tab control issues where controls would not show up because they
11401 never received their OnVisibleChanged call.
11403 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11405 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
11408 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
11410 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
11411 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
11412 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
11413 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
11414 the handle. Fix WindowState by using the internal variable until we are
11415 sure that we've been shown.
11416 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
11420 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
11422 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
11423 (at least borders). Fixes #79386 on Linux (with a small difference
11424 in behaviour: when trying to resize a caption-less window metacity
11425 shows the sysmenu. Resizing is still possible though).
11426 * XplatUIWin32.cs: When setting window styles send request an extra
11427 WM_NCCALCSIZE when it's a form without title (due to no text and no
11428 caption), since Win32 seems to calculate it wrong the first time we
11429 get the message, though the second time things work as they should.
11430 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
11431 newly reparented window might show up unparented. Update
11432 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
11433 there's no title text. Fixes #79386.
11435 2007-03-27 Mike Kestner <mkestner@novell.com>
11437 * ListBox.cs : don't perform invalidations if the handle hasn't been
11438 created. [Fixes #80753]
11440 2007-03-27 Mike Kestner <mkestner@novell.com>
11442 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
11445 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11447 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
11448 needed to implement Balloon.
11450 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11452 * ListViewItem.cs: In the constructors that take
11453 an array of strings, don't use ListViewSubItemCollection.AddRange
11454 method to add items, since we need to have a different behaviour (in
11455 the constructors we add an item for each null string, opposed to
11456 the behaviour of AddRange, which adds nothing).
11458 2007-03-26 Andreia Gaita <avidigal@novell.com>
11460 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
11462 2007-03-26 Jackson Harper <jackson@ximian.com>
11464 * TextControl.cs: Draw and measure line endings when in non
11466 - When searching the text, count the end of the last line as a
11469 2007-03-26 Jackson Harper <jackson@ximian.com>
11471 * RichTextBox.cs: The selection_start and selection_end don't
11472 really track the correct tags for the selection. So we'll manually
11473 compute the correct tag here.
11475 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11477 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
11478 and Continuous styles. Fixes #79469.
11480 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
11482 * ToolStrip.cs: Implement Tooltips.
11483 * ToolStripItem.cs: Create internal method for determining tooltip.
11485 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
11487 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
11489 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11491 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
11492 it prevents a problem thak keeps icon visible after application
11495 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11497 * NotifyIcon.cs: Balloon properties and methods created.
11499 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11500 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
11502 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
11504 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
11506 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
11508 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
11509 parameter indicates which aspects were explicit/user-set.
11510 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
11512 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
11514 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
11515 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
11516 SmallChange, and Value (2.0).
11517 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
11519 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11521 * ListView.cs: Always set item_control.Width in LayoutDetails
11522 if View is Details. Setting it later in CalculateScrollBars
11523 in a not-so-corner scenario (the sum of columns width is
11524 not bigger than the ListView width when handle is created, and then
11525 that sum gets bigger by increasing the width of the columns)
11526 causes a very weird recursion path (which shouldn't be happening,
11527 since header_control sets it in CalculateScrollBars too). This bug
11528 appeared after Chris' fixes for handle created issues, so probably
11529 it's related to some handle-creation time.
11531 2007-03-23 Chris Toshok <toshok@ximian.com>
11533 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
11534 case where there's an add row, just so we don't end up in a case
11535 where it's not displayed (this happens when the row is partially
11536 obscured). Fixes bug #79574.
11538 2007-03-23 Jackson Harper <jackson@ximian.com>
11542 * RichTextBox.cs: Preserve line endings in the lines text buffer,
11543 also added an enum that represents the line ending type.
11545 2007-03-23 Andreia Gaita <avidigal@novell.com>
11547 * NumericUpDown.cs: Fix logic so Text and Value properties are not
11548 messed with in every method call, but only from DownButton,
11549 UpButton, UpdateEditText() and ValidateText. Fixes #80346
11551 2007-03-23 Chris Toshok <toshok@ximian.com>
11553 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
11554 format objects if the format spec is "". Fixes bug #80889.
11556 2007-03-22 Miguel de Icaza <miguel@novell.com>
11558 * ToolStripPanel.cs (Join): added stubs to build PDN3
11560 * Control.cs (AutoScrollOffset): Add.
11562 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
11563 property, its only implemented for Win32, on X11 it defaults to
11564 some hardcoded value.
11566 * ToolStripItem.cs (AllowDrop): Add property
11568 2007-03-22 Mike Kestner <mkestner@novell.com>
11570 * ListView.cs : in FullRowSelect Details mode, only enable box
11571 selection if the user clicks over the "item" column outside of the
11572 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
11574 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11576 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
11577 handle is not created yet.
11578 * Form.cs: Select: Don't call CreateHandle if the handle is already
11579 created, avoids a stack overflow on Windows when we are recreating
11581 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
11582 they are made visible, and override AfterTopMostControl to keep
11583 them on top when other controls are brought to front.
11584 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
11585 or force_*scroll_visible is true (old implementation always shows
11586 scrollbars when needed, no matter what auto_scroll was set to).
11587 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
11588 IsHandleCreated check.
11590 2007-03-22 Andreia Gaita <avidigal@novell.com>
11592 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
11593 row or col separator.
11594 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
11596 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11598 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
11600 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11602 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
11603 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
11604 every time. Fixes #80410.
11606 2007-03-22 Chris Toshok <toshok@ximian.com>
11608 * BindingSource.cs (AddNew): partially implement.
11610 remove a couple of NotImplementedException's
11611 to get bug #81148 closed.
11613 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11618 - UpdateCursor method added to update the screen cursor.
11619 - GetAvailableCursor method added to return cursor for enabled tree,
11620 it searches for cursor on control and it's parent's for enabled control.
11621 - Call UpdateCursor method on setter of Cursor property.
11622 - On setter of Enabled call UpdateCursor when it is false, we need to
11623 change cursor to normal (or to this parent cursor) because cursor
11624 setting theres no effect to disabled controls.
11625 - Some minor source changes to follow the coding style guidelines.
11627 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
11630 2007-03-22 Chris Toshok <toshok@ximian.com>
11632 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
11635 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11637 * XplatUIX11.cs: Implement default locations for forms.
11638 * Form.cs: Completely rework startup location for forms. Fixes #79964.
11639 * Hwnd.cs: Add previous_child_startup_location (to track the current
11640 startup location for any child forms of the current form) and
11641 previous_main_startup_location (to track the startup location for
11642 the current toplevel form).
11644 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11646 * Control.cs: Don't trigger a layout if an implicit control is added
11647 that isn't visible. Also, don't notify the owner when an implicit control
11648 is added. (Owners shouldn't even know about their implicit controls.)
11650 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11652 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
11653 to save some re-layouts.
11655 2007-03-21 Everaldo Canuto <everaldo@simios.org>
11657 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
11660 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11662 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
11663 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
11665 2007-03-21 Mike Kestner <mkestner@novell.com>
11667 * ListView.cs : disable selection update for non-left button clicks
11668 with mods and over selected items. [Fixes #80524]
11670 2007-03-20 Jackson Harper <jackson@ximian.com>
11673 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
11676 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11678 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
11679 very probably a more complicated calculation there. Update the
11680 textbox' ForeColor and BackColor when the ComboBox' colors are
11681 changed. Change the border change in LayoutComboBox to only affect
11682 the textbox, not all the calculations there. Seems to fix most of
11685 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11687 * ComboBox.cs: Handle Home and End keys as well as all combinations of
11688 modifiers + navigation keys as input keys, enables advanced text
11689 selection in the combobox (like Shift+Left Arrow for instance).
11690 ComboTextBox now overrides Focused and returns whatever
11691 ComboBox.Focused returns, since it really should be focused
11692 whenever the ComboBox is. Fixes #80795. Also make the border around
11693 the text box one pixel bigger, as mentioned in #79436.
11695 2007-03-20 Jackson Harper <jackson@ximian.com>
11697 * TreeView.cs: Don't offset the images, this was causing some
11698 artifacts when expanding/collapsing with images that were the
11699 exact height of the treenode.
11701 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11703 * TrackBar.cs: Query the theme for the correct value when the mouse
11704 moves and the thumb is pressed.
11705 * Theme.cs: Added TrackBarValueFromMousePosition
11706 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
11707 implementation was updating the trackbar value when drawing, now
11708 the drawing methods only draw. Fixes #80900. Refactored the
11709 calculations out to TrackBarValueFromMousePosition and
11710 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
11711 according to the mouse position whenever it wants to. Changed the
11712 light coloured pen when drawing the thumb from ControlLight to
11713 ControlLightLight, because the ControlLight is the same colour as
11714 the background so the 3D effect is lost.
11716 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11718 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
11719 defined. Fixes #80784.
11721 2007-03-20 Marek Habersack <mhabersack@novell.com>
11723 * ContextMenuStrip.cs: align with the change introduced in
11726 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11728 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
11729 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
11732 2007-03-19 Chris Toshok <toshok@ximian.com>
11734 * Control.cs (WmPaint): don't make use of the Handle property
11735 after an event is emitted, as the user could have closed the
11736 form/destroyed the control. Store the Handle in a local variable
11737 and make use of that. Fixes bug #80768.
11739 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11741 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
11742 behavior in X11 environments.
11744 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11746 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
11747 because on setter of topmost we dont call SetTopmost when handle is not
11750 2007-03-20 Jackson Harper <jackson@ximian.com>
11752 * TextControl.cs: Need to use SelectionLength () not
11753 selection_length, since that var is reset to -1.
11754 - Draw the caret when we don't have focus.
11755 * TextBox.cs: The selectall actually doesn't occur until the first
11757 * TextBoxBase.cs: Need to update the caret position after a
11760 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11762 * ListView.cs: Enable scrolling when using Tile view.
11764 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11768 * XplatUIDriver.cs: Abstract SetOwner method created.
11770 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
11771 must be implemented and was masked as todo.
11773 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
11776 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
11777 cheking for null owner to remove transient. The SetTopmost will be change
11780 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
11781 SetTopmost. Now owned forms will work properly in win32 and X11.
11783 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11785 * MdiWindowManager.cs: Update function name.
11786 * Form.cs: After closing a form MdiParent is always null.
11787 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
11788 better what it should do: necessary book-keeping when the form is
11789 closed, it should not close the form itself.
11791 2007-03-19 Andreia Gaita <avidigal@novell.com>
11793 * ListViewItem.cs: Fix back and fore color. The subitems only
11794 use their own colors if they are set, otherwise use the listview's
11795 colors. Don't set default colors on constructor for subitem.
11798 2007-03-19 Mike Kestner <mkestner@novell.com>
11800 * ListView.cs : make box selection for Details views with
11801 FullRowSelect conform to MS behavior when clicking in the "item"
11802 column and clicking outside the defined columns.
11803 [Fixes case 5-6 of #80374]
11805 2007-03-19 Chris Toshok <toshok@ximian.com>
11807 * ScrollableControl.cs: create the controls from within the ctor,
11808 but don't actually add them until our handle is created. this
11809 fixes a NRE possibility jpobst found (if you override OnLayout in
11810 a subclass, it's called before your ctor). Also, add a
11811 IsHandleCreated guard to UpdateSizeGripVisibility as well.
11813 2007-03-19 Jackson Harper <jackson@ximian.com>
11815 * TextBox.cs: Reduce the amount of invalidation we do.
11816 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
11817 some of them are true by default on MS.
11818 - Add some functions to reduce the amount of invalidates we do.
11819 * TextControl.cs: Less invalidation.
11821 2007-03-19 Chris Toshok <toshok@ximian.com>
11823 [ Fixes #81773, and *seems* to fix #81553 as well ]
11825 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
11826 AccumulateDestroyedHandles. We need to do it *after* we send
11827 WM_DESTROY, as the user's code can access Control.Handle in
11828 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
11829 move the WM_DESTROY/zombie handling to before the call to
11830 XDestroyWindow. For some reason without this ordering
11831 FormTest.RecreateHandle hangs. This ordering is semantically
11832 equivalent, however, as XDestroyWindow is async anyway.
11834 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
11836 * RichTextBox.cs: Reset backcolor_set after setting default.
11838 2007-03-19 Chris Toshok <toshok@ximian.com>
11840 * ScrollableControl.cs: the scroll position should not effect the
11841 canvas size. commit patch from georgegiolfan@yahoo.com, which
11842 fixes some really bizarre behavior on resizing. Fixes bug #80778.
11844 2007-03-19 Chris Toshok <toshok@ximian.com>
11846 * ScrollableControl.cs: clean this up a bit. create the
11847 scrollbars in the ctor and just show/hide them as needed. Also,
11848 make hscroll_visible/vscroll_visible internal to Recalculate, and
11849 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
11850 everywhere else. This seems to fix the scrollbars appearing
11851 beneath the content for me (i have *no* idea why that is,
11854 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11856 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
11857 some redundacy for stuff in Anchor and Dock that base will take care of.
11860 2007-03-19 Mike Kestner <mkestner@novell.com>
11862 * ListView.cs : make box selection for Details views without
11863 FullRowSelect dependent on the text bounds, not item bounds.
11864 * ListViewItem.cs : add an internal property to obtain the TextBounds
11865 in Details view. [Fixes case 1-4 of #80374]
11867 2007-03-19 Andreia Gaita <avidigal@novell.com>
11869 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
11870 we're < 2.0. #78448 && #80316
11872 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11874 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
11875 have the same style available as the previously selected one. Also,
11876 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
11878 2007-03-19 Jackson Harper <jackson@ximian.com>
11880 * TextControl.cs: Add an alignment property that all new lines
11882 - Make sure to use the align shift when calculating the line's X
11884 * TextBox.cs: Set the alignment on the document as well as on all
11885 the document lines.
11887 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11889 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
11890 throw if setting the parent of an mdichild that already has an
11891 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
11892 AssemblyProductAttribute in the assembly, use the type's namespace (as
11893 MS seems to do). CreateControl: don't create the handle if the control
11894 is not visible (according to MS behaviour and spec). SetTopLevel: Only
11895 create handle if the control is not a form. Change FocusInternal to
11896 virtual so that it can be overriden by Form.
11897 * TextBox.cs: Update call to FocusInternal.
11898 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
11899 form is not a toplevel form when it's a mdi child, so update is_toplevel
11900 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
11901 hasn't been created. Show (IWin32Window): Don't allow this overload for
11902 toplevel windows. CenterToParent/CenterToScreen/Select: create the
11903 handle as MS does. SetVisibleCore: if called on a MdiChild and the
11904 parent isn't visible yet, save the visibility and restore it when the
11905 parent is made visible.
11906 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
11907 methods, since the visibility of the scrollbars can be changed from
11908 several places, not only from AutoScroll.
11911 2007-03-19 Jackson Harper <jackson@ximian.com>
11913 * RichTextBox.cs: Enable shortcuts by default.
11914 * TextBoxBase.cs: Add conditional shortcuts.
11916 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11918 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
11920 2007-03-19 Chris Toshok <toshok@ximian.com>
11922 [ Fixes bug #80604]
11924 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
11925 swallow the message we're waiting on, instead of delivering it, as
11926 this is only used for the WM_SHOWWINDOW raised from
11927 MapWindow/UnmapWindow, and the message needs to be generated
11928 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
11929 before doing the Map/Unmap. Also make sure that the Hwnd is still
11930 alive after the message has been handled.
11932 *before* the window is shown.
11934 * Control.cs (CreateControl): guard a few more things inside the
11935 if (!is_created) block, as we might end up being called again -
11937 (WmShowWindow): call CreateControl if we're showing the control.
11939 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11941 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
11942 controls without a handle if they have any parent with a handle. In
11943 Dispose add a check whether the handle is created or not before
11944 calling BeginInvoke, this removes the need of the extra disposing
11945 parameter (which was bogus anyway since it didn't prevent the
11946 invoke from happening, it only skipped the check for an existing
11947 handle, meaning that the invoke would call on an inexistent
11950 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11952 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
11953 appears in taskbar.
11955 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11958 - Fixed a problem that dont show help button for messages with 3 buttons.
11959 - Refactory button size and position calculations, now dont use fixed
11960 values, also fixed button sizes (#80043) and form's border space.
11961 - AddButton method created, now all other AddButton methods call this one.
11962 - Some other source code cosmetic changes.
11964 2007-03-18 Jackson Harper <jackson@ximian.com>
11966 * RichTextBox.cs: Don't do this all fonts must match check if
11967 there is only one char selected.
11969 2007-03-18 Jackson Harper <jackson@ximian.com>
11971 * TreeView.cs: ScrollWindow works properly now, so we don't need
11972 to screw around with the scroll area. This fixes some artifacts
11973 when expanding and collapsing.
11975 2007-03-18 Jackson Harper <jackson@ximian.com>
11977 * TextBoxBase.cs: Allow updating the selection position when the
11978 cursor is outside the textarea, but we have a capture.
11979 * TextControl.cs: A special case for when the cursor is outside
11980 the bounds of the TB.
11982 2007-03-18 Jackson Harper <jackson@ximian.com>
11984 * TextBoxBase.cs: Remove image pasting code for now. There is no
11985 way to get an image on the clipboard right now anyways.
11987 * RichTextBox.cs: Use the new RTF Picture class for pictures.
11989 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11992 - Set window properties in constructor intead of on CreateParams.
11993 - Remove topmost from Window ExStyle.
11994 - Set ShowInTaskbar to false.
11995 - Set form border to FixedDialog.
11996 - Some cosmetic changes and remove unneeded comments.
11997 - It fixes itens 2,3 and 4 of bug #80043.
11999 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
12001 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
12002 none was explicitly set. Fixes part of bug #79949.
12004 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12006 * ToolStripComboBox.cs: Add AutoComplete*.
12008 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12010 * ToolStripComboBox.cs: Add FlatStyle.
12012 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12014 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
12015 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
12017 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12019 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
12020 CheckBox.cs, RadioButton.cs, BindingSource.cs,
12021 DataGridColumnStyle.cs: Remove warnings.
12023 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12025 * Menu.cs: MergeMenu: Check menu argument for null before looping over
12027 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
12028 visibility of mdi child forms. FormSizeChangedHandler: update the
12029 maximized size if size has changed while maximized.
12030 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
12031 creating the handle.
12032 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
12033 avoid creating the handle if not created.
12034 * XplatUI.cs: Update debug output.
12035 * XplatUIStructs.cs: Added ToString's for a couple of structs.
12037 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12039 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
12041 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
12042 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
12043 Implement keyboard shortcuts.
12045 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12047 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
12048 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
12049 ColorDialog and all derived classes.
12051 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12053 [ Fixes bug #79828 ]
12056 - Rename ToolBarButtonInfor to ToolBarItem.
12057 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
12058 - Maintain an array of ToolBarItem, used instead of ToolBarButton
12059 collection to be able add same button more than one time on a toolbar.
12060 - Refactory all properties and methods to use ToolBarItem.
12062 * ToolBarButton.cs:
12063 - Remove all propeties and methods that is now in ToolBarItem.
12064 - Rectangle propery now gets the rectangle from first ToolBarItem to
12065 mimic win32 behavior.
12066 - Size calculation and layout methods also removed.
12068 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
12069 ToolBarItem instead of ToolBarButton to right drawing buttons when
12070 same button/separator was added more than one time to ToolBar.
12072 * ThemeNice.cs: Same as above.
12074 2007-03-15 Andreia Gaita <avidigal@novell.com>
12076 * XplatUIX11.cs: Fire extra MouseMove events right after
12077 MouseDown and MouseUp, emulating win32's <censored> behaviour
12078 for apps that rely on it.
12080 2007-03-15 Jackson Harper <jackson@ximian.com>
12083 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
12084 it is drawn on the controls client window and there is no NC
12086 - Set the background color to gray on 2.0 when we are readonly.
12088 2007-03-15 Chris Toshok <toshok@ximian.com>
12090 [ Fixes bug #81144 ]
12092 * XplatUIX11.cs: implement VirtualScreen independently of
12093 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
12096 2007-03-15 Chris Toshok <toshok@ximian.com>
12098 * Hwnd.cs: add an internal field for the cached_window_state.
12100 * XplatUIX11.cs: cache the window state, invalidating the cache
12101 (and thus re-querying the X server) only when we see an update to
12102 the _NET_WM_STATE property.
12104 2007-03-15 Chris Toshok <toshok@ximian.com>
12106 * BindingSource.cs: get a lot of the unit tests working.
12108 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
12110 * Control.cs: Modify UpdateStyles to store distances when bounds >=
12111 0 instead of just bounds > 0. [Fixes bug #80912]
12113 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
12115 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
12118 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
12120 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
12121 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
12122 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
12123 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
12125 2007-03-15 Chris Toshok <toshok@ximian.com>
12129 * Control.cs: add Ivan's fix for 81101, with a slight modification
12130 - you can set control.Target to null.
12132 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
12134 * ToolStripItem.cs: If our OwnerItem is null, we can't use
12135 HideDropDown, use Hide instead to prevent an NRE.
12138 2007-03-14 Jackson Harper <jackson@ximian.com>
12140 * TextBoxBase.cs: Mess with the creation stuff a little. We need
12141 to calculate the document before the handle is created, in some
12142 cases. (Actually just one case).
12144 2007-03-14 Jackson Harper <jackson@ximian.com>
12146 * TextBoxBase.cs: Need to display the caret after letting the base
12147 wndproc handle the focus methods, because the caret display
12148 methods check the focus state.
12149 - Try to display the caret after updating it's position with SelectWord.
12150 - Don't need to do an immediate update on this recalc, since there
12151 will be an invalidate anyways.
12153 2007-03-14 Jackson Harper <jackson@ximian.com>
12155 * TreeView.cs: Some workarounds so that we can match event order a
12158 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
12160 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
12161 #80803. Avoid NullReferenceException when Control does not have
12162 parent. Fixed different blinkstyle issues. Only subscribe to Tick
12163 event a single time. Only draw error icon when control is created and
12164 visible. Fixes failing unit tests.
12166 2007-03-14 Andreia Gaita <avidigal@novell.com>
12168 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
12169 Selecting events. Fire Leave and Enter events when changing tabs.
12171 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
12173 * TreeView.cs: Add TreeViewNodeSorter.
12174 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
12176 2007-03-14 Chris Toshok <toshok@ximian.com>
12178 * Form.cs: go ahead and remove the RecreateHandles that jpobst
12179 removed earlier and I had him add back it. It turns out metacity
12180 *does* in fact handle the MOTIF_WM_HINTS property changing, it
12181 just doesn't redraw the window titlebar until you resize the
12182 window. This also means we aren't recreating the entire window
12183 hierarchy on X when you change this property. And it looks better
12186 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12189 * ListView.cs: Collecting selection information
12190 is now done in SelectedIndexCollection rather than in
12191 SelectedListViewItemCollection. This is done so we can
12192 have the selection information code in one single place
12193 (virtual mode selection information entirely depends on
12194 SelectedIndexCollection).
12196 2007-03-13 Miguel de Icaza <miguel@novell.com>
12198 * ErrorProvider.cs: Add stubs for ISupportInitialize
12200 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12202 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
12203 in the right order with the right values, from the Checked property,
12204 just as MS does (instead of triggering them from ListView).
12206 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
12208 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12210 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
12211 the correct handler in OnItemCheck method (ItemCheckEventHandler
12212 instead of EventHandler). This used to throw an InvalidCastException.
12214 2007-03-13 Jackson Harper <jackson@ximian.com>
12216 * TextBoxBase.cs: Calculate the document before the handle is
12217 created, so there isn't an extra invalidate called.
12219 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
12221 * Form.cs: Don't set owner in ShowDialog until we are sure
12222 that we aren't going to throw an exception. [Fixes bug #80773]
12224 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
12226 * TreeView.cs: Make it compile.
12228 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12230 * Control.cs: Another place we don't call SizeFromClientSize.
12231 * Form.cs: Another place we don't call SizeFromClientSize.
12234 2007-03-12 Jackson Harper <jackson@ximian.com>
12236 * TreeView.cs: Basically emulating some strangness here with
12237 exanding nodes and setting node positions when windows aren't
12239 - Also attempting to walk the node tree less than previously, and
12240 just use visible order calculations for determining offsets.
12241 - oops made scrolling backwards.
12242 * TreeNode.cs: We need to start nodes with a zero visible order,
12243 because the order calcs are based on the first nodes order.
12245 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12247 * Form.cs: Don't exit the program if RecreateHandle is called on
12250 2007-03-12 Chris Toshok <toshok@ximian.com>
12252 * XEventQueue.cs: remove the use of PostQuitState.
12254 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
12255 WM_QUIT message in GetMessage, return false (and if we're in the
12256 nested WaitForHwndMessage, repost the WM_QUIT message).
12258 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12260 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
12261 or the MaximizeBox properties. [Part of bug #80640]
12263 2007-03-12 Everaldo Canuto <everaldo@simios.org>
12265 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
12268 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12270 * ToolStripItem.cs: Fix some tests I broke by checking Visible
12271 instead of visible.
12273 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
12275 * FileDialog.cs: Use text of File name combobox to determine what
12276 files the user selected. Added tokenizer to parse the file names.
12279 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12281 * Control.cs: We can't call SizeFromClientSize in the constructor,
12282 but we still need to do the same work, so make an internal version.
12285 2007-03-12 Jackson Harper <jackson@ximian.com>
12289 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
12292 2007-03-12 Jackson Harper <jackson@ximian.com>
12294 * TextBoxBase.cs: Now that the handles are being created a little
12295 later, we need to make sure that the document is recalculated when
12296 the handle is created.
12298 2007-03-11 Everaldo Canuto <everaldo@simios.org>
12300 * Theme.cs: GetLinkFont abstract method added.
12303 - Remove CalcTrimRectangle, no longer needed.
12304 - Factor also remove, position issues must be fixed in libgdiplus.
12305 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
12306 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
12307 care about font used to draw links.
12308 - Set TabStop to true when control is "Selectable", control is selectable
12309 when have one or more links. Fixes #80501 (test case is also added).
12310 - Set the LinkArea values after links change, LinkArea values must be
12311 based in first link position and size, a test case was created.
12312 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
12313 the attribute must be true LinkArea.Length > 0. The same was applied to
12316 * ThemeWin32Classic.cs:
12317 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
12319 - Use CPDrawStringDisabled to draw disabled text instead of hard code
12321 - Draw focus rectangle for every parts focused, including parts that
12322 is on another line, its because regions returns various rectangles
12323 and not only one. Needed to mimic W32 look.
12324 - Uses Graphics.Clip to delimite region painted, it mean that now
12325 complete text is passed to DrawString, with this we solve layout
12326 issues without create another text renderer.
12327 - Uses Region.Intersect to fix some flickers problems, now only needed
12328 parts will redrawed.
12329 - This changes fixes #79614 and some other unreported issues, on Linux
12330 some layout problems still remain, the problem is under
12331 MeasureCharacterRanges but it is an libgdiplus bug.
12333 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
12335 * TextBox.cs: Set for foreground color.
12336 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
12337 this is already done in Control.
12339 2007-03-10 Jackson Harper <jackson@ximian.com>
12341 * TextBox.cs: Set the background color, but reset the
12342 backcolor_set flag which is just for the user setting the
12345 2007-03-09 Chris Toshok <toshok@ximian.com>
12347 * Control.cs: really remove the call to XplatUI.SetVisible from
12348 CreateHandle(), like I said I did when I merged the branch.
12350 * BindingSource.cs: implement some more of this stuff.
12352 2007-03-09 Jackson Harper <jackson@ximian.com>
12354 * TextBox.cs: Don't explicitly set our background colors.
12356 * TextBoxBase.cs: Draw readonly text.
12357 - Need to invalidate when backcolor or readonly are changed.
12359 2007-03-09 Jackson Harper <jackson@ximian.com>
12361 * TextBoxBase.cs: Don't set the forecolor until the handle is
12363 - Do not raise OnPaint, and removed some old debug code.
12365 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
12367 * ScrollableControl.cs: Fix mouse wheel scrolling.
12369 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
12371 * Control.cs: Wire up MouseDoubleClick event.
12373 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
12375 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
12377 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
12378 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
12379 item is added. This logic was moved to ToolStrip.OnItemAdded.
12382 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12384 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
12386 2007-03-08 Jackson Harper <jackson@ximian.com>
12388 * TreeView.cs: Show the correct image for selected node (this used
12389 to work, not sure how the code got deleted). Also implemented 2.0 feature
12392 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12395 * ListViewItem.cs: Cache index in items when retrieving them
12398 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
12400 * ToolStripItem.cs: Don't return the explicit_size if we are using
12401 AutoSize. Fixes invalidation issue when user has explicitly set a
12402 size and has AutoSize = true.
12404 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
12406 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
12408 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12410 * DataGridView.cs: Remove event handler from DataView when a
12411 DataTable is used as DataSource.
12413 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
12415 * Control.cs: Create internal setter for client_size to allow it to be
12416 set without triggering resizing code.
12417 * Form.cs: Calculate client_size in constructor, only change client_size
12418 in FormBorderStyle property if Handle has been created.
12419 [Fixes #80574, #80791]
12421 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
12423 * SystemInformation.cs: Add TerminalServerSession.
12425 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12427 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
12430 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12432 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
12433 Handle before we were supposed to. Now checks ActivateOnShow property
12435 * Control.cs: Add internal ActivateOnShow property.
12436 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
12437 for ActivateOnShow.
12438 * Hwnd.cs Remove no longer needed no_activate field.
12440 2007-03-07 Jackson Harper <jackson@ximian.com>
12442 * TreeView.cs: Implement owner draw tree nodes. And a couple more
12444 * DrawTreeNodeEventHandler.cs: Add
12445 * DrawTreeNodeEventArgs.cs: Correct default value.
12447 2007-03-07 Chris Toshok <toshok@ximian.com>
12449 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
12450 to be called before NativeWindow.WndProc. Put the HwndCreating
12451 magic there to hook up our Hwnd's to handles.
12453 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
12455 * DataGridView.cs: Comment out debug code.
12457 2007-03-07 Chris Toshok <toshok@ximian.com>
12459 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
12460 to make the rest of the world happy]
12462 * Control.cs (CreateHandle): there's no need to call
12463 XplatUI.SetVisible here, it's effectively done by
12464 XplatUI.CreateWindow on X now, and always was on windows.
12466 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
12467 shortcircuit out of the loop if we have a message loop running on
12470 [Changelog from merge]
12472 2007-03-05 Chris Toshok <toshok@ximian.com>
12474 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
12475 causes handle creation.
12477 2007-02-28 Chris Toshok <toshok@ximian.com>
12479 * ApplicationContext.cs: Add a flag to make sure we only raise the
12480 ThreadExit event once (ExitThreadCore can be indirectly called
12481 from a few places.) I don't like the additional flag, but it
12482 makes the event ordering/count correct.
12484 * Application.cs (MWFThread.LoopCount): don't use an enumerator
12485 without locking the collection. An enumerator doesn't give us any
12486 protection from modification anyway. Lock the thread hash and
12487 replace the complicated enumerator loop with a foreach.
12488 (Application.CloseForms): make internal so it can be called from
12489 ApplicationContext. This should probably be moved to MWFThread.
12490 (Application.ExitThread): don't call MWFThread.Current.Exit()
12491 here. just call XplatUI.PostQuitMessage. We'll exit the thread
12492 when the runloop exits (in response to WM_QUIT.)
12493 (Application.RunLoop): add a comment (and check) for
12494 context.MainForm being null after setting context.MainForm.Visible
12495 = true. This is because you're perfectly free to dispose of a
12496 form in VisibilityChanged. Chalk this up to another case where we
12497 need to synchronously generate WM_ACTIVATE from Control.Show.
12498 Also, add handling for WM_QUIT here so we'll exit the loop.
12500 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
12501 fact that we don't wait if we're only unmapping the whole_window
12502 makes me a bit nervous, but it doesn't seem to cause any problems
12505 also, add a comment about the stupid, broken and wrong resetting
12506 of PostQuitState to false in GetMessage().
12508 In PostQuitMessage, we need to add a WM_QUIT message to the
12509 thread's queue. We use the FosterParent to get the right
12512 Lastly, in SetVisible, we need to unmap both windows, since the
12513 waiting only happens when we're unmapping the client window. So
12514 now, the *only* time we unmap just the whole_window is in the hack
12515 for resizing a control to 0,0.
12517 2007-02-21 Chris Toshok <toshok@ximian.com>
12519 * Application.cs (CloseForms): rewrite this so that we don't
12520 modify the list while we're traversing it.
12522 2007-02-20 Chris Toshok <toshok@ximian.com>
12524 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
12525 of OnHandleCreated.
12526 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
12527 handle is created. otherwise we'll create it here.
12528 (VerticalScrollEvent): same here.
12530 * Application.cs (CloseForms): call Form.Dispose, don't post
12533 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
12534 here. Application should Dispose() of the Form's.
12536 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
12537 WM_DESTROY as well.
12538 (MapWindow,UnmapWindow): only actually do the waiting for
12539 SHOWWINDOW if the control we're dealing with is a Form.
12540 (CreateWindow): if the control isn't a form, SendMessage
12541 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
12543 * Control.cs (SetVisibleCore): always use is_visible here, not
12544 value. If we use value, we can end up re-setting something
12545 visible if, for instance, you do Control.Hide() in a delegate
12546 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
12548 2007-02-20 Chris Toshok <toshok@ximian.com>
12550 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
12551 the message we need. PeekMessage returning false should not be a
12552 condition under which we exit the loop.
12554 2007-02-15 Chris Toshok <toshok@ximian.com>
12556 * Control.cs (Refresh): only refresh if we've got a handle and are
12558 (CreateAccessibilityInstance): CreateControl() here.
12559 (UpdateChildrenZOrder): complicate the code loop even more by
12560 taking into account controls that haven't had their handle
12561 created, and those that aren't visible. But on the flip side,
12562 simplify the code by splitting it into two loops. one which
12563 builds up the list of child controls we're interested in, and the
12564 other that sets the z order of those children.
12566 2007-02-14 Chris Toshok <toshok@ximian.com>
12568 * Control.cs: Control.AccessibilityObject causes the control to be
12569 created, not just the handle.
12571 2007-02-14 Chris Toshok <toshok@ximian.com>
12573 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
12574 problem on X where a window might have its handle created (and be
12575 visible) while the window is unmapped. calling XConfigureWindow
12576 on an unmapped window is bad, and generates X errors.
12578 2007-02-13 Chris Toshok <toshok@ximian.com>
12580 * Control.cs (CreateHandle): don't loop over our children setting
12581 their parent here. do it when in WndProc when we're shown.
12582 (UpdateChildrenZOrder): make this internal so we can call it from
12584 (WndProc): for WM_SHOWWINDOW, reparent the child control after
12585 creating its handle. Also, remove the calls to PerformLayout from
12586 here. they're done in ScrollableControl.OnVisibleChanged. Also,
12587 OnVisibleChanged only seems to be called directly here for the
12588 toplevel control. It's propagated down the window hierarchy by
12589 calls to child.OnParentVisibleChanged.
12590 (OnVisibleChanged): don't do layout here - it's done (oddly
12591 enough, according to a glance at stack traces on ms.net..) in
12594 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
12595 z order of our children before calling PerformLayout.
12597 2007-02-12 Chris Toshok <toshok@ximian.com>
12599 [big change, fixes #80020]
12601 * AccessibleObject.cs: we need to make owner internal again to fix
12602 some of ControlAccessibleObject.
12604 * Control.cs: lots of changes here. add support for WM_CREATE,
12605 for which we generate OnHandleCreated. Remove the OnHandleCreated
12606 call from CreateHandle. Also add support for WM_SHOWWINDOW where
12607 we create child controls. leave the MonoTODO's for the
12608 accessibility calls, but fix the exceptions so the tests pass.
12610 Add the InvalidOperationExceptions to Invoke methods, and remove a
12611 couple of InvokeInternal methods we aren't using.
12613 Also, add a couple of CreateHandle calls in places where we know
12614 the handles are being created but our code doesn't reference
12617 Make SetVisibleCore call OnVisibleChange if the handle isn't
12618 created. If the handle is created, we rely on XplatUI.SetVisible
12619 generating the event synchronously.
12621 Lastly, make sure we don't use this.Handle inside CreateHandle,
12622 because we can call back into client (and that code can dispose of
12625 * XplatUIStructs.cs: misc/cleanup.
12627 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
12628 although we don't populate the wParam properly.
12629 (CreateWindow): generate WM_CREATE.
12630 (MapWindow,UnmapWindow): make these calls synchronous, at great
12631 performance expense (particularly in the unmap case), to match
12634 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
12636 (set_MdiParent): don't recreate the handle unless it's been
12639 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
12642 * NativeWindow.cs: this is probably the weirdest part of the
12643 patch. We need a way to link up the window being created to the
12644 WM_CREATE message. Since we can only be creating one window at a
12645 time on a given thread, we keep track of a per-thread reference so
12646 we can dispatch it properly. We also need to keep track of the
12647 Hwnd currently being created so that the win32 backend doesn't
12650 * XplatUIWin32.cs: a similar change to the one we made in
12653 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12655 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
12656 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
12657 to draw the menu shortcut string.
12659 2007-03-07 Jackson Harper <jackson@ximian.com>
12661 * TreeNode.cs: Add the 2.0 collapse method.
12663 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12665 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
12667 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12669 * DataGridView.cs: Change DataSource will clear column and row
12670 lists. Call Invalidate() to reflect DataSource change.
12672 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12674 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
12675 and a new row is added to it.
12677 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12679 * DataGridView.cs: Add columns when DataSource is en empty list but
12680 is a System.Data.DataView (from a System.Data.DataTable).
12682 2007-03-06 Andreia Gaita <avidigal@novell.com>
12684 * Label.cs: Implement AutoEllipsis (2.0)
12686 2007-03-06 Jackson Harper <jackson@ximian.com>
12688 * TreeView.cs: Implement 2.0 TopNode setter property.
12689 - Use a local var instead of the skipped_nodes field for computing
12690 how many nodes to skip. Otherwise we won't scroll because the
12691 valuechanged handler checks if skipped_nodes is equal to the new
12693 - Implement 2.0 Sort method.
12694 - Add useless 2.0 DoubleBuffer property
12695 - Implement 2.0 LineColors property. Lets you change the color of
12696 the lines in the tree. Terribly useful for creating non cohesive
12698 - Implement 2.0 image key feature.
12700 2007-03-06 Jackson Harper <jackson@ximian.com>
12702 * TreeView.cs: We can't get the bounds of the nodes before raising
12703 the AfterSelect event, because that event could change the node's
12704 bounds (scrolling, font change, etc).
12706 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12708 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
12709 * Form.cs: Don't recreate handle when creating FormWindowManager, just
12710 update window styles. In CreateParams us VisibleInternal instead of
12711 VIsible to get the actual visible flag set for this form.
12712 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
12713 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
12714 handle the case when the form is already maximized, in which case
12715 it should be restored. Fixes #81043.
12717 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12719 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
12721 2007-03-05 Jackson Harper <jackson@ximian.com>
12723 * TreeViewHitTestInfo.cs: implement.
12725 2007-03-05 Jackson Harper <jackson@ximian.com>
12727 * InternalWindowManager.cs: class status fix.
12729 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
12731 * InternalWindowManager.cs: All windows that have a parent
12732 are confined to their parent when they're being moved.
12735 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
12737 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
12738 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
12740 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12742 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
12743 buttons invisible before deciding which ones should be visible
12744 (fixes minimize/maximize buttons showing up in toolwindows). Remove
12745 an unused variable.
12746 * InternalWindowManager.cs: Remove warning.
12748 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12750 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
12751 to throw an InvalidOperationException is virtual mode is being used.
12753 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12755 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
12756 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
12757 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
12758 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12759 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
12760 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
12762 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12764 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
12765 driver.KeyboardDelay from XplatUI.KeyboardDelay
12766 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
12767 (patch by Sergey Volk)
12769 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12771 * ToolWindowManager.cs: Added, contains logic for
12773 * CreateParams.cs: Add a few helper methods and an
12774 internal variable to know which control the CreateParams belongs
12776 * Control.cs: Call Form.ChangingParent when the
12777 parent is about to be changed.
12778 * XplatUIX11.cs: DeriveStyles (): Set
12779 caption_height for all windows that have captions and are children.
12780 Update to use ToolWindowManager instead of InternalWindowManager
12782 * XplatUIWin32.cs: Set fake window styles for all
12783 windows that have window managers.
12784 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
12785 now duplicated for mdi windows when they are
12786 maximized, first for the buttons the window itself has, then for
12787 the buttons that appear in the menu bar. Makes things a little
12788 easier). Updated UpdateWindowDecorations, SetWindowState and the
12789 mouse eventhandlers accordingly.
12790 * Form.cs: Add ChangingParent (), contains the
12791 logic of what should happen when the parent changes. In MdiParent
12792 don't set things that ChangingParent () is doing. When handling
12793 WM_CLOSE, we can close the form if there are any other modal forms
12794 and the current form is a descendent of the modal form.
12795 * InternalWindowManager.cs: A lot of refactoring,
12796 the title buttons are now extracted to a separate container class
12797 that takes care of all button code (clicks, tooltips, etc). Moved
12798 Iconic|Maximized|Normal Bounds properties to this class from
12799 MdiWindowManager, so that the window state logic can succeed for
12800 other than mdi wm's. Implemented general window state change logic.
12801 Moved CreateButtons to ThemeWin32Classic, since the theme might
12802 override which buttons are available when as well as the exact
12804 * FormWindowManager.cs: Added, contains logic for
12806 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
12807 which buttons go where (and if they are at all visible).
12808 Removed special handling of maximized windows, since they aren't special.
12809 In DrawManagedWindowDecorations don't try to draw the text if it is
12811 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
12812 use whatever the wm gives us.
12814 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12816 * ButtonBase.cs: Add 2.0 properties.
12817 * Button.cs: Override Draw for 2.0.
12818 * Control.cs: Add Entered and Selected properties.
12819 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
12820 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
12821 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
12823 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
12825 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12827 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
12829 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12831 * XplatUIWin32.cs: Register a new class with Windows each time we get
12832 a new ClassStyle. [Fixes bugs #79432, #80817]
12833 * Controls.cs: Set the correct ClassStyle in CreateParams.
12834 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
12836 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
12838 * ListView.cs: Add fireEvent argument to ReorderColumn since the
12839 ColumnReordered event must not be signaled when modifying DisplayIndex
12840 of a ColumnHeader. Added internal ReorderColumns method which takes
12841 care of drawing, and updating the internal DisplayIndex of the
12842 ColumnHeader. Added AddColumn method which is invoked from
12843 ColumnHeaderCollection when adding or inserting columns, and which
12844 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
12845 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
12846 Recalculated dispay indices after removing a ColumnHeader.
12847 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
12848 match MS. Allows last display index to be returned after ListView
12849 is disposed. Update actual location of ColumnHeader when DisplayIndex
12852 2007-03-01 Everaldo Canuto <everaldo@simios.org>
12854 * LinkLabel.cs: Improve CalcTrimRectangle.
12856 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
12858 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12860 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
12861 get rectangle as a result value.
12863 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12865 * LinkLabel.cs: Theres some diferences between rectangle return from
12866 MeasureCharacterRanges and the area used for DrawString to fix this
12867 CalcMeasurementFactor method was created, it calcules the diferences
12868 to be use later to adjust rectangle in draw operations. Fixes #80473.
12870 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
12871 to adjust draw rectangle.
12873 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12875 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
12876 text and some other changes to reduce and optimize source code.
12878 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12880 * RadioButton.cs: Implement 2.0 event.
12881 * RelatedImageListAttribute.cs: Implement new class.
12883 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12885 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
12887 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12889 * CheckBox.cs: Implement 2.0 functionality.
12891 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12893 * ListView.cs: Refactor Add and AddRange methods of
12894 ListViewItemCollection, to not update the ListView
12895 everytime an item is added in AddRange. Also move the update
12896 code to a new CollectionChanged method, and call it
12897 from other methods that need it as well (this should also fix some
12898 bugs when Sorting is used).
12900 2007-02-27 Jackson Harper <jackson@ximian.com>
12902 * TextControl.cs: Try to never let the caret stay in a non-text
12904 * TextBoxBase.cs: Update the caret.
12906 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
12908 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
12909 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
12910 delete POINT structure, duplicate of one in XplatUIStructs.
12911 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
12913 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
12915 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
12916 edit box since otherwise the Label would immediately be set (even if
12917 the user did not modify the label). In OnKeyDown set Handled to true
12918 if Return or Escape was pressed. In ColumnHeaderCollection unlink
12919 columns that are to be removed. In ListViewItemCollection unlink items
12920 that are to be removed.
12922 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
12924 * TextRenderer.cs: If we set a GDI clip region, we need to clear
12925 it when we are done. [Fixes bug #80949]
12927 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12929 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
12931 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12933 * ListView.cs: I forgot to commit the changes for ListView
12934 in my previous patch.
12936 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12938 * Clipboard.cs: Partially implement an overload of SetDataObject.
12939 * Form.cs: Implement ShowWithoutActivation.
12940 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
12942 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12944 This is a first set of changes to make the Virtual mode works,
12945 by avoiding the retrieval of ListViewItem instances until
12948 * ListView.cs: Store item position in the ListView instead of the
12949 ListViewItem, this way we don't request the Bounds property of
12950 ListViewItem inside the ListView calculations, as well as cache the item
12951 size in item_size field. Store indexes instead of ListViewItem
12952 instances in the matrix used by icon view. Add a ItemMatrixLocation
12953 struct to hold the row and col info of the matrix info.
12955 * ListViewItem.cs: Don't store the location anymore, and only cache
12956 the rectangles for GetBounds. Use the ListView.GetItemLocation
12957 method to retrieve the actual location.
12959 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12961 * TextRenderer.cs: Add clipping support, thanks to George.
12964 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12966 * ListViewItem.cs: Cancel label edit when item is removed from
12968 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
12969 event before the edit textbox is displayed. Added CancelEdit method
12970 which is used end to editing while ignoring the value set by the
12971 user. In EndEdit, set focus to ListView to avoid losing focus to
12972 other controls. In ListViewItemCollection.Clear, cancel editing of
12973 any of the items. In Remove, cancel editing of item being removed.
12974 Avoid udplicate code by modifing RemoveAt to invoke Remove.
12976 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12978 * FileDialog.cs: Update FSEntry when move is successful. Fixes
12981 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12983 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
12984 compatible with non X11 systems. Fixes #80901.
12986 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12988 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
12989 whether the item should be unselected and reselect. We do no want this
12990 when we're starting to edit the label. Do not fire the
12991 SelectedIndexChanged event from ListView when its already been fired
12992 by modifying ListViewItem.Selected. Fixes bug #80943.
12994 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12996 * TextRenderer.cs: Previos commit logic was backwards.
12998 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13000 * TextRenderer.cs: Don't add padding on MeasureText if we were
13001 sent the NoPadding flag.
13003 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13005 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
13006 after DrawButton. To prevent image overlaps button borders SetClip and
13007 ResetClip added before and after draw image. Fixes #79129.
13009 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13011 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
13012 window size, it fix problem when you run under win32 that theres
13013 Size diferent than ClientSize. Also fix controls size and positions
13014 to mimic Win32. Fixes #80837.
13016 2007-02-22 Everaldo Canuto <everaldo@simios.org>
13018 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
13019 menu area to fix some problems for non X11 systems. Fixes #80613.
13021 2007-02-22 Jackson Harper <jackson@ximian.com>
13023 * TreeNode.cs: When a node is expanded, set its is_expanded flag
13024 even if it doesn't have any children.
13026 2007-02-22 Jackson Harper <jackson@ximian.com>
13028 * TreeView.cs: Calculate the top node 'on the fly', this
13029 eliminates issues where you need to click on the tree before
13030 scrolling it to get the top node computed correctly.
13031 * TreeNodeCollection.cs: We don't need to mess with the top node
13034 2007-02-22 Jackson Harper <jackson@ximian.com>
13036 * DataGridViewRow.cs: Fix typo so height can actually be set.
13037 Patch by Peter Grimm.
13039 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13041 * FileDialog.cs: Fixed support for renaming files and directories.
13042 * ListView.cs: Do not lose focus when edit is canceled. Process
13043 Escape as regular key (to prevent closing of dialogs).
13045 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13047 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
13048 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
13050 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13052 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
13053 did not modify label.
13054 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
13055 modified the text. Reset Label when user presses Escape in edit mode.
13056 Move focus to ListView after having cancelled or finished editing the
13059 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
13061 * ComboBox.cs: Removed unnecessary initializations. Marked items field
13062 private. Clear textbox when Text is set to null and SelectedIndex is
13064 * FileDialog.cs: Removed unnecessary initializations. Removed
13065 workarounds for ComboBox bugs that are now fixed. Modified
13066 DefaultExt, InitialDirectory and Title property to change null to
13067 zero-length string in getters. Avoid directly accessing fields.
13069 2007-02-20 Jackson Harper <jackson@ximian.com>
13071 * TextControl.cs: Remove RecalAlignments call, that was some
13072 debugging leftovers.
13073 - Don't use the line indent when we shouldn't.
13074 * RichTextBox.cs: Add support for paragraph left indents.
13076 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13078 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
13079 Seems like the class status pages doesn't catch params differences.
13081 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13083 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
13085 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13087 * ComboBox.cs: Setting Text should have no effect if item text of
13088 selected item exactly matches value. First lookup text using
13089 case-sensitive comparison, and fallback to case-insensitive comparison.
13090 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
13091 allow startIndex to be last index. Changed ArgumentOutOfRangeException
13092 paramname to match MS. Restart from first item if string is not found
13093 after startIndex. Fixed paramname of ArgumentNullException that is
13094 thrown for null value in ObjectCollection.Contains.
13096 2007-02-19 Everaldo Canuto <everaldo@simios.org>
13098 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
13100 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13102 * ListControl.cs: In SelectedValue use value.Equals to compare for
13103 equality instead of ==, otherwise it will fail for strings.
13106 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13108 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
13109 since the caret won't show up unless ShowSelection is true.
13112 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13114 * Application.cs: When disabling all forms but the main form, do not
13115 disable any descendants of the main form (such as mdi children or
13116 other parented forms). Fixes #80822 on Windows.
13117 * Form.cs: If we have a parent, set the WS_CHILD style.
13118 * Control.cs: Update the window styles if the control whose parent has
13119 changed is a form (the WS_CHILD style has to be switched).
13121 2007-02-19 Everaldo Canuto <everaldo@simios.org>
13123 * XplatUIStructs.cs: MsgUIState structure added.
13125 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
13127 * FileDialog.cs: Removed need for separate fileName field. On 2.0
13128 profile, do not check filename(s) for illegal character if filename(s)
13129 were set non-interactively but always check on 1.0 profile. Fixed NRE
13130 in DefaultExt and only strip off first leading dot. Improve exception
13131 message when invalid Filter is set. Do not ignore InitialDirectory if
13132 it does no exist. Store specified Title, and if empty use default
13133 title (depending on type of dialog). Added an internal DialogTitle
13134 property for retrieving dialog title. Fixed logic of displayed dir to
13135 more closely match MS. Avoid setting ComboBox.Text to a zero-length
13136 string as its buggy.
13137 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
13138 FileName is a zero-length string (it can never be null). Override
13139 DialogTitle property to set default title of dialog box.
13140 * SaveFileDialog.cs: Override DialogTitle property to set default
13141 title of dialog box.
13143 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
13145 * FileDialog.cs: Modify default text of filename and filetype labels
13146 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
13147 after we've updated the SelectedIndex. Fixes part of bug #80887.
13148 * SaveFileDialog.cs: Set text of filetype label.
13150 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13152 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
13153 label field. Needed by latest Jackson's fixes for ListView.
13155 2007-02-16 Andreia Gaita <avidigal@novell.com>
13157 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
13158 print preview images.
13160 2007-02-16 Jackson Harper <jackson@ximian.com>
13162 * ListView.cs: Make AfterLabelEdit work correctly.
13163 * FileDialog.cs: After changing the name of the folder, we have to
13164 make sure that it is created, or that we pop up an error because
13167 2007-02-16 Jackson Harper <jackson@ximian.com>
13169 * X11Dnd.cs: Implement aliases on mime handlers, so things like
13170 System.String are mapped to text.
13171 - Handle dataobjects, getting all the possible formats out of them
13172 - We dont need the drag event args before we give feedback. This
13173 allows feedback cursors to be immediate before selections have
13176 2007-02-16 Jackson Harper <jackson@ximian.com>
13178 * TextBoxBase.cs: Modified the method for inserting images to
13179 taking a line and position instead of tag and position.
13180 * RichTextBox.cs: Handle PngBlip data by inserting the png image
13182 * TextControl.cs: Allow images to be inserted as the first tag of
13184 - Fix some off by one issues when we assume the first tag is a
13185 text tag, not an image tag.
13187 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13189 * ListView.cs: Set focus to ListView when ItemControl gets a
13190 WM_RBUTTONDOWN message, to mimic .Net behaviour.
13191 Fixes part of #80467.
13193 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13195 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
13196 validate Text input (if null or empty string reset Value to default
13197 value). Fixes #80830.
13199 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13201 * ListView.cs: Set owner as null for columns and items when
13202 Dispose is invoked. Fixes #80607.
13204 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
13206 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
13207 showing DropDowns, don't show a Grip when doing Flow layout.
13208 [This fixes the toolbox in PDN 2.72.]
13209 * ToolStripItem.cs: Add Anchor property and some internal properties to
13210 reduces needed changes to FlowLayout.
13211 * ToolStripOverflow.cs: Remove unused variable.
13212 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
13213 use it in the layout calculations.
13215 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13217 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
13218 reported in #79640.
13220 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
13223 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13225 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
13226 MeasureString format, it can make button very large in some cases, it is
13227 strange but is what win32 do.
13229 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13231 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
13234 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
13235 rendering, the value is based on MenuAccessKeysUnderlined.
13237 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13239 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
13242 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
13244 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
13245 and use MenuAccessKeysUnderlined instead.
13247 2007-02-13 Andreia Gaita <avidigal@novell.com>
13249 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
13250 A selected control would not get a Focus call if:
13251 - the default active control of the container is the same as
13252 the one that was selected
13253 - we are switching from one container to another
13254 Under these conditions, the container being selected already has
13255 an active_control, which is the same as the one being activated,
13256 so set_ActiveControl would always return and not send the Focus
13257 call. Fix to check if the currently active control of the container
13258 is actually focused.
13260 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
13262 * StatusStrip.cs: Implement the spring layout.
13263 * ToolStripControlHost.cs: Make sure the hosted control's visibility
13264 always matches the host.
13265 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
13266 and TextAfterImage.
13268 2007-02-13 Andreia Gaita <avidigal@novell.com>
13270 * Control.cs: Code reorganization only.
13271 - Reorganize the WndProc cases so that each case has it's own handling method,
13272 to help with the no-line-numbering stack traces.
13273 - Formatting changes (it's vstudio's fault, really :p)
13275 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
13277 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
13278 Thread.CurrentUICulture to match DateTimePicker's (and MS)
13281 2007-02-12 Jackson Harper <jackson@ximian.com>
13284 * TextBox.cs: By default we have a non multiline document
13285 - use the multiline property instead of the internal variable
13286 * TextBoxBase.cs: Treat multiline and non multiline the same in
13288 - Use the documents multiline flag instead of tracking it ourself
13289 * TextControl.cs: Attempt at getting multiline to match MS
13290 behavior. Lines now track an offset, which is either their X or Y
13291 offset depending on whether or not we are in multiline mode.
13292 - Update all the methods to understand that lines have an X value.
13293 - Fix crash in Undo::Duplicate when empty lines are deleted.
13295 2007-02-12 Everaldo Canuto <everaldo@simios.org>
13297 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
13298 code moved to properties PreferredHeight and PreferredWidth. It solve the
13299 all problems when preferred sizes must be recalculated. Fixes #80801.
13301 2007-02-12 Everaldo Canuto <everaldo@simios.org>
13303 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
13304 font height when compatible_text_rendering is false. Partially fix #80801.
13306 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13308 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
13310 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13312 * Form.cs: Improved exception messages in ShowDialog.
13314 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13316 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
13317 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
13318 if not set. Fixes bug #80764. Avoid accessing current_settings field
13321 2007-02-08 Everaldo Canuto <everaldo@simios.org>
13323 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
13326 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
13327 public in 2.0 and for easy maintenance and dont break compatibility it is
13330 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13332 * ToolStripItem.cs: Implement using images from ImageList.
13334 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13336 * DateTimePicker.cs: Change default date-formatting culture from
13337 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
13338 seems to be the way MS does it.
13340 2007-02-08 Andreia Gaita <avidigal@novell.com>
13342 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
13343 (the 6 was cut off on the right side)
13345 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13347 * Form.cs: Tell MenuStrips to close when the form is clicked.
13348 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
13349 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
13350 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
13351 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
13352 support for Overflow, where items that do not fit are automatically
13353 reparented to a drop down menu.
13354 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
13355 Also: fixes bug #80747.
13357 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13359 * ComboBox.cs: Remove warning (unused code).
13360 * ScrollableControl.cs: Remove warning for 1.1 profile.
13362 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13364 * Form.cs: Remove a warning.
13366 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13368 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
13369 'g' specifier, not documented anywhere, but seems to always show up
13370 as a single space (might have something to do with the DateTime 'g'
13371 specifier, which is the era format, but since DateTimePicker can't
13372 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
13373 won't crash if the format has an unmatched quote. Now shows
13374 single-character formats correctly. Fixes #80744.
13376 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13378 * StatusStrip.cs: Stretch property needs to call base.Stretch,
13379 not this.Stretch to fix stack overflow. [Fixes bug #80760]
13381 2007-02-07 Chris Toshok <toshok@ximian.com>
13383 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
13384 background color. it overwrites the background image we've
13385 already painted. Fixes #80599.
13387 2007-02-07 Chris Toshok <toshok@ximian.com>
13389 * DataGrid.cs: return immediately from Edit() when there are no
13390 columns. Fixes #80662.
13392 2007-02-07 Chris Toshok <toshok@ximian.com>
13394 * MessageBox.cs: fix #80625. don't always show the Help button in
13395 2.0. use the displayHelpButton parameter to determine if we
13396 should show it. Also, make the internal show_help field private.
13398 2007-02-07 Chris Toshok <toshok@ximian.com>
13400 * Control.cs (SetVisibleCore): check in the proposed patch for
13401 80604, and set is_visible before calling CreateControl.
13403 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
13405 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
13406 MonoInternalNote. This is added automagically by VS2005, so let's not crash
13409 2007-02-06 Everaldo Canuto <everaldo@simios.org>
13411 * MenuAPI.cs: hotkey_active internal field added, it is required because
13412 we need to know when hotkeys must be draw, before this change a keystate
13413 Navigating was used but we can have menu in navigating state without
13414 hotkeys. Fixes #80694.
13416 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
13418 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13420 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
13421 corresponding events and methods to be internal for 1.1 profile and
13422 public for 2.0 profile (required by SizeGrip).
13423 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
13424 implicit control list). Don't set the size nor the location of the
13425 SizeGrip anymore as it's not needed.
13426 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
13427 draw directly on the captured control (fixes #80656). Removed
13428 ShowGrip (it wasn't used anywhere), redraw (always true), added
13429 GetDefaultSize and GetDefaultRectangle to calculate defaults.
13430 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
13431 be called from SizeGrip.
13433 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13435 * Timer.cs: Throw ArgumentException if Interval <= 0.
13437 2007-02-05 Jackson Harper <jackson@ximian.com>
13439 * TreeView.cs: We need to check scrollbar visibility when window
13440 visibility is updated, because non visible trees don't ever add
13442 * Cursor.cs: We want the override cursor to be reset to NULL when
13443 we set current cursor to the default cursor.
13445 2007-02-05 Jackson Harper <jackson@ximian.com>
13447 * TextControl.cs: Don't have crlfs when we are non multiline.
13448 - Consolidate the line position.
13450 2007-02-05 Jackson Harper <jackson@ximian.com>
13452 * X11Keyboard.cs: BACK+CTRL gets a special char code.
13454 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13456 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
13457 handling LeaveNotify->NotifyUngrab in order to send
13458 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
13459 after calling XUngrabPointer, so we call WindowUngrabbed directly
13460 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
13461 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
13462 MouseCaptureChanged correctly. Also create handles if changing
13463 Capture (matches MS behaviour).
13465 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13467 * SizeGrip.cs: Make the last change 2.0 only.
13469 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13471 * SizeGrip.cs: If resizing and the capture is lost, revert any size
13472 changes to initial size (fixes #80597).
13474 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13476 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
13478 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13480 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
13481 background) and only allow dragging if enabled. This way the
13482 sizegrip can be used to fill the open square that otherwise would
13483 have been shown in the bottom right corner of ScrollableControl
13484 when ScrollableControl is not suppose to support sizing.
13485 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
13486 sizegrip is shown and enabled, and hook up with necessary events.
13488 2007-02-01 Chris Toshok <toshok@ximian.com>
13490 * DataGridTextBoxColumn.cs: clean up the
13491 GetFormattedString/GetColumnValueAtRow combination of functions.
13492 Also fix UpdateUI, and the initial state of
13493 IsInEditOrNavigateMode.
13495 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
13496 aren't supposed to scroll the textbox here, we're supposed to
13497 scroll the datagrid.
13499 2007-02-01 Chris Toshok <toshok@ximian.com>
13501 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
13502 setting the position.
13504 2007-02-01 Chris Toshok <toshok@ximian.com>
13506 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
13507 here, since the most recent focus fixes keep us from generating
13508 the Leave event when our textbox gets focus.
13509 (Edit): we should be passing null for the column style's
13510 instantText parameter.
13512 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
13514 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
13515 raised. Fixes menu text/icons not showing up in PDN.
13517 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
13519 * Control.cs: Remove code in constructor that makes every
13520 control with WS_CHILD set have initial location -1, -1.
13522 2007-01-31 Jackson Harper <jackson@ximian.com>
13524 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
13526 * XplatUIX11.cs: Give teh keyboard to teh dnd.
13528 2007-01-31 Jackson Harper <jackson@ximian.com>
13530 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
13531 - Remove some debug code.
13533 2007-01-31 Jackson Harper <jackson@ximian.com>
13535 * XplatUIX11.cs: If you set the override cursor during a grab, it
13536 should actually override the grab cursor. This comes into play
13537 when you are setting custom cursors in a DND feedback method.
13539 2007-01-31 Jackson Harper <jackson@ximian.com>
13541 * X11Dnd.cs: Add support for handling the QueryContinue and
13542 GiveFeedback events.
13543 - Cancel drag and drop actions when the escape key is clicked.
13544 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
13545 can handle the ESCAPE key.
13546 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
13547 done when dnd events are continued after the button is released.
13548 - Add a new helper method so that dnd can translate key events.
13550 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
13552 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
13553 make it more obvious what is happening.
13555 2007-01-30 Jackson Harper <jackson@ximian.com>
13557 * XplatUIX11.cs: Don't break when handling button release in drag
13558 and drop operations. We need that BUTTONUP message to get through
13559 so capture is released.
13560 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
13561 this is handled automatically when the mouse is down.
13563 2007-01-30 Jackson Harper <jackson@ximian.com>
13565 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
13566 is closed, so we need to make sure that we aren't changing the
13567 dialog result when the OK (Open or Save) button has been clicked
13568 and we are closing the window ourselves. Note we don't need to
13569 worry about the cache being written in this case, because it was
13570 already done in the previous FilOk call.
13572 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13574 * DateTimePicker.cs: Remove a warning.
13575 * ComboBox.cs: Remove a couple of warnings.
13577 2007-01-29 Chris Toshok <toshok@ximian.com>
13579 * XplatUIX11.cs: don't crash, and remove the icon if the user has
13580 set one, if SetIcon is passed a null icon.
13582 2007-01-29 Andreia Gaita <avidigal@novell.com>
13584 * TextBox.cs: Redraw when the password characters changes
13585 * TextControl.cs: Check if textbox has a password char and draw
13586 a line of password chars instead of the text in the line. LineTag gets
13587 an extra Draw() method which allows document.Draw to override the text
13588 that will be drawn. Removes 1024 char limitation on length of passworded
13591 2007-01-29 Jackson Harper <jackson@ximian.com>
13593 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
13594 single chars is not.
13596 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
13598 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
13599 one pixel. Fix a StackOverflowException caused by an overload wrongly
13602 2007-01-26 Everaldo Canuto <everaldo@simios.org>
13604 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
13605 also remove ProcessArrowKey and put the code inside ProcessKeys.
13607 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
13609 * PaddingConverter.cs: Added.
13611 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13613 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
13614 ShowPanels is false (fixes #80600). Only draw up to 127 characters
13615 of text (fixes #80601). For panels clip the text to draw to the
13616 panel (fixes #80603).
13618 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13620 * ComboBox.cs: Fixed implementation of ResetText.
13622 2007-01-25 Jackson Harper <jackson@ximian.com>
13624 * TextControl.cs: For the last char of a line we need to use the
13625 line size, not that chars width, since it won't actually be
13626 computed since the right side of a char is based on the start of
13627 the left side of the next char, and the next char does not exist.
13629 2007-01-25 Chris Toshok <toshok@ximian.com>
13631 * Splitter.cs: fix the new unit tests, and reindent some switch
13634 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13636 * ComboBox.cs: Implemented 2.0 methods and events.
13637 * TextBoxBase.cs: Added OnTextUpdate, so that
13638 ComboBox.ComboTextBox can inform ComboBox of it.
13640 2007-01-25 Jackson Harper <jackson@ximian.com>
13642 * TextControl.cs: Respect ShowSelection when deciding whether or
13643 not to display the caret, this allows comboboxes to have carets
13644 when the combotextbox does not have focus.
13646 2007-01-25 Jackson Harper <jackson@ximian.com>
13648 * TextControl.cs: Add a Suspend/Resume for updating, basically the
13649 same as the Suspend/Resume for recalc, except this will do actual
13651 - New Undo manager, works much like the MS version.
13653 * TextBoxBase.cs: The Cut operation is undoable.
13655 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13657 * TextBoxBase.cs: Don't antialias text. Makes it look way better
13658 on Windows (no difference on Linux).
13660 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13662 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
13663 we don't want to activate any windows. Fixes #79433.
13665 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
13667 - ButtonBase.cs: Fix capitalization of parameter: disposing.
13670 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
13673 - Move to using System.ComponentModel.EventHandlerList
13674 - Replace Refresh with Invalidate
13675 - Clear the mime filecache on closing
13676 - Some other memory reducing work. After beeing closed FD now uses
13677 only about 300 KB for the fdo mime stuff plus the memory of the
13679 * Mime.cs: Changed coding style and removed unnecessary commented
13680 code. Some more memory memory reducing work.
13682 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13684 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
13685 a few other missing 2.0 properties.
13686 * Theme.cs: Added DrawFlatStyleComboBox.
13687 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
13689 2007-01-24 Chris Toshok <toshok@ximian.com>
13691 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
13692 wake_waiting flag, not just when there's data to be read. if we
13693 don't, then future wakeup's won't reach us and we'll be doomed to
13694 wait for the entire 1 second timeout forever (unless there are X
13697 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13699 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
13700 until you pass Items.Count, not Items.Count - 1 like 1.1.
13702 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
13704 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
13706 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13708 * ToolStripContainer.cs: The recent Dock fix exposed that I was
13709 adding the panels in the wrong order.
13711 2007-01-24 Jackson Harper <jackson@ximian.com>
13713 * TextBoxBase.cs: When we move the caret we also need to move the
13714 selection, this fixes some random crashing after doing select
13715 text, unselect, delete a char, paste.
13717 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13719 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
13721 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13723 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
13724 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
13725 * ToolBar.cs: Force redraw in BackgroundImageChanged.
13727 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13730 - Implement support for vertical toolbars. Fixes #80539;
13731 - Call LayoutToolBar when resize, it fix some other problems in layout.
13732 - Rename requested_height to requested_size, as we can have width on it
13733 when toolbar is vertical.
13734 - Create a private property "Vertical" that uses Dock to verify when
13735 toolbar is vertical or not.
13736 - Set ControlStyles when change Dock property.
13737 - Refactory in LayoutToolBar to have better variables names and to support
13739 - Fixes default value for ButtonSize when button count is equal zero, size
13740 must be (39, 36) test case writed.
13742 2007-01-23 Chris Toshok <toshok@ximian.com>
13744 * Control.cs: fix the checks so that they work correctly for mdi
13747 2007-01-23 Chris Toshok <toshok@ximian.com>
13749 * Control.cs: ControlCollection seems to have super-secret
13750 abstraction breaking knowledge of Mdi containers. allow MdiClient
13751 to add toplevel controls.
13753 2007-01-23 Chris Toshok <toshok@ximian.com>
13755 * Control.cs: throw an ArgumentException if a toplevel control is
13756 added to our control collection from ControlCollection.Add, as
13757 well as from ControlCollection.IList.Add. This fixes the
13758 ControlSetTopLevelTest.TestTopLevelAdd unit test.
13760 Also, in ControlCollection.IList.Add, don't through an
13761 ArgumentNullException, throw an ArgumentException, when value ==
13762 null. This matches MS.
13764 2007-01-23 Chris Toshok <toshok@ximian.com>
13766 * BindingSource.cs: initial, incomplete, implementation of
13769 2007-01-23 Jackson Harper <jackson@ximian.com>
13772 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
13773 that I can fix a broken unit test (TextBoxTest::ClearUndo)
13775 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13777 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
13779 2007-01-23 Andreia Gaita <avidigal@novell.com>
13781 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
13782 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
13783 IndexOfKey() for 2.0
13785 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
13787 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
13788 to prevent it from changing z-order.
13789 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
13790 leave UI updates in MdiWindowManager.
13791 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
13792 1 sized (NC handling goes weird on Linux otherwise).
13793 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
13794 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
13795 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
13796 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
13797 and SetWindowState(s) to allow for changing the size of an activated child
13798 before activating it (reduces a lot of flicker).
13800 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13802 * Form.cs: Changing FormBorderStyle has different semantics based
13803 on whether the Form is visible or not. If not visible, don't change
13804 the Size. But InvalidateNC needs to be called to force the window
13805 to pick up the changes and redraw itself. [Fixes bug #80574]
13807 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13810 * ContainerControl.cs: ProcessCmdKey.
13811 * ErrorProvider.cs: new constructor.
13812 * Form.cs: fix AutoValidateEvent compiler warning.
13813 * Label.cs: fix OnAutoSizeChanged compiler warning.
13814 * MenuStrip.cs: fix CanOverflow compiler warning.
13815 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
13816 * TextBox.cs: Dispose.
13817 * ToolStrip.cs: CanOverflow, re-enable double buffering.
13818 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
13819 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
13820 * ToolStripItem.cs: Overflow, RightToLeft properties.
13822 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13824 * Form.cs: Move the layout of the main form to MdiWindowManager.
13825 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
13826 do a layout of the main window to update MdiClient's client area to
13827 the right area. Fixes #80533. Remove the calculation of nc size,
13828 it was just wrong and the correct one is the same as for
13829 InternalWindowManager.
13831 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
13833 * Control.cs: Setting Anchor or Dock needs to reset the other
13834 to its default. [Fixes bug #80556]
13836 2007-01-20 Chris Toshok <toshok@ximian.com>
13838 * CheckedListBox.cs: class status changes.
13840 * ScrollableControl.cs: same.
13842 * RichTextBox.cs: same.
13844 * ContainerControl.cs: same.
13846 * ListView.cs: same.
13848 * NotifyIcon.cs: same.
13850 * MenuStrip.cs: same.
13852 * RadioButton.cs: same.
13854 * CheckBox.cs: same.
13856 * PrintPreviewDialog.cs: same.
13860 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
13862 * TreeNode.cs: Apply Alan's patch for Name property.
13864 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13866 * Form.cs: Implemented SizeGripStyle.
13867 * SizeGrip.cs: Check for minimum and maximum size for the
13868 control being resized and only resize if size has actually
13871 2007-01-19 Chris Toshok <toshok@ximian.com>
13873 * DataGridColumnStyle.cs: stop setting _readonly in the
13874 PropertyDescriptor setter. fixes a unit test failure.
13876 also, rename ParentReadOnly to TableStyleReadOnly, and have it
13877 just consult our table style (if we have one). We don't need to
13878 consult the datagrid readonly attribute because that's passed in
13879 as the _ro arg to Edit. this simplifies things a little.
13881 * DataGrid.cs: use CurrentColumn instead of
13882 current_cell.ColumnNumber just to simplify some of the code.
13884 switch the order of some things in the CurrentCell setter to keep
13885 the previous cell from getting a textbox again -
13886 EnsureCellVisibility causes scrolling to happen, which calls Edit.
13887 So we need to set the new cell before calling it.
13889 call Edit in OnEnter, as does Microsoft.
13891 also, make sure the current table style isn't the one we create
13892 initially when checking to see if it's different than the one
13893 we're setting it to in BindColumns (this fixes #80421).
13895 * GridTableStylesCollection.cs: table styles can have "" for a
13896 mapping name. part of the fix for #80421.
13898 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
13899 Edit significantly.
13901 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13903 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
13904 and less GDI object leaky-er.
13906 2007-01-18 Andreia Gaita <avidigal@novell.com>
13908 * LinkLabel.cs: Add opaque control style
13910 2007-01-18 Jackson Harper <jackson@ximian.com>
13912 * TextControl.cs: Calculate width properly.
13913 - Don't store the tag's X offset, this can be figured out very
13915 - When getting the caret tag make sure to get the last empty tag.
13917 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13919 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
13922 * Control.cs: Color.Empty shouldn't count for previous transparent
13925 2007-01-18 Jackson Harper <jackson@ximian.com>
13929 * TextControl.cs: Starting to merge in some pieces of my older
13930 undo work. Basically just some slight cleanup of the undo API.
13932 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13934 * TrackBar.cs: Fix signature of RightToLeftLayout.
13935 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
13936 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
13937 * Application.cs: Implemented UseWaitCursor.
13939 2007-01-18 Jackson Harper <jackson@ximian.com>
13941 * TextControl.cs: We can't skip tags if any part of the tag is
13944 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13946 * ContainerControl.cs: Override OnLayout.
13948 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13950 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
13952 * ContextMenuStrip.cs: Make sure context menu is shown on top of
13955 2007-01-18 Chris Toshok <toshok@ximian.com>
13957 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
13958 (leftover from the container_selected days, I'd wager). fixes bug
13961 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13963 * Control.cs: Apply patch from George to fix the new testcase on
13964 bug #80451. We can't just check for Color.Transparent, we need
13965 to check if the back color's alpha channel is < 255.
13967 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13969 * Form.cs: Move setting show_icon = true to before the constructor
13970 so that the base constructor has that information when it calculates
13971 the form's size. Was causing forms to be (6, 6) bigger than they
13972 were supposed to be. Thanks for catching this Rolf!
13974 2007-01-18 Jackson Harper <jackson@ximian.com>
13976 * TextControl.cs: When replacing a selection we need to invalidate
13977 from the initial selection start, because selection start is moved
13978 to the end of the replacement.
13980 2007-01-18 Andreia Gaita <avidigal@novell.com>
13982 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
13984 2007-01-18 Chris Toshok <toshok@ximian.com>
13986 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
13989 2007-01-17 Everaldo Canuto <everaldo@simios.org>
13991 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
13992 layout methods and properties from ToolBarButton must be available
13993 into ToolBarButtonInfo.
13995 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13997 * Control.cs: If the control has a transparent background, we
13998 need to refresh it when it moves and when it's parent's background
13999 image changes. [Fixes bug #80451]
14001 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14003 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
14005 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14007 * XplatUIWin32.cs: Implement proper double buffering for Windows.
14008 [Fixes bug #80447, and probably speeds up things as well]
14010 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14012 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
14013 * XplatUIWin32.cs: We need to recalculate NC size after changing
14014 window style to toolwindow (otherwise the client rectangle will be
14015 3 pixels to small for some reason).
14016 * MdiWindowManager.cs: Revert NC size calculations to match how
14017 they are calculated only based on window styles (to match
14018 Win32AdjustWindowRectEx, since otherwise when setting size or
14019 location, Control will call Win32AdjustWindowRectEx to update client
14020 size, which would provoke a paint, then we'd get a NCCALCSIZE and
14021 calculate a different value of client size causing another paint
14023 * InternalWindowManager.cs: When moving or resizing a window only
14024 update size or location if they actually changed.
14025 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
14026 (seems to match Windows behaviour better). Cleaned up
14027 ManagedWindowDecorations to draw what's needed and nothing else
14028 (was drawing borders and lines where they shouldn't be)
14029 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
14030 (style = 0xFFFF) and takes into account caption height when
14031 calculating window rectangle.
14033 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14035 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
14036 can be added to toolbar multiple times, we need to maintain a list of
14037 button information for each positions.
14039 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14041 * ToolBar.cs: Some small stetic changes.
14043 2007-01-16 Jackson Harper <jackson@ximian.com>
14045 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
14046 that allow us to have nested recalc = false blocks.
14047 - Add paste support for images in the RichTextBox
14048 * RichTextBox.cs: flush the text after the color is changed, so
14049 the change takes effect.
14050 - Use SuspendRecalc
14051 - Some extra debugging info
14052 * TextControl.cs: Tags no longer track their length, it is just
14053 computed from the next tags length, this makes things a little
14054 simpler and reduces places that we have to track length changes.
14055 - Refactored the linetag class a little so we could make it
14056 a base class for different kinds of tags
14057 - Created a image tag, a tag that can have a single image inserted
14059 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
14060 that we can call suspend multiple times.
14061 - Add some debugging methods
14063 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14065 * MdiClient.cs: Add ActivatePreviousChild for
14066 mdi child window navigation.
14067 * Form.cs: Use MdiClient.ActivateNextChild/
14068 ActivatePreviousChild instead of Form.SelectNextControl
14069 to select the next/previous child since
14070 SelectNextControl doesn't do it in the same order
14071 as mdi children should do it.
14073 2007-01-16 Chris Toshok <toshok@ximian.com>
14075 * Control.cs: remove container_selected field.
14077 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14079 * MdiClient.cs: Update main form's ActiveChild when
14080 updating keyboard focus for the mdi child.
14082 2007-01-16 Jonathan Pobst <jpobst@novell.com>
14084 * Control.cs: PreferredSize fix.
14086 * Form.cs: Add several 2.0 events, properties, and methods.
14088 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
14090 * Form.cs: Provide meaningful message when MdiParent is assigned a
14091 Form that is not an MdiContainer.
14093 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14095 * MdiClient.cs: Update main form's ActiveChild when
14096 activating a mdi child.
14098 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14100 * MdiWindowManager.cs: Fix NRE when merging menus and main form
14101 doesn't have a menu.
14103 * Form.cs: Request NCRecalc after creating a mdi child window.
14104 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
14105 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
14107 * MdiClient.cs: Add new method SendFocusToActiveChild that either
14108 sends keyboard focus to the active child, or to the MdiClient
14109 if there are no child forms.
14111 2007-01-15 Chris Toshok <toshok@ximian.com>
14113 * ListView.cs: drop the *Internal overrides, just do our work in
14114 ItemControl's WndProc instead.
14116 * UpDownBase.cs: a few large changes. Fix up the Selectable state
14117 of the various controls, and forward the events properly (in the
14118 same manner as MS) from the textbox to the UpDown. Also the
14119 ActiveControl of the UpDownBase gets set properly now. Finally,
14120 we don't call UpdateEditText from the ctor. Fixes bug #79957.
14122 * NumericUpDown.cs: set Text in the ctor.
14124 * DomainUpDown.cs: call UpdateEditText in the ctor.
14126 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
14127 so even a Selectable = false textbox can be focused if you click
14130 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
14131 just add their handling in their respective WndProc's. Also add
14132 an explicit FocusInternal method that doesn't consult CanFocus
14133 before calling Select(this).
14135 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
14136 do our work in WndProc instead.
14138 * TabControl.cs: same.
14140 * ComboBox.cs: same.
14142 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14144 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
14147 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14150 * ThemeWin32Classic.cs: Don't draw the item text outside
14151 item bounds in Details view, as well as use trimming.
14154 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14156 * Form.cs: Implement Form.ShowIcon.
14158 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
14159 null, which when combined with the DlgModalFrame window style removes
14160 the icon from the title bar.
14162 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14164 * Control.cs: Call OnMouseClick after OnClick. (2.0)
14166 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14168 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
14169 menu when mdi child windows theres a menu, uses insert to get icon
14170 at first position. Partially fix #80006.
14172 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14174 * Clipboard.cs: Implement 2.0 methods.
14176 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14178 * Menu.cs: Implement Insert method of MenuItemCollection class
14181 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14183 * ListView.cs: Implement 2.0 FindItemWithText method.
14185 2007-01-11 Everaldo Canuto <everaldo@simios.org>
14187 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
14188 to calculate menu bar size. Fixes #80290.
14190 2007-01-11 Everaldo Canuto <everaldo@simios.org>
14192 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
14194 2007-01-11 Chris Toshok <toshok@ximian.com>
14196 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
14199 2007-01-11 Chris Toshok <toshok@ximian.com>
14201 * LinkLabel.cs: make sure to call base.Select in our Select method
14202 if it turns out we're going to be selected (i.e. if we have a link
14203 that is going to receive focus). That way our container's
14204 ActiveControl is updated properly.
14206 2007-01-11 Chris Toshok <toshok@ximian.com>
14208 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
14209 they have 1 or more links. this fixes the crash gert reported.
14211 2007-01-11 Andreia Gaita <avidigal@novell.com>
14213 * ContainerControl.cs: Remove ContainerSelected flag, not needed
14216 * Control.cs (Controls.Add): Check if control to be added to the collection
14217 is a top level control, and throw an ArgumentException if it is.
14218 Remove ContainerSelectedFlag, not needed anymore.
14220 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
14221 top most control doesn't activate the form. This fixes a problem in the
14222 MessageBox, where the default button wouldn't get focus because the form
14223 was activated before being Loaded - when the Owner is set, SetTopMost is
14224 called, and it would activate it.
14226 2007-01-11 Jonathan Pobst <jpobst@novell.com>
14228 * Button.cs: When clicked and setting the parent form's DialogResult,
14229 use FindForm instead of Parent, since parent could be a container
14230 control and not the Form. Fixes bug #80495.
14232 2007-01-10 Chris Toshok <toshok@ximian.com>
14234 * Form.cs: move the call to SendControlFocus into the same
14237 2007-01-10 Chris Toshok <toshok@ximian.com>
14239 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
14240 It breaks in the face of the new ActiveControl stuff, and should
14243 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
14244 activecontrol's focus if it's not already set, after we set
14245 ActiveControl, but before we call OnActivated. Re-fixes #79667
14246 after the previous focus/active control fixes regressed it.
14248 * Control.cs: reindent some code.
14250 2007-01-10 Chris Toshok <toshok@ximian.com>
14252 * Splitter.cs: clearing some outstanding changes from my tree.
14253 Replace all accesses (not writes) to the internal dock_style field
14254 with the Dock property.
14256 2007-01-10 Chris Toshok <toshok@ximian.com>
14258 * Control.cs: make FireEnter, FireLeave, FireValidating, and
14259 FireValidated virtual.
14261 * Form.cs: override and don't chain up calls to FireEnter and
14264 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14266 * ListView.cs: Add more text padding space when using
14267 auto resize for columns (the previous value didn't work fine).
14269 * ThemeWin32Classic.cs: Update text position inside columns,
14270 to match the appeareance of .Net.
14272 * ColumnHeader.cs: When using auto resize, only the Width should
14273 depend on the sub items, not the Height. Also, set width after
14274 auto resizing (the value of Width should never remain as -1 or -2).
14276 2007-01-10 Chris Toshok <toshok@ximian.com>
14278 * Application.cs: fix compilation errors when debug is enabled.
14280 2007-01-10 Chris Toshok <toshok@ximian.com>
14282 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
14283 add some nice ascii art pictures and explanation of the process).
14284 (GetMostDeeplyNestedActiveControl): new utility function we need
14285 because our ActiveControl can refer to a child container with its
14288 * Form.cs (OnActivated): remove the call to SelectActiveControl
14289 from here, since you can override this method and not chain up,
14290 and winforms still sets the active control.
14291 (OnCreateControl): also remove the unnecessary SelectActiveControl
14293 (WndProc): it's actually called from the WM_ACTIVATE block, just
14294 before calling OnActivated.
14296 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
14297 inside the else. the ActiveControl setter will end up setting
14298 focus on @control. This keeps us from setting it again (and
14299 generating an extra LostFocus/GotFocus pair).
14300 (Select (bool, bool)): reindent.
14302 2007-01-10 Jonathan Pobst <jpobst@novell.com>
14304 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
14305 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
14306 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
14307 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14308 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
14309 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
14310 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
14311 ToolStripTextBox.cs: Another wave of corcompare work.
14313 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14315 * ColumnHeader.cs: Implement 2.0 AutoResize method using
14316 the Width property.
14318 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
14319 methods by callling Column.AutoResize method on columns.
14321 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
14323 * Control.cs: Provide proper implementations of PreferredSize
14324 and GetPreferredSize (2.0).
14326 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
14328 * Form.cs: Remove one character (!) to make my previous OnClosing
14329 stuff work for modal windows like MessageBox.
14331 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14334 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
14335 ListView.Columns to get the last displayed column. Fixes #80452.
14337 2007-01-09 Everaldo Canuto <everaldo@simios.org>
14339 * Label.cs, LinkLabel.cs: Source code identation fixes.
14341 2007-01-08 Everaldo Canuto <everaldo@simios.org>
14343 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
14344 we dont need to invalidate only borders because when we invalidate four
14345 border lines the invalidate's generates a complete redraw of button,
14346 because it now invalidate a complete rect some other redraws operations
14347 are fixed. Fixes #80196.
14349 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
14350 Remove ToolBarInvalidateEntireButton as it is not used.
14352 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
14354 * Form.cs: Make sure that both OnClosing and OnFormClosing are
14355 called for 2.0 profile.
14356 * CloseReason.cs: Make class internal for 1.1.
14358 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
14360 * ToolStripManager.cs: Implement FindToolStrip functionality.
14361 * ToolStrip.cs: Register and unregister with ToolStripManager.
14363 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
14365 * Control.cs: This was messy. 2.0 moves much of ControlCollection
14366 to ArrangedElementCollection. Implemented this with as few #if's as
14367 possible (which is still too many).
14369 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
14371 * Control.cs: Implement SizeFromClientSize() [2.0].
14373 2007-01-07 Everaldo Canuto <everaldo@simios.org>
14375 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
14376 use Theme.BorderSize to calculate area instead of static value 1,
14377 by the way use new BorderStaticSize instead Border3DSize when
14378 border_static is true. Fixes #79537.
14380 * XplatUIOSX.cs: Fix call to GetClientRectangle.
14382 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
14385 2007-01-06 Everaldo Canuto <everaldo@simios.org>
14387 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
14389 2007-01-06 Everaldo Canuto <everaldo@simios.org>
14391 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
14392 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
14395 - border_static field added, it will used to define when a control
14396 theres 3D border but it must be static (thin).
14397 - In GetWindowRectangle use Theme.BorderSize to calculate area
14398 instead of static value 1, by the way use new BorderStaticSize instead
14399 Border3DSize when border_static is true.
14401 * XplatUIX11.cs, XplatUIOSX.cs:
14402 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
14404 * Theme.cs: BorderStaticSize field added.
14406 2007-01-05 Everaldo Canuto <everaldo@simios.org>
14408 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
14410 2007-01-05 Everaldo Canuto <everaldo@simios.org>
14412 * Control.cs: Under InternalBorderStyle call RecreateHangle to
14413 mimic same behavior than win32 that set border only in CreateParams,
14414 it fix problems under CreateParams overrides. Fix #79442 and partial
14417 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
14418 of thi control you must call recreate handle.
14420 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
14421 need to do anything as RecreateHangle will take care about borders.
14423 2007-01-05 Mike Kestner <mkestner@novell.com>
14425 * ListView.cs: hack to eliminate Lost/Got focus notifications on
14426 cycles between the ItemControl and parent. Fixes #80388.
14428 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
14430 * Control.cs: Lazy init layout engine. Do not directly use
14431 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
14433 2007-01-05 Chris Toshok <toshok@ximian.com>
14435 * DataGrid.cs: don't forceably rebind columns in SetDataSource
14436 unless our list manager has changed (i.e. unless we have reason to
14437 believe our columns have changed). Fixes #80422.
14439 also, disable the call do BindColumns in
14440 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
14441 1.1 the event isn't raised in response to a column addition on a
14444 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
14446 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
14447 that inheritors can not call it if they choose. Fixes bug #80456.
14449 2007-01-05 Andreia Gaita <avidigal@novell.com>
14451 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
14452 doesn't blow up with a null exception on marshalling.
14454 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
14456 * Control.cs: Implement several 2.0 protected properties and methods.
14457 Ensure that all necessary events are being called when properties
14460 2007-01-05 Mike Kestner <mkestner@novell.com>
14462 * ListView.cs: implement PgUp/PgDn for Details view. Also
14463 fixes First/LastVisibleIndex to use the item_control.ClientRect
14464 instead of the parent control. Fixes #80378.
14466 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
14468 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
14469 determine whether to use yard-pound or not (bug #78399).
14471 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14473 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
14474 problems. So it is time to bring back the old popupbutton colors.
14476 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14479 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
14480 property by using the internal information of the
14481 columns order in ListView.
14483 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
14485 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
14486 Add 2.0 Tag properties.
14488 * LinkArea.cs: Add 2.0 ToString method.
14490 2007-01-03 Chris Toshok <toshok@ximian.com>
14492 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
14493 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
14494 when we're editing, which fixes #80047.
14496 2007-01-03 Chris Toshok <toshok@ximian.com>
14498 * Form.cs: apply patch contributed by Dominik Seichter. fixes
14501 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
14503 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
14504 property and implementation.
14506 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
14507 for MdiWindowListItem property.
14509 * ToolStripDropDown.cs: Don't consider hidden menu items while
14510 laying out the menu.
14512 2007-01-03 Andreia Gaita <avidigal@novell.com>
14514 * SendKeys.cs: window handle is not needed in win32, so just
14515 get the active window for X after parsing keys and don't use
14516 it when building the message; it is passed by parameter to the
14517 Xplat method and used there to build the message instead. Also,
14518 wait for events to be processed on SendWait, as opposed to Send,
14519 which doesn't wait :) Playing with threads and Send() completely
14520 hangs on ms.net, only SendWait() works.
14523 X11Display.cs: Check for valid window handle.
14525 2007-01-03 Jackson Harper <jackson@ximian.com>
14527 * TextControl.cs: Need to prevent wrap calculations when replacing
14528 text (this was there before i removed it accidently).
14529 - Don't update the cursor during the positioning, just set it to
14530 selection_start at the end of the operaion.
14532 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14535 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
14537 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14539 * MonthCalendar.cs: Added Click and DoubleClick events again,
14540 but this time they only hide Control's Click and DoubleClick.
14542 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
14544 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
14545 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
14547 2007-01-02 Jackson Harper <jackson@ximian.com>
14549 * TextBoxBase.cs: We move the caret with the split now, so we
14550 don't need to explicitly move the caret after splitting. This
14551 fixes the caret bumping down an extra line on Enter.
14553 2007-01-02 Miguel de Icaza <miguel@novell.com>
14555 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
14558 * ScrollableControl.cs: Add Scroll event.
14560 2007-01-02 Mike Kestner <mkestner@novell.com>
14562 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
14563 to fix all hdr height padding codepaths. Fixes #80207.
14565 2007-01-02 Chris Toshok <toshok@ximian.com>
14567 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
14568 setting it to the Control defaults anyway, and it being after the
14569 Dock set was screwing up layout.
14570 (set_Dock): don't short circuit out of setting base.Dock. Also,
14571 no need to call UpdateStatusBar here, as it'll be re-layed out if
14574 2007-01-02 Mike Kestner <mkestner@novell.com>
14576 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
14577 to header height for width == -1. Fixes the rest of #80207.
14579 2007-01-02 Mike Kestner <mkestner@novell.com>
14581 * ListView.cs: rework the mouse event forwarding everaldo added
14582 to translate the coordinates to the parent control not
14583 raise the parent events until after we've done our work. Hover
14584 needs more work, in the case where HoverSelection is on, because
14585 the item control receives more than one MouseHover per Enter
14586 event, so we need to ensure only the "first" hover gets forwarded.
14587 Opening a minor bug for that.
14589 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
14591 * CheckedListBox.cs: Fixed SelectionMode to match MS.
14592 * ListControl.cs: Implemented AllowSelection property. Removed extra
14594 * ListBox.cs: Implemented AllowSelection property.
14596 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14598 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
14599 SelectedItem, it prevent for errors when you must disable item
14600 before perform click. Fixes #80409.
14602 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14604 * MenuAPI.cs: Prevent second level and beyond submenus to close
14605 until first level when move out side of popup.
14607 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14610 - Down submenu positin in three pixels.
14611 - Closes sub menu when mouse leaves from menu. Fixes #80402.
14613 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14615 * ThemeWin32Classic.cs:
14616 - Fix popup menu size adding one pixel on the top.
14617 - Down menu item border from two to one to mimic Win32.
14618 - Some source identation fixes.
14620 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14622 * ThemeWin32Classic.cs: Use float numbers to calculate size and
14623 position of menu arrows, it fix wrong arrow size.
14625 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14627 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
14628 instead of line, it simplify draw operation and fix it using 3D
14629 borders to mimic Win32.
14631 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
14633 * StatusStrip.cs: Add implementation of the sizing grip.
14635 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
14636 StatusStrip rendering.
14638 2006-12-31 Chris Toshok <toshok@ximian.com>
14640 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
14641 override the layout style (anchor/dock) of the control. assign to
14642 Dock instead. Fixes bug #80416.
14644 * ToolStrip.cs: same.
14646 2006-12-31 Andreia Gaita <avidigal@novell.com>
14648 * ContainerControl.cs: Use ContainerSelected flag to check if
14649 a Container is directly selected, or if Select is called on a
14650 non-container. If a container is directly selected, focus events
14651 should not be raised.
14652 Apply #80411 patch to throw exception on set_ActiveControl if
14653 control is the same as the current one.
14655 * Control.cs: Use ContainerSelected flag (see above).
14656 Add invalidation check to raise event but not invalidate if
14658 Apply #80411 patch.
14661 2006-12-31 Everaldo Canuto <everaldo@simios.org>
14663 * MenuAPI.cs: After click, dont close popup menu when menu is
14664 ContextMenu. Fixes #80399.
14666 2006-12-30 Chris Toshok <toshok@ximian.com>
14668 * ContainerControl.cs: make sure we throw the exception if the
14669 container control doesn't contain the control we're setting
14672 2006-12-30 Chris Toshok <toshok@ximian.com>
14674 * Control.cs (SetTopLevel): fix the exception raised by
14675 SetTopLevel for child controls.
14676 (set_Anchor): call UpdateDistances when setting the anchor type.
14677 This fixes bug #80336.
14679 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14681 * Theme.cs: For now, revert back to 8pt font.
14683 2006-12-29 Everaldo Canuto <everaldo@simios.org>
14685 * MenuAPI.cs: Set popup as active when open a ContextMenu.
14688 2006-12-29 Chris Toshok <toshok@ximian.com>
14690 * Control.cs: reorder the code in OnResize to give the same event
14693 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14695 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
14696 TileHorizontally and TileVertically.
14698 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
14700 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
14701 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
14702 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
14703 Corrected copyright and email adress.
14705 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14707 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
14708 of Exception in FullPath property if no TreeView is associated with
14711 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14713 * Theme.cs: Marked default_font as private, and initialize it in ctor
14714 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
14716 * ThemeGtk.cs: Removed default_font intialization.
14717 * ThemeWin32Classic.cs: Removed default_font initialization.
14719 2006-12-28 Chris Toshok <toshok@ximian.com>
14721 * Control.cs: fix a couple of place where we were creating handles
14722 more aggressively than we should be. Fixes ControlRefresh unit
14725 2006-12-28 Chris Toshok <toshok@ximian.com>
14727 * Control.cs: contrary to what the comment said, Control.Dock does
14728 not supercede Control.Anchor - the last one you assign to decides
14729 the layout behavior. so we need to keep track of which was the
14730 last set. Also, fix some of the affected property arguments in
14731 PerformLayout calls, and remove an redundant parent.PerformLayout
14734 Add a VisibleInternal property, which returns is_visible. We
14735 can/should get rid of all the usage of this field elsewhere.
14737 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14739 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
14740 control style, not DoubleBuffer. Added UseDoubleBuffering property
14741 that indicates whether doublebuffering is enabled and supported.
14742 (comment from and code based on Gert Driesen's patch in #80324).
14745 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14747 * Control.cs: Fixed a NRE.
14749 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14751 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
14754 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14756 * Control.cs: Rewrote double buffering, now a seperate
14757 class handles all the buffering, no Graphics is disposed of
14758 until the painting is finished (earlier implementation
14759 would crash if the control was resized in the OnPaint,
14760 since it would cause the double buffer to be recreated
14761 and the old one disposed), a separate Graphics is
14762 created for every paint (MS behaviour and anyways the state
14763 of the Graphics would have to be saved and restored otherwise)
14765 * XplatUIDriver.cs:
14767 * XplatUI.cs: Added and implemented GetOffscreenGraphics
14768 so that we can get the graphics for the back buffer without
14769 having to create a new one and remove the offscreen_dc parameter
14770 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
14772 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14774 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
14775 Also make virtual all the key-related methods.
14777 * ListViewItem.cs: Make virtual the key related methods for
14778 ListViewSubItemCollection.
14780 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14784 * ThemeWin32Classic.cs:
14785 * Theme.cs: Initial support for Tile view in ListView,
14786 as well as the implementation of the required bits for it (Item
14789 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14791 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
14792 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
14793 Provide useful exception messages.
14795 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14797 * TrackBar.cs: Remove a warning.
14798 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
14799 when used by DateTimePicker, fixes #80287. This also requires that
14800 MonthCalendar implements it's own drawing for the yearly updown control,
14801 otherwise the Capture tracking would be too complicated. Removed the Click
14802 and DoubleClick events (according to comments they were hiding the base class
14803 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
14804 raise these events, not that they cannot be raised. It is possible to raise
14805 them by calling OnClick and OnDoubleClick). Added two internal fields in
14806 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
14807 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
14808 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
14809 event, no longer needed.
14811 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14813 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
14814 true if new value differs from current value.
14816 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14818 * Control.cs: ControlCollection.Count must be public. Fixed build of
14821 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14823 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
14825 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14827 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
14829 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14831 * Control.cs: Invalidates control including when Width and Height is
14832 equal zero or is not visible, only Paint event must be care about
14833 this. Fixes #79913.
14835 2006-12-26 Chris Toshok <toshok@ximian.com>
14837 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
14838 more corcompare work.
14840 * DataGridView.cs: fix compiler warning.
14842 * ColumnHeader.cs: some corcompare work, and also take the
14843 opportunity to make the internal fields private.
14845 * ListView.cs: fix the fallout from the above field change.
14847 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14849 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
14850 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
14851 ToolStripTextBox.cs: Fixes to events and corcompare.
14853 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14855 * ListView.cs: Call owner.OnMousexx event to propagate events from
14856 item to ListView. Fixes #80367.
14858 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14860 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
14861 if value is less than one. ItemHeight should not be set to a value
14862 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
14863 Removed extra tabs.
14865 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14867 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
14868 * ToolStripStatusLabel.cs: Add Spring for Moma.
14870 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14872 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
14873 Fixed code formatting. Removed debug code.
14874 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
14876 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14878 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
14879 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
14880 ArgumentOutOfRangeException if ColumnCount is negative. In
14881 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
14882 less than 4 or higher than 32768.
14883 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
14884 Fixed FormatProvider to return CurrentCulture unless explicitly set.
14885 Fixed IsFormatProviderDefault to return true if FormatProvider has
14886 not been explicitly set.
14888 2006-12-25 Chris Toshok <toshok@ximian.com>
14890 * Application.cs: add a couple of 2.0 events.
14892 2006-12-25 Chris Toshok <toshok@ximian.com>
14894 * Control.cs: fix compiler warning.
14896 * AxHost.cs: corcompare fixes.
14898 * ApplicationContext.cs: corcompare fixes.
14900 2006-12-25 Chris Toshok <toshok@ximian.com>
14902 * Control.cs: only update dist_right/dist_bottom if the
14903 width/height is > 0. this fixes anchored controls being resized
14904 smaller until they disappear and then resized larger again.
14906 2006-12-25 Chris Toshok <toshok@ximian.com>
14908 * Control.cs: a couple of changes. Remove dist_left and dist_top,
14909 since they're nothing more than X/Left and Y/Top, respectively.
14911 Also, move back to a per-control Bitmap/Graphics for
14912 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
14913 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
14916 2006-12-25 Miguel de Icaza <miguel@novell.com>
14918 * MessageBox.cs: Implemented overload that takes a new "bool
14919 displayHelpButton" by adding a new internal field "show_help".
14920 When clicked this will raise the HelpRequested on the owner or the
14923 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
14924 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
14926 * ListView.cs: Add support ColumnWidthChanged and
14927 ColumnWidthChanging.
14929 Add support for ColumnReordered event.
14930 (ReorderColumn): Add NET_2_0 specific support for cancelling the
14933 Very nice codebase!
14935 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
14937 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
14939 2006-12-24 Chris Toshok <toshok@ximian.com>
14941 * GridTablesFactory.cs: 2.0 corcompare work.
14943 * ToolStripContainer.cs: add "override" to
14944 ContextMenuStripChanged, and remove the local event object.
14946 * ToolStripDropDown.cs: same with a couple properties.
14948 * ToolStripPanel.cs: same with AutoSizeChanged event.
14950 * TextBoxBase.cs: add "override" to AutoSizeChanged.
14952 * Form.cs: add the remaining 2.0 events, and do some corcompare
14955 * DateTimePicker.cs: add "new" to padding.
14957 * ButtonBase.cs: use Control's use_compatible_text_rendering.
14959 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
14961 * DataGridView.cs: PaddingChanged is overridden.
14963 2006-12-24 Chris Toshok <toshok@ximian.com>
14965 * Control.cs: corecompare work here too.
14967 * DataGridViewElement.cs, DataGridView.cs,
14968 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
14969 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
14970 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
14971 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
14974 2006-12-24 Miguel de Icaza <miguel@novell.com>
14976 * Control.cs: Switched the error message on the console for a
14977 todo. A review of the code will have to cope with this anyways
14978 (since its a large feature, it is in our radar) and it was
14979 producing too much output when running PDN.
14981 * ToolStripComboBox.cs: Set the text when the SelectedIndex
14982 changes. Applications depend on this (PDN 2.72)
14984 2006-12-23 Chris Toshok <toshok@ximian.com>
14986 * TableLayoutSettings.cs: finish up the corcompare work for this
14989 2006-12-23 Chris Toshok <toshok@ximian.com>
14991 * Control.cs: make SetImplicitBounds internal, do some futzing
14992 with LayoutEngine so that it's available in 1.1, and remove the
14993 entire duplicated code mess from PerformLayout. Use
14994 System.Windows.Forms.Layout.DefaultLayout instead.
14996 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
14998 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15000 * Form.cs: Add MainMenuStrip property.
15002 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15004 * Control.cs: Add ContextMenuStrip property and implementation.
15005 Fix ContextMenu implementation to show menu centered on control when
15006 activated using the keyboard instead of showing at screen (0,0).
15008 * ToolStripDropDown.cs: Fix needed overload of Show ().
15010 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15012 * Menu.cs: Name property added for 2.0 profile.
15014 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15016 * Menu.cs: Update information about FindMenuItem, method to be
15019 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15021 * MenuAPI.cs: When deselect items deselect also selected subitems.
15023 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15025 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
15026 FindSubItemByCoord to found itens that is not active, also an
15027 cheking added to FindSubItemByCoord to search for items only
15028 in visible popup windows. Fixes #80274.
15030 2006-12-22 Everaldo Canuto <everaldo@simios.org>
15032 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
15033 internal property, it be care about change ExStyle.
15035 2006-12-22 Andreia Gaita <avidigal@novell.com>
15037 * ContainerControl.cs: set activeControl for parent forms up the
15038 tree when the new activecontrol is a container.
15039 When validating the active control, if it is a container, also
15040 raise up the validation for it's active control. Fixes #80280
15042 * Control.cs: Add internal property flag and check to prevent
15043 Focus events from getting raised when Select() is called for
15044 a ContainerControl. There are still too many focus events being
15045 raised at the moment though.
15046 Cleaned up the code a bit.
15048 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15050 * Control.cs: Added all missing 2.0 events.and
15051 fixed a couple of corcompare issues.
15052 * TrackBar.cs: Implemented missing 2.0 bits.
15053 * MonthCalendar.cs,
15054 * DateTimePicker.cs,
15055 * MdiClient.cs: Fixed some corcompare issues.
15057 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15059 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
15060 SplitterPanel.cs: corecompare work.
15062 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15064 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
15065 Clean up warnings for BackgroundImageChanged and PaddingChanged
15066 events now that they are implemented in Control.cs.
15068 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15070 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
15072 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
15073 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
15074 of TableLayoutPanel and supporting cast.
15076 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
15079 - GrabWindow now confines the mouse pointer to the confine window.
15080 - Added Win32ClipCursor and Win32GetClipCursor.
15083 - Added CaptureWithConfine to be able to capture and confine
15086 * InternalWindowManager.cs:
15087 - Call CaptureWithConfine instead of Capture if we're an
15088 MdiChild (fixes #79982).
15090 2006-12-21 Chris Toshok <toshok@ximian.com>
15092 * DataGrid.cs: guard against the initial state of selection, where
15093 selection_start == -1. make sure we only select from index >= 0.
15096 2006-12-21 Chris Toshok <toshok@ximian.com>
15098 * Control.cs: we don't need to be so draconian with
15099 UpdateDistances, and we thusly don't need to call it before
15100 calling PerformLayout in ResumeLayout. Fixes bug #80289.
15102 2006-12-21 Daniel Nauck <dna@mono-project.de>
15105 TextBox.cs: Implemented AutoComplete properties.
15107 2006-12-20 Chris Toshok <toshok@ximian.com>
15109 * DataGridView*.cs: some corecompare work.
15111 2006-12-20 Jackson Harper <jackson@ximian.com>
15113 * XplatUIX11.cs: We need to hide the caret when deleting it,
15114 otherwise you get carets left lying around everywhere.
15115 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
15116 prevents getting some weird half drawn caret tracers when
15118 * TextControl.cs: Attempt to reduce the number of times we need to
15119 recreate the caret.
15121 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
15123 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
15125 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15127 * DateTimePicker.cs:
15128 - Implemented missing 2.0 bits.
15129 - Changed some default values to match MS.
15131 2006-12-20 Jackson Harper <jackson@ximian.com>
15133 * TextBoxBase.cs: When changing the font across the document we
15134 can't recalculate after changing each line, since that will cahnge
15136 - PreferredHeight is a little different than i thought.
15137 - When backspacing, move the caret before we do the actual char
15138 delete, because when that delete crosses a wrap boundary the
15139 positional information will change.
15141 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15143 * Control.cs: Added some missing 2.0 bits:
15144 BackgroundImageLayout, BackgroundImageLayoutChanged,
15145 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
15146 add IBindableComponent and IDropTarget implementation.
15148 * MonthCalendar.cs:
15149 - Added all missing 2.0 features:
15150 BackgroundImageLayout, RightToLeftLayout,
15151 OnHandleDestroyed, RightToLeftLayoutChanged,
15152 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
15154 - Rewrote all the BoldDate code, it was completely broken.
15155 - Fixed all the tests (the tests can now be re-enabled, the
15156 problems were not with the tests, but with the control, it was
15159 * DateTimePicker.cs: Changed the location where the
15160 MonthCalendar is shown.
15162 2006-12-19 Chris Toshok <toshok@ximian.com>
15164 * DataGridView.cs: add IDropTarget implementation.
15166 * ToolStripPanel.cs: add IDropTarget implementation.
15168 2006-12-19 Jackson Harper <jackson@ximian.com>
15170 * TextControl.cs: soft now means something different than what it
15171 used to mean, we want to move the caret regardless of whether or
15172 not this break was soft (would we really have wanted the caret
15173 to not move with the break in the old context?)
15174 * TreeView.cs: Make sure we factor in the vert scrollbar when
15175 calculating the horizontal scrollbar's maximum.
15177 2006-12-19 Andreia Gaita <avidigal@novell.org>
15179 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
15180 check for keywords in alternate casing, close bug #80049.
15182 2006-12-19 Chris Toshok <toshok@ximian.com>
15184 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
15185 methods (which all do nothing).
15187 * IDropTarget.cs: add the 4 missing methods.
15189 2006-12-19 Chris Toshok <toshok@ximian.com>
15191 * TableLayoutRowStyleCollection.cs: corcompare work.
15193 * TableLayoutSettings.cs: same.
15195 * TableLayoutStyle.cs: same.
15197 * TableLayoutColumnStyleCollection.cs: same.
15199 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
15201 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
15202 TableLayoutPanel I've had in my local tree for way too long.
15204 2006-12-19 Miguel de Icaza <miguel@novell.com>
15206 * TableLayoutSettings.cs: Finish the public API (still needs all
15207 the logic to update on changes).
15209 * TableLayoutPanelCellPosition.cs: new file.
15211 * TableLayoutRowStyleCollection.cs,
15212 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
15213 TableLayoutSettings.cs: Track the final 2.0 table api.
15215 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15217 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
15218 and Image List 2.0 members for ColummnHeader.
15219 * ListView.cs: Add key-related 2.0 methods for
15220 ColumnHeaderCollection.
15222 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15224 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
15225 ArgumentNullException if items argument is null. Ignore null item in
15226 arrays. Removed extra tabs.
15228 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15230 * MonthCalendar.cs: Fixed InvalidCastException.
15232 2006-12-19 Jackson Harper <jackson@ximian.com>
15234 * TextControl.cs: Don't increment the position here.
15235 - When calculating char positions only add in the line break size
15236 for hard line breaks.
15238 2006-12-19 Andreia Gaita <avidigal@novell.org>
15240 * SendKeys.cs: Changed some things to match ms.net behaviour
15241 when parsing shifted capital letters.
15243 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
15244 Add window handle as parameter to SendInput. X11 needs the
15245 window handle, and the handle being passed to it in the keys
15246 queue is the active control handle (which windows needs), not
15249 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
15250 to support SendKeys on X.
15252 * X11Keyboard: Implement helper method to lookup a linux keycode
15253 given the virtual keycode. Added table of keycode-2-virtualkey
15254 values to support this.
15256 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15258 * ListView.cs: Add support for SelectedIndexCollection
15259 and SelectedItemCollection 2.0 methods. Implement support
15261 * ListViewItem.cs: Add support for ListViewSubItemCollection
15262 2.0 methods. Also, fix an incorrect behavior of AddRange method
15263 (it shouldn't call Clear).
15264 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
15266 2006-12-19 Jackson Harper <jackson@ximian.com>
15269 * TextBoxBase.cs: New args for FormatText
15270 * TextControl.cs: Rewrote the main drawing method, this version
15271 feels a little easier to understand and debug to me. Hopefully it
15272 does to others also
15273 - Fix FormatText to OR in the new formating values. Added
15274 FormatSpecified param, basically this works in the same way as
15275 BoundsSpecified in Control.
15276 - Set the caret properties when the caret is positioned.
15277 - When wrapping text make sure that we calculate the width of the
15279 - when calculating alignments we might have wrapped down to the
15280 next line, so don't search for an individual tag, search for the
15282 - We need to invalidate the selection area when we replace the
15285 2006-12-19 Daniel Nauck <dna@mono-project.de>
15287 * Application.cs: add Restart () 2.0 support
15289 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15291 * MenuItem.cs: Invalidate menu item rectangle after change Enable
15292 property. Fixes #80268.
15294 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15296 * MenuAPI.cs: Dont trigger select event when closes top menu
15297 item. Fixes #80270.
15299 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15301 * MenuAPI.cs: When you click on menuitem only trigger onselect
15302 event for top menu itens. Fixes #80271.
15304 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15306 * MdiWindowManager.cs: Make IconicBounds depend on
15307 the bottom of MdiClient, not the top (fixes #80267)
15309 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15311 * MdiClient.cs: Added missing 2.0 attribute
15313 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15315 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
15316 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
15318 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15320 * MenuAPI.cs: Fix click when menuitem is not popup,
15321 this regression was caused by last commit (#80272).
15323 2006-12-17 Everaldo Canuto <everaldo@simios.org>
15325 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
15326 fire click event or close menu. Fixes #80272.
15328 2006-12-17 Daniel Nauck <dna@mono-project.de>
15330 * ListViewHitTestInfo.cs: add
15332 2006-12-17 Daniel Nauck <dna@mono-project.de>
15334 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
15335 * FlatButtonAppearance.cs: add
15336 * DockingAttribute.cs: add
15338 2006-12-17 Chris Toshok <toshok@ximian.com>
15340 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
15341 and rebind our columns when it does - this way, if you make
15342 changes to the DataTable (or set the Table attribute on a DataView
15343 after setting it as the DataGrid's DataSource, the changes are
15344 made visible.) Fixes bug #80107.
15346 2006-12-17 Daniel Nauck <dna@mono-project.de>
15348 * ListViewGroup.cs: add internal Location property for layouting.
15349 * Theme.cs: add abstract ListViewGroupHeight function.
15350 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
15352 2006-12-16 Andreia Gaita <avidigal@novell.com>
15354 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
15355 Added reset of selected index to 0 when adding first tab page.
15358 * NumericUpDown.cs: Fix NET_2_0 check
15360 2006-12-16 Daniel Nauck <dna@mono-project.de>
15362 * ListViewGroup.cs: fixed DefaultValueAttribute value
15364 2006-12-16 Daniel Nauck <dna@mono-project.de>
15366 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
15368 2006-12-15 Miguel de Icaza <miguel@novell.com>
15370 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
15371 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
15372 ScrollableControl.cs: Add a handful of methods that are
15375 2006-12-15 Chris Toshok <toshok@ximian.com>
15377 * XplatUIWin32.cs: initial implementation of the Reversible
15378 drawing functions. there are some problems. DrawReversibleFrame
15379 doesn't seem to work at all for Dashed FrameStyle, and in the
15380 Thick case there are drawing errors at the corners (we probably
15381 need to bind Rectangle instead of doing moveto/lineto's.)
15383 2006-12-16 Andreia Gaita <avidigal@novell.com>
15385 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
15386 to send blocks of key messages. Send accumulates keys to send with Flush,
15387 while SendWait sends all keys immediately.
15389 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15390 XplatUIX11.cs, XplatUIX11-new.cs:
15391 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
15392 to Win32 SendInput.
15393 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
15395 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
15396 testing for ms.net on this class is very tricky, as the tests run too fast
15397 to allow the hook to release, essentially freezing the keyboard and the
15398 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
15401 2006-12-16 Daniel Nauck <dna@mono-project.de>
15403 * Padding.cs: fixed serialization compability to MS ("_var" field names),
15404 added missing attributes.
15406 2006-12-15 Daniel Nauck <dna@mono-project.de>
15408 * ListViewGroup.cs: Added missing attributes.
15409 * ListViewGroupCollection.cs: Added missing attributes.
15411 2006-12-15 Daniel Nauck <dna@mono-project.de>
15413 * ListViewItem.cs: fixed ListViewSubItem text property.
15415 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15417 * Control.cs: Added missing 2.0 attributes
15419 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15421 * MdiClient.cs: Added missing 2.0 attribute.
15422 * MonthCalendar.cs: Added some missing 2.0 attributes
15425 2006-12-15 Daniel Nauck <dna@mono-project.de>
15427 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
15429 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
15431 * MainMenu.cs: Add the new 2.0 constructor to help out people
15432 using the MainMenu in VS2005.
15434 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15436 * MdiChildContext.cs: Removed it, no longer used.
15437 * MdiClient.cs: Added missing 2.0 attributes.
15439 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15441 * InternalWindowManager.cs: Fix a NullRef with previous
15442 changes for toolwindows.
15444 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15447 - Added AfterTopMostControl to allow for certain controls
15448 to always stay on top when normal controls are brought to
15452 - (DrawInversibleRectangle): Get window rectangle from Win32
15453 in stead of from control, since Win32 doesn't calculate
15454 screen coords correctly from control's Location if it
15455 have docked siblings.
15457 * MdiWindowManager.cs:
15458 - Correct the control menu popup location when clicked on
15459 the maximized form icon. (fixes #80223.1)
15460 - Don't show moving rectangle if mouse hasn't moved from
15461 the original clicked point.
15462 - Removed FormGotFocus handler (not used).
15463 - Calculate the control buttons location from the main
15464 window's size and not client size (fixes #79770).
15465 - Form is now closed when the form icon is double-clicked
15467 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
15469 * InternalWindowManager.cs:
15470 - Moved some MDI-only methods to MdiWindowManager.
15471 - Removed unused properties and methods.
15472 - Unified method naming for methods handling wm messages.
15473 - Moved all message handling to seperate methods for
15476 * ThemeWin32Classic.cs:
15477 - DrawManagedWindowDecorations now draws the title bar
15478 with a gradient brush.
15479 - Add a CPDrawButtonInternal that allows us to specify
15480 light, normal and dark colors for the buttons (control
15481 buttons for MDI children were drawn with the same light
15482 color as the background, therefore loosing the 3D effect).
15485 - Add a CapturedControl property that is used to
15486 determine the control to resize (defaults to parent).
15487 Needed for MdiClient, since its SizeGrip's parent is
15488 MdiClient, but the control to resize is the main form.
15491 - Set SizeGrip's CapturedControl to the main form in order
15492 to resize the main form and not the MdiClient.
15493 - Override AfterTopMostControl to leave the scrollbars
15496 2006-12-15 Daniel Nauck <dna@mono-project.de>
15498 * ListView.cs: fixed ListViewItemCollection AddRange and
15499 implemented ListViewItemCollection AddRange 2.0 support.
15501 2006-12-15 Daniel Nauck <dna@mono-project.de>
15503 * ListViewGroup.cs: Add.
15504 * ListViewGroupCollection.cs: Add
15505 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
15506 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
15507 stub for ImageKey 2.0 support.
15509 2006-12-14 Mike Kestner <mkestner@novell.com>
15511 * ListView.cs: add text padding to the autocalculation for columns
15512 of width -2. Fixes #80207.
15514 2006-12-14 Mike Kestner <mkestner@novell.com>
15516 * ListView.cs: add some index guarding for partial row navigation
15517 logic. Fixes #80250.
15519 2006-12-14 Mike Kestner <mkestner@novell.com>
15521 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
15522 are added or inserted to the collection. Fixes #81099.
15524 2006-12-13 Everaldo Canuto <everaldo@simios.org>
15526 * MenuAPI.cs: Closes menu when right click out side of popup
15527 it fix problem in ContextMenu and MainMenu. Fixes #80252.
15529 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15531 * ListViewItem.cs: Fix dumb error.
15533 * ListView.cs: Add Find and ContainsKey methods in
15534 ListViewItemCollection, and also return true for IsReadOnly
15535 and IsFixedSize (changes for 2.0).
15537 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
15539 * Control.cs: Allow Region to be set to null.
15541 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15543 * MdiWindowManager.cs: Remove unused (commented out) code.
15544 * Form.cs: When the MdiChild is maximized, the form needs
15545 WM_NCMOUSELEAVE, so request it.
15546 * InternalWindowManager.cs:
15547 - Added tooltips to control buttons.
15548 - Removed duplicated control button handling code.
15549 - Removed unused (commented out) code.
15551 2006-12-12 Everaldo Canuto <everaldo@simios.org>
15553 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
15554 was used because we must set cursor without trigger ChangeCursor event
15555 and without change Cursor control property. Fixes #79963.
15557 2006-12-12 Andreia Gaita <avidigal@novell.com>
15559 * Control.cs: Check if Region setter value is null, and ignore
15561 2006-12-12 Jackson Harper <jackson@ximian.com>
15563 * TextControl.cs: We were almost always drawing one more line then
15564 needed, since the GetLineByPixel will return the last line found
15565 at that pixel. In most cases though, we were invalidating up to
15566 the junction between two lines.
15567 - Improve debug code.
15569 2006-12-12 Chris Toshok <toshok@ximian.com>
15571 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
15572 and FillReversibleRectangle.
15574 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
15575 and FillReversibleRectangle.
15577 * XplatUIWin32.cs: add stubs which do nothing for
15578 DrawReversibleFrame, DrawReversibleLine, and
15579 FillReversibleRectangle.
15581 * XplatUIOSX.cs: add stubs which raise NIE for
15582 DrawReversibleFrame, DrawReversibleLine, and
15583 FillReversibleRectangle.
15585 * XplatUIX11.cs: add working implementation for
15586 DrawReversibleFrame, DrawReversibleLine, and
15587 FillReversibleRectangle.
15589 * ControlPaint.cs: implement DrawReversibleFrame,
15590 DrawReversibleLine, and FillReversibleRectangle, by calling into
15591 the appropriate XplatUI method.
15593 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15595 * Form.cs: Make MdiClient have the focus even if it's
15596 not selectable, since it should receive WM_KEY* and WM_MOUSE
15597 messages. Fixes #79907.
15599 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15601 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
15602 queried after the window is created.
15604 * XplatUIX11.cs: Added SendParentNotify to implement
15605 WM_PARENTNOTIFY logic. Fixes #79965.
15607 * Control.cs: Added MakeParam.
15609 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15611 * MdiClient.cs: Resume Layout before setting window
15612 states (fixes #80201).
15614 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15616 * MenuAPI.cs: Deselect a menu item after performing
15617 the click (fixes #80197).
15619 2006-12-11 Jackson Harper <jackson@ximian.com>
15621 * TextBoxBase.cs: We need to cap this value, since Maximum -
15622 ViewPortHeight can be less than zero.
15623 - Only do selection with the left mouse button.
15624 * TextBox.cs: Don't tell the world that we have a context menu.
15625 * Control.cs: New method so that we can control whether or not the
15626 context menu is visible outside MWF.
15628 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15630 * ToolBarButton.cs: Fix text positon.
15632 2006-12-11 Miguel de Icaza <miguel@novell.com>
15634 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
15636 * Control.cs (DoubleBuffered): Add implementation.
15638 * Application.cs (OpenForms): Add.
15640 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15642 * Form.cs: Use opacity instead of Opactiy to determine if we need
15643 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
15645 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15647 * Control.cs: Fix NRE if Control.Site was set to null.
15649 2006-12-11 Chris Toshok <toshok@ximian.com>
15651 * Control.cs: ControlCollection.Remove should return if the arg is
15652 null, and ControlCollection.SetChildIndex should raise a ANE.
15654 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
15656 * Control.cs: Verify value set for Dock property. Code formatting
15659 2006-12-11 Jackson Harper <jackson@ximian.com>
15661 * TextControl.cs: Draw the caret and the selection when a flag is
15663 * TextBoxBase.cs: We want to draw the caret and the selection for
15664 TextBox but not for TextBoxBase.
15665 - If the window is resized and scrolling is no longer needed (the
15666 whole doc is visible) set the scroll position to zero.
15667 - The default SelectWord (the one TextBox uses) should move the
15668 caret to the end of the word.
15669 - SelectAll moves the caret to the end of the selection.
15670 * TextBox.cs: We don't selectall on focus, we just do it when the
15671 control is created.
15673 2006-12-11 Mike Kestner <mkestner@novell.com>
15675 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
15677 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15679 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
15681 * ListViewItem.cs: Add Name 2.0 property.
15683 2006-12-11 Andreia Gaita <avidigal@novell.com>
15685 * TabControl.cs: Set visibility on selected or default tab
15686 when tabcontrol handle is created, so that it's contents
15687 actually show up (duh). Fixes #80193
15688 Don't redraw the control if there is no handle created, as
15689 the selected index might be completely invalid. Added some tests
15692 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15694 * ToolBar.cs: Uses maximun width and height of all buttons as
15695 button rectangle when ButtonSize specified, it looks strange but
15696 is what happens in Win32. Fixes #80189.
15698 2006-12-11 Jackson Harper <jackson@ximian.com>
15700 * TextControl.cs: Need to track undo levels ourself, since
15701 compound actions will mess them up.
15703 2006-12-10 Andreia Gaita <avidigal@novell.com>
15705 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
15706 SelectedIndex value is changed (even if it's not valid).
15707 Reset SelectedIndex to 0 when the handle is created and if
15708 the current index is invalid.
15709 Fixes SelectdeIndex unit tests and #80128
15711 2006-12-08 Chris Toshok <toshok@ximian.com>
15713 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
15714 calls EndEdit, it needs to be called before we set current_cell to
15715 its new value. Otherwise, we end up committing the value in the
15716 textbox to the new cell as well. Fixes bug #80160.
15718 2006-12-08 Chris Toshok <toshok@ximian.com>
15720 * Form.cs (set_CancelButton): if the button's DialogResult is
15721 None, set it to Cancel. Fixes bug 80180.
15723 2006-12-08 Jackson Harper <jackson@ximian.com>
15725 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
15726 to watch ourselves when setting the canvas size and setting the
15729 2006-12-08 Chris Toshok <toshok@ximian.com>
15731 * DataGrid.cs: comment out the two MakeTransparent calls for the
15732 time being so people using trunk (and not 1.2.2) on windows can
15733 actually use the datagrid. This deals with bug #80151.
15735 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15737 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
15738 Graphics.DrawImage (image, int, int, int, int) overload instead
15739 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
15740 the dpi difference and was blurring images it drew.
15743 2006-12-08 Chris Toshok <toshok@ximian.com>
15745 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
15746 rowcnt is 0 (such as with an empty datasource), and make sure we
15747 initialize not_usedarea.Y to cells.Y, so we don't draw over the
15748 other areas (caption, parent row, etc, etc). Fixes bug #80095.
15750 2006-12-08 Chris Toshok <toshok@ximian.com>
15752 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
15755 2006-12-08 Chris Toshok <toshok@ximian.com>
15757 [ Fixes bug #80167 ]
15759 * ThemeWin32Classic.cs: don't draw the image if the button's flat
15760 style is FlatStyle.System.
15762 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
15763 ButtonBase.flat_style private, and switch uses of it to the public
15766 2006-12-08 Chris Toshok <toshok@ximian.com>
15768 [ Fixes bug #80121 ]
15770 * ThemeWin32Classic.cs: center the caption text in the datagrid
15773 * DataGrid.cs: lessen the amount we add to the caption height from
15774 6 to 2. 6 was making it huge.
15776 2006-12-08 Andreia Gaita <avidigal@novell.com>
15778 * UpDownBase: Handle MouseWheel call directly instead of capturing
15779 the inner textbox's OnMouseWheel. Fixes #80166
15781 2006-12-08 Jackson Harper <jackson@ximian.com>
15783 * TextControl.cs: We need to invalidate the textbox when we empty
15784 it (how had this not been discovered before?)
15786 2006-12-08 Jackson Harper <jackson@ximian.com>
15788 * TextBoxBase.cs: Reworked the mouse down code so I could get it
15789 to behave like MS, we now ignore the eventargs.Click and just
15790 track state ourself, which we were already doing anyways.
15791 - Constrain the double click handler to the double click size.
15793 2006-12-08 Chris Toshok <toshok@ximian.com>
15795 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
15796 direction if that scrollbar isn't shown. fixes bug #80158.
15798 2006-12-08 Andreia Gaita <avidigal@novell.com>
15800 * NumericUpDown.cs: Update value on getter. Fixes #79950
15802 2006-12-08 Chris Toshok <toshok@ximian.com>
15804 * MenuItem.cs: add back in the event cloning code. I didn't know
15805 how to do it in the face of the EventHandlerList work i'd done
15806 last week. Fixes bug #80183.
15808 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15810 * Control.cs: Add an invalidate to the BackgroundImage setter.
15813 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15815 * ToolStrip*: Add some small properties reported by MoMA, fix event
15816 firing and default properties based off of unit tests, and add some
15817 attributes based off of the class status page.
15819 2006-12-07 Jackson Harper <jackson@ximian.com>
15821 * TextBoxBase.cs: Take HideSelection into account when determining
15822 whether or not to show the selection.
15823 * RichTextBox.cs: After inserting the RTF into the document move
15824 the cursor to the beginning of the document.
15826 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15828 * Control.cs: Remove static ArrayList "controls" which maintained
15829 a reference to every control created.
15830 * Application.cs: Create a static FormCollection to maintain a reference
15831 to every form created. Use it in places that formerly enumerated through
15832 the controls one looking for forms.
15833 * Form.cs: Add and remove self from above FormCollection.
15835 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
15837 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
15838 not libgdk (though it makes me wonder why I didn't have any
15841 2006-12-07 Chris Toshok <toshok@ximian.com>
15843 [ you had to know this was coming after that last commit...]
15845 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
15846 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
15847 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
15850 2006-12-07 Chris Toshok <toshok@ximian.com>
15852 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
15853 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
15854 all the behavior we need for double buffering.
15856 * XplatUIDriver.cs: implement the 3 double buffer methods using a
15857 client side Bitmap, just like the old Control-based double buffer
15858 code did. The methods are virtual, so each XplatUI driver
15859 subclass can replace the implementation to use a faster, platform
15862 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
15863 double buffer code, and clean things up a bit in the process.
15865 2006-12-06 Chris Toshok <toshok@ximian.com>
15867 * Control.cs: reindent WndProc.
15869 2006-12-06 Chris Toshok <toshok@ximian.com>
15871 [ I wanna be like BenM when I grow up ]
15873 * Hwnd.cs: create a single static Graphics object on the static
15874 Bitmap we create. use this for our text measurements.
15876 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
15877 This was causing us to allocate a backbuffer for every control,
15878 even when it wasn't flagged as double buffered. Instead use the
15879 single graphics instance. This might have implications for
15880 multithreaded applications. If we run into problems we can switch
15881 to creating 1 Graphics per control, on the static Hwnd bitmap.
15883 this change nets us a 7M savings in private dirty mappings when
15884 running FormsTest.exe.
15886 2006-12-06 Chris Toshok <toshok@ximian.com>
15888 * ListView.cs: the BackgroundImage override is just to set
15889 attributes. chain up to base.BackgroundImage.
15891 * RichTextBox.cs: same.
15893 * ToolBar.cs: same, but we need to also redraw the toolbar when it
15894 changes, so instead a handler for BackgroundImageChanged.
15896 * Control.cs: make background_image private.
15898 2006-12-06 Chris Toshok <toshok@ximian.com>
15900 * ScrollBar.cs: change the assignment of cursor to Cursor. not
15901 sure we even need this assignment, but roll with it for now.
15903 * Control.cs: make the cursor field private.
15905 2006-12-06 Chris Toshok <toshok@ximian.com>
15907 * Form.cs: we don't need to explicitly set ImeMode to
15908 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
15909 behavior in the face of ImeMode.Inherit.
15911 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
15912 change the ctor's assignment to use ImeMode instead of ime_mode.
15914 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
15915 ImeModeInherit. Only check for the parent's imemode (and return
15916 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
15917 This fixes the button unit test, which sets both ImeMode and
15918 DefaultImeMode to ImeMode.Disable.
15920 also make the ime_mode field private.
15922 2006-12-06 Chris Toshok <toshok@ximian.com>
15924 * Control.cs: make control_style private.
15926 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
15927 setting the styles to true, then setting them to false instead of
15928 reverting to their previous values.
15930 also, call SetStyle on the scrollbars instead of using
15931 control_style directly.
15933 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
15935 * FormCollection.cs: Implement. [2.0]
15937 2006-12-06 Chris Toshok <toshok@ximian.com>
15939 * Control.cs: make tab_stop private.
15941 * Label.cs: set TabStop, not tab_stop. reformat some event
15942 add/remove methods to make them more compact.
15944 2006-12-06 Chris Toshok <toshok@ximian.com>
15946 * RadioButton.cs: fix TabStop handling.
15948 2006-12-06 Chris Toshok <toshok@ximian.com>
15950 * TextBox.cs: remove the explicit assignments to has_focus.
15953 * ButtonBase.cs: remove the assignment to has_focus. Control will
15956 2006-12-06 Chris Toshok <toshok@ximian.com>
15958 * ButtonBase.cs: remove all uses of is_enabled from this code.
15959 it's always true when any of the code containing the checks is
15962 2006-12-06 Chris Toshok <toshok@ximian.com>
15964 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
15965 with different semantics (some are present in both 1.1 and 2.0
15966 profiles) so that we match MS's behavior in our unit tests.
15968 2006-12-06 Jackson Harper <jackson@ximian.com>
15970 * TextControl.cs: Make this operation undoable.
15971 * TextBoxBase.cs: Factor the border width into the preferred
15973 - implement Modified as per the spec.
15975 2006-12-06 Chris Toshok <toshok@ximian.com>
15977 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
15979 2006-12-06 Chris Toshok <toshok@ximian.com>
15981 * Control.cs: make right_to_left and context_menu fields private.
15983 2006-12-06 Chris Toshok <toshok@ximian.com>
15985 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
15986 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
15987 Control.child_controls private. switch all uses over to
15990 2006-12-06 Chris Toshok <toshok@ximian.com>
15992 * System.Windows.Forms/GroupBox.cs,
15993 System.Windows.Forms/AccessibleObject.cs,
15994 System.Windows.Forms/ErrorProvider.cs,
15995 System.Windows.Forms/Control.cs,
15996 System.Windows.Forms/UpDownBase.cs,
15997 System.Windows.Forms/ScrollBar.cs,
15998 System.Windows.Forms/DateTimePicker.cs,
15999 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
16000 System.Windows.Forms/ToolTip.cs,
16001 System.Windows.Forms/RadioButton.cs,
16002 System.Windows.Forms/LinkLabel.cs,
16003 System.Windows.Forms/Splitter.cs,
16004 System.Windows.Forms/TextBoxBase.cs,
16005 System.Windows.Forms/ToolStripTextBox.cs,
16006 System.Windows.Forms/ContainerControl.cs,
16007 System.Windows.Forms/ThemeWin32Classic.cs,
16008 System.Windows.Forms/SizeGrip.cs,
16009 System.Windows.Forms/ToolStripDropDown.cs,
16010 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
16011 private. switch all uses over to Control.Parent.
16013 2006-12-06 Chris Toshok <toshok@ximian.com>
16015 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
16016 Control does this before calling emitting these events.
16018 * TabControl.cs: same.
16020 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
16021 Control.client_rect.
16023 * ButtonBase.cs: use the ClientSize property instead of the
16026 * ScrollableControl.cs: same.
16028 * Control.cs: another pass at making properties private. also,
16029 move the initialization of tab_stop to the ctor.
16031 2006-12-05 Andreia Gaita <avidigal@novell.com>
16033 * TabControl.cs: Let the selected index be set freely if the
16034 control handle is not yet created.
16036 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16038 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
16039 internal until I can rewrite DefaultLayout.
16040 * ToolStrip.cs: Fix build error and some general cleaning.
16041 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
16042 Fix build errors caused by making some of Control's fields private.
16044 2006-12-05 Jackson Harper <jackson@ximian.com>
16046 * TextControl.cs: Redo Insert a little so that it use IndexOf
16047 instead of Split, this prevents it from messing up on things like
16048 \n\n\n. Also more effecient since the split array doesn't need to
16050 * TextBoxBase.cs: AppendText doesnt handle multiline and non
16051 multiline text differently, this is the first of many fixes that
16052 will make multiline/non-multiline the same thing as far as the
16053 TextBoxBase is concerned.
16054 - Don't split the text and insert lines, this can lose some line
16055 endings (like is the last line a soft or hard break). Instead use
16057 - Fix an off by one when combining all the lines in the Text
16059 - Remove separate multiline handling from the Text getter/setter.
16061 2006-12-05 Chris Toshok <toshok@ximian.com>
16063 * ButtonBase.cs: a few changes:
16065 - don't reinitialize internal Control fields in the ctor when they
16066 have the same values as Control sets them.
16068 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
16069 this before calling those methods.
16071 - we don't need to call Refresh for anything. use Invalidate
16074 - OnEnabledChanged doesn't need to redraw at all - Control.cs
16075 calls Refresh in its OnEnabledChanged.
16077 - several of the events we were registered for in the ctor to
16078 redraw ourselves already include calls to Invalidate in the
16079 property setters that raise the events. remove the extra
16082 - reformat a switch statement that was 83274658 columns wide.
16084 2006-12-05 Mike Kestner <mkestner@novell.com>
16086 * ComboBox.cs: fix a unit test regression from a TextBox
16087 SelectionLength return of -1 when there's no selection.
16089 2006-12-05 Chris Toshok <toshok@ximian.com>
16091 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
16092 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
16093 cleaning up some of the internal Control fields being used by
16096 2006-12-05 Mike Kestner <mkestner@novell.com>
16098 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
16099 listbox after AddImplicit calls since it defaults to hidden. Add a
16100 hack to preserve requested heights across DropDownStyle changes.
16102 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16104 * PropertyGrid.cs: Hide FindFirstItem method from public API.
16106 2006-12-05 Chris Toshok <toshok@ximian.com>
16108 * DataGridView.cs: fix compiler warnings.
16110 * PrintControllerWithStatusDialog.cs: same.
16112 * ToolBar.cs: same.
16114 * FolderBrowserDialog.cs: same.
16116 * Splitter.cs: same.
16118 * DataGridViewComboBoxCell.cs: same.
16120 * XplatUIWin32.cs: same.
16122 * PictureBox.cs: same.
16124 * Win32DnD.cs: same.
16126 * PageSetupDialog.cs: same.
16128 * FileDialog.cs: same.
16130 * PrintDialog.cs: same.
16132 * DataGridTextBoxColumn.cs: same.
16134 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
16136 2006-12-05 Chris Toshok <toshok@ximian.com>
16138 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
16139 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
16140 System.ComponentModel.EventHandlerList work.
16142 2006-12-05 Jonathan Chambers <joncham@gmail.com>
16144 * DrawTreeNodeEventArgs.cs: Added.
16146 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16148 * InternalWindowManager.cs: Remove an unused field.
16150 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16152 * InternalWindowManager.cs:
16153 - Save the point where the title bar is clicked.
16155 * MdiWindowManager.cs:
16156 - Only allow moving of the window as long as the
16157 clicked point on the title bar does not get out of
16158 MdiClient's rectangle. Fixes #79982.
16161 - Added Horizontal/VerticalScrollbarVisible.
16162 - Simplified the scrollbar sizing algorithm.
16163 - Cache the difference in scrolled value in
16164 H/VBarValueChanged and move the calculation out
16167 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16169 * Control.cs: Make the Console.WriteLine in WndProc
16172 2006-12-05 Chris Toshok <toshok@ximian.com>
16174 * ToolStripManager.cs, ToolStripButton.cs,
16175 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
16176 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
16177 ToolStripSplitButton.cs, ToolStripSeparator.cs,
16178 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
16179 ToolStripProgressBar.cs, ToolStripContainer.cs,
16180 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
16181 to using System.ComponentModel.EventHandlerList.
16183 2006-12-04 Chris Toshok <toshok@ximian.com>
16185 * LinkLabel.cs: fix up compiler warnings.
16187 * TableLayoutSettings.cs: same.
16189 * TreeView.cs: same.
16191 * ToolBar.cs: same.
16193 * TabControl.cs: same.
16195 * RichTextBox.cs: same.
16197 * ListViewItem.cs: same.
16199 * PropertyGrid.cs: same.
16201 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
16205 * TextRenderer.cs: fix up compiler warnings.
16209 * Form.cs: corcompare fixes.
16211 * PictureBox.cs: fix up compiler warnings.
16213 * ImageListStreamer.cs: same.
16215 * TrackBar.cs: corcompare fix.
16217 * Control.cs: fix up compiler warnings.
16219 * SplitterPanel.cs: same.
16221 * NumericTextBox.cs: same.
16223 * ImageList.cs: same.
16225 * StatusStrip.cs: same.
16227 * ProgressBar.cs: corcompare fix.
16229 * ToolStripButton.cs: fix up compiler warnings.
16231 * ToolStripStatusLabel.cs: same.
16233 * ToolStripSplitButton.cs: same.
16235 * ToolStripSeparator.cs: same.
16237 * ToolStripProgressBar.cs: same.
16239 * ToolStripDropDownMenu.cs: same
16241 * ToolStripDropDown.cs: same.
16243 * ToolStripDropDownButton.cs: same.
16245 * ToolStrip.cs: same.
16247 * ToolStripControlHost.cs: same.
16249 * ToolStripContentPanel.cs: same.
16251 * ToolStripDropDown.cs: same.
16253 * ToolStripContainer.cs: same.
16255 * ToolStripPanel.cs: same, and add "new" where we need it to work
16256 with the new ArrangedElementCollection.
16258 * ToolStripItemCollection.cs: add "new" where we need it to work
16259 with the new ArrangedElementCollection.
16261 2006-12-04 Andreia Gaita <avidigal@novell.com>
16263 * TabControl.cs: Fix default tab selection to after TabControl
16264 gets focus and not before. Fixes #80128
16266 2006-12-04 Chris Toshok <toshok@ximian.com>
16268 * DataGridTableStyle.cs: remove the gross calling of
16269 datagrid.Refresh from here. It's a broken idea and it doesn't
16272 * DataGrid.cs: instead, just register/unregister from the
16273 DataGridTableStyle events in CurrentTableStyle. we play it
16274 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
16275 even though some would most likely not require it. Fixes bug
16276 #80115 (and one portion of #80117 as a side effect).
16278 2006-12-04 Chris Toshok <toshok@ximian.com>
16280 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
16281 so the textbox (if any) goes away. Fixes bug #80117.
16283 2006-12-04 Chris Toshok <toshok@ximian.com>
16285 * DataGridColumnStyle.cs: set the column's readonly property
16286 initially based on the property descriptor's IsReadOnly. Fixes
16289 2006-12-04 Chris Toshok <toshok@ximian.com>
16291 * ComboBox.cs: wrap the dropdown style changing work in
16292 SuspendLayout/ResumeLayout. Fixes bug #79968.
16294 2006-12-04 Jackson Harper <jackson@ximian.com>
16296 * TextBoxBase.cs: Fix off by one, since these are one-based.
16297 * TextBox.cs: Select all the text when we get focus. The TextBox
16298 does this but the RTB does not.
16300 2006-12-04 Chris Toshok <toshok@ximian.com>
16302 * DataGridTextBoxColumn.cs: remove some spew.
16304 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
16305 but some part of me is saying "it shouldn't be here.." At any
16306 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
16309 2006-12-04 Chris Toshok <toshok@ximian.com>
16311 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
16312 to reassign the propertydescriptor.
16314 2006-12-04 Jackson Harper <jackson@ximian.com>
16317 * TextControl.cs: Remove some unused variables. Maybe this will
16318 patch things up between mike and I.
16319 - don't split lines less then one char wide, if the viewport is
16320 that small text won't be visible anyways.
16322 2006-12-04 Jackson Harper <jackson@ximian.com>
16324 * TextBoxBase.cs: Default selection length is -1, need to do some
16325 more testing on windows to see when this is used for the property.
16326 - Redid the Lines [] property to that we properly remove soft line
16328 - added support for preserving carriage returns
16329 - CanUndo is not a variable like 'is undo enabled' it just returns
16330 true if there is undo operations available.
16331 - AppendText doesn't need to grab the last tag itself anymore,
16332 this happens automatically when we move the cursor.
16333 * TextControl.cs: Add CompoundActions to the undo class. This
16334 allows combining the other operations into one big option. ie a
16335 paste will combine { delete old, insert new, move cursor }
16336 - Add InsertString undo operation
16337 - New method for deleting multiline text
16338 - Add carriage returns to lines. So we can preserve carriage
16339 returns when text is 'roundtripped'
16341 2006-12-04 Chris Toshok <toshok@ximian.com>
16343 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
16344 minimum 0. Fixes the scrollbar exception in bug #80136.
16346 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16349 * MdiWindowManager: Removed unused fields and methods.
16351 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16353 * StatusBar.cs: Update all panels when a AutoSize=Contents
16354 panel needs updating.
16356 * StatusBarPanel.cs: Remove twidth and only use initialize.
16359 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16361 * Form.cs: When a form's MdiParent is set add it directly
16362 on top of the z-order in stead of relying on MdiClient's
16363 ActivateChild to do it. Fixes #80135.
16366 - Remove original_order, mdi_child_list is already doing
16368 - Create mdi_child_list on construction in
16369 stead of first use (avoids a few null checks).
16371 * MenuItem.cs: Use an already existing list of mdi children
16372 to get the correct order of children and remove the other
16375 2006-12-04 Chris Toshok <toshok@ximian.com>
16377 * PropertyGridView.cs: cached_splitter_location is only used in
16378 !DOUBLEBUFFER code.
16380 * PropertyGrid.cs: implement the ComComponentNameChanged event
16381 using Events, hoping that would fix the warning. Looks like a
16382 compiler bug instead (#80144).
16384 * PropertyManager.cs: remove unused method.
16386 2006-11-04 Everaldo Canuto <everaldo@simios.org>
16388 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
16389 include parentesis to fix expression evaluation. Fixes #79634.
16391 2006-11-02 Everaldo Canuto <everaldo@simios.org>
16394 - Changes to fix behavior in Menu control, some reported in #80097
16395 and other detected during behavior refactory like a select event
16397 - Remove unneded "if's" conditions.
16398 - Created an internal to flag when popup is active in control, we need
16399 it because in .NET you can have menu active but without popup active
16400 when you active menu using popup without visible items.
16401 - Mimic win32 behavior for Select and Popup events.
16402 - Dont open popup menu when you dont have visible subitems.
16403 - Do nothing when click on disabled menu item.
16404 - Some small changes to follow the coding style guidelines.
16405 - Unselect menu only when another control gives focus. Fixes #80097.
16406 - Remove unused code.
16408 * MenuItem.cs: internal VisibleItems method to check if menu
16409 theres visible subitems, it will be usefull to fix some
16410 behavior in Menu control.
16412 2006-11-01 Everaldo Canuto <everaldo@simios.org>
16414 * Timer.cs: Tag property for 2.0 profile.
16416 2006-12-01 Chris Toshok <toshok@ximian.com>
16418 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
16420 * Win32DnD.cs: comment out some unused fields.
16422 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
16423 some unused properties/methods.
16425 * XplatUIX11.cs: fix MousePosition so we override the base class's
16426 property instead of conflicting with it.
16428 * PictureBox.cs: comment out some unused fields
16430 * OSXStructs.cs: make some struct fields public.
16432 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
16433 MousePosition so we override the base class's property instead of
16434 conflicting with it.
16436 * X11Dnd.cs: comment out some unused fields
16438 * X11DesktopColors.cs: fix some struct field visibility to quiet
16441 * X11Dnd.cs: remove some debug code.
16443 * ThemeClearlooks.cs: comment out unused field.
16445 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
16447 * ThemeGtk.cs: comment out some unused pinvokes.
16449 * Timer.cs: remove some unused fields.
16451 * ThemeClearlooks.cs: comment out unused field.
16453 * UpDownBase.cs: comment out unused field.
16455 * DataObject.cs: comment out unused field.
16457 * DataGridBoolColumn.cs: reomve unused field.
16459 * DataGrid.cs: remove unused field.
16461 * Cursor.cs: remove old ToBitmap code.
16463 * ControlPaint.cs: remove unused method.
16465 * ScrollBar.cs: remove unused fields.
16467 * ComboBox.cs: remove unused field, and chain up to
16468 AccessibleObject ctor.
16470 * ListBox.cs: remove unused field.
16472 * ButtonBase.cs: wrap a couple fields in NET_2_0.
16474 * GridEntry.cs: remove unused fields.
16476 * Binding.cs: remove unused fields.
16478 * AxHost.cs: remove unused method.
16480 * ContainerControl.cs: remove unused field.
16482 * ScrollableControl.cs: remove unused fields.
16484 2006-12-01 Chris Toshok <toshok@ximian.com>
16486 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
16487 the Where/WhereString stuff. it's easy enough to CWL
16488 Environment.StackTrace.
16490 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
16491 unused private fields.
16493 2006-12-01 Jackson Harper <jackson@ximian.com>
16495 * TextControl.cs: Do not update the view while inserting multiline
16496 text. If we update the view we might wrap lines, before entering
16497 the new lines, which causes the new line insertion calculations to
16498 be totally fubared.
16499 - Remove an old TODO
16500 - Make debug output a little nicer
16502 2006-12-01 Chris Toshok <toshok@ximian.com>
16504 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
16506 2006-12-01 Chris Toshok <toshok@ximian.com>
16508 [ fix the majority of the CS0108 warnings we've been suppressing ]
16510 * TreeView.cs: mark BackgroundImageChanged as 'new'.
16512 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
16513 to "LayoutToolBar" to quiet mcs.
16515 * TabControl.cs: mark our ControlCollection class as 'new'.
16517 * TextBoxBase.cs: mark some events as 'new'.
16519 * Splitter.cs: TabStop is 'new'.
16521 * ControlBindingsCollection.cs: mark a few methods as new since
16522 they change the visibility from protected to public.
16524 * RadioButton.cs: DoubleClick -> base class, and remove unused
16527 * MonthCalendar.cs: ImeMode property -> base class, and mark many
16530 * NumericUpDown.cs: TextChanged -> base class.
16532 * CheckedListBox.cs: mark our ObjectCollection class as new to
16535 * FolderBrowserDialog.cs: make HelpRequest event new and have it
16536 muck with the base class.
16538 * StatusBar.cs: fix some mcs warnings about Update being the same
16539 name as a base class method.
16541 * RichTextBox.cs: mark some events as new, and make them do things
16542 to the base class impl.
16544 * UserControl.cs: mark TextChanged as new, and have it manipulate
16547 * UpDownBase.cs: mark some things new.
16549 * CheckBox.cs: mark DoubleClick "new", and add some text about
16550 what we need to look at.
16552 * Panel.cs: make the events "new", and manipulate the base
16553 version. these are just here for attributes.
16555 * AccessibleObject.cs: make owner private.
16557 * Control.cs: deal with AccessibleObject.owner being private.
16558 cache our own copy if we need it.
16560 * Button.cs: add "new" to the DoubleClickEvent.
16562 * ListBox.cs: no need to track our own has_focus here. let
16563 Control.has_focus do it for us. Also some other work to clear up
16564 warnings about not overriding base class methods of the same name.
16566 * ComboBox.cs: clear up some warnings about not override base
16567 class methods of the same name.
16569 2006-12-01 Chris Toshok <toshok@ximian.com>
16571 * Form.cs: flag a few things as "new" to quiet some of the mcs
16576 * PrintPreviewDialog.cs: same.
16578 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
16579 now DGV isn't so horrible on the class status page. also, move
16580 all events to using System.ComponentModel.EventHandlerList. my
16583 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
16585 * MdiWindowManager.cs:
16586 - Set form to active mdi child if shown,
16587 and update the active mdi child to the next
16588 remaining child in the z-order if the form is hidden.
16591 - Track if the form has been visible and if its
16592 visibility is beeing changed, so that the MdiClient
16593 can properly decide the ActiveMdiChild. The MdiClient
16594 cannot track this since the form can change visibility
16595 before MdiClient is created.
16598 - Don't activate anything of the parent form is changing
16600 - Rework ActiveMdiChild to only return visible mdi
16601 children and take into account several other corner
16604 2006-12-01 Chris Toshok <toshok@ximian.com>
16606 * IBindableComponent.cs: new 2.0 interface.
16608 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
16610 * DataGrid.cs: Font for caption area is bold by default.
16612 2006-12-01 Everaldo Canuto <everaldo@simios.org>
16614 * Menu.cs: Tag property for 2.0.
16616 2006-11-01 Everaldo Canuto <everaldo@simios.org>
16618 * ThemeWin32Classic.cs: Adjust menu separator drawing.
16620 2006-12-01 Chris Toshok <toshok@ximian.com>
16622 * TreeView.cs: doh, the Begin* events should be
16623 TreeViewCancelEventHandler.
16625 2006-12-01 Chris Toshok <toshok@ximian.com>
16627 * Form.cs: Form.ControlCollection already stores off the
16628 form_owner field. don't access the base class's internal "owner"
16631 * Control.cs: make all the fields in Control.ControlCollection
16632 private. there's no need for any internal fields here.
16634 2006-12-01 Chris Toshok <toshok@ximian.com>
16636 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
16637 OnHandleCreated. Fixes bug #80109.
16639 2006-12-01 Chris Toshok <toshok@ximian.com>
16641 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
16642 SplitContainer.cs, Control.cs, StatusStrip.cs,
16643 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
16644 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
16645 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
16646 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
16647 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
16648 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
16649 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
16650 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
16651 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
16652 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
16654 do most of the work to convert our code over to use
16655 System.ComponentModel.Component.Events for
16656 adding/removing/dispatching events.
16659 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16661 * DataGridView.cs: Fix an ArgumentNullException reported
16662 twice today in IRC.
16664 2006-11-30 Mike Kestner <mkestner@novell.com>
16666 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
16667 grabbed listbox. Fixes #80036 and #80101.
16669 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16671 * Message.cs: Changed ToString() to match MS.
16673 2006-11-30 Jackson Harper <jackson@ximian.com>
16675 * TextBoxBase.cs: You can still change the selected text on a read
16677 * TextControl.cs: Lower magic number for wrap calculations. This
16678 lets text get closer to the right (far) edge.
16680 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16682 * Control.cs: Tweak 2.0 layout properties.
16683 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
16684 * TextRenderer.cs: Add a new overload.
16685 * ToolStrip*: Huge amount of changes and new features.
16687 2006-11-30 Mike Kestner <mkestner@novell.com>
16689 * ComboBox.cs: fixes for LargeChange and Maximum to get the
16690 scroll range correct. Fixes #79994.
16692 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16694 * MdiWindowManager.cs: Update main form's text when
16695 a form is closed. (fixes #80038)
16697 2006-11-30 Everaldo Canuto <everaldo@simios.org>
16700 - Fix an regression in ButtonSize.
16701 - Get ImeMode default value change to "Disable".
16702 - Get ShowTooltips default value change to true, default value is
16703 "false" but after make a test in .NET we get "true" result as default.
16705 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
16707 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
16709 2006-11-29 Chris Toshok <toshok@ximian.com>
16711 * XplatUIWin32.cs (GetWindowTransparency): check return value of
16712 GetLayeredWindowAttributes. if it's 0, return 1.0, as
16713 SetWindowTransparency hasn't been called.
16715 2006-11-29 Chris Toshok <toshok@ximian.com>
16717 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
16719 (set_AllowTransparency): reorder things a little so that the
16720 WS_EX_LAYERED style is removed properly.
16722 2006-11-29 Chris Toshok <toshok@ximian.com>
16724 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
16726 * Form.cs: only call the XplatUI transparency method (get/set) if
16727 SupportsTransparency says it's supported. Otherwise fallback to
16728 doing nothing (in the set case) or returning the instance field we
16729 cache (in the get case).
16731 * XplatUIStructs.cs: add TransparencySupport flag enum.
16733 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
16734 change to SupportsTransparency.
16736 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
16737 TransparencySupport.None from SupportsTransparency.
16739 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
16740 TransparencySupport.Set from SupportsTransparency.
16742 * XplatUIWin32.cs: implement GetWindowTransparency calling
16743 GetLayeredWindowAttributes, and implement SupportsTransparency by
16744 checking whether or not both
16745 GetWindowTransparency/SetWindowTransparency are available
16746 entrypoints. We need to do this since SetWindowTransparency is
16747 available as of win2k, but GetWindowTransparency requires winxp.
16750 * XplatUI.cs: Add GetWindowTransparency, and change
16751 SupportsTransparency to allow for either/both Get/Set.
16753 2006-11-29 Chris Toshok <toshok@ximian.com>
16755 * DataGrid.cs: keep from going into an infinite loop redrawing a
16756 datagrid that has no datasource. Fixes bug #80033.
16758 2006-11-29 Chris Toshok <toshok@ximian.com>
16760 * MenuItem.cs: fix the NRE when we assign text (and therefore call
16761 Invalidate) before the mainmenu has been assigned to a control.
16763 2006-11-29 Chris Toshok <toshok@ximian.com>
16765 * DataGrid.cs: detect when we should be double the double click
16766 row/column autosize stuff, although that codepath has yet to be
16767 written. part of the work for bug #79891.
16769 2006-11-29 Chris Toshok <toshok@ximian.com>
16771 * Binding.cs (SetControl): fix unit test.
16773 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16775 * PageSetupDialog.cs: Validate the margins and set them in
16777 * NumericTextBox.cs: New class to mimic the behavior of the
16778 textboxes used in the printing dialogs.
16780 2006-11-29 Andreia Gaita <avidigal@novell.com>
16782 * Form.cs: Revert previous change (remove call UpdateBounds
16783 from form constructor), because it messes with the handle creation
16784 order, and that one needs lots and lots of love.
16785 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
16786 for valid printer and throw InvalidPrinterException if document
16787 is set but printer not valid), adding a MonoTODO. Once
16788 handle creation is done properly, we can put this back in.
16790 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16792 * MenuItem.cs: Create a invalidate method for menu item, to be
16793 calling from set text, it make text changes to imadiate update
16794 on screen. Fixes #80013.
16796 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16798 * ToolBar.cs: Fixes and simplify toolbar button layout, it
16799 fixes bug #80070 and some other problem on toolbar buttons
16802 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16804 * ThemeWin32Classic.cs: Paint toolbar toggle button background
16805 with dotted brush. Fixes #79564
16807 2006-11-28 Andreia Gaita <avidigal@novell.com>
16809 * Form.cs: Removed call to UpdateBounds on Form
16810 constructor, it was causing a call to CreateHandle
16811 before it was supposed to.
16812 * PrintControllerWithStatusDialog: Applied patch
16813 by Chris Toshok to hide controller when there are
16814 no printers available.
16815 PrintDialog.cs: initialize printer settings to
16816 null - correct DefaultValues test #5
16817 * PrintPreviewControl.cs: Move PrintController
16818 initialization to GeneratePreview
16819 * PrintPreviewDialog.cs:
16820 - Remove Preview generation from Document_set(). It is
16822 - Throw InvalidPrinterException on CreateHandle if
16823 a Document is set but there are no printers or
16824 printer is not valid.
16825 * ThemeWin32Classic: don't paint PrintPreviewControl
16826 if there is nothing to paint
16828 2006-11-28 Miguel de Icaza <miguel@novell.com>
16830 * Form.cs: Add another popular method.
16832 * TabPage.cs: ditto.
16834 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16836 * MenuItem.cs: Fixed a warning.
16837 * InternalWindowManager: Fixed a warning.
16839 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16842 - When cloning a menu also clone MdiList and clone the
16843 window menu items properly (as the forms and menuitems
16844 are kept in an internal hashtable, these need updating
16846 - Rewrote the window menu code, menu items are added in the
16847 order the forms were added to their parent, and they are
16848 updated every time the window menu is shown (before the
16849 list was only generated once, in the current order of the
16850 forms, and would never be updated). A checkmark is shown
16851 next to the item corresponding to the active mdi child.
16853 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16855 * XplatUIStructs.cs:
16856 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
16859 - Added TME_NONCLIENT to TMEFlags.
16860 - Handles WM_NCMOUSEMOVE in GetMessage to
16861 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
16863 * MdiWindowManager:
16864 - Now merges mdi child menu to parent menu when maximized.
16865 - Recalculate NC areas of both mdi child and mdi parent.
16867 on window state and size changes.Fixes #79844 (3).
16868 - Handle WM_NCCALCSIZE to properly calculate borders.
16871 - Add/remove to the mdi containers list of mdi children
16872 in the order they are added.
16873 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
16874 to the maximized mdi child.
16876 * InternalWindowManager.cs:
16877 - Only execute a click on the control buttons on the mouse up,
16878 not on the mouse down. Show the state of the button
16879 (was only showing Normal state, never Pressed state). The
16880 pressed button now follows the mouse (if you click the Close
16881 button and move the mouse over the Maximize button, the
16882 Maximize button will be shown as pressed). Since Win32 does
16883 not generate WM_NCLBUTTONUP if you release the button outside
16884 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
16887 * ThemeWin32Classic.cs:
16888 - Draw a missing border around mdi child forms. Fixes #79844 (2).
16891 - Added a list of forms which contains the order the forms are
16892 added to the mdi parent.
16893 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
16894 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
16895 - If the active form changes set the scrollbars to the top
16896 of the Z order, otherwise the form could hide them.
16897 - Scrollbars are now sized according to ClientSize, not
16898 to Size, and they take into account the other scrollbar
16899 to determine maximum.
16901 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16904 * XplatUIDriver.cs:
16908 - Added RequestAdditionalWM_NCMessages for windows to
16909 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
16910 Currently only implemented in XplatUIWin32.
16912 2006-11-27 Chris Toshok <toshok@ximian.com>
16914 * Hwnd.cs: only add the hwnd to the windows hash in
16915 set_WholeWindow and set_ClientWindow if whole_window/client_window
16916 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
16918 2006-11-27 Mike Kestner <mkestner@novell.com>
16920 * ComboBox.cs: remove redundant OnDropDown call. It is called
16921 from the ComboListBox.ShowWindow code. Fixes #79969.
16923 2006-11-27 Chris Toshok <toshok@ximian.com>
16925 * Hwnd.cs: remove the setters for ExposePending and
16926 NCExposePending - noone uses them.
16928 2006-11-27 Jackson Harper <jackson@ximian.com>
16930 * TextControl.cs: new param for ReplaceSelection which determines
16931 whether we select the new selection, or set the cursor to the end
16932 of the new selection.
16933 * TextBoxBase.cs: Use new param for ReplaceSelection. When
16934 pasting, select the new text.
16935 * RichTextBox.cs: Use new param for ReplaceSelection.
16937 2006-11-27 Jackson Harper <jackson@ximian.com>
16939 * TextBoxBase.cs: Set the selection to the caret after the caret
16940 is moved, otherwise they get out of sync.
16942 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16944 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
16947 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16949 * ThemeWin32Classic.cs:
16950 - Fix toolbar drop down arrow position.
16951 - Fix drop down appearance when ToolBar.Appearance is normal,
16954 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
16956 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
16957 * Control.cs: Same.
16958 * UpDownBase.cs: Same.
16959 * ButtonBase.cs: Same.
16960 * ScrollBar.cs: Same.
16961 * TrackBar.cs: Same.
16962 * PictureBox.cs: Same.
16963 * UserControl.cs: Same.
16965 * ListControl.cs: Same.
16966 * TextBoxBase.cs: Same.
16967 * ListView.cs: Same.
16968 * RichTextBox.cs: Same.
16969 * TreeView.cs: Same.
16971 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
16974 - Text label for where
16975 - Text label comment was not shown
16977 2006-11-23 Everaldo Canuto <everaldo@simios.org>
16979 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
16981 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16983 * InternalWindowManager.cs:
16984 - Handle WM_PARENTNOTIFY to activate the form
16985 if any child control is clicked.
16986 - The form is only sizable if not minimized.
16988 * MdiWindowManager.cs:
16989 - Save the IconicBounds if the form is moved.
16990 - Rework SetWindowState, now the window bounds
16991 are stored only if the old window state is Normal.
16994 - In SetWindowStates store the old window state if
16995 the window is maximized and restore window state if
16996 the window looses focus.
16997 - Don't handle any scrollbar value changes if
16998 initializing the scroll bars. Fixes #79771.
16999 - Reworked ArrangeIconicWindows. Current algorithm
17000 tests bounds agains all other minimized windows, if
17001 any intersections create new bounds (going left to
17002 right, bottom to top) and then test again. When
17003 successful the bounds are saved and never computed
17004 again. Fixes #79774.
17006 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17008 * InternalWindowManager.cs: Added HandleTitleBarUp.
17010 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17012 * NumericUpDown.cs: In .NET 1.1, user entered text is still
17013 hexadecimal in ParseUserEdit.
17016 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17018 * MdiWindowManager.cs:
17019 - Handle a click on the form's icon to show the
17020 system menu (when maximized). Fixes #79775.
17021 - Change the existing click handler for the form's
17022 icon when not maximized to show on MouseUp.
17025 * Form.cs: In OnResize only layout the mdi child's
17026 parent if it actually has a parent. Might not if
17027 the window is closing.
17030 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17032 * MdiClient.cs: Ignore active MDI client for text of parent, if
17033 child has no text set.
17035 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17037 * ToolBar.cs: Fixed ToString to match MS.
17039 2006-11-22 Andreia Gaita <avidigal@novell.com>
17042 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
17043 update inner values on set. Fixes #79966.
17044 - Override OnLostFocus to update value on NET 2. Fixes #79950.
17045 - Fix hexadecimal parsing.
17047 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
17048 parent. Fixes #79957
17050 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17052 * Control.cs: After calling SetWindowsPos in SetBoundsCore
17053 the actual size has to be queried, since if height /
17054 width is negative Win32 changes it to 0.
17055 Fixes #79999 on Windows.
17057 * XplatUIX11.cs: Set height / width to 0 if negative
17058 in SetWindowPos. Fixes #79999 on Linux.
17060 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17062 * ThemeWin32Classic.cs: Fix text redenring when button is
17065 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17067 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
17068 and later navigate by mouse. Fixes #79528.
17070 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17072 * ToolBar.cs: Set default value for TabStop to false in
17073 constructor, it fixes remaining behavior of bug #79863.
17075 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17077 * MdiWindowManager.cs:
17078 * InternalWindowManager.cs:
17079 - Moved a few methods specific to Mdi from
17080 InternalWindowManager to MdiWindowManager.
17083 2006-11-21 Chris Toshok <toshok@ximian.com>
17085 * XplatUIOSX.cs: stub out InvalidateNC.
17087 * XplatUIWin32.cs: implement InvalidateNC using the call I found
17088 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
17090 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
17092 * XplatUIDriver.cs: add InvalidateNC abstract method.
17094 * XplatUI.cs: add InvalidateNC.
17096 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17098 * ToolBar.cs: Invalidate complete button area when pressed status
17100 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
17101 * ThemeWin32Classic.cs: Increase vertical and horizontal position
17102 by 1 when button is pressed.
17104 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17106 * ToolButton.cs: Invalidate middle of DropDown button when
17107 ToolBar theres DropDownArrows.
17108 * ThemeWin32Classic.cs: Change position of DropDown arrow and
17109 fix DropDown drawing operations.
17111 2006-11-20 Chris Toshok <toshok@ximian.com>
17113 * NativeWindow.cs: fix the formatting of functions ('{' on the
17114 following line), and enable the thread exception dialog.
17116 * Application.cs: remove the duplicate exception catching from
17119 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17121 * Toolbar.cs: Triggers button click event when click on icon
17122 of dropdown ToolBarButton. Fixes #79912.
17124 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17127 * ThemeWin32Classic.cs:
17128 - Added a property WindowBorderFont to enable themeing
17129 of mdi child windows' Text.
17131 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17133 * InternalWindowManager.cs:
17136 * MdiWindowManager.cs:
17137 - If mdi child is maximized, set mdi parent's
17138 text to "Parent - [Child]". Fixes #79770.
17139 - If there is any maximized mdi child windows, only the active
17140 window (and any new windows) is maximized, the rest are normal.
17141 - On a WindowState change only save mdi child's window bounds
17142 if the old window state was normal. Fixes #79774.
17143 - The scroll bars are now calculated on hopefully all
17144 necessary events. Fixed #79771 / #79844->6 / #79906.
17145 - MdiClient.SizeScrollBars() now takes into account docked
17146 controls in the parent when calculating available space.
17147 - InternalWindowManager now always repaints the entire title
17148 area. Fixes #79844->1/4/5.
17149 - Added RequestNCRecalc on mdi child windowstate changes.
17152 2006-11-20 Mike Kestner <mkestner@novell.com>
17154 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
17155 in the MouseUp handler of the listbox and move the return handling
17156 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
17158 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17160 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
17162 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
17164 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
17165 working in 1.2.x anymore. So, updated.
17167 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
17169 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
17170 NumberGroupSeparator of current culture instead of assuming en-US.
17173 2006-11-17 Mike Kestner <mkestner@novell.com>
17175 * Control.cs: Add the concept of implicit bounds setting so that
17176 dock/undock round trips preserve explicitly set size/locations.
17179 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
17181 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
17182 can't handle those filters. (Fixes bug #79961)
17184 2006-11-17 Chris Toshok <toshok@ximian.com>
17186 [ fixes the exit/crashes associated with #79835. it's clearly
17187 suboptimal though, we need to figure out a better way to solve
17190 * PrintPreviewControl.cs: deal with the new invalid printer
17193 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
17194 and return false (so CommonDialog.ShowDialog doesn't actually show
17197 * PrintDialog.cs: enable/disable the Ok button depending on
17198 whether or not the printer is valid.
17200 * CommonDialog.cs (ShowDialog): only actually show the form if
17201 RunDialog returns true.
17203 2006-11-17 Jackson Harper <jackson@ximian.com>
17205 * TextControl.cs: When soft splitting a line, mark it as a soft
17206 split line. Also carry over the current line break to the next
17209 2006-11-17 Chris Toshok <toshok@ximian.com>
17211 * XplatUIX11.cs: when scrolling a window with an invalid area, we
17212 only want to shift the part of the invalid area that overlaps the
17213 area we're scrolling. we also don't want to clear the invalid
17214 area unless the invalid area was entirely contained within the
17217 2006-11-16 Chris Toshok <toshok@ximian.com>
17219 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
17220 also make sure to free the memory returned by XGetWindowProperty
17223 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
17225 2006-11-16 Chris Toshok <toshok@ximian.com>
17227 * XplatUI.cs: add a new super secret way to get at the totally
17228 unsupported X11 backend.
17230 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
17232 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
17234 2006-11-16 Jackson Harper <jackson@ximian.com>
17236 * TreeView.cs: Allow more explicit setting of top node position
17237 for scrollbars. Slower algo, but more accurate.
17238 - CollapseAll should maintain the current top node.
17239 * TextBoxBase.cs: When positioning the caret, use the line, pos
17240 method, since the x, y method does not grab the correct tag, and
17241 the caret height never gets set correctly. (Maybe I should just do
17242 away with the caret having its own height, and always use the
17243 carets current tag for height).
17245 2006-11-16 Jonathan Pobst <monkey@jpobst.com
17247 [Fixes 79778, 79923]
17249 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
17250 Parent to the FosterParent instead.
17252 2006-11-16 Jackson Harper <jackson@ximian.com>
17254 * TreeView.cs: Need to recalc the topnode when we expand or
17255 collapse. The scrolling methods can't handle this on their own,
17256 since they use differences between the last scroll position, and
17257 those difference get completely messed up since we are expanding
17258 nodes. This problem should probably be fixed in the scrolling
17259 methods, so they can figure out exactly where they are, but this
17260 will slow things down a little.
17261 * ThemeWin32Classic.cs: Special case for groupboxes with empty
17262 strings, makes nunit-gui look a lot nicer.
17264 2006-11-16 Chris Toshok <toshok@ximian.com>
17266 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
17267 the broken multithreaded event handling we have in here. File
17268 this entry under "Why we should move to the new X11 backend".
17270 Any thread can make it into UpdateMessageQueue, which gets events
17271 from the X socket - some of which could belong to hwnds being
17272 managed by a different thread. We can also have multiple threads
17273 in UpdateMessageQueue at the same time, with each one reading from
17274 the X socket. This leads to many problems, with the following
17277 We can't use hwnd.Queue.Enqueue anywhere in here and must use
17280 The MotionNotify compression we do can't work across threads
17281 (without locking the entire queue, perhaps) since we call
17282 hwnd.Queue.Peek, so we just punt and don't compress motion events
17283 unless the owning thread is the one which got the X event.
17285 ConfigureNotify is another fun one, since it modifies the hwnd's
17286 bounds and then enqueues the event. We add a lock to Hwnd which
17287 is held when setting configure_pending to true (and enqueuing the
17290 There is a race wrt the wake socket. we need to make sure that
17291 only 1 thread is waiting on that socket, or else a thread could
17292 sleep waiting for data that never comes. It's difficult (but not
17293 impossible) to make happen, because it seems to require something
17294 like the following:
17296 1. Thread 1 polls on wake_receive
17298 2. poll returns saying there's data to be read on
17301 3. Thread 2 polls on wake_receive and immediately returns
17302 saying there's data to be read.
17304 4. Thread 2 reads the wakeup byte from wake_receive
17306 5. Thread 1 attempts to read the wakeup byte from
17309 6. Thread 2 exits (due to a form closing, perhaps).
17311 7. Thread 1 blocks forever.
17315 Fixing the Expose handling isn't done yet, and the races inherent
17316 in that piece of code are responsible for the drawing mistakes you
17317 see when generating expose events in a MT app (like NPlot). This
17318 one is the likely to be the hardest to bandaid, and it doesn't
17319 appear to cause anything but drawing problems. The other issues
17320 caused apps to exit or hang.
17322 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
17323 called from a different thread than the one that should be calling
17326 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
17328 2006-11-15 Chris Toshok <toshok@ximian.com>
17330 * Application.cs: null out the context's MainForm when we exit
17331 RunLoop. Fixes a newly checked in unit test as well as the last
17332 ODE from bug #79933.
17334 2006-11-15 Chris Toshok <toshok@ximian.com>
17336 * Form.cs (set_Owner): allow a null value so we can clear the
17338 (Dispose): set all our owned_form's Owner properties to null, and
17339 clear the owned_forms collection.
17340 (WM_CLOSE): clean up this a little bit.. still not right though.
17342 * ApplicationContext.cs: OnMainFormClosed should only call
17343 ExitThreadCore if the main form isn't recreating. Fixes unit
17346 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17350 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
17352 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17356 * Hwnd.cs: Add a flag to show a window, but not activate it, to
17357 keep popup window types from stealing focus from the main form
17360 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
17362 * MenuAPI.cs: Set above flag to true.
17364 2006-11-15 Chris Toshok <toshok@ximian.com>
17366 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
17367 the button being released is not in wParam.
17369 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17371 * Form.cs: Add the released button to MouseEventArgs.Button
17372 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
17375 2006-11-15 Chris Toshok <toshok@ximian.com>
17377 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
17378 GetText(). untested because it's unused in our implementation.
17379 Control.Text always caches the text, even if
17380 ControlStyles.CacheText is not set.
17384 2006-11-15 Chris Toshok <toshok@ximian.com>
17388 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
17389 message. no hiding, no disposing.
17391 in the WM_CLOSE handler, hide the form if it's modal.
17393 2006-11-15 Chris Toshok <toshok@ximian.com>
17395 * XplatUIX11.cs: use AddExpose instead of sending a message.
17396 fixes textbox border drawing.
17398 2006-11-15 Chris Toshok <toshok@ximian.com>
17400 * PropertyGridView.cs: keep from crashing on mouse move/down when
17401 the property grid is empty.
17403 2006-11-14 Jackson Harper <jackson@ximian.com>
17405 * TextControl.cs: Make PageUp and PageDown more like the MS
17407 * TextBoxBase.cs: When we set the text property position the
17408 cursor at the beginning of the document.
17410 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
17412 * Form.cs: if a mdi child's WindowState has changed
17413 before it's creation, it would display wrong control
17416 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
17418 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
17421 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
17423 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
17424 the window gets to paint its borders even if the window is
17427 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
17428 otherwise the old control buttons would still be painted
17429 if the window gets bigger.
17431 * PaintEventArgs.cs: add an internal method so that the clip
17432 rectangle can be changed.
17434 2006-11-13 Chris Toshok <toshok@ximian.com>
17436 [ fixes bug #79745 ]
17438 * NotifyIcon.cs: lots of cleanup.
17440 * X11Structs.cs: add an enum for XEMBED messages.
17442 * XplatUIX11.cs: reindent one of the giant switch statements, it
17443 was taking up an additional tab stop, and this file is already way
17444 too wide for my laptop's screen.
17446 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
17447 we get it, resize the hwnd to the WMNormalHints max_width/height.
17449 2006-11-13 Jackson Harper <jackson@ximian.com>
17451 * TextBoxBase.cs: Compute the value changes for the mouse wheel
17454 2006-11-13 Chris Toshok <toshok@ximian.com>
17456 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
17457 #79898. force a reference to the Region to stick around so the
17458 unmanaged object isn't collected (rendering our handle in the MSG
17461 2006-11-13 Chris Toshok <toshok@ximian.com>
17463 * XplatUIX11.cs: fix #79917 for window managers which support
17465 using XStoreName on the raw utf8, and we need to convert to
17466 COMPOUND_TEXT if it's non-latin1.
17468 2006-11-13 Chris Toshok <toshok@ximian.com>
17470 * Form.cs (set_DialogResult): we need to set closing to false if
17471 we're setting our result to None. fixes bug #79908.
17473 2006-11-13 Jackson Harper <jackson@ximian.com>
17475 * TextControl.cs: When formatting text, compute the adjusted tag
17476 lengths correctly, using FindTag for the end tag instead of trying
17477 to figure it out outselves.
17478 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
17479 the item, ItemHeight doesn't work, because trees with large
17480 imagelists use those for their height
17481 * TreeView.cs: ActualItemHeight factors in the image height
17482 - compute left edge of checkboxes correctly
17483 - when expanding/collapsing move the bottom down one pixel, so we
17484 aren't moving part of the node
17486 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17488 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
17489 stack in PaintEventStart so that it won't get disposed by the gc
17490 before reaching PaintEventEnd.
17492 2006-11-13 Jackson Harper <jackson@ximian.com>
17494 * TextBoxBase.cs: Don't select the word if we are on a line with
17496 - We don't need to position the caret on mouse up, since the mouse
17497 move handler should be doing this
17498 - When double clicking a blank line, the caret is advanced to the
17501 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
17503 * TreeNodeCollection.cs: Avoid duplicating indexer code.
17505 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
17507 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
17508 Fixes part of bug #79910.
17510 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
17512 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
17513 (bug #79903). Some minor string updates to match ms.
17515 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17517 * FileDialog.cs: Don't add an extension if the filename
17518 already ends with that extension.
17520 2006-11-10 Jackson Harper <jackson@ximian.com>
17522 * TreeView.cs: Use the currently highlighted node for the
17523 BeforeSelect event.
17524 * TextBoxBase.cs: There is no need to expand selection on
17526 - CanUndo means 'is there any undo operations', not 'is undo
17527 allowed on this textcontrol. Fixed ClearUndo unit test.
17529 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
17531 * Button.cs: only perform click when button is Selectable (so as
17532 not to activate default buttons when they're disabled)
17534 * Control.cs: Rewrite of the SelectNextControl and related
17535 methods. HandleClick now selects next control if the current one
17538 * Form.cs: OnActivated selects next active control only if Load
17539 has already occurred. If Load hasn't run, there's no point in
17540 selecting here, Load might change the state of controls.
17542 * FocusTest.cs: Tests marked as working again for these fixes
17544 2006-11-10 Chris Toshok <toshok@ximian.com>
17546 * XplatUIX11.cs: a couple of fixes.
17548 - use XInternAtoms with almost all the atoms we need to register,
17549 instead of many, many calls to XInternAtom. should help a bit on
17550 startup time, at the expense of making the code look a little
17553 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
17554 isn't reparented (which seems to be a clue that we're running fon
17555 compiz) and they have an Owner form. This fixes the tool windows
17556 in paint.net when running under compiz.
17558 - when setting the opacity of a window, support both the case
17559 where the window has been reparented and also when it hasn't been.
17560 Since compiz/beryl doesn't seem to reparent windows, and these are
17561 the only window managers which support translucency, I'm not sure
17562 why we need the hwnd.reparented case at all.. but leave it in.
17563 now we get translucent windows in paint.net under compiz/beryl.
17565 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17567 * FileDialog.cs: Always return the value for FilterIndex that
17568 was set. Internally convert it to values that make sense.
17570 2006-11-10 Everaldo Canuto <everaldo@simios.org>
17572 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
17574 2006-11-10 Everaldo Canuto <everaldo@simios.org>
17576 * Toolbar.cs: Change default value of DropDownArrows to true, the
17577 signature still using false to make it compatible with MS but the
17578 initial value is true. Fixes #79855.
17580 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17582 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
17583 only available on Linux.
17585 2006-11-09 Everaldo Canuto <everaldo@simios.org>
17587 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
17588 reduce number of calls to redraw method during toolbar creation.
17590 2006-11-09 Mike Kestner <mkestner@novell.com>
17592 * ListView.cs : raise SelectedIndexChanged when an item is selected
17593 programmatically via the Item.Selected property. Gert's nice
17594 ListViewSelectedIndexChanged test fixture now runs clean.
17596 2006-11-09 Mike Kestner <mkestner@novell.com>
17598 * ListView.cs : raise SelectedIndexChanged when a selected item is
17599 removed from the item collection using Remove or RemoveAt.
17601 2006-11-09 Mike Kestner <mkestner@novell.com>
17603 * ListView.cs : raise SelectedIndexChanged once per selected item
17604 for compat with MS. Fixes #79849+.
17606 2006-11-09 Chris Toshok <toshok@ximian.com>
17608 * TabControl.cs: initialize row_count to 0, and set it to 1 when
17609 we need to (if we have any tab pages). Fixes unit test.
17611 2006-11-09 Chris Toshok <toshok@ximian.com>
17613 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
17614 width is 0, not 3. Fixes a unit test.
17616 2006-11-09 Mike Kestner <mkestner@novell.com>
17618 * ListView.cs : use Implicit scrollbars so that focus isn't
17619 stolen from the listview when they are clicked. Fixes #79850.
17621 2006-11-09 Chris Toshok <toshok@ximian.com>
17623 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
17624 have a root item. Fixes #79879.
17626 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
17630 - An ArgumentException is now thrown if a wrong filter
17631 is applied (matches ms). The previous filter doesn't change
17632 anymore if an exception is thrown.
17633 - Changing the FileName property also affects FileNames
17634 * ColorDialog.cs: The length of the CustomColors array is always
17635 16. It doesn't matter if we use a smaller array or null to update
17636 or change the custom colors property.
17637 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
17638 for RootFolder if we get a undefined value.
17640 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17642 * StatusBarPanel.cs:
17643 - Width is set to MinWidth if Width is smaller than
17644 MinWidth. Fixes #79842.
17645 - MinWidth now always overrides Width (MSDN says MinWidth
17646 is set to Width when AutoSize = None, but they do not
17648 - Style has now the the correct default value.
17650 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17653 - The control is completely invalidated on
17654 Got/LostFocus to draw the focus rectangle correctly.
17655 - When AutoSize then height is always 45 (width for
17656 vertical controls).
17658 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
17659 on the mouse when moved and it doesn't move when grabbed
17660 until the mouse moves as well. Also fixed some wrong
17661 calculations when clicking on the thumb (control thought
17662 click was outside of thumb and didn't grab it).
17663 Fixes some of the issues in #79718.
17665 2006-11-08 Everaldo Canuto <everaldo@simios.org>
17667 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
17669 2006-11-08 Chris Toshok <toshok@ximian.com>
17671 * PropertyGridView.cs: only call ToggleValue if the item is not
17674 2006-11-08 Jackson Harper <jackson@ximian.com>
17676 * TextBoxBase.cs: The RichTextBox and textbox have very different
17677 word selection methods. Implement the textbox's simple word
17678 selection here, and let the RichTextBox override and provide it's
17680 - Don't do extra selection on mouseup
17681 * RichTextBox.cs: Use the documents word selection algorithm, I
17682 think ideally, this function will be pulled into the
17683 RichTextBox.cs code someday.
17685 2006-11-08 Chris Toshok <toshok@ximian.com>
17687 * RootGridEntry.cs: new class to represent GridItemType.Root.
17689 * CategoryGridEntry.cs: reformat, and add boilerplate.
17691 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
17692 returns the UI parent anyway, and we need special handling to
17693 implement the GetTarget method in the face of it. Also, implement
17696 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
17697 a root grid item, and use that instead of PropertyGrid.grid_items.
17698 Also, make use of TypeConverters (and add limitted support for
17699 ICustomTypeDescriptors) when initially populating the grid.
17700 Arrays now show up more or less properly.
17702 2006-11-08 Chris Toshok <toshok@ximian.com>
17704 * Application.cs: set the modal dialog to non modal after we close
17705 it. Fixes bug #79866.
17707 2006-11-08 Jackson Harper <jackson@ximian.com>
17709 * TextControl.cs: When combining lines carry over the line end
17710 style from the end line.
17711 - Invalidate the selected area when setting it, if it is visible.
17712 * TextBoxBase.cs: Only rich text box can do full line selects.
17713 - Make sure to set the cursor position when there is a click,
17714 otherwise two clicks in separate areas could cause a large chunk
17717 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17719 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
17722 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17724 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
17725 time. Remove tooltips when ToolButton click events. Fixes #79856.
17727 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17729 * MenuAPI.cs: Ignore right click for menu actions and fixes
17730 menu border when clicked. Fixes #79846.
17732 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17734 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
17735 MouseState after create wParam for message, this fixes mouse button
17736 equal none in mouse up events.
17738 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
17740 * Control.cs : Focus() now calls Select to set the Container's
17741 Active Control and to give it focus. To avoid infinite recursion
17742 (because ActiveControl also calls Focus at one point), a check
17743 is made in Focus with the help of a new internal variable
17746 2006-11-07 Mike Kestner <mkestner@novell.com>
17748 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
17749 if there's a selection. Fixes #79849.
17751 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
17753 * PropertyGrid.cs: Avoid fixed height of help description label.
17754 Fixes part of bug #79829.
17756 2006-11-07 Chris Toshok <toshok@ximian.com>
17758 * XplatUIX11.cs: fix #79790 again, by using the
17759 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
17761 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17763 * ToolBar.cs: Fix left click checking.
17765 2006-11-07 Chris Toshok <toshok@ximian.com>
17767 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
17769 2006-11-07 Chris Toshok <toshok@ximian.com>
17771 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
17772 PropertyManager unit tests.
17774 * PropertyManager.cs: make property_name internal.
17776 2006-11-07 Chris Toshok <toshok@ximian.com>
17778 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
17779 pass a unit test. Also, don't set image_index to anything in
17780 response to setting the ImageList property.
17782 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17784 * ToolBar.cs: Ignore click events when mouse button is not a
17785 left button, only accepts other button for dropdown menus.
17788 2006-11-07 Chris Toshok <toshok@ximian.com>
17790 * DataGrid.cs: make the back and parent row buttons a little less
17793 2006-11-07 Jackson Harper <jackson@ximian.com>
17795 * TextBoxBase.cs: When converting to Text don't put line breaks in
17796 for soft line breaks.
17797 * TextControl.cs: There is an initial "fake" line in the document,
17798 this is now a soft break line, so that an extra line feed doesn't
17799 get added to the end of documents.
17801 2006-11-07 Chris Toshok <toshok@ximian.com>
17805 * CurrencyManager.cs: if the list is readonly, don't bother
17806 checking if IBindingList.AllowNew is true.
17808 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
17809 for non-DataRowView datasources.. or rather, make it not crash.
17810 (DataGridPaintRelationRow): make sure we limit the row painting to
17811 the area not covered by the row header, and make our cell width at
17812 least large enough to cover the relation area. This allows grids
17813 that have relations but no rows to render correctly.
17814 (DataGridPaintRowContents): same type of changes here.
17815 (SetDataSource): move back to always calling
17816 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
17817 navigating back through relations.
17818 (HitTest): handle the case where we have no cells but have
17819 relations. Right now we generate a hit in cell 0 of whatever the
17820 row is, not sure if this is strictly correct, but it works for our
17823 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
17824 bother doing anything.
17826 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
17828 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
17829 early version of StatusStrip. Not responsible for eaten
17830 application or firstborn children.
17832 2006-11-06 Chris Toshok <toshok@ximian.com>
17834 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
17835 call GetTabRect with a -1 index. Fixes #79847.
17837 2006-11-06 Jackson Harper <jackson@ximian.com>
17839 * TreeNodeCollection.cs: Update scrollbars after clearing.
17841 2006-11-06 Chris Toshok <toshok@ximian.com>
17843 * NumericUpDown.cs: fix the ToString method for some unit test
17846 2006-11-06 Chris Toshok <toshok@ximian.com>
17849 - set the initial SelectedGridItem if we can.
17851 - Exclude non-mergable properties only if we're merging > 1
17852 object. Merging 1 object isn't really merging, obviously.
17854 - Handle PropertySort.NoSort just like Alphabetical, which is
17855 wrong of course, but at least gets things on the screen.
17857 * PropertyGridView.cs:
17858 - Add method "FindFirstItem" which finds the first property grid
17859 item, so we can select it by default.
17861 - make use of GridEntry.CanResetValue.
17863 - Don't call RedrawBelowItemOnExpansion here anymore, the
17864 individual GridEntry's will do that.
17866 - Remove the ITypeDescriptorContextImpl internal class.
17869 - this class needs to implement ITypeDescriptorContext, as it's
17870 what MS's PropertyDescriptorGridEntry does, which means we can
17871 remove the ITypeDescriptorContextImpl internal class from
17872 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
17874 - keep a reference to our PropertyGridView, and move the call to
17875 RedrawBelowItemOnExpansion here from PGV. This means
17876 programmaticly setting Expanded actually does something visible.
17878 - add a CanResetValue() function which takes into account our
17879 possibly multiple "selected_objects" in the merged case. Shifting
17880 PropertyGridView to use this method fixes another unreported
17881 crasher found running the test for #79829.
17883 - when Top or Bounds is updated, make sure the PropertyGridTextBox
17884 is updated to reflect this.
17886 * CategoryGridEntry.cs: the ctor takes the PGV now.
17888 2006-11-06 Jackson Harper <jackson@ximian.com>
17890 * TextControl.cs: These are 1 based.
17891 * TextBoxBase.cs: When setting the selected text, don't change the
17892 selected text tags, this is done by ReplaceText, just position the
17893 cursor at the end of the new text.
17895 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17897 * ListView.cs: Allow label edit only when, when LabelEdit is
17900 2006-11-06 Jackson Harper <jackson@ximian.com>
17902 * TextControl.cs: If a suitable wrapping position isn't found,
17903 just wrap right in the middle of a word.
17905 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17907 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
17910 2006-11-06 Jackson Harper <jackson@ximian.com>
17912 * TreeView.cs: Can't use the VisibleCount property when setting
17913 scrollbar heights, because this doesn't take into account whether
17914 or not the horz scrollbar just came visible.
17916 2006-11-05 Everaldo Canuto <everaldo@simios.org>
17918 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
17919 activated. Fixes #79369, #79832.
17921 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
17923 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
17924 had to remove support for links that point to a directory. FileInfo
17925 returns no usefull information (means, the directory they point to)
17926 for such links. Replaced some empty string ("") with String.Empty.
17928 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17930 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
17931 NullReferenceException when attempting to remove node that is not in
17932 collection. Throw NullReferenceException when null is passed to
17933 Remove. Allow first element of the collection to be removed. Fixes
17934 bug #79831. In GetEnumerator ().Current return null if positioned
17935 before the first element of the collection. In GetEnumerator ().Reset,
17936 position before first element of the collection.
17938 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17940 * PropertyGrid.cs: To match MS, remove default title and description
17941 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
17944 2006-11-04 Chris Toshok <toshok@ximian.com>
17946 * Theme.cs: add a Clamp method, just for kicks.
17948 * ThemeWin32Classic.cs: clamp all color components to [0..255].
17950 2006-11-04 Chris Toshok <toshok@ximian.com>
17952 * Form.cs: if the form isn't visible, Close() does nothing.
17954 2006-11-03 Chris Toshok <toshok@ximian.com>
17956 * Form.cs (Close): if the form is modal, don't Dispose of it, only
17958 (WndProc): don't Dispose after handling the WM_CLOSE message.
17960 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
17961 them as such, instead of using casts from Control to Form. Also,
17962 don't Dispose of the modal dialog when we fall out of the loop -
17963 Close() it instead.
17967 2006-11-03 Chris Toshok <toshok@ximian.com>
17969 * Control.cs (Dispose): only go through the dispose thing if we're
17970 @disposing, and we haven't already been disposed. Fixes bug
17973 * Form.cs: no reason to call "base.Dispose()" here instead of
17976 2006-11-03 Mike Kestner <mkestner@novell.com>
17978 * ComboBox.cs : use ToString instead of casts in AddItem for
17979 sorting functionality. Fixes #79812.
17981 2006-11-03 Chris Toshok <toshok@ximian.com>
17983 * Application.cs: pave the way for actually using the thread
17984 exception dialog. it's ifdefed out at the moment.
17986 2006-11-03 Chris Toshok <toshok@ximian.com>
17988 * ThreadExceptionDialog.cs: until we get a better layout, actually
17989 hide the details textbox and label when we shouldn't see them.
17991 2006-11-03 Jackson Harper <jackson@ximian.com>
17993 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
17994 multiline textboxes anymore. This method also determines the
17995 width/height of a textboxes canvas area.
17996 - Sorta a revert of the last patch. For multiline just position
17997 the controls, then bail. This way the scrollbar width won't be
18000 2006-11-03 Everaldo Canuto <everaldo@simios.org>
18002 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
18003 it dont need. Fixes #79537.
18005 2006-11-02 Jackson Harper <jackson@ximian.com>
18007 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
18008 send the status after firing the DndOver event.
18010 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18012 * TrackBar.cs: Now orientation only switches height / width if
18013 the control's handle is created (Win32 does it like this). Also
18014 fixed a typo in ToString() for a test to pass, changed the
18015 exception thrown in set_LargeChange and set_SmallChange to
18016 match Win32 behaviour, and added TrackBar tests to the unit
18019 2006-11-02 Chris Toshok <toshok@ximian.com>
18021 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
18022 not _NET_WM_STATE_NO_TASKBAR.
18024 2006-11-02 Jackson Harper <jackson@ximian.com>
18026 * TextControl.cs: Increment count by one, since in the update view
18029 2006-11-02 Jackson Harper <jackson@ximian.com>
18031 * TextBoxBase.cs: Use client rectangle not bounds for checking if
18032 the mouse is in the client rectangle (duh).
18034 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18036 * TrackBar.cs: Fixed trackbar jumping around when clicking
18037 on it - the trackbar was not detecting correctly at which
18038 side of the thumb the click was done. (fixes #79718)
18040 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18042 * ListBox.cs: scroll visible area when change SelectedIndex to
18043 a non visible area. Fixes #79481.
18045 2006-11-01 Jackson Harper <jackson@ximian.com>
18047 * TextControl.cs: When replacing the selection move the selection
18048 start/end/anchor to the end of the new text.
18050 2006-11-01 Jackson Harper <jackson@ximian.com>
18052 * XplatUIWin32.cs: When setting the parent change the controls
18053 visibility to it's visibility flag, not to it's old parents
18054 visibility (.Visible walks the parent chain).
18056 2006-11-01 Chris Toshok <toshok@ximian.com>
18058 * XplatUIX11.cs: revert the #79790 fix, as the simple.
18059 XSetTransientForHint fix breaks paint .net's tool windows. more
18060 work needed for that one.
18062 2006-11-01 Chris Toshok <toshok@ximian.com>
18064 * ScrollBar.cs: throw ArgumentException instead of Exception in
18065 LargeChange/SmallChange setters. fixes unit tests.
18067 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
18069 * ContainerControl.cs: reverted rev.67183 (which was itself
18070 a reversion of rev.66853... eh).
18072 * Control.cs: Fixes Reflector hang by changing Focus() call
18073 to what it was before rev.66643 (calling Select() here sets
18074 ActiveControl, which in some situations calls back Focus and
18075 eventually does a stack overflow). Temp fix.
18076 Changes to GetNextControl() to not look for children to select when
18077 parent cannot be selectable (so it looks for siblings instead)
18079 2006-10-31 Mike Kestner <mkestner@novell.com>
18081 * CheckedListBox.cs : off by one error in returned index from
18082 ObjectCollection.Add. Fixes #79758.
18084 2006-10-31 Chris Toshok <toshok@ximian.com>
18086 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
18087 calls for the textbox/spinner, to keep from recursing to the point
18088 where we crash. Fixes #79760.
18090 2006-10-31 Chris Toshok <toshok@ximian.com>
18092 * ListControl.cs (set_SelectedValue): don't throw exceptions on
18093 null/"" value, just return. matches ms's behavior and fixes some
18096 2006-10-31 Chris Toshok <toshok@ximian.com>
18098 * Control.cs (set_Capture): make a logic a little easier to
18101 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
18102 if it's being destroyed. A necessary fix surely, but a bandaid
18103 also, to fix the stuck capture problem in bug #78413.
18105 2006-10-31 Chris Toshok <toshok@ximian.com>
18107 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
18108 convention of clearing hwnd.ClientRect when we set the
18109 width/height (so it'll be recalculated by Hwnd).
18111 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
18113 * ContainerControl.cs: reversed Contains check from
18114 ActiveControl due to hanging problems. This fix
18115 partly regresses #79667 (button does not have
18116 initial focus), so this might be a symptom for
18117 a larger parenting problem (set_ActiveControl
18118 is being called but the child control does
18119 not have the parent set yet?)
18121 2006-10-31 Mike Kestner <mkestner@novell.com>
18123 * MenuAPI.cs : fix keynav when menu is click activated.
18125 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
18127 * ToolStrip*: Version 0.2.
18129 * MenuStrip.cs: Version 0.1.
18131 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
18133 2006-10-30 Chris Toshok <toshok@ximian.com>
18135 [ fixes the oversized notify icon issue in bug #79745 ]
18137 * NotifyIcon.cs: scale the icon down to the size we're given by
18138 the XplatUI layer (this would be faster if we did it once instead
18139 of whenever we paint..) Also, remove the WM_NCPAINT handling,
18140 since it's never invoked.
18142 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
18143 pixels high by default, so let's hardcode our systray icon to that
18144 size. The SYSTEM_TRAY protocol should really have a way for
18145 client apps to query for the correct icon size.. but oh well. A
18146 couple of patches to deal with the screwy client_window ==
18147 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
18148 instance, and also make sure we don't XSelectInput twice).
18150 2006-10-30 Chris Toshok <toshok@ximian.com>
18152 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
18153 recreating forms. Control recreation is the bane of my existence.
18154 Fix it in a way that keeps everyone happy.
18156 2006-10-30 Chris Toshok <toshok@ximian.com>
18158 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
18159 just non-CHILD ones. otherwise sometimes scrollbars end up with
18160 client_windows not being resized to the proper size (ReportBuilder
18161 shows this extremely well).
18163 2006-10-30 Chris Toshok <toshok@ximian.com>
18165 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
18166 for non-WS_EX_APPWINDOW windows. This is what keeps them from
18167 showing up in the gnome taskbar. Fixes bug #79790.
18169 2006-10-30 Chris Toshok <toshok@ximian.com>
18171 * ApplicationContext.cs: guard against a NRE.
18173 * Application.cs: null out the old MainForm for the context, so we
18174 don't try to use it again once it's disposed. Fixes bug #79783.
18176 2006-10-30 Chris Toshok <toshok@ximian.com>
18178 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
18179 BindingContext, set the data source directly, otherwise do the
18180 lazy approach - the actual ListManager will be created when we get
18181 a BindingContext. Fixes bug #79700.
18183 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
18185 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
18186 XplatUIX11.cs: Remove old 2 parameter SetVisible.
18188 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
18190 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
18192 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
18193 of SetVisible that allows a window to be shown, but not activated.
18194 This is needed on Windows for MenuStrip, and can probably be used
18195 with MainMenu and ComboBox to fix the focus stealing issues on
18198 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
18200 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
18202 * PictureBox.cs: Fix the output of the ToString method.
18204 2006-10-29 Chris Toshok <toshok@ximian.com>
18206 * Control.cs (get_TopLevelControl): fix bug #79781.
18208 2006-10-29 Chris Toshok <toshok@ximian.com>
18210 * ListControl.cs (set_DataSource): throw Exception here, not
18211 ArgumentException, to match MS behavior.
18213 2006-10-29 Chris Toshok <toshok@ximian.com>
18215 * Form.cs: remove the try-catch's around calls to GetWindowState.
18216 We can just check the return value.
18218 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
18221 * XplatUI.cs: Add note about additional return value for
18224 2006-10-29 Chris Toshok <toshok@ximian.com>
18226 * Control.cs (CreateHandle): when we create our handle, we also
18227 create the handles of our child controls. Fixes one of the
18228 Control unit tests (CH11).
18230 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18232 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
18234 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18236 * ThemeClearlooks.cs: A little speedup.
18238 2006-10-27 Chris Toshok <toshok@ximian.com>
18240 * Control.cs: implement Control.FromChildHandle in a way that
18241 matches the docs (and fixes the failed test.)
18243 2006-10-27 Chris Toshok <toshok@ximian.com>
18245 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
18248 * DataGrid.cs: implement ResetForeColor such that the tests
18251 2006-10-27 Chris Toshok <toshok@ximian.com>
18253 * ToolBarButton.cs: setting text/tooltiptext to null results in it
18254 being set to "". Fixes bug #79759.
18256 2006-10-27 Jackson Harper <jackson@ximian.com>
18258 * TextControl.cs: We need to clear the entire selection area when
18259 setting the start, otherwise multiline selections are still
18262 2006-10-26 Chris Toshok <toshok@ximian.com>
18264 * PropertyGridView.cs:
18266 - ifdef all the code specific to the double
18267 buffer case, and provide some alternatives in the non-doublebuffer
18268 code, which makes heavy use of XplatUI.ScrollWindow to move things
18269 around without having to invalidate (and cause flicker). There
18270 are still some drawing problems in the non-doublebuffered case, so
18271 DOUBLEBUFFER is defined by default.
18273 - Fix the way dropdowns are handled. now we explicitly watch for
18274 the events which might cause the dropdown to close, and break out
18275 of the nested event loop there. This gets rid of all Capture
18276 code, at the expense of the Msg special casing. Seems to work,
18277 though, and fixes bug #79743.
18279 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18280 * Control.cs: SetIsRecreating now recreates implicitly added
18281 child controls as well. Finally fixes #79629. The flag passed to
18282 SetIsRecreating has also been removed since it wasn't used.
18284 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18286 * PageSetupDialog.cs: Clean some code, fix some bits,
18287 add some checks, and add a printer sub-dialog.
18289 2006-10-26 Chris Toshok <toshok@ximian.com>
18291 * PropertyGrid.cs: make set_SelectedObject call
18292 set_SelectedObjects, and move the duplicate logic to the
18293 SelectedObjects setter. Also, raise SelectedObjectsChanged.
18295 * PropertyGridView.cs: hide the textbox when we get a
18296 SelectedObjectsChanged event.
18300 2006-10-26 Chris Toshok <toshok@ximian.com>
18302 * PropertyGridView.cs: deal with the type converter not supporting
18303 GetStandardValues() or GetStandardValues() returning null, which
18304 is does in the default case. Fixes #79742.
18306 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
18308 * CheckedListBox.cs: nunit no longer crashes when selecting
18309 Project/Edit menu option
18311 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
18313 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
18314 is no menu selected. fixes #79739
18316 2006-10-25 Chris Toshok <toshok@ximian.com>
18318 * PropertyGridView.cs: factor out the splitter invalidation code
18319 into the SplitterPercent setter, and for kicks implement the
18320 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
18321 amount in either direction.
18323 2006-10-25 Chris Toshok <toshok@ximian.com>
18325 * PropertyGridView.cs: do some cleanup of the brush used to draw
18326 text - read only fields should be grayed out. not sure how to do
18327 this with the textbox, though. but the textbox's should also be
18328 readonly now at least. Also, hide/show the textbox when resizing
18331 * CursorConverter.cs: use System.Reflection when getting the
18332 properties of Cursors, as TypeDescriptor.GetProperties isn't
18333 returning static properties.
18335 2006-10-25 Chris Toshok <toshok@ximian.com>
18337 * PropertyGridView.cs: factor out the up/down handling, and reuse
18338 it for page up/down. also add End/Home support.
18340 2006-10-25 Chris Toshok <toshok@ximian.com>
18342 * PropertyGridView.cs:
18344 - ensure the selected grid item is visible in the scrolled area,
18347 - fix Keys.Down handling when you're on the last item in the
18350 2006-10-25 Mike Kestner <mkestner@novell.com>
18352 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
18353 clicks too. Fixes #79725.
18355 2006-10-24 Chris Toshok <toshok@ximian.com>
18357 * PropertyGrid.cs: use property.Converter instead of
18358 TypeDescriptor.GetConverter(property.PropertyType), so we catch
18359 TypeConverters declared on the property as well as on the
18360 PropertyType. Fixes bug #79678.
18362 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
18364 * MimeIcon.cs, Mime.cs:
18365 Fallback to the default platform handler if no shared mime info
18366 stuff exists (fixes #79693).
18368 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18369 * ContainerControl.cs: Incorrect contains check in ActiveControl
18370 from previous fix (duh).
18372 2006-10-20 Chris Toshok <toshok@ximian.com>
18374 * PropertyGridView.cs: the dropdown should be MIN(number of items
18375 in list, 15). Fixes #79551.
18377 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18378 Fixes #79384, #79394, #79652, #79667
18381 - Modal windows are now destroyed in the proper order for windows
18383 * ContainerControl.cs:
18385 - ActiveControl setter has more conditions on when to return:
18386 - if we're reselecting the active control, but it actually
18387 didn't have focus (window hidden or some such), it runs
18388 - if the active control being selected doesn't actually
18389 exist in the container, it returns
18393 - The ShowDialog now gets the current form as the owner when
18394 invoking without parameters, and correctly activates the owner
18399 - MessageBox now catches the Escape key to exit
18401 2006-10-20 Chris Toshok <toshok@ximian.com>
18403 * PropertyGridView.cs: fix a number of issues (bug #78565, and
18404 most of bug #79676):
18406 - you can navigate around the property grid with the arrow keys.
18408 - the dropdown is sized properly when the pg has a vertical
18411 - fix the indentation for subentries, and properly select the
18414 - fix the gray bar's drawing (only draw it to the last element,
18415 not for the height of the control. Also make sure we draw that
18416 last horizontal grid line.
18418 - use the same mechanism the datagrid uses wrt the editing textbox
18419 when scrolling/resizing/etc. Namely, we hide it first, do the
18420 operation, then show it again (if it's still visible).
18422 - aggressively remove a lot of unnecessary refreshes (and also
18423 calls to Invalidate(). call more limited variants, and only redraw
18428 - when we're populating the merged collection, fill in the UI
18429 parent with either the passed in item, or the category item we
18432 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
18434 * GridItem.cs: drop some fully qualified names.
18436 * GridEntry.cs: add a "UIParent", which is basically the parent
18439 * GridItemCollection.cs: add an IndexOf method.
18441 2006-10-20 Mike Kestner <mkestner@novell.com>
18443 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
18444 a working win32 NC invalidation mechanism, we can't invalidate
18445 menus. [Fixes #79705]
18447 2006-10-20 Mike Kestner <mkestner@novell.com>
18449 * ListBox.cs : don't update the VScrollbar if the list is empty,
18450 just hide it. [Fixes #79692]
18452 2006-10-20 Jackson Harper <jackson@ximian.com>
18454 * RichTextBox.cs: Handle some special chars better, and don't skip
18455 the entire group when we encounter a special char that we don't
18458 2006-10-18 Chris Toshok <toshok@ximian.com>
18460 * PropertyGridView.cs: address a number of issues from bug #79676,
18461 mostly of the cosmetic variety.
18463 - The highlight rectangle for indented items not extends all the
18466 - Indented items aren't indented so much.
18468 - the dropdown is properly sized width-wise if the pg has a
18469 vertical scrollbar.
18471 2006-10-18 Chris Toshok <toshok@ximian.com>
18473 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
18474 systray stuff is rather convoluted to begin with.
18476 systray icons are a single window for some reason (that I haven't
18477 figured out yet), and for them, client_window == whole_window.
18478 Given the way the tests are structured elsewhere to determine
18479 which paints are pending (client vs. nc), that situation will
18480 always yield PAINT, not NCPAINT. So, if we have a pending
18481 nc_expose and no pending expose, remove the hwnd from the paint
18482 queue, and also set nc_expose_pending to false, to keep us from
18483 blocking further expose's adding the hwnd to the paint queue.
18485 phew. like i said, a rather convoluted change. Fixes the
18486 notifyicon repaint issues in bug #79645.
18488 2006-10-18 Chris Toshok <toshok@ximian.com>
18490 * Form.cs: when getting the backcolor of the form, don't get
18491 base.BackColor, as this allows parents to influence the background
18492 color. This breaks mdi forms. Instead, if the background_color
18493 is empty, return the default.
18495 2006-10-18 Chris Toshok <toshok@ximian.com>
18497 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
18498 to being private instead of internal static.
18500 * Control.cs: remove all the stupid ParentWaitingOnRecreation
18501 crap, it wasn't working for more deeply nested controls anyway,
18502 and we already have the is_recreating flag - use that instead.
18503 Before calling DestroyHandle in RecreateHandle, recurse through
18504 the control tree setting it to true. this returns the recreate
18505 code to much of its original simplicity, while now guaranteeing we
18506 actually recreate everything we're supposed to. This change gets
18507 fyireporting actually showing mdi children.
18509 2006-10-17 Chris Toshok <toshok@ximian.com>
18511 * Form.cs: remove some debug spew, and collapse some duplicate
18512 code at the end of SetClientSizeCore.
18515 - add some more debug spew here too wrt Destroy handling.
18516 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
18517 in Control's handling of WM_DESTROY.
18518 - Remove the handling of zombie window DestroyNotifies from the
18519 event loop - we don't need it. Now the only DestroyNotifies we
18520 actually handle are ones generated by X.
18521 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
18522 match gtk's (functioning) handling of this. This keep metacity
18523 from leaving droppings in the form of wm borders with no window
18524 contents all over the place.
18527 - add a bunch of debug spew wrt control recreation.
18528 - fix a bug where we weren't tracking Visible properly on
18530 - fixed the WM_PAINT double buffer handling to support re-entrant
18531 calls (yes, i know it's gross, but it's happening to us).
18533 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18534 * ThemeWin32Classic.cs: changed drawing of selected days
18535 to make them look better.
18537 2006-10-16 Chris Toshok <toshok@ximian.com>
18539 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
18540 drawing_stack. Nuke the ClientDC/NonClientDC properties.
18542 * XplatUIX11.cs: move away from using hwnd.client_dc and
18543 hwnd.non_client_dc and on to a stack of dc's (and in window's
18544 case, PAINTSTRUCT's), so we can deal with nested Paint calls
18545 without puking or not disposing of Graphics objects.
18547 * XplatUIOSX.cs: same.
18549 * XplatUIWin32.cs: same.
18551 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
18553 * FileDialog.cs: Don't call on_directory_changed inside
18554 OnSelectedIndexChanged (it changes the SelectedIndex too).
18555 Instead move it to OnSelectionChangeCommitted.
18557 2006-10-13 Chris Toshok <toshok@ximian.com>
18559 * XplatUIX11.cs: more Destroy work. the current code does the
18560 following things, in order:
18562 1. Enumerates all handles of all controls at or below the one
18563 being destroyed, in pre-order. As it is doing this, it marks the
18564 handles as zombie and clears all references to them.
18566 2. calls XDestroyWindow on the window passed in.
18568 3. SendMessage's WM_DESTROY to all he handles in the accumulated
18571 2006-10-13 Chris Toshok <toshok@ximian.com>
18573 * XplatUIX11.cs: set hwnd.zombie to true before calling
18574 SendMessage (WM_DESTROY). this keeps us from marking the new
18575 window a zombie, and also keeps us from calling sendmessage at
18578 2006-10-13 Jackson Harper <jackson@ximian.com>
18580 * TextControl.cs: Do not show the caret and selection at the same
18581 time. Reduces ugliness by 35%.
18583 2006-10-13 Chris Toshok <toshok@ximian.com>
18585 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
18586 zombie after we do the recursive call, so we actually do call
18587 SendMessage on the children controls.
18588 (GetMessage): if we find a pending paint event for a zombie hwnd,
18589 remove the hwnd from the paint queue, or else it will always be
18590 there (and we'll effectively loop infinitely)
18592 2006-10-13 Mike Kestner <mkestner@novell.com>
18594 * MenuItem.cs : add Selected format under keynav too.
18597 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
18599 * PropertyGrid.cs: Fixed some NRE's and small difference between our
18600 implementation and that of MS.
18602 2006-10-13 Chris Toshok <toshok@ximian.com>
18604 * Control.cs (OnInvalidated) only futz with the invalid_region if
18605 the control is double buffered. this fixes the apparent hang in
18606 the ListView unit tests. Someone needs to make the
18607 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
18609 2006-10-13 Chris Toshok <toshok@ximian.com>
18611 * PropertyGridView.cs:
18613 - do a little refactoring so that only one place calls
18614 dropdown_form.Hide, and that is CloseDropDown. make everywhere
18615 else call that. Also make it Refresh, since there are redraw bugs
18616 otherwise (we should take a look at that...)
18618 - do a little more refactoring work to share the body of code
18619 involved with the drop down. it was duplicated in the code
18620 dealing with the listbox handling and in the code dealing with the
18623 - add a Capture to the dropdown form's control once it's
18624 displayed, and add a MouseDown handler that checks to make sure
18625 the position is inside the control. If it's not, close the
18626 dropdown. This fixes #78190.
18628 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
18629 if the value is different than the initial value.
18631 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
18633 * Control.cs: see #78650
18634 - Fixed GetNextControl for several cases:
18635 - Changed FindFlatForward to return
18636 correct sibling control when more than one
18637 control has same TabIndex as the currently
18639 - Changed FindFlatBackward to loop children
18640 from last to first and apply same logic as in
18642 - Changed FindControlForward to search for
18643 children when control is not a container
18644 but has children, or search for siblings if
18645 control is a container...
18646 - Changed FindControlBackward to continue
18647 searching for child controls when hitting
18650 - Fixed Focus method to update ActiveControl
18651 (FocusTest.FocusSetsActive failure)
18654 - Focus rectangle now refreshes when gaining
18656 - Removed grab for Tab key on IsInputKey that
18657 was keeping tab navigation from working (#78650)
18659 2006-10-13 Chris Toshok <toshok@ximian.com>
18661 * PropertyGridView.cs:
18662 - Rewrite SetPropertyValue to loop over SelectedGridItem's
18665 - Deal with GridItem.Value == null a few places.
18668 - replace the PopulateGridItemCollection with a pair of methods
18669 which compute the intersection of all the properties in the
18670 SelectedObjects array. Fixes #79615.
18672 - Throw ArgumentException from set_SelectedObjects if there's a
18675 - Add GetTarget method which can be used to traverse up the
18676 GridItem.Parent chain. It depends on the assumption that
18677 selected_objects for different GridEntries are always in the same
18678 order (a safe assumption). Use this method and loop over all the
18679 selected objects in the entry when calling RemoveValueChanged and
18682 * GridEntry.cs: Make this handle multiple selected objects.
18683 .Value returns null if not all the selected objects share the same
18686 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
18687 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
18688 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
18689 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
18690 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
18691 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
18692 add additional functionality.
18694 2006-10-12 Mike Kestner <mkestner@novell.com>
18696 * ErrorProvider.cs : new ToolTipWindow ctor sig.
18697 * HelpProvider.cs : new ToolTipWindow ctor sig.
18698 * ToolTip.cs : remove ToolTip param from Window sig since it is
18700 * ToolBar.cs : add tooltip support. Fixes #79565.
18702 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18704 * ComboBox.cs: move the events in set_SelectedIndex to
18705 after the call to HighlightIndex in order to avoid
18706 possible recursion and subsequent problems with the call
18707 to HighlightIndex and include a range check in
18708 set_HighlightIndex. Fixes #79588
18710 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18712 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
18713 to ui thread's settings instead of sunday.
18714 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
18716 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18718 * DateTimePicker.cs
18720 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
18721 and implement missing functionality (selecting different parts
18722 of the date and edit them individually with the keyboard).
18724 2006-10-11 Chris Toshok <toshok@ximian.com>
18726 * Control.cs (OnInvalidated): fix NRE relating to last change.
18728 2006-10-11 Chris Toshok <toshok@ximian.com>
18730 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
18731 atoms in _NET_WM_STATE here if the window is maximized. We need
18732 to do this because we're *replacing* the existing _NET_WM_STATE
18733 property, so those atoms will be lost otherwise, and any further
18734 call to GetWindowState will return Normal for a window which is
18735 actually maximized. Fixes #79338.
18737 2006-10-11 Jackson Harper <jackson@ximian.com>
18739 * TextControl.cs: Special case for setting selection end to
18740 selection start, we basically kill the anchor.
18741 - some todo comments.
18743 2006-10-11 Chris Toshok <toshok@ximian.com>
18745 * Control.cs: switch to using an "invalid_region" to track which
18746 parts of the image buffer need updating. This is more code than
18747 the simple fix from r66532. That version just attempted to always
18748 fill the entire buffer on redraw, which turns out to be
18749 inefficient when invalidating small rectangles. This version
18750 simply adds the invalid rectangle to the invalid region. When we
18751 get any WM_PAINT message we see if it can be filled using the
18752 image buffer, and if it can't (if the paint event's clip rectangle
18753 is visible in the invalid region) we first fill the image buffer.
18754 So, the image buffer is still a cache, we just fill it lazily.
18756 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
18757 need it any longer.
18759 2006-10-11 Chris Toshok <toshok@ximian.com>
18761 * XplatUIX11.cs (SetWindowPos): we need to update both position as
18762 well as size after calling XMoveResizeWindow. This keeps us from
18763 ignoring future SetWindowPos calls. Fixes the disappearing
18764 DateTimePicker in the ToolBarDockExample from bug #72499.
18766 2006-10-11 Chris Toshok <toshok@ximian.com>
18768 * TextBoxBase.cs: reorder things a bit when it comes to
18769 resizing-causing-recalculation. we were recalculating the
18770 document when our position was changed, which shouldn't happen.
18771 We only care about size changes. Clear up some more redundant
18772 recalculation calls while I'm at it. This makes the toolbar dock
18773 example snappy when you're just dragging toolbars around (since it
18774 causes a relayout whenever you move one.)
18776 2006-10-11 Chris Toshok <toshok@ximian.com>
18778 * ToolBarButton.cs (get_Rectangle): this only returns
18779 Rectangle.Empty if Visible == false, or Parent == null.
18780 Parent.Visible doesn't matter.
18782 2006-10-10 Chris Toshok <toshok@ximian.com>
18784 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
18785 by .net 1.1, so switch to an internal method instead.
18787 2006-10-10 Chris Toshok <toshok@ximian.com>
18789 * Control.cs (WM_PAINT): when a control is double buffered we draw
18790 initially to the ImageBuffer and then copy from there. But when a
18791 parent control which has child controls is double buffered, the
18792 initial drawing doesn't encompass the entire ClientRectangle of
18793 the parent control, so we end up with uninitialized bits (this is
18794 easily seen by dragging the top toolbar in
18795 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
18796 manually set the ClipRectangle of the paint_event (only the one we
18797 use to populate the ImageBuffer) to ClientRectangle. Fixes more
18798 of the nastiness in bug #72499.
18800 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
18801 which we use in Control.cs's WM_PAINT handling.
18803 2006-10-10 Jackson Harper <jackson@ximian.com>
18805 * TextBoxBase.cs: Finish off the autoscrolling stuff.
18807 2006-10-10 Chris Toshok <toshok@ximian.com>
18809 * Cursor.cs: Apply a slightly different patch to the one suggested
18812 2006-10-10 Jackson Harper <jackson@ximian.com>
18814 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
18815 not the parent form.
18816 * TextControl.cs: use difference in old line count vs new count to
18817 calculate how many lines were added, this takes into account soft
18818 line breaks properly.
18820 2006-10-10 Chris Toshok <toshok@ximian.com>
18822 * LinkLabel.cs: don't call MeasureCharacterRanges against a
18823 rectangle located at 0,0 and the size of the text. Use
18824 ClientRectangle instead. This fixes rendering of non-left aligned
18827 2006-10-10 Jackson Harper <jackson@ximian.com>
18829 * TextBoxBase.cs: When we set the selection start position the
18831 * TextControl.cs: Need to update the caret when we decrement it to
18833 - Make sure that the selection_visible flag gets reset to false if
18834 the selection isn't visible. Before this you could get it set to
18835 visible by changing the selection start, then changing the end to
18838 2006-10-09 Jackson Harper <jackson@ximian.com>
18840 * TreeView.cs: Don't update scrollbars when we aren't visible.
18841 * TreeNodeCollection.cs: Only need to update scrollbars if being
18842 added to an expanded visible node or the root node.
18844 2006-10-09 Chris Toshok <toshok@ximian.com>
18846 * XplatUIX11.cs (SendMessage): fix NRE.
18848 2006-10-09 Jackson Harper <jackson@ximian.com>
18850 * TextBoxBase.cs: Implement horizontal autoscrolling.
18851 * TextControl.cs: Add a movement types that allows moving forward
18852 and backwards without wrapping.
18854 2006-10-09 Mike Kestner <mkestner@novell.com>
18856 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
18857 with focus "expansion" of labels. Fixes #79532 and then some.
18858 * ThemeWin32Classic.cs : add LineLimit to ListView label format
18861 2006-10-09 Jackson Harper <jackson@ximian.com>
18863 * TextBoxBase.cs: Set the default max values to MaxValue since
18864 we use the scrollbar for autoscrolling and the default value is
18865 100. If we don't do this the caret won't keep up with typing
18866 after about 18 characters.
18867 * TextControl.cs: Make sure the selection is offset by the
18868 viewport x. This fixes selection when using auto scrolling.
18870 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
18872 * Form.cs: The active control should be selected after the
18873 OnLoad so that any child control initialization that affects
18874 the selection is done. Fixes #79406
18876 2006-10-06 Chris Toshok <toshok@ximian.com>
18878 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
18879 to have no evil effects.
18881 - Stop selecting StructureNotifyMask on non-toplevel windows.
18883 The only way children should be resized is by using the SWF api,
18884 and we already send WM_WINDOWPOSCHANGED messages in those cases.
18885 Toplevel windows can be interacted with via the window manager,
18886 and so we keep the input mask there.
18888 The other event StructureNotifyMask gives us (that we care
18889 about) is DestroyNotify. The code is already structured such
18890 that it assumes we won't be getting a DestroyNotify event for
18891 the window we pass to XDestroyWindow (which is what
18892 StructureNotifyMask is supposed to guarantee.) So, that code
18893 shouldn't be affected by this either.
18895 - Stop selecting VisibilityChangeMask altogether.
18897 We weren't doing anything with the resulting events anyway.
18899 This vastly reduces the number of X requests and events we see
18900 when resizing/laying out a large ui.
18902 2006-10-06 Chris Toshok <toshok@ximian.com>
18904 * ScrollableControl.cs (DisplayRectangle): we need to take into
18905 account the DockPadding regardless of whether or not auto_scroll
18906 == true. rework this slightly to this effect, and fix bug #79606,
18907 and part of #72499 (you can now see the drag handles and drag
18910 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
18912 * ListViewItem.cs: Collections of selected and checked items are now
18913 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
18914 we mark the collection "dirty".
18915 * ListView.cs: Marked collections readonly. Modified UpdateSelection
18916 to only clear SelectedItems when a new item is selected and MultiSelect
18917 is enabled. CheckedItems and SelectedItems now subscribe to Changed
18918 event of ListViewItemCollection, and mark its list dirty whenever
18919 that event is fire. This allows us to return selected/checked items
18920 in the same order as they are in the Items collection. This matches
18923 2006-10-06 Chris Toshok <toshok@ximian.com>
18925 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
18926 right mouse clicks. Fixes bug #79593.
18928 2006-10-06 Chris Toshok <toshok@ximian.com>
18930 * Splitter.cs: doh, fix splitters that don't want to cancel the
18931 movement when you drag them. Also, impose the limits on the
18932 values we send to the SplitterMovingEvent. Fixes #79598.
18934 2006-10-06 Jackson Harper <jackson@ximian.com>
18936 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
18937 since we use this for auto scrolling also.
18939 2006-10-05 Chris Toshok <toshok@ximian.com>
18941 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
18942 beginning to think that most datagrid column types don't need this
18943 method. Fixes bug #79392.
18945 2006-10-05 Chris Toshok <toshok@ximian.com>
18947 * DataGrid.cs: move back to a more lazy scheme for creating the
18948 CurrencyManager, so we aren't updating it every time you set
18949 either DataSource or DataMember. Also, don't call
18950 RecreateDataGridRows if the currency manager hasn't changed.
18952 2006-10-05 Chris Toshok <toshok@ximian.com>
18954 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
18955 emitted, SelectedIndex should already be updated. Fixes bug
18958 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
18960 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
18961 ToolStripTextBox.cs: Initial commit.
18962 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
18964 2006-10-05 Jackson Harper <jackson@ximian.com>
18966 * TabControl.cs: We need to invalidate the tab control area when
18967 new ones are added (duh).
18969 2006-10-03 Chris Toshok <toshok@ximian.com>
18971 * Form.cs (ProcessDialogKey): if the focused control is in this
18972 form and is a button, call its PerformClick method here. Fixes
18975 2006-10-04 Jackson Harper <jackson@ximian.com>
18977 * TabPage.cs: Ignore setting of Visible, and add an internal
18978 method for setting the controls visibility. TabPage's Visible
18979 property is a little strange on MS, this seems to make us
18980 compatible, and fixes cases where people set all the tab pages to
18982 * TabControl.cs: Use the new internal setting on tab pages
18985 2006-10-03 Mike Kestner <mkestner@novell.com>
18987 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
18989 2006-10-03 Mike Kestner <mkestner@novell.com>
18991 * ListView.cs : use is_visible instead of Visible to check if
18992 scrollbars should be placed/sized. Also some max_wrap_width
18993 love for LargeIcon view. [Fixes #79533]
18995 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
18998 Make set_TextAlign() do actually update the align. Fixed #78403.
19000 2006-10-03 Chris Toshok <toshok@ximian.com>
19002 * DataGrid.cs: fix a crash when switching datasources if the
19003 vertical scrollbar is at someplace other than Value = 0. Also,
19004 reduce the number of recalculation passes we do in SetDataSource
19007 2006-10-03 Jackson Harper <jackson@ximian.com>
19009 * TextBoxBase.cs: Move the if value the same bail check up, we
19010 don't want to empty the document if it is already empty, this
19011 seems to severly mess up the caret. TODO: I should probably fix
19012 the empty statement to update teh caret somehow.
19014 2006-10-03 Chris Toshok <toshok@ximian.com>
19016 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
19017 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
19018 reflection, an internal row type, properties on said type, etc.)
19019 will work with our datagrid. Fixes #79531.
19021 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
19023 * FileDialog.cs: Don't crash if a path is not accessible
19024 (System.UnauthorizedAccessException). Fixes #79569.
19025 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
19026 a ':' too. Return unknown icon for those paths/files.
19028 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
19030 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
19031 GetContainerControl returns null.
19033 2006-10-02 Chris Toshok <toshok@ximian.com>
19035 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
19036 call to XGetWindowAttributes instead of "handle". fixes an X
19037 error using notifyicon after the NotifyIconWindow to Form base
19040 2006-10-02 Chris Toshok <toshok@ximian.com>
19042 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
19043 server grab and looping we need to do to get down to the most
19044 deeply nested child window.
19045 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
19046 QueryPointer again after the WarpPointer so we can generate a
19047 proper (fake) MotionNotify event to be enqueued in the destination
19049 (GetCursorPos): call QueryPointer.
19053 2006-10-02 Jackson Harper <jackson@ximian.com>
19055 * NotifyIcon.cs: Derive the notify icon from a form, so things
19056 like FindForm work on it.
19057 - Swallow the WM_CONTEXTMENU message, since that is generated on
19058 mouse down, and context menu is a mouse up kinda guy. I believe
19059 the correct fix here is probably to make the notify icon entirely
19060 NC area, but this seems to work fine for anyone not manipulating
19063 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
19065 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
19066 ToolStripItemCollection.cs, ToolStripLabel.cs,
19067 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
19068 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
19069 Initial implementation.
19070 * TextRenderer.cs: Provide padding to MeasureText.
19072 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
19074 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
19075 of ButtonBaseAccessibleObject. Fix bug #79552.
19077 2006-10-02 Jackson Harper <jackson@ximian.com>
19079 * MdiWindowManager.cs: When maximizing use the containers client
19080 rect, not it's bounds, so nc area is accounted correctly.
19081 - Use the parent form's size for the menu position, since the
19082 client isn't always the full form size.
19084 2006-10-01 Chris Toshok <toshok@ximian.com>
19086 * ScrollableControl.cs: make sure neither right_edge or
19087 bottom_edge are < 0, since they're used as LargeChange for the
19088 horiz/vert scrollbars respectively. Fixes #79539.
19090 2006-10-01 Chris Toshok <toshok@ximian.com>
19092 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
19093 the xplatuix11 code can cause us to destroy/recreate our handle.
19097 - this code can be invoked many times for the same Hwnd. Make
19098 sure we only destroy the client window once (the first time this
19099 method is called). This fixes bug #79544.
19100 - Remove the call to the improperly bound XSync. why we had two
19101 bindings to this, I will never know, but this call resulted in
19102 events being discarded from the queue(!).
19103 - correct a misunderstanding of _XEMBED_INFO - the second atom is
19104 not our current state but the state we wish to be in. So, 0 if
19105 we don't want to be mapped. Change it to 1.
19106 (SystrayRemove): The XEMBED spec makes mention of the fact that
19107 gtk doesn't support the reparent of client windows away from the
19108 embedder. Looking at gtksocket-x11.c seems to agree with this.
19109 The only avenue we have for removing systray icons is to destroy
19110 them. We don't want the handle to go away for good, though, so
19111 call InternalRecreateHandle on the NotifyIconWindow. Fixes
19114 2006-10-01 Chris Toshok <toshok@ximian.com>
19116 * Form.cs (WndProc): inline the native_enabled variable usage into
19117 the cases in which it's used. Fixes #79536.
19119 2006-09-29 Mike Kestner <mkestner@novell.com>
19121 * ListView.cs : toggle the selection state for ctrl clicks in
19122 multiselect mode. [Fixes #79417]
19124 2006-09-29 Mike Kestner <mkestner@novell.com>
19126 * ListView.cs : kill CanMultiSelect and refactor the selection
19127 code to support multiselection in the absence of mod keys. Steal
19128 arrow/home/end keys by overriding InternalPreProcessMessage to
19129 restore regressed keynav behavior.
19132 2006-09-29 Jackson Harper <jackson@ximian.com>
19134 * MdiClient.cs: Repaint the titlebars when the active window is
19137 2006-09-29 Chris Toshok <toshok@ximian.com>
19139 * Application.cs: when entering a runloop with a modal, make sure
19140 the hwnd is enabled. Fixes #79480.
19142 2006-09-29 Chris Toshok <toshok@ximian.com>
19144 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
19145 when ListManager.CanAddRows == false, bump us back one.
19147 * DataGridColumnStyle.cs (ParentReadOnly): remove the
19148 listmanager.CanAddRows check. This makes ArrayLists uneditable
19149 using a datagrid, which is not right.
19150 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
19151 is an IEditable, but call property_descriptor.SetValue regardless.
19154 2006-09-29 Chris Toshok <toshok@ximian.com>
19156 * DataGridBoolColumn.cs: we need to test equality in the face of
19157 possible null values (as is the case with the default NullValue).
19158 This patch keeps us from crashing in that case.
19160 2006-09-29 Jackson Harper <jackson@ximian.com>
19162 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
19163 here, since it will get called for every node collection in the
19164 tree. This is now done in the treeview once the sorting is
19166 * TreeView.cs: Recalculate the visible order, and update the
19167 scrollbars after sorting, set the top nope to the root so that the
19168 recalc actually works.
19170 2006-09-29 Chris Toshok <toshok@ximian.com>
19172 * LinkLabel.cs: more handling of the default link collection in
19173 the face of LinkArea manipulation. The default link collection
19174 contains 1 element (start=0,length=-1). If the user sets LinkArea
19175 to anything and the links collection is the default, clear it.
19176 Then only add the link if its nonempty. Fixes #79518.
19178 2006-09-29 Chris Toshok <toshok@ximian.com>
19180 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
19181 piece correctly when we hit a '\n'. Fixes #79517.
19183 2006-09-29 Chris Toshok <toshok@ximian.com>
19185 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
19186 change the binding of gdk_init_check to take two IntPtr's, and
19187 pass IntPtr.Zero for both of them. Fixes #79520.
19189 2006-09-29 Mike Kestner <mkestner@novell.com>
19191 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
19194 2006-09-28 Jackson Harper <jackson@ximian.com>
19196 * XplatUIX11.cs: When translating NC messages make sure we go from
19197 whole window to screen, not client window to screen.
19198 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
19199 method doesn't exist
19200 - Skip over controls that aren't forms when arranging.
19202 2006-09-28 Jackson Harper <jackson@ximian.com>
19204 * XplatUIWin32.cs: Clip the rect to the parent window.
19205 * XplatUIStructs.cs: Add clipping modes struct.
19206 * InternalWindowManager.cs: New private method that factors title
19207 bar heights in when calculating the pos of an NC mouse message.
19208 - Use SendMessage to force a paint when the form's size is changed
19209 instead of painting the decorations immediately.
19210 - Don't let the NC button click messages get to DefWndProc,
19211 because they will attempt to handle windowing themself, and this
19212 messes up z-order (it will put them in front of the scrollbars).
19213 * XplatUIX11.cs: Make sure that we don't reset window managers if
19214 we already have one (ie the window is an MDI window).
19216 2006-09-28 Chris Toshok <toshok@ximian.com>
19218 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
19219 menu code really needs going over.
19221 2006-09-27 Chris Toshok <toshok@ximian.com>
19223 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
19224 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
19225 window is maximizable. So, we need to make sure that even if we
19226 clear the border/wm frame of those functions, they're still
19227 available (basically, we remove the decoration without removing
19228 the function). Half the fix for #79338.
19230 2006-09-27 Chris Toshok <toshok@ximian.com>
19232 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
19235 2006-09-27 Chris Toshok <toshok@ximian.com>
19237 * Splitter.cs: reorder things a bit so that we don't actually
19238 draw/move the splitter until after calling OnSplitterMoving. This
19239 lets users cancel/disallow the movement by explicitly setting
19240 event.SplitX/SplitY. Fixes #79372.
19242 2006-09-27 Jackson Harper <jackson@ximian.com>
19244 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
19245 because it is most likely on a window being destroyed, and that
19246 will give us an X11 error.
19248 2006-09-27 Chris Toshok <toshok@ximian.com>
19250 * PropertyGridView.cs: half of the fix for #78190. Clicking on
19251 the dropdown button now toggles between showing and hiding the
19252 dropdown. Also, get rid of dropdown_form_showing and just use
19253 dropdown_form.Visible. We still don't do a grab, but I'll leave
19254 that part to someone who has handled Capture-fu before.
19256 2006-09-27 Chris Toshok <toshok@ximian.com>
19258 * DataGrid.cs: return false if alt isn't pressed when '0' is
19259 pressed. this keeps the '0' key from being swallowed, and fixes
19262 2006-09-27 Chris Toshok <toshok@ximian.com>
19264 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
19265 Calling Refresh (in response to a scrollbar event) screws up the
19266 scrollbar painting. Fixes bug #78923.
19268 2006-09-27 Chris Toshok <toshok@ximian.com>
19270 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
19271 then insert into hashtable" blocks threadsafe.
19273 2006-09-27 Chris Toshok <toshok@ximian.com>
19275 * MessageBox.cs (CreateParams): the styles should be |'ed with our
19276 baseclass's, since otherwise the
19277 ControlBox/MinimizeBox/MaximizeBox assignments above have no
19278 effect. This gets the close button back in messageboxes.
19280 2006-09-27 Chris Toshok <toshok@ximian.com>
19282 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
19283 flag, not just != 0. this makes flags that are actually multiple
19284 bits (like WS_CAPTION) work. fixes bug #79508.
19286 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
19288 * PageSetupDialog.cs: add support for getting and settings the
19289 paper size, source and orientation.
19291 2006-09-26 Chris Toshok <toshok@ximian.com>
19293 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
19294 and caption == "", we need to remove the resize handles as well as
19297 * Control.cs (set_Text): turns out that setting Text on a form
19298 should change the WM styles on the window, since if ControlBox ==
19299 false, the only way to get a window border is to have a non-""
19300 Text property. check winforms/forms/text.cs for an example. so,
19301 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
19302 update both window styles and title. This fixes a lot of dialogs
19303 (including the preferences dialog in MonoCalendar.)
19305 2006-09-26 Chris Toshok <toshok@ximian.com>
19307 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
19308 control isn't a Form), call Win32ShowWindow to hide the window,
19309 but don't update the control Visible property. When we reparent
19310 back to a parent control, call SetVisible in order for the
19311 window's visibility to be reinstated.
19313 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
19316 * Control.cs (ControlCollection.Remove): remove that value.Hide()
19317 call for good, since it breaks MonoCalendar (and other things I'm
19318 sure.) Also, set all_controls to null *after* the owner calls,
19319 which end up regenerating it.
19320 (ChangeParent): allow new_parent to be == null, passing
19321 IntPtr.Zero down to XplatUI.
19323 this fixes #79294 the right way.
19325 2006-09-26 Mike Kestner <mkestner@novell.com>
19327 * GridEntry.cs : internal SetParent method.
19328 * PropertyGrid.cs : attach to property changed on the proper
19329 target if we have a hierarchical grid with subobjects. Setup
19330 GridItem.Parent for hierarchical items.
19331 * PropertyGridView.cs : Set value on the correct target for
19332 hierarchical grids. [Fixes #78903]
19334 2006-09-26 Chris Toshok <toshok@ximian.com>
19336 * Control.cs (ChildNeedsRecreating): this should return true if
19337 either we're being recreated and the child is in our list, or our
19338 parent is waiting for our recreation.
19340 2006-09-26 Chris Toshok <toshok@ximian.com>
19342 * Control.cs (ControlCollection.Remove): reinstate the
19343 value.Hide() call as suggested in bug #79294.
19345 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
19347 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
19348 coordinates (versus a relative move).
19350 2006-09-26 Chris Toshok <toshok@ximian.com>
19352 * Control.cs: rework child recreation a little bit. It turns out
19353 that we race between the DestroyNotify the WM_DESTROY message. If
19354 the parent gets its DestroyNotify before the child gets the
19355 WM_DESTROY message, the child ends up not recreating (since the
19356 parent finishes its recreation on DestroyNotify, and the child
19357 checks ParentIsRecreating.)
19359 So, instead we store off a list of all the child controls which
19360 need to be recreated when the parent control starts to recreate
19361 itself. Then, when child controls get their WM_DESTROY message we
19362 check to see if they're in the parent's pending recreation list,
19363 and if so, we recreate. This removes all dependency on ordering
19364 from the code and fixes the initial MonoCalendar upgrade dialog.
19366 2006-09-26 Jackson Harper <jackson@ximian.com>
19368 * TextControl.cs: Use the Line to get the length of the line,
19369 since soft line breaks can change the end line.
19371 2006-09-26 Chris Toshok <toshok@ximian.com>
19373 * Control.cs (ControlCollection.AddImplicit): don't add the
19374 control again if it's already in one of our lists. This keeps us
19375 from adding controls over and over again for comboboxes when their
19376 handle gets recreated (as the combobox adds implicit controls in
19377 OnHandleCreated). Fixes the X11 errors in bug #79480.
19379 2006-09-26 Jackson Harper <jackson@ximian.com>
19381 * TextControl.cs: When deleting characters make sure that any
19382 orphaned zero lengthed tags get deleted.
19383 - Fix ToString for zero lengthed tags.
19385 2006-09-25 Jackson Harper <jackson@ximian.com>
19387 * TextControl.cs: When getting a tag at the location there can be
19388 multiple tags at the same spot, these are 0-lengthed tags that
19389 appear when extra formatting has been stuck in a location. We
19390 need to pull out the last of these 0 lengthed tags.
19392 2006-09-25 Jackson Harper <jackson@ximian.com>
19394 * TextControl.cs: Fix print out in debug method.
19395 * TextBoxBase.cs: When text is set bail if we are setting to the
19398 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
19400 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
19401 It is now possible to change the selected index in a FontXXXListBox
19402 with the up and down arrow keys from the FontXXXTextBoxes.
19403 Also, send the FontXXXTextBox mouse wheel event to the corresponding
19404 FontXXXListBoxes to match ms.
19406 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
19408 * SystemInformation.cs: Return a clone of the theme's MenuFont because
19409 anyone can dispose it, anytime. All other properties returns enums,
19410 structs or basic types so they don't need such tricks.
19412 2006-09-22 Jackson Harper <jackson@ximian.com>
19419 * XplatUIDriver.cs: Update interface to add a primary selection
19420 flag, so the driver can use the primary selection buffer if
19422 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
19424 * RichTextBox.cs: We need to supply the data object to paste now
19425 (so we can choose to supply CLIPBOARD or PRIMARY).
19426 * TextBoxBase.cs: Supply data object to paste (see above).
19427 - Middle click uses the primary selection data object.
19429 2006-09-21 Chris Toshok <toshok@ximian.com>
19431 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
19432 of SetWMStyles. It's still a rat's nest and is largely
19433 order-dependent which I dislike immensely. This also fixes the X
19434 button disappearing from toplevel forms.
19436 2006-09-21 Mike Kestner <mkestner@novell.com>
19438 * ListBox.cs: move Jordi's click/dblclick raising code to the
19441 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
19443 * ListBox.cs: Fixes 79450
19445 2006-09-21 Mike Kestner <mkestner@novell.com>
19447 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
19448 to deal with people updating the TreeNodeCollection after the tree
19449 is disposed. "Fixes" 79330.
19451 2006-09-20 Jackson Harper <jackson@ximian.com>
19453 * TextControl.cs: Push the cursor record onto the undo stack
19454 before the delete action. This fixes 78651.
19456 2006-09-20 Jonathan Chambers <joncham@gmail.com>
19458 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
19459 CreateParams. Fixes 79329.
19461 2006-09-19 Chris Toshok <toshok@ximian.com>
19463 * XplatUIX11.cs: a couple of blanket code massage passes to clean
19464 things up a bit. First, get rid of the NetAtoms array (and the NA
19465 enum), and just embed the atoms as static fields. Also, add a
19466 couple of functions (StyleSet and ExStyleSet) to clean up all the
19467 bitmask testing of styles.
19469 * X11Structs.cs: remove the NA enum, not needed anymore.
19471 2006-09-19 Chris Toshok <toshok@ximian.com>
19473 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
19474 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
19475 added cleanup to get MessageBox titles appearing again, which were
19476 broken by my earlier fix for caption-less/ControlBox-less windows.
19478 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
19480 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
19481 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
19482 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
19483 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
19484 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
19485 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
19486 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
19487 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
19488 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
19489 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
19490 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
19492 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
19493 ToolStripButton.cs: Stubs needed for above.
19494 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
19496 2006-09-15 Chris Toshok <toshok@ximian.com>
19499 - make the MessageQueues hashtable Synchronized.
19501 - SendMessage: if the Hwnd is owned by a different thread, use the
19502 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
19503 thread. Fixes bug #79201.
19505 2006-09-15 Chris Toshok <toshok@ximian.com>
19507 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
19508 ControlBox == false, we disallow maximize/minimize/close. If the
19509 form Caption is "" we also disallow move (and get rid of the Title
19510 decoration). Unfortunately, regardless of how things are set,
19511 we're stuck with the Title and WM menu.
19513 2006-09-15 Chris Toshok <toshok@ximian.com>
19515 * Application.cs: add locking around the static message_filters
19516 ArrayList, part of #79196.
19518 2006-09-15 Chris Toshok <toshok@ximian.com>
19520 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
19521 Form.ControlBox == false, the window has no titlebar nor resize
19522 handles. fixes bug #79368.
19524 2006-09-15 Chris Toshok <toshok@ximian.com>
19526 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
19527 >= 0. Fixes bug #79370.
19529 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
19530 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
19532 Add properties: LayoutEngine, Margin, DefaultMargin.
19533 Add method: GetPreferredSize.
19534 Move layout logic from PerformLayout to layout engines.
19536 2006-09-13 Chris Toshok <toshok@ximian.com>
19538 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
19539 fix for #79326 broke #78718, so this change addresses that.
19541 - in SendWMDestroyMessages remove the call to
19542 CleanupCachedWindows, since we might be recreating the control and
19543 need to maintain the references to right Hwnd handles. Also, set
19544 the zombie flag to true for each of the children in the hierarchy
19545 instead of calling hwnd.Dispose. This will cause GetMessage to
19546 ignore all events for the window except for DestroyNotify.
19548 - In GetMessage, ignore messages except for DestroyNotify for
19551 * Control.cs: revert the is_recreating fix from the last
19552 ChangeLog. It's definitely "right", but it breaks switching from
19553 an MDI form to a non-MDI form. Will need to revisit that.
19555 * Hwnd.cs: add a zombie flag, which means "the
19556 client_window/whole_window handles are invalid, but we're waiting
19557 for the DestroyNotify event to come in for them". Set the flag to
19558 false explicitly if setting WholeWindow/ClientWindow, and also
19561 2006-09-13 Chris Toshok <toshok@ximian.com>
19563 * XplatUIX11.cs: rework window destruction slightly.
19565 - when destroying the windows associated with a control, we don't
19566 need 2 separate XDestroyWindow calls. Just the one for the
19567 whole_window (or for client_window if whole_window is somehow
19568 IntPtr.Zero -- can this happen?) is enough.
19570 - reworked SendWMDestroyMessages slightly, so we always dispose
19571 the child control hwnd's after sending the messages.
19573 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
19574 the two places it was used (one was even using hwnd.Handle and the
19575 other hwnd.client_window. ugh), adding another call in
19576 SendWMDestroyMessages. We need this new call because now the
19577 DestroyNotify events in the queue will be ignored for the child
19578 controls (as their hwnd's were disposed, and the window id's
19579 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
19581 - this fixes bug #79326.
19583 2006-09-13 Chris Toshok <toshok@ximian.com>
19585 * Control.cs: don't always set is_recreating to false at the end
19586 of RecreateHandle, since sometimes we're not done (and won't be
19587 until WndProc handles the WM_DESTROY message). Also, set
19588 is_recreating to false in the WM_DESTROY handling code. Part of
19589 the fix for bug #79326.
19591 2006-09-13 Miguel de Icaza <miguel@novell.com>
19593 * X11DesktopColors.cs: Start the droppage of debugging messages.
19595 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
19597 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
19599 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
19601 2006-09-12 Chris Toshok <toshok@ximian.com>
19603 * DataGrid.cs (get_ListManager): if the list_manager is null, try
19604 to create it using SetDataSource. Fixes bug #79151.
19606 2006-09-11 Chris Toshok <toshok@ximian.com>
19608 * XEventQueue.cs: add a DispatchIdle property.
19610 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
19611 either the queue is null, or the queue has DispatchIdle set to
19613 (DoEvents): set queue.DispatchIdle to false around the
19614 peek/translate/dispatch message loop in this method. This keeps
19615 Application.Doevents from emitting idle events. Part of the fix
19618 2006-09-11 Chris Toshok <toshok@ximian.com>
19620 * DataGrid.cs (set_DataSource): make this work for both the
19621 winforms/datagrid test and ReportBuilder. It seems as though when
19622 we've created a ListManager (or maybe it's if we have a
19623 BindingContext?), when we set the DataSource it clears the
19624 DataMember to "". otherwise we reuse the datamember. Fixes bug
19627 2006-09-11 Chris Toshok <toshok@ximian.com>
19629 * XplatUIX11.cs: deal with queue being null, which happens in all
19630 the Clipboard functions. Fixes one of the two problems mentioned
19633 2006-09-11 Chris Toshok <toshok@ximian.com>
19635 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
19636 button on various spots (including outside the menu) works closer
19637 to MS, and doesn't crash. Fixes #79343.
19639 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
19641 * ListView.cs: Do not initialize item_sorter in init. To match MS,
19642 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
19643 and the internal comparer is set. When a new ListViewItemSorter is set,
19644 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
19645 was specified. No further processing is necessary if SortOrder is set
19646 to it's current value. If Sorting is modified to None, and View is
19647 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
19648 (either custom or our internal ItemComparer) to null, on 1.0 profile
19649 only set item_sorter to null if its our internal IComparer. If Sorting
19650 is modified to Ascending or Descending, then use our internal IComparer
19651 if none is set, and if the current IComparer is our internal one then:
19652 on 2.0 profile always replace it with one for new Sorting, and on 1.0
19653 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
19654 Enum.IsDefined to verify whether a valid View value is specified in
19655 its setter. Automatically sort listview items when listview is
19656 created. In Sort, do nothing if ListView is not yet created, or if
19657 no item_sorter is set (no Sorting was set, Sorting was explicitly set
19658 to None or ListViewItemSorter was set to null). Added Sort overload
19659 taking a bool to indicate whether the ListView should be redrawn when
19660 items are sorted (we use this in ListViewItemCollection to avoid double
19661 redraws). Modified our internal IComparer to take the sort order into
19662 account. In Add and AddRange methods of ListViewItemCollection, also
19663 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
19664 view), but use overload with noredraw option to avoid double redraw.
19665 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
19666 true when View is Tile, and do the same when attempting to set View to
19667 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
19668 for selected/checked indices, as it involves overhead when sorting is
19669 done while these collections are not used all that often. Instead
19670 we'll build the indices on demand. Modified IList implementation of
19671 CheckedIndexCollection to use public methods if object is int.
19672 Modified CheckedListViewItemCollection to hide checked items if
19673 ListView.CheckBoxes is false. Removed LAMESPEC remark in
19674 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
19675 IList implementation in SelectedIndexCollection to use public methods
19676 if object is int. Modified SelectedListViewItemCollection to hide
19677 selected items if listview is not yet created.
19678 * ListViewItem.cs: CheckedIndices list no longer needs to be
19679 maintained separately (see ListView changes). Also clone font, fixes
19682 2006-09-11 Mike Kestner <mkestner@novell.com>
19684 * ComboBox.cs: if we are updating the contents of the currently
19685 selected index, refresh the control or the textbox selection.
19688 2006-09-11 Mike Kestner <mkestner@novell.com>
19690 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
19691 the 'specified' logic has been moved there. This seems like a bug
19692 in Control.cs, since our current SetBoundsCore completely ignores
19693 the specified parameter. Peter's commit seems to indicate that is
19694 the way the MS control implementation works. [Fixes #79325]
19696 2006-09-10 Jonathan Chambers <joncham@gmail.com>
19698 * XplatUI.cs: Set default_class_name to be composed
19699 of current domain id. This allows MWF to be loaded in multiple
19702 2006-09-09 Miguel de Icaza <miguel@novell.com>
19704 * X11Keyboard.cs: If we are unable to obtain the input method, do
19705 not call CreateXic to create the input context. Should fix
19708 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
19710 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
19711 Simplified gnome support by adding more pinvokes to get the
19712 icon for a file or mime type.
19714 2006-09-08 Jackson Harper <jackson@ximian.com>
19716 * MenuAPI.cs: Deslect popup context menu items before closing the
19717 window, so that you don't see the previously selected item
19718 selected when you reopen the menu.
19719 * TextControl.cs: Update the cursor position even if we don't have
19720 focus. This fixes typing in things like the ComboBox. I'm not
19721 totally sure we should always set the visibility if we don't have
19722 focus, but couldn't find any corner cases where the cursor showed
19723 up when it shouldn't.
19725 2006-09-08 Chris Toshok <toshok@ximian.com>
19727 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
19728 our arrays are length 256. & 0xff before indexing. Fixes the
19729 crash in bug #78077.
19731 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19733 * ThemeWin32Classic.cs:
19734 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
19735 is true. Handle that check box too.
19737 2006-09-07 Chris Toshok <toshok@ximian.com>
19739 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
19742 2006-09-07 Chris Toshok <toshok@ximian.com>
19744 * Control.cs: in set_BackColor only do the work if
19745 background_color != value.
19747 * XplatUIX11.cs: move the clearing of invalid areas (both client
19748 and nc) to the same block of code where we set (nc_)expose_pending
19749 to false. That is, move it from PaintEventEnd to PaintEventStart,
19750 so things that cause invalidates from within OnPaint will trigger
19751 another call to OnPaint. Fixes bug #79262.
19753 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
19755 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
19756 * FileDialog.cs: Fix typo
19758 2006-09-07 Jackson Harper <jackson@ximian.com>
19760 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
19761 for tab pages if they have any.
19763 2006-09-06 Mike Kestner <mkestner@novell.com>
19765 * Splitter.cs: use the "current" rect when finishing drag handle
19766 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
19768 2006-09-06 Mike Kestner <mkestner@novell.com>
19770 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
19771 support offset splitters. [Fixes #79298]
19773 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
19775 * Mime.cs: Fixed a bug that could override the global mime type
19778 2006-09-05 Jackson Harper <jackson@ximian.com>
19780 * TabControl.cs: Better calculation method for setting the slider
19781 pos. Prevents crashes on really wide tabs.
19782 - Draw Image on tab pages if an image list is used.
19784 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19786 * MonthCalendar.cs: When Font changes, the Size should be
19787 updated to fit the new font's space requirements.
19789 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
19791 * ListBox.cs: If the items are cleared with Items.Clear set
19794 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19796 * MonthCalendar.cs: Handle arrow keys as input keys. Also
19797 fire DateChanged event instead of DateSelected event when
19798 the date was changed by keyboard interaction.
19800 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19802 * DateTimePicker.cs: Handle DateChanged for the associated
19803 month_calendar control, and set month_calendar.Font from
19804 OnFontChanged method, as well as resize the height of the
19805 control when needed. Make PreferredHeight proportional.
19807 2006-09-01 Chris Toshok <toshok@ximian.com>
19809 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
19812 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
19814 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
19816 * FileDialog.cs: Set ClientSize instead of window size, to allow space
19817 for decorations (Fixes #79219)
19819 2006-09-01 Mike Kestner <mkestner@novell.com>
19821 * ComboBox.cs: first stab at sorting plus some selection handling
19822 fixes to bring us more in line with MS behavior. Also switches back
19823 to index based selection. Alternative patches for index-based
19824 selection were provided by Jackson Harper, Carlos Alberto Cortez,
19825 and latency@gmx.de on bug 78848. I assume they were similar to this
19826 code I've had simmering in my tree forever.
19829 2006-09-01 Chris Toshok <toshok@ximian.com>
19831 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
19832 when setting list position guard against ending up with a -1 index
19833 (the other part of the fix for #78812). Should probably make sure
19834 we don't need the analogous fix in the ItemDeleted case.
19837 - in SetDataSource, work around the fact that the way
19838 OnBindingContextChanged is invoked will cause us to re-enter this
19839 method. I'll remove the hack once I investigate
19840 OnBindingContextChanged.
19842 - fix the logic in set_DataSource and set_DataMember (basically
19843 what to do if the other of the two is null.)
19845 - in OnListManagerItemChanged, we need to take into account the
19846 edit row when deciding whether or not to call RecreateDataGridRows
19847 (part of the fix for #78812).
19849 2006-09-01 Jackson Harper <jackson@ximian.com>
19851 * Splitter.cs: Don't do anything if there is no control to affect
19852 (prevents us from crashing in weird tet cases).
19853 * TreeView.cs: Bounding box for the mouse movement reverting
19854 focus/selection back to previously selected node. This matches
19855 MS, and makes the tree a lot more useable.
19856 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
19857 use clipping so they are not drawn. This fixes when the control
19858 is set to have a transparent background, or if it was over an
19861 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
19863 * MimeIcon.cs: Improved handling for reading default icons when
19864 using gnome (2.16 made it necessary). Check and read svg icons
19865 first, then 48x48 and then 32x32 icons.
19867 2006-08-31 Chris Toshok <toshok@ximian.com>
19869 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
19872 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
19873 ProcessKeyPreview. Fixes part of #77806.
19875 * DataGrid.cs: big patch.
19877 - revert the queueing up of DataSource/DataMember if inside
19878 BeginInit/EndInit calls. That's not the way the datagrid achieves
19879 its delayed databinding. Instead, call SetDataSource in
19880 OnBindingContextChanged. This mimic's MS's behavior, and fixes
19883 - Also, it wasn't mentioned in #78811, but the test case exhibits
19884 behavior that was lacking in our datagrid implementation - Columns
19885 that have mapping names that don't exist in the datasource's
19886 properties aren't shown. Yuck. To fix this I added the bound
19887 field to the column style, and basically any calculation to figure
19888 out anything about columns uses a loop to find the bound columns.
19889 still need to investigate if I can cache an array of the bound
19890 columns or if the indices must be the same.
19892 - When setting CurrentCell, we no longer abort if the cell being
19893 edited was in the add row. This fixes the other part of #77806.
19895 - The new code also fixes #78807.
19897 * ThemeWin32Classic.cs: perpetrate the same disgusting
19898 column.bound field hack, and only render bound fields.
19900 2006-08-31 Chris Toshok <toshok@ximian.com>
19902 * DataGridColumnStyle.cs: add bound field. this field is true if
19903 the datasource has a property corresponding to the mapping name.
19905 * DataGridTableStyle.cs: set the bound field on the column styles
19906 depending on whether or not we have a column for that property.
19908 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
19910 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
19911 splitter control (fixes #79228)
19913 2006-08-31 Chris Toshok <toshok@ximian.com>
19915 * DataGridColumnStyle.cs: we need to delay the assignment of
19916 property descriptor until the last possible moment due to the lazy
19917 databinding stuff in the datagrid. Also, fix the exceptions
19918 thrown by CheckValidDataSource to match MS.
19920 2006-08-31 Jackson Harper <jackson@ximian.com>
19922 * Form.cs: When activated select the active control, if there is
19923 no active control, we select the first control.
19924 * XplatUIX11.cs: If there is no focus control when we get a
19925 FocusIn event, find the toplevel form and activate it. This
19926 occurs when you popup a window, it becomes the focus window, then
19927 you close that window, giving focus back to the main window.
19929 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19931 * MonthCalendar.cs:
19932 * ThemeWin32Classic.cs: Cache Font in bold style, as well
19933 as StringFormat with Center alignments in MonthCalendar,
19934 instead of creating new ones when drawing the control.
19935 Also, draw the month name in bold style.
19937 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
19940 - PerformLayout(): It would seem MS performs the fill even if the
19941 control is not visible (part of #79218 fix)
19942 - ResetBackColor(): Use the setter to reset the color, to allow
19943 overriders to catch the change.
19945 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
19946 - CreateHandle(): dito (part of $79218 fix)
19947 - Don't set an icon if we have a dialog
19948 * ScrollableControl.cs:
19949 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
19950 - ScrollIntoView(): No need to scroll if control is already visible
19951 (resolves fixme and fixes #79218)
19953 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19955 * MonthCalendar.cs: Change proportions in SingleMonthSize
19956 to match the aspect of the original control.
19958 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
19960 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
19961 get updated when they get maximized.
19963 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
19965 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
19967 2006-08-29 Chris Toshok <toshok@ximian.com>
19969 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
19971 2006-08-29 Jackson Harper <jackson@ximian.com>
19973 * TreeView.cs: Need to track selected node and highlighted node,
19974 they aren't always the same thing, when the mouse is down on a
19975 node it is hilighted, but not selected yet.
19976 - Do the HideSelection stuff right
19977 - Need to focus on rbutton mouse down. And redraw selection when
19978 right click is mouse upped.
19980 2006-08-29 Mike Kestner <mkestner@novell.com>
19982 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
19983 when SubItems.Count < Columns.Count. [Fixes #79167]
19985 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19987 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
19989 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19991 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
19992 from X. Only send based on ConfigureNotify if we don't have the
19993 correct location in hwnd (if the window manager moved us)
19995 2006-08-28 Mike Kestner <mkestner@novell.com>
19997 * ListView.cs: remove a TODO.
19998 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
19999 [Fixes ListView part of #79166]
20001 2006-08-28 Mike Kestner <mkestner@novell.com>
20003 * ListView.cs: move wheel handler to parent since it is focused
20004 instead of the item_control now. [Fixes #79177]
20006 2006-08-28 Mike Kestner <mkestner@novell.com>
20008 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
20009 when the control is focused. [Fixes #79171]
20011 2006-08-28 Mike Kestner <mkestner@novell.com>
20013 * ListView.cs: size the item and header controls for empty and
20014 unscrollable views.
20015 * ThemeWin32Classic.cs: draw disabled backgrounds.
20018 2006-08-28 Chris Toshok <toshok@ximian.com>
20020 * Form.cs: remove unused "active_form" static field.
20022 * Hwnd.cs: lock around accesses to static windows collection.
20024 * Application.cs: lock threads in Exit ().
20026 2006-08-28 Chris Toshok <toshok@ximian.com>
20028 * NativeWindow.cs: lock around accesses to window_collection.
20030 2006-08-28 Chris Toshok <toshok@ximian.com>
20032 * Control.cs: err, fix this the right way, by locking on controls
20033 when using it. not by making it synchronized.
20035 2006-08-28 Chris Toshok <toshok@ximian.com>
20037 * Control.cs: make the static "controls" field synchronized, as it
20038 gets updated from multiple threads.
20040 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20042 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
20043 Prevent other threads from exiting when calling thread sets quit state.
20044 * XEventQueue.cs: Added PostQuitState property
20046 2006-08-27 Chris Toshok <toshok@ximian.com>
20048 * AsyncMethodData.cs: add a slot for the window handle.
20050 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
20051 window (the destination control's window, not the foster window).
20053 * Control.cs (BeginInvokeInternal): store the window's handle in
20054 the AsyncMethodData.
20057 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20060 - PostQuitMessage: Removed resetting S.D display handle, we might have
20061 another loop started after calling PostQuitMessage (Fixes #79119)
20062 - Created destructor to reset S.D handle
20064 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20066 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
20068 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20070 * TextControl.cs (Insert): Update the caret position even if we don't
20071 have a handle yet, just don't call the driver in that case.
20072 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
20073 to the end of the new selection text (Fixes #79184)
20075 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20077 * Form.cs (Activate): Only activate if the handle is created)
20079 - Mark window as invisible when it's disposed
20080 - Check if window handle is created when setting window visible,
20081 instead of relying just on the is_created variable
20082 - Check if object is disposed when creating the control (Fixes #79155)
20084 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20086 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
20087 when allowing layout again. Otherwise we re-generate the anchoring
20088 distance to the border again and actually alter what the user wanted
20089 This is ugly, it'd be better if we used DisplayRectangle instead of
20090 ClientRectangle for Control.UpdateDistances, but that causes us to
20091 have other problems (initial anchoring positons would be wrong)
20094 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20097 - The size and location setters shouldn't go directly to
20098 SetBoundsCore, but to SetBounds, which triggers layout on the
20099 parent, then calls SetBoundsCore. (Related to fix for #78835)
20100 - SetBounds: Moved actual location update code into this function
20101 from SetBoundsCore, to match MS. Added call to PerformLayout if
20102 we have a parent (to trigger resizing of anchored parents if the
20103 child size has changed (see testcase for #78835)
20104 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
20106 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
20108 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20110 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
20111 System.Drawing when a toplevel window gets closed; there might
20112 be other toplevel windows belonging to the same app (Fixes #78052)
20114 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
20116 * FileDialog.cs: After reading FileDialog settings from mwf_config
20117 use Desktop prefix only if a real folder doesn't exist anymore.
20118 * FontDialog.cs: Added char sets.
20119 It is now possible to select the font, size or style with the
20122 2006-08-25 Kornél Pál <kornelpal@gmail.com>
20124 * PrintPreviewDialog.cs: Use assembly name constants.
20126 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20128 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
20129 scrollbar from whacking it's buttons)
20131 2006-08-24 Chris Toshok <toshok@ximian.com>
20133 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
20134 in this patch (aggregating setting Left/Top/Width/Height to
20135 setting Bounds on the scrollbars), but the crux of the fix is in
20136 Recalculate, where we scroll by the remaining scroll_position if
20137 we're hiding a scrollbar. The 2*$5 reward in the comment is
20140 2006-08-24 Jackson Harper <jackson@ximian.com>
20143 * MdiWindowManager.cs: If the form is made a non-mdi window we
20144 need to remove the form closed event so that closing forms works
20147 2006-08-24 Jackson Harper <jackson@ximian.com>
20149 * Control.cs: Make IsRecreating internal so that the driver can
20151 - Temporarily remove the Hide when controls are removed, its
20152 making a whole bunch of things not work because visibility isn't
20153 getting reset elsewhere correctly
20154 * Form.cs: Need to do a full handle recreation when the mdi parent
20156 * XplatUIX11.cs: If we are recreating handles don't dispose the
20157 HWNDs. What was happening is the handles were being recreated in
20158 SendWMDestroyMessages, but then flow continued on in that method
20159 and destroyed the new handles.
20161 2006-08-23 Jackson Harper <jackson@ximian.com>
20163 * Form.cs: MdiClient is always at the back of the bus
20164 * Control.cs: When the order of items in the collection is changed
20165 we need to reset the all_controls array
20166 - do the same sorta setup thats done when adding a control when a
20167 control is set on the collection.
20169 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20171 * TextBoxBase.cs (get_Text): Return an empty array if our document
20172 is empty (fixes #79052)
20174 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20176 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
20177 on WM_SYSCHAR messages (fixes #79053)
20179 2006-08-23 Chris Toshok <toshok@ximian.com>
20181 * DataGrid.cs: fix flickering when scrolling vertically.
20183 2006-08-23 Chris Toshok <toshok@ximian.com>
20185 * DataGrid.cs (EndEdit): only invalidate the row header when we
20188 2006-08-23 Chris Toshok <toshok@ximian.com>
20190 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
20191 methods. fixes the flicker when scrolling around.
20193 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20195 * FileDialog.cs: Making sure the control is created before we get a
20196 chance to use it with BeginInvoke (Fixes #79096)
20198 2006-08-23 Chris Toshok <toshok@ximian.com>
20200 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
20201 width to use when painting the rows.
20203 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20206 - Throw ArgumentException if a negative value is passed to SelectionLength
20207 - Update the selection end if start is moved. end needs to be always
20208 after start. (Fixes #79095)
20209 - Track selection length; MS keeps the selection length even if start
20210 is changed; reset on all other operations affection selection
20212 2006-08-22 Jackson Harper <jackson@ximian.com>
20214 * TreeView.cs: Make sure both scrollbars get displayed and sized
20215 correctly when the other bar is visible.
20216 - Use the original clip rectangle for checking if the area between
20217 the two scrollbars is visible, not the viewport adjusted clipping
20220 2006-08-22 Jackson Harper <jackson@ximian.com>
20222 * Binding.cs: We don't use IsBinding because it requires the
20223 control to be created, which really shouldn't be necessary just to
20224 set a property on the control.
20226 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20228 * ComboBox.cs: Some CB.ObjectCollection methods must throw
20229 ArgumentNullReferenceException when the argument is null.
20231 2006-08-21 Jackson Harper <jackson@ximian.com>
20233 * Timer.cs: Track the thread that the timer is started in (NOT
20234 CREATED), this way messages for it will only be triggered on its
20236 * XEventQueue.cs: Track the timers here, this makes timers per
20238 * XplatUIX11.cs: The timers are moved to the XEventQueue.
20240 2006-08-19 Chris Toshok <toshok@ximian.com>
20242 * XplatUIX11.cs: after further communication with pdb, we get the
20243 best of both worlds. SetZOrder working for un-Mapped windows, and
20244 no X errors for un-mapped windows.
20246 2006-08-19 Chris Toshok <toshok@ximian.com>
20248 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
20249 as it was causing pdn toolbars to not have the correct stacking.
20251 2006-08-18 Mike Kestner <mkestner@novell.com>
20253 * ListView.cs : guard against negative ClientArea.Width in scrollbar
20254 calculation. Not sure why control should ever be setting a negative
20255 width though. Fixes #78931.
20257 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20259 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
20260 null items in ObjectCollection class.
20261 * ListBox.cs.: Likewise.
20263 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
20265 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
20266 as the base method in ThemeWin32Classic should work fine.
20269 2006-08-18 Jackson Harper <jackson@ximian.com>
20271 * Binding.cs: When validating if the value entered doesn't convert
20272 properly reset to the old value.
20273 * RadioButton.cs: Don't fire click when we get focus.
20275 2006-08-18 Jackson Harper <jackson@ximian.com>
20277 * FileDialog.cs: Paint the selection on the directory combobox the
20280 2006-08-17 Jackson Harper <jackson@ximian.com>
20282 * ErrorProvider.cs: Don't allow the error control to be selected.
20283 * Control.cs: Don't send the SetFocus messages, the control
20284 activation will do this, and if we do it blindly here validation
20287 2006-08-17 Jackson Harper <jackson@ximian.com>
20290 * ContainerControl.cs: Make validation events fire in the correct
20291 order. TODO: For some reason the first validation event is not
20294 2006-08-17 Mike Kestner <mkestner@novell.com>
20296 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
20298 2006-08-17 Mike Kestner <mkestner@novell.com>
20300 * ComboBox.cs : implement scroll wheel support for popped-down
20301 state. Fixes #78945.
20303 2006-08-17 Jackson Harper <jackson@ximian.com>
20305 * TreeView.cs: Specify treeview actions (old patch that didn't get
20306 committed for some reason).
20307 - Don't let the mouse wheel scroll us too far. Just want to make
20308 the bottom node visible, not scroll it all the ways to the top.
20310 2006-08-17 Jackson Harper <jackson@ximian.com>
20312 * XplatUIX11.cs: Mouse wheel events go to the focused window.
20314 2006-08-17 Mike Kestner <mkestner@novell.com>
20316 * ComboBox.cs : don't do mouseover selection in simple mode.
20318 2006-08-16 Jackson Harper <jackson@ximian.com>
20320 * Form.cs: Fire the closing events for all the mdi child windows
20321 when a window is closed. If the cancel args are set to true, the
20322 main window still gets the event fired, but it doesn't not close.
20323 * MdiWindowManager.cs: Do this closing cleanup in a Closed
20324 handler, instead of when the button is clicked, so cancelling the
20325 close works correctly.
20326 * ComboBox.cs: Send the mouse down to the scrollbar.
20328 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20330 * ListBox.cs: When passing 'null' to SelectedItem,
20331 set SelectedIndex to -1, to unselect items. This is the
20332 observed behaviour in .Net.
20334 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
20336 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
20337 MS flags saying there won't be any. (fixes #78800)
20338 * Control.cs (HandleClick): Made virtual
20340 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
20342 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
20343 cultures. Fixed bug #78399.
20345 2006-08-16 Jackson Harper <jackson@ximian.com>
20347 * Form.cs: Use the MdiClients MdiChildren property to access
20348 MdiChildren instead of creating the array from the child controls.
20349 * MdiClient.cs: Maintain a separate array of the mdi children, so
20350 that insertion order is maintained when the Z-order is changed.
20352 2006-08-16 Mike Kestner <mkestner@novell.com>
20354 * ListView.cs : add an ItemComparer and default to it for sorting.
20355 Fixes #79076, but sorting needs a complete overhaul to be compat with
20358 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20360 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
20362 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20364 * Hwnd.cs (Mapped): Properly traverse the tree
20366 2006-08-15 Chris Toshok <toshok@ximian.com>
20368 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
20369 pass manager.Current.GetType() to ParseData. It has to be the
20370 property type. So, hold off doing the ParseData until we're in
20371 SetPropertyValue where we know the type. This fixes the crash in
20372 #78821 but the textbox is still empty.
20374 2006-08-15 Chris Toshok <toshok@ximian.com>
20377 - when we're scrolling, only call Edit() again if the
20378 current cell is still unobscured. Fixes bug #78927.
20379 - when handling mousedown on a cell, ensure the cell is visible
20380 before calling Edit.
20381 - remove the properties from DataGridRow, and remove the
20382 DataGridParentRow class altogether.
20385 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20387 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
20388 fire OnTextChanged by ourselves. There's no point calling base,
20389 we don't set the base value anywhere else. Fixes #78773.
20391 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20393 * ListBox.cs: Call CollectionChanged when modifying
20394 an item from Items indexer, to update the actual items
20397 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20399 * PrintDialog.cs: Small fixes for focus and a pair of checks,
20400 to match .Net behaviour.
20402 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20404 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
20406 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20408 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
20410 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20412 * MessageBox.cs: Prevent potential NRE exception.
20413 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
20415 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
20417 * MessageBox.cs: Calculate the owner of a messagebox, also make
20418 it topmost. Fixes #78753
20420 2006-08-14 Chris Toshok <toshok@ximian.com>
20422 * XplatUIX11.cs: A couple of fixes so that metacity will let us
20423 programmatically move windows. first, set the PPosition hint as
20424 well as the USPosition hint. Second include some code from pdb
20425 that sets the window type to NORMAL when we set the transient for
20426 hint. This is because, in the absence of a window type, metacity
20427 thinks any window with TransientFor set is a dialog, and refuses
20428 to let us move it programmatically. fascists.
20430 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
20432 * XplatUIX11.cs: When setting normal hints, take into consideration
20433 an different hints previously set so we don't delete them (fixes #78866)
20435 2006-08-12 Chris Toshok <toshok@ximian.com>
20437 * ToolBarButton.cs: make Layout return a boolean, if something to
20438 do with the button's layout changed.
20441 - add another parameter to Redraw, @force, which all existing
20443 - make the Layout function return a boolean which is true if the
20444 layout has actually changed. Redraw now uses this (and @force)
20445 to determine when to invalidate. At present the only place
20446 where @force can be false is the call from OnResize, when
20447 background_image == null. So, resizing a toolbar when the
20448 layout doesn't change results in no drawing.
20450 2006-08-12 Chris Toshok <toshok@ximian.com>
20452 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
20453 the VScrollBar and HScrollbar reversed. oops.
20455 * DataGrid.cs: fix the logic that assigns sizes to the implicit
20456 scrollbars. we were assigning them twice (once in
20457 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
20458 therefore causing two scrollbar resizes (and redraws?) to happen
20461 2006-08-12 Chris Toshok <toshok@ximian.com>
20463 * ToolBarButton.cs: redraw the entire button if the theme tells us
20466 * Theme.cs: add ToolBarInvalidateEntireButton.
20468 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
20469 buttons, just the border.
20471 * ThemeNice.cs: redraw the entire toolbar button since we need to
20472 draw the highlight image.
20474 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
20475 we need to redraw the entire button (not just the border).
20477 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
20479 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
20480 for vertical bars. Fixes the mismatches shown by #78513
20482 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
20484 * FileDialog.cs: If a saved/remembered path doesn't exist
20485 anymore, fall back to "Desktop".
20487 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
20489 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
20490 parent. It's apparently legal to not have one
20492 - SetZOrder: Don't try to set Z-Order on an unmapped window
20493 - CreateWindow: 0,0 are legal coordinates for a window. don't move
20494 it unless the coordinates are negative
20496 2006-08-10 Mike Kestner <mkestner@novell.com>
20498 * ListControl.cs: allow null for DataSource. Clear DisplayMember
20499 when setting to null per msdn docs. Fixes #78854.
20501 2006-08-10 Chris Toshok <toshok@ximian.com>
20503 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
20504 flickering by setting a clip rectangle on the Graphics when we
20505 need to redraw just a particular menuitem. Also, rename "OnClick"
20506 to "OnMouseDown" to reflect what it actually is.
20508 * Form.cs: track the OnMouseDown change.
20510 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
20512 * CommonDialog.cs: Properly inherit the CreateParams from the form
20513 and only change what we need. Fixes #78865
20515 2006-08-10 Chris Toshok <toshok@ximian.com>
20517 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
20518 flickering in flat mode (and most of the flickering in general) by
20519 only invalidating the button border (and not the entire rectangle)
20520 when the state changes. A couple of cases still flicker:
20521 ToggleButtons, and the dropdown arrow case when the user mouse
20524 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
20526 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
20527 for german keyboards. Numlock state shouldn't affect the behaviour
20528 of the Del key. Fixes bug #78291.
20530 2006-08-10 Chris Toshok <toshok@ximian.com>
20532 * ListControl.cs: remove the items.Clear line from BindDataItems,
20533 as this is the first thing done by both subclasses in their
20534 SetItemsCore overrides. Also, add a ItemChanged handler, and when
20535 passed -1, refresh the list. This gets databinding working when
20536 the datasource is set on the list before the datasource is
20537 populated (as in wf-apps/ReportBuilder.)
20539 * ComboBox.cs: remove the argument to BindDataItems. This call
20540 should really go away, and be initiated by the ListControl code.
20542 * ListBox.cs: same.
20544 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20546 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
20547 if no data is in the document when the control is displayed
20549 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20551 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
20554 - PositionCaret: Allow positioning of caret but don't call methods
20555 requiring a handle if the window isn't created yet
20556 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
20557 - owner_HandleCreated: Don't position the caret, just update it's
20558 location. User might have already set a different position
20560 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20562 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
20563 windows. Screws up the returned coordinates for child windows.
20564 Fixes #78825. I'm hoping this doesn't break something, since the
20565 code was explicitly put in 8 months ago, but no bug was attached.
20566 Menus still seem to work properly.
20568 2006-08-08 Chris Toshok <toshok@ximian.com>
20570 * DataGrid.cs: make BeginInit/EndInit actually do what they're
20571 supposed to do - delay data binding until the EndInit call. Also,
20572 make the table style collection's CollectionChangeAction.Refresh
20575 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
20576 (with action = Refresh) when a consituent table's MappingName is
20579 2006-08-08 Chris Toshok <toshok@ximian.com>
20581 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
20582 Invalidate, since changing the text can change the size of the all
20585 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
20587 * Form.cs (AddOwnedForm): Still need to add the form to our listif
20588 we don't have it yet
20590 2006-08-08 Chris Toshok <toshok@ximian.com>
20592 * PrintControllerWithStatusDialog.cs: don't .Close() the status
20593 dialog, as this causes X errors later on, since we actually
20594 destroy the window. Instead, .Hide() it.
20596 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
20598 * ComboBox.cs: Added focus reflection for popup window
20600 - Removed transient setting for non-app windows for now, not sure it
20602 - Fixed logic checking if we have captions when deciding
20603 override_redirect, WS_CAPTION is two bits and a 0 check was not
20605 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
20608 - AddOwnedForm: Don't just add the form to the list, call the property
20609 to ensure the driver is informed about the ownership as well
20610 - CreateHandle: Set the TopMost status in the driver if we have an owner
20611 * XplatUI.cs: Fixed debug statement
20613 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
20614 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20615 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
20616 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
20617 TrackBarRenderer.cs: Make constructor private.
20618 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
20619 * ProfessionalColorTable.cs: Make properties virtual.
20621 2006-08-06 Duncan Mak <duncan@novell.com>
20623 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
20626 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20627 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20628 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
20629 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
20630 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
20631 Initial import of new 2.0 classes.
20633 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20634 * Application.cs: Add 2.0 VisualStyles properties.
20636 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20637 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20638 XplatUIX11.cs: Create property to allow access to existing private
20639 variable "themes_enabled"
20641 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20643 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
20644 file size, as otherwise our class libraries fail using windows. Fixes
20647 2006-08-04 Jackson Harper <jackson@ximian.com>
20650 * XplatUIX11.cs: Move the toolwindow window manager creation into
20651 the X11 driver, this way on win32 we can let windows create/handle
20654 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20656 * PrintDialog.cs: Remove some redundant checks, add some others,
20657 clean some code, and move the focus to the text boxes when the
20658 values are incorrect.
20660 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
20662 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
20664 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20666 * NumericUpDown.cs: Setting the Minimum and Maximum is now
20667 handled correctly. Fixes bug #79001.
20669 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20671 * PrintDialog.cs: The "Copies" numeric up down must have
20672 set the Minimum property to 1; only if the value is bigger
20673 than 1, activate "Collate" check box. This is the behaviour of .Net.
20674 Also modify the Document elements only if it is not null.
20676 2006-08-03 Jackson Harper <jackson@ximian.com>
20678 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
20679 length. (We have a larger array then actual node count).
20681 2006-08-03 Jackson Harper <jackson@ximian.com>
20683 * ComboBox.cs: Don't show selection by default.
20684 - The SelectAll isn't needed here, since the focus code should do
20686 - DDL style lists to manual selection drawing, so when they
20687 get/lose focus they have to invalidate.
20689 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
20691 * TextBoxBase.cs: Don't always show all selections by default.
20693 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
20694 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
20695 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
20696 Fixed various typos.
20698 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20700 * Control.cs: Removing the controls in a ControlCollection with
20701 Clear now hides the controls as expected. Fixes bug #78804.
20703 2006-08-03 Jackson Harper <jackson@ximian.com>
20705 * Control.cs: Revert previous focus patch, it breaks reflector.
20707 2006-08-03 Jackson Harper <jackson@ximian.com>
20709 * ComboBox.cs: Cleanup selection and focus with the combobox.
20710 This also eliminates some duplicated keyboard code, since now
20711 everything is handled by the main class.
20712 - Make list selection work on mouse up instead of down, to match
20715 2006-08-02 Jackson Harper <jackson@ximian.com>
20717 * Control.cs: Setting focus needs to go through the whole
20718 selection mechanism.
20720 2006-08-02 Chris Toshok <toshok@ximian.com>
20722 * PrintPreviewDialog.cs: change MinimumSize to use
20723 base.MinimumSize so it works.
20725 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
20728 - UpdateCaret: Added sanity check in case caret isn't defined yet
20729 - Line.Delete: Now updating selection and caret markers if we're
20730 transfering a node (Properly fixes #78323)
20731 - SetSelectionEnd: Added sanity check
20732 * TextBoxBase.cs: Removed broken attempt to fix #78323
20734 2006-08-01 Chris Toshok <toshok@ximian.com>
20736 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
20737 Close() call is handled in Form, not here.
20739 2006-08-01 Chris Toshok <toshok@ximian.com>
20741 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
20744 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
20745 for sizes < 100% zoom. The code now aggressively attempts to keep
20746 from calling document.Print (), and tries not to use the scaling
20747 g.DrawImage whenever possible (it still does if you scale to >
20748 100%, since usually that involves huge images).
20750 * PrintPreviewControl.cs: hook up the close button.
20752 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
20753 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
20754 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
20755 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
20756 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
20757 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
20758 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
20759 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
20760 Removed [Serializable] for 2.0 Event Handlers.
20762 2006-07-31 Jackson Harper <jackson@ximian.com>
20764 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
20765 * TextControl.cs: Uncomment out the body of this method.
20767 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
20769 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
20772 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20774 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
20775 that embed TextBox and need selections visible even if textbox is not
20776 focused to enforce that behaviour.
20777 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
20780 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20783 - Added new SetSelectionStart/SetSelectionEnd overloads
20784 - Fixed viewport width assignment to be accurate
20785 - Adjusted alignment line shift calculations to allow cursor on right
20786 aligned lines to be always visible at the right border (like MS)
20788 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
20789 - TextBoxBase_SizeChanged: recalculating canvas on size changes
20790 - CalculateScrollBars: Use ViewPort size instead of window size, to
20791 properly consider space occupied by the border and scrollbars
20793 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
20794 calculations; no longer leaves artifacts
20795 - CaretMoved: Adjusted window scrolling to match MS and fixed several
20796 calculation bugs (Still missing right/center align calculations)
20798 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20800 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
20801 use of both scroll rect and clip rect, as they do the same.
20803 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20805 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
20806 in the event handler (fixes #78912)
20808 2006-07-31 Chris Toshok <toshok@ximian.com>
20810 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
20811 grid.ListManager.Count, since grid.ListManager might be null.
20812 This of course begs the question "why are we drawing rows for a
20813 grid with no list manager (and therefor no rows)?" Fixes the
20814 crash in bug #78929.
20816 2006-07-31 Chris Toshok <toshok@ximian.com>
20818 * RelatedPropertyManager.cs: Don't always chain up to the parent
20819 ctor. instead, call SetDataSource if the parent's position is !=
20820 -1. Fixes the crash in #78822.
20822 2006-07-31 Chris Toshok <toshok@ximian.com>
20824 * DataGrid.cs (get_ListManager): use field instead of property
20825 accessors for datasource and datamember.
20826 (RowsCount): make internal again.
20827 (OnMouseDown): end edits before resizing columns/rows.
20828 (OnMouseUp): restart edits after resizing columns/rows.
20830 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
20832 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
20833 This fixes the situation where the last set cursor is displayed
20834 whenever the mouse is over scrollbars.
20836 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20838 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
20839 Document properties, as well as initial values.
20841 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
20843 * XplatUIWin32.cs (SetBorderStyle): Setting both border
20844 and ClientEdge results in a 3-pixel border, which is
20847 2006-07-28 Jackson Harper <jackson@ximian.com>
20849 * TreeNodeCollection.cs: Fix the clear method.
20850 - Fix the Shrink also
20852 2006-07-27 Jackson Harper <jackson@ximian.com>
20854 * TreeView.cs: Make sure the visible order is computed when we
20855 attempt to size the scrollbars (for trees that mess with the
20856 scrolling when they shouldn't.
20857 - Make sure to give the scrollbars valid values.
20859 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20861 * XplatUIX11.cs: Move motion compression code to where it
20862 has less performance impact
20864 2006-07-26 Jackson Harper <jackson@ximian.com>
20866 * UpDownBase.cs: When the control is selected make the child
20867 controls non selectable, so that a click on them won't do a
20868 focus/unfocus cycle.
20869 - Don't give focus to the text box when the spinner is selected.
20870 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
20872 2006-07-26 Chris Toshok <toshok@ximian.com>
20874 * ThemeWin32Classic.cs: add print preview rendering. I'm not
20875 satisfied with this solution. If the bitmaps are small, we should
20876 just cache them in the PrintPreviewDialog and draw them here.
20877 Also, the layout is broken for the 2-up and 3-up cases.
20879 * Theme.cs: add PrintPReviewControlPaint.
20881 * PrintPreviewDialog.cs: first pass implementation.
20883 * PrintPreviewControl.cs: first pass implementation. No
20886 * PrintDialog.cs: only validate fields if that particular portion
20887 of the UI is enabled. Also, set the document's controller to a
20888 PrintControllerWithStatusDialog wrapping the document's print
20891 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
20892 bring up a SaveFileDialog (i hope we don't want to match the
20893 behavior of the crappy windows file entry) and set the
20894 PrinterSettings.PrintFileName accordingly.
20896 2006-07-26 Jackson Harper <jackson@ximian.com>
20898 * ContainerControl.cs: Add a field that disables auto selecting
20899 the next control in a container when the container is activated.
20900 * UpDownBase.cs: Don't select the text box when the up down is
20903 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20905 * XEventQueue.cs: Added methods for peeking (used for compression
20906 of successive events)
20907 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
20908 mouse move events (fixes #78732)
20910 2006-07-25 Jackson Harper <jackson@ximian.com>
20912 * UpDownBase.cs: Use an internal class for the textbox so that we
20913 can control focus. the updown control should always have focus,
20914 if either the text area or the buttons are clicked.
20915 - Send the key messages to the textbox, since it never actually
20917 - Activate and decativate the textbox caret.
20919 2006-07-24 Jackson Harper <jackson@ximian.com>
20921 * Control.cs: Use the directed select when selecting a control,
20922 this way the container controls override will get called and the
20923 whole ActiveControl chain will get triggered. TODO: probably need
20924 to make sure this gets done everywhere instead of the old
20926 * ContainerControl.cs: Implement the directed Select method to
20927 find and activate the correct child control.
20929 2006-07-22 Mike Kestner <mkestner@novell.com>
20931 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
20932 menu handling code so that clicks without a grab work too.
20935 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
20937 * FileDialog.cs: Enable the BackButton when dirstack has one element.
20938 Added some small optimizations.
20940 2006-07-21 Matt Hargett <matt@use.net>
20942 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
20944 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
20946 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
20947 tests pass and match MS in some strange border cases.
20949 2006-07-21 Chris Toshok <toshok@ximian.com>
20951 * ThemeWin32Classic.cs: handle drawing of the relation links and
20952 parent row buttons.
20954 * Theme.cs: change args to DataGridPaintParentRow.
20956 * DataGrid.cs: Don't use controls for the relation links and
20957 parent buttons, so we have to handle all their interactions in
20958 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
20959 when we're navigating through child tables, so we can reinstate
20960 selection, expanded state, current cell, etc.
20962 2006-07-20 Chris Toshok <toshok@ximian.com>
20964 * ToolBar.cs: When we redraw a button, for whatever reason,
20965 there's no reason to redraw the entire toolbar. Also, don't call
20966 Control.Refresh from within Redraw, as it's much heavier than
20967 Invalidate (which is really what we want).
20969 2006-07-20 Chris Toshok <toshok@ximian.com>
20971 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
20972 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
20973 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
20974 traces from within a debug IBindingList datasource
20975 (in mono/winforms/datagrid) for *days*, I've finally gotten things
20976 to work in a similar fashion.
20978 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20980 * ListBox.cs: Don't call Sort () when setting
20981 the Sorted property to false (avoid an unnecessary sort).
20983 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20985 * ListControl.cs: DataSource should throw an ArgumentException
20986 instead of a normal exception when the argument is not of the
20989 2006-07-20 Mike Kestner <mkestner@novell.com>
20991 * Control.cs: add InternalPreProcessMessage to allow us to steal
20992 key events before MWF gets its paws on them. Adapted from a
20994 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
20995 up/down/left/right navigation. Override the new internal control
20996 method to steal the events since they never make it to WndProc.
20997 * ToolBarButton.cs: don't worry about pushed when setting hilight
20998 since the drawing code prefers pushed to hilight. Invalidate on
20999 Hilight changes. Fixes #78547 and #78525.
21001 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21003 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
21004 the canvas size. Fixes #78868
21006 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21008 * Splitter.cs: Track requested split position until first layout
21009 is performed. Fixes #78871
21011 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21013 * Application.cs: Removed code that forces 1.x for the version
21014 number if the version started with 0. Not sure why that code was
21015 there and I couldn't find any bugs that indicated we needed it.
21018 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
21020 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
21021 ResetDefaults(), just write some output to the console until it's
21022 implemented. Fixes bug #78907 for now. Eliminated two warnings.
21024 2006-07-19 Jonathan Chambers <joncham@gmail.com>
21026 * PropertyGridView.cs: set StartPosition of drop down forms
21027 so they appear in correct initial spot. Fixes #78190.
21029 2006-07-19 Mike Kestner <mkestner@novell.com>
21031 * ThemeWin32Classic.cs: use parent background color when drawing
21032 flat toolbars. Restructure the conditionals to make sure non-flat
21033 non-Divider toolbars are filled too. Fixes #78837.
21035 2006-07-19 Mike Kestner <mkestner@novell.com>
21037 * ListBox.cs: Sort on collection changes even if the handle
21038 isn't created yet. Fixes #78813.
21040 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21042 * ListControl.cs: DisplayMember should never be null,
21043 and now we assign String.Empty when null is passed to it (this
21046 2006-07-17 Mike Kestner <mkestner@novell.com>
21048 * ListViewItem.cs: restructure Font and subitem Font handling
21049 to hold a specific font and refer back to owner on null.
21052 2006-07-17 Mike Kestner <mkestner@novell.com>
21054 * ToolBar.cs: bandaid for side-effect of previous patch which was
21055 discarding explicit heights for non-AutoSize toolbars. Need to
21056 extend my format tester to deal with AutoSize=false. Fixes #78864.
21058 2006-07-15 Jackson Harper <jackson@ximian.com>
21060 * LabelEditTextBox.cs:
21061 * TreeView.cs: Use a new LabelEdit class for node editing, this
21062 class automatically 'closes' itself when it gets the enter key or
21064 - Use the client rectangle when setting the trees scrollbars, so
21065 border style is taken into account.
21067 2006-07-14 Jackson Harper <jackson@ximian.com>
21070 * TreeView.cs: Make the editing work similar to MSs, firing the
21071 events correctly and ending edits correctly.
21073 2006-07-14 Mike Kestner <mkestner@novell.com>
21075 * ToolBarButton.cs:
21076 * ToolBar.cs: layout restructuring and redraw enhancements to support
21077 formatting changes gracefully, like setting TextAlign, ImageList,
21078 ButtonSize, and Appearance. Handles explicit button sizing quirks
21079 of the MS controls. Things like flat toolbars ignoring button size
21080 but becoming constant sized at the largest button's size. Normal
21081 toolbars with an image set cannot be shrunk smaller than the image,
21082 but text can be clipped/ignored.
21083 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
21084 is zero. Seems like DrawString should be smart enough to not put
21085 anything on screen though. Also trim labels and ellipsize at the char
21086 boundary, not word.
21087 Fixes #78711 and #78483.
21089 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21091 * FolderBrowserDialog.cs: Disable "New Folder" button and
21092 "New Folder" contextmenu menuitem if a folder like "My Computer"
21095 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21097 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
21098 * FolderBrowserDialog.cs:
21099 - Use MWFConfig to store and read size and position settings
21100 - Added code to create a new folder (button or context menu).
21101 Use TreeView labeledit to change the name of the new folder.
21103 2006-07-14 Jackson Harper <jackson@ximian.com>
21105 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
21106 when the tree is scrolled we end editing.
21108 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21110 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
21113 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
21115 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
21116 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
21117 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
21118 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
21119 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
21120 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
21121 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
21122 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
21123 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
21124 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
21125 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
21126 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
21127 ListViewItemSelectionChangedEventHandler.cs,
21128 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
21129 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
21130 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
21131 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
21132 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
21133 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
21134 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
21135 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
21136 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
21137 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
21138 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
21139 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
21140 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
21141 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
21142 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
21143 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
21144 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
21145 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
21146 WebBrowserNavigatingEventHandler.cs,
21147 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
21149 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
21151 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
21152 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
21153 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
21154 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
21155 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
21156 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
21157 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
21158 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
21159 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
21160 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
21161 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
21162 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
21163 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
21164 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
21165 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
21166 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
21167 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
21168 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
21169 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
21170 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
21171 ListViewItemStates.cs, MaskFormat.cs: Added
21173 2006-07-13 Jonathan Chambers <joncham@gmail.com>
21175 * PropertyGridView.cs: Fix keyboard navigation of drop down.
21176 Patch from eno for bug 78558.
21178 2006-07-13 Jackson Harper <jackson@ximian.com>
21180 * TreeView.cs: When an edit is finished make sure that the
21181 selected node is visible.
21182 - When setting the top/bottom use the scrollbars is_visible, so
21183 everything will be set correctly even if the tree isn't visible
21186 2006-07-13 Jackson Harper <jackson@ximian.com>
21188 * ComboBox.cs: Revert the item->index part of my previous patch.
21189 * TreeView.cs: Use LostFocus instead of Leave for detecting when
21190 the edit box has lost focus (duh).
21191 - Just make the edit box not visible when we get return, that will
21192 take the focus, which will call EndEdit
21193 * TreeNode.cs When we start editing, notify the treeview.
21195 2006-07-12 Jackson Harper <jackson@ximian.com>
21197 * ComboBox.cs: Clear out old items before setting the item list.
21198 This prevents databound controls from having their items added
21200 - Switch the combobox to use indices whereever possible instead of
21201 using Item's. This allows usto navigate through lists that have
21202 more then one item with the same string value (ie a, b, b, a).
21203 - Scroll the listboxes scrollbar when a non visible item is
21205 - Allow keypress to cycle through all the possible values. For
21206 example if you have b1, b2, b3 and hold down the B key all the
21207 values will be cycled through.
21209 2006-07-12 Jackson Harper <jackson@ximian.com>
21212 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
21213 this using the internal methods.
21214 * Control.cs: Add OnGotFocusInternal. A new method that allows
21215 controls to "override" OnGotFocus and change focus behavior if
21217 - Same thing for LostFocus
21218 * ComboBox.cs: Pass off focus to the text control properly.
21220 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
21222 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
21223 * FolderBrowserDialog.cs: Almost a complete rewrite.
21224 - Better support for Environment.Specialfolders
21225 - Added support for MWFVFS
21226 - Made setting SelectedPath work
21228 2006-07-12 Jackson Harper <jackson@ximian.com>
21230 * Control.cs: Optimze getting all the controls.
21232 2006-07-11 Jackson Harper <jackson@ximian.com>
21234 * ContainerControl.cs: Override SETFOCUS in the container control,
21235 so that it is not selected on mouse click.
21237 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21239 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
21240 Hopefully we will have a better way once all of focus is complete.
21242 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21244 * ThemeWin32Classic.cs: Commented out some debug code and fixed
21245 a compile error with csc.
21247 2006-07-11 Jackson Harper <jackson@ximian.com>
21249 * Control.cs: When hiding a control only select the next control
21250 if the current control was focused.
21251 - Don't handle enter/leave when setting/killing focus, this is
21252 done by the container control.
21253 - Remove is_selected, it's not needed anymore.
21254 - Add utility methods for selecting a child control, and for
21255 firing the Enter/Leave events.
21256 * ContainerControl.cs: When a control is activated fire the
21257 enter/leave events.
21258 - Don't wrap when processing the tab key, so that focus can be
21259 moved outside of the container.
21260 - Use the correct active control
21262 2006-07-11 Jackson Harper <jackson@ximian.com>
21264 * ComboBox.cs: Remove some debug code that was blinding me.
21265 * UpDownBase.cs: These controls actually aren't implicit, they are
21266 visible to the user.
21268 2006-07-10 Chris Toshok <toshok@ximian.com>
21270 * DataGrid.cs: move back to the is_adding boolean field. god i
21271 hate this is_editing/is_adding/is_changing stuff.
21273 2006-07-10 Chris Toshok <toshok@ximian.com>
21275 * DataGridTableStyle.cs: just check if the property type is bool.
21276 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
21277 Don't use CanRenderType.
21279 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
21280 if our text == NullText. Remove CanRenderType.
21282 * DataGridBoolColumn.cs: nuke CanRenderType.
21284 * DataGrid.cs: reenable some code to end the current edit inside
21285 of set_CurrentCell. This fixes the other 1.1.16 regression.
21286 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
21287 Also, remove the visible_row_count arg from CalcRowHeaders, since
21288 we don't need to worry about the actual height of the area.
21290 2006-07-10 Chris Toshok <toshok@ximian.com>
21292 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
21295 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
21296 the real sense of the IsInEditOrNavigateMode property (true =
21297 navigate, false = edit). Also, update OnKeyPress to reflect this.
21299 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
21300 column style exists, we still need to set its property descriptor
21301 to match up with our list manager.
21303 2006-07-10 Chris Toshok <toshok@ximian.com>
21305 * ThemeWin32Classic.cs: implement the new row/header painting
21306 approach. The parent row painting will likely go away and
21307 replaced with label controls, but the rest seems to work ok (and
21310 * Theme.cs: change the way we draw datagrid rows. we don't draw
21311 the row headers as a block now. Instead we draw them in the
21312 normal draw-row loop. Add some calls for drawing parent rows and
21315 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
21316 a default table style. Set the defaults from ThemeEngine.Current,
21317 not SystemColors. Fix lots of misc issues with property setters.
21319 * DataGrid.cs: move loads of style information out of this class
21320 as it's being duplicated with DataGridTableStyle. keep track of a
21321 special DataGridTableStyle for the properties we used to mirror
21322 here. Switch all the style properties to access this table style
21323 instead of instance fields of this class. Also add a internal
21324 class to represent parent rows (more needs to be stored here, like
21325 the selection state from the parent table, as well as the
21326 expansion state.) Also, for datasources with relations, do the
21327 right thing for collapse/expand, and add support for the
21328 navigation/parent row buttons.
21330 Lastly, fix the crash in the 1.1.16 build.
21332 * GridTableStylesCollection.cs: make the explicit interface
21333 implementations call the class's methods as opposed to duplicating
21336 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
21337 0 so the text doesn't jump around when we move the cursor.
21339 2006-07-10 Jackson Harper <jackson@ximian.com>
21342 * ListBox.cs: Match MS's ToString (this makes debugging focus
21343 stuff infinitely easier).
21345 2006-07-10 Jackson Harper <jackson@ximian.com>
21347 * Control.cs (SelectNextControl): When checking the control's
21348 parent use this instead of ctrl.parent so that null can be passed
21349 to SelectNextControl. (I have unit tests for this).
21350 - Remove unused var.
21352 2006-07-10 Chris Toshok <toshok@ximian.com>
21354 * CurrencyManager.cs: correct one regression, the removal of the
21355 finalType field. Also, add a MonoTODO on CanAddRows, implement
21356 Refresh() correctly, and fix some event emission in
21357 ListChangedHandler.
21359 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
21361 * FileDialog.cs: Don't use brackets for new folders if they exist
21362 under *nix. Instead use -(number of existing folders +1).
21364 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
21367 - Fixed really nasty bug #78771
21368 - Don't block the whole GUI when reading directories with a lot of
21369 entries. Use an other thread instead and call BeginInvoke to
21370 update the ListView in MWFFileView
21372 2006-07-07 Chris Toshok <toshok@ximian.com>
21374 * Control.cs (Dispose): release any Capture when disposing.
21376 2006-07-07 Chris Toshok <toshok@ximian.com>
21378 * LinkLabel.cs (Select): if we chain up to the parent, set
21379 focused_index to -1 so we'll search for the first available link
21380 the next time the user tabs into us. Also, if the direction is
21381 backward and focused_index == -1, start the search from the last
21384 2006-07-07 Chris Toshok <toshok@ximian.com>
21386 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
21387 is beyond the end of the text, don't do anything.
21388 (CreateLinkPieces): set our ControlStyles.Selectable based on
21389 whether or not we have any links.
21390 (Link.Invalidate): use a loop instead of foreach.
21391 (Link.set_Start): null out owner.sorted_links so it'll be
21392 recreated by CreateLinkPieces.
21394 2006-07-06 Chris Toshok <toshok@ximian.com>
21396 * LinkLabel.cs: revert the SetStyle change.
21398 2006-07-06 Chris Toshok <toshok@ximian.com>
21400 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
21401 (OnEnableChanged): s/Refresh/Invalidate
21402 (OnGotFocus): if we have a focused index already, refocus it (so
21403 if we mouse out/in to the window it'll focus the right link).
21404 (OnKeyDown): move the tab handling out of here.
21405 (OnLostFocus): don't set focused_index to -1, so we can refocus it
21406 when we lose focus.
21407 (OnMouseDown): don't Capture here - Control handles it. Also,
21408 focus the active link.
21409 (OnMouseUp): don't deal with Capture.
21410 (OnPaintBackgroundInternal): remove.
21411 (OnTextAlignChanged): CreateLinkPieces before calling the
21412 superclass's method.
21413 (OnTextChanged): call CreateLinkPieces before calling superclass's
21415 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
21417 (Select): implement this, moving the selection between different
21418 links, and call parent.SelectNextControl if we don't have another
21419 link to focus in the given direction.
21420 (CreateLinkPieces): call Invalidate instead of Refresh.
21422 2006-07-06 Chris Toshok <toshok@ximian.com>
21424 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
21425 new LinkLabel internals.
21427 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
21428 over pieces looking for active/focused/etc links. also, deal with
21429 runs of text (and links) with embedded \n's in them, and use
21430 MeasureCharacterRanges instead of MeasureString to figure out the
21431 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
21434 2006-07-04 Jackson Harper <jackson@ximian.com>
21436 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
21437 XKB or key auto repeat, do it manually. Without key auto repeat,
21438 when a key is held down we get key press, key release, key press,
21439 key release, ... with auto repeat we get key press, key press, key
21440 press ..., and then a release when the key is actually released.
21442 2006-07-03 Jackson Harper <jackson@ximian.com>
21445 * ThemeWin32Classic.cs: Tabs do not obey normal background color
21446 rules, they are always control color regardless of the background
21449 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
21451 * FileDialog.cs: Added internal class MWFConfig.
21452 Removed Registry support and replaced it with support for the new
21453 MWFConfig class. See MWFConfig comments for more information.
21455 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
21457 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
21458 rectangle. Added some patches from eno from bug #78490 and fixed
21459 the arrow position for small up and down CPDrawScrollButtons.
21461 2006-06-30 Jackson Harper <jackson@ximian.com>
21463 * InternalWindowManager.cs: Remove some debug code.
21464 * Form.cs: When an MdiParent is set to null, the window is
21465 "detatched" and becomes a normal window.
21466 * MdiClient.cs: Don't bring the new child form to the front until
21467 it is activated (setting it as active does this), this makes the
21468 previously active forms titlebar get redrawn as inactive.
21470 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
21472 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
21473 with later controls
21475 2006-06-29 Mike Kestner <mkestner@novell.com>
21477 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
21478 arrow in keynav state. Fixes #78682.
21480 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
21482 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
21483 order (fixes #78393)
21485 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
21487 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
21488 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
21489 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
21490 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
21491 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
21492 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
21493 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
21494 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
21495 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
21496 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
21497 enumerations (FlagsAttribute, SerializableAttribute, added/removed
21500 2006-06-28 Mike Kestner <mkestner@novell.com>
21502 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
21504 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
21507 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
21508 item lines from other area (It also makes BackColor consistent and
21509 compatible with .NET). Fixed bug #78564.
21511 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
21513 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
21514 Patch from Eno for #78555.
21516 2006-06-27 Chris Toshok <toshok@ximian.com>
21518 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
21520 * DataGridColumnStyle.cs: same.
21522 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
21524 * DataGridDrawingLogic.cs: nuke.
21526 2006-06-27 Chris Toshok <toshok@ximian.com>
21528 * DataGridTableStyle.cs: clean up the constructors, and build the
21529 list of child relations for this table. I have no idea if this is
21530 where we should be doing it (it probably isn't), but since we're
21531 already iterating over the properties..
21533 * DataGrid.cs: add row resizing. for now we add a DataGridRow
21534 struct and array for keeping track of row information, similar to
21535 what's shown in a hack on
21536 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
21538 * Theme.cs: be consistent about the naming of DataGrid methods,
21539 prefering ColumnWidths and RowHeights over columnsWidths and
21542 * ThemeWin32Classic.cs: same, and also add support for variable
21543 sized rows (and the +/- expansion icons for related rows).
21545 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21547 * TextBoxBase.cs: Applied Eno's patch from #78660
21549 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21551 * Form.cs (ScaleCore): We don't want to scale our form if it's
21552 state is minimized or maximized, but we still need to scale our
21553 child windows. Also, added try/finally block to ensure layout
21554 gets reset (Fixes #78697)
21556 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21558 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
21560 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21562 * Form.cs: Fixed c+p error and added check to resize form if minimum
21563 size is bigger than current size (Fixes #78709)
21565 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
21567 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
21569 2006-06-26 Mike Kestner <mkestner@novell.com>
21571 * ComboBox.cs: only do Keypress handling in the combo when there
21572 are items in the collection. Fixes #78710.
21574 2006-06-26 Chris Toshok <toshok@ximian.com>
21576 * Binding.cs: make this work bi-directionally. also, clear up
21577 other mixups between Push/Pull Data (e.g. we're supposed to pull
21578 data when validating).
21580 * BindingManagerBase.cs: trim some fully qualified collection
21583 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
21585 2006-06-23 Chris Toshok <toshok@ximian.com>
21587 * PropertyManager.cs: It appears (according to the unit tests)
21588 that PropertyManager doesn't use
21589 PropertyDescriptor.AddValueChanged to track propery value changes
21590 in its datasource, but uses the same scheme as Binding, where it
21591 looks for a <Property>Changed event and binds to it.
21593 Also, according to the docs, IsSuspended always returns false for
21594 a property manager with a non-null datasource.
21596 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21598 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
21599 need to update the actual DialogResult. (Fixes #78613)
21601 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21603 * Form.cs (ShowDialog): Release any captures before running the
21604 new message pump (fixes #78680)
21606 2006-06-22 Mike Kestner <mkestner@novell.com>
21608 * ListView.cs: Layout column widths properly in details mode even
21609 if HeaderStyle.None is set. Fixes #78691.
21611 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21613 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
21615 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21617 * Control.cs (ContainsFocus): Using new driver method to get focused
21618 window, instead of trying to use internal tracking var, which can
21619 recursion issues (Fixes #78685)
21620 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21621 XplatUIWin32.cs: Added GetFocus method to return focused window
21623 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21625 * ColorDialog.cs: when the mouse button is pressed inside the color
21626 matrix, don't let the cursor move out of it until the button is
21627 released, which is the behavior on windows. Changed 'colours' by
21628 'colors' to use the same word consistently.
21630 2006-06-21 Chris Toshok <toshok@ximian.com>
21632 * DataGrid.cs: add in some basic navigation stuff (navigating to a
21633 child relation and back, using a stack). Also, remove
21634 GetDataSource and the code that calls it - it's not needed. Also,
21635 track CurrencyManager.ListName's removal.
21637 2006-06-21 Chris Toshok <toshok@ximian.com>
21639 * CurrencyManager.cs: push some of the original type checking from
21640 BindingContext.CreateBindingManager to here, and remove some of
21641 the finalType stuff. Need more tests to make sure I've got the
21642 ListName part right, and we might need more in SetDataSource.
21644 * PropertyManager.cs: add a ctor that takes just the datasource,
21645 and no property name. Make SetDataSource work with a null
21646 property_name, and make Current return the data_source if the
21647 property descriptor is null. this makes 'string foo = "hi";
21648 BindingContext[foo].Current' return "hi" as it should.
21650 * RelatedCurrencyManager.cs: make this code more generic - there's
21651 no reason the parent manager has to be CurrencyManager, and
21652 there's no reason to pass the DataRelation. It suffices to use a
21653 BindingManagerBase and PropetyDescriptor.
21655 * RelatedPropertyManager.cs: make a similar change here.
21657 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
21658 flower I knew it could be.
21660 2006-06-20 Chris Toshok <toshok@ximian.com>
21662 * PropertyManager.cs: the PropertyChangedHandler is invoked when
21663 data in the source has changed and we need to update the control,
21664 so s/PullData/PushData.
21666 * CurrencyManager.cs: Refresh is meant to update the control from
21667 data in the datasource. So, s/PullData/PushData.
21669 * BindingContext.cs: add more ugliness (we weren't handling the
21670 case where data_source = DataTable and data_member = column_name).
21672 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
21673 from the perspective of the datasource. PullData pulls from the
21674 control, PushData pushes to the control.
21676 2006-06-20 Chris Toshok <toshok@ximian.com>
21678 * BindingContext.cs: rewrite the CreateBindingManager code to
21679 handle navigation paths more or less properly. This could
21680 definitely stand some more work, in particular to push the
21681 recursion up to the toplevel. But that relies on fixes in other
21682 places (System.Data comes to mind).
21684 Also, move to a flat hashtable (and encode the twolevel nature of
21685 the dictionary into the hash key). This lets us implement the
21686 IEnumerable.GetEnumerator method.
21688 * RelatedCurrencyManager.cs: new class. Update our view based on
21689 our relation and our parent CurrencyManager's position.
21691 * CurrencyManager.cs: split out some logic from the ctor into
21692 SetView, so it can be called from the new RelatedCurrencyManager
21695 * RelatedPropertyManager.cs: new class. Update our datasource
21696 based on the position of our parent CurrencyManager.
21698 * PropertyManager.cs: split out some logic from the ctor into
21699 SetDataSource, so it can be called from the new RelatedDataSource
21700 subclass. Also, make the Current getter return the value
21701 of the PropertyDescriptor, not the data_source.
21703 * Binding.cs: no need to duplicate the string splitting code here.
21705 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21708 - set_Enabled: OnEnabledChanged is not called if the inherited state
21709 of the control is not altered, even though we might be changing the
21710 internal state of the control (#78458)
21711 - set_Enabled: (Re)Moved the enabling/disabling of the window to
21712 OnEnabledChanged, to allow easy altering of any child window state
21713 - OnEnabledChanged: Added code to enable/disable driver window state
21714 - OnParentEnabledChanged: Instead of firing the event, call
21715 OnEnabledChanged, which will fire the event and also a) set driver
21716 window state and pass the enabled state to any grandchildren (#78458)
21718 2006-06-19 Jackson Harper <jackson@ximian.com>
21720 * InternalWindowManager.cs: We don't set the cursor explicitly
21721 thats done via the response to NCHITTESTs.
21722 - Don't need to adjust for titlebar heights anymore, the
21723 coordinates are coming in the correct coordinates now (see peters
21727 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21729 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
21730 being translated relative to whole window, instead of client window.
21731 That caused broken offsets on mouseclick (and caused gas for our
21732 InternalWindowManager)
21734 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21737 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
21738 - Undo(): Added replay of cursor move on DeleteChars action; added
21739 calling Undo() again if a recorded cursor move is invalid (to
21740 ensure that some action is performed on Undo)
21741 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
21743 2006-06-16 Jackson Harper <jackson@ximian.com>
21745 * MdiClient.cs: Instead of just sizing maximized windows when
21746 there is a resize we also have to adjust the Y of minimized
21747 windows, so they stay pinned to the bottom of the mdi container.
21748 - Eliminate separate tracking of the active control, we can just
21749 get this from the controls collection.
21750 - Paint the decorations for the newly activated titlebar so we get
21752 * InternalWindowManager.cs:
21753 * ThemeWin32Classic.cs: Minimized windows get all three buttons
21754 even if they are a tool window.
21756 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21758 * TextControl.cs (Undo): Handle non-existent cursor locations in the
21759 undo buffer, these can happen when text was deleted and the cursor
21760 was recorded first. Since we will also have a recorded cursor
21761 after the delete this is not an issue. (Fixes #78651)
21763 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
21765 * AccessibleObject.cs: Remove dependence on Control.is_selected;
21766 instead properly track control states internally (allows us to
21767 remove is_selected from Control)
21769 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21771 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
21772 whose width is not a multiple of 8.
21774 2006-06-13 Jackson Harper <jackson@ximian.com>
21776 * MdiClient.cs: Only maximize the next child if the current one
21779 2006-06-13 Chris Toshok <toshok@ximian.com>
21781 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
21782 modified. Also, guard against grid or grid_drawing being null in
21785 * DataGrid.cs: Reformat tons of getters/setters. In the
21786 DataMember setter, just call SetNewDataSource instead of
21787 duplicating some of its functionality. In SetNewDataSource, don't
21788 check ListManager for null, since the property getter creates the
21791 * DataGridTableStyle.cs: don't set TableStyle or call
21792 SetDataGridInternal on the column here, it's done in
21793 GridColumnStylesCollection.Add.
21795 * GridColumnStylesCollection.cs: fix all the explicit interface
21796 implementations to just call our methods. Nuke AddInternal() and
21797 move the body of it to Add(). Also, add a call to
21798 column.SetDataGridInternal to Add().
21800 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
21801 base()+duplicate code. Also, use the Format property instead of
21802 format to generate an Invalidate ala MS. Lastly, create the
21803 textbox here, unconditionally.
21804 (set_Format): call Invalidate.
21805 (get_TextBox): no need to call EnsureTextBox.
21806 (Commit): remove the message box.
21807 (Edit) remove the call to EnsureTextBox.
21808 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
21809 (EnterNullValue): no need to check textbox for null.
21810 (HideEditBox): no need to check textbox for null.
21811 (SetDataGridInColumn): add the textbox to the grid's controls.
21812 (EnsureTextBox): nuke.
21814 2006-06-13 Jackson Harper <jackson@ximian.com>
21816 * MdiWindowManager.cs: Hook up to the maximized menus paint event
21817 and redraw the buttons when needed. Unhook when the window is
21819 * MainMenu.cs: Add an internal Paint event, the mdi window manager
21820 needs this so that it can redraw its buttons when the menu is
21822 * InternalWindowManager.cs:
21823 * Form.cs: The method order has changed for DrawMaximizedButtons,
21824 so that it can be a PaintEventHandler.
21826 2006-06-13 Jackson Harper <jackson@ximian.com>
21828 * MdiClient.cs: When we close a maximized mdi window, the next mdi
21829 window is activated and maximized, even if it wasn't before.
21830 - When a new window is activated repaint the decorations of the
21831 old one, so that it no longer has the Active "look" (the blue
21833 * InternalWindowManager.cs: Open up CreateButtons to base classes
21834 so they can recreate the buttons on state changes.
21835 - If a window is maximized give it all three buttons
21836 * MdiWindowManager.cs: Create the titlebar buttons when the state
21837 is changed, this is needed because a toolwindow will not have all
21838 three buttons until it is maximized.
21840 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
21842 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
21845 2006-06-12 Jackson Harper <jackson@ximian.com>
21847 * KeysConverter.cs: Make sure we handle the Ctrl special case
21848 if its the only key.
21850 2006-06-12 Jackson Harper <jackson@ximian.com>
21852 * Theme.cs: Add a method to get the size of a managed window
21854 * InternalWindowManager.cs: Remove the ButtonSize property, this
21855 should be retrieved from the theme.
21856 * MdiWindowManager.cs: Get the button size from the theme
21857 * ThemeWin32Classic.cs: Make the method to get the managed window
21858 titlebar button size public.
21859 - Handle the different button sizes of maximized toolwindows
21860 (should match any maximized window).
21861 - Get the titlebar height from the theme, not the WM (which gets
21862 it from the theme).
21864 2006-06-12 Jackson Harper <jackson@ximian.com>
21866 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
21867 event down to the mdi window manager.
21868 - Expose some extra stuff to base classes
21869 - Make sure to end the Capture on an NC Mouse up, so that we can
21870 get double clicks properly, and the sizing doens't stick.
21871 - When doing PointToClient contain it in the workable desktop
21872 area, this prevents windows from changing size when the cursor is
21873 pulled outside of the working area while sizing.
21874 * MdiWindowManager.cs: When we get a double click maximize the
21876 - Reset the cursor after handling mode changes.
21878 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
21880 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
21881 current desktop, instead of just assuming a 0, 0 origin. This
21882 is needed for our internal window manager, to know the top
21883 margin of the desktop
21885 2006-06-12 Chris Toshok <toshok@ximian.com>
21887 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
21888 we need this to get rid of the selected background in the bool
21890 (CancelEditing): move the ConcedeFocus call to above the Abort
21891 call. Also, set is_changing to false and invalidate the row
21892 header if we were changing before.
21893 (ProcessKeyPreviewInternal): remove, since noone outside this
21894 class calls it anymore. Roll the code into ProcessKeyPreview.
21895 (EndEdit): remove the internal version.
21896 (InvalidateCurrentRowHeader): make private.
21898 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
21899 Keys.Escape handling (and with it the last call to
21900 DataGrid.EndEdit from outside the class.)
21903 2006-06-12 Chris Toshok <toshok@ximian.com>
21905 * DataGridTextBox.cs (.ctor): isedit defaults to false.
21906 (OnKeyPress): set isedit to true.
21907 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
21908 already handled by the grid.
21910 * DataGrid.cs (set_CurrentCell): more work here. it's still not
21912 (set_DataSource): SetDataSource always returns true, so stop
21913 putting it in an if statement.
21914 (EndEdit): get rid of some {}'s
21915 (ProcessGridKey): return true in case Keys.Escape.
21916 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
21917 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
21918 PositionChanged, stopped connecting to CurrentChanged.
21919 (GetDataSource): simplify this a bunch.
21920 (SetDataSource): change return type from bool to void.
21921 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
21922 to this, and make sure we don't set ListManager.Position inside
21924 (OnListManagerItemChanged): if we're passed an actual index,
21927 * CurrencyManager.cs (set_Position): don't call PullData here.
21929 2006-06-09 Jackson Harper <jackson@ximian.com>
21931 * TreeNode.cs: Recalculate the visible order before doing the
21932 Expand/Collapse Below calls, because those calls generate an
21934 - Reduce calls to the TreeView property, which is mildly expensive
21935 by using a local var.
21936 * Form.cs: Layout the MDI child windows when creating the parent
21938 - Don't use the internal constructor anymore
21939 * MdiClient.cs: use the parent form width/height (if available)
21940 when laying out the child windows, we do this because the
21941 mdiclient isn't docked yet when the initial layout is done.
21942 - Don't need an internal constructor anymore.
21944 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21946 * FileDialog.cs: handle access errors when trying to create a folder
21947 or changing to a directory. No need to initialize out parameters.
21949 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21951 * FileDialog.cs: Append a number when creating a new folder if the
21952 folder already exists (use parenthesis instead of square brackets)
21954 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21957 - Disabled registry support for windows and added better registry
21958 error checking for other systems (need to investigate why it
21959 works perfectly on my system)
21960 - If a folder already exist show an error MessageBox instead of
21961 trying to create an indexed name.
21962 - Fixed a non intentional typo.
21964 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21966 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
21968 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21970 * FileDialog.cs: When creating a new folder don't crash if the
21971 folder already exists.
21973 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21975 * FileDialog.cs: Allmost a complete rewrite.
21976 - added a "virtual" file system that handles the differences
21977 between unix and windows file systems (especially the directory
21978 structure). Moved most of the directory and file handling code
21980 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
21981 UnixFileSystem and FSEntry.
21982 - Recently used folder/directory, size, location and used file names
21983 (file name ComboBox) are now stored in the registry and get read
21984 before the dialog shows up (fixes part 6 of bug #78446).
21985 - Creation of new folders/directories is now possible (context menu
21986 or ToolBar). Added TextEntryDialog for this that fills in the gap
21987 until ListView.LabelEdit works.
21988 - Fixed cursor handling (bug #78527) and focus handling for
21990 - Various "Search in" ComboBox enhancements. The content of the
21991 dropdown listbox now almost matches ms.
21992 - Changed the behaviour when the user switches to SpecialFolder
21993 Recent to show the ListView in View.Details.
21994 - Beside using the ToolBar to change the View property of the
21995 file ListView it is now possible to use the context menu too.
21997 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21999 * ComboBox.cs: Don't create a new ObjectCollection when an item
22000 gets inserted. Just insert the item in the existing object_items
22003 2006-06-08 Jackson Harper <jackson@ximian.com>
22005 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
22006 that the treeview and root node checks are done also, this fixes a
22007 regression i caused in the unit tests.
22009 2006-06-07 Wade Berrier <wberrier@novell.com>
22011 * RichTextBox.cs: More ISO8859-1 -> unicode
22013 2006-06-07 Mike Kestner <mkestner@novell.com>
22015 * ComboBox.cs : use items to hold highlight/selection so that
22016 collection insertions don't require synchronization.
22018 2006-06-07 Jackson Harper <jackson@ximian.com>
22020 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
22021 routine. We now always keep the sized edge at the cursor instead
22022 of computing movement and adjusting rects. There is one buglet
22023 with this method though when the cursor is moved over area that
22024 the window can not expand too (such as the toolbars on the desktop).
22026 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22028 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
22029 here. Fixes crash on startup in AlbumSurfer.
22031 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
22033 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
22036 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22038 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
22039 statement to avoid calling XNextEvent which will block if another thread
22040 took the event that we were expecting. Fixes bug #78605.
22042 2006-06-07 Mike Kestner <mkestner@novell.com>
22044 * ListView.cs : isolated checkbox clicking from the selection logic.
22045 Toggle check state on item doubleclicks. Really fixes #78454 part2.
22047 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22049 * Form.cs: Check that the value passed to Form.DialogResult
22050 is a valid enum value.
22052 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22054 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
22055 Computer'. Clicking it in the network view goes to 'My Computer'.
22056 Added CIFS filesystem type. Display the mount point of filesystems.
22057 Avoid duplicate mount points (happens for me with CIFS);
22059 2006-06-06 Jackson Harper <jackson@ximian.com>
22061 * InternalWindowManager.cs: Draw the maximized windows buttons
22064 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22066 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
22067 all other dialogs. Fixes bug #78585.
22069 2006-06-06 Mike Kestner <mkestner@novell.com>
22071 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
22072 Only invalidate checkbox on checkstate changes to avoid flicker.
22073 * ListBox.cs : avoid unselect/select when clicking selected item.
22074 avoid reselection flicker for already multiselected items.
22077 2006-06-06 Jackson Harper <jackson@ximian.com>
22079 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
22080 the parent form so that the menu is removed if needed.
22082 2006-06-06 Mike Kestner <mkestner@novell.com>
22084 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
22085 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
22087 2006-06-06 Mike Kestner <mkestner@novell.com>
22089 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
22092 2006-06-06 Jackson Harper <jackson@ximian.com>
22094 * Control.cs: Use the property (instead of the field) to get the
22095 default cursor so it is instantiated correctly.
22096 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
22097 resizes so we need to manually repaint the window decorations here.
22098 - Set the titlebar button locations as soon as they are created,
22099 otherwise they are not set correctly on win32.
22101 2006-06-06 Chris Toshok <toshok@ximian.com>
22103 * CurrencyManager.cs (set_Position): call PullData before
22105 (AddNew): after calling IBindingList.AddNew, update our
22106 listposition, and call OnCurrentChanged/OnPositionChanged (without
22108 (OnCurrentChanged): remove the call to PullData from here.
22109 (OnItemChanged): remove the call to PushData from here.
22110 (OnPositionChanged): change the test from == null to != null to
22111 match the other methods.
22112 (ListChangedHandler): the grossest part of the patch. Implement
22113 this such that it passes the unit tests in CurrencyManagerTest and
22114 the output more or less matches that of MS's implementation.
22116 2006-06-06 Mike Kestner <mkestner@novell.com>
22118 * ListView.cs : only update check state on single click.
22119 * ThemeWin32Classic.cs : fix focus drawing for details view without
22120 fullrowselect. Fixes #78454.
22121 * XplatUIX11.cs : fix for double click emission.
22123 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
22125 * PropertyGridView.cs : Applied Atsushi's patch to fix
22126 font dialog bug (#78197).
22128 2006-06-05 Jackson Harper <jackson@ximian.com>
22130 * TreeNode.cs: Compute the next node for expanding/collapsing
22131 correctly. We now factor in nodes without a NextNode
22132 correctly. (Fixes somes cases in nunit-gui).
22133 * InternalWindowManager.cs: Set the bounds when updating the
22134 virtual position of a tool window.
22136 2006-06-05 Chris Toshok <toshok@ximian.com>
22138 * DataGrid.cs: rename cached_currencymgr to list_manager.
22139 (set_CurrentCell): move SetCurrentCell code here, and clean it up
22141 (CurrentRow, CurrentColumn): single accessors so we can make the
22142 cursor movement code a lot easier to understand.
22143 (CurrentRowIndex): implement this in terms of CurrentRow.
22144 (BeginEdit): clean this up a bit.
22145 (CancelEditing): sort out the is_editing/is_changing/is_adding
22147 (EndEdit): minor changes.
22148 (OnKeyDown): add a comment about a (most likely) unnecessary
22150 (OnMouseDown): cancel editing when we click on a row header. And
22151 use the CurrentRow setter, not CurrentCell.
22152 (ProcessDialogKey): directly call ProcessGridKey.
22153 (UpdateSelectionAfterCursorMove): factor out this common block of
22154 code (it's used everywhere that we move the cursor by updating row
22156 (ProcessGridKey): pretty substantial overhaul. Use the
22157 CurrentRow/CurrentColumn properties to make the code a lot more
22158 readable. Only use the CurrentCell property when we have to
22159 modify both row and column at once. Tab behavior is still broken,
22160 and Delete is untested.
22161 (Select): if we have no selected rows, set selection_start to
22163 (EditCurrentCell): rename EditCell this. It was only ever invoked
22164 with CurrentCell as the arg, so drop the arg and rename it.
22166 * DataGridColumnStyle.cs: clean up the constructors a little, and
22167 drop CommonConstructor().
22169 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
22170 actually get notified when the user hits it.
22171 (ProcessKeyMessage): *substantially* simplify this method.
22172 There's no reason (that I can see) for the textbox to be making
22173 calls into the datagrid at all. Remove all of them but the ones
22174 for Enter handling. those will take some more work.
22176 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
22177 calling HideEditBox.
22178 (HideEditBox): if we have an active textbox, render it invisible
22179 without causing a re-layout of the datagrid.
22181 2006-06-05 Mike Kestner <mkestner@novell.com>
22183 * ListView.cs : fix NRE crasher when focuseditem is cleared by
22184 collection changes by resetting it to Items[0]. Fixes #78587.
22186 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22188 * MessageBox.cs: if the height of the text is larger than the icon_size,
22189 use that. Fixes bug #78575.
22191 2006-06-05 Jackson Harper <jackson@ximian.com>
22193 * TreeView.cs: Fix line drawing when scrolling. To do this each
22194 node is basically responsible for drawing its entire horizontal
22195 area. When drawing a node it draws its parent node lines if
22197 - Adjust the clip area to the viewport rectangle
22198 - Fix Left/Right key handling to match MS. (It expand/collapses
22199 and moves to parents/first child but does not move selection to
22201 - Fix SetTop to work with new bound calculation code
22202 - When scrollbars are no longer needed we need to reset scrolling
22203 vars and recalculate the visible order so the redraw is correct
22204 * TreeNode.cs: We can't expand/collapse nodes with no children.
22206 2006-06-03 John Luke <john.luke@gmail.com>
22208 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
22209 so the colors work without dev packages
22211 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
22214 - Select: Implemented to just use activate. Seems to match MS
22215 behaviour closest. Documented to only do actual control walking
22216 based on it's parameters if in a container control so I moved
22218 - Removed selection check logic from our internal Select() method
22219 * ContainerControl.cs:
22220 - Select: Moved selection logic from Control here, since MS documents
22221 that containers obey the bool arguments. No longer calling base
22223 2006-06-02 Jackson Harper <jackson@ximian.com>
22225 * TreeView.cs: If the selected node isn't changed when we get
22226 focus update the previously selected node so that we see the
22229 2006-06-02 Mike Kestner <mkestner@novell.com>
22231 * ComboBox.cs: restructure grab and general mouse event handling.
22232 Make the composite control raise mouse events like it was a single
22233 control for leaves/enters/motion/up/down events. fix dropdown list
22234 coordinate mangling and refactor it into the scrollbar subclass to
22235 reduce code duplication. Fixes #78282 #78361 and #78457.
22237 2006-06-02 Mike Kestner <mkestner@novell.com>
22239 * ScrollBar.cs: remove Capture setting/clearing, as it happens
22240 automatically in the Control.WndProc.
22242 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22244 * FileDialog.cs: fix crash when running SharpChess, which sets the
22245 FilterIndex to 2 with only one Filter.
22247 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22249 * ToolBar.cs: add SizeSpecified property.
22250 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
22251 try to figure out our real size, otherwise fallback to what the
22254 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22256 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
22257 * Control.cs (WndProc): MS always calls the DefWndProc to pass
22260 2006-06-01 Mike Kestner <mkestner@novell.com>
22262 * ListView.cs: revamp the focus management in ListView. It still
22263 causes churn of LostFocus/GotFocus emissions on clicks, but it's
22264 better than not handling focus at all. Will revisit when pdb feels
22265 the general focus handling is solid. Fixes #78526.
22267 2006-06-01 Jackson Harper <jackson@ximian.com>
22269 * TreeView.cs: Set the default border style in the constructor.
22270 - Move painting to use OnPaintInternal instead of capturing
22271 WM_PAINT, this is the correct way of doing things
22272 - UpdateBelow shouldn't invalidate the scrollbar area
22273 - Cap the top on update below in case the node was above the top
22274 of the viewport rectangle.
22275 - ExpandBelow and Collapse below need to obey Begin/End Update.
22276 * TreeNode.cs: Make is_expanded internal so the treenode
22277 collection can change it without firing the whole event chain.
22278 * TreeNodeCollection.cs: When clearing all the child nodes make
22279 sure to recalc the visible order.
22280 - Improve algo for remove the top node
22282 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22284 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
22285 SendMessage directly calling window procedures, which in turn might
22288 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22290 * Control.cs: Don't handle WM_SETFOCUS if the same window already
22291 has focus (works around X11 sending a FocusIn after our SetFocus)
22292 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
22294 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
22296 * Mime.cs: Fix for the NET_2_0 build.
22297 NameValueCollection needs StringComparer now.
22299 2006-05-31 Chris Toshok <toshok@ximian.com>
22301 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
22302 return (via an out parameter) the starting X of the column.
22303 (UpdateVisibleColumn): track change to FromPixelToColumn.
22304 (HitTest): add a ColumnResize case here.
22305 (DrawResizeLine): new function, probably poorly named.
22307 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
22308 only need to keep one reference.
22309 (set_ListManager): same.
22310 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
22311 Also, add support for HitTestType.ColumnResize.
22312 (OnMouseMove): add column resize behavior here, and change the
22313 cursor to the correct one as we move around the datagrid.
22314 (OnMouseUp): terminate the column resize if we're resizing.
22315 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
22316 for the current cell.
22317 (ConnectListManagerEvents): use cached_currencymgr.
22318 (DisconnectListManagerEvents): fill this in, using
22319 cached_currencymgr.
22320 (SetCurrentCell): remove cached_currencymgr_events handling.
22321 (SetDataMember): only call DisconnectListManagerEvents if
22322 cached_currencymgr is != null.
22323 (SetDataSource): same.
22324 (OnListManagerCurrentChanged): cached_currencymgr_events ->
22325 cached_currencymgr.
22327 2006-05-31 Jackson Harper <jackson@ximian.com>
22329 * BindingManagerBase.cs: Remove somedebug code that creeped into
22331 * TreeNode.cs: We get the indent level dynamically right now, so
22332 don't track it as a member.
22333 * TreeNodeCollection.cs: Make sure all nodes added to the list
22334 have parents, treeviews/topnodes setup properly.
22335 - Don't attempt to track indent level.
22337 2006-05-30 Jackson Harper <jackson@ximian.com>
22339 * BindingContext.cs: Create the currency manager tables here.
22340 This allows us to more easily create null tables (when bad data
22341 members are used), and more easily create related currency
22343 * CurrencyManager.cs: All the table creation stuff is done by the
22344 binding context now.
22345 - Current should throw an exception if listposition is -1.
22346 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
22349 2006-05-30 Mike Kestner <mkestner@novell.com>
22351 * ListView.cs: allow reexpansion of zero-width column headers.
22354 2006-05-28 Chris Toshok <toshok@ximian.com>
22356 * CurrencyManager.cs (get_Current): after the late binding
22357 listposition = -1 fix, we need to guard against it here and return
22358 null, otherwise we raise an exception (which is swallowed
22359 elsewhere, and breaks datagrid databinding.)
22361 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22363 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
22364 than WM_SYSKEY, don't throw if get something unexpected (#78507)
22366 2006-05-26 Jackson Harper <jackson@ximian.com>
22369 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
22370 values, it's faster and it's all we care about (we don't care if
22371 the names aren't equal).
22372 * KeyboardLayouts.cs: Eliminate some dead code.
22374 * X11Keyboard.cs: Lazy init keyboard detection.
22375 - Cleanup access modifiers a little.
22377 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22379 * XplatUIX11.cs: Once again, attempting to get layout just right.
22381 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22383 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
22384 the sizes of each link section, that will result in sizes that
22385 match DrawString's layout (Fixes #78391)
22387 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
22389 * FileDialog.cs: If AddExtension property is true autocomplete the
22390 extensions in SaveFileDialog correctly. Fixes bug #78453.
22391 Set MyNetwork and MyComputer to "C:\" for windows. This should
22392 fix part 8 of bug #78446 for now.
22394 2006-05-26 Chris Toshok <toshok@ximian.com>
22396 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
22397 invalidate the current row header if we need to, but presumably
22398 we'll invalidate the row corrsponding to the bounds or
22400 (GridHScrolled): switch back to this method, as it's part of the
22401 public api. *sigh*.
22402 (GridVScrolled): same.
22403 (OnMouseWheel): hack up something that more or less works. Call
22404 GridHScrolled/GridVScrolled directly, instead of duplicating much
22405 of their code here.
22406 (EnsureCellVisibility): reinstate a bunch of this code, since we
22407 can't just set the scrollbar Value and expect to do all the work
22408 in the ValueChanged handler. Also, Call Update() after scrolling
22409 in one direction so the other XplatX11.ScrollWindow call has the
22410 proper stuff in the proper places.
22411 (EditCell): set is_editing to true before calling .Edit.
22413 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
22414 don't bother comparing first.
22415 (OnKeyPress): call grid.ColumnStartedEditing before calling
22416 base.OnKeyPress. this will set is_changing and invalidate the row
22417 header if necessary.
22418 (ProcessKeyMessage): for WM_CHAR messages, call
22419 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
22422 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
22423 it's done in the DataGrid.
22424 (NextState): call grid.ColumnStartedEditing, which takes care of
22425 invalidating the row header (and setting is_changing).
22427 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
22428 here. it's done in the DataGrid.
22430 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22432 * Control.cs: allow changing the cursor when the mouse position is
22433 out of bounds but Capture is set.
22434 * LinkLabel.cs: handle the case when the mouse button is pressed on the
22435 linklabel but released somewhere else.
22437 2006-05-25 Jackson Harper <jackson@ximian.com>
22439 * TreeView.cs: When we get focus if there is no selected node make
22441 - Remove some uneeded setup code from Draw.
22442 * TreeNodeCollection.cs: If the tree doesn't have a top node when
22443 a new node is inserted make the new node the top.
22445 * Timer.cs: Use Utc time so that no local time zone stuff needs to
22446 be used (should be faster).
22448 2006-05-25 Chris Toshok <toshok@ximian.com>
22450 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
22451 problem with the last commit.
22453 2006-05-25 Chris Toshok <toshok@ximian.com>
22455 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
22456 need the invalidate call here, while scrolling right-to-left via
22457 the left arrow key (i.e. moving the editing cell while scrolling).
22459 * DataGrid.cs (.ctor): remove the initialization of
22460 ctrl_pressed/shift_pressed. We no longer track them using key
22461 up/down handlers, but by using Control.ModifierKeys. Also, switch
22462 to using ValueChanged handlers on the scrollbars instead of
22463 Scrolled event handlers. This simplifies a bunch of the scrolling
22465 (GridHValueChanged): rename from GridHScrolled, and change it to
22466 work with the new event args.
22467 (GridVValueChanged): same.
22468 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
22469 (OnMouseWheel): actually scroll the datagrid. Don't change the
22471 (ProcessGridKey): correct all the keyboard navigation stuff I
22472 could find. Ctrl up/down/left/right/home/end work now.
22473 (EnsureCellVisibility): correct method name spelling. Also,
22474 simplify this a touch by not explicitly calling the
22475 ScrollToRow/ScrollToColumnInPixels methods. We just set the
22477 (OnKeyUpDG): no need for this method now.
22479 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22481 * LinkLabel.cs: display the OverrideCursor when hovering the label.
22484 2006-05-25 Chris Toshok <toshok@ximian.com>
22486 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
22489 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
22491 * Application.cs: Moved setting of is_modal and closing to before
22492 we create the control, to allow the event handlers called as a
22493 result of creation affect closing. Also removed Gonzalo's previous
22494 change to setting DialogResult, the behaviour has been moved to
22497 - ShowDialog(): Removed explicit creation of the form, let RunLoop
22499 - ShowDialog(): If no dialog result is set, we need to return Cancel
22500 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
22501 the close is cancelled
22503 2006-05-25 Jackson Harper <jackson@ximian.com>
22505 * StatusBar.cs: We only need to update the sizes of the other
22506 panels when we have auto size contents. Also we are only updating
22507 the contents of the panel, not the borders, so compensate for the
22508 border width (TODO: get this width from the theme somehow).
22509 * TreeView.cs: Scrollable is true by default
22510 - Use invalidate instead of refresh where needed
22511 - Factor the scrollable value into scrollbar updating
22512 - Update the scrollbars if the Scrollable property is altered
22513 - Update the selected node if its ImageIndex is changed
22514 - Handle null nodes in UpdateNode (mainly so we don't have to
22515 check if selected is null when updating it
22516 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
22517 are factored into the visible count
22518 - Use VisibleCount for clarity in the code
22519 - When the font is changed we need to recurse through all the
22520 nodes and invalidate their sizes
22522 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22524 * Application.cs: set the DialogResult to fixed when the main form is
22525 hidden or destroyed while being modal.
22527 2006-05-25 Miguel de Icaza <miguel@novell.com>
22529 * Theme.cs: Use Tangoified messagebox icons.
22531 (GetSizedResourceImage): Also cope with width = 0 and do not
22532 trigger a warning in that case (0 means "give me your icon from
22533 the resouce, no special size needed).
22535 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
22537 * Application.cs: Leave runloop if the the main modal form is
22538 hidden (fixes #78484)
22540 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
22542 * BindingContext.cs : reject null datasource in Contains() and
22544 * CurrencyManager.cs : check data_member validity when data_source
22545 is dataset. When it is late binding, the initial position is -1.
22547 2006-05-24 Jackson Harper <jackson@ximian.com>
22549 * TreeNodeCollection.cs: Dont't recalculate the visible order on
22550 inserted nodes that aren't visible. This changes the
22551 max_visible_order which confuses scrollbar settings.
22552 - Use the enumerator to get the prev node instead of duplicating
22554 * TreeView.cs: Use new method for setting scrollbar values
22555 - Don't set the bounds every time the scrollbar is updated
22556 - When updating below the root node use an invalidate instead of a
22557 refresh to prevent the child controls (scrollbars) from being
22558 refreshed. (UpdateBelow still needs to be reworked anyways).
22559 - Reenable SetBottom now that visible orders are set correctly,
22560 added some debug code incase we ever get bad values there again.
22561 - Set the scrollbar max to 2 less then the max value, this
22562 compensates for the max value being one above the node count, and
22563 for scrollbars adding one extra "notch".
22564 - When drawing image nodes if there is an imagelist we draw the
22565 first image in the list if the supplied image index is out of the
22566 image list's bounds.
22568 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22570 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
22571 we receive a size change from the WM (Fixes #78503)
22573 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22575 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
22576 rectangle (Fixes #78501)
22578 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22581 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
22583 - Fixed MouseMove to no longer switch pressed state unless the left
22584 mouse button is pressed. Atsushi provided the original patch (#78485)
22586 2006-05-24 Jackson Harper <jackson@ximian.com>
22588 * ScrollBar.cs: New internal methods that allow us to change a
22589 couple values on the scrollbar (the most common case is maximum
22590 and large change) without getting multiple invalidates.
22592 2006-05-24 Chris Toshok <toshok@ximian.com>
22594 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
22595 (Edit): save off the original state in oldState, and set
22596 grid.is_editing to true.
22597 (OnKeyDown): abort editing if escape is pressed. also, call
22598 NextState if space is pressed.
22599 (OnMouseDown): call NextState.
22600 (NextState): factor out shared code from OnKeyDown and OnMouseDown
22601 here. Also, only invalidate the row header once (on the initial
22602 is_changing switch) to save on redraws.
22604 2006-05-24 Chris Toshok <toshok@ximian.com>
22606 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
22607 if the value in the cell is different than it was before. This
22608 keeps us from triggering a layout when we move around a datarid
22609 with a highlighted cell.
22610 (Edit): suspend layout when creating/positining the text box, and
22611 resume passing false so we don't ever actually re-layout.
22612 (ReleaseHostedControl): same.
22613 (EnsureTextBox): reformat slightly, and set WordWrap to false.
22615 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
22616 control-key sequences should go to the datagrid - remove that
22617 lock. Also, modify the conditions under which we move between
22618 cells when moving the cursor within a cell, and remove the "this"
22619 and "base" from field accesses. We weren't even consistent, given
22620 they all were in the base class.
22622 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
22624 * Binding.cs : (.ctor)
22625 An obvious NRE fix for BindingTest.CtorNullTest().
22627 2006-05-23 Chris Toshok <toshok@ximian.com>
22629 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
22630 them between lines. This fixes some quirks editing cells in the
22633 2006-05-23 Jackson Harper <jackson@ximian.com>
22635 * TreeView.cs: Use begin/end update when doing expand/collapse all
22636 so that we don't get flicker on the scrollbar.
22638 2006-05-23 Jackson Harper <jackson@ximian.com>
22640 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
22641 treenode calculations to be independant of the painting code. To
22642 do this nodes track a visible order which is calculated by the
22644 - Call new methods for expanding/collapsing nodes. These methods
22645 use scrollwindow so we don't have to update everything below the
22647 * TreeView.cs: Refactored drawing and scrolling code. We don't
22648 need to update nodes when drawing anymore or calculate scrollbar
22650 - Added new methods for expanding/collapsing nodes. These methods
22651 use ScrollWindow so as to not have to redraw all the nodes below.
22652 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
22653 we add/remove nodes or sort.
22654 - Handle removing the selected and the top node properly.
22656 2006-05-23 Chris Toshok <toshok@ximian.com>
22658 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
22659 maybe this should actually happen in the datagrid code?
22660 (EndEdit): no need to invalidate anything, given that
22661 ReleaseHostedControl causes the datagrid to relayout, which
22662 invalidates everything anyway.
22664 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
22665 in SetCurrentCell).
22666 (set_SelectionBackColor): call InvalidateSelection instead of
22668 (set_SelectionForeColor): same.
22669 (BeginEdit): Flesh this out a bit.
22670 (CancelEditing): only do any of this if we're editing/adding.
22672 (OnMouseDown): there's no need to cancel editing here, it's done
22674 (SetCurrentCell): only invalidate the current row header if it's a
22675 different row than the new one.
22676 (ShiftSelection): fix this to work like MS does.
22677 (ResetSelection): factor out the invalidation of selected_rows to
22678 InvalidateSelection.
22679 (SetDataSource): cancel any editing that's going on.
22681 * DataGridColumnStyle.cs
22682 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
22683 call the non-interface version.
22685 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
22686 header rectangle with the clip rectangle so we don't redraw the
22687 entire header for just a small area. Gets rid of the last flicker
22688 when horizontally scrolling.
22689 (DataGridPaintRow): same.
22691 2006-05-23 Mike Kestner <mkestner@novell.com>
22693 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
22694 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
22695 poorly placed checkbox on the MS control. Fixes Alex's unfiled
22696 Critical bug report.
22698 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22700 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
22701 and this fixes #78493
22703 2006-05-23 Miguel de Icaza <miguel@novell.com>
22705 * Theme.cs (GetSizedResourceImage): Scale images if the proper
22708 * FileDialog.cs: Do not change the background for the side bar as
22709 it wont work nicely with the theme, and also reduces the artifacts
22710 in rendering the icons (which I want to fix too).
22712 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
22713 resources, not resgen resources.
22715 (PlatformDefaultHandler): Pull images using the new API.
22717 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22719 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
22720 a reference to the hwnd and will not remove it unless there are
22721 no pending exposures (fixes #78341)
22722 * XplatUI.cs: Improved debug
22724 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
22726 * MenuAPI.cs : don't handle OnClick event when it was not the left
22727 button. Fixed bug #78487.
22729 2006-05-23 Mike Kestner <mkestner@novell.com>
22731 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
22732 prefer submenus to the top menu for item lookup, to avoid popping down
22735 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
22737 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
22738 Graphics.FillRectangle as the visual results are really bad (even
22739 on win). We now draw perfect arrows (and perfect shadows when the
22740 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
22741 Pen.DashPattern to draw the dots of each line.
22743 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
22745 * FileDialog.cs: Update the filename combobox when navigating through
22746 the ListView with the cursor keys. Fixes part 7 of bug #78446.
22748 2006-05-22 Mike Kestner <mkestner@novell.com>
22750 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
22753 2006-05-22 Mike Kestner <mkestner@novell.com>
22755 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
22756 requests. Fix a misspelled parameter and a copy paste exception error
22759 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
22761 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
22762 to get the same width/height (5/13) on X11 as the default font has on
22763 win32. This means that our DefaultFont emSize is smaller than the
22764 the MS SWF equivalent (even thought the width/height stays the same)
22766 2006-05-20 Jackson Harper <jackson@ximian.com>
22769 * MdiWindowManager.cs:
22770 * InternalWindowManager.cs: Make sure to use the border width from
22773 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
22775 * PrintDialog.cs: Implements printer details
22777 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
22779 * FileDialog.cs: Added focus handling for PopupButtonPanel.
22780 Fixes part 1 and 2 of bug #78446
22782 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
22784 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
22785 instead of sticking to the first ever calculated value
22787 2006-05-19 Mike Kestner <mkestner@novell.com>
22789 * ComboBox.cs: fix mouse motion selection to use MousePosition and
22790 PointToClient, since Capture is set. Fixes #78344.
22792 2006-05-19 Mike Kestner <mkestner@novell.com>
22794 * ListView.cs: match MS behavior in Details view where items are not
22795 drawn if Columns.Count == 0.
22796 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
22797 Use a separate pen to draw the check, since changing the width affects
22798 the box as well. Fixes #78454.
22800 2006-05-18 Miguel de Icaza <miguel@novell.com>
22802 * ListView.cs: ArgumentOutOfRangeException, single versions of the
22803 exception should throw the name of the invalid argument.
22805 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
22806 there are no files listed.
22808 2006-05-18 Jackson Harper <jackson@ximian.com>
22810 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
22813 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22815 * Control.cs: Brought back our old UpdateZOrder method as a private
22816 function and switched our calls from UpdateZOrder to the new one.
22817 This fixes the Paint.Net canvas disappearing bug.
22819 2006-05-18 Jackson Harper <jackson@ximian.com>
22822 * ThemeWin32Classic.cs:
22823 * InternalWindowManager.cs: Move the drawing into the theme,
22824 expose everything the theme should need from the window manager.
22826 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22828 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
22829 from the call to NativeWindow to avoid walking up the parent chain
22830 further than needed (speeds up setting cursors and avoids setting
22831 the wrong cursor if a parent has another cursor defined)
22832 * Cursor.cs: When loading an icon as cursor, MS uses the center of
22833 the icon as hotspot, not what's contained as hotspot in the icon
22834 file. This fixes the perceived drawing offset seen with Paint.Net
22836 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22839 - Store the calculated rectangle in Hwnd object and use it when
22840 setting the client size
22841 - Force Toolwindows to always be type Dock, to ensure they're on top
22843 2006-05-18 Mike Kestner <mkestner@novell.com>
22845 * ComboBox.cs: first pass at ComboBox rework. Layout is more
22846 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
22847 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
22848 Substantial refactoring to remove confusing nested classes. Coding
22849 standard and Get+Set->property refactorings. Shift to index based
22850 highlighting in ComboListBox instead of constantly using IndexOf and
22851 Items[]. Add invalidations on resize for DropDownList to fix ugliness
22852 in FileDialog growth. Draw borders manually since Simple mode needs
22853 to look like two independent controls. Make listbox border
22854 conditional to DropDownStyle. Improved OwnerDraw support.
22856 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
22858 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
22859 Don't set the disposed graphics to null, so we can throw the "right"
22860 exception if the graphics is reused later (added a flag to avoid
22861 double disposing). Some behaviours are different under 2.0 and are
22862 filled under bug #78448.
22864 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22866 * Control.cs: When double-buffering is enabled, we need to reset
22867 our graphics context between paint calls. Otherwise, any
22868 transformations and other alterations on the context will
22869 become cumulative (#77734)
22871 2006-05-18 Mike Kestner <mkestner@novell.com>
22873 * ListView.cs: do focused item selection like MS on clicks.
22874 Rework focus handling for ItemControl so LostFocus invalidates as
22876 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
22877 the ListView ItemControl has focus.
22879 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
22881 * XplatUIX11.cs: If client_window ends up being width or height zero
22882 due to border settings, move it off window inside whole_window (#78433)
22884 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22886 * Mime.cs: Shrink the mime file cache correctly.
22888 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22890 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
22892 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22894 * XplatUIX11.cs (AddExpose): More sanity checks
22896 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22899 - AddExpose: Don't add expose ranges outside the size of our
22901 - Cast opacity values to Int32 to avoid crashes with certain
22903 - Added disabled code paths that protect against illegal cross-
22904 thread painting (Developers.exe)
22906 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22908 * ProgressBar.cs: Invalidate the control when it's resized
22909 since block size is based on control size. (#78388)
22911 2006-05-16 Miguel de Icaza <miguel@novell.com>
22913 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
22914 of setting the incoming argument to the "reset" value, we set the
22915 this.datamember to string.empty (before we were invalidating the
22920 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22922 * Form.cs: Only apply transparency settings after the form
22923 is created. (Fixes #77800)
22925 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22927 * ApplicationContext.cs: Grab the HandleDestroyed event so
22928 we know when to fire OnMainFormClosed
22930 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22932 * Application.cs: Introduced sub-class to allow tracking of
22933 threads and centralized triggering of the event mess for
22934 ThreadExit, AppExit, etc.. (#76156)
22936 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
22939 - Do not return a null icon index value for a mime subclass.
22940 Instead try the main mime type class too.
22941 - Seems that some newer distributions don't have a link to some
22942 gnome default icons anymore. So check the default gnome dir too.
22945 2006-05-16 Jackson Harper <jackson@ximian.com>
22947 * MdiClient.cs: Don't paint the parent background image if we have
22948 our own background image.
22950 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22953 - PerformLayout: Do not shrink space filled by DockStyle.Fill
22954 controls, all filled controls are supposed to overlap (#78080)
22955 - UpdateZOrder is supposed to update the control's z-order in the
22956 parent's z-order chain. Fixed to behave like that
22957 - BringToFront: Removed obsolete code
22958 - SendToBack: Simplyfied
22959 - SetChildIndex: Trigger layout calculations when Z-order changes
22960 since layout is done by z-order
22962 2006-05-16 Chris Toshok <toshok@ximian.com>
22964 [ fixes bug #78410 ]
22965 * DataGrid.cs (set_AlternatingBackColor): use
22966 grid_drawing.InvalidateCells instead of Refresh().
22967 (set_BackColor): call grid_drawing.InvalidateCells.
22968 (set_BackgroundColor): use Invalidate instead of Refresh.
22970 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
22971 invalidate the cell area.
22973 2006-05-15 Chris Toshok <toshok@ximian.com>
22975 [ fixes bug #78011 ]
22976 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
22977 on to DataGridPaintRow.
22978 (DataGridPaintRow): take a clip argument, and only draw the cells
22979 which intersect it. same with the not_usedarea.
22981 * Theme.cs (DataGridPaintRow) add @clip parameter.
22983 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
22984 XplatUI.ScrollWindow.
22985 (ScrollToRow): same.
22987 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
22988 with last column which was causing a gray swath to appear with the
22989 XplatUI.ScrollWindow code.
22991 2006-05-15 Chris Toshok <toshok@ximian.com>
22993 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
22994 use XplatUI.ScrollWindow.
22995 (VerticalScrollEvent): use XplatUI.ScrollWindow.
22997 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22999 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
23001 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23003 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
23004 file since there are no equivalent X11 cursors
23006 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23008 * MonthCalendar.cs : DateTimePicker should reflect selected date
23009 on mouse*up*, not mouse*down*. Fixed originally reported part of
23012 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23014 * TabControl.cs : When argument index is equal or more than tab
23015 count, just ignore. Fixed bug #78395.
23017 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23019 * Control.cs: Dispose all child controls when control is diposed (#78394)
23021 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23023 * ColorDialog.cs: Finally it is possible to select the color with
23026 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23028 * PrintDialog.cs: Fix typo
23030 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23032 * PrintDialog.cs: PrintDialog is not resizable
23033 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
23034 color. Made some ToolBar drawing methods protected virtual.
23036 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
23038 * PrintDialog.cs: Implementation of the PrintDialog
23040 2006-05-12 Chris Toshok <toshok@ximian.com>
23042 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
23043 thumb, instead use MoveThumb. This has the side effect of making
23044 most of the other thumb moving machinery use MoveThumb as well.
23045 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
23046 need to actually invalidate the rectangle where the new thumb will
23048 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
23049 We force an Update() after, so it's not as fast as it could be,
23050 but at least there's zero flicker and no droppings.
23051 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
23052 (UpdateThumbPos): add another argument (dirty), which says whether
23053 or not to calculate/add dirty regions which we later invalidate.
23054 For cases where we know we're going to use MoveThumb, we pass
23055 false for this. Otherwise, pass true.
23057 2006-05-12 Jackson Harper <jackson@ximian.com>
23059 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
23062 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
23064 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
23065 and GetClipRegion methods and UserClipWontExposeParent property.
23066 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
23067 overriding UserClipWontExposeParent property, setting to false, since
23068 Win32 handles the required expose messages to draw our clipped parent
23070 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
23071 PaintEventStart to set the user clip region if set.
23073 - Now internally tracking the Region for the control since we need to
23074 store it if the handle is not yet created and only set it when it
23075 becomes created. Before setting the region forced handle creation
23076 - Added code to draw the parents underneath a user-clipped region
23077 * Hwnd.cs: Added UserClip property
23079 2006-05-12 Chris Toshok <toshok@ximian.com>
23081 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
23082 (set_Maximum): same.
23083 (set_Minimum): same.
23084 (set_SmallChange): same.
23085 (OnMouseUpSB): remove the call to refresh when releasing the
23086 thumb. We shouldn't need it.
23088 2006-05-12 Miguel de Icaza <miguel@novell.com>
23090 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
23091 AutoSize set to None, we do not need to relayout everything, we
23092 just need to invalidate the current region.
23094 (Draw): Do not draw the entire ClientArea, just redraw the
23095 clip area being passed.
23097 * MdiClient.cs: Make MdiClient constructor with the Form argument
23100 2006-05-12 Jackson Harper <jackson@ximian.com>
23102 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
23103 parents background image, but strangely not their own.
23104 - (DrawStatusBarPanel): Take into account horizontal alignment
23105 when drawing the strings and icons.
23107 2006-05-12 Mike Kestner <mkestner@novell.com>
23109 * ListBox.cs: avoid invalidations for focus when the collection is
23112 2006-05-12 Chris Toshok <toshok@ximian.com>
23114 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
23115 invalidate the entire thumb area. Call InvalidateDirty which
23116 limits the redraw to the thumb itself and surrounding pixels.
23118 * XplatUIX11.cs (ScrollWindow): optimize copying.
23120 2006-05-12 Chris Toshok <toshok@ximian.com>
23122 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
23123 Figure out the positioning/layout in a single pass instead of
23124 multiple recursive invocations. Speeds up the initial display of
23125 the data grid. Also, make many things private that were
23126 originally public but unused outside this class.
23128 2006-05-11 Jackson Harper <jackson@ximian.com>
23130 * MdiClient.cs: Improved layout code.
23132 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
23134 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
23135 not SelectedObject.
23137 2006-05-11 Chris Toshok <toshok@ximian.com>
23139 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
23140 union of that will always be {0,0,width,height}.
23142 2006-05-11 Jackson Harper <jackson@ximian.com>
23144 * Form.cs: Match MS's DefaultSize for forms (they must have
23145 changed the size in sp2).
23147 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
23149 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
23151 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
23153 * TextControl.cs : Fixed bug #78109. This incorrect position
23154 comparison caused crash on automatic line split.
23155 * TextBoxBase.cs : reduce duplicate code.
23157 2006-05-10 Jackson Harper <jackson@ximian.com>
23159 * MdiClient.cs: Active form is only sent to the back when using
23160 the Next form functionality, when a form is clicked the current
23161 active shouldn't be sent to the back.
23162 - Layout the mdi windows when the container is first made visible.
23163 * Form.cs: Give the MdiClient a ref to the containing form when we
23166 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
23168 * LinkLabel.cs : link_font could be uninitialized, so populate one
23169 before actual use. Fixed bug #78340.
23171 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
23173 * XplatUIX11.cs : clipboard format native value is IntPtr.
23176 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23179 - Instead of showing context menus directly we send WM_CONTEXTMENU,
23180 which is passed up the parent chain by DefWndProc
23181 - We now handle WM_CONTEXTMENU to display any menu, or pass it
23182 to DefWndProc (#77956)
23183 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
23185 2006-05-10 Jackson Harper <jackson@ximian.com>
23187 * MdiClient.cs: We need to remove the controls from the mdi
23188 collection, when we close the window.
23189 * MdiWindowManager.cs: Special handling of closing mdi windows.
23190 * InternalWindowManager.cs: Make the close method virtual so the
23191 mdi window manager can handle it specially.
23193 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
23196 - Recalculate grid when the data source has changed
23197 - Matches styles provided by user from all data sources types
23198 * DataGridTableStyle.cs: For columns that provided by the user set the
23199 with the preferred value is there was unassigned.
23200 * CurrencyManager.cs: throw OnItemChanged event
23202 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23204 * PictureBox.cs: Don't animate until handle is created. Start animation
23205 when handle is created.
23207 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23209 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
23211 * XEventQueue.cs: We don't need to provide the extra info
23213 2006-05-10 Jackson Harper <jackson@ximian.com>
23215 * MdiClient.cs: If the mdi clients parent form has a background
23216 image set, we draw that background image for the mdi area's
23219 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23221 * TextBoxBase.cs: Set IBeam cursor (#78347)
23223 2006-05-10 Mike Kestner <mkestner@novell.com>
23225 * ToolBar.cs: fix some text padding issues with ButtonSize
23226 calculation. Update the default size to match MS documentation.
23227 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
23228 button size. Fixes #78296.
23230 2006-05-10 Mike Kestner <mkestner@novell.com>
23232 * ListBox.cs: use is_visible for scrollbar positioning in case the
23233 control isn't on screen yet. Fix off by one with Right vs Width
23234 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
23236 2006-05-10 Jackson Harper <jackson@ximian.com>
23238 * X11Dnd.cs: Drop to a control with another control on top of it.
23239 * ToolBar.cs: Work on a copy of the buttons list, so that it can
23240 be modified in click handlers. TODO: Look for similar problems in
23243 2006-05-09 Jackson Harper <jackson@ximian.com>
23245 * Form.cs: Window managers need the old window state when setting
23247 * InternalWindowManager.cs: Allow the base mdi window manager to
23248 handle more of the MDI only stuff (like maximize buttons).
23249 * MdiWindowManager.cs: Fix some snafus in changing the window
23250 state. Add all the menu functionality, for both popup and
23252 * MdiClient.cs: When a new form is selected the currently
23253 activated form is sent to the back, this matches MS.
23254 - Implement a new method to activate the next mdi child window.
23256 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23259 - Added new InternalCapture method to allow controls to prevent
23260 the capture behaviour on the click handlers
23261 - Switched to use InternalCapture
23263 - Using InternalCapture to prevent mouse captures from being released
23264 on mouse button release (Fixes #78100)
23265 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
23266 returns Form borders if a caption is present. (Fixes #78310)
23268 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23270 * TreeNode.cs: Changed serialization .ctor to not require every field
23271 to be present. (#78265)
23272 * OwnerDrawPropertyBag.cs: Added serialization .ctor
23274 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
23276 * MimeIcon.cs: for is faster than foreach for strings.
23278 2006-05-05 Mike Kestner <mkestner@novell.com>
23280 * CheckedListBox.cs: update check handling code to not use selected.
23281 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
23282 behavior for visual feedback, motion response, shift/ctrl handling,
23283 and properly deal with all 4 selection modes. Updates to bounds
23284 handling logic. Add scroll wheel support. [Fixes #77842]
23286 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
23289 - Moved adding of Implicit controls into .ctor. That way, subsequent
23290 creation of the controls will not cause them to think they are
23291 toplevel windows (fixes #78200 header problem)
23292 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
23293 - Switched visibility setting of header control to use internal field
23294 to avoid triggering handle creation
23295 - Now checking if handle is created before causing a refresh when items
23296 are added (This makes us now match handle creation time with MS)
23297 * Splitter.cs: Removed loading of private splitter cursor, switched to
23298 Cursors version now that that is loading the right ones
23299 * Cursors.cs: Load proper splitter cursors from resources
23300 * Cursor.cs: Added second method of loading resource cursors for the
23301 VS.Net users amongst us
23303 2006-05-05 Mike Kestner <mkestner@novell.com>
23305 * ListView.cs: give header_control a minimum size based on the
23308 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
23310 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
23311 window seems to do that with metacity, so set that type. (#78120)
23313 2006-05-05 Mike Kestner <mkestner@novell.com>
23315 * ListViewItem.cs: fix Details mode checkbox layout bug.
23316 * ThemeWin32Classic.cs: draw a ListView column header for unused space
23317 at the end of the header, if it exists. [Fixes for #78200]
23319 2006-05-04 Jackson Harper <jackson@ximian.com>
23321 * MdiClient.cs: Add a helper property to get the container form.
23322 * MdiWindowManager.cs: We have to make sure to use the menu origin
23323 when drawing the icons and buttons, this fixes maximized window
23324 icons/buttons on win32.
23325 * InternalWindowManager.cs: Reset the restore captions when a
23326 window goes from Maximized to Minimized and vice versa. Move the
23327 DrawMaximizedButtons into the MdiWindowManager source, tool
23328 windows can't be maximized. NOTE: This could use a little
23329 refactoring if time ever permits.
23331 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
23333 * TextBox.cs: Add MWFCategoryAttributes
23334 * TextBoxBase.cs: Add MWFCategoryAttributes
23335 * Form.cs: Add MWFCategoryAttributes
23337 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
23339 * Control.cs: Add MWFCategoryAttributes
23340 * ScrollableControl.cs: Add MWFCategoryAttributes
23342 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
23344 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
23345 Divider is true. Fix a little glitch in PropertyToolBar
23348 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
23351 - Dispose: Call base.Dispose, this causes the disposed event
23352 to be fired (and probably other, more important stuff)
23353 - SetVisibleCore: Set is_visible to true after creating the
23354 window so that the window still gets created invisible (if
23355 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
23356 to generate a WM_ACTIVE message
23357 * Form.cs: Call Dispose when we want to destroy the window, instead of
23358 just destroying the handle (Dispose will do that for us)
23360 - RootWindow also needs a queue, so we can properly process the
23361 property change events from RootWindow (like Activate)
23362 - Generatic synthetic WM_ACTIVE message when the active window is
23365 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23367 * LinkLabel.cs: Trigger a recalc of our label dimensions when
23370 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23372 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
23373 for determining width and height (image might not be assigned if
23374 we're drawing an imagelist)
23376 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23378 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
23379 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
23381 * Theme.cs: No longer returns hardcoded menu height, instead calls
23383 * Form.cs (OnLoad): Scaling happens before triggering Load events
23386 2006-05-01 Mike Kestner <mkestner@novell.com>
23388 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
23390 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
23392 * TextBoxBase.cs: Removed Fixme
23393 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
23395 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
23398 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
23399 the rectangle relative to the parent, considering borders. We
23400 don't really want that.
23401 - ScrollWindow: Fixed warning to be more understandable
23402 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
23403 scrollbars and scroll only the visible area
23404 * RichTextBox.cs: Removed debug output
23406 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23408 * NumericUpDown.cs (Text): Just use base
23409 * UpDownBase.cs: Ensure txtView is created before using it
23411 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23413 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
23414 casting to IntPtr to avoid 64bit overflow errors
23416 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23419 - AllowDrop: Don't force handle creation.
23420 - CreateHandle: Added call to tell driver if we're allowed to drop
23422 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23424 * FileDialog.cs: Remember the last directory not only for the
23425 current instance but also for new FileDialog instances.
23427 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23429 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
23430 broke sending async messages
23432 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23435 - ScrollWindow: Fixed method. We finally generate expose events again
23436 for scrolled areas. This was causing 'garbage' when scrolling
23437 textbox and other controls that used ScrollWindow
23438 - Switched from using the regular queue for paint events to the MS
23439 model of 'generating' paint events when the queue is empty.
23440 We use the new XQueueEvent.Paint subclass to store which windows
23442 - AddExpose now takes the x/y/width/height of the exposed area
23443 and inserts the window into the paint queue if not already there
23444 - InvalidateWholeWindow: Switched to use new AddExpose method
23445 - UpdateMessageQueue: Added which queue to monitor for paint events
23446 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
23447 the unlikely case nothing above handles it. We reset the expose
23448 pending states to get them off the queue.
23449 - GetMessage: Now pulls a paint event if no other events are in the
23451 - Invalidate: Switched to new AddExpose method
23452 - PeekMessage: Updated to understand pending paint events
23453 - UpdateWindow: Fixed logic bug. We were only updating if the window
23454 didn't need updating. Also switched to sending WM_PAINT directly,
23456 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
23457 and random access Remove(). The random access is needed to handle
23458 UpdateWindow() where a WM_PAINT is sent directly without accessing
23460 * ScrollBar.cs: Added Update() calls to cause immediate updates to
23461 allow for better feedback when scrolling. Scrollbars are small and
23462 the immediate update should make it 'feel' more responsive without
23463 slowing things down. ScrollBar still needs it's invaliate logic
23464 updated to not always invalidate the whole bar on certain changes.
23466 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23469 (BackColor): if the control does not support a transparent background,
23470 return the default backcolor when the parent backcolor is transparent.
23472 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
23474 * Application.cs: Updated to new StartLoop/GetMessage API
23475 * RichTextBox.cs: Provide some output on RTF parsing errors
23476 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
23477 new queue_id argument to GetMessage and PeekMessage to allow faster
23478 handling of per-thread queues in drivers.
23479 * Hwnd.cs: Added Queue tracking and property
23480 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
23481 * XEventQueue.cs: Added thread trackingA
23482 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
23484 - Implemented new per-thread queue
23485 - GetMessage: Fixed return/break behaviour on several cases. We were
23486 returning stale messages in some cases, instead of just processing
23489 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
23491 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
23493 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
23495 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
23496 fixed off-by-one comparisons between Width/Height and Right/Bottom.
23498 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
23500 * PropertyGridView.cs: Fix drop down width.
23502 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23504 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
23505 a mess in DrawToolBar, so I removed one of them.
23507 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23509 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
23510 needed (clip). Otherwise we get artifacts.
23512 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23514 * FixedSizeTextBox.cs: Added constructor to allow specifying which
23516 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
23517 and switched FixedSizeTextBox to only be fixed vertical (#78116)
23518 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
23519 if it matches the scale base font (avoids unneeded scaling)
23521 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
23523 * X11DesktopColors.cs: One gtk_init_check should be enough
23525 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23527 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
23530 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23533 - Generate OnTextChanged for Backspace even if we're only deleting
23534 the current selection
23535 - When setting the Text property, only select all text if the
23536 control does not have focus when it is being set. Otherwise
23537 just place the cursor at the beginning of the control
23539 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
23541 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
23542 Added a little helper to draw PropertyGrid ToolBar with a different
23543 border and a different BackColor.
23544 * PropertyGrid.cs: Some background parts didn't get painted with the
23545 correct background color. Added a class that helps us to draw the
23546 correct border for PropertyGridView and a class that helps us to
23547 draw ToolBars with a different backcolor
23548 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
23550 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
23552 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
23553 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
23555 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23557 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
23558 into the palette entries. Also, since we're working on a copy
23559 we needed to copy the palette back onto the bitmap.
23560 * Cursor.cs: Same fix as XplatUIWin32.cs.
23562 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23564 * ImageListStreamer.cs: Need to read the var (or we're off)
23566 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23568 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
23569 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
23570 TextBoxBase.cs: Unused var fixes
23571 * AxHost.cs: Small 2.0 fix
23572 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
23573 as it seems that is what at least Metacity expects. This will make
23574 icons show up on 64bit platforms. We still have some 64bit size
23575 issues, though, since the startup app window size still won't match.
23577 2006-04-25 Mike Kestner <mkestner@novell.com>
23579 * *.cs: cleanup newly reported exception var unused warnings.
23581 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23583 * ThemeWin32Classic.cs: Button image alignment now matches exactly
23586 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23588 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
23589 image. The image position is always the same, no matter if the
23590 button is pressed or not.
23592 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23594 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
23595 selection and set the correct filename for SaveFileDialog.
23596 Patch by Emery Conrad.
23598 2006-04-24 Mike Kestner <mkestner@novell.com>
23600 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
23601 check for item.X outside the ClientRect instead of item.Y. Fixes
23604 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23606 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
23607 trust that value blindly and do some sanity check. Fixes bug #77814.
23609 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23611 * ImageListStreamer.cs: save the mask as a 1bpp image.
23613 2006-04-21 Mike Kestner <mkestner@novell.com>
23615 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
23616 pass Checked and Indeterminate to the Theme Engine. Improve
23617 encapsulation with ListBox.
23618 * ListBox.cs: Keep a StringFormat instead of calculating it every item
23619 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
23620 nested types. Move all CheckState functionality to CheckedListBox.
23621 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
23622 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
23623 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
23624 single base list. Fix scrollbar sizing and placement to mirror MS.
23625 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
23627 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
23628 for CheckedListBox by using new DrawItemState info. Center the
23629 checkboxes on the items. Use new StringFormat property.
23631 2006-04-18 Jackson Harper <jackson@ximian.com>
23633 * Form.cs: MdiChildren don't do default locations the same way as
23634 regular forms. This prevents a crash when trying to position the
23637 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
23639 * PropertyGridTextBox.cs: Formatting, copyright
23640 * PropertiesTab.cs: Formatting
23641 * PropertyGrid.cs: Formatting
23642 * PropertyGridView.cs: Formatting, fix drop down, enabled double
23643 click toggling of values
23645 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
23647 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
23648 * Control.cs (.ctor): verify_thread_handle is static, don't reset
23649 every time a control is created
23650 * Application.cs: Removed obsolete EnableRTLMirroring method
23652 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
23654 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
23655 SelectedIndex to -1. Fixes bug #78121.
23657 2006-04-17 Jackson Harper <jackson@ximian.com>
23659 * Binding.cs: Handle null values for Current and BindingContext.
23660 This occurs when binding is a little delayed.
23661 * CurrencyManager.cs: return null for Current when there are no
23663 - Hookup to the listchanged event on the DataView and update
23664 bindings when the list is changed. This fixes late binding of
23667 2006-04-17 Jackson Harper <jackson@ximian.com>
23670 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
23673 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
23675 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
23677 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
23678 with the correct ButtonState
23680 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
23682 * XplatUIX11.cs: Improved distinguishing between window types to
23683 tell the WM a type closer to what the app wants (Fixes #78107)
23685 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23687 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
23690 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23692 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
23693 drawing code to reflect the size grip changes
23695 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23697 * ImageListStreamer.cs: fix handling of the mask that follows the main
23698 bitmap when deserializing and serialize it properly. The generated mask
23699 should better be a 1bpp image, but I'll do that later.
23701 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23703 * FileDialog.cs: Show something in the DirComboBox on *nix if the
23704 path doesn't fit into some of our Current.Places
23706 2006-04-13 Jackson Harper <jackson@ximian.com>
23708 * ComboBox.cs: Use borders instead of drawing our own decorations,
23709 try to obey correct rules for heights.
23712 * ThemeClearLooks.cs:
23713 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
23714 this is now handled by borders.
23715 - Remove unused DrawListBoxDecorationSize method.
23717 2006-04-13 Mike Kestner <mkestner@novell.com>
23719 * MenuAPI.cs: null guarding for the disbled click check fixes crash
23722 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23724 * ThemeWin32Classic.cs:
23725 - Fixed CPDrawStringDisabled
23726 - Corrected drawing of disabled menu items
23727 - Fixed drawing of disabled radio buttons (bug #78095)
23728 - Draw check in a disabled CheckBox with color ControlDark
23730 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23732 * Form.cs: Use the provided width when calculating the menu size;
23733 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
23734 and ClientSize.Width won't be updated yet
23735 * Application.cs: Use Visible instead of Show() to make form visible,
23736 this way we create the handle later and menusize is considered
23738 2006-04-12 Mike Kestner <mkestner@novell.com>
23740 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
23743 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23745 * TextBox.cs: Implemented context menu
23747 2006-04-12 Mike Kestner <mkestner@novell.com>
23749 * ListView.cs: implement box selection. fixes #77838.
23750 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
23752 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23754 * XplatUIX11.cs: Added setting of window type when transient window
23755 is created (metacity would move it otherwise)
23756 * X11Structs.cs: Added WINDOW_TYPE atoms
23757 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
23758 background (the control is Opaque but still wants transparent
23761 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23763 * Control.cs: Added OnPaintBackgroundInternal to allow controls
23764 that set Opaque but don't mean it (like all ButtonBase-derived
23765 controls) to still draw their background
23766 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
23769 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23771 * Control.cs (PaintControlBackground): Set the graphics object
23772 on our PaintEvent to null to prevent it from being disposed
23773 when the PaintEvent gets disposed
23775 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
23777 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
23778 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
23780 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23783 - Added transparency check to BackColor property. Transparent
23784 backgrounds are only allowed if the control styles permit it
23785 - Added recursive painting of parent control background and
23786 foreground if a control with a transparent backcolor is drawn
23787 (Thanks to Tim Ringenback for providing his 'hack' as a base
23788 for this patch) Fixes #77985 and #78026.
23789 - Added Opaque style check before calling OnPaintBackground, no
23790 need to draw the background if the control is opaque
23791 - Removed ControlAccessibleObject owner variable (inherited from
23792 base, no need to define again)
23793 - Added some documentation links explaining the drawing events
23796 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23798 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
23799 that the affected control is the located at the left border of our
23800 parent (Fixes #77936)
23802 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23804 * TextBoxBase.cs: When rendering disabled or readonly controls,
23805 draw the background with 'Control' instead of 'Window' color as
23806 long as the user hasn't specifically set a color
23808 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23810 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
23811 since that won't be updated if the user types text (only if it's
23812 programatically set)
23814 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23816 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
23817 layout changes do to app-triggered resizes will have the proper
23818 display rectangle for layout
23820 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
23822 * ThemeWin32Classic.cs:
23823 - Make use of the SystemBrushes and SystemPens wherever possible
23824 - Corrected some highlight colors
23825 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
23827 * Theme.cs: Added Empty field to CPColor struct
23829 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23831 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
23832 is displayed when calculating the display rectangle. Thanks to Mike
23833 for teaching me the err of my ways.
23835 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
23837 * ScrollableControl.cs:
23838 - Rewrote DisplayRectangle code, now returning the proper x/y coords
23839 (instead of 0,0) and we now return the real width/height instead of
23840 just the clientrectangle, adjusted for padding. The rectangle is
23841 now cached and created by the new CalculateDisplayRectangle method.
23842 - Created new CalculateDisplayRectange method, which basically does
23843 what get_DisplayRectangle() did originally, but now using the
23844 right edge instead of DisplayRectangle to determine the size of
23846 - get_Canvas(): Fixed it to properly calculate canvas for
23847 right/bottom controls which seem to be placed to the right/bottom
23848 of any controls that have a fixed location
23849 - Removed TODO that's taken care of
23850 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
23851 and SetDisplayRectLocation according to new MSDN2 docs
23852 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
23853 event when that is called, this is added for compatibility
23854 - ScrollControlIntoView(): Implemented.
23855 - Switched scrollbars to be implicit, they shouldn't be selectable
23856 * ContainerControl: Now that ScrollControlIntoView is implemented, we
23857 call it when the active control is set/changed
23858 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
23859 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
23860 implicit_control variable (used for native Win32 message generation)
23861 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
23862 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
23863 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
23864 * XplatUIStructs.cs: Added ScrollBarCommands enum
23866 2006-04-10 Jackson Harper <jackson@ximian.com>
23869 * CheckedListBox.cs:
23876 * PrintPreviewControl.cs:
23882 * UpDownBase.cs: Fixup base event overrides.
23884 2006-04-06 Mike Kestner <mkestner@novell.com>
23886 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
23887 all user-initiated value changes to min <= value <= max-thumbsz+1.
23888 (set_Value): check for vert/horiz when calculating new thumb position.
23889 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
23891 (OnMouseMoveSB): refactor the thumb dragging code and refine
23892 invalidation logic to reduce flicker.
23893 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
23894 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
23895 (UpdateThumbPosition): small code readability cleanup
23897 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
23899 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
23902 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23904 * ThemeNice.cs: Use a better graphics effect when a button is pressed
23906 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23908 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
23909 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
23910 This dramatically reduces the number of Pen.Dispose calls.
23911 Where possible call ResPool methods only once instead of calling it
23912 over and over again (for example for the same color).
23914 2006-04-06 Mike Kestner <mkestner@novell.com>
23916 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
23917 Also remove an unused private field on the collection. Fixes #77972.
23919 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23921 * ThemeNice.cs: Added ToolBar drawing code
23923 2006-04-06 Mike Kestner <mkestner@novell.com>
23925 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
23926 I'm assuming that means we need to look up the toplevel for the
23927 provided control. Fixes the crash trace in #77911 but exposes another
23928 crash in some strange reflection usage in NDocGui.
23930 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23932 * ThemeNice.cs: Gave it a little silver touch and added Images
23934 * FontDialog.cs: FontDialog is not resizable
23935 * FileDialg.cs: Added SizeGripStyle.Show
23937 2006-04-05 Jackson Harper <jackson@ximian.com>
23939 * KeyboardLayouts.cs: Remove warning.
23941 2006-04-05 Jackson Harper <jackson@ximian.com>
23943 * Control.cs: Enable OnPaintInternal so we can use it for drawing
23944 all of our controls instead of Paint +=.
23959 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
23960 use OnPaintInternal. Remove Width/Height and Visible checks in
23961 paint handler, this is done at a higher level now.
23962 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
23963 * PaintEventArgs.cs: Add a handled flag so controls that don't
23964 want anymore painting after OnPaintInternal can make sure OnPaint
23967 2006-04-05 Mike Kestner <mkestner@novell.com>
23969 * Form.cs: fix the menu WndProc hacks to respect the native enabled
23970 state of the form, so that we don't process events when Modal dialogs
23971 are up. Fixes #77922.
23973 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
23975 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
23978 2006-04-05 Mike Kestner <mkestner@novell.com>
23980 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
23982 2006-04-05 Mike Kestner <mkestner@novell.com>
23984 * ListView.cs (HeaderMouseMove): null guarding for the over column
23985 when setting up the drag_to_index. Fixes #78015.
23987 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23989 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
23990 in the taskbar. Transient windows seem to accomplish that.
23992 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23995 - Re-enabled CreateParams.X/Y code for FormStartPosition
23996 - Added code for manual placement when creating the Control
23997 - Incomplete patch to treat MDI forms differently when
23998 setting the ClientSizeCore. (Still need to figure out handling
24001 - When we're explicitly setting the X/Y position of a non-Child
24002 window, let the WM know. Metacity really wants this.
24004 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24006 * ThemeNice.cs: Added CPDrawButton
24008 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24010 * ThemeNice.cs: Changed the color for focused buttons and activated
24011 the arrows for small scroll buttons.
24013 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24015 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
24016 anymore. Changed some method modifiers to protected (virtual)
24017 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
24019 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
24020 Updated drawing of menus, buttons and progressbars; added
24023 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24025 * ImageListStreamer.cs: implemented serialization/deserialization
24028 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
24030 * ThemeWin32Classic.cs:
24031 - Removed all the DrawFrameControl stuff; CPDrawButton,
24032 CPDrawCheckBox and CPDrawRadioButton are now handled directly
24034 - Updated and corrected the drawing code of CPDrawButton,
24035 CPDrawCheckBox and CPDrawRadioButton to better match ms
24036 - Updated theme checkbox and radiobutton code to use the CP*
24039 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24041 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
24044 2006-03-31 Jackson Harper <jackson@ximian.com>
24046 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
24048 * UpDownBase.cs: Don't CreateGraphics manually, use a
24049 Refresh. Ideally we would invalidate the correct areas here.
24051 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24054 - We now track the mapping state of windows. If a window (or
24055 one of it's parents) is not mapped we no longer permit
24056 WM_PAINT messages to be generated since we'd otherwise get
24057 lots of BadMatch X errors. Jackson did all the work figuring
24059 - Destroying the caret if the window it's contained in is
24060 destroyed. Can't use regular DestroyCaret method since it
24061 might fall into a drawing function (trying to remove the
24062 caret) and with that generate new BadMatch errors. Again,
24063 Jackson tracked this down.
24064 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
24065 make sure we send the messages to all windows. (The old code
24066 would send the WM_DESTROY to the window, and then all child
24067 windows would be 'gone' because the WM_DESTROY handle lookup
24068 would no longer find the destroyed window)
24069 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
24070 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
24072 2006-03-31 Jackson Harper <jackson@ximian.com>
24074 * ScrollableControl.cs: Dont recalc if we are not visible.
24076 2006-03-31 Mike Kestner <mkestner@novell.com>
24078 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
24079 the visibility branch.
24081 2006-03-31 Jackson Harper <jackson@ximian.com>
24083 * ScrollBar.cs: Cap values when incrementing/decrementing.
24085 2006-03-31 Mike Kestner <mkestner@novell.com>
24087 * MenuAPI.cs: setup menu.tracker for popup/context menus.
24088 * ToolTip.cs: guard against timer expirations with no active control.
24089 Not sure why it happened.
24091 2006-03-31 Mike Kestner <mkestner@novell.com>
24093 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
24095 * ToolTip.cs: Position the tooltip based on where the cursor is at
24096 popup time, not at MouseEnter time. Add a Down state so that we don't
24097 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
24098 positioning offset. Lookup DisplaySize at positioning time, since it
24099 can theoretically change during invocation.
24100 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
24101 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
24103 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24105 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
24106 Fixes behaviour when the Text property of the box is String.Empty
24108 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24110 * XplatUIX11.cs: Only send mouseleave for our client windows, not
24111 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
24114 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24116 * FileDialog.cs: Visual enhancement for the popup buttons in
24119 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24121 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
24124 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
24126 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
24127 highlighted menu items to match ms
24129 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
24131 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
24133 2006-03-30 Mike Kestner <mkestner@novell.com>
24135 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
24136 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
24137 go active to account for HotLight to Selected transition.
24138 * MenuItem.cs: add internal Selected prop. Fill out the Status
24139 property by calculating it from item info. Add HotLight,
24140 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
24142 2006-03-30 Mike Kestner <mkestner@novell.com>
24144 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
24146 2006-03-29 Jackson Harper <jackson@ximian.com>
24148 * Form.cs: Implement TODO.
24150 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
24152 * PrintPreviewDialog.cs: Implemented missing methods and events; still
24153 missing proper dialog setup in the constructor
24155 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
24157 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
24159 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
24160 - Fixed ResetBindings and removed TODO
24161 - Added check for cross-thread calls to get_Handle()
24162 - Added Marshaller attribute for set_Font to satisfy class status
24163 * FontDialog.cs: Removed TODOs that seemed implemented
24164 * UpDownBase.cs: Removed unneeded TODO and Fixme
24165 * MessageBox.cs: Implemented support for Default button and removed TODO
24166 * FileDialog.cs: Removed obsolete TODO
24167 * DomainUpDown.cs: Removed obsolete TODO
24168 * ButtonBase.cs: Removed obsolete TODO
24169 * XplatUIWin32.cs: Removed obsolete TODO
24171 - Removed obsolete TODO
24172 - Calling CheckAcceptButton when the acceptbutton is changed to allow
24173 internal status updates
24174 - Making sure the active control is selected when the control is created
24175 * CurrencyManager.cs: Removed obsolete TODO
24177 2006-03-29 Mike Kestner <mkestner@novell.com>
24179 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
24180 of PrintPreviewDialog and RichTextBox.
24182 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
24184 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
24185 DarkDark, Light and LightLight colors for a specific color
24186 * ThemeWin32Classic.cs:
24187 - Use Button drawing code to draw RadioButtons and CheckBoxes with
24188 Appearance = Button
24189 - Make use of the new ResPool helper CPColor
24190 - Draw ProgressBar and StatusBar with correct 3D borders
24192 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
24194 * ColorDialog.cs: Return selected color. Fixes bug #77940.
24196 2006-03-28 Mike Kestner <mkestner@novell.com>
24198 * ListView.cs: fix Icon layout to plan for scrollbar widths when
24199 calculating col/row counts.
24201 2006-03-28 Mike Kestner <mkestner@novell.com>
24207 switch to explicit interface method implementation for some methods
24208 corcompare identifies as inconsistent with MS.
24210 2006-03-28 Mike Kestner <mkestner@novell.com>
24214 add a few missing methods from the class status output.
24216 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
24218 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
24221 2006-03-28 Mike Kestner <mkestner@novell.com>
24223 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
24225 2006-03-27 Mike Kestner <mkestner@novell.com>
24227 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
24228 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
24230 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
24232 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
24234 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24236 * ThemeWin32Classic.cs:
24237 - GroupBox: Inserted a little gap between the text and the lines
24239 - Made the code in CPDrawBorder3D more readable
24240 - Corrected the drawing location of the up and down arrows in
24243 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24245 * ControlPaint.cs: Corrected line widths in DrawBorder for
24246 ButtonBorderStyle Inset and Outset
24248 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24250 * ThemeWin32Classic.cs:
24251 - Rewrote the totally broken CPDrawBorder3D method. That was
24252 one of the main problems for the terrific ThemeWin32Classic
24254 - Updated and corrected Button drawing
24255 - Correct the dimensions of the SizeGrip to match ms ones
24256 - Removed a small drawing glitch in DrawComboBoxEditDecorations
24257 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
24258 Border3DStyle.Sunken to match ms.
24260 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24262 * ThemeWin32Classic.cs: First small part of the "de-uglify
24263 ThemeWin32Classic" effort, SizeGrip
24265 2006-03-24 Jackson Harper <jackson@ximian.com>
24267 * XplatUIX11.cs: Give a max idle time of one second, this matches
24268 MS and forces an Idle event every second when there are no other
24269 events in the queue.
24271 2006-03-24 Mike Kestner <mkestner@novell.com>
24273 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
24274 * ListView.Item.cs: fix layout issues with null image lists and images
24275 smaller than checkbox size.
24276 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
24277 mode like MS does. It's weird, but consistent. ;-)
24280 2006-03-24 Mike Kestner <mkestner@novell.com>
24282 * ListView.cs: Scroll wheel support for the item control. Fixes
24285 2006-03-23 Jackson Harper <jackson@ximian.com>
24287 * ScrollableControl.cs: Special case negative sized areas, not
24289 * MonthCalendar.cs: Save the rect of the clicked date so we can
24290 use it for invalidation.
24291 - Try to cut down on the number of invalidates
24292 - Invalidate the rect the mouse is over and was over when moving
24293 the mouse, so we get the focus box following the cursor.
24295 2006-03-23 Mike Kestner <mkestner@novell.com>
24297 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
24298 focus rectangle drawing. Fixes #77835.
24300 2006-03-23 Mike Kestner <mkestner@novell.com>
24302 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
24303 the if and else if and reverting back to the original == check on the
24306 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
24308 * FontDialog.cs: Update the example panel if the selected index of
24309 the fontListBox changes.
24311 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
24313 * FileDialog.cs: Make FileDialog remember which directory it was in
24314 last in the same execution.
24316 2006-03-22 Mike Kestner <mkestner@novell.com>
24318 * FileDialog.cs: make the DropDownMenu on the toolbar display
24319 RadioChecks since they are mutually exclusive and that's what MS does.
24321 2006-03-22 Mike Kestner <mkestner@novell.com>
24323 * Theme.cs: add Color param to CPDrawMenuGlyph.
24324 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
24325 checks and radio marks and arrows are visible on highlighted items.
24326 * ControlPaint.cs: update to use new Theme signature.
24328 2006-03-22 Mike Kestner <mkestner@novell.com>
24330 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
24331 is active. Fixes #77870.
24333 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
24335 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
24336 to be focused/selected after startup
24338 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
24341 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
24342 CustomColors and ShowHelp properties
24343 - Some internal rewrites to get better results when using the
24346 2006-03-22 Mike Kestner <mkestner@novell.com>
24348 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
24349 HoverSelection. Fixes #77836.
24351 2006-03-22 Mike Kestner <mkestner@novell.com>
24353 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
24354 ToggleButtons. (De)Sensitize the Back button around a stack count of
24355 1, not 0. Update ButtonSize based on a pixel count of the win32
24356 control. Adjust the toolbar size/location for new button size.
24358 2006-03-22 Jackson Harper <jackson@ximian.com>
24360 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
24362 * ScrollBar.cs: When doing increments and decrements we need to
24363 set the Value property so that ValueChanged gets raised. A
24364 possible optimization here would be to make an internal SetValue
24365 that doesn't invalidate immediately.
24366 * ToolTip.cs: Tooltips get added to their container (when
24367 supplied) so they get disposed when the container is disposed.
24368 - Don't create tooltips for String.Empty. This prevents all these
24369 little 2-3 pixel windows from showing up when running nunit-gui
24370 and driving me mad.
24371 * Form.cs: Don't set topmost when setting the owner if the handles
24372 haven't been created yet. The topmost set will happen when the
24373 handles are created.
24375 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
24378 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
24379 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
24380 visible (to allow them to recalculate their sizes)
24382 2006-03-21 Mike Kestner <mkestner@novell.com>
24384 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
24385 methods. Removed a ton of redundant code. Still not really happy with
24386 the border rendering, but I think that's mainly because of the
24387 ControlDarkDark being black instead of a dark grey. Depending on how
24388 close we want to be, we might want to revisit those color choices.
24389 Among the new features added during the refactor were DropDownArrow
24390 pressed rendering, Disabled image rendering. Proper flat appearance
24391 boundary rendering. Removed the Divider and Wrapping dividers since I
24392 can't figure out any combination of themes and conditions to make the
24393 MS control draw a horizontal line on a toolbar despite what the
24394 Divider property docs indicate.
24395 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
24396 conditions and incorrect layout. Updated to coding standard.
24397 * ToolBarButton.cs: refactored layout and positioning code from
24398 ToolBar to here. Invalidate wherever possible instead of forcing
24399 redraws of the whole toolbar.
24400 (Known remaining issues: explicit ButtonSize smaller than provided
24403 2006-03-21 Mike Kestner <mkestner@novell.com>
24405 * ContextMenu.cs (Show): use the position parameter instead of just
24406 showing at the MousePosition.
24408 2006-03-21 Jackson Harper <jackson@ximian.com>
24410 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
24411 control handle this.
24412 * TreeNodeCollection.cs: If we are clearing the root node we need
24413 to reset top_node so calcs can still happen.
24414 * ThemeWin32Classic.cs: This is a Flags so we need to check
24417 2006-03-21 Jackson Harper <jackson@ximian.com>
24419 * DataGrid.cs: Create columns when the binding context has been
24421 * X11Structs.cs: Keysyms are uints.
24422 - Add size to fix build.
24424 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
24426 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24428 - Added ResetMouseHover method to allow controls to retrigger
24429 hovering if they need it more than once
24430 - Implemented MouseHoverTime and MouseHoverSize properties
24431 * Timer.cs: Start() must reset the interval
24432 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
24435 2006-03-21 Jackson Harper <jackson@ximian.com>
24437 * X11Keyboard.cs: improved layout detection. Move the nonchar
24438 tables into this file.
24439 * KeyboardLayouts.cs: Move the tables into resource files.
24441 2006-03-21 Mike Kestner <mkestner@novell.com>
24443 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
24445 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
24447 * Mime.cs: Various speed optimizations. Looking up mime types
24448 is now 2 times faster than before
24450 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
24452 * CreateParams.cs: Added internal menu field
24454 - Switched call order for UpdateBounds; now we always call
24455 the one that also takes ClientSize, and we're calculating the
24456 client size via driver method in the others. The previous
24457 method of tracking client size by difference wasn't working
24458 for forms where even the starting client size wouldn't match
24459 the overall form size (due to borders) (Part of fix for #77729)
24460 - CreateParams(): Do not use parent.Handle unless the handle is
24461 already created. Causes havoc with Nexxia and throws off our
24462 creation of controls
24464 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
24465 - Switched handling of ConfigureNotify over to new PerformNCCalc
24466 method (consolidates code)
24467 - Changed RequestNCRecalc to use new PerformNCCalc method
24468 - Added calls to RequestNCRecalc when menus and borders are changed
24469 to allow app to set NC size. (Part of fix for #77729) This matches
24470 when MS send a WM_NCRECALC on Win32 windows.
24471 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
24472 (Part of fix for #77729). This matches what MS does, they also
24473 send that message when the form is made visible.
24474 - XException.GetMessage: Improved usability of X errors by including
24475 a translation of the window into Hwnd and Control class
24476 - Improved debug info for window creation, reparenting and destruction
24477 - Created helper method WindowIsMapped() [Currently not used]
24478 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
24480 - CreateParams: Now setting our menu on the new internal menu field
24481 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
24482 avoid calculating the same property twice
24484 - Improved usability of ToString() for debugging purposes
24485 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
24486 determine the height of the menu, instead of just the font. This
24487 required to also create a graphics context and to keep a bmp
24488 around (for performance reasons)
24490 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
24492 * MenuAPI.cs: Added OnMouseUp method
24494 - Now remembering the requested client size, avoids size errors
24495 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
24496 instead of base if the menu is active. This is required due to
24497 control now capturing and releasing on down/up and it would
24498 prematurely release our menu capture
24500 2006-03-17 Jackson Harper <jackson@ximian.com>
24502 * KeyboardLayouts.cs: Add the czech layouts.
24504 2006-03-16 Jackson Harper <jackson@ximian.com>
24506 * Control.cs: Use the viewport space when sizing not the controls
24507 client size, so things like ScrollableControl that effect the
24508 viewport size (when scrollbars are added) are computed correctly.
24509 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
24511 - Handle creating BindingManagers for null data sources.
24512 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
24513 source, otherwise when rows are added they are added to the 'fake'
24514 datasource and we will crash when trying to set the position in
24516 - Use Implicit scrollbars on the datagrid so they arent
24519 2006-03-16 Jackson Harper <jackson@ximian.com>
24522 * InternalWindowManager.cs:
24523 * MdiWindowManager.cs:
24524 * X11Keyboard.cs: I really want Mike to love me again (fix
24525 compiler warnings).
24527 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
24530 - OnMouseDown: Switch to editing mode when clicking on the cell
24531 even if we're clicking on the cell that's currently
24533 - ProcessGridKey: Left/Right now wrap like MS.Net does
24534 - ProcessGridKey: Tab now knows to add a new row when tab is
24535 pressed in the cell of the last column of the
24537 - ProcessGridKey: Enter now adds another row if pressed in the last
24538 row and selectes the new row, same column cell
24539 - ProcessGridKey: Home/End navigate columns, not rows, like
24540 originally implemented
24541 - Broke ProcessKeyPreview code out into an extra Internal method
24542 so it can be called from the edit code
24543 * DataGridTextBox.cs (ProcessKeyMessage):
24544 - Switched to accept Tab keypresses
24545 - Added F2 handling to allow jumping to the end of the edited cell
24546 - Added logic to allow moving caret left/right inside edited cell
24547 and making the edited cell jump when the caret hits cell borders
24548 - Tab and Enter are now passed to the datagrid after being handled
24550 - Removed capture code now that Control handles it
24551 - set_SelectionStart now ensures caret is visible
24553 2006-03-16 Jackson Harper <jackson@ximian.com>
24555 * TrackBar.cs: Debackwards the increment/decrement for handling
24556 mouse clicks on the bar with vertical trackbars.
24557 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
24558 bottom to match MS.
24560 2006-03-16 Mike Kestner <mkestner@novell.com>
24562 * ListView.cs: make shift/ctrl keyboard and mouse selection
24563 consistent with the MS control. Fix a bug in
24564 SelectedListViewItemCollection.Clear that was pissing me off for the
24565 better part of a day because the collection was being altered
24566 underneath us as we walked the list.
24568 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
24570 * Control.cs: Not sure how we could miss this so long, but it seems
24571 that MS.Net has Capture set all the way from before calling
24572 OnMouseDown through sending the mouse events until after
24573 OnMouseUp. This will fix DataGrid's selection being set to end
24574 at the location of the MouseUp.
24576 2006-03-15 Jackson Harper <jackson@ximian.com>
24578 * BindingContext.cs: Check the binding after its added so that it
24579 can initialize the binding managers and hookup to events.
24580 * Binding.cs: Data members seem to sometimes include rows/cols in
24581 the format Row.Column we now take this into account.
24582 - Hookup to the position changed event so we can update the
24583 control when the position has changed in the data set.
24584 * CurrencyManager.cs: Take into account the row/col naming
24585 convention when creating dataset tables.
24586 * BindingContext.cs: Using a newer better way of storing
24587 datasource/datamember pairs. Hopefully this better matches MS for
24588 looking up binding managers.
24591 2006-03-15 Jackson Harper <jackson@ximian.com>
24593 * BindingContext.cs: The currency manager needs the data member
24594 name, if the member is a data set we use the name to find the
24596 * CurrencyManager.cs: When creating the list prefer an IList over
24598 - Attempt to create a DataTable from a DataSet (TODO: might need
24599 some better error checking here, although MS doesn't seem to have much)
24600 - If we have a DataTable create a view and use it as our list.
24602 2006-03-15 Mike Kestner <mkestner@novell.com>
24604 * ListView.cs: keep a matrix of the icon mode layout to facilitate
24605 keyboard navigation. Support Up/Down/Left/Right selection correctly
24606 for all 4 View modes.
24607 * ListViewItem.cs: add internal row/col fields for icon layouts.
24609 2006-03-15 Jackson Harper <jackson@ximian.com>
24611 * TabControl.cs: Redraw the tabs when we resize so their newly
24612 calculated sizes are drawn on screen.
24613 * X11Keyboard.cs: Begginnings of XIM support. We also now support
24614 composite characters.
24615 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
24616 - filter events so that composite characters can be created
24618 * X11Structs.cs: Add XIMProperties enum.
24620 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24622 * Control.cs (BringToFront, SendToBack): Don't use window or handle
24623 unless it's created
24625 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24627 * Control.cs (PerformLayout): We don't need to consider visiblity
24628 for anchoring, only for docking. This fixes 'whacky' alignment
24629 in listbox and other controls that use implicit scrollbars after
24630 the previous PerformLayout patch
24631 * ListBox.cs: Switched to use implicit scrollbars
24633 2006-03-14 Mike Kestner <mkestner@novell.com>
24637 - chain up the "new event" overrides to base and use
24638 OnEvent to raise them. Part of fix for bug #76509.
24640 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
24642 * FileDialog.cs: Do not select an item in the parent directory
24645 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24647 * Control.cs (PerformLayout): It would seem that we considered
24648 invisible windows for our layout. Not quite the right thing
24649 to do. Now we don't any longer, thereby fixing bug #76889.
24651 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24653 * Control.cs (CanFocus): I goofed. A control can have focus
24654 even though it's not selectable. Made it match MS docs.
24656 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24658 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
24659 center by default (fixes #76895)
24660 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
24661 all uses of Border3DSides.All with the explicit ORd together
24662 Left|Right|Top|Bottom because I assume that nobody was aware
24663 that All also implies a center fill. Most places I checked had
24664 a fill right above.
24665 * ProgressBarStyle.cs: Added
24667 2006-03-13 Mike Kestner <mkestner@novell.com>
24669 * ListView.cs: fix breakage in drag shadow header positioning
24670 from Peter's csc compilation fix.
24672 2006-03-13 Mike Kestner <mkestner@novell.com>
24674 * ListView.cs: fix NRE produced by backspacing twice in a focused
24677 2006-03-13 Mike Kestner <mkestner@novell.com>
24679 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
24681 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24683 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
24685 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
24686 the allowed size before making programmatic size changes
24688 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24690 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
24691 set, metacity is broken and will still use the emty sizes in
24692 the struct. (Fix for #77089)
24694 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24696 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
24697 WindowExStyles and marked both enums as Flags
24698 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
24699 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
24700 to match WindowStyles split
24702 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
24703 - Updated to match WindowStyles split
24705 - Fixed FosterParent creation, was using ExStyle on the Style field
24706 (This should help with Popup focus issues)
24707 - Updated to match WindowStyles split
24709 2006-03-13 Jackson Harper <jackson@ximian.com>
24711 * MdiWindowManager.cs: Use the system menu height. Fixes some
24712 strange sizing issues.
24714 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24716 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
24718 - Scroll to caret after inserting text (#77672)
24719 - Make scroll range one pixel higher, fixes off-by-one error (and
24720 makes underlines visible on the last line)
24722 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24724 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
24725 the keyboard state from being stuck with keys in 'pressed' state when
24726 focus is switched away via keyboard
24727 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
24728 reset the keyboard if no X11 KeyUp events are expected to come
24729 * X11Structs.cs: Switched type of Visible to bool to match driver
24731 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24734 - Switched caret to be just 1 pixel wide, matches MS and looks less
24736 - Moved caret display 1 pixel down from the top of the control
24738 - InsertCharAtCharet: Update the selection start if moving the caret
24739 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
24740 - No longer always creating the caret when the caret methods are
24741 called. Only the actual ShowCaret/HideCaret will do that now
24742 - Only setting caret visible if the owner control has focus
24743 - UpdateView: Added invalidation-shortcut logic for center and right
24744 aligned text. Previously we'd update all according to the left
24745 logic which caused drawing errors. Also fixed height of invalidated
24746 areas, now properly invalidating the whole area (was off-by-one)
24747 - owner_HandleCreated: Always generate the document when the
24748 handle is created; this ensures that
24750 - Fixed situation where caret would disappear under the right
24751 window border, also improved scrolling behaviour on left-
24753 - Fixed right-aligned textboxes to have a border to the
24754 right instead of the caret being under the right border
24756 - Switched from 'nested' to simple visible/not visible tracking
24757 for caret (part of fix for #77671)
24758 - No longer passing through translated FocusIn/FocusOut messages
24759 since we were notifying too often and the wrong windows. Instead
24760 we just notify our focussed window of receiving or loosing focus
24761 * XplatUIWin32.cs: Switched from 'nested' show/hide
24762 counting for caret to simple visible yes/no behaviour (part of
24765 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24767 * Mime.cs: Remove debug code...
24769 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24771 * MimeGenerated.cs: Removed
24772 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
24773 and subclasses) from /usr/(local/)share/mime and
24774 $HOME/.local/share/mime.
24776 2006-03-10 Jackson Harper <jackson@ximian.com>
24778 * MdiWindowManager.cs: Recalc the NC area when a window is
24779 maximized/restored so that the menu area is drawn on forms that
24782 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24784 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24785 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
24786 us to force a WM_NCCALCRESIZE message being sent. This is needed
24787 for MDI maximizing.
24789 2006-03-10 Jackson Harper <jackson@ximian.com>
24791 * Form.cs: We need to use the ActiveMenu when calculating menu
24793 - Fix nullref when the window manager hasn't been created yet.
24794 * Control.cs: Fix nullref when we try to bring a control to the
24795 front that has no parent.
24796 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
24798 - Add a dummy item to the maximized menu so it always has the
24799 correct height. Otherwise when there are no menus we don't get our
24803 2006-03-10 Jackson Harper <jackson@ximian.com>
24805 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
24807 * Form.cs: Make the window_state internal so the window managers
24809 - When an MDI child is maximized let its window manager create the
24810 main menu (so it can add its icon).
24811 - Notify the window managers of state changes
24812 - Let the window manager paint its buttons and handle button
24813 clicks on the menu when it is maximized.
24814 * InternalWindowManager.cs: Move the prev_bounds into the mdi
24815 window manager, since tool windows don't use it, only mdi windows.
24816 - Tell the main form that we don't want it to handle NCPAINT
24817 itself to avoid extra painting.
24818 - Handle clicks on a maximized windows menu.
24819 - Handle window state changes
24820 - Handle minimize/maximize clicks correctly by setting the window state.
24821 * MdiWindowManager.cs: Add an icon menu that (the menu you get
24822 when clicking on the forms icon).
24823 - New method to create a forms maximized menu. This is its normal
24825 - Handle window state changes.
24826 - Handle sizing of maximized windows. Maximized windows are just
24827 drawn bigger then the parent visible area. All controls are still
24828 there, they are just outside the visible area (this matches windows).
24829 * MdiClient.cs: No scrollbars when a child window is maximized.
24830 - Let the children windows figure out how big they should be when
24831 sizing maximized windows.
24832 - Implement a version of ArrangeIconicWindows somewhat similar to
24833 Windows version. There are some little differences, but I don't
24834 think any app will rely on the layout of minimized mdi windows.
24836 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24838 * Padding.cs: Several fixes to allow compiling with csc 2.0
24840 2006-03-09 Jackson Harper <jackson@ximian.com>
24843 * MenuItem.cs: Cheap hack so we can add items to the list without
24844 the events being raised. This allows adding mdi items during
24845 drawing. TODO: Should probably find a better time to add the items.
24847 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24849 * ThemeWin32Classic.cs:
24850 - CheckBox_DrawText: Added logic to not wrap if not enough space
24851 is available (Fix for bug #77727)
24852 - RadioButton_DrawText: Added logic not to wrap if not enough
24853 space is available (Fix for bug #77727). Also removed some
24854 duplicate code, DrawString always drawing the regular text
24855 before hitting the if statement.
24857 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24859 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
24861 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24863 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
24864 * ContainerControl.cs: Partial implementation of some 2.0 scaling
24865 methods. Moved the new 2.0 properties into alphabetical order with
24866 other properties and added MonoTODO tags
24868 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24870 * AutoScaleMode.cs: Added. Fix build.
24872 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24874 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24875 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
24876 and was requiring premature handle creation for calls from above
24877 * Form.cs, Control.cs: Removed handle arguments from calls to
24878 CalculateClientRect()
24880 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24882 * ListView.cs (HeaderMouseMove): Fix csc compilation.
24883 drag_column.column_rect is MarshalByRef and can't be used that way
24885 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24887 * AxHost.cs: Added deserialization constructor for
24888 AxHost+State (fixes 77743)
24890 2006-03-09 Mike Kestner <mkestner@novell.com>
24893 - Added column drag reordering for details view.
24894 - fixed behavior when mouse is dragged off column and
24895 AllowColumnReorder is false.
24896 * ColumnHeader.cs: clone the format too in Clone.
24897 * Theme.cs: add DrawListViewHeaderDragDetails method.
24898 * ThemeWin32Classic.cs:
24899 - impl new method for drawing drag column shadows and targets.
24900 - support column offset for details mode in DrawListViewItem.
24902 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24904 * TextControl.cs: Reset the char_count when the document is cleared
24905 (Fixes bug reported on mono-winforms mailing list)
24907 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24909 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
24910 of calling base we simply process the key ourselves, since both
24911 DefWindowProc and the handled method would set m.Result.
24914 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24916 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
24917 method also moves the window; instead implemented a copy of
24918 Control.ScaleCore (Part of fix for #77456)
24920 - Created new CreateGraphicsInternal method to allow providing
24921 a graphics context when no handle is created without triggering
24922 handle creation. (Part of fix for #77456)
24923 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24925 - Switched Constructor to require TextBoxBase instead of Control (to
24926 allow uncast access to CreateGraphicsInternal)
24927 - Safeguarded use of owner.Handle property. No longer accessing it
24928 unless the handle is already created.
24929 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24930 - Now triggering a recalc when owning control becomes visible
24931 * TextBox.cs, RichTextBox.cs: Switched to use new internal
24932 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
24933 premature handle creation (Part of fix for #77456)
24935 - We now only destroy our double-buffering buffers when the
24936 control is resized or disposed, but not when visibility
24937 changes. (The code even re-created them twice every time)
24938 - Now requiring a redraw of the buffer on visibility changes
24939 (fixes bug 77654 part 2)
24940 - Not passing OnParentVisibleChanged up unless the control
24942 - CanFocus: Fixed to match MS documentation
24943 - Focus: Fixed to return actual focus state and to check if
24944 setting focus is legal before setting it
24946 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
24948 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
24949 when to draw focus rectangle by looking at parent focus and
24950 selected state instead. This fixes TabPages on Linux sometimes
24951 having none or multiple focus rectangles.
24952 * XplatUIX11.cs (SetFocus):
24953 - Don't set the focus if the same window already has focus
24954 - Use SendMessage instead of PostMessage (like it's Win32
24955 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
24956 to match MS behaviour
24957 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
24958 are not selectable.
24960 2006-03-07 Jackson Harper <jackson@ximian.com>
24962 * PictureBox.cs: Revert line I accidently committed last week.
24964 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
24967 - Added new IsRecreating and ParentIsRecreating properties to
24968 allow testing if RecreateHandle has been called on ourselves
24969 or one of our parents
24970 - WndProc(WM_DESTROY): If our control handle is being recreated
24971 we immediately need to create the handle when receiving the
24972 destroy, that way our child windows find a valid parent handle
24973 when they themselves are being recreated upon WM_DESTROY receipt
24974 (fix for bug #77654 part 1)
24976 - DestroyWindow: WM_DESTROY must be sent to our own window before
24977 notifying any child windows. MS documents that child windows
24978 are still valid when WM_DESTROY is received. (Control now relies on
24980 - Added some fine-grain debug options
24982 2006-03-06 Jackson Harper <jackson@ximian.com>
24984 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
24985 box and base calculations off this.
24986 * MdiChildContext.cs:
24987 * MdiWindowManager.cs: Don't need to ensure scrollbars here
24990 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
24992 * Splitter.cs: In situations where the affected control is added
24993 to the parent's control list after the splitter, we would not
24994 populate affected. Now we try populating it on mousedown, if
24995 it's not already set, and force it to be re-set whenever our
24998 2006-03-03 Matt Hargett <matt@use.net>
25000 * Control.cs: implement Control.Padding
25001 * Padding.cs: -Padding.All returns -1 when constructing with the
25002 implicit default ctor
25003 -Padding.ToString() matches MS.NET
25004 * ContainerControl.cs: implement
25005 ContainerControl.AutoScaleDimensions
25006 * ListControl.cs: implement ListControl.FormattingEnabled
25007 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
25009 * TabPage.cs: Implement UseVisualStyleBackColor.
25010 * PictureBox.cs: Implement PictureBox.InitialImage.
25012 2006-03-03 Mike Kestner <mkestner@novell.com>
25014 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
25015 event declarations to proxy to base event.
25016 * ListViewItem.cs: update to use ItemControl.
25017 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
25018 * ThemeWin32Classic.cs: update to new ListView theme API and fix
25019 column header label rendering for 0 width columns.
25021 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
25023 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
25024 that causes the control to be created. Fixes #77476.
25026 2006-03-02 Jackson Harper <jackson@ximian.com>
25028 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
25031 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
25033 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
25034 passed in for the EventArgs (fixes #77690)
25036 2006-03-01 Jackson Harper <jackson@ximian.com>
25038 * ScrollBar.cs: Refresh afterbeing resized.
25040 2006-02-28 Mike Kestner <mkestner@novell.com>
25042 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
25043 Clean up a tracker compile warning.
25044 * MenuItem.cs: add internal PerformPopup method.
25047 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25049 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
25050 implicit expose) when the text is set to null
25052 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25054 * RichTextBox.cs (FlushText): When newline is true, we always
25055 need to split the line, even if no text is on it and we may
25056 never eat newlines. (Fixes #77669)
25058 2006-02-28 Mike Kestner <mkestner@novell.com>
25060 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
25061 and set Selected instead.
25062 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
25065 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25067 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
25069 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
25072 - Got rid of the panel. All controls are now directly added to
25074 - It is now possible to set a font with the Font property
25075 - MinSize and MaxSize property do now what they should
25076 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
25077 - Searching and selecting a font with the font textbox works now,
25078 the same applies to the style and size textbox
25079 - Draw the correct 3D border in the example panel
25080 - Fixed a little mem leak (unused fonts didn't get disposed)
25081 - Many other internal updates/rewrites...
25084 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25087 - InsertRTFFromStream: Added 'number of characters inserted' argument
25088 - set_SelectedRTF: Now using the number of characters to calculate
25089 the new location for the selection and cursor (x/y cannot be used
25090 due to potentially already wrapped text)
25092 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25094 * TextControl.cs: Added property and implemented means to allow
25095 disabling recalculation of a document (can be used to speed up
25096 multiple inserts and is needed to make RTF inserts predictable, see
25098 * RichTextBox.cs: Using the new NoRecalc property of Document to
25099 keep x/y insert locations predictable. Also makes it faster inserting
25100 large chunks of RTF
25102 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25104 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
25105 it's easier for a child control to handle the other messages without
25106 having to duplicate the special functionality
25108 - WndProc: Removed calling base handler for WM_KEYDOWN and added
25109 code to handle processing the key ourselves, in order to get
25110 access to the result of KeyEventArgs.Handled. We now only call
25111 ProcessKey if they key hasn't been handled already. Fixes #77526.
25112 - set_Text: If null or empty string is given, just clear the
25113 document. Fixes part of #77526
25115 2006-02-27 Jackson Harper <jackson@ximian.com>
25117 * SizeGrip.cs: Paint the background color before painting the grip
25118 so things look right.
25119 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
25121 2006-02-27 Mike Kestner <mkestner@novell.com>
25124 - Restructure layout and invalidation model to remove a ton of
25125 flicker from the control and speed up performance in general.
25126 - Add manual column resize, flickers like crazy, but I already have
25127 some ideas on how I'll fix that. (#76822)
25128 - Merge the three Icon-based views into a single layout method.
25129 - Move item selection interaction logic from the item since
25130 interaction with the collections is more appropriate to the view.
25131 - Deselection on non-item clicks.
25133 - Encapsulate most of the layout. Add some internal props to trigger
25134 layout. Move to a model where Items invalidate themselves instead
25135 of just invalidating the whole control every time something changes.
25136 - Invalidate on Text/Caption changes.
25137 - switch to an offset based layout model to avoid having to absolute
25138 position every element on item moves.
25139 - correct checkbox layout to conform to MS layout.
25140 * ThemeWin32Classic.cs:
25141 - refactor some column header drawing code.
25142 - fix string justification for column headers (#76821)
25143 - make SmallIcon labels top justified for compat with MS impl.
25144 * ThemeClearlooks.cs:
25145 - adjust to new ListViewItem internal checkbox bounds api.
25147 2006-02-27 Jackson Harper <jackson@ximian.com>
25149 * Control.cs: Change where implicit controls fall in the zorder.
25150 They are now on top of all children.
25151 - Synced AddImplicit code with Add
25152 - Removed unused enumerator.
25153 * SizeGrip.cs: Remove the TODO as its been TODONE.
25155 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
25157 * TextControl.cs(Insert): Combine the last lines unless the insertion
25158 string ends with \n\n, otherwise we leave one line too many (Fixes
25159 something I noticed with the testapp for #77526; the bug itself was
25160 already fixed in the previous checkin)
25162 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
25165 - SelectionColor and SelectionFont methods no longer set absolute
25166 styles. Instead, the keep font or color respectively (This
25167 resolves a long-standing FIXME in the code)
25168 - When flushing RTF text, the insert code now considers text trailing
25169 behind the insertion point (Fixes the bug where when replacing
25170 the selected text via SelectedRTF the remainder of the line behind
25171 the selection would stay on the first insertion line)
25173 - AppendText now updates the selection points after inserting text
25174 - AppendText now ensures that the last tag (sometimes 0-length) of
25175 the document is used for the style information (Fixes part of
25178 - Created new FontDefiniton class to allow describing partial style
25180 - StreamLine() now takes a lines argument, to allow it to decide
25181 whether an encountered zero-length tag is the last in the document
25182 (which must be kept to not loose the font/color contained in it,
25184 - Created Combine() and Split() methods for Marker structs, to
25185 support marker updates due to reformatted documents (soft line
25187 - Implemented Document.CaretTag setter
25188 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
25189 of the last line (Not the cause, but also exposed by bug #77220)
25190 - Added LineTag argument to InsertString method, to allow callers
25191 to force a certain tag to be used (required to force use of the
25192 trailing zero-length tag of a document)
25193 - Now updating markers in Combine(), to avoid stale tag markers
25194 - Added some method descriptions to aid maintenance
25195 - Implemented new FormatText concept, allowing additive/subtractive
25196 formatting by only specifying the components that are to be
25197 changed. This was needed for resolving the RTB.SelectedColor/
25198 RTB.SelectedFont fixmes
25199 - Added Break() support method to allow breaking up linetags (used
25200 for partial formatting)
25201 - Added GenerateTextFormat() method. It is used for partial
25202 formatting and allows to generate a full font/color from given
25203 attributes and an existing tag.
25205 2006-02-26 Jackson Harper <jackson@ximian.com>
25207 * XplatUIX11.cs: Use the correct caption height.
25208 - Translate hittest coordinates to screen coords to match MS.
25209 * XplatUIWin32.cs: When we create MDI windows we need to reset
25210 some of the style flags, so we get a nice blank window, and can
25211 draw all the decorations ourselves.
25212 - Set a clipping rectangle on the non client paint event, the
25213 window manager drawing code needs one.
25214 * Form.cs: The window manager needs to know when the window state
25216 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
25217 don't need to factor in border and title sizes in these
25218 methods. TODO: Remove the args and fix the call points.
25219 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
25221 - Let the driver set the cursors.
25222 - Improve active window handling
25223 - Correct sizes for title bars and buttons.
25224 - Match MS drawing better
25225 * MdiWindowManager.cs: We don't need to handle border style
25226 updates specially anymore.
25227 - Check for scrollbars when windows are done moving
25228 - Handle Active properly.
25229 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
25230 correctly. I am spewing the exception though, so we don't hide the
25233 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
25235 * DataGridViewRowPostPaintEventArgs.cs,
25236 DataGridViewCellPaintingEventArgs.cs,
25237 DataGridViewRowCollection.cs,
25238 DataGridViewRowPrePaintEventArgs.cs,
25239 DataGridViewCell.cs: Clear a few warnings and implement a few
25240 exceptions that should be thrown.
25242 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25244 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
25245 'inheriting' our parent's (non-default) cursor. (Part of
25246 the fix for #77479)
25248 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25250 * XplatUIX11.cs: Fixed cast to make csc happy
25252 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25254 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
25255 it's for the client area (part of fix for #77479 and needed
25256 for MDI window cursor handling)
25258 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
25259 the appropriate default cursors and also passing the message
25260 up the parent chain
25261 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
25262 for non-client areas
25264 2006-02-15 Jackson Harper <jackson@ximian.com>
25266 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
25267 is a real MDI window
25269 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
25271 * X11DesktopColors.cs: Instead of checking the desktop session
25272 string for "KDE" check if it starts with "KDE"
25274 2006-02-10 Jackson Harper <jackson@ximian.com>
25276 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
25279 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
25281 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
25284 - Got rid of the panel. All controls are now directly added to
25286 - Changed to mono coding style
25288 2006-02-10 Jackson Harper <jackson@ximian.com>
25290 * InternalWindowManager.cs: We don't need the set visibility to
25291 false hack anymore now that peter has written beautiful shutdown
25294 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
25296 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
25297 where already explicitly destroyed
25299 2006-02-10 Jackson Harper <jackson@ximian.com>
25301 * MdiClient.cs: Handle the case where windows are too high or to
25302 the left and we need scrollbars.
25304 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
25306 * MimeIcon.cs: Added some icons
25309 - Got rid of the panel. All controls are now directly added to
25311 - Changed to mono coding style
25312 - On Linux "My Computer" and "My Network" will now show some
25313 more usefull information. A new class, MasterMount, gathers
25314 this information from /proc/mount. Updated MWFFileView to make
25315 use of this information
25316 - Fixed a bug that caused FileDialog to crash when
25317 ".recently_used" file had a zero size
25318 - FilterIndex does now what it should
25320 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
25323 2006-02-09 Jackson Harper <jackson@ximian.com>
25325 * ComboBox.cs: Don't touch if null.
25327 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
25329 * Cursor.cs: 64bit safeness fix
25330 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
25332 2006-02-09 Jackson Harper <jackson@ximian.com>
25334 * Form.cs: If a form is made into an MDI form update the styles so
25335 all the props can get set correctly.
25336 - Kill the mdi_container when we dont need it anymore.
25337 * InternalWindowManager.cs: Add missing NOT
25339 2006-02-08 Jackson Harper <jackson@ximian.com>
25341 * InternalWindowManager.cs: Respek clipping when drawing MDi
25344 2006-02-08 Jackson Harper <jackson@ximian.com>
25346 * Hwnd.cs: Add bits to track non client expose events.
25347 * XplatUIX11.cs: Track non client expose events on the hwnd. This
25348 gives us a proper invalid rect and will allow for some nice
25349 optimizations with NC client drawing
25350 - MDI windows are children windows, so move their style handling
25351 into the child window block.
25352 * InternalWindowManager.cs: Remove a state reset that was
25353 getting invoked at the wrong time. Fixes managed windows getting
25354 into a 'stuck' captured state.
25356 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
25358 * TextControl.cs (Document.ctor): Now initializing
25359 selection_anchor. Fixes #77493
25361 2006-02-07 Jackson Harper <jackson@ximian.com>
25363 * TrackBar.cs: The increment/decrements were backwards.
25365 2006-02-07 Mike Kestner <mkestner@novell.com>
25367 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
25368 to the instance itself.
25370 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
25372 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
25373 on ulongs and pointers, the size differs between 32bit and 64bit
25376 2006-02-07 Mike Kestner <mkestner@novell.com>
25378 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
25379 for 64 bit platforms to work around a metacity bug.
25381 2006-02-07 Jackson Harper <jackson@ximian.com>
25383 * TrackBar.cs: Process the input keys we need, and hookup to
25384 KeyDown instead of using WndProc, so we get key messages.
25386 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
25388 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
25390 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
25391 we need to translate the XdndVersion atoms array before sending it
25393 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
25396 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
25397 number of bits for the property, not the number of bytes. The
25398 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
25399 but would not crash since it specified 8 bits instead of 4 bits)
25400 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
25401 defined as XID -> long in the C headers)
25402 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
25403 references since those are now IntPtr to begin with
25404 - Switched all Atom.XXX 'int' casts to IntPtr casts
25405 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
25406 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
25407 - Added XChangeActivePointerGrab DllImport (for X11DnD)
25409 - Changed 'int' type for Atoms in XEvent structures to IntPtr
25410 - Changed atom in HoverStruct to be IntPtr
25412 - Removed local DllImports, switched code to use those from XplatUIX11
25413 - Removed/fixed casts related to the switch of Atom to be a IntPtr
25415 2006-02-06 Mike Kestner <mkestner@novell.com>
25417 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
25418 method signatures in the import region. There may still be some
25419 lingering struct marshaling issues, as I didn't drill down into those.
25422 2006-02-06 Jackson Harper <jackson@ximian.com>
25424 * ComboBox.cs: Dont manually set the top_item, this is computed
25425 when the scrollbar position is set.
25427 2006-02-06 Mike Kestner <mkestner@novell.com>
25429 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
25430 startup crashes on amd64. There's other fixes needed. All pinvoke
25431 usage of Atom needs to be mapped to IntPtr for example. And there are
25432 likely other int/long issues to be addressed.
25434 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
25436 * FileDialog.cs: One more...
25438 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
25440 * FileDialog.cs: Next try
25442 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
25444 * FileDialog.cs: First part of fix for #77464
25446 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
25448 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
25449 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
25450 AcceptButton border drawing.
25452 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
25454 * Form.cs: Moved positioning of form after auto scaling is applied,
25455 otherwise it would possibly use wrong form size.
25457 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
25459 * Control.cs (RecreateHandle): No need to re-create any child
25460 controls, the child windows will get destroyed automatically by
25461 the windowing system or driver, and re-created when the handle
25462 is being accessed the first time. Fixes #77456
25463 * Form.cs: No longer setting the form to closing if the handle is
25464 being recreated. This seems like the right thing to do, don't
25465 have a bug or testcase for this, though.
25467 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25469 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
25470 controls to avoid unwanted side effects
25472 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25475 - ScaleCore needs to scale the bounds, not the ClientSize of the
25476 control. Fixes #77416.
25477 - DefaultSize is 0,0 for control
25479 - DefaultSize is 100, 20
25480 - SetBoundsCore: Now enforcing the height, no matter if the provided
25481 height is more or less than the preferred one, as long as AutoSize
25483 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
25485 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25488 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
25489 call unless both performLayout is true *and* we have a pending
25491 - ResumeLayout: MS does not completely nest Suspend and Resume,
25492 they bottom out at 0, fixed our code to match that.
25493 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
25494 SetBoundsCore, we were updating even when we shouldn't. This fixes
25495 swf-anchors mis-anchoring when resizing the app fast and lots.
25496 - UpdateDistances: Now only setting the left and top distance if
25497 we have a parent and are not suspended, this is based on
25498 a suggestion by Don Edvaldson in bug #77355.
25499 - OnVisibleChanged: Fixed logic when to create the control. We may
25500 not create the control if we have no parent or if it's not visible;
25501 switched to using Visible property instead of is_visible field
25502 since the property also considers parent states. This fixes a bug
25503 when starting Paint.Net
25505 2006-02-02 Jackson Harper <jackson@ximian.com>
25507 * Form.cs: If the forms handle hasn't been created yet don't call
25508 into xplatui to make it top most, just set the topmost flag on the
25509 form in CreateParams
25510 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
25512 2006-02-01 Jackson Harper <jackson@ximian.com>
25514 * ScrollableControl.cs: Refactored the Recalculate method a
25515 little, this wasn't handling all the variants of bottom and right
25516 bars needed to be added and added/removed based on their
25517 counterparts being added/removed (which changes the drawable
25518 size). Also we special case client widths and heights of 0 and
25519 don't add the scrollbar for those.
25521 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
25524 - Added method to get AbsoluteGeometry(); currently unused, but might
25525 be used in the future, if we try again to figure out toplevel
25526 coordinates with some more crappy window managers
25527 - Added FrameExtents() method to retrieve the WM set decoration size
25528 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
25529 to deal with at least KDE, FVWM and metacity (Fixes #77092)
25531 - Added whacky_wm tracking var for metacity
25532 - Added logic to have default menu height if the actual menu height
25533 has not yet been calculated (part of fix for #77426)
25534 * Form.cs: Keep track whether client size has been set and re-set
25535 it if a menu is added/removed afterwards (Fixes #77426)
25537 2006-01-31 Jackson Harper <jackson@ximian.com>
25539 * Control.cs: When a new Site is set on the component attempt to
25540 pull the AmbientProperties from it.
25542 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
25544 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
25545 in the background of the owning form. Fixes #77332
25547 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25549 * MimeIcon.cs: Fix for #77409
25551 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25553 * XplatUIX11GTK.cs: Initial import
25555 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
25557 * FixedSizeTextBox: fixes class signature
25559 2006-01-30 Jackson Harper <jackson@ximian.com>
25561 * FixedSizeTextBox.cs: New internal class that represents a
25562 textBox that will not be scaled.
25565 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
25568 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
25570 * XplatUIX11.cs: Retrieve default screen number instead of
25571 assuming 0. Attempted fix for #77318
25573 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
25576 - GetWindowPos: When a window is parented by FosterParent, use
25577 the desktop instead of FosterParent as the base to get coordinates
25578 - CreateWindow: Don't make FosterParent the parent window for Popups
25579 if we don't want a taskbar entry, Popups automatically don't get one
25580 * Hwnd.cs: Need to call remove to actually remove the key from the
25583 2006-01-30 Mike Kestner <mkestner@novell.com>
25585 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
25587 2006-01-30 Jackson Harper <jackson@ximian.com>
25590 * TreeNode.cs: Raise events no matter how the treenode is
25591 checked. Patch by Don Edvalson.
25593 2006-01-30 Jackson Harper <jackson@ximian.com>
25595 * TreeNode.cs: Signature fix.
25597 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
25599 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
25601 2006-01-20 Mike Kestner <mkestner@novell.com>
25603 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
25604 event forwarding when menus are active.
25605 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
25606 Most of the patch is pdb's with a little rework.
25608 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25610 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
25611 Removed GetMenuDC and ReleaseMenuDC methods; replaced
25612 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
25613 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
25614 * InternalWindowManager.cs: Added use of PaintEventStart/End to
25615 handling of WM_NCPAINT message, now passing the PaintEventArgs to
25616 the PaintWindowDecorations method
25617 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
25618 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
25619 * MenuAPI.cs: Made tracker window invisible
25621 - Removed GetMenuDC and ReleaseMenuDC methods
25622 - Implemented the client=false path for PaintEventStart and
25625 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25627 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
25628 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
25631 - MaximizeBox, MinimizeBox: Recreate the handle when setting
25633 - CreateParams: Reworked the styles to match MS look'n'feel,
25634 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
25635 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
25637 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25639 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
25640 window is not mapped, since otherwise every form that's being
25641 created is considered minimized, which is wrong.
25642 * Form.cs: Catching the exception and returning our internal value
25645 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25647 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
25648 SetWindowMinMax() to have means to tell the driver about the minimum,
25649 maximum and maximized state window sizes. (Part of the fix for #76485)
25651 - Implemented tracking of minimum and maximum window size, now calling
25652 new SetWindowMinMax() driver method to tell the driver (Part of the
25654 - Finished handling of WM_GETMINMAXINFO method, now setting all values
25655 (Completes fix for #76485)
25656 - Calling new SetWindowMinMax driver method when the handle for a
25657 form is created, to make sure the driver knows about it even if
25658 the values have been set before the window was created
25659 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
25660 to avoid messing up our anchoring calculations (partial fix
25662 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
25664 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
25665 - Improved GetWindowState() to detect 'Minimized' state on Metacity
25666 (and presumably other freedesktop.org compliant WMs). Left the
25667 assumption unmapped=minimized, needed for SetVisible to work.
25668 - Now setting the window state when creating windows
25669 - Fixed SetVisible to consider/set the window state when mapping
25670 a Form. We cannot set the state before it's mapped, and we cannot
25671 use Form.WindowState once it's mapped (since it would ask the
25672 driver and get 'normal'. Therefore, we grab the state before
25673 mapping, map, and then set state.
25674 - Implmemented SetWindowMinMax method; Metacity does not seem to
25675 honor the ZoomHints, though.
25677 - Removed MINMAXINFO (moved to XplatUIStructs)
25678 - Added SetWindowMinMax stub (on Win32 the only way to set that
25679 information is in response to the WM_GETMINMAXINFO message, which
25680 is handled in Form.cs)
25681 - Added logic to SetVisible to set the proper window state when a
25682 form is made visible (fixes #75720)
25684 2006-01-26 Jackson Harper <jackson@ximian.com>
25686 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
25687 same way we handle them with Invoke.
25689 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
25692 - Added tracking of window state so CreateParams can return
25693 the appropriate style
25694 - Moved setting of WS_CAPTION style in CreateParams to allow
25695 styles without caption
25696 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
25697 control if the TextBox property is accessed. Fixes #77345
25699 - get_Created: now uses is_disposed and is_created to determine
25700 return value (suggested by Jackson)
25701 - CreateHandle: No longer exits if the handle is being recreated
25702 - RecreateHandle: If the handle is not yet created call the
25703 appropriate method to create either control or handle. If the
25704 control is already created CreateHandle will simply exit instead
25705 of just creating the handle
25706 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
25707 now SendMessage WM_DESTROY directly to the control when DestroyWindow
25710 - When DestroyWindow is called, instead of waiting for the
25711 DestroyNotification from X11, we directly post it to the WndProc
25712 and immediately dispose the hwnd object.
25713 Same applies to DestroyChildWindows, and this obsoletes the
25714 expose_pending tracking. Contrary to Win32 behaviour we destroy our
25715 child windows before our own, to avoid X11 errors.
25716 - Removed the direct sending of WM_PAINT on UpdateWindow
25718 - Reworked DoEvents and GetMessage to allow access to internal queue
25719 even when trying non-blocking access to the queue. Fixes #77335.
25720 Based on a patch suggestion by Don Edvalson. The new private
25721 GetMessage can now also be used as a backend for a PeekMessage
25723 * XplatUI.cs: Improved debug output for CreateWindow
25725 2006-01-25 Jackson Harper <jackson@ximian.com>
25727 * Help.cs: Allow param to be null. Patch by Don Edvalson.
25729 2006-01-24 Jackson Harper <jackson@ximian.com>
25731 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
25732 when we have a MaxDropItems lower then the selected index.
25734 2006-01-24 Jackson Harper <jackson@ximian.com>
25736 * Control.cs: Don't allow selection of non visible controls, allow
25737 selection of controls without parents.
25739 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25741 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
25742 * DataGridDrawingLogic.cs: Add editing row only when is necessary
25744 2006-01-23 Jackson Harper <jackson@ximian.com>
25746 * UpDownBase.cs: Make the textbox handle all the selection and
25747 tabbing. This fixes tabing to updown controls.
25749 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25751 * TextBoxBase.cs: fixes exception thown the object was null
25753 2006-01-23 Jackson Harper <jackson@ximian.com>
25755 * ButtonBase.cs: Just use the base CreateParams. They set
25756 visibility and enabled correctly.
25759 * MonthCalendar.cs: Lets let the base set as much of the
25760 createparams as possible so we don't have duplicate code all over
25763 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
25765 * ThemeGtk.cs: Added TrackBar and some experimental code to
25766 get double buffering back
25768 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
25770 * DataGrid.cs: Allows row number set internally higher than the last
25771 when creating a new row. Restores the editing functionality.
25773 2006-01-20 Mike Kestner <mkestner@novell.com>
25775 * MimeIcon.cs: delay Image creation until the icons are accessed
25776 instead of creating 190 scaled images on GnomeHandler startup.
25778 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25780 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
25781 first call base before processing the event. Fixes #77279
25783 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25785 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
25786 that the stride for the GDI bitmap would match the stride of
25789 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
25791 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
25793 2006-01-19 Jackson Harper <jackson@ximian.com>
25795 * ComboBox.cs: Hookup the text controls keydown event so we get
25796 those when the text control has the focus.
25798 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25800 * Label.cs: Now using the base events instead of defining new ones;
25801 this allows us to just call the base properties without having to
25802 duplicate all base property logic
25804 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25806 * Label.cs: A label by default is not a tabstop (Fixes one of our
25807 failing nunit tests)
25809 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25811 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
25812 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
25814 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25816 * Cursor.cs: Reimplemented creating cursor bitmaps without using
25817 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
25820 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
25821 constructor creates images that can't be saved. Part of the fix
25823 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
25824 - SetWindowState: Switched ShowWindow flags (part of an upcoming
25825 bug fix for handling window state in forms properly)
25827 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25829 * ThemeGtk.cs: Simplify ScrollBar drawing
25831 2006-01-18 Jackson Harper <jackson@ximian.com>
25833 * Splitter.cs: Set the default dock style for the splitter control
25834 in the constructor.
25836 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25838 * ThemeGtk.cs: Corrected StateType and ShadowType for
25841 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25843 * Control.cs: Make use of Theme.DoubleBufferingSupported
25845 - Added drawing for flat style buttons
25846 - Added ScrollBar drawing
25848 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25850 * ThemeClearlooks.cs: Removed some unneeded code.
25851 * ThemeGtk.cs: First part of ThemeGtk enhancements.
25853 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25855 * LinkLabel.cs: We need to update the hover drawing when
25856 leaving the control as well.
25858 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
25860 * DataGrid.cs: Clicking on non empty areas in the columns
25861 area was giving an exception
25863 2006-01-17 Jackson Harper <jackson@ximian.com>
25865 * ThemeWin32Classic.cs:
25866 * ListView.cs: Do not draw/clip the headers when the header style
25869 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25871 * DataGrid.cs: Fixes 77260
25873 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25875 * DataGrid.cs: Clicking on a column on a empty grid was giving
25878 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25880 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
25881 or any keypress will crash the grid.
25883 2006-01-17 Mike Kestner <mkestner@novell.com>
25885 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
25886 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
25887 invisible/previously-visible items.
25890 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
25892 * ThemeClearlooks.cs:
25893 - Added CL_Draw_Button method; now other theme controls that are
25894 not derived from button or do not have a button can draw buttons
25896 - Updated ComboBox drawing
25897 - Beautified RadioButton drawing
25898 - Corrected drawing of bottom and left tabs
25899 - Beautified DateTimePicker and MonthCalendar
25900 - Added CPDrawButton and CPDrawRadioButton
25902 2006-01-16 Jackson Harper <jackson@ximian.com>
25904 * ComboBox.cs: Set the initial value of the scrollbar to the
25905 current index. Reduce the numbers of refreshs and IndexOfs called.
25907 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
25909 * FileDialog.cs: When the file listview is focused hitting the
25910 backspace key moves the fileview to the parent directory
25912 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25915 - Added RecreateHandle call when changing taskbar visibility to
25916 trigger reparenting in Win32 driver (Fixes #75719)
25917 - If a window has minimize or maximize buttons, it cannot have
25920 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
25921 the toplevel form with FosterParent (A toolwindow not on the
25922 taskbar) (Fixes #75719)
25923 - Made FosterParent a toolwindow
25925 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25927 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
25929 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25931 * ToolTip.cs: If SetToolTip is called from a control and the mouse
25932 is currently over that control, make sure that tooltip_window.Text
25935 2006-01-13 Mike Kestner <mkestner@novell.com>
25937 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
25939 2006-01-13 Jackson Harper <jackson@ximian.com>
25941 * TreeView.cs: On MS GetNodeAt never actually factors in the X
25942 value passed. Also redraw the selected node when we recieve
25943 focus, so tabbing between trees works correctly.
25945 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25947 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
25948 ~/.gconf/%gconf-tree.xml, so use
25949 .gconf/desktop/gnome/interface/%gconf.xml
25951 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25953 * TextControl.cs: Draw text in gray if control is disabled
25955 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25957 * TreeView.cs: Draw the focus rectangle outside the highlight, to
25958 make sure it's always visible. Fixes #76680.
25960 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25962 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
25964 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
25966 * PageSetupDialog.cs: Added.
25967 * PrintDialog.cs: Attributes.
25968 * PrintPreviewControl.cs: Updates.
25969 * PrintPreviewDialog.cs: Updates.
25971 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25973 * Control.cs: Undid my selection check fix, since it's not needed
25975 - Now considering the presence of hscroll/vscroll when sizing
25976 vscroll/hscroll respectively. Fixed bug #77077
25977 - Added Left/Up/Down/Right to IsInputKey list to prevent
25978 ContainerControl from stealing them. This fixes what I broke
25979 with my last checkin.
25981 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25983 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
25984 I finally understand how the property can be set without a setter :-)
25986 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25989 - Switched RunLoop to use static Message.Create to create a
25991 - Added PreProcessMessage call in runloop for keyboard events; this
25992 is part of the fix for #77219, I overlooked this originally in the
25993 MSDN doc for PreProcessMessage
25995 - Removed call to PreProcessMessage from handling of keyboard
25996 messages; it's supposed to be done in the message pump
25997 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
25998 per MSDN documentation.
25999 - IsInputChar: All chars are input chars by default; removed the
26000 parent calling chain, MS does not document that
26001 - PreProcessMessage: If IsInputChar is true, we want to return false
26002 to allow dispatching of the message
26003 - When selecting the next control, now also check that we're not
26004 selecting ourselves again and therefore return a false positive.
26006 - Tried to match return values for IsInputKey and ProcessDialogKey
26007 to what MS returns; moved processing of our special keys outside
26008 ProcessDialogKey since MS does not seem to return true on those.
26009 - Moved code that previously was in ProcessDialogKey into new private
26010 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
26011 - Reworked handling of WM_CHAR to not have to duplicate code from
26012 Control.cs anymore, instead we simply call down to base.
26014 2006-01-12 Jackson Harper <jackson@ximian.com>
26016 * ComboBox.cs: We always need to refresh the text area when
26017 EndUpdate is called. Fixes the combobox in the file dialog.
26018 * Control.cs: Don't create the creator_thread until the controls
26019 handle is created. Also in InvokeRequired we check if the
26020 creator_thread is null. This gives the effect of InvokeRequired
26021 returning true if the controls handle is not created yet, and
26024 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26027 - Added StartLoop() driver method. This is used to allow drivers to
26028 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
26029 loop for a particular thread
26030 - Added EndLoop() driver method. This is called once the message
26031 pump for the thread is shut down
26032 - Added SupportsTransparency method to allow the driver to indicate
26033 opacity support for windows
26035 - Removed TODO attribute, completed AllowTransparency property
26036 - Added documented logic to Opacity
26037 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
26038 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
26039 versions of CompatibleTextRendering
26040 * X11Structs.cs: Added opacity atom to our atom enumeration
26041 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
26042 of a form might be set before it's reparented by the WM, and we need
26043 the opacity value without calling up to Form)
26044 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
26045 SupportsTransparency() driver methods
26046 * Application.cs: Now calling StartLoop and EndLoop driver methods
26048 - Added opacity atom registration
26049 - Added StartLoop()/EndLoop() methods. They're empty right now but
26050 will need to get implemented when we switch to a per-thread queue
26051 - Implemented SupportsTransparency() method
26052 - Implemented SetWindowTransparency() method
26053 - Added support for setting the opacity value when a window is
26054 reparented (since the opacity needs to be set on the WM frame)
26055 * XplatUIOSX.cs, XplatUIWin32.cs:
26056 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
26058 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26060 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
26062 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26064 * FileDialog.cs: Added ToolTip for MWFFileView
26065 * MimeIcon.cs: Rewrote GnomeHandler.
26066 - Get currently used gnome icon theme from
26067 ($HOME)/.gconf/%gconf-tree.xml
26068 - Make use of inherited icon themes
26069 - Support SVG icon themes like Tango via librsvg
26071 2006-01-12 Miguel de Icaza <miguel@novell.com>
26073 Revert's Jackson's revert which broke 2.0 builds. Fix both
26076 * Application.cs: Move the use_compatible_text_rendering outside
26077 the NET_2_0 define. If we ever need to use the
26078 use_compatible_text_rendering on the individual controls they will
26079 access the variable from the common shared code paths.
26081 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26084 - Added more granular debug options
26085 - Added method to print both window text and id
26086 - Switched debug output to use new Window() debug method
26087 - Added IsEnabled() driver method
26088 - Added EnableWindow() driver method
26090 - Removed end_modal; no longer needed, new loop handles termination
26091 via 'closing' variable
26092 - If form is modal, setting DialogResult will now initiate loop
26093 termination via 'closing' variable
26094 - Added support for is_enabled/WS_DISABLED to CreateParams
26095 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
26097 - Removed code that's now in RunLoop from ShowDialog()
26098 - Added various documented sanity checks to ShowDialog()
26099 - Added handling of WM_DESTROY message; we set 'closing' on getting
26100 the message to indicate the message pump to terminate
26101 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
26102 send by the Application.ExitThread method. (We send the message
26103 to destroy the window after all other events have been
26104 processed through the queue, instead of destroying the handle
26106 - Moved code from Close() method to WM_CLOSE handler; added logic
26107 to only send close-related events if the form is not displayed
26109 * Splitter.cs (..ctor): Fixed typo in resource name
26111 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
26113 - set_Cursor: Now only setting calling into XplatUI if the handle for
26114 the control is already created; this avoids implict handle creation
26115 or crashes if it's not created
26116 - set_Enabled: Now setting the enabled state via the new driver method
26117 instead of just tracking it
26118 - CreateParams: Added logic to set WS_DISABLED based on enabled state
26119 - CreateControl: Reordered event firing and method calls to more
26120 closely fire events in the order MS does. Now setting the
26121 enabled state in the driver when creating the control.
26122 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
26124 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
26125 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
26126 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
26128 - Added tracking of window enabled state (get_Enabled/set_Enabled)
26129 - Added EnabledHwnd property to easily allow a driver to find the
26130 handle of the first enabled window in the parent chain (this is
26131 used by drivers to pass up input events of disabled windows)
26132 * XplatUIDriver.cs: Added IsEnabled() method
26134 - Removed crude and obsolete exiting tracking variable
26135 - Removed internal ModalRun(); replaced by RunLoop()
26136 - Implemented private CloseForms() method to allow closing all
26137 windows owned by a particular (or all) threads
26138 - Exit() now properly closes all windows without forcing the message
26140 - Removed obsolete InternalExit() method
26141 - Changed Run() methods to use new RunLoop() message pump
26142 - Implemented new RunLoop() method for both modal and non-modal forms
26144 - get_CreateParams: Added setting of WS_DISABLED
26145 - Simplified ShowDialog(); now all the work is done in RunLoop(),
26146 invoked via Form.ShowDialog()
26147 * NativeWindow.cs: We don't remove the window from the collection when
26148 the handle is destroyed; there might still be messages for it in the
26149 queue (mainly the resulting WM_DESTROY); instead it will be removed
26150 when Control calls InvalidateHandle in the WM_DESTROY handler
26152 - CreateWindow: Added logic to handle the WS_DISABLED window style
26153 - EnableWindow: Implemented based on Hwnd.Enabled
26154 - GetMessage: Reset PostQuitState so the method can be called again
26155 - Implemented support for disabled windows (passing messages to the
26156 first enabled parent) in handling all input messages
26157 - Added optimizations for handling Expose events
26158 - Implemeted new driver method IsEnabled()
26159 - Now always resetting paint pending tracking vars when we start paint
26160 - Re-implemented UpdateWindow via just sending a WM_PAINT message
26161 * XplatUIOSX.cs: Added IsEnabled method stub
26162 * XplatUIWin32.cs: Implemented new IsEnabled() method
26164 2006-01-11 Jackson Harper <jackson@ximian.com>
26166 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26167 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
26168 variables a little.
26169 * ColorDialog.cs: Clear out the old form before adding the new
26172 2006-01-11 Jackson Harper <jackson@ximian.com>
26174 * X11Dnd.cs: Make sure to add all the text formats when adding
26175 strings to the data object.
26176 * TreeNodeCollection.cs: When adding to a sorted tree we need to
26177 do some redrawing too. Also change the UpdateNode to an
26178 UpdateBelow so the newly added node gets painted.
26180 2006-01-11 Miguel de Icaza <miguel@novell.com>
26182 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26183 LinkLabel.cs, PropertyGrid.cs: Implement the
26184 UseCompatibleTextRendering property for 2.x
26186 * Application.cs (SetCompatibleTextRenderingDefault): Add.
26188 2006-01-11 Jackson Harper <jackson@ximian.com>
26190 * TreeView.cs: Use the property for setting the selected node so
26191 the correct events get raised.
26192 * TreeNode.cs: Update the tree when the fore/back colours of a
26195 2006-01-10 Jackson Harper <jackson@ximian.com>
26197 * TreeView.cs: Allow setting SelectedNode to null.
26199 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26201 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
26203 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26205 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
26207 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26209 * PrintDialog.cs: Added attributes and set default property values.
26211 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26213 * PrintControllerWithStatusDialog.cs:
26214 Added PrintControllerWithStatusDialog.
26216 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26218 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26219 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
26221 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26223 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
26225 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
26227 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
26228 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
26230 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26232 * MimeIcon.cs: Added internal class SVGUtil.
26234 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26236 * FileDialog.cs: Don't crash if there are two files with the
26237 same name but different locations.
26239 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
26241 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
26242 dates across multiple month grids. Used to not highlight entire
26243 month, but does now.
26245 2006-01-06 Jackson Harper <jackson@ximian.com>
26247 * MonthCalendar.cs: Removed DoEvents call to prevent a running
26248 message loop. Change timer intervals to numbers that seem more
26251 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
26253 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
26254 object for location info since screen object is now implemented.
26256 2006-01-05 Jackson Harper <jackson@ximian.com>
26258 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
26259 * AsyncMethodResult.cs: We no longer use a WeakReference for the
26260 AsyncMethodResult, this is because we ALWAYS want the
26261 ManualResetEvent to get set.
26262 * Control.cs: When disposing use an async invoke to call shutdown
26263 code, so that thigns don't block on the finalizer thread. Also
26264 check if we even have a message loop before trying to send
26265 messages, if we don't then don't bother sending messages.
26266 - No more weak references for async methods
26267 * XplatUIDriver.cs: No more weak references for async methods.
26269 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26271 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
26272 returns two FontFamily with the same name
26274 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
26276 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
26277 drawing disabled text. Instead using the ColorGrayText color
26279 2006-01-04 Jackson Harper <jackson@ximian.com>
26281 * TreeNode.cs: redraw the node when its image index is changed.
26283 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
26285 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
26286 time I checked there are no others like it.
26288 2006-01-04 Jackson Harper <jackson@ximian.com>
26290 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
26291 this gives the behavoir I was looking for.
26292 * Control.cs: Special case Invoking EventHandlers, this matches MS
26293 and fixes part of bug #76326.
26295 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26297 * ThemeClearlooks.cs, FileDialog.cs:
26298 - Reflect the latest Theme class changes
26299 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
26302 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26304 * Theme.cs: Cache UI resource images and resize them if needed
26306 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26308 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
26309 is called. This fixes the crash in Nexxia when setting the font
26310 attributes in the chat. [However, RTF needs a look-over to make sure
26311 that all SelectionXXX methods handle the special case that selection
26312 is empty and therefore the change must be applied to all text starting
26313 at the cursor/selection start]
26315 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26317 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26318 XplatUIOSX.cs: Added SendMessage and PostMessage methods
26319 * X11Keyboard.cs: Switched to new way of calling PostMessage
26321 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26323 * Theme.cs: Added theme interface for images to allow the theme to
26324 control what images are used for things like FileDialog, MessageBox
26326 * MessageBox.cs: Now uses the new Theme icon/image interfaces
26328 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
26331 - Removed some dead code
26332 - Opening a recently used file does work now
26333 - Small UI enhancements
26336 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
26338 * FileDialog.cs: Forgot too add __MonoCS__
26340 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
26342 * FileDialog.cs: We are able to read recently used files now let's
26343 go on and write them.
26345 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
26347 * FileDialog.cs: Breathe some life into "last open"/"recently used"
26349 * MimeIcon.cs: Do a check for the top level media type also
26351 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
26353 * ThemeClearlooks.cs:
26354 - Added CPDrawStringDisabled
26355 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
26356 some chars if the text doesn't fit into text_rect
26357 - DrawListViewItem: If View = View.LargeIcon center the image;
26358 rewrote the drawing of ListViewItem.Text if View =
26361 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
26363 * MimeIcon.cs: Use default KDE icon theme if there is no
26364 "48x48" directory for the current icon theme, fixes #77114
26365 * Mime.cs: Disable not working and actually not used code.
26366 * ThemeWin32Classic.cs:
26367 - Replace "new SolidBrush" in GetControlBackBrush and
26368 GetControlForeBrush with ResPool.GetSolidBrush
26369 - Changed DrawListViewItem from private to protected virtual
26371 - Added form.MaximizeBox = true
26372 - Don't throw an exception if there is a broken symbolic link
26374 2005-12-23 Jackson Harper <jackson@ximian.com>
26376 * TabControl.cs: Give the panels focus, keyboard navigation is
26377 fixed so this works correctly now.
26378 - We need these key events also.
26379 * ToolBar.cs: Remove some of the poor mans double buffering.
26381 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
26383 * ComboBox.cs: The internal TextBox now returns the focus.
26385 2005-12-23 Jackson Harper <jackson@ximian.com>
26387 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
26389 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26391 * Control.cs: Removed debug code
26392 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
26395 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26397 * Control.cs: When creating the control, update the Z-order after
26398 all it's children are created, too. (Fixes nexxia not showing
26401 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26403 * Control.cs: Do not update the anchoring distances if layout is
26404 suspended, instead do it once layout is resumed
26406 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
26409 - After many hours of debugging, for both Jackson and
26410 myself, it turns out that it helps to set the parent of a control
26411 if you want to actually see it onscreen. In the spirit of that
26412 discovery, we're now setting the parent of the control and
26413 it's children when the control's handle is created. This fix
26414 will make Lutz Roeder's Reflector run happily.
26415 - now just creating the handle instead of the whole control when
26416 getting a graphics context for the control.
26418 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
26420 * ScrollableControl.cs: When calculating the canvas, don't consider
26421 the scrollbar widths. Instead, predict if horizontal scrollbar
26422 will affect canvas when deciding on vertical display and vice versa.
26424 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
26426 * RichTextBox.cs: Set default RTF font for documents that don't
26427 have a font table (Fixes #77076)
26429 2005-12-22 Jackson Harper <jackson@ximian.com>
26431 * TextBoxBase.cs: It's difficult to do, but you can have an empty
26432 clipboard. This prevents a NullRef in that case.
26433 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
26434 clipboard. PRIMARY is for the currently selected text only. (We
26435 should implement PRIMARY at some point.
26437 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26439 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
26440 a Unicode function with a structure that was defined in Ansi way.
26443 2005-12-21 Jackson Harper <jackson@ximian.com>
26445 * StatusBar.cs: Statusbar handles its fore/back colours on it's
26446 on. Because thats how it rolls. (and this avoids it using ambient
26448 * ThemeWin32Classic.cs: Use the proper back color for filling.
26449 * Menu.cs: Use the system menu bar color for drawing menu
26450 bars. Using the window back color will bring ambient colours into
26453 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
26455 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
26456 Bitmaps were created and not disposed.
26458 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26460 * Control.cs (CreateControl): Don't do anything if the control is
26461 already created, otherwise we'd fire the OnCreated event more than
26464 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26466 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
26467 will always match. Instead return -1. Fixes #76464.
26469 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26471 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
26472 neither the beginning nor the end of the line (Fixes bug #76479)
26474 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26477 - ControlNativeWindow.ControlFromHandle(): Now handling situation
26478 where handle is invalid
26479 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
26480 instead of slower linear search
26481 * NativeWindow.cs: Don't remove the window from the hashtable until
26482 after the driver has destroyed it (since the driver might use
26483 Control.FromHandle to lookup the control object
26484 * Hwnd.cs: Added DestroyPending property to track if a window is
26485 already destroyed as far as the driver is concerned and only hasn't
26486 yet notified the control
26488 - Activate(): Check if the window is still valid before using the
26490 - Implemented DestroyChildWindow() method to mark child windows as
26491 destroyed when a window is destroyed. This prevents situations
26492 where we might call an X method based on queued events for a
26493 window that already has been destroyed but we haven't yet pulled
26494 the destroy method from the queue.
26495 - Added a call to the new DestroyChildWindow() method to the drivers
26496 DestroyWindow code. Also now marking the destroyed window itself
26499 2005-12-20 Jackson Harper <jackson@ximian.com>
26502 * StatusBarPanel.cs: Don't calculate panel sizes on draw
26503 anymore. Just do them when needed, also track the rects of panels
26504 so that we can optimize refreshing more in the future.
26506 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
26508 * ColorDialog.cs: Fixed focus drawing in small color controls
26510 2005-12-19 Jackson Harper <jackson@ximian.com>
26512 * InternalWindowManager.cs:
26513 * MdiWindowManager.cs: Cleanup some coordinate system changes so
26514 moving windows works properly.
26516 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
26519 - Removed call to InitLayout() from SetBoundsCore(); doc says
26520 it's only called when a control is added to a container
26521 - Split InitLayout logic, moved to separate UpdateDistances() method
26522 since we need to perform those calculations more often than just
26523 when adding the control to a container. (Needed to fix #77022)
26524 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
26525 - Reduced the OnBindingContextChanged events count, don't send them
26526 unless the control is created, we still aren't totally matching
26527 MS, but I can't quite figure out some of their rules
26529 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26531 * ThemeClearlooks.cs: Corrected distance between ProgressBar
26534 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26536 * ThemeClearlooks.cs:
26537 - Updated ProgressBar drawing
26538 - Corrected drawing of ScrollBars and scroll buttons
26539 - Some temporary fixes for minor pixel artefacts
26541 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
26544 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
26545 cause events to be sent in the same order as MS does.
26546 - Added ChangeParent() method to trigger various OnXXXChanged events
26547 that need to be fired when a parent changes (This is a reworking
26548 of the patch from r54254, with the X11 errors fixed)
26549 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
26550 since on MS we get OnLayoutChanged events when calling Clear()
26551 - Changed Enabled property to consider parent state as well, if a
26552 parent is not enabled, the control will not be either
26553 - Changed Parent property to simply call Controls.Add() since that
26554 now does all the work required, this way we avoid code duplication
26555 - Threw in a few OnBindingsContextChanged calls to try and match
26556 when MS sends them. We seem to send a few too many, though.
26557 - Added call to CreateControl when adding the control to a parent.
26558 We were never calling CreateControl. Still needs some work, in
26559 some places we treat HandleCreated and ControlCreated as equal,
26561 - Removed obsolete commented out code from UpdateZOrder()
26563 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26565 * ThemeClearlooks.cs: Updated TrackBar drawing.
26567 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
26569 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
26571 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
26573 * FileDialog.cs: Add the Help button and the open readonly
26574 checkbox only if needed
26576 2005-12-16 Jackson Harper <jackson@ximian.com>
26578 * Control.cs: Make sure we have an active menu before trying to
26579 process commands on it. Prevents menu-less forms from crashing
26580 when Alt is pressed.
26581 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
26583 * RichTextBox.cs: Expand statement to help out gmcs and fix the
26586 2005-12-16 Jackson Harper <jackson@ximian.com>
26588 * InternalWindowManager.cs: Don't translate tool windows screen
26589 coordinates. This fixes windows 'bouncing' around when being moved.
26591 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26594 - MaxLength now treats 2^31-1 equal to unlimited length (this is
26595 not quite MS compatible, MS uses that number only for single line
26596 and 2^32-1 for multi-line, but I figure it won't hurt keeping
26598 - Now enforcing the MaxLength limit when entering characters
26599 - Added argument to internal Paste() method to track if it's called
26600 from programatically or via keyboard, since keyboard driven pastes
26601 need to enforce max-length
26602 - Added logic to Paste to only paste as many chars as MaxLength
26604 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
26606 - Added Length property to return number of characters in document
26607 - Added private CharCount property which only tracks actual chars
26608 in the document (no linefeeds) and fires event when CharCount
26610 - Added tracking of character count to all methods that alter it
26611 - Added LengthChanged event to allow applications to subscribe
26612 to any changes to the document
26614 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26617 - Removed local password_char field (moved to TextBoxBase)
26618 - Now setting the document's password var when password is
26621 - Added password_char field (needed here so MultiLine can
26623 - Added logic to MultiLine property setter to set the document's
26624 variable when password display is allowed
26625 - Removed debug code and made some debug code conditional
26627 - Added RecalculatePasswordLine() method to handle special password
26629 - Added PasswordChar property, also added related tracking vars
26630 - Draw() method now uses local text var for grabbing text to draw,
26631 this var is set to line.text unless we're doing password display,
26632 then it is set to the pre-generated all-password-chars line
26633 - Added calling RecalculatePasswordLine() method for password lines
26635 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26638 - Added Reparented property to allow tracking of Window Manager
26639 reparenting actions (which affect X/Y calculations of toplevel
26641 - Made ToString() print window handles in hex
26643 - AddConfigureNotify(): Now uses reparented state off Hwnd to
26644 determine if X/Y needs offsetting
26645 - AddConfigureNotify(): Fixed offset calculations
26646 - Now adds ReparentNotify messages into the queue
26647 - Now processes ReparentNotify messages and causes a
26648 WM_WINDOWPOSCHANGED message to be sent upstream if a window
26649 is reparented (as most likely it's X/Y coordinates are changed
26652 2005-12-14 Jackson Harper <jackson@ximian.com>
26654 * XplatUIX11.cs: Tool windows still need to respek focus.
26656 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26658 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
26659 have a working release
26661 2005-12-13 Jackson Harper <jackson@ximian.com>
26663 * Form.cs: Update styles after setting the border style regardless
26664 of whether or not the window is using a window manager.
26666 2005-12-13 Jackson Harper <jackson@ximian.com>
26668 * Form.cs: We now hook into an internal window manager instead of just an
26669 MDI subsystem, this is so we can have properly behaving tool windows.
26670 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
26671 * InternalWindowManager.cs: New internal class that acts as a
26672 window manager for tool windows and as a base for mdi windows.
26673 * MdiWindowManager.cs: New class that acts as a window manager for
26676 2005-12-12 Jackson Harper <jackson@ximian.com>
26678 * Control.cs: Updates so we match behavoir for for implicit
26679 controls. Fixes explosions in MDI.
26681 2005-12-12 Jackson Harper <jackson@ximian.com>
26683 * Control.cs: Implement Invalidate (Region).
26685 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
26688 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
26689 the same events as MS does. MS fires events for each property
26690 except, for unknown reasons, Cursor, when the control is reparented.
26691 I can't seem to totally match add/remove since MS also fires some
26692 VisibleChanged events, which makes no sense. Consolidated the
26693 parenting code into a separate method so it can be called from
26694 both Add and Remove. set_Parent no longer needs any special logic
26695 as it calls the parent's add method which implicitly fires
26697 - Removed some obsolete code and debug output
26698 - Enabled state is inherited from parents, if this is enabled
26700 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26702 * Form.cs: Removed commented out code
26704 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26707 - Added internal version of Invoke, with additional argument
26708 indicating if we're calling it from a Dispose() handler. That
26709 way we can avoid BeginInvoke throwing an exception if we're
26710 calling for an already destroyed window.
26711 - Added a dispose argument to BeginInvokeInternal, and made the
26712 check if a valid window handle chain exists conditional on
26713 it not being a dispose call
26714 - Removed code in DestroyHandle to destroy our children. Since we
26715 now handle the WM_DESTROY message we will catch all our children
26717 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
26719 - Added a field to track the application context of the form.
26720 - No need to set closing variable as response to WM_CLOSE, instead
26721 we destroy the window. We also call PostQuitMessage if the form
26722 has an application context (which makes it the main app form,
26723 which, when closed terminates the app)
26725 - Dropped Exit() method, it's naming was confusing
26726 - Added PostQuitMessage() which causes GetMessage to return false
26727 once the message queue is empty
26728 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
26730 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
26731 no longer a valid XplatUI method, but left it in since it's used
26732 internally. Added empty PostQuitMessage() method.
26733 * MenuAPI.cs: Replaced call to Exit() with call to
26734 PostQuitMessage, even though this is probably no longer needed.
26735 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
26736 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
26738 - Replaced call to XplatUI.Exit() with PostQuitMessage()
26739 - Removed old debug code that would call XplatUI for exception
26740 display, enabled standard exception handling (Still not enabled
26741 though, until NativeWindow's ExternalExceptionHandler define
26744 - Added internal method to allow control to update NativeWindow
26745 after a window has been destroyed
26746 - Added handling of already destroyed windows when calling i
26748 - Added removal of handle from list on ReleaseHandle
26750 - Dropped GetMessageResult var and related code
26751 - Added PostQuitState to field to track if PostQuitMessage has been
26753 - Dropped Exit() method
26754 - Added PostQuitMessage() method
26755 - GetMessage now will return false if PostQuitState is set and no
26756 more messages are in the queue.
26757 - Expose handler will no longer generate WM_PAINT messages if we are
26758 in PostQuitState since it's very likely any windows have already
26759 been destroyed, and since Hwnd won't get updated until we have
26760 processed the DestroyNotify we'd be causing X errors.
26762 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26764 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
26765 Thanks to Mike for pointing out the err of my ways.
26767 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26769 * Control.cs(PreProcessMessage): Moved menu handling back, but
26770 after all other key handling, to match MS (who handles Menu in
26772 * Menu.cs (WndProc): Removed my brainfart
26774 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26776 * Control.cs(PreProcessMessage): Removed special menu handling
26777 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
26779 2005-12-07 Mike Kestner <mkestner@novell.com>
26781 * Control.cs : special case SYSKEYUP so that we can adjust keynav
26782 state according in tracker.
26783 * Menu.cs : promote tracker field to base class and provide a tracker
26784 lookup capability. Add/Remove shortcuts dynamically if the top menu
26785 has a tracker. Unparent items that are removed from the collection.
26786 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
26787 * Theme*.cs: add always_show_hotkeys field to support configurability
26788 of mnemonic display. win32 doesn't show mnemonics until Alt is
26791 2005-12-07 Jackson Harper <jackson@ximian.com>
26793 * MdiChildContext.cs: Use Control.ResetCursor.
26794 * Control.cs: ResetCursor needs to set the property so that the
26795 correct XplatUI call gets made.
26797 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26799 * Control.cs: More fixes to make our key events match MS. We
26800 were not setting the modifier state on KeyData, and we were
26801 not generating any events when Alt was pressed with a key
26802 since handling of WM_SYSxxx was missing for the OnKey methods.
26804 2005-12-07 Jackson Harper <jackson@ximian.com>
26806 * MdiChildContext.cs: reenable the sizing code.
26807 - When the mouse leaves a window reset its cursor.
26809 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26811 * ThemeClearlooks.cs: Reflect latest Hwnd changes
26813 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26815 * Hwnd.cs: Now using the theme 3d bordersize to calculate
26816 widths of Fixed3D borders
26818 2005-12-07 Jackson Harper <jackson@ximian.com>
26820 * MdiClient.cs: Fix warnings. Earn Mike's love.
26822 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26824 * ThemeClearlooks.cs:
26825 - Adjusted mouse over button color
26826 - Added first parts of CheckBox drawing
26827 - Added correct color for selected text background
26828 - Fixed ComboBox drawing
26829 - Added CPDrawBorder3D and CPDrawBorder
26831 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26833 * XplatUIX11.cs: Added call to XBell for AudibleAlert
26835 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26837 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26838 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
26839 alert users via sound. We could add an enum arg with different
26840 types of alerts in the future
26842 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26844 * Control.cs: Fix behaviour problems pointed out by Mike
26846 2005-12-05 Mike Kestner <mkestner@novell.com>
26848 * StatusBarPanel.cs: add Invalidate method and hook it into all the
26849 prop setters. Calls parent.Refresh for now, but could be maybe be
26850 optimized with an internal method on StatusBar at some point.
26853 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
26855 * RichTextBox.cs: Implemented get_SelectionColor
26857 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
26859 * ThemeClearlooks.cs:
26860 - Removed dead code
26861 - Draw black button border only if button is Form.AcceptButton
26862 - Draw correct button color for pressed RadioButton if the mouse
26863 has entered the button
26864 - Updated ProgressBar drawing!
26865 - Updated CPDrawSizeGrip drawing
26866 - Updated StatusBarPanel drawing
26868 2005-12-05 Mike Kestner <mkestner@novell.com>
26870 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
26871 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
26873 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
26875 * ThemeClearlooks.cs: Initial check-in, activate with
26876 export MONO_THEME=clearlooks
26877 * ThemeEngine.cs: Added ThemeClearlooks
26879 2005-12-03 Mike Kestner <mkestner@novell.com>
26881 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
26884 2005-12-02 Jackson Harper <jackson@ximian.com>
26886 * Form.cs: If the child form has no menu the default main menu is
26887 used as the active menu.
26889 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26891 * ListBox.cs: Check if any items exist before trying to resolve
26892 coordinates into items
26894 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26896 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
26897 as the second color for the background hatch
26899 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26901 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
26902 * RichTextBox.cs: FormatText position arguments are 1-based, now making
26903 sure that what we pass to FormatText is always 1-based. Fixes #76885
26905 2005-11-29 Miguel de Icaza <miguel@novell.com>
26907 * NumericUpDown.cs (EndInit): When we are done initializing,
26908 reflect any updates on the UI.
26910 2005-12-02 Jackson Harper <jackson@ximian.com>
26912 * ImplicitHScrollBar.cs:
26913 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
26914 their container controls.
26915 * TreeView.cs: Use the new implicit scrollbars.
26917 2005-12-02 Jackson Harper <jackson@ximian.com>
26919 * TreeView.cs: Make top_node internal so the TreeNodeCollections
26921 * TreeNodeCollection.cs: If we remove the topnode we need to
26922 update topnode to the next node in line.
26923 - When clearing nodes go through the same process as removing
26924 them, so they get depareneted and checked if they are top node.
26926 2005-12-01 Jackson Harper <jackson@ximian.com>
26928 * TreeView.cs: When imagelists are used the image area is
26929 selectable as well as the text.
26930 - If there are no selected nodes select the first one.
26931 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
26932 so don't do it more then we need to.
26934 2005-12-01 Jackson Harper <jackson@ximian.com>
26936 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
26937 that arrows can be scaled.
26939 2005-12-01 Jackson Harper <jackson@ximian.com>
26941 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
26942 fail. Patch by Dieter Bremes
26944 2005-11-30 Jackson Harper <jackson@ximian.com>
26946 * Form.cs: Property is 2.0 only
26947 * PrintDialog.cs: Signature fix.
26949 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26952 - No longer artificially moves text 2 pixels down (now that we have
26953 borders this is no longer needed)
26954 - Added calcs for left, hanging and right indent
26956 2005-11-23 Mike Kestner <mkestner@novell.com>
26958 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
26960 2005-11-30 Jackson Harper <jackson@ximian.com>
26962 * MdiChildContext.cs: Set the cloned menus forms, as these don't
26963 get cloned as part of CloneMenu ().
26964 * Menu.cs: Make sure the parent of the items get set correctly
26965 when they are added. And the owners are notified of the changes.
26966 * Form.cs: Create an ActiveMenu property, so that when MDI is used
26967 we can change the menu being displayed/handled by the form without
26968 changing the menu assosciated with the form.
26969 - Don't let Mdi children draw/handle menus.
26971 2005-11-30 Jackson Harper <jackson@ximian.com>
26973 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
26974 a MenuChanged event. Just to make the API a little more
26977 * MenuItem.cs: Use the new OnMenuChanged
26978 * MdiChildContext.cs: Handle menu merging.
26979 * Form.cs: Implement MergedMenu.
26981 2005-11-30 Jackson Harper <jackson@ximian.com>
26983 * Menu.cs: We were misusing Add. Add goes behind the specified
26984 index according to the docs, and does not replace the specified
26985 index. So I added an Insert method.
26987 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26989 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
26990 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
26992 * RichTextBox.cs: Added calls to base for DnD events
26994 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
26997 - Fixed drag-selection related crash; style fixes
26998 - Implemented undo class
26999 o Implemented method to capture document state for specified
27000 range in document tree
27001 o Implemented method to restore captured document state
27002 o Implemented cursor tracking
27003 o Implemented basic undo stack
27004 - Added undo cursor tracking to methods altering cursor location
27005 - Added undo tracking to selection deletion (still missing
27006 other text-altering hookups)
27008 - Added SelectionLength property
27009 - Implemented CanPaste()
27010 - Implemented Paste()
27011 - Added missing protected methods
27012 - Fixed RTF->Document conversion; now uses font index 0 and color
27013 index 0 as the default font for the parsed text
27014 - Fixed RTF<->Document font size translation
27015 - Fixed RTF generation, now properly handles cross-tag boundaries
27016 for single line selection
27017 - No longer always appends blank line to generated RTF
27019 - Added missing attributes
27020 - Hooked up undo-related methods
27022 - Implemented Copy()
27023 - Implemented Paste()
27024 - Implemented Cut()
27025 - Fixed caret mis-behaviour on backspace across line-boundaries
27027 2005-11-29 Jackson Harper <jackson@ximian.com>
27029 * MdiClient.cs: Add a method for activating mdi children. Very
27030 basic right now. I imagine someday it might need more girth.
27031 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
27032 children windows names are added to the menu item.
27033 * ThemeWin32Classic.cs: Draw the arrow if the item is an
27034 mdilist. This happens regardless of whether or not there are any
27035 mdi windows to see in the list, and according to my tests happens
27036 before the items are even added. Also happens if there isn't even
27037 an mdi client to get windows from.
27039 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
27041 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
27042 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
27044 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
27046 * DataGridTableStyle.cs:
27047 - Create always the styles for the missing columns even if they are
27048 provided by the user (not default table style)
27051 - Fixes SetDataBinding (always re-attach source)
27052 - Fixes SetNewDataSource (only clear styles if they are not for
27054 - Expands OnTableStylesCollectionChanged to handle style refresh
27055 and remove properly
27057 2005-11-29 Jackson Harper <jackson@ximian.com>
27059 * FileDialog.cs: Implement missing bits, remove some dead
27061 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
27062 creation of the panel so that the options set on the dialog are
27063 seen when the panel is created.
27064 * TreeView.cs: raise a click when items are clicked.
27066 2005-11-29 Jackson Harper <jackson@ximian.com>
27068 * MdiClient.cs: Pass some signature methods through to base.
27070 2005-11-28 Jackson Harper <jackson@ximian.com>
27072 * ListView.cs: Raise the click event when items are clicked.
27074 2005-11-28 Jackson Harper <jackson@ximian.com>
27076 * MdiClient.cs: Make this algorithm even more beautiful. And fix
27079 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
27081 * ThemeNice.cs: - Removed 1 pixel bitmaps
27082 - Use SmoothingMode.AntiAlias where it makes sense
27083 (ScrollButton arrow for example)
27084 - Enhanced Button focus drawing
27085 - Fixed ComboBox drawing (no artefacts anymore, focus
27086 rectangle is back again, reduced size of ComboButton, etc.)
27087 - Fixed RadioButton focus drawing for Appearence.Button
27088 - Slight ScrollButton redesign
27089 - Some LinearGradientBrush size fixes
27090 - GroupBoxes have now rounded edges
27091 - Fixed StatusBar drawing
27093 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
27095 * ThemeNice.cs: - Remove dead code
27096 - use correct background colors for menus, etc.
27097 - Fake pixel drawing with 1 pixel bitmaps
27099 2005-11-24 Jackson Harper <jackson@ximian.com>
27101 * MdiClient.cs: Size the scrollbars when resizing the window.
27102 - Resize the maximized windows when the client is resized
27103 * Form.cs: Make the child context available
27105 2005-11-23 Jackson Harper <jackson@ximian.com>
27107 * MdiChildContext.cs: Don't size windows if they are maximized.
27109 2005-11-23 Mike Kestner <mkestner@novell.com>
27111 * ContextMenu.cs: use MenuTracker.
27112 * Control.cs: remove menu handle usage.
27113 * Form.cs: remove menu handle usage.
27114 * Hwnd.cs: remove menu handle usage.
27115 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
27116 motion and clicks to the new Tracker handlers.
27117 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
27119 * MenuAPI.cs: refactored to combine popup and menubar event handling.
27120 Killed the MENU and MENUITEM data types and associated collections
27121 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
27122 MenuTracker class that exposes the leftovers from the old MenuAPI
27123 static methods. Restructured Capture handling so that only one grab is
27124 done for the entire menu hierarchy instead of handing off grabs to
27125 submenus. Tracker now has an invisible control to Capture when active.
27126 * MenuItem.cs: add sizing accessors, kill Create
27128 * Theme.cs: remove menu handle and MENU(ITEM) usage.
27129 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
27130 MENU(ITEM). remove menu handle usage, use Menu directly.
27131 * XplatUIDriver.cs: remove menu handle usage.
27132 * XplatUIOSX.cs: remove menu handle usage.
27133 * XplatUIWin32.cs: remove menu handle usage.
27134 * XplatUIX11.cs: remove menu handle usage.
27136 2005-11-22 Jackson Harper <jackson@ximian.com>
27138 * Hwnd.cs: Don't compute the menu size for
27139 DefaultClientRectangle.
27140 - Reenable menu sizes being computed for GetClienRectangle.
27141 * Form.cs: Remove comment of trechery
27143 2005-11-22 Jackson Harper <jackson@ximian.com>
27145 * Hwnd.cs: The adjustments for the menu bar are made when it is
27146 attached to the form.
27148 2005-11-19 Jackson Harper <jackson@ximian.com>
27150 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
27151 (just like on windows).
27153 2005-11-19 Jackson Harper <jackson@ximian.com>
27155 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
27156 use real buttons anymore because they are in non client area. The
27157 one TODO here is that I need to somehow invalidate a section of
27158 the non client area.
27160 2005-11-18 Jackson Harper <jackson@ximian.com>
27162 * Control.cs: Put the enum check back in now that MDI doesnt have
27163 to use this to set border styles.
27164 * Form.cs: Only set mdi child windows borders if the handle has
27166 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
27167 this directly on to the driver.
27168 - Get the move start position before adjusting for the titlebar
27169 height, this fixes the windows "skipping" when they are first
27172 2005-11-18 Jackson Harper <jackson@ximian.com>
27174 * XplatUIX11.cs: Just compute the mdi borders separately as they
27175 don't totally match up with normal form borders.
27177 2005-11-18 Jackson Harper <jackson@ximian.com>
27179 * Control.cs: Set WS_ styles for borders, so that the driver does
27180 not have to retrieve the control instance to figure out what kind
27181 of borders it should have.
27182 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
27183 driver can know its an mdi child easily.
27184 * XplatUIX11.cs: Get the border styles and whether the window is
27185 MDI from the Styles and ExStyles params instead of having to get a
27186 control. This prevents a chicken and egg problem.
27188 2005-11-18 Jackson Harper <jackson@ximian.com>
27190 * MdiClient.cs: Fix typo so scrollbars show up correctly.
27192 2005-11-18 Jackson Harper <jackson@ximian.com>
27194 * MdiClient.cs: Calculate when to add and remove scrollbars
27196 * MdiChildContext.cs: Adjust the y position to take the titlebar
27198 - No height for FormBorderStyle.None
27200 2005-11-18 Jackson Harper <jackson@ximian.com>
27202 * Control.cs: Allow non enum values to be used for
27203 InternalBorderStyle. MDI does this to set a special border style.
27204 - New utility methods for converting points to/from client coords
27205 - Add the newly created control to the Controls collection before
27206 updating its style. This way UpdateStyle can walk the control
27207 heirarchy to find the control if needed.
27208 so I don't need to create a new Point object all the time.
27209 * Form.cs: Let MDI windows handle their border styles.
27210 - Set styles on MDI windows so the correct title style is derived.
27211 * MdiChildContext.cs: Move all the painting and window handling
27212 into the non client area.
27213 - Use correct sizing and put correct buttons on frames based on
27214 the FormBorderStyle.
27215 - Notify the mdi client about scrolling
27216 - Need to handle the buttons ourselves now, because they are all
27217 in non client areas and we can't add controls there.
27218 * MdiClient.cs: Halfway to scrolling, this implementation is
27219 somewhat broken though, we need to check to make sure other
27220 windows aren't causing scrolling before removing the bars. Also
27221 the bars need to be drawn on top, maybe I can switch implicit
27222 controls to be on top.
27223 * Hwnd.cs: caption_height and tool_caption_height are now
27224 properties of an hwnd, this way they can be set by the driver
27225 based on the type of window they are. In X11 the window manager
27226 handles the decorations so caption_height is zero unless its an
27228 - Add 3 pixel borders for MDI windows (0xFFFF).
27229 - Get rid of some code duplication, have DefaultClientRectanle
27230 just call GetClientRectangle.
27231 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
27233 - Set border styles differently for mdi windows.
27234 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
27237 2005-11-15 Mike Kestner <mkestner@novell.com>
27239 * Menu.cs: when adding an item to the collection, if item is already
27240 parented, remove it from the parent.
27242 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
27244 * X11DesktopColors.cs: Added KDE support
27246 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
27249 - Clipboard methods now can translate Rtf format
27250 - No longer removes clipboard contents whenever a new format is added
27251 to allow placing multiple formats on the clipboard
27252 * Clipboard.cs: Clipboard now supports getting a IDataObject and
27253 will place all formats contained in it onto the clipboard. Also
27254 now cleans the clipboard before placing a new object onto it
27256 - Implemented set_Rtf
27257 - Implemented set_SelectedRtf
27258 - Created InsertRTFFromStream() method to allow single code base
27259 for all properties and methods that insert RTF into document
27260 - Removed debug output
27262 - Fixed Delete(int) to fix up line numbers
27263 - Fixed ReplaceSelection to combine start and end line
27264 - Fixed serious DeleteChars bug that would leave the document tree
27266 - Improved DumpTree with several logic checks to detect broken
27268 - Removed debug lines
27269 - Fixed Caret.WordForward/WordBack moving code, now always also
27270 updates caret.tag (fixes crash when word-selecting across tag
27271 boundaries via keyboard)
27272 - Added Insert() method for inserting multiline text into documents
27273 - Fixed DeleteChars() calculation errors that would cause a broken
27274 tag chain with multiple tag lines
27275 - DeleteChars() no longer crashes on multi-tag lines if not all tags
27276 - Split() no longer moves caret if split is at caret location
27277 - ReplaceSelection() now updates the cursor and re-displays it
27278 - ReplaceSelection() now uses new Insert() method to avoid code
27280 - FormatText() can now handle formatting partial lines
27282 - Append now uses new TextControl.Insert() method (this avoids
27284 - Implemented Ctrl-X (Cut) (
27285 - Implemented Ctrl-C (Copy)
27286 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
27287 regeneration when pasting text; roundtripping Copy&Paste within
27288 edit control still fails due to some calculation bugs in GenerateRTF)
27289 - The Delete key will now remove the current selection if it is visible
27290 * TextBox.cs: Removed debug lines
27291 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
27292 driver to be initialized and can't therefore be done via a static ctor)
27294 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
27296 * TextControl.cs: Added backend code for finding char arrays and strings
27298 - Added mouse wheel scroll support
27299 - Added support for VScroll and HScroll events
27301 - Implemented all seven Find() variants
27302 - Implemented GetCharFromPosition()
27303 - Implemented GetCharIndexFromPosition()
27304 - Implemented GetLineFromIndex()
27305 - Implemented GetPositionFromCharIndex();
27306 - Implemented SaveFile for PlainText and UnicodeText
27307 - Fixed set_Font, now setting a new font applies that font to
27309 - Implemented generic Document to RTF converter
27310 - Implemented SaveFile for RichText format (still missing unicode
27311 conversion for non-ansi chars)
27312 - Implemented get_Rtf
27313 - Implemented get_SelectedRtf
27315 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
27317 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
27318 to allow any captures to be released before triggering OnClick. This
27319 way a click handler may capture the mouse without interference.
27320 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
27321 This way we send them even though X may not allow a grab (if the window
27322 isn't visible, for example)
27324 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
27326 * DataGridViewRowEventArgs.cs: DataGridView implementation
27327 * DataGridViewElement.cs: DataGridView implementation
27328 * DataGridViewComboBoxCell.cs: DataGridView implementation
27329 * DataGridViewDataErrorContexts.cs: DataGridView implementation
27330 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
27331 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
27332 * ImageLayout.cs: DataGridView implementation
27333 * DataGridViewComboBoxColumn.cs: DataGridView implementation
27334 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
27335 * DataGridViewSelectionMode.cs: DataGridView implementation
27336 * IDataGridViewEditingControl.cs: DataGridView implementation
27337 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
27338 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
27339 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
27340 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
27341 * DataGridViewColumnSortMode.cs: DataGridView implementation
27342 * DataGridView.cs: DataGridView implementation
27343 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
27344 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
27345 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
27346 * Padding.cs: DataGridView implementation
27347 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
27348 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
27349 * DataGridViewRowEventHandler.cs: DataGridView implementation
27350 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
27351 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
27352 * DataGridViewButtonCell.cs: DataGridView implementation
27353 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
27354 * DataGridViewEditMode.cs: DataGridView implementation
27355 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
27356 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
27357 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
27358 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
27359 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
27360 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
27361 * DataGridViewCellEventHandler.cs: DataGridView implementation
27362 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
27363 * DataGridViewCellStyleConverter.cs: DataGridView implementation
27364 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
27365 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
27366 * DataGridViewColumnEventArgs.cs: DataGridView implementation
27367 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
27368 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
27369 * QuestionEventArgs.cs: DataGridView implementation
27370 * IDataGridViewEditingCell.cs: DataGridView implementation
27371 * DataGridViewTriState.cs: DataGridView implementation
27372 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
27373 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
27374 * DataGridViewColumnCollection.cs: DataGridView implementation
27375 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
27376 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
27377 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
27378 * DataGridViewColumn.cs: DataGridView implementation
27379 * DataGridViewCellBorderStyle.cs: DataGridView implementation
27380 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
27381 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
27382 * DataGridViewRow.cs: DataGridView implementation
27383 * DataGridViewImageCellLayout.cs: DataGridView implementation
27384 * DataGridViewImageCell.cs: DataGridView implementation
27385 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
27386 * DataGridViewCheckBoxCell.cs: DataGridView implementation
27387 * DataGridViewHeaderCell.cs: DataGridView implementation
27388 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
27389 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
27390 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
27391 * DataGridViewTextBoxColumn.cs: DataGridView implementation
27392 * QuestionEventHandler.cs: DataGridView implementation
27393 * DataGridViewCellStyleScopes.cs: DataGridView implementation
27394 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
27395 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
27396 * DataGridViewCell.cs: DataGridView implementation
27397 * DataGridViewCellEventArgs.cs: DataGridView implementation
27398 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
27399 * DataGridViewCellStyle.cs: DataGridView implementation
27400 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
27401 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
27402 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
27403 * TextFormatFlags.cs: DataGridView implementation
27404 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
27405 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
27406 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
27407 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
27408 * DataGridViewButtonColumn.cs: DataGridView implementation
27409 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
27410 * HandledMouseEventArgs.cs: DataGridView implementation
27411 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
27412 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
27413 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
27414 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
27415 * DataGridViewRowCollection.cs: DataGridView implementation
27416 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
27417 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
27418 * DataGridViewHitTestType.cs: DataGridView implementation
27419 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
27420 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
27421 * DataGridViewColumnEventHandler.cs: DataGridView implementation
27422 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
27423 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
27424 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
27425 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
27426 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
27427 * DataGridViewContentAlignment.cs: DataGridView implementation
27428 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
27429 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
27430 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
27431 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
27432 * DataGridViewPaintParts.cs: DataGridView implementation
27433 * DataGridViewCellCollection.cs: DataGridView implementation
27434 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
27435 * DataGridViewImageColumn.cs: DataGridView implementation
27436 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
27437 * DataGridViewElementStates.cs: DataGridView implementation
27438 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
27439 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
27440 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
27441 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
27442 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
27443 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
27444 * DataGridViewRowHeaderCell.cs: DataGridView implementation
27445 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
27446 * DataGridViewTextBoxCell.cs: DataGridView implementation
27447 * DataGridViewBand.cs: DataGridView implementation
27448 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
27449 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
27450 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
27451 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
27452 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
27453 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
27454 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
27455 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
27456 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
27457 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
27458 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
27460 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
27462 * ThemeWin32Classic.cs:
27463 - Draw the outside focus rectangle around buttons
27464 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
27465 doesn't use end caps for every dash of a line anymore. This
27466 workaround ignores the forecolor.
27468 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
27470 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
27473 2005-11-07 Jackson Harper <jackson@ximian.com>
27475 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
27477 2005-11-07 Jackson Harper <jackson@ximian.com>
27479 * ScrollableControl.cs: Calculate the maximum and change vars
27480 (more) correctly so that scrollbars appear as a sensible size.
27482 2005-11-04 Jackson Harper <jackson@ximian.com>
27484 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
27486 * TreeView.cs: When the tree is sorted null out the top_node so
27487 that it is recalculated.
27488 - Use dotted lines instead of dashed lines to match MS better.
27490 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
27493 - Implements key search for items. Useful when browsing files with FileDialog
27494 - When changing view mode or when clear the items reset scrollbar positions
27496 2005-11-04 Jackson Harper <jackson@ximian.com>
27498 * CurrencyManager.cs: Implement the MetaDataChanged event, the
27499 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
27500 as to what the method may do as there is no real way of creating a
27501 derived CurrencyManager and calling the method.
27503 2005-11-03 Jackson Harper <jackson@ximian.com>
27505 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
27506 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
27507 method which seems to just be used internally to refresh the tabs.
27509 2005-11-03 Jackson Harper <jackson@ximian.com>
27511 * TabControl.cs: Implement the remove method. Fix some broken
27514 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27516 * DateTimePicker.cs:
27517 - Added missing DateTimePickerAccessibleObject class
27518 - Added missing events
27519 - Added OnFontChanged method
27520 * Form.cs: Added missing attributes
27521 * TreeView.cs: Added missing attributes
27523 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27525 * GridItemCollection.cs: Fix signatures
27527 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27529 * XplatUI.cs: Updated build rev/date
27530 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
27531 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
27532 * Application.cs: Trigger context-specific ExitThread events
27534 2005-11-03 Jackson Harper <jackson@ximian.com>
27538 * GridTableStylesCollection.cs:
27543 * MonthCalendar.cs: Signature fixes
27545 2005-11-03 Jackson Harper <jackson@ximian.com>
27547 * TreeNodeCollection.cs: Remove should not be virtual.
27548 * TreeView.cs: Implement the last of the missing methods.
27550 2005-11-03 Jackson Harper <jackson@ximian.com>
27552 * TreeNodeConverter.cs: Implement to get off my class-status back.
27554 2005-11-03 Jackson Harper <jackson@ximian.com>
27556 * TreeView.cs: Hookup the bits for drag and drop.
27557 * TreeNode.cs: Don't cache the tree_view or index anymore, now
27558 that nodes can be moved from tree to tree easily this just causes
27559 all sorts of problems.
27560 * TreeNodeCollection: Don't need to give treenodes an index and
27561 treeview anymore when they are added, these are computed on the
27562 fly. Also make sure to remove a node before its added.
27564 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27567 - Added CaretSelection enum
27568 - Added comparison methods to Marker struct, makes selection code
27570 - Added SelectionStart and SelectionEnd as 'moveable' location for
27571 the CaretDirection enum and handler
27572 - Added selection_prev variable to track optimized invalidation for
27573 word and line selection
27574 - Added SelectionVisible property (returns true if there is a valid
27576 - Switched CaretHasFocus to only display the caret if there is no
27578 - Avoiding StringBuilder.ToString to retrieve a single char, instead
27579 using the direct character index; should be much faster
27580 - Added various conditional debug statements
27581 - Fixed invalidation calculation for selection ranges
27582 - Added ExpandSelection() method to support word and line selection
27583 - Switched SetSelectionToCaret to use new Marker compare overloads
27584 - Added central IsWordSeparator() method to determine word
27585 separators/whitespace and FindWordSeparator() to streamline common
27586 usage of IsWordSeparator()
27588 - Removed unneeded grabbed variable, it was just mirroring
27590 - No longer firing OnTextChanged event when Text setter is called,
27591 since the base will fire the event for us
27592 - Added handling of Ctrl-Up/Down selection
27593 - Added handling of Shift-Cursorkey selection
27594 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
27596 - Added handling of Shift and Ctrl-Shift-Home/End selection
27597 - Removed some debug output
27598 - Added handling for single/double/tripple-click to place caret/
27599 select word/select line respectively (Fixes bug #76031)
27600 - Added support for drag expansion of word/line selection
27601 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
27604 2005-11-02 Jackson Harper <jackson@ximian.com>
27606 * X11Dnd.cs: If the drag is going to and from a MWF window just
27607 copy the data instead of sending it out through the X Selection
27610 2005-11-02 Jackson Harper <jackson@ximian.com>
27613 * XplatUIX11.cs: When in a drag we don't want motion notify
27614 messages to get passed on to the other controls. This prevents
27615 mouse move messages from showing up in the drag source.
27617 2005-11-02 Jackson Harper <jackson@ximian.com>
27619 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
27620 the correct button is release to end a drag.
27621 * XplatUIX11.cs: Make the button state internal so the drag system
27622 can access it. Dragging needs to know about all button releases,
27623 not just left button.
27625 2005-11-02 Miguel de Icaza <miguel@novell.com>
27627 * Form.cs (Icon): If the icon is null, reset the icon to the
27630 * Cursor.cs: When writing the AND-mask bitmap do not include the
27631 number of colors, but hardcode those to two (black and white),
27632 fixes the loading of color cursors (Paint Dot Net).
27634 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
27635 turn off autoscaling.
27637 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
27639 2005-11-02 Jackson Harper <jackson@ximian.com>
27641 * X11Dnd.cs: Make sure to send a status message if the pointer
27642 enters a control that can not accept a drop, otherwise the cursor
27643 isn't updated correctly. Also tried to compress the lines of code
27646 2005-11-02 Jackson Harper <jackson@ximian.com>
27648 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
27649 set actions correctly. This isn't perfect as XDND and win32 have
27650 some differences on how you allow actions. I'll clear this up by
27651 adding a path for drag from MWF to MWF windows.
27652 * XplatUIX11.cs: Hook into the dnd system.
27654 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
27656 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
27657 previously shown but they are no longer need it. Very obvious when
27658 browsing files with FileDialog.
27660 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
27662 * Control.cs: We always need to call OnPaintBackground. We pretty much
27663 ignore AllPaintingInWmPaint and always do the painting there, whether
27664 it's set or not, since we always ignore the WM_ERASEBKGND message
27665 (which we don't generate on X11). This fixes #76616.
27666 * Panel.cs: Removed unneeded background painting. This happens properly
27667 in Control.cs already
27669 2005-10-31 Mike Kestner <mkestner@novell.com>
27671 * Menu.cs: Add items to collection before setting their index.
27672 * MenuItem.cs : add range checking with ArgumentException like MS.
27675 2005-10-31 Jackson Harper <jackson@ximian.com>
27677 * ListBox.cs: Invalidate if the area is visible at all not just
27678 contained in the visible rect. Fixes unselection of semi visible
27681 2005-10-31 Jackson Harper <jackson@ximian.com>
27683 * Control.cs: Consistently name the dnd methods. Make them
27684 internal so we can override them to match some MS behavoir
27686 * Win32DnD.cs: Use the new consistent names.
27688 2005-10-31 Jackson Harper <jackson@ximian.com>
27690 * TreeView.cs: Don't draw the selected node when we lose focus.
27692 2005-10-31 Jackson Harper <jackson@ximian.com>
27694 * X11Dnd.cs: We still need to reset the state even though a full
27695 reset isn't being done, otherwise status's still get sent all over
27698 2005-10-31 Jackson Harper <jackson@ximian.com>
27700 * Control.cs: Make the dnd_aware flag internal so the dnd
27701 subsystem can check it. Catch exceptions thrown in dnd handlers to
27703 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
27704 * X11Dnd.cs: Handle null data in the converters. Set the XDND
27705 version when sending a XdndEnter. Use the control/hwnd dnd_aware
27706 flags to reduce the number of dnd enters/status's sent.
27708 2005-10-31 Jackson Harper <jackson@ximian.com>
27710 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
27712 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
27714 * PictureBox.cs: Fixes 76512
27716 2005-10-28 Jackson Harper <jackson@ximian.com>
27718 * X11Dnd.cs: Early implementation to support winforms being a drag
27719 source for data on X11. Also restructured the converters so they
27720 can go both ways now.
27721 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
27723 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
27725 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
27728 2005-10-27 Jackson Harper <jackson@ximian.com>
27730 * TreeNode.cs: Implement serialization so my DnD examples will work.
27732 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
27734 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
27735 TreeView.cs: Don't dispose objects that are not owned.
27737 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
27739 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
27740 should retrieve the current cursor and report that, but XplatUI
27741 doesn't (yet) have an interface for that (and I'm not sure I even
27743 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
27744 until any message loop processing is done (and the WM_SETCURSOR
27745 replaces the cursor to the proper one)
27747 - Fixed override behaviour, we can't set the cursor globally on X11,
27748 just for our windows.
27749 - Invalidating the System.Drawing X11 display handle when we are
27751 * Control.cs: Fix to make csc happy
27753 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
27756 - get_Text: Add last line (without trailing newline) to returned
27757 value (Fixes 76212)
27758 - get_TextLength: Count last line in returned length
27759 - ToString: Call Text property instead of duplicating code
27761 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
27763 * ImageList.cs: Dispose ImageAttributes objects.
27765 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27767 * ImageList.cs: Use attribute constructors with less arguments where
27770 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27772 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
27773 Use typeof instead of strings when assembly is referenced. Added
27774 some more comments.
27776 2005-10-21 Jackson Harper <jackson@ximian.com>
27778 * ListView.cs: Raise a double click event. Also tried to somewhat
27779 fix when the selectedindexchanged event is raised. Its still
27782 2005-10-21 Jackson Harper <jackson@ximian.com>
27784 * TreeView.cs: New method to invalidate the plus minus area of a
27785 node without invalidating the whole node (maybe this can be used
27786 in some more places).
27787 * TreeNodeCollection.cs: When adding to an empty node we need to
27788 invalidate its plus minus area so the little block shows up.
27790 2005-10-21 Jackson Harper <jackson@ximian.com>
27792 * TreeView.cs: Make sure that when we invalidate a node the bounds
27793 are big enough to cover the selected box and the focus
27794 rectangle. Use a different colour for the lines connecting nodes
27795 so they show up with all themes.
27797 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27799 * NativeWindow.cs: Don't call anything that could call into the driver,
27800 we might be on a different thread.
27802 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27804 * Control.cs(Dispose): Since Dispose might run on a different thread,
27805 make sure that we call methods that could call into the driver via
27806 invoke, to avoid thread issues
27808 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27810 * XplatUI.cs: Removed finalizer
27811 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
27812 not allowing to be called on the finalizer thread.
27814 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
27817 - Reverted r51889 and r51891.
27818 - Added ImageListItem class that stores unmodified image items and image
27819 properties required to create list images until handle is created.
27820 - Added AddItem and moved image creation logic to AddItemInternal.
27821 - Added CreateHandle method that creates images based on unmodified items.
27822 - Added DestroyHandle that changes state to store unmodified items.
27823 - Add and AddStrip methods no more create handle.
27824 - ReduceColorDepth has no return value.
27825 - Dispose destroys handle.
27826 - Modified other methods to reflect the above changes.
27827 - Implemented key support.
27828 - Added profile 2.0 members and attributes.
27829 - Added private Reset and ShouldSerialize methods that provide the same
27830 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
27831 them as they are private.
27832 - Added some more comments about implementation details.
27834 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27836 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
27838 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27840 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
27842 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27844 * DataGridDrawingLogic.cs: Fixes column hit calcultation
27845 * DataGridColumnStyle.cs: Remove debug message
27847 2005-10-20 Jackson Harper <jackson@ximian.com>
27849 * TreeView.cs: We can always get input keys regardless of whether
27850 or not editing is enabled. They are used for navigation.
27852 2005-10-20 Jackson Harper <jackson@ximian.com>
27854 * TreeNode.cs: Use the viewport rect for determining if a node
27855 needs to be moved for visibility. Don't use Begin/End edit. This
27856 calls a full refresh when its done.
27857 * TreeView.cs: New SetBottom works correctly. Make the viewport
27858 rect property internal so the treenodes can see it. When clicking
27859 on a node we need to ensure that its visible because it might just
27860 be partly visible when clicked.
27862 2005-10-20 Jackson Harper <jackson@ximian.com>
27864 * TreeNodeCollection.cs: Remove debug code.
27866 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27868 * Datagrid.cs: Implements column sorting in Datagrid
27869 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
27871 2005-10-20 Jackson Harper <jackson@ximian.com>
27873 * TreeNodeCollection.cs: Remove items properly. Update the correct
27874 area after removing them.
27876 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27878 * Datagrid.cs: Should not call base.OnPaintBackground
27880 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27882 * XplatUIX11.cs (GetMessage):
27883 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
27884 window instead of client window
27885 - Now properly calculates NC_xBUTTONUP message coordinates
27886 - ScreenToMenu now properly calculates it's coordinates of whole
27887 window, since menus are in the whole window, not in the client
27889 - Added WholeToScreen coordinate translation method
27891 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27893 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
27894 want to return a message, loop back to the beginning of the function
27895 and grab the next real message to process instead.
27897 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27899 * Splitter.cs: Properly set limits if no filler control is used
27901 2005-10-19 Jackson Harper <jackson@ximian.com>
27903 * ColorDialog.cs: Don't show the help button if it is not enabled
27904 instead of disabling it (this is what MS does). Don't create the
27905 panel until the dialog is run, otherwise the vars (such as
27906 ShowHelp) are not set yet.
27908 2005-10-19 Jackson Harper <jackson@ximian.com>
27910 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
27911 are reduced when adding nodes.
27913 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
27916 2005-10-19 Jackson Harper <jackson@ximian.com>
27918 * FolderBrowserDialog.cs: End editing our treeview so the window
27919 actually gets refreshed.
27921 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27923 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
27924 Obsoleted handling of WM_ERASEBKGND, now always draws our background
27927 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27929 * MenuAPI.cs: Returns after Hidding window
27930 * XplatUIX11.cs: Added TODO found while debugging menu issues
27932 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27934 * XplatUIX11.cs: Do not re-map the whole window when it's size
27935 becomes non-zero unless it's supposed to be actually visible
27937 2005-10-18 Jackson Harper <jackson@ximian.com>
27939 * TreeView.cs: We don't need to keep a count anymore.
27940 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
27941 use the Grow method.
27943 2005-10-18 Jackson Harper <jackson@ximian.com>
27945 * TreeNodeCollection.cs: Insert is not supported on arrays, so
27946 implement it manually here.
27948 2005-10-18 Jackson Harper <jackson@ximian.com>
27950 * ImageList.cs: Dont kill the list when the colour depth is
27951 changed, just change the colour depth of all the images.
27952 - Same goes for setting the image size. Just resize them all
27953 instead of killing the list softly.
27955 2005-10-18 Jackson Harper <jackson@ximian.com>
27957 * Control.cs: Don't invalidate empty rectangles.
27959 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27962 - Adds checked item to the Checked/Item lists (where empty before)
27963 - Do not add items to the Selected lists if they are already present
27965 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
27966 - When deleting items make sure that we delete them for the Selected
27967 and Checked list also.
27969 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27971 * Label.cs: Dispose objects no longer used
27972 * ThemeWin32Classic.cs: Dispose objects no longer used
27974 2005-10-18 Jackson Harper <jackson@ximian.com>
27976 * TabControl.cs: Don't refresh the whole control when the tabs are
27977 scrolled, we just need to refresh the tab area.
27979 2005-10-17 Jackson Harper <jackson@ximian.com>
27981 * XplatUIX11.cs: Compress code a little bit. Only calculate the
27982 after handle when we need it.
27984 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27986 * Control.cs: When the parent size changes, recalculate anchor
27987 positions. Partial fix for #76462
27989 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27991 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
27992 drawn. Fixes #76462
27994 2005-10-17 Jackson Harper <jackson@ximian.com>
27996 * MonthCalendar.cs: Don't create the numeric up down until our
27997 handle is created. Otherwise our handle is created in the
27998 constructor and we don't know if we are a WS_CHILD or WS_POPUP
28001 2005-10-17 Jackson Harper <jackson@ximian.com>
28003 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
28006 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28007 * TreeNode.cs : small logical fix (was using local var instead of field)
28009 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28011 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
28013 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28015 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
28017 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
28020 - Re-implemented anchoring code. My first version was really broken.
28021 This fixes bug #76033. Unlike the previous implementation we will
28022 no longer have round errors since all numbers are calculated from
28023 scratch every time. Removed various anchor-related obsolete vars.
28024 - InitLayout no longer causes layout event firing and layout to be
28027 2005-10-16 Jackson Harper <jackson@ximian.com>
28029 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
28032 2005-10-16 Jackson Harper <jackson@ximian.com>
28034 * TabControl.cs: Remove debug code.
28036 2005-10-16 Jackson Harper <jackson@ximian.com>
28038 * XEventQueue.cs: Increase the default queue size (very simple
28039 apps needed to grow the queue).
28040 * Hwnd.cs: No finalizer so we don't need to suppress
28041 finalization. Compute the invalid area manually so a new rectangle
28042 does not newto be created.
28043 * ScrollableControl.cs: Don't set any params (otherwise visibility
28044 isn't set correctly).
28045 * MdiChildContext.cs: New constructor takes the mdi parent so it
28046 doesn't have to be computed and avoids a crash on windows. Draw
28047 the window icon properly, and allow the text to be seen.
28048 * Form.cs: Use new MdiChildContext constructor. Make sure the
28049 child context isn't null in wndproc.
28050 * TabControl.cs: Don't set focus, this is muddling keyboard
28051 behavoir. Expand the tab rows when a window size increase will
28052 allow extra tabs to be seen. Don't allow tabs smaller than the
28053 width of a window to be scrolled out of view.
28055 * TreeView.cs: Use measure string to calculate a nodes width, the
28056 width is cached and only updated when the text or the font is
28057 changed. Don't check for expand/collapse clicks on the first level
28058 nodes if root lines are disabled.
28060 2005-10-16 Ritvik Mayank <mritvik@novell.com>
28062 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
28064 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28066 * DataGridBoolColumn.cs: fixes warning
28068 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28070 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
28071 to match more to match more precisely the MS Net behavior
28073 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28075 * Hwnd.cs: Added field to track if window is mapped
28077 - Unmap windows if they become 0-size, re-map when
28078 they are >0 again; fixes #76035
28079 - Re-set our error handler after initializing X11Desktop
28080 to override any error handlers Gtk or whatever was called
28083 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28085 * CheckedListBox.cs: Removed unused vars
28086 * ListView.cs: Fixed signatures
28087 * RichTextBox.cs: Removed unused vars
28088 * TextBoxBase.cs: Removed unused vars
28089 * XplatUIWin32.cs: Removed unused vars
28090 * XplatUIX11.cs: Removed unused vars
28091 * XplatUI.cs: Updated version and date to latest published
28093 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28095 * Cursor.cs: Added private .ctor to work around a bug in
28096 resourceset (Thanks to Geoff Norton for the help on this)
28097 * SplitterEventArgs.cs: Made fields accessible so we don't
28098 waste boatloads of objects and can reuse the same one
28100 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
28101 any captions and borders when generating screen coordinates
28102 * Splitter.cs: Reimplemented control, now fully complete, uses
28103 rubberband drawing, supports and obeys all properties, has
28106 2005-10-13 Miguel de Icaza <miguel@novell.com>
28108 * Form.cs (Form): Setup default values for autoscale and
28109 autoscale_base_size; Make these instance variables, not static
28112 (OnLoad): on the first load, adjust the size of the form.
28114 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28116 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
28117 width argument to DrawReversibleRectangle()
28118 * XplatUIWin32.cs, XplatUIX11.cs:
28119 - Implemented width for DrawReversibleRectangle()
28120 - Added logic to DrawReversibleRectangle that recognizes a zero
28121 width or height and only draws a line in that situation
28123 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
28125 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
28126 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
28127 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
28128 method (it uses our FosterParent window to get a graphics context)
28130 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
28132 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
28133 and SetWindowBackground methods
28135 - Setting proper ControlStyles
28136 - We no longer call XplatUI.SetWindowBackground and XplatUI.
28137 EraseWindowBackground, instead we draw the window background
28138 ourselves in PaintControlBackground. This behaviour is
28139 required to match MS, where, when OnPaintBackground is not
28140 called, the background is not drawn.
28141 - Removed unneeded Refresh() in set_Text
28142 * Hwnd.cs: Dropped the ErasePending support. No longer needed
28144 - Created DeriveStyles method to translate from CreateParams to
28145 FormBorderStyle and TitleStyle, also handles BorderStyle (which
28146 matches FormBorderStyle enum values)
28147 - Consolidated SetHwndStyles and CalculateWindowRect border/title
28148 style calculations into single DeriveStyles method
28149 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
28150 from redrawing the whole window on any resize or expose.
28151 - Fixed CreateWindow usage of SetWindowValuemask. Before not
28152 all styles were applied to our whole/client window appropriately
28153 - Removed EraseWindowBackground() and SetWindowBackground() methods
28154 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
28155 no longer clear/redraw the background through X
28156 - Removed handling of erase_pending bit, we have no use for it (or
28159 - Removed generation and handling of WM_ERASEBKGND message
28160 - Removed EraseWindowBackground() and SetWindowBackground() methods
28161 - Removed handling of hwnd.ErasePending flag
28163 - Removed EraseWindowBackground() and SetWindowBackground() methods
28164 - We no longer call EraseWindowBackground on PaintEventStart, we
28165 ignore the fErase flag, erasing is handled in Control in the
28167 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
28168 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
28169 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
28170 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
28171 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
28172 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
28173 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
28175 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
28177 * PropertyGrids.cs: Get sub properties
28178 * PropertyGridView.cs: Fix drawing code
28180 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28182 * ListBox.cs: Fixes 76383
28184 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28186 * DataGridTextBoxColumn.cs: Sets location and size before attachment
28187 * ThemeWin32Classic.cs: Fixes border drawing and calculations
28188 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
28191 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28193 * ComboBox.cs: Fixes border drawing
28195 2005-10-10 Miguel de Icaza <miguel@novell.com>
28197 * MimeIcon.cs: Ignore errors if the file can not be read.
28199 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28201 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
28202 - Fixed border calculations
28203 - Fixed horizontal scrolling in single column listboxes
28204 - Fixed drawing issues
28206 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
28208 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
28209 FormBorderStyle enum
28210 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
28211 code to determine FormBorderStyles from CreateParams
28213 - Fixed bug where we'd set the wrong window styles if we were
28214 not creating an MDI window
28215 - Added call to XplatUI.SetBorderStyle when form borders are set
28216 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
28218 - Removed obsolete edge style
28219 - Switched from BorderStyle to FormBorderStyle
28221 2005-10-10 Jackson Harper <jackson@ximian.com>
28223 * Form.cs: Use the property to get the window handle instead of
28224 accessing it directly. Prevents a null reference exception.
28226 2005-10-10 Jackson Harper <jackson@ximian.com>
28228 * TreeView.cs: Don't adjust the rect given to DrawString now that
28229 our libgdiplus draws correctly.
28231 2005-10-08 Jackson Harper <jackson@ximian.com>
28233 * TreeView.cs: Don't try to find the clicked on node if there are
28234 no nodes in the tree.
28236 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28242 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28244 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
28245 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
28247 Use ResPool for brushes and dispose System.Drawing objects that
28248 are not used anymore.
28250 2005-10-07 Jackson Harper <jackson@ximian.com>
28252 * MdiChildContext.cs: Use the new borders instead of drawing them
28255 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28257 * Calling UpdateBounds after changing the window's BorderStyle
28258 since the style can change the ClientSize
28260 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28262 * Control.cs: Made PaintControlBackground virtual
28263 * Panel.cs: Overriding PaintControlBackground instead of using paint
28264 event; paint event method was interfering with 'real' users of the
28267 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28269 * ThemeWin32Classic.cs: remove border drawing since it is handled
28270 by the base control class now and was causing double border drawing.
28272 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28274 * Panel.cs: Redraw our background on paint. Not a pretty solution,
28275 but it does seem to match MS behaviour. This fixes bug #75324
28277 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28279 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
28280 somewhat hackish looking
28282 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28285 - We now accept Enter even if AcceptEnter is false, if the containing
28286 form does not have an AcceptButton configured (fixes bug #76355)
28287 - Calculations are now fixed to no longer use Width/Height, but
28288 ClientSize.Width/Height, since we now support borders (this was
28289 a result of fixing borders and therefore bug #76166)
28290 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
28291 true (fixes bug #76354)
28293 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28296 - Defaulting BorderStyle and setting it in XplatUI when our window
28298 - Added enum check to InternalBorderStyle setter
28300 - Added drawing of window borders
28301 - Now properly calculates WM decorations offset for toplevel
28302 windows (fixes bug #74763)
28304 - Implemented BorderStyles for windows (we're letting win32 draw
28306 - Fixed the signature for SetWindowLong
28307 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
28308 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
28310 * UpDownBase.cs: Remove drawing of borders, this is handled by
28311 the driver, outside the client area
28312 * ListView.cs: Removed bogus border calculations. The control should
28313 be oblivious to borders, since those are not part of the client
28315 * X11DesktopColors.cs: Commented out (currently) unneeded variables
28316 * ThemeWin32Classic.cs: Removed border calculations from ListView
28319 2005-10-06 Jackson Harper <jackson@ximian.com>
28321 * MdiChildContext.cs: Clear out the old virtual position remove
28322 all the unneeded calls to CreateGraphics.
28324 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28326 * TextControl.cs: Use proper color for highlighted text; fixes #76350
28328 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28331 - Added loading and setting of our new default icon
28332 - Only set icon if window is already created
28334 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28337 - Do not explicitly set the foreground and background colors, to
28338 allow inheriting from parents (fixes #76302)
28339 - Use Control's InternalBorderStyle property to deal with borders
28341 2005-10-06 Jackson Harper <jackson@ximian.com>
28343 * MdiChildContext.cs: Use the new xplatui function to draw a
28346 2005-10-06 Jackson Harper <jackson@ximian.com>
28348 * Form.cs: Add the parent before creating the child context cause
28349 we need the parent when setting up the child.
28351 2005-10-06 Jackson Harper <jackson@ximian.com>
28353 * FolderBrowserDialog.cs: redo the tree population code so a
28354 second thread isn't used. Should be a lot faster and more stable
28357 2005-10-05 Jackson Harper <jackson@ximian.com>
28359 * TreeView.cs: There are no expand/collapse boxes if the node has
28362 2005-10-05 Jackson Harper <jackson@ximian.com>
28364 * X11DesktopColors.cs: Get menu colours for the gtk theme.
28366 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
28368 * FileDialog.cs: Fix InitialDirectory
28370 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
28373 - Fixes changing between styles
28374 - Fixes simple mode
28375 - Fixes last item crashing when navigating with keyboard
28377 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
28379 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
28381 2005-10-05 Jackson Harper <jackson@ximian.com>
28383 * TreeView.cs: If updating the root node do a full refresh.
28384 * TreeNode.cs: The root node should be expanded by default. Also
28385 added a utility prop to tell if we are the root node.
28386 * TreeNodeCollection.cs: Only refresh if the node we are being
28387 added to is expanded. Also added a comment on a potential
28390 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
28392 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
28393 in dispose method. Fixes #76330
28395 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
28397 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
28399 - Implements vertical and horizontal scrolling using XplatUI
28400 - Fixes keyboard navagation
28401 - Fixes EnsureVisible
28403 - Handles and draws focus properly
28406 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
28408 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
28409 Create handle. NET_2_0: Destroy handle when value is null.
28411 2005-10-03 Jackson Harper <jackson@ximian.com>
28413 * ScrollBar.cs: My last scrollbar patch was broken. This is a
28414 revert and a new patch to prevent the thumb from refreshing so
28417 2005-10-02 Jackson Harper <jackson@ximian.com>
28419 * ScrollBar.cs: Don't update position if it hasn't actually
28420 changed. This occurs when you hold down the increment/decrement
28421 buttons and the thumb gets to the max/min.
28423 2005-10-01 Jackson Harper <jackson@ximian.com>
28426 * MdiChildContext.cs:
28427 * MdiClient.cs: Implement ActiveMdiChild in Form.
28429 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
28431 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
28433 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
28435 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
28438 2005-09-30 Jackson Harper <jackson@ximian.com>
28440 * ListBox.cs: Don't do a full refresh unless some data has
28443 2005-09-30 Jackson Harper <jackson@ximian.com>
28445 * TreeView.cs: Make sure that the checkboxes size is factored in
28446 even when not visible.
28448 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28450 * FileDialog.cs: Fix Jordi's build break
28452 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
28455 - Use standard the Windows colours for the combobox as espected
28456 - Dispose objects that use resouces when no longer need them
28458 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28460 * X11DesktopColors.cs: Initial incomplete implementation
28461 * XplatUIX11.cs: Added call to initialize X11DesktopColors
28463 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28466 - Switched Theme color names to match the names defined in
28467 System.Drawing.KnownColors. Life's hard enough, no need to make
28469 - Added setters to all theme color properties so themes can set
28470 their color schemes. The setters also propagate the color changes
28471 to System.Drawing.KnownColors via reflection
28472 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
28473 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
28474 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
28475 use the new, more logical theme color names
28476 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
28478 * ThemeWin32Classic.cs:
28479 - Removed code to set the old classic Windows colors. Instead it
28480 now relies on the colors returned by System.Drawing.KnownColors
28481 which will be either modern static colors (Unix) or colors
28482 read from the user's configuration (Win32)
28483 - Updated to use the new, more logical theme color names
28484 - Switched DataGrid drawing code to use only Theme colors instead of
28485 a mix of System.Drawing.KnownColors and Theme colors
28486 - DrawFrameControl(): Removed code that fills the button area, the
28487 fill would overwrite any previous fill done by a control. This
28489 - Added DrawReversibleRectangle() stub
28490 * ScrollableControl.cs: Set visible state to false when scrollbars
28491 are removed (pdn fix)
28492 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
28493 DrawReversibleRectangle() method to allow drawing primitive
28495 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
28497 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28499 * ImageList.cs: Add(Icon): Create handle.
28501 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
28504 * ThemeWin32Classic.cs:
28505 - Fixes detail mode
28507 - Issues with drawing
28509 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28511 * ImageList.cs: Moved RecreateHandle back to ImageList as event
28512 source has to be the ImageList.
28514 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28516 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
28518 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28520 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
28522 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28524 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
28526 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
28527 * GridItem.cs: Fixed TODOs
28528 * GridItemCollection.cs: Added ICollection interface
28530 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28532 * ImageList.cs: Resize icons when needed.
28534 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
28537 - Fixes GetBounds and returns on screen rects
28539 - Fixes vertical and horzintal scrolling of items
28540 * ThemeWin32Classic.cs:
28543 2005-09-29 Raja R Harinath <harinath@gmail.com>
28545 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
28547 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
28549 * ImageList.cs: Added comments about handle creation. Moved Handle,
28550 HandleCreated and OnRecreateHandle implementations to ImageCollection.
28551 Handle is created in Add methods.
28553 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
28555 * DataGridDrawingLogic.cs:
28556 - Takes rows into account on Colum calculations
28557 - Returns the column when clickig
28559 - Fixes default HitTestInfo values
28560 - Fixes HitTestInfo.ToString
28561 - Fixes ResetBackColor
28563 2005-09-28 Jackson Harper <jackson@ximian.com>
28565 * MdiChildContext.cs: Obey rules for fixed sized windows (no
28566 sizing or cursor changes). Also added some temp code to draw the
28567 titlebars text (Makes dev a little easier).
28569 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
28571 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
28573 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
28575 * ListBox.cs: Fixes bug 76253
28577 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
28579 * ImageList.cs: Added comments about the current implementation. Added
28580 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
28581 Format32bppArgb to preserve transparency and can use Graphics.FromImage
28582 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
28583 with Bitmap.LockBits for better performance. Revised the whole file to
28584 match MS.NET behaviour and provide better performance. Non-public
28585 interface members are calling public members even when they throw
28586 NotSupportedException for better maintainability. Moved ColorDepth,
28587 ImageSize, ImageStream and TransparentColor implementations to
28588 ImageCollection for better performance as these properties are not used
28590 * ImageListStreamer.cs: Added a new internal constructor that takes an
28591 ImageList.ImageCollection and serializes Images based on
28592 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
28593 match ImageList property name.
28595 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
28597 * ListBox.cs: Fixes IndexFromPoint for last item
28599 2005-09-27 Jackson Harper <jackson@ximian.com>
28601 * Form.cs: Set the position of new mdi children correctly.
28603 2005-09-27 Jackson Harper <jackson@ximian.com>
28605 * MdiClient.cs: New mdi children need to be added to the back of
28606 the controls collection so the zorder is set correctly. Also add a
28607 count of all the child windows that have been created.
28609 2005-09-27 Jackson Harper <jackson@ximian.com>
28611 * Form.cs (CreateParams): Setup MDI forms correctly.
28613 2005-09-27 Jackson Harper <jackson@ximian.com>
28615 * MdiChildContext.cs:
28616 * MonthCalendar.cs:
28622 * ScrollableControl.cs:
28623 * ComboBox.cs: Add implicit controls using the new implict control
28624 functionality in ControlCollection. Also try to block multiple
28625 control add in a suspend/resume layout to save some cycles.
28627 2005-09-27 Jackson Harper <jackson@ximian.com>
28629 * Control.cs: Add functionality to the controls collection to add
28630 'implicit controls' these are controls that are created by the
28631 containing control but should not be exposed to the user. Such as
28632 scrollbars in the treeview.
28633 * Form.cs: The list var of the ControlsCollection is no longer
28634 available because of the potential of implicit controls getting
28635 ignored by someone accessing the list directly.
28637 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
28639 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
28640 loose it's parent. (Fixed bug introduced in r49103 when we added
28641 setting the child parent to null on Remove)
28643 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
28645 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
28646 * Splitter.cs: Added missing attributes for BorderStyle property.
28647 * TextBoxBase.cs: Marked Calculate* methods internal.
28648 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
28651 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
28653 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
28655 2005-09-25 Jackson Harper <jackson@ximian.com>
28657 * TreeView.cs: Update the node bounds correctly regardless of
28658 whether the node is visible.
28660 2005-09-25 Jackson Harper <jackson@ximian.com>
28662 * ImageList.cs: Don't dispose the image after it is added to the
28663 image list. Only reformat images that need to be resized.
28665 2005-09-25 Jackson Harper <jackson@ximian.com>
28667 * ImageList.cs: Don't set the format when changing the image.
28669 2005-09-25 Jackson Harper <jackson@ximian.com>
28671 * TreeView.cs: We can't just assume the node has a font. Use the
28672 treeviews font if no node font is available.
28674 2005-09-25 Jackson Harper <jackson@ximian.com>
28676 * TreeView.cs: Allow the scrollbars to be reset with negative
28678 - Don't add scrollbars to negative sized windows.
28680 2005-09-23 Jackson Harper <jackson@ximian.com>
28682 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
28683 old Mono.Posix. Also remove some stray code that shouldn't have
28686 2005-09-23 Jackson Harper <jackson@ximian.com>
28688 * TreeView.cs: Attempt at proper sizing of the horizontal
28689 scrollbar. Also don't resize the scrollbars unless they are
28692 2005-09-23 Jackson Harper <jackson@ximian.com>
28694 * TreeView.cs: We don't need to expand the invalid area when the
28695 selection changes, as this is all drawn in the node's bounding
28696 box. The area needs to be expanded (previous typo was contracting
28697 it) when the focus rect moves.
28699 2005-09-23 Jackson Harper <jackson@ximian.com>
28701 * TreeView.cs: Display the selection box under the correct
28702 circumstances. We were rendering white text with no selection box
28705 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
28707 * TextControl.cs(Split): Now updates selection start/end if it points
28708 into a line that's being split. Fixes a FIXME and bug #75258
28710 2005-09-23 Jackson Harper <jackson@ximian.com>
28713 * ListControl.cs: Don't use the path when retrieving binding
28714 managers from the binding context. My bat sense tells me that the
28715 path is only used on insertion.
28717 2005-09-22 Jackson Harper <jackson@ximian.com>
28719 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
28721 2005-09-22 Jackson Harper <jackson@ximian.com>
28723 * Splitter.cs: There are special cursors used for splitting.
28724 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
28726 2005-09-22 Jackson Harper <jackson@ximian.com>
28728 * Splitter.cs: Change the cursor appropriately when the splitter
28729 is moused over, so the user actually knows there is a splitter
28732 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28734 * Label.cs : Fix ToString method to give same output as MS.NET
28736 2005-09-22 Jackson Harper <jackson@ximian.com>
28738 * TreeView.cs: Create the scrollbars when the handle is created
28739 and add them right away, just make them invisble. Also account for
28740 the window being shrunk vertically to the point that the vert
28741 scrollbar needs to be added.
28742 - Remove some 0.5 adjustments to get around anti aliasing issues.
28744 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
28746 * MainMenu.cs: Fixes default value
28747 * MenuItem.cs: Fixes default value
28749 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
28751 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
28753 2005-09-21 Jackson Harper <jackson@ximian.com>
28755 * Control.cs: Don't try to set the border style on the window if
28756 it hasn't been created. When the window is created the border
28757 style will be used.
28759 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28761 * Control.cs (Update): Don't call XplatUI if we don't have a
28764 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28766 * ContainerControl.cs: Instead of throwing an exception, print
28767 a one-time warning about Validate not being implemented
28768 * XplatUIWin32.cs: Removed debug output
28770 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28772 * Control.cs: Only set XplatUI background if we expect the windowing
28773 system to handle the background. This stops controls that draw their
28774 own background from flickering
28776 * XplatUIX11.cs: Support custom visuals and colormaps for window
28777 creation. This allows, amongst other things, using MWF X11 windows
28780 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28782 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
28783 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
28784 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
28785 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
28786 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
28787 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
28788 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
28789 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
28790 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
28791 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
28792 GridColumnStylesCollection.cs,
28793 IDataGridColumnStyleEditingNotificationService.cs,
28794 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
28795 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
28796 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
28797 TreeNodeCollection.cs, AmbientProperties.cs,
28798 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28799 DataObject.cs, ErrorProvider.cs, Splitter.cs,
28800 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
28801 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
28802 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
28803 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
28804 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
28805 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
28806 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
28807 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
28808 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
28809 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
28810 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
28811 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
28812 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
28813 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
28814 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
28815 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
28816 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
28817 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
28818 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
28819 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
28820 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
28821 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
28822 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
28823 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
28824 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
28825 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
28826 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
28827 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
28828 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
28829 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
28830 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
28831 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
28832 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
28833 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
28834 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
28836 2005-09-21 Jackson Harper <jackson@ximian.com>
28838 * TreeNode.cs: Call Before/After Expand not Collapse when
28841 2005-09-20 Jackson Harper <jackson@ximian.com>
28843 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
28845 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28849 - Fixes proper storing of subitems
28850 - Fixes not updated items
28852 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28854 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
28855 things if our window handle isn't created yet. Also disabled
28856 debug for TextBoxBase
28858 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28860 * MenuAPI.cs: Remove filtering of events to allow menu usage
28862 2005-09-20 Miguel de Icaza <miguel@novell.com>
28864 * Cursor.cs: Allow null to be passed to Cursor.Current.
28866 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
28868 * ThemeWin32Classic.cs:
28869 - Change some private methods/fields to protected virtual so that
28870 they can be accessed and overriden in derived classes
28871 - First refactoring of some methods. Derived themes now don't
28872 need to duplicate the complete code from ThemeWin32Classic
28874 - Added nice StatusBar
28875 - Derive from ThemeWin32Classic and not Theme
28876 - Removed duplicate ThemeWin32Classic code
28878 2005-09-20 Miguel de Icaza <miguel@novell.com>
28880 * Control.cs (ControlCollection.Add): If the value null is passed
28881 the control is ignored.
28883 Optimize this loop.
28885 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28887 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
28888 PostQuitMessage state.
28889 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
28891 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28893 * Application.cs: Our constructor will never get called, move
28894 initialization to fields; fixes bug #75933
28896 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28899 - Allow files to be selected properly using file name
28901 - Add ability to change diretory (absolute / relative)
28902 using file name combo box.
28904 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28907 - Fixes Multicolumn listboxes item wrong calculations
28908 - Allows to click when only one item is in the listbox
28909 - Fixes crash when no items using keyboard navigation
28911 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
28913 * ComboBox.cs: Reverted almost everything from the latest patch which
28916 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
28919 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
28921 - When DropDownStyle is Simple, it does not show scrollbar
28922 to the last item of the list.
28923 - When DropDownStyle is Simple, it crashed when the list was
28924 scrolled down with the down cursor key.
28925 - Fixed a bug that when DropDownStyle is DropDownList, the
28926 selected item was not shown.
28927 - The position of the selected item was not preserved when
28928 the next dropdown happened.
28929 * ThemeWin32Classic.cs:
28930 - Items were wrapped at the right end.
28931 * CheckedListBox.cs:
28934 - Items should be fully shown.
28935 - When resizing and vertical scrollbar disappeared, the item
28936 of index 0 should be on the top of the list.
28937 - GetItemRectangle should consider the size of ver. scrollbar
28939 - SizingGrip area should not be allocated when it is not
28941 - Now it reflects MinWidth of the containing panel and
28942 fixed a crash that happens when its width becomes so small.
28944 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28946 * CheckedListBox.cs: Fixes bug 76028
28947 * ListBox.cs: Fixes bug 76028
28949 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28951 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
28952 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
28954 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
28956 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
28958 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28960 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
28962 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28964 * IRootGridEntry.cs: Added
28965 * PropertyGridCommands.cs: Added
28966 * PropertiesTab.cs: Added missing methods and property
28967 * PropertyGridView.cs: Made class internal
28968 * PropertyGridTextBox.cs: Made class internal
28970 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28972 * MimeIcon.cs: Try to check some other environment variables
28973 if "DESKTOP_SESSION" returns "default"
28975 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28977 * ThemeNice.cs: Corrected background colors (e.g. menus)
28978 * ColorDialog.cs: Use correct background colors for controls
28980 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28982 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
28984 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
28986 * RichTextBox.cs: Added initial implementation
28987 * lang.cs: Removed. Was accidentally checked in long time ago
28988 * TODO: Removed. Contents were obsolete
28990 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28992 * PropertiesTab.cs : Added
28994 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28996 * PropertyGrid.cs : Update
28997 * PropertyGridView.cs : Update
28998 * System.Windows.Forms.resx : Added images and strings
29000 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29002 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
29004 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29006 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
29007 a busy loop right after the Ungrab the X11 display is otherwise
29010 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
29012 * ThemeWin32Classic.cs: Optimise the use of clipping
29014 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
29016 * DataGrid.cs: fixes recursion bug
29018 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
29021 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
29024 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
29026 * ThemeNice.cs: Draw nice ProgressBars
29028 2005-09-01 Miguel de Icaza <miguel@novell.com>
29030 * VScrollBar.cs: Another buglet found by Aaron's tool.
29032 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
29035 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
29038 - Added nicer menu drawing
29042 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29044 * CreateParams.cs (ToString): Made output match MS
29045 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
29046 handle is already created (to avoid forcing window creation)
29047 * XplatUIX11.cs: Set window text to caption after creating window,
29048 in case Text was set before window was created
29049 * Form.cs: Use this.Text instead of a static string as caption
29051 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29053 * NotifyIcon.cs: Don't set the window to visible; this screws
29054 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
29055 OnPaint without a bitmap)
29056 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
29057 happen very often anyway; we could add the check to the WM_PAINT
29058 event generation code
29060 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29062 * NotifyIcon.cs: Fill the icon area with a background color, to
29063 avoid 'residue' when transparent icons are drawn
29065 - Handle whole_window == client_window when destroying windows
29066 - SystrayAdd(): Set client_window to whole_window value to
29067 get mouse and other events passed to NotifyIcon
29069 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29071 * Form.cs: Set proper default for Opacity property
29073 - ShowSystray(): Don't bother creating telling the OS
29074 about the systray item if no icon is provided
29075 - Now handles WM_NCPAINT message to deal with whole/client window
29077 - Create window as visible to not get caught by Expose optimization
29078 * Hwnd.cs: Removed debug message
29079 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
29080 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
29081 PaintEventStart/End to use new client argument
29083 - Commented out debug messages
29084 - Switched PaintEventStart/End to use new client argument
29085 * XplatUI.cs: Added client window bool to PaintEventStart()/
29086 PaintEventEnd() calls, to support drawing in non-client areas
29087 * XplatUIDriver.cs:
29088 - Added client window bool to PaintEventStart()/PaintEventEnd()
29089 calls, to support drawing in non-client areas
29090 - Added conditional compile to allow using MWF BeginInvoke
29093 - Added some conditional debug output
29094 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
29095 whole/client window split
29096 - Implemented handling of client argument to PaintEventStart()/End()
29098 - Throw exception if BeginInvoke() is called and the window handle
29099 or one of the window's parent handles is not created
29100 - Added conditional compile to allow using MWF BeginInvoke on
29102 - get_Parent(): Only sets parent if handle is created. This avoids
29103 forcing window handle creation when parent is set.
29104 - Now fires Layout and Parent changed events in proper order
29105 - Switched to use Handle instead of window.Handle for Z-Order setting,
29106 the get_Parent() patch above causes us to possibly get null for 'window'
29107 - Implemented handling of client argument to PaintEventStart()/End()
29108 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
29110 - Now sends a Refresh() to all child windows when Refresh() is called
29112 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
29114 * Form.cs: Added (non-functional) Opacity property
29115 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
29117 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
29118 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
29119 use export MONO_THEME=nice to activate it.
29120 Currently supported controls:
29124 - TabControl (TabAlignment.Top only, other will follow)
29125 * ThemeEngine.cs: Add theme nice
29126 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
29129 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
29131 * Splitter.cs: Resize docked control and its neighbor.
29133 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29134 -- Making Windows with Menus layout correctly --
29135 * Form.cs : The first leg of the fix
29136 Menu setter - adjust Client Size as needed to make space for the menu
29137 SetClientSizeCore - doesn't call base version to be able to pass the
29138 menu handle to XplatUI.CalculateWindowRect
29139 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
29140 * XplatUIX11.cs: The critical second leg of the fix
29141 GetWindowPos needs to use a recalculated client_rect
29142 so that resizing the window doesn't break layout of child controls.
29143 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
29144 Lots of \t\n killed
29146 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
29148 * Label.cs: Now properly recalculates width and height on Font and Text
29149 changes if AutoSize is set
29151 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29152 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
29154 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
29156 * ImageList.cs: Makes ToString method compatible with MS
29158 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
29160 * MenuAPI.cs: fixes bug 75716
29162 2005-08-11 Umadevi S <sumadevi@novell.com>
29163 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
29165 2005-08-11 Umadevi S <sumadevi@novell.com>
29166 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
29168 2005-08-10 Umadevi S <sumadevi@novell.com>
29169 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
29171 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
29173 * Menu.cs: fixes bug 75700
29174 * MenuAPI.cs: fixes navigation issues
29176 2005-08-09 Umadevi S <sumadevi@novell.com>
29177 * CheckedListBox.cs - simple fix for GetItemChecked.
29179 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
29181 * ComboBox.cs: Serveral fixes
29182 * ListBox.cs: Serveral fixes
29184 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
29186 * ComboBox.cs: Fixes FindString methods and GetItemHeight
29187 * ListBox.cs: Fixes FindString methods
29189 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
29191 * DataGrid.cs: fixes bugs exposed by new tests
29193 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
29195 * Mime.cs: Compile Mono assembly references only if compiling
29196 with Mono (Allows to build with VS.Net again)
29198 2005-07-28 Marek Safar <marek.safar@seznam.cz>
29200 * Control.cs (PaintControlBackground): Draw background image
29202 (CheckForIllegalCrossThreadCalls): Stubbed.
29204 * Form.cs (OnCreateControl): Center when should be centered.
29206 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
29208 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
29210 * Binding.cs: Binding to properties should be case unsensitive
29212 2005-07-18 vlindos@nucleusys.com
29214 * DataGrid.cs: fixes setmember order
29216 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
29218 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
29219 * FileDialog.cs: FileDialog is now resizable and uses the new
29222 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
29224 * DataGridTextBoxColumn.cs: default value
29225 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
29226 * GridTableStylesCollection.cs: fixes checking MappingName
29227 * DataGridDrawingLogic.cs: fixes drawing logic issues
29228 * DataSourceHelper.cs: rewritten to make compatible with more data sources
29229 * DataGrid.cs: fixes
29231 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
29233 * MimeGenerated.cs: Use case sensitive comparer for
29234 NameValueCollections
29236 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
29238 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
29239 * ThemeWin32Classic.cs: bug fixes, code refactoring
29240 * DataGridDrawingLogic.cs: bug fixes, code refactoring
29241 * DataGrid.cs: bug fixes, code refactoring
29242 * DataGridTextBox.cs: bug fixes, code refactoring
29243 * DataGridColumnStyle.cs: bug fixes, code refactoring
29244 * Theme.cs: bug fixes, code refactoring
29246 2005-07-01 Peter Bartok <pbartok@novell.com>
29248 * TextControl.cs: Quick fix for the reported crash on ColorDialog
29249 and other text box usage
29251 2005-07-01 Jackson Harper <jackson@ximian.com>
29253 * TabControl.cs: Make sure the bottom of the tab covers the pages
29256 2005-06-30 Peter Bartok <pbartok@novell.com>
29258 * Form.cs (ShowDialog): Assign owner of the dialog
29259 * TextBoxBase.cs: Always refresh caret size when deleting, caret
29260 might have been moved to a tag with different height
29262 2005-06-30 Jackson Harper <jackson@ximian.com>
29264 * Form.cs: Don't create an infinite loop when setting focus
29265 * MenuItem.cs: Don't dirty the parents if we don't have any
29267 2005-06-29 Ben Maurer <bmaurer@ximian.com>
29269 * LibSupport.cs: Rename
29271 2005-06-29 Peter Bartok <pbartok@novell.com>
29273 * TextBoxBase.cs: Re-align caret after deleting a character
29275 - DeleteChars(): Ensure that tag covers the provided position
29276 - StreamLine(): Drop reference for dropped tag
29278 2005-06-29 Peter Bartok <pbartok@novell.com>
29281 - Selections now work properly, anchoring at the initial location
29282 and properly extending in either direction (SetSelectionToCaret(),
29283 SetSelectionStart() and SetSelectionEnd())
29284 - No longer redraws the whole control on selection change, now
29285 calculates delta between previous and new selection and only
29286 invalidates/redraws that area
29287 - Fixed FindPos() math off-by-one errors
29288 - Changed DeleteChars() to verify the provided tag covers the
29289 provided position, selections may have a tag that doesn't cover
29290 the position if the selection is at a tag border
29291 - Fixed off-by-one errors in DeleteChars()
29292 - Added missing streamlining check in DeleteChars() to remove
29294 - Implemented Invalidate() method, now properly calculates exposures
29295 between two given lines/positions
29296 - Implemented SetSelection()
29297 - Obsoleted and removed FixupSelection()
29298 - Improved RecalculateDocument() logic, removing code duplication
29300 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29302 * LibSupport.cs: changes to match different input/output arguments.
29304 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29306 * LibSupport.cs: added libsupport.so init routine.
29308 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
29310 * ControlBindingsCollection.cs
29311 - Throws an exception on null datasource when adding
29312 - Checks for duplicated bindings when adding
29314 2005-06-28 Jackson Harper <jackson@ximian.com>
29316 * TreeView.cs (OnKeyDown): Support left and right properly
29317 (navigates as well as expanding and collapsing.
29318 - Add support for Multiply, this expands all the selected nodes
29320 - Fix some tabbing.
29322 2005-06-28 Jackson Harper <jackson@ximian.com>
29324 * TreeView.cs: Implement keyboard navigation, currently supports,
29325 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
29326 support for toggling checkboxes with the space bar.
29328 2005-06-28 Jackson Harper <jackson@ximian.com>
29330 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
29333 2005-06-28 Jackson Harper <jackson@ximian.com>
29335 * TreeView.cs: Add missing event.
29337 2005-06-27 Peter Bartok <pbartok@novell.com>
29340 - Made line ending size configurable (now allows for counting
29341 lineendings as \n or \r\n)
29342 - Added margin to viewport to keep caret visible on right side
29343 - Fixed translation routines for line/pos to documentpos to consider
29344 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
29345 - Fixed some line-endings to be unix style
29346 - Fixed Document.FormatText to perform it's calculations 1-based
29347 - Added descriptions for a few methods that might otherwise get
29349 - Added NOTE section with some basic conventions to remember at
29350 the top of the file
29351 - Major fixup for RichTextBox selection drawing:
29352 * Fixed crashes when multiple tags on a single line were selected
29353 * fixed selection box drawing not overlaying text
29354 * fixed bogus offset calculation for tags not starting at index 1
29355 * Switched behaviour from using multiple Substrings of a
29356 StringBuilder.ToString() to using multiple
29357 StringBuilder.ToString(start, length) statements, hoping this is
29358 faster (kept original version commented out in the code, in case
29359 original version was faster)
29360 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
29362 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
29365 2005-06-27 Jackson Harper <jackson@ximian.com>
29367 * TabControl.cs: Move to the left and right with the arrow
29368 keys. These keys don't cycle beyond first and last like
29369 tab. Refresh all the tabs when scrolling them to the left or
29372 2005-06-27 Jackson Harper <jackson@ximian.com>
29375 - ToString: Added method
29376 - CreateParams: Remove TODO and comment
29377 - OnKeyDown: Cycle through bounds properly.
29378 - SelectedIndex: Scroll to the right or left if we need to
29379 display the newly selected tab.
29381 2005-06-23 Jackson Harper <jackson@ximian.com>
29383 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
29386 2005-06-23 Jackson Harper <jackson@ximian.com>
29388 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
29389 CTRL-SHIFT-TAB, and HOME, END are there any others?
29391 2005-06-23 Jackson Harper <jackson@ximian.com>
29393 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
29395 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
29397 * DataGridTextBoxColumn.cs: fixes and enhancements
29398 * ThemeWin32Classic.cs: fixes and enhancements
29399 * DataGridBoolColumn.cs: fixes and enhancements
29400 * DataGridDrawingLogic.cs: fixes and enhancements
29401 * CurrencyManager.cs: fixes and enhancements
29402 * DataGrid.cs: fixes and enhancements
29403 * DataGridColumnStyle.cs: fixes and enhancements
29405 2005-06-22 Jackson Harper <jackson@ximian.com>
29407 * TabControl.cs: Add some missing methods that just call into the
29408 base. Make the TabPageCollection's IList interface behave in the
29409 same manner as the MS implementation.
29411 2005-06-22 Peter Bartok <pbartok@novell.com>
29413 * TextControl.cs: Added sanity check
29415 - Fixed wrapping behaviour, don't set wrap on single line controls
29416 (this fixes the breakage of colordialog introduced in an earlier
29418 - Added rudimentary support for autoscrolling right-aligned controls
29419 (still needs fixing, also, center alignment scroll is missing)
29421 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
29423 * ScrollBar.cs: Fixes thumbpos on Maximum values
29425 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
29427 * PropertyGridView.cs: Pass context information to UITypeEditors
29429 2005-06-21 Peter Bartok <pbartok@novell.com>
29432 - Now calling PositionCaret with absolute space coordinates
29433 - Enabled vertical scrolling
29434 - Better tracking of scrollbar changes, tied into WidthChange
29436 - Improved cursor tracking
29437 - Removed debug output
29439 - PositionCaret coordinates are now works in absolute space, not
29441 - Improved tracking of document size
29442 - Added events for width and height changes
29444 2005-06-21 Peter Bartok <pbartok@novell.com>
29446 * Form.cs: Set focus to active control when form is activated
29448 - Added word-wrap functionality to RecalculateLine()
29449 - Added some short function descriptions for VS.Net to aid in
29450 writing dependent controls
29451 - Added Caret property, returning the current coords of the caret
29452 - Added ViewPortWidth and ViewPortHeight properties
29453 - Added Wrap property
29454 - Added CaretMoved event
29455 - Removed some old debug code
29456 - Split() can now create soft splits
29457 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
29458 - Added method to format existing text
29459 - Fixed size/alignment calculations to use viewport
29460 - RecalculateDocument now can handle changing line-numbers while
29464 - Added some wrap logic, we don't wrap if alignment is not left
29465 - Added casts for scrollbar var, base class switched types to
29466 also support RichTextBoxA
29467 - Implemented handling of scrollbar visibility flags
29470 - Switched scrollbars type to RichTextBoxScrollBars to support
29472 - Added tracking of canvas width/height
29473 - Switched scrollbars to be not selectable (to keep focus on text)
29474 - Added central CalculateDocument() method to handle all redraw
29476 - Added ReadOnly support
29477 - Added WordWrap support
29478 - Fixed handling of Enter key (we now treat it as a DialogKey)
29479 - Fixed caret positioning when h or v scroll is not zero
29480 - Fixed placing/generation of vertical scrollbar
29481 - Added CalculateScrollBars() method to allow updating scrollbar
29482 limits and visibility
29483 - Fixed handling of horizontal scroll
29484 - Added handling of vertical scroll
29485 - Implemented auto-'jump' when caret moves to close to a left or
29486 right border and there is text to be scrolled into view (currently
29487 there's the potential for a stack overflow, until a bug in
29488 scrollbar is fixed)
29490 2005-06-21 Geoff Norton <gnorton@customerdna.com>
29492 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
29494 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
29498 - return application/x-zerosize for files with size zero
29499 (if no extension pattern matches).
29500 - check matches collection for strings too.
29501 - return only the first mime type if the name value
29502 collection has more than one mime type.
29504 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
29506 * PropertyGrid.cs: Cleaned up some TODOs
29507 * PropertyGridView.cs: Added support for UITypeEditors
29509 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
29511 * DataGrid.cs: clears cached value
29513 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
29515 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
29516 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
29517 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
29518 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
29520 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
29522 * ThemeWin32Classic.cs: fixes colour
29524 2005-06-15 Peter Bartok <pbartok@novell.com>
29526 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
29527 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
29528 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
29529 * Control.cs: Added some MWFCategory and MWFDescription attributes
29530 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
29532 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
29534 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
29537 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
29539 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
29540 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
29541 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
29542 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
29543 * DataGrid.cs: default datagrid settings for Default Styles, fixes
29544 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
29546 2005-06-13 Jackson Harper <jackson@ximian.com>
29548 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
29549 isn't printed when the user enables dropping. (X11 does accept
29552 2005-06-13 Jackson Harper <jackson@ximian.com>
29554 * TreeView.cs: Remove some TODOS.
29556 2005-06-13 Jackson Harper <jackson@ximian.com>
29558 * Form.cs: Hook into the mdi framework.
29559 * MdiClient.cs: Use the base control collections add method so
29560 parents get setup correctly. Set the default back colour and dock
29562 * MdiChildContext.cs: New class, this bad actor handles an
29563 instance of an MDI window. Right now there is only basic
29564 support. You can drag, close, and resize windows. Minimize and
29565 Maximize are partially implemented.
29567 2005-06-13 Jackson Harper <jackson@ximian.com>
29569 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
29570 freaky when both vals are negative. NOTE: There are probably other
29571 places in XplatUIX11 that this needs to be done.
29573 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
29575 * DataGrid.cs: implement missing methods, move KeyboardNavigation
29576 * DataGridColumnStyle.cs: fixes signature
29578 2005-06-12 Jackson Harper <jackson@ximian.com>
29580 * XplatUIX11.cs: Use sizing cursors similar to the ones on
29583 2005-06-11 Jackson Harper <jackson@ximian.com>
29585 * StatusBarPanel.cs: Signature cleanups. Implement
29588 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
29590 * DataGridTextBoxColumn.cs: Honors aligment
29591 * GridColumnStylesCollection.cs: Contains is case unsensitive
29592 * GridTableStylesCollection.cs: several fixes
29593 * DataGridTableStyle.cs: default column creation
29594 * DataGridDrawingLogic.cs: fixes
29595 * CurrencyManager.cs: ListName property
29596 * DataGrid.cs: multiple styles support
29597 * DataGridColumnStyle.cs: fixes
29600 2005-06-10 Peter Bartok <pbartok@novell.com>
29602 * Control.cs(Select): Moved SetFocus call to avoid potential
29603 loops if controls change the active control when getting focus
29604 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
29605 the up/down buttons
29607 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
29609 * ImageListConverter.cs: Implemented
29611 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29613 * MonthCalendar.cs: Wired in NumericUpDown control for year
29615 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29617 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
29618 DoubleClick events, since they are not meant to be fired.
29620 2005-06-09 Peter Bartok <pbartok@novell.com>
29622 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
29623 Jonathan's standalone controls into MWF, implemented missing
29624 events, attributes and methods; added xxxAccessible classes
29625 * AccessibleObject.cs: Made fields internal so other classes
29626 can change them if needed
29628 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
29630 * UpDownBase.cs: Complete implementation
29631 * NumericUpDown.cs: Complete implementation
29632 * DomainUpDown.cs: Complete implementation
29634 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
29636 * DataGridTextBoxColumn.cs: drawing fixes
29637 * DataGridCell.cs: fixes ToString method to match MSNet
29638 * DataGridTableStyle.cs: fixes
29639 * DataGridBoolColumn.cs: fixes, drawing
29640 * DataGridDrawingLogic.cs: fixes, new methods
29641 * DataGridTextBox.cs: Keyboard and fixes
29643 - Keyboard navigation
29645 - Row selection (single, multiple, deletion, etc)
29648 2005-06-07 Jackson Harper <jackson@ximian.com>
29650 * ThemeWin32Classic.cs: Clear the background area when drawing
29653 2005-06-06 Peter Bartok <pbartok@novell.com>
29655 * ImageListStreamer.cs: Fixed signature for GetData
29656 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
29658 - Added missing ChildAccessibleObject class
29659 - Added missing OnXXXFocus overrides, switched to using those
29660 instead of the event handler
29662 - Added Parent property for ControlAccessibleObject
29665 - Added ResetBindings()
29666 * ListBindingConverter.cs: Implemented some methods
29667 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
29668 * ImageList.cs: Implemented basic handle scheme, removed TODOs
29669 * ContainerControl.cs: Fixed signature, now subscribing to the
29670 ControlRemoved event instead of overriding the handler, LAMESPEC
29671 * CurrencyManager.cs: Added missing attribute
29672 * MonthCalendar.cs: Added missing properties
29674 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29676 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
29678 2005-06-06 Gaurav Vaish and Ankit Jain
29680 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
29681 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
29683 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29685 * Control.cs: fixes CreateParams Width / Height.
29687 2005-06-05 Peter Bartok <pbartok@novell.com>
29689 * Win32DnD.cs: Removed compilation warnings
29691 2005-06-05 Peter Bartok <pbartok@novell.com>
29693 * Control.cs (CreateParams): Since we don't know if one of the
29694 properties we use is overridden, lets make sure if we fail accessing
29695 we continue with a backup plan
29697 2005-06-05 Peter Bartok <pbartok@novell.com>
29700 - Removed debug output
29701 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
29703 - Plugged resource leak
29704 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
29707 2005-06-05 Peter Bartok <pbartok@novell.com>
29709 * XplatUIWin32.cs: Removed DnD code
29710 * Win32DnD.cs: Implemented drop source and drop target functionality
29712 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29714 * UpDownBase.cs: remove duplicate addition of event, enable some code
29715 that was commented out.
29716 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
29717 Validate input when a key is pressed. It works fine now for every
29718 combination of Hexadecimal. Only missing some drawing love when sharing
29719 space with other controls.
29721 2005-06-04 Peter Bartok <pbartok@novell.com>
29724 - We need to pass a window for DragDrop, so enable callback events
29725 - Added DnD callback events when being a DragSource
29726 * XplatUI.cs (StartDrag): Added window handle argument
29727 * XplatUIDriver.cs (StartDrag): Added window handle argument
29728 * QueryContinueDragEventArgs: Made fields internally accessible so
29729 drivers can set them
29730 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
29733 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
29735 * DataGridTextBoxColumn.cs: column text editing
29736 * DataGridTableStyle.cs: Respect columns styles created by the user
29737 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
29738 * DataGridBoolColumn.cs: bool column editing
29739 * DataGrid.cs: fixes to scrolling, properties, etc
29740 * DataGridTextBox.cs: handle keyboard
29741 * DataGridColumnStyle.cs: fixes
29743 2005-06-02 Jackson Harper <jackson@ximian.com>
29745 * ImageListStreamer.cs: Somewhat broken implementation of
29746 GetObjectData. The RLE needs some work to match MS properly.
29748 2005-06-02 Jackson Harper <jackson@ximian.com>
29750 * X11Dnd.cs: Attempting to keep at least one file in MWF
29753 2005-06-02 Peter Bartok <pbartok@novell.com>
29755 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
29758 2005-06-02 Peter Bartok <pbartok@novell.com>
29760 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
29761 * XplatUI.cs: Added DoDragDrop() method
29762 * XplatUIDriver.cs: Added DoDragDrop() method
29764 2005-06-02 Jackson Harper <jackson@ximian.com>
29766 * Splitter.cs: Implement BorderStyle.
29768 2005-06-02 Jackson Harper <jackson@ximian.com>
29770 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
29771 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
29774 2005-06-02 Peter Bartok <pbartok@novell.com>
29777 - Added Data setter
29778 - Fixed broken insertion code for SetData, now also
29779 overwrites any existing entry of the same format name
29780 * Hwnd.cs: Added list of pointers that automatically gets
29781 freed when the window is disposed
29782 * XplatUI.cs: Call driver initialization method when loading
29785 - OnDragLeave takes EventArgs, not DragEventArgs
29786 - Added setting of WS_EX_ACCEPTFILES style when dropping is
29788 - Forces style update when drop state changes
29789 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
29790 not perfect since we cannot (yet) call the IDataObject.GetData()
29791 method, we keep getting 0x80004005 error, dunno why)
29793 2005-06-02 Peter Bartok <pbartok@novell.com>
29795 * DragEventArgs.cs: Make fields internal so we can cache the
29796 object and re-set the fields from XplatUI
29798 2005-06-02 Jackson Harper <jackson@ximian.com>
29800 * Control.cs: Add some internal methods so the DnD subsystem can
29801 raise DnD events. Also call into the driver when AllowDrop is set.
29803 * XplatUIDriver.cs: New method for setting whether or not a window
29804 is allowed to accept drag and drop messages.
29806 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
29808 * ScrollBar.cs: Make sure that values sent in Scroll events
29809 are always between Maximum and Minimum.
29811 2005-06-01 Marek Safar <marek.safar@seznam.cz>
29813 * Menu.cs: Call MenuChanged when menuitem visibility has been
29815 * MenuItem.cs: Rebuild menu when item is (not) visible.
29816 * MainMenu.cs: MainMenu has special MenuChanged.
29817 * Theme.cs: Caption and FrameBorderSize are not fixed.
29818 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
29819 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
29821 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
29822 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
29824 2005-05-30 Jackson Harper <jackson@ximian.com>
29826 * DataFormat.cs: We can't statically initialize this stuff because
29827 it calls into the xplatui and could create a loop. So we lazy init
29830 2005-05-28 Jackson Harper <jackson@ximian.com>
29832 * Control.cs: Proper implementation of Product(Name/Version).
29834 2005-05-27 Jackson Harper <jackson@ximian.com>
29836 * DataObject.cs: Dont crash if no data is found.
29838 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29839 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
29840 as per status page, guessing it should be set to true
29842 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
29844 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
29845 * DataGridTableStyle.cs: set proper formatting text, def header text
29846 * ThemeWin32Classic.cs: new themable paramaters
29847 * DataGridBoolColumn.cs: paint check box, get data, fixes
29848 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
29849 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
29850 * DataGridColumnStyle.cs: fixes
29851 * Theme.cs: new themable paramaters
29853 2005-05-26 Peter Bartok <pbartok@novell.com>
29855 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
29857 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29858 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
29860 2005-05-24 Peter Bartok <pbartok@novell.com>
29862 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
29863 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
29864 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
29865 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
29866 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
29867 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
29868 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
29869 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
29870 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
29871 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
29872 missing attributes, etc
29873 * DataGridPreferredColumnWidthTypeConverter.cs: Added
29875 2005-05-24 Peter Bartok <pbartok@novell.com>
29877 * Help.cs: Added, implemented trivial functions, throws up MessageBox
29878 when user tries to get help
29879 * DataObject.cs, DataFormats.cs, LinkArea.cs,
29880 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
29881 to suppress warnings
29882 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
29883 avoid unreachable code warning
29885 2005-05-20 Peter Bartok <pbartok@novell.com>
29887 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
29889 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29891 * DataGridTextBoxColumn.cs: Basic painting methods
29892 * DataGridTableStyle.cs: Set table style in the column
29893 * ThemeWin32Classic.cs: Use Theme for colors
29894 * DataGridDrawingLogic.cs: Implement more drawing
29895 * DataGrid.cs: drawing, theming, enhacements, fixes
29896 * DataGridColumnStyle.cs: fixes, drawing
29897 * Theme.cs: theming for Datagrid
29899 2005-05-20 Peter Bartok <pbartok@novell.com>
29901 * Cursor.cs: Implemented GetObjectData() method
29903 2005-05-20 Peter Bartok <pbartok@novell.com>
29905 * Cursors.cs: Added setting of cursor name
29907 - Implemented constructors
29908 - Implemented Draw and DrawStretched
29909 - Implemented Current property
29910 - Implemented == and != operators
29911 - Implemented Dispose()
29912 - Implemented ToString
29913 - Added missing attributes
29915 - Added missing reset for OverrideCursor when DoEvents is called
29916 - Fixed creation of cursor, logic was wrong
29918 - Added missing reset for OverrideCursor when DoEvents is called
29919 - Fixed creation of cursor, bit arrays were swapped
29920 * Clipboard.cs: Removed obsolete MonoTODO attribute
29922 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29924 * ComboBox.cs: fixes OnSelectedItemChanged
29925 * ControlBindingsCollection.cs: fixes item range check
29927 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29930 - Calc preferred height properly
29931 - Implement missing properties
29933 * NumericUpDown.cs: Implement missing events
29935 2005-05-19 Jackson Harper <jackson@ximian.com>
29937 * TabControl.cs: New method that resizes the tab pages before
29938 redrawing them. This as needed as the control is double buffered
29939 and sizing will not be recalculated unless ResizeTabPages is
29941 * TabPage.cs: Set base.Text instead of Text in the constructor so
29942 that UpdateOwner does not get called. Use the new Redraw method of
29943 TabControl instead of Refresh so the sizing is recalculated.
29944 * ThemeWin32Classic.cs: Draw the text for button tabs.
29946 2005-05-19 Jackson Harper <jackson@ximian.com>
29948 * Control.cs: Paint control background images. Fix typo where
29949 PaintControlBackground was not getting called correctly.
29951 2005-05-19 Peter Bartok <pbartok@novell.com>
29953 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
29954 I can investigate, apparently I broke FileDialog
29956 2005-05-19 Marek Safar <marek.safar@seznam.cz>
29958 * AxHost.cs: Some simple properties.
29959 * Control.cs: window must be accessible after ctor.
29960 * Form.cs: Added TransparencyKey property.
29961 * TextBoxBase.cs: Implemented Clear. Text property can be null.
29962 * XplatUIWin32.cs: SetBorderStyle implemented.
29964 2005-05-18 Peter Bartok <pbartok@novell.com>
29966 * DataObject.cs: Entries are not global but particular to the
29967 DataObject, now it behaves that way
29968 * XplatUIWin32.cs: Implemented Clipboard methods
29969 * Clipboard.cs: Implemented
29970 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
29971 * XplatUIOSX.cs: Updated to final clipboard prototypes
29972 * XplatUIX11.cs: Implemented Clipboard methods
29973 * XplatUIDriver.cs: Updated to final clipboard prototypes
29974 * XplatUIStructs.cs:
29975 - Added BITMAPINFOHEADER struct
29976 - Added ClipboardFormats enum
29978 - Added ClipboardStruct
29979 - Added Atom enum items for clipboard types
29980 - Fixed atom types for Selection event structures
29982 - Added internal properties and methods for drivers to enumerate
29984 - Switched initialization method to allow drivers to assign their
29985 own IDs even for the MS predefined clipboard IDs
29986 * XplatUI.cs: Updated to final clipboard interface
29988 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29989 * PropertyGridView.cs: Fixed compiler warnings.
29991 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29992 * PropertyGrid.cs: Added some event calls
29993 * PropertyGridView.cs: Change drawing code to use double buffering
29994 * PropertyGridTextBox.cs: Changed Text property name
29995 * GridItem.cs: Added Bounds property.
29996 * GridEntry.cs: Added Bounds property.
29998 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
30000 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
30001 since GetType() may not return the correct type if the object is
30004 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
30006 * TreeNodeCollection.cs: fixes get/set item ranges
30008 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30010 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
30012 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30014 * ComboBox.cs: Fix item range comparation
30015 * ListView.cs: Fix item range comparation
30017 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
30020 - Clear example panel when OnPaint is called
30021 - Better solution for displaying the example panel text
30022 - Select default indexes in the ListBoxes
30024 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30026 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
30028 2005-05-11 Peter Bartok <pbartok@novell.com>
30030 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
30031 * SelectionRangeConverter.cs: Implemented
30032 * PropertyGrid.cs: Fixed attribute value
30034 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
30035 - Added Sebastien Pouliot's CAS Stack Propagation fixes
30036 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
30037 that's common to all drivers. First methods to go there are
30038 Sebastien Pouliot's CAS Stack Propagation helper methods
30039 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
30040 Sebastien Pouliot for CAS Stack Propagation
30042 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30045 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
30047 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
30049 * DataGridTextBoxColumn.cs: fixed some members
30050 * GridColumnStylesCollection.cs: indexed column is case insensitive
30051 * DataGridTableStyle.cs: fixes
30052 * ThemeWin32Classic.cs: add new theme parameter
30053 * Theme.cs: add new theme parameter
30054 * DataGridDrawingLogic.cs: Datagrid's drawing logic
30055 * DataGrid.cs: fixes, new internal properties, etc.
30056 * DataGridColumnStyle.cs: allows to set grid value
30059 2005-05-10 Peter Bartok <pbartok@novell.com>
30061 * AccessibleObject.cs:
30062 - Removed MonoTODO attribute on help, method is correct
30063 - Fixed Bounds property
30064 * AxHost.cs: Moved MonoTODO
30065 * ButtonBase.cs: Now setting AccessibleObject properties
30066 * RadioButton.cs: Setting proper AccessibleObject role
30067 * CheckBox.cs: Setting proper AccessibleObject role
30068 * ControlBindingsCollection.cs: Added properties, methods and attributes
30069 * DataFormats.cs: Fixed awkward internal API, and changed to enable
30070 userdefined DataFormats.Format items as well
30071 * ListControl.cs: Removed data_member from the public eye
30072 * OpenFileDialog.cs:
30073 - Made class sealed
30074 - Added missing attributes
30075 * SaveFileDialog.cs: Added missing attributes
30076 * ImageListStreamer.cs: Fixed code that caused warnings
30077 * LinkLabel.cs: Removed unreachable code
30078 * TreeView.cs: Fixed code that caused warnings
30079 * PropertyGridView.cs: Fixed code that caused warnings
30080 * GridColumnStylesCollection.cs: Added missing attributes
30081 * GridTableStylesCollection: Added missing attribute
30082 * PropertyManager: Added .ctor
30083 * SecurityIDType: Added
30084 * DataObject.cs: Implemented class
30085 * LinkArea.cs: Added missing attribute
30087 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
30089 * RadioButton.cs: call base method to allow to fire OnClick event
30090 * UpDownBase.cs: OnMouseUp call base method
30091 * CheckedListBox.cs: call base method before returning
30092 * TrackBar.cs: call base method before returning
30095 2005-05-10 Peter Bartok <pbartok@novell.com>
30097 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
30100 2005-05-10 Peter Bartok <pbartok@novell.com>
30102 * DataFormats.cs: Implemented
30103 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
30104 XplatUIX11.cs: Added Clipboard APIs
30105 * XplatUIWin32.cs: Implemented Clipboard APIs
30106 * FolderBrowserDialog.cs: Added missing event, attributes
30108 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
30110 * CheckBox.cs: call base method to allow to fire OnClick event
30112 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
30114 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
30116 2005-05-06 Peter Bartok <pbartok@novell.com>
30118 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
30119 * Screen.cs: Implemented
30120 * HelpNavigator.cs: Added
30121 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
30123 * HelpProvider.cs: Implemented all we can do until we have a CHM
30124 help library (which means that "What's This" does work now)
30126 2005-05-06 Jackson Harper <jackson@ximian.com>
30128 * XplatUIX11.cs: Fix waking up the main loop.
30130 2005-05-05 Peter Bartok <pbartok@novell.com>
30132 * XplatUI.cs: Updated revision
30133 * Form.cs: Removed enless loop
30134 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
30135 * Label.cs (OnPaint): Added call to base.OnPaint()
30136 * ToolTip.cs: Made ToolTipWindow reusable for other controls
30137 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
30138 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
30140 * ButtonBase.cs: Moved base.OnPaint() call to end of method
30141 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
30142 to ToolTip.ToolTipWindow for drawing and size methods; this allows
30143 reuse of ToolTipWindow by other controls
30144 * SizeGrip.cs: Moved base.OnPaint() call to end of method
30145 * XplatUIX11.cs: Now clipping drawing area (experimental)
30146 * PictureBox.cs: Moved base.OnPaint() call to end of method
30147 * Theme.cs: Fixed ToolTip abstracts to match new format
30148 * ErrorProvider.cs: Implemented
30150 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
30152 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
30156 - Implements LinkBehavior
30157 - Fixes many issues
30159 2005-05-03 Jackson Harper <jackson@ximian.com>
30161 * ListView.cs: Calculate the scrollbar positioning on resize and
30162 paint, so they get put in the correct place.
30164 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
30166 * ColorDialogs.cs: The small color panels are now handled by
30167 SmallColorControl. This fixes drawing of the focus rectangle
30168 and adds a 3D border.
30170 2005-05-03 Peter Bartok <pbartok@novell.com>
30172 * Control.cs: Modified version of Jonathan Chamber's fix for
30175 2005-05-03 Jackson Harper <jackson@ximian.com>
30177 * ListView.cs: Remove redraw variable. Control now handles whether
30178 or not a redraw needs to be done, and will only raise the paint
30179 event if redrawing is needed.
30181 2005-05-03 Jackson Harper <jackson@ximian.com>
30183 * Splitter.cs: No decorations for the splitter form. Cache the
30186 2005-05-03 Jackson Harper <jackson@ximian.com>
30188 * TreeView.cs: Use dashed lines to connect nodes. Use the
30189 ControlPaint method for drawing the focus rect instead of doing
30192 2005-05-02 Peter Bartok <pbartok@novell.com>
30194 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
30196 2005-04-29 Jackson Harper <jackson@ximian.com>
30198 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
30199 entire image buffer. Just clear the clipping rectangle.
30201 2005-04-29 Jackson Harper <jackson@ximian.com>
30203 * ThemeWin32Classic.cs: Don't draw list view items that are
30204 outside the clipping rectangle.
30206 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
30208 * ListBox.cs: added horizontal item scroll
30210 2005-04-29 Jackson Harper <jackson@ximian.com>
30212 * ThemeWin32Classic.cs: Remove some old debug code that was
30213 causing flicker with the new double buffering code.
30215 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
30217 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
30218 behave like combobox and comboboxlist (still not sure if this is
30221 2005-04-28 Jackson Harper <jackson@ximian.com>
30223 * ThemeWin32Classic.cs: Don't fill the middle of progress
30224 bars. This fills areas outside of the clip bounds that don't need
30227 2005-04-28 Jackson Harper <jackson@ximian.com>
30229 * Control.cs: Don't expose functionality to touch the image buffers.
30231 * ListView.cs: We do not need to (and no longer can) manipulate
30232 the image buffers directly. All of this is handled by Control.
30234 2005-04-28 Peter Bartok <pbartok@novell.com>
30236 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30237 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
30238 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
30240 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30243 - Adjust control's height for non-simple comboboxes (bug fix)
30245 * MenuAPI.cs: remove unused var
30246 * ScrollBar.cs: remove unsed var
30248 * ListBox.cs: unselect items when clearing
30250 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30252 * ListControl.cs: honors OnPositionChanged and default Selected Item
30253 * ListBox.cs: unselect items when clearing
30255 2005-04-27 Jackson Harper <jackson@ximian.com>
30257 * X11Keyboard.cs: Initialize a default keyboard and give a warning
30258 if a "correct" keyboard is not found. This will make us not crash,
30259 but might give some users bad keyboard layouts...seems to be the
30260 same thing rewind does.
30262 2005-04-27 Jackson Harper <jackson@ximian.com>
30264 * BindingManagerBase.cs: Attach the current/position changed
30265 handlers to their respective events.
30267 2005-04-27 Jackson Harper <jackson@ximian.com>
30269 * Control.cs: Make sure that the first WM_PAINT does a full draw,
30271 * ThemeWin32Classic.cs: Don't fill the background for picture
30272 boxes. This could overright user drawing.
30273 * ComboBox.cs: Just fill the clipping rect not the entire client
30274 rect when drawing the background. This prevents pieces of the
30275 image buffer from getting overwritten and is theoretically faster.
30277 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
30279 * ComboBox.cs: Databinding support fixes, fire missing events
30280 * ListControl.cs: implement missing methods and properties, fixes
30281 * ThemeWin32Classic.cs: Databiding support on Drawing
30282 * CheckedListBox.cs: Databinding support fixes, fire missing events
30283 * ListBox.cs: Databinding support fixes, fire missing events
30285 2005-04-25 Peter Bartok <pbartok@novell.com>
30287 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
30289 2005-04-25 Jackson Harper <jackson@ximian.com>
30291 * TreeView.cs: Use the horizontal scrollbars height not width when
30292 determining how much of the client area is available.
30294 2005-04-25 Jackson Harper <jackson@ximian.com>
30296 * Control.cs: Double buffering is handled differently now. As per
30297 the spec, the extra buffer is created in the WM_PAINT message and
30298 passed down to the control's drawing code.
30306 * PropertyGridView.cs:
30318 * DateTimePicker.cs:
30320 * TreeView.cs: Update to new double buffering system.
30321 * MonthCalendar.cs: Uncomment block, as Capture is now
30322 working. Update to new double buffering
30323 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
30324 * PaintEventArgs.cs: New internal method allows us to set the
30325 graphics object. This is used for double buffering.
30326 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
30327 rectangle. The internal paint_area var has been removed from
30328 StatusBar. The clipping rect should be used instead.
30329 * Theme.cs: Give the PictureBox drawing method a clipping rect.
30330 * TabPage.cs: The RefreshTabs method was removed, so just call the
30331 tab controls Refresh method now.
30332 * TabControl.cs: Update to new double buffering. Make sure the
30333 handle is created before sizing the tab pages, otherwise we will
30334 get stuck in a loop.
30336 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
30338 * LinkLabel.cs: Fix typo, bug #74719; patch
30339 from Borja Sanchez Zamorano
30341 2005-04-22 Jackson Harper <jackson@ximian.com>
30343 * TreeNode.cs: Implement Handle stuff.
30344 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
30346 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
30348 * DataGridTextBoxColumn.cs: call base constructors, fixes
30349 * GridColumnStylesCollection.cs: missing events, methods, and functionality
30350 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
30351 * DataGridTableStyle.cs: implements create default column styles
30352 * DataGridBoolColumn.cs: which types can handle
30353 * DataGrid.cs: missing methods, fixes, new functionality
30354 * DataGridColumnStyle.cs: fixes
30356 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
30357 * FolderBrowserDialog.cs:
30358 - Use a thread to fill the TreeView
30359 - Adjusted some sizes
30361 2005-04-19 Peter Bartok <pbartok@novell.com>
30363 * LinkLabel.cs: (Re-)create the pieces when setting the Text
30364 property. Fixes #74360.
30366 2005-04-19 Jackson Harper <jackson@ximian.com>
30368 * XEventQueue.cs: Lock when getting the lockqueue size.
30369 * PictureBox.cs: Call base OnPaint
30371 2005-04-19 Peter Bartok <pbartok@novell.com>
30373 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
30374 messages were no longer being processed (this broke BeginInvoke)
30377 2005-04-18 Jackson Harper <jackson@ximian.com>
30379 * TreeView.cs: buglet that caused node images to get drawn
30380 regardless of whether or not they were in the clipping rectangle.
30382 2005-04-18 Jackson Harper <jackson@ximian.com>
30384 * CurrencyManager.cs: There are four rules for GetItemProperties:
30385 - If the type is an array use the element type of the array
30386 - If the type is a typed list, use the type
30387 - If the list contains an Item property that is not an object, use
30389 - use the first element of the list if there are any elements in
30392 2005-04-17 Jackson Harper <jackson@ximian.oom>
30394 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
30395 click. This handles offsets for scrolling properly and reduces
30396 memory. Also fixed GetNode to not offset now that TopNode works
30398 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
30400 2005-04-17 Jackson Harper <jackson@ximian.com>
30402 * CursorConverter.cs: Initial implementation.
30404 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
30406 * ListControl.cs: work towards complex data binding support on ListControl
30407 * CurrencyManager.cs: work towards complex data binding support on ListControl
30408 * ListBox.cs: work towards complex data binding support on ListControl
30411 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
30413 * GridTableStylesCollection.cs: fixes name and constructor
30414 * DataGridTableStyle.cs: fixes
30415 * DataGridBoolColumn.cs: fixes names and constructors
30416 * DataGrid.cs: define methods and properties. Some init implementations
30417 * DataGridCell.cs: define methods and properties. Some init implementations
30418 * GridTablesFactory.cs: Define methods and properties
30420 2005-04-15 Geoff Norton <gnorton@customerdna.com>
30422 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
30423 graphics port changes. We still want the coordinates in global screen
30426 2005-04-14 Jackson Harper <jackson@ximian.com>
30428 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
30429 check plus minus or checkbox clicks unless those features are enabled.
30431 2005-04-14 Jackson Harper <jackson@ximian.com>
30433 * TreeView.cs: Add methods for setting the top and bottom visible
30434 nodes. TreeNode::EnsureVisible uses these methods.
30435 * TreeNode.cs: Implement EnsureVisible
30437 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
30439 * Form.cs: Pospone menu assignation if the window has not been created yet
30440 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
30443 2005-04-12 Jackson Harper <jackson@ximian.com>
30445 * TreeView.cs: Set the TopNode properly when scrolling
30446 occurs. This has the added benifit of reducing the amount of
30447 walking that needs to be done when drawing. Also removed an old
30449 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
30451 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
30453 * Timer.cs: fixes interval setting when the timer is already enabled
30455 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
30457 * FolderBrowserDialog.cs: First approach
30459 2005-04-09 Peter Bartok <pbartok@novell.com>
30461 * FolderBrowserDialog: Added
30463 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
30465 * LinkLabel.cs: move drawing code into the theme
30466 * ThemeWin32Classic.cs: drawing code and painting background bugfix
30467 * Theme.cs: define DrawLinkLabel method
30469 2005-04-05 Jackson Harper <jackson@ximian.com>
30471 * BindingContext.cs: Use weak references so these bad actors don't
30472 stay alive longer then they need to.
30474 2005-04-05 Jackson Harper <jackson@ximian.com>
30476 * ListControl.cs: Basic implementation of complex databinding.
30478 * ListBox.cs: Add calls to ListControl databinding methods.
30480 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
30483 - Don't change PopupButtonState to Normal when the
30484 PopupButton gets pressed several times.
30485 - Renamed ButtonPanel to PopupButtonPanel
30487 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
30489 * ColorDialog.cs: Use cached objects instead of creating them
30490 * LinkLabel.cs: Use cached objects instead of creating them
30491 * Splitter.cs: Use cached objects instead of creating them
30492 * FontDialog.cs: Use cached objects instead of creating them
30493 * PropertyGridView.cs: Use cached objects instead of creating them
30494 * MessageBox.cs: Use cached objects instead of creating them
30495 * FileDialog.cs: Use cached objects instead of creating them
30496 * ThemeWin32Classic.cs: Use cached objects instead of creating them
30497 * TreeView.cs: Use cached objects instead of creating them
30499 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
30501 * Control.cs: use Equals to compare the font since no == op
30502 * ScrollBar.cs: use Equals to compare the font since no == op
30504 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
30506 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
30508 2005-04-01 Jackson Harper <jackson@ximian.com>
30510 * Binding.cs: Implement IsBinding.
30511 * BindingManagerBase.cs:
30512 * PropertyManager.cs:
30513 * CurrencyManager.cs: Add IsSuspended property.
30515 2005-04-01 Jackson Harper <jackson@ximian.com>
30517 * Binding.cs: Had some IsAssignableFrom calls backwards.
30519 2005-04-01 Jackson Harper <jackson@ximian.com>
30521 * Binding.cs: Handle null data members when pulling data.
30522 * PropertyManager.cs: Handle the data member being a property that
30525 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
30527 * DataGridTextBoxColumn.cs: fixes signature
30528 * DataGrid.cs: calls right constructor
30530 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
30532 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
30533 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
30534 * GridTableStylesCollection.cs: implements GridTableStylesCollection
30535 * DataGridTableStyle.cs: implements DataGridTableStyle
30536 * DataGridBoolColumn.cs: implements DataGridBoolColumn
30537 * DataGridTextBox.cs: implements DataGridTextBox
30538 * DataGridColumnStyle.cs: implements DataGridColumnStyle
30540 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
30542 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
30544 2005-03-29 Peter Bartok <pbartok@novell.com>
30547 - Properly implemented CompanyName property
30548 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
30549 returns a path that includes CompanyName, ProductName and
30550 Version (fixes bug #70330)
30552 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
30554 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
30557 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
30559 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
30561 - Added ReadOnly CheckBox
30562 - Further refactoring: moved some code from Open-/SaveFileDialog
30565 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
30567 * OpenFileDialog.cs: Fixed CheckFileExists
30569 Moved FileView and DirComboBox outside FileDialog class.
30570 They can now be used outside FileDialog
30572 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
30574 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
30575 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
30577 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
30579 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30580 - Added missing CreatePrompt property in SaveDialog
30581 - Overall SaveDialog handling should be better now
30582 - Added non standard ShowHiddenFiles property
30583 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
30584 - Added InitialDirectory and RestoreDirectory support
30586 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
30588 * FileDialog.cs: Made dirComboBox usable
30590 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
30592 * FileDialog.cs: Added Filter support (case sensitiv)
30594 2005-03-24 Jackson Harper <jackson@ximian.com>
30596 * TabControl.cs: Need a couple more pixels for the lines.
30598 2005-03-23 Jackson Harper <jackson@ximian.com>
30600 * TabControl.cs: Give the tab page focus when it is selected.
30602 2005-03-23 Jackson Harper <jackson@ximian.com>
30604 * TabControl.cs: Account for the drawing of tabs borders when
30605 invalidating. If the slider was clicked dont do click detection on
30608 2005-03-23 Jackson Harper <jackson@ximian.com>
30610 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
30612 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
30614 * CategoryGridEntry.cs: Added
30615 * GridItem.cs: Added helper properties
30616 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
30617 * GridEntry.cs: Updated code for collection
30618 * PropertyGrid.cs: Cleaned up some formatting
30619 * PropertyGridView.cs: Added drop down functionality for enums.
30620 * GridItemCollection.cs: Added enumerator logic
30621 * PropertyGridEntry.cs: Added
30623 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30626 - Removed unnecessary commented code
30627 - Fixed handling for entering the filename manually in the combobox
30629 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30631 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
30633 2005-03-18 Peter Bartok <pbartok@novell.com>
30635 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
30636 them being touching the border
30638 2005-03-18 Peter Bartok <pbartok@novell.com>
30640 * TextControl.cs: Quick hack to center text better
30642 2005-03-18 Peter Bartok <pbartok@novell.com>
30645 - Don't throw NotImplemented exceptions, just print a notice once
30646 instead (requested by Miguel). This makes running existing SWF
30649 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
30650 - Added context menu trigger on right click
30651 * Panel.cs: Trigger invalidate on resize
30653 - Removed old double-buffer drawing
30654 - Added ResizeRedraw style to force proper update of statusbar
30656 - Removed debug output
30657 * ThemeWin32Classic.cs:
30658 - Fixed drawing of status bar, now draws Text property if there
30659 are no defined panels
30661 2005-03-18 Jackson Harper <jackson@ximian.com>
30663 * ImageList.cs: When the image stream is set pull all the images
30665 * ImageListStreamer.cs: Implement reading image list streams.
30667 2005-03-18 Peter Bartok <pbartok@novell.com>
30669 * ThemeWin32Classic.cs (DrawPictureBox):
30670 - Fixed calculations for centered drawing
30671 - Fixed drawing for normal mode, not scaling the image on normal
30673 2005-03-18 Peter Bartok <pbartok@novell.com>
30675 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
30678 - Made Open/Save button the accept button for FileDialog
30679 - Tied the cancel button to the IButtonControl cancel button
30680 - Save/Open now properly builds the pathname
30681 - Now handles user-entered text
30682 - Preventing crash on right-click if no item is selected
30683 - Fixed Text property, now uses contents of textbox
30684 - Fixed SelectedText property, now just returns the text part that
30685 is selected in the text box
30687 2005-03-18 Jackson Harper <jackson@ximian.com>
30689 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
30690 rect, make sure to de-adjust the interior rect after drawing the
30693 2005-03-18 Peter Bartok <pbartok@novell.com>
30695 * MenuAPI.cs: Remove menu *before* executing selected action to
30696 prevent the menu from 'hanging around'
30698 2005-03-17 Geoff Norton <gnorton@customerdna.com>
30700 * XplatUIOSX.cs: Implemented WorkingArea property
30702 2005-03-17 Peter Bartok <pbartok@novell.com>
30704 * XplatUIX11.cs: Fixed menu coord calculations
30705 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
30706 for calculating offsets
30708 2005-03-17 Peter Bartok <pbartok@novell.com>
30710 * Hwnd.cs: Do not consider menu presence for default client
30711 rectangle location/size
30712 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30713 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
30714 translation functions
30715 * FileDialog.cs: Fixed (what I presume is a) typo
30717 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
30719 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
30720 X access (avoids X-Async errors)
30722 2005-03-16 Jackson Harper <jackson@ximian.com>
30724 * TabControl.cs: Raise the SelectedIndexChanged event.
30726 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
30728 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30729 - Removed vertical ToolBar and replaced it with a custom panel
30730 (desktop and home button already work)
30731 - Added Help button (some controls get resized or relocated then)
30732 - Draw correct text depending on Open or Save.
30733 - Fixed some typos...
30735 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
30738 - Only change Maximum and Minimum when need it (bug fix)
30740 2005-03-15 Peter Bartok <pbartok@novell.com>
30742 * Form.cs: Use Handle for icon, to trigger creation if
30743 the window does not yet exist
30745 - CanSelect: Slight performance improvement
30746 - Focus(): Preventing possible recursion
30747 - Invalidate(): Removed ControlStyle based clear flag setting
30748 - WM_PAINT: fixed logic for calling OnPaintBackground
30749 - WM_ERASEBKGND: Fixed logic, added call to new driver method
30750 EraseWindowBackground if the control doesn't paint background
30752 - Moved EraseWindowBackground() method to internal methods
30753 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
30754 is sent via SendMessage on BeginPaint call on Win32
30756 - Added EraseWindowBackground() method
30757 - No longer sends WM_ERASEBKGND on .Expose, but on call to
30758 PaintEventStart, which more closely matches Win32 behaviour
30759 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
30760 - Fixed SetFocus() to properly deal with client and whole windows
30761 * Hwnd.cs: Added ErasePending property
30762 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
30763 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
30765 2005-03-12 Geoff Norton <gnorton@customerdna.com>
30768 - Fix hard loop when timers exist.
30769 - Fix bugs with middle and right click for 3 button mice.
30771 2005-03-11 Peter Bartok <pbartok@novell.com>
30774 - get_WorkingArea: Need to call X directly, GetWindowPos only
30775 returns cached data now
30776 - Added sanity check to GetWindowPos hwnd usage
30778 2005-03-11 Jackson Harper <jackson@ximian.com>
30780 * BindingManagerBase.cs: This method isn't used anymore as
30781 PullData now updates the data in the control.
30783 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
30785 * Form.cs: fixes menu drawing on X11
30786 * MenuAPI.cs: fixes menu drawing on X11
30788 2005-03-11 Peter Bartok <pbartok@novell.com>
30790 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
30791 from Jonathan Gilbert; should fix bug #73606
30792 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
30793 in Screen coordinates. Thanks, Jordi.
30794 * Form.cs: Added missing attribute
30796 2005-03-11 Peter Bartok <pbartok@novell.com>
30799 - Rudimentary Mdi support
30800 - Removed outdated FormParent code
30801 - Implemented lots of missing properties and methods, still missing
30802 transparency support
30803 - Added missing attributes
30804 - Implemented support for MaximumBounds
30805 - Added firing of various events
30806 * XplatUI.cs: Added SetIcon() method
30807 * XplatUIDriver.cs: Added SetIcon() abstract
30808 * XplatUIOSX.cs: Stubbed out SetIcon() method
30810 - Implemented SetIcon() support
30811 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
30812 - Switched to unix line endings
30814 - Made POINT internal so for can access it as part of MINMAX
30815 - Implemented SetIcon() support
30816 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
30817 native Mdi support again, might have to go managed)
30818 * Control.cs: Now fires the StyleChanged event
30819 * MdiClient.cs: Added; still mostly empty
30821 2005-03-10 Peter Bartok <pbartok@novell.com>
30823 * SaveFileDialog.cs: Added emtpy file
30825 2005-03-08 Peter Bartok <pbartok@novell.com>
30827 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
30828 in turn triggers OnCreateContro) when creating a handle for the
30830 * TextControl.cs: Fixed endless loop in certain cases when
30831 replacing the current selection
30833 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
30836 - Honors NewValue changes in Scroll events allowing apps to change it
30837 - Adds First and Last Scroll events
30838 - Fixes Thumb events
30840 2005-03-07 Peter Bartok <pbartok@novell.com>
30842 * Hwnd.cs: Added DefaultClientRectangle property
30843 * XplatUI.cs: Now using the X11 driver Where() method, which provides
30844 more detailed debug information
30846 - Fixed size-change feedback loop, where we would pull an old size
30847 off the queue and mistakenly change our window's size to an
30849 - Now compressing ConfigureNotify events, to reduce looping and
30851 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
30854 2005-03-07 Jackson Harper <jackson@ximian.com>
30856 * Binding.cs: Push data pushes from data -> property. Check if the
30857 property is readonly when attempting to set it.
30859 2005-03-07 Jackson Harper <jackson@ximian.com>
30861 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
30862 instead of IsSubclassOf. Pulling data now sets the value on the
30864 * PropertyManager.cs:
30865 * CurrencyManager.cs: Just need to pull data when updating now,
30866 because PullData will set the value on the control.
30868 2005-03-04 Jackson Harper <jackson@ximian.com>
30870 * Binding.cs: Implement data type parsing and converting on pulled
30871 data. TODO: Are there more ways the data can be converted?
30873 2005-03-04 Jackson Harper <jackson@ximian.com>
30875 * Binding.cs: Support <Property>IsNull checks. Also bind to the
30876 controls Validating method so we can repull the data when the
30877 control loses focus.
30879 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
30882 - Fixes null string format
30885 - Adds enum type checks
30886 - Fixes redrawing and recalc need after changing some properties
30887 - Fixes on focus_item set after the event
30888 - Fixes adding columns after the control has been created
30890 * ThemeWin32Classic.cs:
30891 - Fixes CheckBox focus rectangle
30892 - Fixes ColumnHeader drawing
30895 2005-03-03 Jackson Harper <jackson@ximian.com>
30897 * Binding.cs: Bind to <Property>Changed events so we can detect
30898 when properties are changed and update the data.
30900 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
30903 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
30904 - Fixes ImageList constructor with ImageList container
30905 - Fixes image scaling (wrong parameters at DrawImage)
30907 2005-02-02 Jackson Harper <jackson@ximian.com>
30909 * Binding.cs: Make property searches case-insensitive. Eliminate
30910 some duplicated code.
30912 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
30915 - Handle focus event
30916 - Fix scrollbar events
30917 - Discard highlighted item if remove it
30918 - Fixes SelectedItem with strings
30920 2005-03-01 Peter Bartok <pbartok@novell.com>
30923 - Fixed Visible property, now follows (once again) parent chain
30924 to return false if any control in the chain is visible=false
30925 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
30926 - Fixed several places where is_visible instead of Visible was used
30927 - Implemented FIXME related to focus selection when setting focused
30928 control to be invisible
30930 * XplatUIWin32.cs: Now using proper method to find out if window is
30931 visible. Thanks to Jordi for pointing it out
30933 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
30935 * ComboBox.cs: show/hide scrollbar instead of creating it
30937 2005-02-27 Jackson Harper <jackson@ximian.com>
30939 * CurrencyManager.cs: Add PositionChanged stuff.
30941 2005-02-27 Peter Bartok <pbartok@novell.com>
30943 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
30944 * XplatUIOSX.cs: Added GetMenuOrigin() stub
30945 * XplatUIWin32.cs: Implemented GetMenuOrigin()
30947 - Implemented GetMenuDC()
30948 - Implemented GetMenuOrigin()
30949 - Implemented ReleaseMenuDC()
30950 - Implemented generation of WM_NCPAINT message
30951 - Implemented generation and handling of WM_NCCALCSIZE message
30952 * Form.cs: Added debug helper message for Jordi's menu work
30954 - Modified ClientRect property; added setter, fixed getter to handle
30955 setting of ClientRect
30956 - Added MenuOrigin property
30958 2005-02-26 Peter Bartok <pbartok@novell.com>
30961 - Destroys the caret if a window that's being destroyed contains it
30962 - Ignores expose events coming from the X11 queue for windows that
30963 already are destroyed
30964 - Now uses the proper variable for handling DestroyNotify, before we
30965 marked the wrong window as destroyed
30966 - Improved/added some debug output
30968 2005-02-26 Peter Bartok <pbartok@novell.com>
30970 * X11Keyboard.cs: Fixes to work on 64bit systems
30972 2005-02-26 Peter Bartok <pbartok@novell.com>
30975 - Now calling OnHandleDestroyed from DestroyHandle()
30976 instead of Dispose()
30977 - Removed bogus call to controls.Remove() from DestroyHandle()
30979 2005-02-26 Peter Bartok <pbartok@novell.com>
30981 * Control.cs: Properly destroy child windows when our handle is
30984 2005-02-25 Peter Bartok <pbartok@novell.com>
30987 - Added 'DriverDebug' define to allow tracing XplatUI API calls
30988 - Alphabetized Static Methods and Subclasses
30991 - Added XException class to allow custom handling of X11 exceptions
30992 - Created custom X11 error handler, tied into XException class
30993 - Added support for MONO_XEXCEPTIONS env var to allow the user
30994 to either throw an exception on X errors or continue running
30995 after displaying the error
30996 - Added handling of DestroyNotify message
30997 - Added handler for CreateNotify message (still disabled)
30998 - Improved (tried to at least) Where method to provide file and lineno
31000 - Added XErrorHandler delegate
31001 - Added XRequest enumeration (to suppor translation of errors)
31003 2005-02-25 Jackson Harper <jackson@ximian.com>
31005 * PropertyManager.cs: Implement editing features
31006 * CurrencyManager.cs:
31007 * Binding.cs: First attempt at UpdateIsBinding
31008 * BindingManagerBase.cs: Call UpdateIsBinding before
31009 pushing/pulling data.
31011 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
31013 * MenuAPI.cs: Respect disabled items
31014 * ThemeWin32Classic.cs
31015 - Caches ImageAttributes creation for DrawImageDisabled
31016 - Fixes vertical menu line drawing
31017 - Draws disabled arrows in disable menu items
31019 2005-02-24 Peter Bartok <pbartok@novell.com>
31022 - Added UserData property to allow associating arbitrary objects
31024 - Fixed leak; now removing Hwnd references from static windows array
31026 - Fixed Graphics leak in PaintEventEnd
31027 - Removed usage of HandleData, switched over to Hwnd class
31028 * HandleData.cs: Removed, obsoleted by Hwnd.cs
31030 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31032 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
31033 * ScrollBar.cs: Fixes bug
31034 * TrackBar.cs: removes death code, clipping, mimize refreshes,
31035 keyboard navigation enhancements
31037 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31039 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
31040 * GroupBox.cs: Add control styles
31041 * Label.cs: Add control styles
31042 * UpDownBase.cs: Add control styles
31043 * ListBox.cs: Add control styles
31044 * XplatUIWin32.cs: Fixes wrong parameter order
31047 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
31049 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
31051 2005-02-23 Jackson Harper <jackson@ximian.com>
31053 * PropertyManager.cs: Implement property binding. This doesn't
31054 seem to work yet though as (I think) there are some bugs in
31055 System.ComponentModel.PropertyDescriptor.
31056 * BindingContext.cs: Use new PropertyManager constructor.
31058 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
31060 * ProgressBar.cs: use clip region in ProgressBar
31061 * ThemeWin32Classic.cs: use clip region in ProgressBar
31063 2004-02-22 Jackson Harper <jackson@ximian.com>
31065 * BindingsCollection.cs: Remove some debug code.
31067 2005-02-22 Jackson Harper <jackson@ximian.com>
31069 * BindingContext.cs:
31070 * ControlBindingsCollection.cs:
31071 * CurrencyManager.cs:
31073 * BindingManagerBase.cs: Initial implementation
31074 * BindingsCollection.cs: Add an internal contains method that the
31075 BindingManagerBase uses to ensure bindings aren't added twice to
31077 * PropertyManager.cs: Stubbed out.
31079 * ContainerControl.cs: Hook up databinding
31081 2005-02-22 Geoff Norton <gnorton@customerdna.com>
31084 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
31085 Fixed Invalidate/Update chain.
31086 Fixed tons of other minor bugs (this is almost a complete rewrite).
31088 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
31090 * ComboBox.cs: do subcontrol creation when the control is created
31092 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31094 * Label.cs: fixes image drawing (image and imagelist)
31095 * ThemeWin32Classic.cs: cache brushes
31097 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31099 * Form.cs: Move menu drawing code to Theme class
31100 * ComboBox.cs: Move ComboBox drawing code to Theme class
31101 * MenuItem.cs: Move menu drawing code to Theme class
31102 * MenuAPI.cs: Move menu drawing code to Theme class
31103 * ThemeWin32Classic.cs: New methods
31104 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
31105 * ListBox.cs: Move Listbox drawing code to Theme class
31106 * Theme.cs: New methods
31108 2005-02-20 Peter Bartok <pbartok@novell.com>
31111 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
31112 only process mnemonics on those)
31113 - Fixed event sequence for key handling; first calling
31114 ProcessKeyEventArgs now
31116 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
31117 for processing non-character keys
31118 - Fixed WM_CHAR to generate proper event sequence before processing
31119 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
31122 2005-02-19 Peter Bartok <pbartok@novell.com>
31124 * UserControl.cs: Added TextChanged event; added attributes
31125 * SizeGrip.cs: Implemented resizing and optional display of grip
31126 * Form.cs: Fixed attribute
31127 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31128 Changed meaning of ScrollWindow bool argument; instead of the
31129 clear attribute (which will be true usually anyway), it gives the
31130 option of moving child controls as well.
31132 - Changed to match new ScrollWindow argument
31133 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
31134 now handles the implicit parent window a WM puts around us
31135 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
31137 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
31138 * TreeView.cs: Adjusted to new ScrollWindow arguments
31140 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31142 * Form.cs: Menu integration with non-client area
31143 * MenuItem.cs: Menu integration with non-client area
31144 * MenuAPI.cs: Menu integration with non-client area
31146 2005-02-18 Peter Bartok <pbartok@novell.com>
31148 * MethodInvoker.cs: Added
31149 * MdiLayout.cs: Added
31150 * SendKeys.cs: Started implementation
31151 * ErrorIconAlignment.cs: Added
31153 2005-02-18 Peter Bartok <pbartok@novell.com>
31155 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
31156 * Form.cs: Added handling for Menu-related Non-client messages
31158 2005-02-17 Peter Bartok <pbartok@novell.com>
31160 * UpDownBase.cs: Fixed typo, compilation errors
31161 * DomainUpDown.cs: Fixed attribute value
31163 2005-02-16 Miguel de Icaza <miguel@novell.com>
31165 * UpDownBase.cs: Attach entry events.
31167 Add ForeColor property, Focused, InterceptArrowKeys (interception
31168 does not work yet).
31170 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
31173 - Redraw non client are on Setmenu
31174 - Calc proper menu starting point
31176 2005-02-17 Peter Bartok <pbartok@novell.com>
31178 * Application.cs: Fixed message_filter check
31180 2005-02-17 Peter Bartok <pbartok@novell.com>
31182 * Application.cs: Now calls registered message filters
31183 * DockStyle.cs: Fixed attribute
31184 * Form.cs: Fixed attribute
31185 * Menu.cs: Fixed attribute
31186 * ToolTip.cs: Fixed attribute
31187 * TreeNode.cs: Added missing attributes and arranged in regions
31188 * PropertyGrid.cs: Fixed signatures
31189 * TreeNodeCollection.cs: Added attributes
31190 * Splitter.cs: Added missing attributes; arranged into regions
31191 * TabPage.cs: Added missing attributes; arranged into regions
31192 * TextBoxBase.cs: Added missing attributes
31193 * TextBox.cs: Added missing attributes
31194 * ArrangeDirection.cs: Added missing attributes
31195 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
31196 * ToolBarButton.cs: Fixed attributes
31197 * AnchorStyles.cs: Fixed attribute
31198 * TrackBar.cs: Fixed attributes
31199 * TabControl.cs: Added missing attributes and arranged into regions
31200 * ToolBar.cs: Fixed attribute
31201 * StatusBar.cs: Fixed signature, organized into regions and added
31203 * StatusBarPanel.cs: Fixed attributes
31204 * ContentsResizedEventArgs.cs: Implemented
31205 * ContentsResizedEventHandler.cs: Implemented
31206 * DateBoldEventArgs.cs: Implemented
31207 * DateBoldEventHandler.cs: Implemented
31208 * UpDownEventArgs.cs: Implemented
31209 * UpDownEventHandler.cs: Implemented
31211 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
31213 * Form.cs: first Menu NC refactoring
31214 * MenuAPI.cs: first Menu NC refactoring
31216 2005-02-16 Peter Bartok <pbartok@novell.com>
31218 * ImeMode.cs: Added missing attributes
31219 * Menu.cs: Fixed attribute
31220 * GroupBox.cs: Fixed attribute
31221 * Label.cs: Fixed attribute
31222 * ColorDialog.cs (RunDialog): Removed TODO attribute
31223 * ComboBox.cs: Fixed attributes
31224 * ListControl.cs: Added missing attributes
31225 * PropertyGrid.cs: Fixed attributes
31226 * Control.cs: Fixed attributes
31227 * ListViewItem.cs: Added TypeConverter attribute
31228 * NotifyIcon.cs: Fixed attributes
31229 * ListView.cs: Fixed attributes
31230 * ButtonBase.cs: Fixed attribute
31231 * ImageList.cs: Added missing attributes
31232 * ContainerControl.cs: Fixed signature
31233 * CheckedListBox.cs: Fixed attribute; added missing attributes
31234 * Panel.cs: Fixed attributes
31235 * PropertyTabChangedEventArgs.cs: Added missing attribute
31236 * PropertyValueChangedEventArgs.cs: Added missing attribute
31237 * Binding.cs: Fixed attribute
31238 * ListViewItemConverter: Implemented ListViewSubItemConverter class
31239 * ListBox.cs: Fixed attribute; added missing attributes;
31240 * ScrollableControl.cs: Added missing attributes
31241 * PictureBox.cs: Added missing attributes; implemented missing property
31242 * DateTimePicker.cs: Added missing attributes
31243 * Theme.cs (ToolWindowCaptionHeight): Fixed type
31244 * MonthCalendar.cs: Fixed attributes
31245 * StatusBarPanel.cs: Added missing attributes
31246 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
31248 2005-02-16 Peter Bartok <pbartok@novell.com>
31250 * TextBoxBase.cs: The previous method to enforce height yet remember
31251 the requested high was less than ideal, this is an attempt to do
31253 * Control.cs: Added comment about possible problem
31254 * Copyright: Updated format
31255 * GridItemType.cs: Fixed swapped values
31257 2005-02-15 Jackson Harper <jackson@ximian.com>
31259 * BaseCollection.cs: Use property so we never access an
31260 uninitialized list. Also initialize the list in the property.
31262 2005-02-15 Peter Bartok <pbartok@novell.com>
31264 * GroupBox.cs (ProcessMnemonic): Implemented
31265 * Label.cs (ProcessMnemonic): Implemented
31266 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
31269 2005-02-15 Peter Bartok <pbartok@novell.com>
31271 * RadioButton.cs (ProcessMnemonic): Implemented
31272 * CheckBox.cs (ProcessMnemonic): Implemented
31274 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
31276 - Added internal method to allow calling ProcessMnemonic from other
31278 * ContainerControl.cs:
31279 - Started support for handling validation chain handling
31280 - Implemented ProcessMnemonic support
31281 - Added Select() call to Active, to make sure the active control
31283 * Form.cs: Setting toplevel flag for Forms (this was lost in the
31284 FormParent rewrite)
31285 * ThemeWin32Classic.cs:
31286 - DrawCheckBox(): Fixed stringformat to show hotkeys
31287 - DrawRadioButton(): Fixed stringformat to show hotkeys
31288 * CommonDialog.cs: Removed WndProc override, not needed
31290 2005-02-14 Peter Bartok <pbartok@novell.com>
31292 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
31293 missed those in the rewrite
31295 2005-02-14 Miguel de Icaza <miguel@novell.com>
31297 * NumericUpDown.cs (Increment, ToString): Add.
31298 (DecimalPlaces): implement.
31302 * UpDownBase.cs: Add the designer attributes.
31304 2005-02-13 Peter Bartok <pbartok@novell.com>
31306 * Panel.cs: Removed border_style, now in Control
31307 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
31308 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
31310 2005-02-13 Peter Bartok <pbartok@novell.com>
31312 * MouseButtons.cs: Added missing attributes
31313 * XplatUIStructs.cs: Added enumeration for title styles
31314 * LeftRightAlignment.cs: Added missing attributes
31315 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
31316 it compatible with Graphics.FromHwnd()
31317 * SelectedGridItemChangedEventArgs.cs: Fixed property type
31318 * Keys.cs: Added missing attributes
31319 * SelectionRange.cs: Added missing attributes
31320 * SelectionRangeConverter.cs: Added
31322 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
31323 ReleaseMenuDC methods
31324 - Renamed ReleaseWindow to UngrabWindow
31325 - Added proper startup notice to allow version identification
31327 - Added missing attributes
31328 - Removed FormParent concept
31329 * Label.cs: Removed border_style field, now in Control
31330 * RadioButton.cs: Now properly selects RadioButton when focus is
31332 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
31334 - Added missing attributes
31335 - Added borderstyle handling
31336 - Removed FormParent concept support
31337 - Fixed calls to XplatUI to match changed APIs
31338 - Fixed bug that would case us to use disposed Graphics objects
31339 - Removed unneeded internal methods
31340 - PerformLayout(): Fixed to handle DockStyle.Fill properly
31341 - SelectNextControl(): Fixed to properly check common parents
31342 * TextBoxBase.cs: Removed border_style field (now in Control)
31344 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
31345 fixed calculations for form size
31346 - Added support for localized strings and icons
31347 - Improved form size calculations, added border
31348 * ListView.cs: Removed border_style field (now in Control)
31349 * X11Structs.cs: Moved several structs from X11 driver here
31350 * X11Keyboard.cs: Changed debug message
31351 * Application.cs: Removed FormParent concept support
31353 - Resetting end_modal flag
31354 - Removed FormParent concept support
31355 * NativeWindow.cs: Removed FormParent concept support
31356 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
31357 Client area and Non-Client whole window to allow support for WM_NC
31359 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
31360 prevent using it until it supports Hwnd as per Geoff Norton's request
31361 * ToolBar.cs: Fixed drawing, was not doing proper drawing
31362 * PictureBox.cs: Removed border_style field, now in Control
31363 * XplatUIWin32.cs: Added new driver methods
31365 2005-02-12 Peter Bartok <pbartok@novell.com>
31367 * OpacityConverter.cs: Implemented
31368 * Hwnd.cs: Internal class to support drivers that need to emulate
31369 client area/non-client area window behaviour
31371 2005-02-11 Peter Bartok <pbartok@novell.com>
31373 * KeysConverter.cs: Implemented
31375 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
31377 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
31378 * LinkLabel: Added missing attributes
31379 * MainMenu.cs: fixes ToString
31380 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
31381 * ListBox.cs: fixes event position
31382 * TrackBar.cs: adds missing attributes and events
31384 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
31386 * MenuItem.cs: Use SystemInformation and bug fixes
31387 * MenuAPI.cs: Use SystemInformation and bug fixes
31389 2005-02-09 Jackson Harper <jackson@ximian.com>
31391 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
31392 their keystate otherwise things like VK_MENU get stuck "on".
31394 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
31396 * ListBox.cs: Fixes AddRange bug
31398 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
31401 - Add missing attributes
31402 - Add missing method
31404 * CheckedListBox.cs: Added missing attributes
31405 - Add missing attributes
31406 - Remove extra method
31408 * ComboBox.cs: Added missing attributes
31409 * VScrollBar.cs: Added missing attributes
31410 * ScrollBar.cs: Added missing attributes
31411 * ListBox.cs: Fixes signature, add missing consts
31412 * LinkArea.cs: Added missing attributes
31415 2005-02-08 Peter Bartok <pbartok@novell.com>
31417 * Menu.cs: Added missing attributes
31418 * MainMenu.cs: Added missing attributes
31419 * GroupBox.cs: Added missing attributes
31420 * Label.cs: Added missing attributes
31421 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
31423 - Added Instance and Options properties
31424 - Added missing attributes
31425 * Cursor.cs: Made Serializable
31426 * NotifyIcon: Added missing attributes
31427 * MenuItem.cs: Added missing attributes
31428 * TextBoxBase.cs: Implemented AppendText() and Select() methods
31429 * Panel.cs: Added Missing attributes
31430 * MonthCalendar.cs: Fixed CreateParams
31432 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
31436 - Fixes issues with links
31437 - Adds the class attributes
31439 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
31442 - Fixes button when no items available in dropdown
31443 - Fixes repainting problems
31444 - Adds the class attributes
31446 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31448 * XplatUIOSX.cs: Detect the menu bar and title bar height from
31449 the current theme. Cache these on startup.
31451 2005-02-07 Jackson Harper <jackson@ximian.com>
31453 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
31454 the scrollbar buttons when they are depressed.
31456 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31458 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
31459 Get the display size from the main displayid. We currently dont
31460 support multiple display configurations.
31462 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31464 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
31466 2005-02-07 Miguel de Icaza <miguel@novell.com>
31468 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
31470 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
31472 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
31474 2005-02-04 Jackson Harper <jackson@ximian.com>
31476 * ThemeWin32Classic.cs: Respect the clipping rect when
31477 drawing. Only fill the intersection of clips and rects so there
31478 isn't a lot of large fills.
31479 * ScrollBar.cs: Pass the correct clipping rect to the theme
31480 engine. Remove some debug code.
31482 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
31484 * DateTimePicker.cs:
31485 - Fixed crash on DateTime.Parse, use Constructor instead
31487 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
31491 - Owner draw support (MeasureItem and DrawItem)
31493 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
31496 - Implements FindMergePosition and MergeMenu functions (very poor documented)
31497 - Fixes MenuItems.Add range
31499 - MergeMenu and Clone and CloneMenu functions
31501 2005-02-03 Jackson Harper <jackson@ximian.com>
31503 * ScrollBar.cs: Make abstract
31504 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
31507 2005-02-03 Jackson Harper <jackson@ximian.com>
31509 * ScrollBar.cs: First part of my scrollbar fixups. This removes
31510 all the unneeded refreshes and uses invalidates with properly
31513 2005-02-03 Peter Bartok <pbartok@novell.com>
31515 * ComponentModel.cs: Added
31516 * IDataGridEditingService.cs: Added
31517 * Timer.cs: Added missing attributes
31518 * ToolTip.cs: Added missing attributes
31520 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
31522 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
31524 2005-02-03 Peter Bartok <pbartok@novell.com>
31526 * ListBox.cs: Added missing attributes
31528 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
31531 - Fixes font height after font change
31532 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
31534 2005-02-02 Peter Bartok <pbartok@novell.com>
31536 * HandleData.cs: Introduced static methods to allow class
31537 to be more self-contained and track it's own HandleData objects
31538 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
31539 HandleData to use new static methods
31541 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
31544 - Fixes default size and PreferredHeight
31546 - ObjectCollection.Insert implementation
31552 - ObjectCollection.Insert implementation
31553 - No selection after clean
31556 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31558 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
31560 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
31563 - Caches ItemHeight calculation for OwnerDrawVariable
31564 - Handles dropdown properly
31565 - Fixes several minor bugs
31567 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
31570 - Fixes 71946 and 71950
31571 - Fixes changing Multicolumn on the fly
31572 - Fixes keyboard navigation on Multicolumn listboxes
31574 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31576 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
31577 crash reporter log.
31579 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31581 * XplatUIOSX.cs: Allow applications to actually exit.
31583 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31585 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
31586 their parent at creation time rather than lazily later. Fixes a major
31587 regression we were experiencing.
31589 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31591 * ThemeWin32Classic.cs: more date time picker painting fixes
31592 * DateTimePicker.cs: more monthcalendar drop down fixes
31593 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
31595 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
31598 - When moving the thumb going outside the control should stop the moving
31599 - Adds the firing of missing events
31600 - Fixes no button show if Size is not specified
31601 - End / Home keys for keyboard navigation
31603 2005-01-30 Peter Bartok <pbartok@novell.com>
31605 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
31606 sanity check to prevent theoretical loop
31607 * XplatUIWin32.cs (SetVisible): Removed debug output
31608 * XplatUIX11.cs (SystrayChange): Added sanity check
31609 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
31610 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
31611 behaviour, valid until the X11 client window rewrite is done
31612 * TextBox.cs (ctor): Setting proper default foreground and background
31615 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
31617 * Theme: Added DrawDateTimePicker to interface
31618 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
31619 * DateTimePicker.cs: Created (still needs keys and painting code)
31620 * DateTimePickerFormat.cs: added
31621 * MonthCalendar.cs: fixed CreateParams for popup window mode
31623 2005-01-29 Peter Bartok <pbartok@novell.com>
31625 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
31626 this should also the calculations for ligher/darker
31627 * Theme.cs: Fixed defaults for ScrollBar widths/heights
31629 2005-01-29 Peter Bartok <pbartok@novell.com>
31631 * ArrangeDirection.cs: Added
31632 * ArrangeStartingPositon.cs: Added
31633 * SystemInformation.cs: Implemented
31634 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31635 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
31636 used by SystemInformation class
31637 * X11Strucs.cs: Added XSizeHints structure
31639 - Fixed CreateParams to make sure the menu window is always visible
31640 - TrackPopupMenu: Added check to make sure we don't draw the
31643 2005-01-29 Peter Bartok <pbartok@novell.com>
31645 * HandleData.cs: Added method for altering invalid area
31646 * TextBoxBase.cs: Implemented TextLength
31648 2005-01-28 Peter Bartok <pbartok@novell.com>
31650 * XplatUIX11.cs: Improvement over last patch, not sending
31651 the WM_PAINT directly anymore, instead we scroll any pending
31652 exposed areas and let the system pick out the WM_PAINT later
31654 2005-01-28 Peter Bartok <pbartok@novell.com>
31656 * SWF.csproj: Deleted, no longer used. Instead,
31657 Managed.Windows.Forms/SWF.csproj should be used
31658 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
31659 directly, to avoid a potential race condition with the next
31662 2005-01-28 Peter Bartok <pbartok@novell.com>
31664 * XplatUI.cs: Made class internal
31666 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
31668 * CheckedListBox.cs:
31671 - Missing methods and events
31673 2005-01-27 Peter Bartok <pbartok@novell.com>
31675 * Application.cs (Run): Don't use form if we don't have one
31677 2005-01-27 Peter Bartok <pbartok@novell.com>
31679 * TextBoxBase.cs (get_Lines): Fixed index off by one error
31681 2005-01-27 Peter Bartok <pbartok@novell.com>
31683 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
31684 * GridItem.cs: Added; Patch by Jonathan S. Chambers
31685 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
31686 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
31687 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
31688 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
31689 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31690 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31691 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31692 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31693 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31694 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31696 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31699 - Draw focus on Simple Combobox
31700 - Fixes drawing issues
31703 2005-01-27 Peter Bartok <pbartok@novell.com>
31706 - Place window in default location, instead of hardcoded 0/0
31707 - Send initial LocationChanged event
31709 - UpdateBounds after creation to find out where the WM placed us
31710 - Make sure that if the ParentForm changes location the Form
31712 * XplatUIX11.cs: XGetGeometry will not return the coords relative
31713 to the root, but to whatever the WM placed around us.
31714 Translate to root coordinates before returning toplevel
31716 * XplatUIWin32.cs: Removed debug output
31717 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
31718 flag to GetWindowPos, to allow translation of coordinates on X11
31720 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31722 * ListBox.cs: connect LostFocus Event
31724 2005-01-27 Peter Bartok <pbartok@novell.com>
31726 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31727 XplatUIX11.cs: Extended the Systray API
31728 * Form.cs: Removed debug output
31729 * Application.cs: Fixed focus assignment, always need to call
31730 XplatUI.Activate() since Form.Activate() has rules that may
31732 * NotifyIcon.cs: Should be complete now
31733 * ToolTip.cs: Worked around possible timer bug
31735 2005-01-27 Jackson Harper <jackson@ximian.com>
31738 - Only invalidate the effected tabs when the
31739 selected index changes. This reduces drawing and gets rid of some
31741 - Only refresh if the tabs need to be shifted, otherwise only
31742 invalidate the slider button.
31743 - On windows the tabs are not filled to right if the slider is
31746 2005-01-27 Jackson Harper <jackson@ximian.com>
31748 * TabControl.cs: Only refresh on mouseup if we are showing the
31749 slider. Also only invalidate the button whose state has changed.
31751 2005-01-26 Peter Bartok <pbartok@novell.com>
31753 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
31754 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
31755 and SystrayRemove() methods
31756 * XplatUIOSX.cs: Stubbed Systray methods
31758 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
31760 - Fixed broken XChangeProperty calls (marshalling messed up things)
31761 * X11Structs.cs: Added enums and structs required for Size hinting
31762 * NotifyIcon.cs: Added & implemented
31764 2005-01-26 Jackson Harper <jackson@ximian.com>
31766 * TabControl.cs: Space vertically layed out tabs properly.
31768 2005-01-26 Peter Bartok <pbartok@novell.com>
31770 * Form.cs (CreateClientParams): Always set the location to 0,0
31771 since we're a child window.
31773 * Control.cs (SetVisibleCore): Always explicitly setting the location
31774 of a toplevel window, apparently X11 doesn't like to move windows
31775 while they're not mapped.
31777 2005-01-26 Jackson Harper <jackson@ximian.com>
31779 * TabControl.cs: Implement FillToRight size mode with vertically
31782 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31784 * ControlPaint.cs, ThemeWin32Classic.cs
31785 - Fixes DrawFocusRectangle
31787 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31790 - MenuBar tracking only starts when item is first clicked
31791 - Fixes menu hidding for multiple subitems
31792 - Unselect item in MenuBar when item Executed
31795 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
31798 - IsInputKey for ListBox
31801 - Shift and Control item selection
31802 - Implement SelectionMode.MultiExtended
31803 - Fixes RightToLeft
31805 - IsInputKey implemented
31806 - Do not generate OnTextChangedEdit on internal txt changes
31808 2005-01-23 Peter Bartok <pbartok@novell.com>
31810 * AccessibleObject.cs: Partially implemented Select()
31811 * MonthCalendar.cs: Added missing attributes and events
31812 * Form.cs: Fixed CreateParams behaviour, now controls derived from
31813 form can properly override CreateParams.
31814 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31815 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
31816 Control performs Invalidate & Update
31817 * NativeWindow (CreateHandle): Added special handling for Form
31818 and Form.FormParent classes to allow overriding of From.CreateParams
31820 - ControlNativeWindow: Renamed 'control' variable to more intuitive
31822 - ControlNativeWindow: Added Owner property
31823 - Removed usage of Refresh() on property changes, changed into
31824 Invalidate(), we need to wait until the queue is processed for
31825 updates, direct calls might cause problems if not all vars for
31826 Paint are initialized
31827 - Added call to UpdateStyles() when creating the window, to set any
31828 styles that CreateWindow might have ignored.
31829 - Added support for Form CreateParent overrides to UpdateStyles()
31830 * MessageBox.cs: Removed no longer needed FormParent override stuff,
31831 CreateParams are now properly overridable
31832 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
31833 CreateParams are now properly overridable
31835 2005-01-23 Miguel de Icaza <miguel@ximian.com>
31837 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
31840 Capture LostFocus and OnTextBoxChanged. The later introduces a
31841 recursive invocation that I have not figured out yet.
31843 Reset the timer when not using (it was accumulating).
31846 (OnTextBoxChanged): Set UserEdit to true here to track whether the
31847 user has made changes that require validation.
31849 Reset changing to avoid loops.
31851 2005-01-22 Miguel de Icaza <miguel@ximian.com>
31853 * NumericUpDown.cs: Display value at startup.
31855 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
31858 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
31859 filled in. Added some basic parsing of text.
31861 Still missing the OnXXX method overrides, and figuring out the
31862 events that must be emitted.
31864 * UpDownBase.cs: Handle UserEdit on the Text property.
31866 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
31869 - Fixes IntegralHeight
31872 2005-01-21 Jackson Harper <jackson@ximian.com>
31874 * TabControl.cs: Set the SelectedIndex property when SelectedTab
31875 is set so that the page visibility is updated and the tabs are
31878 2005-01-21 Jackson Harper <jackson@ximian.com>
31880 * TabControl.cs: Use cliping rectangle for blitting. Give the
31881 theme the clipping rect so we can do clipping while
31882 drawing. Remove some debug code.
31884 2005-01-21 Jackson Harper <jackson@ximian.com>
31886 * TabPage.cs: Add a new method so tab pages can force the tab
31887 control to recalculate the tab page sizes.
31888 * TabControl.cs: UpdateOwner needs to make the tab control recalc
31891 2005-01-20 Jackson Harper <jackson@ximian.com>
31893 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
31895 2005-01-20 Jackson Harper <jackson@ximian.com>
31897 * TreeView.cs: Set the bounds for nodes properly. They were
31898 getting screwed up when checkboxes were not enabled, but images
31901 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
31904 - Owner draw support
31907 2005-01-20 Jackson Harper <jackson@ximian.com>
31909 * XplatUIStructs.cs: More misc keys
31910 * X11Keyboard.cs: Ignore some control keys.
31912 2005-01-20 Jackson Harper <jackson@ximian.com>
31914 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
31915 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
31917 2005-01-19 Peter Bartok <pbartok@novell.com>
31919 * Control.cs: Un-selecting the control when it is loosing focus
31921 2005-01-19 Jackson Harper <jackson@ximian.com>
31923 * TreeView.cs: Hook up to the text controls leave event so we can
31924 end editing when the users clicks outside the text box.
31926 2005-01-19 Jackson Harper <jackson@ximian.com>
31928 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
31929 get set in the conversion array.
31931 2005-01-19 Peter Bartok <pbartok@novell.com>
31933 * Application.cs (ModalRun): Added a call to CreateControl to ensure
31934 focus is properly set
31936 - Added missing attributes
31937 - removed styles, those are already set in the base class
31939 - Added missing attributes
31940 - Added clip window styles
31941 * CheckBox.cs: Added missing attributes
31943 - FormParentWindow.CreateParams: Added required clip styles
31944 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
31945 also filters modifier keys
31947 - Added assignment of Accept and Cancel button to enable Enter
31948 and Esc keys in MessageBox dialogs
31949 - FormParentWindow.CreateParams: Added required clip styles
31950 * RadioButton.cs: Added missing attributes
31951 * TextControl.cs: No longer draws selection if control does not
31954 - Now draws simple rectangle around test area to make it obvious
31955 there's a control. This is a hack until we properly support borders
31956 - A few simple fixes to support selections better, now erases selected
31957 text when typing, and resets selection when using movement keys
31959 2005-01-19 Miguel de Icaza <miguel@ximian.com>
31961 * UpDownBase.cs: Added some new properties.
31963 * DomainUpDown.cs: Implement a lot to get my test working.
31965 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31967 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
31969 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31971 * OSXStructs (WindowAttributes): Fixed csc complaints
31973 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31976 OSXStructs.cs: Initial refactor to move enums and consts into
31977 OSXStructs and use them in the driver for greater readability.
31979 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31981 * XplatUIOSX.cs: Initial support for Standard Cursors.
31982 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
31984 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
31986 * ComboBox.cs: ability to change style when the ctrl is already
31987 created, missing methods and events, bug fixes, signature fixes
31989 2005-01-19 Peter Bartok <pbartok@novell.com>
31991 * Cursors.cs (ctor): Added ctor to fix signature
31993 2005-01-18 Peter Bartok <pbartok@novell.com>
31995 * Button.cs: Implemented DoubleClick event
31997 - Fixed keyboard handling to behave like MS, where the press of
31998 Spacebar is equivalent to a mousedown, and the key release is
31999 equivalent to mouseup. Now a spacebar push will give the same
32000 visual feedback like a mouse click.
32001 - Added missing attributes
32002 - Added ImeModeChanged event
32003 - Added support for generating DoubleClick event for derived classes
32005 - Implemented DoubleClick event
32006 - Added missing attributes
32007 * CommonDialog.cs: Added missing attribute
32008 * ContextMenu.cs: Added missing attributes
32010 - AutoChecked buttons do not allow to be unselected when clicked
32011 (otherwise we might end up with no selected buttons in a group)
32012 - Added missing attributes
32013 - Implemented DoubleClickEvent
32014 * ThreadExceptionDialog.cs: Enabled TextBox code
32016 2005-01-18 Peter Bartok <pbartok@novell.com>
32018 * Form.cs: Removed debug output
32019 * Button.cs: Added support for DoubleClick method
32021 2005-01-18 Peter Bartok <pbartok@novell.com>
32024 - Added method to parent window that allows triggering size
32025 calculations when a menu is added/removed
32026 - set_Menu: Cleaned up mess from early days of Form and Control,
32027 now properly triggers a recalc when a menu is added/removed
32028 - Added case to select form itself as focused form if no child
32030 - Added PerformLayout call when showing dialog, to ensure properly
32033 - Select(): Made internal so Form can access it
32034 - Focus(): Only call Xplat layer if required (avoids loop), and sets
32036 * Application.cs (Run): Removed hack and calls PerformLayout instead
32037 to trigger calculation when Form becomes visible
32039 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
32041 * ComboBox.cs: fixes for ownerdraw
32043 2005-01-18 Peter Bartok <pbartok@novell.com>
32046 - Sentinel is no longer static, each Document gets it's own, this
32047 avoids locking or alternatively overwrite problems when more
32048 than one text control is used simultaneously.
32049 - Switched to use Hilight and HilightText brushes for text selection
32051 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
32053 2005-01-18 Peter Bartok <pbartok@novell.com>
32056 - Hooked up the following events:
32064 o SystemColorsChanged
32065 o ParentFontChanged
32067 - Removed debug output
32068 - Added a call to the current theme's ResetDefaults when a color change
32070 * Form.cs: Now setting the proper ImeMode
32071 * Theme.cs: Defined a method to force recreation of cached resources
32072 and rereading of system defaults (ResetDefaults())
32073 * ThemeWin32Classic.cs: Added ResetDefaults() stub
32075 2005-01-17 Peter Bartok <pbartok@novell.com>
32077 * Control.cs: Added missing attributes
32079 2005-01-17 Jackson Harper <jackson@ximian.com>
32081 * TreeNode.cs: Implement editing. Add missing properties selected
32083 * TreeView.cs: Implement node editing. Also some fixes to use
32084 Invalidate (invalid area) instead of Refresh when selecting.
32086 2005-01-17 Peter Bartok <pbartok@novell.com>
32089 - Implemented InvokeGotFocus() method
32090 - Implemented InvokeLostFocus() method
32091 - Implemented InvokePaint() method
32092 - Implemented InvokePaintBackground() method
32093 - Implemented InvokeClick() method
32094 - Implemented FindForm() method
32095 - Implemented RectangleToClient() method
32096 - Implemented ClientToRectangle() method
32097 - Implemented ResetBackColor() method
32098 - Implemented ResetCursor() method
32099 - Implemented ResetFont() method
32100 - Implemented ResteForeColor() method
32101 - Implemented ResetImeMode() method
32102 - Implemented ResetLeftToRight() method
32103 - Implemented ResetText() method
32104 - Implemented Scale() methods
32105 - Implemented ScaleCore() method
32106 - Implemented Update() method
32107 - Removed unused variables
32108 - Stubbed AccessibilityNotifyClients and
32109 ControlAccessibleObject.NotifyClients() methods (dunno what to do
32111 - Now setting proper default for RightToLeft property
32112 - Fixed bug in SetClientSizeCore that would cause windows to get
32114 - Now sending Click/DoubleClick events
32115 - Now selecting controls when left mouse button is clicked on
32117 * AccessibleEvents.cs: Added
32118 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
32119 * XplatUIOSX.cs: Stubbed UpdateWindow() method
32120 * XplatUIWin32.cs: Implemented UpdateWindow() method
32121 * XplatUIX11.cs: Implemented UpdateWindow() method
32122 * Form.cs: Removed stray semicolon causing CS0162 warning
32123 * ThemeWin32Classic.cs: Fixed unused variable warnings
32124 * ScrollableControl.cs: Now calls base method for ScaleCore
32125 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
32126 style to avoid interference with internal click handler (which is
32127 different than standard Control click handling)
32129 - Now unchecks all sibling radio buttons when control is
32130 selected (Fixes #68756)
32131 - Removed internal tabstop variable, using the one inherited from
32134 2005-01-17 Jackson Harper <jackson@ximian.com>
32136 * NavigateEventArgs.cs: Fix base type.
32137 * LinkLabel.cs: Sig fix
32139 2005-01-17 Jackson Harper <jackson@ximian.com>
32141 * TreeView.cs: Only invalidate the effected nodes bounds when
32144 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32146 * XplatUIWin32.cs: fixes Win32 marshaling
32147 * XplatUIX11.cs: fixes method signature
32149 2005-01-17 Peter Bartok <pbartok@novell.com>
32151 * XplatUIX11.cs: Clean up resources when we no longer need them
32153 2005-01-17 Peter Bartok <pbartok@novell.com>
32155 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
32156 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
32157 and DestroyCursor() methods.
32158 * Cursor.cs: Partially implemented, now supports standard cursors;
32159 still contains some debug code
32160 * Cursors.cs: Implemented class
32162 - WndProc(): Added handling of WM_SETCURSOR message, setting the
32164 - Implemented Cursor property
32165 - Replaced break; with return; more straightforwar and possibly
32167 - Now properly setting the result for WM_HELP
32168 * X11Structs.cs: Added CursorFontShape enum
32169 * XplatUIStructs.cs:
32170 - Added StdCursor enum (to support DefineStdCursor() method)
32171 - Added HitTest enum (to support sending WM_SETCURSOR message)
32173 - Now sends the WM_SETCURSOR message
32174 - Implemented new cursor methods
32175 * XplatUIOSX.cs: Stubbed new cursor methods
32177 - Implemented new cursor methods
32178 - Added GetSystemMetrics function and associated enumeration
32180 2005-01-15 Peter Bartok <pbartok@novell.com>
32183 - WndProc(): Now handles EnableNotifyMessage
32184 - SelectNextControl(): Fixed bug where if no child or sibling
32185 controls exist we looped endlessly
32187 2005-01-14 Jackson Harper <jackson@ximian.com>
32189 * TreeView.cs: Recalculate the tab pages when a new one is added
32190 so that the proper bounding rects are created.
32192 2005-01-14 Jackson Harper <jackson@ximian.com>
32194 * TreeView.cs: Draw a gray box instead of a grip in the lower
32195 right hand corner when there are both horizontal and vertical
32198 2005-01-14 Jackson Harper <jackson@ximian.com>
32200 * Control.cs: When erasing backgrounds use FromHwnd instead of
32201 FromHdc when there is a NULL wparam. This occurs on the X driver.
32202 * XplatUIX11.cs: Set the wparam to NULL.
32204 2005-01-13 Jackson Harper <jackson@ximian.com>
32206 * PictureBox.cs: Implement missing methods (except ToString, need
32207 to test that on windows) and events. When visibility is changed we
32208 need to redraw the image because the buffers are killed. When size
32209 is changed refresh if the sizemode needs it.
32211 2005-01-13 Peter Bartok <pbartok@novell.com>
32213 * Control.cs (SelectNextControl): Was using wrong method to select
32216 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32218 * ComboBox.cs: fixes dropstyle
32220 2005-01-13 Peter Bartok <pbartok@novell.com>
32223 - Implemented Select() override
32224 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
32225 - Now sets keyboard focus on startup
32226 * Control.cs (SelectNextControl): Now properly handles directed=true
32228 - WndProc: Now passes tab key on to base if AcceptTabChar=false
32229 - Added (really bad) focus rectangle (mostly for testing)
32230 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
32231 to enforce redraw on focus changes
32232 * ContainerControl.cs:
32233 - Fixed detection of Shift-Tab key presses
32234 - Fixed traversal with arrow keys
32235 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
32236 gonna keep this or if it's complete yet
32238 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32240 * ComboBox.cs: missing properties, fixes
32242 2005-01-13 Peter Bartok <pbartok@novell.com>
32244 * Panel.cs (ctor): Setting Selectable window style to off
32245 * Splitter.cs (ctor): Setting Selectable window style to off
32246 * GroupBox.cs (ctor): Setting Selectable window style to off
32247 * Label.cs (ctor): Setting Selectable window style to off
32249 2005-01-12 Miguel de Icaza <miguel@ximian.com>
32251 * UpDownBase.cs (InitTimer): If the timer has been already
32252 created, enable it.
32254 Use a TextBox instead of a Label.
32256 2005-01-12 Jackson Harper <jackson@ximian.com>
32258 * TreeView.cs: Refresh the tree after sorting the nodes. Always
32259 draw the connecting node lines (when ShowLines is true).
32260 * TreeNode.cs: The nodes index can now be updated. This is used
32261 when a node collection is sorted.
32262 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
32263 insert or an existing unsorted node collection can be sorted.
32265 2005-01-12 Peter Bartok <pbartok@novell.com>
32267 * ContainerControl.cs: Implemented ProcessDialogKeys()
32269 2005-01-12 Peter Bartok <pbartok@novell.com>
32272 - Implemented SelectNextControl() method
32273 - Several focus related bug fixes
32274 - Fixed Docking calculations to match MS documentation and
32277 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
32279 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
32282 2005-01-12 Peter Bartok <pbartok@novell.com>
32285 - Fixed broken Contains() method
32286 - Implemented GetNextControl() method. Finally. This is the pre-
32287 requisite for focus handling.
32289 2005-01-12 Peter Bartok <pbartok@novell.com>
32291 * OSXStrucs.cs: Added
32293 2005-01-12 Peter Bartok <pbartok@novell.com>
32296 - Removed PeekMessageFlags
32297 - Implemented SetWindowStyle() method
32298 * XplatUIStructs.cs: Added PeekMessageFlags
32299 * X11Structs: Added missing border_width field to XWindowChanges struct
32301 - PeekMessage: Now throws exception if flags which are not yet
32302 supported are passed
32303 - Implemented SetWindowStyle() method
32304 - Fixed SetZOrder to handle AfterHwnd properly
32305 * XplatUI.cs: Added SetWindowStyle() method
32306 * XplatUIDriver.cs: Added SetWindowStyle() abstract
32308 - Implemented UpdateStyles() method
32309 - Implemented UpdateZOrder() method
32310 * XplatUIOSX.cs: Added SetWindowStyle() stub
32312 2005-01-12 Geoff Norton <gnorton@customerdna.com>
32314 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
32318 2005-01-11 Jackson Harper <jackson@ximian.com>
32320 * TreeView.cs: Still need to draw lines to siblings even if out of
32321 the current node is out of the clip.
32323 2005-01-11 Jackson Harper <jackson@ximian.com>
32325 * TreeView.cs: When setting the hbar/vbar/grip position use
32326 SetBounds so that perform layout is only called once. Also suspend
32327 and resume layout so layout is only done once for all controls.
32328 - Removed some debug fluff
32329 * SizeGrip.cs: Call base implmentation in overriding methods.
32330 - When visibility is changed the drawing buffers are killed so we
32333 2005-01-11 Jackson Harper <jackson@ximian.com>
32335 * TreeView.cs: Calculate the open node count while drawing. This
32336 saves us an entire tree traversal for every paint operation. Use
32337 a member var for the open node count so less vars are passed around.
32339 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
32341 * MonthCalendar.cs:
32342 - fixed selection to use mousemove, not mouse polling on timer
32343 * ThemeWin32Classic.cs
32344 - removed redundant unused variable "no_more_content"
32346 2005-01-11 Peter Bartok <pbartok@novell.com>
32348 * XplatUIX11.cs (DoEvents): Needs to return when no more events
32349 are pending, so it now calls PeekMessage instead of GetMessage;
32350 implemented a incomplete version of PeekMessage
32352 2005-01-11 Peter Bartok <pbartok@novell.com>
32354 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
32356 * TextBoxBase.cs: Added sending of TextChanged event
32358 2005-01-10 Jackson Harper <jackson@ximian.com>
32360 * TreeView.cs: Try not to draw outside the clipping rectangle on
32363 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
32365 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
32367 2005-01-10 Jackson Harper <jackson@ximian.com>
32370 - Implement fast scrolling. Now only the newly
32371 exposed nodes are drawn and the old image is moved using the
32372 XplatUI::ScrollWindow method.
32373 - Factor in height of nodes when calculating whether or not the
32374 node is in the clipping rect.
32376 2005-01-10 Jackson Harper <jackson@ximian.com>
32378 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
32380 2005-01-10 Peter Bartok <pbartok@novell.com>
32382 * Application.cs: Added temporary hack to resolve all our resize
32383 required issues on startup. This will get fixed properly at
32384 some point in the future
32386 2005-01-10 Jackson Harper <jackson@ximian.com>
32388 * SizeGrip.cs: New internal class that is used as a sizing
32389 grip control...hence the name.
32391 2005-01-10 Peter Bartok <pbartok@novell.com>
32393 * Control.cs: Implemented proper TabIndex handling, now assigning
32394 a tabindex when a control is added to a container
32395 * GroupBox.cs (ctor): Now sets the Container style bit, required
32396 for Control.GetNextControl()
32398 2005-01-09 Jackson Harper <jackson@ximian.com>
32400 * TextBoxBase.cs: Clear window when scrolling (fixes build).
32402 2005-01-09 Peter Bartok <pbartok@novell.com>
32404 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32405 XplatUIX11.cs: Added ability to control ScrollWindow expose and
32406 an overload for ScrollWindow to allow only scrolling a rectangle
32408 2005-01-09 Peter Bartok <pbartok@novell.com>
32411 - Implemented SetDesktopBounds method
32412 - Implemented SetDesktopLocation method
32414 2005-01-08 Jackson Harper <jackson@ximian.com>
32416 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
32417 the node count has changed, this removes to VScroll::Refresh calls
32420 2005-01-08 Geoff Norton <gnorton@customerdna.com>
32422 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
32424 2005-01-07 Jackson Harper <jackson@ximian.com>
32426 * TreeNode.cs: Just update the single node when it is
32427 checked. Don't refresh after toggling, the Expand/Collapse already
32429 * TreeView.cs: Respect clipping a little more when drawing. Try
32430 not to redraw things that don't need to be redrawn. Just hide the
32431 scrollbars when they are no longer needed instead of removing
32432 them, so they don't have to be created again and again.
32434 2005-01-07 Geoff Norton <gnorton@customerdna.com>
32436 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
32437 coordinates to window space to place the caret properly, FIXED.
32438 Implement GetWindowState & SetWindowState
32440 2005-01-06 Peter Bartok <pbartok@novell.com>
32443 - Implemented ClientSize property
32444 - Implemented DesktopBounds property
32445 - Implemented DesktopLocation property
32446 - Implemented IsRestrictedWindow property
32447 - Implemented Size property
32448 - Implemented TopLevel property
32449 - Implemented FormWindowState property
32451 - Implemented GetTopLevel() method
32452 - Implemented SetTopLevel() method
32453 * X11Structs.cs (Atom):
32454 - Added AnyPropertyType definition
32455 - Added MapState definiton and updated XWindowAttribute struct
32456 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
32457 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
32458 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
32460 - Implemented GetWindowState() and SetWindowState() methods
32461 - Fixed Win32GetWindowLong return type
32463 - Introduced central function for sending NET_WM messages
32464 - Implemented GetWindowState() and SetWindowState() methods
32465 * TextBoxBase.cs (set_Lines):
32466 - Now uses Foreground color for text added via Text property (Duh!)
32467 - Added code to remember programmatically requested size (fixes
32468 behaviour when Multiline is set after Size)
32469 - Added AutoSize logic
32471 2005-01-06 Jackson Harper <jackson@ximian.com>
32473 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
32475 2005-01-06 Jackson Harper <jackson@ximian.com>
32477 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
32478 set to less then 0.
32480 2005-01-06 Jackson Harper <jackson@ximian.com>
32482 * ScrollableControl.cs: Lazy init the scrollbars.
32484 2005-01-06 Jackson Harper <jackson@ximian.com>
32486 * Theme.cs: Speed up getting pens and solid brushes, by using
32487 their ARGB as a hash instead of tostring and not calling Contains.
32489 2005-01-06 Peter Bartok <pbartok@novell.com>
32492 - Implemented OnActivated and OnDeactivate event trigger
32493 - Implemented Activate() method
32494 - Fixed ShowDialog() to activate the form that was active before
32495 the dialog was shown
32497 - Added global active_window var that tracks the currently active
32499 - Now always grabs Property changes from the root window to always
32500 catch changes on the active window property
32501 - Added code to PropertyNotify handler to send Active/Inactive
32502 messages when state changes. This puts X11 and Win32 en par on
32503 WM_ACTIVATE notifications (except for double notifications when
32504 the user clicks away from our modal window to another one of our
32507 2005-01-05 Jackson Harper <jackson@ximian.com>
32509 * ImageList.cs: Implment ctor
32511 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32513 * XplatUIOSX.cs: Implement Activate/SetTopmost
32515 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32517 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
32519 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32521 * XplatUIOSX.cs: Implement GetActive/SetFocus.
32523 2005-01-05 Peter Bartok <pbartok@novell.com>
32525 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
32526 XplatUIOSX.cs: Added GetActive method to return the currently
32527 active window for the application (or null, if none is active)
32529 - Implemented ActiveForm
32530 - Commented out owner assignment for modal dialogs (causes problems
32531 on Win32, since the owner will be disabled)
32532 - Reworked some Active/Focus handling (still incomplete)
32533 * CommonDialog.cs: Commented out owner assignment for modal dialogs
32534 (causes problems on Win32, since the owner will be disabled)
32535 * IWin32Window: Added ComVisible attribute
32537 2005-01-05 Peter Bartok <pbartok@novell.com>
32539 * ToolTip.cs (WndProc): Enable setting focus now that we have the
32540 required XplatUI functions.
32542 2005-01-05 Peter Bartok <pbartok@novell.com>
32544 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
32545 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
32546 to implement focus and activation handling; still incomplete and
32549 2005-01-04 Peter Bartok <pbartok@novell.com>
32551 * TextBoxBase.cs: Changed access level for Document property to
32552 match switch to internal for TextControl
32554 2005-01-04 Peter Bartok <pbartok@novell.com>
32556 * AccessibleObject: Added ComVisible attribute
32558 2005-01-04 Jackson Harper <jackson@ximian.com>
32560 * X11Keyboard.cs: Remove unneeded var.
32562 2005-01-04 Jackson Harper <jackson@ximian.com>
32564 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
32566 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
32567 ClientMessage. This makes apps exit cleanly (more often).
32569 2005-01-04 Jackson Harper <jackson@ximian.com>
32571 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
32572 handling focus, return correct colors and fonts,
32573 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
32574 handle selection, horizontal scrolling, and mouse interaction.
32576 2005-01-04 Peter Bartok <pbartok@novell.com>
32578 * ICommandExecutor.cs: Added
32579 * IDataGridColumnStyleEditingNotificationService.cs: Added
32580 * IFeatureSupport.cs: Added
32581 * IFileReaderService.cs: Added
32582 * IDataObject.cs: Added ComVisible attribute
32583 * AmbientProperties.cs: Added
32584 * BaseCollection.cs: Added missing attributes
32585 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
32586 * BaseCollection.cs: Added missing attributes
32587 * Binding.cs: Added TypeConverter attribute
32588 * BindingContext.cs: Added DefaultEvent attribute
32589 * BindingsCollection.cs: Added DefaultEvent attribute
32590 * Button.cs: Added DefaultValue attribute
32591 * DragEventArgs.cs: Added ComVisible attribute
32592 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
32593 * KeyEventArgs.cs: Added ComVisible attribute
32594 * KeyPressEventArgs.cs: Added ComVisible attribute
32595 * MouseEventArgs.cs: Added ComVisible attribute
32596 * NavigateEventArgs.cs: Added
32597 * NavigateEventHandler.cs: Added
32598 * FeatureSupport.cs: Added
32599 * OSFeature.cs: Added
32600 * Theme.cs: Added abstract Version property to support OSFeature
32601 * ThemeWin32Classic.cs: Added Version property to
32602 support OSFeature.Themes
32603 * ProgressBar.cs: Removed OnPaintBackground override, not required since
32604 the proper styles to avoid background drawing are set, also doesn't
32606 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
32607 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
32608 * ScrollEventArgs.cs: Added ComVisible attribute
32609 * SplitterEventArgs.cs: Added ComVisible attribute
32610 * AccessibleSelection.cs: Added Flags attribute
32611 * Appearance.cs: Added ComVisible attribute
32612 * Border3DSide.cs: Added ComVisible attribute
32613 * Border3DStyle.cs: Added ComVisible attribute
32614 * BorderStyle.cs: Added ComVisible attribute
32615 * DragAction.cs: Added ComVisible attribute
32616 * ErrorBlinkStyle.cs: Added
32617 * ScrollEventType.cs: Added ComVisible attribute
32618 * AnchorStyles.cs: Added Editor attribute
32619 * DockStyle.cs: Added Editor attribute
32620 * HorizontalAlignment.cs: Added ComVisible attribute
32621 * HelpEventArgs.cs: Added ComVisible attribute
32622 * PaintEventArgs.cs: Added IDisposable
32624 2005-01-04 Peter Bartok <pbartok@novell.com>
32626 * TextControl.cs: Switched Line, LineTag and Document classes to
32629 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32631 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
32632 Simple mode, fixes, IntegralHeight, etc.
32634 2005-01-04 Peter Bartok <pbartok@novell.com>
32636 * TextBoxBase.cs: Using proper font variable now
32638 2005-01-04 Peter Bartok <pbartok@novell.com>
32640 * Form.cs (ShowDialog): Set parent to owner, if provided
32641 * GroupBox.cs: Removed unused vars
32643 - Added GetHashCode() for Document and LineTag classes
32644 - Removed unused variables
32645 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
32646 to allow translation between continuous char position and line/pos
32647 * CheckBox.cs: Removed vars that are provided by base class
32648 * RadioButton.cs: Removed vars that are provided by base class, added
32649 new keyword where required
32650 * LinkLabel.cs: Added new keyword where required
32651 * Control.cs (WndProc): Removed unused variable
32653 - Finished SelectionLength property
32654 - Implemented SelectionStart property
32655 - Implemented Text property
32656 - Removed unused vars
32657 * MessageBox.cs: Added new keyword where required
32658 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
32660 * MenuAPI.cs: Added new keyword where required
32661 * ButtonBase.cs: Removed vars that are provided by base class, added
32662 new keyword where required
32663 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
32664 argument to double, to allow compiling with csc 2.0 (Atsushi ran
32666 * Application.cs (Run): Now triggers the ThreadExit event
32667 * CommonDialog.cs: Added new keyword where required; now properly sets
32668 parent (owner) for dialog
32669 * XplatUIX11.cs: Commented out unused vars
32670 * StatusBar.cs: Fixed signature for Text property
32671 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
32673 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32675 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
32676 TrackBar.cs, MonthCalendar.cs: remove unused vars
32678 2005-01-03 Jackson Harper <jackson@ximian.com>
32680 * ThemeWin32Classic.cs:
32681 * X11Keyboard.cs: Remove unused vars.
32683 2005-01-03 Peter Bartok <pbartok@novell.com>
32686 - set_Text: Tied into TextControl
32687 - set_TextAlignment: Tied into TextControl
32689 - Added alignment properties and implemented alignment handling
32690 and drawing (still has a bug, not generating proper expose events)
32691 - Added new Line() constructor to allow passing the line alignment
32692 - Fixed selection setting, properly handling end<start now
32693 - Added aligment considerations to RecalculateDocument()
32695 - Now properly enforces control height for single line controls
32696 - Added support for CharacterCasing
32697 - Added IsInputKey override
32698 - Fixed Keys.Enter logic
32699 - Added SetBoundsCore override
32700 - Fixed mouse selection handling
32702 2005-01-03 Jackson Harper <jackson@ximian.com>
32705 - Collapse and uncheck all nodes when CheckBoxes is disabled.
32706 - Checkboxes are always aligned to the bottom of the node,
32707 regardless of item height.
32708 - Use the node bounds to draw the text so we can center it when
32709 the item height is greater then the font height.
32710 - Node::Bounds are only the text part of the node.
32711 * TreeNode.cs: New method to combine collapsing and unchecking all
32714 2005-01-02 Jackson Harper <jackson@ximian.com>
32716 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
32717 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
32718 tree when a check is changed. TODO: Only refresh the checked node.
32720 2004-12-30 Jackson Harper <jackson@ximian.com>
32722 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
32723 * TreeNode.cs: When collapsing make sure to never collapse the
32726 2004-12-29 Jackson Harper <jackson@ximian.com>
32728 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
32730 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
32732 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
32734 2004-12-28 Peter Bartok <pbartok@novell.com>
32736 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
32739 2004-12-28 Peter Bartok <pbartok@novell.com>
32741 * Control.cs (WndProc): Added WM_HELP handler, now generates
32742 HelpRequested event
32743 * Form.cs: Added HelpButton property and required support code
32744 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
32746 2004-12-28 Peter Bartok <pbartok@novell.com>
32749 - Made DialogForm.owner variable internal
32750 - Added check to ensure owner form is set before setting
32751 owner properties in CreateParams
32753 2004-12-28 Geoff Norton <gnorton@customerdna.com>
32755 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
32756 swizzling. Implement ClientToScreen and ScreenToClient. Implement
32757 GetCursorPos. Fix major visibility issues. Rework the windowing
32758 system to support borderless/titleless windows (implements menus).
32759 Fix GetWindowPos. Implement initial background color support for
32762 2004-12-28 Peter Bartok <pbartok@novell.com>
32764 * Form.cs (get_CreateParams): Make sure we have an owner before using
32765 the owner variable. Implement proper default if no owner exists
32767 2004-12-28 Peter Bartok <pbartok@novell.com>
32769 * In preparation for making Managed.Windows.Forms the default build target
32770 for System.Windows.Forms, the following stubbed files were added.
32771 Dialogs are currently being implemented by contributors and are only
32772 short-term place holders.
32773 * ColorDialog.cs: Initial check-in (minmal stub)
32774 * DataGrid.cs: Initial check-in (minimal stub)
32775 * DataGridLineStyle.cs: Initial check-in (minimal stub)
32776 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
32777 * DataGridTableStyle.cs: Initial check-in (minimal stub)
32778 * FontDialog.cs: Initial check-in (minimal stub)
32779 * FileDialog.cs: Initial check-in (minimal stub)
32780 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
32781 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
32782 * OpenFileDialog: Initial check-in (minimal stub)
32783 * IComponentEditorPageSite.cs: Initial check-in
32784 * Splitter.cs: Initial check-in (for Jackson)
32785 * SplitterEventArgs.cs: Initial check-in (for Jackson)
32786 * SplitterEventHandler.cs: Initial check-in (for Jackson)
32787 * TextBox.cs: Initial check-in; still needs some wiring to
32788 TextControl backend
32789 * Form.cs: Implemented ControlBox property
32790 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
32791 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
32792 * TextControl.cs: Added selection functionality; added todo header
32794 - Implemented Lines property
32795 - Implemented TextHeight property
32796 - Implemented SelectedText property
32797 - Implemented SelectionLength property
32798 - Implemented SelectAll method
32799 - Implemented ToString method
32800 - Removed and cleaned up some debug code
32801 - Implemented (still buggy) mouse text selection
32803 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
32805 * ComboBox.cs: Complete DropDownList implementation, fixes.
32807 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
32809 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
32810 * ComboBoxStyle.cs: ComboBoxStyle enum
32811 * ComboBox.cs: Initial work on ComboBox control
32813 2004-12-21 Peter Bartok <pbartok@novell.com>
32815 * Control.cs (ctor, CreateParams): Moved setting of is_visible
32816 forward so that anything that creates a window gets the default,
32817 also no longer uses Visible property in CreateParams to avoid
32818 walking up the parent chain and possibly get the wrong visible
32819 status. Fixed IsVisible to no longer walk up to the parent.
32821 2004-12-21 Peter Bartok <pbartok@novell.com>
32823 * Form.cs (ShowDialog): Unset modality for the proper window
32825 2004-12-20 Peter Bartok <pbartok@novell.com>
32827 * CommonDialog.cs: Initial check-in
32829 2004-12-20 Peter Bartok <pbartok@novell.com>
32831 * Control.cs (Visible): Now uses the parent window instead of the
32832 client area window for the property
32835 - ShowDialog(): Now uses the proper window for modality
32836 - The default visibility state for the form parent is now false. This
32837 will prevent the user from seeing all the changes to the form and
32838 its controls before the application hits Application.Run()
32839 - Removed some stale commented out code
32842 - Added FindWindow() method to have a method to check for existence
32844 - Added ability to override default exception handling (for example
32845 when debugging with VS.Net; to do this the ExternalExceptionHandler
32847 - Removed some useless debug output
32850 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
32851 not working as expected
32852 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
32853 property to allow switching back to the modal window if focus is
32854 given to another one of our windows (Application Modal)
32855 - Now only sets override_redirect if we create a window
32857 - Moved EventMask selection before mapping of newly created window
32858 so we can catch the map event as well
32859 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
32860 - Added various Atom related DllImports
32861 - Implemented Exit() method
32862 - .ctor() : No longer shows window if WS_VISIBLE is not defined
32863 in the CreateParams
32865 * MessageBox.cs: Now properly deals with the FormParent window by
32866 providing an override the FormParent CreateParams property to
32867 set as POPUP instead of OVERLAPPED window.
32869 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32871 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
32872 Minor code cleanup.
32874 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32876 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
32878 2004-12-18 Peter Bartok <pbartok@novell.com>
32880 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
32881 implementing SetModal() method
32883 2004-12-18 Peter Bartok <pbartok@novell.com>
32885 * X11Structs.cs (XGCValues): Fixed type of function element
32886 * XplatUI.cs: Added ScrollWindow() method
32887 * XplatUIDriver.cs: Added ScrollWindow() abstract
32888 * XplatUIWin32.cs: Implemented ScrollWindow() method
32889 * XplatUIX11.cs: Implemented ScrollWindow() method
32890 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
32892 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32894 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
32895 Some more keyboard support (INCOMPLETE)
32897 2004-12-17 Peter Bartok <pbartok@novell.com>
32900 - Added color attribute to line tags.
32901 - Added color argument to all functions dealing with tags
32902 - Added color argument support to various functions
32903 - Fixed miss-calculation of baseline/shift in certain circumstances
32905 * TextBoxBase.cs: Added new color option to test code
32907 2004-12-17 Jackson Harper <jackson@ximian.com>
32910 * MonthCalendar.cs: Signature fixes
32912 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32914 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
32915 keyboard event moved it. Create a new graphics context for each paint resolves this
32917 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32919 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
32920 Make caret exist and go blink blink. Initial keyboard support.
32921 Fix exception handler, Add Invalidate support. Change way RefreshWindow
32924 2004-12-17 Jackson Harper <jackson@ximian.com>
32926 * XplatUIStructs.cs: Updated set of virtual keycodes.
32927 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
32929 2004-12-17 Jackson Harper <jackson@ximian.com>
32931 * XplatUIX11.cs: Prune old keyboard code.
32933 2004-12-17 Jackson Harper <jackson@ximian.com>
32935 * XplatUIX11.cs: When generating mouse wparams get the modifier
32936 keys from the ModifierKeys property.
32938 2004-12-17 Jackson Harper <jackson@ximian.com>
32940 * X11Keyboard.cs: Send up/down input when generating
32941 messages. Remove some unused vars.
32943 2004-12-17 Jackson Harper <jackson@ximian.com>
32946 * TreeView.cs: get rid of warnings.
32948 2004-12-17 Jackson Harper <jackson@ximian.com>
32950 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
32952 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
32954 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
32955 CheckedListBox.cs: Implementation
32957 2004-12-17 Peter Bartok <pbartok@novell.com>
32959 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
32961 2004-12-16 Peter Bartok <pbartok@novell.com>
32964 - InsertCharAtCaret(): Fixed start pos fixup
32965 - CaretLine_get: No longer derives the line from the tag, the tag
32966 could be stale if lines in the document have been added or deleted
32967 - RebalanceAfterDelete(): Fixed bug in balancing code
32968 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
32969 - Line.Streamline(): Now can also elminate leading empty tags
32970 - DumpTree(): Added a few more tests and prevented exception on
32972 - Added Debug section for Combining lines
32973 - Delete(): Now copies all remaining properties of a line
32976 - Left mousebutton now sets the caret (and middle button still acts
32977 as formatting tester, which must go away soon)
32978 - Added Debug section for Deleting/Combining lines
32979 - Fixed calculations for UpdateView after Combining lines
32981 2004-12-16 Peter Bartok <pbartok@novell.com>
32983 * TextControl.cs: Now properly aligns text on a baseline, using the
32984 new XplatUI.GetFontMetrics() method. Simplified several calculations
32985 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
32988 2004-12-16 Peter Bartok <pbartok@novell.com>
32990 * XplatUI.cs: Added GetFontMetrics() method
32991 * XplatUIDriver.cs: Added GetFontMetrics() abstract
32992 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
32993 into libgdiplus, our private GetFontMetrics function
32994 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
32995 * XplatUIWin32.cs: Implemented GetFontMetrics() method
32997 2004-12-16 Jackson Harper <jackson@ximain.com>
32999 * XplatUIStruct.cs: Add enum for dead keys
33000 * X11Keyboard.cs: Map and unmap dead keys.
33002 2004-12-16 Jackson Harper <jackson@ximian.com>
33004 * X11Keyboard.cs: Detect and use the num lock mask.
33006 2004-12-16 Peter Bartok <pbartok@novell.com>
33008 * Control.cs (CreateGraphics): Added check to make sure the
33009 handle of the window exists before calling Graphics.FromHwnd()
33011 2004-12-16 Peter Bartok <pbartok@novell.com>
33013 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
33014 contains a lot of code that's not supposed to be there for the
33015 real thing, but required for developing/testing the textbox
33018 2004-12-16 Peter Bartok <pbartok@novell.com>
33021 - Fixed Streamline method
33022 - Added FindTag method to Line
33023 - Added DumpTree method for debugging
33024 - Added DecrementLines() method for deleting lines
33025 - Fixed UpdateView to update the cursor to end-of-line on single-line
33027 - Added PositionCaret() method
33028 - Fixed MoveCaret(LineDown) to move into the last line, too
33029 - Added InsertChar overload
33030 - Fixed InsertChar tag offset calculations
33031 - Added DeleteChar() method
33032 - Added Combine() method for folding lines
33033 - Fixed Delete() method, no longer allocates wasted Line object and
33034 now copies all properties when swapping nodes
33035 - Delete() method now updates document line counter
33037 2004-12-15 Jackson Harper <jackson@ximian.com>
33039 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
33040 * X11Keyboard.cs: Expose the currently selected modifier keys
33041 through a property.
33043 2004-12-15 Peter Bartok <pbartok@novell.com>
33045 * TextControl.cs: Initial check-in. Still incomplete
33047 2004-12-15 Jackson Harper <jackson@ximian.com>
33050 * TreeView.cs: Fix build on csc (second time today ;-))
33052 2004-12-15 Jackson Harper <jackson@ximian.com>
33054 * TreeView.cs: Store the treenodes plus/minus box bounds when it
33055 is calculated and use this for click testing.
33056 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
33058 2004-12-15 Jackson Harper <jackson@ximian.com>
33060 * TreeView.cs: Pass the nodes image index to the image list when
33061 drawing that image.
33063 2004-12-15 Jackson Harper <jackson@ximian.com>
33065 * X11Keyboard.cs: Set messages hwnd.
33066 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
33067 post_message calls.
33069 2004-12-15 Jackson Harper <jackson@ximian.com>
33071 * X11Keyboard.cs: Fix to compile with csc.
33073 2004-12-15 Jackson Harper <jackson@ximian.com>
33075 * X11Structs.cs: Add key mask values
33076 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
33077 * X11Keyboard.cs: New file - Extrapolates and interpolates key
33078 down/up foo into WM_CHAR foo
33079 * KeyboardLayouts.cs: Common keyboard layouts
33080 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
33081 post messages into the main queue.
33083 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
33085 * Button.cs: implement ProcessMnemonic
33086 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
33088 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
33089 * ButtonBase.cs: Show HotkeyPrefix (not the &)
33091 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
33093 * MonthCalendar.cs: Implemented click-hold for next/previous month
33096 2004-12-11 Peter Bartok <pbartok@novell.com>
33099 - Added XKeyboardState (moved from XplatUIX11.cs)
33100 - Added XCreateGC related enums and structures
33101 - Added GXFunction for XSetFunction
33103 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
33105 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
33106 CaretVisible() calls
33108 * ToolTip.cs: Added code to prevent stealing focus from app windows
33110 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
33111 DestroyCaret, SetCaretPos and CaretVisible)
33114 - Added implementation for caret functions
33115 - Moved hover variables into a struct, to make it a bit easier
33116 on the eyes and to debug
33117 - Removed XKeyboardState (moved to XplatUIX11.cs)
33118 - Moved Keyboard properties into the properties region
33120 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
33121 call to get a graphics context for our control
33123 * XplatUIOSX.cs: Added empty overrides for the new caret functions
33125 * TreeView.cs: Fixed bug. No matter what color was set it would always
33126 return SystemColors.Window
33128 * XplatUIWin32.cs: Implemented caret overrides
33130 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
33132 * ListBox.cs: fire events, implement missing methods and properties,
33135 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
33137 * MonthCalendar.cs: invalidation bug fixing
33138 * ThemeWin32Classic.cs: paint fixing
33140 2004-12-09 Geoff Norton <gnorton@customerdna.com>
33142 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
33143 prepare the CGContextRef there now.
33145 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
33147 * MonthCalendar.cs:
33148 - optimisationL only invalidate areas that have changed
33149 * ThemeWin32Classic.cs:
33150 - only paint parts that intersect with clip_area
33152 2004-12-09 Peter Bartok <pbartok@novell.com>
33154 * Application.cs: Undid changes from r37004 which cause problems
33157 2004-12-09 Ravindra <rkumar@novell.com>
33159 * ToolBar.cs: Added support for displaying ContextMenu
33160 attached to a button on ToolBar.
33161 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
33164 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
33166 * Label.cs: autosize works in text change and removes unnecessary
33169 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
33171 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33174 2004-12-08 Geoff Norton <gnorton@customerdna.com>
33176 * XplatUIOSX.cs: Added mouse move/click/grab support
33177 Remove some debugging WriteLines not needed anymore.
33178 Add window resizing/positioning.
33179 Fix visibility on reparenting.
33181 2004-12-08 Peter Bartok <pbartok@novell.com>
33183 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
33185 2004-12-07 Geoff Norton <gnorton@customerdna.com>
33187 * XplatUIOSX.cs: Initial checkin
33188 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
33190 2004-12-03 Ravindra <rkumar@novell.com>
33192 * ListView.cs: Added some keybindings and fixed scrolling.
33193 ScrollBars listen to ValueChanged event instead of Scroll
33194 Event. This would let us take care of all changes being
33195 done in the scrollbars' values programmatically or manually.
33196 * ListView.cs (CanMultiselect): Added a check for shift key.
33197 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
33198 * ListViewItem.cs (Clone): Fixed. We need to make a copy
33199 of ListViewSubItemCollection as well.
33201 2004-12-06 Peter Bartok <pbartok@novell.com>
33203 * Control.cs (Parent): Added check and exception to prevent
33206 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
33208 * ListBox.cs: implemented clipping, selection single and multiple,
33211 2004-12-03 Ravindra <rkumar@novell.com>
33213 * ListView.cs (ListView_KeyDown):
33214 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
33215 when CTRL key is pressed.
33216 * ListViewItem.cs (Selected): Fixed setting the property.
33218 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33220 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
33222 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
33223 MinimizeBox, ShowInTaskbar, TopMost properties.
33225 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
33226 will be implemented).
33228 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33230 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
33232 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
33235 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
33237 * TreeView.cs: BackColor is Colors.Window.
33239 2004-12-01 Jackson Harper <jackson@ximian.com>
33241 * TreeView.cs: When resizing the tree if the user is making it
33242 smaller we don't get expose events, so we need to handle adding
33243 the horizontal scrollbar in the size changed handler as well as
33244 the expose handler.
33246 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
33248 * DrawItemState.cs: fixes wrong enum values
33250 2004-12-01 Jackson Harper <jackson@ximian.com>
33252 * TreeView.cs: Resize the hbar as well as the vbar on resize.
33254 2004-12-01 Jackson Harper <jackson@ximian.com>
33256 * NodeLabelEditEventArgs.cs:
33257 * NodeLabelEditEventHandler.cs:
33258 * OpenTreeNodeEnumerator.cs:
33260 * TreeNodeCollection.cs:
33262 * TreeViewAction.cs:
33263 * TreeViewCancelEventArgs.cs:
33264 * TreeViewCancelEventHandler.cs:
33265 * TreeViewEventArgs.cs:
33266 * TreeViewEventHandler.cs: Initial implementation.
33268 2004-12-01 Ravindra <rkumar@novell.com>
33270 * ListView.cs (CalculateListView): Fixed scrolling related
33271 calculations. Also, removed some debug statements from other
33273 * ListViewItem.cs: Changed access to 'selected' instance variable
33274 from private to internal.
33275 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
33277 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
33279 * ThemeWin32Classic.cs: remove cache of brush and pens for
33280 specific controls and use the global system, fixes scrollbutton
33281 bugs (for small sizes, disabled, etc)
33283 * ScrollBar.cs: does not show the thumb for very small controls
33284 (as MS) and allow smaller buttons that the regular size
33286 2004-12-01 Miguel de Icaza <miguel@ximian.com>
33288 * UpDownBase.cs: Add abstract methods for the interface.
33289 Add new virtual methods (need to be hooked up to TextEntry when it
33291 Add override methods for most features.
33292 Computes the size, forces the height of the text entry.
33294 * NumericUpDown.cs: Put here the current testing code.
33296 * Set eol-style property on all files that do not have mixed line
33297 endings, to minimize the future problems. There are still a few
33298 files with mixed endings, and someone should choose whether they
33299 want to move it or not.
33301 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
33303 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
33306 2004-11-30 Ravindra <rkumar@novell.com>
33308 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
33309 drawing and replaced use of SystemColors by theme colors.
33310 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
33311 * ListView.cs (ListViewItemCollection.Add): Throw exception when
33312 same ListViewItem is being added more than once.
33314 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
33316 * MonthCalendar.cs:
33317 - ControlStyles love to make the control not flicker
33319 2004-11-30 Peter Bartok <pbartok@novell.com>
33321 * CharacterCasing.cs: Added
33323 2004-11-29 Peter Bartok <pbartok@novell.com>
33325 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33326 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
33327 I am removing these files as they conflict with already completed
33328 work. While it is fantastic to get contributions to MWF, I
33329 respectfully ask that everyone please coordinate their contributions
33330 through mono-winforms-list or #mono-winforms at this time. We're
33331 explicitly avoiding stubbing and don't want controls that don't have
33332 their basic functionality implemented in svn. Please also see
33333 http://www.mono-project.com/contributing/winforms.html
33336 2004-11-29 Marek Safar <marek.safar@seznam.cz>
33338 * Application.cs (ModalRun): Don't hang after exit.
33340 * Theme.cs: New TreeViewDefaultSize property.
33342 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
33343 with less hardcoded SystemColors constant.
33344 Implemented TreeViewDefaultSize.
33346 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33347 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
33350 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
33352 * MonthCalendar.cs:
33353 - Fix NextMonthDate and PrevMonthDate click moving calendar
33355 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
33357 * MonthCalendar.cs:
33358 - Fix usage of ScrollChange Property when scrolling months
33360 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
33362 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
33363 - Fixes menu destroying
33364 - Support adding and removing items on already created menus
33366 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
33368 * MonthCalendar.cs:
33369 - Re-worked all bolded dates handling to match win32
33370 * ThemeWin32Classic.cs:
33371 - Fixed rendering with bolded dates
33373 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
33375 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
33376 - Horizontal scroolbar
33381 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
33383 * MonthCalendar.cs:
33384 - Fix Usage of MaxSelectionCount from SelectionRange
33385 - Fixed Shift + Cursor Selection
33386 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
33387 - Fixed normal cursor selection to be compat with win32
33388 - Fixed Shift + Mouse Click selection
33390 2004-11-24 Peter Bartok <pbartok@novell.com>
33392 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
33393 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
33395 - CreatedKeyBoardMsg now updates keystate with Alt key
33396 - Added workaround for timer crash to CheckTimers, Jackson will
33397 develop a proper fix and check in later
33398 - Implemented DispatchMessage
33399 - Removed calling the native window proc from GetMessage (call
33400 now moved to DispatchMessage)
33402 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
33403 the keydata (Fixes bug #69831)
33406 - (DispatchMessage): Switched to return IntPtr
33407 - Added DllImport for SetFocus
33409 2004-11-24 Ravindra <rkumar@novell.com>
33411 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
33412 background drawing.
33413 * ListViewItem.cs: Fixed various properties, calculations
33414 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
33415 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
33416 and some internal properties. Fixed MouseDown handler and Paint
33419 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
33421 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
33423 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
33425 * ContainerControl.cs: correct accidental check in of local changes
33427 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
33429 * ThemeWin32Classic.cs:
33430 - Fixed Drawing Last month in grid (sometimes not showing)
33431 * MonthCalendar.cs:
33432 - Fixed title width calculation bug (makeing title small)
33434 2004-11-23 Peter Bartok <pbartok@novell.com>
33437 - Added generation of WM_MOUSEHOVER event
33438 - Added missing assignment of async_method atom
33439 - Fixed WM_ERASEBKGND; now only redraws the exposed area
33441 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
33443 * ThemeWin32Classic.cs:
33444 - Fixed Drawing of today circle when showtodaycircle not set
33445 - fixed drawing of first and last month in the grid (gay dates)
33446 * MonthCalendar.cs:
33447 - Fixed Drawing of today circle
33448 - Fixed drawing of grady dates
33449 - Fixed HitTest for today link when ShowToday set to false
33450 - Fixed DefaultSize to obey ShowToday
33452 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
33454 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
33455 * System.Windows.Forms/Theme.cs
33456 * MonthCalendar.cs: added for MonthCalendar
33457 * SelectionRange.cs: added for MonthCalendar
33458 * Day.cs: added for MonthCalendar: added for MonthCalendar
33459 * DateRangeEventArgs.cs: added for MonthCalendar
33460 * DateRangeEventHandler.cs: added for MonthCalendar
33462 2004-11-22 Ravindra <rkumar@novell.com>
33464 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
33467 2004-11-22 Miguel de Icaza <miguel@ximian.com>
33469 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
33472 * NumericUpDown.cs: Added new implementation.
33473 * UpDownBase.cs: Added new implementation.
33475 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
33478 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
33481 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
33484 2004-11-21 Miguel de Icaza <miguel@ximian.com>
33486 * Timer.cs (Dispose): Should call the base dispose when
33489 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
33491 * ScrollBar.cs: updates thumb position when max, min or increment
33494 2004-11-21 Ravindra <rkumar@novell.com>
33496 * ListView.cs: Implemented item selection, activation and
33497 column header style. Fixed properties to do a redraw, if
33498 required. Added support for MouseHover, DoubleClick, KeyDown
33499 and KeyUp event handling and some minor fixes.
33500 * ListViewItem.cs: Fixed constructor.
33501 * ThemeWin32Classic.cs: Improved drawing for ListView.
33503 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
33505 * ThemeWin32Classic.cs: initial listbox drawing code
33506 * DrawMode.cs: new enumerator
33507 * ListControl.cs: stubbed class
33508 * ListBox.cs: initial implementation
33509 * Theme.cs: new methods definitions
33510 * SelectionMode.cs: new enumerator
33512 2004-11-17 Peter Bartok <pbartok@novell.com>
33514 * XplatUIWin32.cs: Added double-click events to the class style
33515 * Control.cs (WndProc):
33516 - Added handling of click-count to MouseDown/ MouseUp events.
33517 - Added handling of middle and right mouse buttons
33518 - Removed old debug code
33520 2004-11-17 Jackson Harper <jackson@ximian.com>
33522 * XplatUIX11.cs: Use the new Mono.Unix namespace.
33524 2004-11-17 Ravindra <rkumar@novell.com>
33526 * ListView.cs: Added event handling for MouseMove/Up/Down.
33527 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
33528 * ThemeWin32Classic.cs: We need to clear the graphics context and
33529 draw column header in a proper state.
33532 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
33534 * Menu.cs: fixes signature
33536 2004-11-16 Peter Bartok <pbartok@novell.com>
33538 * XplatUIX11.cs (GetMessage): Implemented generation of
33539 double click mouse messages
33541 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
33543 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
33546 2004-11-11 Peter Bartok <pbartok@novell.com>
33548 * HandleData.cs: Added Visible property
33549 * XplatUIX11.cs (IsVisible): Now uses Visible property from
33551 * XplatUIX11.cs: Removed old debug leftovers
33552 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
33553 * Control.cs (WndProc): Removed old debug leftovers,
33554 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
33555 needed WM_SIZE handling
33557 2004-11-11 Jackson Harper <jackson@ximian.com>
33559 * OwnerDrawPropertyBag.cs:
33560 * TreeViewImageIndexConverter.cs: Initial implementation
33562 2004-11-10 Jackson Harper <jackson@ximian.com>
33564 * ThemeWin32Classic.cs:
33565 * TabControl.cs: instead of moving tabs by the slider pos just
33566 start drawing at the tab that is offset by the slider. This way
33567 scrolling always moves by exactly one tab.
33569 2004-11-10 Jackson Harper <jackson@ximian.com>
33571 * TabControl.cs: You can only scroll left when the slider has
33572 already ben moved right.
33574 2004-11-10 Jackson Harper <jackson@ximian.com>
33576 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
33579 2004-11-10 Jackson Harper <jackson@ximian.com>
33581 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
33584 2004-11-09 Jackson Harper <jackson@ximian.com>
33586 * TabControl.cs (CalcXPos): New helper method so we can determine
33587 the proper place to start drawing vertical tabs.
33588 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
33590 2004-11-09 Jackson Harper <jackson@ximian.com>
33592 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
33593 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
33594 and Bottom, left and right are illegal values for this and
33595 multiline is enabled when the alignment is set to left or right.
33596 (DrawTab): Each alignment block should draw the text itself now
33597 because Left requires special love. Also add rendering for Left
33600 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
33602 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
33603 does not destroy the windows, removes debugging messages
33605 2004-11-09 jba <jba-mono@optusnet.com.au>
33607 * ThemeWin32Classic.cs
33608 (DrawButtonBase): Fix verticle text rect clipping in windows
33609 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33610 rendering and incorrect text rect clipping
33611 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33612 rendering and incorrect text rect clipping
33614 2004-11-08 Jackson Harper <jackson@ximian.com>
33616 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
33617 bottom when they are bottom aligned so the bottoms of the tabs get
33619 * TabControl.cs (DropRow): Move rows up instead of down when the
33620 tab control is bottom aligned.
33622 2004-11-08 13:59 pbartok
33625 - Added handling for various window styles
33626 - Added handling for popup windows
33627 - Added SetTopmost handling
33629 2004-11-08 13:55 pbartok
33632 - Added argument to SetTopmost method
33633 - Fixed broken ClientToScreen function
33635 2004-11-08 13:53 pbartok
33637 * XplatUIStructs.cs:
33638 - Added missing WS_EX styles
33640 2004-11-08 13:53 pbartok
33642 * XplatUI.cs, XplatUIDriver.cs:
33643 - Added argument to SetTopmost
33645 2004-11-08 13:52 pbartok
33648 - Added XSetWindowAttributes structure
33649 - Improved XWindowAttributes structure
33650 - Added SetWindowValuemask enum
33651 - Added window creation arguments enum
33652 - Added gravity enum
33653 - Added Motif hints structure
33654 - Added various Motif flags and enums
33655 - Added PropertyMode enum for property functions
33657 2004-11-08 13:50 pbartok
33660 - Fixed arguments for updated SetTopmost method
33662 2004-11-08 13:49 pbartok
33665 - Fixed arguments for updated SetTopmost function
33666 - Fixed usage of PointToClient
33668 2004-11-08 13:44 pbartok
33671 - Added Clipping of children and siblings
33673 2004-11-08 13:41 pbartok
33676 - Removed SetMenuBarWindow call. We do this in Form.cs
33678 2004-11-08 13:40 jackson
33680 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
33681 scrolling jimmi in the correct location with bottom aligned tabs
33683 2004-11-08 13:36 pbartok
33685 * ContainerControl.cs:
33686 - Implemented BindingContext
33687 - Implemented ParentForm
33689 2004-11-08 12:46 jackson
33691 * TabControl.cs: Put bottom rendered tabs in the right location
33693 2004-11-08 07:15 jordi
33695 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
33698 2004-11-05 17:30 jackson
33700 * TabControl.cs: When selected tabs are expanded make sure they
33701 don't go beyond the edges of the tab control
33703 2004-11-05 14:57 jackson
33705 * TabControl.cs: Reset show_slider so if the control is resized to
33706 a size where it is no longer needed it's not displayed anymore
33708 2004-11-05 13:16 jackson
33710 * TabControl.cs: Make tab pages non visible when added to the
33713 2004-11-05 12:42 jackson
33715 * TabControl.cs: Implement SizeMode.FillToRight
33717 2004-11-05 12:16 jackson
33719 * Control.cs: Do not call CreateHandle if the handle is already
33722 2004-11-05 11:46 jackson
33724 * TabControl.cs: Remove superflous call to CalcTabRows
33726 2004-11-05 09:07 jackson
33728 * XplatUIX11.cs: Update for Mono.Posix changes
33730 2004-11-05 07:00 ravindra
33732 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
33735 2004-11-04 22:47 jba
33737 * ThemeWin32Classic.cs:
33738 - Fix Button rendering for FlatStyle = Flat or Popup
33739 - Fix RadioButton and CheckBox rendering when Appearance = Button
33740 (normal and flatstyle).
33741 - Correct outer rectangle color when drawing focus rectangle
33742 - Adjust button bounds to be 1 px smaller when focused
33743 - Make button not draw sunken 3d border when pushed (windows compat)
33744 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
33745 - Offset the text in RadioButton and Checkbox when being rendered as
33747 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
33749 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
33750 - Fixed disabled text rendering for normally rendered radiobuttons
33752 2004-11-04 10:26 jackson
33754 * TabControl.cs: Recalculate tab rows when resizing
33756 2004-11-04 07:47 jordi
33758 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
33759 collection completion, drawing issues, missing features
33761 2004-11-04 05:03 ravindra
33764 - We need to recalculate the Thumb area when
33765 LargeChange/maximum/minimum values are changed.
33766 - We set the 'pos' in UpdatePos() method to minimum, if it's less
33767 than minimum. This is required to handle the case if large_change is
33768 more than max, and use LargeChange property instead of large_change
33770 - We return max+1 when large_change is more than max, like MS does.
33772 2004-11-04 04:29 ravindra
33774 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
33775 - Changed default value signatures (prefixed all with ListView).
33776 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
33778 - Fixed calculations for ListViewItem and implemented Clone()
33781 2004-11-04 04:26 ravindra
33783 * Theme.cs, ThemeWin32Classic.cs:
33784 - Changed default ListView values signatures (prefixed all with
33786 - Fixed default size values for VScrollBar and HScrollBar.
33787 - Fixed DrawListViewItem method.
33789 2004-11-04 04:05 ravindra
33791 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
33793 2004-11-04 04:04 ravindra
33795 * ImageList.cs: Implemented the missing overload for Draw method.
33797 2004-11-03 19:29 jackson
33799 * TabControl.cs: Handle dropping rows on selection properly
33801 2004-11-03 11:59 jackson
33803 * TabControl.cs: remove debug code
33805 2004-11-03 11:52 jackson
33807 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
33808 the scrolly widgerywoo
33810 2004-11-02 13:52 jackson
33812 * TabControl.cs: Resize the tab pages and tabs when the tab control
33815 2004-11-02 13:40 jackson
33817 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
33818 selected tab to the bottom
33820 2004-11-02 13:39 jackson
33822 * TabPage.cs: Store the tab pages row
33824 2004-11-02 12:33 jordi
33826 * MenuItem.cs: fixes handle creation
33828 2004-11-02 11:42 jackson
33830 * TabControl.cs: signature fix
33832 2004-11-02 08:56 jackson
33834 * TabControl.cs: Calculate whether the tab is on an edge properly.
33835 Remove top secret debugging code
33837 2004-11-01 19:57 jackson
33839 * TabControl.cs: Add click handling, and proper sizing
33841 2004-11-01 19:47 jackson
33843 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
33846 2004-11-01 19:39 jackson
33848 * TabPage.cs: add internal property to store the bounds of a tab
33851 2004-10-30 04:23 ravindra
33853 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
33856 2004-10-30 04:21 ravindra
33858 * ListView.cs, ListViewItem.cs: Added support for scrolling and
33859 fixed calculations.
33861 2004-10-30 03:06 pbartok
33864 - Removed extension of DllImported libs
33866 2004-10-29 09:55 jordi
33868 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
33869 navigation, itemcollection completion, menu fixes
33871 2004-10-27 22:58 pbartok
33874 - Now throws a nice error message when no X display could be opened
33876 2004-10-26 13:51 jordi
33878 * ListView.cs: removes warning
33880 2004-10-26 03:55 ravindra
33882 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
33883 ThemeWin32Classic.cs: Some formatting for my last checkins.
33885 2004-10-26 03:36 ravindra
33887 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
33888 control and default values.
33890 2004-10-26 03:35 ravindra
33892 * Theme.cs: Added some default values for ListView control.
33894 2004-10-26 03:33 ravindra
33896 * ToolBar.cs: ToolBar should use the user specified button size, if
33897 there is any. Added a size_specified flag for the same.
33899 2004-10-26 03:33 ravindra
33901 * ColumnHeader.cs: Added some internal members and calculations for
33904 2004-10-26 03:32 ravindra
33906 * ListViewItem.cs: Calculations for ListViewItem.
33908 2004-10-26 03:31 ravindra
33910 * ListView.cs: Added some internal members and calculations for
33913 2004-10-22 13:31 jordi
33915 * MenuAPI.cs: speedup menus drawing
33917 2004-10-22 13:16 jackson
33919 * XplatUIX11.cs: Make sure to update exposed regions when adding an
33922 2004-10-22 11:49 jackson
33926 2004-10-22 11:41 jackson
33928 * Control.cs: Check to see if the window should have its background
33929 repainted by X when drawing.
33931 2004-10-22 11:31 jackson
33933 * XplatUIX11.cs: When invalidating areas only use XClearArea if
33934 clear is true, this way we do not get flicker from X repainting the
33937 2004-10-22 11:28 jackson
33939 * XEventQueue.cs: Queue properly
33941 2004-10-21 09:38 jackson
33943 * XEventQueue.cs: Fix access modifier
33945 2004-10-21 09:36 jackson
33947 * XEventQueue.cs: Don't loose messages
33949 2004-10-21 09:22 jackson
33951 * XEventQueue.cs: Don't loose messages
33953 2004-10-20 04:15 jordi
33955 * BootMode.cs: enum need it by SystemInfo
33957 2004-10-19 21:58 pbartok
33960 - Small sanity check
33962 2004-10-19 21:56 pbartok
33965 - Added private FormParentWindow class which acts as the container
33966 for our form and as the non-client area where menus are drawn
33967 - Added/Moved required tie-ins to Jordi's menus
33968 - Fixed/Implemented the FormStartPosition functionality
33970 2004-10-19 21:52 pbartok
33973 - Removed unneeded locals
33974 - Added code to all size and location properties to understand and
33975 deal with the parent container of Form
33977 2004-10-19 21:33 pbartok
33980 - Fixed to deal with new Form subclasses for menus
33982 2004-10-19 17:48 jackson
33984 * XEventQueue.cs: commit correct version of file
33986 2004-10-19 16:50 jackson
33988 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
33990 2004-10-19 16:15 jordi
33992 * MenuAPI.cs: MenuBarCalcSize returns the height
33994 2004-10-19 08:31 pbartok
33997 - Added missing call to PreProcessMessage before calling OnXXXKey
34000 2004-10-19 00:04 ravindra
34002 * ToolTip.cs: Fixed constructor.
34004 2004-10-18 09:31 jordi
34006 * MenuAPI.cs: menuitems in menubars do not have shortcuts
34008 2004-10-18 09:26 jordi
34010 * MenuItem.cs: fixes MenuItem class signature
34012 2004-10-18 08:56 jordi
34014 * MenuAPI.cs: prevents windows from showing in the taskbar
34016 2004-10-18 00:28 ravindra
34018 * ToolTip.cs: Suppressed a warning message.
34020 2004-10-18 00:27 ravindra
34022 * Control.cs: Default value of visible property must be true.
34024 2004-10-17 23:19 pbartok
34027 - Complete implementation
34029 2004-10-17 23:19 pbartok
34032 - Added EnableWindow method
34033 - Added SetModal stub
34034 - Added generation of WM_ACTIVATE message (still needs testing)
34035 - Added SetTopMost stub
34036 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
34038 2004-10-17 23:17 pbartok
34041 - Removed VirtualKeys to XplatUIStructs
34042 - Implemented SetTopMost method
34043 - Implemented EnableWindow method
34044 - Bugfix in ScreenToClient()
34045 - Bugfixes in ClientToScreen()
34047 2004-10-17 22:51 pbartok
34049 * XplatUIStructs.cs:
34050 - Added WS_EX styles to WindowStyles enumeration
34052 2004-10-17 22:50 pbartok
34054 * XplatUI.cs, XplatUIDriver.cs:
34055 - Added method for enabling/disabling windows
34056 - Added method for setting window modality
34057 - Added method for setting topmost window
34059 2004-10-17 22:49 pbartok
34061 * ThemeWin32Classic.cs:
34062 - Added ToolTip drawing code
34064 2004-10-17 22:49 pbartok
34067 - Added ToolTip abstracts
34069 2004-10-17 22:47 pbartok
34072 - Fixed Form.ControlCollection to handle owner relations
34073 - Added Owner/OwnedForms handling
34074 - Implemented Z-Ordering for owned forms
34075 - Removed unneeded private overload of ShowDialog
34076 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
34078 - Fixed Close(), had wrong default
34079 - Added firing of OnLoad event
34080 - Added some commented out debug code for Ownership handling
34082 2004-10-17 22:16 pbartok
34085 - Fixed/implemented flat list of controls
34087 2004-10-17 22:14 pbartok
34090 - Added code to simulate modal dialogs on Win32
34092 2004-10-17 16:11 jordi
34094 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
34097 2004-10-17 13:39 jordi
34099 * MenuAPI.cs: menu drawing fixes
34101 2004-10-15 09:10 ravindra
34103 * StructFormat.cs: General Enum.
34105 2004-10-15 09:09 ravindra
34107 * SizeGripStyle.cs: Enum for Form.
34109 2004-10-15 09:08 ravindra
34111 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
34112 in Theme for ListView.
34114 2004-10-15 09:06 ravindra
34116 * ColumnHeader.cs: Flushing some formatting changes.
34118 2004-10-15 09:05 ravindra
34120 * ListViewItem.cs: Implemented GetBounds method and fixed coding
34123 2004-10-15 09:03 ravindra
34125 * ListView.cs: Implemented Paint method and fixed coding style.
34127 2004-10-15 07:34 jordi
34129 * MenuAPI.cs: fix for X11
34131 2004-10-15 07:32 ravindra
34133 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
34134 - Renamed Paint() method to Draw() for clarity. Also, moved
34135 DrawImage() to OnPaint().
34137 2004-10-15 07:25 ravindra
34139 * CheckBox.cs, RadioButton.cs:
34140 - Removed Redraw (), we get it from ButtonBase.
34141 - Implemented Paint (), to do class specific painting.
34143 2004-10-15 07:16 ravindra
34146 - Redraw () is not virtual now.
34147 - Added an internal virtual method Paint (), so that
34148 derived classes can do their painting on their own.
34149 - Modified OnPaint () to call Paint ().
34151 2004-10-15 06:43 jordi
34153 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
34154 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
34156 2004-10-15 00:30 ravindra
34159 - MessageBox on windows does not have min/max buttons.
34160 This change in CreateParams fixes this on Windows. We
34161 still need to implement this windowstyle behavior in
34164 2004-10-14 05:14 ravindra
34167 - Changed Redraw () to do a Refresh () always.
34168 - Fixed the MouseMove event handling when mouse is pressed,
34169 ie drag event handling.
34170 - Replaced the usage of ToolBarButton.Pressed property to
34171 ToolBarButton.pressed internal variable.
34173 2004-10-14 05:10 ravindra
34175 * ToolBarButton.cs:
34176 - Added an internal member 'inside' to handle mouse move
34177 with mouse pressed ie mouse drag event.
34178 - Changed 'Pressed' property to return true only when
34179 'inside' and 'pressed' are both true.
34180 - Some coding style love.
34182 2004-10-14 00:17 ravindra
34184 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
34187 2004-10-14 00:15 ravindra
34189 * ButtonBase.cs: Redraw () related improvements.
34191 2004-10-14 00:14 ravindra
34193 * MessageBox.cs: Moved InitFormSize () out of Paint method and
34194 removed unnecessary calls to Button.Show () method.
34196 2004-10-13 17:50 pbartok
34200 - Removed destroying of window until we solve the problem of X
34201 destroying the window before us on shutdown
34203 2004-10-13 16:32 pbartok
34206 - Now Redraws on MouseUp for FlatStyle Flat and Popup
34208 2004-10-13 14:18 pbartok
34211 - Added code to destroy the X window
34213 2004-10-13 14:18 pbartok
34216 - Added code to destroy a window
34218 2004-10-13 14:12 pbartok
34221 - Added the Redraw on Resize that got dropped in the last rev
34223 2004-10-13 09:06 pbartok
34225 * ThemeWin32Classic.cs:
34226 - Path from John BouAntoun:
34227 * Fix check rendering (centre correctly for normal style, offset
34228 correctly for FlatStyle).
34229 * Fix border color usage (use backcolor) for FlatStyle.Popup
34230 * Use checkbox.Capture instead of checkbox.is_pressed when
34231 rendering flatstyle states.
34233 2004-10-12 21:48 pbartok
34235 * ThemeWin32Classic.cs:
34236 - Removed all occurences of SystemColors and replaced them with the
34237 matching theme color
34239 2004-10-12 21:41 pbartok
34241 * ThemeWin32Classic.cs:
34242 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
34243 him using the function for flatstyle drawing
34244 - Changed functions to use the new version of CPDrawBorder3D
34246 2004-10-12 21:15 pbartok
34249 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
34250 match MS documentation. They need to return defined colors if the
34251 passed color matches the configured control color. Thanks to John
34252 BouAntoun for pointing this out.
34254 2004-10-12 20:57 pbartok
34257 - Fix from John BouAntoun: Raise ForeColorChanged event when text
34260 2004-10-12 20:46 pbartok
34263 - Fix from John BouAntoun: Now properly sets the Appearance property
34265 2004-10-12 20:45 pbartok
34267 * ThemeWin32Classic.cs:
34268 - Fixes from John BouAntoun: now handles forecolors and backcolors
34269 for flatstyle rendered controls much better; It also fixes normal
34270 checkbox rendering when pushed or disabled.
34272 2004-10-08 02:50 jordi
34274 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
34277 2004-10-07 08:56 jordi
34279 * ThemeWin32Classic.cs: Removes deletion of cached brushes
34281 2004-10-06 03:59 jordi
34283 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
34284 XplatUIWin32.cs: removes warnings from compilation
34286 2004-10-05 12:23 jackson
34288 * RadioButton.cs: Fix ctor
34290 2004-10-05 11:10 pbartok
34293 - Partial implementation by Benjamin Dasnois
34295 2004-10-05 10:15 jackson
34297 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
34300 2004-10-05 03:07 ravindra
34303 - Removed a private method, Draw ().
34304 - Fixed the ButtonDropDown event handling.
34305 - Fixed MouseMove event handling.
34307 2004-10-05 03:04 ravindra
34309 * ThemeWin32Classic.cs:
34310 - Added DrawListView method and ListViewDefaultSize property.
34311 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
34312 - Changed DOS style CRLF to Unix format (dos2unix).
34314 2004-10-05 03:03 ravindra
34317 - Added DrawListView method and ListViewDefaultSize property.
34319 2004-10-05 02:42 ravindra
34321 * ToolBarButton.cs: Added an internal member dd_pressed to handle
34322 clicks on DropDown arrow.
34324 2004-10-04 22:56 jackson
34326 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
34327 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
34328 Control handle the buffers, derived classes should not have to
34329 CreateBuffers themselves.
34331 2004-10-04 21:20 jackson
34333 * StatusBar.cs: The control handles resizing the buffers now.
34335 2004-10-04 21:18 jackson
34337 * Control.cs: When resizing the buffers should be invalidated. This
34338 should be handled in Control not in derived classes.
34340 2004-10-04 14:45 jackson
34344 2004-10-04 02:14 pbartok
34346 * LeftRightAlignment.cs:
34349 2004-10-04 01:09 jordi
34351 * ThemeWin32Classic.cs: fixes right button position causing right
34352 button not showing on horizontal scrollbars
34354 2004-10-02 13:12 pbartok
34357 - Simplified the Invalidate method by using an X call instead of
34358 generating the expose ourselves
34359 - Added an expose when the window background is changed
34360 - Implemented ClientToScreen method
34362 2004-10-02 13:08 pbartok
34365 - Added Win32EnableWindow method (test for implementing modal
34367 - Added ClientToScreen method and imports
34369 2004-10-02 13:07 pbartok
34371 * XplatUI.cs, XplatUIDriver.cs:
34372 - Added ClientToScreen coordinate translation method
34374 2004-10-02 13:06 pbartok
34376 * KeyPressEventArgs.cs:
34377 - Fixed access level for constructor
34379 2004-10-02 13:06 pbartok
34382 - Changed access level for the window_collection hash table
34384 2004-10-02 13:05 pbartok
34387 - Added KeyPreview property
34388 - Added Menu property (still incomplete, pending Jordi's menu work)
34389 - Implemented ProcessCmdKey
34390 - Implemented ProcessDialogKey
34391 - Implemented ProcessKeyPreview
34393 2004-10-02 13:02 pbartok
34396 - Added private method to get the Control object from the window
34398 - Implemented ContextMenu property
34399 - Implemented PointToScreen
34400 - Implemented PreProcessMessage
34401 - Implemented IsInputChar
34402 - Implemented IsInputKey
34403 - Implemented ProcessCmdKey
34404 - Completed ProcessKeyEventArgs
34405 - Fixed message loop to call the proper chain of functions on key
34407 - Implemented ProcessDialogChar
34408 - Implemented ProcessDialogKey
34409 - Implemented ProcessKeyMessage
34410 - Implemented ProcessKeyPreview
34411 - Added RaiseDragEvent stub (MS internal method)
34412 - Added RaiseKeyEvent stub (MS internal method)
34413 - Added RaiseMouseEvent stub (MS Internal method)
34414 - Added RaisePaintEvent stub (MS Internal method)
34415 - Added ResetMouseEventArgs stub (MS Internal method)
34416 - Implemented RtlTranslateAlignment
34417 - Implemented RtlTranslateContent
34418 - Implemented RtlTranslateHorizontal
34419 - Implemented RtlTranslateLeftRight
34420 - Added generation of KeyPress event
34422 2004-10-02 05:57 ravindra
34424 * ListViewItem.cs: Added attributes.
34426 2004-10-02 05:32 ravindra
34428 * ListView.cs: Added attributes.
34430 2004-10-01 11:53 jackson
34432 * Form.cs: Implement the Close method so work on MessageBox can
34435 2004-09-30 14:06 pbartok
34440 2004-09-30 11:34 jackson
34442 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
34444 2004-09-30 07:26 ravindra
34446 * ListViewItemConverter.cs: Converter for ListViewItem.
34448 2004-09-30 07:26 ravindra
34450 * SortOrder.cs: Enum for ListView control.
34452 2004-09-30 07:25 ravindra
34454 * ColumnHeader.cs: Supporting class for ListView control.
34456 2004-09-30 07:24 ravindra
34458 * ListView.cs, ListViewItem.cs: Initial implementation.
34460 2004-09-30 07:20 ravindra
34462 * ItemActivation.cs: Enum for ListView Control.
34464 2004-09-29 20:29 pbartok
34467 - Added lookup of pixel value for background color; tries to get a
34468 color 'close' to the requested color, it avoids having to create a
34469 colormap. Depending on the display this could mean the used color
34470 is slightly off the desired color. Might have to change it to a more
34471 resource intensive colormap approach, but it will work as a
34472 workaround to avoid red screens.
34474 2004-09-29 14:27 jackson
34476 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
34478 2004-09-28 12:44 pbartok
34480 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
34481 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
34482 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
34483 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
34484 TrackBar.cs, VScrollBar.cs:
34485 - Streamlined Theme interfaces:
34486 * Each DrawXXX method for a control now is passed the object for
34487 the control to be drawn in order to allow accessing any state the
34488 theme might require
34490 * ControlPaint methods for the theme now have a CP prefix to avoid
34491 name clashes with the Draw methods for controls
34493 * Every control now retrieves it's DefaultSize from the current
34496 2004-09-28 12:17 jackson
34498 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
34501 2004-09-24 14:57 jackson
34503 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
34504 Gives us a nice little performance boost.
34506 2004-09-24 12:02 jackson
34508 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
34509 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
34510 Control and supporting classes. Initial checkin
34512 2004-09-23 13:08 jackson
34514 * Form.cs: Temp build fixage
34516 2004-09-23 01:39 ravindra
34518 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
34519 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
34520 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
34521 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
34522 EventHandlers needed by ListView Control.
34524 2004-09-22 14:12 pbartok
34526 * ScrollableControl.cs:
34527 - Implemented DockPadding property
34528 - Implemented AutoScroll property
34529 - Implemented AutoScrollMargin property
34530 - Implemented AutoScrollMinSize property
34531 - Implemented AutoScrollPosition property
34532 - Implemented DisplayRectangle property (still incomplete)
34533 - Implemented CreateParams property
34534 - Implemented HScroll property
34535 - Implemented VScroll property
34536 - Implemented OnVisibleChanged property
34538 2004-09-22 14:09 pbartok
34541 - Added Form.ControllCollection class
34542 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
34543 RemoveOwnedForm (still incomplete, missing on-top and common
34544 minimize/maximize behaviour)
34545 - Added StartPosition property (still incomplete, does not use when
34547 - Added ShowDialog() methods (still incomplete, missing forcing the
34550 2004-09-22 14:05 pbartok
34553 - Added message loop for modal dialogs
34555 2004-09-22 14:02 pbartok
34558 - Fixed wrong types for events
34560 2004-09-22 14:00 pbartok
34562 * Shortcut.cs, FormWindowState.cs:
34563 - Fixed wrong values
34565 2004-09-22 12:01 jackson
34567 * Control.cs: Text is never null
34569 2004-09-20 22:14 pbartok
34572 - Fixed accessibility level for Idle handler
34574 2004-09-20 18:54 jackson
34576 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34577 XplatUIX11.cs: New message loop that uses poll so we don't get a
34580 2004-09-17 10:43 pbartok
34583 - Fixed behaviour of arrow buttons. Now properly behaves like
34584 Buttons (and like Microsoft's scrollbar arrow buttons)
34586 2004-09-17 10:14 pbartok
34589 - Added missing release of keyboard/mouse capture
34591 2004-09-17 06:18 jordi
34593 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
34594 Theme.cs: Very early menu support
34596 2004-09-16 17:45 pbartok
34599 - Fixed sending a window to the front
34600 - Added overload for SetWindowPos to avoid casting
34602 2004-09-16 17:44 pbartok
34605 - Added SendToBack and BringToFront methods
34607 2004-09-16 07:00 ravindra
34609 * Copyright: Added Novell URL.
34611 2004-09-16 07:00 ravindra
34613 * ToolBar.cs: Invalidate should be done before redrawing.
34615 2004-09-15 21:19 ravindra
34617 * ColumnHeaderStyle.cs: Enum for ListView Control.
34619 2004-09-15 21:18 ravindra
34621 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
34624 2004-09-13 18:26 jackson
34626 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
34629 2004-09-13 18:13 jackson
34631 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
34632 a second thread and post messages into the main threads message
34633 queue. This makes timing much more consistent. Both win2K and XP
34634 have a minimum timer value of 15 milliseconds, so we now do this
34637 2004-09-13 15:18 pbartok
34639 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34641 - Added Z-Ordering methods
34643 2004-09-13 10:56 pbartok
34646 - Fixed #region names
34647 - Moved properties and methods into their proper #regions
34649 2004-09-13 10:51 pbartok
34652 - Added Accept and CancelButton properties
34653 - Added ProcessDialogKey() method
34655 2004-09-13 08:18 pbartok
34657 * IWindowTarget.cs:
34660 2004-09-10 21:50 pbartok
34663 - Added DoDragDrop() [incomplete]
34664 - Properly implemented 'Visible' handling
34665 - Added SetVisibleCore()
34666 - Implemented FindChildAtPoint()
34667 - Implemented GetContainerControl()
34668 - Implemented Hide()
34670 2004-09-10 19:28 pbartok
34673 - Moved methods into their appropriate #regions
34674 - Reordered methods within regions alphabetically
34676 2004-09-10 18:57 pbartok
34678 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34679 - Added method to retrieve text from window
34681 2004-09-10 18:56 pbartok
34684 - Moved some internal functions into the internal region
34685 - Implemented FontHeight
34686 - Implemented RenderRightToLeft
34687 - Implemented ResizeRedraw
34688 - Implemented ShowFocusCues
34689 - Implemented ShowKeyboardCues
34690 - Implemented FromChildHandle
34691 - Implemented FromHandle
34692 - Implemented IsMnemonic
34693 - Implemented ReflectMessage
34694 - All public and protected Static Methods are now complete
34696 2004-09-10 16:54 pbartok
34699 - Implemented remaining missing public instance properties
34700 - Alphabetized some out of order properties
34702 2004-09-10 05:51 ravindra
34704 * PictureBox.cs: Added a check for null image.
34706 2004-09-10 00:59 jordi
34708 * GroupBox.cs: remove cvs tag
34710 2004-09-09 05:25 ravindra
34712 * ToolBar.cs: Make redraw accessible from ToolBarButton.
34714 2004-09-09 05:23 ravindra
34716 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
34719 2004-09-09 02:28 pbartok
34721 * ThemeWin32Classic.cs:
34722 - Improve disabled string look
34724 2004-09-09 01:15 jordi
34726 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
34729 2004-09-08 23:56 ravindra
34731 * ItemBoundsPortion.cs: It's enum, not a class!
34733 2004-09-08 23:47 ravindra
34735 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
34738 2004-09-08 21:13 ravindra
34740 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
34743 2004-09-08 21:03 ravindra
34745 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
34748 2004-09-08 21:01 ravindra
34750 * ScrollableControl.cs: Removed unreachable code.
34752 2004-09-08 06:45 jordi
34754 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
34756 2004-09-08 01:00 jackson
34758 * XplatUIX11.cs: Only run the timers when updating the message
34759 queue. This effectively gives X messages a higher priority then
34760 timer messages. Timers still need love though
34762 2004-09-07 14:01 jackson
34764 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
34765 this for us and the handle is no longer valid.
34767 2004-09-07 13:59 jackson
34769 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
34770 loop that manages to not crash. TODO: Add poll and cleanup timers
34772 2004-09-07 11:12 jordi
34774 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
34776 2004-09-07 03:40 jordi
34778 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
34779 fixes, methods, multiple links
34781 2004-09-06 06:55 jordi
34783 * Control.cs: Caches ClientRectangle rectangle value
34785 2004-09-05 02:03 jordi
34787 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
34790 2004-09-04 11:10 jordi
34792 * Label.cs: Refresh when font changed
34794 2004-09-02 16:24 pbartok
34797 - Added sanity check to creation of double buffer bitmap
34799 2004-09-02 16:24 pbartok
34802 - Fixed selection of text color
34803 - Fixed handling of resize event; now properly recreates double
34805 - Added missing assignment of TextAlignment
34806 - Added proper default for TextAlignment
34808 2004-09-02 14:26 pbartok
34811 - Added missing RadioButton.RadioButtonAccessibleObject class
34813 2004-09-02 14:26 pbartok
34816 - Added missing Control.ControlAccessibleObject class
34817 - Started to implement Select()ion mechanisms, still very incomplete
34819 2004-09-02 14:25 pbartok
34821 * AccessibleObject.cs:
34822 - Added missing methods
34824 2004-09-02 14:23 pbartok
34826 * AccessibleNavigation.cs, AccessibleSelection.cs:
34829 2004-09-02 10:32 jordi
34831 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
34832 pool for pens, brushes, and hatchbruses
34834 2004-09-01 15:30 jackson
34836 * StatusBar.cs: Fix typo
34838 2004-09-01 14:44 pbartok
34843 2004-09-01 14:39 pbartok
34845 * Button.cs, RadioButton.cs:
34846 - Functional initial check-in
34848 2004-09-01 14:01 pbartok
34851 - Added missing default
34852 - Added missing region mark
34854 2004-09-01 09:10 jordi
34856 * Label.cs: fixes method signatures, new methods, events, fixes
34859 2004-09-01 07:19 jordi
34861 * Control.cs: Init string variables with an empty object
34863 2004-09-01 04:20 jordi
34865 * Control.cs: fires OnFontChanged event
34867 2004-08-31 20:07 pbartok
34870 - Enabled display of strings
34872 2004-08-31 20:05 pbartok
34875 - Added (partial) implementation of DialogResult; rest needs to be
34876 implemented when the modal loop code is done
34878 2004-08-31 19:55 pbartok
34881 - Fixed to match the removal of the needs_redraw concept
34883 2004-08-31 19:55 pbartok
34886 - Removed the rather odd split between 'needs redraw' and redrawing
34887 - Now handles the events that require regeneration (ambient
34888 properties and size)
34890 2004-08-31 19:41 pbartok
34893 - Added firing of BackColorChanged event
34894 - Added TopLevelControl property
34895 - Fixed handling of WM_ERASEBKGRND message
34897 2004-08-31 12:49 pbartok
34903 2004-08-31 12:48 pbartok
34906 - Finished (famous last words)
34908 2004-08-31 04:35 jordi
34910 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
34911 scrolling bugs, adds new methods
34913 2004-08-30 14:42 pbartok
34916 - Implemented CheckBox drawing code
34918 2004-08-30 14:42 pbartok
34921 - Made Redraw() and CheckRedraw() virtual
34922 - Improved mouse up/down/move logic to properly track buttons
34924 2004-08-30 09:44 pbartok
34927 - Updated to fix broken build. Not complete yet.
34929 2004-08-30 09:28 pbartok
34934 2004-08-30 09:17 pbartok
34939 2004-08-27 16:12 ravindra
34941 * ToolBarButton.cs: Added TypeConverter attribute.
34943 2004-08-27 16:07 ravindra
34945 * ImageIndexConverter.cs: Implemented.
34947 2004-08-27 14:17 pbartok
34950 - Removed unneeded stack vars
34951 - First attempt to fix sizing issues when layout is suspended
34953 2004-08-25 15:35 jordi
34955 * ScrollBar.cs: more fixes to scrollbar
34957 2004-08-25 14:04 ravindra
34959 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
34960 Added the missing divider code and grip for ToolBar Control.
34962 2004-08-25 13:20 pbartok
34965 - Control now properly passes the ambient background color to child
34968 2004-08-25 13:20 jordi
34970 * ScrollBar.cs: small bug fix regarding bar position
34972 2004-08-25 12:33 pbartok
34975 - Now only calls SetTimer or KillTimer if the enabled state has
34978 2004-08-25 12:33 pbartok
34981 - Fixed timer handling, now seems to work
34982 - Improved error message for window creation
34984 2004-08-25 12:32 pbartok
34987 - Fixed generation of MouseUp message
34989 2004-08-25 12:29 jordi
34991 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
34992 and fixes for progressbar
34994 2004-08-24 18:43 ravindra
34996 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
34997 in ToolBar control.
34999 2004-08-24 17:15 pbartok
35003 - Added missing events
35006 2004-08-24 17:14 pbartok
35008 * StatusBar.cs, PictureBox.cs:
35009 - Now uses Control's CreateParams
35011 2004-08-24 16:36 pbartok
35014 - Fixed background color handling
35015 - Fixed sending of enter/leave events on a grab
35017 2004-08-24 16:35 pbartok
35020 - Refined definitions for CrossingEvent
35022 2004-08-24 12:37 jordi
35024 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
35025 formmating, methods signature, and adds missing events
35027 2004-08-24 12:24 jordi
35029 * Control.cs: fire OnEnabledChanged event
35031 2004-08-24 11:17 pbartok
35034 - Implemented SetTimer() and KillTimer()
35036 2004-08-24 11:16 pbartok
35039 - Now uses Remove instead of Add to kill the timer
35041 2004-08-24 10:16 jackson
35043 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
35044 picture boxes in the theme now. Draw picture box borders and obey
35047 2004-08-24 05:49 jackson
35049 * Timer.cs: Remove top secret debugging code
35051 2004-08-24 05:34 jackson
35053 * PictureBox.cs: Temp hack to make picture boxes draw their full
35056 2004-08-24 05:29 jackson
35058 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35059 XplatUIX11.cs: Move timers to the driver level. On X they are
35060 queued by the driver and checked on idle.
35062 2004-08-24 01:07 jackson
35064 * XplatUIX11.cs: Use a queue for async messages instead of passing
35065 them as ClientMessages since that was totally broken. Also simply
35066 check for events and return an idle message if none are found. This
35067 gives us an idle handler, and prevents deadlocking when no messages
35070 2004-08-23 18:19 ravindra
35072 * XplatUIWin32.cs: Removed the unwanted destructor.
35074 2004-08-23 17:27 pbartok
35077 - Finishing touches. Works now, just needs some optimizations.
35079 2004-08-23 16:53 jordi
35081 * ScrollBar.cs: small fix
35083 2004-08-23 16:45 pbartok
35086 - Removed debug output
35089 2004-08-23 16:43 jordi
35091 * ScrollBar.cs: [no log message]
35093 2004-08-23 16:10 pbartok
35096 - Fixed handling of WM_CLOSE message
35097 - Removed debug output
35099 2004-08-23 16:09 pbartok
35102 - Added handling of Idle event
35103 - Added handling of form closing
35104 - Fixed reporting of MessageLoop property
35105 - Removed some unneeded code, should provide a bit of a speedup
35107 2004-08-23 15:22 pbartok
35110 - Added InitLayout() method
35111 - Added code to properly perform layout when Anchor or Dock property
35113 - Changed 'interpretation' of ResumeLayout. MS seems to have a
35114 LAMESPEC, tried to do it in a way that makes sense
35116 2004-08-23 14:10 jordi
35118 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
35119 properties and methods
35121 2004-08-23 13:55 pbartok
35124 - Properly fixed Jordi's last fix
35125 - Now uses Cursor's Position property instead of calling XplatUI
35128 2004-08-23 13:44 jordi
35130 * PaintEventHandler.cs: Adding missing attribute
35132 2004-08-23 13:39 pbartok
35135 - Implemented Position property
35137 2004-08-23 13:39 pbartok
35139 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35140 - Added method to move mouse cursor
35142 2004-08-23 13:39 pbartok
35145 - Fixed setting of background color
35146 - Added method to move mouse cursor
35148 2004-08-23 13:16 jordi
35150 * Control.cs: avoids null exception
35152 2004-08-22 17:46 jackson
35154 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
35157 2004-08-22 17:40 jackson
35159 * XplatUIX11.cs: Add some missing locks
35161 2004-08-22 15:10 pbartok
35163 * Control.cs, Form.cs:
35164 - Removed OverlappedWindow style from Control, instead it's default
35166 - Made form windows OverlappedWindow by default
35168 2004-08-22 13:34 jackson
35170 * ScrollBar.cs: Update the position through the Value property so
35171 the OnValueChanged event is raised.
35173 2004-08-22 12:04 pbartok
35176 - Added Cursor.cs and UserControl.cs
35178 2004-08-22 12:03 pbartok
35181 - Started implementation, not usable yet
35183 2004-08-22 12:00 pbartok
35186 - Implemented UserControl (complete)
35188 2004-08-21 19:20 ravindra
35190 * ToolBar.cs: Correcting the formatting mess of VS.NET.
35192 2004-08-21 18:49 ravindra
35194 * ToolBar.cs: Probably this completes the missing attributes in
35197 2004-08-21 18:03 ravindra
35199 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
35200 Fixed toolbar control signatures.
35202 2004-08-21 16:32 pbartok
35207 2004-08-21 16:30 pbartok
35212 2004-08-21 16:19 pbartok
35214 * Control.cs, Label.cs:
35217 2004-08-21 15:57 pbartok
35220 - Added loads of debug output for development
35221 - Fixed typo in method name
35223 2004-08-21 15:52 pbartok
35225 * ToolBarButtonClickEventArgs.cs:
35226 - Added missing base class
35228 2004-08-21 14:53 pbartok
35231 - Updated to match new GrabWindow signature
35233 2004-08-21 14:51 pbartok
35235 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35236 - Added method to get default display size
35238 2004-08-21 14:23 pbartok
35240 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35241 - Added method to query current grab state
35242 - Added argument to allow confining a grab to a window
35244 2004-08-21 14:22 pbartok
35247 - Added [Flags] attribute so that modifiers can be used in bitwise
35250 2004-08-21 14:21 pbartok
35252 * TrackBar.cs, ScrollBar.cs:
35253 - Replaced direct XplatUI calls with their Control counterpart
35255 2004-08-21 13:32 pbartok
35258 - Implemented Created property
35260 2004-08-21 13:28 pbartok
35263 - Implemented ContainsFocus
35265 2004-08-21 13:26 pbartok
35268 - Implemented CausesValidation
35270 2004-08-21 13:21 pbartok
35273 - Implemented CanFocus
35274 - Implemented CanSelect
35275 - Implemented Capture
35277 2004-08-21 12:35 pbartok
35280 - Fixed bug with Async message handling
35281 - Implemented getting the ModifierKeys
35283 2004-08-21 12:32 jackson
35285 * AsyncMethodResult.cs: Make sure we have the mutex before we
35286 release it. Fixes BeginInvoke on windows
35288 2004-08-21 11:31 pbartok
35290 * XplatUIWin32.cs, XplatUIX11.cs:
35291 - Drivers now return proper mouse state
35293 2004-08-21 10:54 jackson
35295 * Control.cs: Implement EndInvoke
35297 2004-08-21 10:48 jackson
35299 * Timer.cs: Remove unneeded finalizer
35301 2004-08-20 19:52 ravindra
35303 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
35304 in mouse event handling in the ToolBar control.
35306 2004-08-20 19:50 ravindra
35308 * ImageList.cs: Changed draw method to use the arguments passed in
35311 2004-08-20 18:58 pbartok
35313 * XplatUIStructs.cs:
35314 - Added private message for async communication
35316 2004-08-20 17:38 ravindra
35318 * Control.cs: Made RightToLeft property virtual and removed a
35321 2004-08-20 14:39 jordi
35323 * ThemeGtk.cs: use style_attach
35325 2004-08-20 14:39 pbartok
35328 - Added jackson's Async code from X11 to Win32
35330 2004-08-20 14:09 pbartok
35333 - Added all new files
35335 2004-08-20 14:09 pbartok
35338 - Added call to set window background color
35340 2004-08-20 14:03 pbartok
35342 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35343 - Added method for setting the window background
35345 2004-08-20 14:02 pbartok
35348 - Added method for setting the background color
35349 - Added handling for erasing the window background
35351 2004-08-20 13:45 jordi
35353 * TrackBar.cs: fixes timer, new properties and methods
35355 2004-08-20 13:34 jackson
35357 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
35360 2004-08-20 13:22 jackson
35362 * Timer.cs: Timer Tick events are now handed through Controls Async
35363 mechanism so the callbacks are executed in the same thread as X
35365 2004-08-20 13:19 jackson
35367 * XplatUIDriver.cs: Expose functionality to send async messages
35370 2004-08-20 13:18 jackson
35372 * Control.cs: Implement Begininvoke
35374 2004-08-20 13:14 jackson
35376 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
35377 messages through the driver
35379 2004-08-20 13:12 jackson
35381 * XplatUIX11.cs: Lock before all X operations. Also added Async
35382 method functionality through XSendEvent
35384 2004-08-20 13:11 jackson
35386 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
35387 This will screw up on 64 bit systems)
35389 2004-08-20 13:10 jackson
35391 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
35392 Async messages through X/Win32
35394 2004-08-19 19:39 pbartok
35397 - Updated code to match new HandleData.DeviceContext type
35399 2004-08-19 19:38 pbartok
35402 - Made DeviceContext a generic object to allow usage from various
35404 - Added support for queueing Windows messages
35406 2004-08-19 19:37 pbartok
35409 - Added generation of MouseEnter, MouseLeave and MouseHover events
35410 - Added cleanup on EndPaint
35412 2004-08-19 19:17 pbartok
35415 - Added handling of WM_MOUSEHOVER
35416 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
35419 2004-08-19 18:55 jordi
35421 * ThemeGtk.cs: fixes button order
35423 2004-08-19 18:12 jordi
35425 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
35427 2004-08-19 17:09 pbartok
35430 - Added Right property
35431 - Added RightToLeft property
35433 2004-08-19 16:27 jordi
35435 * ThemeGtk.cs: experimental GTK theme support
35437 2004-08-19 16:26 jordi
35439 * ITheme.cs, Theme.cs: move themes from an interface to a class
35441 2004-08-19 16:25 jordi
35443 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
35446 2004-08-19 16:04 pbartok
35449 - Added colormap basics
35450 - Added a way to re-initialize with a different display handle
35451 - Fixed setting of the window background color
35452 - Added various X11 imports related to colors and colormaps
35454 2004-08-19 15:51 pbartok
35457 - Removed packing hints (Paolo suggested this a while back)
35458 - fixed colormap type
35459 - Added default Atom types
35460 - Added Screen and color structs and enums
35462 2004-08-19 15:39 pbartok
35465 - Added missing Draw() method
35466 - Added missing RecreateHandle event
35468 2004-08-19 15:30 pbartok
35471 - Added handling of WM_CLOSE
35473 2004-08-18 13:16 jordi
35475 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
35478 2004-08-18 09:56 jordi
35480 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
35482 2004-08-17 15:31 ravindra
35484 * SWF.csproj: Updated project.
35486 2004-08-17 15:25 pbartok
35489 - Drawing improvement; don't call UpdateBounds if we are not visible
35490 (or have been minimized)
35492 2004-08-17 15:24 pbartok
35495 - Finished IsVisible
35496 - Added Win32GetWindowPlacement
35498 2004-08-17 15:08 jackson
35500 * Panel.cs: Initial checkin of the Panel
35502 2004-08-17 14:25 pbartok
35505 - Fixed broken handling of default window sizes
35507 2004-08-17 13:29 jackson
35509 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
35510 has a large startup time.
35512 2004-08-17 10:25 jackson
35514 * HandleData.cs: union areas properly
35516 2004-08-17 10:12 jackson
35518 * HandleData.cs: union areas properly
35520 2004-08-16 20:00 ravindra
35522 * ToolBar.cs, ToolBarButton.cs: Added attributes.
35524 2004-08-16 18:48 ravindra
35526 * ToolBar.cs: Added attributes.
35528 2004-08-16 17:17 ravindra
35530 * SWF.csproj: Updated project.
35532 2004-08-16 17:16 jackson
35534 * XplatUIX11.cs: Check for more expose events before sending a
35535 WM_PAINT so they can all be grouped together. This makes dragging a
35536 window across another window redraw in a sane way.
35538 2004-08-16 15:47 pbartok
35541 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
35542 support OnMouseEnter/Leave()
35543 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
35546 2004-08-16 15:46 pbartok
35548 * XplatUIStructs.cs, XplatUIX11.cs:
35549 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
35550 OnMouseEnter/Leave()
35552 2004-08-16 15:34 jackson
35554 * XplatUIX11.cs: Group multiple expose events in HandleData, make
35555 sure messages get the message field set to WM_NULL if they are not
35558 2004-08-16 15:24 jackson
35560 * HandleData.cs: HandleData is used for storing message information
35563 2004-08-15 17:23 ravindra
35565 * ColorDepth.cs: Added attribute.
35567 2004-08-15 17:23 ravindra
35569 * SWF.csproj: Updated project for ToolBar Control.
35571 2004-08-15 17:20 ravindra
35573 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
35574 control and also dos2unix format.
35576 2004-08-15 17:13 ravindra
35578 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
35579 ToolBarButtonClickEventArgs.cs,
35580 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
35581 ToolBarTextAlign.cs: First Implementation of ToolBar control.
35583 2004-08-15 15:31 pbartok
35586 - First (mostly) working version
35588 2004-08-13 16:15 pbartok
35591 - Fixed Anchor default
35593 2004-08-13 15:43 pbartok
35596 - Changed GetCursorPos signature
35598 2004-08-13 15:42 pbartok
35600 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35601 - Changed signature for GetCursorPos
35603 2004-08-13 15:25 pbartok
35607 - Fixed resizing/exposure handling
35609 2004-08-13 15:22 jordi
35611 * ThemeWin32Classic.cs: removes redundant code and fixes issues
35614 2004-08-13 14:55 jordi
35616 * TrackBar.cs: change from wndproc to events
35618 2004-08-13 13:00 jordi
35620 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35621 XplatUIX11.cs: implements PointToClient (ScreenToClient)
35623 2004-08-13 12:53 pbartok
35626 - Changed GetWindowPos to also provide client area size
35627 - Fixed broken prototypes for several win32 functions
35629 2004-08-13 12:53 pbartok
35631 * XplatUI.cs, XplatUIDriver.cs:
35632 - Changed GetWindowPos to also provide client area size
35634 2004-08-13 12:52 pbartok
35637 - Added generation of WM_POSCHANGED
35638 - Changed GetWindowPos to also provide client area size
35640 2004-08-13 12:52 pbartok
35643 - Added Dispose() and destructor
35644 - Fixed resizing and bounds calculation
35646 - Added memory savings for invisible windows
35648 2004-08-13 12:46 jordi
35650 * TrackBar.cs: adds timer and grap window
35652 2004-08-13 10:25 jackson
35654 * Timer.cs: SWF Timer
35656 2004-08-12 16:59 pbartok
35658 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35659 - Implemented method to get current mouse position
35661 2004-08-12 14:29 jordi
35663 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
35664 enhancement, fix mouse problems, highli thumb, etc
35666 2004-08-12 13:31 pbartok
35669 - Fixed Anchoring bugs
35671 2004-08-12 13:01 jackson
35673 * StatusBar.cs: Don't forget things
35675 2004-08-12 12:54 jackson
35677 * ThemeWin32Classic.cs: Handle owner draw status bars
35679 2004-08-12 12:54 jackson
35681 * StatusBar.cs: Implement missing properties, events, and methods.
35682 Handle mouse clicking
35684 2004-08-12 10:19 jackson
35686 * StatusBarPanelClickEventArgs.cs,
35687 StatusBarPanelClickEventHandler.cs: Classes for handling status
35688 bar panel click events
35690 2004-08-12 10:10 jackson
35692 * Control.cs: Add missing properties
35694 2004-08-12 09:46 pbartok
35696 * BindingsManagerBase.cs:
35697 - Name changed to BindingManagerBase.cs
35699 2004-08-12 09:25 jordi
35701 * ScrollableControl.cs: calls ctrlbase instead of exeception
35703 2004-08-11 16:28 pbartok
35705 * InputLanguageChangingEventArgs.cs:
35706 - Never check in before compiling. Fixes the last check-in
35708 2004-08-11 16:26 pbartok
35710 * InputLanguageChangingEventArgs.cs:
35711 - More signature fixes
35713 2004-08-11 16:20 pbartok
35715 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
35716 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
35717 ImageListStreamer.cs, InputLanguage.cs,
35718 InputLanguageChangedEventArgs.cs,
35719 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
35720 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
35721 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
35722 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35725 2004-08-11 16:16 pbartok
35729 - Added .Net 1.1 method
35731 2004-08-11 15:25 pbartok
35734 - Fixed BindingManagerBase.cs filename
35736 2004-08-11 15:22 pbartok
35738 * BindingManagerBase.cs:
35739 - Was checked in with wrong filename
35741 2004-08-11 14:50 pbartok
35746 2004-08-11 13:41 jordi
35748 * XplatUIWin32.cs: Fixes ClientRect
35750 2004-08-11 13:19 pbartok
35752 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35754 - We had SetWindowPos and MoveWindow to set window positions and
35755 size, removed MoveWindow. We have GetWindowPos, so it made sense to
35756 keep SetWindowPos as matching counterpart
35757 - Added some X11 sanity checking
35759 2004-08-11 12:59 pbartok
35762 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
35763 (It seems that SetBounds is just a front for SetBoundsCore and
35764 SetBoundsCore updates the underlying window system and
35765 UpdateBounds is responsible for updating the variables associated
35766 with the Control and sending the events)
35767 - Major cleanup of Size handling; we now have two sizes, client_size
35768 and bounds. Bounds defines the window with decorations, client_size
35771 2004-08-11 12:55 pbartok
35773 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35774 - Added method to calculate difference between decorated window and
35777 2004-08-11 12:54 pbartok
35780 - Forcing redraw on resize
35782 2004-08-11 11:43 pbartok
35785 - Removed disposing of the actual images when the list is disposed
35787 2004-08-11 09:13 pbartok
35790 - Now properly reparents windows
35792 2004-08-11 08:37 pbartok
35797 2004-08-11 07:47 pbartok
35800 - Rewrote the collection stuff. Might not be as fast now, not
35801 keeping the number of children around and accessible directly, but
35802 it's more straightforward
35804 2004-08-11 07:44 pbartok
35806 * AccessibleObject.cs:
35807 - Fixed to match ControlCollection rewrite
35809 2004-08-11 07:43 pbartok
35812 - Added missing creation of the collection list
35814 2004-08-10 20:08 jackson
35816 * StatusBar.cs: Get the paint message from WndProc
35818 2004-08-10 19:31 jackson
35820 * ThemeWin32Classic.cs: Create Brushes as little as possible
35822 2004-08-10 19:20 jackson
35824 * UICues.cs: Add Flags attribute
35826 2004-08-10 19:19 jackson
35828 * StatusBarPanel.cs: Signature cleanup
35830 2004-08-10 19:10 jackson
35832 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
35833 Initial implementation of status bar item drawing
35835 2004-08-10 17:27 jordi
35837 * TrackBar.cs: add missing methods, properties, and restructure to
35840 2004-08-10 16:24 jackson
35842 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
35843 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
35846 2004-08-10 13:21 jordi
35848 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
35849 enhancements and standarize on win colors defaults
35851 2004-08-10 12:52 jackson
35853 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
35854 ThemeWin32Classic.cs: Implement DrawItem functionality
35856 2004-08-10 12:47 jordi
35858 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
35860 2004-08-10 12:32 jordi
35862 * Control.cs: throw ontextchange event
35864 2004-08-10 11:43 pbartok
35867 - Added more to the still unfinished Dock/Anchor layout code
35869 2004-08-10 11:39 pbartok
35871 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35872 - Added GetWindowPos method
35874 2004-08-10 11:36 pbartok
35877 - Implemented several methods
35879 2004-08-10 09:47 jackson
35881 * TrackBar.cs: Allow control to handle buffering
35883 2004-08-10 09:41 jackson
35885 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
35887 2004-08-10 09:24 jackson
35889 * Label.cs, LinkLabel.cs: Let Control handle buffering.
35891 2004-08-10 09:09 jackson
35893 * StatusBar.cs: Let Control handle all the buffering.
35895 2004-08-10 09:08 jackson
35897 * Control.cs: Control will now handle the buffering code, so each
35898 control does not have to implement this.
35900 2004-08-10 08:34 jackson
35902 * XplatUIDriver.cs: Use default colors from the theme
35904 2004-08-09 17:12 pbartok
35907 - Fixed several bugs Ravindra pointed out
35909 2004-08-09 16:11 pbartok
35912 - Added incomplete dock layout code
35913 - Added support for mouse wheel
35915 2004-08-09 16:09 pbartok
35918 - Added handling for middle and right mousebutton
35919 - Added handling for mouse wheel
35920 - Added handling for key state and mouse state and position
35921 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
35924 2004-08-09 15:40 jackson
35926 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
35927 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
35930 2004-08-09 15:37 jackson
35932 * StatusBar.cs: Initial implementation of StatusBar
35934 2004-08-09 15:36 jackson
35936 * ITheme.cs: Add support for drawing status bar and getting status
35939 2004-08-09 15:35 pbartok
35944 2004-08-09 15:34 jackson
35946 * ThemeWin32Classic.cs: Add support for drawing status bar and get
35947 status bar item sizes
35949 2004-08-09 15:21 jackson
35951 * ThemeWin32Classic.cs: Use known colors for default control
35954 2004-08-09 15:12 jackson
35956 * ThemeWin32Classic.cs: Make the default font static, it is static
35957 in control so this doesn't change functionality and creating fonts
35960 2004-08-09 14:56 pbartok
35963 - Added GrabMode enum
35965 2004-08-09 14:55 pbartok
35967 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35968 - Removed Run method, was only required for initial development
35970 2004-08-09 14:51 pbartok
35972 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35973 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
35976 2004-08-09 13:48 pbartok
35979 - Fixed default sizing for child windows
35981 2004-08-09 12:56 pbartok
35984 - Added generation of WM_DESTROY message
35985 - Added handling of window manager induced shutdown
35987 2004-08-09 11:31 jackson
35989 * ThemeWin32Classic.cs: New names for control properties
35991 2004-08-09 11:25 jackson
35993 * Control.cs: Use new color names
35995 2004-08-09 11:02 jackson
35997 * XplatUI.cs: Get default window properties from the theme
35999 2004-08-09 11:01 jackson
36001 * ITheme.cs: The theme engine now controls default window
36004 2004-08-09 11:00 jackson
36006 * ThemeWin32Classic.cs: Add default window color properties
36008 2004-08-09 10:17 jackson
36010 * ThemeWin32Classic.cs: Use correct default back color
36012 2004-08-09 10:05 jackson
36014 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
36017 2004-08-09 09:56 jackson
36019 * XplatUI.cs: Remove defaults, these are handled by the theme now.
36021 2004-08-09 09:54 jackson
36023 * Control.cs: Get default properties from the theme.
36025 2004-08-09 09:53 jackson
36027 * ITheme.cs: Themes now handle default control properties
36029 2004-08-09 09:53 jackson
36031 * ThemeWin32Classic.cs: Themes now handle default control
36032 properties so coloring will be consistent
36034 2004-08-08 16:54 jordi
36036 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
36038 2004-08-08 15:08 jordi
36040 * XplatUIX11.cs: fixes keyboard crash
36042 2004-08-08 13:47 jordi
36044 * Label.cs: add cvs header info
36046 2004-08-08 12:09 jackson
36048 * ThemeWin32Classic.cs: Add pen_buttonface
36050 2004-08-08 11:52 jordi
36052 * Label.cs, LinkLabel.cs: [no log message]
36054 2004-08-08 11:34 jordi
36056 * ThemeWin32Classic.cs: Use Windows Standard Colours
36058 2004-08-07 17:32 jordi
36060 * TrackBar.cs: throw exceptions of invalid enums values
36062 2004-08-07 17:31 jordi
36064 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
36067 2004-08-07 16:56 jackson
36069 * HorizontalAlignment.cs: Initial checkin
36071 2004-08-07 13:16 jordi
36073 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
36076 2004-08-07 13:05 jordi
36078 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
36079 GetSysColor defines
36081 2004-08-06 18:01 pbartok
36083 * ThemeWin32Classic.cs:
36084 - Fixed some rounding issues with float/int
36086 2004-08-06 18:00 jackson
36088 * DockStyle.cs, AnchorStyles.cs:
36090 Add flags and serializable attributes.
36092 2004-08-06 17:46 pbartok
36095 - Implemented GetParent
36097 2004-08-06 17:18 pbartok
36100 - Fixed some rounding issues with float/int
36102 2004-08-06 17:17 pbartok
36104 * X11Structs.cs, XplatUIX11.cs:
36105 - Fixed Refresh and Invalidate
36107 2004-08-06 15:30 pbartok
36109 * Control.cs, X11Structs.cs, XplatUIX11.cs:
36110 - Fixed recursive loop when resizing
36111 - Improved/fixed redrawing on expose messages
36113 2004-08-06 09:53 jordi
36115 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
36116 keyboard navigation
36118 2004-08-06 08:02 pbartok
36120 * X11Structs.cs, XplatUIX11.cs:
36121 - Fixed reparenting
36122 - Fixed window border creation
36124 2004-08-05 15:38 pbartok
36127 - Attempted fix for reparenting problems
36129 2004-08-04 15:14 pbartok
36132 - Fixed Invalidation bug (calculated wrong client area)
36133 - Added ClientSize setter
36135 2004-08-04 15:13 pbartok
36138 - Added AutoScale properties
36140 2004-08-04 15:13 pbartok
36143 - Added latest files
36145 2004-08-04 14:11 pbartok
36147 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36149 - Added Invalidate handling
36151 2004-08-03 17:09 jordi
36153 * XplatUIDriver.cs: fixes spelling mistake
36155 2004-07-27 09:53 jordi
36157 * TrackBar.cs: fixes trackbar events, def classname, methods
36160 2004-07-27 09:29 jordi
36162 * ScrollBar.cs: fixes scrollbar events
36164 2004-07-27 04:38 jordi
36166 * Control.cs: changes to be able to run winforms samples
36168 2004-07-26 11:42 jordi
36170 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
36171 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
36173 2004-07-26 05:41 jordi
36175 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
36176 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
36179 2004-07-22 09:22 jordi
36181 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
36182 check link overlapping, implement events, and fixes
36184 2004-07-21 10:28 jordi
36186 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
36188 2004-07-21 10:19 jordi
36190 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
36191 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
36192 LinkLabelLinkClickedEventArgs.cs,
36193 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
36194 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
36197 2004-07-19 13:09 jordi
36199 * Control.cs, Label.cs: label control re-written: added missing
36200 functionlity, events, and properties
36202 2004-07-19 10:49 jordi
36204 * Control.cs: fixes SetBounds logic
36206 2004-07-19 01:29 jordi
36208 * Control.cs: Call RefreshWindow only if the window has created
36210 2004-07-15 14:05 pbartok
36212 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
36213 - Implemented ImageList and ImageList.ImageCollection classes
36214 - Added ColorDepth enumeration
36215 - Updated SWF VS.Net project
36217 2004-07-15 11:06 jordi
36219 * XplatUIStructs.cs: added MsgButons enum
36221 2004-07-15 11:03 jordi
36223 * Control.cs: added basic mouse handeling events
36225 2004-07-15 03:38 jordi
36227 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
36228 Vertical TrackBar control implementation
36230 2004-07-13 09:33 jordi
36232 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
36234 2004-07-13 09:31 jordi
36236 * Control.cs, Form.cs: commit: new properties and fixes form size
36239 2004-07-09 14:13 miguel
36241 * ProgressBar.cs: Spelling
36243 2004-07-09 11:25 pbartok
36246 - Removed usage of Rectangle for drawing. Miguel pointed out it's
36249 2004-07-09 11:17 miguel
36251 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
36253 * ProgressBar.cs: Fixed spelling for `block'
36255 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
36258 Avoid using the += on rect.X, that exposed a bug in the compiler.
36260 2004-07-08 23:21 pbartok
36262 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
36263 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
36264 BaseCollection.cs, Binding.cs, BindingContext.cs,
36265 BindingMemberInfo.cs, BindingsCollection.cs,
36266 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
36267 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
36268 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
36269 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
36270 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
36271 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
36272 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
36273 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
36274 FrameStyle.cs, GiveFeedbackEventArgs.cs,
36275 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
36276 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
36277 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
36278 InputLanguageChangedEventArgs.cs,
36279 InputLanguageChangedEventHandler.cs,
36280 InputLanguageChangingEventArgs.cs,
36281 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
36282 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
36283 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
36284 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
36285 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
36286 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
36287 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
36288 QueryAccessibilityHelpEventArgs.cs,
36289 QueryAccessibilityHelpEventHandler.cs,
36290 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
36291 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
36292 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
36293 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
36294 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
36295 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
36296 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
36297 XplatUIX11.cs, lang.cs: