1 2007-03-22 Chris Toshok <toshok@ximian.com>
3 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
6 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8 * XplatUIX11.cs: Implement default locations for forms.
9 * Form.cs: Completely rework startup location for forms. Fixes #79964.
10 * Hwnd.cs: Add previous_child_startup_location (to track the current
11 startup location for any child forms of the current form) and
12 previous_main_startup_location (to track the startup location for
13 the current toplevel form).
15 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
17 * Control.cs: Don't trigger a layout if an implicit control is added
18 that isn't visible. Also, don't notify the owner when an implicit control
19 is added. (Owners shouldn't even know about their implicit controls.)
21 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
23 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
24 to save some re-layouts.
26 2007-03-21 Everaldo Canuto <everaldo@simios.org>
28 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
31 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
33 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
34 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
36 2007-03-21 Mike Kestner <mkestner@novell.com>
38 * ListView.cs : disable selection update for non-left button clicks
39 with mods and over selected items. [Fixes #80524]
41 2007-03-20 Jackson Harper <jackson@ximian.com>
44 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
47 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
49 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
50 very probably a more complicated calculation there. Update the
51 textbox' ForeColor and BackColor when the ComboBox' colors are
52 changed. Change the border change in LayoutComboBox to only affect
53 the textbox, not all the calculations there. Seems to fix most of
56 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
58 * ComboBox.cs: Handle Home and End keys as well as all combinations of
59 modifiers + navigation keys as input keys, enables advanced text
60 selection in the combobox (like Shift+Left Arrow for instance).
61 ComboTextBox now overrides Focused and returns whatever
62 ComboBox.Focused returns, since it really should be focused
63 whenever the ComboBox is. Fixes #80795. Also make the border around
64 the text box one pixel bigger, as mentioned in #79436.
66 2007-03-20 Jackson Harper <jackson@ximian.com>
68 * TreeView.cs: Don't offset the images, this was causing some
69 artifacts when expanding/collapsing with images that were the
70 exact height of the treenode.
72 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
74 * TrackBar.cs: Query the theme for the correct value when the mouse
75 moves and the thumb is pressed.
76 * Theme.cs: Added TrackBarValueFromMousePosition
77 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
78 implementation was updating the trackbar value when drawing, now
79 the drawing methods only draw. Fixes #80900. Refactored the
80 calculations out to TrackBarValueFromMousePosition and
81 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
82 according to the mouse position whenever it wants to. Changed the
83 light coloured pen when drawing the thumb from ControlLight to
84 ControlLightLight, because the ControlLight is the same colour as
85 the background so the 3D effect is lost.
87 2007-03-20 Everaldo Canuto <everaldo@simios.org>
89 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
90 defined. Fixes #80784.
92 2007-03-20 Marek Habersack <mhabersack@novell.com>
94 * ContextMenuStrip.cs: align with the change introduced in
97 2007-03-20 Everaldo Canuto <everaldo@simios.org>
99 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
100 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
103 2007-03-19 Chris Toshok <toshok@ximian.com>
105 * Control.cs (WmPaint): don't make use of the Handle property
106 after an event is emitted, as the user could have closed the
107 form/destroyed the control. Store the Handle in a local variable
108 and make use of that. Fixes bug #80768.
110 2007-03-20 Everaldo Canuto <everaldo@simios.org>
112 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
113 behavior in X11 environments.
115 2007-03-20 Everaldo Canuto <everaldo@simios.org>
117 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
118 because on setter of topmost we dont call SetTopmost when handle is not
121 2007-03-20 Jackson Harper <jackson@ximian.com>
123 * TextControl.cs: Need to use SelectionLength () not
124 selection_length, since that var is reset to -1.
125 - Draw the caret when we don't have focus.
126 * TextBox.cs: The selectall actually doesn't occur until the first
128 * TextBoxBase.cs: Need to update the caret position after a
131 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
133 * ListView.cs: Enable scrolling when using Tile view.
135 2007-03-20 Everaldo Canuto <everaldo@simios.org>
139 * XplatUIDriver.cs: Abstract SetOwner method created.
141 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
142 must be implemented and was masked as todo.
144 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
147 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
148 cheking for null owner to remove transient. The SetTopmost will be change
151 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
152 SetTopmost. Now owned forms will work properly in win32 and X11.
154 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
156 * MdiWindowManager.cs: Update function name.
157 * Form.cs: After closing a form MdiParent is always null.
158 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
159 better what it should do: necessary book-keeping when the form is
160 closed, it should not close the form itself.
162 2007-03-19 Andreia Gaita <avidigal@novell.com>
164 * ListViewItem.cs: Fix back and fore color. The subitems only
165 use their own colors if they are set, otherwise use the listview's
166 colors. Don't set default colors on constructor for subitem.
169 2007-03-19 Mike Kestner <mkestner@novell.com>
171 * ListView.cs : make box selection for Details views with
172 FullRowSelect conform to MS behavior when clicking in the "item"
173 column and clicking outside the defined columns.
174 [Fixes case 5-6 of #80374]
176 2007-03-19 Chris Toshok <toshok@ximian.com>
178 * ScrollableControl.cs: create the controls from within the ctor,
179 but don't actually add them until our handle is created. this
180 fixes a NRE possibility jpobst found (if you override OnLayout in
181 a subclass, it's called before your ctor). Also, add a
182 IsHandleCreated guard to UpdateSizeGripVisibility as well.
184 2007-03-19 Jackson Harper <jackson@ximian.com>
186 * TextBox.cs: Reduce the amount of invalidation we do.
187 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
188 some of them are true by default on MS.
189 - Add some functions to reduce the amount of invalidates we do.
190 * TextControl.cs: Less invalidation.
192 2007-03-19 Chris Toshok <toshok@ximian.com>
194 [ Fixes #81773, and *seems* to fix #81553 as well ]
196 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
197 AccumulateDestroyedHandles. We need to do it *after* we send
198 WM_DESTROY, as the user's code can access Control.Handle in
199 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
200 move the WM_DESTROY/zombie handling to before the call to
201 XDestroyWindow. For some reason without this ordering
202 FormTest.RecreateHandle hangs. This ordering is semantically
203 equivalent, however, as XDestroyWindow is async anyway.
205 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
207 * RichTextBox.cs: Reset backcolor_set after setting default.
209 2007-03-19 Chris Toshok <toshok@ximian.com>
211 * ScrollableControl.cs: the scroll position should not effect the
212 canvas size. commit patch from georgegiolfan@yahoo.com, which
213 fixes some really bizarre behavior on resizing. Fixes bug #80778.
215 2007-03-19 Chris Toshok <toshok@ximian.com>
217 * ScrollableControl.cs: clean this up a bit. create the
218 scrollbars in the ctor and just show/hide them as needed. Also,
219 make hscroll_visible/vscroll_visible internal to Recalculate, and
220 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
221 everywhere else. This seems to fix the scrollbars appearing
222 beneath the content for me (i have *no* idea why that is,
225 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
227 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
228 some redundacy for stuff in Anchor and Dock that base will take care of.
231 2007-03-19 Mike Kestner <mkestner@novell.com>
233 * ListView.cs : make box selection for Details views without
234 FullRowSelect dependent on the text bounds, not item bounds.
235 * ListViewItem.cs : add an internal property to obtain the TextBounds
236 in Details view. [Fixes case 1-4 of #80374]
238 2007-03-19 Andreia Gaita <avidigal@novell.com>
240 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
241 we're < 2.0. #78448 && #80316
243 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
245 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
246 have the same style available as the previously selected one. Also,
247 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
249 2007-03-19 Jackson Harper <jackson@ximian.com>
251 * TextControl.cs: Add an alignment property that all new lines
253 - Make sure to use the align shift when calculating the line's X
255 * TextBox.cs: Set the alignment on the document as well as on all
258 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
260 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
261 throw if setting the parent of an mdichild that already has an
262 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
263 AssemblyProductAttribute in the assembly, use the type's namespace (as
264 MS seems to do). CreateControl: don't create the handle if the control
265 is not visible (according to MS behaviour and spec). SetTopLevel: Only
266 create handle if the control is not a form. Change FocusInternal to
267 virtual so that it can be overriden by Form.
268 * TextBox.cs: Update call to FocusInternal.
269 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
270 form is not a toplevel form when it's a mdi child, so update is_toplevel
271 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
272 hasn't been created. Show (IWin32Window): Don't allow this overload for
273 toplevel windows. CenterToParent/CenterToScreen/Select: create the
274 handle as MS does. SetVisibleCore: if called on a MdiChild and the
275 parent isn't visible yet, save the visibility and restore it when the
276 parent is made visible.
277 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
278 methods, since the visibility of the scrollbars can be changed from
279 several places, not only from AutoScroll.
282 2007-03-19 Jackson Harper <jackson@ximian.com>
284 * RichTextBox.cs: Enable shortcuts by default.
285 * TextBoxBase.cs: Add conditional shortcuts.
287 2007-03-19 Everaldo Canuto <everaldo@simios.org>
289 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
291 2007-03-19 Chris Toshok <toshok@ximian.com>
295 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
296 swallow the message we're waiting on, instead of delivering it, as
297 this is only used for the WM_SHOWWINDOW raised from
298 MapWindow/UnmapWindow, and the message needs to be generated
299 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
300 before doing the Map/Unmap. Also make sure that the Hwnd is still
301 alive after the message has been handled.
303 *before* the window is shown.
305 * Control.cs (CreateControl): guard a few more things inside the
306 if (!is_created) block, as we might end up being called again -
308 (WmShowWindow): call CreateControl if we're showing the control.
310 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
312 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
313 controls without a handle if they have any parent with a handle. In
314 Dispose add a check whether the handle is created or not before
315 calling BeginInvoke, this removes the need of the extra disposing
316 parameter (which was bogus anyway since it didn't prevent the
317 invoke from happening, it only skipped the check for an existing
318 handle, meaning that the invoke would call on an inexistent
321 2007-03-19 Everaldo Canuto <everaldo@simios.org>
323 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
326 2007-03-18 Everaldo Canuto <everaldo@simios.org>
329 - Fixed a problem that dont show help button for messages with 3 buttons.
330 - Refactory button size and position calculations, now dont use fixed
331 values, also fixed button sizes (#80043) and form's border space.
332 - AddButton method created, now all other AddButton methods call this one.
333 - Some other source code cosmetic changes.
335 2007-03-18 Jackson Harper <jackson@ximian.com>
337 * RichTextBox.cs: Don't do this all fonts must match check if
338 there is only one char selected.
340 2007-03-18 Jackson Harper <jackson@ximian.com>
342 * TreeView.cs: ScrollWindow works properly now, so we don't need
343 to screw around with the scroll area. This fixes some artifacts
344 when expanding and collapsing.
346 2007-03-18 Jackson Harper <jackson@ximian.com>
348 * TextBoxBase.cs: Allow updating the selection position when the
349 cursor is outside the textarea, but we have a capture.
350 * TextControl.cs: A special case for when the cursor is outside
351 the bounds of the TB.
353 2007-03-18 Jackson Harper <jackson@ximian.com>
355 * TextBoxBase.cs: Remove image pasting code for now. There is no
356 way to get an image on the clipboard right now anyways.
358 * RichTextBox.cs: Use the new RTF Picture class for pictures.
360 2007-03-18 Everaldo Canuto <everaldo@simios.org>
363 - Set window properties in constructor intead of on CreateParams.
364 - Remove topmost from Window ExStyle.
365 - Set ShowInTaskbar to false.
366 - Set form border to FixedDialog.
367 - Some cosmetic changes and remove unneeded comments.
368 - It fixes itens 2,3 and 4 of bug #80043.
370 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
372 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
373 none was explicitly set. Fixes part of bug #79949.
375 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
377 * ToolStripComboBox.cs: Add AutoComplete*.
379 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
381 * ToolStripComboBox.cs: Add FlatStyle.
383 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
385 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
386 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
388 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
390 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
391 CheckBox.cs, RadioButton.cs, BindingSource.cs,
392 DataGridColumnStyle.cs: Remove warnings.
394 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
396 * Menu.cs: MergeMenu: Check menu argument for null before looping over
398 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
399 visibility of mdi child forms. FormSizeChangedHandler: update the
400 maximized size if size has changed while maximized.
401 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
403 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
404 avoid creating the handle if not created.
405 * XplatUI.cs: Update debug output.
406 * XplatUIStructs.cs: Added ToString's for a couple of structs.
408 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
410 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
412 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
413 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
414 Implement keyboard shortcuts.
416 2007-03-15 Everaldo Canuto <everaldo@simios.org>
418 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
419 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
420 ColorDialog and all derived classes.
422 2007-03-15 Everaldo Canuto <everaldo@simios.org>
427 - Rename ToolBarButtonInfor to ToolBarItem.
428 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
429 - Maintain an array of ToolBarItem, used instead of ToolBarButton
430 collection to be able add same button more than one time on a toolbar.
431 - Refactory all properties and methods to use ToolBarItem.
434 - Remove all propeties and methods that is now in ToolBarItem.
435 - Rectangle propery now gets the rectangle from first ToolBarItem to
436 mimic win32 behavior.
437 - Size calculation and layout methods also removed.
439 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
440 ToolBarItem instead of ToolBarButton to right drawing buttons when
441 same button/separator was added more than one time to ToolBar.
443 * ThemeNice.cs: Same as above.
445 2007-03-15 Andreia Gaita <avidigal@novell.com>
447 * XplatUIX11.cs: Fire extra MouseMove events right after
448 MouseDown and MouseUp, emulating win32's <censored> behaviour
449 for apps that rely on it.
451 2007-03-15 Jackson Harper <jackson@ximian.com>
454 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
455 it is drawn on the controls client window and there is no NC
457 - Set the background color to gray on 2.0 when we are readonly.
459 2007-03-15 Chris Toshok <toshok@ximian.com>
463 * XplatUIX11.cs: implement VirtualScreen independently of
464 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
467 2007-03-15 Chris Toshok <toshok@ximian.com>
469 * Hwnd.cs: add an internal field for the cached_window_state.
471 * XplatUIX11.cs: cache the window state, invalidating the cache
472 (and thus re-querying the X server) only when we see an update to
473 the _NET_WM_STATE property.
475 2007-03-15 Chris Toshok <toshok@ximian.com>
477 * BindingSource.cs: get a lot of the unit tests working.
479 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
481 * Control.cs: Modify UpdateStyles to store distances when bounds >=
482 0 instead of just bounds > 0. [Fixes bug #80912]
484 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
486 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
489 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
491 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
492 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
493 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
494 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
496 2007-03-15 Chris Toshok <toshok@ximian.com>
500 * Control.cs: add Ivan's fix for 81101, with a slight modification
501 - you can set control.Target to null.
503 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
505 * ToolStripItem.cs: If our OwnerItem is null, we can't use
506 HideDropDown, use Hide instead to prevent an NRE.
509 2007-03-14 Jackson Harper <jackson@ximian.com>
511 * TextBoxBase.cs: Mess with the creation stuff a little. We need
512 to calculate the document before the handle is created, in some
513 cases. (Actually just one case).
515 2007-03-14 Jackson Harper <jackson@ximian.com>
517 * TextBoxBase.cs: Need to display the caret after letting the base
518 wndproc handle the focus methods, because the caret display
519 methods check the focus state.
520 - Try to display the caret after updating it's position with SelectWord.
521 - Don't need to do an immediate update on this recalc, since there
522 will be an invalidate anyways.
524 2007-03-14 Jackson Harper <jackson@ximian.com>
526 * TreeView.cs: Some workarounds so that we can match event order a
529 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
531 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
532 #80803. Avoid NullReferenceException when Control does not have
533 parent. Fixed different blinkstyle issues. Only subscribe to Tick
534 event a single time. Only draw error icon when control is created and
535 visible. Fixes failing unit tests.
537 2007-03-14 Andreia Gaita <avidigal@novell.com>
539 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
540 Selecting events. Fire Leave and Enter events when changing tabs.
542 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
544 * TreeView.cs: Add TreeViewNodeSorter.
545 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
547 2007-03-14 Chris Toshok <toshok@ximian.com>
549 * Form.cs: go ahead and remove the RecreateHandles that jpobst
550 removed earlier and I had him add back it. It turns out metacity
551 *does* in fact handle the MOTIF_WM_HINTS property changing, it
552 just doesn't redraw the window titlebar until you resize the
553 window. This also means we aren't recreating the entire window
554 hierarchy on X when you change this property. And it looks better
557 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
560 * ListView.cs: Collecting selection information
561 is now done in SelectedIndexCollection rather than in
562 SelectedListViewItemCollection. This is done so we can
563 have the selection information code in one single place
564 (virtual mode selection information entirely depends on
565 SelectedIndexCollection).
567 2007-03-13 Miguel de Icaza <miguel@novell.com>
569 * ErrorProvider.cs: Add stubs for ISupportInitialize
571 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
573 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
574 in the right order with the right values, from the Checked property,
575 just as MS does (instead of triggering them from ListView).
577 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
579 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
581 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
582 the correct handler in OnItemCheck method (ItemCheckEventHandler
583 instead of EventHandler). This used to throw an InvalidCastException.
585 2007-03-13 Jackson Harper <jackson@ximian.com>
587 * TextBoxBase.cs: Calculate the document before the handle is
588 created, so there isn't an extra invalidate called.
590 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
592 * Form.cs: Don't set owner in ShowDialog until we are sure
593 that we aren't going to throw an exception. [Fixes bug #80773]
595 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
597 * TreeView.cs: Make it compile.
599 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
601 * Control.cs: Another place we don't call SizeFromClientSize.
602 * Form.cs: Another place we don't call SizeFromClientSize.
605 2007-03-12 Jackson Harper <jackson@ximian.com>
607 * TreeView.cs: Basically emulating some strangness here with
608 exanding nodes and setting node positions when windows aren't
610 - Also attempting to walk the node tree less than previously, and
611 just use visible order calculations for determining offsets.
612 - oops made scrolling backwards.
613 * TreeNode.cs: We need to start nodes with a zero visible order,
614 because the order calcs are based on the first nodes order.
616 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
618 * Form.cs: Don't exit the program if RecreateHandle is called on
621 2007-03-12 Chris Toshok <toshok@ximian.com>
623 * XEventQueue.cs: remove the use of PostQuitState.
625 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
626 WM_QUIT message in GetMessage, return false (and if we're in the
627 nested WaitForHwndMessage, repost the WM_QUIT message).
629 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
631 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
632 or the MaximizeBox properties. [Part of bug #80640]
634 2007-03-12 Everaldo Canuto <everaldo@simios.org>
636 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
639 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
641 * ToolStripItem.cs: Fix some tests I broke by checking Visible
644 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
646 * FileDialog.cs: Use text of File name combobox to determine what
647 files the user selected. Added tokenizer to parse the file names.
650 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
652 * Control.cs: We can't call SizeFromClientSize in the constructor,
653 but we still need to do the same work, so make an internal version.
656 2007-03-12 Jackson Harper <jackson@ximian.com>
660 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
663 2007-03-12 Jackson Harper <jackson@ximian.com>
665 * TextBoxBase.cs: Now that the handles are being created a little
666 later, we need to make sure that the document is recalculated when
667 the handle is created.
669 2007-03-11 Everaldo Canuto <everaldo@simios.org>
671 * Theme.cs: GetLinkFont abstract method added.
674 - Remove CalcTrimRectangle, no longer needed.
675 - Factor also remove, position issues must be fixed in libgdiplus.
676 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
677 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
678 care about font used to draw links.
679 - Set TabStop to true when control is "Selectable", control is selectable
680 when have one or more links. Fixes #80501 (test case is also added).
681 - Set the LinkArea values after links change, LinkArea values must be
682 based in first link position and size, a test case was created.
683 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
684 the attribute must be true LinkArea.Length > 0. The same was applied to
687 * ThemeWin32Classic.cs:
688 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
690 - Use CPDrawStringDisabled to draw disabled text instead of hard code
692 - Draw focus rectangle for every parts focused, including parts that
693 is on another line, its because regions returns various rectangles
694 and not only one. Needed to mimic W32 look.
695 - Uses Graphics.Clip to delimite region painted, it mean that now
696 complete text is passed to DrawString, with this we solve layout
697 issues without create another text renderer.
698 - Uses Region.Intersect to fix some flickers problems, now only needed
700 - This changes fixes #79614 and some other unreported issues, on Linux
701 some layout problems still remain, the problem is under
702 MeasureCharacterRanges but it is an libgdiplus bug.
704 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
706 * TextBox.cs: Set for foreground color.
707 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
708 this is already done in Control.
710 2007-03-10 Jackson Harper <jackson@ximian.com>
712 * TextBox.cs: Set the background color, but reset the
713 backcolor_set flag which is just for the user setting the
716 2007-03-09 Chris Toshok <toshok@ximian.com>
718 * Control.cs: really remove the call to XplatUI.SetVisible from
719 CreateHandle(), like I said I did when I merged the branch.
721 * BindingSource.cs: implement some more of this stuff.
723 2007-03-09 Jackson Harper <jackson@ximian.com>
725 * TextBox.cs: Don't explicitly set our background colors.
727 * TextBoxBase.cs: Draw readonly text.
728 - Need to invalidate when backcolor or readonly are changed.
730 2007-03-09 Jackson Harper <jackson@ximian.com>
732 * TextBoxBase.cs: Don't set the forecolor until the handle is
734 - Do not raise OnPaint, and removed some old debug code.
736 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
738 * ScrollableControl.cs: Fix mouse wheel scrolling.
740 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
742 * Control.cs: Wire up MouseDoubleClick event.
744 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
746 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
748 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
749 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
750 item is added. This logic was moved to ToolStrip.OnItemAdded.
753 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
755 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
757 2007-03-08 Jackson Harper <jackson@ximian.com>
759 * TreeView.cs: Show the correct image for selected node (this used
760 to work, not sure how the code got deleted). Also implemented 2.0 feature
763 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
766 * ListViewItem.cs: Cache index in items when retrieving them
769 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
771 * ToolStripItem.cs: Don't return the explicit_size if we are using
772 AutoSize. Fixes invalidation issue when user has explicitly set a
773 size and has AutoSize = true.
775 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
777 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
779 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
781 * DataGridView.cs: Remove event handler from DataView when a
782 DataTable is used as DataSource.
784 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
786 * Control.cs: Create internal setter for client_size to allow it to be
787 set without triggering resizing code.
788 * Form.cs: Calculate client_size in constructor, only change client_size
789 in FormBorderStyle property if Handle has been created.
790 [Fixes #80574, #80791]
792 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
794 * SystemInformation.cs: Add TerminalServerSession.
796 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
798 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
801 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
803 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
804 Handle before we were supposed to. Now checks ActivateOnShow property
806 * Control.cs: Add internal ActivateOnShow property.
807 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
809 * Hwnd.cs Remove no longer needed no_activate field.
811 2007-03-07 Jackson Harper <jackson@ximian.com>
813 * TreeView.cs: Implement owner draw tree nodes. And a couple more
815 * DrawTreeNodeEventHandler.cs: Add
816 * DrawTreeNodeEventArgs.cs: Correct default value.
818 2007-03-07 Chris Toshok <toshok@ximian.com>
820 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
821 to be called before NativeWindow.WndProc. Put the HwndCreating
822 magic there to hook up our Hwnd's to handles.
824 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
826 * DataGridView.cs: Comment out debug code.
828 2007-03-07 Chris Toshok <toshok@ximian.com>
830 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
831 to make the rest of the world happy]
833 * Control.cs (CreateHandle): there's no need to call
834 XplatUI.SetVisible here, it's effectively done by
835 XplatUI.CreateWindow on X now, and always was on windows.
837 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
838 shortcircuit out of the loop if we have a message loop running on
841 [Changelog from merge]
843 2007-03-05 Chris Toshok <toshok@ximian.com>
845 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
846 causes handle creation.
848 2007-02-28 Chris Toshok <toshok@ximian.com>
850 * ApplicationContext.cs: Add a flag to make sure we only raise the
851 ThreadExit event once (ExitThreadCore can be indirectly called
852 from a few places.) I don't like the additional flag, but it
853 makes the event ordering/count correct.
855 * Application.cs (MWFThread.LoopCount): don't use an enumerator
856 without locking the collection. An enumerator doesn't give us any
857 protection from modification anyway. Lock the thread hash and
858 replace the complicated enumerator loop with a foreach.
859 (Application.CloseForms): make internal so it can be called from
860 ApplicationContext. This should probably be moved to MWFThread.
861 (Application.ExitThread): don't call MWFThread.Current.Exit()
862 here. just call XplatUI.PostQuitMessage. We'll exit the thread
863 when the runloop exits (in response to WM_QUIT.)
864 (Application.RunLoop): add a comment (and check) for
865 context.MainForm being null after setting context.MainForm.Visible
866 = true. This is because you're perfectly free to dispose of a
867 form in VisibilityChanged. Chalk this up to another case where we
868 need to synchronously generate WM_ACTIVATE from Control.Show.
869 Also, add handling for WM_QUIT here so we'll exit the loop.
871 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
872 fact that we don't wait if we're only unmapping the whole_window
873 makes me a bit nervous, but it doesn't seem to cause any problems
876 also, add a comment about the stupid, broken and wrong resetting
877 of PostQuitState to false in GetMessage().
879 In PostQuitMessage, we need to add a WM_QUIT message to the
880 thread's queue. We use the FosterParent to get the right
883 Lastly, in SetVisible, we need to unmap both windows, since the
884 waiting only happens when we're unmapping the client window. So
885 now, the *only* time we unmap just the whole_window is in the hack
886 for resizing a control to 0,0.
888 2007-02-21 Chris Toshok <toshok@ximian.com>
890 * Application.cs (CloseForms): rewrite this so that we don't
891 modify the list while we're traversing it.
893 2007-02-20 Chris Toshok <toshok@ximian.com>
895 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
897 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
898 handle is created. otherwise we'll create it here.
899 (VerticalScrollEvent): same here.
901 * Application.cs (CloseForms): call Form.Dispose, don't post
904 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
905 here. Application should Dispose() of the Form's.
907 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
909 (MapWindow,UnmapWindow): only actually do the waiting for
910 SHOWWINDOW if the control we're dealing with is a Form.
911 (CreateWindow): if the control isn't a form, SendMessage
912 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
914 * Control.cs (SetVisibleCore): always use is_visible here, not
915 value. If we use value, we can end up re-setting something
916 visible if, for instance, you do Control.Hide() in a delegate
917 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
919 2007-02-20 Chris Toshok <toshok@ximian.com>
921 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
922 the message we need. PeekMessage returning false should not be a
923 condition under which we exit the loop.
925 2007-02-15 Chris Toshok <toshok@ximian.com>
927 * Control.cs (Refresh): only refresh if we've got a handle and are
929 (CreateAccessibilityInstance): CreateControl() here.
930 (UpdateChildrenZOrder): complicate the code loop even more by
931 taking into account controls that haven't had their handle
932 created, and those that aren't visible. But on the flip side,
933 simplify the code by splitting it into two loops. one which
934 builds up the list of child controls we're interested in, and the
935 other that sets the z order of those children.
937 2007-02-14 Chris Toshok <toshok@ximian.com>
939 * Control.cs: Control.AccessibilityObject causes the control to be
940 created, not just the handle.
942 2007-02-14 Chris Toshok <toshok@ximian.com>
944 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
945 problem on X where a window might have its handle created (and be
946 visible) while the window is unmapped. calling XConfigureWindow
947 on an unmapped window is bad, and generates X errors.
949 2007-02-13 Chris Toshok <toshok@ximian.com>
951 * Control.cs (CreateHandle): don't loop over our children setting
952 their parent here. do it when in WndProc when we're shown.
953 (UpdateChildrenZOrder): make this internal so we can call it from
955 (WndProc): for WM_SHOWWINDOW, reparent the child control after
956 creating its handle. Also, remove the calls to PerformLayout from
957 here. they're done in ScrollableControl.OnVisibleChanged. Also,
958 OnVisibleChanged only seems to be called directly here for the
959 toplevel control. It's propagated down the window hierarchy by
960 calls to child.OnParentVisibleChanged.
961 (OnVisibleChanged): don't do layout here - it's done (oddly
962 enough, according to a glance at stack traces on ms.net..) in
965 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
966 z order of our children before calling PerformLayout.
968 2007-02-12 Chris Toshok <toshok@ximian.com>
970 [big change, fixes #80020]
972 * AccessibleObject.cs: we need to make owner internal again to fix
973 some of ControlAccessibleObject.
975 * Control.cs: lots of changes here. add support for WM_CREATE,
976 for which we generate OnHandleCreated. Remove the OnHandleCreated
977 call from CreateHandle. Also add support for WM_SHOWWINDOW where
978 we create child controls. leave the MonoTODO's for the
979 accessibility calls, but fix the exceptions so the tests pass.
981 Add the InvalidOperationExceptions to Invoke methods, and remove a
982 couple of InvokeInternal methods we aren't using.
984 Also, add a couple of CreateHandle calls in places where we know
985 the handles are being created but our code doesn't reference
988 Make SetVisibleCore call OnVisibleChange if the handle isn't
989 created. If the handle is created, we rely on XplatUI.SetVisible
990 generating the event synchronously.
992 Lastly, make sure we don't use this.Handle inside CreateHandle,
993 because we can call back into client (and that code can dispose of
996 * XplatUIStructs.cs: misc/cleanup.
998 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
999 although we don't populate the wParam properly.
1000 (CreateWindow): generate WM_CREATE.
1001 (MapWindow,UnmapWindow): make these calls synchronous, at great
1002 performance expense (particularly in the unmap case), to match
1005 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
1007 (set_MdiParent): don't recreate the handle unless it's been
1010 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
1013 * NativeWindow.cs: this is probably the weirdest part of the
1014 patch. We need a way to link up the window being created to the
1015 WM_CREATE message. Since we can only be creating one window at a
1016 time on a given thread, we keep track of a per-thread reference so
1017 we can dispatch it properly. We also need to keep track of the
1018 Hwnd currently being created so that the win32 backend doesn't
1021 * XplatUIWin32.cs: a similar change to the one we made in
1024 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
1026 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
1027 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
1028 to draw the menu shortcut string.
1030 2007-03-07 Jackson Harper <jackson@ximian.com>
1032 * TreeNode.cs: Add the 2.0 collapse method.
1034 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1036 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
1038 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1040 * DataGridView.cs: Change DataSource will clear column and row
1041 lists. Call Invalidate() to reflect DataSource change.
1043 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1045 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
1046 and a new row is added to it.
1048 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1050 * DataGridView.cs: Add columns when DataSource is en empty list but
1051 is a System.Data.DataView (from a System.Data.DataTable).
1053 2007-03-06 Andreia Gaita <avidigal@novell.com>
1055 * Label.cs: Implement AutoEllipsis (2.0)
1057 2007-03-06 Jackson Harper <jackson@ximian.com>
1059 * TreeView.cs: Implement 2.0 TopNode setter property.
1060 - Use a local var instead of the skipped_nodes field for computing
1061 how many nodes to skip. Otherwise we won't scroll because the
1062 valuechanged handler checks if skipped_nodes is equal to the new
1064 - Implement 2.0 Sort method.
1065 - Add useless 2.0 DoubleBuffer property
1066 - Implement 2.0 LineColors property. Lets you change the color of
1067 the lines in the tree. Terribly useful for creating non cohesive
1069 - Implement 2.0 image key feature.
1071 2007-03-06 Jackson Harper <jackson@ximian.com>
1073 * TreeView.cs: We can't get the bounds of the nodes before raising
1074 the AfterSelect event, because that event could change the node's
1075 bounds (scrolling, font change, etc).
1077 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1079 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
1080 * Form.cs: Don't recreate handle when creating FormWindowManager, just
1081 update window styles. In CreateParams us VisibleInternal instead of
1082 VIsible to get the actual visible flag set for this form.
1083 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
1084 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
1085 handle the case when the form is already maximized, in which case
1086 it should be restored. Fixes #81043.
1088 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1090 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
1092 2007-03-05 Jackson Harper <jackson@ximian.com>
1094 * TreeViewHitTestInfo.cs: implement.
1096 2007-03-05 Jackson Harper <jackson@ximian.com>
1098 * InternalWindowManager.cs: class status fix.
1100 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1102 * InternalWindowManager.cs: All windows that have a parent
1103 are confined to their parent when they're being moved.
1106 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
1108 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
1109 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
1111 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1113 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
1114 buttons invisible before deciding which ones should be visible
1115 (fixes minimize/maximize buttons showing up in toolwindows). Remove
1117 * InternalWindowManager.cs: Remove warning.
1119 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1121 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
1122 to throw an InvalidOperationException is virtual mode is being used.
1124 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
1126 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
1127 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
1128 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
1129 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
1130 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
1131 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
1133 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1135 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
1136 driver.KeyboardDelay from XplatUI.KeyboardDelay
1137 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
1138 (patch by Sergey Volk)
1140 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1142 * ToolWindowManager.cs: Added, contains logic for
1144 * CreateParams.cs: Add a few helper methods and an
1145 internal variable to know which control the CreateParams belongs
1147 * Control.cs: Call Form.ChangingParent when the
1148 parent is about to be changed.
1149 * XplatUIX11.cs: DeriveStyles (): Set
1150 caption_height for all windows that have captions and are children.
1151 Update to use ToolWindowManager instead of InternalWindowManager
1153 * XplatUIWin32.cs: Set fake window styles for all
1154 windows that have window managers.
1155 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
1156 now duplicated for mdi windows when they are
1157 maximized, first for the buttons the window itself has, then for
1158 the buttons that appear in the menu bar. Makes things a little
1159 easier). Updated UpdateWindowDecorations, SetWindowState and the
1160 mouse eventhandlers accordingly.
1161 * Form.cs: Add ChangingParent (), contains the
1162 logic of what should happen when the parent changes. In MdiParent
1163 don't set things that ChangingParent () is doing. When handling
1164 WM_CLOSE, we can close the form if there are any other modal forms
1165 and the current form is a descendent of the modal form.
1166 * InternalWindowManager.cs: A lot of refactoring,
1167 the title buttons are now extracted to a separate container class
1168 that takes care of all button code (clicks, tooltips, etc). Moved
1169 Iconic|Maximized|Normal Bounds properties to this class from
1170 MdiWindowManager, so that the window state logic can succeed for
1171 other than mdi wm's. Implemented general window state change logic.
1172 Moved CreateButtons to ThemeWin32Classic, since the theme might
1173 override which buttons are available when as well as the exact
1175 * FormWindowManager.cs: Added, contains logic for
1177 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
1178 which buttons go where (and if they are at all visible).
1179 Removed special handling of maximized windows, since they aren't special.
1180 In DrawManagedWindowDecorations don't try to draw the text if it is
1182 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
1183 use whatever the wm gives us.
1185 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
1187 * ButtonBase.cs: Add 2.0 properties.
1188 * Button.cs: Override Draw for 2.0.
1189 * Control.cs: Add Entered and Selected properties.
1190 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
1191 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
1192 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
1194 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
1196 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
1198 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
1200 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
1202 * XplatUIWin32.cs: Register a new class with Windows each time we get
1203 a new ClassStyle. [Fixes bugs #79432, #80817]
1204 * Controls.cs: Set the correct ClassStyle in CreateParams.
1205 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
1207 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
1209 * ListView.cs: Add fireEvent argument to ReorderColumn since the
1210 ColumnReordered event must not be signaled when modifying DisplayIndex
1211 of a ColumnHeader. Added internal ReorderColumns method which takes
1212 care of drawing, and updating the internal DisplayIndex of the
1213 ColumnHeader. Added AddColumn method which is invoked from
1214 ColumnHeaderCollection when adding or inserting columns, and which
1215 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
1216 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
1217 Recalculated dispay indices after removing a ColumnHeader.
1218 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
1219 match MS. Allows last display index to be returned after ListView
1220 is disposed. Update actual location of ColumnHeader when DisplayIndex
1223 2007-03-01 Everaldo Canuto <everaldo@simios.org>
1225 * LinkLabel.cs: Improve CalcTrimRectangle.
1227 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
1229 2007-02-28 Everaldo Canuto <everaldo@simios.org>
1231 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
1232 get rectangle as a result value.
1234 2007-02-28 Everaldo Canuto <everaldo@simios.org>
1236 * LinkLabel.cs: Theres some diferences between rectangle return from
1237 MeasureCharacterRanges and the area used for DrawString to fix this
1238 CalcMeasurementFactor method was created, it calcules the diferences
1239 to be use later to adjust rectangle in draw operations. Fixes #80473.
1241 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
1242 to adjust draw rectangle.
1244 2007-02-27 Everaldo Canuto <everaldo@simios.org>
1246 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
1247 text and some other changes to reduce and optimize source code.
1249 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
1251 * RadioButton.cs: Implement 2.0 event.
1252 * RelatedImageListAttribute.cs: Implement new class.
1254 2007-02-27 Everaldo Canuto <everaldo@simios.org>
1256 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
1258 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
1260 * CheckBox.cs: Implement 2.0 functionality.
1262 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1264 * ListView.cs: Refactor Add and AddRange methods of
1265 ListViewItemCollection, to not update the ListView
1266 everytime an item is added in AddRange. Also move the update
1267 code to a new CollectionChanged method, and call it
1268 from other methods that need it as well (this should also fix some
1269 bugs when Sorting is used).
1271 2007-02-27 Jackson Harper <jackson@ximian.com>
1273 * TextControl.cs: Try to never let the caret stay in a non-text
1275 * TextBoxBase.cs: Update the caret.
1277 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
1279 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
1280 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
1281 delete POINT structure, duplicate of one in XplatUIStructs.
1282 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
1284 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
1286 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
1287 edit box since otherwise the Label would immediately be set (even if
1288 the user did not modify the label). In OnKeyDown set Handled to true
1289 if Return or Escape was pressed. In ColumnHeaderCollection unlink
1290 columns that are to be removed. In ListViewItemCollection unlink items
1291 that are to be removed.
1293 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
1295 * TextRenderer.cs: If we set a GDI clip region, we need to clear
1296 it when we are done. [Fixes bug #80949]
1298 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1300 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
1302 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1304 * ListView.cs: I forgot to commit the changes for ListView
1305 in my previous patch.
1307 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1309 * Clipboard.cs: Partially implement an overload of SetDataObject.
1310 * Form.cs: Implement ShowWithoutActivation.
1311 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
1313 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1315 This is a first set of changes to make the Virtual mode works,
1316 by avoiding the retrieval of ListViewItem instances until
1319 * ListView.cs: Store item position in the ListView instead of the
1320 ListViewItem, this way we don't request the Bounds property of
1321 ListViewItem inside the ListView calculations, as well as cache the item
1322 size in item_size field. Store indexes instead of ListViewItem
1323 instances in the matrix used by icon view. Add a ItemMatrixLocation
1324 struct to hold the row and col info of the matrix info.
1326 * ListViewItem.cs: Don't store the location anymore, and only cache
1327 the rectangles for GetBounds. Use the ListView.GetItemLocation
1328 method to retrieve the actual location.
1330 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1332 * TextRenderer.cs: Add clipping support, thanks to George.
1335 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
1337 * ListViewItem.cs: Cancel label edit when item is removed from
1339 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
1340 event before the edit textbox is displayed. Added CancelEdit method
1341 which is used end to editing while ignoring the value set by the
1342 user. In EndEdit, set focus to ListView to avoid losing focus to
1343 other controls. In ListViewItemCollection.Clear, cancel editing of
1344 any of the items. In Remove, cancel editing of item being removed.
1345 Avoid udplicate code by modifing RemoveAt to invoke Remove.
1347 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
1349 * FileDialog.cs: Update FSEntry when move is successful. Fixes
1352 2007-02-23 Everaldo Canuto <everaldo@simios.org>
1354 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
1355 compatible with non X11 systems. Fixes #80901.
1357 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
1359 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
1360 whether the item should be unselected and reselect. We do no want this
1361 when we're starting to edit the label. Do not fire the
1362 SelectedIndexChanged event from ListView when its already been fired
1363 by modifying ListViewItem.Selected. Fixes bug #80943.
1365 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1367 * TextRenderer.cs: Previos commit logic was backwards.
1369 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1371 * TextRenderer.cs: Don't add padding on MeasureText if we were
1372 sent the NoPadding flag.
1374 2007-02-23 Everaldo Canuto <everaldo@simios.org>
1376 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
1377 after DrawButton. To prevent image overlaps button borders SetClip and
1378 ResetClip added before and after draw image. Fixes #79129.
1380 2007-02-23 Everaldo Canuto <everaldo@simios.org>
1382 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
1383 window size, it fix problem when you run under win32 that theres
1384 Size diferent than ClientSize. Also fix controls size and positions
1385 to mimic Win32. Fixes #80837.
1387 2007-02-22 Everaldo Canuto <everaldo@simios.org>
1389 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
1390 menu area to fix some problems for non X11 systems. Fixes #80613.
1392 2007-02-22 Jackson Harper <jackson@ximian.com>
1394 * TreeNode.cs: When a node is expanded, set its is_expanded flag
1395 even if it doesn't have any children.
1397 2007-02-22 Jackson Harper <jackson@ximian.com>
1399 * TreeView.cs: Calculate the top node 'on the fly', this
1400 eliminates issues where you need to click on the tree before
1401 scrolling it to get the top node computed correctly.
1402 * TreeNodeCollection.cs: We don't need to mess with the top node
1405 2007-02-22 Jackson Harper <jackson@ximian.com>
1407 * DataGridViewRow.cs: Fix typo so height can actually be set.
1408 Patch by Peter Grimm.
1410 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
1412 * FileDialog.cs: Fixed support for renaming files and directories.
1413 * ListView.cs: Do not lose focus when edit is canceled. Process
1414 Escape as regular key (to prevent closing of dialogs).
1416 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
1418 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
1419 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
1421 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
1423 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
1424 did not modify label.
1425 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
1426 modified the text. Reset Label when user presses Escape in edit mode.
1427 Move focus to ListView after having cancelled or finished editing the
1430 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
1432 * ComboBox.cs: Removed unnecessary initializations. Marked items field
1433 private. Clear textbox when Text is set to null and SelectedIndex is
1435 * FileDialog.cs: Removed unnecessary initializations. Removed
1436 workarounds for ComboBox bugs that are now fixed. Modified
1437 DefaultExt, InitialDirectory and Title property to change null to
1438 zero-length string in getters. Avoid directly accessing fields.
1440 2007-02-20 Jackson Harper <jackson@ximian.com>
1442 * TextControl.cs: Remove RecalAlignments call, that was some
1443 debugging leftovers.
1444 - Don't use the line indent when we shouldn't.
1445 * RichTextBox.cs: Add support for paragraph left indents.
1447 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1449 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
1450 Seems like the class status pages doesn't catch params differences.
1452 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
1454 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
1456 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
1458 * ComboBox.cs: Setting Text should have no effect if item text of
1459 selected item exactly matches value. First lookup text using
1460 case-sensitive comparison, and fallback to case-insensitive comparison.
1461 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
1462 allow startIndex to be last index. Changed ArgumentOutOfRangeException
1463 paramname to match MS. Restart from first item if string is not found
1464 after startIndex. Fixed paramname of ArgumentNullException that is
1465 thrown for null value in ObjectCollection.Contains.
1467 2007-02-19 Everaldo Canuto <everaldo@simios.org>
1469 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
1471 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1473 * ListControl.cs: In SelectedValue use value.Equals to compare for
1474 equality instead of ==, otherwise it will fail for strings.
1477 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1479 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
1480 since the caret won't show up unless ShowSelection is true.
1483 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1485 * Application.cs: When disabling all forms but the main form, do not
1486 disable any descendants of the main form (such as mdi children or
1487 other parented forms). Fixes #80822 on Windows.
1488 * Form.cs: If we have a parent, set the WS_CHILD style.
1489 * Control.cs: Update the window styles if the control whose parent has
1490 changed is a form (the WS_CHILD style has to be switched).
1492 2007-02-19 Everaldo Canuto <everaldo@simios.org>
1494 * XplatUIStructs.cs: MsgUIState structure added.
1496 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
1498 * FileDialog.cs: Removed need for separate fileName field. On 2.0
1499 profile, do not check filename(s) for illegal character if filename(s)
1500 were set non-interactively but always check on 1.0 profile. Fixed NRE
1501 in DefaultExt and only strip off first leading dot. Improve exception
1502 message when invalid Filter is set. Do not ignore InitialDirectory if
1503 it does no exist. Store specified Title, and if empty use default
1504 title (depending on type of dialog). Added an internal DialogTitle
1505 property for retrieving dialog title. Fixed logic of displayed dir to
1506 more closely match MS. Avoid setting ComboBox.Text to a zero-length
1507 string as its buggy.
1508 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
1509 FileName is a zero-length string (it can never be null). Override
1510 DialogTitle property to set default title of dialog box.
1511 * SaveFileDialog.cs: Override DialogTitle property to set default
1512 title of dialog box.
1514 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
1516 * FileDialog.cs: Modify default text of filename and filetype labels
1517 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
1518 after we've updated the SelectedIndex. Fixes part of bug #80887.
1519 * SaveFileDialog.cs: Set text of filetype label.
1521 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1523 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
1524 label field. Needed by latest Jackson's fixes for ListView.
1526 2007-02-16 Andreia Gaita <avidigal@novell.com>
1528 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
1529 print preview images.
1531 2007-02-16 Jackson Harper <jackson@ximian.com>
1533 * ListView.cs: Make AfterLabelEdit work correctly.
1534 * FileDialog.cs: After changing the name of the folder, we have to
1535 make sure that it is created, or that we pop up an error because
1538 2007-02-16 Jackson Harper <jackson@ximian.com>
1540 * X11Dnd.cs: Implement aliases on mime handlers, so things like
1541 System.String are mapped to text.
1542 - Handle dataobjects, getting all the possible formats out of them
1543 - We dont need the drag event args before we give feedback. This
1544 allows feedback cursors to be immediate before selections have
1547 2007-02-16 Jackson Harper <jackson@ximian.com>
1549 * TextBoxBase.cs: Modified the method for inserting images to
1550 taking a line and position instead of tag and position.
1551 * RichTextBox.cs: Handle PngBlip data by inserting the png image
1553 * TextControl.cs: Allow images to be inserted as the first tag of
1555 - Fix some off by one issues when we assume the first tag is a
1556 text tag, not an image tag.
1558 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1560 * ListView.cs: Set focus to ListView when ItemControl gets a
1561 WM_RBUTTONDOWN message, to mimic .Net behaviour.
1562 Fixes part of #80467.
1564 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1566 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
1567 validate Text input (if null or empty string reset Value to default
1568 value). Fixes #80830.
1570 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1572 * ListView.cs: Set owner as null for columns and items when
1573 Dispose is invoked. Fixes #80607.
1575 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
1577 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
1578 showing DropDowns, don't show a Grip when doing Flow layout.
1579 [This fixes the toolbox in PDN 2.72.]
1580 * ToolStripItem.cs: Add Anchor property and some internal properties to
1581 reduces needed changes to FlowLayout.
1582 * ToolStripOverflow.cs: Remove unused variable.
1583 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
1584 use it in the layout calculations.
1586 2007-02-13 Everaldo Canuto <everaldo@simios.org>
1588 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
1591 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
1594 2007-02-13 Everaldo Canuto <everaldo@simios.org>
1596 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
1597 MeasureString format, it can make button very large in some cases, it is
1598 strange but is what win32 do.
1600 2007-02-13 Everaldo Canuto <everaldo@simios.org>
1602 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
1605 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
1606 rendering, the value is based on MenuAccessKeysUnderlined.
1608 2007-02-13 Everaldo Canuto <everaldo@simios.org>
1610 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
1613 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
1615 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
1616 and use MenuAccessKeysUnderlined instead.
1618 2007-02-13 Andreia Gaita <avidigal@novell.com>
1620 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
1621 A selected control would not get a Focus call if:
1622 - the default active control of the container is the same as
1623 the one that was selected
1624 - we are switching from one container to another
1625 Under these conditions, the container being selected already has
1626 an active_control, which is the same as the one being activated,
1627 so set_ActiveControl would always return and not send the Focus
1628 call. Fix to check if the currently active control of the container
1629 is actually focused.
1631 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
1633 * StatusStrip.cs: Implement the spring layout.
1634 * ToolStripControlHost.cs: Make sure the hosted control's visibility
1635 always matches the host.
1636 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
1639 2007-02-13 Andreia Gaita <avidigal@novell.com>
1641 * Control.cs: Code reorganization only.
1642 - Reorganize the WndProc cases so that each case has it's own handling method,
1643 to help with the no-line-numbering stack traces.
1644 - Formatting changes (it's vstudio's fault, really :p)
1646 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1648 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
1649 Thread.CurrentUICulture to match DateTimePicker's (and MS)
1652 2007-02-12 Jackson Harper <jackson@ximian.com>
1655 * TextBox.cs: By default we have a non multiline document
1656 - use the multiline property instead of the internal variable
1657 * TextBoxBase.cs: Treat multiline and non multiline the same in
1659 - Use the documents multiline flag instead of tracking it ourself
1660 * TextControl.cs: Attempt at getting multiline to match MS
1661 behavior. Lines now track an offset, which is either their X or Y
1662 offset depending on whether or not we are in multiline mode.
1663 - Update all the methods to understand that lines have an X value.
1664 - Fix crash in Undo::Duplicate when empty lines are deleted.
1666 2007-02-12 Everaldo Canuto <everaldo@simios.org>
1668 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
1669 code moved to properties PreferredHeight and PreferredWidth. It solve the
1670 all problems when preferred sizes must be recalculated. Fixes #80801.
1672 2007-02-12 Everaldo Canuto <everaldo@simios.org>
1674 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
1675 font height when compatible_text_rendering is false. Partially fix #80801.
1677 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1679 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
1681 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1683 * Form.cs: Improved exception messages in ShowDialog.
1685 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
1687 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
1688 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
1689 if not set. Fixes bug #80764. Avoid accessing current_settings field
1692 2007-02-08 Everaldo Canuto <everaldo@simios.org>
1694 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
1697 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
1698 public in 2.0 and for easy maintenance and dont break compatibility it is
1701 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
1703 * ToolStripItem.cs: Implement using images from ImageList.
1705 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1707 * DateTimePicker.cs: Change default date-formatting culture from
1708 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
1709 seems to be the way MS does it.
1711 2007-02-08 Andreia Gaita <avidigal@novell.com>
1713 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
1714 (the 6 was cut off on the right side)
1716 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
1718 * Form.cs: Tell MenuStrips to close when the form is clicked.
1719 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
1720 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
1721 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
1722 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
1723 support for Overflow, where items that do not fit are automatically
1724 reparented to a drop down menu.
1725 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
1726 Also: fixes bug #80747.
1728 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1730 * ComboBox.cs: Remove warning (unused code).
1731 * ScrollableControl.cs: Remove warning for 1.1 profile.
1733 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1735 * Form.cs: Remove a warning.
1737 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1739 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
1740 'g' specifier, not documented anywhere, but seems to always show up
1741 as a single space (might have something to do with the DateTime 'g'
1742 specifier, which is the era format, but since DateTimePicker can't
1743 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
1744 won't crash if the format has an unmatched quote. Now shows
1745 single-character formats correctly. Fixes #80744.
1747 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
1749 * StatusStrip.cs: Stretch property needs to call base.Stretch,
1750 not this.Stretch to fix stack overflow. [Fixes bug #80760]
1752 2007-02-07 Chris Toshok <toshok@ximian.com>
1754 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
1755 background color. it overwrites the background image we've
1756 already painted. Fixes #80599.
1758 2007-02-07 Chris Toshok <toshok@ximian.com>
1760 * DataGrid.cs: return immediately from Edit() when there are no
1761 columns. Fixes #80662.
1763 2007-02-07 Chris Toshok <toshok@ximian.com>
1765 * MessageBox.cs: fix #80625. don't always show the Help button in
1766 2.0. use the displayHelpButton parameter to determine if we
1767 should show it. Also, make the internal show_help field private.
1769 2007-02-07 Chris Toshok <toshok@ximian.com>
1771 * Control.cs (SetVisibleCore): check in the proposed patch for
1772 80604, and set is_visible before calling CreateControl.
1774 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
1776 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
1777 MonoInternalNote. This is added automagically by VS2005, so let's not crash
1780 2007-02-06 Everaldo Canuto <everaldo@simios.org>
1782 * MenuAPI.cs: hotkey_active internal field added, it is required because
1783 we need to know when hotkeys must be draw, before this change a keystate
1784 Navigating was used but we can have menu in navigating state without
1785 hotkeys. Fixes #80694.
1787 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
1789 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1791 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
1792 corresponding events and methods to be internal for 1.1 profile and
1793 public for 2.0 profile (required by SizeGrip).
1794 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
1795 implicit control list). Don't set the size nor the location of the
1796 SizeGrip anymore as it's not needed.
1797 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
1798 draw directly on the captured control (fixes #80656). Removed
1799 ShowGrip (it wasn't used anywhere), redraw (always true), added
1800 GetDefaultSize and GetDefaultRectangle to calculate defaults.
1801 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
1802 be called from SizeGrip.
1804 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1806 * Timer.cs: Throw ArgumentException if Interval <= 0.
1808 2007-02-05 Jackson Harper <jackson@ximian.com>
1810 * TreeView.cs: We need to check scrollbar visibility when window
1811 visibility is updated, because non visible trees don't ever add
1813 * Cursor.cs: We want the override cursor to be reset to NULL when
1814 we set current cursor to the default cursor.
1816 2007-02-05 Jackson Harper <jackson@ximian.com>
1818 * TextControl.cs: Don't have crlfs when we are non multiline.
1819 - Consolidate the line position.
1821 2007-02-05 Jackson Harper <jackson@ximian.com>
1823 * X11Keyboard.cs: BACK+CTRL gets a special char code.
1825 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1827 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
1828 handling LeaveNotify->NotifyUngrab in order to send
1829 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
1830 after calling XUngrabPointer, so we call WindowUngrabbed directly
1831 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
1832 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
1833 MouseCaptureChanged correctly. Also create handles if changing
1834 Capture (matches MS behaviour).
1836 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1838 * SizeGrip.cs: Make the last change 2.0 only.
1840 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1842 * SizeGrip.cs: If resizing and the capture is lost, revert any size
1843 changes to initial size (fixes #80597).
1845 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1847 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
1849 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1851 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
1852 background) and only allow dragging if enabled. This way the
1853 sizegrip can be used to fill the open square that otherwise would
1854 have been shown in the bottom right corner of ScrollableControl
1855 when ScrollableControl is not suppose to support sizing.
1856 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
1857 sizegrip is shown and enabled, and hook up with necessary events.
1859 2007-02-01 Chris Toshok <toshok@ximian.com>
1861 * DataGridTextBoxColumn.cs: clean up the
1862 GetFormattedString/GetColumnValueAtRow combination of functions.
1863 Also fix UpdateUI, and the initial state of
1864 IsInEditOrNavigateMode.
1866 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
1867 aren't supposed to scroll the textbox here, we're supposed to
1868 scroll the datagrid.
1870 2007-02-01 Chris Toshok <toshok@ximian.com>
1872 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
1873 setting the position.
1875 2007-02-01 Chris Toshok <toshok@ximian.com>
1877 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
1878 here, since the most recent focus fixes keep us from generating
1879 the Leave event when our textbox gets focus.
1880 (Edit): we should be passing null for the column style's
1881 instantText parameter.
1883 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
1885 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
1886 raised. Fixes menu text/icons not showing up in PDN.
1888 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
1890 * Control.cs: Remove code in constructor that makes every
1891 control with WS_CHILD set have initial location -1, -1.
1893 2007-01-31 Jackson Harper <jackson@ximian.com>
1895 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
1897 * XplatUIX11.cs: Give teh keyboard to teh dnd.
1899 2007-01-31 Jackson Harper <jackson@ximian.com>
1901 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
1902 - Remove some debug code.
1904 2007-01-31 Jackson Harper <jackson@ximian.com>
1906 * XplatUIX11.cs: If you set the override cursor during a grab, it
1907 should actually override the grab cursor. This comes into play
1908 when you are setting custom cursors in a DND feedback method.
1910 2007-01-31 Jackson Harper <jackson@ximian.com>
1912 * X11Dnd.cs: Add support for handling the QueryContinue and
1913 GiveFeedback events.
1914 - Cancel drag and drop actions when the escape key is clicked.
1915 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
1916 can handle the ESCAPE key.
1917 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
1918 done when dnd events are continued after the button is released.
1919 - Add a new helper method so that dnd can translate key events.
1921 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
1923 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
1924 make it more obvious what is happening.
1926 2007-01-30 Jackson Harper <jackson@ximian.com>
1928 * XplatUIX11.cs: Don't break when handling button release in drag
1929 and drop operations. We need that BUTTONUP message to get through
1930 so capture is released.
1931 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
1932 this is handled automatically when the mouse is down.
1934 2007-01-30 Jackson Harper <jackson@ximian.com>
1936 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
1937 is closed, so we need to make sure that we aren't changing the
1938 dialog result when the OK (Open or Save) button has been clicked
1939 and we are closing the window ourselves. Note we don't need to
1940 worry about the cache being written in this case, because it was
1941 already done in the previous FilOk call.
1943 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
1945 * DateTimePicker.cs: Remove a warning.
1946 * ComboBox.cs: Remove a couple of warnings.
1948 2007-01-29 Chris Toshok <toshok@ximian.com>
1950 * XplatUIX11.cs: don't crash, and remove the icon if the user has
1951 set one, if SetIcon is passed a null icon.
1953 2007-01-29 Andreia Gaita <avidigal@novell.com>
1955 * TextBox.cs: Redraw when the password characters changes
1956 * TextControl.cs: Check if textbox has a password char and draw
1957 a line of password chars instead of the text in the line. LineTag gets
1958 an extra Draw() method which allows document.Draw to override the text
1959 that will be drawn. Removes 1024 char limitation on length of passworded
1962 2007-01-29 Jackson Harper <jackson@ximian.com>
1964 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
1965 single chars is not.
1967 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
1969 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
1970 one pixel. Fix a StackOverflowException caused by an overload wrongly
1973 2007-01-26 Everaldo Canuto <everaldo@simios.org>
1975 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
1976 also remove ProcessArrowKey and put the code inside ProcessKeys.
1978 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
1980 * PaddingConverter.cs: Added.
1982 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
1984 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
1985 ShowPanels is false (fixes #80600). Only draw up to 127 characters
1986 of text (fixes #80601). For panels clip the text to draw to the
1987 panel (fixes #80603).
1989 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
1991 * ComboBox.cs: Fixed implementation of ResetText.
1993 2007-01-25 Jackson Harper <jackson@ximian.com>
1995 * TextControl.cs: For the last char of a line we need to use the
1996 line size, not that chars width, since it won't actually be
1997 computed since the right side of a char is based on the start of
1998 the left side of the next char, and the next char does not exist.
2000 2007-01-25 Chris Toshok <toshok@ximian.com>
2002 * Splitter.cs: fix the new unit tests, and reindent some switch
2005 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2007 * ComboBox.cs: Implemented 2.0 methods and events.
2008 * TextBoxBase.cs: Added OnTextUpdate, so that
2009 ComboBox.ComboTextBox can inform ComboBox of it.
2011 2007-01-25 Jackson Harper <jackson@ximian.com>
2013 * TextControl.cs: Respect ShowSelection when deciding whether or
2014 not to display the caret, this allows comboboxes to have carets
2015 when the combotextbox does not have focus.
2017 2007-01-25 Jackson Harper <jackson@ximian.com>
2019 * TextControl.cs: Add a Suspend/Resume for updating, basically the
2020 same as the Suspend/Resume for recalc, except this will do actual
2022 - New Undo manager, works much like the MS version.
2024 * TextBoxBase.cs: The Cut operation is undoable.
2026 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2028 * TextBoxBase.cs: Don't antialias text. Makes it look way better
2029 on Windows (no difference on Linux).
2031 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2033 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
2034 we don't want to activate any windows. Fixes #79433.
2036 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
2038 - ButtonBase.cs: Fix capitalization of parameter: disposing.
2041 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
2044 - Move to using System.ComponentModel.EventHandlerList
2045 - Replace Refresh with Invalidate
2046 - Clear the mime filecache on closing
2047 - Some other memory reducing work. After beeing closed FD now uses
2048 only about 300 KB for the fdo mime stuff plus the memory of the
2050 * Mime.cs: Changed coding style and removed unnecessary commented
2051 code. Some more memory memory reducing work.
2053 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2055 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
2056 a few other missing 2.0 properties.
2057 * Theme.cs: Added DrawFlatStyleComboBox.
2058 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
2060 2007-01-24 Chris Toshok <toshok@ximian.com>
2062 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
2063 wake_waiting flag, not just when there's data to be read. if we
2064 don't, then future wakeup's won't reach us and we'll be doomed to
2065 wait for the entire 1 second timeout forever (unless there are X
2068 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
2070 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
2071 until you pass Items.Count, not Items.Count - 1 like 1.1.
2073 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
2075 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
2077 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
2079 * ToolStripContainer.cs: The recent Dock fix exposed that I was
2080 adding the panels in the wrong order.
2082 2007-01-24 Jackson Harper <jackson@ximian.com>
2084 * TextBoxBase.cs: When we move the caret we also need to move the
2085 selection, this fixes some random crashing after doing select
2086 text, unselect, delete a char, paste.
2088 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2090 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
2092 2007-01-23 Everaldo Canuto <everaldo@simios.org>
2094 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
2095 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
2096 * ToolBar.cs: Force redraw in BackgroundImageChanged.
2098 2007-01-23 Everaldo Canuto <everaldo@simios.org>
2101 - Implement support for vertical toolbars. Fixes #80539;
2102 - Call LayoutToolBar when resize, it fix some other problems in layout.
2103 - Rename requested_height to requested_size, as we can have width on it
2104 when toolbar is vertical.
2105 - Create a private property "Vertical" that uses Dock to verify when
2106 toolbar is vertical or not.
2107 - Set ControlStyles when change Dock property.
2108 - Refactory in LayoutToolBar to have better variables names and to support
2110 - Fixes default value for ButtonSize when button count is equal zero, size
2111 must be (39, 36) test case writed.
2113 2007-01-23 Chris Toshok <toshok@ximian.com>
2115 * Control.cs: fix the checks so that they work correctly for mdi
2118 2007-01-23 Chris Toshok <toshok@ximian.com>
2120 * Control.cs: ControlCollection seems to have super-secret
2121 abstraction breaking knowledge of Mdi containers. allow MdiClient
2122 to add toplevel controls.
2124 2007-01-23 Chris Toshok <toshok@ximian.com>
2126 * Control.cs: throw an ArgumentException if a toplevel control is
2127 added to our control collection from ControlCollection.Add, as
2128 well as from ControlCollection.IList.Add. This fixes the
2129 ControlSetTopLevelTest.TestTopLevelAdd unit test.
2131 Also, in ControlCollection.IList.Add, don't through an
2132 ArgumentNullException, throw an ArgumentException, when value ==
2133 null. This matches MS.
2135 2007-01-23 Chris Toshok <toshok@ximian.com>
2137 * BindingSource.cs: initial, incomplete, implementation of
2140 2007-01-23 Jackson Harper <jackson@ximian.com>
2143 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
2144 that I can fix a broken unit test (TextBoxTest::ClearUndo)
2146 2007-01-23 Everaldo Canuto <everaldo@simios.org>
2148 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
2150 2007-01-23 Andreia Gaita <avidigal@novell.com>
2152 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
2153 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
2154 IndexOfKey() for 2.0
2156 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2158 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
2159 to prevent it from changing z-order.
2160 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
2161 leave UI updates in MdiWindowManager.
2162 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
2163 1 sized (NC handling goes weird on Linux otherwise).
2164 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
2165 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
2166 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
2167 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
2168 and SetWindowState(s) to allow for changing the size of an activated child
2169 before activating it (reduces a lot of flicker).
2171 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
2173 * Form.cs: Changing FormBorderStyle has different semantics based
2174 on whether the Form is visible or not. If not visible, don't change
2175 the Size. But InvalidateNC needs to be called to force the window
2176 to pick up the changes and redraw itself. [Fixes bug #80574]
2178 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
2181 * ContainerControl.cs: ProcessCmdKey.
2182 * ErrorProvider.cs: new constructor.
2183 * Form.cs: fix AutoValidateEvent compiler warning.
2184 * Label.cs: fix OnAutoSizeChanged compiler warning.
2185 * MenuStrip.cs: fix CanOverflow compiler warning.
2186 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
2187 * TextBox.cs: Dispose.
2188 * ToolStrip.cs: CanOverflow, re-enable double buffering.
2189 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
2190 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
2191 * ToolStripItem.cs: Overflow, RightToLeft properties.
2193 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
2195 * Form.cs: Move the layout of the main form to MdiWindowManager.
2196 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
2197 do a layout of the main window to update MdiClient's client area to
2198 the right area. Fixes #80533. Remove the calculation of nc size,
2199 it was just wrong and the correct one is the same as for
2200 InternalWindowManager.
2202 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
2204 * Control.cs: Setting Anchor or Dock needs to reset the other
2205 to its default. [Fixes bug #80556]
2207 2007-01-20 Chris Toshok <toshok@ximian.com>
2209 * CheckedListBox.cs: class status changes.
2211 * ScrollableControl.cs: same.
2213 * RichTextBox.cs: same.
2215 * ContainerControl.cs: same.
2217 * ListView.cs: same.
2219 * NotifyIcon.cs: same.
2221 * MenuStrip.cs: same.
2223 * RadioButton.cs: same.
2225 * CheckBox.cs: same.
2227 * PrintPreviewDialog.cs: same.
2231 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
2233 * TreeNode.cs: Apply Alan's patch for Name property.
2235 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
2237 * Form.cs: Implemented SizeGripStyle.
2238 * SizeGrip.cs: Check for minimum and maximum size for the
2239 control being resized and only resize if size has actually
2242 2007-01-19 Chris Toshok <toshok@ximian.com>
2244 * DataGridColumnStyle.cs: stop setting _readonly in the
2245 PropertyDescriptor setter. fixes a unit test failure.
2247 also, rename ParentReadOnly to TableStyleReadOnly, and have it
2248 just consult our table style (if we have one). We don't need to
2249 consult the datagrid readonly attribute because that's passed in
2250 as the _ro arg to Edit. this simplifies things a little.
2252 * DataGrid.cs: use CurrentColumn instead of
2253 current_cell.ColumnNumber just to simplify some of the code.
2255 switch the order of some things in the CurrentCell setter to keep
2256 the previous cell from getting a textbox again -
2257 EnsureCellVisibility causes scrolling to happen, which calls Edit.
2258 So we need to set the new cell before calling it.
2260 call Edit in OnEnter, as does Microsoft.
2262 also, make sure the current table style isn't the one we create
2263 initially when checking to see if it's different than the one
2264 we're setting it to in BindColumns (this fixes #80421).
2266 * GridTableStylesCollection.cs: table styles can have "" for a
2267 mapping name. part of the fix for #80421.
2269 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
2272 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2274 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
2275 and less GDI object leaky-er.
2277 2007-01-18 Andreia Gaita <avidigal@novell.com>
2279 * LinkLabel.cs: Add opaque control style
2281 2007-01-18 Jackson Harper <jackson@ximian.com>
2283 * TextControl.cs: Calculate width properly.
2284 - Don't store the tag's X offset, this can be figured out very
2286 - When getting the caret tag make sure to get the last empty tag.
2288 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2290 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
2293 * Control.cs: Color.Empty shouldn't count for previous transparent
2296 2007-01-18 Jackson Harper <jackson@ximian.com>
2300 * TextControl.cs: Starting to merge in some pieces of my older
2301 undo work. Basically just some slight cleanup of the undo API.
2303 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
2305 * TrackBar.cs: Fix signature of RightToLeftLayout.
2306 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
2307 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
2308 * Application.cs: Implemented UseWaitCursor.
2310 2007-01-18 Jackson Harper <jackson@ximian.com>
2312 * TextControl.cs: We can't skip tags if any part of the tag is
2315 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2317 * ContainerControl.cs: Override OnLayout.
2319 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2321 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
2323 * ContextMenuStrip.cs: Make sure context menu is shown on top of
2326 2007-01-18 Chris Toshok <toshok@ximian.com>
2328 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
2329 (leftover from the container_selected days, I'd wager). fixes bug
2332 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2334 * Control.cs: Apply patch from George to fix the new testcase on
2335 bug #80451. We can't just check for Color.Transparent, we need
2336 to check if the back color's alpha channel is < 255.
2338 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2340 * Form.cs: Move setting show_icon = true to before the constructor
2341 so that the base constructor has that information when it calculates
2342 the form's size. Was causing forms to be (6, 6) bigger than they
2343 were supposed to be. Thanks for catching this Rolf!
2345 2007-01-18 Jackson Harper <jackson@ximian.com>
2347 * TextControl.cs: When replacing a selection we need to invalidate
2348 from the initial selection start, because selection start is moved
2349 to the end of the replacement.
2351 2007-01-18 Andreia Gaita <avidigal@novell.com>
2353 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
2355 2007-01-18 Chris Toshok <toshok@ximian.com>
2357 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
2360 2007-01-17 Everaldo Canuto <everaldo@simios.org>
2362 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
2363 layout methods and properties from ToolBarButton must be available
2364 into ToolBarButtonInfo.
2366 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
2368 * Control.cs: If the control has a transparent background, we
2369 need to refresh it when it moves and when it's parent's background
2370 image changes. [Fixes bug #80451]
2372 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
2374 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
2376 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
2378 * XplatUIWin32.cs: Implement proper double buffering for Windows.
2379 [Fixes bug #80447, and probably speeds up things as well]
2381 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2383 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
2384 * XplatUIWin32.cs: We need to recalculate NC size after changing
2385 window style to toolwindow (otherwise the client rectangle will be
2386 3 pixels to small for some reason).
2387 * MdiWindowManager.cs: Revert NC size calculations to match how
2388 they are calculated only based on window styles (to match
2389 Win32AdjustWindowRectEx, since otherwise when setting size or
2390 location, Control will call Win32AdjustWindowRectEx to update client
2391 size, which would provoke a paint, then we'd get a NCCALCSIZE and
2392 calculate a different value of client size causing another paint
2394 * InternalWindowManager.cs: When moving or resizing a window only
2395 update size or location if they actually changed.
2396 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
2397 (seems to match Windows behaviour better). Cleaned up
2398 ManagedWindowDecorations to draw what's needed and nothing else
2399 (was drawing borders and lines where they shouldn't be)
2400 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
2401 (style = 0xFFFF) and takes into account caption height when
2402 calculating window rectangle.
2404 2007-01-16 Everaldo Canuto <everaldo@simios.org>
2406 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
2407 can be added to toolbar multiple times, we need to maintain a list of
2408 button information for each positions.
2410 2007-01-16 Everaldo Canuto <everaldo@simios.org>
2412 * ToolBar.cs: Some small stetic changes.
2414 2007-01-16 Jackson Harper <jackson@ximian.com>
2416 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
2417 that allow us to have nested recalc = false blocks.
2418 - Add paste support for images in the RichTextBox
2419 * RichTextBox.cs: flush the text after the color is changed, so
2420 the change takes effect.
2422 - Some extra debugging info
2423 * TextControl.cs: Tags no longer track their length, it is just
2424 computed from the next tags length, this makes things a little
2425 simpler and reduces places that we have to track length changes.
2426 - Refactored the linetag class a little so we could make it
2427 a base class for different kinds of tags
2428 - Created a image tag, a tag that can have a single image inserted
2430 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
2431 that we can call suspend multiple times.
2432 - Add some debugging methods
2434 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2436 * MdiClient.cs: Add ActivatePreviousChild for
2437 mdi child window navigation.
2438 * Form.cs: Use MdiClient.ActivateNextChild/
2439 ActivatePreviousChild instead of Form.SelectNextControl
2440 to select the next/previous child since
2441 SelectNextControl doesn't do it in the same order
2442 as mdi children should do it.
2444 2007-01-16 Chris Toshok <toshok@ximian.com>
2446 * Control.cs: remove container_selected field.
2448 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2450 * MdiClient.cs: Update main form's ActiveChild when
2451 updating keyboard focus for the mdi child.
2453 2007-01-16 Jonathan Pobst <jpobst@novell.com>
2455 * Control.cs: PreferredSize fix.
2457 * Form.cs: Add several 2.0 events, properties, and methods.
2459 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
2461 * Form.cs: Provide meaningful message when MdiParent is assigned a
2462 Form that is not an MdiContainer.
2464 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2466 * MdiClient.cs: Update main form's ActiveChild when
2467 activating a mdi child.
2469 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2471 * MdiWindowManager.cs: Fix NRE when merging menus and main form
2472 doesn't have a menu.
2474 * Form.cs: Request NCRecalc after creating a mdi child window.
2475 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
2476 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
2478 * MdiClient.cs: Add new method SendFocusToActiveChild that either
2479 sends keyboard focus to the active child, or to the MdiClient
2480 if there are no child forms.
2482 2007-01-15 Chris Toshok <toshok@ximian.com>
2484 * ListView.cs: drop the *Internal overrides, just do our work in
2485 ItemControl's WndProc instead.
2487 * UpDownBase.cs: a few large changes. Fix up the Selectable state
2488 of the various controls, and forward the events properly (in the
2489 same manner as MS) from the textbox to the UpDown. Also the
2490 ActiveControl of the UpDownBase gets set properly now. Finally,
2491 we don't call UpdateEditText from the ctor. Fixes bug #79957.
2493 * NumericUpDown.cs: set Text in the ctor.
2495 * DomainUpDown.cs: call UpdateEditText in the ctor.
2497 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
2498 so even a Selectable = false textbox can be focused if you click
2501 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
2502 just add their handling in their respective WndProc's. Also add
2503 an explicit FocusInternal method that doesn't consult CanFocus
2504 before calling Select(this).
2506 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
2507 do our work in WndProc instead.
2509 * TabControl.cs: same.
2511 * ComboBox.cs: same.
2513 2007-01-15 Everaldo Canuto <everaldo@simios.org>
2515 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
2518 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2521 * ThemeWin32Classic.cs: Don't draw the item text outside
2522 item bounds in Details view, as well as use trimming.
2525 2007-01-15 Jonathan Pobst <jpobst@novell.com>
2527 * Form.cs: Implement Form.ShowIcon.
2529 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
2530 null, which when combined with the DlgModalFrame window style removes
2531 the icon from the title bar.
2533 2007-01-15 Jonathan Pobst <jpobst@novell.com>
2535 * Control.cs: Call OnMouseClick after OnClick. (2.0)
2537 2007-01-15 Everaldo Canuto <everaldo@simios.org>
2539 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
2540 menu when mdi child windows theres a menu, uses insert to get icon
2541 at first position. Partially fix #80006.
2543 2007-01-15 Jonathan Pobst <jpobst@novell.com>
2545 * Clipboard.cs: Implement 2.0 methods.
2547 2007-01-15 Everaldo Canuto <everaldo@simios.org>
2549 * Menu.cs: Implement Insert method of MenuItemCollection class
2552 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2554 * ListView.cs: Implement 2.0 FindItemWithText method.
2556 2007-01-11 Everaldo Canuto <everaldo@simios.org>
2558 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
2559 to calculate menu bar size. Fixes #80290.
2561 2007-01-11 Everaldo Canuto <everaldo@simios.org>
2563 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
2565 2007-01-11 Chris Toshok <toshok@ximian.com>
2567 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
2570 2007-01-11 Chris Toshok <toshok@ximian.com>
2572 * LinkLabel.cs: make sure to call base.Select in our Select method
2573 if it turns out we're going to be selected (i.e. if we have a link
2574 that is going to receive focus). That way our container's
2575 ActiveControl is updated properly.
2577 2007-01-11 Chris Toshok <toshok@ximian.com>
2579 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
2580 they have 1 or more links. this fixes the crash gert reported.
2582 2007-01-11 Andreia Gaita <avidigal@novell.com>
2584 * ContainerControl.cs: Remove ContainerSelected flag, not needed
2587 * Control.cs (Controls.Add): Check if control to be added to the collection
2588 is a top level control, and throw an ArgumentException if it is.
2589 Remove ContainerSelectedFlag, not needed anymore.
2591 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
2592 top most control doesn't activate the form. This fixes a problem in the
2593 MessageBox, where the default button wouldn't get focus because the form
2594 was activated before being Loaded - when the Owner is set, SetTopMost is
2595 called, and it would activate it.
2597 2007-01-11 Jonathan Pobst <jpobst@novell.com>
2599 * Button.cs: When clicked and setting the parent form's DialogResult,
2600 use FindForm instead of Parent, since parent could be a container
2601 control and not the Form. Fixes bug #80495.
2603 2007-01-10 Chris Toshok <toshok@ximian.com>
2605 * Form.cs: move the call to SendControlFocus into the same
2608 2007-01-10 Chris Toshok <toshok@ximian.com>
2610 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
2611 It breaks in the face of the new ActiveControl stuff, and should
2614 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
2615 activecontrol's focus if it's not already set, after we set
2616 ActiveControl, but before we call OnActivated. Re-fixes #79667
2617 after the previous focus/active control fixes regressed it.
2619 * Control.cs: reindent some code.
2621 2007-01-10 Chris Toshok <toshok@ximian.com>
2623 * Splitter.cs: clearing some outstanding changes from my tree.
2624 Replace all accesses (not writes) to the internal dock_style field
2625 with the Dock property.
2627 2007-01-10 Chris Toshok <toshok@ximian.com>
2629 * Control.cs: make FireEnter, FireLeave, FireValidating, and
2630 FireValidated virtual.
2632 * Form.cs: override and don't chain up calls to FireEnter and
2635 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2637 * ListView.cs: Add more text padding space when using
2638 auto resize for columns (the previous value didn't work fine).
2640 * ThemeWin32Classic.cs: Update text position inside columns,
2641 to match the appeareance of .Net.
2643 * ColumnHeader.cs: When using auto resize, only the Width should
2644 depend on the sub items, not the Height. Also, set width after
2645 auto resizing (the value of Width should never remain as -1 or -2).
2647 2007-01-10 Chris Toshok <toshok@ximian.com>
2649 * Application.cs: fix compilation errors when debug is enabled.
2651 2007-01-10 Chris Toshok <toshok@ximian.com>
2653 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
2654 add some nice ascii art pictures and explanation of the process).
2655 (GetMostDeeplyNestedActiveControl): new utility function we need
2656 because our ActiveControl can refer to a child container with its
2659 * Form.cs (OnActivated): remove the call to SelectActiveControl
2660 from here, since you can override this method and not chain up,
2661 and winforms still sets the active control.
2662 (OnCreateControl): also remove the unnecessary SelectActiveControl
2664 (WndProc): it's actually called from the WM_ACTIVATE block, just
2665 before calling OnActivated.
2667 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
2668 inside the else. the ActiveControl setter will end up setting
2669 focus on @control. This keeps us from setting it again (and
2670 generating an extra LostFocus/GotFocus pair).
2671 (Select (bool, bool)): reindent.
2673 2007-01-10 Jonathan Pobst <jpobst@novell.com>
2675 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
2676 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
2677 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
2678 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
2679 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
2680 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
2681 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
2682 ToolStripTextBox.cs: Another wave of corcompare work.
2684 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2686 * ColumnHeader.cs: Implement 2.0 AutoResize method using
2689 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
2690 methods by callling Column.AutoResize method on columns.
2692 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
2694 * Control.cs: Provide proper implementations of PreferredSize
2695 and GetPreferredSize (2.0).
2697 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
2699 * Form.cs: Remove one character (!) to make my previous OnClosing
2700 stuff work for modal windows like MessageBox.
2702 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2705 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
2706 ListView.Columns to get the last displayed column. Fixes #80452.
2708 2007-01-09 Everaldo Canuto <everaldo@simios.org>
2710 * Label.cs, LinkLabel.cs: Source code identation fixes.
2712 2007-01-08 Everaldo Canuto <everaldo@simios.org>
2714 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
2715 we dont need to invalidate only borders because when we invalidate four
2716 border lines the invalidate's generates a complete redraw of button,
2717 because it now invalidate a complete rect some other redraws operations
2718 are fixed. Fixes #80196.
2720 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
2721 Remove ToolBarInvalidateEntireButton as it is not used.
2723 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
2725 * Form.cs: Make sure that both OnClosing and OnFormClosing are
2726 called for 2.0 profile.
2727 * CloseReason.cs: Make class internal for 1.1.
2729 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
2731 * ToolStripManager.cs: Implement FindToolStrip functionality.
2732 * ToolStrip.cs: Register and unregister with ToolStripManager.
2734 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
2736 * Control.cs: This was messy. 2.0 moves much of ControlCollection
2737 to ArrangedElementCollection. Implemented this with as few #if's as
2738 possible (which is still too many).
2740 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
2742 * Control.cs: Implement SizeFromClientSize() [2.0].
2744 2007-01-07 Everaldo Canuto <everaldo@simios.org>
2746 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
2747 use Theme.BorderSize to calculate area instead of static value 1,
2748 by the way use new BorderStaticSize instead Border3DSize when
2749 border_static is true. Fixes #79537.
2751 * XplatUIOSX.cs: Fix call to GetClientRectangle.
2753 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
2756 2007-01-06 Everaldo Canuto <everaldo@simios.org>
2758 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
2760 2007-01-06 Everaldo Canuto <everaldo@simios.org>
2762 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
2763 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
2766 - border_static field added, it will used to define when a control
2767 theres 3D border but it must be static (thin).
2768 - In GetWindowRectangle use Theme.BorderSize to calculate area
2769 instead of static value 1, by the way use new BorderStaticSize instead
2770 Border3DSize when border_static is true.
2772 * XplatUIX11.cs, XplatUIOSX.cs:
2773 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
2775 * Theme.cs: BorderStaticSize field added.
2777 2007-01-05 Everaldo Canuto <everaldo@simios.org>
2779 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
2781 2007-01-05 Everaldo Canuto <everaldo@simios.org>
2783 * Control.cs: Under InternalBorderStyle call RecreateHangle to
2784 mimic same behavior than win32 that set border only in CreateParams,
2785 it fix problems under CreateParams overrides. Fix #79442 and partial
2788 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
2789 of thi control you must call recreate handle.
2791 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
2792 need to do anything as RecreateHangle will take care about borders.
2794 2007-01-05 Mike Kestner <mkestner@novell.com>
2796 * ListView.cs: hack to eliminate Lost/Got focus notifications on
2797 cycles between the ItemControl and parent. Fixes #80388.
2799 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
2801 * Control.cs: Lazy init layout engine. Do not directly use
2802 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
2804 2007-01-05 Chris Toshok <toshok@ximian.com>
2806 * DataGrid.cs: don't forceably rebind columns in SetDataSource
2807 unless our list manager has changed (i.e. unless we have reason to
2808 believe our columns have changed). Fixes #80422.
2810 also, disable the call do BindColumns in
2811 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
2812 1.1 the event isn't raised in response to a column addition on a
2815 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
2817 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
2818 that inheritors can not call it if they choose. Fixes bug #80456.
2820 2007-01-05 Andreia Gaita <avidigal@novell.com>
2822 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
2823 doesn't blow up with a null exception on marshalling.
2825 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
2827 * Control.cs: Implement several 2.0 protected properties and methods.
2828 Ensure that all necessary events are being called when properties
2831 2007-01-05 Mike Kestner <mkestner@novell.com>
2833 * ListView.cs: implement PgUp/PgDn for Details view. Also
2834 fixes First/LastVisibleIndex to use the item_control.ClientRect
2835 instead of the parent control. Fixes #80378.
2837 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
2839 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
2840 determine whether to use yard-pound or not (bug #78399).
2842 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
2844 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
2845 problems. So it is time to bring back the old popupbutton colors.
2847 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2850 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
2851 property by using the internal information of the
2852 columns order in ListView.
2854 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
2856 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
2857 Add 2.0 Tag properties.
2859 * LinkArea.cs: Add 2.0 ToString method.
2861 2007-01-03 Chris Toshok <toshok@ximian.com>
2863 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
2864 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
2865 when we're editing, which fixes #80047.
2867 2007-01-03 Chris Toshok <toshok@ximian.com>
2869 * Form.cs: apply patch contributed by Dominik Seichter. fixes
2872 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
2874 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
2875 property and implementation.
2877 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
2878 for MdiWindowListItem property.
2880 * ToolStripDropDown.cs: Don't consider hidden menu items while
2881 laying out the menu.
2883 2007-01-03 Andreia Gaita <avidigal@novell.com>
2885 * SendKeys.cs: window handle is not needed in win32, so just
2886 get the active window for X after parsing keys and don't use
2887 it when building the message; it is passed by parameter to the
2888 Xplat method and used there to build the message instead. Also,
2889 wait for events to be processed on SendWait, as opposed to Send,
2890 which doesn't wait :) Playing with threads and Send() completely
2891 hangs on ms.net, only SendWait() works.
2894 X11Display.cs: Check for valid window handle.
2896 2007-01-03 Jackson Harper <jackson@ximian.com>
2898 * TextControl.cs: Need to prevent wrap calculations when replacing
2899 text (this was there before i removed it accidently).
2900 - Don't update the cursor during the positioning, just set it to
2901 selection_start at the end of the operaion.
2903 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
2906 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
2908 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
2910 * MonthCalendar.cs: Added Click and DoubleClick events again,
2911 but this time they only hide Control's Click and DoubleClick.
2913 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
2915 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
2916 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
2918 2007-01-02 Jackson Harper <jackson@ximian.com>
2920 * TextBoxBase.cs: We move the caret with the split now, so we
2921 don't need to explicitly move the caret after splitting. This
2922 fixes the caret bumping down an extra line on Enter.
2924 2007-01-02 Miguel de Icaza <miguel@novell.com>
2926 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
2929 * ScrollableControl.cs: Add Scroll event.
2931 2007-01-02 Mike Kestner <mkestner@novell.com>
2933 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
2934 to fix all hdr height padding codepaths. Fixes #80207.
2936 2007-01-02 Chris Toshok <toshok@ximian.com>
2938 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
2939 setting it to the Control defaults anyway, and it being after the
2940 Dock set was screwing up layout.
2941 (set_Dock): don't short circuit out of setting base.Dock. Also,
2942 no need to call UpdateStatusBar here, as it'll be re-layed out if
2945 2007-01-02 Mike Kestner <mkestner@novell.com>
2947 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
2948 to header height for width == -1. Fixes the rest of #80207.
2950 2007-01-02 Mike Kestner <mkestner@novell.com>
2952 * ListView.cs: rework the mouse event forwarding everaldo added
2953 to translate the coordinates to the parent control not
2954 raise the parent events until after we've done our work. Hover
2955 needs more work, in the case where HoverSelection is on, because
2956 the item control receives more than one MouseHover per Enter
2957 event, so we need to ensure only the "first" hover gets forwarded.
2958 Opening a minor bug for that.
2960 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
2962 * CheckedListBox.cs: Fixed SelectionMode to match MS.
2963 * ListControl.cs: Implemented AllowSelection property. Removed extra
2965 * ListBox.cs: Implemented AllowSelection property.
2967 2007-01-02 Everaldo Canuto <everaldo@simios.org>
2969 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
2970 SelectedItem, it prevent for errors when you must disable item
2971 before perform click. Fixes #80409.
2973 2007-01-02 Everaldo Canuto <everaldo@simios.org>
2975 * MenuAPI.cs: Prevent second level and beyond submenus to close
2976 until first level when move out side of popup.
2978 2007-01-02 Everaldo Canuto <everaldo@simios.org>
2981 - Down submenu positin in three pixels.
2982 - Closes sub menu when mouse leaves from menu. Fixes #80402.
2984 2007-01-02 Everaldo Canuto <everaldo@simios.org>
2986 * ThemeWin32Classic.cs:
2987 - Fix popup menu size adding one pixel on the top.
2988 - Down menu item border from two to one to mimic Win32.
2989 - Some source identation fixes.
2991 2007-01-01 Everaldo Canuto <everaldo@simios.org>
2993 * ThemeWin32Classic.cs: Use float numbers to calculate size and
2994 position of menu arrows, it fix wrong arrow size.
2996 2007-01-01 Everaldo Canuto <everaldo@simios.org>
2998 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
2999 instead of line, it simplify draw operation and fix it using 3D
3000 borders to mimic Win32.
3002 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
3004 * StatusStrip.cs: Add implementation of the sizing grip.
3006 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
3007 StatusStrip rendering.
3009 2006-12-31 Chris Toshok <toshok@ximian.com>
3011 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
3012 override the layout style (anchor/dock) of the control. assign to
3013 Dock instead. Fixes bug #80416.
3015 * ToolStrip.cs: same.
3017 2006-12-31 Andreia Gaita <avidigal@novell.com>
3019 * ContainerControl.cs: Use ContainerSelected flag to check if
3020 a Container is directly selected, or if Select is called on a
3021 non-container. If a container is directly selected, focus events
3022 should not be raised.
3023 Apply #80411 patch to throw exception on set_ActiveControl if
3024 control is the same as the current one.
3026 * Control.cs: Use ContainerSelected flag (see above).
3027 Add invalidation check to raise event but not invalidate if
3032 2006-12-31 Everaldo Canuto <everaldo@simios.org>
3034 * MenuAPI.cs: After click, dont close popup menu when menu is
3035 ContextMenu. Fixes #80399.
3037 2006-12-30 Chris Toshok <toshok@ximian.com>
3039 * ContainerControl.cs: make sure we throw the exception if the
3040 container control doesn't contain the control we're setting
3043 2006-12-30 Chris Toshok <toshok@ximian.com>
3045 * Control.cs (SetTopLevel): fix the exception raised by
3046 SetTopLevel for child controls.
3047 (set_Anchor): call UpdateDistances when setting the anchor type.
3048 This fixes bug #80336.
3050 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
3052 * Theme.cs: For now, revert back to 8pt font.
3054 2006-12-29 Everaldo Canuto <everaldo@simios.org>
3056 * MenuAPI.cs: Set popup as active when open a ContextMenu.
3059 2006-12-29 Chris Toshok <toshok@ximian.com>
3061 * Control.cs: reorder the code in OnResize to give the same event
3064 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3066 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
3067 TileHorizontally and TileVertically.
3069 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
3071 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
3072 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
3073 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
3074 Corrected copyright and email adress.
3076 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
3078 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
3079 of Exception in FullPath property if no TreeView is associated with
3082 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
3084 * Theme.cs: Marked default_font as private, and initialize it in ctor
3085 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
3087 * ThemeGtk.cs: Removed default_font intialization.
3088 * ThemeWin32Classic.cs: Removed default_font initialization.
3090 2006-12-28 Chris Toshok <toshok@ximian.com>
3092 * Control.cs: fix a couple of place where we were creating handles
3093 more aggressively than we should be. Fixes ControlRefresh unit
3096 2006-12-28 Chris Toshok <toshok@ximian.com>
3098 * Control.cs: contrary to what the comment said, Control.Dock does
3099 not supercede Control.Anchor - the last one you assign to decides
3100 the layout behavior. so we need to keep track of which was the
3101 last set. Also, fix some of the affected property arguments in
3102 PerformLayout calls, and remove an redundant parent.PerformLayout
3105 Add a VisibleInternal property, which returns is_visible. We
3106 can/should get rid of all the usage of this field elsewhere.
3108 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3110 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
3111 control style, not DoubleBuffer. Added UseDoubleBuffering property
3112 that indicates whether doublebuffering is enabled and supported.
3113 (comment from and code based on Gert Driesen's patch in #80324).
3116 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3118 * Control.cs: Fixed a NRE.
3120 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3122 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
3125 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3127 * Control.cs: Rewrote double buffering, now a seperate
3128 class handles all the buffering, no Graphics is disposed of
3129 until the painting is finished (earlier implementation
3130 would crash if the control was resized in the OnPaint,
3131 since it would cause the double buffer to be recreated
3132 and the old one disposed), a separate Graphics is
3133 created for every paint (MS behaviour and anyways the state
3134 of the Graphics would have to be saved and restored otherwise)
3138 * XplatUI.cs: Added and implemented GetOffscreenGraphics
3139 so that we can get the graphics for the back buffer without
3140 having to create a new one and remove the offscreen_dc parameter
3141 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
3143 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3145 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
3146 Also make virtual all the key-related methods.
3148 * ListViewItem.cs: Make virtual the key related methods for
3149 ListViewSubItemCollection.
3151 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3155 * ThemeWin32Classic.cs:
3156 * Theme.cs: Initial support for Tile view in ListView,
3157 as well as the implementation of the required bits for it (Item
3160 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3162 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
3163 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
3164 Provide useful exception messages.
3166 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
3168 * TrackBar.cs: Remove a warning.
3169 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
3170 when used by DateTimePicker, fixes #80287. This also requires that
3171 MonthCalendar implements it's own drawing for the yearly updown control,
3172 otherwise the Capture tracking would be too complicated. Removed the Click
3173 and DoubleClick events (according to comments they were hiding the base class
3174 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
3175 raise these events, not that they cannot be raised. It is possible to raise
3176 them by calling OnClick and OnDoubleClick). Added two internal fields in
3177 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
3178 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
3179 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
3180 event, no longer needed.
3182 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3184 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
3185 true if new value differs from current value.
3187 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3189 * Control.cs: ControlCollection.Count must be public. Fixed build of
3192 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3194 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
3196 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3198 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
3200 2006-12-26 Everaldo Canuto <everaldo@simios.org>
3202 * Control.cs: Invalidates control including when Width and Height is
3203 equal zero or is not visible, only Paint event must be care about
3206 2006-12-26 Chris Toshok <toshok@ximian.com>
3208 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
3209 more corcompare work.
3211 * DataGridView.cs: fix compiler warning.
3213 * ColumnHeader.cs: some corcompare work, and also take the
3214 opportunity to make the internal fields private.
3216 * ListView.cs: fix the fallout from the above field change.
3218 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
3220 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
3221 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
3222 ToolStripTextBox.cs: Fixes to events and corcompare.
3224 2006-12-26 Everaldo Canuto <everaldo@simios.org>
3226 * ListView.cs: Call owner.OnMousexx event to propagate events from
3227 item to ListView. Fixes #80367.
3229 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
3231 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
3232 if value is less than one. ItemHeight should not be set to a value
3233 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
3236 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
3238 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
3239 * ToolStripStatusLabel.cs: Add Spring for Moma.
3241 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
3243 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
3244 Fixed code formatting. Removed debug code.
3245 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
3247 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
3249 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
3250 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
3251 ArgumentOutOfRangeException if ColumnCount is negative. In
3252 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
3253 less than 4 or higher than 32768.
3254 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
3255 Fixed FormatProvider to return CurrentCulture unless explicitly set.
3256 Fixed IsFormatProviderDefault to return true if FormatProvider has
3257 not been explicitly set.
3259 2006-12-25 Chris Toshok <toshok@ximian.com>
3261 * Application.cs: add a couple of 2.0 events.
3263 2006-12-25 Chris Toshok <toshok@ximian.com>
3265 * Control.cs: fix compiler warning.
3267 * AxHost.cs: corcompare fixes.
3269 * ApplicationContext.cs: corcompare fixes.
3271 2006-12-25 Chris Toshok <toshok@ximian.com>
3273 * Control.cs: only update dist_right/dist_bottom if the
3274 width/height is > 0. this fixes anchored controls being resized
3275 smaller until they disappear and then resized larger again.
3277 2006-12-25 Chris Toshok <toshok@ximian.com>
3279 * Control.cs: a couple of changes. Remove dist_left and dist_top,
3280 since they're nothing more than X/Left and Y/Top, respectively.
3282 Also, move back to a per-control Bitmap/Graphics for
3283 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
3284 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
3287 2006-12-25 Miguel de Icaza <miguel@novell.com>
3289 * MessageBox.cs: Implemented overload that takes a new "bool
3290 displayHelpButton" by adding a new internal field "show_help".
3291 When clicked this will raise the HelpRequested on the owner or the
3294 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
3295 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
3297 * ListView.cs: Add support ColumnWidthChanged and
3298 ColumnWidthChanging.
3300 Add support for ColumnReordered event.
3301 (ReorderColumn): Add NET_2_0 specific support for cancelling the
3306 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
3308 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
3310 2006-12-24 Chris Toshok <toshok@ximian.com>
3312 * GridTablesFactory.cs: 2.0 corcompare work.
3314 * ToolStripContainer.cs: add "override" to
3315 ContextMenuStripChanged, and remove the local event object.
3317 * ToolStripDropDown.cs: same with a couple properties.
3319 * ToolStripPanel.cs: same with AutoSizeChanged event.
3321 * TextBoxBase.cs: add "override" to AutoSizeChanged.
3323 * Form.cs: add the remaining 2.0 events, and do some corcompare
3326 * DateTimePicker.cs: add "new" to padding.
3328 * ButtonBase.cs: use Control's use_compatible_text_rendering.
3330 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
3332 * DataGridView.cs: PaddingChanged is overridden.
3334 2006-12-24 Chris Toshok <toshok@ximian.com>
3336 * Control.cs: corecompare work here too.
3338 * DataGridViewElement.cs, DataGridView.cs,
3339 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
3340 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
3341 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
3342 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
3345 2006-12-24 Miguel de Icaza <miguel@novell.com>
3347 * Control.cs: Switched the error message on the console for a
3348 todo. A review of the code will have to cope with this anyways
3349 (since its a large feature, it is in our radar) and it was
3350 producing too much output when running PDN.
3352 * ToolStripComboBox.cs: Set the text when the SelectedIndex
3353 changes. Applications depend on this (PDN 2.72)
3355 2006-12-23 Chris Toshok <toshok@ximian.com>
3357 * TableLayoutSettings.cs: finish up the corcompare work for this
3360 2006-12-23 Chris Toshok <toshok@ximian.com>
3362 * Control.cs: make SetImplicitBounds internal, do some futzing
3363 with LayoutEngine so that it's available in 1.1, and remove the
3364 entire duplicated code mess from PerformLayout. Use
3365 System.Windows.Forms.Layout.DefaultLayout instead.
3367 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
3369 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
3371 * Form.cs: Add MainMenuStrip property.
3373 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
3375 * Control.cs: Add ContextMenuStrip property and implementation.
3376 Fix ContextMenu implementation to show menu centered on control when
3377 activated using the keyboard instead of showing at screen (0,0).
3379 * ToolStripDropDown.cs: Fix needed overload of Show ().
3381 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3383 * Menu.cs: Name property added for 2.0 profile.
3385 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3387 * Menu.cs: Update information about FindMenuItem, method to be
3390 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3392 * MenuAPI.cs: When deselect items deselect also selected subitems.
3394 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3396 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
3397 FindSubItemByCoord to found itens that is not active, also an
3398 cheking added to FindSubItemByCoord to search for items only
3399 in visible popup windows. Fixes #80274.
3401 2006-12-22 Everaldo Canuto <everaldo@simios.org>
3403 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
3404 internal property, it be care about change ExStyle.
3406 2006-12-22 Andreia Gaita <avidigal@novell.com>
3408 * ContainerControl.cs: set activeControl for parent forms up the
3409 tree when the new activecontrol is a container.
3410 When validating the active control, if it is a container, also
3411 raise up the validation for it's active control. Fixes #80280
3413 * Control.cs: Add internal property flag and check to prevent
3414 Focus events from getting raised when Select() is called for
3415 a ContainerControl. There are still too many focus events being
3416 raised at the moment though.
3417 Cleaned up the code a bit.
3419 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
3421 * Control.cs: Added all missing 2.0 events.and
3422 fixed a couple of corcompare issues.
3423 * TrackBar.cs: Implemented missing 2.0 bits.
3425 * DateTimePicker.cs,
3426 * MdiClient.cs: Fixed some corcompare issues.
3428 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
3430 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
3431 SplitterPanel.cs: corecompare work.
3433 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
3435 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
3436 Clean up warnings for BackgroundImageChanged and PaddingChanged
3437 events now that they are implemented in Control.cs.
3439 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
3441 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
3443 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
3444 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
3445 of TableLayoutPanel and supporting cast.
3447 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
3450 - GrabWindow now confines the mouse pointer to the confine window.
3451 - Added Win32ClipCursor and Win32GetClipCursor.
3454 - Added CaptureWithConfine to be able to capture and confine
3457 * InternalWindowManager.cs:
3458 - Call CaptureWithConfine instead of Capture if we're an
3459 MdiChild (fixes #79982).
3461 2006-12-21 Chris Toshok <toshok@ximian.com>
3463 * DataGrid.cs: guard against the initial state of selection, where
3464 selection_start == -1. make sure we only select from index >= 0.
3467 2006-12-21 Chris Toshok <toshok@ximian.com>
3469 * Control.cs: we don't need to be so draconian with
3470 UpdateDistances, and we thusly don't need to call it before
3471 calling PerformLayout in ResumeLayout. Fixes bug #80289.
3473 2006-12-21 Daniel Nauck <dna@mono-project.de>
3476 TextBox.cs: Implemented AutoComplete properties.
3478 2006-12-20 Chris Toshok <toshok@ximian.com>
3480 * DataGridView*.cs: some corecompare work.
3482 2006-12-20 Jackson Harper <jackson@ximian.com>
3484 * XplatUIX11.cs: We need to hide the caret when deleting it,
3485 otherwise you get carets left lying around everywhere.
3486 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
3487 prevents getting some weird half drawn caret tracers when
3489 * TextControl.cs: Attempt to reduce the number of times we need to
3492 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
3494 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
3496 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
3498 * DateTimePicker.cs:
3499 - Implemented missing 2.0 bits.
3500 - Changed some default values to match MS.
3502 2006-12-20 Jackson Harper <jackson@ximian.com>
3504 * TextBoxBase.cs: When changing the font across the document we
3505 can't recalculate after changing each line, since that will cahnge
3507 - PreferredHeight is a little different than i thought.
3508 - When backspacing, move the caret before we do the actual char
3509 delete, because when that delete crosses a wrap boundary the
3510 positional information will change.
3512 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
3514 * Control.cs: Added some missing 2.0 bits:
3515 BackgroundImageLayout, BackgroundImageLayoutChanged,
3516 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
3517 add IBindableComponent and IDropTarget implementation.
3520 - Added all missing 2.0 features:
3521 BackgroundImageLayout, RightToLeftLayout,
3522 OnHandleDestroyed, RightToLeftLayoutChanged,
3523 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
3525 - Rewrote all the BoldDate code, it was completely broken.
3526 - Fixed all the tests (the tests can now be re-enabled, the
3527 problems were not with the tests, but with the control, it was
3530 * DateTimePicker.cs: Changed the location where the
3531 MonthCalendar is shown.
3533 2006-12-19 Chris Toshok <toshok@ximian.com>
3535 * DataGridView.cs: add IDropTarget implementation.
3537 * ToolStripPanel.cs: add IDropTarget implementation.
3539 2006-12-19 Jackson Harper <jackson@ximian.com>
3541 * TextControl.cs: soft now means something different than what it
3542 used to mean, we want to move the caret regardless of whether or
3543 not this break was soft (would we really have wanted the caret
3544 to not move with the break in the old context?)
3545 * TreeView.cs: Make sure we factor in the vert scrollbar when
3546 calculating the horizontal scrollbar's maximum.
3548 2006-12-19 Andreia Gaita <avidigal@novell.org>
3550 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
3551 check for keywords in alternate casing, close bug #80049.
3553 2006-12-19 Chris Toshok <toshok@ximian.com>
3555 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
3556 methods (which all do nothing).
3558 * IDropTarget.cs: add the 4 missing methods.
3560 2006-12-19 Chris Toshok <toshok@ximian.com>
3562 * TableLayoutRowStyleCollection.cs: corcompare work.
3564 * TableLayoutSettings.cs: same.
3566 * TableLayoutStyle.cs: same.
3568 * TableLayoutColumnStyleCollection.cs: same.
3570 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
3572 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
3573 TableLayoutPanel I've had in my local tree for way too long.
3575 2006-12-19 Miguel de Icaza <miguel@novell.com>
3577 * TableLayoutSettings.cs: Finish the public API (still needs all
3578 the logic to update on changes).
3580 * TableLayoutPanelCellPosition.cs: new file.
3582 * TableLayoutRowStyleCollection.cs,
3583 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
3584 TableLayoutSettings.cs: Track the final 2.0 table api.
3586 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3588 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
3589 and Image List 2.0 members for ColummnHeader.
3590 * ListView.cs: Add key-related 2.0 methods for
3591 ColumnHeaderCollection.
3593 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
3595 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
3596 ArgumentNullException if items argument is null. Ignore null item in
3597 arrays. Removed extra tabs.
3599 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
3601 * MonthCalendar.cs: Fixed InvalidCastException.
3603 2006-12-19 Jackson Harper <jackson@ximian.com>
3605 * TextControl.cs: Don't increment the position here.
3606 - When calculating char positions only add in the line break size
3607 for hard line breaks.
3609 2006-12-19 Andreia Gaita <avidigal@novell.org>
3611 * SendKeys.cs: Changed some things to match ms.net behaviour
3612 when parsing shifted capital letters.
3614 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
3615 Add window handle as parameter to SendInput. X11 needs the
3616 window handle, and the handle being passed to it in the keys
3617 queue is the active control handle (which windows needs), not
3620 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
3621 to support SendKeys on X.
3623 * X11Keyboard: Implement helper method to lookup a linux keycode
3624 given the virtual keycode. Added table of keycode-2-virtualkey
3625 values to support this.
3627 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3629 * ListView.cs: Add support for SelectedIndexCollection
3630 and SelectedItemCollection 2.0 methods. Implement support
3632 * ListViewItem.cs: Add support for ListViewSubItemCollection
3633 2.0 methods. Also, fix an incorrect behavior of AddRange method
3634 (it shouldn't call Clear).
3635 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
3637 2006-12-19 Jackson Harper <jackson@ximian.com>
3640 * TextBoxBase.cs: New args for FormatText
3641 * TextControl.cs: Rewrote the main drawing method, this version
3642 feels a little easier to understand and debug to me. Hopefully it
3644 - Fix FormatText to OR in the new formating values. Added
3645 FormatSpecified param, basically this works in the same way as
3646 BoundsSpecified in Control.
3647 - Set the caret properties when the caret is positioned.
3648 - When wrapping text make sure that we calculate the width of the
3650 - when calculating alignments we might have wrapped down to the
3651 next line, so don't search for an individual tag, search for the
3653 - We need to invalidate the selection area when we replace the
3656 2006-12-19 Daniel Nauck <dna@mono-project.de>
3658 * Application.cs: add Restart () 2.0 support
3660 2006-12-18 Everaldo Canuto <everaldo@simios.org>
3662 * MenuItem.cs: Invalidate menu item rectangle after change Enable
3663 property. Fixes #80268.
3665 2006-12-18 Everaldo Canuto <everaldo@simios.org>
3667 * MenuAPI.cs: Dont trigger select event when closes top menu
3670 2006-12-18 Everaldo Canuto <everaldo@simios.org>
3672 * MenuAPI.cs: When you click on menuitem only trigger onselect
3673 event for top menu itens. Fixes #80271.
3675 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3677 * MdiWindowManager.cs: Make IconicBounds depend on
3678 the bottom of MdiClient, not the top (fixes #80267)
3680 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3682 * MdiClient.cs: Added missing 2.0 attribute
3684 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3686 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
3687 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
3689 2006-12-18 Everaldo Canuto <everaldo@simios.org>
3691 * MenuAPI.cs: Fix click when menuitem is not popup,
3692 this regression was caused by last commit (#80272).
3694 2006-12-17 Everaldo Canuto <everaldo@simios.org>
3696 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
3697 fire click event or close menu. Fixes #80272.
3699 2006-12-17 Daniel Nauck <dna@mono-project.de>
3701 * ListViewHitTestInfo.cs: add
3703 2006-12-17 Daniel Nauck <dna@mono-project.de>
3705 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
3706 * FlatButtonAppearance.cs: add
3707 * DockingAttribute.cs: add
3709 2006-12-17 Chris Toshok <toshok@ximian.com>
3711 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
3712 and rebind our columns when it does - this way, if you make
3713 changes to the DataTable (or set the Table attribute on a DataView
3714 after setting it as the DataGrid's DataSource, the changes are
3715 made visible.) Fixes bug #80107.
3717 2006-12-17 Daniel Nauck <dna@mono-project.de>
3719 * ListViewGroup.cs: add internal Location property for layouting.
3720 * Theme.cs: add abstract ListViewGroupHeight function.
3721 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
3723 2006-12-16 Andreia Gaita <avidigal@novell.com>
3725 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
3726 Added reset of selected index to 0 when adding first tab page.
3729 * NumericUpDown.cs: Fix NET_2_0 check
3731 2006-12-16 Daniel Nauck <dna@mono-project.de>
3733 * ListViewGroup.cs: fixed DefaultValueAttribute value
3735 2006-12-16 Daniel Nauck <dna@mono-project.de>
3737 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
3739 2006-12-15 Miguel de Icaza <miguel@novell.com>
3741 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
3742 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
3743 ScrollableControl.cs: Add a handful of methods that are
3746 2006-12-15 Chris Toshok <toshok@ximian.com>
3748 * XplatUIWin32.cs: initial implementation of the Reversible
3749 drawing functions. there are some problems. DrawReversibleFrame
3750 doesn't seem to work at all for Dashed FrameStyle, and in the
3751 Thick case there are drawing errors at the corners (we probably
3752 need to bind Rectangle instead of doing moveto/lineto's.)
3754 2006-12-16 Andreia Gaita <avidigal@novell.com>
3756 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
3757 to send blocks of key messages. Send accumulates keys to send with Flush,
3758 while SendWait sends all keys immediately.
3760 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3761 XplatUIX11.cs, XplatUIX11-new.cs:
3762 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
3764 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
3766 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
3767 testing for ms.net on this class is very tricky, as the tests run too fast
3768 to allow the hook to release, essentially freezing the keyboard and the
3769 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
3772 2006-12-16 Daniel Nauck <dna@mono-project.de>
3774 * Padding.cs: fixed serialization compability to MS ("_var" field names),
3775 added missing attributes.
3777 2006-12-15 Daniel Nauck <dna@mono-project.de>
3779 * ListViewGroup.cs: Added missing attributes.
3780 * ListViewGroupCollection.cs: Added missing attributes.
3782 2006-12-15 Daniel Nauck <dna@mono-project.de>
3784 * ListViewItem.cs: fixed ListViewSubItem text property.
3786 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3788 * Control.cs: Added missing 2.0 attributes
3790 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3792 * MdiClient.cs: Added missing 2.0 attribute.
3793 * MonthCalendar.cs: Added some missing 2.0 attributes
3796 2006-12-15 Daniel Nauck <dna@mono-project.de>
3798 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
3800 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
3802 * MainMenu.cs: Add the new 2.0 constructor to help out people
3803 using the MainMenu in VS2005.
3805 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3807 * MdiChildContext.cs: Removed it, no longer used.
3808 * MdiClient.cs: Added missing 2.0 attributes.
3810 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3812 * InternalWindowManager.cs: Fix a NullRef with previous
3813 changes for toolwindows.
3815 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
3818 - Added AfterTopMostControl to allow for certain controls
3819 to always stay on top when normal controls are brought to
3823 - (DrawInversibleRectangle): Get window rectangle from Win32
3824 in stead of from control, since Win32 doesn't calculate
3825 screen coords correctly from control's Location if it
3826 have docked siblings.
3828 * MdiWindowManager.cs:
3829 - Correct the control menu popup location when clicked on
3830 the maximized form icon. (fixes #80223.1)
3831 - Don't show moving rectangle if mouse hasn't moved from
3832 the original clicked point.
3833 - Removed FormGotFocus handler (not used).
3834 - Calculate the control buttons location from the main
3835 window's size and not client size (fixes #79770).
3836 - Form is now closed when the form icon is double-clicked
3838 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
3840 * InternalWindowManager.cs:
3841 - Moved some MDI-only methods to MdiWindowManager.
3842 - Removed unused properties and methods.
3843 - Unified method naming for methods handling wm messages.
3844 - Moved all message handling to seperate methods for
3847 * ThemeWin32Classic.cs:
3848 - DrawManagedWindowDecorations now draws the title bar
3849 with a gradient brush.
3850 - Add a CPDrawButtonInternal that allows us to specify
3851 light, normal and dark colors for the buttons (control
3852 buttons for MDI children were drawn with the same light
3853 color as the background, therefore loosing the 3D effect).
3856 - Add a CapturedControl property that is used to
3857 determine the control to resize (defaults to parent).
3858 Needed for MdiClient, since its SizeGrip's parent is
3859 MdiClient, but the control to resize is the main form.
3862 - Set SizeGrip's CapturedControl to the main form in order
3863 to resize the main form and not the MdiClient.
3864 - Override AfterTopMostControl to leave the scrollbars
3867 2006-12-15 Daniel Nauck <dna@mono-project.de>
3869 * ListView.cs: fixed ListViewItemCollection AddRange and
3870 implemented ListViewItemCollection AddRange 2.0 support.
3872 2006-12-15 Daniel Nauck <dna@mono-project.de>
3874 * ListViewGroup.cs: Add.
3875 * ListViewGroupCollection.cs: Add
3876 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
3877 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
3878 stub for ImageKey 2.0 support.
3880 2006-12-14 Mike Kestner <mkestner@novell.com>
3882 * ListView.cs: add text padding to the autocalculation for columns
3883 of width -2. Fixes #80207.
3885 2006-12-14 Mike Kestner <mkestner@novell.com>
3887 * ListView.cs: add some index guarding for partial row navigation
3888 logic. Fixes #80250.
3890 2006-12-14 Mike Kestner <mkestner@novell.com>
3892 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
3893 are added or inserted to the collection. Fixes #81099.
3895 2006-12-13 Everaldo Canuto <everaldo@simios.org>
3897 * MenuAPI.cs: Closes menu when right click out side of popup
3898 it fix problem in ContextMenu and MainMenu. Fixes #80252.
3900 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3902 * ListViewItem.cs: Fix dumb error.
3904 * ListView.cs: Add Find and ContainsKey methods in
3905 ListViewItemCollection, and also return true for IsReadOnly
3906 and IsFixedSize (changes for 2.0).
3908 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
3910 * Control.cs: Allow Region to be set to null.
3912 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
3914 * MdiWindowManager.cs: Remove unused (commented out) code.
3915 * Form.cs: When the MdiChild is maximized, the form needs
3916 WM_NCMOUSELEAVE, so request it.
3917 * InternalWindowManager.cs:
3918 - Added tooltips to control buttons.
3919 - Removed duplicated control button handling code.
3920 - Removed unused (commented out) code.
3922 2006-12-12 Everaldo Canuto <everaldo@simios.org>
3924 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
3925 was used because we must set cursor without trigger ChangeCursor event
3926 and without change Cursor control property. Fixes #79963.
3928 2006-12-12 Andreia Gaita <avidigal@novell.com>
3930 * Control.cs: Check if Region setter value is null, and ignore
3932 2006-12-12 Jackson Harper <jackson@ximian.com>
3934 * TextControl.cs: We were almost always drawing one more line then
3935 needed, since the GetLineByPixel will return the last line found
3936 at that pixel. In most cases though, we were invalidating up to
3937 the junction between two lines.
3938 - Improve debug code.
3940 2006-12-12 Chris Toshok <toshok@ximian.com>
3942 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
3943 and FillReversibleRectangle.
3945 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
3946 and FillReversibleRectangle.
3948 * XplatUIWin32.cs: add stubs which do nothing for
3949 DrawReversibleFrame, DrawReversibleLine, and
3950 FillReversibleRectangle.
3952 * XplatUIOSX.cs: add stubs which raise NIE for
3953 DrawReversibleFrame, DrawReversibleLine, and
3954 FillReversibleRectangle.
3956 * XplatUIX11.cs: add working implementation for
3957 DrawReversibleFrame, DrawReversibleLine, and
3958 FillReversibleRectangle.
3960 * ControlPaint.cs: implement DrawReversibleFrame,
3961 DrawReversibleLine, and FillReversibleRectangle, by calling into
3962 the appropriate XplatUI method.
3964 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3966 * Form.cs: Make MdiClient have the focus even if it's
3967 not selectable, since it should receive WM_KEY* and WM_MOUSE
3968 messages. Fixes #79907.
3970 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3972 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
3973 queried after the window is created.
3975 * XplatUIX11.cs: Added SendParentNotify to implement
3976 WM_PARENTNOTIFY logic. Fixes #79965.
3978 * Control.cs: Added MakeParam.
3980 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3982 * MdiClient.cs: Resume Layout before setting window
3983 states (fixes #80201).
3985 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
3987 * MenuAPI.cs: Deselect a menu item after performing
3988 the click (fixes #80197).
3990 2006-12-11 Jackson Harper <jackson@ximian.com>
3992 * TextBoxBase.cs: We need to cap this value, since Maximum -
3993 ViewPortHeight can be less than zero.
3994 - Only do selection with the left mouse button.
3995 * TextBox.cs: Don't tell the world that we have a context menu.
3996 * Control.cs: New method so that we can control whether or not the
3997 context menu is visible outside MWF.
3999 2006-12-11 Everaldo Canuto <everaldo@simios.org>
4001 * ToolBarButton.cs: Fix text positon.
4003 2006-12-11 Miguel de Icaza <miguel@novell.com>
4005 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
4007 * Control.cs (DoubleBuffered): Add implementation.
4009 * Application.cs (OpenForms): Add.
4011 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
4013 * Form.cs: Use opacity instead of Opactiy to determine if we need
4014 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
4016 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
4018 * Control.cs: Fix NRE if Control.Site was set to null.
4020 2006-12-11 Chris Toshok <toshok@ximian.com>
4022 * Control.cs: ControlCollection.Remove should return if the arg is
4023 null, and ControlCollection.SetChildIndex should raise a ANE.
4025 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
4027 * Control.cs: Verify value set for Dock property. Code formatting
4030 2006-12-11 Jackson Harper <jackson@ximian.com>
4032 * TextControl.cs: Draw the caret and the selection when a flag is
4034 * TextBoxBase.cs: We want to draw the caret and the selection for
4035 TextBox but not for TextBoxBase.
4036 - If the window is resized and scrolling is no longer needed (the
4037 whole doc is visible) set the scroll position to zero.
4038 - The default SelectWord (the one TextBox uses) should move the
4039 caret to the end of the word.
4040 - SelectAll moves the caret to the end of the selection.
4041 * TextBox.cs: We don't selectall on focus, we just do it when the
4044 2006-12-11 Mike Kestner <mkestner@novell.com>
4046 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
4048 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4050 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
4052 * ListViewItem.cs: Add Name 2.0 property.
4054 2006-12-11 Andreia Gaita <avidigal@novell.com>
4056 * TabControl.cs: Set visibility on selected or default tab
4057 when tabcontrol handle is created, so that it's contents
4058 actually show up (duh). Fixes #80193
4059 Don't redraw the control if there is no handle created, as
4060 the selected index might be completely invalid. Added some tests
4063 2006-12-11 Everaldo Canuto <everaldo@simios.org>
4065 * ToolBar.cs: Uses maximun width and height of all buttons as
4066 button rectangle when ButtonSize specified, it looks strange but
4067 is what happens in Win32. Fixes #80189.
4069 2006-12-11 Jackson Harper <jackson@ximian.com>
4071 * TextControl.cs: Need to track undo levels ourself, since
4072 compound actions will mess them up.
4074 2006-12-10 Andreia Gaita <avidigal@novell.com>
4076 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
4077 SelectedIndex value is changed (even if it's not valid).
4078 Reset SelectedIndex to 0 when the handle is created and if
4079 the current index is invalid.
4080 Fixes SelectdeIndex unit tests and #80128
4082 2006-12-08 Chris Toshok <toshok@ximian.com>
4084 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
4085 calls EndEdit, it needs to be called before we set current_cell to
4086 its new value. Otherwise, we end up committing the value in the
4087 textbox to the new cell as well. Fixes bug #80160.
4089 2006-12-08 Chris Toshok <toshok@ximian.com>
4091 * Form.cs (set_CancelButton): if the button's DialogResult is
4092 None, set it to Cancel. Fixes bug 80180.
4094 2006-12-08 Jackson Harper <jackson@ximian.com>
4096 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
4097 to watch ourselves when setting the canvas size and setting the
4100 2006-12-08 Chris Toshok <toshok@ximian.com>
4102 * DataGrid.cs: comment out the two MakeTransparent calls for the
4103 time being so people using trunk (and not 1.2.2) on windows can
4104 actually use the datagrid. This deals with bug #80151.
4106 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
4108 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
4109 Graphics.DrawImage (image, int, int, int, int) overload instead
4110 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
4111 the dpi difference and was blurring images it drew.
4114 2006-12-08 Chris Toshok <toshok@ximian.com>
4116 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
4117 rowcnt is 0 (such as with an empty datasource), and make sure we
4118 initialize not_usedarea.Y to cells.Y, so we don't draw over the
4119 other areas (caption, parent row, etc, etc). Fixes bug #80095.
4121 2006-12-08 Chris Toshok <toshok@ximian.com>
4123 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
4126 2006-12-08 Chris Toshok <toshok@ximian.com>
4128 [ Fixes bug #80167 ]
4130 * ThemeWin32Classic.cs: don't draw the image if the button's flat
4131 style is FlatStyle.System.
4133 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
4134 ButtonBase.flat_style private, and switch uses of it to the public
4137 2006-12-08 Chris Toshok <toshok@ximian.com>
4139 [ Fixes bug #80121 ]
4141 * ThemeWin32Classic.cs: center the caption text in the datagrid
4144 * DataGrid.cs: lessen the amount we add to the caption height from
4145 6 to 2. 6 was making it huge.
4147 2006-12-08 Andreia Gaita <avidigal@novell.com>
4149 * UpDownBase: Handle MouseWheel call directly instead of capturing
4150 the inner textbox's OnMouseWheel. Fixes #80166
4152 2006-12-08 Jackson Harper <jackson@ximian.com>
4154 * TextControl.cs: We need to invalidate the textbox when we empty
4155 it (how had this not been discovered before?)
4157 2006-12-08 Jackson Harper <jackson@ximian.com>
4159 * TextBoxBase.cs: Reworked the mouse down code so I could get it
4160 to behave like MS, we now ignore the eventargs.Click and just
4161 track state ourself, which we were already doing anyways.
4162 - Constrain the double click handler to the double click size.
4164 2006-12-08 Chris Toshok <toshok@ximian.com>
4166 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
4167 direction if that scrollbar isn't shown. fixes bug #80158.
4169 2006-12-08 Andreia Gaita <avidigal@novell.com>
4171 * NumericUpDown.cs: Update value on getter. Fixes #79950
4173 2006-12-08 Chris Toshok <toshok@ximian.com>
4175 * MenuItem.cs: add back in the event cloning code. I didn't know
4176 how to do it in the face of the EventHandlerList work i'd done
4177 last week. Fixes bug #80183.
4179 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
4181 * Control.cs: Add an invalidate to the BackgroundImage setter.
4184 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
4186 * ToolStrip*: Add some small properties reported by MoMA, fix event
4187 firing and default properties based off of unit tests, and add some
4188 attributes based off of the class status page.
4190 2006-12-07 Jackson Harper <jackson@ximian.com>
4192 * TextBoxBase.cs: Take HideSelection into account when determining
4193 whether or not to show the selection.
4194 * RichTextBox.cs: After inserting the RTF into the document move
4195 the cursor to the beginning of the document.
4197 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
4199 * Control.cs: Remove static ArrayList "controls" which maintained
4200 a reference to every control created.
4201 * Application.cs: Create a static FormCollection to maintain a reference
4202 to every form created. Use it in places that formerly enumerated through
4203 the controls one looking for forms.
4204 * Form.cs: Add and remove self from above FormCollection.
4206 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
4208 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
4209 not libgdk (though it makes me wonder why I didn't have any
4212 2006-12-07 Chris Toshok <toshok@ximian.com>
4214 [ you had to know this was coming after that last commit...]
4216 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
4217 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
4218 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
4221 2006-12-07 Chris Toshok <toshok@ximian.com>
4223 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
4224 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
4225 all the behavior we need for double buffering.
4227 * XplatUIDriver.cs: implement the 3 double buffer methods using a
4228 client side Bitmap, just like the old Control-based double buffer
4229 code did. The methods are virtual, so each XplatUI driver
4230 subclass can replace the implementation to use a faster, platform
4233 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
4234 double buffer code, and clean things up a bit in the process.
4236 2006-12-06 Chris Toshok <toshok@ximian.com>
4238 * Control.cs: reindent WndProc.
4240 2006-12-06 Chris Toshok <toshok@ximian.com>
4242 [ I wanna be like BenM when I grow up ]
4244 * Hwnd.cs: create a single static Graphics object on the static
4245 Bitmap we create. use this for our text measurements.
4247 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
4248 This was causing us to allocate a backbuffer for every control,
4249 even when it wasn't flagged as double buffered. Instead use the
4250 single graphics instance. This might have implications for
4251 multithreaded applications. If we run into problems we can switch
4252 to creating 1 Graphics per control, on the static Hwnd bitmap.
4254 this change nets us a 7M savings in private dirty mappings when
4255 running FormsTest.exe.
4257 2006-12-06 Chris Toshok <toshok@ximian.com>
4259 * ListView.cs: the BackgroundImage override is just to set
4260 attributes. chain up to base.BackgroundImage.
4262 * RichTextBox.cs: same.
4264 * ToolBar.cs: same, but we need to also redraw the toolbar when it
4265 changes, so instead a handler for BackgroundImageChanged.
4267 * Control.cs: make background_image private.
4269 2006-12-06 Chris Toshok <toshok@ximian.com>
4271 * ScrollBar.cs: change the assignment of cursor to Cursor. not
4272 sure we even need this assignment, but roll with it for now.
4274 * Control.cs: make the cursor field private.
4276 2006-12-06 Chris Toshok <toshok@ximian.com>
4278 * Form.cs: we don't need to explicitly set ImeMode to
4279 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
4280 behavior in the face of ImeMode.Inherit.
4282 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
4283 change the ctor's assignment to use ImeMode instead of ime_mode.
4285 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
4286 ImeModeInherit. Only check for the parent's imemode (and return
4287 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
4288 This fixes the button unit test, which sets both ImeMode and
4289 DefaultImeMode to ImeMode.Disable.
4291 also make the ime_mode field private.
4293 2006-12-06 Chris Toshok <toshok@ximian.com>
4295 * Control.cs: make control_style private.
4297 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
4298 setting the styles to true, then setting them to false instead of
4299 reverting to their previous values.
4301 also, call SetStyle on the scrollbars instead of using
4302 control_style directly.
4304 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
4306 * FormCollection.cs: Implement. [2.0]
4308 2006-12-06 Chris Toshok <toshok@ximian.com>
4310 * Control.cs: make tab_stop private.
4312 * Label.cs: set TabStop, not tab_stop. reformat some event
4313 add/remove methods to make them more compact.
4315 2006-12-06 Chris Toshok <toshok@ximian.com>
4317 * RadioButton.cs: fix TabStop handling.
4319 2006-12-06 Chris Toshok <toshok@ximian.com>
4321 * TextBox.cs: remove the explicit assignments to has_focus.
4324 * ButtonBase.cs: remove the assignment to has_focus. Control will
4327 2006-12-06 Chris Toshok <toshok@ximian.com>
4329 * ButtonBase.cs: remove all uses of is_enabled from this code.
4330 it's always true when any of the code containing the checks is
4333 2006-12-06 Chris Toshok <toshok@ximian.com>
4335 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
4336 with different semantics (some are present in both 1.1 and 2.0
4337 profiles) so that we match MS's behavior in our unit tests.
4339 2006-12-06 Jackson Harper <jackson@ximian.com>
4341 * TextControl.cs: Make this operation undoable.
4342 * TextBoxBase.cs: Factor the border width into the preferred
4344 - implement Modified as per the spec.
4346 2006-12-06 Chris Toshok <toshok@ximian.com>
4348 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
4350 2006-12-06 Chris Toshok <toshok@ximian.com>
4352 * Control.cs: make right_to_left and context_menu fields private.
4354 2006-12-06 Chris Toshok <toshok@ximian.com>
4356 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
4357 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
4358 Control.child_controls private. switch all uses over to
4361 2006-12-06 Chris Toshok <toshok@ximian.com>
4363 * System.Windows.Forms/GroupBox.cs,
4364 System.Windows.Forms/AccessibleObject.cs,
4365 System.Windows.Forms/ErrorProvider.cs,
4366 System.Windows.Forms/Control.cs,
4367 System.Windows.Forms/UpDownBase.cs,
4368 System.Windows.Forms/ScrollBar.cs,
4369 System.Windows.Forms/DateTimePicker.cs,
4370 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
4371 System.Windows.Forms/ToolTip.cs,
4372 System.Windows.Forms/RadioButton.cs,
4373 System.Windows.Forms/LinkLabel.cs,
4374 System.Windows.Forms/Splitter.cs,
4375 System.Windows.Forms/TextBoxBase.cs,
4376 System.Windows.Forms/ToolStripTextBox.cs,
4377 System.Windows.Forms/ContainerControl.cs,
4378 System.Windows.Forms/ThemeWin32Classic.cs,
4379 System.Windows.Forms/SizeGrip.cs,
4380 System.Windows.Forms/ToolStripDropDown.cs,
4381 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
4382 private. switch all uses over to Control.Parent.
4384 2006-12-06 Chris Toshok <toshok@ximian.com>
4386 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
4387 Control does this before calling emitting these events.
4389 * TabControl.cs: same.
4391 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
4392 Control.client_rect.
4394 * ButtonBase.cs: use the ClientSize property instead of the
4397 * ScrollableControl.cs: same.
4399 * Control.cs: another pass at making properties private. also,
4400 move the initialization of tab_stop to the ctor.
4402 2006-12-05 Andreia Gaita <avidigal@novell.com>
4404 * TabControl.cs: Let the selected index be set freely if the
4405 control handle is not yet created.
4407 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
4409 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
4410 internal until I can rewrite DefaultLayout.
4411 * ToolStrip.cs: Fix build error and some general cleaning.
4412 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
4413 Fix build errors caused by making some of Control's fields private.
4415 2006-12-05 Jackson Harper <jackson@ximian.com>
4417 * TextControl.cs: Redo Insert a little so that it use IndexOf
4418 instead of Split, this prevents it from messing up on things like
4419 \n\n\n. Also more effecient since the split array doesn't need to
4421 * TextBoxBase.cs: AppendText doesnt handle multiline and non
4422 multiline text differently, this is the first of many fixes that
4423 will make multiline/non-multiline the same thing as far as the
4424 TextBoxBase is concerned.
4425 - Don't split the text and insert lines, this can lose some line
4426 endings (like is the last line a soft or hard break). Instead use
4428 - Fix an off by one when combining all the lines in the Text
4430 - Remove separate multiline handling from the Text getter/setter.
4432 2006-12-05 Chris Toshok <toshok@ximian.com>
4434 * ButtonBase.cs: a few changes:
4436 - don't reinitialize internal Control fields in the ctor when they
4437 have the same values as Control sets them.
4439 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
4440 this before calling those methods.
4442 - we don't need to call Refresh for anything. use Invalidate
4445 - OnEnabledChanged doesn't need to redraw at all - Control.cs
4446 calls Refresh in its OnEnabledChanged.
4448 - several of the events we were registered for in the ctor to
4449 redraw ourselves already include calls to Invalidate in the
4450 property setters that raise the events. remove the extra
4453 - reformat a switch statement that was 83274658 columns wide.
4455 2006-12-05 Mike Kestner <mkestner@novell.com>
4457 * ComboBox.cs: fix a unit test regression from a TextBox
4458 SelectionLength return of -1 when there's no selection.
4460 2006-12-05 Chris Toshok <toshok@ximian.com>
4462 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
4463 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
4464 cleaning up some of the internal Control fields being used by
4467 2006-12-05 Mike Kestner <mkestner@novell.com>
4469 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
4470 listbox after AddImplicit calls since it defaults to hidden. Add a
4471 hack to preserve requested heights across DropDownStyle changes.
4473 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
4475 * PropertyGrid.cs: Hide FindFirstItem method from public API.
4477 2006-12-05 Chris Toshok <toshok@ximian.com>
4479 * DataGridView.cs: fix compiler warnings.
4481 * PrintControllerWithStatusDialog.cs: same.
4485 * FolderBrowserDialog.cs: same.
4487 * Splitter.cs: same.
4489 * DataGridViewComboBoxCell.cs: same.
4491 * XplatUIWin32.cs: same.
4493 * PictureBox.cs: same.
4495 * Win32DnD.cs: same.
4497 * PageSetupDialog.cs: same.
4499 * FileDialog.cs: same.
4501 * PrintDialog.cs: same.
4503 * DataGridTextBoxColumn.cs: same.
4505 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
4507 2006-12-05 Chris Toshok <toshok@ximian.com>
4509 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
4510 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
4511 System.ComponentModel.EventHandlerList work.
4513 2006-12-05 Jonathan Chambers <joncham@gmail.com>
4515 * DrawTreeNodeEventArgs.cs: Added.
4517 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
4519 * InternalWindowManager.cs: Remove an unused field.
4521 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
4523 * InternalWindowManager.cs:
4524 - Save the point where the title bar is clicked.
4526 * MdiWindowManager.cs:
4527 - Only allow moving of the window as long as the
4528 clicked point on the title bar does not get out of
4529 MdiClient's rectangle. Fixes #79982.
4532 - Added Horizontal/VerticalScrollbarVisible.
4533 - Simplified the scrollbar sizing algorithm.
4534 - Cache the difference in scrolled value in
4535 H/VBarValueChanged and move the calculation out
4538 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
4540 * Control.cs: Make the Console.WriteLine in WndProc
4543 2006-12-05 Chris Toshok <toshok@ximian.com>
4545 * ToolStripManager.cs, ToolStripButton.cs,
4546 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
4547 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
4548 ToolStripSplitButton.cs, ToolStripSeparator.cs,
4549 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
4550 ToolStripProgressBar.cs, ToolStripContainer.cs,
4551 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
4552 to using System.ComponentModel.EventHandlerList.
4554 2006-12-04 Chris Toshok <toshok@ximian.com>
4556 * LinkLabel.cs: fix up compiler warnings.
4558 * TableLayoutSettings.cs: same.
4560 * TreeView.cs: same.
4564 * TabControl.cs: same.
4566 * RichTextBox.cs: same.
4568 * ListViewItem.cs: same.
4570 * PropertyGrid.cs: same.
4572 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
4576 * TextRenderer.cs: fix up compiler warnings.
4580 * Form.cs: corcompare fixes.
4582 * PictureBox.cs: fix up compiler warnings.
4584 * ImageListStreamer.cs: same.
4586 * TrackBar.cs: corcompare fix.
4588 * Control.cs: fix up compiler warnings.
4590 * SplitterPanel.cs: same.
4592 * NumericTextBox.cs: same.
4594 * ImageList.cs: same.
4596 * StatusStrip.cs: same.
4598 * ProgressBar.cs: corcompare fix.
4600 * ToolStripButton.cs: fix up compiler warnings.
4602 * ToolStripStatusLabel.cs: same.
4604 * ToolStripSplitButton.cs: same.
4606 * ToolStripSeparator.cs: same.
4608 * ToolStripProgressBar.cs: same.
4610 * ToolStripDropDownMenu.cs: same
4612 * ToolStripDropDown.cs: same.
4614 * ToolStripDropDownButton.cs: same.
4616 * ToolStrip.cs: same.
4618 * ToolStripControlHost.cs: same.
4620 * ToolStripContentPanel.cs: same.
4622 * ToolStripDropDown.cs: same.
4624 * ToolStripContainer.cs: same.
4626 * ToolStripPanel.cs: same, and add "new" where we need it to work
4627 with the new ArrangedElementCollection.
4629 * ToolStripItemCollection.cs: add "new" where we need it to work
4630 with the new ArrangedElementCollection.
4632 2006-12-04 Andreia Gaita <avidigal@novell.com>
4634 * TabControl.cs: Fix default tab selection to after TabControl
4635 gets focus and not before. Fixes #80128
4637 2006-12-04 Chris Toshok <toshok@ximian.com>
4639 * DataGridTableStyle.cs: remove the gross calling of
4640 datagrid.Refresh from here. It's a broken idea and it doesn't
4643 * DataGrid.cs: instead, just register/unregister from the
4644 DataGridTableStyle events in CurrentTableStyle. we play it
4645 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
4646 even though some would most likely not require it. Fixes bug
4647 #80115 (and one portion of #80117 as a side effect).
4649 2006-12-04 Chris Toshok <toshok@ximian.com>
4651 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
4652 so the textbox (if any) goes away. Fixes bug #80117.
4654 2006-12-04 Chris Toshok <toshok@ximian.com>
4656 * DataGridColumnStyle.cs: set the column's readonly property
4657 initially based on the property descriptor's IsReadOnly. Fixes
4660 2006-12-04 Chris Toshok <toshok@ximian.com>
4662 * ComboBox.cs: wrap the dropdown style changing work in
4663 SuspendLayout/ResumeLayout. Fixes bug #79968.
4665 2006-12-04 Jackson Harper <jackson@ximian.com>
4667 * TextBoxBase.cs: Fix off by one, since these are one-based.
4668 * TextBox.cs: Select all the text when we get focus. The TextBox
4669 does this but the RTB does not.
4671 2006-12-04 Chris Toshok <toshok@ximian.com>
4673 * DataGridTextBoxColumn.cs: remove some spew.
4675 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
4676 but some part of me is saying "it shouldn't be here.." At any
4677 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
4680 2006-12-04 Chris Toshok <toshok@ximian.com>
4682 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
4683 to reassign the propertydescriptor.
4685 2006-12-04 Jackson Harper <jackson@ximian.com>
4688 * TextControl.cs: Remove some unused variables. Maybe this will
4689 patch things up between mike and I.
4690 - don't split lines less then one char wide, if the viewport is
4691 that small text won't be visible anyways.
4693 2006-12-04 Jackson Harper <jackson@ximian.com>
4695 * TextBoxBase.cs: Default selection length is -1, need to do some
4696 more testing on windows to see when this is used for the property.
4697 - Redid the Lines [] property to that we properly remove soft line
4699 - added support for preserving carriage returns
4700 - CanUndo is not a variable like 'is undo enabled' it just returns
4701 true if there is undo operations available.
4702 - AppendText doesn't need to grab the last tag itself anymore,
4703 this happens automatically when we move the cursor.
4704 * TextControl.cs: Add CompoundActions to the undo class. This
4705 allows combining the other operations into one big option. ie a
4706 paste will combine { delete old, insert new, move cursor }
4707 - Add InsertString undo operation
4708 - New method for deleting multiline text
4709 - Add carriage returns to lines. So we can preserve carriage
4710 returns when text is 'roundtripped'
4712 2006-12-04 Chris Toshok <toshok@ximian.com>
4714 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
4715 minimum 0. Fixes the scrollbar exception in bug #80136.
4717 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4720 * MdiWindowManager: Removed unused fields and methods.
4722 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4724 * StatusBar.cs: Update all panels when a AutoSize=Contents
4725 panel needs updating.
4727 * StatusBarPanel.cs: Remove twidth and only use initialize.
4730 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4732 * Form.cs: When a form's MdiParent is set add it directly
4733 on top of the z-order in stead of relying on MdiClient's
4734 ActivateChild to do it. Fixes #80135.
4737 - Remove original_order, mdi_child_list is already doing
4739 - Create mdi_child_list on construction in
4740 stead of first use (avoids a few null checks).
4742 * MenuItem.cs: Use an already existing list of mdi children
4743 to get the correct order of children and remove the other
4746 2006-12-04 Chris Toshok <toshok@ximian.com>
4748 * PropertyGridView.cs: cached_splitter_location is only used in
4751 * PropertyGrid.cs: implement the ComComponentNameChanged event
4752 using Events, hoping that would fix the warning. Looks like a
4753 compiler bug instead (#80144).
4755 * PropertyManager.cs: remove unused method.
4757 2006-11-04 Everaldo Canuto <everaldo@simios.org>
4759 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
4760 include parentesis to fix expression evaluation. Fixes #79634.
4762 2006-11-02 Everaldo Canuto <everaldo@simios.org>
4765 - Changes to fix behavior in Menu control, some reported in #80097
4766 and other detected during behavior refactory like a select event
4768 - Remove unneded "if's" conditions.
4769 - Created an internal to flag when popup is active in control, we need
4770 it because in .NET you can have menu active but without popup active
4771 when you active menu using popup without visible items.
4772 - Mimic win32 behavior for Select and Popup events.
4773 - Dont open popup menu when you dont have visible subitems.
4774 - Do nothing when click on disabled menu item.
4775 - Some small changes to follow the coding style guidelines.
4776 - Unselect menu only when another control gives focus. Fixes #80097.
4777 - Remove unused code.
4779 * MenuItem.cs: internal VisibleItems method to check if menu
4780 theres visible subitems, it will be usefull to fix some
4781 behavior in Menu control.
4783 2006-11-01 Everaldo Canuto <everaldo@simios.org>
4785 * Timer.cs: Tag property for 2.0 profile.
4787 2006-12-01 Chris Toshok <toshok@ximian.com>
4789 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
4791 * Win32DnD.cs: comment out some unused fields.
4793 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
4794 some unused properties/methods.
4796 * XplatUIX11.cs: fix MousePosition so we override the base class's
4797 property instead of conflicting with it.
4799 * PictureBox.cs: comment out some unused fields
4801 * OSXStructs.cs: make some struct fields public.
4803 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
4804 MousePosition so we override the base class's property instead of
4805 conflicting with it.
4807 * X11Dnd.cs: comment out some unused fields
4809 * X11DesktopColors.cs: fix some struct field visibility to quiet
4812 * X11Dnd.cs: remove some debug code.
4814 * ThemeClearlooks.cs: comment out unused field.
4816 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
4818 * ThemeGtk.cs: comment out some unused pinvokes.
4820 * Timer.cs: remove some unused fields.
4822 * ThemeClearlooks.cs: comment out unused field.
4824 * UpDownBase.cs: comment out unused field.
4826 * DataObject.cs: comment out unused field.
4828 * DataGridBoolColumn.cs: reomve unused field.
4830 * DataGrid.cs: remove unused field.
4832 * Cursor.cs: remove old ToBitmap code.
4834 * ControlPaint.cs: remove unused method.
4836 * ScrollBar.cs: remove unused fields.
4838 * ComboBox.cs: remove unused field, and chain up to
4839 AccessibleObject ctor.
4841 * ListBox.cs: remove unused field.
4843 * ButtonBase.cs: wrap a couple fields in NET_2_0.
4845 * GridEntry.cs: remove unused fields.
4847 * Binding.cs: remove unused fields.
4849 * AxHost.cs: remove unused method.
4851 * ContainerControl.cs: remove unused field.
4853 * ScrollableControl.cs: remove unused fields.
4855 2006-12-01 Chris Toshok <toshok@ximian.com>
4857 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
4858 the Where/WhereString stuff. it's easy enough to CWL
4859 Environment.StackTrace.
4861 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
4862 unused private fields.
4864 2006-12-01 Jackson Harper <jackson@ximian.com>
4866 * TextControl.cs: Do not update the view while inserting multiline
4867 text. If we update the view we might wrap lines, before entering
4868 the new lines, which causes the new line insertion calculations to
4870 - Remove an old TODO
4871 - Make debug output a little nicer
4873 2006-12-01 Chris Toshok <toshok@ximian.com>
4875 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
4877 2006-12-01 Chris Toshok <toshok@ximian.com>
4879 [ fix the majority of the CS0108 warnings we've been suppressing ]
4881 * TreeView.cs: mark BackgroundImageChanged as 'new'.
4883 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
4884 to "LayoutToolBar" to quiet mcs.
4886 * TabControl.cs: mark our ControlCollection class as 'new'.
4888 * TextBoxBase.cs: mark some events as 'new'.
4890 * Splitter.cs: TabStop is 'new'.
4892 * ControlBindingsCollection.cs: mark a few methods as new since
4893 they change the visibility from protected to public.
4895 * RadioButton.cs: DoubleClick -> base class, and remove unused
4898 * MonthCalendar.cs: ImeMode property -> base class, and mark many
4901 * NumericUpDown.cs: TextChanged -> base class.
4903 * CheckedListBox.cs: mark our ObjectCollection class as new to
4906 * FolderBrowserDialog.cs: make HelpRequest event new and have it
4907 muck with the base class.
4909 * StatusBar.cs: fix some mcs warnings about Update being the same
4910 name as a base class method.
4912 * RichTextBox.cs: mark some events as new, and make them do things
4913 to the base class impl.
4915 * UserControl.cs: mark TextChanged as new, and have it manipulate
4918 * UpDownBase.cs: mark some things new.
4920 * CheckBox.cs: mark DoubleClick "new", and add some text about
4921 what we need to look at.
4923 * Panel.cs: make the events "new", and manipulate the base
4924 version. these are just here for attributes.
4926 * AccessibleObject.cs: make owner private.
4928 * Control.cs: deal with AccessibleObject.owner being private.
4929 cache our own copy if we need it.
4931 * Button.cs: add "new" to the DoubleClickEvent.
4933 * ListBox.cs: no need to track our own has_focus here. let
4934 Control.has_focus do it for us. Also some other work to clear up
4935 warnings about not overriding base class methods of the same name.
4937 * ComboBox.cs: clear up some warnings about not override base
4938 class methods of the same name.
4940 2006-12-01 Chris Toshok <toshok@ximian.com>
4942 * Form.cs: flag a few things as "new" to quiet some of the mcs
4947 * PrintPreviewDialog.cs: same.
4949 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
4950 now DGV isn't so horrible on the class status page. also, move
4951 all events to using System.ComponentModel.EventHandlerList. my
4954 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
4956 * MdiWindowManager.cs:
4957 - Set form to active mdi child if shown,
4958 and update the active mdi child to the next
4959 remaining child in the z-order if the form is hidden.
4962 - Track if the form has been visible and if its
4963 visibility is beeing changed, so that the MdiClient
4964 can properly decide the ActiveMdiChild. The MdiClient
4965 cannot track this since the form can change visibility
4966 before MdiClient is created.
4969 - Don't activate anything of the parent form is changing
4971 - Rework ActiveMdiChild to only return visible mdi
4972 children and take into account several other corner
4975 2006-12-01 Chris Toshok <toshok@ximian.com>
4977 * IBindableComponent.cs: new 2.0 interface.
4979 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
4981 * DataGrid.cs: Font for caption area is bold by default.
4983 2006-12-01 Everaldo Canuto <everaldo@simios.org>
4985 * Menu.cs: Tag property for 2.0.
4987 2006-11-01 Everaldo Canuto <everaldo@simios.org>
4989 * ThemeWin32Classic.cs: Adjust menu separator drawing.
4991 2006-12-01 Chris Toshok <toshok@ximian.com>
4993 * TreeView.cs: doh, the Begin* events should be
4994 TreeViewCancelEventHandler.
4996 2006-12-01 Chris Toshok <toshok@ximian.com>
4998 * Form.cs: Form.ControlCollection already stores off the
4999 form_owner field. don't access the base class's internal "owner"
5002 * Control.cs: make all the fields in Control.ControlCollection
5003 private. there's no need for any internal fields here.
5005 2006-12-01 Chris Toshok <toshok@ximian.com>
5007 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
5008 OnHandleCreated. Fixes bug #80109.
5010 2006-12-01 Chris Toshok <toshok@ximian.com>
5012 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
5013 SplitContainer.cs, Control.cs, StatusStrip.cs,
5014 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
5015 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
5016 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
5017 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
5018 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
5019 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
5020 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
5021 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
5022 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
5023 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
5025 do most of the work to convert our code over to use
5026 System.ComponentModel.Component.Events for
5027 adding/removing/dispatching events.
5030 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
5032 * DataGridView.cs: Fix an ArgumentNullException reported
5035 2006-11-30 Mike Kestner <mkestner@novell.com>
5037 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
5038 grabbed listbox. Fixes #80036 and #80101.
5040 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
5042 * Message.cs: Changed ToString() to match MS.
5044 2006-11-30 Jackson Harper <jackson@ximian.com>
5046 * TextBoxBase.cs: You can still change the selected text on a read
5048 * TextControl.cs: Lower magic number for wrap calculations. This
5049 lets text get closer to the right (far) edge.
5051 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
5053 * Control.cs: Tweak 2.0 layout properties.
5054 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
5055 * TextRenderer.cs: Add a new overload.
5056 * ToolStrip*: Huge amount of changes and new features.
5058 2006-11-30 Mike Kestner <mkestner@novell.com>
5060 * ComboBox.cs: fixes for LargeChange and Maximum to get the
5061 scroll range correct. Fixes #79994.
5063 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
5065 * MdiWindowManager.cs: Update main form's text when
5066 a form is closed. (fixes #80038)
5068 2006-11-30 Everaldo Canuto <everaldo@simios.org>
5071 - Fix an regression in ButtonSize.
5072 - Get ImeMode default value change to "Disable".
5073 - Get ShowTooltips default value change to true, default value is
5074 "false" but after make a test in .NET we get "true" result as default.
5076 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
5078 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
5080 2006-11-29 Chris Toshok <toshok@ximian.com>
5082 * XplatUIWin32.cs (GetWindowTransparency): check return value of
5083 GetLayeredWindowAttributes. if it's 0, return 1.0, as
5084 SetWindowTransparency hasn't been called.
5086 2006-11-29 Chris Toshok <toshok@ximian.com>
5088 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
5090 (set_AllowTransparency): reorder things a little so that the
5091 WS_EX_LAYERED style is removed properly.
5093 2006-11-29 Chris Toshok <toshok@ximian.com>
5095 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
5097 * Form.cs: only call the XplatUI transparency method (get/set) if
5098 SupportsTransparency says it's supported. Otherwise fallback to
5099 doing nothing (in the set case) or returning the instance field we
5100 cache (in the get case).
5102 * XplatUIStructs.cs: add TransparencySupport flag enum.
5104 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
5105 change to SupportsTransparency.
5107 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
5108 TransparencySupport.None from SupportsTransparency.
5110 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
5111 TransparencySupport.Set from SupportsTransparency.
5113 * XplatUIWin32.cs: implement GetWindowTransparency calling
5114 GetLayeredWindowAttributes, and implement SupportsTransparency by
5115 checking whether or not both
5116 GetWindowTransparency/SetWindowTransparency are available
5117 entrypoints. We need to do this since SetWindowTransparency is
5118 available as of win2k, but GetWindowTransparency requires winxp.
5121 * XplatUI.cs: Add GetWindowTransparency, and change
5122 SupportsTransparency to allow for either/both Get/Set.
5124 2006-11-29 Chris Toshok <toshok@ximian.com>
5126 * DataGrid.cs: keep from going into an infinite loop redrawing a
5127 datagrid that has no datasource. Fixes bug #80033.
5129 2006-11-29 Chris Toshok <toshok@ximian.com>
5131 * MenuItem.cs: fix the NRE when we assign text (and therefore call
5132 Invalidate) before the mainmenu has been assigned to a control.
5134 2006-11-29 Chris Toshok <toshok@ximian.com>
5136 * DataGrid.cs: detect when we should be double the double click
5137 row/column autosize stuff, although that codepath has yet to be
5138 written. part of the work for bug #79891.
5140 2006-11-29 Chris Toshok <toshok@ximian.com>
5142 * Binding.cs (SetControl): fix unit test.
5144 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5146 * PageSetupDialog.cs: Validate the margins and set them in
5148 * NumericTextBox.cs: New class to mimic the behavior of the
5149 textboxes used in the printing dialogs.
5151 2006-11-29 Andreia Gaita <avidigal@novell.com>
5153 * Form.cs: Revert previous change (remove call UpdateBounds
5154 from form constructor), because it messes with the handle creation
5155 order, and that one needs lots and lots of love.
5156 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
5157 for valid printer and throw InvalidPrinterException if document
5158 is set but printer not valid), adding a MonoTODO. Once
5159 handle creation is done properly, we can put this back in.
5161 2006-11-28 Everaldo Canuto <everaldo@simios.org>
5163 * MenuItem.cs: Create a invalidate method for menu item, to be
5164 calling from set text, it make text changes to imadiate update
5165 on screen. Fixes #80013.
5167 2006-11-28 Everaldo Canuto <everaldo@simios.org>
5169 * ToolBar.cs: Fixes and simplify toolbar button layout, it
5170 fixes bug #80070 and some other problem on toolbar buttons
5173 2006-11-28 Everaldo Canuto <everaldo@simios.org>
5175 * ThemeWin32Classic.cs: Paint toolbar toggle button background
5176 with dotted brush. Fixes #79564
5178 2006-11-28 Andreia Gaita <avidigal@novell.com>
5180 * Form.cs: Removed call to UpdateBounds on Form
5181 constructor, it was causing a call to CreateHandle
5182 before it was supposed to.
5183 * PrintControllerWithStatusDialog: Applied patch
5184 by Chris Toshok to hide controller when there are
5185 no printers available.
5186 PrintDialog.cs: initialize printer settings to
5187 null - correct DefaultValues test #5
5188 * PrintPreviewControl.cs: Move PrintController
5189 initialization to GeneratePreview
5190 * PrintPreviewDialog.cs:
5191 - Remove Preview generation from Document_set(). It is
5193 - Throw InvalidPrinterException on CreateHandle if
5194 a Document is set but there are no printers or
5195 printer is not valid.
5196 * ThemeWin32Classic: don't paint PrintPreviewControl
5197 if there is nothing to paint
5199 2006-11-28 Miguel de Icaza <miguel@novell.com>
5201 * Form.cs: Add another popular method.
5203 * TabPage.cs: ditto.
5205 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5207 * MenuItem.cs: Fixed a warning.
5208 * InternalWindowManager: Fixed a warning.
5210 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5213 - When cloning a menu also clone MdiList and clone the
5214 window menu items properly (as the forms and menuitems
5215 are kept in an internal hashtable, these need updating
5217 - Rewrote the window menu code, menu items are added in the
5218 order the forms were added to their parent, and they are
5219 updated every time the window menu is shown (before the
5220 list was only generated once, in the current order of the
5221 forms, and would never be updated). A checkmark is shown
5222 next to the item corresponding to the active mdi child.
5224 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5226 * XplatUIStructs.cs:
5227 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
5230 - Added TME_NONCLIENT to TMEFlags.
5231 - Handles WM_NCMOUSEMOVE in GetMessage to
5232 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
5235 - Now merges mdi child menu to parent menu when maximized.
5236 - Recalculate NC areas of both mdi child and mdi parent.
5238 on window state and size changes.Fixes #79844 (3).
5239 - Handle WM_NCCALCSIZE to properly calculate borders.
5242 - Add/remove to the mdi containers list of mdi children
5243 in the order they are added.
5244 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
5245 to the maximized mdi child.
5247 * InternalWindowManager.cs:
5248 - Only execute a click on the control buttons on the mouse up,
5249 not on the mouse down. Show the state of the button
5250 (was only showing Normal state, never Pressed state). The
5251 pressed button now follows the mouse (if you click the Close
5252 button and move the mouse over the Maximize button, the
5253 Maximize button will be shown as pressed). Since Win32 does
5254 not generate WM_NCLBUTTONUP if you release the button outside
5255 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
5258 * ThemeWin32Classic.cs:
5259 - Draw a missing border around mdi child forms. Fixes #79844 (2).
5262 - Added a list of forms which contains the order the forms are
5263 added to the mdi parent.
5264 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
5265 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
5266 - If the active form changes set the scrollbars to the top
5267 of the Z order, otherwise the form could hide them.
5268 - Scrollbars are now sized according to ClientSize, not
5269 to Size, and they take into account the other scrollbar
5270 to determine maximum.
5272 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5279 - Added RequestAdditionalWM_NCMessages for windows to
5280 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
5281 Currently only implemented in XplatUIWin32.
5283 2006-11-27 Chris Toshok <toshok@ximian.com>
5285 * Hwnd.cs: only add the hwnd to the windows hash in
5286 set_WholeWindow and set_ClientWindow if whole_window/client_window
5287 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
5289 2006-11-27 Mike Kestner <mkestner@novell.com>
5291 * ComboBox.cs: remove redundant OnDropDown call. It is called
5292 from the ComboListBox.ShowWindow code. Fixes #79969.
5294 2006-11-27 Chris Toshok <toshok@ximian.com>
5296 * Hwnd.cs: remove the setters for ExposePending and
5297 NCExposePending - noone uses them.
5299 2006-11-27 Jackson Harper <jackson@ximian.com>
5301 * TextControl.cs: new param for ReplaceSelection which determines
5302 whether we select the new selection, or set the cursor to the end
5303 of the new selection.
5304 * TextBoxBase.cs: Use new param for ReplaceSelection. When
5305 pasting, select the new text.
5306 * RichTextBox.cs: Use new param for ReplaceSelection.
5308 2006-11-27 Jackson Harper <jackson@ximian.com>
5310 * TextBoxBase.cs: Set the selection to the caret after the caret
5311 is moved, otherwise they get out of sync.
5313 2006-11-26 Everaldo Canuto <everaldo@simios.org>
5315 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
5318 2006-11-26 Everaldo Canuto <everaldo@simios.org>
5320 * ThemeWin32Classic.cs:
5321 - Fix toolbar drop down arrow position.
5322 - Fix drop down appearance when ToolBar.Appearance is normal,
5325 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
5327 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
5329 * UpDownBase.cs: Same.
5330 * ButtonBase.cs: Same.
5331 * ScrollBar.cs: Same.
5332 * TrackBar.cs: Same.
5333 * PictureBox.cs: Same.
5334 * UserControl.cs: Same.
5336 * ListControl.cs: Same.
5337 * TextBoxBase.cs: Same.
5338 * ListView.cs: Same.
5339 * RichTextBox.cs: Same.
5340 * TreeView.cs: Same.
5342 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
5345 - Text label for where
5346 - Text label comment was not shown
5348 2006-11-23 Everaldo Canuto <everaldo@simios.org>
5350 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
5352 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5354 * InternalWindowManager.cs:
5355 - Handle WM_PARENTNOTIFY to activate the form
5356 if any child control is clicked.
5357 - The form is only sizable if not minimized.
5359 * MdiWindowManager.cs:
5360 - Save the IconicBounds if the form is moved.
5361 - Rework SetWindowState, now the window bounds
5362 are stored only if the old window state is Normal.
5365 - In SetWindowStates store the old window state if
5366 the window is maximized and restore window state if
5367 the window looses focus.
5368 - Don't handle any scrollbar value changes if
5369 initializing the scroll bars. Fixes #79771.
5370 - Reworked ArrangeIconicWindows. Current algorithm
5371 tests bounds agains all other minimized windows, if
5372 any intersections create new bounds (going left to
5373 right, bottom to top) and then test again. When
5374 successful the bounds are saved and never computed
5375 again. Fixes #79774.
5377 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5379 * InternalWindowManager.cs: Added HandleTitleBarUp.
5381 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
5383 * NumericUpDown.cs: In .NET 1.1, user entered text is still
5384 hexadecimal in ParseUserEdit.
5387 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5389 * MdiWindowManager.cs:
5390 - Handle a click on the form's icon to show the
5391 system menu (when maximized). Fixes #79775.
5392 - Change the existing click handler for the form's
5393 icon when not maximized to show on MouseUp.
5396 * Form.cs: In OnResize only layout the mdi child's
5397 parent if it actually has a parent. Might not if
5398 the window is closing.
5401 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
5403 * MdiClient.cs: Ignore active MDI client for text of parent, if
5404 child has no text set.
5406 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
5408 * ToolBar.cs: Fixed ToString to match MS.
5410 2006-11-22 Andreia Gaita <avidigal@novell.com>
5413 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
5414 update inner values on set. Fixes #79966.
5415 - Override OnLostFocus to update value on NET 2. Fixes #79950.
5416 - Fix hexadecimal parsing.
5418 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
5419 parent. Fixes #79957
5421 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
5423 * Control.cs: After calling SetWindowsPos in SetBoundsCore
5424 the actual size has to be queried, since if height /
5425 width is negative Win32 changes it to 0.
5426 Fixes #79999 on Windows.
5428 * XplatUIX11.cs: Set height / width to 0 if negative
5429 in SetWindowPos. Fixes #79999 on Linux.
5431 2006-11-22 Everaldo Canuto <everaldo@simios.org>
5433 * ThemeWin32Classic.cs: Fix text redenring when button is
5436 2006-11-22 Everaldo Canuto <everaldo@simios.org>
5438 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
5439 and later navigate by mouse. Fixes #79528.
5441 2006-11-21 Everaldo Canuto <everaldo@simios.org>
5443 * ToolBar.cs: Set default value for TabStop to false in
5444 constructor, it fixes remaining behavior of bug #79863.
5446 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5448 * MdiWindowManager.cs:
5449 * InternalWindowManager.cs:
5450 - Moved a few methods specific to Mdi from
5451 InternalWindowManager to MdiWindowManager.
5454 2006-11-21 Chris Toshok <toshok@ximian.com>
5456 * XplatUIOSX.cs: stub out InvalidateNC.
5458 * XplatUIWin32.cs: implement InvalidateNC using the call I found
5459 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
5461 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
5463 * XplatUIDriver.cs: add InvalidateNC abstract method.
5465 * XplatUI.cs: add InvalidateNC.
5467 2006-11-21 Everaldo Canuto <everaldo@simios.org>
5469 * ToolBar.cs: Invalidate complete button area when pressed status
5471 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
5472 * ThemeWin32Classic.cs: Increase vertical and horizontal position
5473 by 1 when button is pressed.
5475 2006-11-20 Everaldo Canuto <everaldo@simios.org>
5477 * ToolButton.cs: Invalidate middle of DropDown button when
5478 ToolBar theres DropDownArrows.
5479 * ThemeWin32Classic.cs: Change position of DropDown arrow and
5480 fix DropDown drawing operations.
5482 2006-11-20 Chris Toshok <toshok@ximian.com>
5484 * NativeWindow.cs: fix the formatting of functions ('{' on the
5485 following line), and enable the thread exception dialog.
5487 * Application.cs: remove the duplicate exception catching from
5490 2006-11-20 Everaldo Canuto <everaldo@simios.org>
5492 * Toolbar.cs: Triggers button click event when click on icon
5493 of dropdown ToolBarButton. Fixes #79912.
5495 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5498 * ThemeWin32Classic.cs:
5499 - Added a property WindowBorderFont to enable themeing
5500 of mdi child windows' Text.
5502 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5504 * InternalWindowManager.cs:
5507 * MdiWindowManager.cs:
5508 - If mdi child is maximized, set mdi parent's
5509 text to "Parent - [Child]". Fixes #79770.
5510 - If there is any maximized mdi child windows, only the active
5511 window (and any new windows) is maximized, the rest are normal.
5512 - On a WindowState change only save mdi child's window bounds
5513 if the old window state was normal. Fixes #79774.
5514 - The scroll bars are now calculated on hopefully all
5515 necessary events. Fixed #79771 / #79844->6 / #79906.
5516 - MdiClient.SizeScrollBars() now takes into account docked
5517 controls in the parent when calculating available space.
5518 - InternalWindowManager now always repaints the entire title
5519 area. Fixes #79844->1/4/5.
5520 - Added RequestNCRecalc on mdi child windowstate changes.
5523 2006-11-20 Mike Kestner <mkestner@novell.com>
5525 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
5526 in the MouseUp handler of the listbox and move the return handling
5527 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
5529 2006-11-20 Everaldo Canuto <everaldo@simios.org>
5531 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
5533 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
5535 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
5536 working in 1.2.x anymore. So, updated.
5538 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
5540 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
5541 NumberGroupSeparator of current culture instead of assuming en-US.
5544 2006-11-17 Mike Kestner <mkestner@novell.com>
5546 * Control.cs: Add the concept of implicit bounds setting so that
5547 dock/undock round trips preserve explicitly set size/locations.
5550 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
5552 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
5553 can't handle those filters. (Fixes bug #79961)
5555 2006-11-17 Chris Toshok <toshok@ximian.com>
5557 [ fixes the exit/crashes associated with #79835. it's clearly
5558 suboptimal though, we need to figure out a better way to solve
5561 * PrintPreviewControl.cs: deal with the new invalid printer
5564 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
5565 and return false (so CommonDialog.ShowDialog doesn't actually show
5568 * PrintDialog.cs: enable/disable the Ok button depending on
5569 whether or not the printer is valid.
5571 * CommonDialog.cs (ShowDialog): only actually show the form if
5572 RunDialog returns true.
5574 2006-11-17 Jackson Harper <jackson@ximian.com>
5576 * TextControl.cs: When soft splitting a line, mark it as a soft
5577 split line. Also carry over the current line break to the next
5580 2006-11-17 Chris Toshok <toshok@ximian.com>
5582 * XplatUIX11.cs: when scrolling a window with an invalid area, we
5583 only want to shift the part of the invalid area that overlaps the
5584 area we're scrolling. we also don't want to clear the invalid
5585 area unless the invalid area was entirely contained within the
5588 2006-11-16 Chris Toshok <toshok@ximian.com>
5590 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
5591 also make sure to free the memory returned by XGetWindowProperty
5594 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
5596 2006-11-16 Chris Toshok <toshok@ximian.com>
5598 * XplatUI.cs: add a new super secret way to get at the totally
5599 unsupported X11 backend.
5601 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
5603 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
5605 2006-11-16 Jackson Harper <jackson@ximian.com>
5607 * TreeView.cs: Allow more explicit setting of top node position
5608 for scrollbars. Slower algo, but more accurate.
5609 - CollapseAll should maintain the current top node.
5610 * TextBoxBase.cs: When positioning the caret, use the line, pos
5611 method, since the x, y method does not grab the correct tag, and
5612 the caret height never gets set correctly. (Maybe I should just do
5613 away with the caret having its own height, and always use the
5614 carets current tag for height).
5616 2006-11-16 Jonathan Pobst <monkey@jpobst.com
5618 [Fixes 79778, 79923]
5620 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
5621 Parent to the FosterParent instead.
5623 2006-11-16 Jackson Harper <jackson@ximian.com>
5625 * TreeView.cs: Need to recalc the topnode when we expand or
5626 collapse. The scrolling methods can't handle this on their own,
5627 since they use differences between the last scroll position, and
5628 those difference get completely messed up since we are expanding
5629 nodes. This problem should probably be fixed in the scrolling
5630 methods, so they can figure out exactly where they are, but this
5631 will slow things down a little.
5632 * ThemeWin32Classic.cs: Special case for groupboxes with empty
5633 strings, makes nunit-gui look a lot nicer.
5635 2006-11-16 Chris Toshok <toshok@ximian.com>
5637 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
5638 the broken multithreaded event handling we have in here. File
5639 this entry under "Why we should move to the new X11 backend".
5641 Any thread can make it into UpdateMessageQueue, which gets events
5642 from the X socket - some of which could belong to hwnds being
5643 managed by a different thread. We can also have multiple threads
5644 in UpdateMessageQueue at the same time, with each one reading from
5645 the X socket. This leads to many problems, with the following
5648 We can't use hwnd.Queue.Enqueue anywhere in here and must use
5651 The MotionNotify compression we do can't work across threads
5652 (without locking the entire queue, perhaps) since we call
5653 hwnd.Queue.Peek, so we just punt and don't compress motion events
5654 unless the owning thread is the one which got the X event.
5656 ConfigureNotify is another fun one, since it modifies the hwnd's
5657 bounds and then enqueues the event. We add a lock to Hwnd which
5658 is held when setting configure_pending to true (and enqueuing the
5661 There is a race wrt the wake socket. we need to make sure that
5662 only 1 thread is waiting on that socket, or else a thread could
5663 sleep waiting for data that never comes. It's difficult (but not
5664 impossible) to make happen, because it seems to require something
5667 1. Thread 1 polls on wake_receive
5669 2. poll returns saying there's data to be read on
5672 3. Thread 2 polls on wake_receive and immediately returns
5673 saying there's data to be read.
5675 4. Thread 2 reads the wakeup byte from wake_receive
5677 5. Thread 1 attempts to read the wakeup byte from
5680 6. Thread 2 exits (due to a form closing, perhaps).
5682 7. Thread 1 blocks forever.
5686 Fixing the Expose handling isn't done yet, and the races inherent
5687 in that piece of code are responsible for the drawing mistakes you
5688 see when generating expose events in a MT app (like NPlot). This
5689 one is the likely to be the hardest to bandaid, and it doesn't
5690 appear to cause anything but drawing problems. The other issues
5691 caused apps to exit or hang.
5693 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
5694 called from a different thread than the one that should be calling
5697 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
5699 2006-11-15 Chris Toshok <toshok@ximian.com>
5701 * Application.cs: null out the context's MainForm when we exit
5702 RunLoop. Fixes a newly checked in unit test as well as the last
5703 ODE from bug #79933.
5705 2006-11-15 Chris Toshok <toshok@ximian.com>
5707 * Form.cs (set_Owner): allow a null value so we can clear the
5709 (Dispose): set all our owned_form's Owner properties to null, and
5710 clear the owned_forms collection.
5711 (WM_CLOSE): clean up this a little bit.. still not right though.
5713 * ApplicationContext.cs: OnMainFormClosed should only call
5714 ExitThreadCore if the main form isn't recreating. Fixes unit
5717 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
5721 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
5723 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
5727 * Hwnd.cs: Add a flag to show a window, but not activate it, to
5728 keep popup window types from stealing focus from the main form
5731 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
5733 * MenuAPI.cs: Set above flag to true.
5735 2006-11-15 Chris Toshok <toshok@ximian.com>
5737 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
5738 the button being released is not in wParam.
5740 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
5742 * Form.cs: Add the released button to MouseEventArgs.Button
5743 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
5746 2006-11-15 Chris Toshok <toshok@ximian.com>
5748 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
5749 GetText(). untested because it's unused in our implementation.
5750 Control.Text always caches the text, even if
5751 ControlStyles.CacheText is not set.
5755 2006-11-15 Chris Toshok <toshok@ximian.com>
5759 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
5760 message. no hiding, no disposing.
5762 in the WM_CLOSE handler, hide the form if it's modal.
5764 2006-11-15 Chris Toshok <toshok@ximian.com>
5766 * XplatUIX11.cs: use AddExpose instead of sending a message.
5767 fixes textbox border drawing.
5769 2006-11-15 Chris Toshok <toshok@ximian.com>
5771 * PropertyGridView.cs: keep from crashing on mouse move/down when
5772 the property grid is empty.
5774 2006-11-14 Jackson Harper <jackson@ximian.com>
5776 * TextControl.cs: Make PageUp and PageDown more like the MS
5778 * TextBoxBase.cs: When we set the text property position the
5779 cursor at the beginning of the document.
5781 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
5783 * Form.cs: if a mdi child's WindowState has changed
5784 before it's creation, it would display wrong control
5787 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
5789 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
5792 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
5794 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
5795 the window gets to paint its borders even if the window is
5798 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
5799 otherwise the old control buttons would still be painted
5800 if the window gets bigger.
5802 * PaintEventArgs.cs: add an internal method so that the clip
5803 rectangle can be changed.
5805 2006-11-13 Chris Toshok <toshok@ximian.com>
5807 [ fixes bug #79745 ]
5809 * NotifyIcon.cs: lots of cleanup.
5811 * X11Structs.cs: add an enum for XEMBED messages.
5813 * XplatUIX11.cs: reindent one of the giant switch statements, it
5814 was taking up an additional tab stop, and this file is already way
5815 too wide for my laptop's screen.
5817 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
5818 we get it, resize the hwnd to the WMNormalHints max_width/height.
5820 2006-11-13 Jackson Harper <jackson@ximian.com>
5822 * TextBoxBase.cs: Compute the value changes for the mouse wheel
5825 2006-11-13 Chris Toshok <toshok@ximian.com>
5827 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
5828 #79898. force a reference to the Region to stick around so the
5829 unmanaged object isn't collected (rendering our handle in the MSG
5832 2006-11-13 Chris Toshok <toshok@ximian.com>
5834 * XplatUIX11.cs: fix #79917 for window managers which support
5836 using XStoreName on the raw utf8, and we need to convert to
5837 COMPOUND_TEXT if it's non-latin1.
5839 2006-11-13 Chris Toshok <toshok@ximian.com>
5841 * Form.cs (set_DialogResult): we need to set closing to false if
5842 we're setting our result to None. fixes bug #79908.
5844 2006-11-13 Jackson Harper <jackson@ximian.com>
5846 * TextControl.cs: When formatting text, compute the adjusted tag
5847 lengths correctly, using FindTag for the end tag instead of trying
5848 to figure it out outselves.
5849 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
5850 the item, ItemHeight doesn't work, because trees with large
5851 imagelists use those for their height
5852 * TreeView.cs: ActualItemHeight factors in the image height
5853 - compute left edge of checkboxes correctly
5854 - when expanding/collapsing move the bottom down one pixel, so we
5855 aren't moving part of the node
5857 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
5859 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
5860 stack in PaintEventStart so that it won't get disposed by the gc
5861 before reaching PaintEventEnd.
5863 2006-11-13 Jackson Harper <jackson@ximian.com>
5865 * TextBoxBase.cs: Don't select the word if we are on a line with
5867 - We don't need to position the caret on mouse up, since the mouse
5868 move handler should be doing this
5869 - When double clicking a blank line, the caret is advanced to the
5872 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
5874 * TreeNodeCollection.cs: Avoid duplicating indexer code.
5876 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
5878 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
5879 Fixes part of bug #79910.
5881 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
5883 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
5884 (bug #79903). Some minor string updates to match ms.
5886 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
5888 * FileDialog.cs: Don't add an extension if the filename
5889 already ends with that extension.
5891 2006-11-10 Jackson Harper <jackson@ximian.com>
5893 * TreeView.cs: Use the currently highlighted node for the
5895 * TextBoxBase.cs: There is no need to expand selection on
5897 - CanUndo means 'is there any undo operations', not 'is undo
5898 allowed on this textcontrol. Fixed ClearUndo unit test.
5900 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
5902 * Button.cs: only perform click when button is Selectable (so as
5903 not to activate default buttons when they're disabled)
5905 * Control.cs: Rewrite of the SelectNextControl and related
5906 methods. HandleClick now selects next control if the current one
5909 * Form.cs: OnActivated selects next active control only if Load
5910 has already occurred. If Load hasn't run, there's no point in
5911 selecting here, Load might change the state of controls.
5913 * FocusTest.cs: Tests marked as working again for these fixes
5915 2006-11-10 Chris Toshok <toshok@ximian.com>
5917 * XplatUIX11.cs: a couple of fixes.
5919 - use XInternAtoms with almost all the atoms we need to register,
5920 instead of many, many calls to XInternAtom. should help a bit on
5921 startup time, at the expense of making the code look a little
5924 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
5925 isn't reparented (which seems to be a clue that we're running fon
5926 compiz) and they have an Owner form. This fixes the tool windows
5927 in paint.net when running under compiz.
5929 - when setting the opacity of a window, support both the case
5930 where the window has been reparented and also when it hasn't been.
5931 Since compiz/beryl doesn't seem to reparent windows, and these are
5932 the only window managers which support translucency, I'm not sure
5933 why we need the hwnd.reparented case at all.. but leave it in.
5934 now we get translucent windows in paint.net under compiz/beryl.
5936 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
5938 * FileDialog.cs: Always return the value for FilterIndex that
5939 was set. Internally convert it to values that make sense.
5941 2006-11-10 Everaldo Canuto <everaldo@simios.org>
5943 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
5945 2006-11-10 Everaldo Canuto <everaldo@simios.org>
5947 * Toolbar.cs: Change default value of DropDownArrows to true, the
5948 signature still using false to make it compatible with MS but the
5949 initial value is true. Fixes #79855.
5951 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
5953 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
5954 only available on Linux.
5956 2006-11-09 Everaldo Canuto <everaldo@simios.org>
5958 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
5959 reduce number of calls to redraw method during toolbar creation.
5961 2006-11-09 Mike Kestner <mkestner@novell.com>
5963 * ListView.cs : raise SelectedIndexChanged when an item is selected
5964 programmatically via the Item.Selected property. Gert's nice
5965 ListViewSelectedIndexChanged test fixture now runs clean.
5967 2006-11-09 Mike Kestner <mkestner@novell.com>
5969 * ListView.cs : raise SelectedIndexChanged when a selected item is
5970 removed from the item collection using Remove or RemoveAt.
5972 2006-11-09 Mike Kestner <mkestner@novell.com>
5974 * ListView.cs : raise SelectedIndexChanged once per selected item
5975 for compat with MS. Fixes #79849+.
5977 2006-11-09 Chris Toshok <toshok@ximian.com>
5979 * TabControl.cs: initialize row_count to 0, and set it to 1 when
5980 we need to (if we have any tab pages). Fixes unit test.
5982 2006-11-09 Chris Toshok <toshok@ximian.com>
5984 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
5985 width is 0, not 3. Fixes a unit test.
5987 2006-11-09 Mike Kestner <mkestner@novell.com>
5989 * ListView.cs : use Implicit scrollbars so that focus isn't
5990 stolen from the listview when they are clicked. Fixes #79850.
5992 2006-11-09 Chris Toshok <toshok@ximian.com>
5994 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
5995 have a root item. Fixes #79879.
5997 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
6001 - An ArgumentException is now thrown if a wrong filter
6002 is applied (matches ms). The previous filter doesn't change
6003 anymore if an exception is thrown.
6004 - Changing the FileName property also affects FileNames
6005 * ColorDialog.cs: The length of the CustomColors array is always
6006 16. It doesn't matter if we use a smaller array or null to update
6007 or change the custom colors property.
6008 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
6009 for RootFolder if we get a undefined value.
6011 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6013 * StatusBarPanel.cs:
6014 - Width is set to MinWidth if Width is smaller than
6015 MinWidth. Fixes #79842.
6016 - MinWidth now always overrides Width (MSDN says MinWidth
6017 is set to Width when AutoSize = None, but they do not
6019 - Style has now the the correct default value.
6021 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6024 - The control is completely invalidated on
6025 Got/LostFocus to draw the focus rectangle correctly.
6026 - When AutoSize then height is always 45 (width for
6029 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
6030 on the mouse when moved and it doesn't move when grabbed
6031 until the mouse moves as well. Also fixed some wrong
6032 calculations when clicking on the thumb (control thought
6033 click was outside of thumb and didn't grab it).
6034 Fixes some of the issues in #79718.
6036 2006-11-08 Everaldo Canuto <everaldo@simios.org>
6038 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
6040 2006-11-08 Chris Toshok <toshok@ximian.com>
6042 * PropertyGridView.cs: only call ToggleValue if the item is not
6045 2006-11-08 Jackson Harper <jackson@ximian.com>
6047 * TextBoxBase.cs: The RichTextBox and textbox have very different
6048 word selection methods. Implement the textbox's simple word
6049 selection here, and let the RichTextBox override and provide it's
6051 - Don't do extra selection on mouseup
6052 * RichTextBox.cs: Use the documents word selection algorithm, I
6053 think ideally, this function will be pulled into the
6054 RichTextBox.cs code someday.
6056 2006-11-08 Chris Toshok <toshok@ximian.com>
6058 * RootGridEntry.cs: new class to represent GridItemType.Root.
6060 * CategoryGridEntry.cs: reformat, and add boilerplate.
6062 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
6063 returns the UI parent anyway, and we need special handling to
6064 implement the GetTarget method in the face of it. Also, implement
6067 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
6068 a root grid item, and use that instead of PropertyGrid.grid_items.
6069 Also, make use of TypeConverters (and add limitted support for
6070 ICustomTypeDescriptors) when initially populating the grid.
6071 Arrays now show up more or less properly.
6073 2006-11-08 Chris Toshok <toshok@ximian.com>
6075 * Application.cs: set the modal dialog to non modal after we close
6076 it. Fixes bug #79866.
6078 2006-11-08 Jackson Harper <jackson@ximian.com>
6080 * TextControl.cs: When combining lines carry over the line end
6081 style from the end line.
6082 - Invalidate the selected area when setting it, if it is visible.
6083 * TextBoxBase.cs: Only rich text box can do full line selects.
6084 - Make sure to set the cursor position when there is a click,
6085 otherwise two clicks in separate areas could cause a large chunk
6088 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6090 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
6093 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6095 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
6096 time. Remove tooltips when ToolButton click events. Fixes #79856.
6098 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6100 * MenuAPI.cs: Ignore right click for menu actions and fixes
6101 menu border when clicked. Fixes #79846.
6103 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6105 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
6106 MouseState after create wParam for message, this fixes mouse button
6107 equal none in mouse up events.
6109 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
6111 * Control.cs : Focus() now calls Select to set the Container's
6112 Active Control and to give it focus. To avoid infinite recursion
6113 (because ActiveControl also calls Focus at one point), a check
6114 is made in Focus with the help of a new internal variable
6117 2006-11-07 Mike Kestner <mkestner@novell.com>
6119 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
6120 if there's a selection. Fixes #79849.
6122 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
6124 * PropertyGrid.cs: Avoid fixed height of help description label.
6125 Fixes part of bug #79829.
6127 2006-11-07 Chris Toshok <toshok@ximian.com>
6129 * XplatUIX11.cs: fix #79790 again, by using the
6130 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
6132 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6134 * ToolBar.cs: Fix left click checking.
6136 2006-11-07 Chris Toshok <toshok@ximian.com>
6138 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
6140 2006-11-07 Chris Toshok <toshok@ximian.com>
6142 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
6143 PropertyManager unit tests.
6145 * PropertyManager.cs: make property_name internal.
6147 2006-11-07 Chris Toshok <toshok@ximian.com>
6149 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
6150 pass a unit test. Also, don't set image_index to anything in
6151 response to setting the ImageList property.
6153 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6155 * ToolBar.cs: Ignore click events when mouse button is not a
6156 left button, only accepts other button for dropdown menus.
6159 2006-11-07 Chris Toshok <toshok@ximian.com>
6161 * DataGrid.cs: make the back and parent row buttons a little less
6164 2006-11-07 Jackson Harper <jackson@ximian.com>
6166 * TextBoxBase.cs: When converting to Text don't put line breaks in
6167 for soft line breaks.
6168 * TextControl.cs: There is an initial "fake" line in the document,
6169 this is now a soft break line, so that an extra line feed doesn't
6170 get added to the end of documents.
6172 2006-11-07 Chris Toshok <toshok@ximian.com>
6176 * CurrencyManager.cs: if the list is readonly, don't bother
6177 checking if IBindingList.AllowNew is true.
6179 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
6180 for non-DataRowView datasources.. or rather, make it not crash.
6181 (DataGridPaintRelationRow): make sure we limit the row painting to
6182 the area not covered by the row header, and make our cell width at
6183 least large enough to cover the relation area. This allows grids
6184 that have relations but no rows to render correctly.
6185 (DataGridPaintRowContents): same type of changes here.
6186 (SetDataSource): move back to always calling
6187 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
6188 navigating back through relations.
6189 (HitTest): handle the case where we have no cells but have
6190 relations. Right now we generate a hit in cell 0 of whatever the
6191 row is, not sure if this is strictly correct, but it works for our
6194 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
6195 bother doing anything.
6197 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
6199 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
6200 early version of StatusStrip. Not responsible for eaten
6201 application or firstborn children.
6203 2006-11-06 Chris Toshok <toshok@ximian.com>
6205 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
6206 call GetTabRect with a -1 index. Fixes #79847.
6208 2006-11-06 Jackson Harper <jackson@ximian.com>
6210 * TreeNodeCollection.cs: Update scrollbars after clearing.
6212 2006-11-06 Chris Toshok <toshok@ximian.com>
6214 * NumericUpDown.cs: fix the ToString method for some unit test
6217 2006-11-06 Chris Toshok <toshok@ximian.com>
6220 - set the initial SelectedGridItem if we can.
6222 - Exclude non-mergable properties only if we're merging > 1
6223 object. Merging 1 object isn't really merging, obviously.
6225 - Handle PropertySort.NoSort just like Alphabetical, which is
6226 wrong of course, but at least gets things on the screen.
6228 * PropertyGridView.cs:
6229 - Add method "FindFirstItem" which finds the first property grid
6230 item, so we can select it by default.
6232 - make use of GridEntry.CanResetValue.
6234 - Don't call RedrawBelowItemOnExpansion here anymore, the
6235 individual GridEntry's will do that.
6237 - Remove the ITypeDescriptorContextImpl internal class.
6240 - this class needs to implement ITypeDescriptorContext, as it's
6241 what MS's PropertyDescriptorGridEntry does, which means we can
6242 remove the ITypeDescriptorContextImpl internal class from
6243 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
6245 - keep a reference to our PropertyGridView, and move the call to
6246 RedrawBelowItemOnExpansion here from PGV. This means
6247 programmaticly setting Expanded actually does something visible.
6249 - add a CanResetValue() function which takes into account our
6250 possibly multiple "selected_objects" in the merged case. Shifting
6251 PropertyGridView to use this method fixes another unreported
6252 crasher found running the test for #79829.
6254 - when Top or Bounds is updated, make sure the PropertyGridTextBox
6255 is updated to reflect this.
6257 * CategoryGridEntry.cs: the ctor takes the PGV now.
6259 2006-11-06 Jackson Harper <jackson@ximian.com>
6261 * TextControl.cs: These are 1 based.
6262 * TextBoxBase.cs: When setting the selected text, don't change the
6263 selected text tags, this is done by ReplaceText, just position the
6264 cursor at the end of the new text.
6266 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
6268 * ListView.cs: Allow label edit only when, when LabelEdit is
6271 2006-11-06 Jackson Harper <jackson@ximian.com>
6273 * TextControl.cs: If a suitable wrapping position isn't found,
6274 just wrap right in the middle of a word.
6276 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
6278 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
6281 2006-11-06 Jackson Harper <jackson@ximian.com>
6283 * TreeView.cs: Can't use the VisibleCount property when setting
6284 scrollbar heights, because this doesn't take into account whether
6285 or not the horz scrollbar just came visible.
6287 2006-11-05 Everaldo Canuto <everaldo@simios.org>
6289 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
6290 activated. Fixes #79369, #79832.
6292 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
6294 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
6295 had to remove support for links that point to a directory. FileInfo
6296 returns no usefull information (means, the directory they point to)
6297 for such links. Replaced some empty string ("") with String.Empty.
6299 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6301 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
6302 NullReferenceException when attempting to remove node that is not in
6303 collection. Throw NullReferenceException when null is passed to
6304 Remove. Allow first element of the collection to be removed. Fixes
6305 bug #79831. In GetEnumerator ().Current return null if positioned
6306 before the first element of the collection. In GetEnumerator ().Reset,
6307 position before first element of the collection.
6309 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6311 * PropertyGrid.cs: To match MS, remove default title and description
6312 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
6315 2006-11-04 Chris Toshok <toshok@ximian.com>
6317 * Theme.cs: add a Clamp method, just for kicks.
6319 * ThemeWin32Classic.cs: clamp all color components to [0..255].
6321 2006-11-04 Chris Toshok <toshok@ximian.com>
6323 * Form.cs: if the form isn't visible, Close() does nothing.
6325 2006-11-03 Chris Toshok <toshok@ximian.com>
6327 * Form.cs (Close): if the form is modal, don't Dispose of it, only
6329 (WndProc): don't Dispose after handling the WM_CLOSE message.
6331 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
6332 them as such, instead of using casts from Control to Form. Also,
6333 don't Dispose of the modal dialog when we fall out of the loop -
6338 2006-11-03 Chris Toshok <toshok@ximian.com>
6340 * Control.cs (Dispose): only go through the dispose thing if we're
6341 @disposing, and we haven't already been disposed. Fixes bug
6344 * Form.cs: no reason to call "base.Dispose()" here instead of
6347 2006-11-03 Mike Kestner <mkestner@novell.com>
6349 * ComboBox.cs : use ToString instead of casts in AddItem for
6350 sorting functionality. Fixes #79812.
6352 2006-11-03 Chris Toshok <toshok@ximian.com>
6354 * Application.cs: pave the way for actually using the thread
6355 exception dialog. it's ifdefed out at the moment.
6357 2006-11-03 Chris Toshok <toshok@ximian.com>
6359 * ThreadExceptionDialog.cs: until we get a better layout, actually
6360 hide the details textbox and label when we shouldn't see them.
6362 2006-11-03 Jackson Harper <jackson@ximian.com>
6364 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
6365 multiline textboxes anymore. This method also determines the
6366 width/height of a textboxes canvas area.
6367 - Sorta a revert of the last patch. For multiline just position
6368 the controls, then bail. This way the scrollbar width won't be
6371 2006-11-03 Everaldo Canuto <everaldo@simios.org>
6373 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
6374 it dont need. Fixes #79537.
6376 2006-11-02 Jackson Harper <jackson@ximian.com>
6378 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
6379 send the status after firing the DndOver event.
6381 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6383 * TrackBar.cs: Now orientation only switches height / width if
6384 the control's handle is created (Win32 does it like this). Also
6385 fixed a typo in ToString() for a test to pass, changed the
6386 exception thrown in set_LargeChange and set_SmallChange to
6387 match Win32 behaviour, and added TrackBar tests to the unit
6390 2006-11-02 Chris Toshok <toshok@ximian.com>
6392 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
6393 not _NET_WM_STATE_NO_TASKBAR.
6395 2006-11-02 Jackson Harper <jackson@ximian.com>
6397 * TextControl.cs: Increment count by one, since in the update view
6400 2006-11-02 Jackson Harper <jackson@ximian.com>
6402 * TextBoxBase.cs: Use client rectangle not bounds for checking if
6403 the mouse is in the client rectangle (duh).
6405 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6407 * TrackBar.cs: Fixed trackbar jumping around when clicking
6408 on it - the trackbar was not detecting correctly at which
6409 side of the thumb the click was done. (fixes #79718)
6411 2006-11-02 Everaldo Canuto <everaldo@simios.org>
6413 * ListBox.cs: scroll visible area when change SelectedIndex to
6414 a non visible area. Fixes #79481.
6416 2006-11-01 Jackson Harper <jackson@ximian.com>
6418 * TextControl.cs: When replacing the selection move the selection
6419 start/end/anchor to the end of the new text.
6421 2006-11-01 Jackson Harper <jackson@ximian.com>
6423 * XplatUIWin32.cs: When setting the parent change the controls
6424 visibility to it's visibility flag, not to it's old parents
6425 visibility (.Visible walks the parent chain).
6427 2006-11-01 Chris Toshok <toshok@ximian.com>
6429 * XplatUIX11.cs: revert the #79790 fix, as the simple.
6430 XSetTransientForHint fix breaks paint .net's tool windows. more
6431 work needed for that one.
6433 2006-11-01 Chris Toshok <toshok@ximian.com>
6435 * ScrollBar.cs: throw ArgumentException instead of Exception in
6436 LargeChange/SmallChange setters. fixes unit tests.
6438 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
6440 * ContainerControl.cs: reverted rev.67183 (which was itself
6441 a reversion of rev.66853... eh).
6443 * Control.cs: Fixes Reflector hang by changing Focus() call
6444 to what it was before rev.66643 (calling Select() here sets
6445 ActiveControl, which in some situations calls back Focus and
6446 eventually does a stack overflow). Temp fix.
6447 Changes to GetNextControl() to not look for children to select when
6448 parent cannot be selectable (so it looks for siblings instead)
6450 2006-10-31 Mike Kestner <mkestner@novell.com>
6452 * CheckedListBox.cs : off by one error in returned index from
6453 ObjectCollection.Add. Fixes #79758.
6455 2006-10-31 Chris Toshok <toshok@ximian.com>
6457 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
6458 calls for the textbox/spinner, to keep from recursing to the point
6459 where we crash. Fixes #79760.
6461 2006-10-31 Chris Toshok <toshok@ximian.com>
6463 * ListControl.cs (set_SelectedValue): don't throw exceptions on
6464 null/"" value, just return. matches ms's behavior and fixes some
6467 2006-10-31 Chris Toshok <toshok@ximian.com>
6469 * Control.cs (set_Capture): make a logic a little easier to
6472 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
6473 if it's being destroyed. A necessary fix surely, but a bandaid
6474 also, to fix the stuck capture problem in bug #78413.
6476 2006-10-31 Chris Toshok <toshok@ximian.com>
6478 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
6479 convention of clearing hwnd.ClientRect when we set the
6480 width/height (so it'll be recalculated by Hwnd).
6482 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
6484 * ContainerControl.cs: reversed Contains check from
6485 ActiveControl due to hanging problems. This fix
6486 partly regresses #79667 (button does not have
6487 initial focus), so this might be a symptom for
6488 a larger parenting problem (set_ActiveControl
6489 is being called but the child control does
6490 not have the parent set yet?)
6492 2006-10-31 Mike Kestner <mkestner@novell.com>
6494 * MenuAPI.cs : fix keynav when menu is click activated.
6496 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
6498 * ToolStrip*: Version 0.2.
6500 * MenuStrip.cs: Version 0.1.
6502 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
6504 2006-10-30 Chris Toshok <toshok@ximian.com>
6506 [ fixes the oversized notify icon issue in bug #79745 ]
6508 * NotifyIcon.cs: scale the icon down to the size we're given by
6509 the XplatUI layer (this would be faster if we did it once instead
6510 of whenever we paint..) Also, remove the WM_NCPAINT handling,
6511 since it's never invoked.
6513 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
6514 pixels high by default, so let's hardcode our systray icon to that
6515 size. The SYSTEM_TRAY protocol should really have a way for
6516 client apps to query for the correct icon size.. but oh well. A
6517 couple of patches to deal with the screwy client_window ==
6518 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
6519 instance, and also make sure we don't XSelectInput twice).
6521 2006-10-30 Chris Toshok <toshok@ximian.com>
6523 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
6524 recreating forms. Control recreation is the bane of my existence.
6525 Fix it in a way that keeps everyone happy.
6527 2006-10-30 Chris Toshok <toshok@ximian.com>
6529 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
6530 just non-CHILD ones. otherwise sometimes scrollbars end up with
6531 client_windows not being resized to the proper size (ReportBuilder
6532 shows this extremely well).
6534 2006-10-30 Chris Toshok <toshok@ximian.com>
6536 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
6537 for non-WS_EX_APPWINDOW windows. This is what keeps them from
6538 showing up in the gnome taskbar. Fixes bug #79790.
6540 2006-10-30 Chris Toshok <toshok@ximian.com>
6542 * ApplicationContext.cs: guard against a NRE.
6544 * Application.cs: null out the old MainForm for the context, so we
6545 don't try to use it again once it's disposed. Fixes bug #79783.
6547 2006-10-30 Chris Toshok <toshok@ximian.com>
6549 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
6550 BindingContext, set the data source directly, otherwise do the
6551 lazy approach - the actual ListManager will be created when we get
6552 a BindingContext. Fixes bug #79700.
6554 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
6556 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
6557 XplatUIX11.cs: Remove old 2 parameter SetVisible.
6559 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
6561 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
6563 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
6564 of SetVisible that allows a window to be shown, but not activated.
6565 This is needed on Windows for MenuStrip, and can probably be used
6566 with MainMenu and ComboBox to fix the focus stealing issues on
6569 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
6571 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
6573 * PictureBox.cs: Fix the output of the ToString method.
6575 2006-10-29 Chris Toshok <toshok@ximian.com>
6577 * Control.cs (get_TopLevelControl): fix bug #79781.
6579 2006-10-29 Chris Toshok <toshok@ximian.com>
6581 * ListControl.cs (set_DataSource): throw Exception here, not
6582 ArgumentException, to match MS behavior.
6584 2006-10-29 Chris Toshok <toshok@ximian.com>
6586 * Form.cs: remove the try-catch's around calls to GetWindowState.
6587 We can just check the return value.
6589 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
6592 * XplatUI.cs: Add note about additional return value for
6595 2006-10-29 Chris Toshok <toshok@ximian.com>
6597 * Control.cs (CreateHandle): when we create our handle, we also
6598 create the handles of our child controls. Fixes one of the
6599 Control unit tests (CH11).
6601 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
6603 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
6605 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
6607 * ThemeClearlooks.cs: A little speedup.
6609 2006-10-27 Chris Toshok <toshok@ximian.com>
6611 * Control.cs: implement Control.FromChildHandle in a way that
6612 matches the docs (and fixes the failed test.)
6614 2006-10-27 Chris Toshok <toshok@ximian.com>
6616 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
6619 * DataGrid.cs: implement ResetForeColor such that the tests
6622 2006-10-27 Chris Toshok <toshok@ximian.com>
6624 * ToolBarButton.cs: setting text/tooltiptext to null results in it
6625 being set to "". Fixes bug #79759.
6627 2006-10-27 Jackson Harper <jackson@ximian.com>
6629 * TextControl.cs: We need to clear the entire selection area when
6630 setting the start, otherwise multiline selections are still
6633 2006-10-26 Chris Toshok <toshok@ximian.com>
6635 * PropertyGridView.cs:
6637 - ifdef all the code specific to the double
6638 buffer case, and provide some alternatives in the non-doublebuffer
6639 code, which makes heavy use of XplatUI.ScrollWindow to move things
6640 around without having to invalidate (and cause flicker). There
6641 are still some drawing problems in the non-doublebuffered case, so
6642 DOUBLEBUFFER is defined by default.
6644 - Fix the way dropdowns are handled. now we explicitly watch for
6645 the events which might cause the dropdown to close, and break out
6646 of the nested event loop there. This gets rid of all Capture
6647 code, at the expense of the Msg special casing. Seems to work,
6648 though, and fixes bug #79743.
6650 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
6651 * Control.cs: SetIsRecreating now recreates implicitly added
6652 child controls as well. Finally fixes #79629. The flag passed to
6653 SetIsRecreating has also been removed since it wasn't used.
6655 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6657 * PageSetupDialog.cs: Clean some code, fix some bits,
6658 add some checks, and add a printer sub-dialog.
6660 2006-10-26 Chris Toshok <toshok@ximian.com>
6662 * PropertyGrid.cs: make set_SelectedObject call
6663 set_SelectedObjects, and move the duplicate logic to the
6664 SelectedObjects setter. Also, raise SelectedObjectsChanged.
6666 * PropertyGridView.cs: hide the textbox when we get a
6667 SelectedObjectsChanged event.
6671 2006-10-26 Chris Toshok <toshok@ximian.com>
6673 * PropertyGridView.cs: deal with the type converter not supporting
6674 GetStandardValues() or GetStandardValues() returning null, which
6675 is does in the default case. Fixes #79742.
6677 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
6679 * CheckedListBox.cs: nunit no longer crashes when selecting
6680 Project/Edit menu option
6682 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
6684 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
6685 is no menu selected. fixes #79739
6687 2006-10-25 Chris Toshok <toshok@ximian.com>
6689 * PropertyGridView.cs: factor out the splitter invalidation code
6690 into the SplitterPercent setter, and for kicks implement the
6691 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
6692 amount in either direction.
6694 2006-10-25 Chris Toshok <toshok@ximian.com>
6696 * PropertyGridView.cs: do some cleanup of the brush used to draw
6697 text - read only fields should be grayed out. not sure how to do
6698 this with the textbox, though. but the textbox's should also be
6699 readonly now at least. Also, hide/show the textbox when resizing
6702 * CursorConverter.cs: use System.Reflection when getting the
6703 properties of Cursors, as TypeDescriptor.GetProperties isn't
6704 returning static properties.
6706 2006-10-25 Chris Toshok <toshok@ximian.com>
6708 * PropertyGridView.cs: factor out the up/down handling, and reuse
6709 it for page up/down. also add End/Home support.
6711 2006-10-25 Chris Toshok <toshok@ximian.com>
6713 * PropertyGridView.cs:
6715 - ensure the selected grid item is visible in the scrolled area,
6718 - fix Keys.Down handling when you're on the last item in the
6721 2006-10-25 Mike Kestner <mkestner@novell.com>
6723 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
6724 clicks too. Fixes #79725.
6726 2006-10-24 Chris Toshok <toshok@ximian.com>
6728 * PropertyGrid.cs: use property.Converter instead of
6729 TypeDescriptor.GetConverter(property.PropertyType), so we catch
6730 TypeConverters declared on the property as well as on the
6731 PropertyType. Fixes bug #79678.
6733 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
6735 * MimeIcon.cs, Mime.cs:
6736 Fallback to the default platform handler if no shared mime info
6737 stuff exists (fixes #79693).
6739 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
6740 * ContainerControl.cs: Incorrect contains check in ActiveControl
6741 from previous fix (duh).
6743 2006-10-20 Chris Toshok <toshok@ximian.com>
6745 * PropertyGridView.cs: the dropdown should be MIN(number of items
6746 in list, 15). Fixes #79551.
6748 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
6749 Fixes #79384, #79394, #79652, #79667
6752 - Modal windows are now destroyed in the proper order for windows
6754 * ContainerControl.cs:
6756 - ActiveControl setter has more conditions on when to return:
6757 - if we're reselecting the active control, but it actually
6758 didn't have focus (window hidden or some such), it runs
6759 - if the active control being selected doesn't actually
6760 exist in the container, it returns
6764 - The ShowDialog now gets the current form as the owner when
6765 invoking without parameters, and correctly activates the owner
6770 - MessageBox now catches the Escape key to exit
6772 2006-10-20 Chris Toshok <toshok@ximian.com>
6774 * PropertyGridView.cs: fix a number of issues (bug #78565, and
6775 most of bug #79676):
6777 - you can navigate around the property grid with the arrow keys.
6779 - the dropdown is sized properly when the pg has a vertical
6782 - fix the indentation for subentries, and properly select the
6785 - fix the gray bar's drawing (only draw it to the last element,
6786 not for the height of the control. Also make sure we draw that
6787 last horizontal grid line.
6789 - use the same mechanism the datagrid uses wrt the editing textbox
6790 when scrolling/resizing/etc. Namely, we hide it first, do the
6791 operation, then show it again (if it's still visible).
6793 - aggressively remove a lot of unnecessary refreshes (and also
6794 calls to Invalidate(). call more limited variants, and only redraw
6799 - when we're populating the merged collection, fill in the UI
6800 parent with either the passed in item, or the category item we
6803 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
6805 * GridItem.cs: drop some fully qualified names.
6807 * GridEntry.cs: add a "UIParent", which is basically the parent
6810 * GridItemCollection.cs: add an IndexOf method.
6812 2006-10-20 Mike Kestner <mkestner@novell.com>
6814 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
6815 a working win32 NC invalidation mechanism, we can't invalidate
6816 menus. [Fixes #79705]
6818 2006-10-20 Mike Kestner <mkestner@novell.com>
6820 * ListBox.cs : don't update the VScrollbar if the list is empty,
6821 just hide it. [Fixes #79692]
6823 2006-10-20 Jackson Harper <jackson@ximian.com>
6825 * RichTextBox.cs: Handle some special chars better, and don't skip
6826 the entire group when we encounter a special char that we don't
6829 2006-10-18 Chris Toshok <toshok@ximian.com>
6831 * PropertyGridView.cs: address a number of issues from bug #79676,
6832 mostly of the cosmetic variety.
6834 - The highlight rectangle for indented items not extends all the
6837 - Indented items aren't indented so much.
6839 - the dropdown is properly sized width-wise if the pg has a
6842 2006-10-18 Chris Toshok <toshok@ximian.com>
6844 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
6845 systray stuff is rather convoluted to begin with.
6847 systray icons are a single window for some reason (that I haven't
6848 figured out yet), and for them, client_window == whole_window.
6849 Given the way the tests are structured elsewhere to determine
6850 which paints are pending (client vs. nc), that situation will
6851 always yield PAINT, not NCPAINT. So, if we have a pending
6852 nc_expose and no pending expose, remove the hwnd from the paint
6853 queue, and also set nc_expose_pending to false, to keep us from
6854 blocking further expose's adding the hwnd to the paint queue.
6856 phew. like i said, a rather convoluted change. Fixes the
6857 notifyicon repaint issues in bug #79645.
6859 2006-10-18 Chris Toshok <toshok@ximian.com>
6861 * Form.cs: when getting the backcolor of the form, don't get
6862 base.BackColor, as this allows parents to influence the background
6863 color. This breaks mdi forms. Instead, if the background_color
6864 is empty, return the default.
6866 2006-10-18 Chris Toshok <toshok@ximian.com>
6868 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
6869 to being private instead of internal static.
6871 * Control.cs: remove all the stupid ParentWaitingOnRecreation
6872 crap, it wasn't working for more deeply nested controls anyway,
6873 and we already have the is_recreating flag - use that instead.
6874 Before calling DestroyHandle in RecreateHandle, recurse through
6875 the control tree setting it to true. this returns the recreate
6876 code to much of its original simplicity, while now guaranteeing we
6877 actually recreate everything we're supposed to. This change gets
6878 fyireporting actually showing mdi children.
6880 2006-10-17 Chris Toshok <toshok@ximian.com>
6882 * Form.cs: remove some debug spew, and collapse some duplicate
6883 code at the end of SetClientSizeCore.
6886 - add some more debug spew here too wrt Destroy handling.
6887 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
6888 in Control's handling of WM_DESTROY.
6889 - Remove the handling of zombie window DestroyNotifies from the
6890 event loop - we don't need it. Now the only DestroyNotifies we
6891 actually handle are ones generated by X.
6892 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
6893 match gtk's (functioning) handling of this. This keep metacity
6894 from leaving droppings in the form of wm borders with no window
6895 contents all over the place.
6898 - add a bunch of debug spew wrt control recreation.
6899 - fix a bug where we weren't tracking Visible properly on
6901 - fixed the WM_PAINT double buffer handling to support re-entrant
6902 calls (yes, i know it's gross, but it's happening to us).
6904 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
6905 * ThemeWin32Classic.cs: changed drawing of selected days
6906 to make them look better.
6908 2006-10-16 Chris Toshok <toshok@ximian.com>
6910 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
6911 drawing_stack. Nuke the ClientDC/NonClientDC properties.
6913 * XplatUIX11.cs: move away from using hwnd.client_dc and
6914 hwnd.non_client_dc and on to a stack of dc's (and in window's
6915 case, PAINTSTRUCT's), so we can deal with nested Paint calls
6916 without puking or not disposing of Graphics objects.
6918 * XplatUIOSX.cs: same.
6920 * XplatUIWin32.cs: same.
6922 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
6924 * FileDialog.cs: Don't call on_directory_changed inside
6925 OnSelectedIndexChanged (it changes the SelectedIndex too).
6926 Instead move it to OnSelectionChangeCommitted.
6928 2006-10-13 Chris Toshok <toshok@ximian.com>
6930 * XplatUIX11.cs: more Destroy work. the current code does the
6931 following things, in order:
6933 1. Enumerates all handles of all controls at or below the one
6934 being destroyed, in pre-order. As it is doing this, it marks the
6935 handles as zombie and clears all references to them.
6937 2. calls XDestroyWindow on the window passed in.
6939 3. SendMessage's WM_DESTROY to all he handles in the accumulated
6942 2006-10-13 Chris Toshok <toshok@ximian.com>
6944 * XplatUIX11.cs: set hwnd.zombie to true before calling
6945 SendMessage (WM_DESTROY). this keeps us from marking the new
6946 window a zombie, and also keeps us from calling sendmessage at
6949 2006-10-13 Jackson Harper <jackson@ximian.com>
6951 * TextControl.cs: Do not show the caret and selection at the same
6952 time. Reduces ugliness by 35%.
6954 2006-10-13 Chris Toshok <toshok@ximian.com>
6956 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
6957 zombie after we do the recursive call, so we actually do call
6958 SendMessage on the children controls.
6959 (GetMessage): if we find a pending paint event for a zombie hwnd,
6960 remove the hwnd from the paint queue, or else it will always be
6961 there (and we'll effectively loop infinitely)
6963 2006-10-13 Mike Kestner <mkestner@novell.com>
6965 * MenuItem.cs : add Selected format under keynav too.
6968 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6970 * PropertyGrid.cs: Fixed some NRE's and small difference between our
6971 implementation and that of MS.
6973 2006-10-13 Chris Toshok <toshok@ximian.com>
6975 * Control.cs (OnInvalidated) only futz with the invalid_region if
6976 the control is double buffered. this fixes the apparent hang in
6977 the ListView unit tests. Someone needs to make the
6978 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
6980 2006-10-13 Chris Toshok <toshok@ximian.com>
6982 * PropertyGridView.cs:
6984 - do a little refactoring so that only one place calls
6985 dropdown_form.Hide, and that is CloseDropDown. make everywhere
6986 else call that. Also make it Refresh, since there are redraw bugs
6987 otherwise (we should take a look at that...)
6989 - do a little more refactoring work to share the body of code
6990 involved with the drop down. it was duplicated in the code
6991 dealing with the listbox handling and in the code dealing with the
6994 - add a Capture to the dropdown form's control once it's
6995 displayed, and add a MouseDown handler that checks to make sure
6996 the position is inside the control. If it's not, close the
6997 dropdown. This fixes #78190.
6999 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
7000 if the value is different than the initial value.
7002 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
7004 * Control.cs: see #78650
7005 - Fixed GetNextControl for several cases:
7006 - Changed FindFlatForward to return
7007 correct sibling control when more than one
7008 control has same TabIndex as the currently
7010 - Changed FindFlatBackward to loop children
7011 from last to first and apply same logic as in
7013 - Changed FindControlForward to search for
7014 children when control is not a container
7015 but has children, or search for siblings if
7016 control is a container...
7017 - Changed FindControlBackward to continue
7018 searching for child controls when hitting
7021 - Fixed Focus method to update ActiveControl
7022 (FocusTest.FocusSetsActive failure)
7025 - Focus rectangle now refreshes when gaining
7027 - Removed grab for Tab key on IsInputKey that
7028 was keeping tab navigation from working (#78650)
7030 2006-10-13 Chris Toshok <toshok@ximian.com>
7032 * PropertyGridView.cs:
7033 - Rewrite SetPropertyValue to loop over SelectedGridItem's
7036 - Deal with GridItem.Value == null a few places.
7039 - replace the PopulateGridItemCollection with a pair of methods
7040 which compute the intersection of all the properties in the
7041 SelectedObjects array. Fixes #79615.
7043 - Throw ArgumentException from set_SelectedObjects if there's a
7046 - Add GetTarget method which can be used to traverse up the
7047 GridItem.Parent chain. It depends on the assumption that
7048 selected_objects for different GridEntries are always in the same
7049 order (a safe assumption). Use this method and loop over all the
7050 selected objects in the entry when calling RemoveValueChanged and
7053 * GridEntry.cs: Make this handle multiple selected objects.
7054 .Value returns null if not all the selected objects share the same
7057 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
7058 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
7059 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
7060 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
7061 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
7062 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
7063 add additional functionality.
7065 2006-10-12 Mike Kestner <mkestner@novell.com>
7067 * ErrorProvider.cs : new ToolTipWindow ctor sig.
7068 * HelpProvider.cs : new ToolTipWindow ctor sig.
7069 * ToolTip.cs : remove ToolTip param from Window sig since it is
7071 * ToolBar.cs : add tooltip support. Fixes #79565.
7073 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7075 * ComboBox.cs: move the events in set_SelectedIndex to
7076 after the call to HighlightIndex in order to avoid
7077 possible recursion and subsequent problems with the call
7078 to HighlightIndex and include a range check in
7079 set_HighlightIndex. Fixes #79588
7081 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7083 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
7084 to ui thread's settings instead of sunday.
7085 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
7087 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7091 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
7092 and implement missing functionality (selecting different parts
7093 of the date and edit them individually with the keyboard).
7095 2006-10-11 Chris Toshok <toshok@ximian.com>
7097 * Control.cs (OnInvalidated): fix NRE relating to last change.
7099 2006-10-11 Chris Toshok <toshok@ximian.com>
7101 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
7102 atoms in _NET_WM_STATE here if the window is maximized. We need
7103 to do this because we're *replacing* the existing _NET_WM_STATE
7104 property, so those atoms will be lost otherwise, and any further
7105 call to GetWindowState will return Normal for a window which is
7106 actually maximized. Fixes #79338.
7108 2006-10-11 Jackson Harper <jackson@ximian.com>
7110 * TextControl.cs: Special case for setting selection end to
7111 selection start, we basically kill the anchor.
7112 - some todo comments.
7114 2006-10-11 Chris Toshok <toshok@ximian.com>
7116 * Control.cs: switch to using an "invalid_region" to track which
7117 parts of the image buffer need updating. This is more code than
7118 the simple fix from r66532. That version just attempted to always
7119 fill the entire buffer on redraw, which turns out to be
7120 inefficient when invalidating small rectangles. This version
7121 simply adds the invalid rectangle to the invalid region. When we
7122 get any WM_PAINT message we see if it can be filled using the
7123 image buffer, and if it can't (if the paint event's clip rectangle
7124 is visible in the invalid region) we first fill the image buffer.
7125 So, the image buffer is still a cache, we just fill it lazily.
7127 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
7130 2006-10-11 Chris Toshok <toshok@ximian.com>
7132 * XplatUIX11.cs (SetWindowPos): we need to update both position as
7133 well as size after calling XMoveResizeWindow. This keeps us from
7134 ignoring future SetWindowPos calls. Fixes the disappearing
7135 DateTimePicker in the ToolBarDockExample from bug #72499.
7137 2006-10-11 Chris Toshok <toshok@ximian.com>
7139 * TextBoxBase.cs: reorder things a bit when it comes to
7140 resizing-causing-recalculation. we were recalculating the
7141 document when our position was changed, which shouldn't happen.
7142 We only care about size changes. Clear up some more redundant
7143 recalculation calls while I'm at it. This makes the toolbar dock
7144 example snappy when you're just dragging toolbars around (since it
7145 causes a relayout whenever you move one.)
7147 2006-10-11 Chris Toshok <toshok@ximian.com>
7149 * ToolBarButton.cs (get_Rectangle): this only returns
7150 Rectangle.Empty if Visible == false, or Parent == null.
7151 Parent.Visible doesn't matter.
7153 2006-10-10 Chris Toshok <toshok@ximian.com>
7155 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
7156 by .net 1.1, so switch to an internal method instead.
7158 2006-10-10 Chris Toshok <toshok@ximian.com>
7160 * Control.cs (WM_PAINT): when a control is double buffered we draw
7161 initially to the ImageBuffer and then copy from there. But when a
7162 parent control which has child controls is double buffered, the
7163 initial drawing doesn't encompass the entire ClientRectangle of
7164 the parent control, so we end up with uninitialized bits (this is
7165 easily seen by dragging the top toolbar in
7166 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
7167 manually set the ClipRectangle of the paint_event (only the one we
7168 use to populate the ImageBuffer) to ClientRectangle. Fixes more
7169 of the nastiness in bug #72499.
7171 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
7172 which we use in Control.cs's WM_PAINT handling.
7174 2006-10-10 Jackson Harper <jackson@ximian.com>
7176 * TextBoxBase.cs: Finish off the autoscrolling stuff.
7178 2006-10-10 Chris Toshok <toshok@ximian.com>
7180 * Cursor.cs: Apply a slightly different patch to the one suggested
7183 2006-10-10 Jackson Harper <jackson@ximian.com>
7185 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
7186 not the parent form.
7187 * TextControl.cs: use difference in old line count vs new count to
7188 calculate how many lines were added, this takes into account soft
7189 line breaks properly.
7191 2006-10-10 Chris Toshok <toshok@ximian.com>
7193 * LinkLabel.cs: don't call MeasureCharacterRanges against a
7194 rectangle located at 0,0 and the size of the text. Use
7195 ClientRectangle instead. This fixes rendering of non-left aligned
7198 2006-10-10 Jackson Harper <jackson@ximian.com>
7200 * TextBoxBase.cs: When we set the selection start position the
7202 * TextControl.cs: Need to update the caret when we decrement it to
7204 - Make sure that the selection_visible flag gets reset to false if
7205 the selection isn't visible. Before this you could get it set to
7206 visible by changing the selection start, then changing the end to
7209 2006-10-09 Jackson Harper <jackson@ximian.com>
7211 * TreeView.cs: Don't update scrollbars when we aren't visible.
7212 * TreeNodeCollection.cs: Only need to update scrollbars if being
7213 added to an expanded visible node or the root node.
7215 2006-10-09 Chris Toshok <toshok@ximian.com>
7217 * XplatUIX11.cs (SendMessage): fix NRE.
7219 2006-10-09 Jackson Harper <jackson@ximian.com>
7221 * TextBoxBase.cs: Implement horizontal autoscrolling.
7222 * TextControl.cs: Add a movement types that allows moving forward
7223 and backwards without wrapping.
7225 2006-10-09 Mike Kestner <mkestner@novell.com>
7227 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
7228 with focus "expansion" of labels. Fixes #79532 and then some.
7229 * ThemeWin32Classic.cs : add LineLimit to ListView label format
7232 2006-10-09 Jackson Harper <jackson@ximian.com>
7234 * TextBoxBase.cs: Set the default max values to MaxValue since
7235 we use the scrollbar for autoscrolling and the default value is
7236 100. If we don't do this the caret won't keep up with typing
7237 after about 18 characters.
7238 * TextControl.cs: Make sure the selection is offset by the
7239 viewport x. This fixes selection when using auto scrolling.
7241 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
7243 * Form.cs: The active control should be selected after the
7244 OnLoad so that any child control initialization that affects
7245 the selection is done. Fixes #79406
7247 2006-10-06 Chris Toshok <toshok@ximian.com>
7249 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
7250 to have no evil effects.
7252 - Stop selecting StructureNotifyMask on non-toplevel windows.
7254 The only way children should be resized is by using the SWF api,
7255 and we already send WM_WINDOWPOSCHANGED messages in those cases.
7256 Toplevel windows can be interacted with via the window manager,
7257 and so we keep the input mask there.
7259 The other event StructureNotifyMask gives us (that we care
7260 about) is DestroyNotify. The code is already structured such
7261 that it assumes we won't be getting a DestroyNotify event for
7262 the window we pass to XDestroyWindow (which is what
7263 StructureNotifyMask is supposed to guarantee.) So, that code
7264 shouldn't be affected by this either.
7266 - Stop selecting VisibilityChangeMask altogether.
7268 We weren't doing anything with the resulting events anyway.
7270 This vastly reduces the number of X requests and events we see
7271 when resizing/laying out a large ui.
7273 2006-10-06 Chris Toshok <toshok@ximian.com>
7275 * ScrollableControl.cs (DisplayRectangle): we need to take into
7276 account the DockPadding regardless of whether or not auto_scroll
7277 == true. rework this slightly to this effect, and fix bug #79606,
7278 and part of #72499 (you can now see the drag handles and drag
7281 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
7283 * ListViewItem.cs: Collections of selected and checked items are now
7284 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
7285 we mark the collection "dirty".
7286 * ListView.cs: Marked collections readonly. Modified UpdateSelection
7287 to only clear SelectedItems when a new item is selected and MultiSelect
7288 is enabled. CheckedItems and SelectedItems now subscribe to Changed
7289 event of ListViewItemCollection, and mark its list dirty whenever
7290 that event is fire. This allows us to return selected/checked items
7291 in the same order as they are in the Items collection. This matches
7294 2006-10-06 Chris Toshok <toshok@ximian.com>
7296 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
7297 right mouse clicks. Fixes bug #79593.
7299 2006-10-06 Chris Toshok <toshok@ximian.com>
7301 * Splitter.cs: doh, fix splitters that don't want to cancel the
7302 movement when you drag them. Also, impose the limits on the
7303 values we send to the SplitterMovingEvent. Fixes #79598.
7305 2006-10-06 Jackson Harper <jackson@ximian.com>
7307 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
7308 since we use this for auto scrolling also.
7310 2006-10-05 Chris Toshok <toshok@ximian.com>
7312 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
7313 beginning to think that most datagrid column types don't need this
7314 method. Fixes bug #79392.
7316 2006-10-05 Chris Toshok <toshok@ximian.com>
7318 * DataGrid.cs: move back to a more lazy scheme for creating the
7319 CurrencyManager, so we aren't updating it every time you set
7320 either DataSource or DataMember. Also, don't call
7321 RecreateDataGridRows if the currency manager hasn't changed.
7323 2006-10-05 Chris Toshok <toshok@ximian.com>
7325 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
7326 emitted, SelectedIndex should already be updated. Fixes bug
7329 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
7331 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
7332 ToolStripTextBox.cs: Initial commit.
7333 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
7335 2006-10-05 Jackson Harper <jackson@ximian.com>
7337 * TabControl.cs: We need to invalidate the tab control area when
7338 new ones are added (duh).
7340 2006-10-03 Chris Toshok <toshok@ximian.com>
7342 * Form.cs (ProcessDialogKey): if the focused control is in this
7343 form and is a button, call its PerformClick method here. Fixes
7346 2006-10-04 Jackson Harper <jackson@ximian.com>
7348 * TabPage.cs: Ignore setting of Visible, and add an internal
7349 method for setting the controls visibility. TabPage's Visible
7350 property is a little strange on MS, this seems to make us
7351 compatible, and fixes cases where people set all the tab pages to
7353 * TabControl.cs: Use the new internal setting on tab pages
7356 2006-10-03 Mike Kestner <mkestner@novell.com>
7358 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
7360 2006-10-03 Mike Kestner <mkestner@novell.com>
7362 * ListView.cs : use is_visible instead of Visible to check if
7363 scrollbars should be placed/sized. Also some max_wrap_width
7364 love for LargeIcon view. [Fixes #79533]
7366 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
7369 Make set_TextAlign() do actually update the align. Fixed #78403.
7371 2006-10-03 Chris Toshok <toshok@ximian.com>
7373 * DataGrid.cs: fix a crash when switching datasources if the
7374 vertical scrollbar is at someplace other than Value = 0. Also,
7375 reduce the number of recalculation passes we do in SetDataSource
7378 2006-10-03 Jackson Harper <jackson@ximian.com>
7380 * TextBoxBase.cs: Move the if value the same bail check up, we
7381 don't want to empty the document if it is already empty, this
7382 seems to severly mess up the caret. TODO: I should probably fix
7383 the empty statement to update teh caret somehow.
7385 2006-10-03 Chris Toshok <toshok@ximian.com>
7387 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
7388 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
7389 reflection, an internal row type, properties on said type, etc.)
7390 will work with our datagrid. Fixes #79531.
7392 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
7394 * FileDialog.cs: Don't crash if a path is not accessible
7395 (System.UnauthorizedAccessException). Fixes #79569.
7396 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
7397 a ':' too. Return unknown icon for those paths/files.
7399 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
7401 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
7402 GetContainerControl returns null.
7404 2006-10-02 Chris Toshok <toshok@ximian.com>
7406 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
7407 call to XGetWindowAttributes instead of "handle". fixes an X
7408 error using notifyicon after the NotifyIconWindow to Form base
7411 2006-10-02 Chris Toshok <toshok@ximian.com>
7413 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
7414 server grab and looping we need to do to get down to the most
7415 deeply nested child window.
7416 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
7417 QueryPointer again after the WarpPointer so we can generate a
7418 proper (fake) MotionNotify event to be enqueued in the destination
7420 (GetCursorPos): call QueryPointer.
7424 2006-10-02 Jackson Harper <jackson@ximian.com>
7426 * NotifyIcon.cs: Derive the notify icon from a form, so things
7427 like FindForm work on it.
7428 - Swallow the WM_CONTEXTMENU message, since that is generated on
7429 mouse down, and context menu is a mouse up kinda guy. I believe
7430 the correct fix here is probably to make the notify icon entirely
7431 NC area, but this seems to work fine for anyone not manipulating
7434 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
7436 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
7437 ToolStripItemCollection.cs, ToolStripLabel.cs,
7438 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
7439 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
7440 Initial implementation.
7441 * TextRenderer.cs: Provide padding to MeasureText.
7443 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
7445 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
7446 of ButtonBaseAccessibleObject. Fix bug #79552.
7448 2006-10-02 Jackson Harper <jackson@ximian.com>
7450 * MdiWindowManager.cs: When maximizing use the containers client
7451 rect, not it's bounds, so nc area is accounted correctly.
7452 - Use the parent form's size for the menu position, since the
7453 client isn't always the full form size.
7455 2006-10-01 Chris Toshok <toshok@ximian.com>
7457 * ScrollableControl.cs: make sure neither right_edge or
7458 bottom_edge are < 0, since they're used as LargeChange for the
7459 horiz/vert scrollbars respectively. Fixes #79539.
7461 2006-10-01 Chris Toshok <toshok@ximian.com>
7463 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
7464 the xplatuix11 code can cause us to destroy/recreate our handle.
7468 - this code can be invoked many times for the same Hwnd. Make
7469 sure we only destroy the client window once (the first time this
7470 method is called). This fixes bug #79544.
7471 - Remove the call to the improperly bound XSync. why we had two
7472 bindings to this, I will never know, but this call resulted in
7473 events being discarded from the queue(!).
7474 - correct a misunderstanding of _XEMBED_INFO - the second atom is
7475 not our current state but the state we wish to be in. So, 0 if
7476 we don't want to be mapped. Change it to 1.
7477 (SystrayRemove): The XEMBED spec makes mention of the fact that
7478 gtk doesn't support the reparent of client windows away from the
7479 embedder. Looking at gtksocket-x11.c seems to agree with this.
7480 The only avenue we have for removing systray icons is to destroy
7481 them. We don't want the handle to go away for good, though, so
7482 call InternalRecreateHandle on the NotifyIconWindow. Fixes
7485 2006-10-01 Chris Toshok <toshok@ximian.com>
7487 * Form.cs (WndProc): inline the native_enabled variable usage into
7488 the cases in which it's used. Fixes #79536.
7490 2006-09-29 Mike Kestner <mkestner@novell.com>
7492 * ListView.cs : toggle the selection state for ctrl clicks in
7493 multiselect mode. [Fixes #79417]
7495 2006-09-29 Mike Kestner <mkestner@novell.com>
7497 * ListView.cs : kill CanMultiSelect and refactor the selection
7498 code to support multiselection in the absence of mod keys. Steal
7499 arrow/home/end keys by overriding InternalPreProcessMessage to
7500 restore regressed keynav behavior.
7503 2006-09-29 Jackson Harper <jackson@ximian.com>
7505 * MdiClient.cs: Repaint the titlebars when the active window is
7508 2006-09-29 Chris Toshok <toshok@ximian.com>
7510 * Application.cs: when entering a runloop with a modal, make sure
7511 the hwnd is enabled. Fixes #79480.
7513 2006-09-29 Chris Toshok <toshok@ximian.com>
7515 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
7516 when ListManager.CanAddRows == false, bump us back one.
7518 * DataGridColumnStyle.cs (ParentReadOnly): remove the
7519 listmanager.CanAddRows check. This makes ArrayLists uneditable
7520 using a datagrid, which is not right.
7521 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
7522 is an IEditable, but call property_descriptor.SetValue regardless.
7525 2006-09-29 Chris Toshok <toshok@ximian.com>
7527 * DataGridBoolColumn.cs: we need to test equality in the face of
7528 possible null values (as is the case with the default NullValue).
7529 This patch keeps us from crashing in that case.
7531 2006-09-29 Jackson Harper <jackson@ximian.com>
7533 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
7534 here, since it will get called for every node collection in the
7535 tree. This is now done in the treeview once the sorting is
7537 * TreeView.cs: Recalculate the visible order, and update the
7538 scrollbars after sorting, set the top nope to the root so that the
7539 recalc actually works.
7541 2006-09-29 Chris Toshok <toshok@ximian.com>
7543 * LinkLabel.cs: more handling of the default link collection in
7544 the face of LinkArea manipulation. The default link collection
7545 contains 1 element (start=0,length=-1). If the user sets LinkArea
7546 to anything and the links collection is the default, clear it.
7547 Then only add the link if its nonempty. Fixes #79518.
7549 2006-09-29 Chris Toshok <toshok@ximian.com>
7551 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
7552 piece correctly when we hit a '\n'. Fixes #79517.
7554 2006-09-29 Chris Toshok <toshok@ximian.com>
7556 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
7557 change the binding of gdk_init_check to take two IntPtr's, and
7558 pass IntPtr.Zero for both of them. Fixes #79520.
7560 2006-09-29 Mike Kestner <mkestner@novell.com>
7562 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
7565 2006-09-28 Jackson Harper <jackson@ximian.com>
7567 * XplatUIX11.cs: When translating NC messages make sure we go from
7568 whole window to screen, not client window to screen.
7569 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
7570 method doesn't exist
7571 - Skip over controls that aren't forms when arranging.
7573 2006-09-28 Jackson Harper <jackson@ximian.com>
7575 * XplatUIWin32.cs: Clip the rect to the parent window.
7576 * XplatUIStructs.cs: Add clipping modes struct.
7577 * InternalWindowManager.cs: New private method that factors title
7578 bar heights in when calculating the pos of an NC mouse message.
7579 - Use SendMessage to force a paint when the form's size is changed
7580 instead of painting the decorations immediately.
7581 - Don't let the NC button click messages get to DefWndProc,
7582 because they will attempt to handle windowing themself, and this
7583 messes up z-order (it will put them in front of the scrollbars).
7584 * XplatUIX11.cs: Make sure that we don't reset window managers if
7585 we already have one (ie the window is an MDI window).
7587 2006-09-28 Chris Toshok <toshok@ximian.com>
7589 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
7590 menu code really needs going over.
7592 2006-09-27 Chris Toshok <toshok@ximian.com>
7594 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
7595 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
7596 window is maximizable. So, we need to make sure that even if we
7597 clear the border/wm frame of those functions, they're still
7598 available (basically, we remove the decoration without removing
7599 the function). Half the fix for #79338.
7601 2006-09-27 Chris Toshok <toshok@ximian.com>
7603 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
7606 2006-09-27 Chris Toshok <toshok@ximian.com>
7608 * Splitter.cs: reorder things a bit so that we don't actually
7609 draw/move the splitter until after calling OnSplitterMoving. This
7610 lets users cancel/disallow the movement by explicitly setting
7611 event.SplitX/SplitY. Fixes #79372.
7613 2006-09-27 Jackson Harper <jackson@ximian.com>
7615 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
7616 because it is most likely on a window being destroyed, and that
7617 will give us an X11 error.
7619 2006-09-27 Chris Toshok <toshok@ximian.com>
7621 * PropertyGridView.cs: half of the fix for #78190. Clicking on
7622 the dropdown button now toggles between showing and hiding the
7623 dropdown. Also, get rid of dropdown_form_showing and just use
7624 dropdown_form.Visible. We still don't do a grab, but I'll leave
7625 that part to someone who has handled Capture-fu before.
7627 2006-09-27 Chris Toshok <toshok@ximian.com>
7629 * DataGrid.cs: return false if alt isn't pressed when '0' is
7630 pressed. this keeps the '0' key from being swallowed, and fixes
7633 2006-09-27 Chris Toshok <toshok@ximian.com>
7635 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
7636 Calling Refresh (in response to a scrollbar event) screws up the
7637 scrollbar painting. Fixes bug #78923.
7639 2006-09-27 Chris Toshok <toshok@ximian.com>
7641 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
7642 then insert into hashtable" blocks threadsafe.
7644 2006-09-27 Chris Toshok <toshok@ximian.com>
7646 * MessageBox.cs (CreateParams): the styles should be |'ed with our
7647 baseclass's, since otherwise the
7648 ControlBox/MinimizeBox/MaximizeBox assignments above have no
7649 effect. This gets the close button back in messageboxes.
7651 2006-09-27 Chris Toshok <toshok@ximian.com>
7653 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
7654 flag, not just != 0. this makes flags that are actually multiple
7655 bits (like WS_CAPTION) work. fixes bug #79508.
7657 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
7659 * PageSetupDialog.cs: add support for getting and settings the
7660 paper size, source and orientation.
7662 2006-09-26 Chris Toshok <toshok@ximian.com>
7664 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
7665 and caption == "", we need to remove the resize handles as well as
7668 * Control.cs (set_Text): turns out that setting Text on a form
7669 should change the WM styles on the window, since if ControlBox ==
7670 false, the only way to get a window border is to have a non-""
7671 Text property. check winforms/forms/text.cs for an example. so,
7672 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
7673 update both window styles and title. This fixes a lot of dialogs
7674 (including the preferences dialog in MonoCalendar.)
7676 2006-09-26 Chris Toshok <toshok@ximian.com>
7678 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
7679 control isn't a Form), call Win32ShowWindow to hide the window,
7680 but don't update the control Visible property. When we reparent
7681 back to a parent control, call SetVisible in order for the
7682 window's visibility to be reinstated.
7684 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
7687 * Control.cs (ControlCollection.Remove): remove that value.Hide()
7688 call for good, since it breaks MonoCalendar (and other things I'm
7689 sure.) Also, set all_controls to null *after* the owner calls,
7690 which end up regenerating it.
7691 (ChangeParent): allow new_parent to be == null, passing
7692 IntPtr.Zero down to XplatUI.
7694 this fixes #79294 the right way.
7696 2006-09-26 Mike Kestner <mkestner@novell.com>
7698 * GridEntry.cs : internal SetParent method.
7699 * PropertyGrid.cs : attach to property changed on the proper
7700 target if we have a hierarchical grid with subobjects. Setup
7701 GridItem.Parent for hierarchical items.
7702 * PropertyGridView.cs : Set value on the correct target for
7703 hierarchical grids. [Fixes #78903]
7705 2006-09-26 Chris Toshok <toshok@ximian.com>
7707 * Control.cs (ChildNeedsRecreating): this should return true if
7708 either we're being recreated and the child is in our list, or our
7709 parent is waiting for our recreation.
7711 2006-09-26 Chris Toshok <toshok@ximian.com>
7713 * Control.cs (ControlCollection.Remove): reinstate the
7714 value.Hide() call as suggested in bug #79294.
7716 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
7718 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
7719 coordinates (versus a relative move).
7721 2006-09-26 Chris Toshok <toshok@ximian.com>
7723 * Control.cs: rework child recreation a little bit. It turns out
7724 that we race between the DestroyNotify the WM_DESTROY message. If
7725 the parent gets its DestroyNotify before the child gets the
7726 WM_DESTROY message, the child ends up not recreating (since the
7727 parent finishes its recreation on DestroyNotify, and the child
7728 checks ParentIsRecreating.)
7730 So, instead we store off a list of all the child controls which
7731 need to be recreated when the parent control starts to recreate
7732 itself. Then, when child controls get their WM_DESTROY message we
7733 check to see if they're in the parent's pending recreation list,
7734 and if so, we recreate. This removes all dependency on ordering
7735 from the code and fixes the initial MonoCalendar upgrade dialog.
7737 2006-09-26 Jackson Harper <jackson@ximian.com>
7739 * TextControl.cs: Use the Line to get the length of the line,
7740 since soft line breaks can change the end line.
7742 2006-09-26 Chris Toshok <toshok@ximian.com>
7744 * Control.cs (ControlCollection.AddImplicit): don't add the
7745 control again if it's already in one of our lists. This keeps us
7746 from adding controls over and over again for comboboxes when their
7747 handle gets recreated (as the combobox adds implicit controls in
7748 OnHandleCreated). Fixes the X11 errors in bug #79480.
7750 2006-09-26 Jackson Harper <jackson@ximian.com>
7752 * TextControl.cs: When deleting characters make sure that any
7753 orphaned zero lengthed tags get deleted.
7754 - Fix ToString for zero lengthed tags.
7756 2006-09-25 Jackson Harper <jackson@ximian.com>
7758 * TextControl.cs: When getting a tag at the location there can be
7759 multiple tags at the same spot, these are 0-lengthed tags that
7760 appear when extra formatting has been stuck in a location. We
7761 need to pull out the last of these 0 lengthed tags.
7763 2006-09-25 Jackson Harper <jackson@ximian.com>
7765 * TextControl.cs: Fix print out in debug method.
7766 * TextBoxBase.cs: When text is set bail if we are setting to the
7769 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
7771 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
7772 It is now possible to change the selected index in a FontXXXListBox
7773 with the up and down arrow keys from the FontXXXTextBoxes.
7774 Also, send the FontXXXTextBox mouse wheel event to the corresponding
7775 FontXXXListBoxes to match ms.
7777 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
7779 * SystemInformation.cs: Return a clone of the theme's MenuFont because
7780 anyone can dispose it, anytime. All other properties returns enums,
7781 structs or basic types so they don't need such tricks.
7783 2006-09-22 Jackson Harper <jackson@ximian.com>
7790 * XplatUIDriver.cs: Update interface to add a primary selection
7791 flag, so the driver can use the primary selection buffer if
7793 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
7795 * RichTextBox.cs: We need to supply the data object to paste now
7796 (so we can choose to supply CLIPBOARD or PRIMARY).
7797 * TextBoxBase.cs: Supply data object to paste (see above).
7798 - Middle click uses the primary selection data object.
7800 2006-09-21 Chris Toshok <toshok@ximian.com>
7802 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
7803 of SetWMStyles. It's still a rat's nest and is largely
7804 order-dependent which I dislike immensely. This also fixes the X
7805 button disappearing from toplevel forms.
7807 2006-09-21 Mike Kestner <mkestner@novell.com>
7809 * ListBox.cs: move Jordi's click/dblclick raising code to the
7812 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
7814 * ListBox.cs: Fixes 79450
7816 2006-09-21 Mike Kestner <mkestner@novell.com>
7818 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
7819 to deal with people updating the TreeNodeCollection after the tree
7820 is disposed. "Fixes" 79330.
7822 2006-09-20 Jackson Harper <jackson@ximian.com>
7824 * TextControl.cs: Push the cursor record onto the undo stack
7825 before the delete action. This fixes 78651.
7827 2006-09-20 Jonathan Chambers <joncham@gmail.com>
7829 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
7830 CreateParams. Fixes 79329.
7832 2006-09-19 Chris Toshok <toshok@ximian.com>
7834 * XplatUIX11.cs: a couple of blanket code massage passes to clean
7835 things up a bit. First, get rid of the NetAtoms array (and the NA
7836 enum), and just embed the atoms as static fields. Also, add a
7837 couple of functions (StyleSet and ExStyleSet) to clean up all the
7838 bitmask testing of styles.
7840 * X11Structs.cs: remove the NA enum, not needed anymore.
7842 2006-09-19 Chris Toshok <toshok@ximian.com>
7844 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
7845 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
7846 added cleanup to get MessageBox titles appearing again, which were
7847 broken by my earlier fix for caption-less/ControlBox-less windows.
7849 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
7851 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
7852 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
7853 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
7854 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
7855 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
7856 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
7857 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
7858 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
7859 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
7860 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
7861 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
7863 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
7864 ToolStripButton.cs: Stubs needed for above.
7865 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
7867 2006-09-15 Chris Toshok <toshok@ximian.com>
7870 - make the MessageQueues hashtable Synchronized.
7872 - SendMessage: if the Hwnd is owned by a different thread, use the
7873 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
7874 thread. Fixes bug #79201.
7876 2006-09-15 Chris Toshok <toshok@ximian.com>
7878 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
7879 ControlBox == false, we disallow maximize/minimize/close. If the
7880 form Caption is "" we also disallow move (and get rid of the Title
7881 decoration). Unfortunately, regardless of how things are set,
7882 we're stuck with the Title and WM menu.
7884 2006-09-15 Chris Toshok <toshok@ximian.com>
7886 * Application.cs: add locking around the static message_filters
7887 ArrayList, part of #79196.
7889 2006-09-15 Chris Toshok <toshok@ximian.com>
7891 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
7892 Form.ControlBox == false, the window has no titlebar nor resize
7893 handles. fixes bug #79368.
7895 2006-09-15 Chris Toshok <toshok@ximian.com>
7897 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
7898 >= 0. Fixes bug #79370.
7900 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
7901 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
7903 Add properties: LayoutEngine, Margin, DefaultMargin.
7904 Add method: GetPreferredSize.
7905 Move layout logic from PerformLayout to layout engines.
7907 2006-09-13 Chris Toshok <toshok@ximian.com>
7909 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
7910 fix for #79326 broke #78718, so this change addresses that.
7912 - in SendWMDestroyMessages remove the call to
7913 CleanupCachedWindows, since we might be recreating the control and
7914 need to maintain the references to right Hwnd handles. Also, set
7915 the zombie flag to true for each of the children in the hierarchy
7916 instead of calling hwnd.Dispose. This will cause GetMessage to
7917 ignore all events for the window except for DestroyNotify.
7919 - In GetMessage, ignore messages except for DestroyNotify for
7922 * Control.cs: revert the is_recreating fix from the last
7923 ChangeLog. It's definitely "right", but it breaks switching from
7924 an MDI form to a non-MDI form. Will need to revisit that.
7926 * Hwnd.cs: add a zombie flag, which means "the
7927 client_window/whole_window handles are invalid, but we're waiting
7928 for the DestroyNotify event to come in for them". Set the flag to
7929 false explicitly if setting WholeWindow/ClientWindow, and also
7932 2006-09-13 Chris Toshok <toshok@ximian.com>
7934 * XplatUIX11.cs: rework window destruction slightly.
7936 - when destroying the windows associated with a control, we don't
7937 need 2 separate XDestroyWindow calls. Just the one for the
7938 whole_window (or for client_window if whole_window is somehow
7939 IntPtr.Zero -- can this happen?) is enough.
7941 - reworked SendWMDestroyMessages slightly, so we always dispose
7942 the child control hwnd's after sending the messages.
7944 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
7945 the two places it was used (one was even using hwnd.Handle and the
7946 other hwnd.client_window. ugh), adding another call in
7947 SendWMDestroyMessages. We need this new call because now the
7948 DestroyNotify events in the queue will be ignored for the child
7949 controls (as their hwnd's were disposed, and the window id's
7950 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
7952 - this fixes bug #79326.
7954 2006-09-13 Chris Toshok <toshok@ximian.com>
7956 * Control.cs: don't always set is_recreating to false at the end
7957 of RecreateHandle, since sometimes we're not done (and won't be
7958 until WndProc handles the WM_DESTROY message). Also, set
7959 is_recreating to false in the WM_DESTROY handling code. Part of
7960 the fix for bug #79326.
7962 2006-09-13 Miguel de Icaza <miguel@novell.com>
7964 * X11DesktopColors.cs: Start the droppage of debugging messages.
7966 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
7968 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
7970 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
7972 2006-09-12 Chris Toshok <toshok@ximian.com>
7974 * DataGrid.cs (get_ListManager): if the list_manager is null, try
7975 to create it using SetDataSource. Fixes bug #79151.
7977 2006-09-11 Chris Toshok <toshok@ximian.com>
7979 * XEventQueue.cs: add a DispatchIdle property.
7981 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
7982 either the queue is null, or the queue has DispatchIdle set to
7984 (DoEvents): set queue.DispatchIdle to false around the
7985 peek/translate/dispatch message loop in this method. This keeps
7986 Application.Doevents from emitting idle events. Part of the fix
7989 2006-09-11 Chris Toshok <toshok@ximian.com>
7991 * DataGrid.cs (set_DataSource): make this work for both the
7992 winforms/datagrid test and ReportBuilder. It seems as though when
7993 we've created a ListManager (or maybe it's if we have a
7994 BindingContext?), when we set the DataSource it clears the
7995 DataMember to "". otherwise we reuse the datamember. Fixes bug
7998 2006-09-11 Chris Toshok <toshok@ximian.com>
8000 * XplatUIX11.cs: deal with queue being null, which happens in all
8001 the Clipboard functions. Fixes one of the two problems mentioned
8004 2006-09-11 Chris Toshok <toshok@ximian.com>
8006 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
8007 button on various spots (including outside the menu) works closer
8008 to MS, and doesn't crash. Fixes #79343.
8010 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
8012 * ListView.cs: Do not initialize item_sorter in init. To match MS,
8013 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
8014 and the internal comparer is set. When a new ListViewItemSorter is set,
8015 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
8016 was specified. No further processing is necessary if SortOrder is set
8017 to it's current value. If Sorting is modified to None, and View is
8018 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
8019 (either custom or our internal ItemComparer) to null, on 1.0 profile
8020 only set item_sorter to null if its our internal IComparer. If Sorting
8021 is modified to Ascending or Descending, then use our internal IComparer
8022 if none is set, and if the current IComparer is our internal one then:
8023 on 2.0 profile always replace it with one for new Sorting, and on 1.0
8024 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
8025 Enum.IsDefined to verify whether a valid View value is specified in
8026 its setter. Automatically sort listview items when listview is
8027 created. In Sort, do nothing if ListView is not yet created, or if
8028 no item_sorter is set (no Sorting was set, Sorting was explicitly set
8029 to None or ListViewItemSorter was set to null). Added Sort overload
8030 taking a bool to indicate whether the ListView should be redrawn when
8031 items are sorted (we use this in ListViewItemCollection to avoid double
8032 redraws). Modified our internal IComparer to take the sort order into
8033 account. In Add and AddRange methods of ListViewItemCollection, also
8034 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
8035 view), but use overload with noredraw option to avoid double redraw.
8036 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
8037 true when View is Tile, and do the same when attempting to set View to
8038 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
8039 for selected/checked indices, as it involves overhead when sorting is
8040 done while these collections are not used all that often. Instead
8041 we'll build the indices on demand. Modified IList implementation of
8042 CheckedIndexCollection to use public methods if object is int.
8043 Modified CheckedListViewItemCollection to hide checked items if
8044 ListView.CheckBoxes is false. Removed LAMESPEC remark in
8045 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
8046 IList implementation in SelectedIndexCollection to use public methods
8047 if object is int. Modified SelectedListViewItemCollection to hide
8048 selected items if listview is not yet created.
8049 * ListViewItem.cs: CheckedIndices list no longer needs to be
8050 maintained separately (see ListView changes). Also clone font, fixes
8053 2006-09-11 Mike Kestner <mkestner@novell.com>
8055 * ComboBox.cs: if we are updating the contents of the currently
8056 selected index, refresh the control or the textbox selection.
8059 2006-09-11 Mike Kestner <mkestner@novell.com>
8061 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
8062 the 'specified' logic has been moved there. This seems like a bug
8063 in Control.cs, since our current SetBoundsCore completely ignores
8064 the specified parameter. Peter's commit seems to indicate that is
8065 the way the MS control implementation works. [Fixes #79325]
8067 2006-09-10 Jonathan Chambers <joncham@gmail.com>
8069 * XplatUI.cs: Set default_class_name to be composed
8070 of current domain id. This allows MWF to be loaded in multiple
8073 2006-09-09 Miguel de Icaza <miguel@novell.com>
8075 * X11Keyboard.cs: If we are unable to obtain the input method, do
8076 not call CreateXic to create the input context. Should fix
8079 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
8081 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
8082 Simplified gnome support by adding more pinvokes to get the
8083 icon for a file or mime type.
8085 2006-09-08 Jackson Harper <jackson@ximian.com>
8087 * MenuAPI.cs: Deslect popup context menu items before closing the
8088 window, so that you don't see the previously selected item
8089 selected when you reopen the menu.
8090 * TextControl.cs: Update the cursor position even if we don't have
8091 focus. This fixes typing in things like the ComboBox. I'm not
8092 totally sure we should always set the visibility if we don't have
8093 focus, but couldn't find any corner cases where the cursor showed
8094 up when it shouldn't.
8096 2006-09-08 Chris Toshok <toshok@ximian.com>
8098 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
8099 our arrays are length 256. & 0xff before indexing. Fixes the
8100 crash in bug #78077.
8102 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8104 * ThemeWin32Classic.cs:
8105 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
8106 is true. Handle that check box too.
8108 2006-09-07 Chris Toshok <toshok@ximian.com>
8110 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
8113 2006-09-07 Chris Toshok <toshok@ximian.com>
8115 * Control.cs: in set_BackColor only do the work if
8116 background_color != value.
8118 * XplatUIX11.cs: move the clearing of invalid areas (both client
8119 and nc) to the same block of code where we set (nc_)expose_pending
8120 to false. That is, move it from PaintEventEnd to PaintEventStart,
8121 so things that cause invalidates from within OnPaint will trigger
8122 another call to OnPaint. Fixes bug #79262.
8124 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
8126 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
8127 * FileDialog.cs: Fix typo
8129 2006-09-07 Jackson Harper <jackson@ximian.com>
8131 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
8132 for tab pages if they have any.
8134 2006-09-06 Mike Kestner <mkestner@novell.com>
8136 * Splitter.cs: use the "current" rect when finishing drag handle
8137 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
8139 2006-09-06 Mike Kestner <mkestner@novell.com>
8141 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
8142 support offset splitters. [Fixes #79298]
8144 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
8146 * Mime.cs: Fixed a bug that could override the global mime type
8149 2006-09-05 Jackson Harper <jackson@ximian.com>
8151 * TabControl.cs: Better calculation method for setting the slider
8152 pos. Prevents crashes on really wide tabs.
8153 - Draw Image on tab pages if an image list is used.
8155 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8157 * MonthCalendar.cs: When Font changes, the Size should be
8158 updated to fit the new font's space requirements.
8160 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
8162 * ListBox.cs: If the items are cleared with Items.Clear set
8165 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8167 * MonthCalendar.cs: Handle arrow keys as input keys. Also
8168 fire DateChanged event instead of DateSelected event when
8169 the date was changed by keyboard interaction.
8171 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8173 * DateTimePicker.cs: Handle DateChanged for the associated
8174 month_calendar control, and set month_calendar.Font from
8175 OnFontChanged method, as well as resize the height of the
8176 control when needed. Make PreferredHeight proportional.
8178 2006-09-01 Chris Toshok <toshok@ximian.com>
8180 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
8183 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
8185 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
8187 * FileDialog.cs: Set ClientSize instead of window size, to allow space
8188 for decorations (Fixes #79219)
8190 2006-09-01 Mike Kestner <mkestner@novell.com>
8192 * ComboBox.cs: first stab at sorting plus some selection handling
8193 fixes to bring us more in line with MS behavior. Also switches back
8194 to index based selection. Alternative patches for index-based
8195 selection were provided by Jackson Harper, Carlos Alberto Cortez,
8196 and latency@gmx.de on bug 78848. I assume they were similar to this
8197 code I've had simmering in my tree forever.
8200 2006-09-01 Chris Toshok <toshok@ximian.com>
8202 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
8203 when setting list position guard against ending up with a -1 index
8204 (the other part of the fix for #78812). Should probably make sure
8205 we don't need the analogous fix in the ItemDeleted case.
8208 - in SetDataSource, work around the fact that the way
8209 OnBindingContextChanged is invoked will cause us to re-enter this
8210 method. I'll remove the hack once I investigate
8211 OnBindingContextChanged.
8213 - fix the logic in set_DataSource and set_DataMember (basically
8214 what to do if the other of the two is null.)
8216 - in OnListManagerItemChanged, we need to take into account the
8217 edit row when deciding whether or not to call RecreateDataGridRows
8218 (part of the fix for #78812).
8220 2006-09-01 Jackson Harper <jackson@ximian.com>
8222 * Splitter.cs: Don't do anything if there is no control to affect
8223 (prevents us from crashing in weird tet cases).
8224 * TreeView.cs: Bounding box for the mouse movement reverting
8225 focus/selection back to previously selected node. This matches
8226 MS, and makes the tree a lot more useable.
8227 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
8228 use clipping so they are not drawn. This fixes when the control
8229 is set to have a transparent background, or if it was over an
8232 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
8234 * MimeIcon.cs: Improved handling for reading default icons when
8235 using gnome (2.16 made it necessary). Check and read svg icons
8236 first, then 48x48 and then 32x32 icons.
8238 2006-08-31 Chris Toshok <toshok@ximian.com>
8240 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
8243 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
8244 ProcessKeyPreview. Fixes part of #77806.
8246 * DataGrid.cs: big patch.
8248 - revert the queueing up of DataSource/DataMember if inside
8249 BeginInit/EndInit calls. That's not the way the datagrid achieves
8250 its delayed databinding. Instead, call SetDataSource in
8251 OnBindingContextChanged. This mimic's MS's behavior, and fixes
8254 - Also, it wasn't mentioned in #78811, but the test case exhibits
8255 behavior that was lacking in our datagrid implementation - Columns
8256 that have mapping names that don't exist in the datasource's
8257 properties aren't shown. Yuck. To fix this I added the bound
8258 field to the column style, and basically any calculation to figure
8259 out anything about columns uses a loop to find the bound columns.
8260 still need to investigate if I can cache an array of the bound
8261 columns or if the indices must be the same.
8263 - When setting CurrentCell, we no longer abort if the cell being
8264 edited was in the add row. This fixes the other part of #77806.
8266 - The new code also fixes #78807.
8268 * ThemeWin32Classic.cs: perpetrate the same disgusting
8269 column.bound field hack, and only render bound fields.
8271 2006-08-31 Chris Toshok <toshok@ximian.com>
8273 * DataGridColumnStyle.cs: add bound field. this field is true if
8274 the datasource has a property corresponding to the mapping name.
8276 * DataGridTableStyle.cs: set the bound field on the column styles
8277 depending on whether or not we have a column for that property.
8279 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
8281 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
8282 splitter control (fixes #79228)
8284 2006-08-31 Chris Toshok <toshok@ximian.com>
8286 * DataGridColumnStyle.cs: we need to delay the assignment of
8287 property descriptor until the last possible moment due to the lazy
8288 databinding stuff in the datagrid. Also, fix the exceptions
8289 thrown by CheckValidDataSource to match MS.
8291 2006-08-31 Jackson Harper <jackson@ximian.com>
8293 * Form.cs: When activated select the active control, if there is
8294 no active control, we select the first control.
8295 * XplatUIX11.cs: If there is no focus control when we get a
8296 FocusIn event, find the toplevel form and activate it. This
8297 occurs when you popup a window, it becomes the focus window, then
8298 you close that window, giving focus back to the main window.
8300 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8303 * ThemeWin32Classic.cs: Cache Font in bold style, as well
8304 as StringFormat with Center alignments in MonthCalendar,
8305 instead of creating new ones when drawing the control.
8306 Also, draw the month name in bold style.
8308 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
8311 - PerformLayout(): It would seem MS performs the fill even if the
8312 control is not visible (part of #79218 fix)
8313 - ResetBackColor(): Use the setter to reset the color, to allow
8314 overriders to catch the change.
8316 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
8317 - CreateHandle(): dito (part of $79218 fix)
8318 - Don't set an icon if we have a dialog
8319 * ScrollableControl.cs:
8320 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
8321 - ScrollIntoView(): No need to scroll if control is already visible
8322 (resolves fixme and fixes #79218)
8324 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8326 * MonthCalendar.cs: Change proportions in SingleMonthSize
8327 to match the aspect of the original control.
8329 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
8331 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
8332 get updated when they get maximized.
8334 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
8336 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
8338 2006-08-29 Chris Toshok <toshok@ximian.com>
8340 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
8342 2006-08-29 Jackson Harper <jackson@ximian.com>
8344 * TreeView.cs: Need to track selected node and highlighted node,
8345 they aren't always the same thing, when the mouse is down on a
8346 node it is hilighted, but not selected yet.
8347 - Do the HideSelection stuff right
8348 - Need to focus on rbutton mouse down. And redraw selection when
8349 right click is mouse upped.
8351 2006-08-29 Mike Kestner <mkestner@novell.com>
8353 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
8354 when SubItems.Count < Columns.Count. [Fixes #79167]
8356 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
8358 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
8360 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
8362 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
8363 from X. Only send based on ConfigureNotify if we don't have the
8364 correct location in hwnd (if the window manager moved us)
8366 2006-08-28 Mike Kestner <mkestner@novell.com>
8368 * ListView.cs: remove a TODO.
8369 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
8370 [Fixes ListView part of #79166]
8372 2006-08-28 Mike Kestner <mkestner@novell.com>
8374 * ListView.cs: move wheel handler to parent since it is focused
8375 instead of the item_control now. [Fixes #79177]
8377 2006-08-28 Mike Kestner <mkestner@novell.com>
8379 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
8380 when the control is focused. [Fixes #79171]
8382 2006-08-28 Mike Kestner <mkestner@novell.com>
8384 * ListView.cs: size the item and header controls for empty and
8386 * ThemeWin32Classic.cs: draw disabled backgrounds.
8389 2006-08-28 Chris Toshok <toshok@ximian.com>
8391 * Form.cs: remove unused "active_form" static field.
8393 * Hwnd.cs: lock around accesses to static windows collection.
8395 * Application.cs: lock threads in Exit ().
8397 2006-08-28 Chris Toshok <toshok@ximian.com>
8399 * NativeWindow.cs: lock around accesses to window_collection.
8401 2006-08-28 Chris Toshok <toshok@ximian.com>
8403 * Control.cs: err, fix this the right way, by locking on controls
8404 when using it. not by making it synchronized.
8406 2006-08-28 Chris Toshok <toshok@ximian.com>
8408 * Control.cs: make the static "controls" field synchronized, as it
8409 gets updated from multiple threads.
8411 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
8413 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
8414 Prevent other threads from exiting when calling thread sets quit state.
8415 * XEventQueue.cs: Added PostQuitState property
8417 2006-08-27 Chris Toshok <toshok@ximian.com>
8419 * AsyncMethodData.cs: add a slot for the window handle.
8421 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
8422 window (the destination control's window, not the foster window).
8424 * Control.cs (BeginInvokeInternal): store the window's handle in
8425 the AsyncMethodData.
8428 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
8431 - PostQuitMessage: Removed resetting S.D display handle, we might have
8432 another loop started after calling PostQuitMessage (Fixes #79119)
8433 - Created destructor to reset S.D handle
8435 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
8437 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
8439 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8441 * TextControl.cs (Insert): Update the caret position even if we don't
8442 have a handle yet, just don't call the driver in that case.
8443 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
8444 to the end of the new selection text (Fixes #79184)
8446 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8448 * Form.cs (Activate): Only activate if the handle is created)
8450 - Mark window as invisible when it's disposed
8451 - Check if window handle is created when setting window visible,
8452 instead of relying just on the is_created variable
8453 - Check if object is disposed when creating the control (Fixes #79155)
8455 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8457 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
8458 when allowing layout again. Otherwise we re-generate the anchoring
8459 distance to the border again and actually alter what the user wanted
8460 This is ugly, it'd be better if we used DisplayRectangle instead of
8461 ClientRectangle for Control.UpdateDistances, but that causes us to
8462 have other problems (initial anchoring positons would be wrong)
8465 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8468 - The size and location setters shouldn't go directly to
8469 SetBoundsCore, but to SetBounds, which triggers layout on the
8470 parent, then calls SetBoundsCore. (Related to fix for #78835)
8471 - SetBounds: Moved actual location update code into this function
8472 from SetBoundsCore, to match MS. Added call to PerformLayout if
8473 we have a parent (to trigger resizing of anchored parents if the
8474 child size has changed (see testcase for #78835)
8475 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
8477 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
8479 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8481 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
8482 System.Drawing when a toplevel window gets closed; there might
8483 be other toplevel windows belonging to the same app (Fixes #78052)
8485 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
8487 * FileDialog.cs: After reading FileDialog settings from mwf_config
8488 use Desktop prefix only if a real folder doesn't exist anymore.
8489 * FontDialog.cs: Added char sets.
8490 It is now possible to select the font, size or style with the
8493 2006-08-25 Kornél Pál <kornelpal@gmail.com>
8495 * PrintPreviewDialog.cs: Use assembly name constants.
8497 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8499 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
8500 scrollbar from whacking it's buttons)
8502 2006-08-24 Chris Toshok <toshok@ximian.com>
8504 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
8505 in this patch (aggregating setting Left/Top/Width/Height to
8506 setting Bounds on the scrollbars), but the crux of the fix is in
8507 Recalculate, where we scroll by the remaining scroll_position if
8508 we're hiding a scrollbar. The 2*$5 reward in the comment is
8511 2006-08-24 Jackson Harper <jackson@ximian.com>
8514 * MdiWindowManager.cs: If the form is made a non-mdi window we
8515 need to remove the form closed event so that closing forms works
8518 2006-08-24 Jackson Harper <jackson@ximian.com>
8520 * Control.cs: Make IsRecreating internal so that the driver can
8522 - Temporarily remove the Hide when controls are removed, its
8523 making a whole bunch of things not work because visibility isn't
8524 getting reset elsewhere correctly
8525 * Form.cs: Need to do a full handle recreation when the mdi parent
8527 * XplatUIX11.cs: If we are recreating handles don't dispose the
8528 HWNDs. What was happening is the handles were being recreated in
8529 SendWMDestroyMessages, but then flow continued on in that method
8530 and destroyed the new handles.
8532 2006-08-23 Jackson Harper <jackson@ximian.com>
8534 * Form.cs: MdiClient is always at the back of the bus
8535 * Control.cs: When the order of items in the collection is changed
8536 we need to reset the all_controls array
8537 - do the same sorta setup thats done when adding a control when a
8538 control is set on the collection.
8540 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8542 * TextBoxBase.cs (get_Text): Return an empty array if our document
8543 is empty (fixes #79052)
8545 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8547 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
8548 on WM_SYSCHAR messages (fixes #79053)
8550 2006-08-23 Chris Toshok <toshok@ximian.com>
8552 * DataGrid.cs: fix flickering when scrolling vertically.
8554 2006-08-23 Chris Toshok <toshok@ximian.com>
8556 * DataGrid.cs (EndEdit): only invalidate the row header when we
8559 2006-08-23 Chris Toshok <toshok@ximian.com>
8561 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
8562 methods. fixes the flicker when scrolling around.
8564 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8566 * FileDialog.cs: Making sure the control is created before we get a
8567 chance to use it with BeginInvoke (Fixes #79096)
8569 2006-08-23 Chris Toshok <toshok@ximian.com>
8571 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
8572 width to use when painting the rows.
8574 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8577 - Throw ArgumentException if a negative value is passed to SelectionLength
8578 - Update the selection end if start is moved. end needs to be always
8579 after start. (Fixes #79095)
8580 - Track selection length; MS keeps the selection length even if start
8581 is changed; reset on all other operations affection selection
8583 2006-08-22 Jackson Harper <jackson@ximian.com>
8585 * TreeView.cs: Make sure both scrollbars get displayed and sized
8586 correctly when the other bar is visible.
8587 - Use the original clip rectangle for checking if the area between
8588 the two scrollbars is visible, not the viewport adjusted clipping
8591 2006-08-22 Jackson Harper <jackson@ximian.com>
8593 * Binding.cs: We don't use IsBinding because it requires the
8594 control to be created, which really shouldn't be necessary just to
8595 set a property on the control.
8597 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8599 * ComboBox.cs: Some CB.ObjectCollection methods must throw
8600 ArgumentNullReferenceException when the argument is null.
8602 2006-08-21 Jackson Harper <jackson@ximian.com>
8604 * Timer.cs: Track the thread that the timer is started in (NOT
8605 CREATED), this way messages for it will only be triggered on its
8607 * XEventQueue.cs: Track the timers here, this makes timers per
8609 * XplatUIX11.cs: The timers are moved to the XEventQueue.
8611 2006-08-19 Chris Toshok <toshok@ximian.com>
8613 * XplatUIX11.cs: after further communication with pdb, we get the
8614 best of both worlds. SetZOrder working for un-Mapped windows, and
8615 no X errors for un-mapped windows.
8617 2006-08-19 Chris Toshok <toshok@ximian.com>
8619 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
8620 as it was causing pdn toolbars to not have the correct stacking.
8622 2006-08-18 Mike Kestner <mkestner@novell.com>
8624 * ListView.cs : guard against negative ClientArea.Width in scrollbar
8625 calculation. Not sure why control should ever be setting a negative
8626 width though. Fixes #78931.
8628 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8630 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
8631 null items in ObjectCollection class.
8632 * ListBox.cs.: Likewise.
8634 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
8636 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
8637 as the base method in ThemeWin32Classic should work fine.
8640 2006-08-18 Jackson Harper <jackson@ximian.com>
8642 * Binding.cs: When validating if the value entered doesn't convert
8643 properly reset to the old value.
8644 * RadioButton.cs: Don't fire click when we get focus.
8646 2006-08-18 Jackson Harper <jackson@ximian.com>
8648 * FileDialog.cs: Paint the selection on the directory combobox the
8651 2006-08-17 Jackson Harper <jackson@ximian.com>
8653 * ErrorProvider.cs: Don't allow the error control to be selected.
8654 * Control.cs: Don't send the SetFocus messages, the control
8655 activation will do this, and if we do it blindly here validation
8658 2006-08-17 Jackson Harper <jackson@ximian.com>
8661 * ContainerControl.cs: Make validation events fire in the correct
8662 order. TODO: For some reason the first validation event is not
8665 2006-08-17 Mike Kestner <mkestner@novell.com>
8667 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
8669 2006-08-17 Mike Kestner <mkestner@novell.com>
8671 * ComboBox.cs : implement scroll wheel support for popped-down
8672 state. Fixes #78945.
8674 2006-08-17 Jackson Harper <jackson@ximian.com>
8676 * TreeView.cs: Specify treeview actions (old patch that didn't get
8677 committed for some reason).
8678 - Don't let the mouse wheel scroll us too far. Just want to make
8679 the bottom node visible, not scroll it all the ways to the top.
8681 2006-08-17 Jackson Harper <jackson@ximian.com>
8683 * XplatUIX11.cs: Mouse wheel events go to the focused window.
8685 2006-08-17 Mike Kestner <mkestner@novell.com>
8687 * ComboBox.cs : don't do mouseover selection in simple mode.
8689 2006-08-16 Jackson Harper <jackson@ximian.com>
8691 * Form.cs: Fire the closing events for all the mdi child windows
8692 when a window is closed. If the cancel args are set to true, the
8693 main window still gets the event fired, but it doesn't not close.
8694 * MdiWindowManager.cs: Do this closing cleanup in a Closed
8695 handler, instead of when the button is clicked, so cancelling the
8696 close works correctly.
8697 * ComboBox.cs: Send the mouse down to the scrollbar.
8699 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8701 * ListBox.cs: When passing 'null' to SelectedItem,
8702 set SelectedIndex to -1, to unselect items. This is the
8703 observed behaviour in .Net.
8705 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
8707 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
8708 MS flags saying there won't be any. (fixes #78800)
8709 * Control.cs (HandleClick): Made virtual
8711 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
8713 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
8714 cultures. Fixed bug #78399.
8716 2006-08-16 Jackson Harper <jackson@ximian.com>
8718 * Form.cs: Use the MdiClients MdiChildren property to access
8719 MdiChildren instead of creating the array from the child controls.
8720 * MdiClient.cs: Maintain a separate array of the mdi children, so
8721 that insertion order is maintained when the Z-order is changed.
8723 2006-08-16 Mike Kestner <mkestner@novell.com>
8725 * ListView.cs : add an ItemComparer and default to it for sorting.
8726 Fixes #79076, but sorting needs a complete overhaul to be compat with
8729 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8731 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
8733 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8735 * Hwnd.cs (Mapped): Properly traverse the tree
8737 2006-08-15 Chris Toshok <toshok@ximian.com>
8739 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
8740 pass manager.Current.GetType() to ParseData. It has to be the
8741 property type. So, hold off doing the ParseData until we're in
8742 SetPropertyValue where we know the type. This fixes the crash in
8743 #78821 but the textbox is still empty.
8745 2006-08-15 Chris Toshok <toshok@ximian.com>
8748 - when we're scrolling, only call Edit() again if the
8749 current cell is still unobscured. Fixes bug #78927.
8750 - when handling mousedown on a cell, ensure the cell is visible
8751 before calling Edit.
8752 - remove the properties from DataGridRow, and remove the
8753 DataGridParentRow class altogether.
8756 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8758 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
8759 fire OnTextChanged by ourselves. There's no point calling base,
8760 we don't set the base value anywhere else. Fixes #78773.
8762 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8764 * ListBox.cs: Call CollectionChanged when modifying
8765 an item from Items indexer, to update the actual items
8768 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8770 * PrintDialog.cs: Small fixes for focus and a pair of checks,
8771 to match .Net behaviour.
8773 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8775 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
8777 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8779 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
8781 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
8783 * MessageBox.cs: Prevent potential NRE exception.
8784 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
8786 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
8788 * MessageBox.cs: Calculate the owner of a messagebox, also make
8789 it topmost. Fixes #78753
8791 2006-08-14 Chris Toshok <toshok@ximian.com>
8793 * XplatUIX11.cs: A couple of fixes so that metacity will let us
8794 programmatically move windows. first, set the PPosition hint as
8795 well as the USPosition hint. Second include some code from pdb
8796 that sets the window type to NORMAL when we set the transient for
8797 hint. This is because, in the absence of a window type, metacity
8798 thinks any window with TransientFor set is a dialog, and refuses
8799 to let us move it programmatically. fascists.
8801 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
8803 * XplatUIX11.cs: When setting normal hints, take into consideration
8804 an different hints previously set so we don't delete them (fixes #78866)
8806 2006-08-12 Chris Toshok <toshok@ximian.com>
8808 * ToolBarButton.cs: make Layout return a boolean, if something to
8809 do with the button's layout changed.
8812 - add another parameter to Redraw, @force, which all existing
8814 - make the Layout function return a boolean which is true if the
8815 layout has actually changed. Redraw now uses this (and @force)
8816 to determine when to invalidate. At present the only place
8817 where @force can be false is the call from OnResize, when
8818 background_image == null. So, resizing a toolbar when the
8819 layout doesn't change results in no drawing.
8821 2006-08-12 Chris Toshok <toshok@ximian.com>
8823 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
8824 the VScrollBar and HScrollbar reversed. oops.
8826 * DataGrid.cs: fix the logic that assigns sizes to the implicit
8827 scrollbars. we were assigning them twice (once in
8828 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
8829 therefore causing two scrollbar resizes (and redraws?) to happen
8832 2006-08-12 Chris Toshok <toshok@ximian.com>
8834 * ToolBarButton.cs: redraw the entire button if the theme tells us
8837 * Theme.cs: add ToolBarInvalidateEntireButton.
8839 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
8840 buttons, just the border.
8842 * ThemeNice.cs: redraw the entire toolbar button since we need to
8843 draw the highlight image.
8845 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
8846 we need to redraw the entire button (not just the border).
8848 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
8850 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
8851 for vertical bars. Fixes the mismatches shown by #78513
8853 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
8855 * FileDialog.cs: If a saved/remembered path doesn't exist
8856 anymore, fall back to "Desktop".
8858 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
8860 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
8861 parent. It's apparently legal to not have one
8863 - SetZOrder: Don't try to set Z-Order on an unmapped window
8864 - CreateWindow: 0,0 are legal coordinates for a window. don't move
8865 it unless the coordinates are negative
8867 2006-08-10 Mike Kestner <mkestner@novell.com>
8869 * ListControl.cs: allow null for DataSource. Clear DisplayMember
8870 when setting to null per msdn docs. Fixes #78854.
8872 2006-08-10 Chris Toshok <toshok@ximian.com>
8874 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
8875 flickering by setting a clip rectangle on the Graphics when we
8876 need to redraw just a particular menuitem. Also, rename "OnClick"
8877 to "OnMouseDown" to reflect what it actually is.
8879 * Form.cs: track the OnMouseDown change.
8881 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
8883 * CommonDialog.cs: Properly inherit the CreateParams from the form
8884 and only change what we need. Fixes #78865
8886 2006-08-10 Chris Toshok <toshok@ximian.com>
8888 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
8889 flickering in flat mode (and most of the flickering in general) by
8890 only invalidating the button border (and not the entire rectangle)
8891 when the state changes. A couple of cases still flicker:
8892 ToggleButtons, and the dropdown arrow case when the user mouse
8895 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
8897 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
8898 for german keyboards. Numlock state shouldn't affect the behaviour
8899 of the Del key. Fixes bug #78291.
8901 2006-08-10 Chris Toshok <toshok@ximian.com>
8903 * ListControl.cs: remove the items.Clear line from BindDataItems,
8904 as this is the first thing done by both subclasses in their
8905 SetItemsCore overrides. Also, add a ItemChanged handler, and when
8906 passed -1, refresh the list. This gets databinding working when
8907 the datasource is set on the list before the datasource is
8908 populated (as in wf-apps/ReportBuilder.)
8910 * ComboBox.cs: remove the argument to BindDataItems. This call
8911 should really go away, and be initiated by the ListControl code.
8915 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
8917 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
8918 if no data is in the document when the control is displayed
8920 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
8922 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
8925 - PositionCaret: Allow positioning of caret but don't call methods
8926 requiring a handle if the window isn't created yet
8927 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
8928 - owner_HandleCreated: Don't position the caret, just update it's
8929 location. User might have already set a different position
8931 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
8933 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
8934 windows. Screws up the returned coordinates for child windows.
8935 Fixes #78825. I'm hoping this doesn't break something, since the
8936 code was explicitly put in 8 months ago, but no bug was attached.
8937 Menus still seem to work properly.
8939 2006-08-08 Chris Toshok <toshok@ximian.com>
8941 * DataGrid.cs: make BeginInit/EndInit actually do what they're
8942 supposed to do - delay data binding until the EndInit call. Also,
8943 make the table style collection's CollectionChangeAction.Refresh
8946 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
8947 (with action = Refresh) when a consituent table's MappingName is
8950 2006-08-08 Chris Toshok <toshok@ximian.com>
8952 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
8953 Invalidate, since changing the text can change the size of the all
8956 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
8958 * Form.cs (AddOwnedForm): Still need to add the form to our listif
8959 we don't have it yet
8961 2006-08-08 Chris Toshok <toshok@ximian.com>
8963 * PrintControllerWithStatusDialog.cs: don't .Close() the status
8964 dialog, as this causes X errors later on, since we actually
8965 destroy the window. Instead, .Hide() it.
8967 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
8969 * ComboBox.cs: Added focus reflection for popup window
8971 - Removed transient setting for non-app windows for now, not sure it
8973 - Fixed logic checking if we have captions when deciding
8974 override_redirect, WS_CAPTION is two bits and a 0 check was not
8976 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
8979 - AddOwnedForm: Don't just add the form to the list, call the property
8980 to ensure the driver is informed about the ownership as well
8981 - CreateHandle: Set the TopMost status in the driver if we have an owner
8982 * XplatUI.cs: Fixed debug statement
8984 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
8985 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
8986 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
8987 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
8988 TrackBarRenderer.cs: Make constructor private.
8989 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
8990 * ProfessionalColorTable.cs: Make properties virtual.
8992 2006-08-06 Duncan Mak <duncan@novell.com>
8994 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
8997 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
8998 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
8999 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
9000 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
9001 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
9002 Initial import of new 2.0 classes.
9004 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
9005 * Application.cs: Add 2.0 VisualStyles properties.
9007 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
9008 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9009 XplatUIX11.cs: Create property to allow access to existing private
9010 variable "themes_enabled"
9012 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9014 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
9015 file size, as otherwise our class libraries fail using windows. Fixes
9018 2006-08-04 Jackson Harper <jackson@ximian.com>
9021 * XplatUIX11.cs: Move the toolwindow window manager creation into
9022 the X11 driver, this way on win32 we can let windows create/handle
9025 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9027 * PrintDialog.cs: Remove some redundant checks, add some others,
9028 clean some code, and move the focus to the text boxes when the
9029 values are incorrect.
9031 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
9033 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
9035 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
9037 * NumericUpDown.cs: Setting the Minimum and Maximum is now
9038 handled correctly. Fixes bug #79001.
9040 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9042 * PrintDialog.cs: The "Copies" numeric up down must have
9043 set the Minimum property to 1; only if the value is bigger
9044 than 1, activate "Collate" check box. This is the behaviour of .Net.
9045 Also modify the Document elements only if it is not null.
9047 2006-08-03 Jackson Harper <jackson@ximian.com>
9049 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
9050 length. (We have a larger array then actual node count).
9052 2006-08-03 Jackson Harper <jackson@ximian.com>
9054 * ComboBox.cs: Don't show selection by default.
9055 - The SelectAll isn't needed here, since the focus code should do
9057 - DDL style lists to manual selection drawing, so when they
9058 get/lose focus they have to invalidate.
9060 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
9062 * TextBoxBase.cs: Don't always show all selections by default.
9064 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
9065 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
9066 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
9067 Fixed various typos.
9069 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
9071 * Control.cs: Removing the controls in a ControlCollection with
9072 Clear now hides the controls as expected. Fixes bug #78804.
9074 2006-08-03 Jackson Harper <jackson@ximian.com>
9076 * Control.cs: Revert previous focus patch, it breaks reflector.
9078 2006-08-03 Jackson Harper <jackson@ximian.com>
9080 * ComboBox.cs: Cleanup selection and focus with the combobox.
9081 This also eliminates some duplicated keyboard code, since now
9082 everything is handled by the main class.
9083 - Make list selection work on mouse up instead of down, to match
9086 2006-08-02 Jackson Harper <jackson@ximian.com>
9088 * Control.cs: Setting focus needs to go through the whole
9089 selection mechanism.
9091 2006-08-02 Chris Toshok <toshok@ximian.com>
9093 * PrintPreviewDialog.cs: change MinimumSize to use
9094 base.MinimumSize so it works.
9096 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
9099 - UpdateCaret: Added sanity check in case caret isn't defined yet
9100 - Line.Delete: Now updating selection and caret markers if we're
9101 transfering a node (Properly fixes #78323)
9102 - SetSelectionEnd: Added sanity check
9103 * TextBoxBase.cs: Removed broken attempt to fix #78323
9105 2006-08-01 Chris Toshok <toshok@ximian.com>
9107 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
9108 Close() call is handled in Form, not here.
9110 2006-08-01 Chris Toshok <toshok@ximian.com>
9112 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
9115 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
9116 for sizes < 100% zoom. The code now aggressively attempts to keep
9117 from calling document.Print (), and tries not to use the scaling
9118 g.DrawImage whenever possible (it still does if you scale to >
9119 100%, since usually that involves huge images).
9121 * PrintPreviewControl.cs: hook up the close button.
9123 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
9124 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
9125 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
9126 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
9127 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
9128 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
9129 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
9130 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
9131 Removed [Serializable] for 2.0 Event Handlers.
9133 2006-07-31 Jackson Harper <jackson@ximian.com>
9135 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
9136 * TextControl.cs: Uncomment out the body of this method.
9138 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
9140 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
9143 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9145 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
9146 that embed TextBox and need selections visible even if textbox is not
9147 focused to enforce that behaviour.
9148 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
9151 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9154 - Added new SetSelectionStart/SetSelectionEnd overloads
9155 - Fixed viewport width assignment to be accurate
9156 - Adjusted alignment line shift calculations to allow cursor on right
9157 aligned lines to be always visible at the right border (like MS)
9159 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
9160 - TextBoxBase_SizeChanged: recalculating canvas on size changes
9161 - CalculateScrollBars: Use ViewPort size instead of window size, to
9162 properly consider space occupied by the border and scrollbars
9164 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
9165 calculations; no longer leaves artifacts
9166 - CaretMoved: Adjusted window scrolling to match MS and fixed several
9167 calculation bugs (Still missing right/center align calculations)
9169 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9171 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
9172 use of both scroll rect and clip rect, as they do the same.
9174 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9176 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
9177 in the event handler (fixes #78912)
9179 2006-07-31 Chris Toshok <toshok@ximian.com>
9181 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
9182 grid.ListManager.Count, since grid.ListManager might be null.
9183 This of course begs the question "why are we drawing rows for a
9184 grid with no list manager (and therefor no rows)?" Fixes the
9185 crash in bug #78929.
9187 2006-07-31 Chris Toshok <toshok@ximian.com>
9189 * RelatedPropertyManager.cs: Don't always chain up to the parent
9190 ctor. instead, call SetDataSource if the parent's position is !=
9191 -1. Fixes the crash in #78822.
9193 2006-07-31 Chris Toshok <toshok@ximian.com>
9195 * DataGrid.cs (get_ListManager): use field instead of property
9196 accessors for datasource and datamember.
9197 (RowsCount): make internal again.
9198 (OnMouseDown): end edits before resizing columns/rows.
9199 (OnMouseUp): restart edits after resizing columns/rows.
9201 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
9203 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
9204 This fixes the situation where the last set cursor is displayed
9205 whenever the mouse is over scrollbars.
9207 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9209 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
9210 Document properties, as well as initial values.
9212 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
9214 * XplatUIWin32.cs (SetBorderStyle): Setting both border
9215 and ClientEdge results in a 3-pixel border, which is
9218 2006-07-28 Jackson Harper <jackson@ximian.com>
9220 * TreeNodeCollection.cs: Fix the clear method.
9221 - Fix the Shrink also
9223 2006-07-27 Jackson Harper <jackson@ximian.com>
9225 * TreeView.cs: Make sure the visible order is computed when we
9226 attempt to size the scrollbars (for trees that mess with the
9227 scrolling when they shouldn't.
9228 - Make sure to give the scrollbars valid values.
9230 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
9232 * XplatUIX11.cs: Move motion compression code to where it
9233 has less performance impact
9235 2006-07-26 Jackson Harper <jackson@ximian.com>
9237 * UpDownBase.cs: When the control is selected make the child
9238 controls non selectable, so that a click on them won't do a
9239 focus/unfocus cycle.
9240 - Don't give focus to the text box when the spinner is selected.
9241 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
9243 2006-07-26 Chris Toshok <toshok@ximian.com>
9245 * ThemeWin32Classic.cs: add print preview rendering. I'm not
9246 satisfied with this solution. If the bitmaps are small, we should
9247 just cache them in the PrintPreviewDialog and draw them here.
9248 Also, the layout is broken for the 2-up and 3-up cases.
9250 * Theme.cs: add PrintPReviewControlPaint.
9252 * PrintPreviewDialog.cs: first pass implementation.
9254 * PrintPreviewControl.cs: first pass implementation. No
9257 * PrintDialog.cs: only validate fields if that particular portion
9258 of the UI is enabled. Also, set the document's controller to a
9259 PrintControllerWithStatusDialog wrapping the document's print
9262 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
9263 bring up a SaveFileDialog (i hope we don't want to match the
9264 behavior of the crappy windows file entry) and set the
9265 PrinterSettings.PrintFileName accordingly.
9267 2006-07-26 Jackson Harper <jackson@ximian.com>
9269 * ContainerControl.cs: Add a field that disables auto selecting
9270 the next control in a container when the container is activated.
9271 * UpDownBase.cs: Don't select the text box when the up down is
9274 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
9276 * XEventQueue.cs: Added methods for peeking (used for compression
9277 of successive events)
9278 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
9279 mouse move events (fixes #78732)
9281 2006-07-25 Jackson Harper <jackson@ximian.com>
9283 * UpDownBase.cs: Use an internal class for the textbox so that we
9284 can control focus. the updown control should always have focus,
9285 if either the text area or the buttons are clicked.
9286 - Send the key messages to the textbox, since it never actually
9288 - Activate and decativate the textbox caret.
9290 2006-07-24 Jackson Harper <jackson@ximian.com>
9292 * Control.cs: Use the directed select when selecting a control,
9293 this way the container controls override will get called and the
9294 whole ActiveControl chain will get triggered. TODO: probably need
9295 to make sure this gets done everywhere instead of the old
9297 * ContainerControl.cs: Implement the directed Select method to
9298 find and activate the correct child control.
9300 2006-07-22 Mike Kestner <mkestner@novell.com>
9302 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
9303 menu handling code so that clicks without a grab work too.
9306 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
9308 * FileDialog.cs: Enable the BackButton when dirstack has one element.
9309 Added some small optimizations.
9311 2006-07-21 Matt Hargett <matt@use.net>
9313 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
9315 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
9317 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
9318 tests pass and match MS in some strange border cases.
9320 2006-07-21 Chris Toshok <toshok@ximian.com>
9322 * ThemeWin32Classic.cs: handle drawing of the relation links and
9325 * Theme.cs: change args to DataGridPaintParentRow.
9327 * DataGrid.cs: Don't use controls for the relation links and
9328 parent buttons, so we have to handle all their interactions in
9329 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
9330 when we're navigating through child tables, so we can reinstate
9331 selection, expanded state, current cell, etc.
9333 2006-07-20 Chris Toshok <toshok@ximian.com>
9335 * ToolBar.cs: When we redraw a button, for whatever reason,
9336 there's no reason to redraw the entire toolbar. Also, don't call
9337 Control.Refresh from within Redraw, as it's much heavier than
9338 Invalidate (which is really what we want).
9340 2006-07-20 Chris Toshok <toshok@ximian.com>
9342 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
9343 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
9344 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
9345 traces from within a debug IBindingList datasource
9346 (in mono/winforms/datagrid) for *days*, I've finally gotten things
9347 to work in a similar fashion.
9349 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9351 * ListBox.cs: Don't call Sort () when setting
9352 the Sorted property to false (avoid an unnecessary sort).
9354 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9356 * ListControl.cs: DataSource should throw an ArgumentException
9357 instead of a normal exception when the argument is not of the
9360 2006-07-20 Mike Kestner <mkestner@novell.com>
9362 * Control.cs: add InternalPreProcessMessage to allow us to steal
9363 key events before MWF gets its paws on them. Adapted from a
9365 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
9366 up/down/left/right navigation. Override the new internal control
9367 method to steal the events since they never make it to WndProc.
9368 * ToolBarButton.cs: don't worry about pushed when setting hilight
9369 since the drawing code prefers pushed to hilight. Invalidate on
9370 Hilight changes. Fixes #78547 and #78525.
9372 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
9374 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
9375 the canvas size. Fixes #78868
9377 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
9379 * Splitter.cs: Track requested split position until first layout
9380 is performed. Fixes #78871
9382 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
9384 * Application.cs: Removed code that forces 1.x for the version
9385 number if the version started with 0. Not sure why that code was
9386 there and I couldn't find any bugs that indicated we needed it.
9389 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
9391 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
9392 ResetDefaults(), just write some output to the console until it's
9393 implemented. Fixes bug #78907 for now. Eliminated two warnings.
9395 2006-07-19 Jonathan Chambers <joncham@gmail.com>
9397 * PropertyGridView.cs: set StartPosition of drop down forms
9398 so they appear in correct initial spot. Fixes #78190.
9400 2006-07-19 Mike Kestner <mkestner@novell.com>
9402 * ThemeWin32Classic.cs: use parent background color when drawing
9403 flat toolbars. Restructure the conditionals to make sure non-flat
9404 non-Divider toolbars are filled too. Fixes #78837.
9406 2006-07-19 Mike Kestner <mkestner@novell.com>
9408 * ListBox.cs: Sort on collection changes even if the handle
9409 isn't created yet. Fixes #78813.
9411 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9413 * ListControl.cs: DisplayMember should never be null,
9414 and now we assign String.Empty when null is passed to it (this
9417 2006-07-17 Mike Kestner <mkestner@novell.com>
9419 * ListViewItem.cs: restructure Font and subitem Font handling
9420 to hold a specific font and refer back to owner on null.
9423 2006-07-17 Mike Kestner <mkestner@novell.com>
9425 * ToolBar.cs: bandaid for side-effect of previous patch which was
9426 discarding explicit heights for non-AutoSize toolbars. Need to
9427 extend my format tester to deal with AutoSize=false. Fixes #78864.
9429 2006-07-15 Jackson Harper <jackson@ximian.com>
9431 * LabelEditTextBox.cs:
9432 * TreeView.cs: Use a new LabelEdit class for node editing, this
9433 class automatically 'closes' itself when it gets the enter key or
9435 - Use the client rectangle when setting the trees scrollbars, so
9436 border style is taken into account.
9438 2006-07-14 Jackson Harper <jackson@ximian.com>
9441 * TreeView.cs: Make the editing work similar to MSs, firing the
9442 events correctly and ending edits correctly.
9444 2006-07-14 Mike Kestner <mkestner@novell.com>
9447 * ToolBar.cs: layout restructuring and redraw enhancements to support
9448 formatting changes gracefully, like setting TextAlign, ImageList,
9449 ButtonSize, and Appearance. Handles explicit button sizing quirks
9450 of the MS controls. Things like flat toolbars ignoring button size
9451 but becoming constant sized at the largest button's size. Normal
9452 toolbars with an image set cannot be shrunk smaller than the image,
9453 but text can be clipped/ignored.
9454 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
9455 is zero. Seems like DrawString should be smart enough to not put
9456 anything on screen though. Also trim labels and ellipsize at the char
9458 Fixes #78711 and #78483.
9460 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
9462 * FolderBrowserDialog.cs: Disable "New Folder" button and
9463 "New Folder" contextmenu menuitem if a folder like "My Computer"
9466 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
9468 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
9469 * FolderBrowserDialog.cs:
9470 - Use MWFConfig to store and read size and position settings
9471 - Added code to create a new folder (button or context menu).
9472 Use TreeView labeledit to change the name of the new folder.
9474 2006-07-14 Jackson Harper <jackson@ximian.com>
9476 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
9477 when the tree is scrolled we end editing.
9479 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
9481 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
9484 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
9486 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
9487 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
9488 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
9489 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
9490 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
9491 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
9492 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
9493 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
9494 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
9495 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
9496 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
9497 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
9498 ListViewItemSelectionChangedEventHandler.cs,
9499 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
9500 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
9501 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
9502 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
9503 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
9504 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
9505 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
9506 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
9507 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
9508 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
9509 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
9510 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
9511 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
9512 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
9513 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
9514 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
9515 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
9516 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
9517 WebBrowserNavigatingEventHandler.cs,
9518 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
9520 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
9522 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
9523 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
9524 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
9525 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
9526 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
9527 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
9528 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
9529 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
9530 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
9531 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
9532 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
9533 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
9534 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
9535 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
9536 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
9537 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
9538 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
9539 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
9540 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
9541 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
9542 ListViewItemStates.cs, MaskFormat.cs: Added
9544 2006-07-13 Jonathan Chambers <joncham@gmail.com>
9546 * PropertyGridView.cs: Fix keyboard navigation of drop down.
9547 Patch from eno for bug 78558.
9549 2006-07-13 Jackson Harper <jackson@ximian.com>
9551 * TreeView.cs: When an edit is finished make sure that the
9552 selected node is visible.
9553 - When setting the top/bottom use the scrollbars is_visible, so
9554 everything will be set correctly even if the tree isn't visible
9557 2006-07-13 Jackson Harper <jackson@ximian.com>
9559 * ComboBox.cs: Revert the item->index part of my previous patch.
9560 * TreeView.cs: Use LostFocus instead of Leave for detecting when
9561 the edit box has lost focus (duh).
9562 - Just make the edit box not visible when we get return, that will
9563 take the focus, which will call EndEdit
9564 * TreeNode.cs When we start editing, notify the treeview.
9566 2006-07-12 Jackson Harper <jackson@ximian.com>
9568 * ComboBox.cs: Clear out old items before setting the item list.
9569 This prevents databound controls from having their items added
9571 - Switch the combobox to use indices whereever possible instead of
9572 using Item's. This allows usto navigate through lists that have
9573 more then one item with the same string value (ie a, b, b, a).
9574 - Scroll the listboxes scrollbar when a non visible item is
9576 - Allow keypress to cycle through all the possible values. For
9577 example if you have b1, b2, b3 and hold down the B key all the
9578 values will be cycled through.
9580 2006-07-12 Jackson Harper <jackson@ximian.com>
9583 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
9584 this using the internal methods.
9585 * Control.cs: Add OnGotFocusInternal. A new method that allows
9586 controls to "override" OnGotFocus and change focus behavior if
9588 - Same thing for LostFocus
9589 * ComboBox.cs: Pass off focus to the text control properly.
9591 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
9593 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
9594 * FolderBrowserDialog.cs: Almost a complete rewrite.
9595 - Better support for Environment.Specialfolders
9596 - Added support for MWFVFS
9597 - Made setting SelectedPath work
9599 2006-07-12 Jackson Harper <jackson@ximian.com>
9601 * Control.cs: Optimze getting all the controls.
9603 2006-07-11 Jackson Harper <jackson@ximian.com>
9605 * ContainerControl.cs: Override SETFOCUS in the container control,
9606 so that it is not selected on mouse click.
9608 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
9610 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
9611 Hopefully we will have a better way once all of focus is complete.
9613 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
9615 * ThemeWin32Classic.cs: Commented out some debug code and fixed
9616 a compile error with csc.
9618 2006-07-11 Jackson Harper <jackson@ximian.com>
9620 * Control.cs: When hiding a control only select the next control
9621 if the current control was focused.
9622 - Don't handle enter/leave when setting/killing focus, this is
9623 done by the container control.
9624 - Remove is_selected, it's not needed anymore.
9625 - Add utility methods for selecting a child control, and for
9626 firing the Enter/Leave events.
9627 * ContainerControl.cs: When a control is activated fire the
9629 - Don't wrap when processing the tab key, so that focus can be
9630 moved outside of the container.
9631 - Use the correct active control
9633 2006-07-11 Jackson Harper <jackson@ximian.com>
9635 * ComboBox.cs: Remove some debug code that was blinding me.
9636 * UpDownBase.cs: These controls actually aren't implicit, they are
9637 visible to the user.
9639 2006-07-10 Chris Toshok <toshok@ximian.com>
9641 * DataGrid.cs: move back to the is_adding boolean field. god i
9642 hate this is_editing/is_adding/is_changing stuff.
9644 2006-07-10 Chris Toshok <toshok@ximian.com>
9646 * DataGridTableStyle.cs: just check if the property type is bool.
9647 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
9648 Don't use CanRenderType.
9650 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
9651 if our text == NullText. Remove CanRenderType.
9653 * DataGridBoolColumn.cs: nuke CanRenderType.
9655 * DataGrid.cs: reenable some code to end the current edit inside
9656 of set_CurrentCell. This fixes the other 1.1.16 regression.
9657 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
9658 Also, remove the visible_row_count arg from CalcRowHeaders, since
9659 we don't need to worry about the actual height of the area.
9661 2006-07-10 Chris Toshok <toshok@ximian.com>
9663 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
9666 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
9667 the real sense of the IsInEditOrNavigateMode property (true =
9668 navigate, false = edit). Also, update OnKeyPress to reflect this.
9670 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
9671 column style exists, we still need to set its property descriptor
9672 to match up with our list manager.
9674 2006-07-10 Chris Toshok <toshok@ximian.com>
9676 * ThemeWin32Classic.cs: implement the new row/header painting
9677 approach. The parent row painting will likely go away and
9678 replaced with label controls, but the rest seems to work ok (and
9681 * Theme.cs: change the way we draw datagrid rows. we don't draw
9682 the row headers as a block now. Instead we draw them in the
9683 normal draw-row loop. Add some calls for drawing parent rows and
9686 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
9687 a default table style. Set the defaults from ThemeEngine.Current,
9688 not SystemColors. Fix lots of misc issues with property setters.
9690 * DataGrid.cs: move loads of style information out of this class
9691 as it's being duplicated with DataGridTableStyle. keep track of a
9692 special DataGridTableStyle for the properties we used to mirror
9693 here. Switch all the style properties to access this table style
9694 instead of instance fields of this class. Also add a internal
9695 class to represent parent rows (more needs to be stored here, like
9696 the selection state from the parent table, as well as the
9697 expansion state.) Also, for datasources with relations, do the
9698 right thing for collapse/expand, and add support for the
9699 navigation/parent row buttons.
9701 Lastly, fix the crash in the 1.1.16 build.
9703 * GridTableStylesCollection.cs: make the explicit interface
9704 implementations call the class's methods as opposed to duplicating
9707 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
9708 0 so the text doesn't jump around when we move the cursor.
9710 2006-07-10 Jackson Harper <jackson@ximian.com>
9713 * ListBox.cs: Match MS's ToString (this makes debugging focus
9714 stuff infinitely easier).
9716 2006-07-10 Jackson Harper <jackson@ximian.com>
9718 * Control.cs (SelectNextControl): When checking the control's
9719 parent use this instead of ctrl.parent so that null can be passed
9720 to SelectNextControl. (I have unit tests for this).
9721 - Remove unused var.
9723 2006-07-10 Chris Toshok <toshok@ximian.com>
9725 * CurrencyManager.cs: correct one regression, the removal of the
9726 finalType field. Also, add a MonoTODO on CanAddRows, implement
9727 Refresh() correctly, and fix some event emission in
9730 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
9732 * FileDialog.cs: Don't use brackets for new folders if they exist
9733 under *nix. Instead use -(number of existing folders +1).
9735 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
9738 - Fixed really nasty bug #78771
9739 - Don't block the whole GUI when reading directories with a lot of
9740 entries. Use an other thread instead and call BeginInvoke to
9741 update the ListView in MWFFileView
9743 2006-07-07 Chris Toshok <toshok@ximian.com>
9745 * Control.cs (Dispose): release any Capture when disposing.
9747 2006-07-07 Chris Toshok <toshok@ximian.com>
9749 * LinkLabel.cs (Select): if we chain up to the parent, set
9750 focused_index to -1 so we'll search for the first available link
9751 the next time the user tabs into us. Also, if the direction is
9752 backward and focused_index == -1, start the search from the last
9755 2006-07-07 Chris Toshok <toshok@ximian.com>
9757 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
9758 is beyond the end of the text, don't do anything.
9759 (CreateLinkPieces): set our ControlStyles.Selectable based on
9760 whether or not we have any links.
9761 (Link.Invalidate): use a loop instead of foreach.
9762 (Link.set_Start): null out owner.sorted_links so it'll be
9763 recreated by CreateLinkPieces.
9765 2006-07-06 Chris Toshok <toshok@ximian.com>
9767 * LinkLabel.cs: revert the SetStyle change.
9769 2006-07-06 Chris Toshok <toshok@ximian.com>
9771 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
9772 (OnEnableChanged): s/Refresh/Invalidate
9773 (OnGotFocus): if we have a focused index already, refocus it (so
9774 if we mouse out/in to the window it'll focus the right link).
9775 (OnKeyDown): move the tab handling out of here.
9776 (OnLostFocus): don't set focused_index to -1, so we can refocus it
9778 (OnMouseDown): don't Capture here - Control handles it. Also,
9779 focus the active link.
9780 (OnMouseUp): don't deal with Capture.
9781 (OnPaintBackgroundInternal): remove.
9782 (OnTextAlignChanged): CreateLinkPieces before calling the
9783 superclass's method.
9784 (OnTextChanged): call CreateLinkPieces before calling superclass's
9786 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
9788 (Select): implement this, moving the selection between different
9789 links, and call parent.SelectNextControl if we don't have another
9790 link to focus in the given direction.
9791 (CreateLinkPieces): call Invalidate instead of Refresh.
9793 2006-07-06 Chris Toshok <toshok@ximian.com>
9795 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
9796 new LinkLabel internals.
9798 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
9799 over pieces looking for active/focused/etc links. also, deal with
9800 runs of text (and links) with embedded \n's in them, and use
9801 MeasureCharacterRanges instead of MeasureString to figure out the
9802 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
9805 2006-07-04 Jackson Harper <jackson@ximian.com>
9807 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
9808 XKB or key auto repeat, do it manually. Without key auto repeat,
9809 when a key is held down we get key press, key release, key press,
9810 key release, ... with auto repeat we get key press, key press, key
9811 press ..., and then a release when the key is actually released.
9813 2006-07-03 Jackson Harper <jackson@ximian.com>
9816 * ThemeWin32Classic.cs: Tabs do not obey normal background color
9817 rules, they are always control color regardless of the background
9820 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
9822 * FileDialog.cs: Added internal class MWFConfig.
9823 Removed Registry support and replaced it with support for the new
9824 MWFConfig class. See MWFConfig comments for more information.
9826 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
9828 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
9829 rectangle. Added some patches from eno from bug #78490 and fixed
9830 the arrow position for small up and down CPDrawScrollButtons.
9832 2006-06-30 Jackson Harper <jackson@ximian.com>
9834 * InternalWindowManager.cs: Remove some debug code.
9835 * Form.cs: When an MdiParent is set to null, the window is
9836 "detatched" and becomes a normal window.
9837 * MdiClient.cs: Don't bring the new child form to the front until
9838 it is activated (setting it as active does this), this makes the
9839 previously active forms titlebar get redrawn as inactive.
9841 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
9843 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
9846 2006-06-29 Mike Kestner <mkestner@novell.com>
9848 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
9849 arrow in keynav state. Fixes #78682.
9851 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
9853 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
9854 order (fixes #78393)
9856 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
9858 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
9859 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
9860 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
9861 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
9862 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
9863 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
9864 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
9865 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
9866 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
9867 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
9868 enumerations (FlagsAttribute, SerializableAttribute, added/removed
9871 2006-06-28 Mike Kestner <mkestner@novell.com>
9873 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
9875 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
9878 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
9879 item lines from other area (It also makes BackColor consistent and
9880 compatible with .NET). Fixed bug #78564.
9882 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
9884 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
9885 Patch from Eno for #78555.
9887 2006-06-27 Chris Toshok <toshok@ximian.com>
9889 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
9891 * DataGridColumnStyle.cs: same.
9893 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
9895 * DataGridDrawingLogic.cs: nuke.
9897 2006-06-27 Chris Toshok <toshok@ximian.com>
9899 * DataGridTableStyle.cs: clean up the constructors, and build the
9900 list of child relations for this table. I have no idea if this is
9901 where we should be doing it (it probably isn't), but since we're
9902 already iterating over the properties..
9904 * DataGrid.cs: add row resizing. for now we add a DataGridRow
9905 struct and array for keeping track of row information, similar to
9906 what's shown in a hack on
9907 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
9909 * Theme.cs: be consistent about the naming of DataGrid methods,
9910 prefering ColumnWidths and RowHeights over columnsWidths and
9913 * ThemeWin32Classic.cs: same, and also add support for variable
9914 sized rows (and the +/- expansion icons for related rows).
9916 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
9918 * TextBoxBase.cs: Applied Eno's patch from #78660
9920 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
9922 * Form.cs (ScaleCore): We don't want to scale our form if it's
9923 state is minimized or maximized, but we still need to scale our
9924 child windows. Also, added try/finally block to ensure layout
9925 gets reset (Fixes #78697)
9927 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
9929 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
9931 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
9933 * Form.cs: Fixed c+p error and added check to resize form if minimum
9934 size is bigger than current size (Fixes #78709)
9936 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
9938 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
9940 2006-06-26 Mike Kestner <mkestner@novell.com>
9942 * ComboBox.cs: only do Keypress handling in the combo when there
9943 are items in the collection. Fixes #78710.
9945 2006-06-26 Chris Toshok <toshok@ximian.com>
9947 * Binding.cs: make this work bi-directionally. also, clear up
9948 other mixups between Push/Pull Data (e.g. we're supposed to pull
9949 data when validating).
9951 * BindingManagerBase.cs: trim some fully qualified collection
9954 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
9956 2006-06-23 Chris Toshok <toshok@ximian.com>
9958 * PropertyManager.cs: It appears (according to the unit tests)
9959 that PropertyManager doesn't use
9960 PropertyDescriptor.AddValueChanged to track propery value changes
9961 in its datasource, but uses the same scheme as Binding, where it
9962 looks for a <Property>Changed event and binds to it.
9964 Also, according to the docs, IsSuspended always returns false for
9965 a property manager with a non-null datasource.
9967 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
9969 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
9970 need to update the actual DialogResult. (Fixes #78613)
9972 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
9974 * Form.cs (ShowDialog): Release any captures before running the
9975 new message pump (fixes #78680)
9977 2006-06-22 Mike Kestner <mkestner@novell.com>
9979 * ListView.cs: Layout column widths properly in details mode even
9980 if HeaderStyle.None is set. Fixes #78691.
9982 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
9984 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
9986 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
9988 * Control.cs (ContainsFocus): Using new driver method to get focused
9989 window, instead of trying to use internal tracking var, which can
9990 recursion issues (Fixes #78685)
9991 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
9992 XplatUIWin32.cs: Added GetFocus method to return focused window
9994 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9996 * ColorDialog.cs: when the mouse button is pressed inside the color
9997 matrix, don't let the cursor move out of it until the button is
9998 released, which is the behavior on windows. Changed 'colours' by
9999 'colors' to use the same word consistently.
10001 2006-06-21 Chris Toshok <toshok@ximian.com>
10003 * DataGrid.cs: add in some basic navigation stuff (navigating to a
10004 child relation and back, using a stack). Also, remove
10005 GetDataSource and the code that calls it - it's not needed. Also,
10006 track CurrencyManager.ListName's removal.
10008 2006-06-21 Chris Toshok <toshok@ximian.com>
10010 * CurrencyManager.cs: push some of the original type checking from
10011 BindingContext.CreateBindingManager to here, and remove some of
10012 the finalType stuff. Need more tests to make sure I've got the
10013 ListName part right, and we might need more in SetDataSource.
10015 * PropertyManager.cs: add a ctor that takes just the datasource,
10016 and no property name. Make SetDataSource work with a null
10017 property_name, and make Current return the data_source if the
10018 property descriptor is null. this makes 'string foo = "hi";
10019 BindingContext[foo].Current' return "hi" as it should.
10021 * RelatedCurrencyManager.cs: make this code more generic - there's
10022 no reason the parent manager has to be CurrencyManager, and
10023 there's no reason to pass the DataRelation. It suffices to use a
10024 BindingManagerBase and PropetyDescriptor.
10026 * RelatedPropertyManager.cs: make a similar change here.
10028 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
10029 flower I knew it could be.
10031 2006-06-20 Chris Toshok <toshok@ximian.com>
10033 * PropertyManager.cs: the PropertyChangedHandler is invoked when
10034 data in the source has changed and we need to update the control,
10035 so s/PullData/PushData.
10037 * CurrencyManager.cs: Refresh is meant to update the control from
10038 data in the datasource. So, s/PullData/PushData.
10040 * BindingContext.cs: add more ugliness (we weren't handling the
10041 case where data_source = DataTable and data_member = column_name).
10043 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
10044 from the perspective of the datasource. PullData pulls from the
10045 control, PushData pushes to the control.
10047 2006-06-20 Chris Toshok <toshok@ximian.com>
10049 * BindingContext.cs: rewrite the CreateBindingManager code to
10050 handle navigation paths more or less properly. This could
10051 definitely stand some more work, in particular to push the
10052 recursion up to the toplevel. But that relies on fixes in other
10053 places (System.Data comes to mind).
10055 Also, move to a flat hashtable (and encode the twolevel nature of
10056 the dictionary into the hash key). This lets us implement the
10057 IEnumerable.GetEnumerator method.
10059 * RelatedCurrencyManager.cs: new class. Update our view based on
10060 our relation and our parent CurrencyManager's position.
10062 * CurrencyManager.cs: split out some logic from the ctor into
10063 SetView, so it can be called from the new RelatedCurrencyManager
10066 * RelatedPropertyManager.cs: new class. Update our datasource
10067 based on the position of our parent CurrencyManager.
10069 * PropertyManager.cs: split out some logic from the ctor into
10070 SetDataSource, so it can be called from the new RelatedDataSource
10071 subclass. Also, make the Current getter return the value
10072 of the PropertyDescriptor, not the data_source.
10074 * Binding.cs: no need to duplicate the string splitting code here.
10076 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
10079 - set_Enabled: OnEnabledChanged is not called if the inherited state
10080 of the control is not altered, even though we might be changing the
10081 internal state of the control (#78458)
10082 - set_Enabled: (Re)Moved the enabling/disabling of the window to
10083 OnEnabledChanged, to allow easy altering of any child window state
10084 - OnEnabledChanged: Added code to enable/disable driver window state
10085 - OnParentEnabledChanged: Instead of firing the event, call
10086 OnEnabledChanged, which will fire the event and also a) set driver
10087 window state and pass the enabled state to any grandchildren (#78458)
10089 2006-06-19 Jackson Harper <jackson@ximian.com>
10091 * InternalWindowManager.cs: We don't set the cursor explicitly
10092 thats done via the response to NCHITTESTs.
10093 - Don't need to adjust for titlebar heights anymore, the
10094 coordinates are coming in the correct coordinates now (see peters
10098 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
10100 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
10101 being translated relative to whole window, instead of client window.
10102 That caused broken offsets on mouseclick (and caused gas for our
10103 InternalWindowManager)
10105 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
10108 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
10109 - Undo(): Added replay of cursor move on DeleteChars action; added
10110 calling Undo() again if a recorded cursor move is invalid (to
10111 ensure that some action is performed on Undo)
10112 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
10114 2006-06-16 Jackson Harper <jackson@ximian.com>
10116 * MdiClient.cs: Instead of just sizing maximized windows when
10117 there is a resize we also have to adjust the Y of minimized
10118 windows, so they stay pinned to the bottom of the mdi container.
10119 - Eliminate separate tracking of the active control, we can just
10120 get this from the controls collection.
10121 - Paint the decorations for the newly activated titlebar so we get
10123 * InternalWindowManager.cs:
10124 * ThemeWin32Classic.cs: Minimized windows get all three buttons
10125 even if they are a tool window.
10127 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
10129 * TextControl.cs (Undo): Handle non-existent cursor locations in the
10130 undo buffer, these can happen when text was deleted and the cursor
10131 was recorded first. Since we will also have a recorded cursor
10132 after the delete this is not an issue. (Fixes #78651)
10134 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
10136 * AccessibleObject.cs: Remove dependence on Control.is_selected;
10137 instead properly track control states internally (allows us to
10138 remove is_selected from Control)
10140 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10142 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
10143 whose width is not a multiple of 8.
10145 2006-06-13 Jackson Harper <jackson@ximian.com>
10147 * MdiClient.cs: Only maximize the next child if the current one
10150 2006-06-13 Chris Toshok <toshok@ximian.com>
10152 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
10153 modified. Also, guard against grid or grid_drawing being null in
10156 * DataGrid.cs: Reformat tons of getters/setters. In the
10157 DataMember setter, just call SetNewDataSource instead of
10158 duplicating some of its functionality. In SetNewDataSource, don't
10159 check ListManager for null, since the property getter creates the
10162 * DataGridTableStyle.cs: don't set TableStyle or call
10163 SetDataGridInternal on the column here, it's done in
10164 GridColumnStylesCollection.Add.
10166 * GridColumnStylesCollection.cs: fix all the explicit interface
10167 implementations to just call our methods. Nuke AddInternal() and
10168 move the body of it to Add(). Also, add a call to
10169 column.SetDataGridInternal to Add().
10171 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
10172 base()+duplicate code. Also, use the Format property instead of
10173 format to generate an Invalidate ala MS. Lastly, create the
10174 textbox here, unconditionally.
10175 (set_Format): call Invalidate.
10176 (get_TextBox): no need to call EnsureTextBox.
10177 (Commit): remove the message box.
10178 (Edit) remove the call to EnsureTextBox.
10179 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
10180 (EnterNullValue): no need to check textbox for null.
10181 (HideEditBox): no need to check textbox for null.
10182 (SetDataGridInColumn): add the textbox to the grid's controls.
10183 (EnsureTextBox): nuke.
10185 2006-06-13 Jackson Harper <jackson@ximian.com>
10187 * MdiWindowManager.cs: Hook up to the maximized menus paint event
10188 and redraw the buttons when needed. Unhook when the window is
10190 * MainMenu.cs: Add an internal Paint event, the mdi window manager
10191 needs this so that it can redraw its buttons when the menu is
10193 * InternalWindowManager.cs:
10194 * Form.cs: The method order has changed for DrawMaximizedButtons,
10195 so that it can be a PaintEventHandler.
10197 2006-06-13 Jackson Harper <jackson@ximian.com>
10199 * MdiClient.cs: When we close a maximized mdi window, the next mdi
10200 window is activated and maximized, even if it wasn't before.
10201 - When a new window is activated repaint the decorations of the
10202 old one, so that it no longer has the Active "look" (the blue
10204 * InternalWindowManager.cs: Open up CreateButtons to base classes
10205 so they can recreate the buttons on state changes.
10206 - If a window is maximized give it all three buttons
10207 * MdiWindowManager.cs: Create the titlebar buttons when the state
10208 is changed, this is needed because a toolwindow will not have all
10209 three buttons until it is maximized.
10211 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
10213 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
10216 2006-06-12 Jackson Harper <jackson@ximian.com>
10218 * KeysConverter.cs: Make sure we handle the Ctrl special case
10219 if its the only key.
10221 2006-06-12 Jackson Harper <jackson@ximian.com>
10223 * Theme.cs: Add a method to get the size of a managed window
10225 * InternalWindowManager.cs: Remove the ButtonSize property, this
10226 should be retrieved from the theme.
10227 * MdiWindowManager.cs: Get the button size from the theme
10228 * ThemeWin32Classic.cs: Make the method to get the managed window
10229 titlebar button size public.
10230 - Handle the different button sizes of maximized toolwindows
10231 (should match any maximized window).
10232 - Get the titlebar height from the theme, not the WM (which gets
10233 it from the theme).
10235 2006-06-12 Jackson Harper <jackson@ximian.com>
10237 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
10238 event down to the mdi window manager.
10239 - Expose some extra stuff to base classes
10240 - Make sure to end the Capture on an NC Mouse up, so that we can
10241 get double clicks properly, and the sizing doens't stick.
10242 - When doing PointToClient contain it in the workable desktop
10243 area, this prevents windows from changing size when the cursor is
10244 pulled outside of the working area while sizing.
10245 * MdiWindowManager.cs: When we get a double click maximize the
10247 - Reset the cursor after handling mode changes.
10249 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
10251 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
10252 current desktop, instead of just assuming a 0, 0 origin. This
10253 is needed for our internal window manager, to know the top
10254 margin of the desktop
10256 2006-06-12 Chris Toshok <toshok@ximian.com>
10258 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
10259 we need this to get rid of the selected background in the bool
10261 (CancelEditing): move the ConcedeFocus call to above the Abort
10262 call. Also, set is_changing to false and invalidate the row
10263 header if we were changing before.
10264 (ProcessKeyPreviewInternal): remove, since noone outside this
10265 class calls it anymore. Roll the code into ProcessKeyPreview.
10266 (EndEdit): remove the internal version.
10267 (InvalidateCurrentRowHeader): make private.
10269 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
10270 Keys.Escape handling (and with it the last call to
10271 DataGrid.EndEdit from outside the class.)
10274 2006-06-12 Chris Toshok <toshok@ximian.com>
10276 * DataGridTextBox.cs (.ctor): isedit defaults to false.
10277 (OnKeyPress): set isedit to true.
10278 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
10279 already handled by the grid.
10281 * DataGrid.cs (set_CurrentCell): more work here. it's still not
10283 (set_DataSource): SetDataSource always returns true, so stop
10284 putting it in an if statement.
10285 (EndEdit): get rid of some {}'s
10286 (ProcessGridKey): return true in case Keys.Escape.
10287 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
10288 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
10289 PositionChanged, stopped connecting to CurrentChanged.
10290 (GetDataSource): simplify this a bunch.
10291 (SetDataSource): change return type from bool to void.
10292 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
10293 to this, and make sure we don't set ListManager.Position inside
10295 (OnListManagerItemChanged): if we're passed an actual index,
10298 * CurrencyManager.cs (set_Position): don't call PullData here.
10300 2006-06-09 Jackson Harper <jackson@ximian.com>
10302 * TreeNode.cs: Recalculate the visible order before doing the
10303 Expand/Collapse Below calls, because those calls generate an
10305 - Reduce calls to the TreeView property, which is mildly expensive
10306 by using a local var.
10307 * Form.cs: Layout the MDI child windows when creating the parent
10309 - Don't use the internal constructor anymore
10310 * MdiClient.cs: use the parent form width/height (if available)
10311 when laying out the child windows, we do this because the
10312 mdiclient isn't docked yet when the initial layout is done.
10313 - Don't need an internal constructor anymore.
10315 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10317 * FileDialog.cs: handle access errors when trying to create a folder
10318 or changing to a directory. No need to initialize out parameters.
10320 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10322 * FileDialog.cs: Append a number when creating a new folder if the
10323 folder already exists (use parenthesis instead of square brackets)
10325 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10328 - Disabled registry support for windows and added better registry
10329 error checking for other systems (need to investigate why it
10330 works perfectly on my system)
10331 - If a folder already exist show an error MessageBox instead of
10332 trying to create an indexed name.
10333 - Fixed a non intentional typo.
10335 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10337 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
10339 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10341 * FileDialog.cs: When creating a new folder don't crash if the
10342 folder already exists.
10344 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10346 * FileDialog.cs: Allmost a complete rewrite.
10347 - added a "virtual" file system that handles the differences
10348 between unix and windows file systems (especially the directory
10349 structure). Moved most of the directory and file handling code
10351 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
10352 UnixFileSystem and FSEntry.
10353 - Recently used folder/directory, size, location and used file names
10354 (file name ComboBox) are now stored in the registry and get read
10355 before the dialog shows up (fixes part 6 of bug #78446).
10356 - Creation of new folders/directories is now possible (context menu
10357 or ToolBar). Added TextEntryDialog for this that fills in the gap
10358 until ListView.LabelEdit works.
10359 - Fixed cursor handling (bug #78527) and focus handling for
10361 - Various "Search in" ComboBox enhancements. The content of the
10362 dropdown listbox now almost matches ms.
10363 - Changed the behaviour when the user switches to SpecialFolder
10364 Recent to show the ListView in View.Details.
10365 - Beside using the ToolBar to change the View property of the
10366 file ListView it is now possible to use the context menu too.
10368 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10370 * ComboBox.cs: Don't create a new ObjectCollection when an item
10371 gets inserted. Just insert the item in the existing object_items
10374 2006-06-08 Jackson Harper <jackson@ximian.com>
10376 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
10377 that the treeview and root node checks are done also, this fixes a
10378 regression i caused in the unit tests.
10380 2006-06-07 Wade Berrier <wberrier@novell.com>
10382 * RichTextBox.cs: More ISO8859-1 -> unicode
10384 2006-06-07 Mike Kestner <mkestner@novell.com>
10386 * ComboBox.cs : use items to hold highlight/selection so that
10387 collection insertions don't require synchronization.
10389 2006-06-07 Jackson Harper <jackson@ximian.com>
10391 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
10392 routine. We now always keep the sized edge at the cursor instead
10393 of computing movement and adjusting rects. There is one buglet
10394 with this method though when the cursor is moved over area that
10395 the window can not expand too (such as the toolbars on the desktop).
10397 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10399 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
10400 here. Fixes crash on startup in AlbumSurfer.
10402 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
10404 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
10407 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10409 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
10410 statement to avoid calling XNextEvent which will block if another thread
10411 took the event that we were expecting. Fixes bug #78605.
10413 2006-06-07 Mike Kestner <mkestner@novell.com>
10415 * ListView.cs : isolated checkbox clicking from the selection logic.
10416 Toggle check state on item doubleclicks. Really fixes #78454 part2.
10418 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10420 * Form.cs: Check that the value passed to Form.DialogResult
10421 is a valid enum value.
10423 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10425 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
10426 Computer'. Clicking it in the network view goes to 'My Computer'.
10427 Added CIFS filesystem type. Display the mount point of filesystems.
10428 Avoid duplicate mount points (happens for me with CIFS);
10430 2006-06-06 Jackson Harper <jackson@ximian.com>
10432 * InternalWindowManager.cs: Draw the maximized windows buttons
10435 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10437 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
10438 all other dialogs. Fixes bug #78585.
10440 2006-06-06 Mike Kestner <mkestner@novell.com>
10442 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
10443 Only invalidate checkbox on checkstate changes to avoid flicker.
10444 * ListBox.cs : avoid unselect/select when clicking selected item.
10445 avoid reselection flicker for already multiselected items.
10448 2006-06-06 Jackson Harper <jackson@ximian.com>
10450 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
10451 the parent form so that the menu is removed if needed.
10453 2006-06-06 Mike Kestner <mkestner@novell.com>
10455 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
10456 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
10458 2006-06-06 Mike Kestner <mkestner@novell.com>
10460 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
10463 2006-06-06 Jackson Harper <jackson@ximian.com>
10465 * Control.cs: Use the property (instead of the field) to get the
10466 default cursor so it is instantiated correctly.
10467 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
10468 resizes so we need to manually repaint the window decorations here.
10469 - Set the titlebar button locations as soon as they are created,
10470 otherwise they are not set correctly on win32.
10472 2006-06-06 Chris Toshok <toshok@ximian.com>
10474 * CurrencyManager.cs (set_Position): call PullData before
10476 (AddNew): after calling IBindingList.AddNew, update our
10477 listposition, and call OnCurrentChanged/OnPositionChanged (without
10479 (OnCurrentChanged): remove the call to PullData from here.
10480 (OnItemChanged): remove the call to PushData from here.
10481 (OnPositionChanged): change the test from == null to != null to
10482 match the other methods.
10483 (ListChangedHandler): the grossest part of the patch. Implement
10484 this such that it passes the unit tests in CurrencyManagerTest and
10485 the output more or less matches that of MS's implementation.
10487 2006-06-06 Mike Kestner <mkestner@novell.com>
10489 * ListView.cs : only update check state on single click.
10490 * ThemeWin32Classic.cs : fix focus drawing for details view without
10491 fullrowselect. Fixes #78454.
10492 * XplatUIX11.cs : fix for double click emission.
10494 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
10496 * PropertyGridView.cs : Applied Atsushi's patch to fix
10497 font dialog bug (#78197).
10499 2006-06-05 Jackson Harper <jackson@ximian.com>
10501 * TreeNode.cs: Compute the next node for expanding/collapsing
10502 correctly. We now factor in nodes without a NextNode
10503 correctly. (Fixes somes cases in nunit-gui).
10504 * InternalWindowManager.cs: Set the bounds when updating the
10505 virtual position of a tool window.
10507 2006-06-05 Chris Toshok <toshok@ximian.com>
10509 * DataGrid.cs: rename cached_currencymgr to list_manager.
10510 (set_CurrentCell): move SetCurrentCell code here, and clean it up
10512 (CurrentRow, CurrentColumn): single accessors so we can make the
10513 cursor movement code a lot easier to understand.
10514 (CurrentRowIndex): implement this in terms of CurrentRow.
10515 (BeginEdit): clean this up a bit.
10516 (CancelEditing): sort out the is_editing/is_changing/is_adding
10518 (EndEdit): minor changes.
10519 (OnKeyDown): add a comment about a (most likely) unnecessary
10521 (OnMouseDown): cancel editing when we click on a row header. And
10522 use the CurrentRow setter, not CurrentCell.
10523 (ProcessDialogKey): directly call ProcessGridKey.
10524 (UpdateSelectionAfterCursorMove): factor out this common block of
10525 code (it's used everywhere that we move the cursor by updating row
10527 (ProcessGridKey): pretty substantial overhaul. Use the
10528 CurrentRow/CurrentColumn properties to make the code a lot more
10529 readable. Only use the CurrentCell property when we have to
10530 modify both row and column at once. Tab behavior is still broken,
10531 and Delete is untested.
10532 (Select): if we have no selected rows, set selection_start to
10534 (EditCurrentCell): rename EditCell this. It was only ever invoked
10535 with CurrentCell as the arg, so drop the arg and rename it.
10537 * DataGridColumnStyle.cs: clean up the constructors a little, and
10538 drop CommonConstructor().
10540 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
10541 actually get notified when the user hits it.
10542 (ProcessKeyMessage): *substantially* simplify this method.
10543 There's no reason (that I can see) for the textbox to be making
10544 calls into the datagrid at all. Remove all of them but the ones
10545 for Enter handling. those will take some more work.
10547 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
10548 calling HideEditBox.
10549 (HideEditBox): if we have an active textbox, render it invisible
10550 without causing a re-layout of the datagrid.
10552 2006-06-05 Mike Kestner <mkestner@novell.com>
10554 * ListView.cs : fix NRE crasher when focuseditem is cleared by
10555 collection changes by resetting it to Items[0]. Fixes #78587.
10557 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10559 * MessageBox.cs: if the height of the text is larger than the icon_size,
10560 use that. Fixes bug #78575.
10562 2006-06-05 Jackson Harper <jackson@ximian.com>
10564 * TreeView.cs: Fix line drawing when scrolling. To do this each
10565 node is basically responsible for drawing its entire horizontal
10566 area. When drawing a node it draws its parent node lines if
10568 - Adjust the clip area to the viewport rectangle
10569 - Fix Left/Right key handling to match MS. (It expand/collapses
10570 and moves to parents/first child but does not move selection to
10572 - Fix SetTop to work with new bound calculation code
10573 - When scrollbars are no longer needed we need to reset scrolling
10574 vars and recalculate the visible order so the redraw is correct
10575 * TreeNode.cs: We can't expand/collapse nodes with no children.
10577 2006-06-03 John Luke <john.luke@gmail.com>
10579 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
10580 so the colors work without dev packages
10582 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
10585 - Select: Implemented to just use activate. Seems to match MS
10586 behaviour closest. Documented to only do actual control walking
10587 based on it's parameters if in a container control so I moved
10589 - Removed selection check logic from our internal Select() method
10590 * ContainerControl.cs:
10591 - Select: Moved selection logic from Control here, since MS documents
10592 that containers obey the bool arguments. No longer calling base
10594 2006-06-02 Jackson Harper <jackson@ximian.com>
10596 * TreeView.cs: If the selected node isn't changed when we get
10597 focus update the previously selected node so that we see the
10600 2006-06-02 Mike Kestner <mkestner@novell.com>
10602 * ComboBox.cs: restructure grab and general mouse event handling.
10603 Make the composite control raise mouse events like it was a single
10604 control for leaves/enters/motion/up/down events. fix dropdown list
10605 coordinate mangling and refactor it into the scrollbar subclass to
10606 reduce code duplication. Fixes #78282 #78361 and #78457.
10608 2006-06-02 Mike Kestner <mkestner@novell.com>
10610 * ScrollBar.cs: remove Capture setting/clearing, as it happens
10611 automatically in the Control.WndProc.
10613 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10615 * FileDialog.cs: fix crash when running SharpChess, which sets the
10616 FilterIndex to 2 with only one Filter.
10618 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10620 * ToolBar.cs: add SizeSpecified property.
10621 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
10622 try to figure out our real size, otherwise fallback to what the
10625 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
10627 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
10628 * Control.cs (WndProc): MS always calls the DefWndProc to pass
10631 2006-06-01 Mike Kestner <mkestner@novell.com>
10633 * ListView.cs: revamp the focus management in ListView. It still
10634 causes churn of LostFocus/GotFocus emissions on clicks, but it's
10635 better than not handling focus at all. Will revisit when pdb feels
10636 the general focus handling is solid. Fixes #78526.
10638 2006-06-01 Jackson Harper <jackson@ximian.com>
10640 * TreeView.cs: Set the default border style in the constructor.
10641 - Move painting to use OnPaintInternal instead of capturing
10642 WM_PAINT, this is the correct way of doing things
10643 - UpdateBelow shouldn't invalidate the scrollbar area
10644 - Cap the top on update below in case the node was above the top
10645 of the viewport rectangle.
10646 - ExpandBelow and Collapse below need to obey Begin/End Update.
10647 * TreeNode.cs: Make is_expanded internal so the treenode
10648 collection can change it without firing the whole event chain.
10649 * TreeNodeCollection.cs: When clearing all the child nodes make
10650 sure to recalc the visible order.
10651 - Improve algo for remove the top node
10653 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
10655 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
10656 SendMessage directly calling window procedures, which in turn might
10659 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
10661 * Control.cs: Don't handle WM_SETFOCUS if the same window already
10662 has focus (works around X11 sending a FocusIn after our SetFocus)
10663 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
10665 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
10667 * Mime.cs: Fix for the NET_2_0 build.
10668 NameValueCollection needs StringComparer now.
10670 2006-05-31 Chris Toshok <toshok@ximian.com>
10672 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
10673 return (via an out parameter) the starting X of the column.
10674 (UpdateVisibleColumn): track change to FromPixelToColumn.
10675 (HitTest): add a ColumnResize case here.
10676 (DrawResizeLine): new function, probably poorly named.
10678 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
10679 only need to keep one reference.
10680 (set_ListManager): same.
10681 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
10682 Also, add support for HitTestType.ColumnResize.
10683 (OnMouseMove): add column resize behavior here, and change the
10684 cursor to the correct one as we move around the datagrid.
10685 (OnMouseUp): terminate the column resize if we're resizing.
10686 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
10687 for the current cell.
10688 (ConnectListManagerEvents): use cached_currencymgr.
10689 (DisconnectListManagerEvents): fill this in, using
10690 cached_currencymgr.
10691 (SetCurrentCell): remove cached_currencymgr_events handling.
10692 (SetDataMember): only call DisconnectListManagerEvents if
10693 cached_currencymgr is != null.
10694 (SetDataSource): same.
10695 (OnListManagerCurrentChanged): cached_currencymgr_events ->
10696 cached_currencymgr.
10698 2006-05-31 Jackson Harper <jackson@ximian.com>
10700 * BindingManagerBase.cs: Remove somedebug code that creeped into
10702 * TreeNode.cs: We get the indent level dynamically right now, so
10703 don't track it as a member.
10704 * TreeNodeCollection.cs: Make sure all nodes added to the list
10705 have parents, treeviews/topnodes setup properly.
10706 - Don't attempt to track indent level.
10708 2006-05-30 Jackson Harper <jackson@ximian.com>
10710 * BindingContext.cs: Create the currency manager tables here.
10711 This allows us to more easily create null tables (when bad data
10712 members are used), and more easily create related currency
10714 * CurrencyManager.cs: All the table creation stuff is done by the
10715 binding context now.
10716 - Current should throw an exception if listposition is -1.
10717 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
10720 2006-05-30 Mike Kestner <mkestner@novell.com>
10722 * ListView.cs: allow reexpansion of zero-width column headers.
10725 2006-05-28 Chris Toshok <toshok@ximian.com>
10727 * CurrencyManager.cs (get_Current): after the late binding
10728 listposition = -1 fix, we need to guard against it here and return
10729 null, otherwise we raise an exception (which is swallowed
10730 elsewhere, and breaks datagrid databinding.)
10732 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
10734 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
10735 than WM_SYSKEY, don't throw if get something unexpected (#78507)
10737 2006-05-26 Jackson Harper <jackson@ximian.com>
10740 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
10741 values, it's faster and it's all we care about (we don't care if
10742 the names aren't equal).
10743 * KeyboardLayouts.cs: Eliminate some dead code.
10745 * X11Keyboard.cs: Lazy init keyboard detection.
10746 - Cleanup access modifiers a little.
10748 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
10750 * XplatUIX11.cs: Once again, attempting to get layout just right.
10752 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
10754 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
10755 the sizes of each link section, that will result in sizes that
10756 match DrawString's layout (Fixes #78391)
10758 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
10760 * FileDialog.cs: If AddExtension property is true autocomplete the
10761 extensions in SaveFileDialog correctly. Fixes bug #78453.
10762 Set MyNetwork and MyComputer to "C:\" for windows. This should
10763 fix part 8 of bug #78446 for now.
10765 2006-05-26 Chris Toshok <toshok@ximian.com>
10767 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
10768 invalidate the current row header if we need to, but presumably
10769 we'll invalidate the row corrsponding to the bounds or
10771 (GridHScrolled): switch back to this method, as it's part of the
10772 public api. *sigh*.
10773 (GridVScrolled): same.
10774 (OnMouseWheel): hack up something that more or less works. Call
10775 GridHScrolled/GridVScrolled directly, instead of duplicating much
10776 of their code here.
10777 (EnsureCellVisibility): reinstate a bunch of this code, since we
10778 can't just set the scrollbar Value and expect to do all the work
10779 in the ValueChanged handler. Also, Call Update() after scrolling
10780 in one direction so the other XplatX11.ScrollWindow call has the
10781 proper stuff in the proper places.
10782 (EditCell): set is_editing to true before calling .Edit.
10784 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
10785 don't bother comparing first.
10786 (OnKeyPress): call grid.ColumnStartedEditing before calling
10787 base.OnKeyPress. this will set is_changing and invalidate the row
10788 header if necessary.
10789 (ProcessKeyMessage): for WM_CHAR messages, call
10790 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
10793 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
10794 it's done in the DataGrid.
10795 (NextState): call grid.ColumnStartedEditing, which takes care of
10796 invalidating the row header (and setting is_changing).
10798 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
10799 here. it's done in the DataGrid.
10801 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10803 * Control.cs: allow changing the cursor when the mouse position is
10804 out of bounds but Capture is set.
10805 * LinkLabel.cs: handle the case when the mouse button is pressed on the
10806 linklabel but released somewhere else.
10808 2006-05-25 Jackson Harper <jackson@ximian.com>
10810 * TreeView.cs: When we get focus if there is no selected node make
10812 - Remove some uneeded setup code from Draw.
10813 * TreeNodeCollection.cs: If the tree doesn't have a top node when
10814 a new node is inserted make the new node the top.
10816 * Timer.cs: Use Utc time so that no local time zone stuff needs to
10817 be used (should be faster).
10819 2006-05-25 Chris Toshok <toshok@ximian.com>
10821 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
10822 problem with the last commit.
10824 2006-05-25 Chris Toshok <toshok@ximian.com>
10826 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
10827 need the invalidate call here, while scrolling right-to-left via
10828 the left arrow key (i.e. moving the editing cell while scrolling).
10830 * DataGrid.cs (.ctor): remove the initialization of
10831 ctrl_pressed/shift_pressed. We no longer track them using key
10832 up/down handlers, but by using Control.ModifierKeys. Also, switch
10833 to using ValueChanged handlers on the scrollbars instead of
10834 Scrolled event handlers. This simplifies a bunch of the scrolling
10836 (GridHValueChanged): rename from GridHScrolled, and change it to
10837 work with the new event args.
10838 (GridVValueChanged): same.
10839 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
10840 (OnMouseWheel): actually scroll the datagrid. Don't change the
10842 (ProcessGridKey): correct all the keyboard navigation stuff I
10843 could find. Ctrl up/down/left/right/home/end work now.
10844 (EnsureCellVisibility): correct method name spelling. Also,
10845 simplify this a touch by not explicitly calling the
10846 ScrollToRow/ScrollToColumnInPixels methods. We just set the
10848 (OnKeyUpDG): no need for this method now.
10850 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10852 * LinkLabel.cs: display the OverrideCursor when hovering the label.
10855 2006-05-25 Chris Toshok <toshok@ximian.com>
10857 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
10860 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
10862 * Application.cs: Moved setting of is_modal and closing to before
10863 we create the control, to allow the event handlers called as a
10864 result of creation affect closing. Also removed Gonzalo's previous
10865 change to setting DialogResult, the behaviour has been moved to
10868 - ShowDialog(): Removed explicit creation of the form, let RunLoop
10870 - ShowDialog(): If no dialog result is set, we need to return Cancel
10871 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
10872 the close is cancelled
10874 2006-05-25 Jackson Harper <jackson@ximian.com>
10876 * StatusBar.cs: We only need to update the sizes of the other
10877 panels when we have auto size contents. Also we are only updating
10878 the contents of the panel, not the borders, so compensate for the
10879 border width (TODO: get this width from the theme somehow).
10880 * TreeView.cs: Scrollable is true by default
10881 - Use invalidate instead of refresh where needed
10882 - Factor the scrollable value into scrollbar updating
10883 - Update the scrollbars if the Scrollable property is altered
10884 - Update the selected node if its ImageIndex is changed
10885 - Handle null nodes in UpdateNode (mainly so we don't have to
10886 check if selected is null when updating it
10887 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
10888 are factored into the visible count
10889 - Use VisibleCount for clarity in the code
10890 - When the font is changed we need to recurse through all the
10891 nodes and invalidate their sizes
10893 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10895 * Application.cs: set the DialogResult to fixed when the main form is
10896 hidden or destroyed while being modal.
10898 2006-05-25 Miguel de Icaza <miguel@novell.com>
10900 * Theme.cs: Use Tangoified messagebox icons.
10902 (GetSizedResourceImage): Also cope with width = 0 and do not
10903 trigger a warning in that case (0 means "give me your icon from
10904 the resouce, no special size needed).
10906 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
10908 * Application.cs: Leave runloop if the the main modal form is
10909 hidden (fixes #78484)
10911 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
10913 * BindingContext.cs : reject null datasource in Contains() and
10915 * CurrencyManager.cs : check data_member validity when data_source
10916 is dataset. When it is late binding, the initial position is -1.
10918 2006-05-24 Jackson Harper <jackson@ximian.com>
10920 * TreeNodeCollection.cs: Dont't recalculate the visible order on
10921 inserted nodes that aren't visible. This changes the
10922 max_visible_order which confuses scrollbar settings.
10923 - Use the enumerator to get the prev node instead of duplicating
10925 * TreeView.cs: Use new method for setting scrollbar values
10926 - Don't set the bounds every time the scrollbar is updated
10927 - When updating below the root node use an invalidate instead of a
10928 refresh to prevent the child controls (scrollbars) from being
10929 refreshed. (UpdateBelow still needs to be reworked anyways).
10930 - Reenable SetBottom now that visible orders are set correctly,
10931 added some debug code incase we ever get bad values there again.
10932 - Set the scrollbar max to 2 less then the max value, this
10933 compensates for the max value being one above the node count, and
10934 for scrollbars adding one extra "notch".
10935 - When drawing image nodes if there is an imagelist we draw the
10936 first image in the list if the supplied image index is out of the
10937 image list's bounds.
10939 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
10941 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
10942 we receive a size change from the WM (Fixes #78503)
10944 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
10946 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
10947 rectangle (Fixes #78501)
10949 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
10952 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
10954 - Fixed MouseMove to no longer switch pressed state unless the left
10955 mouse button is pressed. Atsushi provided the original patch (#78485)
10957 2006-05-24 Jackson Harper <jackson@ximian.com>
10959 * ScrollBar.cs: New internal methods that allow us to change a
10960 couple values on the scrollbar (the most common case is maximum
10961 and large change) without getting multiple invalidates.
10963 2006-05-24 Chris Toshok <toshok@ximian.com>
10965 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
10966 (Edit): save off the original state in oldState, and set
10967 grid.is_editing to true.
10968 (OnKeyDown): abort editing if escape is pressed. also, call
10969 NextState if space is pressed.
10970 (OnMouseDown): call NextState.
10971 (NextState): factor out shared code from OnKeyDown and OnMouseDown
10972 here. Also, only invalidate the row header once (on the initial
10973 is_changing switch) to save on redraws.
10975 2006-05-24 Chris Toshok <toshok@ximian.com>
10977 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
10978 if the value in the cell is different than it was before. This
10979 keeps us from triggering a layout when we move around a datarid
10980 with a highlighted cell.
10981 (Edit): suspend layout when creating/positining the text box, and
10982 resume passing false so we don't ever actually re-layout.
10983 (ReleaseHostedControl): same.
10984 (EnsureTextBox): reformat slightly, and set WordWrap to false.
10986 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
10987 control-key sequences should go to the datagrid - remove that
10988 lock. Also, modify the conditions under which we move between
10989 cells when moving the cursor within a cell, and remove the "this"
10990 and "base" from field accesses. We weren't even consistent, given
10991 they all were in the base class.
10993 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
10995 * Binding.cs : (.ctor)
10996 An obvious NRE fix for BindingTest.CtorNullTest().
10998 2006-05-23 Chris Toshok <toshok@ximian.com>
11000 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
11001 them between lines. This fixes some quirks editing cells in the
11004 2006-05-23 Jackson Harper <jackson@ximian.com>
11006 * TreeView.cs: Use begin/end update when doing expand/collapse all
11007 so that we don't get flicker on the scrollbar.
11009 2006-05-23 Jackson Harper <jackson@ximian.com>
11011 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
11012 treenode calculations to be independant of the painting code. To
11013 do this nodes track a visible order which is calculated by the
11015 - Call new methods for expanding/collapsing nodes. These methods
11016 use scrollwindow so we don't have to update everything below the
11018 * TreeView.cs: Refactored drawing and scrolling code. We don't
11019 need to update nodes when drawing anymore or calculate scrollbar
11021 - Added new methods for expanding/collapsing nodes. These methods
11022 use ScrollWindow so as to not have to redraw all the nodes below.
11023 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
11024 we add/remove nodes or sort.
11025 - Handle removing the selected and the top node properly.
11027 2006-05-23 Chris Toshok <toshok@ximian.com>
11029 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
11030 maybe this should actually happen in the datagrid code?
11031 (EndEdit): no need to invalidate anything, given that
11032 ReleaseHostedControl causes the datagrid to relayout, which
11033 invalidates everything anyway.
11035 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
11036 in SetCurrentCell).
11037 (set_SelectionBackColor): call InvalidateSelection instead of
11039 (set_SelectionForeColor): same.
11040 (BeginEdit): Flesh this out a bit.
11041 (CancelEditing): only do any of this if we're editing/adding.
11043 (OnMouseDown): there's no need to cancel editing here, it's done
11045 (SetCurrentCell): only invalidate the current row header if it's a
11046 different row than the new one.
11047 (ShiftSelection): fix this to work like MS does.
11048 (ResetSelection): factor out the invalidation of selected_rows to
11049 InvalidateSelection.
11050 (SetDataSource): cancel any editing that's going on.
11052 * DataGridColumnStyle.cs
11053 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
11054 call the non-interface version.
11056 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
11057 header rectangle with the clip rectangle so we don't redraw the
11058 entire header for just a small area. Gets rid of the last flicker
11059 when horizontally scrolling.
11060 (DataGridPaintRow): same.
11062 2006-05-23 Mike Kestner <mkestner@novell.com>
11064 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
11065 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
11066 poorly placed checkbox on the MS control. Fixes Alex's unfiled
11067 Critical bug report.
11069 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
11071 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
11072 and this fixes #78493
11074 2006-05-23 Miguel de Icaza <miguel@novell.com>
11076 * Theme.cs (GetSizedResourceImage): Scale images if the proper
11079 * FileDialog.cs: Do not change the background for the side bar as
11080 it wont work nicely with the theme, and also reduces the artifacts
11081 in rendering the icons (which I want to fix too).
11083 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
11084 resources, not resgen resources.
11086 (PlatformDefaultHandler): Pull images using the new API.
11088 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
11090 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
11091 a reference to the hwnd and will not remove it unless there are
11092 no pending exposures (fixes #78341)
11093 * XplatUI.cs: Improved debug
11095 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
11097 * MenuAPI.cs : don't handle OnClick event when it was not the left
11098 button. Fixed bug #78487.
11100 2006-05-23 Mike Kestner <mkestner@novell.com>
11102 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
11103 prefer submenus to the top menu for item lookup, to avoid popping down
11106 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
11108 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
11109 Graphics.FillRectangle as the visual results are really bad (even
11110 on win). We now draw perfect arrows (and perfect shadows when the
11111 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
11112 Pen.DashPattern to draw the dots of each line.
11114 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
11116 * FileDialog.cs: Update the filename combobox when navigating through
11117 the ListView with the cursor keys. Fixes part 7 of bug #78446.
11119 2006-05-22 Mike Kestner <mkestner@novell.com>
11121 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
11124 2006-05-22 Mike Kestner <mkestner@novell.com>
11126 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
11127 requests. Fix a misspelled parameter and a copy paste exception error
11130 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
11132 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
11133 to get the same width/height (5/13) on X11 as the default font has on
11134 win32. This means that our DefaultFont emSize is smaller than the
11135 the MS SWF equivalent (even thought the width/height stays the same)
11137 2006-05-20 Jackson Harper <jackson@ximian.com>
11140 * MdiWindowManager.cs:
11141 * InternalWindowManager.cs: Make sure to use the border width from
11144 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
11146 * PrintDialog.cs: Implements printer details
11148 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
11150 * FileDialog.cs: Added focus handling for PopupButtonPanel.
11151 Fixes part 1 and 2 of bug #78446
11153 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
11155 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
11156 instead of sticking to the first ever calculated value
11158 2006-05-19 Mike Kestner <mkestner@novell.com>
11160 * ComboBox.cs: fix mouse motion selection to use MousePosition and
11161 PointToClient, since Capture is set. Fixes #78344.
11163 2006-05-19 Mike Kestner <mkestner@novell.com>
11165 * ListView.cs: match MS behavior in Details view where items are not
11166 drawn if Columns.Count == 0.
11167 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
11168 Use a separate pen to draw the check, since changing the width affects
11169 the box as well. Fixes #78454.
11171 2006-05-18 Miguel de Icaza <miguel@novell.com>
11173 * ListView.cs: ArgumentOutOfRangeException, single versions of the
11174 exception should throw the name of the invalid argument.
11176 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
11177 there are no files listed.
11179 2006-05-18 Jackson Harper <jackson@ximian.com>
11181 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
11184 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11186 * Control.cs: Brought back our old UpdateZOrder method as a private
11187 function and switched our calls from UpdateZOrder to the new one.
11188 This fixes the Paint.Net canvas disappearing bug.
11190 2006-05-18 Jackson Harper <jackson@ximian.com>
11193 * ThemeWin32Classic.cs:
11194 * InternalWindowManager.cs: Move the drawing into the theme,
11195 expose everything the theme should need from the window manager.
11197 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11199 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
11200 from the call to NativeWindow to avoid walking up the parent chain
11201 further than needed (speeds up setting cursors and avoids setting
11202 the wrong cursor if a parent has another cursor defined)
11203 * Cursor.cs: When loading an icon as cursor, MS uses the center of
11204 the icon as hotspot, not what's contained as hotspot in the icon
11205 file. This fixes the perceived drawing offset seen with Paint.Net
11207 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11210 - Store the calculated rectangle in Hwnd object and use it when
11211 setting the client size
11212 - Force Toolwindows to always be type Dock, to ensure they're on top
11214 2006-05-18 Mike Kestner <mkestner@novell.com>
11216 * ComboBox.cs: first pass at ComboBox rework. Layout is more
11217 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
11218 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
11219 Substantial refactoring to remove confusing nested classes. Coding
11220 standard and Get+Set->property refactorings. Shift to index based
11221 highlighting in ComboListBox instead of constantly using IndexOf and
11222 Items[]. Add invalidations on resize for DropDownList to fix ugliness
11223 in FileDialog growth. Draw borders manually since Simple mode needs
11224 to look like two independent controls. Make listbox border
11225 conditional to DropDownStyle. Improved OwnerDraw support.
11227 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
11229 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
11230 Don't set the disposed graphics to null, so we can throw the "right"
11231 exception if the graphics is reused later (added a flag to avoid
11232 double disposing). Some behaviours are different under 2.0 and are
11233 filled under bug #78448.
11235 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11237 * Control.cs: When double-buffering is enabled, we need to reset
11238 our graphics context between paint calls. Otherwise, any
11239 transformations and other alterations on the context will
11240 become cumulative (#77734)
11242 2006-05-18 Mike Kestner <mkestner@novell.com>
11244 * ListView.cs: do focused item selection like MS on clicks.
11245 Rework focus handling for ItemControl so LostFocus invalidates as
11247 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
11248 the ListView ItemControl has focus.
11250 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
11252 * XplatUIX11.cs: If client_window ends up being width or height zero
11253 due to border settings, move it off window inside whole_window (#78433)
11255 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
11257 * Mime.cs: Shrink the mime file cache correctly.
11259 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
11261 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
11263 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11265 * XplatUIX11.cs (AddExpose): More sanity checks
11267 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11270 - AddExpose: Don't add expose ranges outside the size of our
11272 - Cast opacity values to Int32 to avoid crashes with certain
11274 - Added disabled code paths that protect against illegal cross-
11275 thread painting (Developers.exe)
11277 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11279 * ProgressBar.cs: Invalidate the control when it's resized
11280 since block size is based on control size. (#78388)
11282 2006-05-16 Miguel de Icaza <miguel@novell.com>
11284 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
11285 of setting the incoming argument to the "reset" value, we set the
11286 this.datamember to string.empty (before we were invalidating the
11291 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11293 * Form.cs: Only apply transparency settings after the form
11294 is created. (Fixes #77800)
11296 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11298 * ApplicationContext.cs: Grab the HandleDestroyed event so
11299 we know when to fire OnMainFormClosed
11301 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11303 * Application.cs: Introduced sub-class to allow tracking of
11304 threads and centralized triggering of the event mess for
11305 ThreadExit, AppExit, etc.. (#76156)
11307 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
11310 - Do not return a null icon index value for a mime subclass.
11311 Instead try the main mime type class too.
11312 - Seems that some newer distributions don't have a link to some
11313 gnome default icons anymore. So check the default gnome dir too.
11316 2006-05-16 Jackson Harper <jackson@ximian.com>
11318 * MdiClient.cs: Don't paint the parent background image if we have
11319 our own background image.
11321 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11324 - PerformLayout: Do not shrink space filled by DockStyle.Fill
11325 controls, all filled controls are supposed to overlap (#78080)
11326 - UpdateZOrder is supposed to update the control's z-order in the
11327 parent's z-order chain. Fixed to behave like that
11328 - BringToFront: Removed obsolete code
11329 - SendToBack: Simplyfied
11330 - SetChildIndex: Trigger layout calculations when Z-order changes
11331 since layout is done by z-order
11333 2006-05-16 Chris Toshok <toshok@ximian.com>
11335 [ fixes bug #78410 ]
11336 * DataGrid.cs (set_AlternatingBackColor): use
11337 grid_drawing.InvalidateCells instead of Refresh().
11338 (set_BackColor): call grid_drawing.InvalidateCells.
11339 (set_BackgroundColor): use Invalidate instead of Refresh.
11341 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
11342 invalidate the cell area.
11344 2006-05-15 Chris Toshok <toshok@ximian.com>
11346 [ fixes bug #78011 ]
11347 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
11348 on to DataGridPaintRow.
11349 (DataGridPaintRow): take a clip argument, and only draw the cells
11350 which intersect it. same with the not_usedarea.
11352 * Theme.cs (DataGridPaintRow) add @clip parameter.
11354 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
11355 XplatUI.ScrollWindow.
11356 (ScrollToRow): same.
11358 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
11359 with last column which was causing a gray swath to appear with the
11360 XplatUI.ScrollWindow code.
11362 2006-05-15 Chris Toshok <toshok@ximian.com>
11364 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
11365 use XplatUI.ScrollWindow.
11366 (VerticalScrollEvent): use XplatUI.ScrollWindow.
11368 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
11370 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
11372 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
11374 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
11375 file since there are no equivalent X11 cursors
11377 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
11379 * MonthCalendar.cs : DateTimePicker should reflect selected date
11380 on mouse*up*, not mouse*down*. Fixed originally reported part of
11383 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
11385 * TabControl.cs : When argument index is equal or more than tab
11386 count, just ignore. Fixed bug #78395.
11388 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
11390 * Control.cs: Dispose all child controls when control is diposed (#78394)
11392 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
11394 * ColorDialog.cs: Finally it is possible to select the color with
11397 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
11399 * PrintDialog.cs: Fix typo
11401 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
11403 * PrintDialog.cs: PrintDialog is not resizable
11404 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
11405 color. Made some ToolBar drawing methods protected virtual.
11407 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
11409 * PrintDialog.cs: Implementation of the PrintDialog
11411 2006-05-12 Chris Toshok <toshok@ximian.com>
11413 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
11414 thumb, instead use MoveThumb. This has the side effect of making
11415 most of the other thumb moving machinery use MoveThumb as well.
11416 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
11417 need to actually invalidate the rectangle where the new thumb will
11419 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
11420 We force an Update() after, so it's not as fast as it could be,
11421 but at least there's zero flicker and no droppings.
11422 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
11423 (UpdateThumbPos): add another argument (dirty), which says whether
11424 or not to calculate/add dirty regions which we later invalidate.
11425 For cases where we know we're going to use MoveThumb, we pass
11426 false for this. Otherwise, pass true.
11428 2006-05-12 Jackson Harper <jackson@ximian.com>
11430 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
11433 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
11435 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
11436 and GetClipRegion methods and UserClipWontExposeParent property.
11437 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
11438 overriding UserClipWontExposeParent property, setting to false, since
11439 Win32 handles the required expose messages to draw our clipped parent
11441 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
11442 PaintEventStart to set the user clip region if set.
11444 - Now internally tracking the Region for the control since we need to
11445 store it if the handle is not yet created and only set it when it
11446 becomes created. Before setting the region forced handle creation
11447 - Added code to draw the parents underneath a user-clipped region
11448 * Hwnd.cs: Added UserClip property
11450 2006-05-12 Chris Toshok <toshok@ximian.com>
11452 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
11453 (set_Maximum): same.
11454 (set_Minimum): same.
11455 (set_SmallChange): same.
11456 (OnMouseUpSB): remove the call to refresh when releasing the
11457 thumb. We shouldn't need it.
11459 2006-05-12 Miguel de Icaza <miguel@novell.com>
11461 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
11462 AutoSize set to None, we do not need to relayout everything, we
11463 just need to invalidate the current region.
11465 (Draw): Do not draw the entire ClientArea, just redraw the
11466 clip area being passed.
11468 * MdiClient.cs: Make MdiClient constructor with the Form argument
11471 2006-05-12 Jackson Harper <jackson@ximian.com>
11473 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
11474 parents background image, but strangely not their own.
11475 - (DrawStatusBarPanel): Take into account horizontal alignment
11476 when drawing the strings and icons.
11478 2006-05-12 Mike Kestner <mkestner@novell.com>
11480 * ListBox.cs: avoid invalidations for focus when the collection is
11483 2006-05-12 Chris Toshok <toshok@ximian.com>
11485 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
11486 invalidate the entire thumb area. Call InvalidateDirty which
11487 limits the redraw to the thumb itself and surrounding pixels.
11489 * XplatUIX11.cs (ScrollWindow): optimize copying.
11491 2006-05-12 Chris Toshok <toshok@ximian.com>
11493 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
11494 Figure out the positioning/layout in a single pass instead of
11495 multiple recursive invocations. Speeds up the initial display of
11496 the data grid. Also, make many things private that were
11497 originally public but unused outside this class.
11499 2006-05-11 Jackson Harper <jackson@ximian.com>
11501 * MdiClient.cs: Improved layout code.
11503 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
11505 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
11506 not SelectedObject.
11508 2006-05-11 Chris Toshok <toshok@ximian.com>
11510 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
11511 union of that will always be {0,0,width,height}.
11513 2006-05-11 Jackson Harper <jackson@ximian.com>
11515 * Form.cs: Match MS's DefaultSize for forms (they must have
11516 changed the size in sp2).
11518 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
11520 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
11522 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
11524 * TextControl.cs : Fixed bug #78109. This incorrect position
11525 comparison caused crash on automatic line split.
11526 * TextBoxBase.cs : reduce duplicate code.
11528 2006-05-10 Jackson Harper <jackson@ximian.com>
11530 * MdiClient.cs: Active form is only sent to the back when using
11531 the Next form functionality, when a form is clicked the current
11532 active shouldn't be sent to the back.
11533 - Layout the mdi windows when the container is first made visible.
11534 * Form.cs: Give the MdiClient a ref to the containing form when we
11537 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
11539 * LinkLabel.cs : link_font could be uninitialized, so populate one
11540 before actual use. Fixed bug #78340.
11542 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
11544 * XplatUIX11.cs : clipboard format native value is IntPtr.
11547 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
11550 - Instead of showing context menus directly we send WM_CONTEXTMENU,
11551 which is passed up the parent chain by DefWndProc
11552 - We now handle WM_CONTEXTMENU to display any menu, or pass it
11553 to DefWndProc (#77956)
11554 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
11556 2006-05-10 Jackson Harper <jackson@ximian.com>
11558 * MdiClient.cs: We need to remove the controls from the mdi
11559 collection, when we close the window.
11560 * MdiWindowManager.cs: Special handling of closing mdi windows.
11561 * InternalWindowManager.cs: Make the close method virtual so the
11562 mdi window manager can handle it specially.
11564 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
11567 - Recalculate grid when the data source has changed
11568 - Matches styles provided by user from all data sources types
11569 * DataGridTableStyle.cs: For columns that provided by the user set the
11570 with the preferred value is there was unassigned.
11571 * CurrencyManager.cs: throw OnItemChanged event
11573 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
11575 * PictureBox.cs: Don't animate until handle is created. Start animation
11576 when handle is created.
11578 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
11580 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
11582 * XEventQueue.cs: We don't need to provide the extra info
11584 2006-05-10 Jackson Harper <jackson@ximian.com>
11586 * MdiClient.cs: If the mdi clients parent form has a background
11587 image set, we draw that background image for the mdi area's
11590 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
11592 * TextBoxBase.cs: Set IBeam cursor (#78347)
11594 2006-05-10 Mike Kestner <mkestner@novell.com>
11596 * ToolBar.cs: fix some text padding issues with ButtonSize
11597 calculation. Update the default size to match MS documentation.
11598 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
11599 button size. Fixes #78296.
11601 2006-05-10 Mike Kestner <mkestner@novell.com>
11603 * ListBox.cs: use is_visible for scrollbar positioning in case the
11604 control isn't on screen yet. Fix off by one with Right vs Width
11605 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
11607 2006-05-10 Jackson Harper <jackson@ximian.com>
11609 * X11Dnd.cs: Drop to a control with another control on top of it.
11610 * ToolBar.cs: Work on a copy of the buttons list, so that it can
11611 be modified in click handlers. TODO: Look for similar problems in
11614 2006-05-09 Jackson Harper <jackson@ximian.com>
11616 * Form.cs: Window managers need the old window state when setting
11618 * InternalWindowManager.cs: Allow the base mdi window manager to
11619 handle more of the MDI only stuff (like maximize buttons).
11620 * MdiWindowManager.cs: Fix some snafus in changing the window
11621 state. Add all the menu functionality, for both popup and
11623 * MdiClient.cs: When a new form is selected the currently
11624 activated form is sent to the back, this matches MS.
11625 - Implement a new method to activate the next mdi child window.
11627 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
11630 - Added new InternalCapture method to allow controls to prevent
11631 the capture behaviour on the click handlers
11632 - Switched to use InternalCapture
11634 - Using InternalCapture to prevent mouse captures from being released
11635 on mouse button release (Fixes #78100)
11636 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
11637 returns Form borders if a caption is present. (Fixes #78310)
11639 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
11641 * TreeNode.cs: Changed serialization .ctor to not require every field
11642 to be present. (#78265)
11643 * OwnerDrawPropertyBag.cs: Added serialization .ctor
11645 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
11647 * MimeIcon.cs: for is faster than foreach for strings.
11649 2006-05-05 Mike Kestner <mkestner@novell.com>
11651 * CheckedListBox.cs: update check handling code to not use selected.
11652 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
11653 behavior for visual feedback, motion response, shift/ctrl handling,
11654 and properly deal with all 4 selection modes. Updates to bounds
11655 handling logic. Add scroll wheel support. [Fixes #77842]
11657 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
11660 - Moved adding of Implicit controls into .ctor. That way, subsequent
11661 creation of the controls will not cause them to think they are
11662 toplevel windows (fixes #78200 header problem)
11663 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
11664 - Switched visibility setting of header control to use internal field
11665 to avoid triggering handle creation
11666 - Now checking if handle is created before causing a refresh when items
11667 are added (This makes us now match handle creation time with MS)
11668 * Splitter.cs: Removed loading of private splitter cursor, switched to
11669 Cursors version now that that is loading the right ones
11670 * Cursors.cs: Load proper splitter cursors from resources
11671 * Cursor.cs: Added second method of loading resource cursors for the
11672 VS.Net users amongst us
11674 2006-05-05 Mike Kestner <mkestner@novell.com>
11676 * ListView.cs: give header_control a minimum size based on the
11679 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
11681 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
11682 window seems to do that with metacity, so set that type. (#78120)
11684 2006-05-05 Mike Kestner <mkestner@novell.com>
11686 * ListViewItem.cs: fix Details mode checkbox layout bug.
11687 * ThemeWin32Classic.cs: draw a ListView column header for unused space
11688 at the end of the header, if it exists. [Fixes for #78200]
11690 2006-05-04 Jackson Harper <jackson@ximian.com>
11692 * MdiClient.cs: Add a helper property to get the container form.
11693 * MdiWindowManager.cs: We have to make sure to use the menu origin
11694 when drawing the icons and buttons, this fixes maximized window
11695 icons/buttons on win32.
11696 * InternalWindowManager.cs: Reset the restore captions when a
11697 window goes from Maximized to Minimized and vice versa. Move the
11698 DrawMaximizedButtons into the MdiWindowManager source, tool
11699 windows can't be maximized. NOTE: This could use a little
11700 refactoring if time ever permits.
11702 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
11704 * TextBox.cs: Add MWFCategoryAttributes
11705 * TextBoxBase.cs: Add MWFCategoryAttributes
11706 * Form.cs: Add MWFCategoryAttributes
11708 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
11710 * Control.cs: Add MWFCategoryAttributes
11711 * ScrollableControl.cs: Add MWFCategoryAttributes
11713 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
11715 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
11716 Divider is true. Fix a little glitch in PropertyToolBar
11719 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
11722 - Dispose: Call base.Dispose, this causes the disposed event
11723 to be fired (and probably other, more important stuff)
11724 - SetVisibleCore: Set is_visible to true after creating the
11725 window so that the window still gets created invisible (if
11726 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
11727 to generate a WM_ACTIVE message
11728 * Form.cs: Call Dispose when we want to destroy the window, instead of
11729 just destroying the handle (Dispose will do that for us)
11731 - RootWindow also needs a queue, so we can properly process the
11732 property change events from RootWindow (like Activate)
11733 - Generatic synthetic WM_ACTIVE message when the active window is
11736 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
11738 * LinkLabel.cs: Trigger a recalc of our label dimensions when
11741 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
11743 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
11744 for determining width and height (image might not be assigned if
11745 we're drawing an imagelist)
11747 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
11749 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
11750 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
11752 * Theme.cs: No longer returns hardcoded menu height, instead calls
11754 * Form.cs (OnLoad): Scaling happens before triggering Load events
11757 2006-05-01 Mike Kestner <mkestner@novell.com>
11759 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
11761 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
11763 * TextBoxBase.cs: Removed Fixme
11764 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
11766 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
11769 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
11770 the rectangle relative to the parent, considering borders. We
11771 don't really want that.
11772 - ScrollWindow: Fixed warning to be more understandable
11773 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
11774 scrollbars and scroll only the visible area
11775 * RichTextBox.cs: Removed debug output
11777 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11779 * NumericUpDown.cs (Text): Just use base
11780 * UpDownBase.cs: Ensure txtView is created before using it
11782 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11784 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
11785 casting to IntPtr to avoid 64bit overflow errors
11787 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11790 - AllowDrop: Don't force handle creation.
11791 - CreateHandle: Added call to tell driver if we're allowed to drop
11793 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
11795 * FileDialog.cs: Remember the last directory not only for the
11796 current instance but also for new FileDialog instances.
11798 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11800 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
11801 broke sending async messages
11803 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
11806 - ScrollWindow: Fixed method. We finally generate expose events again
11807 for scrolled areas. This was causing 'garbage' when scrolling
11808 textbox and other controls that used ScrollWindow
11809 - Switched from using the regular queue for paint events to the MS
11810 model of 'generating' paint events when the queue is empty.
11811 We use the new XQueueEvent.Paint subclass to store which windows
11813 - AddExpose now takes the x/y/width/height of the exposed area
11814 and inserts the window into the paint queue if not already there
11815 - InvalidateWholeWindow: Switched to use new AddExpose method
11816 - UpdateMessageQueue: Added which queue to monitor for paint events
11817 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
11818 the unlikely case nothing above handles it. We reset the expose
11819 pending states to get them off the queue.
11820 - GetMessage: Now pulls a paint event if no other events are in the
11822 - Invalidate: Switched to new AddExpose method
11823 - PeekMessage: Updated to understand pending paint events
11824 - UpdateWindow: Fixed logic bug. We were only updating if the window
11825 didn't need updating. Also switched to sending WM_PAINT directly,
11827 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
11828 and random access Remove(). The random access is needed to handle
11829 UpdateWindow() where a WM_PAINT is sent directly without accessing
11831 * ScrollBar.cs: Added Update() calls to cause immediate updates to
11832 allow for better feedback when scrolling. Scrollbars are small and
11833 the immediate update should make it 'feel' more responsive without
11834 slowing things down. ScrollBar still needs it's invaliate logic
11835 updated to not always invalidate the whole bar on certain changes.
11837 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11840 (BackColor): if the control does not support a transparent background,
11841 return the default backcolor when the parent backcolor is transparent.
11843 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
11845 * Application.cs: Updated to new StartLoop/GetMessage API
11846 * RichTextBox.cs: Provide some output on RTF parsing errors
11847 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
11848 new queue_id argument to GetMessage and PeekMessage to allow faster
11849 handling of per-thread queues in drivers.
11850 * Hwnd.cs: Added Queue tracking and property
11851 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
11852 * XEventQueue.cs: Added thread trackingA
11853 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
11855 - Implemented new per-thread queue
11856 - GetMessage: Fixed return/break behaviour on several cases. We were
11857 returning stale messages in some cases, instead of just processing
11860 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
11862 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
11864 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
11866 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
11867 fixed off-by-one comparisons between Width/Height and Right/Bottom.
11869 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
11871 * PropertyGridView.cs: Fix drop down width.
11873 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
11875 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
11876 a mess in DrawToolBar, so I removed one of them.
11878 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
11880 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
11881 needed (clip). Otherwise we get artifacts.
11883 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
11885 * FixedSizeTextBox.cs: Added constructor to allow specifying which
11887 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
11888 and switched FixedSizeTextBox to only be fixed vertical (#78116)
11889 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
11890 if it matches the scale base font (avoids unneeded scaling)
11892 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
11894 * X11DesktopColors.cs: One gtk_init_check should be enough
11896 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
11898 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
11901 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
11904 - Generate OnTextChanged for Backspace even if we're only deleting
11905 the current selection
11906 - When setting the Text property, only select all text if the
11907 control does not have focus when it is being set. Otherwise
11908 just place the cursor at the beginning of the control
11910 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
11912 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
11913 Added a little helper to draw PropertyGrid ToolBar with a different
11914 border and a different BackColor.
11915 * PropertyGrid.cs: Some background parts didn't get painted with the
11916 correct background color. Added a class that helps us to draw the
11917 correct border for PropertyGridView and a class that helps us to
11918 draw ToolBars with a different backcolor
11919 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
11921 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
11923 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
11924 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
11926 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
11928 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
11929 into the palette entries. Also, since we're working on a copy
11930 we needed to copy the palette back onto the bitmap.
11931 * Cursor.cs: Same fix as XplatUIWin32.cs.
11933 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
11935 * ImageListStreamer.cs: Need to read the var (or we're off)
11937 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
11939 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
11940 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
11941 TextBoxBase.cs: Unused var fixes
11942 * AxHost.cs: Small 2.0 fix
11943 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
11944 as it seems that is what at least Metacity expects. This will make
11945 icons show up on 64bit platforms. We still have some 64bit size
11946 issues, though, since the startup app window size still won't match.
11948 2006-04-25 Mike Kestner <mkestner@novell.com>
11950 * *.cs: cleanup newly reported exception var unused warnings.
11952 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
11954 * ThemeWin32Classic.cs: Button image alignment now matches exactly
11957 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
11959 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
11960 image. The image position is always the same, no matter if the
11961 button is pressed or not.
11963 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
11965 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
11966 selection and set the correct filename for SaveFileDialog.
11967 Patch by Emery Conrad.
11969 2006-04-24 Mike Kestner <mkestner@novell.com>
11971 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
11972 check for item.X outside the ClientRect instead of item.Y. Fixes
11975 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11977 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
11978 trust that value blindly and do some sanity check. Fixes bug #77814.
11980 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11982 * ImageListStreamer.cs: save the mask as a 1bpp image.
11984 2006-04-21 Mike Kestner <mkestner@novell.com>
11986 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
11987 pass Checked and Indeterminate to the Theme Engine. Improve
11988 encapsulation with ListBox.
11989 * ListBox.cs: Keep a StringFormat instead of calculating it every item
11990 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
11991 nested types. Move all CheckState functionality to CheckedListBox.
11992 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
11993 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
11994 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
11995 single base list. Fix scrollbar sizing and placement to mirror MS.
11996 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
11998 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
11999 for CheckedListBox by using new DrawItemState info. Center the
12000 checkboxes on the items. Use new StringFormat property.
12002 2006-04-18 Jackson Harper <jackson@ximian.com>
12004 * Form.cs: MdiChildren don't do default locations the same way as
12005 regular forms. This prevents a crash when trying to position the
12008 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
12010 * PropertyGridTextBox.cs: Formatting, copyright
12011 * PropertiesTab.cs: Formatting
12012 * PropertyGrid.cs: Formatting
12013 * PropertyGridView.cs: Formatting, fix drop down, enabled double
12014 click toggling of values
12016 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
12018 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
12019 * Control.cs (.ctor): verify_thread_handle is static, don't reset
12020 every time a control is created
12021 * Application.cs: Removed obsolete EnableRTLMirroring method
12023 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
12025 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
12026 SelectedIndex to -1. Fixes bug #78121.
12028 2006-04-17 Jackson Harper <jackson@ximian.com>
12030 * Binding.cs: Handle null values for Current and BindingContext.
12031 This occurs when binding is a little delayed.
12032 * CurrencyManager.cs: return null for Current when there are no
12034 - Hookup to the listchanged event on the DataView and update
12035 bindings when the list is changed. This fixes late binding of
12038 2006-04-17 Jackson Harper <jackson@ximian.com>
12041 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
12044 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
12046 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
12048 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
12049 with the correct ButtonState
12051 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
12053 * XplatUIX11.cs: Improved distinguishing between window types to
12054 tell the WM a type closer to what the app wants (Fixes #78107)
12056 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
12058 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
12061 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
12063 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
12064 drawing code to reflect the size grip changes
12066 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12068 * ImageListStreamer.cs: fix handling of the mask that follows the main
12069 bitmap when deserializing and serialize it properly. The generated mask
12070 should better be a 1bpp image, but I'll do that later.
12072 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
12074 * FileDialog.cs: Show something in the DirComboBox on *nix if the
12075 path doesn't fit into some of our Current.Places
12077 2006-04-13 Jackson Harper <jackson@ximian.com>
12079 * ComboBox.cs: Use borders instead of drawing our own decorations,
12080 try to obey correct rules for heights.
12083 * ThemeClearLooks.cs:
12084 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
12085 this is now handled by borders.
12086 - Remove unused DrawListBoxDecorationSize method.
12088 2006-04-13 Mike Kestner <mkestner@novell.com>
12090 * MenuAPI.cs: null guarding for the disbled click check fixes crash
12093 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
12095 * ThemeWin32Classic.cs:
12096 - Fixed CPDrawStringDisabled
12097 - Corrected drawing of disabled menu items
12098 - Fixed drawing of disabled radio buttons (bug #78095)
12099 - Draw check in a disabled CheckBox with color ControlDark
12101 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12103 * Form.cs: Use the provided width when calculating the menu size;
12104 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
12105 and ClientSize.Width won't be updated yet
12106 * Application.cs: Use Visible instead of Show() to make form visible,
12107 this way we create the handle later and menusize is considered
12109 2006-04-12 Mike Kestner <mkestner@novell.com>
12111 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
12114 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12116 * TextBox.cs: Implemented context menu
12118 2006-04-12 Mike Kestner <mkestner@novell.com>
12120 * ListView.cs: implement box selection. fixes #77838.
12121 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
12123 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12125 * XplatUIX11.cs: Added setting of window type when transient window
12126 is created (metacity would move it otherwise)
12127 * X11Structs.cs: Added WINDOW_TYPE atoms
12128 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
12129 background (the control is Opaque but still wants transparent
12132 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12134 * Control.cs: Added OnPaintBackgroundInternal to allow controls
12135 that set Opaque but don't mean it (like all ButtonBase-derived
12136 controls) to still draw their background
12137 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
12140 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12142 * Control.cs (PaintControlBackground): Set the graphics object
12143 on our PaintEvent to null to prevent it from being disposed
12144 when the PaintEvent gets disposed
12146 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
12148 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
12149 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
12151 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12154 - Added transparency check to BackColor property. Transparent
12155 backgrounds are only allowed if the control styles permit it
12156 - Added recursive painting of parent control background and
12157 foreground if a control with a transparent backcolor is drawn
12158 (Thanks to Tim Ringenback for providing his 'hack' as a base
12159 for this patch) Fixes #77985 and #78026.
12160 - Added Opaque style check before calling OnPaintBackground, no
12161 need to draw the background if the control is opaque
12162 - Removed ControlAccessibleObject owner variable (inherited from
12163 base, no need to define again)
12164 - Added some documentation links explaining the drawing events
12167 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12169 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
12170 that the affected control is the located at the left border of our
12171 parent (Fixes #77936)
12173 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12175 * TextBoxBase.cs: When rendering disabled or readonly controls,
12176 draw the background with 'Control' instead of 'Window' color as
12177 long as the user hasn't specifically set a color
12179 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12181 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
12182 since that won't be updated if the user types text (only if it's
12183 programatically set)
12185 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12187 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
12188 layout changes do to app-triggered resizes will have the proper
12189 display rectangle for layout
12191 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
12193 * ThemeWin32Classic.cs:
12194 - Make use of the SystemBrushes and SystemPens wherever possible
12195 - Corrected some highlight colors
12196 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
12198 * Theme.cs: Added Empty field to CPColor struct
12200 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12202 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
12203 is displayed when calculating the display rectangle. Thanks to Mike
12204 for teaching me the err of my ways.
12206 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
12208 * ScrollableControl.cs:
12209 - Rewrote DisplayRectangle code, now returning the proper x/y coords
12210 (instead of 0,0) and we now return the real width/height instead of
12211 just the clientrectangle, adjusted for padding. The rectangle is
12212 now cached and created by the new CalculateDisplayRectangle method.
12213 - Created new CalculateDisplayRectange method, which basically does
12214 what get_DisplayRectangle() did originally, but now using the
12215 right edge instead of DisplayRectangle to determine the size of
12217 - get_Canvas(): Fixed it to properly calculate canvas for
12218 right/bottom controls which seem to be placed to the right/bottom
12219 of any controls that have a fixed location
12220 - Removed TODO that's taken care of
12221 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
12222 and SetDisplayRectLocation according to new MSDN2 docs
12223 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
12224 event when that is called, this is added for compatibility
12225 - ScrollControlIntoView(): Implemented.
12226 - Switched scrollbars to be implicit, they shouldn't be selectable
12227 * ContainerControl: Now that ScrollControlIntoView is implemented, we
12228 call it when the active control is set/changed
12229 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
12230 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
12231 implicit_control variable (used for native Win32 message generation)
12232 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
12233 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
12234 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
12235 * XplatUIStructs.cs: Added ScrollBarCommands enum
12237 2006-04-10 Jackson Harper <jackson@ximian.com>
12240 * CheckedListBox.cs:
12247 * PrintPreviewControl.cs:
12253 * UpDownBase.cs: Fixup base event overrides.
12255 2006-04-06 Mike Kestner <mkestner@novell.com>
12257 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
12258 all user-initiated value changes to min <= value <= max-thumbsz+1.
12259 (set_Value): check for vert/horiz when calculating new thumb position.
12260 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
12262 (OnMouseMoveSB): refactor the thumb dragging code and refine
12263 invalidation logic to reduce flicker.
12264 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
12265 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
12266 (UpdateThumbPosition): small code readability cleanup
12268 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
12270 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
12273 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
12275 * ThemeNice.cs: Use a better graphics effect when a button is pressed
12277 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
12279 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
12280 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
12281 This dramatically reduces the number of Pen.Dispose calls.
12282 Where possible call ResPool methods only once instead of calling it
12283 over and over again (for example for the same color).
12285 2006-04-06 Mike Kestner <mkestner@novell.com>
12287 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
12288 Also remove an unused private field on the collection. Fixes #77972.
12290 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
12292 * ThemeNice.cs: Added ToolBar drawing code
12294 2006-04-06 Mike Kestner <mkestner@novell.com>
12296 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
12297 I'm assuming that means we need to look up the toplevel for the
12298 provided control. Fixes the crash trace in #77911 but exposes another
12299 crash in some strange reflection usage in NDocGui.
12301 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
12303 * ThemeNice.cs: Gave it a little silver touch and added Images
12305 * FontDialog.cs: FontDialog is not resizable
12306 * FileDialg.cs: Added SizeGripStyle.Show
12308 2006-04-05 Jackson Harper <jackson@ximian.com>
12310 * KeyboardLayouts.cs: Remove warning.
12312 2006-04-05 Jackson Harper <jackson@ximian.com>
12314 * Control.cs: Enable OnPaintInternal so we can use it for drawing
12315 all of our controls instead of Paint +=.
12330 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
12331 use OnPaintInternal. Remove Width/Height and Visible checks in
12332 paint handler, this is done at a higher level now.
12333 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
12334 * PaintEventArgs.cs: Add a handled flag so controls that don't
12335 want anymore painting after OnPaintInternal can make sure OnPaint
12338 2006-04-05 Mike Kestner <mkestner@novell.com>
12340 * Form.cs: fix the menu WndProc hacks to respect the native enabled
12341 state of the form, so that we don't process events when Modal dialogs
12342 are up. Fixes #77922.
12344 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
12346 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
12349 2006-04-05 Mike Kestner <mkestner@novell.com>
12351 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
12353 2006-04-05 Mike Kestner <mkestner@novell.com>
12355 * ListView.cs (HeaderMouseMove): null guarding for the over column
12356 when setting up the drag_to_index. Fixes #78015.
12358 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
12360 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
12361 in the taskbar. Transient windows seem to accomplish that.
12363 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
12366 - Re-enabled CreateParams.X/Y code for FormStartPosition
12367 - Added code for manual placement when creating the Control
12368 - Incomplete patch to treat MDI forms differently when
12369 setting the ClientSizeCore. (Still need to figure out handling
12372 - When we're explicitly setting the X/Y position of a non-Child
12373 window, let the WM know. Metacity really wants this.
12375 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
12377 * ThemeNice.cs: Added CPDrawButton
12379 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
12381 * ThemeNice.cs: Changed the color for focused buttons and activated
12382 the arrows for small scroll buttons.
12384 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
12386 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
12387 anymore. Changed some method modifiers to protected (virtual)
12388 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
12390 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
12391 Updated drawing of menus, buttons and progressbars; added
12394 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12396 * ImageListStreamer.cs: implemented serialization/deserialization
12399 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
12401 * ThemeWin32Classic.cs:
12402 - Removed all the DrawFrameControl stuff; CPDrawButton,
12403 CPDrawCheckBox and CPDrawRadioButton are now handled directly
12405 - Updated and corrected the drawing code of CPDrawButton,
12406 CPDrawCheckBox and CPDrawRadioButton to better match ms
12407 - Updated theme checkbox and radiobutton code to use the CP*
12410 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
12412 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
12415 2006-03-31 Jackson Harper <jackson@ximian.com>
12417 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
12419 * UpDownBase.cs: Don't CreateGraphics manually, use a
12420 Refresh. Ideally we would invalidate the correct areas here.
12422 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
12425 - We now track the mapping state of windows. If a window (or
12426 one of it's parents) is not mapped we no longer permit
12427 WM_PAINT messages to be generated since we'd otherwise get
12428 lots of BadMatch X errors. Jackson did all the work figuring
12430 - Destroying the caret if the window it's contained in is
12431 destroyed. Can't use regular DestroyCaret method since it
12432 might fall into a drawing function (trying to remove the
12433 caret) and with that generate new BadMatch errors. Again,
12434 Jackson tracked this down.
12435 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
12436 make sure we send the messages to all windows. (The old code
12437 would send the WM_DESTROY to the window, and then all child
12438 windows would be 'gone' because the WM_DESTROY handle lookup
12439 would no longer find the destroyed window)
12440 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
12441 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
12443 2006-03-31 Jackson Harper <jackson@ximian.com>
12445 * ScrollableControl.cs: Dont recalc if we are not visible.
12447 2006-03-31 Mike Kestner <mkestner@novell.com>
12449 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
12450 the visibility branch.
12452 2006-03-31 Jackson Harper <jackson@ximian.com>
12454 * ScrollBar.cs: Cap values when incrementing/decrementing.
12456 2006-03-31 Mike Kestner <mkestner@novell.com>
12458 * MenuAPI.cs: setup menu.tracker for popup/context menus.
12459 * ToolTip.cs: guard against timer expirations with no active control.
12460 Not sure why it happened.
12462 2006-03-31 Mike Kestner <mkestner@novell.com>
12464 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
12466 * ToolTip.cs: Position the tooltip based on where the cursor is at
12467 popup time, not at MouseEnter time. Add a Down state so that we don't
12468 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
12469 positioning offset. Lookup DisplaySize at positioning time, since it
12470 can theoretically change during invocation.
12471 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
12472 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
12474 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
12476 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
12477 Fixes behaviour when the Text property of the box is String.Empty
12479 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
12481 * XplatUIX11.cs: Only send mouseleave for our client windows, not
12482 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
12485 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
12487 * FileDialog.cs: Visual enhancement for the popup buttons in
12490 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
12492 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
12495 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
12497 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
12498 highlighted menu items to match ms
12500 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
12502 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
12504 2006-03-30 Mike Kestner <mkestner@novell.com>
12506 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
12507 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
12508 go active to account for HotLight to Selected transition.
12509 * MenuItem.cs: add internal Selected prop. Fill out the Status
12510 property by calculating it from item info. Add HotLight,
12511 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
12513 2006-03-30 Mike Kestner <mkestner@novell.com>
12515 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
12517 2006-03-29 Jackson Harper <jackson@ximian.com>
12519 * Form.cs: Implement TODO.
12521 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
12523 * PrintPreviewDialog.cs: Implemented missing methods and events; still
12524 missing proper dialog setup in the constructor
12526 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
12528 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
12530 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
12531 - Fixed ResetBindings and removed TODO
12532 - Added check for cross-thread calls to get_Handle()
12533 - Added Marshaller attribute for set_Font to satisfy class status
12534 * FontDialog.cs: Removed TODOs that seemed implemented
12535 * UpDownBase.cs: Removed unneeded TODO and Fixme
12536 * MessageBox.cs: Implemented support for Default button and removed TODO
12537 * FileDialog.cs: Removed obsolete TODO
12538 * DomainUpDown.cs: Removed obsolete TODO
12539 * ButtonBase.cs: Removed obsolete TODO
12540 * XplatUIWin32.cs: Removed obsolete TODO
12542 - Removed obsolete TODO
12543 - Calling CheckAcceptButton when the acceptbutton is changed to allow
12544 internal status updates
12545 - Making sure the active control is selected when the control is created
12546 * CurrencyManager.cs: Removed obsolete TODO
12548 2006-03-29 Mike Kestner <mkestner@novell.com>
12550 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
12551 of PrintPreviewDialog and RichTextBox.
12553 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
12555 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
12556 DarkDark, Light and LightLight colors for a specific color
12557 * ThemeWin32Classic.cs:
12558 - Use Button drawing code to draw RadioButtons and CheckBoxes with
12559 Appearance = Button
12560 - Make use of the new ResPool helper CPColor
12561 - Draw ProgressBar and StatusBar with correct 3D borders
12563 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
12565 * ColorDialog.cs: Return selected color. Fixes bug #77940.
12567 2006-03-28 Mike Kestner <mkestner@novell.com>
12569 * ListView.cs: fix Icon layout to plan for scrollbar widths when
12570 calculating col/row counts.
12572 2006-03-28 Mike Kestner <mkestner@novell.com>
12578 switch to explicit interface method implementation for some methods
12579 corcompare identifies as inconsistent with MS.
12581 2006-03-28 Mike Kestner <mkestner@novell.com>
12585 add a few missing methods from the class status output.
12587 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
12589 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
12592 2006-03-28 Mike Kestner <mkestner@novell.com>
12594 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
12596 2006-03-27 Mike Kestner <mkestner@novell.com>
12598 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
12599 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
12601 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
12603 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
12605 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
12607 * ThemeWin32Classic.cs:
12608 - GroupBox: Inserted a little gap between the text and the lines
12610 - Made the code in CPDrawBorder3D more readable
12611 - Corrected the drawing location of the up and down arrows in
12614 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
12616 * ControlPaint.cs: Corrected line widths in DrawBorder for
12617 ButtonBorderStyle Inset and Outset
12619 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
12621 * ThemeWin32Classic.cs:
12622 - Rewrote the totally broken CPDrawBorder3D method. That was
12623 one of the main problems for the terrific ThemeWin32Classic
12625 - Updated and corrected Button drawing
12626 - Correct the dimensions of the SizeGrip to match ms ones
12627 - Removed a small drawing glitch in DrawComboBoxEditDecorations
12628 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
12629 Border3DStyle.Sunken to match ms.
12631 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
12633 * ThemeWin32Classic.cs: First small part of the "de-uglify
12634 ThemeWin32Classic" effort, SizeGrip
12636 2006-03-24 Jackson Harper <jackson@ximian.com>
12638 * XplatUIX11.cs: Give a max idle time of one second, this matches
12639 MS and forces an Idle event every second when there are no other
12640 events in the queue.
12642 2006-03-24 Mike Kestner <mkestner@novell.com>
12644 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
12645 * ListView.Item.cs: fix layout issues with null image lists and images
12646 smaller than checkbox size.
12647 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
12648 mode like MS does. It's weird, but consistent. ;-)
12651 2006-03-24 Mike Kestner <mkestner@novell.com>
12653 * ListView.cs: Scroll wheel support for the item control. Fixes
12656 2006-03-23 Jackson Harper <jackson@ximian.com>
12658 * ScrollableControl.cs: Special case negative sized areas, not
12660 * MonthCalendar.cs: Save the rect of the clicked date so we can
12661 use it for invalidation.
12662 - Try to cut down on the number of invalidates
12663 - Invalidate the rect the mouse is over and was over when moving
12664 the mouse, so we get the focus box following the cursor.
12666 2006-03-23 Mike Kestner <mkestner@novell.com>
12668 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
12669 focus rectangle drawing. Fixes #77835.
12671 2006-03-23 Mike Kestner <mkestner@novell.com>
12673 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
12674 the if and else if and reverting back to the original == check on the
12677 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
12679 * FontDialog.cs: Update the example panel if the selected index of
12680 the fontListBox changes.
12682 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
12684 * FileDialog.cs: Make FileDialog remember which directory it was in
12685 last in the same execution.
12687 2006-03-22 Mike Kestner <mkestner@novell.com>
12689 * FileDialog.cs: make the DropDownMenu on the toolbar display
12690 RadioChecks since they are mutually exclusive and that's what MS does.
12692 2006-03-22 Mike Kestner <mkestner@novell.com>
12694 * Theme.cs: add Color param to CPDrawMenuGlyph.
12695 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
12696 checks and radio marks and arrows are visible on highlighted items.
12697 * ControlPaint.cs: update to use new Theme signature.
12699 2006-03-22 Mike Kestner <mkestner@novell.com>
12701 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
12702 is active. Fixes #77870.
12704 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
12706 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
12707 to be focused/selected after startup
12709 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
12712 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
12713 CustomColors and ShowHelp properties
12714 - Some internal rewrites to get better results when using the
12717 2006-03-22 Mike Kestner <mkestner@novell.com>
12719 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
12720 HoverSelection. Fixes #77836.
12722 2006-03-22 Mike Kestner <mkestner@novell.com>
12724 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
12725 ToggleButtons. (De)Sensitize the Back button around a stack count of
12726 1, not 0. Update ButtonSize based on a pixel count of the win32
12727 control. Adjust the toolbar size/location for new button size.
12729 2006-03-22 Jackson Harper <jackson@ximian.com>
12731 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
12733 * ScrollBar.cs: When doing increments and decrements we need to
12734 set the Value property so that ValueChanged gets raised. A
12735 possible optimization here would be to make an internal SetValue
12736 that doesn't invalidate immediately.
12737 * ToolTip.cs: Tooltips get added to their container (when
12738 supplied) so they get disposed when the container is disposed.
12739 - Don't create tooltips for String.Empty. This prevents all these
12740 little 2-3 pixel windows from showing up when running nunit-gui
12741 and driving me mad.
12742 * Form.cs: Don't set topmost when setting the owner if the handles
12743 haven't been created yet. The topmost set will happen when the
12744 handles are created.
12746 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
12749 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
12750 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
12751 visible (to allow them to recalculate their sizes)
12753 2006-03-21 Mike Kestner <mkestner@novell.com>
12755 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
12756 methods. Removed a ton of redundant code. Still not really happy with
12757 the border rendering, but I think that's mainly because of the
12758 ControlDarkDark being black instead of a dark grey. Depending on how
12759 close we want to be, we might want to revisit those color choices.
12760 Among the new features added during the refactor were DropDownArrow
12761 pressed rendering, Disabled image rendering. Proper flat appearance
12762 boundary rendering. Removed the Divider and Wrapping dividers since I
12763 can't figure out any combination of themes and conditions to make the
12764 MS control draw a horizontal line on a toolbar despite what the
12765 Divider property docs indicate.
12766 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
12767 conditions and incorrect layout. Updated to coding standard.
12768 * ToolBarButton.cs: refactored layout and positioning code from
12769 ToolBar to here. Invalidate wherever possible instead of forcing
12770 redraws of the whole toolbar.
12771 (Known remaining issues: explicit ButtonSize smaller than provided
12774 2006-03-21 Mike Kestner <mkestner@novell.com>
12776 * ContextMenu.cs (Show): use the position parameter instead of just
12777 showing at the MousePosition.
12779 2006-03-21 Jackson Harper <jackson@ximian.com>
12781 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
12782 control handle this.
12783 * TreeNodeCollection.cs: If we are clearing the root node we need
12784 to reset top_node so calcs can still happen.
12785 * ThemeWin32Classic.cs: This is a Flags so we need to check
12788 2006-03-21 Jackson Harper <jackson@ximian.com>
12790 * DataGrid.cs: Create columns when the binding context has been
12792 * X11Structs.cs: Keysyms are uints.
12793 - Add size to fix build.
12795 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
12797 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12799 - Added ResetMouseHover method to allow controls to retrigger
12800 hovering if they need it more than once
12801 - Implemented MouseHoverTime and MouseHoverSize properties
12802 * Timer.cs: Start() must reset the interval
12803 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
12806 2006-03-21 Jackson Harper <jackson@ximian.com>
12808 * X11Keyboard.cs: improved layout detection. Move the nonchar
12809 tables into this file.
12810 * KeyboardLayouts.cs: Move the tables into resource files.
12812 2006-03-21 Mike Kestner <mkestner@novell.com>
12814 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
12816 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
12818 * Mime.cs: Various speed optimizations. Looking up mime types
12819 is now 2 times faster than before
12821 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
12823 * CreateParams.cs: Added internal menu field
12825 - Switched call order for UpdateBounds; now we always call
12826 the one that also takes ClientSize, and we're calculating the
12827 client size via driver method in the others. The previous
12828 method of tracking client size by difference wasn't working
12829 for forms where even the starting client size wouldn't match
12830 the overall form size (due to borders) (Part of fix for #77729)
12831 - CreateParams(): Do not use parent.Handle unless the handle is
12832 already created. Causes havoc with Nexxia and throws off our
12833 creation of controls
12835 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
12836 - Switched handling of ConfigureNotify over to new PerformNCCalc
12837 method (consolidates code)
12838 - Changed RequestNCRecalc to use new PerformNCCalc method
12839 - Added calls to RequestNCRecalc when menus and borders are changed
12840 to allow app to set NC size. (Part of fix for #77729) This matches
12841 when MS send a WM_NCRECALC on Win32 windows.
12842 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
12843 (Part of fix for #77729). This matches what MS does, they also
12844 send that message when the form is made visible.
12845 - XException.GetMessage: Improved usability of X errors by including
12846 a translation of the window into Hwnd and Control class
12847 - Improved debug info for window creation, reparenting and destruction
12848 - Created helper method WindowIsMapped() [Currently not used]
12849 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
12851 - CreateParams: Now setting our menu on the new internal menu field
12852 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
12853 avoid calculating the same property twice
12855 - Improved usability of ToString() for debugging purposes
12856 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
12857 determine the height of the menu, instead of just the font. This
12858 required to also create a graphics context and to keep a bmp
12859 around (for performance reasons)
12861 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
12863 * MenuAPI.cs: Added OnMouseUp method
12865 - Now remembering the requested client size, avoids size errors
12866 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
12867 instead of base if the menu is active. This is required due to
12868 control now capturing and releasing on down/up and it would
12869 prematurely release our menu capture
12871 2006-03-17 Jackson Harper <jackson@ximian.com>
12873 * KeyboardLayouts.cs: Add the czech layouts.
12875 2006-03-16 Jackson Harper <jackson@ximian.com>
12877 * Control.cs: Use the viewport space when sizing not the controls
12878 client size, so things like ScrollableControl that effect the
12879 viewport size (when scrollbars are added) are computed correctly.
12880 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
12882 - Handle creating BindingManagers for null data sources.
12883 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
12884 source, otherwise when rows are added they are added to the 'fake'
12885 datasource and we will crash when trying to set the position in
12887 - Use Implicit scrollbars on the datagrid so they arent
12890 2006-03-16 Jackson Harper <jackson@ximian.com>
12893 * InternalWindowManager.cs:
12894 * MdiWindowManager.cs:
12895 * X11Keyboard.cs: I really want Mike to love me again (fix
12896 compiler warnings).
12898 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
12901 - OnMouseDown: Switch to editing mode when clicking on the cell
12902 even if we're clicking on the cell that's currently
12904 - ProcessGridKey: Left/Right now wrap like MS.Net does
12905 - ProcessGridKey: Tab now knows to add a new row when tab is
12906 pressed in the cell of the last column of the
12908 - ProcessGridKey: Enter now adds another row if pressed in the last
12909 row and selectes the new row, same column cell
12910 - ProcessGridKey: Home/End navigate columns, not rows, like
12911 originally implemented
12912 - Broke ProcessKeyPreview code out into an extra Internal method
12913 so it can be called from the edit code
12914 * DataGridTextBox.cs (ProcessKeyMessage):
12915 - Switched to accept Tab keypresses
12916 - Added F2 handling to allow jumping to the end of the edited cell
12917 - Added logic to allow moving caret left/right inside edited cell
12918 and making the edited cell jump when the caret hits cell borders
12919 - Tab and Enter are now passed to the datagrid after being handled
12921 - Removed capture code now that Control handles it
12922 - set_SelectionStart now ensures caret is visible
12924 2006-03-16 Jackson Harper <jackson@ximian.com>
12926 * TrackBar.cs: Debackwards the increment/decrement for handling
12927 mouse clicks on the bar with vertical trackbars.
12928 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
12929 bottom to match MS.
12931 2006-03-16 Mike Kestner <mkestner@novell.com>
12933 * ListView.cs: make shift/ctrl keyboard and mouse selection
12934 consistent with the MS control. Fix a bug in
12935 SelectedListViewItemCollection.Clear that was pissing me off for the
12936 better part of a day because the collection was being altered
12937 underneath us as we walked the list.
12939 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
12941 * Control.cs: Not sure how we could miss this so long, but it seems
12942 that MS.Net has Capture set all the way from before calling
12943 OnMouseDown through sending the mouse events until after
12944 OnMouseUp. This will fix DataGrid's selection being set to end
12945 at the location of the MouseUp.
12947 2006-03-15 Jackson Harper <jackson@ximian.com>
12949 * BindingContext.cs: Check the binding after its added so that it
12950 can initialize the binding managers and hookup to events.
12951 * Binding.cs: Data members seem to sometimes include rows/cols in
12952 the format Row.Column we now take this into account.
12953 - Hookup to the position changed event so we can update the
12954 control when the position has changed in the data set.
12955 * CurrencyManager.cs: Take into account the row/col naming
12956 convention when creating dataset tables.
12957 * BindingContext.cs: Using a newer better way of storing
12958 datasource/datamember pairs. Hopefully this better matches MS for
12959 looking up binding managers.
12962 2006-03-15 Jackson Harper <jackson@ximian.com>
12964 * BindingContext.cs: The currency manager needs the data member
12965 name, if the member is a data set we use the name to find the
12967 * CurrencyManager.cs: When creating the list prefer an IList over
12969 - Attempt to create a DataTable from a DataSet (TODO: might need
12970 some better error checking here, although MS doesn't seem to have much)
12971 - If we have a DataTable create a view and use it as our list.
12973 2006-03-15 Mike Kestner <mkestner@novell.com>
12975 * ListView.cs: keep a matrix of the icon mode layout to facilitate
12976 keyboard navigation. Support Up/Down/Left/Right selection correctly
12977 for all 4 View modes.
12978 * ListViewItem.cs: add internal row/col fields for icon layouts.
12980 2006-03-15 Jackson Harper <jackson@ximian.com>
12982 * TabControl.cs: Redraw the tabs when we resize so their newly
12983 calculated sizes are drawn on screen.
12984 * X11Keyboard.cs: Begginnings of XIM support. We also now support
12985 composite characters.
12986 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
12987 - filter events so that composite characters can be created
12989 * X11Structs.cs: Add XIMProperties enum.
12991 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
12993 * Control.cs (BringToFront, SendToBack): Don't use window or handle
12994 unless it's created
12996 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
12998 * Control.cs (PerformLayout): We don't need to consider visiblity
12999 for anchoring, only for docking. This fixes 'whacky' alignment
13000 in listbox and other controls that use implicit scrollbars after
13001 the previous PerformLayout patch
13002 * ListBox.cs: Switched to use implicit scrollbars
13004 2006-03-14 Mike Kestner <mkestner@novell.com>
13008 - chain up the "new event" overrides to base and use
13009 OnEvent to raise them. Part of fix for bug #76509.
13011 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
13013 * FileDialog.cs: Do not select an item in the parent directory
13016 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13018 * Control.cs (PerformLayout): It would seem that we considered
13019 invisible windows for our layout. Not quite the right thing
13020 to do. Now we don't any longer, thereby fixing bug #76889.
13022 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13024 * Control.cs (CanFocus): I goofed. A control can have focus
13025 even though it's not selectable. Made it match MS docs.
13027 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13029 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
13030 center by default (fixes #76895)
13031 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
13032 all uses of Border3DSides.All with the explicit ORd together
13033 Left|Right|Top|Bottom because I assume that nobody was aware
13034 that All also implies a center fill. Most places I checked had
13035 a fill right above.
13036 * ProgressBarStyle.cs: Added
13038 2006-03-13 Mike Kestner <mkestner@novell.com>
13040 * ListView.cs: fix breakage in drag shadow header positioning
13041 from Peter's csc compilation fix.
13043 2006-03-13 Mike Kestner <mkestner@novell.com>
13045 * ListView.cs: fix NRE produced by backspacing twice in a focused
13048 2006-03-13 Mike Kestner <mkestner@novell.com>
13050 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
13052 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13054 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
13056 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
13057 the allowed size before making programmatic size changes
13059 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13061 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
13062 set, metacity is broken and will still use the emty sizes in
13063 the struct. (Fix for #77089)
13065 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13067 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
13068 WindowExStyles and marked both enums as Flags
13069 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
13070 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
13071 to match WindowStyles split
13073 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
13074 - Updated to match WindowStyles split
13076 - Fixed FosterParent creation, was using ExStyle on the Style field
13077 (This should help with Popup focus issues)
13078 - Updated to match WindowStyles split
13080 2006-03-13 Jackson Harper <jackson@ximian.com>
13082 * MdiWindowManager.cs: Use the system menu height. Fixes some
13083 strange sizing issues.
13085 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
13087 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
13089 - Scroll to caret after inserting text (#77672)
13090 - Make scroll range one pixel higher, fixes off-by-one error (and
13091 makes underlines visible on the last line)
13093 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
13095 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
13096 the keyboard state from being stuck with keys in 'pressed' state when
13097 focus is switched away via keyboard
13098 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
13099 reset the keyboard if no X11 KeyUp events are expected to come
13100 * X11Structs.cs: Switched type of Visible to bool to match driver
13102 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
13105 - Switched caret to be just 1 pixel wide, matches MS and looks less
13107 - Moved caret display 1 pixel down from the top of the control
13109 - InsertCharAtCharet: Update the selection start if moving the caret
13110 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
13111 - No longer always creating the caret when the caret methods are
13112 called. Only the actual ShowCaret/HideCaret will do that now
13113 - Only setting caret visible if the owner control has focus
13114 - UpdateView: Added invalidation-shortcut logic for center and right
13115 aligned text. Previously we'd update all according to the left
13116 logic which caused drawing errors. Also fixed height of invalidated
13117 areas, now properly invalidating the whole area (was off-by-one)
13118 - owner_HandleCreated: Always generate the document when the
13119 handle is created; this ensures that
13121 - Fixed situation where caret would disappear under the right
13122 window border, also improved scrolling behaviour on left-
13124 - Fixed right-aligned textboxes to have a border to the
13125 right instead of the caret being under the right border
13127 - Switched from 'nested' to simple visible/not visible tracking
13128 for caret (part of fix for #77671)
13129 - No longer passing through translated FocusIn/FocusOut messages
13130 since we were notifying too often and the wrong windows. Instead
13131 we just notify our focussed window of receiving or loosing focus
13132 * XplatUIWin32.cs: Switched from 'nested' show/hide
13133 counting for caret to simple visible yes/no behaviour (part of
13136 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
13138 * Mime.cs: Remove debug code...
13140 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
13142 * MimeGenerated.cs: Removed
13143 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
13144 and subclasses) from /usr/(local/)share/mime and
13145 $HOME/.local/share/mime.
13147 2006-03-10 Jackson Harper <jackson@ximian.com>
13149 * MdiWindowManager.cs: Recalc the NC area when a window is
13150 maximized/restored so that the menu area is drawn on forms that
13153 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13155 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13156 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
13157 us to force a WM_NCCALCRESIZE message being sent. This is needed
13158 for MDI maximizing.
13160 2006-03-10 Jackson Harper <jackson@ximian.com>
13162 * Form.cs: We need to use the ActiveMenu when calculating menu
13164 - Fix nullref when the window manager hasn't been created yet.
13165 * Control.cs: Fix nullref when we try to bring a control to the
13166 front that has no parent.
13167 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
13169 - Add a dummy item to the maximized menu so it always has the
13170 correct height. Otherwise when there are no menus we don't get our
13174 2006-03-10 Jackson Harper <jackson@ximian.com>
13176 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
13178 * Form.cs: Make the window_state internal so the window managers
13180 - When an MDI child is maximized let its window manager create the
13181 main menu (so it can add its icon).
13182 - Notify the window managers of state changes
13183 - Let the window manager paint its buttons and handle button
13184 clicks on the menu when it is maximized.
13185 * InternalWindowManager.cs: Move the prev_bounds into the mdi
13186 window manager, since tool windows don't use it, only mdi windows.
13187 - Tell the main form that we don't want it to handle NCPAINT
13188 itself to avoid extra painting.
13189 - Handle clicks on a maximized windows menu.
13190 - Handle window state changes
13191 - Handle minimize/maximize clicks correctly by setting the window state.
13192 * MdiWindowManager.cs: Add an icon menu that (the menu you get
13193 when clicking on the forms icon).
13194 - New method to create a forms maximized menu. This is its normal
13196 - Handle window state changes.
13197 - Handle sizing of maximized windows. Maximized windows are just
13198 drawn bigger then the parent visible area. All controls are still
13199 there, they are just outside the visible area (this matches windows).
13200 * MdiClient.cs: No scrollbars when a child window is maximized.
13201 - Let the children windows figure out how big they should be when
13202 sizing maximized windows.
13203 - Implement a version of ArrangeIconicWindows somewhat similar to
13204 Windows version. There are some little differences, but I don't
13205 think any app will rely on the layout of minimized mdi windows.
13207 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13209 * Padding.cs: Several fixes to allow compiling with csc 2.0
13211 2006-03-09 Jackson Harper <jackson@ximian.com>
13214 * MenuItem.cs: Cheap hack so we can add items to the list without
13215 the events being raised. This allows adding mdi items during
13216 drawing. TODO: Should probably find a better time to add the items.
13218 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13220 * ThemeWin32Classic.cs:
13221 - CheckBox_DrawText: Added logic to not wrap if not enough space
13222 is available (Fix for bug #77727)
13223 - RadioButton_DrawText: Added logic not to wrap if not enough
13224 space is available (Fix for bug #77727). Also removed some
13225 duplicate code, DrawString always drawing the regular text
13226 before hitting the if statement.
13228 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13230 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
13232 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13234 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
13235 * ContainerControl.cs: Partial implementation of some 2.0 scaling
13236 methods. Moved the new 2.0 properties into alphabetical order with
13237 other properties and added MonoTODO tags
13239 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13241 * AutoScaleMode.cs: Added. Fix build.
13243 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13245 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13246 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
13247 and was requiring premature handle creation for calls from above
13248 * Form.cs, Control.cs: Removed handle arguments from calls to
13249 CalculateClientRect()
13251 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13253 * ListView.cs (HeaderMouseMove): Fix csc compilation.
13254 drag_column.column_rect is MarshalByRef and can't be used that way
13256 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13258 * AxHost.cs: Added deserialization constructor for
13259 AxHost+State (fixes 77743)
13261 2006-03-09 Mike Kestner <mkestner@novell.com>
13264 - Added column drag reordering for details view.
13265 - fixed behavior when mouse is dragged off column and
13266 AllowColumnReorder is false.
13267 * ColumnHeader.cs: clone the format too in Clone.
13268 * Theme.cs: add DrawListViewHeaderDragDetails method.
13269 * ThemeWin32Classic.cs:
13270 - impl new method for drawing drag column shadows and targets.
13271 - support column offset for details mode in DrawListViewItem.
13273 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13275 * TextControl.cs: Reset the char_count when the document is cleared
13276 (Fixes bug reported on mono-winforms mailing list)
13278 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13280 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
13281 of calling base we simply process the key ourselves, since both
13282 DefWindowProc and the handled method would set m.Result.
13285 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13287 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
13288 method also moves the window; instead implemented a copy of
13289 Control.ScaleCore (Part of fix for #77456)
13291 - Created new CreateGraphicsInternal method to allow providing
13292 a graphics context when no handle is created without triggering
13293 handle creation. (Part of fix for #77456)
13294 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13296 - Switched Constructor to require TextBoxBase instead of Control (to
13297 allow uncast access to CreateGraphicsInternal)
13298 - Safeguarded use of owner.Handle property. No longer accessing it
13299 unless the handle is already created.
13300 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13301 - Now triggering a recalc when owning control becomes visible
13302 * TextBox.cs, RichTextBox.cs: Switched to use new internal
13303 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
13304 premature handle creation (Part of fix for #77456)
13306 - We now only destroy our double-buffering buffers when the
13307 control is resized or disposed, but not when visibility
13308 changes. (The code even re-created them twice every time)
13309 - Now requiring a redraw of the buffer on visibility changes
13310 (fixes bug 77654 part 2)
13311 - Not passing OnParentVisibleChanged up unless the control
13313 - CanFocus: Fixed to match MS documentation
13314 - Focus: Fixed to return actual focus state and to check if
13315 setting focus is legal before setting it
13317 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
13319 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
13320 when to draw focus rectangle by looking at parent focus and
13321 selected state instead. This fixes TabPages on Linux sometimes
13322 having none or multiple focus rectangles.
13323 * XplatUIX11.cs (SetFocus):
13324 - Don't set the focus if the same window already has focus
13325 - Use SendMessage instead of PostMessage (like it's Win32
13326 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
13327 to match MS behaviour
13328 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
13329 are not selectable.
13331 2006-03-07 Jackson Harper <jackson@ximian.com>
13333 * PictureBox.cs: Revert line I accidently committed last week.
13335 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
13338 - Added new IsRecreating and ParentIsRecreating properties to
13339 allow testing if RecreateHandle has been called on ourselves
13340 or one of our parents
13341 - WndProc(WM_DESTROY): If our control handle is being recreated
13342 we immediately need to create the handle when receiving the
13343 destroy, that way our child windows find a valid parent handle
13344 when they themselves are being recreated upon WM_DESTROY receipt
13345 (fix for bug #77654 part 1)
13347 - DestroyWindow: WM_DESTROY must be sent to our own window before
13348 notifying any child windows. MS documents that child windows
13349 are still valid when WM_DESTROY is received. (Control now relies on
13351 - Added some fine-grain debug options
13353 2006-03-06 Jackson Harper <jackson@ximian.com>
13355 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
13356 box and base calculations off this.
13357 * MdiChildContext.cs:
13358 * MdiWindowManager.cs: Don't need to ensure scrollbars here
13361 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
13363 * Splitter.cs: In situations where the affected control is added
13364 to the parent's control list after the splitter, we would not
13365 populate affected. Now we try populating it on mousedown, if
13366 it's not already set, and force it to be re-set whenever our
13369 2006-03-03 Matt Hargett <matt@use.net>
13371 * Control.cs: implement Control.Padding
13372 * Padding.cs: -Padding.All returns -1 when constructing with the
13373 implicit default ctor
13374 -Padding.ToString() matches MS.NET
13375 * ContainerControl.cs: implement
13376 ContainerControl.AutoScaleDimensions
13377 * ListControl.cs: implement ListControl.FormattingEnabled
13378 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
13380 * TabPage.cs: Implement UseVisualStyleBackColor.
13381 * PictureBox.cs: Implement PictureBox.InitialImage.
13383 2006-03-03 Mike Kestner <mkestner@novell.com>
13385 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
13386 event declarations to proxy to base event.
13387 * ListViewItem.cs: update to use ItemControl.
13388 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
13389 * ThemeWin32Classic.cs: update to new ListView theme API and fix
13390 column header label rendering for 0 width columns.
13392 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
13394 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
13395 that causes the control to be created. Fixes #77476.
13397 2006-03-02 Jackson Harper <jackson@ximian.com>
13399 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
13402 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
13404 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
13405 passed in for the EventArgs (fixes #77690)
13407 2006-03-01 Jackson Harper <jackson@ximian.com>
13409 * ScrollBar.cs: Refresh afterbeing resized.
13411 2006-02-28 Mike Kestner <mkestner@novell.com>
13413 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
13414 Clean up a tracker compile warning.
13415 * MenuItem.cs: add internal PerformPopup method.
13418 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
13420 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
13421 implicit expose) when the text is set to null
13423 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
13425 * RichTextBox.cs (FlushText): When newline is true, we always
13426 need to split the line, even if no text is on it and we may
13427 never eat newlines. (Fixes #77669)
13429 2006-02-28 Mike Kestner <mkestner@novell.com>
13431 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
13432 and set Selected instead.
13433 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
13436 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
13438 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
13440 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
13443 - Got rid of the panel. All controls are now directly added to
13445 - It is now possible to set a font with the Font property
13446 - MinSize and MaxSize property do now what they should
13447 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
13448 - Searching and selecting a font with the font textbox works now,
13449 the same applies to the style and size textbox
13450 - Draw the correct 3D border in the example panel
13451 - Fixed a little mem leak (unused fonts didn't get disposed)
13452 - Many other internal updates/rewrites...
13455 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
13458 - InsertRTFFromStream: Added 'number of characters inserted' argument
13459 - set_SelectedRTF: Now using the number of characters to calculate
13460 the new location for the selection and cursor (x/y cannot be used
13461 due to potentially already wrapped text)
13463 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
13465 * TextControl.cs: Added property and implemented means to allow
13466 disabling recalculation of a document (can be used to speed up
13467 multiple inserts and is needed to make RTF inserts predictable, see
13469 * RichTextBox.cs: Using the new NoRecalc property of Document to
13470 keep x/y insert locations predictable. Also makes it faster inserting
13471 large chunks of RTF
13473 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
13475 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
13476 it's easier for a child control to handle the other messages without
13477 having to duplicate the special functionality
13479 - WndProc: Removed calling base handler for WM_KEYDOWN and added
13480 code to handle processing the key ourselves, in order to get
13481 access to the result of KeyEventArgs.Handled. We now only call
13482 ProcessKey if they key hasn't been handled already. Fixes #77526.
13483 - set_Text: If null or empty string is given, just clear the
13484 document. Fixes part of #77526
13486 2006-02-27 Jackson Harper <jackson@ximian.com>
13488 * SizeGrip.cs: Paint the background color before painting the grip
13489 so things look right.
13490 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
13492 2006-02-27 Mike Kestner <mkestner@novell.com>
13495 - Restructure layout and invalidation model to remove a ton of
13496 flicker from the control and speed up performance in general.
13497 - Add manual column resize, flickers like crazy, but I already have
13498 some ideas on how I'll fix that. (#76822)
13499 - Merge the three Icon-based views into a single layout method.
13500 - Move item selection interaction logic from the item since
13501 interaction with the collections is more appropriate to the view.
13502 - Deselection on non-item clicks.
13504 - Encapsulate most of the layout. Add some internal props to trigger
13505 layout. Move to a model where Items invalidate themselves instead
13506 of just invalidating the whole control every time something changes.
13507 - Invalidate on Text/Caption changes.
13508 - switch to an offset based layout model to avoid having to absolute
13509 position every element on item moves.
13510 - correct checkbox layout to conform to MS layout.
13511 * ThemeWin32Classic.cs:
13512 - refactor some column header drawing code.
13513 - fix string justification for column headers (#76821)
13514 - make SmallIcon labels top justified for compat with MS impl.
13515 * ThemeClearlooks.cs:
13516 - adjust to new ListViewItem internal checkbox bounds api.
13518 2006-02-27 Jackson Harper <jackson@ximian.com>
13520 * Control.cs: Change where implicit controls fall in the zorder.
13521 They are now on top of all children.
13522 - Synced AddImplicit code with Add
13523 - Removed unused enumerator.
13524 * SizeGrip.cs: Remove the TODO as its been TODONE.
13526 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
13528 * TextControl.cs(Insert): Combine the last lines unless the insertion
13529 string ends with \n\n, otherwise we leave one line too many (Fixes
13530 something I noticed with the testapp for #77526; the bug itself was
13531 already fixed in the previous checkin)
13533 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
13536 - SelectionColor and SelectionFont methods no longer set absolute
13537 styles. Instead, the keep font or color respectively (This
13538 resolves a long-standing FIXME in the code)
13539 - When flushing RTF text, the insert code now considers text trailing
13540 behind the insertion point (Fixes the bug where when replacing
13541 the selected text via SelectedRTF the remainder of the line behind
13542 the selection would stay on the first insertion line)
13544 - AppendText now updates the selection points after inserting text
13545 - AppendText now ensures that the last tag (sometimes 0-length) of
13546 the document is used for the style information (Fixes part of
13549 - Created new FontDefiniton class to allow describing partial style
13551 - StreamLine() now takes a lines argument, to allow it to decide
13552 whether an encountered zero-length tag is the last in the document
13553 (which must be kept to not loose the font/color contained in it,
13555 - Created Combine() and Split() methods for Marker structs, to
13556 support marker updates due to reformatted documents (soft line
13558 - Implemented Document.CaretTag setter
13559 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
13560 of the last line (Not the cause, but also exposed by bug #77220)
13561 - Added LineTag argument to InsertString method, to allow callers
13562 to force a certain tag to be used (required to force use of the
13563 trailing zero-length tag of a document)
13564 - Now updating markers in Combine(), to avoid stale tag markers
13565 - Added some method descriptions to aid maintenance
13566 - Implemented new FormatText concept, allowing additive/subtractive
13567 formatting by only specifying the components that are to be
13568 changed. This was needed for resolving the RTB.SelectedColor/
13569 RTB.SelectedFont fixmes
13570 - Added Break() support method to allow breaking up linetags (used
13571 for partial formatting)
13572 - Added GenerateTextFormat() method. It is used for partial
13573 formatting and allows to generate a full font/color from given
13574 attributes and an existing tag.
13576 2006-02-26 Jackson Harper <jackson@ximian.com>
13578 * XplatUIX11.cs: Use the correct caption height.
13579 - Translate hittest coordinates to screen coords to match MS.
13580 * XplatUIWin32.cs: When we create MDI windows we need to reset
13581 some of the style flags, so we get a nice blank window, and can
13582 draw all the decorations ourselves.
13583 - Set a clipping rectangle on the non client paint event, the
13584 window manager drawing code needs one.
13585 * Form.cs: The window manager needs to know when the window state
13587 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
13588 don't need to factor in border and title sizes in these
13589 methods. TODO: Remove the args and fix the call points.
13590 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
13592 - Let the driver set the cursors.
13593 - Improve active window handling
13594 - Correct sizes for title bars and buttons.
13595 - Match MS drawing better
13596 * MdiWindowManager.cs: We don't need to handle border style
13597 updates specially anymore.
13598 - Check for scrollbars when windows are done moving
13599 - Handle Active properly.
13600 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
13601 correctly. I am spewing the exception though, so we don't hide the
13604 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
13606 * DataGridViewRowPostPaintEventArgs.cs,
13607 DataGridViewCellPaintingEventArgs.cs,
13608 DataGridViewRowCollection.cs,
13609 DataGridViewRowPrePaintEventArgs.cs,
13610 DataGridViewCell.cs: Clear a few warnings and implement a few
13611 exceptions that should be thrown.
13613 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
13615 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
13616 'inheriting' our parent's (non-default) cursor. (Part of
13617 the fix for #77479)
13619 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
13621 * XplatUIX11.cs: Fixed cast to make csc happy
13623 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
13625 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
13626 it's for the client area (part of fix for #77479 and needed
13627 for MDI window cursor handling)
13629 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
13630 the appropriate default cursors and also passing the message
13631 up the parent chain
13632 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
13633 for non-client areas
13635 2006-02-15 Jackson Harper <jackson@ximian.com>
13637 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
13638 is a real MDI window
13640 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
13642 * X11DesktopColors.cs: Instead of checking the desktop session
13643 string for "KDE" check if it starts with "KDE"
13645 2006-02-10 Jackson Harper <jackson@ximian.com>
13647 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
13650 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
13652 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
13655 - Got rid of the panel. All controls are now directly added to
13657 - Changed to mono coding style
13659 2006-02-10 Jackson Harper <jackson@ximian.com>
13661 * InternalWindowManager.cs: We don't need the set visibility to
13662 false hack anymore now that peter has written beautiful shutdown
13665 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
13667 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
13668 where already explicitly destroyed
13670 2006-02-10 Jackson Harper <jackson@ximian.com>
13672 * MdiClient.cs: Handle the case where windows are too high or to
13673 the left and we need scrollbars.
13675 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
13677 * MimeIcon.cs: Added some icons
13680 - Got rid of the panel. All controls are now directly added to
13682 - Changed to mono coding style
13683 - On Linux "My Computer" and "My Network" will now show some
13684 more usefull information. A new class, MasterMount, gathers
13685 this information from /proc/mount. Updated MWFFileView to make
13686 use of this information
13687 - Fixed a bug that caused FileDialog to crash when
13688 ".recently_used" file had a zero size
13689 - FilterIndex does now what it should
13691 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
13694 2006-02-09 Jackson Harper <jackson@ximian.com>
13696 * ComboBox.cs: Don't touch if null.
13698 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
13700 * Cursor.cs: 64bit safeness fix
13701 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
13703 2006-02-09 Jackson Harper <jackson@ximian.com>
13705 * Form.cs: If a form is made into an MDI form update the styles so
13706 all the props can get set correctly.
13707 - Kill the mdi_container when we dont need it anymore.
13708 * InternalWindowManager.cs: Add missing NOT
13710 2006-02-08 Jackson Harper <jackson@ximian.com>
13712 * InternalWindowManager.cs: Respek clipping when drawing MDi
13715 2006-02-08 Jackson Harper <jackson@ximian.com>
13717 * Hwnd.cs: Add bits to track non client expose events.
13718 * XplatUIX11.cs: Track non client expose events on the hwnd. This
13719 gives us a proper invalid rect and will allow for some nice
13720 optimizations with NC client drawing
13721 - MDI windows are children windows, so move their style handling
13722 into the child window block.
13723 * InternalWindowManager.cs: Remove a state reset that was
13724 getting invoked at the wrong time. Fixes managed windows getting
13725 into a 'stuck' captured state.
13727 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
13729 * TextControl.cs (Document.ctor): Now initializing
13730 selection_anchor. Fixes #77493
13732 2006-02-07 Jackson Harper <jackson@ximian.com>
13734 * TrackBar.cs: The increment/decrements were backwards.
13736 2006-02-07 Mike Kestner <mkestner@novell.com>
13738 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
13739 to the instance itself.
13741 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
13743 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
13744 on ulongs and pointers, the size differs between 32bit and 64bit
13747 2006-02-07 Mike Kestner <mkestner@novell.com>
13749 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
13750 for 64 bit platforms to work around a metacity bug.
13752 2006-02-07 Jackson Harper <jackson@ximian.com>
13754 * TrackBar.cs: Process the input keys we need, and hookup to
13755 KeyDown instead of using WndProc, so we get key messages.
13757 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
13759 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
13761 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
13762 we need to translate the XdndVersion atoms array before sending it
13764 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
13767 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
13768 number of bits for the property, not the number of bytes. The
13769 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
13770 but would not crash since it specified 8 bits instead of 4 bits)
13771 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
13772 defined as XID -> long in the C headers)
13773 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
13774 references since those are now IntPtr to begin with
13775 - Switched all Atom.XXX 'int' casts to IntPtr casts
13776 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
13777 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
13778 - Added XChangeActivePointerGrab DllImport (for X11DnD)
13780 - Changed 'int' type for Atoms in XEvent structures to IntPtr
13781 - Changed atom in HoverStruct to be IntPtr
13783 - Removed local DllImports, switched code to use those from XplatUIX11
13784 - Removed/fixed casts related to the switch of Atom to be a IntPtr
13786 2006-02-06 Mike Kestner <mkestner@novell.com>
13788 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
13789 method signatures in the import region. There may still be some
13790 lingering struct marshaling issues, as I didn't drill down into those.
13793 2006-02-06 Jackson Harper <jackson@ximian.com>
13795 * ComboBox.cs: Dont manually set the top_item, this is computed
13796 when the scrollbar position is set.
13798 2006-02-06 Mike Kestner <mkestner@novell.com>
13800 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
13801 startup crashes on amd64. There's other fixes needed. All pinvoke
13802 usage of Atom needs to be mapped to IntPtr for example. And there are
13803 likely other int/long issues to be addressed.
13805 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
13807 * FileDialog.cs: One more...
13809 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
13811 * FileDialog.cs: Next try
13813 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
13815 * FileDialog.cs: First part of fix for #77464
13817 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
13819 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
13820 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
13821 AcceptButton border drawing.
13823 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
13825 * Form.cs: Moved positioning of form after auto scaling is applied,
13826 otherwise it would possibly use wrong form size.
13828 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
13830 * Control.cs (RecreateHandle): No need to re-create any child
13831 controls, the child windows will get destroyed automatically by
13832 the windowing system or driver, and re-created when the handle
13833 is being accessed the first time. Fixes #77456
13834 * Form.cs: No longer setting the form to closing if the handle is
13835 being recreated. This seems like the right thing to do, don't
13836 have a bug or testcase for this, though.
13838 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
13840 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
13841 controls to avoid unwanted side effects
13843 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
13846 - ScaleCore needs to scale the bounds, not the ClientSize of the
13847 control. Fixes #77416.
13848 - DefaultSize is 0,0 for control
13850 - DefaultSize is 100, 20
13851 - SetBoundsCore: Now enforcing the height, no matter if the provided
13852 height is more or less than the preferred one, as long as AutoSize
13854 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
13856 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
13859 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
13860 call unless both performLayout is true *and* we have a pending
13862 - ResumeLayout: MS does not completely nest Suspend and Resume,
13863 they bottom out at 0, fixed our code to match that.
13864 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
13865 SetBoundsCore, we were updating even when we shouldn't. This fixes
13866 swf-anchors mis-anchoring when resizing the app fast and lots.
13867 - UpdateDistances: Now only setting the left and top distance if
13868 we have a parent and are not suspended, this is based on
13869 a suggestion by Don Edvaldson in bug #77355.
13870 - OnVisibleChanged: Fixed logic when to create the control. We may
13871 not create the control if we have no parent or if it's not visible;
13872 switched to using Visible property instead of is_visible field
13873 since the property also considers parent states. This fixes a bug
13874 when starting Paint.Net
13876 2006-02-02 Jackson Harper <jackson@ximian.com>
13878 * Form.cs: If the forms handle hasn't been created yet don't call
13879 into xplatui to make it top most, just set the topmost flag on the
13880 form in CreateParams
13881 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
13883 2006-02-01 Jackson Harper <jackson@ximian.com>
13885 * ScrollableControl.cs: Refactored the Recalculate method a
13886 little, this wasn't handling all the variants of bottom and right
13887 bars needed to be added and added/removed based on their
13888 counterparts being added/removed (which changes the drawable
13889 size). Also we special case client widths and heights of 0 and
13890 don't add the scrollbar for those.
13892 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
13895 - Added method to get AbsoluteGeometry(); currently unused, but might
13896 be used in the future, if we try again to figure out toplevel
13897 coordinates with some more crappy window managers
13898 - Added FrameExtents() method to retrieve the WM set decoration size
13899 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
13900 to deal with at least KDE, FVWM and metacity (Fixes #77092)
13902 - Added whacky_wm tracking var for metacity
13903 - Added logic to have default menu height if the actual menu height
13904 has not yet been calculated (part of fix for #77426)
13905 * Form.cs: Keep track whether client size has been set and re-set
13906 it if a menu is added/removed afterwards (Fixes #77426)
13908 2006-01-31 Jackson Harper <jackson@ximian.com>
13910 * Control.cs: When a new Site is set on the component attempt to
13911 pull the AmbientProperties from it.
13913 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
13915 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
13916 in the background of the owning form. Fixes #77332
13918 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
13920 * MimeIcon.cs: Fix for #77409
13922 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
13924 * XplatUIX11GTK.cs: Initial import
13926 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
13928 * FixedSizeTextBox: fixes class signature
13930 2006-01-30 Jackson Harper <jackson@ximian.com>
13932 * FixedSizeTextBox.cs: New internal class that represents a
13933 textBox that will not be scaled.
13936 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
13939 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
13941 * XplatUIX11.cs: Retrieve default screen number instead of
13942 assuming 0. Attempted fix for #77318
13944 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
13947 - GetWindowPos: When a window is parented by FosterParent, use
13948 the desktop instead of FosterParent as the base to get coordinates
13949 - CreateWindow: Don't make FosterParent the parent window for Popups
13950 if we don't want a taskbar entry, Popups automatically don't get one
13951 * Hwnd.cs: Need to call remove to actually remove the key from the
13954 2006-01-30 Mike Kestner <mkestner@novell.com>
13956 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
13958 2006-01-30 Jackson Harper <jackson@ximian.com>
13961 * TreeNode.cs: Raise events no matter how the treenode is
13962 checked. Patch by Don Edvalson.
13964 2006-01-30 Jackson Harper <jackson@ximian.com>
13966 * TreeNode.cs: Signature fix.
13968 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
13970 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
13972 2006-01-20 Mike Kestner <mkestner@novell.com>
13974 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
13975 event forwarding when menus are active.
13976 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
13977 Most of the patch is pdb's with a little rework.
13979 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
13981 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
13982 Removed GetMenuDC and ReleaseMenuDC methods; replaced
13983 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
13984 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
13985 * InternalWindowManager.cs: Added use of PaintEventStart/End to
13986 handling of WM_NCPAINT message, now passing the PaintEventArgs to
13987 the PaintWindowDecorations method
13988 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
13989 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
13990 * MenuAPI.cs: Made tracker window invisible
13992 - Removed GetMenuDC and ReleaseMenuDC methods
13993 - Implemented the client=false path for PaintEventStart and
13996 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
13998 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
13999 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
14002 - MaximizeBox, MinimizeBox: Recreate the handle when setting
14004 - CreateParams: Reworked the styles to match MS look'n'feel,
14005 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
14006 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
14008 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14010 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
14011 window is not mapped, since otherwise every form that's being
14012 created is considered minimized, which is wrong.
14013 * Form.cs: Catching the exception and returning our internal value
14016 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14018 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
14019 SetWindowMinMax() to have means to tell the driver about the minimum,
14020 maximum and maximized state window sizes. (Part of the fix for #76485)
14022 - Implemented tracking of minimum and maximum window size, now calling
14023 new SetWindowMinMax() driver method to tell the driver (Part of the
14025 - Finished handling of WM_GETMINMAXINFO method, now setting all values
14026 (Completes fix for #76485)
14027 - Calling new SetWindowMinMax driver method when the handle for a
14028 form is created, to make sure the driver knows about it even if
14029 the values have been set before the window was created
14030 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
14031 to avoid messing up our anchoring calculations (partial fix
14033 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
14035 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
14036 - Improved GetWindowState() to detect 'Minimized' state on Metacity
14037 (and presumably other freedesktop.org compliant WMs). Left the
14038 assumption unmapped=minimized, needed for SetVisible to work.
14039 - Now setting the window state when creating windows
14040 - Fixed SetVisible to consider/set the window state when mapping
14041 a Form. We cannot set the state before it's mapped, and we cannot
14042 use Form.WindowState once it's mapped (since it would ask the
14043 driver and get 'normal'. Therefore, we grab the state before
14044 mapping, map, and then set state.
14045 - Implmemented SetWindowMinMax method; Metacity does not seem to
14046 honor the ZoomHints, though.
14048 - Removed MINMAXINFO (moved to XplatUIStructs)
14049 - Added SetWindowMinMax stub (on Win32 the only way to set that
14050 information is in response to the WM_GETMINMAXINFO message, which
14051 is handled in Form.cs)
14052 - Added logic to SetVisible to set the proper window state when a
14053 form is made visible (fixes #75720)
14055 2006-01-26 Jackson Harper <jackson@ximian.com>
14057 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
14058 same way we handle them with Invoke.
14060 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
14063 - Added tracking of window state so CreateParams can return
14064 the appropriate style
14065 - Moved setting of WS_CAPTION style in CreateParams to allow
14066 styles without caption
14067 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
14068 control if the TextBox property is accessed. Fixes #77345
14070 - get_Created: now uses is_disposed and is_created to determine
14071 return value (suggested by Jackson)
14072 - CreateHandle: No longer exits if the handle is being recreated
14073 - RecreateHandle: If the handle is not yet created call the
14074 appropriate method to create either control or handle. If the
14075 control is already created CreateHandle will simply exit instead
14076 of just creating the handle
14077 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
14078 now SendMessage WM_DESTROY directly to the control when DestroyWindow
14081 - When DestroyWindow is called, instead of waiting for the
14082 DestroyNotification from X11, we directly post it to the WndProc
14083 and immediately dispose the hwnd object.
14084 Same applies to DestroyChildWindows, and this obsoletes the
14085 expose_pending tracking. Contrary to Win32 behaviour we destroy our
14086 child windows before our own, to avoid X11 errors.
14087 - Removed the direct sending of WM_PAINT on UpdateWindow
14089 - Reworked DoEvents and GetMessage to allow access to internal queue
14090 even when trying non-blocking access to the queue. Fixes #77335.
14091 Based on a patch suggestion by Don Edvalson. The new private
14092 GetMessage can now also be used as a backend for a PeekMessage
14094 * XplatUI.cs: Improved debug output for CreateWindow
14096 2006-01-25 Jackson Harper <jackson@ximian.com>
14098 * Help.cs: Allow param to be null. Patch by Don Edvalson.
14100 2006-01-24 Jackson Harper <jackson@ximian.com>
14102 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
14103 when we have a MaxDropItems lower then the selected index.
14105 2006-01-24 Jackson Harper <jackson@ximian.com>
14107 * Control.cs: Don't allow selection of non visible controls, allow
14108 selection of controls without parents.
14110 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
14112 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
14113 * DataGridDrawingLogic.cs: Add editing row only when is necessary
14115 2006-01-23 Jackson Harper <jackson@ximian.com>
14117 * UpDownBase.cs: Make the textbox handle all the selection and
14118 tabbing. This fixes tabing to updown controls.
14120 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
14122 * TextBoxBase.cs: fixes exception thown the object was null
14124 2006-01-23 Jackson Harper <jackson@ximian.com>
14126 * ButtonBase.cs: Just use the base CreateParams. They set
14127 visibility and enabled correctly.
14130 * MonthCalendar.cs: Lets let the base set as much of the
14131 createparams as possible so we don't have duplicate code all over
14134 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
14136 * ThemeGtk.cs: Added TrackBar and some experimental code to
14137 get double buffering back
14139 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
14141 * DataGrid.cs: Allows row number set internally higher than the last
14142 when creating a new row. Restores the editing functionality.
14144 2006-01-20 Mike Kestner <mkestner@novell.com>
14146 * MimeIcon.cs: delay Image creation until the icons are accessed
14147 instead of creating 190 scaled images on GnomeHandler startup.
14149 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
14151 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
14152 first call base before processing the event. Fixes #77279
14154 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
14156 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
14157 that the stride for the GDI bitmap would match the stride of
14160 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
14162 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
14164 2006-01-19 Jackson Harper <jackson@ximian.com>
14166 * ComboBox.cs: Hookup the text controls keydown event so we get
14167 those when the text control has the focus.
14169 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14171 * Label.cs: Now using the base events instead of defining new ones;
14172 this allows us to just call the base properties without having to
14173 duplicate all base property logic
14175 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14177 * Label.cs: A label by default is not a tabstop (Fixes one of our
14178 failing nunit tests)
14180 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14182 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
14183 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
14185 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14187 * Cursor.cs: Reimplemented creating cursor bitmaps without using
14188 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
14191 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
14192 constructor creates images that can't be saved. Part of the fix
14194 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
14195 - SetWindowState: Switched ShowWindow flags (part of an upcoming
14196 bug fix for handling window state in forms properly)
14198 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14200 * ThemeGtk.cs: Simplify ScrollBar drawing
14202 2006-01-18 Jackson Harper <jackson@ximian.com>
14204 * Splitter.cs: Set the default dock style for the splitter control
14205 in the constructor.
14207 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14209 * ThemeGtk.cs: Corrected StateType and ShadowType for
14212 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14214 * Control.cs: Make use of Theme.DoubleBufferingSupported
14216 - Added drawing for flat style buttons
14217 - Added ScrollBar drawing
14219 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14221 * ThemeClearlooks.cs: Removed some unneeded code.
14222 * ThemeGtk.cs: First part of ThemeGtk enhancements.
14224 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
14226 * LinkLabel.cs: We need to update the hover drawing when
14227 leaving the control as well.
14229 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
14231 * DataGrid.cs: Clicking on non empty areas in the columns
14232 area was giving an exception
14234 2006-01-17 Jackson Harper <jackson@ximian.com>
14236 * ThemeWin32Classic.cs:
14237 * ListView.cs: Do not draw/clip the headers when the header style
14240 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
14242 * DataGrid.cs: Fixes 77260
14244 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
14246 * DataGrid.cs: Clicking on a column on a empty grid was giving
14249 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
14251 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
14252 or any keypress will crash the grid.
14254 2006-01-17 Mike Kestner <mkestner@novell.com>
14256 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
14257 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
14258 invisible/previously-visible items.
14261 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
14263 * ThemeClearlooks.cs:
14264 - Added CL_Draw_Button method; now other theme controls that are
14265 not derived from button or do not have a button can draw buttons
14267 - Updated ComboBox drawing
14268 - Beautified RadioButton drawing
14269 - Corrected drawing of bottom and left tabs
14270 - Beautified DateTimePicker and MonthCalendar
14271 - Added CPDrawButton and CPDrawRadioButton
14273 2006-01-16 Jackson Harper <jackson@ximian.com>
14275 * ComboBox.cs: Set the initial value of the scrollbar to the
14276 current index. Reduce the numbers of refreshs and IndexOfs called.
14278 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
14280 * FileDialog.cs: When the file listview is focused hitting the
14281 backspace key moves the fileview to the parent directory
14283 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14286 - Added RecreateHandle call when changing taskbar visibility to
14287 trigger reparenting in Win32 driver (Fixes #75719)
14288 - If a window has minimize or maximize buttons, it cannot have
14291 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
14292 the toplevel form with FosterParent (A toolwindow not on the
14293 taskbar) (Fixes #75719)
14294 - Made FosterParent a toolwindow
14296 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
14298 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
14300 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
14302 * ToolTip.cs: If SetToolTip is called from a control and the mouse
14303 is currently over that control, make sure that tooltip_window.Text
14306 2006-01-13 Mike Kestner <mkestner@novell.com>
14308 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
14310 2006-01-13 Jackson Harper <jackson@ximian.com>
14312 * TreeView.cs: On MS GetNodeAt never actually factors in the X
14313 value passed. Also redraw the selected node when we recieve
14314 focus, so tabbing between trees works correctly.
14316 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
14318 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
14319 ~/.gconf/%gconf-tree.xml, so use
14320 .gconf/desktop/gnome/interface/%gconf.xml
14322 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14324 * TextControl.cs: Draw text in gray if control is disabled
14326 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14328 * TreeView.cs: Draw the focus rectangle outside the highlight, to
14329 make sure it's always visible. Fixes #76680.
14331 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14333 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
14335 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
14337 * PageSetupDialog.cs: Added.
14338 * PrintDialog.cs: Attributes.
14339 * PrintPreviewControl.cs: Updates.
14340 * PrintPreviewDialog.cs: Updates.
14342 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14344 * Control.cs: Undid my selection check fix, since it's not needed
14346 - Now considering the presence of hscroll/vscroll when sizing
14347 vscroll/hscroll respectively. Fixed bug #77077
14348 - Added Left/Up/Down/Right to IsInputKey list to prevent
14349 ContainerControl from stealing them. This fixes what I broke
14350 with my last checkin.
14352 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14354 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
14355 I finally understand how the property can be set without a setter :-)
14357 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14360 - Switched RunLoop to use static Message.Create to create a
14362 - Added PreProcessMessage call in runloop for keyboard events; this
14363 is part of the fix for #77219, I overlooked this originally in the
14364 MSDN doc for PreProcessMessage
14366 - Removed call to PreProcessMessage from handling of keyboard
14367 messages; it's supposed to be done in the message pump
14368 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
14369 per MSDN documentation.
14370 - IsInputChar: All chars are input chars by default; removed the
14371 parent calling chain, MS does not document that
14372 - PreProcessMessage: If IsInputChar is true, we want to return false
14373 to allow dispatching of the message
14374 - When selecting the next control, now also check that we're not
14375 selecting ourselves again and therefore return a false positive.
14377 - Tried to match return values for IsInputKey and ProcessDialogKey
14378 to what MS returns; moved processing of our special keys outside
14379 ProcessDialogKey since MS does not seem to return true on those.
14380 - Moved code that previously was in ProcessDialogKey into new private
14381 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
14382 - Reworked handling of WM_CHAR to not have to duplicate code from
14383 Control.cs anymore, instead we simply call down to base.
14385 2006-01-12 Jackson Harper <jackson@ximian.com>
14387 * ComboBox.cs: We always need to refresh the text area when
14388 EndUpdate is called. Fixes the combobox in the file dialog.
14389 * Control.cs: Don't create the creator_thread until the controls
14390 handle is created. Also in InvokeRequired we check if the
14391 creator_thread is null. This gives the effect of InvokeRequired
14392 returning true if the controls handle is not created yet, and
14395 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14398 - Added StartLoop() driver method. This is used to allow drivers to
14399 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
14400 loop for a particular thread
14401 - Added EndLoop() driver method. This is called once the message
14402 pump for the thread is shut down
14403 - Added SupportsTransparency method to allow the driver to indicate
14404 opacity support for windows
14406 - Removed TODO attribute, completed AllowTransparency property
14407 - Added documented logic to Opacity
14408 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
14409 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
14410 versions of CompatibleTextRendering
14411 * X11Structs.cs: Added opacity atom to our atom enumeration
14412 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
14413 of a form might be set before it's reparented by the WM, and we need
14414 the opacity value without calling up to Form)
14415 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
14416 SupportsTransparency() driver methods
14417 * Application.cs: Now calling StartLoop and EndLoop driver methods
14419 - Added opacity atom registration
14420 - Added StartLoop()/EndLoop() methods. They're empty right now but
14421 will need to get implemented when we switch to a per-thread queue
14422 - Implemented SupportsTransparency() method
14423 - Implemented SetWindowTransparency() method
14424 - Added support for setting the opacity value when a window is
14425 reparented (since the opacity needs to be set on the WM frame)
14426 * XplatUIOSX.cs, XplatUIWin32.cs:
14427 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
14429 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
14431 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
14433 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
14435 * FileDialog.cs: Added ToolTip for MWFFileView
14436 * MimeIcon.cs: Rewrote GnomeHandler.
14437 - Get currently used gnome icon theme from
14438 ($HOME)/.gconf/%gconf-tree.xml
14439 - Make use of inherited icon themes
14440 - Support SVG icon themes like Tango via librsvg
14442 2006-01-12 Miguel de Icaza <miguel@novell.com>
14444 Revert's Jackson's revert which broke 2.0 builds. Fix both
14447 * Application.cs: Move the use_compatible_text_rendering outside
14448 the NET_2_0 define. If we ever need to use the
14449 use_compatible_text_rendering on the individual controls they will
14450 access the variable from the common shared code paths.
14452 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14455 - Added more granular debug options
14456 - Added method to print both window text and id
14457 - Switched debug output to use new Window() debug method
14458 - Added IsEnabled() driver method
14459 - Added EnableWindow() driver method
14461 - Removed end_modal; no longer needed, new loop handles termination
14462 via 'closing' variable
14463 - If form is modal, setting DialogResult will now initiate loop
14464 termination via 'closing' variable
14465 - Added support for is_enabled/WS_DISABLED to CreateParams
14466 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
14468 - Removed code that's now in RunLoop from ShowDialog()
14469 - Added various documented sanity checks to ShowDialog()
14470 - Added handling of WM_DESTROY message; we set 'closing' on getting
14471 the message to indicate the message pump to terminate
14472 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
14473 send by the Application.ExitThread method. (We send the message
14474 to destroy the window after all other events have been
14475 processed through the queue, instead of destroying the handle
14477 - Moved code from Close() method to WM_CLOSE handler; added logic
14478 to only send close-related events if the form is not displayed
14480 * Splitter.cs (..ctor): Fixed typo in resource name
14482 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
14484 - set_Cursor: Now only setting calling into XplatUI if the handle for
14485 the control is already created; this avoids implict handle creation
14486 or crashes if it's not created
14487 - set_Enabled: Now setting the enabled state via the new driver method
14488 instead of just tracking it
14489 - CreateParams: Added logic to set WS_DISABLED based on enabled state
14490 - CreateControl: Reordered event firing and method calls to more
14491 closely fire events in the order MS does. Now setting the
14492 enabled state in the driver when creating the control.
14493 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
14495 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
14496 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
14497 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
14499 - Added tracking of window enabled state (get_Enabled/set_Enabled)
14500 - Added EnabledHwnd property to easily allow a driver to find the
14501 handle of the first enabled window in the parent chain (this is
14502 used by drivers to pass up input events of disabled windows)
14503 * XplatUIDriver.cs: Added IsEnabled() method
14505 - Removed crude and obsolete exiting tracking variable
14506 - Removed internal ModalRun(); replaced by RunLoop()
14507 - Implemented private CloseForms() method to allow closing all
14508 windows owned by a particular (or all) threads
14509 - Exit() now properly closes all windows without forcing the message
14511 - Removed obsolete InternalExit() method
14512 - Changed Run() methods to use new RunLoop() message pump
14513 - Implemented new RunLoop() method for both modal and non-modal forms
14515 - get_CreateParams: Added setting of WS_DISABLED
14516 - Simplified ShowDialog(); now all the work is done in RunLoop(),
14517 invoked via Form.ShowDialog()
14518 * NativeWindow.cs: We don't remove the window from the collection when
14519 the handle is destroyed; there might still be messages for it in the
14520 queue (mainly the resulting WM_DESTROY); instead it will be removed
14521 when Control calls InvalidateHandle in the WM_DESTROY handler
14523 - CreateWindow: Added logic to handle the WS_DISABLED window style
14524 - EnableWindow: Implemented based on Hwnd.Enabled
14525 - GetMessage: Reset PostQuitState so the method can be called again
14526 - Implemented support for disabled windows (passing messages to the
14527 first enabled parent) in handling all input messages
14528 - Added optimizations for handling Expose events
14529 - Implemeted new driver method IsEnabled()
14530 - Now always resetting paint pending tracking vars when we start paint
14531 - Re-implemented UpdateWindow via just sending a WM_PAINT message
14532 * XplatUIOSX.cs: Added IsEnabled method stub
14533 * XplatUIWin32.cs: Implemented new IsEnabled() method
14535 2006-01-11 Jackson Harper <jackson@ximian.com>
14537 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
14538 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
14539 variables a little.
14540 * ColorDialog.cs: Clear out the old form before adding the new
14543 2006-01-11 Jackson Harper <jackson@ximian.com>
14545 * X11Dnd.cs: Make sure to add all the text formats when adding
14546 strings to the data object.
14547 * TreeNodeCollection.cs: When adding to a sorted tree we need to
14548 do some redrawing too. Also change the UpdateNode to an
14549 UpdateBelow so the newly added node gets painted.
14551 2006-01-11 Miguel de Icaza <miguel@novell.com>
14553 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
14554 LinkLabel.cs, PropertyGrid.cs: Implement the
14555 UseCompatibleTextRendering property for 2.x
14557 * Application.cs (SetCompatibleTextRenderingDefault): Add.
14559 2006-01-11 Jackson Harper <jackson@ximian.com>
14561 * TreeView.cs: Use the property for setting the selected node so
14562 the correct events get raised.
14563 * TreeNode.cs: Update the tree when the fore/back colours of a
14566 2006-01-10 Jackson Harper <jackson@ximian.com>
14568 * TreeView.cs: Allow setting SelectedNode to null.
14570 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14572 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
14574 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14576 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
14578 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14580 * PrintDialog.cs: Added attributes and set default property values.
14582 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14584 * PrintControllerWithStatusDialog.cs:
14585 Added PrintControllerWithStatusDialog.
14587 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14589 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
14590 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
14592 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
14594 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
14596 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
14598 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
14599 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
14601 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
14603 * MimeIcon.cs: Added internal class SVGUtil.
14605 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
14607 * FileDialog.cs: Don't crash if there are two files with the
14608 same name but different locations.
14610 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
14612 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
14613 dates across multiple month grids. Used to not highlight entire
14614 month, but does now.
14616 2006-01-06 Jackson Harper <jackson@ximian.com>
14618 * MonthCalendar.cs: Removed DoEvents call to prevent a running
14619 message loop. Change timer intervals to numbers that seem more
14622 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
14624 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
14625 object for location info since screen object is now implemented.
14627 2006-01-05 Jackson Harper <jackson@ximian.com>
14629 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
14630 * AsyncMethodResult.cs: We no longer use a WeakReference for the
14631 AsyncMethodResult, this is because we ALWAYS want the
14632 ManualResetEvent to get set.
14633 * Control.cs: When disposing use an async invoke to call shutdown
14634 code, so that thigns don't block on the finalizer thread. Also
14635 check if we even have a message loop before trying to send
14636 messages, if we don't then don't bother sending messages.
14637 - No more weak references for async methods
14638 * XplatUIDriver.cs: No more weak references for async methods.
14640 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14642 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
14643 returns two FontFamily with the same name
14645 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
14647 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
14648 drawing disabled text. Instead using the ColorGrayText color
14650 2006-01-04 Jackson Harper <jackson@ximian.com>
14652 * TreeNode.cs: redraw the node when its image index is changed.
14654 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
14656 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
14657 time I checked there are no others like it.
14659 2006-01-04 Jackson Harper <jackson@ximian.com>
14661 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
14662 this gives the behavoir I was looking for.
14663 * Control.cs: Special case Invoking EventHandlers, this matches MS
14664 and fixes part of bug #76326.
14666 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14668 * ThemeClearlooks.cs, FileDialog.cs:
14669 - Reflect the latest Theme class changes
14670 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
14673 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14675 * Theme.cs: Cache UI resource images and resize them if needed
14677 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
14679 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
14680 is called. This fixes the crash in Nexxia when setting the font
14681 attributes in the chat. [However, RTF needs a look-over to make sure
14682 that all SelectionXXX methods handle the special case that selection
14683 is empty and therefore the change must be applied to all text starting
14684 at the cursor/selection start]
14686 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
14688 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14689 XplatUIOSX.cs: Added SendMessage and PostMessage methods
14690 * X11Keyboard.cs: Switched to new way of calling PostMessage
14692 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
14694 * Theme.cs: Added theme interface for images to allow the theme to
14695 control what images are used for things like FileDialog, MessageBox
14697 * MessageBox.cs: Now uses the new Theme icon/image interfaces
14699 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
14702 - Removed some dead code
14703 - Opening a recently used file does work now
14704 - Small UI enhancements
14707 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
14709 * FileDialog.cs: Forgot too add __MonoCS__
14711 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
14713 * FileDialog.cs: We are able to read recently used files now let's
14714 go on and write them.
14716 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
14718 * FileDialog.cs: Breathe some life into "last open"/"recently used"
14720 * MimeIcon.cs: Do a check for the top level media type also
14722 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
14724 * ThemeClearlooks.cs:
14725 - Added CPDrawStringDisabled
14726 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
14727 some chars if the text doesn't fit into text_rect
14728 - DrawListViewItem: If View = View.LargeIcon center the image;
14729 rewrote the drawing of ListViewItem.Text if View =
14732 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
14734 * MimeIcon.cs: Use default KDE icon theme if there is no
14735 "48x48" directory for the current icon theme, fixes #77114
14736 * Mime.cs: Disable not working and actually not used code.
14737 * ThemeWin32Classic.cs:
14738 - Replace "new SolidBrush" in GetControlBackBrush and
14739 GetControlForeBrush with ResPool.GetSolidBrush
14740 - Changed DrawListViewItem from private to protected virtual
14742 - Added form.MaximizeBox = true
14743 - Don't throw an exception if there is a broken symbolic link
14745 2005-12-23 Jackson Harper <jackson@ximian.com>
14747 * TabControl.cs: Give the panels focus, keyboard navigation is
14748 fixed so this works correctly now.
14749 - We need these key events also.
14750 * ToolBar.cs: Remove some of the poor mans double buffering.
14752 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
14754 * ComboBox.cs: The internal TextBox now returns the focus.
14756 2005-12-23 Jackson Harper <jackson@ximian.com>
14758 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
14760 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
14762 * Control.cs: Removed debug code
14763 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
14766 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
14768 * Control.cs: When creating the control, update the Z-order after
14769 all it's children are created, too. (Fixes nexxia not showing
14772 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
14774 * Control.cs: Do not update the anchoring distances if layout is
14775 suspended, instead do it once layout is resumed
14777 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
14780 - After many hours of debugging, for both Jackson and
14781 myself, it turns out that it helps to set the parent of a control
14782 if you want to actually see it onscreen. In the spirit of that
14783 discovery, we're now setting the parent of the control and
14784 it's children when the control's handle is created. This fix
14785 will make Lutz Roeder's Reflector run happily.
14786 - now just creating the handle instead of the whole control when
14787 getting a graphics context for the control.
14789 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
14791 * ScrollableControl.cs: When calculating the canvas, don't consider
14792 the scrollbar widths. Instead, predict if horizontal scrollbar
14793 will affect canvas when deciding on vertical display and vice versa.
14795 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
14797 * RichTextBox.cs: Set default RTF font for documents that don't
14798 have a font table (Fixes #77076)
14800 2005-12-22 Jackson Harper <jackson@ximian.com>
14802 * TextBoxBase.cs: It's difficult to do, but you can have an empty
14803 clipboard. This prevents a NullRef in that case.
14804 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
14805 clipboard. PRIMARY is for the currently selected text only. (We
14806 should implement PRIMARY at some point.
14808 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14810 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
14811 a Unicode function with a structure that was defined in Ansi way.
14814 2005-12-21 Jackson Harper <jackson@ximian.com>
14816 * StatusBar.cs: Statusbar handles its fore/back colours on it's
14817 on. Because thats how it rolls. (and this avoids it using ambient
14819 * ThemeWin32Classic.cs: Use the proper back color for filling.
14820 * Menu.cs: Use the system menu bar color for drawing menu
14821 bars. Using the window back color will bring ambient colours into
14824 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
14826 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
14827 Bitmaps were created and not disposed.
14829 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14831 * Control.cs (CreateControl): Don't do anything if the control is
14832 already created, otherwise we'd fire the OnCreated event more than
14835 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14837 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
14838 will always match. Instead return -1. Fixes #76464.
14840 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14842 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
14843 neither the beginning nor the end of the line (Fixes bug #76479)
14845 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
14848 - ControlNativeWindow.ControlFromHandle(): Now handling situation
14849 where handle is invalid
14850 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
14851 instead of slower linear search
14852 * NativeWindow.cs: Don't remove the window from the hashtable until
14853 after the driver has destroyed it (since the driver might use
14854 Control.FromHandle to lookup the control object
14855 * Hwnd.cs: Added DestroyPending property to track if a window is
14856 already destroyed as far as the driver is concerned and only hasn't
14857 yet notified the control
14859 - Activate(): Check if the window is still valid before using the
14861 - Implemented DestroyChildWindow() method to mark child windows as
14862 destroyed when a window is destroyed. This prevents situations
14863 where we might call an X method based on queued events for a
14864 window that already has been destroyed but we haven't yet pulled
14865 the destroy method from the queue.
14866 - Added a call to the new DestroyChildWindow() method to the drivers
14867 DestroyWindow code. Also now marking the destroyed window itself
14870 2005-12-20 Jackson Harper <jackson@ximian.com>
14873 * StatusBarPanel.cs: Don't calculate panel sizes on draw
14874 anymore. Just do them when needed, also track the rects of panels
14875 so that we can optimize refreshing more in the future.
14877 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
14879 * ColorDialog.cs: Fixed focus drawing in small color controls
14881 2005-12-19 Jackson Harper <jackson@ximian.com>
14883 * InternalWindowManager.cs:
14884 * MdiWindowManager.cs: Cleanup some coordinate system changes so
14885 moving windows works properly.
14887 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
14890 - Removed call to InitLayout() from SetBoundsCore(); doc says
14891 it's only called when a control is added to a container
14892 - Split InitLayout logic, moved to separate UpdateDistances() method
14893 since we need to perform those calculations more often than just
14894 when adding the control to a container. (Needed to fix #77022)
14895 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
14896 - Reduced the OnBindingContextChanged events count, don't send them
14897 unless the control is created, we still aren't totally matching
14898 MS, but I can't quite figure out some of their rules
14900 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
14902 * ThemeClearlooks.cs: Corrected distance between ProgressBar
14905 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
14907 * ThemeClearlooks.cs:
14908 - Updated ProgressBar drawing
14909 - Corrected drawing of ScrollBars and scroll buttons
14910 - Some temporary fixes for minor pixel artefacts
14912 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
14915 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
14916 cause events to be sent in the same order as MS does.
14917 - Added ChangeParent() method to trigger various OnXXXChanged events
14918 that need to be fired when a parent changes (This is a reworking
14919 of the patch from r54254, with the X11 errors fixed)
14920 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
14921 since on MS we get OnLayoutChanged events when calling Clear()
14922 - Changed Enabled property to consider parent state as well, if a
14923 parent is not enabled, the control will not be either
14924 - Changed Parent property to simply call Controls.Add() since that
14925 now does all the work required, this way we avoid code duplication
14926 - Threw in a few OnBindingsContextChanged calls to try and match
14927 when MS sends them. We seem to send a few too many, though.
14928 - Added call to CreateControl when adding the control to a parent.
14929 We were never calling CreateControl. Still needs some work, in
14930 some places we treat HandleCreated and ControlCreated as equal,
14932 - Removed obsolete commented out code from UpdateZOrder()
14934 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
14936 * ThemeClearlooks.cs: Updated TrackBar drawing.
14938 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
14940 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
14942 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
14944 * FileDialog.cs: Add the Help button and the open readonly
14945 checkbox only if needed
14947 2005-12-16 Jackson Harper <jackson@ximian.com>
14949 * Control.cs: Make sure we have an active menu before trying to
14950 process commands on it. Prevents menu-less forms from crashing
14951 when Alt is pressed.
14952 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
14954 * RichTextBox.cs: Expand statement to help out gmcs and fix the
14957 2005-12-16 Jackson Harper <jackson@ximian.com>
14959 * InternalWindowManager.cs: Don't translate tool windows screen
14960 coordinates. This fixes windows 'bouncing' around when being moved.
14962 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
14965 - MaxLength now treats 2^31-1 equal to unlimited length (this is
14966 not quite MS compatible, MS uses that number only for single line
14967 and 2^32-1 for multi-line, but I figure it won't hurt keeping
14969 - Now enforcing the MaxLength limit when entering characters
14970 - Added argument to internal Paste() method to track if it's called
14971 from programatically or via keyboard, since keyboard driven pastes
14972 need to enforce max-length
14973 - Added logic to Paste to only paste as many chars as MaxLength
14975 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
14977 - Added Length property to return number of characters in document
14978 - Added private CharCount property which only tracks actual chars
14979 in the document (no linefeeds) and fires event when CharCount
14981 - Added tracking of character count to all methods that alter it
14982 - Added LengthChanged event to allow applications to subscribe
14983 to any changes to the document
14985 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
14988 - Removed local password_char field (moved to TextBoxBase)
14989 - Now setting the document's password var when password is
14992 - Added password_char field (needed here so MultiLine can
14994 - Added logic to MultiLine property setter to set the document's
14995 variable when password display is allowed
14996 - Removed debug code and made some debug code conditional
14998 - Added RecalculatePasswordLine() method to handle special password
15000 - Added PasswordChar property, also added related tracking vars
15001 - Draw() method now uses local text var for grabbing text to draw,
15002 this var is set to line.text unless we're doing password display,
15003 then it is set to the pre-generated all-password-chars line
15004 - Added calling RecalculatePasswordLine() method for password lines
15006 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
15009 - Added Reparented property to allow tracking of Window Manager
15010 reparenting actions (which affect X/Y calculations of toplevel
15012 - Made ToString() print window handles in hex
15014 - AddConfigureNotify(): Now uses reparented state off Hwnd to
15015 determine if X/Y needs offsetting
15016 - AddConfigureNotify(): Fixed offset calculations
15017 - Now adds ReparentNotify messages into the queue
15018 - Now processes ReparentNotify messages and causes a
15019 WM_WINDOWPOSCHANGED message to be sent upstream if a window
15020 is reparented (as most likely it's X/Y coordinates are changed
15023 2005-12-14 Jackson Harper <jackson@ximian.com>
15025 * XplatUIX11.cs: Tool windows still need to respek focus.
15027 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
15029 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
15030 have a working release
15032 2005-12-13 Jackson Harper <jackson@ximian.com>
15034 * Form.cs: Update styles after setting the border style regardless
15035 of whether or not the window is using a window manager.
15037 2005-12-13 Jackson Harper <jackson@ximian.com>
15039 * Form.cs: We now hook into an internal window manager instead of just an
15040 MDI subsystem, this is so we can have properly behaving tool windows.
15041 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
15042 * InternalWindowManager.cs: New internal class that acts as a
15043 window manager for tool windows and as a base for mdi windows.
15044 * MdiWindowManager.cs: New class that acts as a window manager for
15047 2005-12-12 Jackson Harper <jackson@ximian.com>
15049 * Control.cs: Updates so we match behavoir for for implicit
15050 controls. Fixes explosions in MDI.
15052 2005-12-12 Jackson Harper <jackson@ximian.com>
15054 * Control.cs: Implement Invalidate (Region).
15056 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
15059 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
15060 the same events as MS does. MS fires events for each property
15061 except, for unknown reasons, Cursor, when the control is reparented.
15062 I can't seem to totally match add/remove since MS also fires some
15063 VisibleChanged events, which makes no sense. Consolidated the
15064 parenting code into a separate method so it can be called from
15065 both Add and Remove. set_Parent no longer needs any special logic
15066 as it calls the parent's add method which implicitly fires
15068 - Removed some obsolete code and debug output
15069 - Enabled state is inherited from parents, if this is enabled
15071 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
15073 * Form.cs: Removed commented out code
15075 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
15078 - Added internal version of Invoke, with additional argument
15079 indicating if we're calling it from a Dispose() handler. That
15080 way we can avoid BeginInvoke throwing an exception if we're
15081 calling for an already destroyed window.
15082 - Added a dispose argument to BeginInvokeInternal, and made the
15083 check if a valid window handle chain exists conditional on
15084 it not being a dispose call
15085 - Removed code in DestroyHandle to destroy our children. Since we
15086 now handle the WM_DESTROY message we will catch all our children
15088 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
15090 - Added a field to track the application context of the form.
15091 - No need to set closing variable as response to WM_CLOSE, instead
15092 we destroy the window. We also call PostQuitMessage if the form
15093 has an application context (which makes it the main app form,
15094 which, when closed terminates the app)
15096 - Dropped Exit() method, it's naming was confusing
15097 - Added PostQuitMessage() which causes GetMessage to return false
15098 once the message queue is empty
15099 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
15101 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
15102 no longer a valid XplatUI method, but left it in since it's used
15103 internally. Added empty PostQuitMessage() method.
15104 * MenuAPI.cs: Replaced call to Exit() with call to
15105 PostQuitMessage, even though this is probably no longer needed.
15106 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
15107 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
15109 - Replaced call to XplatUI.Exit() with PostQuitMessage()
15110 - Removed old debug code that would call XplatUI for exception
15111 display, enabled standard exception handling (Still not enabled
15112 though, until NativeWindow's ExternalExceptionHandler define
15115 - Added internal method to allow control to update NativeWindow
15116 after a window has been destroyed
15117 - Added handling of already destroyed windows when calling i
15119 - Added removal of handle from list on ReleaseHandle
15121 - Dropped GetMessageResult var and related code
15122 - Added PostQuitState to field to track if PostQuitMessage has been
15124 - Dropped Exit() method
15125 - Added PostQuitMessage() method
15126 - GetMessage now will return false if PostQuitState is set and no
15127 more messages are in the queue.
15128 - Expose handler will no longer generate WM_PAINT messages if we are
15129 in PostQuitState since it's very likely any windows have already
15130 been destroyed, and since Hwnd won't get updated until we have
15131 processed the DestroyNotify we'd be causing X errors.
15133 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15135 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
15136 Thanks to Mike for pointing out the err of my ways.
15138 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15140 * Control.cs(PreProcessMessage): Moved menu handling back, but
15141 after all other key handling, to match MS (who handles Menu in
15143 * Menu.cs (WndProc): Removed my brainfart
15145 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15147 * Control.cs(PreProcessMessage): Removed special menu handling
15148 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
15150 2005-12-07 Mike Kestner <mkestner@novell.com>
15152 * Control.cs : special case SYSKEYUP so that we can adjust keynav
15153 state according in tracker.
15154 * Menu.cs : promote tracker field to base class and provide a tracker
15155 lookup capability. Add/Remove shortcuts dynamically if the top menu
15156 has a tracker. Unparent items that are removed from the collection.
15157 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
15158 * Theme*.cs: add always_show_hotkeys field to support configurability
15159 of mnemonic display. win32 doesn't show mnemonics until Alt is
15162 2005-12-07 Jackson Harper <jackson@ximian.com>
15164 * MdiChildContext.cs: Use Control.ResetCursor.
15165 * Control.cs: ResetCursor needs to set the property so that the
15166 correct XplatUI call gets made.
15168 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15170 * Control.cs: More fixes to make our key events match MS. We
15171 were not setting the modifier state on KeyData, and we were
15172 not generating any events when Alt was pressed with a key
15173 since handling of WM_SYSxxx was missing for the OnKey methods.
15175 2005-12-07 Jackson Harper <jackson@ximian.com>
15177 * MdiChildContext.cs: reenable the sizing code.
15178 - When the mouse leaves a window reset its cursor.
15180 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
15182 * ThemeClearlooks.cs: Reflect latest Hwnd changes
15184 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15186 * Hwnd.cs: Now using the theme 3d bordersize to calculate
15187 widths of Fixed3D borders
15189 2005-12-07 Jackson Harper <jackson@ximian.com>
15191 * MdiClient.cs: Fix warnings. Earn Mike's love.
15193 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
15195 * ThemeClearlooks.cs:
15196 - Adjusted mouse over button color
15197 - Added first parts of CheckBox drawing
15198 - Added correct color for selected text background
15199 - Fixed ComboBox drawing
15200 - Added CPDrawBorder3D and CPDrawBorder
15202 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
15204 * XplatUIX11.cs: Added call to XBell for AudibleAlert
15206 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
15208 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15209 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
15210 alert users via sound. We could add an enum arg with different
15211 types of alerts in the future
15213 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
15215 * Control.cs: Fix behaviour problems pointed out by Mike
15217 2005-12-05 Mike Kestner <mkestner@novell.com>
15219 * StatusBarPanel.cs: add Invalidate method and hook it into all the
15220 prop setters. Calls parent.Refresh for now, but could be maybe be
15221 optimized with an internal method on StatusBar at some point.
15224 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
15226 * RichTextBox.cs: Implemented get_SelectionColor
15228 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
15230 * ThemeClearlooks.cs:
15231 - Removed dead code
15232 - Draw black button border only if button is Form.AcceptButton
15233 - Draw correct button color for pressed RadioButton if the mouse
15234 has entered the button
15235 - Updated ProgressBar drawing!
15236 - Updated CPDrawSizeGrip drawing
15237 - Updated StatusBarPanel drawing
15239 2005-12-05 Mike Kestner <mkestner@novell.com>
15241 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
15242 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
15244 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
15246 * ThemeClearlooks.cs: Initial check-in, activate with
15247 export MONO_THEME=clearlooks
15248 * ThemeEngine.cs: Added ThemeClearlooks
15250 2005-12-03 Mike Kestner <mkestner@novell.com>
15252 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
15255 2005-12-02 Jackson Harper <jackson@ximian.com>
15257 * Form.cs: If the child form has no menu the default main menu is
15258 used as the active menu.
15260 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
15262 * ListBox.cs: Check if any items exist before trying to resolve
15263 coordinates into items
15265 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
15267 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
15268 as the second color for the background hatch
15270 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
15272 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
15273 * RichTextBox.cs: FormatText position arguments are 1-based, now making
15274 sure that what we pass to FormatText is always 1-based. Fixes #76885
15276 2005-11-29 Miguel de Icaza <miguel@novell.com>
15278 * NumericUpDown.cs (EndInit): When we are done initializing,
15279 reflect any updates on the UI.
15281 2005-12-02 Jackson Harper <jackson@ximian.com>
15283 * ImplicitHScrollBar.cs:
15284 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
15285 their container controls.
15286 * TreeView.cs: Use the new implicit scrollbars.
15288 2005-12-02 Jackson Harper <jackson@ximian.com>
15290 * TreeView.cs: Make top_node internal so the TreeNodeCollections
15292 * TreeNodeCollection.cs: If we remove the topnode we need to
15293 update topnode to the next node in line.
15294 - When clearing nodes go through the same process as removing
15295 them, so they get depareneted and checked if they are top node.
15297 2005-12-01 Jackson Harper <jackson@ximian.com>
15299 * TreeView.cs: When imagelists are used the image area is
15300 selectable as well as the text.
15301 - If there are no selected nodes select the first one.
15302 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
15303 so don't do it more then we need to.
15305 2005-12-01 Jackson Harper <jackson@ximian.com>
15307 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
15308 that arrows can be scaled.
15310 2005-12-01 Jackson Harper <jackson@ximian.com>
15312 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
15313 fail. Patch by Dieter Bremes
15315 2005-11-30 Jackson Harper <jackson@ximian.com>
15317 * Form.cs: Property is 2.0 only
15318 * PrintDialog.cs: Signature fix.
15320 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
15323 - No longer artificially moves text 2 pixels down (now that we have
15324 borders this is no longer needed)
15325 - Added calcs for left, hanging and right indent
15327 2005-11-23 Mike Kestner <mkestner@novell.com>
15329 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
15331 2005-11-30 Jackson Harper <jackson@ximian.com>
15333 * MdiChildContext.cs: Set the cloned menus forms, as these don't
15334 get cloned as part of CloneMenu ().
15335 * Menu.cs: Make sure the parent of the items get set correctly
15336 when they are added. And the owners are notified of the changes.
15337 * Form.cs: Create an ActiveMenu property, so that when MDI is used
15338 we can change the menu being displayed/handled by the form without
15339 changing the menu assosciated with the form.
15340 - Don't let Mdi children draw/handle menus.
15342 2005-11-30 Jackson Harper <jackson@ximian.com>
15344 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
15345 a MenuChanged event. Just to make the API a little more
15348 * MenuItem.cs: Use the new OnMenuChanged
15349 * MdiChildContext.cs: Handle menu merging.
15350 * Form.cs: Implement MergedMenu.
15352 2005-11-30 Jackson Harper <jackson@ximian.com>
15354 * Menu.cs: We were misusing Add. Add goes behind the specified
15355 index according to the docs, and does not replace the specified
15356 index. So I added an Insert method.
15358 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
15360 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
15361 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
15363 * RichTextBox.cs: Added calls to base for DnD events
15365 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
15368 - Fixed drag-selection related crash; style fixes
15369 - Implemented undo class
15370 o Implemented method to capture document state for specified
15371 range in document tree
15372 o Implemented method to restore captured document state
15373 o Implemented cursor tracking
15374 o Implemented basic undo stack
15375 - Added undo cursor tracking to methods altering cursor location
15376 - Added undo tracking to selection deletion (still missing
15377 other text-altering hookups)
15379 - Added SelectionLength property
15380 - Implemented CanPaste()
15381 - Implemented Paste()
15382 - Added missing protected methods
15383 - Fixed RTF->Document conversion; now uses font index 0 and color
15384 index 0 as the default font for the parsed text
15385 - Fixed RTF<->Document font size translation
15386 - Fixed RTF generation, now properly handles cross-tag boundaries
15387 for single line selection
15388 - No longer always appends blank line to generated RTF
15390 - Added missing attributes
15391 - Hooked up undo-related methods
15393 - Implemented Copy()
15394 - Implemented Paste()
15395 - Implemented Cut()
15396 - Fixed caret mis-behaviour on backspace across line-boundaries
15398 2005-11-29 Jackson Harper <jackson@ximian.com>
15400 * MdiClient.cs: Add a method for activating mdi children. Very
15401 basic right now. I imagine someday it might need more girth.
15402 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
15403 children windows names are added to the menu item.
15404 * ThemeWin32Classic.cs: Draw the arrow if the item is an
15405 mdilist. This happens regardless of whether or not there are any
15406 mdi windows to see in the list, and according to my tests happens
15407 before the items are even added. Also happens if there isn't even
15408 an mdi client to get windows from.
15410 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
15412 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
15413 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
15415 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
15417 * DataGridTableStyle.cs:
15418 - Create always the styles for the missing columns even if they are
15419 provided by the user (not default table style)
15422 - Fixes SetDataBinding (always re-attach source)
15423 - Fixes SetNewDataSource (only clear styles if they are not for
15425 - Expands OnTableStylesCollectionChanged to handle style refresh
15426 and remove properly
15428 2005-11-29 Jackson Harper <jackson@ximian.com>
15430 * FileDialog.cs: Implement missing bits, remove some dead
15432 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
15433 creation of the panel so that the options set on the dialog are
15434 seen when the panel is created.
15435 * TreeView.cs: raise a click when items are clicked.
15437 2005-11-29 Jackson Harper <jackson@ximian.com>
15439 * MdiClient.cs: Pass some signature methods through to base.
15441 2005-11-28 Jackson Harper <jackson@ximian.com>
15443 * ListView.cs: Raise the click event when items are clicked.
15445 2005-11-28 Jackson Harper <jackson@ximian.com>
15447 * MdiClient.cs: Make this algorithm even more beautiful. And fix
15450 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
15452 * ThemeNice.cs: - Removed 1 pixel bitmaps
15453 - Use SmoothingMode.AntiAlias where it makes sense
15454 (ScrollButton arrow for example)
15455 - Enhanced Button focus drawing
15456 - Fixed ComboBox drawing (no artefacts anymore, focus
15457 rectangle is back again, reduced size of ComboButton, etc.)
15458 - Fixed RadioButton focus drawing for Appearence.Button
15459 - Slight ScrollButton redesign
15460 - Some LinearGradientBrush size fixes
15461 - GroupBoxes have now rounded edges
15462 - Fixed StatusBar drawing
15464 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
15466 * ThemeNice.cs: - Remove dead code
15467 - use correct background colors for menus, etc.
15468 - Fake pixel drawing with 1 pixel bitmaps
15470 2005-11-24 Jackson Harper <jackson@ximian.com>
15472 * MdiClient.cs: Size the scrollbars when resizing the window.
15473 - Resize the maximized windows when the client is resized
15474 * Form.cs: Make the child context available
15476 2005-11-23 Jackson Harper <jackson@ximian.com>
15478 * MdiChildContext.cs: Don't size windows if they are maximized.
15480 2005-11-23 Mike Kestner <mkestner@novell.com>
15482 * ContextMenu.cs: use MenuTracker.
15483 * Control.cs: remove menu handle usage.
15484 * Form.cs: remove menu handle usage.
15485 * Hwnd.cs: remove menu handle usage.
15486 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
15487 motion and clicks to the new Tracker handlers.
15488 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
15490 * MenuAPI.cs: refactored to combine popup and menubar event handling.
15491 Killed the MENU and MENUITEM data types and associated collections
15492 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
15493 MenuTracker class that exposes the leftovers from the old MenuAPI
15494 static methods. Restructured Capture handling so that only one grab is
15495 done for the entire menu hierarchy instead of handing off grabs to
15496 submenus. Tracker now has an invisible control to Capture when active.
15497 * MenuItem.cs: add sizing accessors, kill Create
15499 * Theme.cs: remove menu handle and MENU(ITEM) usage.
15500 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
15501 MENU(ITEM). remove menu handle usage, use Menu directly.
15502 * XplatUIDriver.cs: remove menu handle usage.
15503 * XplatUIOSX.cs: remove menu handle usage.
15504 * XplatUIWin32.cs: remove menu handle usage.
15505 * XplatUIX11.cs: remove menu handle usage.
15507 2005-11-22 Jackson Harper <jackson@ximian.com>
15509 * Hwnd.cs: Don't compute the menu size for
15510 DefaultClientRectangle.
15511 - Reenable menu sizes being computed for GetClienRectangle.
15512 * Form.cs: Remove comment of trechery
15514 2005-11-22 Jackson Harper <jackson@ximian.com>
15516 * Hwnd.cs: The adjustments for the menu bar are made when it is
15517 attached to the form.
15519 2005-11-19 Jackson Harper <jackson@ximian.com>
15521 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
15522 (just like on windows).
15524 2005-11-19 Jackson Harper <jackson@ximian.com>
15526 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
15527 use real buttons anymore because they are in non client area. The
15528 one TODO here is that I need to somehow invalidate a section of
15529 the non client area.
15531 2005-11-18 Jackson Harper <jackson@ximian.com>
15533 * Control.cs: Put the enum check back in now that MDI doesnt have
15534 to use this to set border styles.
15535 * Form.cs: Only set mdi child windows borders if the handle has
15537 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
15538 this directly on to the driver.
15539 - Get the move start position before adjusting for the titlebar
15540 height, this fixes the windows "skipping" when they are first
15543 2005-11-18 Jackson Harper <jackson@ximian.com>
15545 * XplatUIX11.cs: Just compute the mdi borders separately as they
15546 don't totally match up with normal form borders.
15548 2005-11-18 Jackson Harper <jackson@ximian.com>
15550 * Control.cs: Set WS_ styles for borders, so that the driver does
15551 not have to retrieve the control instance to figure out what kind
15552 of borders it should have.
15553 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
15554 driver can know its an mdi child easily.
15555 * XplatUIX11.cs: Get the border styles and whether the window is
15556 MDI from the Styles and ExStyles params instead of having to get a
15557 control. This prevents a chicken and egg problem.
15559 2005-11-18 Jackson Harper <jackson@ximian.com>
15561 * MdiClient.cs: Fix typo so scrollbars show up correctly.
15563 2005-11-18 Jackson Harper <jackson@ximian.com>
15565 * MdiClient.cs: Calculate when to add and remove scrollbars
15567 * MdiChildContext.cs: Adjust the y position to take the titlebar
15569 - No height for FormBorderStyle.None
15571 2005-11-18 Jackson Harper <jackson@ximian.com>
15573 * Control.cs: Allow non enum values to be used for
15574 InternalBorderStyle. MDI does this to set a special border style.
15575 - New utility methods for converting points to/from client coords
15576 - Add the newly created control to the Controls collection before
15577 updating its style. This way UpdateStyle can walk the control
15578 heirarchy to find the control if needed.
15579 so I don't need to create a new Point object all the time.
15580 * Form.cs: Let MDI windows handle their border styles.
15581 - Set styles on MDI windows so the correct title style is derived.
15582 * MdiChildContext.cs: Move all the painting and window handling
15583 into the non client area.
15584 - Use correct sizing and put correct buttons on frames based on
15585 the FormBorderStyle.
15586 - Notify the mdi client about scrolling
15587 - Need to handle the buttons ourselves now, because they are all
15588 in non client areas and we can't add controls there.
15589 * MdiClient.cs: Halfway to scrolling, this implementation is
15590 somewhat broken though, we need to check to make sure other
15591 windows aren't causing scrolling before removing the bars. Also
15592 the bars need to be drawn on top, maybe I can switch implicit
15593 controls to be on top.
15594 * Hwnd.cs: caption_height and tool_caption_height are now
15595 properties of an hwnd, this way they can be set by the driver
15596 based on the type of window they are. In X11 the window manager
15597 handles the decorations so caption_height is zero unless its an
15599 - Add 3 pixel borders for MDI windows (0xFFFF).
15600 - Get rid of some code duplication, have DefaultClientRectanle
15601 just call GetClientRectangle.
15602 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
15604 - Set border styles differently for mdi windows.
15605 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
15608 2005-11-15 Mike Kestner <mkestner@novell.com>
15610 * Menu.cs: when adding an item to the collection, if item is already
15611 parented, remove it from the parent.
15613 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
15615 * X11DesktopColors.cs: Added KDE support
15617 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
15620 - Clipboard methods now can translate Rtf format
15621 - No longer removes clipboard contents whenever a new format is added
15622 to allow placing multiple formats on the clipboard
15623 * Clipboard.cs: Clipboard now supports getting a IDataObject and
15624 will place all formats contained in it onto the clipboard. Also
15625 now cleans the clipboard before placing a new object onto it
15627 - Implemented set_Rtf
15628 - Implemented set_SelectedRtf
15629 - Created InsertRTFFromStream() method to allow single code base
15630 for all properties and methods that insert RTF into document
15631 - Removed debug output
15633 - Fixed Delete(int) to fix up line numbers
15634 - Fixed ReplaceSelection to combine start and end line
15635 - Fixed serious DeleteChars bug that would leave the document tree
15637 - Improved DumpTree with several logic checks to detect broken
15639 - Removed debug lines
15640 - Fixed Caret.WordForward/WordBack moving code, now always also
15641 updates caret.tag (fixes crash when word-selecting across tag
15642 boundaries via keyboard)
15643 - Added Insert() method for inserting multiline text into documents
15644 - Fixed DeleteChars() calculation errors that would cause a broken
15645 tag chain with multiple tag lines
15646 - DeleteChars() no longer crashes on multi-tag lines if not all tags
15647 - Split() no longer moves caret if split is at caret location
15648 - ReplaceSelection() now updates the cursor and re-displays it
15649 - ReplaceSelection() now uses new Insert() method to avoid code
15651 - FormatText() can now handle formatting partial lines
15653 - Append now uses new TextControl.Insert() method (this avoids
15655 - Implemented Ctrl-X (Cut) (
15656 - Implemented Ctrl-C (Copy)
15657 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
15658 regeneration when pasting text; roundtripping Copy&Paste within
15659 edit control still fails due to some calculation bugs in GenerateRTF)
15660 - The Delete key will now remove the current selection if it is visible
15661 * TextBox.cs: Removed debug lines
15662 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
15663 driver to be initialized and can't therefore be done via a static ctor)
15665 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
15667 * TextControl.cs: Added backend code for finding char arrays and strings
15669 - Added mouse wheel scroll support
15670 - Added support for VScroll and HScroll events
15672 - Implemented all seven Find() variants
15673 - Implemented GetCharFromPosition()
15674 - Implemented GetCharIndexFromPosition()
15675 - Implemented GetLineFromIndex()
15676 - Implemented GetPositionFromCharIndex();
15677 - Implemented SaveFile for PlainText and UnicodeText
15678 - Fixed set_Font, now setting a new font applies that font to
15680 - Implemented generic Document to RTF converter
15681 - Implemented SaveFile for RichText format (still missing unicode
15682 conversion for non-ansi chars)
15683 - Implemented get_Rtf
15684 - Implemented get_SelectedRtf
15686 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
15688 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
15689 to allow any captures to be released before triggering OnClick. This
15690 way a click handler may capture the mouse without interference.
15691 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
15692 This way we send them even though X may not allow a grab (if the window
15693 isn't visible, for example)
15695 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
15697 * DataGridViewRowEventArgs.cs: DataGridView implementation
15698 * DataGridViewElement.cs: DataGridView implementation
15699 * DataGridViewComboBoxCell.cs: DataGridView implementation
15700 * DataGridViewDataErrorContexts.cs: DataGridView implementation
15701 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
15702 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
15703 * ImageLayout.cs: DataGridView implementation
15704 * DataGridViewComboBoxColumn.cs: DataGridView implementation
15705 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
15706 * DataGridViewSelectionMode.cs: DataGridView implementation
15707 * IDataGridViewEditingControl.cs: DataGridView implementation
15708 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
15709 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
15710 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
15711 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
15712 * DataGridViewColumnSortMode.cs: DataGridView implementation
15713 * DataGridView.cs: DataGridView implementation
15714 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
15715 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
15716 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
15717 * Padding.cs: DataGridView implementation
15718 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
15719 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
15720 * DataGridViewRowEventHandler.cs: DataGridView implementation
15721 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
15722 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
15723 * DataGridViewButtonCell.cs: DataGridView implementation
15724 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
15725 * DataGridViewEditMode.cs: DataGridView implementation
15726 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
15727 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
15728 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
15729 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
15730 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
15731 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
15732 * DataGridViewCellEventHandler.cs: DataGridView implementation
15733 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
15734 * DataGridViewCellStyleConverter.cs: DataGridView implementation
15735 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
15736 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
15737 * DataGridViewColumnEventArgs.cs: DataGridView implementation
15738 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
15739 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
15740 * QuestionEventArgs.cs: DataGridView implementation
15741 * IDataGridViewEditingCell.cs: DataGridView implementation
15742 * DataGridViewTriState.cs: DataGridView implementation
15743 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
15744 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
15745 * DataGridViewColumnCollection.cs: DataGridView implementation
15746 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
15747 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
15748 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
15749 * DataGridViewColumn.cs: DataGridView implementation
15750 * DataGridViewCellBorderStyle.cs: DataGridView implementation
15751 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
15752 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
15753 * DataGridViewRow.cs: DataGridView implementation
15754 * DataGridViewImageCellLayout.cs: DataGridView implementation
15755 * DataGridViewImageCell.cs: DataGridView implementation
15756 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
15757 * DataGridViewCheckBoxCell.cs: DataGridView implementation
15758 * DataGridViewHeaderCell.cs: DataGridView implementation
15759 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
15760 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
15761 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
15762 * DataGridViewTextBoxColumn.cs: DataGridView implementation
15763 * QuestionEventHandler.cs: DataGridView implementation
15764 * DataGridViewCellStyleScopes.cs: DataGridView implementation
15765 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
15766 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
15767 * DataGridViewCell.cs: DataGridView implementation
15768 * DataGridViewCellEventArgs.cs: DataGridView implementation
15769 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
15770 * DataGridViewCellStyle.cs: DataGridView implementation
15771 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
15772 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
15773 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
15774 * TextFormatFlags.cs: DataGridView implementation
15775 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
15776 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
15777 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
15778 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
15779 * DataGridViewButtonColumn.cs: DataGridView implementation
15780 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
15781 * HandledMouseEventArgs.cs: DataGridView implementation
15782 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
15783 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
15784 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
15785 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
15786 * DataGridViewRowCollection.cs: DataGridView implementation
15787 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
15788 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
15789 * DataGridViewHitTestType.cs: DataGridView implementation
15790 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
15791 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
15792 * DataGridViewColumnEventHandler.cs: DataGridView implementation
15793 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
15794 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
15795 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
15796 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
15797 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
15798 * DataGridViewContentAlignment.cs: DataGridView implementation
15799 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
15800 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
15801 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
15802 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
15803 * DataGridViewPaintParts.cs: DataGridView implementation
15804 * DataGridViewCellCollection.cs: DataGridView implementation
15805 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
15806 * DataGridViewImageColumn.cs: DataGridView implementation
15807 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
15808 * DataGridViewElementStates.cs: DataGridView implementation
15809 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
15810 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
15811 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
15812 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
15813 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
15814 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
15815 * DataGridViewRowHeaderCell.cs: DataGridView implementation
15816 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
15817 * DataGridViewTextBoxCell.cs: DataGridView implementation
15818 * DataGridViewBand.cs: DataGridView implementation
15819 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
15820 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
15821 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
15822 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
15823 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
15824 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
15825 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
15826 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
15827 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
15828 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
15829 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
15831 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
15833 * ThemeWin32Classic.cs:
15834 - Draw the outside focus rectangle around buttons
15835 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
15836 doesn't use end caps for every dash of a line anymore. This
15837 workaround ignores the forecolor.
15839 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
15841 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
15844 2005-11-07 Jackson Harper <jackson@ximian.com>
15846 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
15848 2005-11-07 Jackson Harper <jackson@ximian.com>
15850 * ScrollableControl.cs: Calculate the maximum and change vars
15851 (more) correctly so that scrollbars appear as a sensible size.
15853 2005-11-04 Jackson Harper <jackson@ximian.com>
15855 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
15857 * TreeView.cs: When the tree is sorted null out the top_node so
15858 that it is recalculated.
15859 - Use dotted lines instead of dashed lines to match MS better.
15861 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
15864 - Implements key search for items. Useful when browsing files with FileDialog
15865 - When changing view mode or when clear the items reset scrollbar positions
15867 2005-11-04 Jackson Harper <jackson@ximian.com>
15869 * CurrencyManager.cs: Implement the MetaDataChanged event, the
15870 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
15871 as to what the method may do as there is no real way of creating a
15872 derived CurrencyManager and calling the method.
15874 2005-11-03 Jackson Harper <jackson@ximian.com>
15876 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
15877 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
15878 method which seems to just be used internally to refresh the tabs.
15880 2005-11-03 Jackson Harper <jackson@ximian.com>
15882 * TabControl.cs: Implement the remove method. Fix some broken
15885 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
15887 * DateTimePicker.cs:
15888 - Added missing DateTimePickerAccessibleObject class
15889 - Added missing events
15890 - Added OnFontChanged method
15891 * Form.cs: Added missing attributes
15892 * TreeView.cs: Added missing attributes
15894 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
15896 * GridItemCollection.cs: Fix signatures
15898 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
15900 * XplatUI.cs: Updated build rev/date
15901 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
15902 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
15903 * Application.cs: Trigger context-specific ExitThread events
15905 2005-11-03 Jackson Harper <jackson@ximian.com>
15909 * GridTableStylesCollection.cs:
15914 * MonthCalendar.cs: Signature fixes
15916 2005-11-03 Jackson Harper <jackson@ximian.com>
15918 * TreeNodeCollection.cs: Remove should not be virtual.
15919 * TreeView.cs: Implement the last of the missing methods.
15921 2005-11-03 Jackson Harper <jackson@ximian.com>
15923 * TreeNodeConverter.cs: Implement to get off my class-status back.
15925 2005-11-03 Jackson Harper <jackson@ximian.com>
15927 * TreeView.cs: Hookup the bits for drag and drop.
15928 * TreeNode.cs: Don't cache the tree_view or index anymore, now
15929 that nodes can be moved from tree to tree easily this just causes
15930 all sorts of problems.
15931 * TreeNodeCollection: Don't need to give treenodes an index and
15932 treeview anymore when they are added, these are computed on the
15933 fly. Also make sure to remove a node before its added.
15935 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
15938 - Added CaretSelection enum
15939 - Added comparison methods to Marker struct, makes selection code
15941 - Added SelectionStart and SelectionEnd as 'moveable' location for
15942 the CaretDirection enum and handler
15943 - Added selection_prev variable to track optimized invalidation for
15944 word and line selection
15945 - Added SelectionVisible property (returns true if there is a valid
15947 - Switched CaretHasFocus to only display the caret if there is no
15949 - Avoiding StringBuilder.ToString to retrieve a single char, instead
15950 using the direct character index; should be much faster
15951 - Added various conditional debug statements
15952 - Fixed invalidation calculation for selection ranges
15953 - Added ExpandSelection() method to support word and line selection
15954 - Switched SetSelectionToCaret to use new Marker compare overloads
15955 - Added central IsWordSeparator() method to determine word
15956 separators/whitespace and FindWordSeparator() to streamline common
15957 usage of IsWordSeparator()
15959 - Removed unneeded grabbed variable, it was just mirroring
15961 - No longer firing OnTextChanged event when Text setter is called,
15962 since the base will fire the event for us
15963 - Added handling of Ctrl-Up/Down selection
15964 - Added handling of Shift-Cursorkey selection
15965 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
15967 - Added handling of Shift and Ctrl-Shift-Home/End selection
15968 - Removed some debug output
15969 - Added handling for single/double/tripple-click to place caret/
15970 select word/select line respectively (Fixes bug #76031)
15971 - Added support for drag expansion of word/line selection
15972 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
15975 2005-11-02 Jackson Harper <jackson@ximian.com>
15977 * X11Dnd.cs: If the drag is going to and from a MWF window just
15978 copy the data instead of sending it out through the X Selection
15981 2005-11-02 Jackson Harper <jackson@ximian.com>
15984 * XplatUIX11.cs: When in a drag we don't want motion notify
15985 messages to get passed on to the other controls. This prevents
15986 mouse move messages from showing up in the drag source.
15988 2005-11-02 Jackson Harper <jackson@ximian.com>
15990 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
15991 the correct button is release to end a drag.
15992 * XplatUIX11.cs: Make the button state internal so the drag system
15993 can access it. Dragging needs to know about all button releases,
15994 not just left button.
15996 2005-11-02 Miguel de Icaza <miguel@novell.com>
15998 * Form.cs (Icon): If the icon is null, reset the icon to the
16001 * Cursor.cs: When writing the AND-mask bitmap do not include the
16002 number of colors, but hardcode those to two (black and white),
16003 fixes the loading of color cursors (Paint Dot Net).
16005 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
16006 turn off autoscaling.
16008 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
16010 2005-11-02 Jackson Harper <jackson@ximian.com>
16012 * X11Dnd.cs: Make sure to send a status message if the pointer
16013 enters a control that can not accept a drop, otherwise the cursor
16014 isn't updated correctly. Also tried to compress the lines of code
16017 2005-11-02 Jackson Harper <jackson@ximian.com>
16019 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
16020 set actions correctly. This isn't perfect as XDND and win32 have
16021 some differences on how you allow actions. I'll clear this up by
16022 adding a path for drag from MWF to MWF windows.
16023 * XplatUIX11.cs: Hook into the dnd system.
16025 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
16027 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
16028 previously shown but they are no longer need it. Very obvious when
16029 browsing files with FileDialog.
16031 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
16033 * Control.cs: We always need to call OnPaintBackground. We pretty much
16034 ignore AllPaintingInWmPaint and always do the painting there, whether
16035 it's set or not, since we always ignore the WM_ERASEBKGND message
16036 (which we don't generate on X11). This fixes #76616.
16037 * Panel.cs: Removed unneeded background painting. This happens properly
16038 in Control.cs already
16040 2005-10-31 Mike Kestner <mkestner@novell.com>
16042 * Menu.cs: Add items to collection before setting their index.
16043 * MenuItem.cs : add range checking with ArgumentException like MS.
16046 2005-10-31 Jackson Harper <jackson@ximian.com>
16048 * ListBox.cs: Invalidate if the area is visible at all not just
16049 contained in the visible rect. Fixes unselection of semi visible
16052 2005-10-31 Jackson Harper <jackson@ximian.com>
16054 * Control.cs: Consistently name the dnd methods. Make them
16055 internal so we can override them to match some MS behavoir
16057 * Win32DnD.cs: Use the new consistent names.
16059 2005-10-31 Jackson Harper <jackson@ximian.com>
16061 * TreeView.cs: Don't draw the selected node when we lose focus.
16063 2005-10-31 Jackson Harper <jackson@ximian.com>
16065 * X11Dnd.cs: We still need to reset the state even though a full
16066 reset isn't being done, otherwise status's still get sent all over
16069 2005-10-31 Jackson Harper <jackson@ximian.com>
16071 * Control.cs: Make the dnd_aware flag internal so the dnd
16072 subsystem can check it. Catch exceptions thrown in dnd handlers to
16074 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
16075 * X11Dnd.cs: Handle null data in the converters. Set the XDND
16076 version when sending a XdndEnter. Use the control/hwnd dnd_aware
16077 flags to reduce the number of dnd enters/status's sent.
16079 2005-10-31 Jackson Harper <jackson@ximian.com>
16081 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
16083 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
16085 * PictureBox.cs: Fixes 76512
16087 2005-10-28 Jackson Harper <jackson@ximian.com>
16089 * X11Dnd.cs: Early implementation to support winforms being a drag
16090 source for data on X11. Also restructured the converters so they
16091 can go both ways now.
16092 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
16094 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
16096 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
16099 2005-10-27 Jackson Harper <jackson@ximian.com>
16101 * TreeNode.cs: Implement serialization so my DnD examples will work.
16103 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
16105 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
16106 TreeView.cs: Don't dispose objects that are not owned.
16108 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
16110 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
16111 should retrieve the current cursor and report that, but XplatUI
16112 doesn't (yet) have an interface for that (and I'm not sure I even
16114 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
16115 until any message loop processing is done (and the WM_SETCURSOR
16116 replaces the cursor to the proper one)
16118 - Fixed override behaviour, we can't set the cursor globally on X11,
16119 just for our windows.
16120 - Invalidating the System.Drawing X11 display handle when we are
16122 * Control.cs: Fix to make csc happy
16124 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
16127 - get_Text: Add last line (without trailing newline) to returned
16128 value (Fixes 76212)
16129 - get_TextLength: Count last line in returned length
16130 - ToString: Call Text property instead of duplicating code
16132 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
16134 * ImageList.cs: Dispose ImageAttributes objects.
16136 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
16138 * ImageList.cs: Use attribute constructors with less arguments where
16141 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
16143 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
16144 Use typeof instead of strings when assembly is referenced. Added
16145 some more comments.
16147 2005-10-21 Jackson Harper <jackson@ximian.com>
16149 * ListView.cs: Raise a double click event. Also tried to somewhat
16150 fix when the selectedindexchanged event is raised. Its still
16153 2005-10-21 Jackson Harper <jackson@ximian.com>
16155 * TreeView.cs: New method to invalidate the plus minus area of a
16156 node without invalidating the whole node (maybe this can be used
16157 in some more places).
16158 * TreeNodeCollection.cs: When adding to an empty node we need to
16159 invalidate its plus minus area so the little block shows up.
16161 2005-10-21 Jackson Harper <jackson@ximian.com>
16163 * TreeView.cs: Make sure that when we invalidate a node the bounds
16164 are big enough to cover the selected box and the focus
16165 rectangle. Use a different colour for the lines connecting nodes
16166 so they show up with all themes.
16168 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
16170 * NativeWindow.cs: Don't call anything that could call into the driver,
16171 we might be on a different thread.
16173 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
16175 * Control.cs(Dispose): Since Dispose might run on a different thread,
16176 make sure that we call methods that could call into the driver via
16177 invoke, to avoid thread issues
16179 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
16181 * XplatUI.cs: Removed finalizer
16182 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
16183 not allowing to be called on the finalizer thread.
16185 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
16188 - Reverted r51889 and r51891.
16189 - Added ImageListItem class that stores unmodified image items and image
16190 properties required to create list images until handle is created.
16191 - Added AddItem and moved image creation logic to AddItemInternal.
16192 - Added CreateHandle method that creates images based on unmodified items.
16193 - Added DestroyHandle that changes state to store unmodified items.
16194 - Add and AddStrip methods no more create handle.
16195 - ReduceColorDepth has no return value.
16196 - Dispose destroys handle.
16197 - Modified other methods to reflect the above changes.
16198 - Implemented key support.
16199 - Added profile 2.0 members and attributes.
16200 - Added private Reset and ShouldSerialize methods that provide the same
16201 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
16202 them as they are private.
16203 - Added some more comments about implementation details.
16205 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
16207 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
16209 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
16211 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
16213 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
16215 * DataGridDrawingLogic.cs: Fixes column hit calcultation
16216 * DataGridColumnStyle.cs: Remove debug message
16218 2005-10-20 Jackson Harper <jackson@ximian.com>
16220 * TreeView.cs: We can always get input keys regardless of whether
16221 or not editing is enabled. They are used for navigation.
16223 2005-10-20 Jackson Harper <jackson@ximian.com>
16225 * TreeNode.cs: Use the viewport rect for determining if a node
16226 needs to be moved for visibility. Don't use Begin/End edit. This
16227 calls a full refresh when its done.
16228 * TreeView.cs: New SetBottom works correctly. Make the viewport
16229 rect property internal so the treenodes can see it. When clicking
16230 on a node we need to ensure that its visible because it might just
16231 be partly visible when clicked.
16233 2005-10-20 Jackson Harper <jackson@ximian.com>
16235 * TreeNodeCollection.cs: Remove debug code.
16237 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
16239 * Datagrid.cs: Implements column sorting in Datagrid
16240 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
16242 2005-10-20 Jackson Harper <jackson@ximian.com>
16244 * TreeNodeCollection.cs: Remove items properly. Update the correct
16245 area after removing them.
16247 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
16249 * Datagrid.cs: Should not call base.OnPaintBackground
16251 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
16253 * XplatUIX11.cs (GetMessage):
16254 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
16255 window instead of client window
16256 - Now properly calculates NC_xBUTTONUP message coordinates
16257 - ScreenToMenu now properly calculates it's coordinates of whole
16258 window, since menus are in the whole window, not in the client
16260 - Added WholeToScreen coordinate translation method
16262 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
16264 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
16265 want to return a message, loop back to the beginning of the function
16266 and grab the next real message to process instead.
16268 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
16270 * Splitter.cs: Properly set limits if no filler control is used
16272 2005-10-19 Jackson Harper <jackson@ximian.com>
16274 * ColorDialog.cs: Don't show the help button if it is not enabled
16275 instead of disabling it (this is what MS does). Don't create the
16276 panel until the dialog is run, otherwise the vars (such as
16277 ShowHelp) are not set yet.
16279 2005-10-19 Jackson Harper <jackson@ximian.com>
16281 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
16282 are reduced when adding nodes.
16284 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
16287 2005-10-19 Jackson Harper <jackson@ximian.com>
16289 * FolderBrowserDialog.cs: End editing our treeview so the window
16290 actually gets refreshed.
16292 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
16294 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
16295 Obsoleted handling of WM_ERASEBKGND, now always draws our background
16298 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
16300 * MenuAPI.cs: Returns after Hidding window
16301 * XplatUIX11.cs: Added TODO found while debugging menu issues
16303 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
16305 * XplatUIX11.cs: Do not re-map the whole window when it's size
16306 becomes non-zero unless it's supposed to be actually visible
16308 2005-10-18 Jackson Harper <jackson@ximian.com>
16310 * TreeView.cs: We don't need to keep a count anymore.
16311 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
16312 use the Grow method.
16314 2005-10-18 Jackson Harper <jackson@ximian.com>
16316 * TreeNodeCollection.cs: Insert is not supported on arrays, so
16317 implement it manually here.
16319 2005-10-18 Jackson Harper <jackson@ximian.com>
16321 * ImageList.cs: Dont kill the list when the colour depth is
16322 changed, just change the colour depth of all the images.
16323 - Same goes for setting the image size. Just resize them all
16324 instead of killing the list softly.
16326 2005-10-18 Jackson Harper <jackson@ximian.com>
16328 * Control.cs: Don't invalidate empty rectangles.
16330 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
16333 - Adds checked item to the Checked/Item lists (where empty before)
16334 - Do not add items to the Selected lists if they are already present
16336 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
16337 - When deleting items make sure that we delete them for the Selected
16338 and Checked list also.
16340 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
16342 * Label.cs: Dispose objects no longer used
16343 * ThemeWin32Classic.cs: Dispose objects no longer used
16345 2005-10-18 Jackson Harper <jackson@ximian.com>
16347 * TabControl.cs: Don't refresh the whole control when the tabs are
16348 scrolled, we just need to refresh the tab area.
16350 2005-10-17 Jackson Harper <jackson@ximian.com>
16352 * XplatUIX11.cs: Compress code a little bit. Only calculate the
16353 after handle when we need it.
16355 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
16357 * Control.cs: When the parent size changes, recalculate anchor
16358 positions. Partial fix for #76462
16360 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
16362 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
16363 drawn. Fixes #76462
16365 2005-10-17 Jackson Harper <jackson@ximian.com>
16367 * MonthCalendar.cs: Don't create the numeric up down until our
16368 handle is created. Otherwise our handle is created in the
16369 constructor and we don't know if we are a WS_CHILD or WS_POPUP
16372 2005-10-17 Jackson Harper <jackson@ximian.com>
16374 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
16377 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
16378 * TreeNode.cs : small logical fix (was using local var instead of field)
16380 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
16382 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
16384 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
16386 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
16388 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
16391 - Re-implemented anchoring code. My first version was really broken.
16392 This fixes bug #76033. Unlike the previous implementation we will
16393 no longer have round errors since all numbers are calculated from
16394 scratch every time. Removed various anchor-related obsolete vars.
16395 - InitLayout no longer causes layout event firing and layout to be
16398 2005-10-16 Jackson Harper <jackson@ximian.com>
16400 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
16403 2005-10-16 Jackson Harper <jackson@ximian.com>
16405 * TabControl.cs: Remove debug code.
16407 2005-10-16 Jackson Harper <jackson@ximian.com>
16409 * XEventQueue.cs: Increase the default queue size (very simple
16410 apps needed to grow the queue).
16411 * Hwnd.cs: No finalizer so we don't need to suppress
16412 finalization. Compute the invalid area manually so a new rectangle
16413 does not newto be created.
16414 * ScrollableControl.cs: Don't set any params (otherwise visibility
16415 isn't set correctly).
16416 * MdiChildContext.cs: New constructor takes the mdi parent so it
16417 doesn't have to be computed and avoids a crash on windows. Draw
16418 the window icon properly, and allow the text to be seen.
16419 * Form.cs: Use new MdiChildContext constructor. Make sure the
16420 child context isn't null in wndproc.
16421 * TabControl.cs: Don't set focus, this is muddling keyboard
16422 behavoir. Expand the tab rows when a window size increase will
16423 allow extra tabs to be seen. Don't allow tabs smaller than the
16424 width of a window to be scrolled out of view.
16426 * TreeView.cs: Use measure string to calculate a nodes width, the
16427 width is cached and only updated when the text or the font is
16428 changed. Don't check for expand/collapse clicks on the first level
16429 nodes if root lines are disabled.
16431 2005-10-16 Ritvik Mayank <mritvik@novell.com>
16433 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
16435 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
16437 * DataGridBoolColumn.cs: fixes warning
16439 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
16441 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
16442 to match more to match more precisely the MS Net behavior
16444 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16446 * Hwnd.cs: Added field to track if window is mapped
16448 - Unmap windows if they become 0-size, re-map when
16449 they are >0 again; fixes #76035
16450 - Re-set our error handler after initializing X11Desktop
16451 to override any error handlers Gtk or whatever was called
16454 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16456 * CheckedListBox.cs: Removed unused vars
16457 * ListView.cs: Fixed signatures
16458 * RichTextBox.cs: Removed unused vars
16459 * TextBoxBase.cs: Removed unused vars
16460 * XplatUIWin32.cs: Removed unused vars
16461 * XplatUIX11.cs: Removed unused vars
16462 * XplatUI.cs: Updated version and date to latest published
16464 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16466 * Cursor.cs: Added private .ctor to work around a bug in
16467 resourceset (Thanks to Geoff Norton for the help on this)
16468 * SplitterEventArgs.cs: Made fields accessible so we don't
16469 waste boatloads of objects and can reuse the same one
16471 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
16472 any captions and borders when generating screen coordinates
16473 * Splitter.cs: Reimplemented control, now fully complete, uses
16474 rubberband drawing, supports and obeys all properties, has
16477 2005-10-13 Miguel de Icaza <miguel@novell.com>
16479 * Form.cs (Form): Setup default values for autoscale and
16480 autoscale_base_size; Make these instance variables, not static
16483 (OnLoad): on the first load, adjust the size of the form.
16485 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16487 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
16488 width argument to DrawReversibleRectangle()
16489 * XplatUIWin32.cs, XplatUIX11.cs:
16490 - Implemented width for DrawReversibleRectangle()
16491 - Added logic to DrawReversibleRectangle that recognizes a zero
16492 width or height and only draws a line in that situation
16494 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
16496 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
16497 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
16498 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
16499 method (it uses our FosterParent window to get a graphics context)
16501 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
16503 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
16504 and SetWindowBackground methods
16506 - Setting proper ControlStyles
16507 - We no longer call XplatUI.SetWindowBackground and XplatUI.
16508 EraseWindowBackground, instead we draw the window background
16509 ourselves in PaintControlBackground. This behaviour is
16510 required to match MS, where, when OnPaintBackground is not
16511 called, the background is not drawn.
16512 - Removed unneeded Refresh() in set_Text
16513 * Hwnd.cs: Dropped the ErasePending support. No longer needed
16515 - Created DeriveStyles method to translate from CreateParams to
16516 FormBorderStyle and TitleStyle, also handles BorderStyle (which
16517 matches FormBorderStyle enum values)
16518 - Consolidated SetHwndStyles and CalculateWindowRect border/title
16519 style calculations into single DeriveStyles method
16520 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
16521 from redrawing the whole window on any resize or expose.
16522 - Fixed CreateWindow usage of SetWindowValuemask. Before not
16523 all styles were applied to our whole/client window appropriately
16524 - Removed EraseWindowBackground() and SetWindowBackground() methods
16525 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
16526 no longer clear/redraw the background through X
16527 - Removed handling of erase_pending bit, we have no use for it (or
16530 - Removed generation and handling of WM_ERASEBKGND message
16531 - Removed EraseWindowBackground() and SetWindowBackground() methods
16532 - Removed handling of hwnd.ErasePending flag
16534 - Removed EraseWindowBackground() and SetWindowBackground() methods
16535 - We no longer call EraseWindowBackground on PaintEventStart, we
16536 ignore the fErase flag, erasing is handled in Control in the
16538 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
16539 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
16540 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
16541 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
16542 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
16543 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
16544 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
16546 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
16548 * PropertyGrids.cs: Get sub properties
16549 * PropertyGridView.cs: Fix drawing code
16551 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
16553 * ListBox.cs: Fixes 76383
16555 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
16557 * DataGridTextBoxColumn.cs: Sets location and size before attachment
16558 * ThemeWin32Classic.cs: Fixes border drawing and calculations
16559 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
16562 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
16564 * ComboBox.cs: Fixes border drawing
16566 2005-10-10 Miguel de Icaza <miguel@novell.com>
16568 * MimeIcon.cs: Ignore errors if the file can not be read.
16570 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
16572 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
16573 - Fixed border calculations
16574 - Fixed horizontal scrolling in single column listboxes
16575 - Fixed drawing issues
16577 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
16579 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
16580 FormBorderStyle enum
16581 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
16582 code to determine FormBorderStyles from CreateParams
16584 - Fixed bug where we'd set the wrong window styles if we were
16585 not creating an MDI window
16586 - Added call to XplatUI.SetBorderStyle when form borders are set
16587 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
16589 - Removed obsolete edge style
16590 - Switched from BorderStyle to FormBorderStyle
16592 2005-10-10 Jackson Harper <jackson@ximian.com>
16594 * Form.cs: Use the property to get the window handle instead of
16595 accessing it directly. Prevents a null reference exception.
16597 2005-10-10 Jackson Harper <jackson@ximian.com>
16599 * TreeView.cs: Don't adjust the rect given to DrawString now that
16600 our libgdiplus draws correctly.
16602 2005-10-08 Jackson Harper <jackson@ximian.com>
16604 * TreeView.cs: Don't try to find the clicked on node if there are
16605 no nodes in the tree.
16607 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
16613 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
16615 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
16616 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
16618 Use ResPool for brushes and dispose System.Drawing objects that
16619 are not used anymore.
16621 2005-10-07 Jackson Harper <jackson@ximian.com>
16623 * MdiChildContext.cs: Use the new borders instead of drawing them
16626 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
16628 * Calling UpdateBounds after changing the window's BorderStyle
16629 since the style can change the ClientSize
16631 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16633 * Control.cs: Made PaintControlBackground virtual
16634 * Panel.cs: Overriding PaintControlBackground instead of using paint
16635 event; paint event method was interfering with 'real' users of the
16638 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
16640 * ThemeWin32Classic.cs: remove border drawing since it is handled
16641 by the base control class now and was causing double border drawing.
16643 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16645 * Panel.cs: Redraw our background on paint. Not a pretty solution,
16646 but it does seem to match MS behaviour. This fixes bug #75324
16648 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16650 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
16651 somewhat hackish looking
16653 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16656 - We now accept Enter even if AcceptEnter is false, if the containing
16657 form does not have an AcceptButton configured (fixes bug #76355)
16658 - Calculations are now fixed to no longer use Width/Height, but
16659 ClientSize.Width/Height, since we now support borders (this was
16660 a result of fixing borders and therefore bug #76166)
16661 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
16662 true (fixes bug #76354)
16664 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16667 - Defaulting BorderStyle and setting it in XplatUI when our window
16669 - Added enum check to InternalBorderStyle setter
16671 - Added drawing of window borders
16672 - Now properly calculates WM decorations offset for toplevel
16673 windows (fixes bug #74763)
16675 - Implemented BorderStyles for windows (we're letting win32 draw
16677 - Fixed the signature for SetWindowLong
16678 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
16679 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
16681 * UpDownBase.cs: Remove drawing of borders, this is handled by
16682 the driver, outside the client area
16683 * ListView.cs: Removed bogus border calculations. The control should
16684 be oblivious to borders, since those are not part of the client
16686 * X11DesktopColors.cs: Commented out (currently) unneeded variables
16687 * ThemeWin32Classic.cs: Removed border calculations from ListView
16690 2005-10-06 Jackson Harper <jackson@ximian.com>
16692 * MdiChildContext.cs: Clear out the old virtual position remove
16693 all the unneeded calls to CreateGraphics.
16695 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16697 * TextControl.cs: Use proper color for highlighted text; fixes #76350
16699 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16702 - Added loading and setting of our new default icon
16703 - Only set icon if window is already created
16705 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
16708 - Do not explicitly set the foreground and background colors, to
16709 allow inheriting from parents (fixes #76302)
16710 - Use Control's InternalBorderStyle property to deal with borders
16712 2005-10-06 Jackson Harper <jackson@ximian.com>
16714 * MdiChildContext.cs: Use the new xplatui function to draw a
16717 2005-10-06 Jackson Harper <jackson@ximian.com>
16719 * Form.cs: Add the parent before creating the child context cause
16720 we need the parent when setting up the child.
16722 2005-10-06 Jackson Harper <jackson@ximian.com>
16724 * FolderBrowserDialog.cs: redo the tree population code so a
16725 second thread isn't used. Should be a lot faster and more stable
16728 2005-10-05 Jackson Harper <jackson@ximian.com>
16730 * TreeView.cs: There are no expand/collapse boxes if the node has
16733 2005-10-05 Jackson Harper <jackson@ximian.com>
16735 * X11DesktopColors.cs: Get menu colours for the gtk theme.
16737 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
16739 * FileDialog.cs: Fix InitialDirectory
16741 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
16744 - Fixes changing between styles
16745 - Fixes simple mode
16746 - Fixes last item crashing when navigating with keyboard
16748 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
16750 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
16752 2005-10-05 Jackson Harper <jackson@ximian.com>
16754 * TreeView.cs: If updating the root node do a full refresh.
16755 * TreeNode.cs: The root node should be expanded by default. Also
16756 added a utility prop to tell if we are the root node.
16757 * TreeNodeCollection.cs: Only refresh if the node we are being
16758 added to is expanded. Also added a comment on a potential
16761 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
16763 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
16764 in dispose method. Fixes #76330
16766 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
16768 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
16770 - Implements vertical and horizontal scrolling using XplatUI
16771 - Fixes keyboard navagation
16772 - Fixes EnsureVisible
16774 - Handles and draws focus properly
16777 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
16779 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
16780 Create handle. NET_2_0: Destroy handle when value is null.
16782 2005-10-03 Jackson Harper <jackson@ximian.com>
16784 * ScrollBar.cs: My last scrollbar patch was broken. This is a
16785 revert and a new patch to prevent the thumb from refreshing so
16788 2005-10-02 Jackson Harper <jackson@ximian.com>
16790 * ScrollBar.cs: Don't update position if it hasn't actually
16791 changed. This occurs when you hold down the increment/decrement
16792 buttons and the thumb gets to the max/min.
16794 2005-10-01 Jackson Harper <jackson@ximian.com>
16797 * MdiChildContext.cs:
16798 * MdiClient.cs: Implement ActiveMdiChild in Form.
16800 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
16802 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
16804 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
16806 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
16809 2005-09-30 Jackson Harper <jackson@ximian.com>
16811 * ListBox.cs: Don't do a full refresh unless some data has
16814 2005-09-30 Jackson Harper <jackson@ximian.com>
16816 * TreeView.cs: Make sure that the checkboxes size is factored in
16817 even when not visible.
16819 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
16821 * FileDialog.cs: Fix Jordi's build break
16823 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
16826 - Use standard the Windows colours for the combobox as espected
16827 - Dispose objects that use resouces when no longer need them
16829 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
16831 * X11DesktopColors.cs: Initial incomplete implementation
16832 * XplatUIX11.cs: Added call to initialize X11DesktopColors
16834 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
16837 - Switched Theme color names to match the names defined in
16838 System.Drawing.KnownColors. Life's hard enough, no need to make
16840 - Added setters to all theme color properties so themes can set
16841 their color schemes. The setters also propagate the color changes
16842 to System.Drawing.KnownColors via reflection
16843 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
16844 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
16845 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
16846 use the new, more logical theme color names
16847 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
16849 * ThemeWin32Classic.cs:
16850 - Removed code to set the old classic Windows colors. Instead it
16851 now relies on the colors returned by System.Drawing.KnownColors
16852 which will be either modern static colors (Unix) or colors
16853 read from the user's configuration (Win32)
16854 - Updated to use the new, more logical theme color names
16855 - Switched DataGrid drawing code to use only Theme colors instead of
16856 a mix of System.Drawing.KnownColors and Theme colors
16857 - DrawFrameControl(): Removed code that fills the button area, the
16858 fill would overwrite any previous fill done by a control. This
16860 - Added DrawReversibleRectangle() stub
16861 * ScrollableControl.cs: Set visible state to false when scrollbars
16862 are removed (pdn fix)
16863 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
16864 DrawReversibleRectangle() method to allow drawing primitive
16866 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
16868 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16870 * ImageList.cs: Add(Icon): Create handle.
16872 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
16875 * ThemeWin32Classic.cs:
16876 - Fixes detail mode
16878 - Issues with drawing
16880 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16882 * ImageList.cs: Moved RecreateHandle back to ImageList as event
16883 source has to be the ImageList.
16885 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16887 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
16889 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16891 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
16893 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16895 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
16897 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
16898 * GridItem.cs: Fixed TODOs
16899 * GridItemCollection.cs: Added ICollection interface
16901 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
16903 * ImageList.cs: Resize icons when needed.
16905 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
16908 - Fixes GetBounds and returns on screen rects
16910 - Fixes vertical and horzintal scrolling of items
16911 * ThemeWin32Classic.cs:
16914 2005-09-29 Raja R Harinath <harinath@gmail.com>
16916 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
16918 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
16920 * ImageList.cs: Added comments about handle creation. Moved Handle,
16921 HandleCreated and OnRecreateHandle implementations to ImageCollection.
16922 Handle is created in Add methods.
16924 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
16926 * DataGridDrawingLogic.cs:
16927 - Takes rows into account on Colum calculations
16928 - Returns the column when clickig
16930 - Fixes default HitTestInfo values
16931 - Fixes HitTestInfo.ToString
16932 - Fixes ResetBackColor
16934 2005-09-28 Jackson Harper <jackson@ximian.com>
16936 * MdiChildContext.cs: Obey rules for fixed sized windows (no
16937 sizing or cursor changes). Also added some temp code to draw the
16938 titlebars text (Makes dev a little easier).
16940 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
16942 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
16944 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
16946 * ListBox.cs: Fixes bug 76253
16948 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
16950 * ImageList.cs: Added comments about the current implementation. Added
16951 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
16952 Format32bppArgb to preserve transparency and can use Graphics.FromImage
16953 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
16954 with Bitmap.LockBits for better performance. Revised the whole file to
16955 match MS.NET behaviour and provide better performance. Non-public
16956 interface members are calling public members even when they throw
16957 NotSupportedException for better maintainability. Moved ColorDepth,
16958 ImageSize, ImageStream and TransparentColor implementations to
16959 ImageCollection for better performance as these properties are not used
16961 * ImageListStreamer.cs: Added a new internal constructor that takes an
16962 ImageList.ImageCollection and serializes Images based on
16963 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
16964 match ImageList property name.
16966 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
16968 * ListBox.cs: Fixes IndexFromPoint for last item
16970 2005-09-27 Jackson Harper <jackson@ximian.com>
16972 * Form.cs: Set the position of new mdi children correctly.
16974 2005-09-27 Jackson Harper <jackson@ximian.com>
16976 * MdiClient.cs: New mdi children need to be added to the back of
16977 the controls collection so the zorder is set correctly. Also add a
16978 count of all the child windows that have been created.
16980 2005-09-27 Jackson Harper <jackson@ximian.com>
16982 * Form.cs (CreateParams): Setup MDI forms correctly.
16984 2005-09-27 Jackson Harper <jackson@ximian.com>
16986 * MdiChildContext.cs:
16987 * MonthCalendar.cs:
16993 * ScrollableControl.cs:
16994 * ComboBox.cs: Add implicit controls using the new implict control
16995 functionality in ControlCollection. Also try to block multiple
16996 control add in a suspend/resume layout to save some cycles.
16998 2005-09-27 Jackson Harper <jackson@ximian.com>
17000 * Control.cs: Add functionality to the controls collection to add
17001 'implicit controls' these are controls that are created by the
17002 containing control but should not be exposed to the user. Such as
17003 scrollbars in the treeview.
17004 * Form.cs: The list var of the ControlsCollection is no longer
17005 available because of the potential of implicit controls getting
17006 ignored by someone accessing the list directly.
17008 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
17010 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
17011 loose it's parent. (Fixed bug introduced in r49103 when we added
17012 setting the child parent to null on Remove)
17014 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
17016 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
17017 * Splitter.cs: Added missing attributes for BorderStyle property.
17018 * TextBoxBase.cs: Marked Calculate* methods internal.
17019 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
17022 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
17024 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
17026 2005-09-25 Jackson Harper <jackson@ximian.com>
17028 * TreeView.cs: Update the node bounds correctly regardless of
17029 whether the node is visible.
17031 2005-09-25 Jackson Harper <jackson@ximian.com>
17033 * ImageList.cs: Don't dispose the image after it is added to the
17034 image list. Only reformat images that need to be resized.
17036 2005-09-25 Jackson Harper <jackson@ximian.com>
17038 * ImageList.cs: Don't set the format when changing the image.
17040 2005-09-25 Jackson Harper <jackson@ximian.com>
17042 * TreeView.cs: We can't just assume the node has a font. Use the
17043 treeviews font if no node font is available.
17045 2005-09-25 Jackson Harper <jackson@ximian.com>
17047 * TreeView.cs: Allow the scrollbars to be reset with negative
17049 - Don't add scrollbars to negative sized windows.
17051 2005-09-23 Jackson Harper <jackson@ximian.com>
17053 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
17054 old Mono.Posix. Also remove some stray code that shouldn't have
17057 2005-09-23 Jackson Harper <jackson@ximian.com>
17059 * TreeView.cs: Attempt at proper sizing of the horizontal
17060 scrollbar. Also don't resize the scrollbars unless they are
17063 2005-09-23 Jackson Harper <jackson@ximian.com>
17065 * TreeView.cs: We don't need to expand the invalid area when the
17066 selection changes, as this is all drawn in the node's bounding
17067 box. The area needs to be expanded (previous typo was contracting
17068 it) when the focus rect moves.
17070 2005-09-23 Jackson Harper <jackson@ximian.com>
17072 * TreeView.cs: Display the selection box under the correct
17073 circumstances. We were rendering white text with no selection box
17076 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
17078 * TextControl.cs(Split): Now updates selection start/end if it points
17079 into a line that's being split. Fixes a FIXME and bug #75258
17081 2005-09-23 Jackson Harper <jackson@ximian.com>
17084 * ListControl.cs: Don't use the path when retrieving binding
17085 managers from the binding context. My bat sense tells me that the
17086 path is only used on insertion.
17088 2005-09-22 Jackson Harper <jackson@ximian.com>
17090 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
17092 2005-09-22 Jackson Harper <jackson@ximian.com>
17094 * Splitter.cs: There are special cursors used for splitting.
17095 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
17097 2005-09-22 Jackson Harper <jackson@ximian.com>
17099 * Splitter.cs: Change the cursor appropriately when the splitter
17100 is moused over, so the user actually knows there is a splitter
17103 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17105 * Label.cs : Fix ToString method to give same output as MS.NET
17107 2005-09-22 Jackson Harper <jackson@ximian.com>
17109 * TreeView.cs: Create the scrollbars when the handle is created
17110 and add them right away, just make them invisble. Also account for
17111 the window being shrunk vertically to the point that the vert
17112 scrollbar needs to be added.
17113 - Remove some 0.5 adjustments to get around anti aliasing issues.
17115 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
17117 * MainMenu.cs: Fixes default value
17118 * MenuItem.cs: Fixes default value
17120 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
17122 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
17124 2005-09-21 Jackson Harper <jackson@ximian.com>
17126 * Control.cs: Don't try to set the border style on the window if
17127 it hasn't been created. When the window is created the border
17128 style will be used.
17130 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17132 * Control.cs (Update): Don't call XplatUI if we don't have a
17135 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17137 * ContainerControl.cs: Instead of throwing an exception, print
17138 a one-time warning about Validate not being implemented
17139 * XplatUIWin32.cs: Removed debug output
17141 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17143 * Control.cs: Only set XplatUI background if we expect the windowing
17144 system to handle the background. This stops controls that draw their
17145 own background from flickering
17147 * XplatUIX11.cs: Support custom visuals and colormaps for window
17148 creation. This allows, amongst other things, using MWF X11 windows
17151 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17153 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
17154 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
17155 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
17156 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
17157 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
17158 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
17159 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
17160 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
17161 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
17162 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
17163 GridColumnStylesCollection.cs,
17164 IDataGridColumnStyleEditingNotificationService.cs,
17165 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
17166 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
17167 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
17168 TreeNodeCollection.cs, AmbientProperties.cs,
17169 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
17170 DataObject.cs, ErrorProvider.cs, Splitter.cs,
17171 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
17172 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
17173 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
17174 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
17175 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
17176 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
17177 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
17178 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
17179 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
17180 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
17181 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
17182 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
17183 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
17184 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
17185 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
17186 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
17187 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
17188 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
17189 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
17190 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
17191 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
17192 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
17193 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
17194 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
17195 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
17196 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
17197 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
17198 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
17199 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
17200 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
17201 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
17202 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
17203 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
17204 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
17205 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
17207 2005-09-21 Jackson Harper <jackson@ximian.com>
17209 * TreeNode.cs: Call Before/After Expand not Collapse when
17212 2005-09-20 Jackson Harper <jackson@ximian.com>
17214 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
17216 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
17220 - Fixes proper storing of subitems
17221 - Fixes not updated items
17223 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
17225 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
17226 things if our window handle isn't created yet. Also disabled
17227 debug for TextBoxBase
17229 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
17231 * MenuAPI.cs: Remove filtering of events to allow menu usage
17233 2005-09-20 Miguel de Icaza <miguel@novell.com>
17235 * Cursor.cs: Allow null to be passed to Cursor.Current.
17237 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
17239 * ThemeWin32Classic.cs:
17240 - Change some private methods/fields to protected virtual so that
17241 they can be accessed and overriden in derived classes
17242 - First refactoring of some methods. Derived themes now don't
17243 need to duplicate the complete code from ThemeWin32Classic
17245 - Added nice StatusBar
17246 - Derive from ThemeWin32Classic and not Theme
17247 - Removed duplicate ThemeWin32Classic code
17249 2005-09-20 Miguel de Icaza <miguel@novell.com>
17251 * Control.cs (ControlCollection.Add): If the value null is passed
17252 the control is ignored.
17254 Optimize this loop.
17256 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
17258 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
17259 PostQuitMessage state.
17260 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
17262 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
17264 * Application.cs: Our constructor will never get called, move
17265 initialization to fields; fixes bug #75933
17267 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17270 - Allow files to be selected properly using file name
17272 - Add ability to change diretory (absolute / relative)
17273 using file name combo box.
17275 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
17278 - Fixes Multicolumn listboxes item wrong calculations
17279 - Allows to click when only one item is in the listbox
17280 - Fixes crash when no items using keyboard navigation
17282 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
17284 * ComboBox.cs: Reverted almost everything from the latest patch which
17287 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
17290 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
17292 - When DropDownStyle is Simple, it does not show scrollbar
17293 to the last item of the list.
17294 - When DropDownStyle is Simple, it crashed when the list was
17295 scrolled down with the down cursor key.
17296 - Fixed a bug that when DropDownStyle is DropDownList, the
17297 selected item was not shown.
17298 - The position of the selected item was not preserved when
17299 the next dropdown happened.
17300 * ThemeWin32Classic.cs:
17301 - Items were wrapped at the right end.
17302 * CheckedListBox.cs:
17305 - Items should be fully shown.
17306 - When resizing and vertical scrollbar disappeared, the item
17307 of index 0 should be on the top of the list.
17308 - GetItemRectangle should consider the size of ver. scrollbar
17310 - SizingGrip area should not be allocated when it is not
17312 - Now it reflects MinWidth of the containing panel and
17313 fixed a crash that happens when its width becomes so small.
17315 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
17317 * CheckedListBox.cs: Fixes bug 76028
17318 * ListBox.cs: Fixes bug 76028
17320 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
17322 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
17323 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
17325 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
17327 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
17329 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
17331 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
17333 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
17335 * IRootGridEntry.cs: Added
17336 * PropertyGridCommands.cs: Added
17337 * PropertiesTab.cs: Added missing methods and property
17338 * PropertyGridView.cs: Made class internal
17339 * PropertyGridTextBox.cs: Made class internal
17341 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
17343 * MimeIcon.cs: Try to check some other environment variables
17344 if "DESKTOP_SESSION" returns "default"
17346 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
17348 * ThemeNice.cs: Corrected background colors (e.g. menus)
17349 * ColorDialog.cs: Use correct background colors for controls
17351 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
17353 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
17355 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
17357 * RichTextBox.cs: Added initial implementation
17358 * lang.cs: Removed. Was accidentally checked in long time ago
17359 * TODO: Removed. Contents were obsolete
17361 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
17363 * PropertiesTab.cs : Added
17365 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
17367 * PropertyGrid.cs : Update
17368 * PropertyGridView.cs : Update
17369 * System.Windows.Forms.resx : Added images and strings
17371 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
17373 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
17375 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
17377 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
17378 a busy loop right after the Ungrab the X11 display is otherwise
17381 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
17383 * ThemeWin32Classic.cs: Optimise the use of clipping
17385 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
17387 * DataGrid.cs: fixes recursion bug
17389 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
17392 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
17395 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
17397 * ThemeNice.cs: Draw nice ProgressBars
17399 2005-09-01 Miguel de Icaza <miguel@novell.com>
17401 * VScrollBar.cs: Another buglet found by Aaron's tool.
17403 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
17406 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
17409 - Added nicer menu drawing
17413 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17415 * CreateParams.cs (ToString): Made output match MS
17416 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
17417 handle is already created (to avoid forcing window creation)
17418 * XplatUIX11.cs: Set window text to caption after creating window,
17419 in case Text was set before window was created
17420 * Form.cs: Use this.Text instead of a static string as caption
17422 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17424 * NotifyIcon.cs: Don't set the window to visible; this screws
17425 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
17426 OnPaint without a bitmap)
17427 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
17428 happen very often anyway; we could add the check to the WM_PAINT
17429 event generation code
17431 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17433 * NotifyIcon.cs: Fill the icon area with a background color, to
17434 avoid 'residue' when transparent icons are drawn
17436 - Handle whole_window == client_window when destroying windows
17437 - SystrayAdd(): Set client_window to whole_window value to
17438 get mouse and other events passed to NotifyIcon
17440 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17442 * Form.cs: Set proper default for Opacity property
17444 - ShowSystray(): Don't bother creating telling the OS
17445 about the systray item if no icon is provided
17446 - Now handles WM_NCPAINT message to deal with whole/client window
17448 - Create window as visible to not get caught by Expose optimization
17449 * Hwnd.cs: Removed debug message
17450 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
17451 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
17452 PaintEventStart/End to use new client argument
17454 - Commented out debug messages
17455 - Switched PaintEventStart/End to use new client argument
17456 * XplatUI.cs: Added client window bool to PaintEventStart()/
17457 PaintEventEnd() calls, to support drawing in non-client areas
17458 * XplatUIDriver.cs:
17459 - Added client window bool to PaintEventStart()/PaintEventEnd()
17460 calls, to support drawing in non-client areas
17461 - Added conditional compile to allow using MWF BeginInvoke
17464 - Added some conditional debug output
17465 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
17466 whole/client window split
17467 - Implemented handling of client argument to PaintEventStart()/End()
17469 - Throw exception if BeginInvoke() is called and the window handle
17470 or one of the window's parent handles is not created
17471 - Added conditional compile to allow using MWF BeginInvoke on
17473 - get_Parent(): Only sets parent if handle is created. This avoids
17474 forcing window handle creation when parent is set.
17475 - Now fires Layout and Parent changed events in proper order
17476 - Switched to use Handle instead of window.Handle for Z-Order setting,
17477 the get_Parent() patch above causes us to possibly get null for 'window'
17478 - Implemented handling of client argument to PaintEventStart()/End()
17479 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
17481 - Now sends a Refresh() to all child windows when Refresh() is called
17483 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
17485 * Form.cs: Added (non-functional) Opacity property
17486 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
17488 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
17489 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
17490 use export MONO_THEME=nice to activate it.
17491 Currently supported controls:
17495 - TabControl (TabAlignment.Top only, other will follow)
17496 * ThemeEngine.cs: Add theme nice
17497 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
17500 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
17502 * Splitter.cs: Resize docked control and its neighbor.
17504 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
17505 -- Making Windows with Menus layout correctly --
17506 * Form.cs : The first leg of the fix
17507 Menu setter - adjust Client Size as needed to make space for the menu
17508 SetClientSizeCore - doesn't call base version to be able to pass the
17509 menu handle to XplatUI.CalculateWindowRect
17510 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
17511 * XplatUIX11.cs: The critical second leg of the fix
17512 GetWindowPos needs to use a recalculated client_rect
17513 so that resizing the window doesn't break layout of child controls.
17514 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
17515 Lots of \t\n killed
17517 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
17519 * Label.cs: Now properly recalculates width and height on Font and Text
17520 changes if AutoSize is set
17522 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
17523 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
17525 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
17527 * ImageList.cs: Makes ToString method compatible with MS
17529 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
17531 * MenuAPI.cs: fixes bug 75716
17533 2005-08-11 Umadevi S <sumadevi@novell.com>
17534 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
17536 2005-08-11 Umadevi S <sumadevi@novell.com>
17537 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
17539 2005-08-10 Umadevi S <sumadevi@novell.com>
17540 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
17542 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
17544 * Menu.cs: fixes bug 75700
17545 * MenuAPI.cs: fixes navigation issues
17547 2005-08-09 Umadevi S <sumadevi@novell.com>
17548 * CheckedListBox.cs - simple fix for GetItemChecked.
17550 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
17552 * ComboBox.cs: Serveral fixes
17553 * ListBox.cs: Serveral fixes
17555 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
17557 * ComboBox.cs: Fixes FindString methods and GetItemHeight
17558 * ListBox.cs: Fixes FindString methods
17560 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
17562 * DataGrid.cs: fixes bugs exposed by new tests
17564 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
17566 * Mime.cs: Compile Mono assembly references only if compiling
17567 with Mono (Allows to build with VS.Net again)
17569 2005-07-28 Marek Safar <marek.safar@seznam.cz>
17571 * Control.cs (PaintControlBackground): Draw background image
17573 (CheckForIllegalCrossThreadCalls): Stubbed.
17575 * Form.cs (OnCreateControl): Center when should be centered.
17577 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
17579 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
17581 * Binding.cs: Binding to properties should be case unsensitive
17583 2005-07-18 vlindos@nucleusys.com
17585 * DataGrid.cs: fixes setmember order
17587 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
17589 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
17590 * FileDialog.cs: FileDialog is now resizable and uses the new
17593 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
17595 * DataGridTextBoxColumn.cs: default value
17596 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
17597 * GridTableStylesCollection.cs: fixes checking MappingName
17598 * DataGridDrawingLogic.cs: fixes drawing logic issues
17599 * DataSourceHelper.cs: rewritten to make compatible with more data sources
17600 * DataGrid.cs: fixes
17602 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
17604 * MimeGenerated.cs: Use case sensitive comparer for
17605 NameValueCollections
17607 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
17609 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
17610 * ThemeWin32Classic.cs: bug fixes, code refactoring
17611 * DataGridDrawingLogic.cs: bug fixes, code refactoring
17612 * DataGrid.cs: bug fixes, code refactoring
17613 * DataGridTextBox.cs: bug fixes, code refactoring
17614 * DataGridColumnStyle.cs: bug fixes, code refactoring
17615 * Theme.cs: bug fixes, code refactoring
17617 2005-07-01 Peter Bartok <pbartok@novell.com>
17619 * TextControl.cs: Quick fix for the reported crash on ColorDialog
17620 and other text box usage
17622 2005-07-01 Jackson Harper <jackson@ximian.com>
17624 * TabControl.cs: Make sure the bottom of the tab covers the pages
17627 2005-06-30 Peter Bartok <pbartok@novell.com>
17629 * Form.cs (ShowDialog): Assign owner of the dialog
17630 * TextBoxBase.cs: Always refresh caret size when deleting, caret
17631 might have been moved to a tag with different height
17633 2005-06-30 Jackson Harper <jackson@ximian.com>
17635 * Form.cs: Don't create an infinite loop when setting focus
17636 * MenuItem.cs: Don't dirty the parents if we don't have any
17638 2005-06-29 Ben Maurer <bmaurer@ximian.com>
17640 * LibSupport.cs: Rename
17642 2005-06-29 Peter Bartok <pbartok@novell.com>
17644 * TextBoxBase.cs: Re-align caret after deleting a character
17646 - DeleteChars(): Ensure that tag covers the provided position
17647 - StreamLine(): Drop reference for dropped tag
17649 2005-06-29 Peter Bartok <pbartok@novell.com>
17652 - Selections now work properly, anchoring at the initial location
17653 and properly extending in either direction (SetSelectionToCaret(),
17654 SetSelectionStart() and SetSelectionEnd())
17655 - No longer redraws the whole control on selection change, now
17656 calculates delta between previous and new selection and only
17657 invalidates/redraws that area
17658 - Fixed FindPos() math off-by-one errors
17659 - Changed DeleteChars() to verify the provided tag covers the
17660 provided position, selections may have a tag that doesn't cover
17661 the position if the selection is at a tag border
17662 - Fixed off-by-one errors in DeleteChars()
17663 - Added missing streamlining check in DeleteChars() to remove
17665 - Implemented Invalidate() method, now properly calculates exposures
17666 between two given lines/positions
17667 - Implemented SetSelection()
17668 - Obsoleted and removed FixupSelection()
17669 - Improved RecalculateDocument() logic, removing code duplication
17671 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17673 * LibSupport.cs: changes to match different input/output arguments.
17675 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17677 * LibSupport.cs: added libsupport.so init routine.
17679 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
17681 * ControlBindingsCollection.cs
17682 - Throws an exception on null datasource when adding
17683 - Checks for duplicated bindings when adding
17685 2005-06-28 Jackson Harper <jackson@ximian.com>
17687 * TreeView.cs (OnKeyDown): Support left and right properly
17688 (navigates as well as expanding and collapsing.
17689 - Add support for Multiply, this expands all the selected nodes
17691 - Fix some tabbing.
17693 2005-06-28 Jackson Harper <jackson@ximian.com>
17695 * TreeView.cs: Implement keyboard navigation, currently supports,
17696 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
17697 support for toggling checkboxes with the space bar.
17699 2005-06-28 Jackson Harper <jackson@ximian.com>
17701 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
17704 2005-06-28 Jackson Harper <jackson@ximian.com>
17706 * TreeView.cs: Add missing event.
17708 2005-06-27 Peter Bartok <pbartok@novell.com>
17711 - Made line ending size configurable (now allows for counting
17712 lineendings as \n or \r\n)
17713 - Added margin to viewport to keep caret visible on right side
17714 - Fixed translation routines for line/pos to documentpos to consider
17715 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
17716 - Fixed some line-endings to be unix style
17717 - Fixed Document.FormatText to perform it's calculations 1-based
17718 - Added descriptions for a few methods that might otherwise get
17720 - Added NOTE section with some basic conventions to remember at
17721 the top of the file
17722 - Major fixup for RichTextBox selection drawing:
17723 * Fixed crashes when multiple tags on a single line were selected
17724 * fixed selection box drawing not overlaying text
17725 * fixed bogus offset calculation for tags not starting at index 1
17726 * Switched behaviour from using multiple Substrings of a
17727 StringBuilder.ToString() to using multiple
17728 StringBuilder.ToString(start, length) statements, hoping this is
17729 faster (kept original version commented out in the code, in case
17730 original version was faster)
17731 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
17733 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
17736 2005-06-27 Jackson Harper <jackson@ximian.com>
17738 * TabControl.cs: Move to the left and right with the arrow
17739 keys. These keys don't cycle beyond first and last like
17740 tab. Refresh all the tabs when scrolling them to the left or
17743 2005-06-27 Jackson Harper <jackson@ximian.com>
17746 - ToString: Added method
17747 - CreateParams: Remove TODO and comment
17748 - OnKeyDown: Cycle through bounds properly.
17749 - SelectedIndex: Scroll to the right or left if we need to
17750 display the newly selected tab.
17752 2005-06-23 Jackson Harper <jackson@ximian.com>
17754 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
17757 2005-06-23 Jackson Harper <jackson@ximian.com>
17759 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
17760 CTRL-SHIFT-TAB, and HOME, END are there any others?
17762 2005-06-23 Jackson Harper <jackson@ximian.com>
17764 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
17766 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
17768 * DataGridTextBoxColumn.cs: fixes and enhancements
17769 * ThemeWin32Classic.cs: fixes and enhancements
17770 * DataGridBoolColumn.cs: fixes and enhancements
17771 * DataGridDrawingLogic.cs: fixes and enhancements
17772 * CurrencyManager.cs: fixes and enhancements
17773 * DataGrid.cs: fixes and enhancements
17774 * DataGridColumnStyle.cs: fixes and enhancements
17776 2005-06-22 Jackson Harper <jackson@ximian.com>
17778 * TabControl.cs: Add some missing methods that just call into the
17779 base. Make the TabPageCollection's IList interface behave in the
17780 same manner as the MS implementation.
17782 2005-06-22 Peter Bartok <pbartok@novell.com>
17784 * TextControl.cs: Added sanity check
17786 - Fixed wrapping behaviour, don't set wrap on single line controls
17787 (this fixes the breakage of colordialog introduced in an earlier
17789 - Added rudimentary support for autoscrolling right-aligned controls
17790 (still needs fixing, also, center alignment scroll is missing)
17792 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
17794 * ScrollBar.cs: Fixes thumbpos on Maximum values
17796 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
17798 * PropertyGridView.cs: Pass context information to UITypeEditors
17800 2005-06-21 Peter Bartok <pbartok@novell.com>
17803 - Now calling PositionCaret with absolute space coordinates
17804 - Enabled vertical scrolling
17805 - Better tracking of scrollbar changes, tied into WidthChange
17807 - Improved cursor tracking
17808 - Removed debug output
17810 - PositionCaret coordinates are now works in absolute space, not
17812 - Improved tracking of document size
17813 - Added events for width and height changes
17815 2005-06-21 Peter Bartok <pbartok@novell.com>
17817 * Form.cs: Set focus to active control when form is activated
17819 - Added word-wrap functionality to RecalculateLine()
17820 - Added some short function descriptions for VS.Net to aid in
17821 writing dependent controls
17822 - Added Caret property, returning the current coords of the caret
17823 - Added ViewPortWidth and ViewPortHeight properties
17824 - Added Wrap property
17825 - Added CaretMoved event
17826 - Removed some old debug code
17827 - Split() can now create soft splits
17828 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
17829 - Added method to format existing text
17830 - Fixed size/alignment calculations to use viewport
17831 - RecalculateDocument now can handle changing line-numbers while
17835 - Added some wrap logic, we don't wrap if alignment is not left
17836 - Added casts for scrollbar var, base class switched types to
17837 also support RichTextBoxA
17838 - Implemented handling of scrollbar visibility flags
17841 - Switched scrollbars type to RichTextBoxScrollBars to support
17843 - Added tracking of canvas width/height
17844 - Switched scrollbars to be not selectable (to keep focus on text)
17845 - Added central CalculateDocument() method to handle all redraw
17847 - Added ReadOnly support
17848 - Added WordWrap support
17849 - Fixed handling of Enter key (we now treat it as a DialogKey)
17850 - Fixed caret positioning when h or v scroll is not zero
17851 - Fixed placing/generation of vertical scrollbar
17852 - Added CalculateScrollBars() method to allow updating scrollbar
17853 limits and visibility
17854 - Fixed handling of horizontal scroll
17855 - Added handling of vertical scroll
17856 - Implemented auto-'jump' when caret moves to close to a left or
17857 right border and there is text to be scrolled into view (currently
17858 there's the potential for a stack overflow, until a bug in
17859 scrollbar is fixed)
17861 2005-06-21 Geoff Norton <gnorton@customerdna.com>
17863 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
17865 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
17869 - return application/x-zerosize for files with size zero
17870 (if no extension pattern matches).
17871 - check matches collection for strings too.
17872 - return only the first mime type if the name value
17873 collection has more than one mime type.
17875 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
17877 * PropertyGrid.cs: Cleaned up some TODOs
17878 * PropertyGridView.cs: Added support for UITypeEditors
17880 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
17882 * DataGrid.cs: clears cached value
17884 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
17886 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
17887 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
17888 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
17889 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
17891 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
17893 * ThemeWin32Classic.cs: fixes colour
17895 2005-06-15 Peter Bartok <pbartok@novell.com>
17897 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
17898 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
17899 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
17900 * Control.cs: Added some MWFCategory and MWFDescription attributes
17901 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
17903 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
17905 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
17908 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
17910 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
17911 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
17912 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
17913 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
17914 * DataGrid.cs: default datagrid settings for Default Styles, fixes
17915 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
17917 2005-06-13 Jackson Harper <jackson@ximian.com>
17919 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
17920 isn't printed when the user enables dropping. (X11 does accept
17923 2005-06-13 Jackson Harper <jackson@ximian.com>
17925 * TreeView.cs: Remove some TODOS.
17927 2005-06-13 Jackson Harper <jackson@ximian.com>
17929 * Form.cs: Hook into the mdi framework.
17930 * MdiClient.cs: Use the base control collections add method so
17931 parents get setup correctly. Set the default back colour and dock
17933 * MdiChildContext.cs: New class, this bad actor handles an
17934 instance of an MDI window. Right now there is only basic
17935 support. You can drag, close, and resize windows. Minimize and
17936 Maximize are partially implemented.
17938 2005-06-13 Jackson Harper <jackson@ximian.com>
17940 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
17941 freaky when both vals are negative. NOTE: There are probably other
17942 places in XplatUIX11 that this needs to be done.
17944 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
17946 * DataGrid.cs: implement missing methods, move KeyboardNavigation
17947 * DataGridColumnStyle.cs: fixes signature
17949 2005-06-12 Jackson Harper <jackson@ximian.com>
17951 * XplatUIX11.cs: Use sizing cursors similar to the ones on
17954 2005-06-11 Jackson Harper <jackson@ximian.com>
17956 * StatusBarPanel.cs: Signature cleanups. Implement
17959 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
17961 * DataGridTextBoxColumn.cs: Honors aligment
17962 * GridColumnStylesCollection.cs: Contains is case unsensitive
17963 * GridTableStylesCollection.cs: several fixes
17964 * DataGridTableStyle.cs: default column creation
17965 * DataGridDrawingLogic.cs: fixes
17966 * CurrencyManager.cs: ListName property
17967 * DataGrid.cs: multiple styles support
17968 * DataGridColumnStyle.cs: fixes
17971 2005-06-10 Peter Bartok <pbartok@novell.com>
17973 * Control.cs(Select): Moved SetFocus call to avoid potential
17974 loops if controls change the active control when getting focus
17975 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
17976 the up/down buttons
17978 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
17980 * ImageListConverter.cs: Implemented
17982 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
17984 * MonthCalendar.cs: Wired in NumericUpDown control for year
17986 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
17988 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
17989 DoubleClick events, since they are not meant to be fired.
17991 2005-06-09 Peter Bartok <pbartok@novell.com>
17993 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
17994 Jonathan's standalone controls into MWF, implemented missing
17995 events, attributes and methods; added xxxAccessible classes
17996 * AccessibleObject.cs: Made fields internal so other classes
17997 can change them if needed
17999 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
18001 * UpDownBase.cs: Complete implementation
18002 * NumericUpDown.cs: Complete implementation
18003 * DomainUpDown.cs: Complete implementation
18005 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
18007 * DataGridTextBoxColumn.cs: drawing fixes
18008 * DataGridCell.cs: fixes ToString method to match MSNet
18009 * DataGridTableStyle.cs: fixes
18010 * DataGridBoolColumn.cs: fixes, drawing
18011 * DataGridDrawingLogic.cs: fixes, new methods
18012 * DataGridTextBox.cs: Keyboard and fixes
18014 - Keyboard navigation
18016 - Row selection (single, multiple, deletion, etc)
18019 2005-06-07 Jackson Harper <jackson@ximian.com>
18021 * ThemeWin32Classic.cs: Clear the background area when drawing
18024 2005-06-06 Peter Bartok <pbartok@novell.com>
18026 * ImageListStreamer.cs: Fixed signature for GetData
18027 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
18029 - Added missing ChildAccessibleObject class
18030 - Added missing OnXXXFocus overrides, switched to using those
18031 instead of the event handler
18033 - Added Parent property for ControlAccessibleObject
18036 - Added ResetBindings()
18037 * ListBindingConverter.cs: Implemented some methods
18038 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
18039 * ImageList.cs: Implemented basic handle scheme, removed TODOs
18040 * ContainerControl.cs: Fixed signature, now subscribing to the
18041 ControlRemoved event instead of overriding the handler, LAMESPEC
18042 * CurrencyManager.cs: Added missing attribute
18043 * MonthCalendar.cs: Added missing properties
18045 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
18047 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
18049 2005-06-06 Gaurav Vaish and Ankit Jain
18051 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
18052 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
18054 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
18056 * Control.cs: fixes CreateParams Width / Height.
18058 2005-06-05 Peter Bartok <pbartok@novell.com>
18060 * Win32DnD.cs: Removed compilation warnings
18062 2005-06-05 Peter Bartok <pbartok@novell.com>
18064 * Control.cs (CreateParams): Since we don't know if one of the
18065 properties we use is overridden, lets make sure if we fail accessing
18066 we continue with a backup plan
18068 2005-06-05 Peter Bartok <pbartok@novell.com>
18071 - Removed debug output
18072 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
18074 - Plugged resource leak
18075 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
18078 2005-06-05 Peter Bartok <pbartok@novell.com>
18080 * XplatUIWin32.cs: Removed DnD code
18081 * Win32DnD.cs: Implemented drop source and drop target functionality
18083 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18085 * UpDownBase.cs: remove duplicate addition of event, enable some code
18086 that was commented out.
18087 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
18088 Validate input when a key is pressed. It works fine now for every
18089 combination of Hexadecimal. Only missing some drawing love when sharing
18090 space with other controls.
18092 2005-06-04 Peter Bartok <pbartok@novell.com>
18095 - We need to pass a window for DragDrop, so enable callback events
18096 - Added DnD callback events when being a DragSource
18097 * XplatUI.cs (StartDrag): Added window handle argument
18098 * XplatUIDriver.cs (StartDrag): Added window handle argument
18099 * QueryContinueDragEventArgs: Made fields internally accessible so
18100 drivers can set them
18101 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
18104 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
18106 * DataGridTextBoxColumn.cs: column text editing
18107 * DataGridTableStyle.cs: Respect columns styles created by the user
18108 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
18109 * DataGridBoolColumn.cs: bool column editing
18110 * DataGrid.cs: fixes to scrolling, properties, etc
18111 * DataGridTextBox.cs: handle keyboard
18112 * DataGridColumnStyle.cs: fixes
18114 2005-06-02 Jackson Harper <jackson@ximian.com>
18116 * ImageListStreamer.cs: Somewhat broken implementation of
18117 GetObjectData. The RLE needs some work to match MS properly.
18119 2005-06-02 Jackson Harper <jackson@ximian.com>
18121 * X11Dnd.cs: Attempting to keep at least one file in MWF
18124 2005-06-02 Peter Bartok <pbartok@novell.com>
18126 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
18129 2005-06-02 Peter Bartok <pbartok@novell.com>
18131 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
18132 * XplatUI.cs: Added DoDragDrop() method
18133 * XplatUIDriver.cs: Added DoDragDrop() method
18135 2005-06-02 Jackson Harper <jackson@ximian.com>
18137 * Splitter.cs: Implement BorderStyle.
18139 2005-06-02 Jackson Harper <jackson@ximian.com>
18141 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
18142 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
18145 2005-06-02 Peter Bartok <pbartok@novell.com>
18148 - Added Data setter
18149 - Fixed broken insertion code for SetData, now also
18150 overwrites any existing entry of the same format name
18151 * Hwnd.cs: Added list of pointers that automatically gets
18152 freed when the window is disposed
18153 * XplatUI.cs: Call driver initialization method when loading
18156 - OnDragLeave takes EventArgs, not DragEventArgs
18157 - Added setting of WS_EX_ACCEPTFILES style when dropping is
18159 - Forces style update when drop state changes
18160 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
18161 not perfect since we cannot (yet) call the IDataObject.GetData()
18162 method, we keep getting 0x80004005 error, dunno why)
18164 2005-06-02 Peter Bartok <pbartok@novell.com>
18166 * DragEventArgs.cs: Make fields internal so we can cache the
18167 object and re-set the fields from XplatUI
18169 2005-06-02 Jackson Harper <jackson@ximian.com>
18171 * Control.cs: Add some internal methods so the DnD subsystem can
18172 raise DnD events. Also call into the driver when AllowDrop is set.
18174 * XplatUIDriver.cs: New method for setting whether or not a window
18175 is allowed to accept drag and drop messages.
18177 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
18179 * ScrollBar.cs: Make sure that values sent in Scroll events
18180 are always between Maximum and Minimum.
18182 2005-06-01 Marek Safar <marek.safar@seznam.cz>
18184 * Menu.cs: Call MenuChanged when menuitem visibility has been
18186 * MenuItem.cs: Rebuild menu when item is (not) visible.
18187 * MainMenu.cs: MainMenu has special MenuChanged.
18188 * Theme.cs: Caption and FrameBorderSize are not fixed.
18189 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
18190 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
18192 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
18193 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
18195 2005-05-30 Jackson Harper <jackson@ximian.com>
18197 * DataFormat.cs: We can't statically initialize this stuff because
18198 it calls into the xplatui and could create a loop. So we lazy init
18201 2005-05-28 Jackson Harper <jackson@ximian.com>
18203 * Control.cs: Proper implementation of Product(Name/Version).
18205 2005-05-27 Jackson Harper <jackson@ximian.com>
18207 * DataObject.cs: Dont crash if no data is found.
18209 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
18210 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
18211 as per status page, guessing it should be set to true
18213 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
18215 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
18216 * DataGridTableStyle.cs: set proper formatting text, def header text
18217 * ThemeWin32Classic.cs: new themable paramaters
18218 * DataGridBoolColumn.cs: paint check box, get data, fixes
18219 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
18220 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
18221 * DataGridColumnStyle.cs: fixes
18222 * Theme.cs: new themable paramaters
18224 2005-05-26 Peter Bartok <pbartok@novell.com>
18226 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
18228 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18229 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
18231 2005-05-24 Peter Bartok <pbartok@novell.com>
18233 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
18234 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
18235 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
18236 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
18237 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
18238 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
18239 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
18240 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
18241 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
18242 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
18243 missing attributes, etc
18244 * DataGridPreferredColumnWidthTypeConverter.cs: Added
18246 2005-05-24 Peter Bartok <pbartok@novell.com>
18248 * Help.cs: Added, implemented trivial functions, throws up MessageBox
18249 when user tries to get help
18250 * DataObject.cs, DataFormats.cs, LinkArea.cs,
18251 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
18252 to suppress warnings
18253 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
18254 avoid unreachable code warning
18256 2005-05-20 Peter Bartok <pbartok@novell.com>
18258 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
18260 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
18262 * DataGridTextBoxColumn.cs: Basic painting methods
18263 * DataGridTableStyle.cs: Set table style in the column
18264 * ThemeWin32Classic.cs: Use Theme for colors
18265 * DataGridDrawingLogic.cs: Implement more drawing
18266 * DataGrid.cs: drawing, theming, enhacements, fixes
18267 * DataGridColumnStyle.cs: fixes, drawing
18268 * Theme.cs: theming for Datagrid
18270 2005-05-20 Peter Bartok <pbartok@novell.com>
18272 * Cursor.cs: Implemented GetObjectData() method
18274 2005-05-20 Peter Bartok <pbartok@novell.com>
18276 * Cursors.cs: Added setting of cursor name
18278 - Implemented constructors
18279 - Implemented Draw and DrawStretched
18280 - Implemented Current property
18281 - Implemented == and != operators
18282 - Implemented Dispose()
18283 - Implemented ToString
18284 - Added missing attributes
18286 - Added missing reset for OverrideCursor when DoEvents is called
18287 - Fixed creation of cursor, logic was wrong
18289 - Added missing reset for OverrideCursor when DoEvents is called
18290 - Fixed creation of cursor, bit arrays were swapped
18291 * Clipboard.cs: Removed obsolete MonoTODO attribute
18293 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
18295 * ComboBox.cs: fixes OnSelectedItemChanged
18296 * ControlBindingsCollection.cs: fixes item range check
18298 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
18301 - Calc preferred height properly
18302 - Implement missing properties
18304 * NumericUpDown.cs: Implement missing events
18306 2005-05-19 Jackson Harper <jackson@ximian.com>
18308 * TabControl.cs: New method that resizes the tab pages before
18309 redrawing them. This as needed as the control is double buffered
18310 and sizing will not be recalculated unless ResizeTabPages is
18312 * TabPage.cs: Set base.Text instead of Text in the constructor so
18313 that UpdateOwner does not get called. Use the new Redraw method of
18314 TabControl instead of Refresh so the sizing is recalculated.
18315 * ThemeWin32Classic.cs: Draw the text for button tabs.
18317 2005-05-19 Jackson Harper <jackson@ximian.com>
18319 * Control.cs: Paint control background images. Fix typo where
18320 PaintControlBackground was not getting called correctly.
18322 2005-05-19 Peter Bartok <pbartok@novell.com>
18324 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
18325 I can investigate, apparently I broke FileDialog
18327 2005-05-19 Marek Safar <marek.safar@seznam.cz>
18329 * AxHost.cs: Some simple properties.
18330 * Control.cs: window must be accessible after ctor.
18331 * Form.cs: Added TransparencyKey property.
18332 * TextBoxBase.cs: Implemented Clear. Text property can be null.
18333 * XplatUIWin32.cs: SetBorderStyle implemented.
18335 2005-05-18 Peter Bartok <pbartok@novell.com>
18337 * DataObject.cs: Entries are not global but particular to the
18338 DataObject, now it behaves that way
18339 * XplatUIWin32.cs: Implemented Clipboard methods
18340 * Clipboard.cs: Implemented
18341 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
18342 * XplatUIOSX.cs: Updated to final clipboard prototypes
18343 * XplatUIX11.cs: Implemented Clipboard methods
18344 * XplatUIDriver.cs: Updated to final clipboard prototypes
18345 * XplatUIStructs.cs:
18346 - Added BITMAPINFOHEADER struct
18347 - Added ClipboardFormats enum
18349 - Added ClipboardStruct
18350 - Added Atom enum items for clipboard types
18351 - Fixed atom types for Selection event structures
18353 - Added internal properties and methods for drivers to enumerate
18355 - Switched initialization method to allow drivers to assign their
18356 own IDs even for the MS predefined clipboard IDs
18357 * XplatUI.cs: Updated to final clipboard interface
18359 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18360 * PropertyGridView.cs: Fixed compiler warnings.
18362 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18363 * PropertyGrid.cs: Added some event calls
18364 * PropertyGridView.cs: Change drawing code to use double buffering
18365 * PropertyGridTextBox.cs: Changed Text property name
18366 * GridItem.cs: Added Bounds property.
18367 * GridEntry.cs: Added Bounds property.
18369 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
18371 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
18372 since GetType() may not return the correct type if the object is
18375 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
18377 * TreeNodeCollection.cs: fixes get/set item ranges
18379 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
18381 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
18383 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
18385 * ComboBox.cs: Fix item range comparation
18386 * ListView.cs: Fix item range comparation
18388 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
18391 - Clear example panel when OnPaint is called
18392 - Better solution for displaying the example panel text
18393 - Select default indexes in the ListBoxes
18395 2005-05-11 Geoff Norton <gnorton@customerdna.com>
18397 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
18399 2005-05-11 Peter Bartok <pbartok@novell.com>
18401 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
18402 * SelectionRangeConverter.cs: Implemented
18403 * PropertyGrid.cs: Fixed attribute value
18405 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
18406 - Added Sebastien Pouliot's CAS Stack Propagation fixes
18407 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
18408 that's common to all drivers. First methods to go there are
18409 Sebastien Pouliot's CAS Stack Propagation helper methods
18410 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
18411 Sebastien Pouliot for CAS Stack Propagation
18413 2005-05-11 Geoff Norton <gnorton@customerdna.com>
18416 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
18418 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
18420 * DataGridTextBoxColumn.cs: fixed some members
18421 * GridColumnStylesCollection.cs: indexed column is case insensitive
18422 * DataGridTableStyle.cs: fixes
18423 * ThemeWin32Classic.cs: add new theme parameter
18424 * Theme.cs: add new theme parameter
18425 * DataGridDrawingLogic.cs: Datagrid's drawing logic
18426 * DataGrid.cs: fixes, new internal properties, etc.
18427 * DataGridColumnStyle.cs: allows to set grid value
18430 2005-05-10 Peter Bartok <pbartok@novell.com>
18432 * AccessibleObject.cs:
18433 - Removed MonoTODO attribute on help, method is correct
18434 - Fixed Bounds property
18435 * AxHost.cs: Moved MonoTODO
18436 * ButtonBase.cs: Now setting AccessibleObject properties
18437 * RadioButton.cs: Setting proper AccessibleObject role
18438 * CheckBox.cs: Setting proper AccessibleObject role
18439 * ControlBindingsCollection.cs: Added properties, methods and attributes
18440 * DataFormats.cs: Fixed awkward internal API, and changed to enable
18441 userdefined DataFormats.Format items as well
18442 * ListControl.cs: Removed data_member from the public eye
18443 * OpenFileDialog.cs:
18444 - Made class sealed
18445 - Added missing attributes
18446 * SaveFileDialog.cs: Added missing attributes
18447 * ImageListStreamer.cs: Fixed code that caused warnings
18448 * LinkLabel.cs: Removed unreachable code
18449 * TreeView.cs: Fixed code that caused warnings
18450 * PropertyGridView.cs: Fixed code that caused warnings
18451 * GridColumnStylesCollection.cs: Added missing attributes
18452 * GridTableStylesCollection: Added missing attribute
18453 * PropertyManager: Added .ctor
18454 * SecurityIDType: Added
18455 * DataObject.cs: Implemented class
18456 * LinkArea.cs: Added missing attribute
18458 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
18460 * RadioButton.cs: call base method to allow to fire OnClick event
18461 * UpDownBase.cs: OnMouseUp call base method
18462 * CheckedListBox.cs: call base method before returning
18463 * TrackBar.cs: call base method before returning
18466 2005-05-10 Peter Bartok <pbartok@novell.com>
18468 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
18471 2005-05-10 Peter Bartok <pbartok@novell.com>
18473 * DataFormats.cs: Implemented
18474 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
18475 XplatUIX11.cs: Added Clipboard APIs
18476 * XplatUIWin32.cs: Implemented Clipboard APIs
18477 * FolderBrowserDialog.cs: Added missing event, attributes
18479 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
18481 * CheckBox.cs: call base method to allow to fire OnClick event
18483 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
18485 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
18487 2005-05-06 Peter Bartok <pbartok@novell.com>
18489 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
18490 * Screen.cs: Implemented
18491 * HelpNavigator.cs: Added
18492 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
18494 * HelpProvider.cs: Implemented all we can do until we have a CHM
18495 help library (which means that "What's This" does work now)
18497 2005-05-06 Jackson Harper <jackson@ximian.com>
18499 * XplatUIX11.cs: Fix waking up the main loop.
18501 2005-05-05 Peter Bartok <pbartok@novell.com>
18503 * XplatUI.cs: Updated revision
18504 * Form.cs: Removed enless loop
18505 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
18506 * Label.cs (OnPaint): Added call to base.OnPaint()
18507 * ToolTip.cs: Made ToolTipWindow reusable for other controls
18508 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
18509 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
18511 * ButtonBase.cs: Moved base.OnPaint() call to end of method
18512 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
18513 to ToolTip.ToolTipWindow for drawing and size methods; this allows
18514 reuse of ToolTipWindow by other controls
18515 * SizeGrip.cs: Moved base.OnPaint() call to end of method
18516 * XplatUIX11.cs: Now clipping drawing area (experimental)
18517 * PictureBox.cs: Moved base.OnPaint() call to end of method
18518 * Theme.cs: Fixed ToolTip abstracts to match new format
18519 * ErrorProvider.cs: Implemented
18521 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
18523 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
18527 - Implements LinkBehavior
18528 - Fixes many issues
18530 2005-05-03 Jackson Harper <jackson@ximian.com>
18532 * ListView.cs: Calculate the scrollbar positioning on resize and
18533 paint, so they get put in the correct place.
18535 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
18537 * ColorDialogs.cs: The small color panels are now handled by
18538 SmallColorControl. This fixes drawing of the focus rectangle
18539 and adds a 3D border.
18541 2005-05-03 Peter Bartok <pbartok@novell.com>
18543 * Control.cs: Modified version of Jonathan Chamber's fix for
18546 2005-05-03 Jackson Harper <jackson@ximian.com>
18548 * ListView.cs: Remove redraw variable. Control now handles whether
18549 or not a redraw needs to be done, and will only raise the paint
18550 event if redrawing is needed.
18552 2005-05-03 Jackson Harper <jackson@ximian.com>
18554 * Splitter.cs: No decorations for the splitter form. Cache the
18557 2005-05-03 Jackson Harper <jackson@ximian.com>
18559 * TreeView.cs: Use dashed lines to connect nodes. Use the
18560 ControlPaint method for drawing the focus rect instead of doing
18563 2005-05-02 Peter Bartok <pbartok@novell.com>
18565 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
18567 2005-04-29 Jackson Harper <jackson@ximian.com>
18569 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
18570 entire image buffer. Just clear the clipping rectangle.
18572 2005-04-29 Jackson Harper <jackson@ximian.com>
18574 * ThemeWin32Classic.cs: Don't draw list view items that are
18575 outside the clipping rectangle.
18577 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
18579 * ListBox.cs: added horizontal item scroll
18581 2005-04-29 Jackson Harper <jackson@ximian.com>
18583 * ThemeWin32Classic.cs: Remove some old debug code that was
18584 causing flicker with the new double buffering code.
18586 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
18588 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
18589 behave like combobox and comboboxlist (still not sure if this is
18592 2005-04-28 Jackson Harper <jackson@ximian.com>
18594 * ThemeWin32Classic.cs: Don't fill the middle of progress
18595 bars. This fills areas outside of the clip bounds that don't need
18598 2005-04-28 Jackson Harper <jackson@ximian.com>
18600 * Control.cs: Don't expose functionality to touch the image buffers.
18602 * ListView.cs: We do not need to (and no longer can) manipulate
18603 the image buffers directly. All of this is handled by Control.
18605 2005-04-28 Peter Bartok <pbartok@novell.com>
18607 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
18608 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
18609 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
18611 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
18614 - Adjust control's height for non-simple comboboxes (bug fix)
18616 * MenuAPI.cs: remove unused var
18617 * ScrollBar.cs: remove unsed var
18619 * ListBox.cs: unselect items when clearing
18621 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
18623 * ListControl.cs: honors OnPositionChanged and default Selected Item
18624 * ListBox.cs: unselect items when clearing
18626 2005-04-27 Jackson Harper <jackson@ximian.com>
18628 * X11Keyboard.cs: Initialize a default keyboard and give a warning
18629 if a "correct" keyboard is not found. This will make us not crash,
18630 but might give some users bad keyboard layouts...seems to be the
18631 same thing rewind does.
18633 2005-04-27 Jackson Harper <jackson@ximian.com>
18635 * BindingManagerBase.cs: Attach the current/position changed
18636 handlers to their respective events.
18638 2005-04-27 Jackson Harper <jackson@ximian.com>
18640 * Control.cs: Make sure that the first WM_PAINT does a full draw,
18642 * ThemeWin32Classic.cs: Don't fill the background for picture
18643 boxes. This could overright user drawing.
18644 * ComboBox.cs: Just fill the clipping rect not the entire client
18645 rect when drawing the background. This prevents pieces of the
18646 image buffer from getting overwritten and is theoretically faster.
18648 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
18650 * ComboBox.cs: Databinding support fixes, fire missing events
18651 * ListControl.cs: implement missing methods and properties, fixes
18652 * ThemeWin32Classic.cs: Databiding support on Drawing
18653 * CheckedListBox.cs: Databinding support fixes, fire missing events
18654 * ListBox.cs: Databinding support fixes, fire missing events
18656 2005-04-25 Peter Bartok <pbartok@novell.com>
18658 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
18660 2005-04-25 Jackson Harper <jackson@ximian.com>
18662 * TreeView.cs: Use the horizontal scrollbars height not width when
18663 determining how much of the client area is available.
18665 2005-04-25 Jackson Harper <jackson@ximian.com>
18667 * Control.cs: Double buffering is handled differently now. As per
18668 the spec, the extra buffer is created in the WM_PAINT message and
18669 passed down to the control's drawing code.
18677 * PropertyGridView.cs:
18689 * DateTimePicker.cs:
18691 * TreeView.cs: Update to new double buffering system.
18692 * MonthCalendar.cs: Uncomment block, as Capture is now
18693 working. Update to new double buffering
18694 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
18695 * PaintEventArgs.cs: New internal method allows us to set the
18696 graphics object. This is used for double buffering.
18697 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
18698 rectangle. The internal paint_area var has been removed from
18699 StatusBar. The clipping rect should be used instead.
18700 * Theme.cs: Give the PictureBox drawing method a clipping rect.
18701 * TabPage.cs: The RefreshTabs method was removed, so just call the
18702 tab controls Refresh method now.
18703 * TabControl.cs: Update to new double buffering. Make sure the
18704 handle is created before sizing the tab pages, otherwise we will
18705 get stuck in a loop.
18707 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
18709 * LinkLabel.cs: Fix typo, bug #74719; patch
18710 from Borja Sanchez Zamorano
18712 2005-04-22 Jackson Harper <jackson@ximian.com>
18714 * TreeNode.cs: Implement Handle stuff.
18715 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
18717 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
18719 * DataGridTextBoxColumn.cs: call base constructors, fixes
18720 * GridColumnStylesCollection.cs: missing events, methods, and functionality
18721 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
18722 * DataGridTableStyle.cs: implements create default column styles
18723 * DataGridBoolColumn.cs: which types can handle
18724 * DataGrid.cs: missing methods, fixes, new functionality
18725 * DataGridColumnStyle.cs: fixes
18727 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
18728 * FolderBrowserDialog.cs:
18729 - Use a thread to fill the TreeView
18730 - Adjusted some sizes
18732 2005-04-19 Peter Bartok <pbartok@novell.com>
18734 * LinkLabel.cs: (Re-)create the pieces when setting the Text
18735 property. Fixes #74360.
18737 2005-04-19 Jackson Harper <jackson@ximian.com>
18739 * XEventQueue.cs: Lock when getting the lockqueue size.
18740 * PictureBox.cs: Call base OnPaint
18742 2005-04-19 Peter Bartok <pbartok@novell.com>
18744 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
18745 messages were no longer being processed (this broke BeginInvoke)
18748 2005-04-18 Jackson Harper <jackson@ximian.com>
18750 * TreeView.cs: buglet that caused node images to get drawn
18751 regardless of whether or not they were in the clipping rectangle.
18753 2005-04-18 Jackson Harper <jackson@ximian.com>
18755 * CurrencyManager.cs: There are four rules for GetItemProperties:
18756 - If the type is an array use the element type of the array
18757 - If the type is a typed list, use the type
18758 - If the list contains an Item property that is not an object, use
18760 - use the first element of the list if there are any elements in
18763 2005-04-17 Jackson Harper <jackson@ximian.oom>
18765 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
18766 click. This handles offsets for scrolling properly and reduces
18767 memory. Also fixed GetNode to not offset now that TopNode works
18769 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
18771 2005-04-17 Jackson Harper <jackson@ximian.com>
18773 * CursorConverter.cs: Initial implementation.
18775 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
18777 * ListControl.cs: work towards complex data binding support on ListControl
18778 * CurrencyManager.cs: work towards complex data binding support on ListControl
18779 * ListBox.cs: work towards complex data binding support on ListControl
18782 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
18784 * GridTableStylesCollection.cs: fixes name and constructor
18785 * DataGridTableStyle.cs: fixes
18786 * DataGridBoolColumn.cs: fixes names and constructors
18787 * DataGrid.cs: define methods and properties. Some init implementations
18788 * DataGridCell.cs: define methods and properties. Some init implementations
18789 * GridTablesFactory.cs: Define methods and properties
18791 2005-04-15 Geoff Norton <gnorton@customerdna.com>
18793 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
18794 graphics port changes. We still want the coordinates in global screen
18797 2005-04-14 Jackson Harper <jackson@ximian.com>
18799 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
18800 check plus minus or checkbox clicks unless those features are enabled.
18802 2005-04-14 Jackson Harper <jackson@ximian.com>
18804 * TreeView.cs: Add methods for setting the top and bottom visible
18805 nodes. TreeNode::EnsureVisible uses these methods.
18806 * TreeNode.cs: Implement EnsureVisible
18808 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
18810 * Form.cs: Pospone menu assignation if the window has not been created yet
18811 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
18814 2005-04-12 Jackson Harper <jackson@ximian.com>
18816 * TreeView.cs: Set the TopNode properly when scrolling
18817 occurs. This has the added benifit of reducing the amount of
18818 walking that needs to be done when drawing. Also removed an old
18820 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
18822 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
18824 * Timer.cs: fixes interval setting when the timer is already enabled
18826 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
18828 * FolderBrowserDialog.cs: First approach
18830 2005-04-09 Peter Bartok <pbartok@novell.com>
18832 * FolderBrowserDialog: Added
18834 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
18836 * LinkLabel.cs: move drawing code into the theme
18837 * ThemeWin32Classic.cs: drawing code and painting background bugfix
18838 * Theme.cs: define DrawLinkLabel method
18840 2005-04-05 Jackson Harper <jackson@ximian.com>
18842 * BindingContext.cs: Use weak references so these bad actors don't
18843 stay alive longer then they need to.
18845 2005-04-05 Jackson Harper <jackson@ximian.com>
18847 * ListControl.cs: Basic implementation of complex databinding.
18849 * ListBox.cs: Add calls to ListControl databinding methods.
18851 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
18854 - Don't change PopupButtonState to Normal when the
18855 PopupButton gets pressed several times.
18856 - Renamed ButtonPanel to PopupButtonPanel
18858 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
18860 * ColorDialog.cs: Use cached objects instead of creating them
18861 * LinkLabel.cs: Use cached objects instead of creating them
18862 * Splitter.cs: Use cached objects instead of creating them
18863 * FontDialog.cs: Use cached objects instead of creating them
18864 * PropertyGridView.cs: Use cached objects instead of creating them
18865 * MessageBox.cs: Use cached objects instead of creating them
18866 * FileDialog.cs: Use cached objects instead of creating them
18867 * ThemeWin32Classic.cs: Use cached objects instead of creating them
18868 * TreeView.cs: Use cached objects instead of creating them
18870 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
18872 * Control.cs: use Equals to compare the font since no == op
18873 * ScrollBar.cs: use Equals to compare the font since no == op
18875 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
18877 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
18879 2005-04-01 Jackson Harper <jackson@ximian.com>
18881 * Binding.cs: Implement IsBinding.
18882 * BindingManagerBase.cs:
18883 * PropertyManager.cs:
18884 * CurrencyManager.cs: Add IsSuspended property.
18886 2005-04-01 Jackson Harper <jackson@ximian.com>
18888 * Binding.cs: Had some IsAssignableFrom calls backwards.
18890 2005-04-01 Jackson Harper <jackson@ximian.com>
18892 * Binding.cs: Handle null data members when pulling data.
18893 * PropertyManager.cs: Handle the data member being a property that
18896 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
18898 * DataGridTextBoxColumn.cs: fixes signature
18899 * DataGrid.cs: calls right constructor
18901 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
18903 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
18904 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
18905 * GridTableStylesCollection.cs: implements GridTableStylesCollection
18906 * DataGridTableStyle.cs: implements DataGridTableStyle
18907 * DataGridBoolColumn.cs: implements DataGridBoolColumn
18908 * DataGridTextBox.cs: implements DataGridTextBox
18909 * DataGridColumnStyle.cs: implements DataGridColumnStyle
18911 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
18913 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
18915 2005-03-29 Peter Bartok <pbartok@novell.com>
18918 - Properly implemented CompanyName property
18919 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
18920 returns a path that includes CompanyName, ProductName and
18921 Version (fixes bug #70330)
18923 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
18925 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
18928 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
18930 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
18932 - Added ReadOnly CheckBox
18933 - Further refactoring: moved some code from Open-/SaveFileDialog
18936 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
18938 * OpenFileDialog.cs: Fixed CheckFileExists
18940 Moved FileView and DirComboBox outside FileDialog class.
18941 They can now be used outside FileDialog
18943 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
18945 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
18946 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
18948 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
18950 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
18951 - Added missing CreatePrompt property in SaveDialog
18952 - Overall SaveDialog handling should be better now
18953 - Added non standard ShowHiddenFiles property
18954 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
18955 - Added InitialDirectory and RestoreDirectory support
18957 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
18959 * FileDialog.cs: Made dirComboBox usable
18961 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
18963 * FileDialog.cs: Added Filter support (case sensitiv)
18965 2005-03-24 Jackson Harper <jackson@ximian.com>
18967 * TabControl.cs: Need a couple more pixels for the lines.
18969 2005-03-23 Jackson Harper <jackson@ximian.com>
18971 * TabControl.cs: Give the tab page focus when it is selected.
18973 2005-03-23 Jackson Harper <jackson@ximian.com>
18975 * TabControl.cs: Account for the drawing of tabs borders when
18976 invalidating. If the slider was clicked dont do click detection on
18979 2005-03-23 Jackson Harper <jackson@ximian.com>
18981 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
18983 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
18985 * CategoryGridEntry.cs: Added
18986 * GridItem.cs: Added helper properties
18987 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
18988 * GridEntry.cs: Updated code for collection
18989 * PropertyGrid.cs: Cleaned up some formatting
18990 * PropertyGridView.cs: Added drop down functionality for enums.
18991 * GridItemCollection.cs: Added enumerator logic
18992 * PropertyGridEntry.cs: Added
18994 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
18997 - Removed unnecessary commented code
18998 - Fixed handling for entering the filename manually in the combobox
19000 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
19002 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
19004 2005-03-18 Peter Bartok <pbartok@novell.com>
19006 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
19007 them being touching the border
19009 2005-03-18 Peter Bartok <pbartok@novell.com>
19011 * TextControl.cs: Quick hack to center text better
19013 2005-03-18 Peter Bartok <pbartok@novell.com>
19016 - Don't throw NotImplemented exceptions, just print a notice once
19017 instead (requested by Miguel). This makes running existing SWF
19020 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
19021 - Added context menu trigger on right click
19022 * Panel.cs: Trigger invalidate on resize
19024 - Removed old double-buffer drawing
19025 - Added ResizeRedraw style to force proper update of statusbar
19027 - Removed debug output
19028 * ThemeWin32Classic.cs:
19029 - Fixed drawing of status bar, now draws Text property if there
19030 are no defined panels
19032 2005-03-18 Jackson Harper <jackson@ximian.com>
19034 * ImageList.cs: When the image stream is set pull all the images
19036 * ImageListStreamer.cs: Implement reading image list streams.
19038 2005-03-18 Peter Bartok <pbartok@novell.com>
19040 * ThemeWin32Classic.cs (DrawPictureBox):
19041 - Fixed calculations for centered drawing
19042 - Fixed drawing for normal mode, not scaling the image on normal
19044 2005-03-18 Peter Bartok <pbartok@novell.com>
19046 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
19049 - Made Open/Save button the accept button for FileDialog
19050 - Tied the cancel button to the IButtonControl cancel button
19051 - Save/Open now properly builds the pathname
19052 - Now handles user-entered text
19053 - Preventing crash on right-click if no item is selected
19054 - Fixed Text property, now uses contents of textbox
19055 - Fixed SelectedText property, now just returns the text part that
19056 is selected in the text box
19058 2005-03-18 Jackson Harper <jackson@ximian.com>
19060 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
19061 rect, make sure to de-adjust the interior rect after drawing the
19064 2005-03-18 Peter Bartok <pbartok@novell.com>
19066 * MenuAPI.cs: Remove menu *before* executing selected action to
19067 prevent the menu from 'hanging around'
19069 2005-03-17 Geoff Norton <gnorton@customerdna.com>
19071 * XplatUIOSX.cs: Implemented WorkingArea property
19073 2005-03-17 Peter Bartok <pbartok@novell.com>
19075 * XplatUIX11.cs: Fixed menu coord calculations
19076 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
19077 for calculating offsets
19079 2005-03-17 Peter Bartok <pbartok@novell.com>
19081 * Hwnd.cs: Do not consider menu presence for default client
19082 rectangle location/size
19083 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
19084 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
19085 translation functions
19086 * FileDialog.cs: Fixed (what I presume is a) typo
19088 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
19090 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
19091 X access (avoids X-Async errors)
19093 2005-03-16 Jackson Harper <jackson@ximian.com>
19095 * TabControl.cs: Raise the SelectedIndexChanged event.
19097 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
19099 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
19100 - Removed vertical ToolBar and replaced it with a custom panel
19101 (desktop and home button already work)
19102 - Added Help button (some controls get resized or relocated then)
19103 - Draw correct text depending on Open or Save.
19104 - Fixed some typos...
19106 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
19109 - Only change Maximum and Minimum when need it (bug fix)
19111 2005-03-15 Peter Bartok <pbartok@novell.com>
19113 * Form.cs: Use Handle for icon, to trigger creation if
19114 the window does not yet exist
19116 - CanSelect: Slight performance improvement
19117 - Focus(): Preventing possible recursion
19118 - Invalidate(): Removed ControlStyle based clear flag setting
19119 - WM_PAINT: fixed logic for calling OnPaintBackground
19120 - WM_ERASEBKGND: Fixed logic, added call to new driver method
19121 EraseWindowBackground if the control doesn't paint background
19123 - Moved EraseWindowBackground() method to internal methods
19124 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
19125 is sent via SendMessage on BeginPaint call on Win32
19127 - Added EraseWindowBackground() method
19128 - No longer sends WM_ERASEBKGND on .Expose, but on call to
19129 PaintEventStart, which more closely matches Win32 behaviour
19130 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
19131 - Fixed SetFocus() to properly deal with client and whole windows
19132 * Hwnd.cs: Added ErasePending property
19133 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
19134 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
19136 2005-03-12 Geoff Norton <gnorton@customerdna.com>
19139 - Fix hard loop when timers exist.
19140 - Fix bugs with middle and right click for 3 button mice.
19142 2005-03-11 Peter Bartok <pbartok@novell.com>
19145 - get_WorkingArea: Need to call X directly, GetWindowPos only
19146 returns cached data now
19147 - Added sanity check to GetWindowPos hwnd usage
19149 2005-03-11 Jackson Harper <jackson@ximian.com>
19151 * BindingManagerBase.cs: This method isn't used anymore as
19152 PullData now updates the data in the control.
19154 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
19156 * Form.cs: fixes menu drawing on X11
19157 * MenuAPI.cs: fixes menu drawing on X11
19159 2005-03-11 Peter Bartok <pbartok@novell.com>
19161 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
19162 from Jonathan Gilbert; should fix bug #73606
19163 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
19164 in Screen coordinates. Thanks, Jordi.
19165 * Form.cs: Added missing attribute
19167 2005-03-11 Peter Bartok <pbartok@novell.com>
19170 - Rudimentary Mdi support
19171 - Removed outdated FormParent code
19172 - Implemented lots of missing properties and methods, still missing
19173 transparency support
19174 - Added missing attributes
19175 - Implemented support for MaximumBounds
19176 - Added firing of various events
19177 * XplatUI.cs: Added SetIcon() method
19178 * XplatUIDriver.cs: Added SetIcon() abstract
19179 * XplatUIOSX.cs: Stubbed out SetIcon() method
19181 - Implemented SetIcon() support
19182 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
19183 - Switched to unix line endings
19185 - Made POINT internal so for can access it as part of MINMAX
19186 - Implemented SetIcon() support
19187 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
19188 native Mdi support again, might have to go managed)
19189 * Control.cs: Now fires the StyleChanged event
19190 * MdiClient.cs: Added; still mostly empty
19192 2005-03-10 Peter Bartok <pbartok@novell.com>
19194 * SaveFileDialog.cs: Added emtpy file
19196 2005-03-08 Peter Bartok <pbartok@novell.com>
19198 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
19199 in turn triggers OnCreateContro) when creating a handle for the
19201 * TextControl.cs: Fixed endless loop in certain cases when
19202 replacing the current selection
19204 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
19207 - Honors NewValue changes in Scroll events allowing apps to change it
19208 - Adds First and Last Scroll events
19209 - Fixes Thumb events
19211 2005-03-07 Peter Bartok <pbartok@novell.com>
19213 * Hwnd.cs: Added DefaultClientRectangle property
19214 * XplatUI.cs: Now using the X11 driver Where() method, which provides
19215 more detailed debug information
19217 - Fixed size-change feedback loop, where we would pull an old size
19218 off the queue and mistakenly change our window's size to an
19220 - Now compressing ConfigureNotify events, to reduce looping and
19222 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
19225 2005-03-07 Jackson Harper <jackson@ximian.com>
19227 * Binding.cs: Push data pushes from data -> property. Check if the
19228 property is readonly when attempting to set it.
19230 2005-03-07 Jackson Harper <jackson@ximian.com>
19232 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
19233 instead of IsSubclassOf. Pulling data now sets the value on the
19235 * PropertyManager.cs:
19236 * CurrencyManager.cs: Just need to pull data when updating now,
19237 because PullData will set the value on the control.
19239 2005-03-04 Jackson Harper <jackson@ximian.com>
19241 * Binding.cs: Implement data type parsing and converting on pulled
19242 data. TODO: Are there more ways the data can be converted?
19244 2005-03-04 Jackson Harper <jackson@ximian.com>
19246 * Binding.cs: Support <Property>IsNull checks. Also bind to the
19247 controls Validating method so we can repull the data when the
19248 control loses focus.
19250 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
19253 - Fixes null string format
19256 - Adds enum type checks
19257 - Fixes redrawing and recalc need after changing some properties
19258 - Fixes on focus_item set after the event
19259 - Fixes adding columns after the control has been created
19261 * ThemeWin32Classic.cs:
19262 - Fixes CheckBox focus rectangle
19263 - Fixes ColumnHeader drawing
19266 2005-03-03 Jackson Harper <jackson@ximian.com>
19268 * Binding.cs: Bind to <Property>Changed events so we can detect
19269 when properties are changed and update the data.
19271 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
19274 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
19275 - Fixes ImageList constructor with ImageList container
19276 - Fixes image scaling (wrong parameters at DrawImage)
19278 2005-02-02 Jackson Harper <jackson@ximian.com>
19280 * Binding.cs: Make property searches case-insensitive. Eliminate
19281 some duplicated code.
19283 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
19286 - Handle focus event
19287 - Fix scrollbar events
19288 - Discard highlighted item if remove it
19289 - Fixes SelectedItem with strings
19291 2005-03-01 Peter Bartok <pbartok@novell.com>
19294 - Fixed Visible property, now follows (once again) parent chain
19295 to return false if any control in the chain is visible=false
19296 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
19297 - Fixed several places where is_visible instead of Visible was used
19298 - Implemented FIXME related to focus selection when setting focused
19299 control to be invisible
19301 * XplatUIWin32.cs: Now using proper method to find out if window is
19302 visible. Thanks to Jordi for pointing it out
19304 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
19306 * ComboBox.cs: show/hide scrollbar instead of creating it
19308 2005-02-27 Jackson Harper <jackson@ximian.com>
19310 * CurrencyManager.cs: Add PositionChanged stuff.
19312 2005-02-27 Peter Bartok <pbartok@novell.com>
19314 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
19315 * XplatUIOSX.cs: Added GetMenuOrigin() stub
19316 * XplatUIWin32.cs: Implemented GetMenuOrigin()
19318 - Implemented GetMenuDC()
19319 - Implemented GetMenuOrigin()
19320 - Implemented ReleaseMenuDC()
19321 - Implemented generation of WM_NCPAINT message
19322 - Implemented generation and handling of WM_NCCALCSIZE message
19323 * Form.cs: Added debug helper message for Jordi's menu work
19325 - Modified ClientRect property; added setter, fixed getter to handle
19326 setting of ClientRect
19327 - Added MenuOrigin property
19329 2005-02-26 Peter Bartok <pbartok@novell.com>
19332 - Destroys the caret if a window that's being destroyed contains it
19333 - Ignores expose events coming from the X11 queue for windows that
19334 already are destroyed
19335 - Now uses the proper variable for handling DestroyNotify, before we
19336 marked the wrong window as destroyed
19337 - Improved/added some debug output
19339 2005-02-26 Peter Bartok <pbartok@novell.com>
19341 * X11Keyboard.cs: Fixes to work on 64bit systems
19343 2005-02-26 Peter Bartok <pbartok@novell.com>
19346 - Now calling OnHandleDestroyed from DestroyHandle()
19347 instead of Dispose()
19348 - Removed bogus call to controls.Remove() from DestroyHandle()
19350 2005-02-26 Peter Bartok <pbartok@novell.com>
19352 * Control.cs: Properly destroy child windows when our handle is
19355 2005-02-25 Peter Bartok <pbartok@novell.com>
19358 - Added 'DriverDebug' define to allow tracing XplatUI API calls
19359 - Alphabetized Static Methods and Subclasses
19362 - Added XException class to allow custom handling of X11 exceptions
19363 - Created custom X11 error handler, tied into XException class
19364 - Added support for MONO_XEXCEPTIONS env var to allow the user
19365 to either throw an exception on X errors or continue running
19366 after displaying the error
19367 - Added handling of DestroyNotify message
19368 - Added handler for CreateNotify message (still disabled)
19369 - Improved (tried to at least) Where method to provide file and lineno
19371 - Added XErrorHandler delegate
19372 - Added XRequest enumeration (to suppor translation of errors)
19374 2005-02-25 Jackson Harper <jackson@ximian.com>
19376 * PropertyManager.cs: Implement editing features
19377 * CurrencyManager.cs:
19378 * Binding.cs: First attempt at UpdateIsBinding
19379 * BindingManagerBase.cs: Call UpdateIsBinding before
19380 pushing/pulling data.
19382 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
19384 * MenuAPI.cs: Respect disabled items
19385 * ThemeWin32Classic.cs
19386 - Caches ImageAttributes creation for DrawImageDisabled
19387 - Fixes vertical menu line drawing
19388 - Draws disabled arrows in disable menu items
19390 2005-02-24 Peter Bartok <pbartok@novell.com>
19393 - Added UserData property to allow associating arbitrary objects
19395 - Fixed leak; now removing Hwnd references from static windows array
19397 - Fixed Graphics leak in PaintEventEnd
19398 - Removed usage of HandleData, switched over to Hwnd class
19399 * HandleData.cs: Removed, obsoleted by Hwnd.cs
19401 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
19403 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
19404 * ScrollBar.cs: Fixes bug
19405 * TrackBar.cs: removes death code, clipping, mimize refreshes,
19406 keyboard navigation enhancements
19408 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
19410 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
19411 * GroupBox.cs: Add control styles
19412 * Label.cs: Add control styles
19413 * UpDownBase.cs: Add control styles
19414 * ListBox.cs: Add control styles
19415 * XplatUIWin32.cs: Fixes wrong parameter order
19418 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
19420 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
19422 2005-02-23 Jackson Harper <jackson@ximian.com>
19424 * PropertyManager.cs: Implement property binding. This doesn't
19425 seem to work yet though as (I think) there are some bugs in
19426 System.ComponentModel.PropertyDescriptor.
19427 * BindingContext.cs: Use new PropertyManager constructor.
19429 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
19431 * ProgressBar.cs: use clip region in ProgressBar
19432 * ThemeWin32Classic.cs: use clip region in ProgressBar
19434 2004-02-22 Jackson Harper <jackson@ximian.com>
19436 * BindingsCollection.cs: Remove some debug code.
19438 2005-02-22 Jackson Harper <jackson@ximian.com>
19440 * BindingContext.cs:
19441 * ControlBindingsCollection.cs:
19442 * CurrencyManager.cs:
19444 * BindingManagerBase.cs: Initial implementation
19445 * BindingsCollection.cs: Add an internal contains method that the
19446 BindingManagerBase uses to ensure bindings aren't added twice to
19448 * PropertyManager.cs: Stubbed out.
19450 * ContainerControl.cs: Hook up databinding
19452 2005-02-22 Geoff Norton <gnorton@customerdna.com>
19455 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
19456 Fixed Invalidate/Update chain.
19457 Fixed tons of other minor bugs (this is almost a complete rewrite).
19459 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
19461 * ComboBox.cs: do subcontrol creation when the control is created
19463 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
19465 * Label.cs: fixes image drawing (image and imagelist)
19466 * ThemeWin32Classic.cs: cache brushes
19468 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
19470 * Form.cs: Move menu drawing code to Theme class
19471 * ComboBox.cs: Move ComboBox drawing code to Theme class
19472 * MenuItem.cs: Move menu drawing code to Theme class
19473 * MenuAPI.cs: Move menu drawing code to Theme class
19474 * ThemeWin32Classic.cs: New methods
19475 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
19476 * ListBox.cs: Move Listbox drawing code to Theme class
19477 * Theme.cs: New methods
19479 2005-02-20 Peter Bartok <pbartok@novell.com>
19482 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
19483 only process mnemonics on those)
19484 - Fixed event sequence for key handling; first calling
19485 ProcessKeyEventArgs now
19487 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
19488 for processing non-character keys
19489 - Fixed WM_CHAR to generate proper event sequence before processing
19490 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
19493 2005-02-19 Peter Bartok <pbartok@novell.com>
19495 * UserControl.cs: Added TextChanged event; added attributes
19496 * SizeGrip.cs: Implemented resizing and optional display of grip
19497 * Form.cs: Fixed attribute
19498 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
19499 Changed meaning of ScrollWindow bool argument; instead of the
19500 clear attribute (which will be true usually anyway), it gives the
19501 option of moving child controls as well.
19503 - Changed to match new ScrollWindow argument
19504 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
19505 now handles the implicit parent window a WM puts around us
19506 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
19508 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
19509 * TreeView.cs: Adjusted to new ScrollWindow arguments
19511 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
19513 * Form.cs: Menu integration with non-client area
19514 * MenuItem.cs: Menu integration with non-client area
19515 * MenuAPI.cs: Menu integration with non-client area
19517 2005-02-18 Peter Bartok <pbartok@novell.com>
19519 * MethodInvoker.cs: Added
19520 * MdiLayout.cs: Added
19521 * SendKeys.cs: Started implementation
19522 * ErrorIconAlignment.cs: Added
19524 2005-02-18 Peter Bartok <pbartok@novell.com>
19526 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
19527 * Form.cs: Added handling for Menu-related Non-client messages
19529 2005-02-17 Peter Bartok <pbartok@novell.com>
19531 * UpDownBase.cs: Fixed typo, compilation errors
19532 * DomainUpDown.cs: Fixed attribute value
19534 2005-02-16 Miguel de Icaza <miguel@novell.com>
19536 * UpDownBase.cs: Attach entry events.
19538 Add ForeColor property, Focused, InterceptArrowKeys (interception
19539 does not work yet).
19541 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
19544 - Redraw non client are on Setmenu
19545 - Calc proper menu starting point
19547 2005-02-17 Peter Bartok <pbartok@novell.com>
19549 * Application.cs: Fixed message_filter check
19551 2005-02-17 Peter Bartok <pbartok@novell.com>
19553 * Application.cs: Now calls registered message filters
19554 * DockStyle.cs: Fixed attribute
19555 * Form.cs: Fixed attribute
19556 * Menu.cs: Fixed attribute
19557 * ToolTip.cs: Fixed attribute
19558 * TreeNode.cs: Added missing attributes and arranged in regions
19559 * PropertyGrid.cs: Fixed signatures
19560 * TreeNodeCollection.cs: Added attributes
19561 * Splitter.cs: Added missing attributes; arranged into regions
19562 * TabPage.cs: Added missing attributes; arranged into regions
19563 * TextBoxBase.cs: Added missing attributes
19564 * TextBox.cs: Added missing attributes
19565 * ArrangeDirection.cs: Added missing attributes
19566 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
19567 * ToolBarButton.cs: Fixed attributes
19568 * AnchorStyles.cs: Fixed attribute
19569 * TrackBar.cs: Fixed attributes
19570 * TabControl.cs: Added missing attributes and arranged into regions
19571 * ToolBar.cs: Fixed attribute
19572 * StatusBar.cs: Fixed signature, organized into regions and added
19574 * StatusBarPanel.cs: Fixed attributes
19575 * ContentsResizedEventArgs.cs: Implemented
19576 * ContentsResizedEventHandler.cs: Implemented
19577 * DateBoldEventArgs.cs: Implemented
19578 * DateBoldEventHandler.cs: Implemented
19579 * UpDownEventArgs.cs: Implemented
19580 * UpDownEventHandler.cs: Implemented
19582 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
19584 * Form.cs: first Menu NC refactoring
19585 * MenuAPI.cs: first Menu NC refactoring
19587 2005-02-16 Peter Bartok <pbartok@novell.com>
19589 * ImeMode.cs: Added missing attributes
19590 * Menu.cs: Fixed attribute
19591 * GroupBox.cs: Fixed attribute
19592 * Label.cs: Fixed attribute
19593 * ColorDialog.cs (RunDialog): Removed TODO attribute
19594 * ComboBox.cs: Fixed attributes
19595 * ListControl.cs: Added missing attributes
19596 * PropertyGrid.cs: Fixed attributes
19597 * Control.cs: Fixed attributes
19598 * ListViewItem.cs: Added TypeConverter attribute
19599 * NotifyIcon.cs: Fixed attributes
19600 * ListView.cs: Fixed attributes
19601 * ButtonBase.cs: Fixed attribute
19602 * ImageList.cs: Added missing attributes
19603 * ContainerControl.cs: Fixed signature
19604 * CheckedListBox.cs: Fixed attribute; added missing attributes
19605 * Panel.cs: Fixed attributes
19606 * PropertyTabChangedEventArgs.cs: Added missing attribute
19607 * PropertyValueChangedEventArgs.cs: Added missing attribute
19608 * Binding.cs: Fixed attribute
19609 * ListViewItemConverter: Implemented ListViewSubItemConverter class
19610 * ListBox.cs: Fixed attribute; added missing attributes;
19611 * ScrollableControl.cs: Added missing attributes
19612 * PictureBox.cs: Added missing attributes; implemented missing property
19613 * DateTimePicker.cs: Added missing attributes
19614 * Theme.cs (ToolWindowCaptionHeight): Fixed type
19615 * MonthCalendar.cs: Fixed attributes
19616 * StatusBarPanel.cs: Added missing attributes
19617 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
19619 2005-02-16 Peter Bartok <pbartok@novell.com>
19621 * TextBoxBase.cs: The previous method to enforce height yet remember
19622 the requested high was less than ideal, this is an attempt to do
19624 * Control.cs: Added comment about possible problem
19625 * Copyright: Updated format
19626 * GridItemType.cs: Fixed swapped values
19628 2005-02-15 Jackson Harper <jackson@ximian.com>
19630 * BaseCollection.cs: Use property so we never access an
19631 uninitialized list. Also initialize the list in the property.
19633 2005-02-15 Peter Bartok <pbartok@novell.com>
19635 * GroupBox.cs (ProcessMnemonic): Implemented
19636 * Label.cs (ProcessMnemonic): Implemented
19637 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
19640 2005-02-15 Peter Bartok <pbartok@novell.com>
19642 * RadioButton.cs (ProcessMnemonic): Implemented
19643 * CheckBox.cs (ProcessMnemonic): Implemented
19645 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
19647 - Added internal method to allow calling ProcessMnemonic from other
19649 * ContainerControl.cs:
19650 - Started support for handling validation chain handling
19651 - Implemented ProcessMnemonic support
19652 - Added Select() call to Active, to make sure the active control
19654 * Form.cs: Setting toplevel flag for Forms (this was lost in the
19655 FormParent rewrite)
19656 * ThemeWin32Classic.cs:
19657 - DrawCheckBox(): Fixed stringformat to show hotkeys
19658 - DrawRadioButton(): Fixed stringformat to show hotkeys
19659 * CommonDialog.cs: Removed WndProc override, not needed
19661 2005-02-14 Peter Bartok <pbartok@novell.com>
19663 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
19664 missed those in the rewrite
19666 2005-02-14 Miguel de Icaza <miguel@novell.com>
19668 * NumericUpDown.cs (Increment, ToString): Add.
19669 (DecimalPlaces): implement.
19673 * UpDownBase.cs: Add the designer attributes.
19675 2005-02-13 Peter Bartok <pbartok@novell.com>
19677 * Panel.cs: Removed border_style, now in Control
19678 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
19679 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
19681 2005-02-13 Peter Bartok <pbartok@novell.com>
19683 * MouseButtons.cs: Added missing attributes
19684 * XplatUIStructs.cs: Added enumeration for title styles
19685 * LeftRightAlignment.cs: Added missing attributes
19686 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
19687 it compatible with Graphics.FromHwnd()
19688 * SelectedGridItemChangedEventArgs.cs: Fixed property type
19689 * Keys.cs: Added missing attributes
19690 * SelectionRange.cs: Added missing attributes
19691 * SelectionRangeConverter.cs: Added
19693 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
19694 ReleaseMenuDC methods
19695 - Renamed ReleaseWindow to UngrabWindow
19696 - Added proper startup notice to allow version identification
19698 - Added missing attributes
19699 - Removed FormParent concept
19700 * Label.cs: Removed border_style field, now in Control
19701 * RadioButton.cs: Now properly selects RadioButton when focus is
19703 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
19705 - Added missing attributes
19706 - Added borderstyle handling
19707 - Removed FormParent concept support
19708 - Fixed calls to XplatUI to match changed APIs
19709 - Fixed bug that would case us to use disposed Graphics objects
19710 - Removed unneeded internal methods
19711 - PerformLayout(): Fixed to handle DockStyle.Fill properly
19712 - SelectNextControl(): Fixed to properly check common parents
19713 * TextBoxBase.cs: Removed border_style field (now in Control)
19715 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
19716 fixed calculations for form size
19717 - Added support for localized strings and icons
19718 - Improved form size calculations, added border
19719 * ListView.cs: Removed border_style field (now in Control)
19720 * X11Structs.cs: Moved several structs from X11 driver here
19721 * X11Keyboard.cs: Changed debug message
19722 * Application.cs: Removed FormParent concept support
19724 - Resetting end_modal flag
19725 - Removed FormParent concept support
19726 * NativeWindow.cs: Removed FormParent concept support
19727 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
19728 Client area and Non-Client whole window to allow support for WM_NC
19730 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
19731 prevent using it until it supports Hwnd as per Geoff Norton's request
19732 * ToolBar.cs: Fixed drawing, was not doing proper drawing
19733 * PictureBox.cs: Removed border_style field, now in Control
19734 * XplatUIWin32.cs: Added new driver methods
19736 2005-02-12 Peter Bartok <pbartok@novell.com>
19738 * OpacityConverter.cs: Implemented
19739 * Hwnd.cs: Internal class to support drivers that need to emulate
19740 client area/non-client area window behaviour
19742 2005-02-11 Peter Bartok <pbartok@novell.com>
19744 * KeysConverter.cs: Implemented
19746 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
19748 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
19749 * LinkLabel: Added missing attributes
19750 * MainMenu.cs: fixes ToString
19751 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
19752 * ListBox.cs: fixes event position
19753 * TrackBar.cs: adds missing attributes and events
19755 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
19757 * MenuItem.cs: Use SystemInformation and bug fixes
19758 * MenuAPI.cs: Use SystemInformation and bug fixes
19760 2005-02-09 Jackson Harper <jackson@ximian.com>
19762 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
19763 their keystate otherwise things like VK_MENU get stuck "on".
19765 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
19767 * ListBox.cs: Fixes AddRange bug
19769 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
19772 - Add missing attributes
19773 - Add missing method
19775 * CheckedListBox.cs: Added missing attributes
19776 - Add missing attributes
19777 - Remove extra method
19779 * ComboBox.cs: Added missing attributes
19780 * VScrollBar.cs: Added missing attributes
19781 * ScrollBar.cs: Added missing attributes
19782 * ListBox.cs: Fixes signature, add missing consts
19783 * LinkArea.cs: Added missing attributes
19786 2005-02-08 Peter Bartok <pbartok@novell.com>
19788 * Menu.cs: Added missing attributes
19789 * MainMenu.cs: Added missing attributes
19790 * GroupBox.cs: Added missing attributes
19791 * Label.cs: Added missing attributes
19792 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
19794 - Added Instance and Options properties
19795 - Added missing attributes
19796 * Cursor.cs: Made Serializable
19797 * NotifyIcon: Added missing attributes
19798 * MenuItem.cs: Added missing attributes
19799 * TextBoxBase.cs: Implemented AppendText() and Select() methods
19800 * Panel.cs: Added Missing attributes
19801 * MonthCalendar.cs: Fixed CreateParams
19803 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
19807 - Fixes issues with links
19808 - Adds the class attributes
19810 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
19813 - Fixes button when no items available in dropdown
19814 - Fixes repainting problems
19815 - Adds the class attributes
19817 2005-02-07 Geoff Norton <gnorton@customerdna.com>
19819 * XplatUIOSX.cs: Detect the menu bar and title bar height from
19820 the current theme. Cache these on startup.
19822 2005-02-07 Jackson Harper <jackson@ximian.com>
19824 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
19825 the scrollbar buttons when they are depressed.
19827 2005-02-07 Geoff Norton <gnorton@customerdna.com>
19829 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
19830 Get the display size from the main displayid. We currently dont
19831 support multiple display configurations.
19833 2005-02-07 Geoff Norton <gnorton@customerdna.com>
19835 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
19837 2005-02-07 Miguel de Icaza <miguel@novell.com>
19839 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
19841 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
19843 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
19845 2005-02-04 Jackson Harper <jackson@ximian.com>
19847 * ThemeWin32Classic.cs: Respect the clipping rect when
19848 drawing. Only fill the intersection of clips and rects so there
19849 isn't a lot of large fills.
19850 * ScrollBar.cs: Pass the correct clipping rect to the theme
19851 engine. Remove some debug code.
19853 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
19855 * DateTimePicker.cs:
19856 - Fixed crash on DateTime.Parse, use Constructor instead
19858 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
19862 - Owner draw support (MeasureItem and DrawItem)
19864 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
19867 - Implements FindMergePosition and MergeMenu functions (very poor documented)
19868 - Fixes MenuItems.Add range
19870 - MergeMenu and Clone and CloneMenu functions
19872 2005-02-03 Jackson Harper <jackson@ximian.com>
19874 * ScrollBar.cs: Make abstract
19875 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
19878 2005-02-03 Jackson Harper <jackson@ximian.com>
19880 * ScrollBar.cs: First part of my scrollbar fixups. This removes
19881 all the unneeded refreshes and uses invalidates with properly
19884 2005-02-03 Peter Bartok <pbartok@novell.com>
19886 * ComponentModel.cs: Added
19887 * IDataGridEditingService.cs: Added
19888 * Timer.cs: Added missing attributes
19889 * ToolTip.cs: Added missing attributes
19891 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
19893 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
19895 2005-02-03 Peter Bartok <pbartok@novell.com>
19897 * ListBox.cs: Added missing attributes
19899 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
19902 - Fixes font height after font change
19903 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
19905 2005-02-02 Peter Bartok <pbartok@novell.com>
19907 * HandleData.cs: Introduced static methods to allow class
19908 to be more self-contained and track it's own HandleData objects
19909 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
19910 HandleData to use new static methods
19912 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
19915 - Fixes default size and PreferredHeight
19917 - ObjectCollection.Insert implementation
19923 - ObjectCollection.Insert implementation
19924 - No selection after clean
19927 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
19929 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
19931 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
19934 - Caches ItemHeight calculation for OwnerDrawVariable
19935 - Handles dropdown properly
19936 - Fixes several minor bugs
19938 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
19941 - Fixes 71946 and 71950
19942 - Fixes changing Multicolumn on the fly
19943 - Fixes keyboard navigation on Multicolumn listboxes
19945 2005-01-31 Geoff Norton <gnorton@customerdna.com>
19947 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
19948 crash reporter log.
19950 2005-01-31 Geoff Norton <gnorton@customerdna.com>
19952 * XplatUIOSX.cs: Allow applications to actually exit.
19954 2005-01-31 Geoff Norton <gnorton@customerdna.com>
19956 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
19957 their parent at creation time rather than lazily later. Fixes a major
19958 regression we were experiencing.
19960 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
19962 * ThemeWin32Classic.cs: more date time picker painting fixes
19963 * DateTimePicker.cs: more monthcalendar drop down fixes
19964 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
19966 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
19969 - When moving the thumb going outside the control should stop the moving
19970 - Adds the firing of missing events
19971 - Fixes no button show if Size is not specified
19972 - End / Home keys for keyboard navigation
19974 2005-01-30 Peter Bartok <pbartok@novell.com>
19976 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
19977 sanity check to prevent theoretical loop
19978 * XplatUIWin32.cs (SetVisible): Removed debug output
19979 * XplatUIX11.cs (SystrayChange): Added sanity check
19980 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
19981 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
19982 behaviour, valid until the X11 client window rewrite is done
19983 * TextBox.cs (ctor): Setting proper default foreground and background
19986 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
19988 * Theme: Added DrawDateTimePicker to interface
19989 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
19990 * DateTimePicker.cs: Created (still needs keys and painting code)
19991 * DateTimePickerFormat.cs: added
19992 * MonthCalendar.cs: fixed CreateParams for popup window mode
19994 2005-01-29 Peter Bartok <pbartok@novell.com>
19996 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
19997 this should also the calculations for ligher/darker
19998 * Theme.cs: Fixed defaults for ScrollBar widths/heights
20000 2005-01-29 Peter Bartok <pbartok@novell.com>
20002 * ArrangeDirection.cs: Added
20003 * ArrangeStartingPositon.cs: Added
20004 * SystemInformation.cs: Implemented
20005 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20006 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
20007 used by SystemInformation class
20008 * X11Strucs.cs: Added XSizeHints structure
20010 - Fixed CreateParams to make sure the menu window is always visible
20011 - TrackPopupMenu: Added check to make sure we don't draw the
20014 2005-01-29 Peter Bartok <pbartok@novell.com>
20016 * HandleData.cs: Added method for altering invalid area
20017 * TextBoxBase.cs: Implemented TextLength
20019 2005-01-28 Peter Bartok <pbartok@novell.com>
20021 * XplatUIX11.cs: Improvement over last patch, not sending
20022 the WM_PAINT directly anymore, instead we scroll any pending
20023 exposed areas and let the system pick out the WM_PAINT later
20025 2005-01-28 Peter Bartok <pbartok@novell.com>
20027 * SWF.csproj: Deleted, no longer used. Instead,
20028 Managed.Windows.Forms/SWF.csproj should be used
20029 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
20030 directly, to avoid a potential race condition with the next
20033 2005-01-28 Peter Bartok <pbartok@novell.com>
20035 * XplatUI.cs: Made class internal
20037 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
20039 * CheckedListBox.cs:
20042 - Missing methods and events
20044 2005-01-27 Peter Bartok <pbartok@novell.com>
20046 * Application.cs (Run): Don't use form if we don't have one
20048 2005-01-27 Peter Bartok <pbartok@novell.com>
20050 * TextBoxBase.cs (get_Lines): Fixed index off by one error
20052 2005-01-27 Peter Bartok <pbartok@novell.com>
20054 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
20055 * GridItem.cs: Added; Patch by Jonathan S. Chambers
20056 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
20057 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
20058 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
20059 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
20060 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20061 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20062 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20063 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20064 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20065 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20067 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
20070 - Draw focus on Simple Combobox
20071 - Fixes drawing issues
20074 2005-01-27 Peter Bartok <pbartok@novell.com>
20077 - Place window in default location, instead of hardcoded 0/0
20078 - Send initial LocationChanged event
20080 - UpdateBounds after creation to find out where the WM placed us
20081 - Make sure that if the ParentForm changes location the Form
20083 * XplatUIX11.cs: XGetGeometry will not return the coords relative
20084 to the root, but to whatever the WM placed around us.
20085 Translate to root coordinates before returning toplevel
20087 * XplatUIWin32.cs: Removed debug output
20088 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
20089 flag to GetWindowPos, to allow translation of coordinates on X11
20091 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
20093 * ListBox.cs: connect LostFocus Event
20095 2005-01-27 Peter Bartok <pbartok@novell.com>
20097 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20098 XplatUIX11.cs: Extended the Systray API
20099 * Form.cs: Removed debug output
20100 * Application.cs: Fixed focus assignment, always need to call
20101 XplatUI.Activate() since Form.Activate() has rules that may
20103 * NotifyIcon.cs: Should be complete now
20104 * ToolTip.cs: Worked around possible timer bug
20106 2005-01-27 Jackson Harper <jackson@ximian.com>
20109 - Only invalidate the effected tabs when the
20110 selected index changes. This reduces drawing and gets rid of some
20112 - Only refresh if the tabs need to be shifted, otherwise only
20113 invalidate the slider button.
20114 - On windows the tabs are not filled to right if the slider is
20117 2005-01-27 Jackson Harper <jackson@ximian.com>
20119 * TabControl.cs: Only refresh on mouseup if we are showing the
20120 slider. Also only invalidate the button whose state has changed.
20122 2005-01-26 Peter Bartok <pbartok@novell.com>
20124 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
20125 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
20126 and SystrayRemove() methods
20127 * XplatUIOSX.cs: Stubbed Systray methods
20129 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
20131 - Fixed broken XChangeProperty calls (marshalling messed up things)
20132 * X11Structs.cs: Added enums and structs required for Size hinting
20133 * NotifyIcon.cs: Added & implemented
20135 2005-01-26 Jackson Harper <jackson@ximian.com>
20137 * TabControl.cs: Space vertically layed out tabs properly.
20139 2005-01-26 Peter Bartok <pbartok@novell.com>
20141 * Form.cs (CreateClientParams): Always set the location to 0,0
20142 since we're a child window.
20144 * Control.cs (SetVisibleCore): Always explicitly setting the location
20145 of a toplevel window, apparently X11 doesn't like to move windows
20146 while they're not mapped.
20148 2005-01-26 Jackson Harper <jackson@ximian.com>
20150 * TabControl.cs: Implement FillToRight size mode with vertically
20153 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
20155 * ControlPaint.cs, ThemeWin32Classic.cs
20156 - Fixes DrawFocusRectangle
20158 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
20161 - MenuBar tracking only starts when item is first clicked
20162 - Fixes menu hidding for multiple subitems
20163 - Unselect item in MenuBar when item Executed
20166 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
20169 - IsInputKey for ListBox
20172 - Shift and Control item selection
20173 - Implement SelectionMode.MultiExtended
20174 - Fixes RightToLeft
20176 - IsInputKey implemented
20177 - Do not generate OnTextChangedEdit on internal txt changes
20179 2005-01-23 Peter Bartok <pbartok@novell.com>
20181 * AccessibleObject.cs: Partially implemented Select()
20182 * MonthCalendar.cs: Added missing attributes and events
20183 * Form.cs: Fixed CreateParams behaviour, now controls derived from
20184 form can properly override CreateParams.
20185 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20186 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
20187 Control performs Invalidate & Update
20188 * NativeWindow (CreateHandle): Added special handling for Form
20189 and Form.FormParent classes to allow overriding of From.CreateParams
20191 - ControlNativeWindow: Renamed 'control' variable to more intuitive
20193 - ControlNativeWindow: Added Owner property
20194 - Removed usage of Refresh() on property changes, changed into
20195 Invalidate(), we need to wait until the queue is processed for
20196 updates, direct calls might cause problems if not all vars for
20197 Paint are initialized
20198 - Added call to UpdateStyles() when creating the window, to set any
20199 styles that CreateWindow might have ignored.
20200 - Added support for Form CreateParent overrides to UpdateStyles()
20201 * MessageBox.cs: Removed no longer needed FormParent override stuff,
20202 CreateParams are now properly overridable
20203 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
20204 CreateParams are now properly overridable
20206 2005-01-23 Miguel de Icaza <miguel@ximian.com>
20208 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
20211 Capture LostFocus and OnTextBoxChanged. The later introduces a
20212 recursive invocation that I have not figured out yet.
20214 Reset the timer when not using (it was accumulating).
20217 (OnTextBoxChanged): Set UserEdit to true here to track whether the
20218 user has made changes that require validation.
20220 Reset changing to avoid loops.
20222 2005-01-22 Miguel de Icaza <miguel@ximian.com>
20224 * NumericUpDown.cs: Display value at startup.
20226 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
20229 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
20230 filled in. Added some basic parsing of text.
20232 Still missing the OnXXX method overrides, and figuring out the
20233 events that must be emitted.
20235 * UpDownBase.cs: Handle UserEdit on the Text property.
20237 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
20240 - Fixes IntegralHeight
20243 2005-01-21 Jackson Harper <jackson@ximian.com>
20245 * TabControl.cs: Set the SelectedIndex property when SelectedTab
20246 is set so that the page visibility is updated and the tabs are
20249 2005-01-21 Jackson Harper <jackson@ximian.com>
20251 * TabControl.cs: Use cliping rectangle for blitting. Give the
20252 theme the clipping rect so we can do clipping while
20253 drawing. Remove some debug code.
20255 2005-01-21 Jackson Harper <jackson@ximian.com>
20257 * TabPage.cs: Add a new method so tab pages can force the tab
20258 control to recalculate the tab page sizes.
20259 * TabControl.cs: UpdateOwner needs to make the tab control recalc
20262 2005-01-20 Jackson Harper <jackson@ximian.com>
20264 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
20266 2005-01-20 Jackson Harper <jackson@ximian.com>
20268 * TreeView.cs: Set the bounds for nodes properly. They were
20269 getting screwed up when checkboxes were not enabled, but images
20272 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
20275 - Owner draw support
20278 2005-01-20 Jackson Harper <jackson@ximian.com>
20280 * XplatUIStructs.cs: More misc keys
20281 * X11Keyboard.cs: Ignore some control keys.
20283 2005-01-20 Jackson Harper <jackson@ximian.com>
20285 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
20286 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
20288 2005-01-19 Peter Bartok <pbartok@novell.com>
20290 * Control.cs: Un-selecting the control when it is loosing focus
20292 2005-01-19 Jackson Harper <jackson@ximian.com>
20294 * TreeView.cs: Hook up to the text controls leave event so we can
20295 end editing when the users clicks outside the text box.
20297 2005-01-19 Jackson Harper <jackson@ximian.com>
20299 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
20300 get set in the conversion array.
20302 2005-01-19 Peter Bartok <pbartok@novell.com>
20304 * Application.cs (ModalRun): Added a call to CreateControl to ensure
20305 focus is properly set
20307 - Added missing attributes
20308 - removed styles, those are already set in the base class
20310 - Added missing attributes
20311 - Added clip window styles
20312 * CheckBox.cs: Added missing attributes
20314 - FormParentWindow.CreateParams: Added required clip styles
20315 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
20316 also filters modifier keys
20318 - Added assignment of Accept and Cancel button to enable Enter
20319 and Esc keys in MessageBox dialogs
20320 - FormParentWindow.CreateParams: Added required clip styles
20321 * RadioButton.cs: Added missing attributes
20322 * TextControl.cs: No longer draws selection if control does not
20325 - Now draws simple rectangle around test area to make it obvious
20326 there's a control. This is a hack until we properly support borders
20327 - A few simple fixes to support selections better, now erases selected
20328 text when typing, and resets selection when using movement keys
20330 2005-01-19 Miguel de Icaza <miguel@ximian.com>
20332 * UpDownBase.cs: Added some new properties.
20334 * DomainUpDown.cs: Implement a lot to get my test working.
20336 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20338 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
20340 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20342 * OSXStructs (WindowAttributes): Fixed csc complaints
20344 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20347 OSXStructs.cs: Initial refactor to move enums and consts into
20348 OSXStructs and use them in the driver for greater readability.
20350 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20352 * XplatUIOSX.cs: Initial support for Standard Cursors.
20353 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
20355 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
20357 * ComboBox.cs: ability to change style when the ctrl is already
20358 created, missing methods and events, bug fixes, signature fixes
20360 2005-01-19 Peter Bartok <pbartok@novell.com>
20362 * Cursors.cs (ctor): Added ctor to fix signature
20364 2005-01-18 Peter Bartok <pbartok@novell.com>
20366 * Button.cs: Implemented DoubleClick event
20368 - Fixed keyboard handling to behave like MS, where the press of
20369 Spacebar is equivalent to a mousedown, and the key release is
20370 equivalent to mouseup. Now a spacebar push will give the same
20371 visual feedback like a mouse click.
20372 - Added missing attributes
20373 - Added ImeModeChanged event
20374 - Added support for generating DoubleClick event for derived classes
20376 - Implemented DoubleClick event
20377 - Added missing attributes
20378 * CommonDialog.cs: Added missing attribute
20379 * ContextMenu.cs: Added missing attributes
20381 - AutoChecked buttons do not allow to be unselected when clicked
20382 (otherwise we might end up with no selected buttons in a group)
20383 - Added missing attributes
20384 - Implemented DoubleClickEvent
20385 * ThreadExceptionDialog.cs: Enabled TextBox code
20387 2005-01-18 Peter Bartok <pbartok@novell.com>
20389 * Form.cs: Removed debug output
20390 * Button.cs: Added support for DoubleClick method
20392 2005-01-18 Peter Bartok <pbartok@novell.com>
20395 - Added method to parent window that allows triggering size
20396 calculations when a menu is added/removed
20397 - set_Menu: Cleaned up mess from early days of Form and Control,
20398 now properly triggers a recalc when a menu is added/removed
20399 - Added case to select form itself as focused form if no child
20401 - Added PerformLayout call when showing dialog, to ensure properly
20404 - Select(): Made internal so Form can access it
20405 - Focus(): Only call Xplat layer if required (avoids loop), and sets
20407 * Application.cs (Run): Removed hack and calls PerformLayout instead
20408 to trigger calculation when Form becomes visible
20410 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
20412 * ComboBox.cs: fixes for ownerdraw
20414 2005-01-18 Peter Bartok <pbartok@novell.com>
20417 - Sentinel is no longer static, each Document gets it's own, this
20418 avoids locking or alternatively overwrite problems when more
20419 than one text control is used simultaneously.
20420 - Switched to use Hilight and HilightText brushes for text selection
20422 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
20424 2005-01-18 Peter Bartok <pbartok@novell.com>
20427 - Hooked up the following events:
20435 o SystemColorsChanged
20436 o ParentFontChanged
20438 - Removed debug output
20439 - Added a call to the current theme's ResetDefaults when a color change
20441 * Form.cs: Now setting the proper ImeMode
20442 * Theme.cs: Defined a method to force recreation of cached resources
20443 and rereading of system defaults (ResetDefaults())
20444 * ThemeWin32Classic.cs: Added ResetDefaults() stub
20446 2005-01-17 Peter Bartok <pbartok@novell.com>
20448 * Control.cs: Added missing attributes
20450 2005-01-17 Jackson Harper <jackson@ximian.com>
20452 * TreeNode.cs: Implement editing. Add missing properties selected
20454 * TreeView.cs: Implement node editing. Also some fixes to use
20455 Invalidate (invalid area) instead of Refresh when selecting.
20457 2005-01-17 Peter Bartok <pbartok@novell.com>
20460 - Implemented InvokeGotFocus() method
20461 - Implemented InvokeLostFocus() method
20462 - Implemented InvokePaint() method
20463 - Implemented InvokePaintBackground() method
20464 - Implemented InvokeClick() method
20465 - Implemented FindForm() method
20466 - Implemented RectangleToClient() method
20467 - Implemented ClientToRectangle() method
20468 - Implemented ResetBackColor() method
20469 - Implemented ResetCursor() method
20470 - Implemented ResetFont() method
20471 - Implemented ResteForeColor() method
20472 - Implemented ResetImeMode() method
20473 - Implemented ResetLeftToRight() method
20474 - Implemented ResetText() method
20475 - Implemented Scale() methods
20476 - Implemented ScaleCore() method
20477 - Implemented Update() method
20478 - Removed unused variables
20479 - Stubbed AccessibilityNotifyClients and
20480 ControlAccessibleObject.NotifyClients() methods (dunno what to do
20482 - Now setting proper default for RightToLeft property
20483 - Fixed bug in SetClientSizeCore that would cause windows to get
20485 - Now sending Click/DoubleClick events
20486 - Now selecting controls when left mouse button is clicked on
20488 * AccessibleEvents.cs: Added
20489 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
20490 * XplatUIOSX.cs: Stubbed UpdateWindow() method
20491 * XplatUIWin32.cs: Implemented UpdateWindow() method
20492 * XplatUIX11.cs: Implemented UpdateWindow() method
20493 * Form.cs: Removed stray semicolon causing CS0162 warning
20494 * ThemeWin32Classic.cs: Fixed unused variable warnings
20495 * ScrollableControl.cs: Now calls base method for ScaleCore
20496 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
20497 style to avoid interference with internal click handler (which is
20498 different than standard Control click handling)
20500 - Now unchecks all sibling radio buttons when control is
20501 selected (Fixes #68756)
20502 - Removed internal tabstop variable, using the one inherited from
20505 2005-01-17 Jackson Harper <jackson@ximian.com>
20507 * NavigateEventArgs.cs: Fix base type.
20508 * LinkLabel.cs: Sig fix
20510 2005-01-17 Jackson Harper <jackson@ximian.com>
20512 * TreeView.cs: Only invalidate the effected nodes bounds when
20515 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
20517 * XplatUIWin32.cs: fixes Win32 marshaling
20518 * XplatUIX11.cs: fixes method signature
20520 2005-01-17 Peter Bartok <pbartok@novell.com>
20522 * XplatUIX11.cs: Clean up resources when we no longer need them
20524 2005-01-17 Peter Bartok <pbartok@novell.com>
20526 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
20527 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
20528 and DestroyCursor() methods.
20529 * Cursor.cs: Partially implemented, now supports standard cursors;
20530 still contains some debug code
20531 * Cursors.cs: Implemented class
20533 - WndProc(): Added handling of WM_SETCURSOR message, setting the
20535 - Implemented Cursor property
20536 - Replaced break; with return; more straightforwar and possibly
20538 - Now properly setting the result for WM_HELP
20539 * X11Structs.cs: Added CursorFontShape enum
20540 * XplatUIStructs.cs:
20541 - Added StdCursor enum (to support DefineStdCursor() method)
20542 - Added HitTest enum (to support sending WM_SETCURSOR message)
20544 - Now sends the WM_SETCURSOR message
20545 - Implemented new cursor methods
20546 * XplatUIOSX.cs: Stubbed new cursor methods
20548 - Implemented new cursor methods
20549 - Added GetSystemMetrics function and associated enumeration
20551 2005-01-15 Peter Bartok <pbartok@novell.com>
20554 - WndProc(): Now handles EnableNotifyMessage
20555 - SelectNextControl(): Fixed bug where if no child or sibling
20556 controls exist we looped endlessly
20558 2005-01-14 Jackson Harper <jackson@ximian.com>
20560 * TreeView.cs: Recalculate the tab pages when a new one is added
20561 so that the proper bounding rects are created.
20563 2005-01-14 Jackson Harper <jackson@ximian.com>
20565 * TreeView.cs: Draw a gray box instead of a grip in the lower
20566 right hand corner when there are both horizontal and vertical
20569 2005-01-14 Jackson Harper <jackson@ximian.com>
20571 * Control.cs: When erasing backgrounds use FromHwnd instead of
20572 FromHdc when there is a NULL wparam. This occurs on the X driver.
20573 * XplatUIX11.cs: Set the wparam to NULL.
20575 2005-01-13 Jackson Harper <jackson@ximian.com>
20577 * PictureBox.cs: Implement missing methods (except ToString, need
20578 to test that on windows) and events. When visibility is changed we
20579 need to redraw the image because the buffers are killed. When size
20580 is changed refresh if the sizemode needs it.
20582 2005-01-13 Peter Bartok <pbartok@novell.com>
20584 * Control.cs (SelectNextControl): Was using wrong method to select
20587 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
20589 * ComboBox.cs: fixes dropstyle
20591 2005-01-13 Peter Bartok <pbartok@novell.com>
20594 - Implemented Select() override
20595 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
20596 - Now sets keyboard focus on startup
20597 * Control.cs (SelectNextControl): Now properly handles directed=true
20599 - WndProc: Now passes tab key on to base if AcceptTabChar=false
20600 - Added (really bad) focus rectangle (mostly for testing)
20601 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
20602 to enforce redraw on focus changes
20603 * ContainerControl.cs:
20604 - Fixed detection of Shift-Tab key presses
20605 - Fixed traversal with arrow keys
20606 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
20607 gonna keep this or if it's complete yet
20609 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
20611 * ComboBox.cs: missing properties, fixes
20613 2005-01-13 Peter Bartok <pbartok@novell.com>
20615 * Panel.cs (ctor): Setting Selectable window style to off
20616 * Splitter.cs (ctor): Setting Selectable window style to off
20617 * GroupBox.cs (ctor): Setting Selectable window style to off
20618 * Label.cs (ctor): Setting Selectable window style to off
20620 2005-01-12 Miguel de Icaza <miguel@ximian.com>
20622 * UpDownBase.cs (InitTimer): If the timer has been already
20623 created, enable it.
20625 Use a TextBox instead of a Label.
20627 2005-01-12 Jackson Harper <jackson@ximian.com>
20629 * TreeView.cs: Refresh the tree after sorting the nodes. Always
20630 draw the connecting node lines (when ShowLines is true).
20631 * TreeNode.cs: The nodes index can now be updated. This is used
20632 when a node collection is sorted.
20633 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
20634 insert or an existing unsorted node collection can be sorted.
20636 2005-01-12 Peter Bartok <pbartok@novell.com>
20638 * ContainerControl.cs: Implemented ProcessDialogKeys()
20640 2005-01-12 Peter Bartok <pbartok@novell.com>
20643 - Implemented SelectNextControl() method
20644 - Several focus related bug fixes
20645 - Fixed Docking calculations to match MS documentation and
20648 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
20650 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
20653 2005-01-12 Peter Bartok <pbartok@novell.com>
20656 - Fixed broken Contains() method
20657 - Implemented GetNextControl() method. Finally. This is the pre-
20658 requisite for focus handling.
20660 2005-01-12 Peter Bartok <pbartok@novell.com>
20662 * OSXStrucs.cs: Added
20664 2005-01-12 Peter Bartok <pbartok@novell.com>
20667 - Removed PeekMessageFlags
20668 - Implemented SetWindowStyle() method
20669 * XplatUIStructs.cs: Added PeekMessageFlags
20670 * X11Structs: Added missing border_width field to XWindowChanges struct
20672 - PeekMessage: Now throws exception if flags which are not yet
20673 supported are passed
20674 - Implemented SetWindowStyle() method
20675 - Fixed SetZOrder to handle AfterHwnd properly
20676 * XplatUI.cs: Added SetWindowStyle() method
20677 * XplatUIDriver.cs: Added SetWindowStyle() abstract
20679 - Implemented UpdateStyles() method
20680 - Implemented UpdateZOrder() method
20681 * XplatUIOSX.cs: Added SetWindowStyle() stub
20683 2005-01-12 Geoff Norton <gnorton@customerdna.com>
20685 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
20689 2005-01-11 Jackson Harper <jackson@ximian.com>
20691 * TreeView.cs: Still need to draw lines to siblings even if out of
20692 the current node is out of the clip.
20694 2005-01-11 Jackson Harper <jackson@ximian.com>
20696 * TreeView.cs: When setting the hbar/vbar/grip position use
20697 SetBounds so that perform layout is only called once. Also suspend
20698 and resume layout so layout is only done once for all controls.
20699 - Removed some debug fluff
20700 * SizeGrip.cs: Call base implmentation in overriding methods.
20701 - When visibility is changed the drawing buffers are killed so we
20704 2005-01-11 Jackson Harper <jackson@ximian.com>
20706 * TreeView.cs: Calculate the open node count while drawing. This
20707 saves us an entire tree traversal for every paint operation. Use
20708 a member var for the open node count so less vars are passed around.
20710 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
20712 * MonthCalendar.cs:
20713 - fixed selection to use mousemove, not mouse polling on timer
20714 * ThemeWin32Classic.cs
20715 - removed redundant unused variable "no_more_content"
20717 2005-01-11 Peter Bartok <pbartok@novell.com>
20719 * XplatUIX11.cs (DoEvents): Needs to return when no more events
20720 are pending, so it now calls PeekMessage instead of GetMessage;
20721 implemented a incomplete version of PeekMessage
20723 2005-01-11 Peter Bartok <pbartok@novell.com>
20725 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
20727 * TextBoxBase.cs: Added sending of TextChanged event
20729 2005-01-10 Jackson Harper <jackson@ximian.com>
20731 * TreeView.cs: Try not to draw outside the clipping rectangle on
20734 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
20736 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
20738 2005-01-10 Jackson Harper <jackson@ximian.com>
20741 - Implement fast scrolling. Now only the newly
20742 exposed nodes are drawn and the old image is moved using the
20743 XplatUI::ScrollWindow method.
20744 - Factor in height of nodes when calculating whether or not the
20745 node is in the clipping rect.
20747 2005-01-10 Jackson Harper <jackson@ximian.com>
20749 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
20751 2005-01-10 Peter Bartok <pbartok@novell.com>
20753 * Application.cs: Added temporary hack to resolve all our resize
20754 required issues on startup. This will get fixed properly at
20755 some point in the future
20757 2005-01-10 Jackson Harper <jackson@ximian.com>
20759 * SizeGrip.cs: New internal class that is used as a sizing
20760 grip control...hence the name.
20762 2005-01-10 Peter Bartok <pbartok@novell.com>
20764 * Control.cs: Implemented proper TabIndex handling, now assigning
20765 a tabindex when a control is added to a container
20766 * GroupBox.cs (ctor): Now sets the Container style bit, required
20767 for Control.GetNextControl()
20769 2005-01-09 Jackson Harper <jackson@ximian.com>
20771 * TextBoxBase.cs: Clear window when scrolling (fixes build).
20773 2005-01-09 Peter Bartok <pbartok@novell.com>
20775 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20776 XplatUIX11.cs: Added ability to control ScrollWindow expose and
20777 an overload for ScrollWindow to allow only scrolling a rectangle
20779 2005-01-09 Peter Bartok <pbartok@novell.com>
20782 - Implemented SetDesktopBounds method
20783 - Implemented SetDesktopLocation method
20785 2005-01-08 Jackson Harper <jackson@ximian.com>
20787 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
20788 the node count has changed, this removes to VScroll::Refresh calls
20791 2005-01-08 Geoff Norton <gnorton@customerdna.com>
20793 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
20795 2005-01-07 Jackson Harper <jackson@ximian.com>
20797 * TreeNode.cs: Just update the single node when it is
20798 checked. Don't refresh after toggling, the Expand/Collapse already
20800 * TreeView.cs: Respect clipping a little more when drawing. Try
20801 not to redraw things that don't need to be redrawn. Just hide the
20802 scrollbars when they are no longer needed instead of removing
20803 them, so they don't have to be created again and again.
20805 2005-01-07 Geoff Norton <gnorton@customerdna.com>
20807 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
20808 coordinates to window space to place the caret properly, FIXED.
20809 Implement GetWindowState & SetWindowState
20811 2005-01-06 Peter Bartok <pbartok@novell.com>
20814 - Implemented ClientSize property
20815 - Implemented DesktopBounds property
20816 - Implemented DesktopLocation property
20817 - Implemented IsRestrictedWindow property
20818 - Implemented Size property
20819 - Implemented TopLevel property
20820 - Implemented FormWindowState property
20822 - Implemented GetTopLevel() method
20823 - Implemented SetTopLevel() method
20824 * X11Structs.cs (Atom):
20825 - Added AnyPropertyType definition
20826 - Added MapState definiton and updated XWindowAttribute struct
20827 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
20828 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
20829 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
20831 - Implemented GetWindowState() and SetWindowState() methods
20832 - Fixed Win32GetWindowLong return type
20834 - Introduced central function for sending NET_WM messages
20835 - Implemented GetWindowState() and SetWindowState() methods
20836 * TextBoxBase.cs (set_Lines):
20837 - Now uses Foreground color for text added via Text property (Duh!)
20838 - Added code to remember programmatically requested size (fixes
20839 behaviour when Multiline is set after Size)
20840 - Added AutoSize logic
20842 2005-01-06 Jackson Harper <jackson@ximian.com>
20844 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
20846 2005-01-06 Jackson Harper <jackson@ximian.com>
20848 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
20849 set to less then 0.
20851 2005-01-06 Jackson Harper <jackson@ximian.com>
20853 * ScrollableControl.cs: Lazy init the scrollbars.
20855 2005-01-06 Jackson Harper <jackson@ximian.com>
20857 * Theme.cs: Speed up getting pens and solid brushes, by using
20858 their ARGB as a hash instead of tostring and not calling Contains.
20860 2005-01-06 Peter Bartok <pbartok@novell.com>
20863 - Implemented OnActivated and OnDeactivate event trigger
20864 - Implemented Activate() method
20865 - Fixed ShowDialog() to activate the form that was active before
20866 the dialog was shown
20868 - Added global active_window var that tracks the currently active
20870 - Now always grabs Property changes from the root window to always
20871 catch changes on the active window property
20872 - Added code to PropertyNotify handler to send Active/Inactive
20873 messages when state changes. This puts X11 and Win32 en par on
20874 WM_ACTIVATE notifications (except for double notifications when
20875 the user clicks away from our modal window to another one of our
20878 2005-01-05 Jackson Harper <jackson@ximian.com>
20880 * ImageList.cs: Implment ctor
20882 2005-01-05 Geoff Norton <gnorton@customerdna.com>
20884 * XplatUIOSX.cs: Implement Activate/SetTopmost
20886 2005-01-05 Geoff Norton <gnorton@customerdna.com>
20888 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
20890 2005-01-05 Geoff Norton <gnorton@customerdna.com>
20892 * XplatUIOSX.cs: Implement GetActive/SetFocus.
20894 2005-01-05 Peter Bartok <pbartok@novell.com>
20896 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
20897 XplatUIOSX.cs: Added GetActive method to return the currently
20898 active window for the application (or null, if none is active)
20900 - Implemented ActiveForm
20901 - Commented out owner assignment for modal dialogs (causes problems
20902 on Win32, since the owner will be disabled)
20903 - Reworked some Active/Focus handling (still incomplete)
20904 * CommonDialog.cs: Commented out owner assignment for modal dialogs
20905 (causes problems on Win32, since the owner will be disabled)
20906 * IWin32Window: Added ComVisible attribute
20908 2005-01-05 Peter Bartok <pbartok@novell.com>
20910 * ToolTip.cs (WndProc): Enable setting focus now that we have the
20911 required XplatUI functions.
20913 2005-01-05 Peter Bartok <pbartok@novell.com>
20915 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
20916 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
20917 to implement focus and activation handling; still incomplete and
20920 2005-01-04 Peter Bartok <pbartok@novell.com>
20922 * TextBoxBase.cs: Changed access level for Document property to
20923 match switch to internal for TextControl
20925 2005-01-04 Peter Bartok <pbartok@novell.com>
20927 * AccessibleObject: Added ComVisible attribute
20929 2005-01-04 Jackson Harper <jackson@ximian.com>
20931 * X11Keyboard.cs: Remove unneeded var.
20933 2005-01-04 Jackson Harper <jackson@ximian.com>
20935 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
20937 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
20938 ClientMessage. This makes apps exit cleanly (more often).
20940 2005-01-04 Jackson Harper <jackson@ximian.com>
20942 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
20943 handling focus, return correct colors and fonts,
20944 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
20945 handle selection, horizontal scrolling, and mouse interaction.
20947 2005-01-04 Peter Bartok <pbartok@novell.com>
20949 * ICommandExecutor.cs: Added
20950 * IDataGridColumnStyleEditingNotificationService.cs: Added
20951 * IFeatureSupport.cs: Added
20952 * IFileReaderService.cs: Added
20953 * IDataObject.cs: Added ComVisible attribute
20954 * AmbientProperties.cs: Added
20955 * BaseCollection.cs: Added missing attributes
20956 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
20957 * BaseCollection.cs: Added missing attributes
20958 * Binding.cs: Added TypeConverter attribute
20959 * BindingContext.cs: Added DefaultEvent attribute
20960 * BindingsCollection.cs: Added DefaultEvent attribute
20961 * Button.cs: Added DefaultValue attribute
20962 * DragEventArgs.cs: Added ComVisible attribute
20963 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
20964 * KeyEventArgs.cs: Added ComVisible attribute
20965 * KeyPressEventArgs.cs: Added ComVisible attribute
20966 * MouseEventArgs.cs: Added ComVisible attribute
20967 * NavigateEventArgs.cs: Added
20968 * NavigateEventHandler.cs: Added
20969 * FeatureSupport.cs: Added
20970 * OSFeature.cs: Added
20971 * Theme.cs: Added abstract Version property to support OSFeature
20972 * ThemeWin32Classic.cs: Added Version property to
20973 support OSFeature.Themes
20974 * ProgressBar.cs: Removed OnPaintBackground override, not required since
20975 the proper styles to avoid background drawing are set, also doesn't
20977 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
20978 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
20979 * ScrollEventArgs.cs: Added ComVisible attribute
20980 * SplitterEventArgs.cs: Added ComVisible attribute
20981 * AccessibleSelection.cs: Added Flags attribute
20982 * Appearance.cs: Added ComVisible attribute
20983 * Border3DSide.cs: Added ComVisible attribute
20984 * Border3DStyle.cs: Added ComVisible attribute
20985 * BorderStyle.cs: Added ComVisible attribute
20986 * DragAction.cs: Added ComVisible attribute
20987 * ErrorBlinkStyle.cs: Added
20988 * ScrollEventType.cs: Added ComVisible attribute
20989 * AnchorStyles.cs: Added Editor attribute
20990 * DockStyle.cs: Added Editor attribute
20991 * HorizontalAlignment.cs: Added ComVisible attribute
20992 * HelpEventArgs.cs: Added ComVisible attribute
20993 * PaintEventArgs.cs: Added IDisposable
20995 2005-01-04 Peter Bartok <pbartok@novell.com>
20997 * TextControl.cs: Switched Line, LineTag and Document classes to
21000 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
21002 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
21003 Simple mode, fixes, IntegralHeight, etc.
21005 2005-01-04 Peter Bartok <pbartok@novell.com>
21007 * TextBoxBase.cs: Using proper font variable now
21009 2005-01-04 Peter Bartok <pbartok@novell.com>
21011 * Form.cs (ShowDialog): Set parent to owner, if provided
21012 * GroupBox.cs: Removed unused vars
21014 - Added GetHashCode() for Document and LineTag classes
21015 - Removed unused variables
21016 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
21017 to allow translation between continuous char position and line/pos
21018 * CheckBox.cs: Removed vars that are provided by base class
21019 * RadioButton.cs: Removed vars that are provided by base class, added
21020 new keyword where required
21021 * LinkLabel.cs: Added new keyword where required
21022 * Control.cs (WndProc): Removed unused variable
21024 - Finished SelectionLength property
21025 - Implemented SelectionStart property
21026 - Implemented Text property
21027 - Removed unused vars
21028 * MessageBox.cs: Added new keyword where required
21029 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
21031 * MenuAPI.cs: Added new keyword where required
21032 * ButtonBase.cs: Removed vars that are provided by base class, added
21033 new keyword where required
21034 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
21035 argument to double, to allow compiling with csc 2.0 (Atsushi ran
21037 * Application.cs (Run): Now triggers the ThreadExit event
21038 * CommonDialog.cs: Added new keyword where required; now properly sets
21039 parent (owner) for dialog
21040 * XplatUIX11.cs: Commented out unused vars
21041 * StatusBar.cs: Fixed signature for Text property
21042 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
21044 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
21046 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
21047 TrackBar.cs, MonthCalendar.cs: remove unused vars
21049 2005-01-03 Jackson Harper <jackson@ximian.com>
21051 * ThemeWin32Classic.cs:
21052 * X11Keyboard.cs: Remove unused vars.
21054 2005-01-03 Peter Bartok <pbartok@novell.com>
21057 - set_Text: Tied into TextControl
21058 - set_TextAlignment: Tied into TextControl
21060 - Added alignment properties and implemented alignment handling
21061 and drawing (still has a bug, not generating proper expose events)
21062 - Added new Line() constructor to allow passing the line alignment
21063 - Fixed selection setting, properly handling end<start now
21064 - Added aligment considerations to RecalculateDocument()
21066 - Now properly enforces control height for single line controls
21067 - Added support for CharacterCasing
21068 - Added IsInputKey override
21069 - Fixed Keys.Enter logic
21070 - Added SetBoundsCore override
21071 - Fixed mouse selection handling
21073 2005-01-03 Jackson Harper <jackson@ximian.com>
21076 - Collapse and uncheck all nodes when CheckBoxes is disabled.
21077 - Checkboxes are always aligned to the bottom of the node,
21078 regardless of item height.
21079 - Use the node bounds to draw the text so we can center it when
21080 the item height is greater then the font height.
21081 - Node::Bounds are only the text part of the node.
21082 * TreeNode.cs: New method to combine collapsing and unchecking all
21085 2005-01-02 Jackson Harper <jackson@ximian.com>
21087 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
21088 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
21089 tree when a check is changed. TODO: Only refresh the checked node.
21091 2004-12-30 Jackson Harper <jackson@ximian.com>
21093 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
21094 * TreeNode.cs: When collapsing make sure to never collapse the
21097 2004-12-29 Jackson Harper <jackson@ximian.com>
21099 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
21101 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
21103 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
21105 2004-12-28 Peter Bartok <pbartok@novell.com>
21107 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
21110 2004-12-28 Peter Bartok <pbartok@novell.com>
21112 * Control.cs (WndProc): Added WM_HELP handler, now generates
21113 HelpRequested event
21114 * Form.cs: Added HelpButton property and required support code
21115 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
21117 2004-12-28 Peter Bartok <pbartok@novell.com>
21120 - Made DialogForm.owner variable internal
21121 - Added check to ensure owner form is set before setting
21122 owner properties in CreateParams
21124 2004-12-28 Geoff Norton <gnorton@customerdna.com>
21126 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
21127 swizzling. Implement ClientToScreen and ScreenToClient. Implement
21128 GetCursorPos. Fix major visibility issues. Rework the windowing
21129 system to support borderless/titleless windows (implements menus).
21130 Fix GetWindowPos. Implement initial background color support for
21133 2004-12-28 Peter Bartok <pbartok@novell.com>
21135 * Form.cs (get_CreateParams): Make sure we have an owner before using
21136 the owner variable. Implement proper default if no owner exists
21138 2004-12-28 Peter Bartok <pbartok@novell.com>
21140 * In preparation for making Managed.Windows.Forms the default build target
21141 for System.Windows.Forms, the following stubbed files were added.
21142 Dialogs are currently being implemented by contributors and are only
21143 short-term place holders.
21144 * ColorDialog.cs: Initial check-in (minmal stub)
21145 * DataGrid.cs: Initial check-in (minimal stub)
21146 * DataGridLineStyle.cs: Initial check-in (minimal stub)
21147 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
21148 * DataGridTableStyle.cs: Initial check-in (minimal stub)
21149 * FontDialog.cs: Initial check-in (minimal stub)
21150 * FileDialog.cs: Initial check-in (minimal stub)
21151 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
21152 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
21153 * OpenFileDialog: Initial check-in (minimal stub)
21154 * IComponentEditorPageSite.cs: Initial check-in
21155 * Splitter.cs: Initial check-in (for Jackson)
21156 * SplitterEventArgs.cs: Initial check-in (for Jackson)
21157 * SplitterEventHandler.cs: Initial check-in (for Jackson)
21158 * TextBox.cs: Initial check-in; still needs some wiring to
21159 TextControl backend
21160 * Form.cs: Implemented ControlBox property
21161 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
21162 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
21163 * TextControl.cs: Added selection functionality; added todo header
21165 - Implemented Lines property
21166 - Implemented TextHeight property
21167 - Implemented SelectedText property
21168 - Implemented SelectionLength property
21169 - Implemented SelectAll method
21170 - Implemented ToString method
21171 - Removed and cleaned up some debug code
21172 - Implemented (still buggy) mouse text selection
21174 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
21176 * ComboBox.cs: Complete DropDownList implementation, fixes.
21178 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
21180 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
21181 * ComboBoxStyle.cs: ComboBoxStyle enum
21182 * ComboBox.cs: Initial work on ComboBox control
21184 2004-12-21 Peter Bartok <pbartok@novell.com>
21186 * Control.cs (ctor, CreateParams): Moved setting of is_visible
21187 forward so that anything that creates a window gets the default,
21188 also no longer uses Visible property in CreateParams to avoid
21189 walking up the parent chain and possibly get the wrong visible
21190 status. Fixed IsVisible to no longer walk up to the parent.
21192 2004-12-21 Peter Bartok <pbartok@novell.com>
21194 * Form.cs (ShowDialog): Unset modality for the proper window
21196 2004-12-20 Peter Bartok <pbartok@novell.com>
21198 * CommonDialog.cs: Initial check-in
21200 2004-12-20 Peter Bartok <pbartok@novell.com>
21202 * Control.cs (Visible): Now uses the parent window instead of the
21203 client area window for the property
21206 - ShowDialog(): Now uses the proper window for modality
21207 - The default visibility state for the form parent is now false. This
21208 will prevent the user from seeing all the changes to the form and
21209 its controls before the application hits Application.Run()
21210 - Removed some stale commented out code
21213 - Added FindWindow() method to have a method to check for existence
21215 - Added ability to override default exception handling (for example
21216 when debugging with VS.Net; to do this the ExternalExceptionHandler
21218 - Removed some useless debug output
21221 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
21222 not working as expected
21223 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
21224 property to allow switching back to the modal window if focus is
21225 given to another one of our windows (Application Modal)
21226 - Now only sets override_redirect if we create a window
21228 - Moved EventMask selection before mapping of newly created window
21229 so we can catch the map event as well
21230 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
21231 - Added various Atom related DllImports
21232 - Implemented Exit() method
21233 - .ctor() : No longer shows window if WS_VISIBLE is not defined
21234 in the CreateParams
21236 * MessageBox.cs: Now properly deals with the FormParent window by
21237 providing an override the FormParent CreateParams property to
21238 set as POPUP instead of OVERLAPPED window.
21240 2004-12-19 Geoff Norton <gnorton@customerdna.com>
21242 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
21243 Minor code cleanup.
21245 2004-12-19 Geoff Norton <gnorton@customerdna.com>
21247 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
21249 2004-12-18 Peter Bartok <pbartok@novell.com>
21251 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
21252 implementing SetModal() method
21254 2004-12-18 Peter Bartok <pbartok@novell.com>
21256 * X11Structs.cs (XGCValues): Fixed type of function element
21257 * XplatUI.cs: Added ScrollWindow() method
21258 * XplatUIDriver.cs: Added ScrollWindow() abstract
21259 * XplatUIWin32.cs: Implemented ScrollWindow() method
21260 * XplatUIX11.cs: Implemented ScrollWindow() method
21261 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
21263 2004-12-17 Geoff Norton <gnorton@customerdna.com>
21265 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
21266 Some more keyboard support (INCOMPLETE)
21268 2004-12-17 Peter Bartok <pbartok@novell.com>
21271 - Added color attribute to line tags.
21272 - Added color argument to all functions dealing with tags
21273 - Added color argument support to various functions
21274 - Fixed miss-calculation of baseline/shift in certain circumstances
21276 * TextBoxBase.cs: Added new color option to test code
21278 2004-12-17 Jackson Harper <jackson@ximian.com>
21281 * MonthCalendar.cs: Signature fixes
21283 2004-12-17 Geoff Norton <gnorton@customerdna.com>
21285 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
21286 keyboard event moved it. Create a new graphics context for each paint resolves this
21288 2004-12-17 Geoff Norton <gnorton@customerdna.com>
21290 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
21291 Make caret exist and go blink blink. Initial keyboard support.
21292 Fix exception handler, Add Invalidate support. Change way RefreshWindow
21295 2004-12-17 Jackson Harper <jackson@ximian.com>
21297 * XplatUIStructs.cs: Updated set of virtual keycodes.
21298 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
21300 2004-12-17 Jackson Harper <jackson@ximian.com>
21302 * XplatUIX11.cs: Prune old keyboard code.
21304 2004-12-17 Jackson Harper <jackson@ximian.com>
21306 * XplatUIX11.cs: When generating mouse wparams get the modifier
21307 keys from the ModifierKeys property.
21309 2004-12-17 Jackson Harper <jackson@ximian.com>
21311 * X11Keyboard.cs: Send up/down input when generating
21312 messages. Remove some unused vars.
21314 2004-12-17 Jackson Harper <jackson@ximian.com>
21317 * TreeView.cs: get rid of warnings.
21319 2004-12-17 Jackson Harper <jackson@ximian.com>
21321 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
21323 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
21325 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
21326 CheckedListBox.cs: Implementation
21328 2004-12-17 Peter Bartok <pbartok@novell.com>
21330 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
21332 2004-12-16 Peter Bartok <pbartok@novell.com>
21335 - InsertCharAtCaret(): Fixed start pos fixup
21336 - CaretLine_get: No longer derives the line from the tag, the tag
21337 could be stale if lines in the document have been added or deleted
21338 - RebalanceAfterDelete(): Fixed bug in balancing code
21339 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
21340 - Line.Streamline(): Now can also elminate leading empty tags
21341 - DumpTree(): Added a few more tests and prevented exception on
21343 - Added Debug section for Combining lines
21344 - Delete(): Now copies all remaining properties of a line
21347 - Left mousebutton now sets the caret (and middle button still acts
21348 as formatting tester, which must go away soon)
21349 - Added Debug section for Deleting/Combining lines
21350 - Fixed calculations for UpdateView after Combining lines
21352 2004-12-16 Peter Bartok <pbartok@novell.com>
21354 * TextControl.cs: Now properly aligns text on a baseline, using the
21355 new XplatUI.GetFontMetrics() method. Simplified several calculations
21356 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
21359 2004-12-16 Peter Bartok <pbartok@novell.com>
21361 * XplatUI.cs: Added GetFontMetrics() method
21362 * XplatUIDriver.cs: Added GetFontMetrics() abstract
21363 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
21364 into libgdiplus, our private GetFontMetrics function
21365 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
21366 * XplatUIWin32.cs: Implemented GetFontMetrics() method
21368 2004-12-16 Jackson Harper <jackson@ximain.com>
21370 * XplatUIStruct.cs: Add enum for dead keys
21371 * X11Keyboard.cs: Map and unmap dead keys.
21373 2004-12-16 Jackson Harper <jackson@ximian.com>
21375 * X11Keyboard.cs: Detect and use the num lock mask.
21377 2004-12-16 Peter Bartok <pbartok@novell.com>
21379 * Control.cs (CreateGraphics): Added check to make sure the
21380 handle of the window exists before calling Graphics.FromHwnd()
21382 2004-12-16 Peter Bartok <pbartok@novell.com>
21384 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
21385 contains a lot of code that's not supposed to be there for the
21386 real thing, but required for developing/testing the textbox
21389 2004-12-16 Peter Bartok <pbartok@novell.com>
21392 - Fixed Streamline method
21393 - Added FindTag method to Line
21394 - Added DumpTree method for debugging
21395 - Added DecrementLines() method for deleting lines
21396 - Fixed UpdateView to update the cursor to end-of-line on single-line
21398 - Added PositionCaret() method
21399 - Fixed MoveCaret(LineDown) to move into the last line, too
21400 - Added InsertChar overload
21401 - Fixed InsertChar tag offset calculations
21402 - Added DeleteChar() method
21403 - Added Combine() method for folding lines
21404 - Fixed Delete() method, no longer allocates wasted Line object and
21405 now copies all properties when swapping nodes
21406 - Delete() method now updates document line counter
21408 2004-12-15 Jackson Harper <jackson@ximian.com>
21410 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
21411 * X11Keyboard.cs: Expose the currently selected modifier keys
21412 through a property.
21414 2004-12-15 Peter Bartok <pbartok@novell.com>
21416 * TextControl.cs: Initial check-in. Still incomplete
21418 2004-12-15 Jackson Harper <jackson@ximian.com>
21421 * TreeView.cs: Fix build on csc (second time today ;-))
21423 2004-12-15 Jackson Harper <jackson@ximian.com>
21425 * TreeView.cs: Store the treenodes plus/minus box bounds when it
21426 is calculated and use this for click testing.
21427 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
21429 2004-12-15 Jackson Harper <jackson@ximian.com>
21431 * TreeView.cs: Pass the nodes image index to the image list when
21432 drawing that image.
21434 2004-12-15 Jackson Harper <jackson@ximian.com>
21436 * X11Keyboard.cs: Set messages hwnd.
21437 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
21438 post_message calls.
21440 2004-12-15 Jackson Harper <jackson@ximian.com>
21442 * X11Keyboard.cs: Fix to compile with csc.
21444 2004-12-15 Jackson Harper <jackson@ximian.com>
21446 * X11Structs.cs: Add key mask values
21447 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
21448 * X11Keyboard.cs: New file - Extrapolates and interpolates key
21449 down/up foo into WM_CHAR foo
21450 * KeyboardLayouts.cs: Common keyboard layouts
21451 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
21452 post messages into the main queue.
21454 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
21456 * Button.cs: implement ProcessMnemonic
21457 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
21459 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
21460 * ButtonBase.cs: Show HotkeyPrefix (not the &)
21462 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
21464 * MonthCalendar.cs: Implemented click-hold for next/previous month
21467 2004-12-11 Peter Bartok <pbartok@novell.com>
21470 - Added XKeyboardState (moved from XplatUIX11.cs)
21471 - Added XCreateGC related enums and structures
21472 - Added GXFunction for XSetFunction
21474 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
21476 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
21477 CaretVisible() calls
21479 * ToolTip.cs: Added code to prevent stealing focus from app windows
21481 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
21482 DestroyCaret, SetCaretPos and CaretVisible)
21485 - Added implementation for caret functions
21486 - Moved hover variables into a struct, to make it a bit easier
21487 on the eyes and to debug
21488 - Removed XKeyboardState (moved to XplatUIX11.cs)
21489 - Moved Keyboard properties into the properties region
21491 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
21492 call to get a graphics context for our control
21494 * XplatUIOSX.cs: Added empty overrides for the new caret functions
21496 * TreeView.cs: Fixed bug. No matter what color was set it would always
21497 return SystemColors.Window
21499 * XplatUIWin32.cs: Implemented caret overrides
21501 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
21503 * ListBox.cs: fire events, implement missing methods and properties,
21506 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
21508 * MonthCalendar.cs: invalidation bug fixing
21509 * ThemeWin32Classic.cs: paint fixing
21511 2004-12-09 Geoff Norton <gnorton@customerdna.com>
21513 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
21514 prepare the CGContextRef there now.
21516 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
21518 * MonthCalendar.cs:
21519 - optimisationL only invalidate areas that have changed
21520 * ThemeWin32Classic.cs:
21521 - only paint parts that intersect with clip_area
21523 2004-12-09 Peter Bartok <pbartok@novell.com>
21525 * Application.cs: Undid changes from r37004 which cause problems
21528 2004-12-09 Ravindra <rkumar@novell.com>
21530 * ToolBar.cs: Added support for displaying ContextMenu
21531 attached to a button on ToolBar.
21532 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
21535 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
21537 * Label.cs: autosize works in text change and removes unnecessary
21540 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
21542 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
21545 2004-12-08 Geoff Norton <gnorton@customerdna.com>
21547 * XplatUIOSX.cs: Added mouse move/click/grab support
21548 Remove some debugging WriteLines not needed anymore.
21549 Add window resizing/positioning.
21550 Fix visibility on reparenting.
21552 2004-12-08 Peter Bartok <pbartok@novell.com>
21554 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
21556 2004-12-07 Geoff Norton <gnorton@customerdna.com>
21558 * XplatUIOSX.cs: Initial checkin
21559 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
21561 2004-12-03 Ravindra <rkumar@novell.com>
21563 * ListView.cs: Added some keybindings and fixed scrolling.
21564 ScrollBars listen to ValueChanged event instead of Scroll
21565 Event. This would let us take care of all changes being
21566 done in the scrollbars' values programmatically or manually.
21567 * ListView.cs (CanMultiselect): Added a check for shift key.
21568 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
21569 * ListViewItem.cs (Clone): Fixed. We need to make a copy
21570 of ListViewSubItemCollection as well.
21572 2004-12-06 Peter Bartok <pbartok@novell.com>
21574 * Control.cs (Parent): Added check and exception to prevent
21577 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
21579 * ListBox.cs: implemented clipping, selection single and multiple,
21582 2004-12-03 Ravindra <rkumar@novell.com>
21584 * ListView.cs (ListView_KeyDown):
21585 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
21586 when CTRL key is pressed.
21587 * ListViewItem.cs (Selected): Fixed setting the property.
21589 2004-12-03 Marek Safar <marek.safar@seznam.cz>
21591 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
21593 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
21594 MinimizeBox, ShowInTaskbar, TopMost properties.
21596 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
21597 will be implemented).
21599 2004-12-03 Marek Safar <marek.safar@seznam.cz>
21601 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
21603 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
21606 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
21608 * TreeView.cs: BackColor is Colors.Window.
21610 2004-12-01 Jackson Harper <jackson@ximian.com>
21612 * TreeView.cs: When resizing the tree if the user is making it
21613 smaller we don't get expose events, so we need to handle adding
21614 the horizontal scrollbar in the size changed handler as well as
21615 the expose handler.
21617 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
21619 * DrawItemState.cs: fixes wrong enum values
21621 2004-12-01 Jackson Harper <jackson@ximian.com>
21623 * TreeView.cs: Resize the hbar as well as the vbar on resize.
21625 2004-12-01 Jackson Harper <jackson@ximian.com>
21627 * NodeLabelEditEventArgs.cs:
21628 * NodeLabelEditEventHandler.cs:
21629 * OpenTreeNodeEnumerator.cs:
21631 * TreeNodeCollection.cs:
21633 * TreeViewAction.cs:
21634 * TreeViewCancelEventArgs.cs:
21635 * TreeViewCancelEventHandler.cs:
21636 * TreeViewEventArgs.cs:
21637 * TreeViewEventHandler.cs: Initial implementation.
21639 2004-12-01 Ravindra <rkumar@novell.com>
21641 * ListView.cs (CalculateListView): Fixed scrolling related
21642 calculations. Also, removed some debug statements from other
21644 * ListViewItem.cs: Changed access to 'selected' instance variable
21645 from private to internal.
21646 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
21648 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
21650 * ThemeWin32Classic.cs: remove cache of brush and pens for
21651 specific controls and use the global system, fixes scrollbutton
21652 bugs (for small sizes, disabled, etc)
21654 * ScrollBar.cs: does not show the thumb for very small controls
21655 (as MS) and allow smaller buttons that the regular size
21657 2004-12-01 Miguel de Icaza <miguel@ximian.com>
21659 * UpDownBase.cs: Add abstract methods for the interface.
21660 Add new virtual methods (need to be hooked up to TextEntry when it
21662 Add override methods for most features.
21663 Computes the size, forces the height of the text entry.
21665 * NumericUpDown.cs: Put here the current testing code.
21667 * Set eol-style property on all files that do not have mixed line
21668 endings, to minimize the future problems. There are still a few
21669 files with mixed endings, and someone should choose whether they
21670 want to move it or not.
21672 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
21674 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
21677 2004-11-30 Ravindra <rkumar@novell.com>
21679 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
21680 drawing and replaced use of SystemColors by theme colors.
21681 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
21682 * ListView.cs (ListViewItemCollection.Add): Throw exception when
21683 same ListViewItem is being added more than once.
21685 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
21687 * MonthCalendar.cs:
21688 - ControlStyles love to make the control not flicker
21690 2004-11-30 Peter Bartok <pbartok@novell.com>
21692 * CharacterCasing.cs: Added
21694 2004-11-29 Peter Bartok <pbartok@novell.com>
21696 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
21697 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
21698 I am removing these files as they conflict with already completed
21699 work. While it is fantastic to get contributions to MWF, I
21700 respectfully ask that everyone please coordinate their contributions
21701 through mono-winforms-list or #mono-winforms at this time. We're
21702 explicitly avoiding stubbing and don't want controls that don't have
21703 their basic functionality implemented in svn. Please also see
21704 http://www.mono-project.com/contributing/winforms.html
21707 2004-11-29 Marek Safar <marek.safar@seznam.cz>
21709 * Application.cs (ModalRun): Don't hang after exit.
21711 * Theme.cs: New TreeViewDefaultSize property.
21713 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
21714 with less hardcoded SystemColors constant.
21715 Implemented TreeViewDefaultSize.
21717 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
21718 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
21721 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
21723 * MonthCalendar.cs:
21724 - Fix NextMonthDate and PrevMonthDate click moving calendar
21726 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
21728 * MonthCalendar.cs:
21729 - Fix usage of ScrollChange Property when scrolling months
21731 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
21733 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
21734 - Fixes menu destroying
21735 - Support adding and removing items on already created menus
21737 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
21739 * MonthCalendar.cs:
21740 - Re-worked all bolded dates handling to match win32
21741 * ThemeWin32Classic.cs:
21742 - Fixed rendering with bolded dates
21744 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
21746 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
21747 - Horizontal scroolbar
21752 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
21754 * MonthCalendar.cs:
21755 - Fix Usage of MaxSelectionCount from SelectionRange
21756 - Fixed Shift + Cursor Selection
21757 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
21758 - Fixed normal cursor selection to be compat with win32
21759 - Fixed Shift + Mouse Click selection
21761 2004-11-24 Peter Bartok <pbartok@novell.com>
21763 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
21764 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
21766 - CreatedKeyBoardMsg now updates keystate with Alt key
21767 - Added workaround for timer crash to CheckTimers, Jackson will
21768 develop a proper fix and check in later
21769 - Implemented DispatchMessage
21770 - Removed calling the native window proc from GetMessage (call
21771 now moved to DispatchMessage)
21773 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
21774 the keydata (Fixes bug #69831)
21777 - (DispatchMessage): Switched to return IntPtr
21778 - Added DllImport for SetFocus
21780 2004-11-24 Ravindra <rkumar@novell.com>
21782 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
21783 background drawing.
21784 * ListViewItem.cs: Fixed various properties, calculations
21785 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
21786 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
21787 and some internal properties. Fixed MouseDown handler and Paint
21790 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
21792 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
21794 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
21796 * ContainerControl.cs: correct accidental check in of local changes
21798 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
21800 * ThemeWin32Classic.cs:
21801 - Fixed Drawing Last month in grid (sometimes not showing)
21802 * MonthCalendar.cs:
21803 - Fixed title width calculation bug (makeing title small)
21805 2004-11-23 Peter Bartok <pbartok@novell.com>
21808 - Added generation of WM_MOUSEHOVER event
21809 - Added missing assignment of async_method atom
21810 - Fixed WM_ERASEBKGND; now only redraws the exposed area
21812 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
21814 * ThemeWin32Classic.cs:
21815 - Fixed Drawing of today circle when showtodaycircle not set
21816 - fixed drawing of first and last month in the grid (gay dates)
21817 * MonthCalendar.cs:
21818 - Fixed Drawing of today circle
21819 - Fixed drawing of grady dates
21820 - Fixed HitTest for today link when ShowToday set to false
21821 - Fixed DefaultSize to obey ShowToday
21823 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
21825 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
21826 * System.Windows.Forms/Theme.cs
21827 * MonthCalendar.cs: added for MonthCalendar
21828 * SelectionRange.cs: added for MonthCalendar
21829 * Day.cs: added for MonthCalendar: added for MonthCalendar
21830 * DateRangeEventArgs.cs: added for MonthCalendar
21831 * DateRangeEventHandler.cs: added for MonthCalendar
21833 2004-11-22 Ravindra <rkumar@novell.com>
21835 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
21838 2004-11-22 Miguel de Icaza <miguel@ximian.com>
21840 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
21843 * NumericUpDown.cs: Added new implementation.
21844 * UpDownBase.cs: Added new implementation.
21846 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
21849 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
21852 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
21855 2004-11-21 Miguel de Icaza <miguel@ximian.com>
21857 * Timer.cs (Dispose): Should call the base dispose when
21860 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
21862 * ScrollBar.cs: updates thumb position when max, min or increment
21865 2004-11-21 Ravindra <rkumar@novell.com>
21867 * ListView.cs: Implemented item selection, activation and
21868 column header style. Fixed properties to do a redraw, if
21869 required. Added support for MouseHover, DoubleClick, KeyDown
21870 and KeyUp event handling and some minor fixes.
21871 * ListViewItem.cs: Fixed constructor.
21872 * ThemeWin32Classic.cs: Improved drawing for ListView.
21874 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
21876 * ThemeWin32Classic.cs: initial listbox drawing code
21877 * DrawMode.cs: new enumerator
21878 * ListControl.cs: stubbed class
21879 * ListBox.cs: initial implementation
21880 * Theme.cs: new methods definitions
21881 * SelectionMode.cs: new enumerator
21883 2004-11-17 Peter Bartok <pbartok@novell.com>
21885 * XplatUIWin32.cs: Added double-click events to the class style
21886 * Control.cs (WndProc):
21887 - Added handling of click-count to MouseDown/ MouseUp events.
21888 - Added handling of middle and right mouse buttons
21889 - Removed old debug code
21891 2004-11-17 Jackson Harper <jackson@ximian.com>
21893 * XplatUIX11.cs: Use the new Mono.Unix namespace.
21895 2004-11-17 Ravindra <rkumar@novell.com>
21897 * ListView.cs: Added event handling for MouseMove/Up/Down.
21898 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
21899 * ThemeWin32Classic.cs: We need to clear the graphics context and
21900 draw column header in a proper state.
21903 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
21905 * Menu.cs: fixes signature
21907 2004-11-16 Peter Bartok <pbartok@novell.com>
21909 * XplatUIX11.cs (GetMessage): Implemented generation of
21910 double click mouse messages
21912 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
21914 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
21917 2004-11-11 Peter Bartok <pbartok@novell.com>
21919 * HandleData.cs: Added Visible property
21920 * XplatUIX11.cs (IsVisible): Now uses Visible property from
21922 * XplatUIX11.cs: Removed old debug leftovers
21923 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
21924 * Control.cs (WndProc): Removed old debug leftovers,
21925 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
21926 needed WM_SIZE handling
21928 2004-11-11 Jackson Harper <jackson@ximian.com>
21930 * OwnerDrawPropertyBag.cs:
21931 * TreeViewImageIndexConverter.cs: Initial implementation
21933 2004-11-10 Jackson Harper <jackson@ximian.com>
21935 * ThemeWin32Classic.cs:
21936 * TabControl.cs: instead of moving tabs by the slider pos just
21937 start drawing at the tab that is offset by the slider. This way
21938 scrolling always moves by exactly one tab.
21940 2004-11-10 Jackson Harper <jackson@ximian.com>
21942 * TabControl.cs: You can only scroll left when the slider has
21943 already ben moved right.
21945 2004-11-10 Jackson Harper <jackson@ximian.com>
21947 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
21950 2004-11-10 Jackson Harper <jackson@ximian.com>
21952 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
21955 2004-11-09 Jackson Harper <jackson@ximian.com>
21957 * TabControl.cs (CalcXPos): New helper method so we can determine
21958 the proper place to start drawing vertical tabs.
21959 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
21961 2004-11-09 Jackson Harper <jackson@ximian.com>
21963 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
21964 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
21965 and Bottom, left and right are illegal values for this and
21966 multiline is enabled when the alignment is set to left or right.
21967 (DrawTab): Each alignment block should draw the text itself now
21968 because Left requires special love. Also add rendering for Left
21971 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
21973 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
21974 does not destroy the windows, removes debugging messages
21976 2004-11-09 jba <jba-mono@optusnet.com.au>
21978 * ThemeWin32Classic.cs
21979 (DrawButtonBase): Fix verticle text rect clipping in windows
21980 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
21981 rendering and incorrect text rect clipping
21982 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
21983 rendering and incorrect text rect clipping
21985 2004-11-08 Jackson Harper <jackson@ximian.com>
21987 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
21988 bottom when they are bottom aligned so the bottoms of the tabs get
21990 * TabControl.cs (DropRow): Move rows up instead of down when the
21991 tab control is bottom aligned.
21993 2004-11-08 13:59 pbartok
21996 - Added handling for various window styles
21997 - Added handling for popup windows
21998 - Added SetTopmost handling
22000 2004-11-08 13:55 pbartok
22003 - Added argument to SetTopmost method
22004 - Fixed broken ClientToScreen function
22006 2004-11-08 13:53 pbartok
22008 * XplatUIStructs.cs:
22009 - Added missing WS_EX styles
22011 2004-11-08 13:53 pbartok
22013 * XplatUI.cs, XplatUIDriver.cs:
22014 - Added argument to SetTopmost
22016 2004-11-08 13:52 pbartok
22019 - Added XSetWindowAttributes structure
22020 - Improved XWindowAttributes structure
22021 - Added SetWindowValuemask enum
22022 - Added window creation arguments enum
22023 - Added gravity enum
22024 - Added Motif hints structure
22025 - Added various Motif flags and enums
22026 - Added PropertyMode enum for property functions
22028 2004-11-08 13:50 pbartok
22031 - Fixed arguments for updated SetTopmost method
22033 2004-11-08 13:49 pbartok
22036 - Fixed arguments for updated SetTopmost function
22037 - Fixed usage of PointToClient
22039 2004-11-08 13:44 pbartok
22042 - Added Clipping of children and siblings
22044 2004-11-08 13:41 pbartok
22047 - Removed SetMenuBarWindow call. We do this in Form.cs
22049 2004-11-08 13:40 jackson
22051 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
22052 scrolling jimmi in the correct location with bottom aligned tabs
22054 2004-11-08 13:36 pbartok
22056 * ContainerControl.cs:
22057 - Implemented BindingContext
22058 - Implemented ParentForm
22060 2004-11-08 12:46 jackson
22062 * TabControl.cs: Put bottom rendered tabs in the right location
22064 2004-11-08 07:15 jordi
22066 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
22069 2004-11-05 17:30 jackson
22071 * TabControl.cs: When selected tabs are expanded make sure they
22072 don't go beyond the edges of the tab control
22074 2004-11-05 14:57 jackson
22076 * TabControl.cs: Reset show_slider so if the control is resized to
22077 a size where it is no longer needed it's not displayed anymore
22079 2004-11-05 13:16 jackson
22081 * TabControl.cs: Make tab pages non visible when added to the
22084 2004-11-05 12:42 jackson
22086 * TabControl.cs: Implement SizeMode.FillToRight
22088 2004-11-05 12:16 jackson
22090 * Control.cs: Do not call CreateHandle if the handle is already
22093 2004-11-05 11:46 jackson
22095 * TabControl.cs: Remove superflous call to CalcTabRows
22097 2004-11-05 09:07 jackson
22099 * XplatUIX11.cs: Update for Mono.Posix changes
22101 2004-11-05 07:00 ravindra
22103 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
22106 2004-11-04 22:47 jba
22108 * ThemeWin32Classic.cs:
22109 - Fix Button rendering for FlatStyle = Flat or Popup
22110 - Fix RadioButton and CheckBox rendering when Appearance = Button
22111 (normal and flatstyle).
22112 - Correct outer rectangle color when drawing focus rectangle
22113 - Adjust button bounds to be 1 px smaller when focused
22114 - Make button not draw sunken 3d border when pushed (windows compat)
22115 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
22116 - Offset the text in RadioButton and Checkbox when being rendered as
22118 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
22120 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
22121 - Fixed disabled text rendering for normally rendered radiobuttons
22123 2004-11-04 10:26 jackson
22125 * TabControl.cs: Recalculate tab rows when resizing
22127 2004-11-04 07:47 jordi
22129 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
22130 collection completion, drawing issues, missing features
22132 2004-11-04 05:03 ravindra
22135 - We need to recalculate the Thumb area when
22136 LargeChange/maximum/minimum values are changed.
22137 - We set the 'pos' in UpdatePos() method to minimum, if it's less
22138 than minimum. This is required to handle the case if large_change is
22139 more than max, and use LargeChange property instead of large_change
22141 - We return max+1 when large_change is more than max, like MS does.
22143 2004-11-04 04:29 ravindra
22145 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
22146 - Changed default value signatures (prefixed all with ListView).
22147 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
22149 - Fixed calculations for ListViewItem and implemented Clone()
22152 2004-11-04 04:26 ravindra
22154 * Theme.cs, ThemeWin32Classic.cs:
22155 - Changed default ListView values signatures (prefixed all with
22157 - Fixed default size values for VScrollBar and HScrollBar.
22158 - Fixed DrawListViewItem method.
22160 2004-11-04 04:05 ravindra
22162 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
22164 2004-11-04 04:04 ravindra
22166 * ImageList.cs: Implemented the missing overload for Draw method.
22168 2004-11-03 19:29 jackson
22170 * TabControl.cs: Handle dropping rows on selection properly
22172 2004-11-03 11:59 jackson
22174 * TabControl.cs: remove debug code
22176 2004-11-03 11:52 jackson
22178 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
22179 the scrolly widgerywoo
22181 2004-11-02 13:52 jackson
22183 * TabControl.cs: Resize the tab pages and tabs when the tab control
22186 2004-11-02 13:40 jackson
22188 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
22189 selected tab to the bottom
22191 2004-11-02 13:39 jackson
22193 * TabPage.cs: Store the tab pages row
22195 2004-11-02 12:33 jordi
22197 * MenuItem.cs: fixes handle creation
22199 2004-11-02 11:42 jackson
22201 * TabControl.cs: signature fix
22203 2004-11-02 08:56 jackson
22205 * TabControl.cs: Calculate whether the tab is on an edge properly.
22206 Remove top secret debugging code
22208 2004-11-01 19:57 jackson
22210 * TabControl.cs: Add click handling, and proper sizing
22212 2004-11-01 19:47 jackson
22214 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
22217 2004-11-01 19:39 jackson
22219 * TabPage.cs: add internal property to store the bounds of a tab
22222 2004-10-30 04:23 ravindra
22224 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
22227 2004-10-30 04:21 ravindra
22229 * ListView.cs, ListViewItem.cs: Added support for scrolling and
22230 fixed calculations.
22232 2004-10-30 03:06 pbartok
22235 - Removed extension of DllImported libs
22237 2004-10-29 09:55 jordi
22239 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
22240 navigation, itemcollection completion, menu fixes
22242 2004-10-27 22:58 pbartok
22245 - Now throws a nice error message when no X display could be opened
22247 2004-10-26 13:51 jordi
22249 * ListView.cs: removes warning
22251 2004-10-26 03:55 ravindra
22253 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
22254 ThemeWin32Classic.cs: Some formatting for my last checkins.
22256 2004-10-26 03:36 ravindra
22258 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
22259 control and default values.
22261 2004-10-26 03:35 ravindra
22263 * Theme.cs: Added some default values for ListView control.
22265 2004-10-26 03:33 ravindra
22267 * ToolBar.cs: ToolBar should use the user specified button size, if
22268 there is any. Added a size_specified flag for the same.
22270 2004-10-26 03:33 ravindra
22272 * ColumnHeader.cs: Added some internal members and calculations for
22275 2004-10-26 03:32 ravindra
22277 * ListViewItem.cs: Calculations for ListViewItem.
22279 2004-10-26 03:31 ravindra
22281 * ListView.cs: Added some internal members and calculations for
22284 2004-10-22 13:31 jordi
22286 * MenuAPI.cs: speedup menus drawing
22288 2004-10-22 13:16 jackson
22290 * XplatUIX11.cs: Make sure to update exposed regions when adding an
22293 2004-10-22 11:49 jackson
22297 2004-10-22 11:41 jackson
22299 * Control.cs: Check to see if the window should have its background
22300 repainted by X when drawing.
22302 2004-10-22 11:31 jackson
22304 * XplatUIX11.cs: When invalidating areas only use XClearArea if
22305 clear is true, this way we do not get flicker from X repainting the
22308 2004-10-22 11:28 jackson
22310 * XEventQueue.cs: Queue properly
22312 2004-10-21 09:38 jackson
22314 * XEventQueue.cs: Fix access modifier
22316 2004-10-21 09:36 jackson
22318 * XEventQueue.cs: Don't loose messages
22320 2004-10-21 09:22 jackson
22322 * XEventQueue.cs: Don't loose messages
22324 2004-10-20 04:15 jordi
22326 * BootMode.cs: enum need it by SystemInfo
22328 2004-10-19 21:58 pbartok
22331 - Small sanity check
22333 2004-10-19 21:56 pbartok
22336 - Added private FormParentWindow class which acts as the container
22337 for our form and as the non-client area where menus are drawn
22338 - Added/Moved required tie-ins to Jordi's menus
22339 - Fixed/Implemented the FormStartPosition functionality
22341 2004-10-19 21:52 pbartok
22344 - Removed unneeded locals
22345 - Added code to all size and location properties to understand and
22346 deal with the parent container of Form
22348 2004-10-19 21:33 pbartok
22351 - Fixed to deal with new Form subclasses for menus
22353 2004-10-19 17:48 jackson
22355 * XEventQueue.cs: commit correct version of file
22357 2004-10-19 16:50 jackson
22359 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
22361 2004-10-19 16:15 jordi
22363 * MenuAPI.cs: MenuBarCalcSize returns the height
22365 2004-10-19 08:31 pbartok
22368 - Added missing call to PreProcessMessage before calling OnXXXKey
22371 2004-10-19 00:04 ravindra
22373 * ToolTip.cs: Fixed constructor.
22375 2004-10-18 09:31 jordi
22377 * MenuAPI.cs: menuitems in menubars do not have shortcuts
22379 2004-10-18 09:26 jordi
22381 * MenuItem.cs: fixes MenuItem class signature
22383 2004-10-18 08:56 jordi
22385 * MenuAPI.cs: prevents windows from showing in the taskbar
22387 2004-10-18 00:28 ravindra
22389 * ToolTip.cs: Suppressed a warning message.
22391 2004-10-18 00:27 ravindra
22393 * Control.cs: Default value of visible property must be true.
22395 2004-10-17 23:19 pbartok
22398 - Complete implementation
22400 2004-10-17 23:19 pbartok
22403 - Added EnableWindow method
22404 - Added SetModal stub
22405 - Added generation of WM_ACTIVATE message (still needs testing)
22406 - Added SetTopMost stub
22407 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
22409 2004-10-17 23:17 pbartok
22412 - Removed VirtualKeys to XplatUIStructs
22413 - Implemented SetTopMost method
22414 - Implemented EnableWindow method
22415 - Bugfix in ScreenToClient()
22416 - Bugfixes in ClientToScreen()
22418 2004-10-17 22:51 pbartok
22420 * XplatUIStructs.cs:
22421 - Added WS_EX styles to WindowStyles enumeration
22423 2004-10-17 22:50 pbartok
22425 * XplatUI.cs, XplatUIDriver.cs:
22426 - Added method for enabling/disabling windows
22427 - Added method for setting window modality
22428 - Added method for setting topmost window
22430 2004-10-17 22:49 pbartok
22432 * ThemeWin32Classic.cs:
22433 - Added ToolTip drawing code
22435 2004-10-17 22:49 pbartok
22438 - Added ToolTip abstracts
22440 2004-10-17 22:47 pbartok
22443 - Fixed Form.ControlCollection to handle owner relations
22444 - Added Owner/OwnedForms handling
22445 - Implemented Z-Ordering for owned forms
22446 - Removed unneeded private overload of ShowDialog
22447 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
22449 - Fixed Close(), had wrong default
22450 - Added firing of OnLoad event
22451 - Added some commented out debug code for Ownership handling
22453 2004-10-17 22:16 pbartok
22456 - Fixed/implemented flat list of controls
22458 2004-10-17 22:14 pbartok
22461 - Added code to simulate modal dialogs on Win32
22463 2004-10-17 16:11 jordi
22465 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
22468 2004-10-17 13:39 jordi
22470 * MenuAPI.cs: menu drawing fixes
22472 2004-10-15 09:10 ravindra
22474 * StructFormat.cs: General Enum.
22476 2004-10-15 09:09 ravindra
22478 * SizeGripStyle.cs: Enum for Form.
22480 2004-10-15 09:08 ravindra
22482 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
22483 in Theme for ListView.
22485 2004-10-15 09:06 ravindra
22487 * ColumnHeader.cs: Flushing some formatting changes.
22489 2004-10-15 09:05 ravindra
22491 * ListViewItem.cs: Implemented GetBounds method and fixed coding
22494 2004-10-15 09:03 ravindra
22496 * ListView.cs: Implemented Paint method and fixed coding style.
22498 2004-10-15 07:34 jordi
22500 * MenuAPI.cs: fix for X11
22502 2004-10-15 07:32 ravindra
22504 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
22505 - Renamed Paint() method to Draw() for clarity. Also, moved
22506 DrawImage() to OnPaint().
22508 2004-10-15 07:25 ravindra
22510 * CheckBox.cs, RadioButton.cs:
22511 - Removed Redraw (), we get it from ButtonBase.
22512 - Implemented Paint (), to do class specific painting.
22514 2004-10-15 07:16 ravindra
22517 - Redraw () is not virtual now.
22518 - Added an internal virtual method Paint (), so that
22519 derived classes can do their painting on their own.
22520 - Modified OnPaint () to call Paint ().
22522 2004-10-15 06:43 jordi
22524 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
22525 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
22527 2004-10-15 00:30 ravindra
22530 - MessageBox on windows does not have min/max buttons.
22531 This change in CreateParams fixes this on Windows. We
22532 still need to implement this windowstyle behavior in
22535 2004-10-14 05:14 ravindra
22538 - Changed Redraw () to do a Refresh () always.
22539 - Fixed the MouseMove event handling when mouse is pressed,
22540 ie drag event handling.
22541 - Replaced the usage of ToolBarButton.Pressed property to
22542 ToolBarButton.pressed internal variable.
22544 2004-10-14 05:10 ravindra
22546 * ToolBarButton.cs:
22547 - Added an internal member 'inside' to handle mouse move
22548 with mouse pressed ie mouse drag event.
22549 - Changed 'Pressed' property to return true only when
22550 'inside' and 'pressed' are both true.
22551 - Some coding style love.
22553 2004-10-14 00:17 ravindra
22555 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
22558 2004-10-14 00:15 ravindra
22560 * ButtonBase.cs: Redraw () related improvements.
22562 2004-10-14 00:14 ravindra
22564 * MessageBox.cs: Moved InitFormSize () out of Paint method and
22565 removed unnecessary calls to Button.Show () method.
22567 2004-10-13 17:50 pbartok
22571 - Removed destroying of window until we solve the problem of X
22572 destroying the window before us on shutdown
22574 2004-10-13 16:32 pbartok
22577 - Now Redraws on MouseUp for FlatStyle Flat and Popup
22579 2004-10-13 14:18 pbartok
22582 - Added code to destroy the X window
22584 2004-10-13 14:18 pbartok
22587 - Added code to destroy a window
22589 2004-10-13 14:12 pbartok
22592 - Added the Redraw on Resize that got dropped in the last rev
22594 2004-10-13 09:06 pbartok
22596 * ThemeWin32Classic.cs:
22597 - Path from John BouAntoun:
22598 * Fix check rendering (centre correctly for normal style, offset
22599 correctly for FlatStyle).
22600 * Fix border color usage (use backcolor) for FlatStyle.Popup
22601 * Use checkbox.Capture instead of checkbox.is_pressed when
22602 rendering flatstyle states.
22604 2004-10-12 21:48 pbartok
22606 * ThemeWin32Classic.cs:
22607 - Removed all occurences of SystemColors and replaced them with the
22608 matching theme color
22610 2004-10-12 21:41 pbartok
22612 * ThemeWin32Classic.cs:
22613 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
22614 him using the function for flatstyle drawing
22615 - Changed functions to use the new version of CPDrawBorder3D
22617 2004-10-12 21:15 pbartok
22620 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
22621 match MS documentation. They need to return defined colors if the
22622 passed color matches the configured control color. Thanks to John
22623 BouAntoun for pointing this out.
22625 2004-10-12 20:57 pbartok
22628 - Fix from John BouAntoun: Raise ForeColorChanged event when text
22631 2004-10-12 20:46 pbartok
22634 - Fix from John BouAntoun: Now properly sets the Appearance property
22636 2004-10-12 20:45 pbartok
22638 * ThemeWin32Classic.cs:
22639 - Fixes from John BouAntoun: now handles forecolors and backcolors
22640 for flatstyle rendered controls much better; It also fixes normal
22641 checkbox rendering when pushed or disabled.
22643 2004-10-08 02:50 jordi
22645 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
22648 2004-10-07 08:56 jordi
22650 * ThemeWin32Classic.cs: Removes deletion of cached brushes
22652 2004-10-06 03:59 jordi
22654 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
22655 XplatUIWin32.cs: removes warnings from compilation
22657 2004-10-05 12:23 jackson
22659 * RadioButton.cs: Fix ctor
22661 2004-10-05 11:10 pbartok
22664 - Partial implementation by Benjamin Dasnois
22666 2004-10-05 10:15 jackson
22668 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
22671 2004-10-05 03:07 ravindra
22674 - Removed a private method, Draw ().
22675 - Fixed the ButtonDropDown event handling.
22676 - Fixed MouseMove event handling.
22678 2004-10-05 03:04 ravindra
22680 * ThemeWin32Classic.cs:
22681 - Added DrawListView method and ListViewDefaultSize property.
22682 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
22683 - Changed DOS style CRLF to Unix format (dos2unix).
22685 2004-10-05 03:03 ravindra
22688 - Added DrawListView method and ListViewDefaultSize property.
22690 2004-10-05 02:42 ravindra
22692 * ToolBarButton.cs: Added an internal member dd_pressed to handle
22693 clicks on DropDown arrow.
22695 2004-10-04 22:56 jackson
22697 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
22698 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
22699 Control handle the buffers, derived classes should not have to
22700 CreateBuffers themselves.
22702 2004-10-04 21:20 jackson
22704 * StatusBar.cs: The control handles resizing the buffers now.
22706 2004-10-04 21:18 jackson
22708 * Control.cs: When resizing the buffers should be invalidated. This
22709 should be handled in Control not in derived classes.
22711 2004-10-04 14:45 jackson
22715 2004-10-04 02:14 pbartok
22717 * LeftRightAlignment.cs:
22720 2004-10-04 01:09 jordi
22722 * ThemeWin32Classic.cs: fixes right button position causing right
22723 button not showing on horizontal scrollbars
22725 2004-10-02 13:12 pbartok
22728 - Simplified the Invalidate method by using an X call instead of
22729 generating the expose ourselves
22730 - Added an expose when the window background is changed
22731 - Implemented ClientToScreen method
22733 2004-10-02 13:08 pbartok
22736 - Added Win32EnableWindow method (test for implementing modal
22738 - Added ClientToScreen method and imports
22740 2004-10-02 13:07 pbartok
22742 * XplatUI.cs, XplatUIDriver.cs:
22743 - Added ClientToScreen coordinate translation method
22745 2004-10-02 13:06 pbartok
22747 * KeyPressEventArgs.cs:
22748 - Fixed access level for constructor
22750 2004-10-02 13:06 pbartok
22753 - Changed access level for the window_collection hash table
22755 2004-10-02 13:05 pbartok
22758 - Added KeyPreview property
22759 - Added Menu property (still incomplete, pending Jordi's menu work)
22760 - Implemented ProcessCmdKey
22761 - Implemented ProcessDialogKey
22762 - Implemented ProcessKeyPreview
22764 2004-10-02 13:02 pbartok
22767 - Added private method to get the Control object from the window
22769 - Implemented ContextMenu property
22770 - Implemented PointToScreen
22771 - Implemented PreProcessMessage
22772 - Implemented IsInputChar
22773 - Implemented IsInputKey
22774 - Implemented ProcessCmdKey
22775 - Completed ProcessKeyEventArgs
22776 - Fixed message loop to call the proper chain of functions on key
22778 - Implemented ProcessDialogChar
22779 - Implemented ProcessDialogKey
22780 - Implemented ProcessKeyMessage
22781 - Implemented ProcessKeyPreview
22782 - Added RaiseDragEvent stub (MS internal method)
22783 - Added RaiseKeyEvent stub (MS internal method)
22784 - Added RaiseMouseEvent stub (MS Internal method)
22785 - Added RaisePaintEvent stub (MS Internal method)
22786 - Added ResetMouseEventArgs stub (MS Internal method)
22787 - Implemented RtlTranslateAlignment
22788 - Implemented RtlTranslateContent
22789 - Implemented RtlTranslateHorizontal
22790 - Implemented RtlTranslateLeftRight
22791 - Added generation of KeyPress event
22793 2004-10-02 05:57 ravindra
22795 * ListViewItem.cs: Added attributes.
22797 2004-10-02 05:32 ravindra
22799 * ListView.cs: Added attributes.
22801 2004-10-01 11:53 jackson
22803 * Form.cs: Implement the Close method so work on MessageBox can
22806 2004-09-30 14:06 pbartok
22811 2004-09-30 11:34 jackson
22813 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
22815 2004-09-30 07:26 ravindra
22817 * ListViewItemConverter.cs: Converter for ListViewItem.
22819 2004-09-30 07:26 ravindra
22821 * SortOrder.cs: Enum for ListView control.
22823 2004-09-30 07:25 ravindra
22825 * ColumnHeader.cs: Supporting class for ListView control.
22827 2004-09-30 07:24 ravindra
22829 * ListView.cs, ListViewItem.cs: Initial implementation.
22831 2004-09-30 07:20 ravindra
22833 * ItemActivation.cs: Enum for ListView Control.
22835 2004-09-29 20:29 pbartok
22838 - Added lookup of pixel value for background color; tries to get a
22839 color 'close' to the requested color, it avoids having to create a
22840 colormap. Depending on the display this could mean the used color
22841 is slightly off the desired color. Might have to change it to a more
22842 resource intensive colormap approach, but it will work as a
22843 workaround to avoid red screens.
22845 2004-09-29 14:27 jackson
22847 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
22849 2004-09-28 12:44 pbartok
22851 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
22852 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
22853 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
22854 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
22855 TrackBar.cs, VScrollBar.cs:
22856 - Streamlined Theme interfaces:
22857 * Each DrawXXX method for a control now is passed the object for
22858 the control to be drawn in order to allow accessing any state the
22859 theme might require
22861 * ControlPaint methods for the theme now have a CP prefix to avoid
22862 name clashes with the Draw methods for controls
22864 * Every control now retrieves it's DefaultSize from the current
22867 2004-09-28 12:17 jackson
22869 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
22872 2004-09-24 14:57 jackson
22874 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
22875 Gives us a nice little performance boost.
22877 2004-09-24 12:02 jackson
22879 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
22880 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
22881 Control and supporting classes. Initial checkin
22883 2004-09-23 13:08 jackson
22885 * Form.cs: Temp build fixage
22887 2004-09-23 01:39 ravindra
22889 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
22890 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
22891 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
22892 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
22893 EventHandlers needed by ListView Control.
22895 2004-09-22 14:12 pbartok
22897 * ScrollableControl.cs:
22898 - Implemented DockPadding property
22899 - Implemented AutoScroll property
22900 - Implemented AutoScrollMargin property
22901 - Implemented AutoScrollMinSize property
22902 - Implemented AutoScrollPosition property
22903 - Implemented DisplayRectangle property (still incomplete)
22904 - Implemented CreateParams property
22905 - Implemented HScroll property
22906 - Implemented VScroll property
22907 - Implemented OnVisibleChanged property
22909 2004-09-22 14:09 pbartok
22912 - Added Form.ControllCollection class
22913 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
22914 RemoveOwnedForm (still incomplete, missing on-top and common
22915 minimize/maximize behaviour)
22916 - Added StartPosition property (still incomplete, does not use when
22918 - Added ShowDialog() methods (still incomplete, missing forcing the
22921 2004-09-22 14:05 pbartok
22924 - Added message loop for modal dialogs
22926 2004-09-22 14:02 pbartok
22929 - Fixed wrong types for events
22931 2004-09-22 14:00 pbartok
22933 * Shortcut.cs, FormWindowState.cs:
22934 - Fixed wrong values
22936 2004-09-22 12:01 jackson
22938 * Control.cs: Text is never null
22940 2004-09-20 22:14 pbartok
22943 - Fixed accessibility level for Idle handler
22945 2004-09-20 18:54 jackson
22947 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
22948 XplatUIX11.cs: New message loop that uses poll so we don't get a
22951 2004-09-17 10:43 pbartok
22954 - Fixed behaviour of arrow buttons. Now properly behaves like
22955 Buttons (and like Microsoft's scrollbar arrow buttons)
22957 2004-09-17 10:14 pbartok
22960 - Added missing release of keyboard/mouse capture
22962 2004-09-17 06:18 jordi
22964 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
22965 Theme.cs: Very early menu support
22967 2004-09-16 17:45 pbartok
22970 - Fixed sending a window to the front
22971 - Added overload for SetWindowPos to avoid casting
22973 2004-09-16 17:44 pbartok
22976 - Added SendToBack and BringToFront methods
22978 2004-09-16 07:00 ravindra
22980 * Copyright: Added Novell URL.
22982 2004-09-16 07:00 ravindra
22984 * ToolBar.cs: Invalidate should be done before redrawing.
22986 2004-09-15 21:19 ravindra
22988 * ColumnHeaderStyle.cs: Enum for ListView Control.
22990 2004-09-15 21:18 ravindra
22992 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
22995 2004-09-13 18:26 jackson
22997 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
23000 2004-09-13 18:13 jackson
23002 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
23003 a second thread and post messages into the main threads message
23004 queue. This makes timing much more consistent. Both win2K and XP
23005 have a minimum timer value of 15 milliseconds, so we now do this
23008 2004-09-13 15:18 pbartok
23010 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23012 - Added Z-Ordering methods
23014 2004-09-13 10:56 pbartok
23017 - Fixed #region names
23018 - Moved properties and methods into their proper #regions
23020 2004-09-13 10:51 pbartok
23023 - Added Accept and CancelButton properties
23024 - Added ProcessDialogKey() method
23026 2004-09-13 08:18 pbartok
23028 * IWindowTarget.cs:
23031 2004-09-10 21:50 pbartok
23034 - Added DoDragDrop() [incomplete]
23035 - Properly implemented 'Visible' handling
23036 - Added SetVisibleCore()
23037 - Implemented FindChildAtPoint()
23038 - Implemented GetContainerControl()
23039 - Implemented Hide()
23041 2004-09-10 19:28 pbartok
23044 - Moved methods into their appropriate #regions
23045 - Reordered methods within regions alphabetically
23047 2004-09-10 18:57 pbartok
23049 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23050 - Added method to retrieve text from window
23052 2004-09-10 18:56 pbartok
23055 - Moved some internal functions into the internal region
23056 - Implemented FontHeight
23057 - Implemented RenderRightToLeft
23058 - Implemented ResizeRedraw
23059 - Implemented ShowFocusCues
23060 - Implemented ShowKeyboardCues
23061 - Implemented FromChildHandle
23062 - Implemented FromHandle
23063 - Implemented IsMnemonic
23064 - Implemented ReflectMessage
23065 - All public and protected Static Methods are now complete
23067 2004-09-10 16:54 pbartok
23070 - Implemented remaining missing public instance properties
23071 - Alphabetized some out of order properties
23073 2004-09-10 05:51 ravindra
23075 * PictureBox.cs: Added a check for null image.
23077 2004-09-10 00:59 jordi
23079 * GroupBox.cs: remove cvs tag
23081 2004-09-09 05:25 ravindra
23083 * ToolBar.cs: Make redraw accessible from ToolBarButton.
23085 2004-09-09 05:23 ravindra
23087 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
23090 2004-09-09 02:28 pbartok
23092 * ThemeWin32Classic.cs:
23093 - Improve disabled string look
23095 2004-09-09 01:15 jordi
23097 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
23100 2004-09-08 23:56 ravindra
23102 * ItemBoundsPortion.cs: It's enum, not a class!
23104 2004-09-08 23:47 ravindra
23106 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
23109 2004-09-08 21:13 ravindra
23111 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
23114 2004-09-08 21:03 ravindra
23116 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
23119 2004-09-08 21:01 ravindra
23121 * ScrollableControl.cs: Removed unreachable code.
23123 2004-09-08 06:45 jordi
23125 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
23127 2004-09-08 01:00 jackson
23129 * XplatUIX11.cs: Only run the timers when updating the message
23130 queue. This effectively gives X messages a higher priority then
23131 timer messages. Timers still need love though
23133 2004-09-07 14:01 jackson
23135 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
23136 this for us and the handle is no longer valid.
23138 2004-09-07 13:59 jackson
23140 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
23141 loop that manages to not crash. TODO: Add poll and cleanup timers
23143 2004-09-07 11:12 jordi
23145 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
23147 2004-09-07 03:40 jordi
23149 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
23150 fixes, methods, multiple links
23152 2004-09-06 06:55 jordi
23154 * Control.cs: Caches ClientRectangle rectangle value
23156 2004-09-05 02:03 jordi
23158 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
23161 2004-09-04 11:10 jordi
23163 * Label.cs: Refresh when font changed
23165 2004-09-02 16:24 pbartok
23168 - Added sanity check to creation of double buffer bitmap
23170 2004-09-02 16:24 pbartok
23173 - Fixed selection of text color
23174 - Fixed handling of resize event; now properly recreates double
23176 - Added missing assignment of TextAlignment
23177 - Added proper default for TextAlignment
23179 2004-09-02 14:26 pbartok
23182 - Added missing RadioButton.RadioButtonAccessibleObject class
23184 2004-09-02 14:26 pbartok
23187 - Added missing Control.ControlAccessibleObject class
23188 - Started to implement Select()ion mechanisms, still very incomplete
23190 2004-09-02 14:25 pbartok
23192 * AccessibleObject.cs:
23193 - Added missing methods
23195 2004-09-02 14:23 pbartok
23197 * AccessibleNavigation.cs, AccessibleSelection.cs:
23200 2004-09-02 10:32 jordi
23202 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
23203 pool for pens, brushes, and hatchbruses
23205 2004-09-01 15:30 jackson
23207 * StatusBar.cs: Fix typo
23209 2004-09-01 14:44 pbartok
23214 2004-09-01 14:39 pbartok
23216 * Button.cs, RadioButton.cs:
23217 - Functional initial check-in
23219 2004-09-01 14:01 pbartok
23222 - Added missing default
23223 - Added missing region mark
23225 2004-09-01 09:10 jordi
23227 * Label.cs: fixes method signatures, new methods, events, fixes
23230 2004-09-01 07:19 jordi
23232 * Control.cs: Init string variables with an empty object
23234 2004-09-01 04:20 jordi
23236 * Control.cs: fires OnFontChanged event
23238 2004-08-31 20:07 pbartok
23241 - Enabled display of strings
23243 2004-08-31 20:05 pbartok
23246 - Added (partial) implementation of DialogResult; rest needs to be
23247 implemented when the modal loop code is done
23249 2004-08-31 19:55 pbartok
23252 - Fixed to match the removal of the needs_redraw concept
23254 2004-08-31 19:55 pbartok
23257 - Removed the rather odd split between 'needs redraw' and redrawing
23258 - Now handles the events that require regeneration (ambient
23259 properties and size)
23261 2004-08-31 19:41 pbartok
23264 - Added firing of BackColorChanged event
23265 - Added TopLevelControl property
23266 - Fixed handling of WM_ERASEBKGRND message
23268 2004-08-31 12:49 pbartok
23274 2004-08-31 12:48 pbartok
23277 - Finished (famous last words)
23279 2004-08-31 04:35 jordi
23281 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
23282 scrolling bugs, adds new methods
23284 2004-08-30 14:42 pbartok
23287 - Implemented CheckBox drawing code
23289 2004-08-30 14:42 pbartok
23292 - Made Redraw() and CheckRedraw() virtual
23293 - Improved mouse up/down/move logic to properly track buttons
23295 2004-08-30 09:44 pbartok
23298 - Updated to fix broken build. Not complete yet.
23300 2004-08-30 09:28 pbartok
23305 2004-08-30 09:17 pbartok
23310 2004-08-27 16:12 ravindra
23312 * ToolBarButton.cs: Added TypeConverter attribute.
23314 2004-08-27 16:07 ravindra
23316 * ImageIndexConverter.cs: Implemented.
23318 2004-08-27 14:17 pbartok
23321 - Removed unneeded stack vars
23322 - First attempt to fix sizing issues when layout is suspended
23324 2004-08-25 15:35 jordi
23326 * ScrollBar.cs: more fixes to scrollbar
23328 2004-08-25 14:04 ravindra
23330 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
23331 Added the missing divider code and grip for ToolBar Control.
23333 2004-08-25 13:20 pbartok
23336 - Control now properly passes the ambient background color to child
23339 2004-08-25 13:20 jordi
23341 * ScrollBar.cs: small bug fix regarding bar position
23343 2004-08-25 12:33 pbartok
23346 - Now only calls SetTimer or KillTimer if the enabled state has
23349 2004-08-25 12:33 pbartok
23352 - Fixed timer handling, now seems to work
23353 - Improved error message for window creation
23355 2004-08-25 12:32 pbartok
23358 - Fixed generation of MouseUp message
23360 2004-08-25 12:29 jordi
23362 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
23363 and fixes for progressbar
23365 2004-08-24 18:43 ravindra
23367 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
23368 in ToolBar control.
23370 2004-08-24 17:15 pbartok
23374 - Added missing events
23377 2004-08-24 17:14 pbartok
23379 * StatusBar.cs, PictureBox.cs:
23380 - Now uses Control's CreateParams
23382 2004-08-24 16:36 pbartok
23385 - Fixed background color handling
23386 - Fixed sending of enter/leave events on a grab
23388 2004-08-24 16:35 pbartok
23391 - Refined definitions for CrossingEvent
23393 2004-08-24 12:37 jordi
23395 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
23396 formmating, methods signature, and adds missing events
23398 2004-08-24 12:24 jordi
23400 * Control.cs: fire OnEnabledChanged event
23402 2004-08-24 11:17 pbartok
23405 - Implemented SetTimer() and KillTimer()
23407 2004-08-24 11:16 pbartok
23410 - Now uses Remove instead of Add to kill the timer
23412 2004-08-24 10:16 jackson
23414 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
23415 picture boxes in the theme now. Draw picture box borders and obey
23418 2004-08-24 05:49 jackson
23420 * Timer.cs: Remove top secret debugging code
23422 2004-08-24 05:34 jackson
23424 * PictureBox.cs: Temp hack to make picture boxes draw their full
23427 2004-08-24 05:29 jackson
23429 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23430 XplatUIX11.cs: Move timers to the driver level. On X they are
23431 queued by the driver and checked on idle.
23433 2004-08-24 01:07 jackson
23435 * XplatUIX11.cs: Use a queue for async messages instead of passing
23436 them as ClientMessages since that was totally broken. Also simply
23437 check for events and return an idle message if none are found. This
23438 gives us an idle handler, and prevents deadlocking when no messages
23441 2004-08-23 18:19 ravindra
23443 * XplatUIWin32.cs: Removed the unwanted destructor.
23445 2004-08-23 17:27 pbartok
23448 - Finishing touches. Works now, just needs some optimizations.
23450 2004-08-23 16:53 jordi
23452 * ScrollBar.cs: small fix
23454 2004-08-23 16:45 pbartok
23457 - Removed debug output
23460 2004-08-23 16:43 jordi
23462 * ScrollBar.cs: [no log message]
23464 2004-08-23 16:10 pbartok
23467 - Fixed handling of WM_CLOSE message
23468 - Removed debug output
23470 2004-08-23 16:09 pbartok
23473 - Added handling of Idle event
23474 - Added handling of form closing
23475 - Fixed reporting of MessageLoop property
23476 - Removed some unneeded code, should provide a bit of a speedup
23478 2004-08-23 15:22 pbartok
23481 - Added InitLayout() method
23482 - Added code to properly perform layout when Anchor or Dock property
23484 - Changed 'interpretation' of ResumeLayout. MS seems to have a
23485 LAMESPEC, tried to do it in a way that makes sense
23487 2004-08-23 14:10 jordi
23489 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
23490 properties and methods
23492 2004-08-23 13:55 pbartok
23495 - Properly fixed Jordi's last fix
23496 - Now uses Cursor's Position property instead of calling XplatUI
23499 2004-08-23 13:44 jordi
23501 * PaintEventHandler.cs: Adding missing attribute
23503 2004-08-23 13:39 pbartok
23506 - Implemented Position property
23508 2004-08-23 13:39 pbartok
23510 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23511 - Added method to move mouse cursor
23513 2004-08-23 13:39 pbartok
23516 - Fixed setting of background color
23517 - Added method to move mouse cursor
23519 2004-08-23 13:16 jordi
23521 * Control.cs: avoids null exception
23523 2004-08-22 17:46 jackson
23525 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
23528 2004-08-22 17:40 jackson
23530 * XplatUIX11.cs: Add some missing locks
23532 2004-08-22 15:10 pbartok
23534 * Control.cs, Form.cs:
23535 - Removed OverlappedWindow style from Control, instead it's default
23537 - Made form windows OverlappedWindow by default
23539 2004-08-22 13:34 jackson
23541 * ScrollBar.cs: Update the position through the Value property so
23542 the OnValueChanged event is raised.
23544 2004-08-22 12:04 pbartok
23547 - Added Cursor.cs and UserControl.cs
23549 2004-08-22 12:03 pbartok
23552 - Started implementation, not usable yet
23554 2004-08-22 12:00 pbartok
23557 - Implemented UserControl (complete)
23559 2004-08-21 19:20 ravindra
23561 * ToolBar.cs: Correcting the formatting mess of VS.NET.
23563 2004-08-21 18:49 ravindra
23565 * ToolBar.cs: Probably this completes the missing attributes in
23568 2004-08-21 18:03 ravindra
23570 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
23571 Fixed toolbar control signatures.
23573 2004-08-21 16:32 pbartok
23578 2004-08-21 16:30 pbartok
23583 2004-08-21 16:19 pbartok
23585 * Control.cs, Label.cs:
23588 2004-08-21 15:57 pbartok
23591 - Added loads of debug output for development
23592 - Fixed typo in method name
23594 2004-08-21 15:52 pbartok
23596 * ToolBarButtonClickEventArgs.cs:
23597 - Added missing base class
23599 2004-08-21 14:53 pbartok
23602 - Updated to match new GrabWindow signature
23604 2004-08-21 14:51 pbartok
23606 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23607 - Added method to get default display size
23609 2004-08-21 14:23 pbartok
23611 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23612 - Added method to query current grab state
23613 - Added argument to allow confining a grab to a window
23615 2004-08-21 14:22 pbartok
23618 - Added [Flags] attribute so that modifiers can be used in bitwise
23621 2004-08-21 14:21 pbartok
23623 * TrackBar.cs, ScrollBar.cs:
23624 - Replaced direct XplatUI calls with their Control counterpart
23626 2004-08-21 13:32 pbartok
23629 - Implemented Created property
23631 2004-08-21 13:28 pbartok
23634 - Implemented ContainsFocus
23636 2004-08-21 13:26 pbartok
23639 - Implemented CausesValidation
23641 2004-08-21 13:21 pbartok
23644 - Implemented CanFocus
23645 - Implemented CanSelect
23646 - Implemented Capture
23648 2004-08-21 12:35 pbartok
23651 - Fixed bug with Async message handling
23652 - Implemented getting the ModifierKeys
23654 2004-08-21 12:32 jackson
23656 * AsyncMethodResult.cs: Make sure we have the mutex before we
23657 release it. Fixes BeginInvoke on windows
23659 2004-08-21 11:31 pbartok
23661 * XplatUIWin32.cs, XplatUIX11.cs:
23662 - Drivers now return proper mouse state
23664 2004-08-21 10:54 jackson
23666 * Control.cs: Implement EndInvoke
23668 2004-08-21 10:48 jackson
23670 * Timer.cs: Remove unneeded finalizer
23672 2004-08-20 19:52 ravindra
23674 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
23675 in mouse event handling in the ToolBar control.
23677 2004-08-20 19:50 ravindra
23679 * ImageList.cs: Changed draw method to use the arguments passed in
23682 2004-08-20 18:58 pbartok
23684 * XplatUIStructs.cs:
23685 - Added private message for async communication
23687 2004-08-20 17:38 ravindra
23689 * Control.cs: Made RightToLeft property virtual and removed a
23692 2004-08-20 14:39 jordi
23694 * ThemeGtk.cs: use style_attach
23696 2004-08-20 14:39 pbartok
23699 - Added jackson's Async code from X11 to Win32
23701 2004-08-20 14:09 pbartok
23704 - Added all new files
23706 2004-08-20 14:09 pbartok
23709 - Added call to set window background color
23711 2004-08-20 14:03 pbartok
23713 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
23714 - Added method for setting the window background
23716 2004-08-20 14:02 pbartok
23719 - Added method for setting the background color
23720 - Added handling for erasing the window background
23722 2004-08-20 13:45 jordi
23724 * TrackBar.cs: fixes timer, new properties and methods
23726 2004-08-20 13:34 jackson
23728 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
23731 2004-08-20 13:22 jackson
23733 * Timer.cs: Timer Tick events are now handed through Controls Async
23734 mechanism so the callbacks are executed in the same thread as X
23736 2004-08-20 13:19 jackson
23738 * XplatUIDriver.cs: Expose functionality to send async messages
23741 2004-08-20 13:18 jackson
23743 * Control.cs: Implement Begininvoke
23745 2004-08-20 13:14 jackson
23747 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
23748 messages through the driver
23750 2004-08-20 13:12 jackson
23752 * XplatUIX11.cs: Lock before all X operations. Also added Async
23753 method functionality through XSendEvent
23755 2004-08-20 13:11 jackson
23757 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
23758 This will screw up on 64 bit systems)
23760 2004-08-20 13:10 jackson
23762 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
23763 Async messages through X/Win32
23765 2004-08-19 19:39 pbartok
23768 - Updated code to match new HandleData.DeviceContext type
23770 2004-08-19 19:38 pbartok
23773 - Made DeviceContext a generic object to allow usage from various
23775 - Added support for queueing Windows messages
23777 2004-08-19 19:37 pbartok
23780 - Added generation of MouseEnter, MouseLeave and MouseHover events
23781 - Added cleanup on EndPaint
23783 2004-08-19 19:17 pbartok
23786 - Added handling of WM_MOUSEHOVER
23787 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
23790 2004-08-19 18:55 jordi
23792 * ThemeGtk.cs: fixes button order
23794 2004-08-19 18:12 jordi
23796 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
23798 2004-08-19 17:09 pbartok
23801 - Added Right property
23802 - Added RightToLeft property
23804 2004-08-19 16:27 jordi
23806 * ThemeGtk.cs: experimental GTK theme support
23808 2004-08-19 16:26 jordi
23810 * ITheme.cs, Theme.cs: move themes from an interface to a class
23812 2004-08-19 16:25 jordi
23814 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
23817 2004-08-19 16:04 pbartok
23820 - Added colormap basics
23821 - Added a way to re-initialize with a different display handle
23822 - Fixed setting of the window background color
23823 - Added various X11 imports related to colors and colormaps
23825 2004-08-19 15:51 pbartok
23828 - Removed packing hints (Paolo suggested this a while back)
23829 - fixed colormap type
23830 - Added default Atom types
23831 - Added Screen and color structs and enums
23833 2004-08-19 15:39 pbartok
23836 - Added missing Draw() method
23837 - Added missing RecreateHandle event
23839 2004-08-19 15:30 pbartok
23842 - Added handling of WM_CLOSE
23844 2004-08-18 13:16 jordi
23846 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
23849 2004-08-18 09:56 jordi
23851 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
23853 2004-08-17 15:31 ravindra
23855 * SWF.csproj: Updated project.
23857 2004-08-17 15:25 pbartok
23860 - Drawing improvement; don't call UpdateBounds if we are not visible
23861 (or have been minimized)
23863 2004-08-17 15:24 pbartok
23866 - Finished IsVisible
23867 - Added Win32GetWindowPlacement
23869 2004-08-17 15:08 jackson
23871 * Panel.cs: Initial checkin of the Panel
23873 2004-08-17 14:25 pbartok
23876 - Fixed broken handling of default window sizes
23878 2004-08-17 13:29 jackson
23880 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
23881 has a large startup time.
23883 2004-08-17 10:25 jackson
23885 * HandleData.cs: union areas properly
23887 2004-08-17 10:12 jackson
23889 * HandleData.cs: union areas properly
23891 2004-08-16 20:00 ravindra
23893 * ToolBar.cs, ToolBarButton.cs: Added attributes.
23895 2004-08-16 18:48 ravindra
23897 * ToolBar.cs: Added attributes.
23899 2004-08-16 17:17 ravindra
23901 * SWF.csproj: Updated project.
23903 2004-08-16 17:16 jackson
23905 * XplatUIX11.cs: Check for more expose events before sending a
23906 WM_PAINT so they can all be grouped together. This makes dragging a
23907 window across another window redraw in a sane way.
23909 2004-08-16 15:47 pbartok
23912 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
23913 support OnMouseEnter/Leave()
23914 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
23917 2004-08-16 15:46 pbartok
23919 * XplatUIStructs.cs, XplatUIX11.cs:
23920 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
23921 OnMouseEnter/Leave()
23923 2004-08-16 15:34 jackson
23925 * XplatUIX11.cs: Group multiple expose events in HandleData, make
23926 sure messages get the message field set to WM_NULL if they are not
23929 2004-08-16 15:24 jackson
23931 * HandleData.cs: HandleData is used for storing message information
23934 2004-08-15 17:23 ravindra
23936 * ColorDepth.cs: Added attribute.
23938 2004-08-15 17:23 ravindra
23940 * SWF.csproj: Updated project for ToolBar Control.
23942 2004-08-15 17:20 ravindra
23944 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
23945 control and also dos2unix format.
23947 2004-08-15 17:13 ravindra
23949 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
23950 ToolBarButtonClickEventArgs.cs,
23951 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
23952 ToolBarTextAlign.cs: First Implementation of ToolBar control.
23954 2004-08-15 15:31 pbartok
23957 - First (mostly) working version
23959 2004-08-13 16:15 pbartok
23962 - Fixed Anchor default
23964 2004-08-13 15:43 pbartok
23967 - Changed GetCursorPos signature
23969 2004-08-13 15:42 pbartok
23971 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23972 - Changed signature for GetCursorPos
23974 2004-08-13 15:25 pbartok
23978 - Fixed resizing/exposure handling
23980 2004-08-13 15:22 jordi
23982 * ThemeWin32Classic.cs: removes redundant code and fixes issues
23985 2004-08-13 14:55 jordi
23987 * TrackBar.cs: change from wndproc to events
23989 2004-08-13 13:00 jordi
23991 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23992 XplatUIX11.cs: implements PointToClient (ScreenToClient)
23994 2004-08-13 12:53 pbartok
23997 - Changed GetWindowPos to also provide client area size
23998 - Fixed broken prototypes for several win32 functions
24000 2004-08-13 12:53 pbartok
24002 * XplatUI.cs, XplatUIDriver.cs:
24003 - Changed GetWindowPos to also provide client area size
24005 2004-08-13 12:52 pbartok
24008 - Added generation of WM_POSCHANGED
24009 - Changed GetWindowPos to also provide client area size
24011 2004-08-13 12:52 pbartok
24014 - Added Dispose() and destructor
24015 - Fixed resizing and bounds calculation
24017 - Added memory savings for invisible windows
24019 2004-08-13 12:46 jordi
24021 * TrackBar.cs: adds timer and grap window
24023 2004-08-13 10:25 jackson
24025 * Timer.cs: SWF Timer
24027 2004-08-12 16:59 pbartok
24029 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24030 - Implemented method to get current mouse position
24032 2004-08-12 14:29 jordi
24034 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
24035 enhancement, fix mouse problems, highli thumb, etc
24037 2004-08-12 13:31 pbartok
24040 - Fixed Anchoring bugs
24042 2004-08-12 13:01 jackson
24044 * StatusBar.cs: Don't forget things
24046 2004-08-12 12:54 jackson
24048 * ThemeWin32Classic.cs: Handle owner draw status bars
24050 2004-08-12 12:54 jackson
24052 * StatusBar.cs: Implement missing properties, events, and methods.
24053 Handle mouse clicking
24055 2004-08-12 10:19 jackson
24057 * StatusBarPanelClickEventArgs.cs,
24058 StatusBarPanelClickEventHandler.cs: Classes for handling status
24059 bar panel click events
24061 2004-08-12 10:10 jackson
24063 * Control.cs: Add missing properties
24065 2004-08-12 09:46 pbartok
24067 * BindingsManagerBase.cs:
24068 - Name changed to BindingManagerBase.cs
24070 2004-08-12 09:25 jordi
24072 * ScrollableControl.cs: calls ctrlbase instead of exeception
24074 2004-08-11 16:28 pbartok
24076 * InputLanguageChangingEventArgs.cs:
24077 - Never check in before compiling. Fixes the last check-in
24079 2004-08-11 16:26 pbartok
24081 * InputLanguageChangingEventArgs.cs:
24082 - More signature fixes
24084 2004-08-11 16:20 pbartok
24086 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
24087 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
24088 ImageListStreamer.cs, InputLanguage.cs,
24089 InputLanguageChangedEventArgs.cs,
24090 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
24091 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
24092 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
24093 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24096 2004-08-11 16:16 pbartok
24100 - Added .Net 1.1 method
24102 2004-08-11 15:25 pbartok
24105 - Fixed BindingManagerBase.cs filename
24107 2004-08-11 15:22 pbartok
24109 * BindingManagerBase.cs:
24110 - Was checked in with wrong filename
24112 2004-08-11 14:50 pbartok
24117 2004-08-11 13:41 jordi
24119 * XplatUIWin32.cs: Fixes ClientRect
24121 2004-08-11 13:19 pbartok
24123 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24125 - We had SetWindowPos and MoveWindow to set window positions and
24126 size, removed MoveWindow. We have GetWindowPos, so it made sense to
24127 keep SetWindowPos as matching counterpart
24128 - Added some X11 sanity checking
24130 2004-08-11 12:59 pbartok
24133 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
24134 (It seems that SetBounds is just a front for SetBoundsCore and
24135 SetBoundsCore updates the underlying window system and
24136 UpdateBounds is responsible for updating the variables associated
24137 with the Control and sending the events)
24138 - Major cleanup of Size handling; we now have two sizes, client_size
24139 and bounds. Bounds defines the window with decorations, client_size
24142 2004-08-11 12:55 pbartok
24144 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24145 - Added method to calculate difference between decorated window and
24148 2004-08-11 12:54 pbartok
24151 - Forcing redraw on resize
24153 2004-08-11 11:43 pbartok
24156 - Removed disposing of the actual images when the list is disposed
24158 2004-08-11 09:13 pbartok
24161 - Now properly reparents windows
24163 2004-08-11 08:37 pbartok
24168 2004-08-11 07:47 pbartok
24171 - Rewrote the collection stuff. Might not be as fast now, not
24172 keeping the number of children around and accessible directly, but
24173 it's more straightforward
24175 2004-08-11 07:44 pbartok
24177 * AccessibleObject.cs:
24178 - Fixed to match ControlCollection rewrite
24180 2004-08-11 07:43 pbartok
24183 - Added missing creation of the collection list
24185 2004-08-10 20:08 jackson
24187 * StatusBar.cs: Get the paint message from WndProc
24189 2004-08-10 19:31 jackson
24191 * ThemeWin32Classic.cs: Create Brushes as little as possible
24193 2004-08-10 19:20 jackson
24195 * UICues.cs: Add Flags attribute
24197 2004-08-10 19:19 jackson
24199 * StatusBarPanel.cs: Signature cleanup
24201 2004-08-10 19:10 jackson
24203 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
24204 Initial implementation of status bar item drawing
24206 2004-08-10 17:27 jordi
24208 * TrackBar.cs: add missing methods, properties, and restructure to
24211 2004-08-10 16:24 jackson
24213 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
24214 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
24217 2004-08-10 13:21 jordi
24219 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
24220 enhancements and standarize on win colors defaults
24222 2004-08-10 12:52 jackson
24224 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
24225 ThemeWin32Classic.cs: Implement DrawItem functionality
24227 2004-08-10 12:47 jordi
24229 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
24231 2004-08-10 12:32 jordi
24233 * Control.cs: throw ontextchange event
24235 2004-08-10 11:43 pbartok
24238 - Added more to the still unfinished Dock/Anchor layout code
24240 2004-08-10 11:39 pbartok
24242 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24243 - Added GetWindowPos method
24245 2004-08-10 11:36 pbartok
24248 - Implemented several methods
24250 2004-08-10 09:47 jackson
24252 * TrackBar.cs: Allow control to handle buffering
24254 2004-08-10 09:41 jackson
24256 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
24258 2004-08-10 09:24 jackson
24260 * Label.cs, LinkLabel.cs: Let Control handle buffering.
24262 2004-08-10 09:09 jackson
24264 * StatusBar.cs: Let Control handle all the buffering.
24266 2004-08-10 09:08 jackson
24268 * Control.cs: Control will now handle the buffering code, so each
24269 control does not have to implement this.
24271 2004-08-10 08:34 jackson
24273 * XplatUIDriver.cs: Use default colors from the theme
24275 2004-08-09 17:12 pbartok
24278 - Fixed several bugs Ravindra pointed out
24280 2004-08-09 16:11 pbartok
24283 - Added incomplete dock layout code
24284 - Added support for mouse wheel
24286 2004-08-09 16:09 pbartok
24289 - Added handling for middle and right mousebutton
24290 - Added handling for mouse wheel
24291 - Added handling for key state and mouse state and position
24292 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
24295 2004-08-09 15:40 jackson
24297 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
24298 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
24301 2004-08-09 15:37 jackson
24303 * StatusBar.cs: Initial implementation of StatusBar
24305 2004-08-09 15:36 jackson
24307 * ITheme.cs: Add support for drawing status bar and getting status
24310 2004-08-09 15:35 pbartok
24315 2004-08-09 15:34 jackson
24317 * ThemeWin32Classic.cs: Add support for drawing status bar and get
24318 status bar item sizes
24320 2004-08-09 15:21 jackson
24322 * ThemeWin32Classic.cs: Use known colors for default control
24325 2004-08-09 15:12 jackson
24327 * ThemeWin32Classic.cs: Make the default font static, it is static
24328 in control so this doesn't change functionality and creating fonts
24331 2004-08-09 14:56 pbartok
24334 - Added GrabMode enum
24336 2004-08-09 14:55 pbartok
24338 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24339 - Removed Run method, was only required for initial development
24341 2004-08-09 14:51 pbartok
24343 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24344 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
24347 2004-08-09 13:48 pbartok
24350 - Fixed default sizing for child windows
24352 2004-08-09 12:56 pbartok
24355 - Added generation of WM_DESTROY message
24356 - Added handling of window manager induced shutdown
24358 2004-08-09 11:31 jackson
24360 * ThemeWin32Classic.cs: New names for control properties
24362 2004-08-09 11:25 jackson
24364 * Control.cs: Use new color names
24366 2004-08-09 11:02 jackson
24368 * XplatUI.cs: Get default window properties from the theme
24370 2004-08-09 11:01 jackson
24372 * ITheme.cs: The theme engine now controls default window
24375 2004-08-09 11:00 jackson
24377 * ThemeWin32Classic.cs: Add default window color properties
24379 2004-08-09 10:17 jackson
24381 * ThemeWin32Classic.cs: Use correct default back color
24383 2004-08-09 10:05 jackson
24385 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
24388 2004-08-09 09:56 jackson
24390 * XplatUI.cs: Remove defaults, these are handled by the theme now.
24392 2004-08-09 09:54 jackson
24394 * Control.cs: Get default properties from the theme.
24396 2004-08-09 09:53 jackson
24398 * ITheme.cs: Themes now handle default control properties
24400 2004-08-09 09:53 jackson
24402 * ThemeWin32Classic.cs: Themes now handle default control
24403 properties so coloring will be consistent
24405 2004-08-08 16:54 jordi
24407 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
24409 2004-08-08 15:08 jordi
24411 * XplatUIX11.cs: fixes keyboard crash
24413 2004-08-08 13:47 jordi
24415 * Label.cs: add cvs header info
24417 2004-08-08 12:09 jackson
24419 * ThemeWin32Classic.cs: Add pen_buttonface
24421 2004-08-08 11:52 jordi
24423 * Label.cs, LinkLabel.cs: [no log message]
24425 2004-08-08 11:34 jordi
24427 * ThemeWin32Classic.cs: Use Windows Standard Colours
24429 2004-08-07 17:32 jordi
24431 * TrackBar.cs: throw exceptions of invalid enums values
24433 2004-08-07 17:31 jordi
24435 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
24438 2004-08-07 16:56 jackson
24440 * HorizontalAlignment.cs: Initial checkin
24442 2004-08-07 13:16 jordi
24444 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
24447 2004-08-07 13:05 jordi
24449 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
24450 GetSysColor defines
24452 2004-08-06 18:01 pbartok
24454 * ThemeWin32Classic.cs:
24455 - Fixed some rounding issues with float/int
24457 2004-08-06 18:00 jackson
24459 * DockStyle.cs, AnchorStyles.cs:
24461 Add flags and serializable attributes.
24463 2004-08-06 17:46 pbartok
24466 - Implemented GetParent
24468 2004-08-06 17:18 pbartok
24471 - Fixed some rounding issues with float/int
24473 2004-08-06 17:17 pbartok
24475 * X11Structs.cs, XplatUIX11.cs:
24476 - Fixed Refresh and Invalidate
24478 2004-08-06 15:30 pbartok
24480 * Control.cs, X11Structs.cs, XplatUIX11.cs:
24481 - Fixed recursive loop when resizing
24482 - Improved/fixed redrawing on expose messages
24484 2004-08-06 09:53 jordi
24486 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
24487 keyboard navigation
24489 2004-08-06 08:02 pbartok
24491 * X11Structs.cs, XplatUIX11.cs:
24492 - Fixed reparenting
24493 - Fixed window border creation
24495 2004-08-05 15:38 pbartok
24498 - Attempted fix for reparenting problems
24500 2004-08-04 15:14 pbartok
24503 - Fixed Invalidation bug (calculated wrong client area)
24504 - Added ClientSize setter
24506 2004-08-04 15:13 pbartok
24509 - Added AutoScale properties
24511 2004-08-04 15:13 pbartok
24514 - Added latest files
24516 2004-08-04 14:11 pbartok
24518 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24520 - Added Invalidate handling
24522 2004-08-03 17:09 jordi
24524 * XplatUIDriver.cs: fixes spelling mistake
24526 2004-07-27 09:53 jordi
24528 * TrackBar.cs: fixes trackbar events, def classname, methods
24531 2004-07-27 09:29 jordi
24533 * ScrollBar.cs: fixes scrollbar events
24535 2004-07-27 04:38 jordi
24537 * Control.cs: changes to be able to run winforms samples
24539 2004-07-26 11:42 jordi
24541 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
24542 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
24544 2004-07-26 05:41 jordi
24546 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
24547 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
24550 2004-07-22 09:22 jordi
24552 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
24553 check link overlapping, implement events, and fixes
24555 2004-07-21 10:28 jordi
24557 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
24559 2004-07-21 10:19 jordi
24561 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
24562 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
24563 LinkLabelLinkClickedEventArgs.cs,
24564 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
24565 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
24568 2004-07-19 13:09 jordi
24570 * Control.cs, Label.cs: label control re-written: added missing
24571 functionlity, events, and properties
24573 2004-07-19 10:49 jordi
24575 * Control.cs: fixes SetBounds logic
24577 2004-07-19 01:29 jordi
24579 * Control.cs: Call RefreshWindow only if the window has created
24581 2004-07-15 14:05 pbartok
24583 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
24584 - Implemented ImageList and ImageList.ImageCollection classes
24585 - Added ColorDepth enumeration
24586 - Updated SWF VS.Net project
24588 2004-07-15 11:06 jordi
24590 * XplatUIStructs.cs: added MsgButons enum
24592 2004-07-15 11:03 jordi
24594 * Control.cs: added basic mouse handeling events
24596 2004-07-15 03:38 jordi
24598 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
24599 Vertical TrackBar control implementation
24601 2004-07-13 09:33 jordi
24603 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
24605 2004-07-13 09:31 jordi
24607 * Control.cs, Form.cs: commit: new properties and fixes form size
24610 2004-07-09 14:13 miguel
24612 * ProgressBar.cs: Spelling
24614 2004-07-09 11:25 pbartok
24617 - Removed usage of Rectangle for drawing. Miguel pointed out it's
24620 2004-07-09 11:17 miguel
24622 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
24624 * ProgressBar.cs: Fixed spelling for `block'
24626 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
24629 Avoid using the += on rect.X, that exposed a bug in the compiler.
24631 2004-07-08 23:21 pbartok
24633 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
24634 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
24635 BaseCollection.cs, Binding.cs, BindingContext.cs,
24636 BindingMemberInfo.cs, BindingsCollection.cs,
24637 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
24638 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
24639 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
24640 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
24641 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
24642 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
24643 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
24644 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
24645 FrameStyle.cs, GiveFeedbackEventArgs.cs,
24646 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
24647 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
24648 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
24649 InputLanguageChangedEventArgs.cs,
24650 InputLanguageChangedEventHandler.cs,
24651 InputLanguageChangingEventArgs.cs,
24652 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
24653 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
24654 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
24655 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
24656 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
24657 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
24658 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
24659 QueryAccessibilityHelpEventArgs.cs,
24660 QueryAccessibilityHelpEventHandler.cs,
24661 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
24662 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
24663 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
24664 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
24665 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
24666 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
24667 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
24668 XplatUIX11.cs, lang.cs: