1 2007-04-02 Chris Toshok <toshok@ximian.com>
3 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
4 logic between the values we present to the user and the values
5 which are stored in the column's property. Also, don't call
6 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
8 2007-04-02 Jackson Harper <jackson@ximian.com>
10 * TextBoxBase.cs: Scroll faster!
12 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
14 * StatusStrip.cs: Layout fixes for PDN.
15 * ToolStrip.cs: Set item's available to true, and placement to main when
17 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
18 changing in setter before doing any work, add InternalVisible.
19 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
20 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
23 2007-04-02 Jackson Harper <jackson@ximian.com>
25 * TextBox.cs: LBUTTON does not make the textbox select all of it's
28 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
30 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
31 Makes ToolStripComboBoxes show up again.
33 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
35 * ListView.cs: Add a hover_pending field in ListView
36 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
37 cycle (we are resetting the MouseHover logic in XplatUI
38 to handle HoverSelection). Fixes #80429.
40 2007-04-02 Jackson Harper <jackson@ximian.com>
42 * TextControl.cs: Make sure the attributes get set on the last
44 - Still have to do the end tag if we have stepped all the ways to
47 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
49 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
50 on an internal libgdiplus call when the information is already
51 available via the public API.
53 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
55 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
56 control is removed from a control collecftion.
57 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
58 Fixes FormPropertyTest (failed on rare occasions).
59 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
60 of Win32SetParent (when changing from no parent to a parent it
61 might add the new parent's location in screen coordinates to this
63 * Form.cs: Rework ChangingParent once again, now the handle is
64 recreated whenever a FormWindowManager is added or removed (that is
65 whenever a normal form is parented or abandoned). Also change
66 CreateParams so that all non-toplevel windows always get the
67 specified sice (StartupPosition is never considered for
69 * ContainerControl.cs: Add ChildControlRemoved, the container control
70 needs to be notified when a control is removed from it's
71 collection, in the case the removed control is the active control.
73 2007-04-02 Jackson Harper <jackson@ximian.com>
75 * RichTextBox.cs: Use the new methods for setting the font and
76 color, these methods set the specified attribute without
77 overriding the other attributes.
79 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
81 * ToolStripPanel.cs: Fixes for better layouts in PDN.
83 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
85 * TextBox.cs: Added internal ChangeBackColor method to special-case
86 Color.Empty. Added check for invalid ScrollBars value.
87 * TextBoxBase.cs: Added internal ChangeBackColor method.
88 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
89 internal ChangeBackColor method to special-case Color.Empty. Added
90 check for invalid ScrollBars value.
92 2007-03-30 Everaldo Canuto <everaldo@simios.org>
94 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
96 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
98 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
99 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
100 [Based on submitted patch from Olivier Duff.]
102 2007-03-30 Jackson Harper <jackson@ximian.com>
104 * TextBox.cs: Only select all on initial focus if the user has not
105 specified a selection area.
107 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
109 * UserControl.cs: Override CreateParams.
111 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
113 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
114 layout of the mdi children is handled by CreateParams. Fixes
117 2007-03-29 Everaldo Canuto <everaldo@simios.org>
119 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
122 * Form.cs: When active tracker mouse down is not processed, send event
123 back to control inside mouse position. [Fixes #81227]
125 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
127 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
128 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
129 stealing focus from the active form on Windows. (Control will be made
130 visible in ShowWindow.)
132 2007-03-29 Mike Kestner <mkestner@novell.com>
134 * ImageList.cs : add internal Changed event.
135 * ListView.cs : hook up to StateImageList.Changed to perform
136 invalidations when the the state icon list changes. [Fixes #81191]
138 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
140 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
141 to prevent tooltips from stealing focus from the active form on Windows.
143 2007-03-29 Everaldo Canuto <everaldo@simios.org>
145 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
147 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
149 2007-03-29 Everaldo Canuto <everaldo@simios.org>
151 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
154 2007-03-29 Jackson Harper <jackson@ximian.com>
156 * TextControl.cs: When deleting text from non multiline textboxes,
157 we need to update the entire document, because line offsets will
160 2007-03-29 Everaldo Canuto <everaldo@simios.org>
162 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
163 added to theme, now we can create themes that uses diferent notify engines
164 like notification-daemon from galago project or growl for Mac OS.
166 2007-03-28 Everaldo Canuto <everaldo@simios.org>
168 * NotifyIcon.cs: Prevent Balloon to show in task bar.
170 2007-03-28 Everaldo Canuto <everaldo@simios.org>
172 * XplatUIX11.cs: Prevent system to open more than one balloon.
174 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
175 some compiler warning messages.
177 2007-03-28 Everaldo Canuto <everaldo@simios.org>
181 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
183 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
184 implemented, this methods is used by NotifyIcon.BalloonWindow class.
186 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
189 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
191 * ListViewItem.cs: Forgot to make Invalidate internal.
193 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
195 * ListView.cs: Add a InvalidateSelection method to
196 invalidate methods which are currently selected, and call
197 it when setting FullRowSelect and HideSelection, instead of
200 2007-03-28 Chris Toshok <toshok@ximian.com>
202 * XplatUIX11.cs (UnmapWindow): reindent this block.
204 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
205 the selection_start if we're moving the selection (that is, not
206 extending it). Fixes bug #80461.
208 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
210 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
211 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
212 create private ControlCollection.
214 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
216 * Control.cs: We need to call OnVisibleChanged for our implicit
217 children as well as our normal children. Fixes scrollbars in
218 comboboxes not showing up.
220 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
222 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
223 the check for IsHandleCreated first. The check in CreateHandle is not
224 good enough because CreateHandle can be overriden, and the override
225 should not be called if the handle is already created.
227 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
229 * ToolStrip.cs: Remove MonoTODO for tooltips.
230 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
231 * ToolStripContainer.cs: Add custom ControlCollection class.
232 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
233 * ToolStripDropDown.cs: Add some missing properties/methods.
234 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
235 * ToolStripItem.cs: Remove MonoTODO for tooltips.
236 * ToolStripManager.cs: Add IsShortcutDefined.
237 * ToolStripOverflow.cs: Override LayoutEngine.
238 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
239 * ToolStripSeparator.cs: Add ImageKey.
241 2007-03-28 Jackson Harper <jackson@ximian.com>
243 * TextControl.cs: If a char delete removes a line ending, we need
244 to update the ending style.
245 - Make sure the line ending calcs get called.
247 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
249 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
250 it was making the new code not work. Fixed a typo in the new code
251 as well. Fixes #79826.
253 2007-03-27 Everaldo Canuto <everaldo@simios.org>
256 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
257 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
258 - SystrayBalloon method implemented.
259 [Add support for notifyicon balloon on win32, #79149]
261 2007-03-27 Mike Kestner <mkestner@novell.com>
263 * ThemeWin32Classic.cs : update StateImageList selection to mirror
264 the ms behavior when only one image is added to the list.
267 2007-03-27 Jackson Harper <jackson@ximian.com>
269 * TextControl.cs: Improvements to non multiline line ending
272 2007-03-27 Everaldo Canuto <everaldo@simios.org>
274 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
276 2007-03-27 Everaldo Canuto <everaldo@simios.org>
279 - Balloon message handling added.
280 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
282 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
283 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
284 to SystrayBalloon to me like other Systray method, also a
285 handle parameter added.
287 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
289 * ListView.cs: Show scrollbars even when items.Count == 0
290 but the columns Width is bigger than the ListView.Width.
291 Also, when columns.Count == 0 set layout_wd and layout_ht
292 to the ClientRectangle values, so we don't show any scrollbar
295 2007-03-27 Everaldo Canuto <everaldo@simios.org>
297 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
299 2007-03-27 Jackson Harper <jackson@ximian.com>
301 * RichTextBox.cs: The RTF library decodes the text properly for us
304 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
306 * ListView.cs: Display HeaderControl even when columns.Count == 0.
307 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
308 ListView header (HeaderControl), instead of Control.BackColor.
310 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
312 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
313 Fixes tab control issues where controls would not show up because they
314 never received their OnVisibleChanged call.
316 2007-03-27 Everaldo Canuto <everaldo@simios.org>
318 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
321 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
323 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
324 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
325 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
326 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
327 the handle. Fix WindowState by using the internal variable until we are
328 sure that we've been shown.
329 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
333 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
335 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
336 (at least borders). Fixes #79386 on Linux (with a small difference
337 in behaviour: when trying to resize a caption-less window metacity
338 shows the sysmenu. Resizing is still possible though).
339 * XplatUIWin32.cs: When setting window styles send request an extra
340 WM_NCCALCSIZE when it's a form without title (due to no text and no
341 caption), since Win32 seems to calculate it wrong the first time we
342 get the message, though the second time things work as they should.
343 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
344 newly reparented window might show up unparented. Update
345 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
346 there's no title text. Fixes #79386.
348 2007-03-27 Mike Kestner <mkestner@novell.com>
350 * ListBox.cs : don't perform invalidations if the handle hasn't been
351 created. [Fixes #80753]
353 2007-03-27 Mike Kestner <mkestner@novell.com>
355 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
358 2007-03-26 Everaldo Canuto <everaldo@simios.org>
360 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
361 needed to implement Balloon.
363 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
365 * ListViewItem.cs: In the constructors that take
366 an array of strings, don't use ListViewSubItemCollection.AddRange
367 method to add items, since we need to have a different behaviour (in
368 the constructors we add an item for each null string, opposed to
369 the behaviour of AddRange, which adds nothing).
371 2007-03-26 Andreia Gaita <avidigal@novell.com>
373 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
375 2007-03-26 Jackson Harper <jackson@ximian.com>
377 * TextControl.cs: Draw and measure line endings when in non
379 - When searching the text, count the end of the last line as a
382 2007-03-26 Jackson Harper <jackson@ximian.com>
384 * RichTextBox.cs: The selection_start and selection_end don't
385 really track the correct tags for the selection. So we'll manually
386 compute the correct tag here.
388 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
390 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
391 and Continuous styles. Fixes #79469.
393 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
395 * ToolStrip.cs: Implement Tooltips.
396 * ToolStripItem.cs: Create internal method for determining tooltip.
398 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
400 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
402 2007-03-26 Everaldo Canuto <everaldo@simios.org>
404 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
405 it prevents a problem thak keeps icon visible after application
408 2007-03-26 Everaldo Canuto <everaldo@simios.org>
410 * NotifyIcon.cs: Balloon properties and methods created.
412 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
413 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
415 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
417 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
419 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
421 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
422 parameter indicates which aspects were explicit/user-set.
423 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
425 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
427 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
428 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
429 SmallChange, and Value (2.0).
430 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
432 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
434 * ListView.cs: Always set item_control.Width in LayoutDetails
435 if View is Details. Setting it later in CalculateScrollBars
436 in a not-so-corner scenario (the sum of columns width is
437 not bigger than the ListView width when handle is created, and then
438 that sum gets bigger by increasing the width of the columns)
439 causes a very weird recursion path (which shouldn't be happening,
440 since header_control sets it in CalculateScrollBars too). This bug
441 appeared after Chris' fixes for handle created issues, so probably
442 it's related to some handle-creation time.
444 2007-03-23 Chris Toshok <toshok@ximian.com>
446 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
447 case where there's an add row, just so we don't end up in a case
448 where it's not displayed (this happens when the row is partially
449 obscured). Fixes bug #79574.
451 2007-03-23 Jackson Harper <jackson@ximian.com>
455 * RichTextBox.cs: Preserve line endings in the lines text buffer,
456 also added an enum that represents the line ending type.
458 2007-03-23 Andreia Gaita <avidigal@novell.com>
460 * NumericUpDown.cs: Fix logic so Text and Value properties are not
461 messed with in every method call, but only from DownButton,
462 UpButton, UpdateEditText() and ValidateText. Fixes #80346
464 2007-03-23 Chris Toshok <toshok@ximian.com>
466 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
467 format objects if the format spec is "". Fixes bug #80889.
469 2007-03-22 Miguel de Icaza <miguel@novell.com>
471 * ToolStripPanel.cs (Join): added stubs to build PDN3
473 * Control.cs (AutoScrollOffset): Add.
475 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
476 property, its only implemented for Win32, on X11 it defaults to
477 some hardcoded value.
479 * ToolStripItem.cs (AllowDrop): Add property
481 2007-03-22 Mike Kestner <mkestner@novell.com>
483 * ListView.cs : in FullRowSelect Details mode, only enable box
484 selection if the user clicks over the "item" column outside of the
485 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
487 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
489 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
490 handle is not created yet.
491 * Form.cs: Select: Don't call CreateHandle if the handle is already
492 created, avoids a stack overflow on Windows when we are recreating
494 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
495 they are made visible, and override AfterTopMostControl to keep
496 them on top when other controls are brought to front.
497 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
498 or force_*scroll_visible is true (old implementation always shows
499 scrollbars when needed, no matter what auto_scroll was set to).
500 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
501 IsHandleCreated check.
503 2007-03-22 Andreia Gaita <avidigal@novell.com>
505 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
506 row or col separator.
507 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
509 2007-03-22 Everaldo Canuto <everaldo@simios.org>
511 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
513 2007-03-22 Everaldo Canuto <everaldo@simios.org>
515 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
516 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
517 every time. Fixes #80410.
519 2007-03-22 Chris Toshok <toshok@ximian.com>
521 * BindingSource.cs (AddNew): partially implement.
523 remove a couple of NotImplementedException's
524 to get bug #81148 closed.
526 2007-03-22 Everaldo Canuto <everaldo@simios.org>
531 - UpdateCursor method added to update the screen cursor.
532 - GetAvailableCursor method added to return cursor for enabled tree,
533 it searches for cursor on control and it's parent's for enabled control.
534 - Call UpdateCursor method on setter of Cursor property.
535 - On setter of Enabled call UpdateCursor when it is false, we need to
536 change cursor to normal (or to this parent cursor) because cursor
537 setting theres no effect to disabled controls.
538 - Some minor source changes to follow the coding style guidelines.
540 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
543 2007-03-22 Chris Toshok <toshok@ximian.com>
545 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
548 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
550 * XplatUIX11.cs: Implement default locations for forms.
551 * Form.cs: Completely rework startup location for forms. Fixes #79964.
552 * Hwnd.cs: Add previous_child_startup_location (to track the current
553 startup location for any child forms of the current form) and
554 previous_main_startup_location (to track the startup location for
555 the current toplevel form).
557 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
559 * Control.cs: Don't trigger a layout if an implicit control is added
560 that isn't visible. Also, don't notify the owner when an implicit control
561 is added. (Owners shouldn't even know about their implicit controls.)
563 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
565 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
566 to save some re-layouts.
568 2007-03-21 Everaldo Canuto <everaldo@simios.org>
570 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
573 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
575 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
576 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
578 2007-03-21 Mike Kestner <mkestner@novell.com>
580 * ListView.cs : disable selection update for non-left button clicks
581 with mods and over selected items. [Fixes #80524]
583 2007-03-20 Jackson Harper <jackson@ximian.com>
586 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
589 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
591 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
592 very probably a more complicated calculation there. Update the
593 textbox' ForeColor and BackColor when the ComboBox' colors are
594 changed. Change the border change in LayoutComboBox to only affect
595 the textbox, not all the calculations there. Seems to fix most of
598 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
600 * ComboBox.cs: Handle Home and End keys as well as all combinations of
601 modifiers + navigation keys as input keys, enables advanced text
602 selection in the combobox (like Shift+Left Arrow for instance).
603 ComboTextBox now overrides Focused and returns whatever
604 ComboBox.Focused returns, since it really should be focused
605 whenever the ComboBox is. Fixes #80795. Also make the border around
606 the text box one pixel bigger, as mentioned in #79436.
608 2007-03-20 Jackson Harper <jackson@ximian.com>
610 * TreeView.cs: Don't offset the images, this was causing some
611 artifacts when expanding/collapsing with images that were the
612 exact height of the treenode.
614 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
616 * TrackBar.cs: Query the theme for the correct value when the mouse
617 moves and the thumb is pressed.
618 * Theme.cs: Added TrackBarValueFromMousePosition
619 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
620 implementation was updating the trackbar value when drawing, now
621 the drawing methods only draw. Fixes #80900. Refactored the
622 calculations out to TrackBarValueFromMousePosition and
623 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
624 according to the mouse position whenever it wants to. Changed the
625 light coloured pen when drawing the thumb from ControlLight to
626 ControlLightLight, because the ControlLight is the same colour as
627 the background so the 3D effect is lost.
629 2007-03-20 Everaldo Canuto <everaldo@simios.org>
631 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
632 defined. Fixes #80784.
634 2007-03-20 Marek Habersack <mhabersack@novell.com>
636 * ContextMenuStrip.cs: align with the change introduced in
639 2007-03-20 Everaldo Canuto <everaldo@simios.org>
641 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
642 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
645 2007-03-19 Chris Toshok <toshok@ximian.com>
647 * Control.cs (WmPaint): don't make use of the Handle property
648 after an event is emitted, as the user could have closed the
649 form/destroyed the control. Store the Handle in a local variable
650 and make use of that. Fixes bug #80768.
652 2007-03-20 Everaldo Canuto <everaldo@simios.org>
654 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
655 behavior in X11 environments.
657 2007-03-20 Everaldo Canuto <everaldo@simios.org>
659 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
660 because on setter of topmost we dont call SetTopmost when handle is not
663 2007-03-20 Jackson Harper <jackson@ximian.com>
665 * TextControl.cs: Need to use SelectionLength () not
666 selection_length, since that var is reset to -1.
667 - Draw the caret when we don't have focus.
668 * TextBox.cs: The selectall actually doesn't occur until the first
670 * TextBoxBase.cs: Need to update the caret position after a
673 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
675 * ListView.cs: Enable scrolling when using Tile view.
677 2007-03-20 Everaldo Canuto <everaldo@simios.org>
681 * XplatUIDriver.cs: Abstract SetOwner method created.
683 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
684 must be implemented and was masked as todo.
686 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
689 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
690 cheking for null owner to remove transient. The SetTopmost will be change
693 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
694 SetTopmost. Now owned forms will work properly in win32 and X11.
696 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
698 * MdiWindowManager.cs: Update function name.
699 * Form.cs: After closing a form MdiParent is always null.
700 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
701 better what it should do: necessary book-keeping when the form is
702 closed, it should not close the form itself.
704 2007-03-19 Andreia Gaita <avidigal@novell.com>
706 * ListViewItem.cs: Fix back and fore color. The subitems only
707 use their own colors if they are set, otherwise use the listview's
708 colors. Don't set default colors on constructor for subitem.
711 2007-03-19 Mike Kestner <mkestner@novell.com>
713 * ListView.cs : make box selection for Details views with
714 FullRowSelect conform to MS behavior when clicking in the "item"
715 column and clicking outside the defined columns.
716 [Fixes case 5-6 of #80374]
718 2007-03-19 Chris Toshok <toshok@ximian.com>
720 * ScrollableControl.cs: create the controls from within the ctor,
721 but don't actually add them until our handle is created. this
722 fixes a NRE possibility jpobst found (if you override OnLayout in
723 a subclass, it's called before your ctor). Also, add a
724 IsHandleCreated guard to UpdateSizeGripVisibility as well.
726 2007-03-19 Jackson Harper <jackson@ximian.com>
728 * TextBox.cs: Reduce the amount of invalidation we do.
729 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
730 some of them are true by default on MS.
731 - Add some functions to reduce the amount of invalidates we do.
732 * TextControl.cs: Less invalidation.
734 2007-03-19 Chris Toshok <toshok@ximian.com>
736 [ Fixes #81773, and *seems* to fix #81553 as well ]
738 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
739 AccumulateDestroyedHandles. We need to do it *after* we send
740 WM_DESTROY, as the user's code can access Control.Handle in
741 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
742 move the WM_DESTROY/zombie handling to before the call to
743 XDestroyWindow. For some reason without this ordering
744 FormTest.RecreateHandle hangs. This ordering is semantically
745 equivalent, however, as XDestroyWindow is async anyway.
747 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
749 * RichTextBox.cs: Reset backcolor_set after setting default.
751 2007-03-19 Chris Toshok <toshok@ximian.com>
753 * ScrollableControl.cs: the scroll position should not effect the
754 canvas size. commit patch from georgegiolfan@yahoo.com, which
755 fixes some really bizarre behavior on resizing. Fixes bug #80778.
757 2007-03-19 Chris Toshok <toshok@ximian.com>
759 * ScrollableControl.cs: clean this up a bit. create the
760 scrollbars in the ctor and just show/hide them as needed. Also,
761 make hscroll_visible/vscroll_visible internal to Recalculate, and
762 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
763 everywhere else. This seems to fix the scrollbars appearing
764 beneath the content for me (i have *no* idea why that is,
767 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
769 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
770 some redundacy for stuff in Anchor and Dock that base will take care of.
773 2007-03-19 Mike Kestner <mkestner@novell.com>
775 * ListView.cs : make box selection for Details views without
776 FullRowSelect dependent on the text bounds, not item bounds.
777 * ListViewItem.cs : add an internal property to obtain the TextBounds
778 in Details view. [Fixes case 1-4 of #80374]
780 2007-03-19 Andreia Gaita <avidigal@novell.com>
782 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
783 we're < 2.0. #78448 && #80316
785 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
787 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
788 have the same style available as the previously selected one. Also,
789 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
791 2007-03-19 Jackson Harper <jackson@ximian.com>
793 * TextControl.cs: Add an alignment property that all new lines
795 - Make sure to use the align shift when calculating the line's X
797 * TextBox.cs: Set the alignment on the document as well as on all
800 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
802 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
803 throw if setting the parent of an mdichild that already has an
804 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
805 AssemblyProductAttribute in the assembly, use the type's namespace (as
806 MS seems to do). CreateControl: don't create the handle if the control
807 is not visible (according to MS behaviour and spec). SetTopLevel: Only
808 create handle if the control is not a form. Change FocusInternal to
809 virtual so that it can be overriden by Form.
810 * TextBox.cs: Update call to FocusInternal.
811 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
812 form is not a toplevel form when it's a mdi child, so update is_toplevel
813 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
814 hasn't been created. Show (IWin32Window): Don't allow this overload for
815 toplevel windows. CenterToParent/CenterToScreen/Select: create the
816 handle as MS does. SetVisibleCore: if called on a MdiChild and the
817 parent isn't visible yet, save the visibility and restore it when the
818 parent is made visible.
819 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
820 methods, since the visibility of the scrollbars can be changed from
821 several places, not only from AutoScroll.
824 2007-03-19 Jackson Harper <jackson@ximian.com>
826 * RichTextBox.cs: Enable shortcuts by default.
827 * TextBoxBase.cs: Add conditional shortcuts.
829 2007-03-19 Everaldo Canuto <everaldo@simios.org>
831 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
833 2007-03-19 Chris Toshok <toshok@ximian.com>
837 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
838 swallow the message we're waiting on, instead of delivering it, as
839 this is only used for the WM_SHOWWINDOW raised from
840 MapWindow/UnmapWindow, and the message needs to be generated
841 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
842 before doing the Map/Unmap. Also make sure that the Hwnd is still
843 alive after the message has been handled.
845 *before* the window is shown.
847 * Control.cs (CreateControl): guard a few more things inside the
848 if (!is_created) block, as we might end up being called again -
850 (WmShowWindow): call CreateControl if we're showing the control.
852 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
854 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
855 controls without a handle if they have any parent with a handle. In
856 Dispose add a check whether the handle is created or not before
857 calling BeginInvoke, this removes the need of the extra disposing
858 parameter (which was bogus anyway since it didn't prevent the
859 invoke from happening, it only skipped the check for an existing
860 handle, meaning that the invoke would call on an inexistent
863 2007-03-19 Everaldo Canuto <everaldo@simios.org>
865 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
868 2007-03-18 Everaldo Canuto <everaldo@simios.org>
871 - Fixed a problem that dont show help button for messages with 3 buttons.
872 - Refactory button size and position calculations, now dont use fixed
873 values, also fixed button sizes (#80043) and form's border space.
874 - AddButton method created, now all other AddButton methods call this one.
875 - Some other source code cosmetic changes.
877 2007-03-18 Jackson Harper <jackson@ximian.com>
879 * RichTextBox.cs: Don't do this all fonts must match check if
880 there is only one char selected.
882 2007-03-18 Jackson Harper <jackson@ximian.com>
884 * TreeView.cs: ScrollWindow works properly now, so we don't need
885 to screw around with the scroll area. This fixes some artifacts
886 when expanding and collapsing.
888 2007-03-18 Jackson Harper <jackson@ximian.com>
890 * TextBoxBase.cs: Allow updating the selection position when the
891 cursor is outside the textarea, but we have a capture.
892 * TextControl.cs: A special case for when the cursor is outside
893 the bounds of the TB.
895 2007-03-18 Jackson Harper <jackson@ximian.com>
897 * TextBoxBase.cs: Remove image pasting code for now. There is no
898 way to get an image on the clipboard right now anyways.
900 * RichTextBox.cs: Use the new RTF Picture class for pictures.
902 2007-03-18 Everaldo Canuto <everaldo@simios.org>
905 - Set window properties in constructor intead of on CreateParams.
906 - Remove topmost from Window ExStyle.
907 - Set ShowInTaskbar to false.
908 - Set form border to FixedDialog.
909 - Some cosmetic changes and remove unneeded comments.
910 - It fixes itens 2,3 and 4 of bug #80043.
912 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
914 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
915 none was explicitly set. Fixes part of bug #79949.
917 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
919 * ToolStripComboBox.cs: Add AutoComplete*.
921 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
923 * ToolStripComboBox.cs: Add FlatStyle.
925 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
927 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
928 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
930 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
932 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
933 CheckBox.cs, RadioButton.cs, BindingSource.cs,
934 DataGridColumnStyle.cs: Remove warnings.
936 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
938 * Menu.cs: MergeMenu: Check menu argument for null before looping over
940 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
941 visibility of mdi child forms. FormSizeChangedHandler: update the
942 maximized size if size has changed while maximized.
943 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
945 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
946 avoid creating the handle if not created.
947 * XplatUI.cs: Update debug output.
948 * XplatUIStructs.cs: Added ToString's for a couple of structs.
950 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
952 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
954 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
955 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
956 Implement keyboard shortcuts.
958 2007-03-15 Everaldo Canuto <everaldo@simios.org>
960 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
961 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
962 ColorDialog and all derived classes.
964 2007-03-15 Everaldo Canuto <everaldo@simios.org>
969 - Rename ToolBarButtonInfor to ToolBarItem.
970 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
971 - Maintain an array of ToolBarItem, used instead of ToolBarButton
972 collection to be able add same button more than one time on a toolbar.
973 - Refactory all properties and methods to use ToolBarItem.
976 - Remove all propeties and methods that is now in ToolBarItem.
977 - Rectangle propery now gets the rectangle from first ToolBarItem to
978 mimic win32 behavior.
979 - Size calculation and layout methods also removed.
981 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
982 ToolBarItem instead of ToolBarButton to right drawing buttons when
983 same button/separator was added more than one time to ToolBar.
985 * ThemeNice.cs: Same as above.
987 2007-03-15 Andreia Gaita <avidigal@novell.com>
989 * XplatUIX11.cs: Fire extra MouseMove events right after
990 MouseDown and MouseUp, emulating win32's <censored> behaviour
991 for apps that rely on it.
993 2007-03-15 Jackson Harper <jackson@ximian.com>
996 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
997 it is drawn on the controls client window and there is no NC
999 - Set the background color to gray on 2.0 when we are readonly.
1001 2007-03-15 Chris Toshok <toshok@ximian.com>
1003 [ Fixes bug #81144 ]
1005 * XplatUIX11.cs: implement VirtualScreen independently of
1006 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
1009 2007-03-15 Chris Toshok <toshok@ximian.com>
1011 * Hwnd.cs: add an internal field for the cached_window_state.
1013 * XplatUIX11.cs: cache the window state, invalidating the cache
1014 (and thus re-querying the X server) only when we see an update to
1015 the _NET_WM_STATE property.
1017 2007-03-15 Chris Toshok <toshok@ximian.com>
1019 * BindingSource.cs: get a lot of the unit tests working.
1021 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
1023 * Control.cs: Modify UpdateStyles to store distances when bounds >=
1024 0 instead of just bounds > 0. [Fixes bug #80912]
1026 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
1028 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
1031 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
1033 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
1034 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
1035 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
1036 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
1038 2007-03-15 Chris Toshok <toshok@ximian.com>
1042 * Control.cs: add Ivan's fix for 81101, with a slight modification
1043 - you can set control.Target to null.
1045 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
1047 * ToolStripItem.cs: If our OwnerItem is null, we can't use
1048 HideDropDown, use Hide instead to prevent an NRE.
1051 2007-03-14 Jackson Harper <jackson@ximian.com>
1053 * TextBoxBase.cs: Mess with the creation stuff a little. We need
1054 to calculate the document before the handle is created, in some
1055 cases. (Actually just one case).
1057 2007-03-14 Jackson Harper <jackson@ximian.com>
1059 * TextBoxBase.cs: Need to display the caret after letting the base
1060 wndproc handle the focus methods, because the caret display
1061 methods check the focus state.
1062 - Try to display the caret after updating it's position with SelectWord.
1063 - Don't need to do an immediate update on this recalc, since there
1064 will be an invalidate anyways.
1066 2007-03-14 Jackson Harper <jackson@ximian.com>
1068 * TreeView.cs: Some workarounds so that we can match event order a
1071 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
1073 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
1074 #80803. Avoid NullReferenceException when Control does not have
1075 parent. Fixed different blinkstyle issues. Only subscribe to Tick
1076 event a single time. Only draw error icon when control is created and
1077 visible. Fixes failing unit tests.
1079 2007-03-14 Andreia Gaita <avidigal@novell.com>
1081 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
1082 Selecting events. Fire Leave and Enter events when changing tabs.
1084 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
1086 * TreeView.cs: Add TreeViewNodeSorter.
1087 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
1089 2007-03-14 Chris Toshok <toshok@ximian.com>
1091 * Form.cs: go ahead and remove the RecreateHandles that jpobst
1092 removed earlier and I had him add back it. It turns out metacity
1093 *does* in fact handle the MOTIF_WM_HINTS property changing, it
1094 just doesn't redraw the window titlebar until you resize the
1095 window. This also means we aren't recreating the entire window
1096 hierarchy on X when you change this property. And it looks better
1099 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1102 * ListView.cs: Collecting selection information
1103 is now done in SelectedIndexCollection rather than in
1104 SelectedListViewItemCollection. This is done so we can
1105 have the selection information code in one single place
1106 (virtual mode selection information entirely depends on
1107 SelectedIndexCollection).
1109 2007-03-13 Miguel de Icaza <miguel@novell.com>
1111 * ErrorProvider.cs: Add stubs for ISupportInitialize
1113 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1115 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
1116 in the right order with the right values, from the Checked property,
1117 just as MS does (instead of triggering them from ListView).
1119 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
1121 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1123 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
1124 the correct handler in OnItemCheck method (ItemCheckEventHandler
1125 instead of EventHandler). This used to throw an InvalidCastException.
1127 2007-03-13 Jackson Harper <jackson@ximian.com>
1129 * TextBoxBase.cs: Calculate the document before the handle is
1130 created, so there isn't an extra invalidate called.
1132 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
1134 * Form.cs: Don't set owner in ShowDialog until we are sure
1135 that we aren't going to throw an exception. [Fixes bug #80773]
1137 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
1139 * TreeView.cs: Make it compile.
1141 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1143 * Control.cs: Another place we don't call SizeFromClientSize.
1144 * Form.cs: Another place we don't call SizeFromClientSize.
1147 2007-03-12 Jackson Harper <jackson@ximian.com>
1149 * TreeView.cs: Basically emulating some strangness here with
1150 exanding nodes and setting node positions when windows aren't
1152 - Also attempting to walk the node tree less than previously, and
1153 just use visible order calculations for determining offsets.
1154 - oops made scrolling backwards.
1155 * TreeNode.cs: We need to start nodes with a zero visible order,
1156 because the order calcs are based on the first nodes order.
1158 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1160 * Form.cs: Don't exit the program if RecreateHandle is called on
1163 2007-03-12 Chris Toshok <toshok@ximian.com>
1165 * XEventQueue.cs: remove the use of PostQuitState.
1167 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
1168 WM_QUIT message in GetMessage, return false (and if we're in the
1169 nested WaitForHwndMessage, repost the WM_QUIT message).
1171 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1173 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
1174 or the MaximizeBox properties. [Part of bug #80640]
1176 2007-03-12 Everaldo Canuto <everaldo@simios.org>
1178 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
1181 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1183 * ToolStripItem.cs: Fix some tests I broke by checking Visible
1186 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
1188 * FileDialog.cs: Use text of File name combobox to determine what
1189 files the user selected. Added tokenizer to parse the file names.
1192 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1194 * Control.cs: We can't call SizeFromClientSize in the constructor,
1195 but we still need to do the same work, so make an internal version.
1198 2007-03-12 Jackson Harper <jackson@ximian.com>
1202 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
1205 2007-03-12 Jackson Harper <jackson@ximian.com>
1207 * TextBoxBase.cs: Now that the handles are being created a little
1208 later, we need to make sure that the document is recalculated when
1209 the handle is created.
1211 2007-03-11 Everaldo Canuto <everaldo@simios.org>
1213 * Theme.cs: GetLinkFont abstract method added.
1216 - Remove CalcTrimRectangle, no longer needed.
1217 - Factor also remove, position issues must be fixed in libgdiplus.
1218 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
1219 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
1220 care about font used to draw links.
1221 - Set TabStop to true when control is "Selectable", control is selectable
1222 when have one or more links. Fixes #80501 (test case is also added).
1223 - Set the LinkArea values after links change, LinkArea values must be
1224 based in first link position and size, a test case was created.
1225 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
1226 the attribute must be true LinkArea.Length > 0. The same was applied to
1229 * ThemeWin32Classic.cs:
1230 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
1232 - Use CPDrawStringDisabled to draw disabled text instead of hard code
1234 - Draw focus rectangle for every parts focused, including parts that
1235 is on another line, its because regions returns various rectangles
1236 and not only one. Needed to mimic W32 look.
1237 - Uses Graphics.Clip to delimite region painted, it mean that now
1238 complete text is passed to DrawString, with this we solve layout
1239 issues without create another text renderer.
1240 - Uses Region.Intersect to fix some flickers problems, now only needed
1241 parts will redrawed.
1242 - This changes fixes #79614 and some other unreported issues, on Linux
1243 some layout problems still remain, the problem is under
1244 MeasureCharacterRanges but it is an libgdiplus bug.
1246 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
1248 * TextBox.cs: Set for foreground color.
1249 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
1250 this is already done in Control.
1252 2007-03-10 Jackson Harper <jackson@ximian.com>
1254 * TextBox.cs: Set the background color, but reset the
1255 backcolor_set flag which is just for the user setting the
1258 2007-03-09 Chris Toshok <toshok@ximian.com>
1260 * Control.cs: really remove the call to XplatUI.SetVisible from
1261 CreateHandle(), like I said I did when I merged the branch.
1263 * BindingSource.cs: implement some more of this stuff.
1265 2007-03-09 Jackson Harper <jackson@ximian.com>
1267 * TextBox.cs: Don't explicitly set our background colors.
1269 * TextBoxBase.cs: Draw readonly text.
1270 - Need to invalidate when backcolor or readonly are changed.
1272 2007-03-09 Jackson Harper <jackson@ximian.com>
1274 * TextBoxBase.cs: Don't set the forecolor until the handle is
1276 - Do not raise OnPaint, and removed some old debug code.
1278 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
1280 * ScrollableControl.cs: Fix mouse wheel scrolling.
1282 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
1284 * Control.cs: Wire up MouseDoubleClick event.
1286 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
1288 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
1290 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
1291 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
1292 item is added. This logic was moved to ToolStrip.OnItemAdded.
1295 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1297 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
1299 2007-03-08 Jackson Harper <jackson@ximian.com>
1301 * TreeView.cs: Show the correct image for selected node (this used
1302 to work, not sure how the code got deleted). Also implemented 2.0 feature
1305 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1308 * ListViewItem.cs: Cache index in items when retrieving them
1311 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
1313 * ToolStripItem.cs: Don't return the explicit_size if we are using
1314 AutoSize. Fixes invalidation issue when user has explicitly set a
1315 size and has AutoSize = true.
1317 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
1319 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
1321 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1323 * DataGridView.cs: Remove event handler from DataView when a
1324 DataTable is used as DataSource.
1326 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
1328 * Control.cs: Create internal setter for client_size to allow it to be
1329 set without triggering resizing code.
1330 * Form.cs: Calculate client_size in constructor, only change client_size
1331 in FormBorderStyle property if Handle has been created.
1332 [Fixes #80574, #80791]
1334 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
1336 * SystemInformation.cs: Add TerminalServerSession.
1338 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
1340 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
1343 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
1345 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
1346 Handle before we were supposed to. Now checks ActivateOnShow property
1348 * Control.cs: Add internal ActivateOnShow property.
1349 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
1351 * Hwnd.cs Remove no longer needed no_activate field.
1353 2007-03-07 Jackson Harper <jackson@ximian.com>
1355 * TreeView.cs: Implement owner draw tree nodes. And a couple more
1357 * DrawTreeNodeEventHandler.cs: Add
1358 * DrawTreeNodeEventArgs.cs: Correct default value.
1360 2007-03-07 Chris Toshok <toshok@ximian.com>
1362 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
1363 to be called before NativeWindow.WndProc. Put the HwndCreating
1364 magic there to hook up our Hwnd's to handles.
1366 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
1368 * DataGridView.cs: Comment out debug code.
1370 2007-03-07 Chris Toshok <toshok@ximian.com>
1372 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
1373 to make the rest of the world happy]
1375 * Control.cs (CreateHandle): there's no need to call
1376 XplatUI.SetVisible here, it's effectively done by
1377 XplatUI.CreateWindow on X now, and always was on windows.
1379 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
1380 shortcircuit out of the loop if we have a message loop running on
1383 [Changelog from merge]
1385 2007-03-05 Chris Toshok <toshok@ximian.com>
1387 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
1388 causes handle creation.
1390 2007-02-28 Chris Toshok <toshok@ximian.com>
1392 * ApplicationContext.cs: Add a flag to make sure we only raise the
1393 ThreadExit event once (ExitThreadCore can be indirectly called
1394 from a few places.) I don't like the additional flag, but it
1395 makes the event ordering/count correct.
1397 * Application.cs (MWFThread.LoopCount): don't use an enumerator
1398 without locking the collection. An enumerator doesn't give us any
1399 protection from modification anyway. Lock the thread hash and
1400 replace the complicated enumerator loop with a foreach.
1401 (Application.CloseForms): make internal so it can be called from
1402 ApplicationContext. This should probably be moved to MWFThread.
1403 (Application.ExitThread): don't call MWFThread.Current.Exit()
1404 here. just call XplatUI.PostQuitMessage. We'll exit the thread
1405 when the runloop exits (in response to WM_QUIT.)
1406 (Application.RunLoop): add a comment (and check) for
1407 context.MainForm being null after setting context.MainForm.Visible
1408 = true. This is because you're perfectly free to dispose of a
1409 form in VisibilityChanged. Chalk this up to another case where we
1410 need to synchronously generate WM_ACTIVATE from Control.Show.
1411 Also, add handling for WM_QUIT here so we'll exit the loop.
1413 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
1414 fact that we don't wait if we're only unmapping the whole_window
1415 makes me a bit nervous, but it doesn't seem to cause any problems
1418 also, add a comment about the stupid, broken and wrong resetting
1419 of PostQuitState to false in GetMessage().
1421 In PostQuitMessage, we need to add a WM_QUIT message to the
1422 thread's queue. We use the FosterParent to get the right
1425 Lastly, in SetVisible, we need to unmap both windows, since the
1426 waiting only happens when we're unmapping the client window. So
1427 now, the *only* time we unmap just the whole_window is in the hack
1428 for resizing a control to 0,0.
1430 2007-02-21 Chris Toshok <toshok@ximian.com>
1432 * Application.cs (CloseForms): rewrite this so that we don't
1433 modify the list while we're traversing it.
1435 2007-02-20 Chris Toshok <toshok@ximian.com>
1437 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
1439 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
1440 handle is created. otherwise we'll create it here.
1441 (VerticalScrollEvent): same here.
1443 * Application.cs (CloseForms): call Form.Dispose, don't post
1446 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
1447 here. Application should Dispose() of the Form's.
1449 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
1451 (MapWindow,UnmapWindow): only actually do the waiting for
1452 SHOWWINDOW if the control we're dealing with is a Form.
1453 (CreateWindow): if the control isn't a form, SendMessage
1454 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
1456 * Control.cs (SetVisibleCore): always use is_visible here, not
1457 value. If we use value, we can end up re-setting something
1458 visible if, for instance, you do Control.Hide() in a delegate
1459 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
1461 2007-02-20 Chris Toshok <toshok@ximian.com>
1463 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
1464 the message we need. PeekMessage returning false should not be a
1465 condition under which we exit the loop.
1467 2007-02-15 Chris Toshok <toshok@ximian.com>
1469 * Control.cs (Refresh): only refresh if we've got a handle and are
1471 (CreateAccessibilityInstance): CreateControl() here.
1472 (UpdateChildrenZOrder): complicate the code loop even more by
1473 taking into account controls that haven't had their handle
1474 created, and those that aren't visible. But on the flip side,
1475 simplify the code by splitting it into two loops. one which
1476 builds up the list of child controls we're interested in, and the
1477 other that sets the z order of those children.
1479 2007-02-14 Chris Toshok <toshok@ximian.com>
1481 * Control.cs: Control.AccessibilityObject causes the control to be
1482 created, not just the handle.
1484 2007-02-14 Chris Toshok <toshok@ximian.com>
1486 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
1487 problem on X where a window might have its handle created (and be
1488 visible) while the window is unmapped. calling XConfigureWindow
1489 on an unmapped window is bad, and generates X errors.
1491 2007-02-13 Chris Toshok <toshok@ximian.com>
1493 * Control.cs (CreateHandle): don't loop over our children setting
1494 their parent here. do it when in WndProc when we're shown.
1495 (UpdateChildrenZOrder): make this internal so we can call it from
1497 (WndProc): for WM_SHOWWINDOW, reparent the child control after
1498 creating its handle. Also, remove the calls to PerformLayout from
1499 here. they're done in ScrollableControl.OnVisibleChanged. Also,
1500 OnVisibleChanged only seems to be called directly here for the
1501 toplevel control. It's propagated down the window hierarchy by
1502 calls to child.OnParentVisibleChanged.
1503 (OnVisibleChanged): don't do layout here - it's done (oddly
1504 enough, according to a glance at stack traces on ms.net..) in
1507 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
1508 z order of our children before calling PerformLayout.
1510 2007-02-12 Chris Toshok <toshok@ximian.com>
1512 [big change, fixes #80020]
1514 * AccessibleObject.cs: we need to make owner internal again to fix
1515 some of ControlAccessibleObject.
1517 * Control.cs: lots of changes here. add support for WM_CREATE,
1518 for which we generate OnHandleCreated. Remove the OnHandleCreated
1519 call from CreateHandle. Also add support for WM_SHOWWINDOW where
1520 we create child controls. leave the MonoTODO's for the
1521 accessibility calls, but fix the exceptions so the tests pass.
1523 Add the InvalidOperationExceptions to Invoke methods, and remove a
1524 couple of InvokeInternal methods we aren't using.
1526 Also, add a couple of CreateHandle calls in places where we know
1527 the handles are being created but our code doesn't reference
1530 Make SetVisibleCore call OnVisibleChange if the handle isn't
1531 created. If the handle is created, we rely on XplatUI.SetVisible
1532 generating the event synchronously.
1534 Lastly, make sure we don't use this.Handle inside CreateHandle,
1535 because we can call back into client (and that code can dispose of
1538 * XplatUIStructs.cs: misc/cleanup.
1540 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
1541 although we don't populate the wParam properly.
1542 (CreateWindow): generate WM_CREATE.
1543 (MapWindow,UnmapWindow): make these calls synchronous, at great
1544 performance expense (particularly in the unmap case), to match
1547 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
1549 (set_MdiParent): don't recreate the handle unless it's been
1552 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
1555 * NativeWindow.cs: this is probably the weirdest part of the
1556 patch. We need a way to link up the window being created to the
1557 WM_CREATE message. Since we can only be creating one window at a
1558 time on a given thread, we keep track of a per-thread reference so
1559 we can dispatch it properly. We also need to keep track of the
1560 Hwnd currently being created so that the win32 backend doesn't
1563 * XplatUIWin32.cs: a similar change to the one we made in
1566 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
1568 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
1569 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
1570 to draw the menu shortcut string.
1572 2007-03-07 Jackson Harper <jackson@ximian.com>
1574 * TreeNode.cs: Add the 2.0 collapse method.
1576 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1578 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
1580 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1582 * DataGridView.cs: Change DataSource will clear column and row
1583 lists. Call Invalidate() to reflect DataSource change.
1585 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1587 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
1588 and a new row is added to it.
1590 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1592 * DataGridView.cs: Add columns when DataSource is en empty list but
1593 is a System.Data.DataView (from a System.Data.DataTable).
1595 2007-03-06 Andreia Gaita <avidigal@novell.com>
1597 * Label.cs: Implement AutoEllipsis (2.0)
1599 2007-03-06 Jackson Harper <jackson@ximian.com>
1601 * TreeView.cs: Implement 2.0 TopNode setter property.
1602 - Use a local var instead of the skipped_nodes field for computing
1603 how many nodes to skip. Otherwise we won't scroll because the
1604 valuechanged handler checks if skipped_nodes is equal to the new
1606 - Implement 2.0 Sort method.
1607 - Add useless 2.0 DoubleBuffer property
1608 - Implement 2.0 LineColors property. Lets you change the color of
1609 the lines in the tree. Terribly useful for creating non cohesive
1611 - Implement 2.0 image key feature.
1613 2007-03-06 Jackson Harper <jackson@ximian.com>
1615 * TreeView.cs: We can't get the bounds of the nodes before raising
1616 the AfterSelect event, because that event could change the node's
1617 bounds (scrolling, font change, etc).
1619 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1621 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
1622 * Form.cs: Don't recreate handle when creating FormWindowManager, just
1623 update window styles. In CreateParams us VisibleInternal instead of
1624 VIsible to get the actual visible flag set for this form.
1625 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
1626 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
1627 handle the case when the form is already maximized, in which case
1628 it should be restored. Fixes #81043.
1630 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1632 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
1634 2007-03-05 Jackson Harper <jackson@ximian.com>
1636 * TreeViewHitTestInfo.cs: implement.
1638 2007-03-05 Jackson Harper <jackson@ximian.com>
1640 * InternalWindowManager.cs: class status fix.
1642 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1644 * InternalWindowManager.cs: All windows that have a parent
1645 are confined to their parent when they're being moved.
1648 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
1650 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
1651 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
1653 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1655 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
1656 buttons invisible before deciding which ones should be visible
1657 (fixes minimize/maximize buttons showing up in toolwindows). Remove
1659 * InternalWindowManager.cs: Remove warning.
1661 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1663 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
1664 to throw an InvalidOperationException is virtual mode is being used.
1666 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
1668 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
1669 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
1670 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
1671 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
1672 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
1673 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
1675 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1677 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
1678 driver.KeyboardDelay from XplatUI.KeyboardDelay
1679 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
1680 (patch by Sergey Volk)
1682 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1684 * ToolWindowManager.cs: Added, contains logic for
1686 * CreateParams.cs: Add a few helper methods and an
1687 internal variable to know which control the CreateParams belongs
1689 * Control.cs: Call Form.ChangingParent when the
1690 parent is about to be changed.
1691 * XplatUIX11.cs: DeriveStyles (): Set
1692 caption_height for all windows that have captions and are children.
1693 Update to use ToolWindowManager instead of InternalWindowManager
1695 * XplatUIWin32.cs: Set fake window styles for all
1696 windows that have window managers.
1697 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
1698 now duplicated for mdi windows when they are
1699 maximized, first for the buttons the window itself has, then for
1700 the buttons that appear in the menu bar. Makes things a little
1701 easier). Updated UpdateWindowDecorations, SetWindowState and the
1702 mouse eventhandlers accordingly.
1703 * Form.cs: Add ChangingParent (), contains the
1704 logic of what should happen when the parent changes. In MdiParent
1705 don't set things that ChangingParent () is doing. When handling
1706 WM_CLOSE, we can close the form if there are any other modal forms
1707 and the current form is a descendent of the modal form.
1708 * InternalWindowManager.cs: A lot of refactoring,
1709 the title buttons are now extracted to a separate container class
1710 that takes care of all button code (clicks, tooltips, etc). Moved
1711 Iconic|Maximized|Normal Bounds properties to this class from
1712 MdiWindowManager, so that the window state logic can succeed for
1713 other than mdi wm's. Implemented general window state change logic.
1714 Moved CreateButtons to ThemeWin32Classic, since the theme might
1715 override which buttons are available when as well as the exact
1717 * FormWindowManager.cs: Added, contains logic for
1719 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
1720 which buttons go where (and if they are at all visible).
1721 Removed special handling of maximized windows, since they aren't special.
1722 In DrawManagedWindowDecorations don't try to draw the text if it is
1724 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
1725 use whatever the wm gives us.
1727 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
1729 * ButtonBase.cs: Add 2.0 properties.
1730 * Button.cs: Override Draw for 2.0.
1731 * Control.cs: Add Entered and Selected properties.
1732 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
1733 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
1734 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
1736 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
1738 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
1740 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
1742 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
1744 * XplatUIWin32.cs: Register a new class with Windows each time we get
1745 a new ClassStyle. [Fixes bugs #79432, #80817]
1746 * Controls.cs: Set the correct ClassStyle in CreateParams.
1747 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
1749 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
1751 * ListView.cs: Add fireEvent argument to ReorderColumn since the
1752 ColumnReordered event must not be signaled when modifying DisplayIndex
1753 of a ColumnHeader. Added internal ReorderColumns method which takes
1754 care of drawing, and updating the internal DisplayIndex of the
1755 ColumnHeader. Added AddColumn method which is invoked from
1756 ColumnHeaderCollection when adding or inserting columns, and which
1757 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
1758 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
1759 Recalculated dispay indices after removing a ColumnHeader.
1760 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
1761 match MS. Allows last display index to be returned after ListView
1762 is disposed. Update actual location of ColumnHeader when DisplayIndex
1765 2007-03-01 Everaldo Canuto <everaldo@simios.org>
1767 * LinkLabel.cs: Improve CalcTrimRectangle.
1769 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
1771 2007-02-28 Everaldo Canuto <everaldo@simios.org>
1773 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
1774 get rectangle as a result value.
1776 2007-02-28 Everaldo Canuto <everaldo@simios.org>
1778 * LinkLabel.cs: Theres some diferences between rectangle return from
1779 MeasureCharacterRanges and the area used for DrawString to fix this
1780 CalcMeasurementFactor method was created, it calcules the diferences
1781 to be use later to adjust rectangle in draw operations. Fixes #80473.
1783 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
1784 to adjust draw rectangle.
1786 2007-02-27 Everaldo Canuto <everaldo@simios.org>
1788 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
1789 text and some other changes to reduce and optimize source code.
1791 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
1793 * RadioButton.cs: Implement 2.0 event.
1794 * RelatedImageListAttribute.cs: Implement new class.
1796 2007-02-27 Everaldo Canuto <everaldo@simios.org>
1798 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
1800 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
1802 * CheckBox.cs: Implement 2.0 functionality.
1804 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1806 * ListView.cs: Refactor Add and AddRange methods of
1807 ListViewItemCollection, to not update the ListView
1808 everytime an item is added in AddRange. Also move the update
1809 code to a new CollectionChanged method, and call it
1810 from other methods that need it as well (this should also fix some
1811 bugs when Sorting is used).
1813 2007-02-27 Jackson Harper <jackson@ximian.com>
1815 * TextControl.cs: Try to never let the caret stay in a non-text
1817 * TextBoxBase.cs: Update the caret.
1819 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
1821 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
1822 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
1823 delete POINT structure, duplicate of one in XplatUIStructs.
1824 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
1826 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
1828 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
1829 edit box since otherwise the Label would immediately be set (even if
1830 the user did not modify the label). In OnKeyDown set Handled to true
1831 if Return or Escape was pressed. In ColumnHeaderCollection unlink
1832 columns that are to be removed. In ListViewItemCollection unlink items
1833 that are to be removed.
1835 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
1837 * TextRenderer.cs: If we set a GDI clip region, we need to clear
1838 it when we are done. [Fixes bug #80949]
1840 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1842 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
1844 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1846 * ListView.cs: I forgot to commit the changes for ListView
1847 in my previous patch.
1849 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1851 * Clipboard.cs: Partially implement an overload of SetDataObject.
1852 * Form.cs: Implement ShowWithoutActivation.
1853 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
1855 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1857 This is a first set of changes to make the Virtual mode works,
1858 by avoiding the retrieval of ListViewItem instances until
1861 * ListView.cs: Store item position in the ListView instead of the
1862 ListViewItem, this way we don't request the Bounds property of
1863 ListViewItem inside the ListView calculations, as well as cache the item
1864 size in item_size field. Store indexes instead of ListViewItem
1865 instances in the matrix used by icon view. Add a ItemMatrixLocation
1866 struct to hold the row and col info of the matrix info.
1868 * ListViewItem.cs: Don't store the location anymore, and only cache
1869 the rectangles for GetBounds. Use the ListView.GetItemLocation
1870 method to retrieve the actual location.
1872 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1874 * TextRenderer.cs: Add clipping support, thanks to George.
1877 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
1879 * ListViewItem.cs: Cancel label edit when item is removed from
1881 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
1882 event before the edit textbox is displayed. Added CancelEdit method
1883 which is used end to editing while ignoring the value set by the
1884 user. In EndEdit, set focus to ListView to avoid losing focus to
1885 other controls. In ListViewItemCollection.Clear, cancel editing of
1886 any of the items. In Remove, cancel editing of item being removed.
1887 Avoid udplicate code by modifing RemoveAt to invoke Remove.
1889 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
1891 * FileDialog.cs: Update FSEntry when move is successful. Fixes
1894 2007-02-23 Everaldo Canuto <everaldo@simios.org>
1896 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
1897 compatible with non X11 systems. Fixes #80901.
1899 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
1901 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
1902 whether the item should be unselected and reselect. We do no want this
1903 when we're starting to edit the label. Do not fire the
1904 SelectedIndexChanged event from ListView when its already been fired
1905 by modifying ListViewItem.Selected. Fixes bug #80943.
1907 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1909 * TextRenderer.cs: Previos commit logic was backwards.
1911 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1913 * TextRenderer.cs: Don't add padding on MeasureText if we were
1914 sent the NoPadding flag.
1916 2007-02-23 Everaldo Canuto <everaldo@simios.org>
1918 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
1919 after DrawButton. To prevent image overlaps button borders SetClip and
1920 ResetClip added before and after draw image. Fixes #79129.
1922 2007-02-23 Everaldo Canuto <everaldo@simios.org>
1924 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
1925 window size, it fix problem when you run under win32 that theres
1926 Size diferent than ClientSize. Also fix controls size and positions
1927 to mimic Win32. Fixes #80837.
1929 2007-02-22 Everaldo Canuto <everaldo@simios.org>
1931 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
1932 menu area to fix some problems for non X11 systems. Fixes #80613.
1934 2007-02-22 Jackson Harper <jackson@ximian.com>
1936 * TreeNode.cs: When a node is expanded, set its is_expanded flag
1937 even if it doesn't have any children.
1939 2007-02-22 Jackson Harper <jackson@ximian.com>
1941 * TreeView.cs: Calculate the top node 'on the fly', this
1942 eliminates issues where you need to click on the tree before
1943 scrolling it to get the top node computed correctly.
1944 * TreeNodeCollection.cs: We don't need to mess with the top node
1947 2007-02-22 Jackson Harper <jackson@ximian.com>
1949 * DataGridViewRow.cs: Fix typo so height can actually be set.
1950 Patch by Peter Grimm.
1952 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
1954 * FileDialog.cs: Fixed support for renaming files and directories.
1955 * ListView.cs: Do not lose focus when edit is canceled. Process
1956 Escape as regular key (to prevent closing of dialogs).
1958 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
1960 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
1961 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
1963 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
1965 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
1966 did not modify label.
1967 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
1968 modified the text. Reset Label when user presses Escape in edit mode.
1969 Move focus to ListView after having cancelled or finished editing the
1972 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
1974 * ComboBox.cs: Removed unnecessary initializations. Marked items field
1975 private. Clear textbox when Text is set to null and SelectedIndex is
1977 * FileDialog.cs: Removed unnecessary initializations. Removed
1978 workarounds for ComboBox bugs that are now fixed. Modified
1979 DefaultExt, InitialDirectory and Title property to change null to
1980 zero-length string in getters. Avoid directly accessing fields.
1982 2007-02-20 Jackson Harper <jackson@ximian.com>
1984 * TextControl.cs: Remove RecalAlignments call, that was some
1985 debugging leftovers.
1986 - Don't use the line indent when we shouldn't.
1987 * RichTextBox.cs: Add support for paragraph left indents.
1989 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1991 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
1992 Seems like the class status pages doesn't catch params differences.
1994 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
1996 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
1998 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
2000 * ComboBox.cs: Setting Text should have no effect if item text of
2001 selected item exactly matches value. First lookup text using
2002 case-sensitive comparison, and fallback to case-insensitive comparison.
2003 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
2004 allow startIndex to be last index. Changed ArgumentOutOfRangeException
2005 paramname to match MS. Restart from first item if string is not found
2006 after startIndex. Fixed paramname of ArgumentNullException that is
2007 thrown for null value in ObjectCollection.Contains.
2009 2007-02-19 Everaldo Canuto <everaldo@simios.org>
2011 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
2013 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
2015 * ListControl.cs: In SelectedValue use value.Equals to compare for
2016 equality instead of ==, otherwise it will fail for strings.
2019 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
2021 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
2022 since the caret won't show up unless ShowSelection is true.
2025 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
2027 * Application.cs: When disabling all forms but the main form, do not
2028 disable any descendants of the main form (such as mdi children or
2029 other parented forms). Fixes #80822 on Windows.
2030 * Form.cs: If we have a parent, set the WS_CHILD style.
2031 * Control.cs: Update the window styles if the control whose parent has
2032 changed is a form (the WS_CHILD style has to be switched).
2034 2007-02-19 Everaldo Canuto <everaldo@simios.org>
2036 * XplatUIStructs.cs: MsgUIState structure added.
2038 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
2040 * FileDialog.cs: Removed need for separate fileName field. On 2.0
2041 profile, do not check filename(s) for illegal character if filename(s)
2042 were set non-interactively but always check on 1.0 profile. Fixed NRE
2043 in DefaultExt and only strip off first leading dot. Improve exception
2044 message when invalid Filter is set. Do not ignore InitialDirectory if
2045 it does no exist. Store specified Title, and if empty use default
2046 title (depending on type of dialog). Added an internal DialogTitle
2047 property for retrieving dialog title. Fixed logic of displayed dir to
2048 more closely match MS. Avoid setting ComboBox.Text to a zero-length
2049 string as its buggy.
2050 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
2051 FileName is a zero-length string (it can never be null). Override
2052 DialogTitle property to set default title of dialog box.
2053 * SaveFileDialog.cs: Override DialogTitle property to set default
2054 title of dialog box.
2056 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
2058 * FileDialog.cs: Modify default text of filename and filetype labels
2059 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
2060 after we've updated the SelectedIndex. Fixes part of bug #80887.
2061 * SaveFileDialog.cs: Set text of filetype label.
2063 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2065 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
2066 label field. Needed by latest Jackson's fixes for ListView.
2068 2007-02-16 Andreia Gaita <avidigal@novell.com>
2070 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
2071 print preview images.
2073 2007-02-16 Jackson Harper <jackson@ximian.com>
2075 * ListView.cs: Make AfterLabelEdit work correctly.
2076 * FileDialog.cs: After changing the name of the folder, we have to
2077 make sure that it is created, or that we pop up an error because
2080 2007-02-16 Jackson Harper <jackson@ximian.com>
2082 * X11Dnd.cs: Implement aliases on mime handlers, so things like
2083 System.String are mapped to text.
2084 - Handle dataobjects, getting all the possible formats out of them
2085 - We dont need the drag event args before we give feedback. This
2086 allows feedback cursors to be immediate before selections have
2089 2007-02-16 Jackson Harper <jackson@ximian.com>
2091 * TextBoxBase.cs: Modified the method for inserting images to
2092 taking a line and position instead of tag and position.
2093 * RichTextBox.cs: Handle PngBlip data by inserting the png image
2095 * TextControl.cs: Allow images to be inserted as the first tag of
2097 - Fix some off by one issues when we assume the first tag is a
2098 text tag, not an image tag.
2100 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2102 * ListView.cs: Set focus to ListView when ItemControl gets a
2103 WM_RBUTTONDOWN message, to mimic .Net behaviour.
2104 Fixes part of #80467.
2106 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
2108 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
2109 validate Text input (if null or empty string reset Value to default
2110 value). Fixes #80830.
2112 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2114 * ListView.cs: Set owner as null for columns and items when
2115 Dispose is invoked. Fixes #80607.
2117 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
2119 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
2120 showing DropDowns, don't show a Grip when doing Flow layout.
2121 [This fixes the toolbox in PDN 2.72.]
2122 * ToolStripItem.cs: Add Anchor property and some internal properties to
2123 reduces needed changes to FlowLayout.
2124 * ToolStripOverflow.cs: Remove unused variable.
2125 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
2126 use it in the layout calculations.
2128 2007-02-13 Everaldo Canuto <everaldo@simios.org>
2130 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
2133 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
2136 2007-02-13 Everaldo Canuto <everaldo@simios.org>
2138 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
2139 MeasureString format, it can make button very large in some cases, it is
2140 strange but is what win32 do.
2142 2007-02-13 Everaldo Canuto <everaldo@simios.org>
2144 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
2147 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
2148 rendering, the value is based on MenuAccessKeysUnderlined.
2150 2007-02-13 Everaldo Canuto <everaldo@simios.org>
2152 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
2155 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
2157 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
2158 and use MenuAccessKeysUnderlined instead.
2160 2007-02-13 Andreia Gaita <avidigal@novell.com>
2162 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
2163 A selected control would not get a Focus call if:
2164 - the default active control of the container is the same as
2165 the one that was selected
2166 - we are switching from one container to another
2167 Under these conditions, the container being selected already has
2168 an active_control, which is the same as the one being activated,
2169 so set_ActiveControl would always return and not send the Focus
2170 call. Fix to check if the currently active control of the container
2171 is actually focused.
2173 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
2175 * StatusStrip.cs: Implement the spring layout.
2176 * ToolStripControlHost.cs: Make sure the hosted control's visibility
2177 always matches the host.
2178 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
2181 2007-02-13 Andreia Gaita <avidigal@novell.com>
2183 * Control.cs: Code reorganization only.
2184 - Reorganize the WndProc cases so that each case has it's own handling method,
2185 to help with the no-line-numbering stack traces.
2186 - Formatting changes (it's vstudio's fault, really :p)
2188 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2190 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
2191 Thread.CurrentUICulture to match DateTimePicker's (and MS)
2194 2007-02-12 Jackson Harper <jackson@ximian.com>
2197 * TextBox.cs: By default we have a non multiline document
2198 - use the multiline property instead of the internal variable
2199 * TextBoxBase.cs: Treat multiline and non multiline the same in
2201 - Use the documents multiline flag instead of tracking it ourself
2202 * TextControl.cs: Attempt at getting multiline to match MS
2203 behavior. Lines now track an offset, which is either their X or Y
2204 offset depending on whether or not we are in multiline mode.
2205 - Update all the methods to understand that lines have an X value.
2206 - Fix crash in Undo::Duplicate when empty lines are deleted.
2208 2007-02-12 Everaldo Canuto <everaldo@simios.org>
2210 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
2211 code moved to properties PreferredHeight and PreferredWidth. It solve the
2212 all problems when preferred sizes must be recalculated. Fixes #80801.
2214 2007-02-12 Everaldo Canuto <everaldo@simios.org>
2216 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
2217 font height when compatible_text_rendering is false. Partially fix #80801.
2219 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
2221 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
2223 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
2225 * Form.cs: Improved exception messages in ShowDialog.
2227 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
2229 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
2230 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
2231 if not set. Fixes bug #80764. Avoid accessing current_settings field
2234 2007-02-08 Everaldo Canuto <everaldo@simios.org>
2236 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
2239 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
2240 public in 2.0 and for easy maintenance and dont break compatibility it is
2243 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
2245 * ToolStripItem.cs: Implement using images from ImageList.
2247 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2249 * DateTimePicker.cs: Change default date-formatting culture from
2250 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
2251 seems to be the way MS does it.
2253 2007-02-08 Andreia Gaita <avidigal@novell.com>
2255 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
2256 (the 6 was cut off on the right side)
2258 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
2260 * Form.cs: Tell MenuStrips to close when the form is clicked.
2261 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
2262 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
2263 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
2264 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
2265 support for Overflow, where items that do not fit are automatically
2266 reparented to a drop down menu.
2267 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
2268 Also: fixes bug #80747.
2270 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2272 * ComboBox.cs: Remove warning (unused code).
2273 * ScrollableControl.cs: Remove warning for 1.1 profile.
2275 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2277 * Form.cs: Remove a warning.
2279 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2281 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
2282 'g' specifier, not documented anywhere, but seems to always show up
2283 as a single space (might have something to do with the DateTime 'g'
2284 specifier, which is the era format, but since DateTimePicker can't
2285 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
2286 won't crash if the format has an unmatched quote. Now shows
2287 single-character formats correctly. Fixes #80744.
2289 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
2291 * StatusStrip.cs: Stretch property needs to call base.Stretch,
2292 not this.Stretch to fix stack overflow. [Fixes bug #80760]
2294 2007-02-07 Chris Toshok <toshok@ximian.com>
2296 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
2297 background color. it overwrites the background image we've
2298 already painted. Fixes #80599.
2300 2007-02-07 Chris Toshok <toshok@ximian.com>
2302 * DataGrid.cs: return immediately from Edit() when there are no
2303 columns. Fixes #80662.
2305 2007-02-07 Chris Toshok <toshok@ximian.com>
2307 * MessageBox.cs: fix #80625. don't always show the Help button in
2308 2.0. use the displayHelpButton parameter to determine if we
2309 should show it. Also, make the internal show_help field private.
2311 2007-02-07 Chris Toshok <toshok@ximian.com>
2313 * Control.cs (SetVisibleCore): check in the proposed patch for
2314 80604, and set is_visible before calling CreateControl.
2316 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
2318 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
2319 MonoInternalNote. This is added automagically by VS2005, so let's not crash
2322 2007-02-06 Everaldo Canuto <everaldo@simios.org>
2324 * MenuAPI.cs: hotkey_active internal field added, it is required because
2325 we need to know when hotkeys must be draw, before this change a keystate
2326 Navigating was used but we can have menu in navigating state without
2327 hotkeys. Fixes #80694.
2329 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
2331 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2333 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
2334 corresponding events and methods to be internal for 1.1 profile and
2335 public for 2.0 profile (required by SizeGrip).
2336 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
2337 implicit control list). Don't set the size nor the location of the
2338 SizeGrip anymore as it's not needed.
2339 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
2340 draw directly on the captured control (fixes #80656). Removed
2341 ShowGrip (it wasn't used anywhere), redraw (always true), added
2342 GetDefaultSize and GetDefaultRectangle to calculate defaults.
2343 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
2344 be called from SizeGrip.
2346 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2348 * Timer.cs: Throw ArgumentException if Interval <= 0.
2350 2007-02-05 Jackson Harper <jackson@ximian.com>
2352 * TreeView.cs: We need to check scrollbar visibility when window
2353 visibility is updated, because non visible trees don't ever add
2355 * Cursor.cs: We want the override cursor to be reset to NULL when
2356 we set current cursor to the default cursor.
2358 2007-02-05 Jackson Harper <jackson@ximian.com>
2360 * TextControl.cs: Don't have crlfs when we are non multiline.
2361 - Consolidate the line position.
2363 2007-02-05 Jackson Harper <jackson@ximian.com>
2365 * X11Keyboard.cs: BACK+CTRL gets a special char code.
2367 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
2369 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
2370 handling LeaveNotify->NotifyUngrab in order to send
2371 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
2372 after calling XUngrabPointer, so we call WindowUngrabbed directly
2373 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
2374 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
2375 MouseCaptureChanged correctly. Also create handles if changing
2376 Capture (matches MS behaviour).
2378 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2380 * SizeGrip.cs: Make the last change 2.0 only.
2382 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2384 * SizeGrip.cs: If resizing and the capture is lost, revert any size
2385 changes to initial size (fixes #80597).
2387 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2389 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
2391 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2393 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
2394 background) and only allow dragging if enabled. This way the
2395 sizegrip can be used to fill the open square that otherwise would
2396 have been shown in the bottom right corner of ScrollableControl
2397 when ScrollableControl is not suppose to support sizing.
2398 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
2399 sizegrip is shown and enabled, and hook up with necessary events.
2401 2007-02-01 Chris Toshok <toshok@ximian.com>
2403 * DataGridTextBoxColumn.cs: clean up the
2404 GetFormattedString/GetColumnValueAtRow combination of functions.
2405 Also fix UpdateUI, and the initial state of
2406 IsInEditOrNavigateMode.
2408 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
2409 aren't supposed to scroll the textbox here, we're supposed to
2410 scroll the datagrid.
2412 2007-02-01 Chris Toshok <toshok@ximian.com>
2414 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
2415 setting the position.
2417 2007-02-01 Chris Toshok <toshok@ximian.com>
2419 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
2420 here, since the most recent focus fixes keep us from generating
2421 the Leave event when our textbox gets focus.
2422 (Edit): we should be passing null for the column style's
2423 instantText parameter.
2425 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
2427 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
2428 raised. Fixes menu text/icons not showing up in PDN.
2430 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2432 * Control.cs: Remove code in constructor that makes every
2433 control with WS_CHILD set have initial location -1, -1.
2435 2007-01-31 Jackson Harper <jackson@ximian.com>
2437 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
2439 * XplatUIX11.cs: Give teh keyboard to teh dnd.
2441 2007-01-31 Jackson Harper <jackson@ximian.com>
2443 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
2444 - Remove some debug code.
2446 2007-01-31 Jackson Harper <jackson@ximian.com>
2448 * XplatUIX11.cs: If you set the override cursor during a grab, it
2449 should actually override the grab cursor. This comes into play
2450 when you are setting custom cursors in a DND feedback method.
2452 2007-01-31 Jackson Harper <jackson@ximian.com>
2454 * X11Dnd.cs: Add support for handling the QueryContinue and
2455 GiveFeedback events.
2456 - Cancel drag and drop actions when the escape key is clicked.
2457 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
2458 can handle the ESCAPE key.
2459 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
2460 done when dnd events are continued after the button is released.
2461 - Add a new helper method so that dnd can translate key events.
2463 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
2465 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
2466 make it more obvious what is happening.
2468 2007-01-30 Jackson Harper <jackson@ximian.com>
2470 * XplatUIX11.cs: Don't break when handling button release in drag
2471 and drop operations. We need that BUTTONUP message to get through
2472 so capture is released.
2473 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
2474 this is handled automatically when the mouse is down.
2476 2007-01-30 Jackson Harper <jackson@ximian.com>
2478 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
2479 is closed, so we need to make sure that we aren't changing the
2480 dialog result when the OK (Open or Save) button has been clicked
2481 and we are closing the window ourselves. Note we don't need to
2482 worry about the cache being written in this case, because it was
2483 already done in the previous FilOk call.
2485 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2487 * DateTimePicker.cs: Remove a warning.
2488 * ComboBox.cs: Remove a couple of warnings.
2490 2007-01-29 Chris Toshok <toshok@ximian.com>
2492 * XplatUIX11.cs: don't crash, and remove the icon if the user has
2493 set one, if SetIcon is passed a null icon.
2495 2007-01-29 Andreia Gaita <avidigal@novell.com>
2497 * TextBox.cs: Redraw when the password characters changes
2498 * TextControl.cs: Check if textbox has a password char and draw
2499 a line of password chars instead of the text in the line. LineTag gets
2500 an extra Draw() method which allows document.Draw to override the text
2501 that will be drawn. Removes 1024 char limitation on length of passworded
2504 2007-01-29 Jackson Harper <jackson@ximian.com>
2506 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
2507 single chars is not.
2509 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
2511 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
2512 one pixel. Fix a StackOverflowException caused by an overload wrongly
2515 2007-01-26 Everaldo Canuto <everaldo@simios.org>
2517 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
2518 also remove ProcessArrowKey and put the code inside ProcessKeys.
2520 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
2522 * PaddingConverter.cs: Added.
2524 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
2526 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
2527 ShowPanels is false (fixes #80600). Only draw up to 127 characters
2528 of text (fixes #80601). For panels clip the text to draw to the
2529 panel (fixes #80603).
2531 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
2533 * ComboBox.cs: Fixed implementation of ResetText.
2535 2007-01-25 Jackson Harper <jackson@ximian.com>
2537 * TextControl.cs: For the last char of a line we need to use the
2538 line size, not that chars width, since it won't actually be
2539 computed since the right side of a char is based on the start of
2540 the left side of the next char, and the next char does not exist.
2542 2007-01-25 Chris Toshok <toshok@ximian.com>
2544 * Splitter.cs: fix the new unit tests, and reindent some switch
2547 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2549 * ComboBox.cs: Implemented 2.0 methods and events.
2550 * TextBoxBase.cs: Added OnTextUpdate, so that
2551 ComboBox.ComboTextBox can inform ComboBox of it.
2553 2007-01-25 Jackson Harper <jackson@ximian.com>
2555 * TextControl.cs: Respect ShowSelection when deciding whether or
2556 not to display the caret, this allows comboboxes to have carets
2557 when the combotextbox does not have focus.
2559 2007-01-25 Jackson Harper <jackson@ximian.com>
2561 * TextControl.cs: Add a Suspend/Resume for updating, basically the
2562 same as the Suspend/Resume for recalc, except this will do actual
2564 - New Undo manager, works much like the MS version.
2566 * TextBoxBase.cs: The Cut operation is undoable.
2568 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2570 * TextBoxBase.cs: Don't antialias text. Makes it look way better
2571 on Windows (no difference on Linux).
2573 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2575 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
2576 we don't want to activate any windows. Fixes #79433.
2578 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
2580 - ButtonBase.cs: Fix capitalization of parameter: disposing.
2583 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
2586 - Move to using System.ComponentModel.EventHandlerList
2587 - Replace Refresh with Invalidate
2588 - Clear the mime filecache on closing
2589 - Some other memory reducing work. After beeing closed FD now uses
2590 only about 300 KB for the fdo mime stuff plus the memory of the
2592 * Mime.cs: Changed coding style and removed unnecessary commented
2593 code. Some more memory memory reducing work.
2595 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2597 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
2598 a few other missing 2.0 properties.
2599 * Theme.cs: Added DrawFlatStyleComboBox.
2600 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
2602 2007-01-24 Chris Toshok <toshok@ximian.com>
2604 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
2605 wake_waiting flag, not just when there's data to be read. if we
2606 don't, then future wakeup's won't reach us and we'll be doomed to
2607 wait for the entire 1 second timeout forever (unless there are X
2610 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
2612 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
2613 until you pass Items.Count, not Items.Count - 1 like 1.1.
2615 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
2617 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
2619 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
2621 * ToolStripContainer.cs: The recent Dock fix exposed that I was
2622 adding the panels in the wrong order.
2624 2007-01-24 Jackson Harper <jackson@ximian.com>
2626 * TextBoxBase.cs: When we move the caret we also need to move the
2627 selection, this fixes some random crashing after doing select
2628 text, unselect, delete a char, paste.
2630 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2632 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
2634 2007-01-23 Everaldo Canuto <everaldo@simios.org>
2636 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
2637 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
2638 * ToolBar.cs: Force redraw in BackgroundImageChanged.
2640 2007-01-23 Everaldo Canuto <everaldo@simios.org>
2643 - Implement support for vertical toolbars. Fixes #80539;
2644 - Call LayoutToolBar when resize, it fix some other problems in layout.
2645 - Rename requested_height to requested_size, as we can have width on it
2646 when toolbar is vertical.
2647 - Create a private property "Vertical" that uses Dock to verify when
2648 toolbar is vertical or not.
2649 - Set ControlStyles when change Dock property.
2650 - Refactory in LayoutToolBar to have better variables names and to support
2652 - Fixes default value for ButtonSize when button count is equal zero, size
2653 must be (39, 36) test case writed.
2655 2007-01-23 Chris Toshok <toshok@ximian.com>
2657 * Control.cs: fix the checks so that they work correctly for mdi
2660 2007-01-23 Chris Toshok <toshok@ximian.com>
2662 * Control.cs: ControlCollection seems to have super-secret
2663 abstraction breaking knowledge of Mdi containers. allow MdiClient
2664 to add toplevel controls.
2666 2007-01-23 Chris Toshok <toshok@ximian.com>
2668 * Control.cs: throw an ArgumentException if a toplevel control is
2669 added to our control collection from ControlCollection.Add, as
2670 well as from ControlCollection.IList.Add. This fixes the
2671 ControlSetTopLevelTest.TestTopLevelAdd unit test.
2673 Also, in ControlCollection.IList.Add, don't through an
2674 ArgumentNullException, throw an ArgumentException, when value ==
2675 null. This matches MS.
2677 2007-01-23 Chris Toshok <toshok@ximian.com>
2679 * BindingSource.cs: initial, incomplete, implementation of
2682 2007-01-23 Jackson Harper <jackson@ximian.com>
2685 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
2686 that I can fix a broken unit test (TextBoxTest::ClearUndo)
2688 2007-01-23 Everaldo Canuto <everaldo@simios.org>
2690 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
2692 2007-01-23 Andreia Gaita <avidigal@novell.com>
2694 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
2695 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
2696 IndexOfKey() for 2.0
2698 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2700 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
2701 to prevent it from changing z-order.
2702 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
2703 leave UI updates in MdiWindowManager.
2704 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
2705 1 sized (NC handling goes weird on Linux otherwise).
2706 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
2707 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
2708 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
2709 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
2710 and SetWindowState(s) to allow for changing the size of an activated child
2711 before activating it (reduces a lot of flicker).
2713 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
2715 * Form.cs: Changing FormBorderStyle has different semantics based
2716 on whether the Form is visible or not. If not visible, don't change
2717 the Size. But InvalidateNC needs to be called to force the window
2718 to pick up the changes and redraw itself. [Fixes bug #80574]
2720 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
2723 * ContainerControl.cs: ProcessCmdKey.
2724 * ErrorProvider.cs: new constructor.
2725 * Form.cs: fix AutoValidateEvent compiler warning.
2726 * Label.cs: fix OnAutoSizeChanged compiler warning.
2727 * MenuStrip.cs: fix CanOverflow compiler warning.
2728 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
2729 * TextBox.cs: Dispose.
2730 * ToolStrip.cs: CanOverflow, re-enable double buffering.
2731 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
2732 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
2733 * ToolStripItem.cs: Overflow, RightToLeft properties.
2735 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
2737 * Form.cs: Move the layout of the main form to MdiWindowManager.
2738 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
2739 do a layout of the main window to update MdiClient's client area to
2740 the right area. Fixes #80533. Remove the calculation of nc size,
2741 it was just wrong and the correct one is the same as for
2742 InternalWindowManager.
2744 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
2746 * Control.cs: Setting Anchor or Dock needs to reset the other
2747 to its default. [Fixes bug #80556]
2749 2007-01-20 Chris Toshok <toshok@ximian.com>
2751 * CheckedListBox.cs: class status changes.
2753 * ScrollableControl.cs: same.
2755 * RichTextBox.cs: same.
2757 * ContainerControl.cs: same.
2759 * ListView.cs: same.
2761 * NotifyIcon.cs: same.
2763 * MenuStrip.cs: same.
2765 * RadioButton.cs: same.
2767 * CheckBox.cs: same.
2769 * PrintPreviewDialog.cs: same.
2773 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
2775 * TreeNode.cs: Apply Alan's patch for Name property.
2777 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
2779 * Form.cs: Implemented SizeGripStyle.
2780 * SizeGrip.cs: Check for minimum and maximum size for the
2781 control being resized and only resize if size has actually
2784 2007-01-19 Chris Toshok <toshok@ximian.com>
2786 * DataGridColumnStyle.cs: stop setting _readonly in the
2787 PropertyDescriptor setter. fixes a unit test failure.
2789 also, rename ParentReadOnly to TableStyleReadOnly, and have it
2790 just consult our table style (if we have one). We don't need to
2791 consult the datagrid readonly attribute because that's passed in
2792 as the _ro arg to Edit. this simplifies things a little.
2794 * DataGrid.cs: use CurrentColumn instead of
2795 current_cell.ColumnNumber just to simplify some of the code.
2797 switch the order of some things in the CurrentCell setter to keep
2798 the previous cell from getting a textbox again -
2799 EnsureCellVisibility causes scrolling to happen, which calls Edit.
2800 So we need to set the new cell before calling it.
2802 call Edit in OnEnter, as does Microsoft.
2804 also, make sure the current table style isn't the one we create
2805 initially when checking to see if it's different than the one
2806 we're setting it to in BindColumns (this fixes #80421).
2808 * GridTableStylesCollection.cs: table styles can have "" for a
2809 mapping name. part of the fix for #80421.
2811 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
2814 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2816 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
2817 and less GDI object leaky-er.
2819 2007-01-18 Andreia Gaita <avidigal@novell.com>
2821 * LinkLabel.cs: Add opaque control style
2823 2007-01-18 Jackson Harper <jackson@ximian.com>
2825 * TextControl.cs: Calculate width properly.
2826 - Don't store the tag's X offset, this can be figured out very
2828 - When getting the caret tag make sure to get the last empty tag.
2830 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2832 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
2835 * Control.cs: Color.Empty shouldn't count for previous transparent
2838 2007-01-18 Jackson Harper <jackson@ximian.com>
2842 * TextControl.cs: Starting to merge in some pieces of my older
2843 undo work. Basically just some slight cleanup of the undo API.
2845 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
2847 * TrackBar.cs: Fix signature of RightToLeftLayout.
2848 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
2849 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
2850 * Application.cs: Implemented UseWaitCursor.
2852 2007-01-18 Jackson Harper <jackson@ximian.com>
2854 * TextControl.cs: We can't skip tags if any part of the tag is
2857 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2859 * ContainerControl.cs: Override OnLayout.
2861 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2863 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
2865 * ContextMenuStrip.cs: Make sure context menu is shown on top of
2868 2007-01-18 Chris Toshok <toshok@ximian.com>
2870 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
2871 (leftover from the container_selected days, I'd wager). fixes bug
2874 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2876 * Control.cs: Apply patch from George to fix the new testcase on
2877 bug #80451. We can't just check for Color.Transparent, we need
2878 to check if the back color's alpha channel is < 255.
2880 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2882 * Form.cs: Move setting show_icon = true to before the constructor
2883 so that the base constructor has that information when it calculates
2884 the form's size. Was causing forms to be (6, 6) bigger than they
2885 were supposed to be. Thanks for catching this Rolf!
2887 2007-01-18 Jackson Harper <jackson@ximian.com>
2889 * TextControl.cs: When replacing a selection we need to invalidate
2890 from the initial selection start, because selection start is moved
2891 to the end of the replacement.
2893 2007-01-18 Andreia Gaita <avidigal@novell.com>
2895 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
2897 2007-01-18 Chris Toshok <toshok@ximian.com>
2899 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
2902 2007-01-17 Everaldo Canuto <everaldo@simios.org>
2904 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
2905 layout methods and properties from ToolBarButton must be available
2906 into ToolBarButtonInfo.
2908 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
2910 * Control.cs: If the control has a transparent background, we
2911 need to refresh it when it moves and when it's parent's background
2912 image changes. [Fixes bug #80451]
2914 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
2916 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
2918 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
2920 * XplatUIWin32.cs: Implement proper double buffering for Windows.
2921 [Fixes bug #80447, and probably speeds up things as well]
2923 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2925 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
2926 * XplatUIWin32.cs: We need to recalculate NC size after changing
2927 window style to toolwindow (otherwise the client rectangle will be
2928 3 pixels to small for some reason).
2929 * MdiWindowManager.cs: Revert NC size calculations to match how
2930 they are calculated only based on window styles (to match
2931 Win32AdjustWindowRectEx, since otherwise when setting size or
2932 location, Control will call Win32AdjustWindowRectEx to update client
2933 size, which would provoke a paint, then we'd get a NCCALCSIZE and
2934 calculate a different value of client size causing another paint
2936 * InternalWindowManager.cs: When moving or resizing a window only
2937 update size or location if they actually changed.
2938 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
2939 (seems to match Windows behaviour better). Cleaned up
2940 ManagedWindowDecorations to draw what's needed and nothing else
2941 (was drawing borders and lines where they shouldn't be)
2942 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
2943 (style = 0xFFFF) and takes into account caption height when
2944 calculating window rectangle.
2946 2007-01-16 Everaldo Canuto <everaldo@simios.org>
2948 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
2949 can be added to toolbar multiple times, we need to maintain a list of
2950 button information for each positions.
2952 2007-01-16 Everaldo Canuto <everaldo@simios.org>
2954 * ToolBar.cs: Some small stetic changes.
2956 2007-01-16 Jackson Harper <jackson@ximian.com>
2958 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
2959 that allow us to have nested recalc = false blocks.
2960 - Add paste support for images in the RichTextBox
2961 * RichTextBox.cs: flush the text after the color is changed, so
2962 the change takes effect.
2964 - Some extra debugging info
2965 * TextControl.cs: Tags no longer track their length, it is just
2966 computed from the next tags length, this makes things a little
2967 simpler and reduces places that we have to track length changes.
2968 - Refactored the linetag class a little so we could make it
2969 a base class for different kinds of tags
2970 - Created a image tag, a tag that can have a single image inserted
2972 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
2973 that we can call suspend multiple times.
2974 - Add some debugging methods
2976 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2978 * MdiClient.cs: Add ActivatePreviousChild for
2979 mdi child window navigation.
2980 * Form.cs: Use MdiClient.ActivateNextChild/
2981 ActivatePreviousChild instead of Form.SelectNextControl
2982 to select the next/previous child since
2983 SelectNextControl doesn't do it in the same order
2984 as mdi children should do it.
2986 2007-01-16 Chris Toshok <toshok@ximian.com>
2988 * Control.cs: remove container_selected field.
2990 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2992 * MdiClient.cs: Update main form's ActiveChild when
2993 updating keyboard focus for the mdi child.
2995 2007-01-16 Jonathan Pobst <jpobst@novell.com>
2997 * Control.cs: PreferredSize fix.
2999 * Form.cs: Add several 2.0 events, properties, and methods.
3001 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
3003 * Form.cs: Provide meaningful message when MdiParent is assigned a
3004 Form that is not an MdiContainer.
3006 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
3008 * MdiClient.cs: Update main form's ActiveChild when
3009 activating a mdi child.
3011 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
3013 * MdiWindowManager.cs: Fix NRE when merging menus and main form
3014 doesn't have a menu.
3016 * Form.cs: Request NCRecalc after creating a mdi child window.
3017 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
3018 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
3020 * MdiClient.cs: Add new method SendFocusToActiveChild that either
3021 sends keyboard focus to the active child, or to the MdiClient
3022 if there are no child forms.
3024 2007-01-15 Chris Toshok <toshok@ximian.com>
3026 * ListView.cs: drop the *Internal overrides, just do our work in
3027 ItemControl's WndProc instead.
3029 * UpDownBase.cs: a few large changes. Fix up the Selectable state
3030 of the various controls, and forward the events properly (in the
3031 same manner as MS) from the textbox to the UpDown. Also the
3032 ActiveControl of the UpDownBase gets set properly now. Finally,
3033 we don't call UpdateEditText from the ctor. Fixes bug #79957.
3035 * NumericUpDown.cs: set Text in the ctor.
3037 * DomainUpDown.cs: call UpdateEditText in the ctor.
3039 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
3040 so even a Selectable = false textbox can be focused if you click
3043 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
3044 just add their handling in their respective WndProc's. Also add
3045 an explicit FocusInternal method that doesn't consult CanFocus
3046 before calling Select(this).
3048 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
3049 do our work in WndProc instead.
3051 * TabControl.cs: same.
3053 * ComboBox.cs: same.
3055 2007-01-15 Everaldo Canuto <everaldo@simios.org>
3057 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
3060 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3063 * ThemeWin32Classic.cs: Don't draw the item text outside
3064 item bounds in Details view, as well as use trimming.
3067 2007-01-15 Jonathan Pobst <jpobst@novell.com>
3069 * Form.cs: Implement Form.ShowIcon.
3071 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
3072 null, which when combined with the DlgModalFrame window style removes
3073 the icon from the title bar.
3075 2007-01-15 Jonathan Pobst <jpobst@novell.com>
3077 * Control.cs: Call OnMouseClick after OnClick. (2.0)
3079 2007-01-15 Everaldo Canuto <everaldo@simios.org>
3081 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
3082 menu when mdi child windows theres a menu, uses insert to get icon
3083 at first position. Partially fix #80006.
3085 2007-01-15 Jonathan Pobst <jpobst@novell.com>
3087 * Clipboard.cs: Implement 2.0 methods.
3089 2007-01-15 Everaldo Canuto <everaldo@simios.org>
3091 * Menu.cs: Implement Insert method of MenuItemCollection class
3094 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3096 * ListView.cs: Implement 2.0 FindItemWithText method.
3098 2007-01-11 Everaldo Canuto <everaldo@simios.org>
3100 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
3101 to calculate menu bar size. Fixes #80290.
3103 2007-01-11 Everaldo Canuto <everaldo@simios.org>
3105 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
3107 2007-01-11 Chris Toshok <toshok@ximian.com>
3109 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
3112 2007-01-11 Chris Toshok <toshok@ximian.com>
3114 * LinkLabel.cs: make sure to call base.Select in our Select method
3115 if it turns out we're going to be selected (i.e. if we have a link
3116 that is going to receive focus). That way our container's
3117 ActiveControl is updated properly.
3119 2007-01-11 Chris Toshok <toshok@ximian.com>
3121 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
3122 they have 1 or more links. this fixes the crash gert reported.
3124 2007-01-11 Andreia Gaita <avidigal@novell.com>
3126 * ContainerControl.cs: Remove ContainerSelected flag, not needed
3129 * Control.cs (Controls.Add): Check if control to be added to the collection
3130 is a top level control, and throw an ArgumentException if it is.
3131 Remove ContainerSelectedFlag, not needed anymore.
3133 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
3134 top most control doesn't activate the form. This fixes a problem in the
3135 MessageBox, where the default button wouldn't get focus because the form
3136 was activated before being Loaded - when the Owner is set, SetTopMost is
3137 called, and it would activate it.
3139 2007-01-11 Jonathan Pobst <jpobst@novell.com>
3141 * Button.cs: When clicked and setting the parent form's DialogResult,
3142 use FindForm instead of Parent, since parent could be a container
3143 control and not the Form. Fixes bug #80495.
3145 2007-01-10 Chris Toshok <toshok@ximian.com>
3147 * Form.cs: move the call to SendControlFocus into the same
3150 2007-01-10 Chris Toshok <toshok@ximian.com>
3152 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
3153 It breaks in the face of the new ActiveControl stuff, and should
3156 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
3157 activecontrol's focus if it's not already set, after we set
3158 ActiveControl, but before we call OnActivated. Re-fixes #79667
3159 after the previous focus/active control fixes regressed it.
3161 * Control.cs: reindent some code.
3163 2007-01-10 Chris Toshok <toshok@ximian.com>
3165 * Splitter.cs: clearing some outstanding changes from my tree.
3166 Replace all accesses (not writes) to the internal dock_style field
3167 with the Dock property.
3169 2007-01-10 Chris Toshok <toshok@ximian.com>
3171 * Control.cs: make FireEnter, FireLeave, FireValidating, and
3172 FireValidated virtual.
3174 * Form.cs: override and don't chain up calls to FireEnter and
3177 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3179 * ListView.cs: Add more text padding space when using
3180 auto resize for columns (the previous value didn't work fine).
3182 * ThemeWin32Classic.cs: Update text position inside columns,
3183 to match the appeareance of .Net.
3185 * ColumnHeader.cs: When using auto resize, only the Width should
3186 depend on the sub items, not the Height. Also, set width after
3187 auto resizing (the value of Width should never remain as -1 or -2).
3189 2007-01-10 Chris Toshok <toshok@ximian.com>
3191 * Application.cs: fix compilation errors when debug is enabled.
3193 2007-01-10 Chris Toshok <toshok@ximian.com>
3195 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
3196 add some nice ascii art pictures and explanation of the process).
3197 (GetMostDeeplyNestedActiveControl): new utility function we need
3198 because our ActiveControl can refer to a child container with its
3201 * Form.cs (OnActivated): remove the call to SelectActiveControl
3202 from here, since you can override this method and not chain up,
3203 and winforms still sets the active control.
3204 (OnCreateControl): also remove the unnecessary SelectActiveControl
3206 (WndProc): it's actually called from the WM_ACTIVATE block, just
3207 before calling OnActivated.
3209 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
3210 inside the else. the ActiveControl setter will end up setting
3211 focus on @control. This keeps us from setting it again (and
3212 generating an extra LostFocus/GotFocus pair).
3213 (Select (bool, bool)): reindent.
3215 2007-01-10 Jonathan Pobst <jpobst@novell.com>
3217 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
3218 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
3219 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
3220 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
3221 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
3222 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
3223 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
3224 ToolStripTextBox.cs: Another wave of corcompare work.
3226 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3228 * ColumnHeader.cs: Implement 2.0 AutoResize method using
3231 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
3232 methods by callling Column.AutoResize method on columns.
3234 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
3236 * Control.cs: Provide proper implementations of PreferredSize
3237 and GetPreferredSize (2.0).
3239 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
3241 * Form.cs: Remove one character (!) to make my previous OnClosing
3242 stuff work for modal windows like MessageBox.
3244 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3247 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
3248 ListView.Columns to get the last displayed column. Fixes #80452.
3250 2007-01-09 Everaldo Canuto <everaldo@simios.org>
3252 * Label.cs, LinkLabel.cs: Source code identation fixes.
3254 2007-01-08 Everaldo Canuto <everaldo@simios.org>
3256 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
3257 we dont need to invalidate only borders because when we invalidate four
3258 border lines the invalidate's generates a complete redraw of button,
3259 because it now invalidate a complete rect some other redraws operations
3260 are fixed. Fixes #80196.
3262 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
3263 Remove ToolBarInvalidateEntireButton as it is not used.
3265 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
3267 * Form.cs: Make sure that both OnClosing and OnFormClosing are
3268 called for 2.0 profile.
3269 * CloseReason.cs: Make class internal for 1.1.
3271 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
3273 * ToolStripManager.cs: Implement FindToolStrip functionality.
3274 * ToolStrip.cs: Register and unregister with ToolStripManager.
3276 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
3278 * Control.cs: This was messy. 2.0 moves much of ControlCollection
3279 to ArrangedElementCollection. Implemented this with as few #if's as
3280 possible (which is still too many).
3282 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
3284 * Control.cs: Implement SizeFromClientSize() [2.0].
3286 2007-01-07 Everaldo Canuto <everaldo@simios.org>
3288 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
3289 use Theme.BorderSize to calculate area instead of static value 1,
3290 by the way use new BorderStaticSize instead Border3DSize when
3291 border_static is true. Fixes #79537.
3293 * XplatUIOSX.cs: Fix call to GetClientRectangle.
3295 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
3298 2007-01-06 Everaldo Canuto <everaldo@simios.org>
3300 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
3302 2007-01-06 Everaldo Canuto <everaldo@simios.org>
3304 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
3305 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
3308 - border_static field added, it will used to define when a control
3309 theres 3D border but it must be static (thin).
3310 - In GetWindowRectangle use Theme.BorderSize to calculate area
3311 instead of static value 1, by the way use new BorderStaticSize instead
3312 Border3DSize when border_static is true.
3314 * XplatUIX11.cs, XplatUIOSX.cs:
3315 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
3317 * Theme.cs: BorderStaticSize field added.
3319 2007-01-05 Everaldo Canuto <everaldo@simios.org>
3321 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
3323 2007-01-05 Everaldo Canuto <everaldo@simios.org>
3325 * Control.cs: Under InternalBorderStyle call RecreateHangle to
3326 mimic same behavior than win32 that set border only in CreateParams,
3327 it fix problems under CreateParams overrides. Fix #79442 and partial
3330 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
3331 of thi control you must call recreate handle.
3333 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
3334 need to do anything as RecreateHangle will take care about borders.
3336 2007-01-05 Mike Kestner <mkestner@novell.com>
3338 * ListView.cs: hack to eliminate Lost/Got focus notifications on
3339 cycles between the ItemControl and parent. Fixes #80388.
3341 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
3343 * Control.cs: Lazy init layout engine. Do not directly use
3344 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
3346 2007-01-05 Chris Toshok <toshok@ximian.com>
3348 * DataGrid.cs: don't forceably rebind columns in SetDataSource
3349 unless our list manager has changed (i.e. unless we have reason to
3350 believe our columns have changed). Fixes #80422.
3352 also, disable the call do BindColumns in
3353 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
3354 1.1 the event isn't raised in response to a column addition on a
3357 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
3359 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
3360 that inheritors can not call it if they choose. Fixes bug #80456.
3362 2007-01-05 Andreia Gaita <avidigal@novell.com>
3364 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
3365 doesn't blow up with a null exception on marshalling.
3367 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
3369 * Control.cs: Implement several 2.0 protected properties and methods.
3370 Ensure that all necessary events are being called when properties
3373 2007-01-05 Mike Kestner <mkestner@novell.com>
3375 * ListView.cs: implement PgUp/PgDn for Details view. Also
3376 fixes First/LastVisibleIndex to use the item_control.ClientRect
3377 instead of the parent control. Fixes #80378.
3379 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
3381 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
3382 determine whether to use yard-pound or not (bug #78399).
3384 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
3386 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
3387 problems. So it is time to bring back the old popupbutton colors.
3389 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3392 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
3393 property by using the internal information of the
3394 columns order in ListView.
3396 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
3398 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
3399 Add 2.0 Tag properties.
3401 * LinkArea.cs: Add 2.0 ToString method.
3403 2007-01-03 Chris Toshok <toshok@ximian.com>
3405 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
3406 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
3407 when we're editing, which fixes #80047.
3409 2007-01-03 Chris Toshok <toshok@ximian.com>
3411 * Form.cs: apply patch contributed by Dominik Seichter. fixes
3414 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
3416 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
3417 property and implementation.
3419 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
3420 for MdiWindowListItem property.
3422 * ToolStripDropDown.cs: Don't consider hidden menu items while
3423 laying out the menu.
3425 2007-01-03 Andreia Gaita <avidigal@novell.com>
3427 * SendKeys.cs: window handle is not needed in win32, so just
3428 get the active window for X after parsing keys and don't use
3429 it when building the message; it is passed by parameter to the
3430 Xplat method and used there to build the message instead. Also,
3431 wait for events to be processed on SendWait, as opposed to Send,
3432 which doesn't wait :) Playing with threads and Send() completely
3433 hangs on ms.net, only SendWait() works.
3436 X11Display.cs: Check for valid window handle.
3438 2007-01-03 Jackson Harper <jackson@ximian.com>
3440 * TextControl.cs: Need to prevent wrap calculations when replacing
3441 text (this was there before i removed it accidently).
3442 - Don't update the cursor during the positioning, just set it to
3443 selection_start at the end of the operaion.
3445 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
3448 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
3450 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
3452 * MonthCalendar.cs: Added Click and DoubleClick events again,
3453 but this time they only hide Control's Click and DoubleClick.
3455 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
3457 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
3458 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
3460 2007-01-02 Jackson Harper <jackson@ximian.com>
3462 * TextBoxBase.cs: We move the caret with the split now, so we
3463 don't need to explicitly move the caret after splitting. This
3464 fixes the caret bumping down an extra line on Enter.
3466 2007-01-02 Miguel de Icaza <miguel@novell.com>
3468 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
3471 * ScrollableControl.cs: Add Scroll event.
3473 2007-01-02 Mike Kestner <mkestner@novell.com>
3475 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
3476 to fix all hdr height padding codepaths. Fixes #80207.
3478 2007-01-02 Chris Toshok <toshok@ximian.com>
3480 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
3481 setting it to the Control defaults anyway, and it being after the
3482 Dock set was screwing up layout.
3483 (set_Dock): don't short circuit out of setting base.Dock. Also,
3484 no need to call UpdateStatusBar here, as it'll be re-layed out if
3487 2007-01-02 Mike Kestner <mkestner@novell.com>
3489 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
3490 to header height for width == -1. Fixes the rest of #80207.
3492 2007-01-02 Mike Kestner <mkestner@novell.com>
3494 * ListView.cs: rework the mouse event forwarding everaldo added
3495 to translate the coordinates to the parent control not
3496 raise the parent events until after we've done our work. Hover
3497 needs more work, in the case where HoverSelection is on, because
3498 the item control receives more than one MouseHover per Enter
3499 event, so we need to ensure only the "first" hover gets forwarded.
3500 Opening a minor bug for that.
3502 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
3504 * CheckedListBox.cs: Fixed SelectionMode to match MS.
3505 * ListControl.cs: Implemented AllowSelection property. Removed extra
3507 * ListBox.cs: Implemented AllowSelection property.
3509 2007-01-02 Everaldo Canuto <everaldo@simios.org>
3511 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
3512 SelectedItem, it prevent for errors when you must disable item
3513 before perform click. Fixes #80409.
3515 2007-01-02 Everaldo Canuto <everaldo@simios.org>
3517 * MenuAPI.cs: Prevent second level and beyond submenus to close
3518 until first level when move out side of popup.
3520 2007-01-02 Everaldo Canuto <everaldo@simios.org>
3523 - Down submenu positin in three pixels.
3524 - Closes sub menu when mouse leaves from menu. Fixes #80402.
3526 2007-01-02 Everaldo Canuto <everaldo@simios.org>
3528 * ThemeWin32Classic.cs:
3529 - Fix popup menu size adding one pixel on the top.
3530 - Down menu item border from two to one to mimic Win32.
3531 - Some source identation fixes.
3533 2007-01-01 Everaldo Canuto <everaldo@simios.org>
3535 * ThemeWin32Classic.cs: Use float numbers to calculate size and
3536 position of menu arrows, it fix wrong arrow size.
3538 2007-01-01 Everaldo Canuto <everaldo@simios.org>
3540 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
3541 instead of line, it simplify draw operation and fix it using 3D
3542 borders to mimic Win32.
3544 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
3546 * StatusStrip.cs: Add implementation of the sizing grip.
3548 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
3549 StatusStrip rendering.
3551 2006-12-31 Chris Toshok <toshok@ximian.com>
3553 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
3554 override the layout style (anchor/dock) of the control. assign to
3555 Dock instead. Fixes bug #80416.
3557 * ToolStrip.cs: same.
3559 2006-12-31 Andreia Gaita <avidigal@novell.com>
3561 * ContainerControl.cs: Use ContainerSelected flag to check if
3562 a Container is directly selected, or if Select is called on a
3563 non-container. If a container is directly selected, focus events
3564 should not be raised.
3565 Apply #80411 patch to throw exception on set_ActiveControl if
3566 control is the same as the current one.
3568 * Control.cs: Use ContainerSelected flag (see above).
3569 Add invalidation check to raise event but not invalidate if
3574 2006-12-31 Everaldo Canuto <everaldo@simios.org>
3576 * MenuAPI.cs: After click, dont close popup menu when menu is
3577 ContextMenu. Fixes #80399.
3579 2006-12-30 Chris Toshok <toshok@ximian.com>
3581 * ContainerControl.cs: make sure we throw the exception if the
3582 container control doesn't contain the control we're setting
3585 2006-12-30 Chris Toshok <toshok@ximian.com>
3587 * Control.cs (SetTopLevel): fix the exception raised by
3588 SetTopLevel for child controls.
3589 (set_Anchor): call UpdateDistances when setting the anchor type.
3590 This fixes bug #80336.
3592 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
3594 * Theme.cs: For now, revert back to 8pt font.
3596 2006-12-29 Everaldo Canuto <everaldo@simios.org>
3598 * MenuAPI.cs: Set popup as active when open a ContextMenu.
3601 2006-12-29 Chris Toshok <toshok@ximian.com>
3603 * Control.cs: reorder the code in OnResize to give the same event
3606 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3608 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
3609 TileHorizontally and TileVertically.
3611 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
3613 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
3614 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
3615 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
3616 Corrected copyright and email adress.
3618 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
3620 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
3621 of Exception in FullPath property if no TreeView is associated with
3624 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
3626 * Theme.cs: Marked default_font as private, and initialize it in ctor
3627 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
3629 * ThemeGtk.cs: Removed default_font intialization.
3630 * ThemeWin32Classic.cs: Removed default_font initialization.
3632 2006-12-28 Chris Toshok <toshok@ximian.com>
3634 * Control.cs: fix a couple of place where we were creating handles
3635 more aggressively than we should be. Fixes ControlRefresh unit
3638 2006-12-28 Chris Toshok <toshok@ximian.com>
3640 * Control.cs: contrary to what the comment said, Control.Dock does
3641 not supercede Control.Anchor - the last one you assign to decides
3642 the layout behavior. so we need to keep track of which was the
3643 last set. Also, fix some of the affected property arguments in
3644 PerformLayout calls, and remove an redundant parent.PerformLayout
3647 Add a VisibleInternal property, which returns is_visible. We
3648 can/should get rid of all the usage of this field elsewhere.
3650 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3652 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
3653 control style, not DoubleBuffer. Added UseDoubleBuffering property
3654 that indicates whether doublebuffering is enabled and supported.
3655 (comment from and code based on Gert Driesen's patch in #80324).
3658 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3660 * Control.cs: Fixed a NRE.
3662 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3664 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
3667 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3669 * Control.cs: Rewrote double buffering, now a seperate
3670 class handles all the buffering, no Graphics is disposed of
3671 until the painting is finished (earlier implementation
3672 would crash if the control was resized in the OnPaint,
3673 since it would cause the double buffer to be recreated
3674 and the old one disposed), a separate Graphics is
3675 created for every paint (MS behaviour and anyways the state
3676 of the Graphics would have to be saved and restored otherwise)
3680 * XplatUI.cs: Added and implemented GetOffscreenGraphics
3681 so that we can get the graphics for the back buffer without
3682 having to create a new one and remove the offscreen_dc parameter
3683 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
3685 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3687 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
3688 Also make virtual all the key-related methods.
3690 * ListViewItem.cs: Make virtual the key related methods for
3691 ListViewSubItemCollection.
3693 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3697 * ThemeWin32Classic.cs:
3698 * Theme.cs: Initial support for Tile view in ListView,
3699 as well as the implementation of the required bits for it (Item
3702 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3704 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
3705 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
3706 Provide useful exception messages.
3708 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
3710 * TrackBar.cs: Remove a warning.
3711 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
3712 when used by DateTimePicker, fixes #80287. This also requires that
3713 MonthCalendar implements it's own drawing for the yearly updown control,
3714 otherwise the Capture tracking would be too complicated. Removed the Click
3715 and DoubleClick events (according to comments they were hiding the base class
3716 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
3717 raise these events, not that they cannot be raised. It is possible to raise
3718 them by calling OnClick and OnDoubleClick). Added two internal fields in
3719 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
3720 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
3721 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
3722 event, no longer needed.
3724 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3726 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
3727 true if new value differs from current value.
3729 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3731 * Control.cs: ControlCollection.Count must be public. Fixed build of
3734 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3736 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
3738 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3740 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
3742 2006-12-26 Everaldo Canuto <everaldo@simios.org>
3744 * Control.cs: Invalidates control including when Width and Height is
3745 equal zero or is not visible, only Paint event must be care about
3748 2006-12-26 Chris Toshok <toshok@ximian.com>
3750 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
3751 more corcompare work.
3753 * DataGridView.cs: fix compiler warning.
3755 * ColumnHeader.cs: some corcompare work, and also take the
3756 opportunity to make the internal fields private.
3758 * ListView.cs: fix the fallout from the above field change.
3760 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
3762 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
3763 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
3764 ToolStripTextBox.cs: Fixes to events and corcompare.
3766 2006-12-26 Everaldo Canuto <everaldo@simios.org>
3768 * ListView.cs: Call owner.OnMousexx event to propagate events from
3769 item to ListView. Fixes #80367.
3771 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
3773 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
3774 if value is less than one. ItemHeight should not be set to a value
3775 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
3778 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
3780 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
3781 * ToolStripStatusLabel.cs: Add Spring for Moma.
3783 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
3785 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
3786 Fixed code formatting. Removed debug code.
3787 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
3789 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
3791 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
3792 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
3793 ArgumentOutOfRangeException if ColumnCount is negative. In
3794 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
3795 less than 4 or higher than 32768.
3796 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
3797 Fixed FormatProvider to return CurrentCulture unless explicitly set.
3798 Fixed IsFormatProviderDefault to return true if FormatProvider has
3799 not been explicitly set.
3801 2006-12-25 Chris Toshok <toshok@ximian.com>
3803 * Application.cs: add a couple of 2.0 events.
3805 2006-12-25 Chris Toshok <toshok@ximian.com>
3807 * Control.cs: fix compiler warning.
3809 * AxHost.cs: corcompare fixes.
3811 * ApplicationContext.cs: corcompare fixes.
3813 2006-12-25 Chris Toshok <toshok@ximian.com>
3815 * Control.cs: only update dist_right/dist_bottom if the
3816 width/height is > 0. this fixes anchored controls being resized
3817 smaller until they disappear and then resized larger again.
3819 2006-12-25 Chris Toshok <toshok@ximian.com>
3821 * Control.cs: a couple of changes. Remove dist_left and dist_top,
3822 since they're nothing more than X/Left and Y/Top, respectively.
3824 Also, move back to a per-control Bitmap/Graphics for
3825 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
3826 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
3829 2006-12-25 Miguel de Icaza <miguel@novell.com>
3831 * MessageBox.cs: Implemented overload that takes a new "bool
3832 displayHelpButton" by adding a new internal field "show_help".
3833 When clicked this will raise the HelpRequested on the owner or the
3836 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
3837 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
3839 * ListView.cs: Add support ColumnWidthChanged and
3840 ColumnWidthChanging.
3842 Add support for ColumnReordered event.
3843 (ReorderColumn): Add NET_2_0 specific support for cancelling the
3848 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
3850 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
3852 2006-12-24 Chris Toshok <toshok@ximian.com>
3854 * GridTablesFactory.cs: 2.0 corcompare work.
3856 * ToolStripContainer.cs: add "override" to
3857 ContextMenuStripChanged, and remove the local event object.
3859 * ToolStripDropDown.cs: same with a couple properties.
3861 * ToolStripPanel.cs: same with AutoSizeChanged event.
3863 * TextBoxBase.cs: add "override" to AutoSizeChanged.
3865 * Form.cs: add the remaining 2.0 events, and do some corcompare
3868 * DateTimePicker.cs: add "new" to padding.
3870 * ButtonBase.cs: use Control's use_compatible_text_rendering.
3872 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
3874 * DataGridView.cs: PaddingChanged is overridden.
3876 2006-12-24 Chris Toshok <toshok@ximian.com>
3878 * Control.cs: corecompare work here too.
3880 * DataGridViewElement.cs, DataGridView.cs,
3881 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
3882 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
3883 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
3884 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
3887 2006-12-24 Miguel de Icaza <miguel@novell.com>
3889 * Control.cs: Switched the error message on the console for a
3890 todo. A review of the code will have to cope with this anyways
3891 (since its a large feature, it is in our radar) and it was
3892 producing too much output when running PDN.
3894 * ToolStripComboBox.cs: Set the text when the SelectedIndex
3895 changes. Applications depend on this (PDN 2.72)
3897 2006-12-23 Chris Toshok <toshok@ximian.com>
3899 * TableLayoutSettings.cs: finish up the corcompare work for this
3902 2006-12-23 Chris Toshok <toshok@ximian.com>
3904 * Control.cs: make SetImplicitBounds internal, do some futzing
3905 with LayoutEngine so that it's available in 1.1, and remove the
3906 entire duplicated code mess from PerformLayout. Use
3907 System.Windows.Forms.Layout.DefaultLayout instead.
3909 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
3911 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
3913 * Form.cs: Add MainMenuStrip property.
3915 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
3917 * Control.cs: Add ContextMenuStrip property and implementation.
3918 Fix ContextMenu implementation to show menu centered on control when
3919 activated using the keyboard instead of showing at screen (0,0).
3921 * ToolStripDropDown.cs: Fix needed overload of Show ().
3923 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3925 * Menu.cs: Name property added for 2.0 profile.
3927 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3929 * Menu.cs: Update information about FindMenuItem, method to be
3932 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3934 * MenuAPI.cs: When deselect items deselect also selected subitems.
3936 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3938 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
3939 FindSubItemByCoord to found itens that is not active, also an
3940 cheking added to FindSubItemByCoord to search for items only
3941 in visible popup windows. Fixes #80274.
3943 2006-12-22 Everaldo Canuto <everaldo@simios.org>
3945 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
3946 internal property, it be care about change ExStyle.
3948 2006-12-22 Andreia Gaita <avidigal@novell.com>
3950 * ContainerControl.cs: set activeControl for parent forms up the
3951 tree when the new activecontrol is a container.
3952 When validating the active control, if it is a container, also
3953 raise up the validation for it's active control. Fixes #80280
3955 * Control.cs: Add internal property flag and check to prevent
3956 Focus events from getting raised when Select() is called for
3957 a ContainerControl. There are still too many focus events being
3958 raised at the moment though.
3959 Cleaned up the code a bit.
3961 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
3963 * Control.cs: Added all missing 2.0 events.and
3964 fixed a couple of corcompare issues.
3965 * TrackBar.cs: Implemented missing 2.0 bits.
3967 * DateTimePicker.cs,
3968 * MdiClient.cs: Fixed some corcompare issues.
3970 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
3972 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
3973 SplitterPanel.cs: corecompare work.
3975 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
3977 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
3978 Clean up warnings for BackgroundImageChanged and PaddingChanged
3979 events now that they are implemented in Control.cs.
3981 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
3983 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
3985 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
3986 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
3987 of TableLayoutPanel and supporting cast.
3989 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
3992 - GrabWindow now confines the mouse pointer to the confine window.
3993 - Added Win32ClipCursor and Win32GetClipCursor.
3996 - Added CaptureWithConfine to be able to capture and confine
3999 * InternalWindowManager.cs:
4000 - Call CaptureWithConfine instead of Capture if we're an
4001 MdiChild (fixes #79982).
4003 2006-12-21 Chris Toshok <toshok@ximian.com>
4005 * DataGrid.cs: guard against the initial state of selection, where
4006 selection_start == -1. make sure we only select from index >= 0.
4009 2006-12-21 Chris Toshok <toshok@ximian.com>
4011 * Control.cs: we don't need to be so draconian with
4012 UpdateDistances, and we thusly don't need to call it before
4013 calling PerformLayout in ResumeLayout. Fixes bug #80289.
4015 2006-12-21 Daniel Nauck <dna@mono-project.de>
4018 TextBox.cs: Implemented AutoComplete properties.
4020 2006-12-20 Chris Toshok <toshok@ximian.com>
4022 * DataGridView*.cs: some corecompare work.
4024 2006-12-20 Jackson Harper <jackson@ximian.com>
4026 * XplatUIX11.cs: We need to hide the caret when deleting it,
4027 otherwise you get carets left lying around everywhere.
4028 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
4029 prevents getting some weird half drawn caret tracers when
4031 * TextControl.cs: Attempt to reduce the number of times we need to
4034 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
4036 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
4038 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4040 * DateTimePicker.cs:
4041 - Implemented missing 2.0 bits.
4042 - Changed some default values to match MS.
4044 2006-12-20 Jackson Harper <jackson@ximian.com>
4046 * TextBoxBase.cs: When changing the font across the document we
4047 can't recalculate after changing each line, since that will cahnge
4049 - PreferredHeight is a little different than i thought.
4050 - When backspacing, move the caret before we do the actual char
4051 delete, because when that delete crosses a wrap boundary the
4052 positional information will change.
4054 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4056 * Control.cs: Added some missing 2.0 bits:
4057 BackgroundImageLayout, BackgroundImageLayoutChanged,
4058 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
4059 add IBindableComponent and IDropTarget implementation.
4062 - Added all missing 2.0 features:
4063 BackgroundImageLayout, RightToLeftLayout,
4064 OnHandleDestroyed, RightToLeftLayoutChanged,
4065 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
4067 - Rewrote all the BoldDate code, it was completely broken.
4068 - Fixed all the tests (the tests can now be re-enabled, the
4069 problems were not with the tests, but with the control, it was
4072 * DateTimePicker.cs: Changed the location where the
4073 MonthCalendar is shown.
4075 2006-12-19 Chris Toshok <toshok@ximian.com>
4077 * DataGridView.cs: add IDropTarget implementation.
4079 * ToolStripPanel.cs: add IDropTarget implementation.
4081 2006-12-19 Jackson Harper <jackson@ximian.com>
4083 * TextControl.cs: soft now means something different than what it
4084 used to mean, we want to move the caret regardless of whether or
4085 not this break was soft (would we really have wanted the caret
4086 to not move with the break in the old context?)
4087 * TreeView.cs: Make sure we factor in the vert scrollbar when
4088 calculating the horizontal scrollbar's maximum.
4090 2006-12-19 Andreia Gaita <avidigal@novell.org>
4092 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
4093 check for keywords in alternate casing, close bug #80049.
4095 2006-12-19 Chris Toshok <toshok@ximian.com>
4097 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
4098 methods (which all do nothing).
4100 * IDropTarget.cs: add the 4 missing methods.
4102 2006-12-19 Chris Toshok <toshok@ximian.com>
4104 * TableLayoutRowStyleCollection.cs: corcompare work.
4106 * TableLayoutSettings.cs: same.
4108 * TableLayoutStyle.cs: same.
4110 * TableLayoutColumnStyleCollection.cs: same.
4112 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
4114 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
4115 TableLayoutPanel I've had in my local tree for way too long.
4117 2006-12-19 Miguel de Icaza <miguel@novell.com>
4119 * TableLayoutSettings.cs: Finish the public API (still needs all
4120 the logic to update on changes).
4122 * TableLayoutPanelCellPosition.cs: new file.
4124 * TableLayoutRowStyleCollection.cs,
4125 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
4126 TableLayoutSettings.cs: Track the final 2.0 table api.
4128 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4130 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
4131 and Image List 2.0 members for ColummnHeader.
4132 * ListView.cs: Add key-related 2.0 methods for
4133 ColumnHeaderCollection.
4135 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
4137 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
4138 ArgumentNullException if items argument is null. Ignore null item in
4139 arrays. Removed extra tabs.
4141 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
4143 * MonthCalendar.cs: Fixed InvalidCastException.
4145 2006-12-19 Jackson Harper <jackson@ximian.com>
4147 * TextControl.cs: Don't increment the position here.
4148 - When calculating char positions only add in the line break size
4149 for hard line breaks.
4151 2006-12-19 Andreia Gaita <avidigal@novell.org>
4153 * SendKeys.cs: Changed some things to match ms.net behaviour
4154 when parsing shifted capital letters.
4156 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
4157 Add window handle as parameter to SendInput. X11 needs the
4158 window handle, and the handle being passed to it in the keys
4159 queue is the active control handle (which windows needs), not
4162 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
4163 to support SendKeys on X.
4165 * X11Keyboard: Implement helper method to lookup a linux keycode
4166 given the virtual keycode. Added table of keycode-2-virtualkey
4167 values to support this.
4169 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4171 * ListView.cs: Add support for SelectedIndexCollection
4172 and SelectedItemCollection 2.0 methods. Implement support
4174 * ListViewItem.cs: Add support for ListViewSubItemCollection
4175 2.0 methods. Also, fix an incorrect behavior of AddRange method
4176 (it shouldn't call Clear).
4177 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
4179 2006-12-19 Jackson Harper <jackson@ximian.com>
4182 * TextBoxBase.cs: New args for FormatText
4183 * TextControl.cs: Rewrote the main drawing method, this version
4184 feels a little easier to understand and debug to me. Hopefully it
4186 - Fix FormatText to OR in the new formating values. Added
4187 FormatSpecified param, basically this works in the same way as
4188 BoundsSpecified in Control.
4189 - Set the caret properties when the caret is positioned.
4190 - When wrapping text make sure that we calculate the width of the
4192 - when calculating alignments we might have wrapped down to the
4193 next line, so don't search for an individual tag, search for the
4195 - We need to invalidate the selection area when we replace the
4198 2006-12-19 Daniel Nauck <dna@mono-project.de>
4200 * Application.cs: add Restart () 2.0 support
4202 2006-12-18 Everaldo Canuto <everaldo@simios.org>
4204 * MenuItem.cs: Invalidate menu item rectangle after change Enable
4205 property. Fixes #80268.
4207 2006-12-18 Everaldo Canuto <everaldo@simios.org>
4209 * MenuAPI.cs: Dont trigger select event when closes top menu
4212 2006-12-18 Everaldo Canuto <everaldo@simios.org>
4214 * MenuAPI.cs: When you click on menuitem only trigger onselect
4215 event for top menu itens. Fixes #80271.
4217 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
4219 * MdiWindowManager.cs: Make IconicBounds depend on
4220 the bottom of MdiClient, not the top (fixes #80267)
4222 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
4224 * MdiClient.cs: Added missing 2.0 attribute
4226 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4228 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
4229 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
4231 2006-12-18 Everaldo Canuto <everaldo@simios.org>
4233 * MenuAPI.cs: Fix click when menuitem is not popup,
4234 this regression was caused by last commit (#80272).
4236 2006-12-17 Everaldo Canuto <everaldo@simios.org>
4238 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
4239 fire click event or close menu. Fixes #80272.
4241 2006-12-17 Daniel Nauck <dna@mono-project.de>
4243 * ListViewHitTestInfo.cs: add
4245 2006-12-17 Daniel Nauck <dna@mono-project.de>
4247 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
4248 * FlatButtonAppearance.cs: add
4249 * DockingAttribute.cs: add
4251 2006-12-17 Chris Toshok <toshok@ximian.com>
4253 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
4254 and rebind our columns when it does - this way, if you make
4255 changes to the DataTable (or set the Table attribute on a DataView
4256 after setting it as the DataGrid's DataSource, the changes are
4257 made visible.) Fixes bug #80107.
4259 2006-12-17 Daniel Nauck <dna@mono-project.de>
4261 * ListViewGroup.cs: add internal Location property for layouting.
4262 * Theme.cs: add abstract ListViewGroupHeight function.
4263 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
4265 2006-12-16 Andreia Gaita <avidigal@novell.com>
4267 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
4268 Added reset of selected index to 0 when adding first tab page.
4271 * NumericUpDown.cs: Fix NET_2_0 check
4273 2006-12-16 Daniel Nauck <dna@mono-project.de>
4275 * ListViewGroup.cs: fixed DefaultValueAttribute value
4277 2006-12-16 Daniel Nauck <dna@mono-project.de>
4279 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
4281 2006-12-15 Miguel de Icaza <miguel@novell.com>
4283 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
4284 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
4285 ScrollableControl.cs: Add a handful of methods that are
4288 2006-12-15 Chris Toshok <toshok@ximian.com>
4290 * XplatUIWin32.cs: initial implementation of the Reversible
4291 drawing functions. there are some problems. DrawReversibleFrame
4292 doesn't seem to work at all for Dashed FrameStyle, and in the
4293 Thick case there are drawing errors at the corners (we probably
4294 need to bind Rectangle instead of doing moveto/lineto's.)
4296 2006-12-16 Andreia Gaita <avidigal@novell.com>
4298 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
4299 to send blocks of key messages. Send accumulates keys to send with Flush,
4300 while SendWait sends all keys immediately.
4302 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
4303 XplatUIX11.cs, XplatUIX11-new.cs:
4304 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
4306 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
4308 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
4309 testing for ms.net on this class is very tricky, as the tests run too fast
4310 to allow the hook to release, essentially freezing the keyboard and the
4311 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
4314 2006-12-16 Daniel Nauck <dna@mono-project.de>
4316 * Padding.cs: fixed serialization compability to MS ("_var" field names),
4317 added missing attributes.
4319 2006-12-15 Daniel Nauck <dna@mono-project.de>
4321 * ListViewGroup.cs: Added missing attributes.
4322 * ListViewGroupCollection.cs: Added missing attributes.
4324 2006-12-15 Daniel Nauck <dna@mono-project.de>
4326 * ListViewItem.cs: fixed ListViewSubItem text property.
4328 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4330 * Control.cs: Added missing 2.0 attributes
4332 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4334 * MdiClient.cs: Added missing 2.0 attribute.
4335 * MonthCalendar.cs: Added some missing 2.0 attributes
4338 2006-12-15 Daniel Nauck <dna@mono-project.de>
4340 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
4342 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
4344 * MainMenu.cs: Add the new 2.0 constructor to help out people
4345 using the MainMenu in VS2005.
4347 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4349 * MdiChildContext.cs: Removed it, no longer used.
4350 * MdiClient.cs: Added missing 2.0 attributes.
4352 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4354 * InternalWindowManager.cs: Fix a NullRef with previous
4355 changes for toolwindows.
4357 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4360 - Added AfterTopMostControl to allow for certain controls
4361 to always stay on top when normal controls are brought to
4365 - (DrawInversibleRectangle): Get window rectangle from Win32
4366 in stead of from control, since Win32 doesn't calculate
4367 screen coords correctly from control's Location if it
4368 have docked siblings.
4370 * MdiWindowManager.cs:
4371 - Correct the control menu popup location when clicked on
4372 the maximized form icon. (fixes #80223.1)
4373 - Don't show moving rectangle if mouse hasn't moved from
4374 the original clicked point.
4375 - Removed FormGotFocus handler (not used).
4376 - Calculate the control buttons location from the main
4377 window's size and not client size (fixes #79770).
4378 - Form is now closed when the form icon is double-clicked
4380 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
4382 * InternalWindowManager.cs:
4383 - Moved some MDI-only methods to MdiWindowManager.
4384 - Removed unused properties and methods.
4385 - Unified method naming for methods handling wm messages.
4386 - Moved all message handling to seperate methods for
4389 * ThemeWin32Classic.cs:
4390 - DrawManagedWindowDecorations now draws the title bar
4391 with a gradient brush.
4392 - Add a CPDrawButtonInternal that allows us to specify
4393 light, normal and dark colors for the buttons (control
4394 buttons for MDI children were drawn with the same light
4395 color as the background, therefore loosing the 3D effect).
4398 - Add a CapturedControl property that is used to
4399 determine the control to resize (defaults to parent).
4400 Needed for MdiClient, since its SizeGrip's parent is
4401 MdiClient, but the control to resize is the main form.
4404 - Set SizeGrip's CapturedControl to the main form in order
4405 to resize the main form and not the MdiClient.
4406 - Override AfterTopMostControl to leave the scrollbars
4409 2006-12-15 Daniel Nauck <dna@mono-project.de>
4411 * ListView.cs: fixed ListViewItemCollection AddRange and
4412 implemented ListViewItemCollection AddRange 2.0 support.
4414 2006-12-15 Daniel Nauck <dna@mono-project.de>
4416 * ListViewGroup.cs: Add.
4417 * ListViewGroupCollection.cs: Add
4418 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
4419 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
4420 stub for ImageKey 2.0 support.
4422 2006-12-14 Mike Kestner <mkestner@novell.com>
4424 * ListView.cs: add text padding to the autocalculation for columns
4425 of width -2. Fixes #80207.
4427 2006-12-14 Mike Kestner <mkestner@novell.com>
4429 * ListView.cs: add some index guarding for partial row navigation
4430 logic. Fixes #80250.
4432 2006-12-14 Mike Kestner <mkestner@novell.com>
4434 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
4435 are added or inserted to the collection. Fixes #81099.
4437 2006-12-13 Everaldo Canuto <everaldo@simios.org>
4439 * MenuAPI.cs: Closes menu when right click out side of popup
4440 it fix problem in ContextMenu and MainMenu. Fixes #80252.
4442 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4444 * ListViewItem.cs: Fix dumb error.
4446 * ListView.cs: Add Find and ContainsKey methods in
4447 ListViewItemCollection, and also return true for IsReadOnly
4448 and IsFixedSize (changes for 2.0).
4450 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
4452 * Control.cs: Allow Region to be set to null.
4454 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
4456 * MdiWindowManager.cs: Remove unused (commented out) code.
4457 * Form.cs: When the MdiChild is maximized, the form needs
4458 WM_NCMOUSELEAVE, so request it.
4459 * InternalWindowManager.cs:
4460 - Added tooltips to control buttons.
4461 - Removed duplicated control button handling code.
4462 - Removed unused (commented out) code.
4464 2006-12-12 Everaldo Canuto <everaldo@simios.org>
4466 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
4467 was used because we must set cursor without trigger ChangeCursor event
4468 and without change Cursor control property. Fixes #79963.
4470 2006-12-12 Andreia Gaita <avidigal@novell.com>
4472 * Control.cs: Check if Region setter value is null, and ignore
4474 2006-12-12 Jackson Harper <jackson@ximian.com>
4476 * TextControl.cs: We were almost always drawing one more line then
4477 needed, since the GetLineByPixel will return the last line found
4478 at that pixel. In most cases though, we were invalidating up to
4479 the junction between two lines.
4480 - Improve debug code.
4482 2006-12-12 Chris Toshok <toshok@ximian.com>
4484 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
4485 and FillReversibleRectangle.
4487 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
4488 and FillReversibleRectangle.
4490 * XplatUIWin32.cs: add stubs which do nothing for
4491 DrawReversibleFrame, DrawReversibleLine, and
4492 FillReversibleRectangle.
4494 * XplatUIOSX.cs: add stubs which raise NIE for
4495 DrawReversibleFrame, DrawReversibleLine, and
4496 FillReversibleRectangle.
4498 * XplatUIX11.cs: add working implementation for
4499 DrawReversibleFrame, DrawReversibleLine, and
4500 FillReversibleRectangle.
4502 * ControlPaint.cs: implement DrawReversibleFrame,
4503 DrawReversibleLine, and FillReversibleRectangle, by calling into
4504 the appropriate XplatUI method.
4506 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4508 * Form.cs: Make MdiClient have the focus even if it's
4509 not selectable, since it should receive WM_KEY* and WM_MOUSE
4510 messages. Fixes #79907.
4512 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4514 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
4515 queried after the window is created.
4517 * XplatUIX11.cs: Added SendParentNotify to implement
4518 WM_PARENTNOTIFY logic. Fixes #79965.
4520 * Control.cs: Added MakeParam.
4522 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4524 * MdiClient.cs: Resume Layout before setting window
4525 states (fixes #80201).
4527 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4529 * MenuAPI.cs: Deselect a menu item after performing
4530 the click (fixes #80197).
4532 2006-12-11 Jackson Harper <jackson@ximian.com>
4534 * TextBoxBase.cs: We need to cap this value, since Maximum -
4535 ViewPortHeight can be less than zero.
4536 - Only do selection with the left mouse button.
4537 * TextBox.cs: Don't tell the world that we have a context menu.
4538 * Control.cs: New method so that we can control whether or not the
4539 context menu is visible outside MWF.
4541 2006-12-11 Everaldo Canuto <everaldo@simios.org>
4543 * ToolBarButton.cs: Fix text positon.
4545 2006-12-11 Miguel de Icaza <miguel@novell.com>
4547 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
4549 * Control.cs (DoubleBuffered): Add implementation.
4551 * Application.cs (OpenForms): Add.
4553 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
4555 * Form.cs: Use opacity instead of Opactiy to determine if we need
4556 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
4558 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
4560 * Control.cs: Fix NRE if Control.Site was set to null.
4562 2006-12-11 Chris Toshok <toshok@ximian.com>
4564 * Control.cs: ControlCollection.Remove should return if the arg is
4565 null, and ControlCollection.SetChildIndex should raise a ANE.
4567 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
4569 * Control.cs: Verify value set for Dock property. Code formatting
4572 2006-12-11 Jackson Harper <jackson@ximian.com>
4574 * TextControl.cs: Draw the caret and the selection when a flag is
4576 * TextBoxBase.cs: We want to draw the caret and the selection for
4577 TextBox but not for TextBoxBase.
4578 - If the window is resized and scrolling is no longer needed (the
4579 whole doc is visible) set the scroll position to zero.
4580 - The default SelectWord (the one TextBox uses) should move the
4581 caret to the end of the word.
4582 - SelectAll moves the caret to the end of the selection.
4583 * TextBox.cs: We don't selectall on focus, we just do it when the
4586 2006-12-11 Mike Kestner <mkestner@novell.com>
4588 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
4590 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4592 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
4594 * ListViewItem.cs: Add Name 2.0 property.
4596 2006-12-11 Andreia Gaita <avidigal@novell.com>
4598 * TabControl.cs: Set visibility on selected or default tab
4599 when tabcontrol handle is created, so that it's contents
4600 actually show up (duh). Fixes #80193
4601 Don't redraw the control if there is no handle created, as
4602 the selected index might be completely invalid. Added some tests
4605 2006-12-11 Everaldo Canuto <everaldo@simios.org>
4607 * ToolBar.cs: Uses maximun width and height of all buttons as
4608 button rectangle when ButtonSize specified, it looks strange but
4609 is what happens in Win32. Fixes #80189.
4611 2006-12-11 Jackson Harper <jackson@ximian.com>
4613 * TextControl.cs: Need to track undo levels ourself, since
4614 compound actions will mess them up.
4616 2006-12-10 Andreia Gaita <avidigal@novell.com>
4618 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
4619 SelectedIndex value is changed (even if it's not valid).
4620 Reset SelectedIndex to 0 when the handle is created and if
4621 the current index is invalid.
4622 Fixes SelectdeIndex unit tests and #80128
4624 2006-12-08 Chris Toshok <toshok@ximian.com>
4626 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
4627 calls EndEdit, it needs to be called before we set current_cell to
4628 its new value. Otherwise, we end up committing the value in the
4629 textbox to the new cell as well. Fixes bug #80160.
4631 2006-12-08 Chris Toshok <toshok@ximian.com>
4633 * Form.cs (set_CancelButton): if the button's DialogResult is
4634 None, set it to Cancel. Fixes bug 80180.
4636 2006-12-08 Jackson Harper <jackson@ximian.com>
4638 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
4639 to watch ourselves when setting the canvas size and setting the
4642 2006-12-08 Chris Toshok <toshok@ximian.com>
4644 * DataGrid.cs: comment out the two MakeTransparent calls for the
4645 time being so people using trunk (and not 1.2.2) on windows can
4646 actually use the datagrid. This deals with bug #80151.
4648 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
4650 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
4651 Graphics.DrawImage (image, int, int, int, int) overload instead
4652 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
4653 the dpi difference and was blurring images it drew.
4656 2006-12-08 Chris Toshok <toshok@ximian.com>
4658 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
4659 rowcnt is 0 (such as with an empty datasource), and make sure we
4660 initialize not_usedarea.Y to cells.Y, so we don't draw over the
4661 other areas (caption, parent row, etc, etc). Fixes bug #80095.
4663 2006-12-08 Chris Toshok <toshok@ximian.com>
4665 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
4668 2006-12-08 Chris Toshok <toshok@ximian.com>
4670 [ Fixes bug #80167 ]
4672 * ThemeWin32Classic.cs: don't draw the image if the button's flat
4673 style is FlatStyle.System.
4675 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
4676 ButtonBase.flat_style private, and switch uses of it to the public
4679 2006-12-08 Chris Toshok <toshok@ximian.com>
4681 [ Fixes bug #80121 ]
4683 * ThemeWin32Classic.cs: center the caption text in the datagrid
4686 * DataGrid.cs: lessen the amount we add to the caption height from
4687 6 to 2. 6 was making it huge.
4689 2006-12-08 Andreia Gaita <avidigal@novell.com>
4691 * UpDownBase: Handle MouseWheel call directly instead of capturing
4692 the inner textbox's OnMouseWheel. Fixes #80166
4694 2006-12-08 Jackson Harper <jackson@ximian.com>
4696 * TextControl.cs: We need to invalidate the textbox when we empty
4697 it (how had this not been discovered before?)
4699 2006-12-08 Jackson Harper <jackson@ximian.com>
4701 * TextBoxBase.cs: Reworked the mouse down code so I could get it
4702 to behave like MS, we now ignore the eventargs.Click and just
4703 track state ourself, which we were already doing anyways.
4704 - Constrain the double click handler to the double click size.
4706 2006-12-08 Chris Toshok <toshok@ximian.com>
4708 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
4709 direction if that scrollbar isn't shown. fixes bug #80158.
4711 2006-12-08 Andreia Gaita <avidigal@novell.com>
4713 * NumericUpDown.cs: Update value on getter. Fixes #79950
4715 2006-12-08 Chris Toshok <toshok@ximian.com>
4717 * MenuItem.cs: add back in the event cloning code. I didn't know
4718 how to do it in the face of the EventHandlerList work i'd done
4719 last week. Fixes bug #80183.
4721 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
4723 * Control.cs: Add an invalidate to the BackgroundImage setter.
4726 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
4728 * ToolStrip*: Add some small properties reported by MoMA, fix event
4729 firing and default properties based off of unit tests, and add some
4730 attributes based off of the class status page.
4732 2006-12-07 Jackson Harper <jackson@ximian.com>
4734 * TextBoxBase.cs: Take HideSelection into account when determining
4735 whether or not to show the selection.
4736 * RichTextBox.cs: After inserting the RTF into the document move
4737 the cursor to the beginning of the document.
4739 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
4741 * Control.cs: Remove static ArrayList "controls" which maintained
4742 a reference to every control created.
4743 * Application.cs: Create a static FormCollection to maintain a reference
4744 to every form created. Use it in places that formerly enumerated through
4745 the controls one looking for forms.
4746 * Form.cs: Add and remove self from above FormCollection.
4748 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
4750 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
4751 not libgdk (though it makes me wonder why I didn't have any
4754 2006-12-07 Chris Toshok <toshok@ximian.com>
4756 [ you had to know this was coming after that last commit...]
4758 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
4759 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
4760 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
4763 2006-12-07 Chris Toshok <toshok@ximian.com>
4765 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
4766 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
4767 all the behavior we need for double buffering.
4769 * XplatUIDriver.cs: implement the 3 double buffer methods using a
4770 client side Bitmap, just like the old Control-based double buffer
4771 code did. The methods are virtual, so each XplatUI driver
4772 subclass can replace the implementation to use a faster, platform
4775 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
4776 double buffer code, and clean things up a bit in the process.
4778 2006-12-06 Chris Toshok <toshok@ximian.com>
4780 * Control.cs: reindent WndProc.
4782 2006-12-06 Chris Toshok <toshok@ximian.com>
4784 [ I wanna be like BenM when I grow up ]
4786 * Hwnd.cs: create a single static Graphics object on the static
4787 Bitmap we create. use this for our text measurements.
4789 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
4790 This was causing us to allocate a backbuffer for every control,
4791 even when it wasn't flagged as double buffered. Instead use the
4792 single graphics instance. This might have implications for
4793 multithreaded applications. If we run into problems we can switch
4794 to creating 1 Graphics per control, on the static Hwnd bitmap.
4796 this change nets us a 7M savings in private dirty mappings when
4797 running FormsTest.exe.
4799 2006-12-06 Chris Toshok <toshok@ximian.com>
4801 * ListView.cs: the BackgroundImage override is just to set
4802 attributes. chain up to base.BackgroundImage.
4804 * RichTextBox.cs: same.
4806 * ToolBar.cs: same, but we need to also redraw the toolbar when it
4807 changes, so instead a handler for BackgroundImageChanged.
4809 * Control.cs: make background_image private.
4811 2006-12-06 Chris Toshok <toshok@ximian.com>
4813 * ScrollBar.cs: change the assignment of cursor to Cursor. not
4814 sure we even need this assignment, but roll with it for now.
4816 * Control.cs: make the cursor field private.
4818 2006-12-06 Chris Toshok <toshok@ximian.com>
4820 * Form.cs: we don't need to explicitly set ImeMode to
4821 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
4822 behavior in the face of ImeMode.Inherit.
4824 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
4825 change the ctor's assignment to use ImeMode instead of ime_mode.
4827 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
4828 ImeModeInherit. Only check for the parent's imemode (and return
4829 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
4830 This fixes the button unit test, which sets both ImeMode and
4831 DefaultImeMode to ImeMode.Disable.
4833 also make the ime_mode field private.
4835 2006-12-06 Chris Toshok <toshok@ximian.com>
4837 * Control.cs: make control_style private.
4839 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
4840 setting the styles to true, then setting them to false instead of
4841 reverting to their previous values.
4843 also, call SetStyle on the scrollbars instead of using
4844 control_style directly.
4846 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
4848 * FormCollection.cs: Implement. [2.0]
4850 2006-12-06 Chris Toshok <toshok@ximian.com>
4852 * Control.cs: make tab_stop private.
4854 * Label.cs: set TabStop, not tab_stop. reformat some event
4855 add/remove methods to make them more compact.
4857 2006-12-06 Chris Toshok <toshok@ximian.com>
4859 * RadioButton.cs: fix TabStop handling.
4861 2006-12-06 Chris Toshok <toshok@ximian.com>
4863 * TextBox.cs: remove the explicit assignments to has_focus.
4866 * ButtonBase.cs: remove the assignment to has_focus. Control will
4869 2006-12-06 Chris Toshok <toshok@ximian.com>
4871 * ButtonBase.cs: remove all uses of is_enabled from this code.
4872 it's always true when any of the code containing the checks is
4875 2006-12-06 Chris Toshok <toshok@ximian.com>
4877 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
4878 with different semantics (some are present in both 1.1 and 2.0
4879 profiles) so that we match MS's behavior in our unit tests.
4881 2006-12-06 Jackson Harper <jackson@ximian.com>
4883 * TextControl.cs: Make this operation undoable.
4884 * TextBoxBase.cs: Factor the border width into the preferred
4886 - implement Modified as per the spec.
4888 2006-12-06 Chris Toshok <toshok@ximian.com>
4890 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
4892 2006-12-06 Chris Toshok <toshok@ximian.com>
4894 * Control.cs: make right_to_left and context_menu fields private.
4896 2006-12-06 Chris Toshok <toshok@ximian.com>
4898 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
4899 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
4900 Control.child_controls private. switch all uses over to
4903 2006-12-06 Chris Toshok <toshok@ximian.com>
4905 * System.Windows.Forms/GroupBox.cs,
4906 System.Windows.Forms/AccessibleObject.cs,
4907 System.Windows.Forms/ErrorProvider.cs,
4908 System.Windows.Forms/Control.cs,
4909 System.Windows.Forms/UpDownBase.cs,
4910 System.Windows.Forms/ScrollBar.cs,
4911 System.Windows.Forms/DateTimePicker.cs,
4912 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
4913 System.Windows.Forms/ToolTip.cs,
4914 System.Windows.Forms/RadioButton.cs,
4915 System.Windows.Forms/LinkLabel.cs,
4916 System.Windows.Forms/Splitter.cs,
4917 System.Windows.Forms/TextBoxBase.cs,
4918 System.Windows.Forms/ToolStripTextBox.cs,
4919 System.Windows.Forms/ContainerControl.cs,
4920 System.Windows.Forms/ThemeWin32Classic.cs,
4921 System.Windows.Forms/SizeGrip.cs,
4922 System.Windows.Forms/ToolStripDropDown.cs,
4923 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
4924 private. switch all uses over to Control.Parent.
4926 2006-12-06 Chris Toshok <toshok@ximian.com>
4928 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
4929 Control does this before calling emitting these events.
4931 * TabControl.cs: same.
4933 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
4934 Control.client_rect.
4936 * ButtonBase.cs: use the ClientSize property instead of the
4939 * ScrollableControl.cs: same.
4941 * Control.cs: another pass at making properties private. also,
4942 move the initialization of tab_stop to the ctor.
4944 2006-12-05 Andreia Gaita <avidigal@novell.com>
4946 * TabControl.cs: Let the selected index be set freely if the
4947 control handle is not yet created.
4949 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
4951 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
4952 internal until I can rewrite DefaultLayout.
4953 * ToolStrip.cs: Fix build error and some general cleaning.
4954 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
4955 Fix build errors caused by making some of Control's fields private.
4957 2006-12-05 Jackson Harper <jackson@ximian.com>
4959 * TextControl.cs: Redo Insert a little so that it use IndexOf
4960 instead of Split, this prevents it from messing up on things like
4961 \n\n\n. Also more effecient since the split array doesn't need to
4963 * TextBoxBase.cs: AppendText doesnt handle multiline and non
4964 multiline text differently, this is the first of many fixes that
4965 will make multiline/non-multiline the same thing as far as the
4966 TextBoxBase is concerned.
4967 - Don't split the text and insert lines, this can lose some line
4968 endings (like is the last line a soft or hard break). Instead use
4970 - Fix an off by one when combining all the lines in the Text
4972 - Remove separate multiline handling from the Text getter/setter.
4974 2006-12-05 Chris Toshok <toshok@ximian.com>
4976 * ButtonBase.cs: a few changes:
4978 - don't reinitialize internal Control fields in the ctor when they
4979 have the same values as Control sets them.
4981 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
4982 this before calling those methods.
4984 - we don't need to call Refresh for anything. use Invalidate
4987 - OnEnabledChanged doesn't need to redraw at all - Control.cs
4988 calls Refresh in its OnEnabledChanged.
4990 - several of the events we were registered for in the ctor to
4991 redraw ourselves already include calls to Invalidate in the
4992 property setters that raise the events. remove the extra
4995 - reformat a switch statement that was 83274658 columns wide.
4997 2006-12-05 Mike Kestner <mkestner@novell.com>
4999 * ComboBox.cs: fix a unit test regression from a TextBox
5000 SelectionLength return of -1 when there's no selection.
5002 2006-12-05 Chris Toshok <toshok@ximian.com>
5004 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
5005 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
5006 cleaning up some of the internal Control fields being used by
5009 2006-12-05 Mike Kestner <mkestner@novell.com>
5011 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
5012 listbox after AddImplicit calls since it defaults to hidden. Add a
5013 hack to preserve requested heights across DropDownStyle changes.
5015 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
5017 * PropertyGrid.cs: Hide FindFirstItem method from public API.
5019 2006-12-05 Chris Toshok <toshok@ximian.com>
5021 * DataGridView.cs: fix compiler warnings.
5023 * PrintControllerWithStatusDialog.cs: same.
5027 * FolderBrowserDialog.cs: same.
5029 * Splitter.cs: same.
5031 * DataGridViewComboBoxCell.cs: same.
5033 * XplatUIWin32.cs: same.
5035 * PictureBox.cs: same.
5037 * Win32DnD.cs: same.
5039 * PageSetupDialog.cs: same.
5041 * FileDialog.cs: same.
5043 * PrintDialog.cs: same.
5045 * DataGridTextBoxColumn.cs: same.
5047 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
5049 2006-12-05 Chris Toshok <toshok@ximian.com>
5051 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
5052 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
5053 System.ComponentModel.EventHandlerList work.
5055 2006-12-05 Jonathan Chambers <joncham@gmail.com>
5057 * DrawTreeNodeEventArgs.cs: Added.
5059 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
5061 * InternalWindowManager.cs: Remove an unused field.
5063 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
5065 * InternalWindowManager.cs:
5066 - Save the point where the title bar is clicked.
5068 * MdiWindowManager.cs:
5069 - Only allow moving of the window as long as the
5070 clicked point on the title bar does not get out of
5071 MdiClient's rectangle. Fixes #79982.
5074 - Added Horizontal/VerticalScrollbarVisible.
5075 - Simplified the scrollbar sizing algorithm.
5076 - Cache the difference in scrolled value in
5077 H/VBarValueChanged and move the calculation out
5080 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
5082 * Control.cs: Make the Console.WriteLine in WndProc
5085 2006-12-05 Chris Toshok <toshok@ximian.com>
5087 * ToolStripManager.cs, ToolStripButton.cs,
5088 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
5089 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
5090 ToolStripSplitButton.cs, ToolStripSeparator.cs,
5091 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
5092 ToolStripProgressBar.cs, ToolStripContainer.cs,
5093 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
5094 to using System.ComponentModel.EventHandlerList.
5096 2006-12-04 Chris Toshok <toshok@ximian.com>
5098 * LinkLabel.cs: fix up compiler warnings.
5100 * TableLayoutSettings.cs: same.
5102 * TreeView.cs: same.
5106 * TabControl.cs: same.
5108 * RichTextBox.cs: same.
5110 * ListViewItem.cs: same.
5112 * PropertyGrid.cs: same.
5114 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
5118 * TextRenderer.cs: fix up compiler warnings.
5122 * Form.cs: corcompare fixes.
5124 * PictureBox.cs: fix up compiler warnings.
5126 * ImageListStreamer.cs: same.
5128 * TrackBar.cs: corcompare fix.
5130 * Control.cs: fix up compiler warnings.
5132 * SplitterPanel.cs: same.
5134 * NumericTextBox.cs: same.
5136 * ImageList.cs: same.
5138 * StatusStrip.cs: same.
5140 * ProgressBar.cs: corcompare fix.
5142 * ToolStripButton.cs: fix up compiler warnings.
5144 * ToolStripStatusLabel.cs: same.
5146 * ToolStripSplitButton.cs: same.
5148 * ToolStripSeparator.cs: same.
5150 * ToolStripProgressBar.cs: same.
5152 * ToolStripDropDownMenu.cs: same
5154 * ToolStripDropDown.cs: same.
5156 * ToolStripDropDownButton.cs: same.
5158 * ToolStrip.cs: same.
5160 * ToolStripControlHost.cs: same.
5162 * ToolStripContentPanel.cs: same.
5164 * ToolStripDropDown.cs: same.
5166 * ToolStripContainer.cs: same.
5168 * ToolStripPanel.cs: same, and add "new" where we need it to work
5169 with the new ArrangedElementCollection.
5171 * ToolStripItemCollection.cs: add "new" where we need it to work
5172 with the new ArrangedElementCollection.
5174 2006-12-04 Andreia Gaita <avidigal@novell.com>
5176 * TabControl.cs: Fix default tab selection to after TabControl
5177 gets focus and not before. Fixes #80128
5179 2006-12-04 Chris Toshok <toshok@ximian.com>
5181 * DataGridTableStyle.cs: remove the gross calling of
5182 datagrid.Refresh from here. It's a broken idea and it doesn't
5185 * DataGrid.cs: instead, just register/unregister from the
5186 DataGridTableStyle events in CurrentTableStyle. we play it
5187 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
5188 even though some would most likely not require it. Fixes bug
5189 #80115 (and one portion of #80117 as a side effect).
5191 2006-12-04 Chris Toshok <toshok@ximian.com>
5193 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
5194 so the textbox (if any) goes away. Fixes bug #80117.
5196 2006-12-04 Chris Toshok <toshok@ximian.com>
5198 * DataGridColumnStyle.cs: set the column's readonly property
5199 initially based on the property descriptor's IsReadOnly. Fixes
5202 2006-12-04 Chris Toshok <toshok@ximian.com>
5204 * ComboBox.cs: wrap the dropdown style changing work in
5205 SuspendLayout/ResumeLayout. Fixes bug #79968.
5207 2006-12-04 Jackson Harper <jackson@ximian.com>
5209 * TextBoxBase.cs: Fix off by one, since these are one-based.
5210 * TextBox.cs: Select all the text when we get focus. The TextBox
5211 does this but the RTB does not.
5213 2006-12-04 Chris Toshok <toshok@ximian.com>
5215 * DataGridTextBoxColumn.cs: remove some spew.
5217 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
5218 but some part of me is saying "it shouldn't be here.." At any
5219 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
5222 2006-12-04 Chris Toshok <toshok@ximian.com>
5224 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
5225 to reassign the propertydescriptor.
5227 2006-12-04 Jackson Harper <jackson@ximian.com>
5230 * TextControl.cs: Remove some unused variables. Maybe this will
5231 patch things up between mike and I.
5232 - don't split lines less then one char wide, if the viewport is
5233 that small text won't be visible anyways.
5235 2006-12-04 Jackson Harper <jackson@ximian.com>
5237 * TextBoxBase.cs: Default selection length is -1, need to do some
5238 more testing on windows to see when this is used for the property.
5239 - Redid the Lines [] property to that we properly remove soft line
5241 - added support for preserving carriage returns
5242 - CanUndo is not a variable like 'is undo enabled' it just returns
5243 true if there is undo operations available.
5244 - AppendText doesn't need to grab the last tag itself anymore,
5245 this happens automatically when we move the cursor.
5246 * TextControl.cs: Add CompoundActions to the undo class. This
5247 allows combining the other operations into one big option. ie a
5248 paste will combine { delete old, insert new, move cursor }
5249 - Add InsertString undo operation
5250 - New method for deleting multiline text
5251 - Add carriage returns to lines. So we can preserve carriage
5252 returns when text is 'roundtripped'
5254 2006-12-04 Chris Toshok <toshok@ximian.com>
5256 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
5257 minimum 0. Fixes the scrollbar exception in bug #80136.
5259 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5262 * MdiWindowManager: Removed unused fields and methods.
5264 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5266 * StatusBar.cs: Update all panels when a AutoSize=Contents
5267 panel needs updating.
5269 * StatusBarPanel.cs: Remove twidth and only use initialize.
5272 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5274 * Form.cs: When a form's MdiParent is set add it directly
5275 on top of the z-order in stead of relying on MdiClient's
5276 ActivateChild to do it. Fixes #80135.
5279 - Remove original_order, mdi_child_list is already doing
5281 - Create mdi_child_list on construction in
5282 stead of first use (avoids a few null checks).
5284 * MenuItem.cs: Use an already existing list of mdi children
5285 to get the correct order of children and remove the other
5288 2006-12-04 Chris Toshok <toshok@ximian.com>
5290 * PropertyGridView.cs: cached_splitter_location is only used in
5293 * PropertyGrid.cs: implement the ComComponentNameChanged event
5294 using Events, hoping that would fix the warning. Looks like a
5295 compiler bug instead (#80144).
5297 * PropertyManager.cs: remove unused method.
5299 2006-11-04 Everaldo Canuto <everaldo@simios.org>
5301 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
5302 include parentesis to fix expression evaluation. Fixes #79634.
5304 2006-11-02 Everaldo Canuto <everaldo@simios.org>
5307 - Changes to fix behavior in Menu control, some reported in #80097
5308 and other detected during behavior refactory like a select event
5310 - Remove unneded "if's" conditions.
5311 - Created an internal to flag when popup is active in control, we need
5312 it because in .NET you can have menu active but without popup active
5313 when you active menu using popup without visible items.
5314 - Mimic win32 behavior for Select and Popup events.
5315 - Dont open popup menu when you dont have visible subitems.
5316 - Do nothing when click on disabled menu item.
5317 - Some small changes to follow the coding style guidelines.
5318 - Unselect menu only when another control gives focus. Fixes #80097.
5319 - Remove unused code.
5321 * MenuItem.cs: internal VisibleItems method to check if menu
5322 theres visible subitems, it will be usefull to fix some
5323 behavior in Menu control.
5325 2006-11-01 Everaldo Canuto <everaldo@simios.org>
5327 * Timer.cs: Tag property for 2.0 profile.
5329 2006-12-01 Chris Toshok <toshok@ximian.com>
5331 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
5333 * Win32DnD.cs: comment out some unused fields.
5335 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
5336 some unused properties/methods.
5338 * XplatUIX11.cs: fix MousePosition so we override the base class's
5339 property instead of conflicting with it.
5341 * PictureBox.cs: comment out some unused fields
5343 * OSXStructs.cs: make some struct fields public.
5345 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
5346 MousePosition so we override the base class's property instead of
5347 conflicting with it.
5349 * X11Dnd.cs: comment out some unused fields
5351 * X11DesktopColors.cs: fix some struct field visibility to quiet
5354 * X11Dnd.cs: remove some debug code.
5356 * ThemeClearlooks.cs: comment out unused field.
5358 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
5360 * ThemeGtk.cs: comment out some unused pinvokes.
5362 * Timer.cs: remove some unused fields.
5364 * ThemeClearlooks.cs: comment out unused field.
5366 * UpDownBase.cs: comment out unused field.
5368 * DataObject.cs: comment out unused field.
5370 * DataGridBoolColumn.cs: reomve unused field.
5372 * DataGrid.cs: remove unused field.
5374 * Cursor.cs: remove old ToBitmap code.
5376 * ControlPaint.cs: remove unused method.
5378 * ScrollBar.cs: remove unused fields.
5380 * ComboBox.cs: remove unused field, and chain up to
5381 AccessibleObject ctor.
5383 * ListBox.cs: remove unused field.
5385 * ButtonBase.cs: wrap a couple fields in NET_2_0.
5387 * GridEntry.cs: remove unused fields.
5389 * Binding.cs: remove unused fields.
5391 * AxHost.cs: remove unused method.
5393 * ContainerControl.cs: remove unused field.
5395 * ScrollableControl.cs: remove unused fields.
5397 2006-12-01 Chris Toshok <toshok@ximian.com>
5399 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
5400 the Where/WhereString stuff. it's easy enough to CWL
5401 Environment.StackTrace.
5403 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
5404 unused private fields.
5406 2006-12-01 Jackson Harper <jackson@ximian.com>
5408 * TextControl.cs: Do not update the view while inserting multiline
5409 text. If we update the view we might wrap lines, before entering
5410 the new lines, which causes the new line insertion calculations to
5412 - Remove an old TODO
5413 - Make debug output a little nicer
5415 2006-12-01 Chris Toshok <toshok@ximian.com>
5417 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
5419 2006-12-01 Chris Toshok <toshok@ximian.com>
5421 [ fix the majority of the CS0108 warnings we've been suppressing ]
5423 * TreeView.cs: mark BackgroundImageChanged as 'new'.
5425 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
5426 to "LayoutToolBar" to quiet mcs.
5428 * TabControl.cs: mark our ControlCollection class as 'new'.
5430 * TextBoxBase.cs: mark some events as 'new'.
5432 * Splitter.cs: TabStop is 'new'.
5434 * ControlBindingsCollection.cs: mark a few methods as new since
5435 they change the visibility from protected to public.
5437 * RadioButton.cs: DoubleClick -> base class, and remove unused
5440 * MonthCalendar.cs: ImeMode property -> base class, and mark many
5443 * NumericUpDown.cs: TextChanged -> base class.
5445 * CheckedListBox.cs: mark our ObjectCollection class as new to
5448 * FolderBrowserDialog.cs: make HelpRequest event new and have it
5449 muck with the base class.
5451 * StatusBar.cs: fix some mcs warnings about Update being the same
5452 name as a base class method.
5454 * RichTextBox.cs: mark some events as new, and make them do things
5455 to the base class impl.
5457 * UserControl.cs: mark TextChanged as new, and have it manipulate
5460 * UpDownBase.cs: mark some things new.
5462 * CheckBox.cs: mark DoubleClick "new", and add some text about
5463 what we need to look at.
5465 * Panel.cs: make the events "new", and manipulate the base
5466 version. these are just here for attributes.
5468 * AccessibleObject.cs: make owner private.
5470 * Control.cs: deal with AccessibleObject.owner being private.
5471 cache our own copy if we need it.
5473 * Button.cs: add "new" to the DoubleClickEvent.
5475 * ListBox.cs: no need to track our own has_focus here. let
5476 Control.has_focus do it for us. Also some other work to clear up
5477 warnings about not overriding base class methods of the same name.
5479 * ComboBox.cs: clear up some warnings about not override base
5480 class methods of the same name.
5482 2006-12-01 Chris Toshok <toshok@ximian.com>
5484 * Form.cs: flag a few things as "new" to quiet some of the mcs
5489 * PrintPreviewDialog.cs: same.
5491 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
5492 now DGV isn't so horrible on the class status page. also, move
5493 all events to using System.ComponentModel.EventHandlerList. my
5496 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
5498 * MdiWindowManager.cs:
5499 - Set form to active mdi child if shown,
5500 and update the active mdi child to the next
5501 remaining child in the z-order if the form is hidden.
5504 - Track if the form has been visible and if its
5505 visibility is beeing changed, so that the MdiClient
5506 can properly decide the ActiveMdiChild. The MdiClient
5507 cannot track this since the form can change visibility
5508 before MdiClient is created.
5511 - Don't activate anything of the parent form is changing
5513 - Rework ActiveMdiChild to only return visible mdi
5514 children and take into account several other corner
5517 2006-12-01 Chris Toshok <toshok@ximian.com>
5519 * IBindableComponent.cs: new 2.0 interface.
5521 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
5523 * DataGrid.cs: Font for caption area is bold by default.
5525 2006-12-01 Everaldo Canuto <everaldo@simios.org>
5527 * Menu.cs: Tag property for 2.0.
5529 2006-11-01 Everaldo Canuto <everaldo@simios.org>
5531 * ThemeWin32Classic.cs: Adjust menu separator drawing.
5533 2006-12-01 Chris Toshok <toshok@ximian.com>
5535 * TreeView.cs: doh, the Begin* events should be
5536 TreeViewCancelEventHandler.
5538 2006-12-01 Chris Toshok <toshok@ximian.com>
5540 * Form.cs: Form.ControlCollection already stores off the
5541 form_owner field. don't access the base class's internal "owner"
5544 * Control.cs: make all the fields in Control.ControlCollection
5545 private. there's no need for any internal fields here.
5547 2006-12-01 Chris Toshok <toshok@ximian.com>
5549 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
5550 OnHandleCreated. Fixes bug #80109.
5552 2006-12-01 Chris Toshok <toshok@ximian.com>
5554 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
5555 SplitContainer.cs, Control.cs, StatusStrip.cs,
5556 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
5557 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
5558 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
5559 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
5560 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
5561 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
5562 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
5563 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
5564 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
5565 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
5567 do most of the work to convert our code over to use
5568 System.ComponentModel.Component.Events for
5569 adding/removing/dispatching events.
5572 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
5574 * DataGridView.cs: Fix an ArgumentNullException reported
5577 2006-11-30 Mike Kestner <mkestner@novell.com>
5579 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
5580 grabbed listbox. Fixes #80036 and #80101.
5582 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
5584 * Message.cs: Changed ToString() to match MS.
5586 2006-11-30 Jackson Harper <jackson@ximian.com>
5588 * TextBoxBase.cs: You can still change the selected text on a read
5590 * TextControl.cs: Lower magic number for wrap calculations. This
5591 lets text get closer to the right (far) edge.
5593 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
5595 * Control.cs: Tweak 2.0 layout properties.
5596 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
5597 * TextRenderer.cs: Add a new overload.
5598 * ToolStrip*: Huge amount of changes and new features.
5600 2006-11-30 Mike Kestner <mkestner@novell.com>
5602 * ComboBox.cs: fixes for LargeChange and Maximum to get the
5603 scroll range correct. Fixes #79994.
5605 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
5607 * MdiWindowManager.cs: Update main form's text when
5608 a form is closed. (fixes #80038)
5610 2006-11-30 Everaldo Canuto <everaldo@simios.org>
5613 - Fix an regression in ButtonSize.
5614 - Get ImeMode default value change to "Disable".
5615 - Get ShowTooltips default value change to true, default value is
5616 "false" but after make a test in .NET we get "true" result as default.
5618 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
5620 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
5622 2006-11-29 Chris Toshok <toshok@ximian.com>
5624 * XplatUIWin32.cs (GetWindowTransparency): check return value of
5625 GetLayeredWindowAttributes. if it's 0, return 1.0, as
5626 SetWindowTransparency hasn't been called.
5628 2006-11-29 Chris Toshok <toshok@ximian.com>
5630 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
5632 (set_AllowTransparency): reorder things a little so that the
5633 WS_EX_LAYERED style is removed properly.
5635 2006-11-29 Chris Toshok <toshok@ximian.com>
5637 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
5639 * Form.cs: only call the XplatUI transparency method (get/set) if
5640 SupportsTransparency says it's supported. Otherwise fallback to
5641 doing nothing (in the set case) or returning the instance field we
5642 cache (in the get case).
5644 * XplatUIStructs.cs: add TransparencySupport flag enum.
5646 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
5647 change to SupportsTransparency.
5649 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
5650 TransparencySupport.None from SupportsTransparency.
5652 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
5653 TransparencySupport.Set from SupportsTransparency.
5655 * XplatUIWin32.cs: implement GetWindowTransparency calling
5656 GetLayeredWindowAttributes, and implement SupportsTransparency by
5657 checking whether or not both
5658 GetWindowTransparency/SetWindowTransparency are available
5659 entrypoints. We need to do this since SetWindowTransparency is
5660 available as of win2k, but GetWindowTransparency requires winxp.
5663 * XplatUI.cs: Add GetWindowTransparency, and change
5664 SupportsTransparency to allow for either/both Get/Set.
5666 2006-11-29 Chris Toshok <toshok@ximian.com>
5668 * DataGrid.cs: keep from going into an infinite loop redrawing a
5669 datagrid that has no datasource. Fixes bug #80033.
5671 2006-11-29 Chris Toshok <toshok@ximian.com>
5673 * MenuItem.cs: fix the NRE when we assign text (and therefore call
5674 Invalidate) before the mainmenu has been assigned to a control.
5676 2006-11-29 Chris Toshok <toshok@ximian.com>
5678 * DataGrid.cs: detect when we should be double the double click
5679 row/column autosize stuff, although that codepath has yet to be
5680 written. part of the work for bug #79891.
5682 2006-11-29 Chris Toshok <toshok@ximian.com>
5684 * Binding.cs (SetControl): fix unit test.
5686 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5688 * PageSetupDialog.cs: Validate the margins and set them in
5690 * NumericTextBox.cs: New class to mimic the behavior of the
5691 textboxes used in the printing dialogs.
5693 2006-11-29 Andreia Gaita <avidigal@novell.com>
5695 * Form.cs: Revert previous change (remove call UpdateBounds
5696 from form constructor), because it messes with the handle creation
5697 order, and that one needs lots and lots of love.
5698 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
5699 for valid printer and throw InvalidPrinterException if document
5700 is set but printer not valid), adding a MonoTODO. Once
5701 handle creation is done properly, we can put this back in.
5703 2006-11-28 Everaldo Canuto <everaldo@simios.org>
5705 * MenuItem.cs: Create a invalidate method for menu item, to be
5706 calling from set text, it make text changes to imadiate update
5707 on screen. Fixes #80013.
5709 2006-11-28 Everaldo Canuto <everaldo@simios.org>
5711 * ToolBar.cs: Fixes and simplify toolbar button layout, it
5712 fixes bug #80070 and some other problem on toolbar buttons
5715 2006-11-28 Everaldo Canuto <everaldo@simios.org>
5717 * ThemeWin32Classic.cs: Paint toolbar toggle button background
5718 with dotted brush. Fixes #79564
5720 2006-11-28 Andreia Gaita <avidigal@novell.com>
5722 * Form.cs: Removed call to UpdateBounds on Form
5723 constructor, it was causing a call to CreateHandle
5724 before it was supposed to.
5725 * PrintControllerWithStatusDialog: Applied patch
5726 by Chris Toshok to hide controller when there are
5727 no printers available.
5728 PrintDialog.cs: initialize printer settings to
5729 null - correct DefaultValues test #5
5730 * PrintPreviewControl.cs: Move PrintController
5731 initialization to GeneratePreview
5732 * PrintPreviewDialog.cs:
5733 - Remove Preview generation from Document_set(). It is
5735 - Throw InvalidPrinterException on CreateHandle if
5736 a Document is set but there are no printers or
5737 printer is not valid.
5738 * ThemeWin32Classic: don't paint PrintPreviewControl
5739 if there is nothing to paint
5741 2006-11-28 Miguel de Icaza <miguel@novell.com>
5743 * Form.cs: Add another popular method.
5745 * TabPage.cs: ditto.
5747 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5749 * MenuItem.cs: Fixed a warning.
5750 * InternalWindowManager: Fixed a warning.
5752 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5755 - When cloning a menu also clone MdiList and clone the
5756 window menu items properly (as the forms and menuitems
5757 are kept in an internal hashtable, these need updating
5759 - Rewrote the window menu code, menu items are added in the
5760 order the forms were added to their parent, and they are
5761 updated every time the window menu is shown (before the
5762 list was only generated once, in the current order of the
5763 forms, and would never be updated). A checkmark is shown
5764 next to the item corresponding to the active mdi child.
5766 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5768 * XplatUIStructs.cs:
5769 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
5772 - Added TME_NONCLIENT to TMEFlags.
5773 - Handles WM_NCMOUSEMOVE in GetMessage to
5774 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
5777 - Now merges mdi child menu to parent menu when maximized.
5778 - Recalculate NC areas of both mdi child and mdi parent.
5780 on window state and size changes.Fixes #79844 (3).
5781 - Handle WM_NCCALCSIZE to properly calculate borders.
5784 - Add/remove to the mdi containers list of mdi children
5785 in the order they are added.
5786 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
5787 to the maximized mdi child.
5789 * InternalWindowManager.cs:
5790 - Only execute a click on the control buttons on the mouse up,
5791 not on the mouse down. Show the state of the button
5792 (was only showing Normal state, never Pressed state). The
5793 pressed button now follows the mouse (if you click the Close
5794 button and move the mouse over the Maximize button, the
5795 Maximize button will be shown as pressed). Since Win32 does
5796 not generate WM_NCLBUTTONUP if you release the button outside
5797 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
5800 * ThemeWin32Classic.cs:
5801 - Draw a missing border around mdi child forms. Fixes #79844 (2).
5804 - Added a list of forms which contains the order the forms are
5805 added to the mdi parent.
5806 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
5807 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
5808 - If the active form changes set the scrollbars to the top
5809 of the Z order, otherwise the form could hide them.
5810 - Scrollbars are now sized according to ClientSize, not
5811 to Size, and they take into account the other scrollbar
5812 to determine maximum.
5814 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5821 - Added RequestAdditionalWM_NCMessages for windows to
5822 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
5823 Currently only implemented in XplatUIWin32.
5825 2006-11-27 Chris Toshok <toshok@ximian.com>
5827 * Hwnd.cs: only add the hwnd to the windows hash in
5828 set_WholeWindow and set_ClientWindow if whole_window/client_window
5829 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
5831 2006-11-27 Mike Kestner <mkestner@novell.com>
5833 * ComboBox.cs: remove redundant OnDropDown call. It is called
5834 from the ComboListBox.ShowWindow code. Fixes #79969.
5836 2006-11-27 Chris Toshok <toshok@ximian.com>
5838 * Hwnd.cs: remove the setters for ExposePending and
5839 NCExposePending - noone uses them.
5841 2006-11-27 Jackson Harper <jackson@ximian.com>
5843 * TextControl.cs: new param for ReplaceSelection which determines
5844 whether we select the new selection, or set the cursor to the end
5845 of the new selection.
5846 * TextBoxBase.cs: Use new param for ReplaceSelection. When
5847 pasting, select the new text.
5848 * RichTextBox.cs: Use new param for ReplaceSelection.
5850 2006-11-27 Jackson Harper <jackson@ximian.com>
5852 * TextBoxBase.cs: Set the selection to the caret after the caret
5853 is moved, otherwise they get out of sync.
5855 2006-11-26 Everaldo Canuto <everaldo@simios.org>
5857 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
5860 2006-11-26 Everaldo Canuto <everaldo@simios.org>
5862 * ThemeWin32Classic.cs:
5863 - Fix toolbar drop down arrow position.
5864 - Fix drop down appearance when ToolBar.Appearance is normal,
5867 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
5869 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
5871 * UpDownBase.cs: Same.
5872 * ButtonBase.cs: Same.
5873 * ScrollBar.cs: Same.
5874 * TrackBar.cs: Same.
5875 * PictureBox.cs: Same.
5876 * UserControl.cs: Same.
5878 * ListControl.cs: Same.
5879 * TextBoxBase.cs: Same.
5880 * ListView.cs: Same.
5881 * RichTextBox.cs: Same.
5882 * TreeView.cs: Same.
5884 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
5887 - Text label for where
5888 - Text label comment was not shown
5890 2006-11-23 Everaldo Canuto <everaldo@simios.org>
5892 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
5894 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5896 * InternalWindowManager.cs:
5897 - Handle WM_PARENTNOTIFY to activate the form
5898 if any child control is clicked.
5899 - The form is only sizable if not minimized.
5901 * MdiWindowManager.cs:
5902 - Save the IconicBounds if the form is moved.
5903 - Rework SetWindowState, now the window bounds
5904 are stored only if the old window state is Normal.
5907 - In SetWindowStates store the old window state if
5908 the window is maximized and restore window state if
5909 the window looses focus.
5910 - Don't handle any scrollbar value changes if
5911 initializing the scroll bars. Fixes #79771.
5912 - Reworked ArrangeIconicWindows. Current algorithm
5913 tests bounds agains all other minimized windows, if
5914 any intersections create new bounds (going left to
5915 right, bottom to top) and then test again. When
5916 successful the bounds are saved and never computed
5917 again. Fixes #79774.
5919 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5921 * InternalWindowManager.cs: Added HandleTitleBarUp.
5923 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
5925 * NumericUpDown.cs: In .NET 1.1, user entered text is still
5926 hexadecimal in ParseUserEdit.
5929 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5931 * MdiWindowManager.cs:
5932 - Handle a click on the form's icon to show the
5933 system menu (when maximized). Fixes #79775.
5934 - Change the existing click handler for the form's
5935 icon when not maximized to show on MouseUp.
5938 * Form.cs: In OnResize only layout the mdi child's
5939 parent if it actually has a parent. Might not if
5940 the window is closing.
5943 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
5945 * MdiClient.cs: Ignore active MDI client for text of parent, if
5946 child has no text set.
5948 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
5950 * ToolBar.cs: Fixed ToString to match MS.
5952 2006-11-22 Andreia Gaita <avidigal@novell.com>
5955 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
5956 update inner values on set. Fixes #79966.
5957 - Override OnLostFocus to update value on NET 2. Fixes #79950.
5958 - Fix hexadecimal parsing.
5960 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
5961 parent. Fixes #79957
5963 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
5965 * Control.cs: After calling SetWindowsPos in SetBoundsCore
5966 the actual size has to be queried, since if height /
5967 width is negative Win32 changes it to 0.
5968 Fixes #79999 on Windows.
5970 * XplatUIX11.cs: Set height / width to 0 if negative
5971 in SetWindowPos. Fixes #79999 on Linux.
5973 2006-11-22 Everaldo Canuto <everaldo@simios.org>
5975 * ThemeWin32Classic.cs: Fix text redenring when button is
5978 2006-11-22 Everaldo Canuto <everaldo@simios.org>
5980 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
5981 and later navigate by mouse. Fixes #79528.
5983 2006-11-21 Everaldo Canuto <everaldo@simios.org>
5985 * ToolBar.cs: Set default value for TabStop to false in
5986 constructor, it fixes remaining behavior of bug #79863.
5988 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5990 * MdiWindowManager.cs:
5991 * InternalWindowManager.cs:
5992 - Moved a few methods specific to Mdi from
5993 InternalWindowManager to MdiWindowManager.
5996 2006-11-21 Chris Toshok <toshok@ximian.com>
5998 * XplatUIOSX.cs: stub out InvalidateNC.
6000 * XplatUIWin32.cs: implement InvalidateNC using the call I found
6001 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
6003 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
6005 * XplatUIDriver.cs: add InvalidateNC abstract method.
6007 * XplatUI.cs: add InvalidateNC.
6009 2006-11-21 Everaldo Canuto <everaldo@simios.org>
6011 * ToolBar.cs: Invalidate complete button area when pressed status
6013 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
6014 * ThemeWin32Classic.cs: Increase vertical and horizontal position
6015 by 1 when button is pressed.
6017 2006-11-20 Everaldo Canuto <everaldo@simios.org>
6019 * ToolButton.cs: Invalidate middle of DropDown button when
6020 ToolBar theres DropDownArrows.
6021 * ThemeWin32Classic.cs: Change position of DropDown arrow and
6022 fix DropDown drawing operations.
6024 2006-11-20 Chris Toshok <toshok@ximian.com>
6026 * NativeWindow.cs: fix the formatting of functions ('{' on the
6027 following line), and enable the thread exception dialog.
6029 * Application.cs: remove the duplicate exception catching from
6032 2006-11-20 Everaldo Canuto <everaldo@simios.org>
6034 * Toolbar.cs: Triggers button click event when click on icon
6035 of dropdown ToolBarButton. Fixes #79912.
6037 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6040 * ThemeWin32Classic.cs:
6041 - Added a property WindowBorderFont to enable themeing
6042 of mdi child windows' Text.
6044 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6046 * InternalWindowManager.cs:
6049 * MdiWindowManager.cs:
6050 - If mdi child is maximized, set mdi parent's
6051 text to "Parent - [Child]". Fixes #79770.
6052 - If there is any maximized mdi child windows, only the active
6053 window (and any new windows) is maximized, the rest are normal.
6054 - On a WindowState change only save mdi child's window bounds
6055 if the old window state was normal. Fixes #79774.
6056 - The scroll bars are now calculated on hopefully all
6057 necessary events. Fixed #79771 / #79844->6 / #79906.
6058 - MdiClient.SizeScrollBars() now takes into account docked
6059 controls in the parent when calculating available space.
6060 - InternalWindowManager now always repaints the entire title
6061 area. Fixes #79844->1/4/5.
6062 - Added RequestNCRecalc on mdi child windowstate changes.
6065 2006-11-20 Mike Kestner <mkestner@novell.com>
6067 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
6068 in the MouseUp handler of the listbox and move the return handling
6069 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
6071 2006-11-20 Everaldo Canuto <everaldo@simios.org>
6073 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
6075 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
6077 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
6078 working in 1.2.x anymore. So, updated.
6080 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
6082 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
6083 NumberGroupSeparator of current culture instead of assuming en-US.
6086 2006-11-17 Mike Kestner <mkestner@novell.com>
6088 * Control.cs: Add the concept of implicit bounds setting so that
6089 dock/undock round trips preserve explicitly set size/locations.
6092 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
6094 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
6095 can't handle those filters. (Fixes bug #79961)
6097 2006-11-17 Chris Toshok <toshok@ximian.com>
6099 [ fixes the exit/crashes associated with #79835. it's clearly
6100 suboptimal though, we need to figure out a better way to solve
6103 * PrintPreviewControl.cs: deal with the new invalid printer
6106 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
6107 and return false (so CommonDialog.ShowDialog doesn't actually show
6110 * PrintDialog.cs: enable/disable the Ok button depending on
6111 whether or not the printer is valid.
6113 * CommonDialog.cs (ShowDialog): only actually show the form if
6114 RunDialog returns true.
6116 2006-11-17 Jackson Harper <jackson@ximian.com>
6118 * TextControl.cs: When soft splitting a line, mark it as a soft
6119 split line. Also carry over the current line break to the next
6122 2006-11-17 Chris Toshok <toshok@ximian.com>
6124 * XplatUIX11.cs: when scrolling a window with an invalid area, we
6125 only want to shift the part of the invalid area that overlaps the
6126 area we're scrolling. we also don't want to clear the invalid
6127 area unless the invalid area was entirely contained within the
6130 2006-11-16 Chris Toshok <toshok@ximian.com>
6132 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
6133 also make sure to free the memory returned by XGetWindowProperty
6136 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
6138 2006-11-16 Chris Toshok <toshok@ximian.com>
6140 * XplatUI.cs: add a new super secret way to get at the totally
6141 unsupported X11 backend.
6143 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
6145 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
6147 2006-11-16 Jackson Harper <jackson@ximian.com>
6149 * TreeView.cs: Allow more explicit setting of top node position
6150 for scrollbars. Slower algo, but more accurate.
6151 - CollapseAll should maintain the current top node.
6152 * TextBoxBase.cs: When positioning the caret, use the line, pos
6153 method, since the x, y method does not grab the correct tag, and
6154 the caret height never gets set correctly. (Maybe I should just do
6155 away with the caret having its own height, and always use the
6156 carets current tag for height).
6158 2006-11-16 Jonathan Pobst <monkey@jpobst.com
6160 [Fixes 79778, 79923]
6162 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
6163 Parent to the FosterParent instead.
6165 2006-11-16 Jackson Harper <jackson@ximian.com>
6167 * TreeView.cs: Need to recalc the topnode when we expand or
6168 collapse. The scrolling methods can't handle this on their own,
6169 since they use differences between the last scroll position, and
6170 those difference get completely messed up since we are expanding
6171 nodes. This problem should probably be fixed in the scrolling
6172 methods, so they can figure out exactly where they are, but this
6173 will slow things down a little.
6174 * ThemeWin32Classic.cs: Special case for groupboxes with empty
6175 strings, makes nunit-gui look a lot nicer.
6177 2006-11-16 Chris Toshok <toshok@ximian.com>
6179 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
6180 the broken multithreaded event handling we have in here. File
6181 this entry under "Why we should move to the new X11 backend".
6183 Any thread can make it into UpdateMessageQueue, which gets events
6184 from the X socket - some of which could belong to hwnds being
6185 managed by a different thread. We can also have multiple threads
6186 in UpdateMessageQueue at the same time, with each one reading from
6187 the X socket. This leads to many problems, with the following
6190 We can't use hwnd.Queue.Enqueue anywhere in here and must use
6193 The MotionNotify compression we do can't work across threads
6194 (without locking the entire queue, perhaps) since we call
6195 hwnd.Queue.Peek, so we just punt and don't compress motion events
6196 unless the owning thread is the one which got the X event.
6198 ConfigureNotify is another fun one, since it modifies the hwnd's
6199 bounds and then enqueues the event. We add a lock to Hwnd which
6200 is held when setting configure_pending to true (and enqueuing the
6203 There is a race wrt the wake socket. we need to make sure that
6204 only 1 thread is waiting on that socket, or else a thread could
6205 sleep waiting for data that never comes. It's difficult (but not
6206 impossible) to make happen, because it seems to require something
6209 1. Thread 1 polls on wake_receive
6211 2. poll returns saying there's data to be read on
6214 3. Thread 2 polls on wake_receive and immediately returns
6215 saying there's data to be read.
6217 4. Thread 2 reads the wakeup byte from wake_receive
6219 5. Thread 1 attempts to read the wakeup byte from
6222 6. Thread 2 exits (due to a form closing, perhaps).
6224 7. Thread 1 blocks forever.
6228 Fixing the Expose handling isn't done yet, and the races inherent
6229 in that piece of code are responsible for the drawing mistakes you
6230 see when generating expose events in a MT app (like NPlot). This
6231 one is the likely to be the hardest to bandaid, and it doesn't
6232 appear to cause anything but drawing problems. The other issues
6233 caused apps to exit or hang.
6235 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
6236 called from a different thread than the one that should be calling
6239 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
6241 2006-11-15 Chris Toshok <toshok@ximian.com>
6243 * Application.cs: null out the context's MainForm when we exit
6244 RunLoop. Fixes a newly checked in unit test as well as the last
6245 ODE from bug #79933.
6247 2006-11-15 Chris Toshok <toshok@ximian.com>
6249 * Form.cs (set_Owner): allow a null value so we can clear the
6251 (Dispose): set all our owned_form's Owner properties to null, and
6252 clear the owned_forms collection.
6253 (WM_CLOSE): clean up this a little bit.. still not right though.
6255 * ApplicationContext.cs: OnMainFormClosed should only call
6256 ExitThreadCore if the main form isn't recreating. Fixes unit
6259 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
6263 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
6265 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
6269 * Hwnd.cs: Add a flag to show a window, but not activate it, to
6270 keep popup window types from stealing focus from the main form
6273 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
6275 * MenuAPI.cs: Set above flag to true.
6277 2006-11-15 Chris Toshok <toshok@ximian.com>
6279 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
6280 the button being released is not in wParam.
6282 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
6284 * Form.cs: Add the released button to MouseEventArgs.Button
6285 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
6288 2006-11-15 Chris Toshok <toshok@ximian.com>
6290 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
6291 GetText(). untested because it's unused in our implementation.
6292 Control.Text always caches the text, even if
6293 ControlStyles.CacheText is not set.
6297 2006-11-15 Chris Toshok <toshok@ximian.com>
6301 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
6302 message. no hiding, no disposing.
6304 in the WM_CLOSE handler, hide the form if it's modal.
6306 2006-11-15 Chris Toshok <toshok@ximian.com>
6308 * XplatUIX11.cs: use AddExpose instead of sending a message.
6309 fixes textbox border drawing.
6311 2006-11-15 Chris Toshok <toshok@ximian.com>
6313 * PropertyGridView.cs: keep from crashing on mouse move/down when
6314 the property grid is empty.
6316 2006-11-14 Jackson Harper <jackson@ximian.com>
6318 * TextControl.cs: Make PageUp and PageDown more like the MS
6320 * TextBoxBase.cs: When we set the text property position the
6321 cursor at the beginning of the document.
6323 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
6325 * Form.cs: if a mdi child's WindowState has changed
6326 before it's creation, it would display wrong control
6329 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
6331 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
6334 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
6336 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
6337 the window gets to paint its borders even if the window is
6340 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
6341 otherwise the old control buttons would still be painted
6342 if the window gets bigger.
6344 * PaintEventArgs.cs: add an internal method so that the clip
6345 rectangle can be changed.
6347 2006-11-13 Chris Toshok <toshok@ximian.com>
6349 [ fixes bug #79745 ]
6351 * NotifyIcon.cs: lots of cleanup.
6353 * X11Structs.cs: add an enum for XEMBED messages.
6355 * XplatUIX11.cs: reindent one of the giant switch statements, it
6356 was taking up an additional tab stop, and this file is already way
6357 too wide for my laptop's screen.
6359 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
6360 we get it, resize the hwnd to the WMNormalHints max_width/height.
6362 2006-11-13 Jackson Harper <jackson@ximian.com>
6364 * TextBoxBase.cs: Compute the value changes for the mouse wheel
6367 2006-11-13 Chris Toshok <toshok@ximian.com>
6369 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
6370 #79898. force a reference to the Region to stick around so the
6371 unmanaged object isn't collected (rendering our handle in the MSG
6374 2006-11-13 Chris Toshok <toshok@ximian.com>
6376 * XplatUIX11.cs: fix #79917 for window managers which support
6378 using XStoreName on the raw utf8, and we need to convert to
6379 COMPOUND_TEXT if it's non-latin1.
6381 2006-11-13 Chris Toshok <toshok@ximian.com>
6383 * Form.cs (set_DialogResult): we need to set closing to false if
6384 we're setting our result to None. fixes bug #79908.
6386 2006-11-13 Jackson Harper <jackson@ximian.com>
6388 * TextControl.cs: When formatting text, compute the adjusted tag
6389 lengths correctly, using FindTag for the end tag instead of trying
6390 to figure it out outselves.
6391 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
6392 the item, ItemHeight doesn't work, because trees with large
6393 imagelists use those for their height
6394 * TreeView.cs: ActualItemHeight factors in the image height
6395 - compute left edge of checkboxes correctly
6396 - when expanding/collapsing move the bottom down one pixel, so we
6397 aren't moving part of the node
6399 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6401 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
6402 stack in PaintEventStart so that it won't get disposed by the gc
6403 before reaching PaintEventEnd.
6405 2006-11-13 Jackson Harper <jackson@ximian.com>
6407 * TextBoxBase.cs: Don't select the word if we are on a line with
6409 - We don't need to position the caret on mouse up, since the mouse
6410 move handler should be doing this
6411 - When double clicking a blank line, the caret is advanced to the
6414 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
6416 * TreeNodeCollection.cs: Avoid duplicating indexer code.
6418 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
6420 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
6421 Fixes part of bug #79910.
6423 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
6425 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
6426 (bug #79903). Some minor string updates to match ms.
6428 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
6430 * FileDialog.cs: Don't add an extension if the filename
6431 already ends with that extension.
6433 2006-11-10 Jackson Harper <jackson@ximian.com>
6435 * TreeView.cs: Use the currently highlighted node for the
6437 * TextBoxBase.cs: There is no need to expand selection on
6439 - CanUndo means 'is there any undo operations', not 'is undo
6440 allowed on this textcontrol. Fixed ClearUndo unit test.
6442 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
6444 * Button.cs: only perform click when button is Selectable (so as
6445 not to activate default buttons when they're disabled)
6447 * Control.cs: Rewrite of the SelectNextControl and related
6448 methods. HandleClick now selects next control if the current one
6451 * Form.cs: OnActivated selects next active control only if Load
6452 has already occurred. If Load hasn't run, there's no point in
6453 selecting here, Load might change the state of controls.
6455 * FocusTest.cs: Tests marked as working again for these fixes
6457 2006-11-10 Chris Toshok <toshok@ximian.com>
6459 * XplatUIX11.cs: a couple of fixes.
6461 - use XInternAtoms with almost all the atoms we need to register,
6462 instead of many, many calls to XInternAtom. should help a bit on
6463 startup time, at the expense of making the code look a little
6466 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
6467 isn't reparented (which seems to be a clue that we're running fon
6468 compiz) and they have an Owner form. This fixes the tool windows
6469 in paint.net when running under compiz.
6471 - when setting the opacity of a window, support both the case
6472 where the window has been reparented and also when it hasn't been.
6473 Since compiz/beryl doesn't seem to reparent windows, and these are
6474 the only window managers which support translucency, I'm not sure
6475 why we need the hwnd.reparented case at all.. but leave it in.
6476 now we get translucent windows in paint.net under compiz/beryl.
6478 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
6480 * FileDialog.cs: Always return the value for FilterIndex that
6481 was set. Internally convert it to values that make sense.
6483 2006-11-10 Everaldo Canuto <everaldo@simios.org>
6485 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
6487 2006-11-10 Everaldo Canuto <everaldo@simios.org>
6489 * Toolbar.cs: Change default value of DropDownArrows to true, the
6490 signature still using false to make it compatible with MS but the
6491 initial value is true. Fixes #79855.
6493 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
6495 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
6496 only available on Linux.
6498 2006-11-09 Everaldo Canuto <everaldo@simios.org>
6500 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
6501 reduce number of calls to redraw method during toolbar creation.
6503 2006-11-09 Mike Kestner <mkestner@novell.com>
6505 * ListView.cs : raise SelectedIndexChanged when an item is selected
6506 programmatically via the Item.Selected property. Gert's nice
6507 ListViewSelectedIndexChanged test fixture now runs clean.
6509 2006-11-09 Mike Kestner <mkestner@novell.com>
6511 * ListView.cs : raise SelectedIndexChanged when a selected item is
6512 removed from the item collection using Remove or RemoveAt.
6514 2006-11-09 Mike Kestner <mkestner@novell.com>
6516 * ListView.cs : raise SelectedIndexChanged once per selected item
6517 for compat with MS. Fixes #79849+.
6519 2006-11-09 Chris Toshok <toshok@ximian.com>
6521 * TabControl.cs: initialize row_count to 0, and set it to 1 when
6522 we need to (if we have any tab pages). Fixes unit test.
6524 2006-11-09 Chris Toshok <toshok@ximian.com>
6526 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
6527 width is 0, not 3. Fixes a unit test.
6529 2006-11-09 Mike Kestner <mkestner@novell.com>
6531 * ListView.cs : use Implicit scrollbars so that focus isn't
6532 stolen from the listview when they are clicked. Fixes #79850.
6534 2006-11-09 Chris Toshok <toshok@ximian.com>
6536 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
6537 have a root item. Fixes #79879.
6539 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
6543 - An ArgumentException is now thrown if a wrong filter
6544 is applied (matches ms). The previous filter doesn't change
6545 anymore if an exception is thrown.
6546 - Changing the FileName property also affects FileNames
6547 * ColorDialog.cs: The length of the CustomColors array is always
6548 16. It doesn't matter if we use a smaller array or null to update
6549 or change the custom colors property.
6550 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
6551 for RootFolder if we get a undefined value.
6553 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6555 * StatusBarPanel.cs:
6556 - Width is set to MinWidth if Width is smaller than
6557 MinWidth. Fixes #79842.
6558 - MinWidth now always overrides Width (MSDN says MinWidth
6559 is set to Width when AutoSize = None, but they do not
6561 - Style has now the the correct default value.
6563 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6566 - The control is completely invalidated on
6567 Got/LostFocus to draw the focus rectangle correctly.
6568 - When AutoSize then height is always 45 (width for
6571 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
6572 on the mouse when moved and it doesn't move when grabbed
6573 until the mouse moves as well. Also fixed some wrong
6574 calculations when clicking on the thumb (control thought
6575 click was outside of thumb and didn't grab it).
6576 Fixes some of the issues in #79718.
6578 2006-11-08 Everaldo Canuto <everaldo@simios.org>
6580 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
6582 2006-11-08 Chris Toshok <toshok@ximian.com>
6584 * PropertyGridView.cs: only call ToggleValue if the item is not
6587 2006-11-08 Jackson Harper <jackson@ximian.com>
6589 * TextBoxBase.cs: The RichTextBox and textbox have very different
6590 word selection methods. Implement the textbox's simple word
6591 selection here, and let the RichTextBox override and provide it's
6593 - Don't do extra selection on mouseup
6594 * RichTextBox.cs: Use the documents word selection algorithm, I
6595 think ideally, this function will be pulled into the
6596 RichTextBox.cs code someday.
6598 2006-11-08 Chris Toshok <toshok@ximian.com>
6600 * RootGridEntry.cs: new class to represent GridItemType.Root.
6602 * CategoryGridEntry.cs: reformat, and add boilerplate.
6604 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
6605 returns the UI parent anyway, and we need special handling to
6606 implement the GetTarget method in the face of it. Also, implement
6609 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
6610 a root grid item, and use that instead of PropertyGrid.grid_items.
6611 Also, make use of TypeConverters (and add limitted support for
6612 ICustomTypeDescriptors) when initially populating the grid.
6613 Arrays now show up more or less properly.
6615 2006-11-08 Chris Toshok <toshok@ximian.com>
6617 * Application.cs: set the modal dialog to non modal after we close
6618 it. Fixes bug #79866.
6620 2006-11-08 Jackson Harper <jackson@ximian.com>
6622 * TextControl.cs: When combining lines carry over the line end
6623 style from the end line.
6624 - Invalidate the selected area when setting it, if it is visible.
6625 * TextBoxBase.cs: Only rich text box can do full line selects.
6626 - Make sure to set the cursor position when there is a click,
6627 otherwise two clicks in separate areas could cause a large chunk
6630 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6632 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
6635 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6637 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
6638 time. Remove tooltips when ToolButton click events. Fixes #79856.
6640 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6642 * MenuAPI.cs: Ignore right click for menu actions and fixes
6643 menu border when clicked. Fixes #79846.
6645 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6647 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
6648 MouseState after create wParam for message, this fixes mouse button
6649 equal none in mouse up events.
6651 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
6653 * Control.cs : Focus() now calls Select to set the Container's
6654 Active Control and to give it focus. To avoid infinite recursion
6655 (because ActiveControl also calls Focus at one point), a check
6656 is made in Focus with the help of a new internal variable
6659 2006-11-07 Mike Kestner <mkestner@novell.com>
6661 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
6662 if there's a selection. Fixes #79849.
6664 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
6666 * PropertyGrid.cs: Avoid fixed height of help description label.
6667 Fixes part of bug #79829.
6669 2006-11-07 Chris Toshok <toshok@ximian.com>
6671 * XplatUIX11.cs: fix #79790 again, by using the
6672 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
6674 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6676 * ToolBar.cs: Fix left click checking.
6678 2006-11-07 Chris Toshok <toshok@ximian.com>
6680 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
6682 2006-11-07 Chris Toshok <toshok@ximian.com>
6684 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
6685 PropertyManager unit tests.
6687 * PropertyManager.cs: make property_name internal.
6689 2006-11-07 Chris Toshok <toshok@ximian.com>
6691 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
6692 pass a unit test. Also, don't set image_index to anything in
6693 response to setting the ImageList property.
6695 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6697 * ToolBar.cs: Ignore click events when mouse button is not a
6698 left button, only accepts other button for dropdown menus.
6701 2006-11-07 Chris Toshok <toshok@ximian.com>
6703 * DataGrid.cs: make the back and parent row buttons a little less
6706 2006-11-07 Jackson Harper <jackson@ximian.com>
6708 * TextBoxBase.cs: When converting to Text don't put line breaks in
6709 for soft line breaks.
6710 * TextControl.cs: There is an initial "fake" line in the document,
6711 this is now a soft break line, so that an extra line feed doesn't
6712 get added to the end of documents.
6714 2006-11-07 Chris Toshok <toshok@ximian.com>
6718 * CurrencyManager.cs: if the list is readonly, don't bother
6719 checking if IBindingList.AllowNew is true.
6721 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
6722 for non-DataRowView datasources.. or rather, make it not crash.
6723 (DataGridPaintRelationRow): make sure we limit the row painting to
6724 the area not covered by the row header, and make our cell width at
6725 least large enough to cover the relation area. This allows grids
6726 that have relations but no rows to render correctly.
6727 (DataGridPaintRowContents): same type of changes here.
6728 (SetDataSource): move back to always calling
6729 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
6730 navigating back through relations.
6731 (HitTest): handle the case where we have no cells but have
6732 relations. Right now we generate a hit in cell 0 of whatever the
6733 row is, not sure if this is strictly correct, but it works for our
6736 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
6737 bother doing anything.
6739 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
6741 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
6742 early version of StatusStrip. Not responsible for eaten
6743 application or firstborn children.
6745 2006-11-06 Chris Toshok <toshok@ximian.com>
6747 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
6748 call GetTabRect with a -1 index. Fixes #79847.
6750 2006-11-06 Jackson Harper <jackson@ximian.com>
6752 * TreeNodeCollection.cs: Update scrollbars after clearing.
6754 2006-11-06 Chris Toshok <toshok@ximian.com>
6756 * NumericUpDown.cs: fix the ToString method for some unit test
6759 2006-11-06 Chris Toshok <toshok@ximian.com>
6762 - set the initial SelectedGridItem if we can.
6764 - Exclude non-mergable properties only if we're merging > 1
6765 object. Merging 1 object isn't really merging, obviously.
6767 - Handle PropertySort.NoSort just like Alphabetical, which is
6768 wrong of course, but at least gets things on the screen.
6770 * PropertyGridView.cs:
6771 - Add method "FindFirstItem" which finds the first property grid
6772 item, so we can select it by default.
6774 - make use of GridEntry.CanResetValue.
6776 - Don't call RedrawBelowItemOnExpansion here anymore, the
6777 individual GridEntry's will do that.
6779 - Remove the ITypeDescriptorContextImpl internal class.
6782 - this class needs to implement ITypeDescriptorContext, as it's
6783 what MS's PropertyDescriptorGridEntry does, which means we can
6784 remove the ITypeDescriptorContextImpl internal class from
6785 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
6787 - keep a reference to our PropertyGridView, and move the call to
6788 RedrawBelowItemOnExpansion here from PGV. This means
6789 programmaticly setting Expanded actually does something visible.
6791 - add a CanResetValue() function which takes into account our
6792 possibly multiple "selected_objects" in the merged case. Shifting
6793 PropertyGridView to use this method fixes another unreported
6794 crasher found running the test for #79829.
6796 - when Top or Bounds is updated, make sure the PropertyGridTextBox
6797 is updated to reflect this.
6799 * CategoryGridEntry.cs: the ctor takes the PGV now.
6801 2006-11-06 Jackson Harper <jackson@ximian.com>
6803 * TextControl.cs: These are 1 based.
6804 * TextBoxBase.cs: When setting the selected text, don't change the
6805 selected text tags, this is done by ReplaceText, just position the
6806 cursor at the end of the new text.
6808 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
6810 * ListView.cs: Allow label edit only when, when LabelEdit is
6813 2006-11-06 Jackson Harper <jackson@ximian.com>
6815 * TextControl.cs: If a suitable wrapping position isn't found,
6816 just wrap right in the middle of a word.
6818 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
6820 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
6823 2006-11-06 Jackson Harper <jackson@ximian.com>
6825 * TreeView.cs: Can't use the VisibleCount property when setting
6826 scrollbar heights, because this doesn't take into account whether
6827 or not the horz scrollbar just came visible.
6829 2006-11-05 Everaldo Canuto <everaldo@simios.org>
6831 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
6832 activated. Fixes #79369, #79832.
6834 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
6836 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
6837 had to remove support for links that point to a directory. FileInfo
6838 returns no usefull information (means, the directory they point to)
6839 for such links. Replaced some empty string ("") with String.Empty.
6841 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6843 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
6844 NullReferenceException when attempting to remove node that is not in
6845 collection. Throw NullReferenceException when null is passed to
6846 Remove. Allow first element of the collection to be removed. Fixes
6847 bug #79831. In GetEnumerator ().Current return null if positioned
6848 before the first element of the collection. In GetEnumerator ().Reset,
6849 position before first element of the collection.
6851 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6853 * PropertyGrid.cs: To match MS, remove default title and description
6854 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
6857 2006-11-04 Chris Toshok <toshok@ximian.com>
6859 * Theme.cs: add a Clamp method, just for kicks.
6861 * ThemeWin32Classic.cs: clamp all color components to [0..255].
6863 2006-11-04 Chris Toshok <toshok@ximian.com>
6865 * Form.cs: if the form isn't visible, Close() does nothing.
6867 2006-11-03 Chris Toshok <toshok@ximian.com>
6869 * Form.cs (Close): if the form is modal, don't Dispose of it, only
6871 (WndProc): don't Dispose after handling the WM_CLOSE message.
6873 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
6874 them as such, instead of using casts from Control to Form. Also,
6875 don't Dispose of the modal dialog when we fall out of the loop -
6880 2006-11-03 Chris Toshok <toshok@ximian.com>
6882 * Control.cs (Dispose): only go through the dispose thing if we're
6883 @disposing, and we haven't already been disposed. Fixes bug
6886 * Form.cs: no reason to call "base.Dispose()" here instead of
6889 2006-11-03 Mike Kestner <mkestner@novell.com>
6891 * ComboBox.cs : use ToString instead of casts in AddItem for
6892 sorting functionality. Fixes #79812.
6894 2006-11-03 Chris Toshok <toshok@ximian.com>
6896 * Application.cs: pave the way for actually using the thread
6897 exception dialog. it's ifdefed out at the moment.
6899 2006-11-03 Chris Toshok <toshok@ximian.com>
6901 * ThreadExceptionDialog.cs: until we get a better layout, actually
6902 hide the details textbox and label when we shouldn't see them.
6904 2006-11-03 Jackson Harper <jackson@ximian.com>
6906 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
6907 multiline textboxes anymore. This method also determines the
6908 width/height of a textboxes canvas area.
6909 - Sorta a revert of the last patch. For multiline just position
6910 the controls, then bail. This way the scrollbar width won't be
6913 2006-11-03 Everaldo Canuto <everaldo@simios.org>
6915 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
6916 it dont need. Fixes #79537.
6918 2006-11-02 Jackson Harper <jackson@ximian.com>
6920 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
6921 send the status after firing the DndOver event.
6923 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6925 * TrackBar.cs: Now orientation only switches height / width if
6926 the control's handle is created (Win32 does it like this). Also
6927 fixed a typo in ToString() for a test to pass, changed the
6928 exception thrown in set_LargeChange and set_SmallChange to
6929 match Win32 behaviour, and added TrackBar tests to the unit
6932 2006-11-02 Chris Toshok <toshok@ximian.com>
6934 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
6935 not _NET_WM_STATE_NO_TASKBAR.
6937 2006-11-02 Jackson Harper <jackson@ximian.com>
6939 * TextControl.cs: Increment count by one, since in the update view
6942 2006-11-02 Jackson Harper <jackson@ximian.com>
6944 * TextBoxBase.cs: Use client rectangle not bounds for checking if
6945 the mouse is in the client rectangle (duh).
6947 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6949 * TrackBar.cs: Fixed trackbar jumping around when clicking
6950 on it - the trackbar was not detecting correctly at which
6951 side of the thumb the click was done. (fixes #79718)
6953 2006-11-02 Everaldo Canuto <everaldo@simios.org>
6955 * ListBox.cs: scroll visible area when change SelectedIndex to
6956 a non visible area. Fixes #79481.
6958 2006-11-01 Jackson Harper <jackson@ximian.com>
6960 * TextControl.cs: When replacing the selection move the selection
6961 start/end/anchor to the end of the new text.
6963 2006-11-01 Jackson Harper <jackson@ximian.com>
6965 * XplatUIWin32.cs: When setting the parent change the controls
6966 visibility to it's visibility flag, not to it's old parents
6967 visibility (.Visible walks the parent chain).
6969 2006-11-01 Chris Toshok <toshok@ximian.com>
6971 * XplatUIX11.cs: revert the #79790 fix, as the simple.
6972 XSetTransientForHint fix breaks paint .net's tool windows. more
6973 work needed for that one.
6975 2006-11-01 Chris Toshok <toshok@ximian.com>
6977 * ScrollBar.cs: throw ArgumentException instead of Exception in
6978 LargeChange/SmallChange setters. fixes unit tests.
6980 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
6982 * ContainerControl.cs: reverted rev.67183 (which was itself
6983 a reversion of rev.66853... eh).
6985 * Control.cs: Fixes Reflector hang by changing Focus() call
6986 to what it was before rev.66643 (calling Select() here sets
6987 ActiveControl, which in some situations calls back Focus and
6988 eventually does a stack overflow). Temp fix.
6989 Changes to GetNextControl() to not look for children to select when
6990 parent cannot be selectable (so it looks for siblings instead)
6992 2006-10-31 Mike Kestner <mkestner@novell.com>
6994 * CheckedListBox.cs : off by one error in returned index from
6995 ObjectCollection.Add. Fixes #79758.
6997 2006-10-31 Chris Toshok <toshok@ximian.com>
6999 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
7000 calls for the textbox/spinner, to keep from recursing to the point
7001 where we crash. Fixes #79760.
7003 2006-10-31 Chris Toshok <toshok@ximian.com>
7005 * ListControl.cs (set_SelectedValue): don't throw exceptions on
7006 null/"" value, just return. matches ms's behavior and fixes some
7009 2006-10-31 Chris Toshok <toshok@ximian.com>
7011 * Control.cs (set_Capture): make a logic a little easier to
7014 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
7015 if it's being destroyed. A necessary fix surely, but a bandaid
7016 also, to fix the stuck capture problem in bug #78413.
7018 2006-10-31 Chris Toshok <toshok@ximian.com>
7020 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
7021 convention of clearing hwnd.ClientRect when we set the
7022 width/height (so it'll be recalculated by Hwnd).
7024 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
7026 * ContainerControl.cs: reversed Contains check from
7027 ActiveControl due to hanging problems. This fix
7028 partly regresses #79667 (button does not have
7029 initial focus), so this might be a symptom for
7030 a larger parenting problem (set_ActiveControl
7031 is being called but the child control does
7032 not have the parent set yet?)
7034 2006-10-31 Mike Kestner <mkestner@novell.com>
7036 * MenuAPI.cs : fix keynav when menu is click activated.
7038 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
7040 * ToolStrip*: Version 0.2.
7042 * MenuStrip.cs: Version 0.1.
7044 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
7046 2006-10-30 Chris Toshok <toshok@ximian.com>
7048 [ fixes the oversized notify icon issue in bug #79745 ]
7050 * NotifyIcon.cs: scale the icon down to the size we're given by
7051 the XplatUI layer (this would be faster if we did it once instead
7052 of whenever we paint..) Also, remove the WM_NCPAINT handling,
7053 since it's never invoked.
7055 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
7056 pixels high by default, so let's hardcode our systray icon to that
7057 size. The SYSTEM_TRAY protocol should really have a way for
7058 client apps to query for the correct icon size.. but oh well. A
7059 couple of patches to deal with the screwy client_window ==
7060 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
7061 instance, and also make sure we don't XSelectInput twice).
7063 2006-10-30 Chris Toshok <toshok@ximian.com>
7065 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
7066 recreating forms. Control recreation is the bane of my existence.
7067 Fix it in a way that keeps everyone happy.
7069 2006-10-30 Chris Toshok <toshok@ximian.com>
7071 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
7072 just non-CHILD ones. otherwise sometimes scrollbars end up with
7073 client_windows not being resized to the proper size (ReportBuilder
7074 shows this extremely well).
7076 2006-10-30 Chris Toshok <toshok@ximian.com>
7078 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
7079 for non-WS_EX_APPWINDOW windows. This is what keeps them from
7080 showing up in the gnome taskbar. Fixes bug #79790.
7082 2006-10-30 Chris Toshok <toshok@ximian.com>
7084 * ApplicationContext.cs: guard against a NRE.
7086 * Application.cs: null out the old MainForm for the context, so we
7087 don't try to use it again once it's disposed. Fixes bug #79783.
7089 2006-10-30 Chris Toshok <toshok@ximian.com>
7091 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
7092 BindingContext, set the data source directly, otherwise do the
7093 lazy approach - the actual ListManager will be created when we get
7094 a BindingContext. Fixes bug #79700.
7096 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
7098 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
7099 XplatUIX11.cs: Remove old 2 parameter SetVisible.
7101 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
7103 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
7105 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
7106 of SetVisible that allows a window to be shown, but not activated.
7107 This is needed on Windows for MenuStrip, and can probably be used
7108 with MainMenu and ComboBox to fix the focus stealing issues on
7111 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
7113 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
7115 * PictureBox.cs: Fix the output of the ToString method.
7117 2006-10-29 Chris Toshok <toshok@ximian.com>
7119 * Control.cs (get_TopLevelControl): fix bug #79781.
7121 2006-10-29 Chris Toshok <toshok@ximian.com>
7123 * ListControl.cs (set_DataSource): throw Exception here, not
7124 ArgumentException, to match MS behavior.
7126 2006-10-29 Chris Toshok <toshok@ximian.com>
7128 * Form.cs: remove the try-catch's around calls to GetWindowState.
7129 We can just check the return value.
7131 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
7134 * XplatUI.cs: Add note about additional return value for
7137 2006-10-29 Chris Toshok <toshok@ximian.com>
7139 * Control.cs (CreateHandle): when we create our handle, we also
7140 create the handles of our child controls. Fixes one of the
7141 Control unit tests (CH11).
7143 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
7145 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
7147 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
7149 * ThemeClearlooks.cs: A little speedup.
7151 2006-10-27 Chris Toshok <toshok@ximian.com>
7153 * Control.cs: implement Control.FromChildHandle in a way that
7154 matches the docs (and fixes the failed test.)
7156 2006-10-27 Chris Toshok <toshok@ximian.com>
7158 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
7161 * DataGrid.cs: implement ResetForeColor such that the tests
7164 2006-10-27 Chris Toshok <toshok@ximian.com>
7166 * ToolBarButton.cs: setting text/tooltiptext to null results in it
7167 being set to "". Fixes bug #79759.
7169 2006-10-27 Jackson Harper <jackson@ximian.com>
7171 * TextControl.cs: We need to clear the entire selection area when
7172 setting the start, otherwise multiline selections are still
7175 2006-10-26 Chris Toshok <toshok@ximian.com>
7177 * PropertyGridView.cs:
7179 - ifdef all the code specific to the double
7180 buffer case, and provide some alternatives in the non-doublebuffer
7181 code, which makes heavy use of XplatUI.ScrollWindow to move things
7182 around without having to invalidate (and cause flicker). There
7183 are still some drawing problems in the non-doublebuffered case, so
7184 DOUBLEBUFFER is defined by default.
7186 - Fix the way dropdowns are handled. now we explicitly watch for
7187 the events which might cause the dropdown to close, and break out
7188 of the nested event loop there. This gets rid of all Capture
7189 code, at the expense of the Msg special casing. Seems to work,
7190 though, and fixes bug #79743.
7192 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
7193 * Control.cs: SetIsRecreating now recreates implicitly added
7194 child controls as well. Finally fixes #79629. The flag passed to
7195 SetIsRecreating has also been removed since it wasn't used.
7197 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7199 * PageSetupDialog.cs: Clean some code, fix some bits,
7200 add some checks, and add a printer sub-dialog.
7202 2006-10-26 Chris Toshok <toshok@ximian.com>
7204 * PropertyGrid.cs: make set_SelectedObject call
7205 set_SelectedObjects, and move the duplicate logic to the
7206 SelectedObjects setter. Also, raise SelectedObjectsChanged.
7208 * PropertyGridView.cs: hide the textbox when we get a
7209 SelectedObjectsChanged event.
7213 2006-10-26 Chris Toshok <toshok@ximian.com>
7215 * PropertyGridView.cs: deal with the type converter not supporting
7216 GetStandardValues() or GetStandardValues() returning null, which
7217 is does in the default case. Fixes #79742.
7219 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
7221 * CheckedListBox.cs: nunit no longer crashes when selecting
7222 Project/Edit menu option
7224 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
7226 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
7227 is no menu selected. fixes #79739
7229 2006-10-25 Chris Toshok <toshok@ximian.com>
7231 * PropertyGridView.cs: factor out the splitter invalidation code
7232 into the SplitterPercent setter, and for kicks implement the
7233 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
7234 amount in either direction.
7236 2006-10-25 Chris Toshok <toshok@ximian.com>
7238 * PropertyGridView.cs: do some cleanup of the brush used to draw
7239 text - read only fields should be grayed out. not sure how to do
7240 this with the textbox, though. but the textbox's should also be
7241 readonly now at least. Also, hide/show the textbox when resizing
7244 * CursorConverter.cs: use System.Reflection when getting the
7245 properties of Cursors, as TypeDescriptor.GetProperties isn't
7246 returning static properties.
7248 2006-10-25 Chris Toshok <toshok@ximian.com>
7250 * PropertyGridView.cs: factor out the up/down handling, and reuse
7251 it for page up/down. also add End/Home support.
7253 2006-10-25 Chris Toshok <toshok@ximian.com>
7255 * PropertyGridView.cs:
7257 - ensure the selected grid item is visible in the scrolled area,
7260 - fix Keys.Down handling when you're on the last item in the
7263 2006-10-25 Mike Kestner <mkestner@novell.com>
7265 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
7266 clicks too. Fixes #79725.
7268 2006-10-24 Chris Toshok <toshok@ximian.com>
7270 * PropertyGrid.cs: use property.Converter instead of
7271 TypeDescriptor.GetConverter(property.PropertyType), so we catch
7272 TypeConverters declared on the property as well as on the
7273 PropertyType. Fixes bug #79678.
7275 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
7277 * MimeIcon.cs, Mime.cs:
7278 Fallback to the default platform handler if no shared mime info
7279 stuff exists (fixes #79693).
7281 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
7282 * ContainerControl.cs: Incorrect contains check in ActiveControl
7283 from previous fix (duh).
7285 2006-10-20 Chris Toshok <toshok@ximian.com>
7287 * PropertyGridView.cs: the dropdown should be MIN(number of items
7288 in list, 15). Fixes #79551.
7290 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
7291 Fixes #79384, #79394, #79652, #79667
7294 - Modal windows are now destroyed in the proper order for windows
7296 * ContainerControl.cs:
7298 - ActiveControl setter has more conditions on when to return:
7299 - if we're reselecting the active control, but it actually
7300 didn't have focus (window hidden or some such), it runs
7301 - if the active control being selected doesn't actually
7302 exist in the container, it returns
7306 - The ShowDialog now gets the current form as the owner when
7307 invoking without parameters, and correctly activates the owner
7312 - MessageBox now catches the Escape key to exit
7314 2006-10-20 Chris Toshok <toshok@ximian.com>
7316 * PropertyGridView.cs: fix a number of issues (bug #78565, and
7317 most of bug #79676):
7319 - you can navigate around the property grid with the arrow keys.
7321 - the dropdown is sized properly when the pg has a vertical
7324 - fix the indentation for subentries, and properly select the
7327 - fix the gray bar's drawing (only draw it to the last element,
7328 not for the height of the control. Also make sure we draw that
7329 last horizontal grid line.
7331 - use the same mechanism the datagrid uses wrt the editing textbox
7332 when scrolling/resizing/etc. Namely, we hide it first, do the
7333 operation, then show it again (if it's still visible).
7335 - aggressively remove a lot of unnecessary refreshes (and also
7336 calls to Invalidate(). call more limited variants, and only redraw
7341 - when we're populating the merged collection, fill in the UI
7342 parent with either the passed in item, or the category item we
7345 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
7347 * GridItem.cs: drop some fully qualified names.
7349 * GridEntry.cs: add a "UIParent", which is basically the parent
7352 * GridItemCollection.cs: add an IndexOf method.
7354 2006-10-20 Mike Kestner <mkestner@novell.com>
7356 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
7357 a working win32 NC invalidation mechanism, we can't invalidate
7358 menus. [Fixes #79705]
7360 2006-10-20 Mike Kestner <mkestner@novell.com>
7362 * ListBox.cs : don't update the VScrollbar if the list is empty,
7363 just hide it. [Fixes #79692]
7365 2006-10-20 Jackson Harper <jackson@ximian.com>
7367 * RichTextBox.cs: Handle some special chars better, and don't skip
7368 the entire group when we encounter a special char that we don't
7371 2006-10-18 Chris Toshok <toshok@ximian.com>
7373 * PropertyGridView.cs: address a number of issues from bug #79676,
7374 mostly of the cosmetic variety.
7376 - The highlight rectangle for indented items not extends all the
7379 - Indented items aren't indented so much.
7381 - the dropdown is properly sized width-wise if the pg has a
7384 2006-10-18 Chris Toshok <toshok@ximian.com>
7386 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
7387 systray stuff is rather convoluted to begin with.
7389 systray icons are a single window for some reason (that I haven't
7390 figured out yet), and for them, client_window == whole_window.
7391 Given the way the tests are structured elsewhere to determine
7392 which paints are pending (client vs. nc), that situation will
7393 always yield PAINT, not NCPAINT. So, if we have a pending
7394 nc_expose and no pending expose, remove the hwnd from the paint
7395 queue, and also set nc_expose_pending to false, to keep us from
7396 blocking further expose's adding the hwnd to the paint queue.
7398 phew. like i said, a rather convoluted change. Fixes the
7399 notifyicon repaint issues in bug #79645.
7401 2006-10-18 Chris Toshok <toshok@ximian.com>
7403 * Form.cs: when getting the backcolor of the form, don't get
7404 base.BackColor, as this allows parents to influence the background
7405 color. This breaks mdi forms. Instead, if the background_color
7406 is empty, return the default.
7408 2006-10-18 Chris Toshok <toshok@ximian.com>
7410 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
7411 to being private instead of internal static.
7413 * Control.cs: remove all the stupid ParentWaitingOnRecreation
7414 crap, it wasn't working for more deeply nested controls anyway,
7415 and we already have the is_recreating flag - use that instead.
7416 Before calling DestroyHandle in RecreateHandle, recurse through
7417 the control tree setting it to true. this returns the recreate
7418 code to much of its original simplicity, while now guaranteeing we
7419 actually recreate everything we're supposed to. This change gets
7420 fyireporting actually showing mdi children.
7422 2006-10-17 Chris Toshok <toshok@ximian.com>
7424 * Form.cs: remove some debug spew, and collapse some duplicate
7425 code at the end of SetClientSizeCore.
7428 - add some more debug spew here too wrt Destroy handling.
7429 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
7430 in Control's handling of WM_DESTROY.
7431 - Remove the handling of zombie window DestroyNotifies from the
7432 event loop - we don't need it. Now the only DestroyNotifies we
7433 actually handle are ones generated by X.
7434 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
7435 match gtk's (functioning) handling of this. This keep metacity
7436 from leaving droppings in the form of wm borders with no window
7437 contents all over the place.
7440 - add a bunch of debug spew wrt control recreation.
7441 - fix a bug where we weren't tracking Visible properly on
7443 - fixed the WM_PAINT double buffer handling to support re-entrant
7444 calls (yes, i know it's gross, but it's happening to us).
7446 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7447 * ThemeWin32Classic.cs: changed drawing of selected days
7448 to make them look better.
7450 2006-10-16 Chris Toshok <toshok@ximian.com>
7452 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
7453 drawing_stack. Nuke the ClientDC/NonClientDC properties.
7455 * XplatUIX11.cs: move away from using hwnd.client_dc and
7456 hwnd.non_client_dc and on to a stack of dc's (and in window's
7457 case, PAINTSTRUCT's), so we can deal with nested Paint calls
7458 without puking or not disposing of Graphics objects.
7460 * XplatUIOSX.cs: same.
7462 * XplatUIWin32.cs: same.
7464 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
7466 * FileDialog.cs: Don't call on_directory_changed inside
7467 OnSelectedIndexChanged (it changes the SelectedIndex too).
7468 Instead move it to OnSelectionChangeCommitted.
7470 2006-10-13 Chris Toshok <toshok@ximian.com>
7472 * XplatUIX11.cs: more Destroy work. the current code does the
7473 following things, in order:
7475 1. Enumerates all handles of all controls at or below the one
7476 being destroyed, in pre-order. As it is doing this, it marks the
7477 handles as zombie and clears all references to them.
7479 2. calls XDestroyWindow on the window passed in.
7481 3. SendMessage's WM_DESTROY to all he handles in the accumulated
7484 2006-10-13 Chris Toshok <toshok@ximian.com>
7486 * XplatUIX11.cs: set hwnd.zombie to true before calling
7487 SendMessage (WM_DESTROY). this keeps us from marking the new
7488 window a zombie, and also keeps us from calling sendmessage at
7491 2006-10-13 Jackson Harper <jackson@ximian.com>
7493 * TextControl.cs: Do not show the caret and selection at the same
7494 time. Reduces ugliness by 35%.
7496 2006-10-13 Chris Toshok <toshok@ximian.com>
7498 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
7499 zombie after we do the recursive call, so we actually do call
7500 SendMessage on the children controls.
7501 (GetMessage): if we find a pending paint event for a zombie hwnd,
7502 remove the hwnd from the paint queue, or else it will always be
7503 there (and we'll effectively loop infinitely)
7505 2006-10-13 Mike Kestner <mkestner@novell.com>
7507 * MenuItem.cs : add Selected format under keynav too.
7510 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7512 * PropertyGrid.cs: Fixed some NRE's and small difference between our
7513 implementation and that of MS.
7515 2006-10-13 Chris Toshok <toshok@ximian.com>
7517 * Control.cs (OnInvalidated) only futz with the invalid_region if
7518 the control is double buffered. this fixes the apparent hang in
7519 the ListView unit tests. Someone needs to make the
7520 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
7522 2006-10-13 Chris Toshok <toshok@ximian.com>
7524 * PropertyGridView.cs:
7526 - do a little refactoring so that only one place calls
7527 dropdown_form.Hide, and that is CloseDropDown. make everywhere
7528 else call that. Also make it Refresh, since there are redraw bugs
7529 otherwise (we should take a look at that...)
7531 - do a little more refactoring work to share the body of code
7532 involved with the drop down. it was duplicated in the code
7533 dealing with the listbox handling and in the code dealing with the
7536 - add a Capture to the dropdown form's control once it's
7537 displayed, and add a MouseDown handler that checks to make sure
7538 the position is inside the control. If it's not, close the
7539 dropdown. This fixes #78190.
7541 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
7542 if the value is different than the initial value.
7544 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
7546 * Control.cs: see #78650
7547 - Fixed GetNextControl for several cases:
7548 - Changed FindFlatForward to return
7549 correct sibling control when more than one
7550 control has same TabIndex as the currently
7552 - Changed FindFlatBackward to loop children
7553 from last to first and apply same logic as in
7555 - Changed FindControlForward to search for
7556 children when control is not a container
7557 but has children, or search for siblings if
7558 control is a container...
7559 - Changed FindControlBackward to continue
7560 searching for child controls when hitting
7563 - Fixed Focus method to update ActiveControl
7564 (FocusTest.FocusSetsActive failure)
7567 - Focus rectangle now refreshes when gaining
7569 - Removed grab for Tab key on IsInputKey that
7570 was keeping tab navigation from working (#78650)
7572 2006-10-13 Chris Toshok <toshok@ximian.com>
7574 * PropertyGridView.cs:
7575 - Rewrite SetPropertyValue to loop over SelectedGridItem's
7578 - Deal with GridItem.Value == null a few places.
7581 - replace the PopulateGridItemCollection with a pair of methods
7582 which compute the intersection of all the properties in the
7583 SelectedObjects array. Fixes #79615.
7585 - Throw ArgumentException from set_SelectedObjects if there's a
7588 - Add GetTarget method which can be used to traverse up the
7589 GridItem.Parent chain. It depends on the assumption that
7590 selected_objects for different GridEntries are always in the same
7591 order (a safe assumption). Use this method and loop over all the
7592 selected objects in the entry when calling RemoveValueChanged and
7595 * GridEntry.cs: Make this handle multiple selected objects.
7596 .Value returns null if not all the selected objects share the same
7599 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
7600 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
7601 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
7602 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
7603 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
7604 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
7605 add additional functionality.
7607 2006-10-12 Mike Kestner <mkestner@novell.com>
7609 * ErrorProvider.cs : new ToolTipWindow ctor sig.
7610 * HelpProvider.cs : new ToolTipWindow ctor sig.
7611 * ToolTip.cs : remove ToolTip param from Window sig since it is
7613 * ToolBar.cs : add tooltip support. Fixes #79565.
7615 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7617 * ComboBox.cs: move the events in set_SelectedIndex to
7618 after the call to HighlightIndex in order to avoid
7619 possible recursion and subsequent problems with the call
7620 to HighlightIndex and include a range check in
7621 set_HighlightIndex. Fixes #79588
7623 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7625 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
7626 to ui thread's settings instead of sunday.
7627 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
7629 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7633 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
7634 and implement missing functionality (selecting different parts
7635 of the date and edit them individually with the keyboard).
7637 2006-10-11 Chris Toshok <toshok@ximian.com>
7639 * Control.cs (OnInvalidated): fix NRE relating to last change.
7641 2006-10-11 Chris Toshok <toshok@ximian.com>
7643 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
7644 atoms in _NET_WM_STATE here if the window is maximized. We need
7645 to do this because we're *replacing* the existing _NET_WM_STATE
7646 property, so those atoms will be lost otherwise, and any further
7647 call to GetWindowState will return Normal for a window which is
7648 actually maximized. Fixes #79338.
7650 2006-10-11 Jackson Harper <jackson@ximian.com>
7652 * TextControl.cs: Special case for setting selection end to
7653 selection start, we basically kill the anchor.
7654 - some todo comments.
7656 2006-10-11 Chris Toshok <toshok@ximian.com>
7658 * Control.cs: switch to using an "invalid_region" to track which
7659 parts of the image buffer need updating. This is more code than
7660 the simple fix from r66532. That version just attempted to always
7661 fill the entire buffer on redraw, which turns out to be
7662 inefficient when invalidating small rectangles. This version
7663 simply adds the invalid rectangle to the invalid region. When we
7664 get any WM_PAINT message we see if it can be filled using the
7665 image buffer, and if it can't (if the paint event's clip rectangle
7666 is visible in the invalid region) we first fill the image buffer.
7667 So, the image buffer is still a cache, we just fill it lazily.
7669 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
7672 2006-10-11 Chris Toshok <toshok@ximian.com>
7674 * XplatUIX11.cs (SetWindowPos): we need to update both position as
7675 well as size after calling XMoveResizeWindow. This keeps us from
7676 ignoring future SetWindowPos calls. Fixes the disappearing
7677 DateTimePicker in the ToolBarDockExample from bug #72499.
7679 2006-10-11 Chris Toshok <toshok@ximian.com>
7681 * TextBoxBase.cs: reorder things a bit when it comes to
7682 resizing-causing-recalculation. we were recalculating the
7683 document when our position was changed, which shouldn't happen.
7684 We only care about size changes. Clear up some more redundant
7685 recalculation calls while I'm at it. This makes the toolbar dock
7686 example snappy when you're just dragging toolbars around (since it
7687 causes a relayout whenever you move one.)
7689 2006-10-11 Chris Toshok <toshok@ximian.com>
7691 * ToolBarButton.cs (get_Rectangle): this only returns
7692 Rectangle.Empty if Visible == false, or Parent == null.
7693 Parent.Visible doesn't matter.
7695 2006-10-10 Chris Toshok <toshok@ximian.com>
7697 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
7698 by .net 1.1, so switch to an internal method instead.
7700 2006-10-10 Chris Toshok <toshok@ximian.com>
7702 * Control.cs (WM_PAINT): when a control is double buffered we draw
7703 initially to the ImageBuffer and then copy from there. But when a
7704 parent control which has child controls is double buffered, the
7705 initial drawing doesn't encompass the entire ClientRectangle of
7706 the parent control, so we end up with uninitialized bits (this is
7707 easily seen by dragging the top toolbar in
7708 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
7709 manually set the ClipRectangle of the paint_event (only the one we
7710 use to populate the ImageBuffer) to ClientRectangle. Fixes more
7711 of the nastiness in bug #72499.
7713 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
7714 which we use in Control.cs's WM_PAINT handling.
7716 2006-10-10 Jackson Harper <jackson@ximian.com>
7718 * TextBoxBase.cs: Finish off the autoscrolling stuff.
7720 2006-10-10 Chris Toshok <toshok@ximian.com>
7722 * Cursor.cs: Apply a slightly different patch to the one suggested
7725 2006-10-10 Jackson Harper <jackson@ximian.com>
7727 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
7728 not the parent form.
7729 * TextControl.cs: use difference in old line count vs new count to
7730 calculate how many lines were added, this takes into account soft
7731 line breaks properly.
7733 2006-10-10 Chris Toshok <toshok@ximian.com>
7735 * LinkLabel.cs: don't call MeasureCharacterRanges against a
7736 rectangle located at 0,0 and the size of the text. Use
7737 ClientRectangle instead. This fixes rendering of non-left aligned
7740 2006-10-10 Jackson Harper <jackson@ximian.com>
7742 * TextBoxBase.cs: When we set the selection start position the
7744 * TextControl.cs: Need to update the caret when we decrement it to
7746 - Make sure that the selection_visible flag gets reset to false if
7747 the selection isn't visible. Before this you could get it set to
7748 visible by changing the selection start, then changing the end to
7751 2006-10-09 Jackson Harper <jackson@ximian.com>
7753 * TreeView.cs: Don't update scrollbars when we aren't visible.
7754 * TreeNodeCollection.cs: Only need to update scrollbars if being
7755 added to an expanded visible node or the root node.
7757 2006-10-09 Chris Toshok <toshok@ximian.com>
7759 * XplatUIX11.cs (SendMessage): fix NRE.
7761 2006-10-09 Jackson Harper <jackson@ximian.com>
7763 * TextBoxBase.cs: Implement horizontal autoscrolling.
7764 * TextControl.cs: Add a movement types that allows moving forward
7765 and backwards without wrapping.
7767 2006-10-09 Mike Kestner <mkestner@novell.com>
7769 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
7770 with focus "expansion" of labels. Fixes #79532 and then some.
7771 * ThemeWin32Classic.cs : add LineLimit to ListView label format
7774 2006-10-09 Jackson Harper <jackson@ximian.com>
7776 * TextBoxBase.cs: Set the default max values to MaxValue since
7777 we use the scrollbar for autoscrolling and the default value is
7778 100. If we don't do this the caret won't keep up with typing
7779 after about 18 characters.
7780 * TextControl.cs: Make sure the selection is offset by the
7781 viewport x. This fixes selection when using auto scrolling.
7783 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
7785 * Form.cs: The active control should be selected after the
7786 OnLoad so that any child control initialization that affects
7787 the selection is done. Fixes #79406
7789 2006-10-06 Chris Toshok <toshok@ximian.com>
7791 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
7792 to have no evil effects.
7794 - Stop selecting StructureNotifyMask on non-toplevel windows.
7796 The only way children should be resized is by using the SWF api,
7797 and we already send WM_WINDOWPOSCHANGED messages in those cases.
7798 Toplevel windows can be interacted with via the window manager,
7799 and so we keep the input mask there.
7801 The other event StructureNotifyMask gives us (that we care
7802 about) is DestroyNotify. The code is already structured such
7803 that it assumes we won't be getting a DestroyNotify event for
7804 the window we pass to XDestroyWindow (which is what
7805 StructureNotifyMask is supposed to guarantee.) So, that code
7806 shouldn't be affected by this either.
7808 - Stop selecting VisibilityChangeMask altogether.
7810 We weren't doing anything with the resulting events anyway.
7812 This vastly reduces the number of X requests and events we see
7813 when resizing/laying out a large ui.
7815 2006-10-06 Chris Toshok <toshok@ximian.com>
7817 * ScrollableControl.cs (DisplayRectangle): we need to take into
7818 account the DockPadding regardless of whether or not auto_scroll
7819 == true. rework this slightly to this effect, and fix bug #79606,
7820 and part of #72499 (you can now see the drag handles and drag
7823 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
7825 * ListViewItem.cs: Collections of selected and checked items are now
7826 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
7827 we mark the collection "dirty".
7828 * ListView.cs: Marked collections readonly. Modified UpdateSelection
7829 to only clear SelectedItems when a new item is selected and MultiSelect
7830 is enabled. CheckedItems and SelectedItems now subscribe to Changed
7831 event of ListViewItemCollection, and mark its list dirty whenever
7832 that event is fire. This allows us to return selected/checked items
7833 in the same order as they are in the Items collection. This matches
7836 2006-10-06 Chris Toshok <toshok@ximian.com>
7838 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
7839 right mouse clicks. Fixes bug #79593.
7841 2006-10-06 Chris Toshok <toshok@ximian.com>
7843 * Splitter.cs: doh, fix splitters that don't want to cancel the
7844 movement when you drag them. Also, impose the limits on the
7845 values we send to the SplitterMovingEvent. Fixes #79598.
7847 2006-10-06 Jackson Harper <jackson@ximian.com>
7849 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
7850 since we use this for auto scrolling also.
7852 2006-10-05 Chris Toshok <toshok@ximian.com>
7854 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
7855 beginning to think that most datagrid column types don't need this
7856 method. Fixes bug #79392.
7858 2006-10-05 Chris Toshok <toshok@ximian.com>
7860 * DataGrid.cs: move back to a more lazy scheme for creating the
7861 CurrencyManager, so we aren't updating it every time you set
7862 either DataSource or DataMember. Also, don't call
7863 RecreateDataGridRows if the currency manager hasn't changed.
7865 2006-10-05 Chris Toshok <toshok@ximian.com>
7867 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
7868 emitted, SelectedIndex should already be updated. Fixes bug
7871 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
7873 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
7874 ToolStripTextBox.cs: Initial commit.
7875 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
7877 2006-10-05 Jackson Harper <jackson@ximian.com>
7879 * TabControl.cs: We need to invalidate the tab control area when
7880 new ones are added (duh).
7882 2006-10-03 Chris Toshok <toshok@ximian.com>
7884 * Form.cs (ProcessDialogKey): if the focused control is in this
7885 form and is a button, call its PerformClick method here. Fixes
7888 2006-10-04 Jackson Harper <jackson@ximian.com>
7890 * TabPage.cs: Ignore setting of Visible, and add an internal
7891 method for setting the controls visibility. TabPage's Visible
7892 property is a little strange on MS, this seems to make us
7893 compatible, and fixes cases where people set all the tab pages to
7895 * TabControl.cs: Use the new internal setting on tab pages
7898 2006-10-03 Mike Kestner <mkestner@novell.com>
7900 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
7902 2006-10-03 Mike Kestner <mkestner@novell.com>
7904 * ListView.cs : use is_visible instead of Visible to check if
7905 scrollbars should be placed/sized. Also some max_wrap_width
7906 love for LargeIcon view. [Fixes #79533]
7908 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
7911 Make set_TextAlign() do actually update the align. Fixed #78403.
7913 2006-10-03 Chris Toshok <toshok@ximian.com>
7915 * DataGrid.cs: fix a crash when switching datasources if the
7916 vertical scrollbar is at someplace other than Value = 0. Also,
7917 reduce the number of recalculation passes we do in SetDataSource
7920 2006-10-03 Jackson Harper <jackson@ximian.com>
7922 * TextBoxBase.cs: Move the if value the same bail check up, we
7923 don't want to empty the document if it is already empty, this
7924 seems to severly mess up the caret. TODO: I should probably fix
7925 the empty statement to update teh caret somehow.
7927 2006-10-03 Chris Toshok <toshok@ximian.com>
7929 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
7930 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
7931 reflection, an internal row type, properties on said type, etc.)
7932 will work with our datagrid. Fixes #79531.
7934 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
7936 * FileDialog.cs: Don't crash if a path is not accessible
7937 (System.UnauthorizedAccessException). Fixes #79569.
7938 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
7939 a ':' too. Return unknown icon for those paths/files.
7941 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
7943 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
7944 GetContainerControl returns null.
7946 2006-10-02 Chris Toshok <toshok@ximian.com>
7948 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
7949 call to XGetWindowAttributes instead of "handle". fixes an X
7950 error using notifyicon after the NotifyIconWindow to Form base
7953 2006-10-02 Chris Toshok <toshok@ximian.com>
7955 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
7956 server grab and looping we need to do to get down to the most
7957 deeply nested child window.
7958 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
7959 QueryPointer again after the WarpPointer so we can generate a
7960 proper (fake) MotionNotify event to be enqueued in the destination
7962 (GetCursorPos): call QueryPointer.
7966 2006-10-02 Jackson Harper <jackson@ximian.com>
7968 * NotifyIcon.cs: Derive the notify icon from a form, so things
7969 like FindForm work on it.
7970 - Swallow the WM_CONTEXTMENU message, since that is generated on
7971 mouse down, and context menu is a mouse up kinda guy. I believe
7972 the correct fix here is probably to make the notify icon entirely
7973 NC area, but this seems to work fine for anyone not manipulating
7976 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
7978 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
7979 ToolStripItemCollection.cs, ToolStripLabel.cs,
7980 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
7981 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
7982 Initial implementation.
7983 * TextRenderer.cs: Provide padding to MeasureText.
7985 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
7987 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
7988 of ButtonBaseAccessibleObject. Fix bug #79552.
7990 2006-10-02 Jackson Harper <jackson@ximian.com>
7992 * MdiWindowManager.cs: When maximizing use the containers client
7993 rect, not it's bounds, so nc area is accounted correctly.
7994 - Use the parent form's size for the menu position, since the
7995 client isn't always the full form size.
7997 2006-10-01 Chris Toshok <toshok@ximian.com>
7999 * ScrollableControl.cs: make sure neither right_edge or
8000 bottom_edge are < 0, since they're used as LargeChange for the
8001 horiz/vert scrollbars respectively. Fixes #79539.
8003 2006-10-01 Chris Toshok <toshok@ximian.com>
8005 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
8006 the xplatuix11 code can cause us to destroy/recreate our handle.
8010 - this code can be invoked many times for the same Hwnd. Make
8011 sure we only destroy the client window once (the first time this
8012 method is called). This fixes bug #79544.
8013 - Remove the call to the improperly bound XSync. why we had two
8014 bindings to this, I will never know, but this call resulted in
8015 events being discarded from the queue(!).
8016 - correct a misunderstanding of _XEMBED_INFO - the second atom is
8017 not our current state but the state we wish to be in. So, 0 if
8018 we don't want to be mapped. Change it to 1.
8019 (SystrayRemove): The XEMBED spec makes mention of the fact that
8020 gtk doesn't support the reparent of client windows away from the
8021 embedder. Looking at gtksocket-x11.c seems to agree with this.
8022 The only avenue we have for removing systray icons is to destroy
8023 them. We don't want the handle to go away for good, though, so
8024 call InternalRecreateHandle on the NotifyIconWindow. Fixes
8027 2006-10-01 Chris Toshok <toshok@ximian.com>
8029 * Form.cs (WndProc): inline the native_enabled variable usage into
8030 the cases in which it's used. Fixes #79536.
8032 2006-09-29 Mike Kestner <mkestner@novell.com>
8034 * ListView.cs : toggle the selection state for ctrl clicks in
8035 multiselect mode. [Fixes #79417]
8037 2006-09-29 Mike Kestner <mkestner@novell.com>
8039 * ListView.cs : kill CanMultiSelect and refactor the selection
8040 code to support multiselection in the absence of mod keys. Steal
8041 arrow/home/end keys by overriding InternalPreProcessMessage to
8042 restore regressed keynav behavior.
8045 2006-09-29 Jackson Harper <jackson@ximian.com>
8047 * MdiClient.cs: Repaint the titlebars when the active window is
8050 2006-09-29 Chris Toshok <toshok@ximian.com>
8052 * Application.cs: when entering a runloop with a modal, make sure
8053 the hwnd is enabled. Fixes #79480.
8055 2006-09-29 Chris Toshok <toshok@ximian.com>
8057 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
8058 when ListManager.CanAddRows == false, bump us back one.
8060 * DataGridColumnStyle.cs (ParentReadOnly): remove the
8061 listmanager.CanAddRows check. This makes ArrayLists uneditable
8062 using a datagrid, which is not right.
8063 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
8064 is an IEditable, but call property_descriptor.SetValue regardless.
8067 2006-09-29 Chris Toshok <toshok@ximian.com>
8069 * DataGridBoolColumn.cs: we need to test equality in the face of
8070 possible null values (as is the case with the default NullValue).
8071 This patch keeps us from crashing in that case.
8073 2006-09-29 Jackson Harper <jackson@ximian.com>
8075 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
8076 here, since it will get called for every node collection in the
8077 tree. This is now done in the treeview once the sorting is
8079 * TreeView.cs: Recalculate the visible order, and update the
8080 scrollbars after sorting, set the top nope to the root so that the
8081 recalc actually works.
8083 2006-09-29 Chris Toshok <toshok@ximian.com>
8085 * LinkLabel.cs: more handling of the default link collection in
8086 the face of LinkArea manipulation. The default link collection
8087 contains 1 element (start=0,length=-1). If the user sets LinkArea
8088 to anything and the links collection is the default, clear it.
8089 Then only add the link if its nonempty. Fixes #79518.
8091 2006-09-29 Chris Toshok <toshok@ximian.com>
8093 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
8094 piece correctly when we hit a '\n'. Fixes #79517.
8096 2006-09-29 Chris Toshok <toshok@ximian.com>
8098 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
8099 change the binding of gdk_init_check to take two IntPtr's, and
8100 pass IntPtr.Zero for both of them. Fixes #79520.
8102 2006-09-29 Mike Kestner <mkestner@novell.com>
8104 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
8107 2006-09-28 Jackson Harper <jackson@ximian.com>
8109 * XplatUIX11.cs: When translating NC messages make sure we go from
8110 whole window to screen, not client window to screen.
8111 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
8112 method doesn't exist
8113 - Skip over controls that aren't forms when arranging.
8115 2006-09-28 Jackson Harper <jackson@ximian.com>
8117 * XplatUIWin32.cs: Clip the rect to the parent window.
8118 * XplatUIStructs.cs: Add clipping modes struct.
8119 * InternalWindowManager.cs: New private method that factors title
8120 bar heights in when calculating the pos of an NC mouse message.
8121 - Use SendMessage to force a paint when the form's size is changed
8122 instead of painting the decorations immediately.
8123 - Don't let the NC button click messages get to DefWndProc,
8124 because they will attempt to handle windowing themself, and this
8125 messes up z-order (it will put them in front of the scrollbars).
8126 * XplatUIX11.cs: Make sure that we don't reset window managers if
8127 we already have one (ie the window is an MDI window).
8129 2006-09-28 Chris Toshok <toshok@ximian.com>
8131 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
8132 menu code really needs going over.
8134 2006-09-27 Chris Toshok <toshok@ximian.com>
8136 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
8137 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
8138 window is maximizable. So, we need to make sure that even if we
8139 clear the border/wm frame of those functions, they're still
8140 available (basically, we remove the decoration without removing
8141 the function). Half the fix for #79338.
8143 2006-09-27 Chris Toshok <toshok@ximian.com>
8145 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
8148 2006-09-27 Chris Toshok <toshok@ximian.com>
8150 * Splitter.cs: reorder things a bit so that we don't actually
8151 draw/move the splitter until after calling OnSplitterMoving. This
8152 lets users cancel/disallow the movement by explicitly setting
8153 event.SplitX/SplitY. Fixes #79372.
8155 2006-09-27 Jackson Harper <jackson@ximian.com>
8157 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
8158 because it is most likely on a window being destroyed, and that
8159 will give us an X11 error.
8161 2006-09-27 Chris Toshok <toshok@ximian.com>
8163 * PropertyGridView.cs: half of the fix for #78190. Clicking on
8164 the dropdown button now toggles between showing and hiding the
8165 dropdown. Also, get rid of dropdown_form_showing and just use
8166 dropdown_form.Visible. We still don't do a grab, but I'll leave
8167 that part to someone who has handled Capture-fu before.
8169 2006-09-27 Chris Toshok <toshok@ximian.com>
8171 * DataGrid.cs: return false if alt isn't pressed when '0' is
8172 pressed. this keeps the '0' key from being swallowed, and fixes
8175 2006-09-27 Chris Toshok <toshok@ximian.com>
8177 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
8178 Calling Refresh (in response to a scrollbar event) screws up the
8179 scrollbar painting. Fixes bug #78923.
8181 2006-09-27 Chris Toshok <toshok@ximian.com>
8183 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
8184 then insert into hashtable" blocks threadsafe.
8186 2006-09-27 Chris Toshok <toshok@ximian.com>
8188 * MessageBox.cs (CreateParams): the styles should be |'ed with our
8189 baseclass's, since otherwise the
8190 ControlBox/MinimizeBox/MaximizeBox assignments above have no
8191 effect. This gets the close button back in messageboxes.
8193 2006-09-27 Chris Toshok <toshok@ximian.com>
8195 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
8196 flag, not just != 0. this makes flags that are actually multiple
8197 bits (like WS_CAPTION) work. fixes bug #79508.
8199 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
8201 * PageSetupDialog.cs: add support for getting and settings the
8202 paper size, source and orientation.
8204 2006-09-26 Chris Toshok <toshok@ximian.com>
8206 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
8207 and caption == "", we need to remove the resize handles as well as
8210 * Control.cs (set_Text): turns out that setting Text on a form
8211 should change the WM styles on the window, since if ControlBox ==
8212 false, the only way to get a window border is to have a non-""
8213 Text property. check winforms/forms/text.cs for an example. so,
8214 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
8215 update both window styles and title. This fixes a lot of dialogs
8216 (including the preferences dialog in MonoCalendar.)
8218 2006-09-26 Chris Toshok <toshok@ximian.com>
8220 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
8221 control isn't a Form), call Win32ShowWindow to hide the window,
8222 but don't update the control Visible property. When we reparent
8223 back to a parent control, call SetVisible in order for the
8224 window's visibility to be reinstated.
8226 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
8229 * Control.cs (ControlCollection.Remove): remove that value.Hide()
8230 call for good, since it breaks MonoCalendar (and other things I'm
8231 sure.) Also, set all_controls to null *after* the owner calls,
8232 which end up regenerating it.
8233 (ChangeParent): allow new_parent to be == null, passing
8234 IntPtr.Zero down to XplatUI.
8236 this fixes #79294 the right way.
8238 2006-09-26 Mike Kestner <mkestner@novell.com>
8240 * GridEntry.cs : internal SetParent method.
8241 * PropertyGrid.cs : attach to property changed on the proper
8242 target if we have a hierarchical grid with subobjects. Setup
8243 GridItem.Parent for hierarchical items.
8244 * PropertyGridView.cs : Set value on the correct target for
8245 hierarchical grids. [Fixes #78903]
8247 2006-09-26 Chris Toshok <toshok@ximian.com>
8249 * Control.cs (ChildNeedsRecreating): this should return true if
8250 either we're being recreated and the child is in our list, or our
8251 parent is waiting for our recreation.
8253 2006-09-26 Chris Toshok <toshok@ximian.com>
8255 * Control.cs (ControlCollection.Remove): reinstate the
8256 value.Hide() call as suggested in bug #79294.
8258 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
8260 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
8261 coordinates (versus a relative move).
8263 2006-09-26 Chris Toshok <toshok@ximian.com>
8265 * Control.cs: rework child recreation a little bit. It turns out
8266 that we race between the DestroyNotify the WM_DESTROY message. If
8267 the parent gets its DestroyNotify before the child gets the
8268 WM_DESTROY message, the child ends up not recreating (since the
8269 parent finishes its recreation on DestroyNotify, and the child
8270 checks ParentIsRecreating.)
8272 So, instead we store off a list of all the child controls which
8273 need to be recreated when the parent control starts to recreate
8274 itself. Then, when child controls get their WM_DESTROY message we
8275 check to see if they're in the parent's pending recreation list,
8276 and if so, we recreate. This removes all dependency on ordering
8277 from the code and fixes the initial MonoCalendar upgrade dialog.
8279 2006-09-26 Jackson Harper <jackson@ximian.com>
8281 * TextControl.cs: Use the Line to get the length of the line,
8282 since soft line breaks can change the end line.
8284 2006-09-26 Chris Toshok <toshok@ximian.com>
8286 * Control.cs (ControlCollection.AddImplicit): don't add the
8287 control again if it's already in one of our lists. This keeps us
8288 from adding controls over and over again for comboboxes when their
8289 handle gets recreated (as the combobox adds implicit controls in
8290 OnHandleCreated). Fixes the X11 errors in bug #79480.
8292 2006-09-26 Jackson Harper <jackson@ximian.com>
8294 * TextControl.cs: When deleting characters make sure that any
8295 orphaned zero lengthed tags get deleted.
8296 - Fix ToString for zero lengthed tags.
8298 2006-09-25 Jackson Harper <jackson@ximian.com>
8300 * TextControl.cs: When getting a tag at the location there can be
8301 multiple tags at the same spot, these are 0-lengthed tags that
8302 appear when extra formatting has been stuck in a location. We
8303 need to pull out the last of these 0 lengthed tags.
8305 2006-09-25 Jackson Harper <jackson@ximian.com>
8307 * TextControl.cs: Fix print out in debug method.
8308 * TextBoxBase.cs: When text is set bail if we are setting to the
8311 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
8313 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
8314 It is now possible to change the selected index in a FontXXXListBox
8315 with the up and down arrow keys from the FontXXXTextBoxes.
8316 Also, send the FontXXXTextBox mouse wheel event to the corresponding
8317 FontXXXListBoxes to match ms.
8319 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
8321 * SystemInformation.cs: Return a clone of the theme's MenuFont because
8322 anyone can dispose it, anytime. All other properties returns enums,
8323 structs or basic types so they don't need such tricks.
8325 2006-09-22 Jackson Harper <jackson@ximian.com>
8332 * XplatUIDriver.cs: Update interface to add a primary selection
8333 flag, so the driver can use the primary selection buffer if
8335 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
8337 * RichTextBox.cs: We need to supply the data object to paste now
8338 (so we can choose to supply CLIPBOARD or PRIMARY).
8339 * TextBoxBase.cs: Supply data object to paste (see above).
8340 - Middle click uses the primary selection data object.
8342 2006-09-21 Chris Toshok <toshok@ximian.com>
8344 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
8345 of SetWMStyles. It's still a rat's nest and is largely
8346 order-dependent which I dislike immensely. This also fixes the X
8347 button disappearing from toplevel forms.
8349 2006-09-21 Mike Kestner <mkestner@novell.com>
8351 * ListBox.cs: move Jordi's click/dblclick raising code to the
8354 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
8356 * ListBox.cs: Fixes 79450
8358 2006-09-21 Mike Kestner <mkestner@novell.com>
8360 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
8361 to deal with people updating the TreeNodeCollection after the tree
8362 is disposed. "Fixes" 79330.
8364 2006-09-20 Jackson Harper <jackson@ximian.com>
8366 * TextControl.cs: Push the cursor record onto the undo stack
8367 before the delete action. This fixes 78651.
8369 2006-09-20 Jonathan Chambers <joncham@gmail.com>
8371 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
8372 CreateParams. Fixes 79329.
8374 2006-09-19 Chris Toshok <toshok@ximian.com>
8376 * XplatUIX11.cs: a couple of blanket code massage passes to clean
8377 things up a bit. First, get rid of the NetAtoms array (and the NA
8378 enum), and just embed the atoms as static fields. Also, add a
8379 couple of functions (StyleSet and ExStyleSet) to clean up all the
8380 bitmask testing of styles.
8382 * X11Structs.cs: remove the NA enum, not needed anymore.
8384 2006-09-19 Chris Toshok <toshok@ximian.com>
8386 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
8387 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
8388 added cleanup to get MessageBox titles appearing again, which were
8389 broken by my earlier fix for caption-less/ControlBox-less windows.
8391 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
8393 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
8394 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
8395 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
8396 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
8397 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
8398 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
8399 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
8400 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
8401 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
8402 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
8403 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
8405 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
8406 ToolStripButton.cs: Stubs needed for above.
8407 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
8409 2006-09-15 Chris Toshok <toshok@ximian.com>
8412 - make the MessageQueues hashtable Synchronized.
8414 - SendMessage: if the Hwnd is owned by a different thread, use the
8415 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
8416 thread. Fixes bug #79201.
8418 2006-09-15 Chris Toshok <toshok@ximian.com>
8420 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
8421 ControlBox == false, we disallow maximize/minimize/close. If the
8422 form Caption is "" we also disallow move (and get rid of the Title
8423 decoration). Unfortunately, regardless of how things are set,
8424 we're stuck with the Title and WM menu.
8426 2006-09-15 Chris Toshok <toshok@ximian.com>
8428 * Application.cs: add locking around the static message_filters
8429 ArrayList, part of #79196.
8431 2006-09-15 Chris Toshok <toshok@ximian.com>
8433 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
8434 Form.ControlBox == false, the window has no titlebar nor resize
8435 handles. fixes bug #79368.
8437 2006-09-15 Chris Toshok <toshok@ximian.com>
8439 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
8440 >= 0. Fixes bug #79370.
8442 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
8443 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
8445 Add properties: LayoutEngine, Margin, DefaultMargin.
8446 Add method: GetPreferredSize.
8447 Move layout logic from PerformLayout to layout engines.
8449 2006-09-13 Chris Toshok <toshok@ximian.com>
8451 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
8452 fix for #79326 broke #78718, so this change addresses that.
8454 - in SendWMDestroyMessages remove the call to
8455 CleanupCachedWindows, since we might be recreating the control and
8456 need to maintain the references to right Hwnd handles. Also, set
8457 the zombie flag to true for each of the children in the hierarchy
8458 instead of calling hwnd.Dispose. This will cause GetMessage to
8459 ignore all events for the window except for DestroyNotify.
8461 - In GetMessage, ignore messages except for DestroyNotify for
8464 * Control.cs: revert the is_recreating fix from the last
8465 ChangeLog. It's definitely "right", but it breaks switching from
8466 an MDI form to a non-MDI form. Will need to revisit that.
8468 * Hwnd.cs: add a zombie flag, which means "the
8469 client_window/whole_window handles are invalid, but we're waiting
8470 for the DestroyNotify event to come in for them". Set the flag to
8471 false explicitly if setting WholeWindow/ClientWindow, and also
8474 2006-09-13 Chris Toshok <toshok@ximian.com>
8476 * XplatUIX11.cs: rework window destruction slightly.
8478 - when destroying the windows associated with a control, we don't
8479 need 2 separate XDestroyWindow calls. Just the one for the
8480 whole_window (or for client_window if whole_window is somehow
8481 IntPtr.Zero -- can this happen?) is enough.
8483 - reworked SendWMDestroyMessages slightly, so we always dispose
8484 the child control hwnd's after sending the messages.
8486 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
8487 the two places it was used (one was even using hwnd.Handle and the
8488 other hwnd.client_window. ugh), adding another call in
8489 SendWMDestroyMessages. We need this new call because now the
8490 DestroyNotify events in the queue will be ignored for the child
8491 controls (as their hwnd's were disposed, and the window id's
8492 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
8494 - this fixes bug #79326.
8496 2006-09-13 Chris Toshok <toshok@ximian.com>
8498 * Control.cs: don't always set is_recreating to false at the end
8499 of RecreateHandle, since sometimes we're not done (and won't be
8500 until WndProc handles the WM_DESTROY message). Also, set
8501 is_recreating to false in the WM_DESTROY handling code. Part of
8502 the fix for bug #79326.
8504 2006-09-13 Miguel de Icaza <miguel@novell.com>
8506 * X11DesktopColors.cs: Start the droppage of debugging messages.
8508 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
8510 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
8512 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
8514 2006-09-12 Chris Toshok <toshok@ximian.com>
8516 * DataGrid.cs (get_ListManager): if the list_manager is null, try
8517 to create it using SetDataSource. Fixes bug #79151.
8519 2006-09-11 Chris Toshok <toshok@ximian.com>
8521 * XEventQueue.cs: add a DispatchIdle property.
8523 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
8524 either the queue is null, or the queue has DispatchIdle set to
8526 (DoEvents): set queue.DispatchIdle to false around the
8527 peek/translate/dispatch message loop in this method. This keeps
8528 Application.Doevents from emitting idle events. Part of the fix
8531 2006-09-11 Chris Toshok <toshok@ximian.com>
8533 * DataGrid.cs (set_DataSource): make this work for both the
8534 winforms/datagrid test and ReportBuilder. It seems as though when
8535 we've created a ListManager (or maybe it's if we have a
8536 BindingContext?), when we set the DataSource it clears the
8537 DataMember to "". otherwise we reuse the datamember. Fixes bug
8540 2006-09-11 Chris Toshok <toshok@ximian.com>
8542 * XplatUIX11.cs: deal with queue being null, which happens in all
8543 the Clipboard functions. Fixes one of the two problems mentioned
8546 2006-09-11 Chris Toshok <toshok@ximian.com>
8548 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
8549 button on various spots (including outside the menu) works closer
8550 to MS, and doesn't crash. Fixes #79343.
8552 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
8554 * ListView.cs: Do not initialize item_sorter in init. To match MS,
8555 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
8556 and the internal comparer is set. When a new ListViewItemSorter is set,
8557 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
8558 was specified. No further processing is necessary if SortOrder is set
8559 to it's current value. If Sorting is modified to None, and View is
8560 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
8561 (either custom or our internal ItemComparer) to null, on 1.0 profile
8562 only set item_sorter to null if its our internal IComparer. If Sorting
8563 is modified to Ascending or Descending, then use our internal IComparer
8564 if none is set, and if the current IComparer is our internal one then:
8565 on 2.0 profile always replace it with one for new Sorting, and on 1.0
8566 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
8567 Enum.IsDefined to verify whether a valid View value is specified in
8568 its setter. Automatically sort listview items when listview is
8569 created. In Sort, do nothing if ListView is not yet created, or if
8570 no item_sorter is set (no Sorting was set, Sorting was explicitly set
8571 to None or ListViewItemSorter was set to null). Added Sort overload
8572 taking a bool to indicate whether the ListView should be redrawn when
8573 items are sorted (we use this in ListViewItemCollection to avoid double
8574 redraws). Modified our internal IComparer to take the sort order into
8575 account. In Add and AddRange methods of ListViewItemCollection, also
8576 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
8577 view), but use overload with noredraw option to avoid double redraw.
8578 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
8579 true when View is Tile, and do the same when attempting to set View to
8580 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
8581 for selected/checked indices, as it involves overhead when sorting is
8582 done while these collections are not used all that often. Instead
8583 we'll build the indices on demand. Modified IList implementation of
8584 CheckedIndexCollection to use public methods if object is int.
8585 Modified CheckedListViewItemCollection to hide checked items if
8586 ListView.CheckBoxes is false. Removed LAMESPEC remark in
8587 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
8588 IList implementation in SelectedIndexCollection to use public methods
8589 if object is int. Modified SelectedListViewItemCollection to hide
8590 selected items if listview is not yet created.
8591 * ListViewItem.cs: CheckedIndices list no longer needs to be
8592 maintained separately (see ListView changes). Also clone font, fixes
8595 2006-09-11 Mike Kestner <mkestner@novell.com>
8597 * ComboBox.cs: if we are updating the contents of the currently
8598 selected index, refresh the control or the textbox selection.
8601 2006-09-11 Mike Kestner <mkestner@novell.com>
8603 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
8604 the 'specified' logic has been moved there. This seems like a bug
8605 in Control.cs, since our current SetBoundsCore completely ignores
8606 the specified parameter. Peter's commit seems to indicate that is
8607 the way the MS control implementation works. [Fixes #79325]
8609 2006-09-10 Jonathan Chambers <joncham@gmail.com>
8611 * XplatUI.cs: Set default_class_name to be composed
8612 of current domain id. This allows MWF to be loaded in multiple
8615 2006-09-09 Miguel de Icaza <miguel@novell.com>
8617 * X11Keyboard.cs: If we are unable to obtain the input method, do
8618 not call CreateXic to create the input context. Should fix
8621 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
8623 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
8624 Simplified gnome support by adding more pinvokes to get the
8625 icon for a file or mime type.
8627 2006-09-08 Jackson Harper <jackson@ximian.com>
8629 * MenuAPI.cs: Deslect popup context menu items before closing the
8630 window, so that you don't see the previously selected item
8631 selected when you reopen the menu.
8632 * TextControl.cs: Update the cursor position even if we don't have
8633 focus. This fixes typing in things like the ComboBox. I'm not
8634 totally sure we should always set the visibility if we don't have
8635 focus, but couldn't find any corner cases where the cursor showed
8636 up when it shouldn't.
8638 2006-09-08 Chris Toshok <toshok@ximian.com>
8640 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
8641 our arrays are length 256. & 0xff before indexing. Fixes the
8642 crash in bug #78077.
8644 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8646 * ThemeWin32Classic.cs:
8647 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
8648 is true. Handle that check box too.
8650 2006-09-07 Chris Toshok <toshok@ximian.com>
8652 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
8655 2006-09-07 Chris Toshok <toshok@ximian.com>
8657 * Control.cs: in set_BackColor only do the work if
8658 background_color != value.
8660 * XplatUIX11.cs: move the clearing of invalid areas (both client
8661 and nc) to the same block of code where we set (nc_)expose_pending
8662 to false. That is, move it from PaintEventEnd to PaintEventStart,
8663 so things that cause invalidates from within OnPaint will trigger
8664 another call to OnPaint. Fixes bug #79262.
8666 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
8668 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
8669 * FileDialog.cs: Fix typo
8671 2006-09-07 Jackson Harper <jackson@ximian.com>
8673 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
8674 for tab pages if they have any.
8676 2006-09-06 Mike Kestner <mkestner@novell.com>
8678 * Splitter.cs: use the "current" rect when finishing drag handle
8679 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
8681 2006-09-06 Mike Kestner <mkestner@novell.com>
8683 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
8684 support offset splitters. [Fixes #79298]
8686 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
8688 * Mime.cs: Fixed a bug that could override the global mime type
8691 2006-09-05 Jackson Harper <jackson@ximian.com>
8693 * TabControl.cs: Better calculation method for setting the slider
8694 pos. Prevents crashes on really wide tabs.
8695 - Draw Image on tab pages if an image list is used.
8697 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8699 * MonthCalendar.cs: When Font changes, the Size should be
8700 updated to fit the new font's space requirements.
8702 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
8704 * ListBox.cs: If the items are cleared with Items.Clear set
8707 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8709 * MonthCalendar.cs: Handle arrow keys as input keys. Also
8710 fire DateChanged event instead of DateSelected event when
8711 the date was changed by keyboard interaction.
8713 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8715 * DateTimePicker.cs: Handle DateChanged for the associated
8716 month_calendar control, and set month_calendar.Font from
8717 OnFontChanged method, as well as resize the height of the
8718 control when needed. Make PreferredHeight proportional.
8720 2006-09-01 Chris Toshok <toshok@ximian.com>
8722 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
8725 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
8727 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
8729 * FileDialog.cs: Set ClientSize instead of window size, to allow space
8730 for decorations (Fixes #79219)
8732 2006-09-01 Mike Kestner <mkestner@novell.com>
8734 * ComboBox.cs: first stab at sorting plus some selection handling
8735 fixes to bring us more in line with MS behavior. Also switches back
8736 to index based selection. Alternative patches for index-based
8737 selection were provided by Jackson Harper, Carlos Alberto Cortez,
8738 and latency@gmx.de on bug 78848. I assume they were similar to this
8739 code I've had simmering in my tree forever.
8742 2006-09-01 Chris Toshok <toshok@ximian.com>
8744 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
8745 when setting list position guard against ending up with a -1 index
8746 (the other part of the fix for #78812). Should probably make sure
8747 we don't need the analogous fix in the ItemDeleted case.
8750 - in SetDataSource, work around the fact that the way
8751 OnBindingContextChanged is invoked will cause us to re-enter this
8752 method. I'll remove the hack once I investigate
8753 OnBindingContextChanged.
8755 - fix the logic in set_DataSource and set_DataMember (basically
8756 what to do if the other of the two is null.)
8758 - in OnListManagerItemChanged, we need to take into account the
8759 edit row when deciding whether or not to call RecreateDataGridRows
8760 (part of the fix for #78812).
8762 2006-09-01 Jackson Harper <jackson@ximian.com>
8764 * Splitter.cs: Don't do anything if there is no control to affect
8765 (prevents us from crashing in weird tet cases).
8766 * TreeView.cs: Bounding box for the mouse movement reverting
8767 focus/selection back to previously selected node. This matches
8768 MS, and makes the tree a lot more useable.
8769 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
8770 use clipping so they are not drawn. This fixes when the control
8771 is set to have a transparent background, or if it was over an
8774 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
8776 * MimeIcon.cs: Improved handling for reading default icons when
8777 using gnome (2.16 made it necessary). Check and read svg icons
8778 first, then 48x48 and then 32x32 icons.
8780 2006-08-31 Chris Toshok <toshok@ximian.com>
8782 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
8785 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
8786 ProcessKeyPreview. Fixes part of #77806.
8788 * DataGrid.cs: big patch.
8790 - revert the queueing up of DataSource/DataMember if inside
8791 BeginInit/EndInit calls. That's not the way the datagrid achieves
8792 its delayed databinding. Instead, call SetDataSource in
8793 OnBindingContextChanged. This mimic's MS's behavior, and fixes
8796 - Also, it wasn't mentioned in #78811, but the test case exhibits
8797 behavior that was lacking in our datagrid implementation - Columns
8798 that have mapping names that don't exist in the datasource's
8799 properties aren't shown. Yuck. To fix this I added the bound
8800 field to the column style, and basically any calculation to figure
8801 out anything about columns uses a loop to find the bound columns.
8802 still need to investigate if I can cache an array of the bound
8803 columns or if the indices must be the same.
8805 - When setting CurrentCell, we no longer abort if the cell being
8806 edited was in the add row. This fixes the other part of #77806.
8808 - The new code also fixes #78807.
8810 * ThemeWin32Classic.cs: perpetrate the same disgusting
8811 column.bound field hack, and only render bound fields.
8813 2006-08-31 Chris Toshok <toshok@ximian.com>
8815 * DataGridColumnStyle.cs: add bound field. this field is true if
8816 the datasource has a property corresponding to the mapping name.
8818 * DataGridTableStyle.cs: set the bound field on the column styles
8819 depending on whether or not we have a column for that property.
8821 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
8823 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
8824 splitter control (fixes #79228)
8826 2006-08-31 Chris Toshok <toshok@ximian.com>
8828 * DataGridColumnStyle.cs: we need to delay the assignment of
8829 property descriptor until the last possible moment due to the lazy
8830 databinding stuff in the datagrid. Also, fix the exceptions
8831 thrown by CheckValidDataSource to match MS.
8833 2006-08-31 Jackson Harper <jackson@ximian.com>
8835 * Form.cs: When activated select the active control, if there is
8836 no active control, we select the first control.
8837 * XplatUIX11.cs: If there is no focus control when we get a
8838 FocusIn event, find the toplevel form and activate it. This
8839 occurs when you popup a window, it becomes the focus window, then
8840 you close that window, giving focus back to the main window.
8842 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8845 * ThemeWin32Classic.cs: Cache Font in bold style, as well
8846 as StringFormat with Center alignments in MonthCalendar,
8847 instead of creating new ones when drawing the control.
8848 Also, draw the month name in bold style.
8850 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
8853 - PerformLayout(): It would seem MS performs the fill even if the
8854 control is not visible (part of #79218 fix)
8855 - ResetBackColor(): Use the setter to reset the color, to allow
8856 overriders to catch the change.
8858 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
8859 - CreateHandle(): dito (part of $79218 fix)
8860 - Don't set an icon if we have a dialog
8861 * ScrollableControl.cs:
8862 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
8863 - ScrollIntoView(): No need to scroll if control is already visible
8864 (resolves fixme and fixes #79218)
8866 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8868 * MonthCalendar.cs: Change proportions in SingleMonthSize
8869 to match the aspect of the original control.
8871 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
8873 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
8874 get updated when they get maximized.
8876 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
8878 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
8880 2006-08-29 Chris Toshok <toshok@ximian.com>
8882 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
8884 2006-08-29 Jackson Harper <jackson@ximian.com>
8886 * TreeView.cs: Need to track selected node and highlighted node,
8887 they aren't always the same thing, when the mouse is down on a
8888 node it is hilighted, but not selected yet.
8889 - Do the HideSelection stuff right
8890 - Need to focus on rbutton mouse down. And redraw selection when
8891 right click is mouse upped.
8893 2006-08-29 Mike Kestner <mkestner@novell.com>
8895 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
8896 when SubItems.Count < Columns.Count. [Fixes #79167]
8898 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
8900 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
8902 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
8904 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
8905 from X. Only send based on ConfigureNotify if we don't have the
8906 correct location in hwnd (if the window manager moved us)
8908 2006-08-28 Mike Kestner <mkestner@novell.com>
8910 * ListView.cs: remove a TODO.
8911 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
8912 [Fixes ListView part of #79166]
8914 2006-08-28 Mike Kestner <mkestner@novell.com>
8916 * ListView.cs: move wheel handler to parent since it is focused
8917 instead of the item_control now. [Fixes #79177]
8919 2006-08-28 Mike Kestner <mkestner@novell.com>
8921 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
8922 when the control is focused. [Fixes #79171]
8924 2006-08-28 Mike Kestner <mkestner@novell.com>
8926 * ListView.cs: size the item and header controls for empty and
8928 * ThemeWin32Classic.cs: draw disabled backgrounds.
8931 2006-08-28 Chris Toshok <toshok@ximian.com>
8933 * Form.cs: remove unused "active_form" static field.
8935 * Hwnd.cs: lock around accesses to static windows collection.
8937 * Application.cs: lock threads in Exit ().
8939 2006-08-28 Chris Toshok <toshok@ximian.com>
8941 * NativeWindow.cs: lock around accesses to window_collection.
8943 2006-08-28 Chris Toshok <toshok@ximian.com>
8945 * Control.cs: err, fix this the right way, by locking on controls
8946 when using it. not by making it synchronized.
8948 2006-08-28 Chris Toshok <toshok@ximian.com>
8950 * Control.cs: make the static "controls" field synchronized, as it
8951 gets updated from multiple threads.
8953 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
8955 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
8956 Prevent other threads from exiting when calling thread sets quit state.
8957 * XEventQueue.cs: Added PostQuitState property
8959 2006-08-27 Chris Toshok <toshok@ximian.com>
8961 * AsyncMethodData.cs: add a slot for the window handle.
8963 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
8964 window (the destination control's window, not the foster window).
8966 * Control.cs (BeginInvokeInternal): store the window's handle in
8967 the AsyncMethodData.
8970 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
8973 - PostQuitMessage: Removed resetting S.D display handle, we might have
8974 another loop started after calling PostQuitMessage (Fixes #79119)
8975 - Created destructor to reset S.D handle
8977 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
8979 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
8981 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8983 * TextControl.cs (Insert): Update the caret position even if we don't
8984 have a handle yet, just don't call the driver in that case.
8985 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
8986 to the end of the new selection text (Fixes #79184)
8988 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8990 * Form.cs (Activate): Only activate if the handle is created)
8992 - Mark window as invisible when it's disposed
8993 - Check if window handle is created when setting window visible,
8994 instead of relying just on the is_created variable
8995 - Check if object is disposed when creating the control (Fixes #79155)
8997 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8999 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
9000 when allowing layout again. Otherwise we re-generate the anchoring
9001 distance to the border again and actually alter what the user wanted
9002 This is ugly, it'd be better if we used DisplayRectangle instead of
9003 ClientRectangle for Control.UpdateDistances, but that causes us to
9004 have other problems (initial anchoring positons would be wrong)
9007 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9010 - The size and location setters shouldn't go directly to
9011 SetBoundsCore, but to SetBounds, which triggers layout on the
9012 parent, then calls SetBoundsCore. (Related to fix for #78835)
9013 - SetBounds: Moved actual location update code into this function
9014 from SetBoundsCore, to match MS. Added call to PerformLayout if
9015 we have a parent (to trigger resizing of anchored parents if the
9016 child size has changed (see testcase for #78835)
9017 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
9019 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
9021 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9023 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
9024 System.Drawing when a toplevel window gets closed; there might
9025 be other toplevel windows belonging to the same app (Fixes #78052)
9027 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
9029 * FileDialog.cs: After reading FileDialog settings from mwf_config
9030 use Desktop prefix only if a real folder doesn't exist anymore.
9031 * FontDialog.cs: Added char sets.
9032 It is now possible to select the font, size or style with the
9035 2006-08-25 Kornél Pál <kornelpal@gmail.com>
9037 * PrintPreviewDialog.cs: Use assembly name constants.
9039 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9041 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
9042 scrollbar from whacking it's buttons)
9044 2006-08-24 Chris Toshok <toshok@ximian.com>
9046 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
9047 in this patch (aggregating setting Left/Top/Width/Height to
9048 setting Bounds on the scrollbars), but the crux of the fix is in
9049 Recalculate, where we scroll by the remaining scroll_position if
9050 we're hiding a scrollbar. The 2*$5 reward in the comment is
9053 2006-08-24 Jackson Harper <jackson@ximian.com>
9056 * MdiWindowManager.cs: If the form is made a non-mdi window we
9057 need to remove the form closed event so that closing forms works
9060 2006-08-24 Jackson Harper <jackson@ximian.com>
9062 * Control.cs: Make IsRecreating internal so that the driver can
9064 - Temporarily remove the Hide when controls are removed, its
9065 making a whole bunch of things not work because visibility isn't
9066 getting reset elsewhere correctly
9067 * Form.cs: Need to do a full handle recreation when the mdi parent
9069 * XplatUIX11.cs: If we are recreating handles don't dispose the
9070 HWNDs. What was happening is the handles were being recreated in
9071 SendWMDestroyMessages, but then flow continued on in that method
9072 and destroyed the new handles.
9074 2006-08-23 Jackson Harper <jackson@ximian.com>
9076 * Form.cs: MdiClient is always at the back of the bus
9077 * Control.cs: When the order of items in the collection is changed
9078 we need to reset the all_controls array
9079 - do the same sorta setup thats done when adding a control when a
9080 control is set on the collection.
9082 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9084 * TextBoxBase.cs (get_Text): Return an empty array if our document
9085 is empty (fixes #79052)
9087 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9089 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
9090 on WM_SYSCHAR messages (fixes #79053)
9092 2006-08-23 Chris Toshok <toshok@ximian.com>
9094 * DataGrid.cs: fix flickering when scrolling vertically.
9096 2006-08-23 Chris Toshok <toshok@ximian.com>
9098 * DataGrid.cs (EndEdit): only invalidate the row header when we
9101 2006-08-23 Chris Toshok <toshok@ximian.com>
9103 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
9104 methods. fixes the flicker when scrolling around.
9106 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9108 * FileDialog.cs: Making sure the control is created before we get a
9109 chance to use it with BeginInvoke (Fixes #79096)
9111 2006-08-23 Chris Toshok <toshok@ximian.com>
9113 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
9114 width to use when painting the rows.
9116 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9119 - Throw ArgumentException if a negative value is passed to SelectionLength
9120 - Update the selection end if start is moved. end needs to be always
9121 after start. (Fixes #79095)
9122 - Track selection length; MS keeps the selection length even if start
9123 is changed; reset on all other operations affection selection
9125 2006-08-22 Jackson Harper <jackson@ximian.com>
9127 * TreeView.cs: Make sure both scrollbars get displayed and sized
9128 correctly when the other bar is visible.
9129 - Use the original clip rectangle for checking if the area between
9130 the two scrollbars is visible, not the viewport adjusted clipping
9133 2006-08-22 Jackson Harper <jackson@ximian.com>
9135 * Binding.cs: We don't use IsBinding because it requires the
9136 control to be created, which really shouldn't be necessary just to
9137 set a property on the control.
9139 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9141 * ComboBox.cs: Some CB.ObjectCollection methods must throw
9142 ArgumentNullReferenceException when the argument is null.
9144 2006-08-21 Jackson Harper <jackson@ximian.com>
9146 * Timer.cs: Track the thread that the timer is started in (NOT
9147 CREATED), this way messages for it will only be triggered on its
9149 * XEventQueue.cs: Track the timers here, this makes timers per
9151 * XplatUIX11.cs: The timers are moved to the XEventQueue.
9153 2006-08-19 Chris Toshok <toshok@ximian.com>
9155 * XplatUIX11.cs: after further communication with pdb, we get the
9156 best of both worlds. SetZOrder working for un-Mapped windows, and
9157 no X errors for un-mapped windows.
9159 2006-08-19 Chris Toshok <toshok@ximian.com>
9161 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
9162 as it was causing pdn toolbars to not have the correct stacking.
9164 2006-08-18 Mike Kestner <mkestner@novell.com>
9166 * ListView.cs : guard against negative ClientArea.Width in scrollbar
9167 calculation. Not sure why control should ever be setting a negative
9168 width though. Fixes #78931.
9170 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9172 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
9173 null items in ObjectCollection class.
9174 * ListBox.cs.: Likewise.
9176 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
9178 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
9179 as the base method in ThemeWin32Classic should work fine.
9182 2006-08-18 Jackson Harper <jackson@ximian.com>
9184 * Binding.cs: When validating if the value entered doesn't convert
9185 properly reset to the old value.
9186 * RadioButton.cs: Don't fire click when we get focus.
9188 2006-08-18 Jackson Harper <jackson@ximian.com>
9190 * FileDialog.cs: Paint the selection on the directory combobox the
9193 2006-08-17 Jackson Harper <jackson@ximian.com>
9195 * ErrorProvider.cs: Don't allow the error control to be selected.
9196 * Control.cs: Don't send the SetFocus messages, the control
9197 activation will do this, and if we do it blindly here validation
9200 2006-08-17 Jackson Harper <jackson@ximian.com>
9203 * ContainerControl.cs: Make validation events fire in the correct
9204 order. TODO: For some reason the first validation event is not
9207 2006-08-17 Mike Kestner <mkestner@novell.com>
9209 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
9211 2006-08-17 Mike Kestner <mkestner@novell.com>
9213 * ComboBox.cs : implement scroll wheel support for popped-down
9214 state. Fixes #78945.
9216 2006-08-17 Jackson Harper <jackson@ximian.com>
9218 * TreeView.cs: Specify treeview actions (old patch that didn't get
9219 committed for some reason).
9220 - Don't let the mouse wheel scroll us too far. Just want to make
9221 the bottom node visible, not scroll it all the ways to the top.
9223 2006-08-17 Jackson Harper <jackson@ximian.com>
9225 * XplatUIX11.cs: Mouse wheel events go to the focused window.
9227 2006-08-17 Mike Kestner <mkestner@novell.com>
9229 * ComboBox.cs : don't do mouseover selection in simple mode.
9231 2006-08-16 Jackson Harper <jackson@ximian.com>
9233 * Form.cs: Fire the closing events for all the mdi child windows
9234 when a window is closed. If the cancel args are set to true, the
9235 main window still gets the event fired, but it doesn't not close.
9236 * MdiWindowManager.cs: Do this closing cleanup in a Closed
9237 handler, instead of when the button is clicked, so cancelling the
9238 close works correctly.
9239 * ComboBox.cs: Send the mouse down to the scrollbar.
9241 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9243 * ListBox.cs: When passing 'null' to SelectedItem,
9244 set SelectedIndex to -1, to unselect items. This is the
9245 observed behaviour in .Net.
9247 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
9249 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
9250 MS flags saying there won't be any. (fixes #78800)
9251 * Control.cs (HandleClick): Made virtual
9253 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
9255 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
9256 cultures. Fixed bug #78399.
9258 2006-08-16 Jackson Harper <jackson@ximian.com>
9260 * Form.cs: Use the MdiClients MdiChildren property to access
9261 MdiChildren instead of creating the array from the child controls.
9262 * MdiClient.cs: Maintain a separate array of the mdi children, so
9263 that insertion order is maintained when the Z-order is changed.
9265 2006-08-16 Mike Kestner <mkestner@novell.com>
9267 * ListView.cs : add an ItemComparer and default to it for sorting.
9268 Fixes #79076, but sorting needs a complete overhaul to be compat with
9271 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9273 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
9275 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9277 * Hwnd.cs (Mapped): Properly traverse the tree
9279 2006-08-15 Chris Toshok <toshok@ximian.com>
9281 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
9282 pass manager.Current.GetType() to ParseData. It has to be the
9283 property type. So, hold off doing the ParseData until we're in
9284 SetPropertyValue where we know the type. This fixes the crash in
9285 #78821 but the textbox is still empty.
9287 2006-08-15 Chris Toshok <toshok@ximian.com>
9290 - when we're scrolling, only call Edit() again if the
9291 current cell is still unobscured. Fixes bug #78927.
9292 - when handling mousedown on a cell, ensure the cell is visible
9293 before calling Edit.
9294 - remove the properties from DataGridRow, and remove the
9295 DataGridParentRow class altogether.
9298 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9300 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
9301 fire OnTextChanged by ourselves. There's no point calling base,
9302 we don't set the base value anywhere else. Fixes #78773.
9304 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9306 * ListBox.cs: Call CollectionChanged when modifying
9307 an item from Items indexer, to update the actual items
9310 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9312 * PrintDialog.cs: Small fixes for focus and a pair of checks,
9313 to match .Net behaviour.
9315 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9317 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
9319 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9321 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
9323 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9325 * MessageBox.cs: Prevent potential NRE exception.
9326 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
9328 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
9330 * MessageBox.cs: Calculate the owner of a messagebox, also make
9331 it topmost. Fixes #78753
9333 2006-08-14 Chris Toshok <toshok@ximian.com>
9335 * XplatUIX11.cs: A couple of fixes so that metacity will let us
9336 programmatically move windows. first, set the PPosition hint as
9337 well as the USPosition hint. Second include some code from pdb
9338 that sets the window type to NORMAL when we set the transient for
9339 hint. This is because, in the absence of a window type, metacity
9340 thinks any window with TransientFor set is a dialog, and refuses
9341 to let us move it programmatically. fascists.
9343 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
9345 * XplatUIX11.cs: When setting normal hints, take into consideration
9346 an different hints previously set so we don't delete them (fixes #78866)
9348 2006-08-12 Chris Toshok <toshok@ximian.com>
9350 * ToolBarButton.cs: make Layout return a boolean, if something to
9351 do with the button's layout changed.
9354 - add another parameter to Redraw, @force, which all existing
9356 - make the Layout function return a boolean which is true if the
9357 layout has actually changed. Redraw now uses this (and @force)
9358 to determine when to invalidate. At present the only place
9359 where @force can be false is the call from OnResize, when
9360 background_image == null. So, resizing a toolbar when the
9361 layout doesn't change results in no drawing.
9363 2006-08-12 Chris Toshok <toshok@ximian.com>
9365 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
9366 the VScrollBar and HScrollbar reversed. oops.
9368 * DataGrid.cs: fix the logic that assigns sizes to the implicit
9369 scrollbars. we were assigning them twice (once in
9370 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
9371 therefore causing two scrollbar resizes (and redraws?) to happen
9374 2006-08-12 Chris Toshok <toshok@ximian.com>
9376 * ToolBarButton.cs: redraw the entire button if the theme tells us
9379 * Theme.cs: add ToolBarInvalidateEntireButton.
9381 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
9382 buttons, just the border.
9384 * ThemeNice.cs: redraw the entire toolbar button since we need to
9385 draw the highlight image.
9387 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
9388 we need to redraw the entire button (not just the border).
9390 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
9392 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
9393 for vertical bars. Fixes the mismatches shown by #78513
9395 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
9397 * FileDialog.cs: If a saved/remembered path doesn't exist
9398 anymore, fall back to "Desktop".
9400 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
9402 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
9403 parent. It's apparently legal to not have one
9405 - SetZOrder: Don't try to set Z-Order on an unmapped window
9406 - CreateWindow: 0,0 are legal coordinates for a window. don't move
9407 it unless the coordinates are negative
9409 2006-08-10 Mike Kestner <mkestner@novell.com>
9411 * ListControl.cs: allow null for DataSource. Clear DisplayMember
9412 when setting to null per msdn docs. Fixes #78854.
9414 2006-08-10 Chris Toshok <toshok@ximian.com>
9416 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
9417 flickering by setting a clip rectangle on the Graphics when we
9418 need to redraw just a particular menuitem. Also, rename "OnClick"
9419 to "OnMouseDown" to reflect what it actually is.
9421 * Form.cs: track the OnMouseDown change.
9423 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
9425 * CommonDialog.cs: Properly inherit the CreateParams from the form
9426 and only change what we need. Fixes #78865
9428 2006-08-10 Chris Toshok <toshok@ximian.com>
9430 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
9431 flickering in flat mode (and most of the flickering in general) by
9432 only invalidating the button border (and not the entire rectangle)
9433 when the state changes. A couple of cases still flicker:
9434 ToggleButtons, and the dropdown arrow case when the user mouse
9437 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
9439 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
9440 for german keyboards. Numlock state shouldn't affect the behaviour
9441 of the Del key. Fixes bug #78291.
9443 2006-08-10 Chris Toshok <toshok@ximian.com>
9445 * ListControl.cs: remove the items.Clear line from BindDataItems,
9446 as this is the first thing done by both subclasses in their
9447 SetItemsCore overrides. Also, add a ItemChanged handler, and when
9448 passed -1, refresh the list. This gets databinding working when
9449 the datasource is set on the list before the datasource is
9450 populated (as in wf-apps/ReportBuilder.)
9452 * ComboBox.cs: remove the argument to BindDataItems. This call
9453 should really go away, and be initiated by the ListControl code.
9457 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
9459 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
9460 if no data is in the document when the control is displayed
9462 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
9464 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
9467 - PositionCaret: Allow positioning of caret but don't call methods
9468 requiring a handle if the window isn't created yet
9469 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
9470 - owner_HandleCreated: Don't position the caret, just update it's
9471 location. User might have already set a different position
9473 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
9475 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
9476 windows. Screws up the returned coordinates for child windows.
9477 Fixes #78825. I'm hoping this doesn't break something, since the
9478 code was explicitly put in 8 months ago, but no bug was attached.
9479 Menus still seem to work properly.
9481 2006-08-08 Chris Toshok <toshok@ximian.com>
9483 * DataGrid.cs: make BeginInit/EndInit actually do what they're
9484 supposed to do - delay data binding until the EndInit call. Also,
9485 make the table style collection's CollectionChangeAction.Refresh
9488 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
9489 (with action = Refresh) when a consituent table's MappingName is
9492 2006-08-08 Chris Toshok <toshok@ximian.com>
9494 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
9495 Invalidate, since changing the text can change the size of the all
9498 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
9500 * Form.cs (AddOwnedForm): Still need to add the form to our listif
9501 we don't have it yet
9503 2006-08-08 Chris Toshok <toshok@ximian.com>
9505 * PrintControllerWithStatusDialog.cs: don't .Close() the status
9506 dialog, as this causes X errors later on, since we actually
9507 destroy the window. Instead, .Hide() it.
9509 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
9511 * ComboBox.cs: Added focus reflection for popup window
9513 - Removed transient setting for non-app windows for now, not sure it
9515 - Fixed logic checking if we have captions when deciding
9516 override_redirect, WS_CAPTION is two bits and a 0 check was not
9518 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
9521 - AddOwnedForm: Don't just add the form to the list, call the property
9522 to ensure the driver is informed about the ownership as well
9523 - CreateHandle: Set the TopMost status in the driver if we have an owner
9524 * XplatUI.cs: Fixed debug statement
9526 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
9527 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
9528 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
9529 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
9530 TrackBarRenderer.cs: Make constructor private.
9531 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
9532 * ProfessionalColorTable.cs: Make properties virtual.
9534 2006-08-06 Duncan Mak <duncan@novell.com>
9536 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
9539 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
9540 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
9541 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
9542 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
9543 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
9544 Initial import of new 2.0 classes.
9546 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
9547 * Application.cs: Add 2.0 VisualStyles properties.
9549 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
9550 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9551 XplatUIX11.cs: Create property to allow access to existing private
9552 variable "themes_enabled"
9554 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9556 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
9557 file size, as otherwise our class libraries fail using windows. Fixes
9560 2006-08-04 Jackson Harper <jackson@ximian.com>
9563 * XplatUIX11.cs: Move the toolwindow window manager creation into
9564 the X11 driver, this way on win32 we can let windows create/handle
9567 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9569 * PrintDialog.cs: Remove some redundant checks, add some others,
9570 clean some code, and move the focus to the text boxes when the
9571 values are incorrect.
9573 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
9575 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
9577 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
9579 * NumericUpDown.cs: Setting the Minimum and Maximum is now
9580 handled correctly. Fixes bug #79001.
9582 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9584 * PrintDialog.cs: The "Copies" numeric up down must have
9585 set the Minimum property to 1; only if the value is bigger
9586 than 1, activate "Collate" check box. This is the behaviour of .Net.
9587 Also modify the Document elements only if it is not null.
9589 2006-08-03 Jackson Harper <jackson@ximian.com>
9591 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
9592 length. (We have a larger array then actual node count).
9594 2006-08-03 Jackson Harper <jackson@ximian.com>
9596 * ComboBox.cs: Don't show selection by default.
9597 - The SelectAll isn't needed here, since the focus code should do
9599 - DDL style lists to manual selection drawing, so when they
9600 get/lose focus they have to invalidate.
9602 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
9604 * TextBoxBase.cs: Don't always show all selections by default.
9606 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
9607 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
9608 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
9609 Fixed various typos.
9611 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
9613 * Control.cs: Removing the controls in a ControlCollection with
9614 Clear now hides the controls as expected. Fixes bug #78804.
9616 2006-08-03 Jackson Harper <jackson@ximian.com>
9618 * Control.cs: Revert previous focus patch, it breaks reflector.
9620 2006-08-03 Jackson Harper <jackson@ximian.com>
9622 * ComboBox.cs: Cleanup selection and focus with the combobox.
9623 This also eliminates some duplicated keyboard code, since now
9624 everything is handled by the main class.
9625 - Make list selection work on mouse up instead of down, to match
9628 2006-08-02 Jackson Harper <jackson@ximian.com>
9630 * Control.cs: Setting focus needs to go through the whole
9631 selection mechanism.
9633 2006-08-02 Chris Toshok <toshok@ximian.com>
9635 * PrintPreviewDialog.cs: change MinimumSize to use
9636 base.MinimumSize so it works.
9638 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
9641 - UpdateCaret: Added sanity check in case caret isn't defined yet
9642 - Line.Delete: Now updating selection and caret markers if we're
9643 transfering a node (Properly fixes #78323)
9644 - SetSelectionEnd: Added sanity check
9645 * TextBoxBase.cs: Removed broken attempt to fix #78323
9647 2006-08-01 Chris Toshok <toshok@ximian.com>
9649 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
9650 Close() call is handled in Form, not here.
9652 2006-08-01 Chris Toshok <toshok@ximian.com>
9654 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
9657 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
9658 for sizes < 100% zoom. The code now aggressively attempts to keep
9659 from calling document.Print (), and tries not to use the scaling
9660 g.DrawImage whenever possible (it still does if you scale to >
9661 100%, since usually that involves huge images).
9663 * PrintPreviewControl.cs: hook up the close button.
9665 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
9666 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
9667 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
9668 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
9669 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
9670 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
9671 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
9672 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
9673 Removed [Serializable] for 2.0 Event Handlers.
9675 2006-07-31 Jackson Harper <jackson@ximian.com>
9677 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
9678 * TextControl.cs: Uncomment out the body of this method.
9680 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
9682 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
9685 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9687 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
9688 that embed TextBox and need selections visible even if textbox is not
9689 focused to enforce that behaviour.
9690 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
9693 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9696 - Added new SetSelectionStart/SetSelectionEnd overloads
9697 - Fixed viewport width assignment to be accurate
9698 - Adjusted alignment line shift calculations to allow cursor on right
9699 aligned lines to be always visible at the right border (like MS)
9701 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
9702 - TextBoxBase_SizeChanged: recalculating canvas on size changes
9703 - CalculateScrollBars: Use ViewPort size instead of window size, to
9704 properly consider space occupied by the border and scrollbars
9706 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
9707 calculations; no longer leaves artifacts
9708 - CaretMoved: Adjusted window scrolling to match MS and fixed several
9709 calculation bugs (Still missing right/center align calculations)
9711 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9713 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
9714 use of both scroll rect and clip rect, as they do the same.
9716 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9718 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
9719 in the event handler (fixes #78912)
9721 2006-07-31 Chris Toshok <toshok@ximian.com>
9723 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
9724 grid.ListManager.Count, since grid.ListManager might be null.
9725 This of course begs the question "why are we drawing rows for a
9726 grid with no list manager (and therefor no rows)?" Fixes the
9727 crash in bug #78929.
9729 2006-07-31 Chris Toshok <toshok@ximian.com>
9731 * RelatedPropertyManager.cs: Don't always chain up to the parent
9732 ctor. instead, call SetDataSource if the parent's position is !=
9733 -1. Fixes the crash in #78822.
9735 2006-07-31 Chris Toshok <toshok@ximian.com>
9737 * DataGrid.cs (get_ListManager): use field instead of property
9738 accessors for datasource and datamember.
9739 (RowsCount): make internal again.
9740 (OnMouseDown): end edits before resizing columns/rows.
9741 (OnMouseUp): restart edits after resizing columns/rows.
9743 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
9745 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
9746 This fixes the situation where the last set cursor is displayed
9747 whenever the mouse is over scrollbars.
9749 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9751 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
9752 Document properties, as well as initial values.
9754 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
9756 * XplatUIWin32.cs (SetBorderStyle): Setting both border
9757 and ClientEdge results in a 3-pixel border, which is
9760 2006-07-28 Jackson Harper <jackson@ximian.com>
9762 * TreeNodeCollection.cs: Fix the clear method.
9763 - Fix the Shrink also
9765 2006-07-27 Jackson Harper <jackson@ximian.com>
9767 * TreeView.cs: Make sure the visible order is computed when we
9768 attempt to size the scrollbars (for trees that mess with the
9769 scrolling when they shouldn't.
9770 - Make sure to give the scrollbars valid values.
9772 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
9774 * XplatUIX11.cs: Move motion compression code to where it
9775 has less performance impact
9777 2006-07-26 Jackson Harper <jackson@ximian.com>
9779 * UpDownBase.cs: When the control is selected make the child
9780 controls non selectable, so that a click on them won't do a
9781 focus/unfocus cycle.
9782 - Don't give focus to the text box when the spinner is selected.
9783 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
9785 2006-07-26 Chris Toshok <toshok@ximian.com>
9787 * ThemeWin32Classic.cs: add print preview rendering. I'm not
9788 satisfied with this solution. If the bitmaps are small, we should
9789 just cache them in the PrintPreviewDialog and draw them here.
9790 Also, the layout is broken for the 2-up and 3-up cases.
9792 * Theme.cs: add PrintPReviewControlPaint.
9794 * PrintPreviewDialog.cs: first pass implementation.
9796 * PrintPreviewControl.cs: first pass implementation. No
9799 * PrintDialog.cs: only validate fields if that particular portion
9800 of the UI is enabled. Also, set the document's controller to a
9801 PrintControllerWithStatusDialog wrapping the document's print
9804 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
9805 bring up a SaveFileDialog (i hope we don't want to match the
9806 behavior of the crappy windows file entry) and set the
9807 PrinterSettings.PrintFileName accordingly.
9809 2006-07-26 Jackson Harper <jackson@ximian.com>
9811 * ContainerControl.cs: Add a field that disables auto selecting
9812 the next control in a container when the container is activated.
9813 * UpDownBase.cs: Don't select the text box when the up down is
9816 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
9818 * XEventQueue.cs: Added methods for peeking (used for compression
9819 of successive events)
9820 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
9821 mouse move events (fixes #78732)
9823 2006-07-25 Jackson Harper <jackson@ximian.com>
9825 * UpDownBase.cs: Use an internal class for the textbox so that we
9826 can control focus. the updown control should always have focus,
9827 if either the text area or the buttons are clicked.
9828 - Send the key messages to the textbox, since it never actually
9830 - Activate and decativate the textbox caret.
9832 2006-07-24 Jackson Harper <jackson@ximian.com>
9834 * Control.cs: Use the directed select when selecting a control,
9835 this way the container controls override will get called and the
9836 whole ActiveControl chain will get triggered. TODO: probably need
9837 to make sure this gets done everywhere instead of the old
9839 * ContainerControl.cs: Implement the directed Select method to
9840 find and activate the correct child control.
9842 2006-07-22 Mike Kestner <mkestner@novell.com>
9844 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
9845 menu handling code so that clicks without a grab work too.
9848 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
9850 * FileDialog.cs: Enable the BackButton when dirstack has one element.
9851 Added some small optimizations.
9853 2006-07-21 Matt Hargett <matt@use.net>
9855 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
9857 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
9859 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
9860 tests pass and match MS in some strange border cases.
9862 2006-07-21 Chris Toshok <toshok@ximian.com>
9864 * ThemeWin32Classic.cs: handle drawing of the relation links and
9867 * Theme.cs: change args to DataGridPaintParentRow.
9869 * DataGrid.cs: Don't use controls for the relation links and
9870 parent buttons, so we have to handle all their interactions in
9871 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
9872 when we're navigating through child tables, so we can reinstate
9873 selection, expanded state, current cell, etc.
9875 2006-07-20 Chris Toshok <toshok@ximian.com>
9877 * ToolBar.cs: When we redraw a button, for whatever reason,
9878 there's no reason to redraw the entire toolbar. Also, don't call
9879 Control.Refresh from within Redraw, as it's much heavier than
9880 Invalidate (which is really what we want).
9882 2006-07-20 Chris Toshok <toshok@ximian.com>
9884 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
9885 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
9886 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
9887 traces from within a debug IBindingList datasource
9888 (in mono/winforms/datagrid) for *days*, I've finally gotten things
9889 to work in a similar fashion.
9891 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9893 * ListBox.cs: Don't call Sort () when setting
9894 the Sorted property to false (avoid an unnecessary sort).
9896 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9898 * ListControl.cs: DataSource should throw an ArgumentException
9899 instead of a normal exception when the argument is not of the
9902 2006-07-20 Mike Kestner <mkestner@novell.com>
9904 * Control.cs: add InternalPreProcessMessage to allow us to steal
9905 key events before MWF gets its paws on them. Adapted from a
9907 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
9908 up/down/left/right navigation. Override the new internal control
9909 method to steal the events since they never make it to WndProc.
9910 * ToolBarButton.cs: don't worry about pushed when setting hilight
9911 since the drawing code prefers pushed to hilight. Invalidate on
9912 Hilight changes. Fixes #78547 and #78525.
9914 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
9916 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
9917 the canvas size. Fixes #78868
9919 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
9921 * Splitter.cs: Track requested split position until first layout
9922 is performed. Fixes #78871
9924 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
9926 * Application.cs: Removed code that forces 1.x for the version
9927 number if the version started with 0. Not sure why that code was
9928 there and I couldn't find any bugs that indicated we needed it.
9931 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
9933 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
9934 ResetDefaults(), just write some output to the console until it's
9935 implemented. Fixes bug #78907 for now. Eliminated two warnings.
9937 2006-07-19 Jonathan Chambers <joncham@gmail.com>
9939 * PropertyGridView.cs: set StartPosition of drop down forms
9940 so they appear in correct initial spot. Fixes #78190.
9942 2006-07-19 Mike Kestner <mkestner@novell.com>
9944 * ThemeWin32Classic.cs: use parent background color when drawing
9945 flat toolbars. Restructure the conditionals to make sure non-flat
9946 non-Divider toolbars are filled too. Fixes #78837.
9948 2006-07-19 Mike Kestner <mkestner@novell.com>
9950 * ListBox.cs: Sort on collection changes even if the handle
9951 isn't created yet. Fixes #78813.
9953 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9955 * ListControl.cs: DisplayMember should never be null,
9956 and now we assign String.Empty when null is passed to it (this
9959 2006-07-17 Mike Kestner <mkestner@novell.com>
9961 * ListViewItem.cs: restructure Font and subitem Font handling
9962 to hold a specific font and refer back to owner on null.
9965 2006-07-17 Mike Kestner <mkestner@novell.com>
9967 * ToolBar.cs: bandaid for side-effect of previous patch which was
9968 discarding explicit heights for non-AutoSize toolbars. Need to
9969 extend my format tester to deal with AutoSize=false. Fixes #78864.
9971 2006-07-15 Jackson Harper <jackson@ximian.com>
9973 * LabelEditTextBox.cs:
9974 * TreeView.cs: Use a new LabelEdit class for node editing, this
9975 class automatically 'closes' itself when it gets the enter key or
9977 - Use the client rectangle when setting the trees scrollbars, so
9978 border style is taken into account.
9980 2006-07-14 Jackson Harper <jackson@ximian.com>
9983 * TreeView.cs: Make the editing work similar to MSs, firing the
9984 events correctly and ending edits correctly.
9986 2006-07-14 Mike Kestner <mkestner@novell.com>
9989 * ToolBar.cs: layout restructuring and redraw enhancements to support
9990 formatting changes gracefully, like setting TextAlign, ImageList,
9991 ButtonSize, and Appearance. Handles explicit button sizing quirks
9992 of the MS controls. Things like flat toolbars ignoring button size
9993 but becoming constant sized at the largest button's size. Normal
9994 toolbars with an image set cannot be shrunk smaller than the image,
9995 but text can be clipped/ignored.
9996 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
9997 is zero. Seems like DrawString should be smart enough to not put
9998 anything on screen though. Also trim labels and ellipsize at the char
10000 Fixes #78711 and #78483.
10002 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
10004 * FolderBrowserDialog.cs: Disable "New Folder" button and
10005 "New Folder" contextmenu menuitem if a folder like "My Computer"
10008 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
10010 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
10011 * FolderBrowserDialog.cs:
10012 - Use MWFConfig to store and read size and position settings
10013 - Added code to create a new folder (button or context menu).
10014 Use TreeView labeledit to change the name of the new folder.
10016 2006-07-14 Jackson Harper <jackson@ximian.com>
10018 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
10019 when the tree is scrolled we end editing.
10021 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
10023 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
10026 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
10028 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
10029 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
10030 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
10031 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
10032 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
10033 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
10034 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
10035 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
10036 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
10037 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
10038 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
10039 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
10040 ListViewItemSelectionChangedEventHandler.cs,
10041 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
10042 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
10043 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
10044 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
10045 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
10046 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
10047 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
10048 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
10049 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
10050 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
10051 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
10052 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
10053 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
10054 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
10055 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
10056 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
10057 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
10058 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
10059 WebBrowserNavigatingEventHandler.cs,
10060 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
10062 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
10064 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
10065 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
10066 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
10067 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
10068 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
10069 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
10070 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
10071 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
10072 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
10073 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
10074 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
10075 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
10076 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
10077 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
10078 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
10079 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
10080 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
10081 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
10082 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
10083 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
10084 ListViewItemStates.cs, MaskFormat.cs: Added
10086 2006-07-13 Jonathan Chambers <joncham@gmail.com>
10088 * PropertyGridView.cs: Fix keyboard navigation of drop down.
10089 Patch from eno for bug 78558.
10091 2006-07-13 Jackson Harper <jackson@ximian.com>
10093 * TreeView.cs: When an edit is finished make sure that the
10094 selected node is visible.
10095 - When setting the top/bottom use the scrollbars is_visible, so
10096 everything will be set correctly even if the tree isn't visible
10099 2006-07-13 Jackson Harper <jackson@ximian.com>
10101 * ComboBox.cs: Revert the item->index part of my previous patch.
10102 * TreeView.cs: Use LostFocus instead of Leave for detecting when
10103 the edit box has lost focus (duh).
10104 - Just make the edit box not visible when we get return, that will
10105 take the focus, which will call EndEdit
10106 * TreeNode.cs When we start editing, notify the treeview.
10108 2006-07-12 Jackson Harper <jackson@ximian.com>
10110 * ComboBox.cs: Clear out old items before setting the item list.
10111 This prevents databound controls from having their items added
10113 - Switch the combobox to use indices whereever possible instead of
10114 using Item's. This allows usto navigate through lists that have
10115 more then one item with the same string value (ie a, b, b, a).
10116 - Scroll the listboxes scrollbar when a non visible item is
10118 - Allow keypress to cycle through all the possible values. For
10119 example if you have b1, b2, b3 and hold down the B key all the
10120 values will be cycled through.
10122 2006-07-12 Jackson Harper <jackson@ximian.com>
10125 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
10126 this using the internal methods.
10127 * Control.cs: Add OnGotFocusInternal. A new method that allows
10128 controls to "override" OnGotFocus and change focus behavior if
10130 - Same thing for LostFocus
10131 * ComboBox.cs: Pass off focus to the text control properly.
10133 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
10135 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
10136 * FolderBrowserDialog.cs: Almost a complete rewrite.
10137 - Better support for Environment.Specialfolders
10138 - Added support for MWFVFS
10139 - Made setting SelectedPath work
10141 2006-07-12 Jackson Harper <jackson@ximian.com>
10143 * Control.cs: Optimze getting all the controls.
10145 2006-07-11 Jackson Harper <jackson@ximian.com>
10147 * ContainerControl.cs: Override SETFOCUS in the container control,
10148 so that it is not selected on mouse click.
10150 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
10152 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
10153 Hopefully we will have a better way once all of focus is complete.
10155 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
10157 * ThemeWin32Classic.cs: Commented out some debug code and fixed
10158 a compile error with csc.
10160 2006-07-11 Jackson Harper <jackson@ximian.com>
10162 * Control.cs: When hiding a control only select the next control
10163 if the current control was focused.
10164 - Don't handle enter/leave when setting/killing focus, this is
10165 done by the container control.
10166 - Remove is_selected, it's not needed anymore.
10167 - Add utility methods for selecting a child control, and for
10168 firing the Enter/Leave events.
10169 * ContainerControl.cs: When a control is activated fire the
10170 enter/leave events.
10171 - Don't wrap when processing the tab key, so that focus can be
10172 moved outside of the container.
10173 - Use the correct active control
10175 2006-07-11 Jackson Harper <jackson@ximian.com>
10177 * ComboBox.cs: Remove some debug code that was blinding me.
10178 * UpDownBase.cs: These controls actually aren't implicit, they are
10179 visible to the user.
10181 2006-07-10 Chris Toshok <toshok@ximian.com>
10183 * DataGrid.cs: move back to the is_adding boolean field. god i
10184 hate this is_editing/is_adding/is_changing stuff.
10186 2006-07-10 Chris Toshok <toshok@ximian.com>
10188 * DataGridTableStyle.cs: just check if the property type is bool.
10189 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
10190 Don't use CanRenderType.
10192 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
10193 if our text == NullText. Remove CanRenderType.
10195 * DataGridBoolColumn.cs: nuke CanRenderType.
10197 * DataGrid.cs: reenable some code to end the current edit inside
10198 of set_CurrentCell. This fixes the other 1.1.16 regression.
10199 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
10200 Also, remove the visible_row_count arg from CalcRowHeaders, since
10201 we don't need to worry about the actual height of the area.
10203 2006-07-10 Chris Toshok <toshok@ximian.com>
10205 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
10208 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
10209 the real sense of the IsInEditOrNavigateMode property (true =
10210 navigate, false = edit). Also, update OnKeyPress to reflect this.
10212 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
10213 column style exists, we still need to set its property descriptor
10214 to match up with our list manager.
10216 2006-07-10 Chris Toshok <toshok@ximian.com>
10218 * ThemeWin32Classic.cs: implement the new row/header painting
10219 approach. The parent row painting will likely go away and
10220 replaced with label controls, but the rest seems to work ok (and
10223 * Theme.cs: change the way we draw datagrid rows. we don't draw
10224 the row headers as a block now. Instead we draw them in the
10225 normal draw-row loop. Add some calls for drawing parent rows and
10228 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
10229 a default table style. Set the defaults from ThemeEngine.Current,
10230 not SystemColors. Fix lots of misc issues with property setters.
10232 * DataGrid.cs: move loads of style information out of this class
10233 as it's being duplicated with DataGridTableStyle. keep track of a
10234 special DataGridTableStyle for the properties we used to mirror
10235 here. Switch all the style properties to access this table style
10236 instead of instance fields of this class. Also add a internal
10237 class to represent parent rows (more needs to be stored here, like
10238 the selection state from the parent table, as well as the
10239 expansion state.) Also, for datasources with relations, do the
10240 right thing for collapse/expand, and add support for the
10241 navigation/parent row buttons.
10243 Lastly, fix the crash in the 1.1.16 build.
10245 * GridTableStylesCollection.cs: make the explicit interface
10246 implementations call the class's methods as opposed to duplicating
10249 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
10250 0 so the text doesn't jump around when we move the cursor.
10252 2006-07-10 Jackson Harper <jackson@ximian.com>
10255 * ListBox.cs: Match MS's ToString (this makes debugging focus
10256 stuff infinitely easier).
10258 2006-07-10 Jackson Harper <jackson@ximian.com>
10260 * Control.cs (SelectNextControl): When checking the control's
10261 parent use this instead of ctrl.parent so that null can be passed
10262 to SelectNextControl. (I have unit tests for this).
10263 - Remove unused var.
10265 2006-07-10 Chris Toshok <toshok@ximian.com>
10267 * CurrencyManager.cs: correct one regression, the removal of the
10268 finalType field. Also, add a MonoTODO on CanAddRows, implement
10269 Refresh() correctly, and fix some event emission in
10270 ListChangedHandler.
10272 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
10274 * FileDialog.cs: Don't use brackets for new folders if they exist
10275 under *nix. Instead use -(number of existing folders +1).
10277 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
10280 - Fixed really nasty bug #78771
10281 - Don't block the whole GUI when reading directories with a lot of
10282 entries. Use an other thread instead and call BeginInvoke to
10283 update the ListView in MWFFileView
10285 2006-07-07 Chris Toshok <toshok@ximian.com>
10287 * Control.cs (Dispose): release any Capture when disposing.
10289 2006-07-07 Chris Toshok <toshok@ximian.com>
10291 * LinkLabel.cs (Select): if we chain up to the parent, set
10292 focused_index to -1 so we'll search for the first available link
10293 the next time the user tabs into us. Also, if the direction is
10294 backward and focused_index == -1, start the search from the last
10297 2006-07-07 Chris Toshok <toshok@ximian.com>
10299 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
10300 is beyond the end of the text, don't do anything.
10301 (CreateLinkPieces): set our ControlStyles.Selectable based on
10302 whether or not we have any links.
10303 (Link.Invalidate): use a loop instead of foreach.
10304 (Link.set_Start): null out owner.sorted_links so it'll be
10305 recreated by CreateLinkPieces.
10307 2006-07-06 Chris Toshok <toshok@ximian.com>
10309 * LinkLabel.cs: revert the SetStyle change.
10311 2006-07-06 Chris Toshok <toshok@ximian.com>
10313 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
10314 (OnEnableChanged): s/Refresh/Invalidate
10315 (OnGotFocus): if we have a focused index already, refocus it (so
10316 if we mouse out/in to the window it'll focus the right link).
10317 (OnKeyDown): move the tab handling out of here.
10318 (OnLostFocus): don't set focused_index to -1, so we can refocus it
10319 when we lose focus.
10320 (OnMouseDown): don't Capture here - Control handles it. Also,
10321 focus the active link.
10322 (OnMouseUp): don't deal with Capture.
10323 (OnPaintBackgroundInternal): remove.
10324 (OnTextAlignChanged): CreateLinkPieces before calling the
10325 superclass's method.
10326 (OnTextChanged): call CreateLinkPieces before calling superclass's
10328 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
10330 (Select): implement this, moving the selection between different
10331 links, and call parent.SelectNextControl if we don't have another
10332 link to focus in the given direction.
10333 (CreateLinkPieces): call Invalidate instead of Refresh.
10335 2006-07-06 Chris Toshok <toshok@ximian.com>
10337 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
10338 new LinkLabel internals.
10340 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
10341 over pieces looking for active/focused/etc links. also, deal with
10342 runs of text (and links) with embedded \n's in them, and use
10343 MeasureCharacterRanges instead of MeasureString to figure out the
10344 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
10347 2006-07-04 Jackson Harper <jackson@ximian.com>
10349 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
10350 XKB or key auto repeat, do it manually. Without key auto repeat,
10351 when a key is held down we get key press, key release, key press,
10352 key release, ... with auto repeat we get key press, key press, key
10353 press ..., and then a release when the key is actually released.
10355 2006-07-03 Jackson Harper <jackson@ximian.com>
10358 * ThemeWin32Classic.cs: Tabs do not obey normal background color
10359 rules, they are always control color regardless of the background
10362 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
10364 * FileDialog.cs: Added internal class MWFConfig.
10365 Removed Registry support and replaced it with support for the new
10366 MWFConfig class. See MWFConfig comments for more information.
10368 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
10370 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
10371 rectangle. Added some patches from eno from bug #78490 and fixed
10372 the arrow position for small up and down CPDrawScrollButtons.
10374 2006-06-30 Jackson Harper <jackson@ximian.com>
10376 * InternalWindowManager.cs: Remove some debug code.
10377 * Form.cs: When an MdiParent is set to null, the window is
10378 "detatched" and becomes a normal window.
10379 * MdiClient.cs: Don't bring the new child form to the front until
10380 it is activated (setting it as active does this), this makes the
10381 previously active forms titlebar get redrawn as inactive.
10383 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
10385 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
10386 with later controls
10388 2006-06-29 Mike Kestner <mkestner@novell.com>
10390 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
10391 arrow in keynav state. Fixes #78682.
10393 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
10395 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
10396 order (fixes #78393)
10398 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
10400 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
10401 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
10402 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
10403 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
10404 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
10405 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
10406 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
10407 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
10408 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
10409 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
10410 enumerations (FlagsAttribute, SerializableAttribute, added/removed
10413 2006-06-28 Mike Kestner <mkestner@novell.com>
10415 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
10417 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
10420 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
10421 item lines from other area (It also makes BackColor consistent and
10422 compatible with .NET). Fixed bug #78564.
10424 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
10426 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
10427 Patch from Eno for #78555.
10429 2006-06-27 Chris Toshok <toshok@ximian.com>
10431 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
10433 * DataGridColumnStyle.cs: same.
10435 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
10437 * DataGridDrawingLogic.cs: nuke.
10439 2006-06-27 Chris Toshok <toshok@ximian.com>
10441 * DataGridTableStyle.cs: clean up the constructors, and build the
10442 list of child relations for this table. I have no idea if this is
10443 where we should be doing it (it probably isn't), but since we're
10444 already iterating over the properties..
10446 * DataGrid.cs: add row resizing. for now we add a DataGridRow
10447 struct and array for keeping track of row information, similar to
10448 what's shown in a hack on
10449 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
10451 * Theme.cs: be consistent about the naming of DataGrid methods,
10452 prefering ColumnWidths and RowHeights over columnsWidths and
10455 * ThemeWin32Classic.cs: same, and also add support for variable
10456 sized rows (and the +/- expansion icons for related rows).
10458 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
10460 * TextBoxBase.cs: Applied Eno's patch from #78660
10462 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
10464 * Form.cs (ScaleCore): We don't want to scale our form if it's
10465 state is minimized or maximized, but we still need to scale our
10466 child windows. Also, added try/finally block to ensure layout
10467 gets reset (Fixes #78697)
10469 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
10471 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
10473 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
10475 * Form.cs: Fixed c+p error and added check to resize form if minimum
10476 size is bigger than current size (Fixes #78709)
10478 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
10480 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
10482 2006-06-26 Mike Kestner <mkestner@novell.com>
10484 * ComboBox.cs: only do Keypress handling in the combo when there
10485 are items in the collection. Fixes #78710.
10487 2006-06-26 Chris Toshok <toshok@ximian.com>
10489 * Binding.cs: make this work bi-directionally. also, clear up
10490 other mixups between Push/Pull Data (e.g. we're supposed to pull
10491 data when validating).
10493 * BindingManagerBase.cs: trim some fully qualified collection
10496 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
10498 2006-06-23 Chris Toshok <toshok@ximian.com>
10500 * PropertyManager.cs: It appears (according to the unit tests)
10501 that PropertyManager doesn't use
10502 PropertyDescriptor.AddValueChanged to track propery value changes
10503 in its datasource, but uses the same scheme as Binding, where it
10504 looks for a <Property>Changed event and binds to it.
10506 Also, according to the docs, IsSuspended always returns false for
10507 a property manager with a non-null datasource.
10509 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
10511 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
10512 need to update the actual DialogResult. (Fixes #78613)
10514 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
10516 * Form.cs (ShowDialog): Release any captures before running the
10517 new message pump (fixes #78680)
10519 2006-06-22 Mike Kestner <mkestner@novell.com>
10521 * ListView.cs: Layout column widths properly in details mode even
10522 if HeaderStyle.None is set. Fixes #78691.
10524 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
10526 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
10528 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
10530 * Control.cs (ContainsFocus): Using new driver method to get focused
10531 window, instead of trying to use internal tracking var, which can
10532 recursion issues (Fixes #78685)
10533 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
10534 XplatUIWin32.cs: Added GetFocus method to return focused window
10536 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10538 * ColorDialog.cs: when the mouse button is pressed inside the color
10539 matrix, don't let the cursor move out of it until the button is
10540 released, which is the behavior on windows. Changed 'colours' by
10541 'colors' to use the same word consistently.
10543 2006-06-21 Chris Toshok <toshok@ximian.com>
10545 * DataGrid.cs: add in some basic navigation stuff (navigating to a
10546 child relation and back, using a stack). Also, remove
10547 GetDataSource and the code that calls it - it's not needed. Also,
10548 track CurrencyManager.ListName's removal.
10550 2006-06-21 Chris Toshok <toshok@ximian.com>
10552 * CurrencyManager.cs: push some of the original type checking from
10553 BindingContext.CreateBindingManager to here, and remove some of
10554 the finalType stuff. Need more tests to make sure I've got the
10555 ListName part right, and we might need more in SetDataSource.
10557 * PropertyManager.cs: add a ctor that takes just the datasource,
10558 and no property name. Make SetDataSource work with a null
10559 property_name, and make Current return the data_source if the
10560 property descriptor is null. this makes 'string foo = "hi";
10561 BindingContext[foo].Current' return "hi" as it should.
10563 * RelatedCurrencyManager.cs: make this code more generic - there's
10564 no reason the parent manager has to be CurrencyManager, and
10565 there's no reason to pass the DataRelation. It suffices to use a
10566 BindingManagerBase and PropetyDescriptor.
10568 * RelatedPropertyManager.cs: make a similar change here.
10570 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
10571 flower I knew it could be.
10573 2006-06-20 Chris Toshok <toshok@ximian.com>
10575 * PropertyManager.cs: the PropertyChangedHandler is invoked when
10576 data in the source has changed and we need to update the control,
10577 so s/PullData/PushData.
10579 * CurrencyManager.cs: Refresh is meant to update the control from
10580 data in the datasource. So, s/PullData/PushData.
10582 * BindingContext.cs: add more ugliness (we weren't handling the
10583 case where data_source = DataTable and data_member = column_name).
10585 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
10586 from the perspective of the datasource. PullData pulls from the
10587 control, PushData pushes to the control.
10589 2006-06-20 Chris Toshok <toshok@ximian.com>
10591 * BindingContext.cs: rewrite the CreateBindingManager code to
10592 handle navigation paths more or less properly. This could
10593 definitely stand some more work, in particular to push the
10594 recursion up to the toplevel. But that relies on fixes in other
10595 places (System.Data comes to mind).
10597 Also, move to a flat hashtable (and encode the twolevel nature of
10598 the dictionary into the hash key). This lets us implement the
10599 IEnumerable.GetEnumerator method.
10601 * RelatedCurrencyManager.cs: new class. Update our view based on
10602 our relation and our parent CurrencyManager's position.
10604 * CurrencyManager.cs: split out some logic from the ctor into
10605 SetView, so it can be called from the new RelatedCurrencyManager
10608 * RelatedPropertyManager.cs: new class. Update our datasource
10609 based on the position of our parent CurrencyManager.
10611 * PropertyManager.cs: split out some logic from the ctor into
10612 SetDataSource, so it can be called from the new RelatedDataSource
10613 subclass. Also, make the Current getter return the value
10614 of the PropertyDescriptor, not the data_source.
10616 * Binding.cs: no need to duplicate the string splitting code here.
10618 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
10621 - set_Enabled: OnEnabledChanged is not called if the inherited state
10622 of the control is not altered, even though we might be changing the
10623 internal state of the control (#78458)
10624 - set_Enabled: (Re)Moved the enabling/disabling of the window to
10625 OnEnabledChanged, to allow easy altering of any child window state
10626 - OnEnabledChanged: Added code to enable/disable driver window state
10627 - OnParentEnabledChanged: Instead of firing the event, call
10628 OnEnabledChanged, which will fire the event and also a) set driver
10629 window state and pass the enabled state to any grandchildren (#78458)
10631 2006-06-19 Jackson Harper <jackson@ximian.com>
10633 * InternalWindowManager.cs: We don't set the cursor explicitly
10634 thats done via the response to NCHITTESTs.
10635 - Don't need to adjust for titlebar heights anymore, the
10636 coordinates are coming in the correct coordinates now (see peters
10640 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
10642 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
10643 being translated relative to whole window, instead of client window.
10644 That caused broken offsets on mouseclick (and caused gas for our
10645 InternalWindowManager)
10647 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
10650 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
10651 - Undo(): Added replay of cursor move on DeleteChars action; added
10652 calling Undo() again if a recorded cursor move is invalid (to
10653 ensure that some action is performed on Undo)
10654 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
10656 2006-06-16 Jackson Harper <jackson@ximian.com>
10658 * MdiClient.cs: Instead of just sizing maximized windows when
10659 there is a resize we also have to adjust the Y of minimized
10660 windows, so they stay pinned to the bottom of the mdi container.
10661 - Eliminate separate tracking of the active control, we can just
10662 get this from the controls collection.
10663 - Paint the decorations for the newly activated titlebar so we get
10665 * InternalWindowManager.cs:
10666 * ThemeWin32Classic.cs: Minimized windows get all three buttons
10667 even if they are a tool window.
10669 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
10671 * TextControl.cs (Undo): Handle non-existent cursor locations in the
10672 undo buffer, these can happen when text was deleted and the cursor
10673 was recorded first. Since we will also have a recorded cursor
10674 after the delete this is not an issue. (Fixes #78651)
10676 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
10678 * AccessibleObject.cs: Remove dependence on Control.is_selected;
10679 instead properly track control states internally (allows us to
10680 remove is_selected from Control)
10682 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10684 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
10685 whose width is not a multiple of 8.
10687 2006-06-13 Jackson Harper <jackson@ximian.com>
10689 * MdiClient.cs: Only maximize the next child if the current one
10692 2006-06-13 Chris Toshok <toshok@ximian.com>
10694 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
10695 modified. Also, guard against grid or grid_drawing being null in
10698 * DataGrid.cs: Reformat tons of getters/setters. In the
10699 DataMember setter, just call SetNewDataSource instead of
10700 duplicating some of its functionality. In SetNewDataSource, don't
10701 check ListManager for null, since the property getter creates the
10704 * DataGridTableStyle.cs: don't set TableStyle or call
10705 SetDataGridInternal on the column here, it's done in
10706 GridColumnStylesCollection.Add.
10708 * GridColumnStylesCollection.cs: fix all the explicit interface
10709 implementations to just call our methods. Nuke AddInternal() and
10710 move the body of it to Add(). Also, add a call to
10711 column.SetDataGridInternal to Add().
10713 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
10714 base()+duplicate code. Also, use the Format property instead of
10715 format to generate an Invalidate ala MS. Lastly, create the
10716 textbox here, unconditionally.
10717 (set_Format): call Invalidate.
10718 (get_TextBox): no need to call EnsureTextBox.
10719 (Commit): remove the message box.
10720 (Edit) remove the call to EnsureTextBox.
10721 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
10722 (EnterNullValue): no need to check textbox for null.
10723 (HideEditBox): no need to check textbox for null.
10724 (SetDataGridInColumn): add the textbox to the grid's controls.
10725 (EnsureTextBox): nuke.
10727 2006-06-13 Jackson Harper <jackson@ximian.com>
10729 * MdiWindowManager.cs: Hook up to the maximized menus paint event
10730 and redraw the buttons when needed. Unhook when the window is
10732 * MainMenu.cs: Add an internal Paint event, the mdi window manager
10733 needs this so that it can redraw its buttons when the menu is
10735 * InternalWindowManager.cs:
10736 * Form.cs: The method order has changed for DrawMaximizedButtons,
10737 so that it can be a PaintEventHandler.
10739 2006-06-13 Jackson Harper <jackson@ximian.com>
10741 * MdiClient.cs: When we close a maximized mdi window, the next mdi
10742 window is activated and maximized, even if it wasn't before.
10743 - When a new window is activated repaint the decorations of the
10744 old one, so that it no longer has the Active "look" (the blue
10746 * InternalWindowManager.cs: Open up CreateButtons to base classes
10747 so they can recreate the buttons on state changes.
10748 - If a window is maximized give it all three buttons
10749 * MdiWindowManager.cs: Create the titlebar buttons when the state
10750 is changed, this is needed because a toolwindow will not have all
10751 three buttons until it is maximized.
10753 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
10755 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
10758 2006-06-12 Jackson Harper <jackson@ximian.com>
10760 * KeysConverter.cs: Make sure we handle the Ctrl special case
10761 if its the only key.
10763 2006-06-12 Jackson Harper <jackson@ximian.com>
10765 * Theme.cs: Add a method to get the size of a managed window
10767 * InternalWindowManager.cs: Remove the ButtonSize property, this
10768 should be retrieved from the theme.
10769 * MdiWindowManager.cs: Get the button size from the theme
10770 * ThemeWin32Classic.cs: Make the method to get the managed window
10771 titlebar button size public.
10772 - Handle the different button sizes of maximized toolwindows
10773 (should match any maximized window).
10774 - Get the titlebar height from the theme, not the WM (which gets
10775 it from the theme).
10777 2006-06-12 Jackson Harper <jackson@ximian.com>
10779 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
10780 event down to the mdi window manager.
10781 - Expose some extra stuff to base classes
10782 - Make sure to end the Capture on an NC Mouse up, so that we can
10783 get double clicks properly, and the sizing doens't stick.
10784 - When doing PointToClient contain it in the workable desktop
10785 area, this prevents windows from changing size when the cursor is
10786 pulled outside of the working area while sizing.
10787 * MdiWindowManager.cs: When we get a double click maximize the
10789 - Reset the cursor after handling mode changes.
10791 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
10793 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
10794 current desktop, instead of just assuming a 0, 0 origin. This
10795 is needed for our internal window manager, to know the top
10796 margin of the desktop
10798 2006-06-12 Chris Toshok <toshok@ximian.com>
10800 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
10801 we need this to get rid of the selected background in the bool
10803 (CancelEditing): move the ConcedeFocus call to above the Abort
10804 call. Also, set is_changing to false and invalidate the row
10805 header if we were changing before.
10806 (ProcessKeyPreviewInternal): remove, since noone outside this
10807 class calls it anymore. Roll the code into ProcessKeyPreview.
10808 (EndEdit): remove the internal version.
10809 (InvalidateCurrentRowHeader): make private.
10811 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
10812 Keys.Escape handling (and with it the last call to
10813 DataGrid.EndEdit from outside the class.)
10816 2006-06-12 Chris Toshok <toshok@ximian.com>
10818 * DataGridTextBox.cs (.ctor): isedit defaults to false.
10819 (OnKeyPress): set isedit to true.
10820 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
10821 already handled by the grid.
10823 * DataGrid.cs (set_CurrentCell): more work here. it's still not
10825 (set_DataSource): SetDataSource always returns true, so stop
10826 putting it in an if statement.
10827 (EndEdit): get rid of some {}'s
10828 (ProcessGridKey): return true in case Keys.Escape.
10829 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
10830 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
10831 PositionChanged, stopped connecting to CurrentChanged.
10832 (GetDataSource): simplify this a bunch.
10833 (SetDataSource): change return type from bool to void.
10834 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
10835 to this, and make sure we don't set ListManager.Position inside
10837 (OnListManagerItemChanged): if we're passed an actual index,
10840 * CurrencyManager.cs (set_Position): don't call PullData here.
10842 2006-06-09 Jackson Harper <jackson@ximian.com>
10844 * TreeNode.cs: Recalculate the visible order before doing the
10845 Expand/Collapse Below calls, because those calls generate an
10847 - Reduce calls to the TreeView property, which is mildly expensive
10848 by using a local var.
10849 * Form.cs: Layout the MDI child windows when creating the parent
10851 - Don't use the internal constructor anymore
10852 * MdiClient.cs: use the parent form width/height (if available)
10853 when laying out the child windows, we do this because the
10854 mdiclient isn't docked yet when the initial layout is done.
10855 - Don't need an internal constructor anymore.
10857 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10859 * FileDialog.cs: handle access errors when trying to create a folder
10860 or changing to a directory. No need to initialize out parameters.
10862 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10864 * FileDialog.cs: Append a number when creating a new folder if the
10865 folder already exists (use parenthesis instead of square brackets)
10867 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10870 - Disabled registry support for windows and added better registry
10871 error checking for other systems (need to investigate why it
10872 works perfectly on my system)
10873 - If a folder already exist show an error MessageBox instead of
10874 trying to create an indexed name.
10875 - Fixed a non intentional typo.
10877 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10879 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
10881 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10883 * FileDialog.cs: When creating a new folder don't crash if the
10884 folder already exists.
10886 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10888 * FileDialog.cs: Allmost a complete rewrite.
10889 - added a "virtual" file system that handles the differences
10890 between unix and windows file systems (especially the directory
10891 structure). Moved most of the directory and file handling code
10893 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
10894 UnixFileSystem and FSEntry.
10895 - Recently used folder/directory, size, location and used file names
10896 (file name ComboBox) are now stored in the registry and get read
10897 before the dialog shows up (fixes part 6 of bug #78446).
10898 - Creation of new folders/directories is now possible (context menu
10899 or ToolBar). Added TextEntryDialog for this that fills in the gap
10900 until ListView.LabelEdit works.
10901 - Fixed cursor handling (bug #78527) and focus handling for
10903 - Various "Search in" ComboBox enhancements. The content of the
10904 dropdown listbox now almost matches ms.
10905 - Changed the behaviour when the user switches to SpecialFolder
10906 Recent to show the ListView in View.Details.
10907 - Beside using the ToolBar to change the View property of the
10908 file ListView it is now possible to use the context menu too.
10910 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10912 * ComboBox.cs: Don't create a new ObjectCollection when an item
10913 gets inserted. Just insert the item in the existing object_items
10916 2006-06-08 Jackson Harper <jackson@ximian.com>
10918 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
10919 that the treeview and root node checks are done also, this fixes a
10920 regression i caused in the unit tests.
10922 2006-06-07 Wade Berrier <wberrier@novell.com>
10924 * RichTextBox.cs: More ISO8859-1 -> unicode
10926 2006-06-07 Mike Kestner <mkestner@novell.com>
10928 * ComboBox.cs : use items to hold highlight/selection so that
10929 collection insertions don't require synchronization.
10931 2006-06-07 Jackson Harper <jackson@ximian.com>
10933 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
10934 routine. We now always keep the sized edge at the cursor instead
10935 of computing movement and adjusting rects. There is one buglet
10936 with this method though when the cursor is moved over area that
10937 the window can not expand too (such as the toolbars on the desktop).
10939 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10941 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
10942 here. Fixes crash on startup in AlbumSurfer.
10944 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
10946 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
10949 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10951 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
10952 statement to avoid calling XNextEvent which will block if another thread
10953 took the event that we were expecting. Fixes bug #78605.
10955 2006-06-07 Mike Kestner <mkestner@novell.com>
10957 * ListView.cs : isolated checkbox clicking from the selection logic.
10958 Toggle check state on item doubleclicks. Really fixes #78454 part2.
10960 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10962 * Form.cs: Check that the value passed to Form.DialogResult
10963 is a valid enum value.
10965 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10967 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
10968 Computer'. Clicking it in the network view goes to 'My Computer'.
10969 Added CIFS filesystem type. Display the mount point of filesystems.
10970 Avoid duplicate mount points (happens for me with CIFS);
10972 2006-06-06 Jackson Harper <jackson@ximian.com>
10974 * InternalWindowManager.cs: Draw the maximized windows buttons
10977 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10979 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
10980 all other dialogs. Fixes bug #78585.
10982 2006-06-06 Mike Kestner <mkestner@novell.com>
10984 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
10985 Only invalidate checkbox on checkstate changes to avoid flicker.
10986 * ListBox.cs : avoid unselect/select when clicking selected item.
10987 avoid reselection flicker for already multiselected items.
10990 2006-06-06 Jackson Harper <jackson@ximian.com>
10992 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
10993 the parent form so that the menu is removed if needed.
10995 2006-06-06 Mike Kestner <mkestner@novell.com>
10997 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
10998 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
11000 2006-06-06 Mike Kestner <mkestner@novell.com>
11002 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
11005 2006-06-06 Jackson Harper <jackson@ximian.com>
11007 * Control.cs: Use the property (instead of the field) to get the
11008 default cursor so it is instantiated correctly.
11009 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
11010 resizes so we need to manually repaint the window decorations here.
11011 - Set the titlebar button locations as soon as they are created,
11012 otherwise they are not set correctly on win32.
11014 2006-06-06 Chris Toshok <toshok@ximian.com>
11016 * CurrencyManager.cs (set_Position): call PullData before
11018 (AddNew): after calling IBindingList.AddNew, update our
11019 listposition, and call OnCurrentChanged/OnPositionChanged (without
11021 (OnCurrentChanged): remove the call to PullData from here.
11022 (OnItemChanged): remove the call to PushData from here.
11023 (OnPositionChanged): change the test from == null to != null to
11024 match the other methods.
11025 (ListChangedHandler): the grossest part of the patch. Implement
11026 this such that it passes the unit tests in CurrencyManagerTest and
11027 the output more or less matches that of MS's implementation.
11029 2006-06-06 Mike Kestner <mkestner@novell.com>
11031 * ListView.cs : only update check state on single click.
11032 * ThemeWin32Classic.cs : fix focus drawing for details view without
11033 fullrowselect. Fixes #78454.
11034 * XplatUIX11.cs : fix for double click emission.
11036 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
11038 * PropertyGridView.cs : Applied Atsushi's patch to fix
11039 font dialog bug (#78197).
11041 2006-06-05 Jackson Harper <jackson@ximian.com>
11043 * TreeNode.cs: Compute the next node for expanding/collapsing
11044 correctly. We now factor in nodes without a NextNode
11045 correctly. (Fixes somes cases in nunit-gui).
11046 * InternalWindowManager.cs: Set the bounds when updating the
11047 virtual position of a tool window.
11049 2006-06-05 Chris Toshok <toshok@ximian.com>
11051 * DataGrid.cs: rename cached_currencymgr to list_manager.
11052 (set_CurrentCell): move SetCurrentCell code here, and clean it up
11054 (CurrentRow, CurrentColumn): single accessors so we can make the
11055 cursor movement code a lot easier to understand.
11056 (CurrentRowIndex): implement this in terms of CurrentRow.
11057 (BeginEdit): clean this up a bit.
11058 (CancelEditing): sort out the is_editing/is_changing/is_adding
11060 (EndEdit): minor changes.
11061 (OnKeyDown): add a comment about a (most likely) unnecessary
11063 (OnMouseDown): cancel editing when we click on a row header. And
11064 use the CurrentRow setter, not CurrentCell.
11065 (ProcessDialogKey): directly call ProcessGridKey.
11066 (UpdateSelectionAfterCursorMove): factor out this common block of
11067 code (it's used everywhere that we move the cursor by updating row
11069 (ProcessGridKey): pretty substantial overhaul. Use the
11070 CurrentRow/CurrentColumn properties to make the code a lot more
11071 readable. Only use the CurrentCell property when we have to
11072 modify both row and column at once. Tab behavior is still broken,
11073 and Delete is untested.
11074 (Select): if we have no selected rows, set selection_start to
11076 (EditCurrentCell): rename EditCell this. It was only ever invoked
11077 with CurrentCell as the arg, so drop the arg and rename it.
11079 * DataGridColumnStyle.cs: clean up the constructors a little, and
11080 drop CommonConstructor().
11082 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
11083 actually get notified when the user hits it.
11084 (ProcessKeyMessage): *substantially* simplify this method.
11085 There's no reason (that I can see) for the textbox to be making
11086 calls into the datagrid at all. Remove all of them but the ones
11087 for Enter handling. those will take some more work.
11089 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
11090 calling HideEditBox.
11091 (HideEditBox): if we have an active textbox, render it invisible
11092 without causing a re-layout of the datagrid.
11094 2006-06-05 Mike Kestner <mkestner@novell.com>
11096 * ListView.cs : fix NRE crasher when focuseditem is cleared by
11097 collection changes by resetting it to Items[0]. Fixes #78587.
11099 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11101 * MessageBox.cs: if the height of the text is larger than the icon_size,
11102 use that. Fixes bug #78575.
11104 2006-06-05 Jackson Harper <jackson@ximian.com>
11106 * TreeView.cs: Fix line drawing when scrolling. To do this each
11107 node is basically responsible for drawing its entire horizontal
11108 area. When drawing a node it draws its parent node lines if
11110 - Adjust the clip area to the viewport rectangle
11111 - Fix Left/Right key handling to match MS. (It expand/collapses
11112 and moves to parents/first child but does not move selection to
11114 - Fix SetTop to work with new bound calculation code
11115 - When scrollbars are no longer needed we need to reset scrolling
11116 vars and recalculate the visible order so the redraw is correct
11117 * TreeNode.cs: We can't expand/collapse nodes with no children.
11119 2006-06-03 John Luke <john.luke@gmail.com>
11121 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
11122 so the colors work without dev packages
11124 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
11127 - Select: Implemented to just use activate. Seems to match MS
11128 behaviour closest. Documented to only do actual control walking
11129 based on it's parameters if in a container control so I moved
11131 - Removed selection check logic from our internal Select() method
11132 * ContainerControl.cs:
11133 - Select: Moved selection logic from Control here, since MS documents
11134 that containers obey the bool arguments. No longer calling base
11136 2006-06-02 Jackson Harper <jackson@ximian.com>
11138 * TreeView.cs: If the selected node isn't changed when we get
11139 focus update the previously selected node so that we see the
11142 2006-06-02 Mike Kestner <mkestner@novell.com>
11144 * ComboBox.cs: restructure grab and general mouse event handling.
11145 Make the composite control raise mouse events like it was a single
11146 control for leaves/enters/motion/up/down events. fix dropdown list
11147 coordinate mangling and refactor it into the scrollbar subclass to
11148 reduce code duplication. Fixes #78282 #78361 and #78457.
11150 2006-06-02 Mike Kestner <mkestner@novell.com>
11152 * ScrollBar.cs: remove Capture setting/clearing, as it happens
11153 automatically in the Control.WndProc.
11155 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11157 * FileDialog.cs: fix crash when running SharpChess, which sets the
11158 FilterIndex to 2 with only one Filter.
11160 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11162 * ToolBar.cs: add SizeSpecified property.
11163 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
11164 try to figure out our real size, otherwise fallback to what the
11167 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
11169 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
11170 * Control.cs (WndProc): MS always calls the DefWndProc to pass
11173 2006-06-01 Mike Kestner <mkestner@novell.com>
11175 * ListView.cs: revamp the focus management in ListView. It still
11176 causes churn of LostFocus/GotFocus emissions on clicks, but it's
11177 better than not handling focus at all. Will revisit when pdb feels
11178 the general focus handling is solid. Fixes #78526.
11180 2006-06-01 Jackson Harper <jackson@ximian.com>
11182 * TreeView.cs: Set the default border style in the constructor.
11183 - Move painting to use OnPaintInternal instead of capturing
11184 WM_PAINT, this is the correct way of doing things
11185 - UpdateBelow shouldn't invalidate the scrollbar area
11186 - Cap the top on update below in case the node was above the top
11187 of the viewport rectangle.
11188 - ExpandBelow and Collapse below need to obey Begin/End Update.
11189 * TreeNode.cs: Make is_expanded internal so the treenode
11190 collection can change it without firing the whole event chain.
11191 * TreeNodeCollection.cs: When clearing all the child nodes make
11192 sure to recalc the visible order.
11193 - Improve algo for remove the top node
11195 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
11197 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
11198 SendMessage directly calling window procedures, which in turn might
11201 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
11203 * Control.cs: Don't handle WM_SETFOCUS if the same window already
11204 has focus (works around X11 sending a FocusIn after our SetFocus)
11205 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
11207 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
11209 * Mime.cs: Fix for the NET_2_0 build.
11210 NameValueCollection needs StringComparer now.
11212 2006-05-31 Chris Toshok <toshok@ximian.com>
11214 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
11215 return (via an out parameter) the starting X of the column.
11216 (UpdateVisibleColumn): track change to FromPixelToColumn.
11217 (HitTest): add a ColumnResize case here.
11218 (DrawResizeLine): new function, probably poorly named.
11220 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
11221 only need to keep one reference.
11222 (set_ListManager): same.
11223 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
11224 Also, add support for HitTestType.ColumnResize.
11225 (OnMouseMove): add column resize behavior here, and change the
11226 cursor to the correct one as we move around the datagrid.
11227 (OnMouseUp): terminate the column resize if we're resizing.
11228 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
11229 for the current cell.
11230 (ConnectListManagerEvents): use cached_currencymgr.
11231 (DisconnectListManagerEvents): fill this in, using
11232 cached_currencymgr.
11233 (SetCurrentCell): remove cached_currencymgr_events handling.
11234 (SetDataMember): only call DisconnectListManagerEvents if
11235 cached_currencymgr is != null.
11236 (SetDataSource): same.
11237 (OnListManagerCurrentChanged): cached_currencymgr_events ->
11238 cached_currencymgr.
11240 2006-05-31 Jackson Harper <jackson@ximian.com>
11242 * BindingManagerBase.cs: Remove somedebug code that creeped into
11244 * TreeNode.cs: We get the indent level dynamically right now, so
11245 don't track it as a member.
11246 * TreeNodeCollection.cs: Make sure all nodes added to the list
11247 have parents, treeviews/topnodes setup properly.
11248 - Don't attempt to track indent level.
11250 2006-05-30 Jackson Harper <jackson@ximian.com>
11252 * BindingContext.cs: Create the currency manager tables here.
11253 This allows us to more easily create null tables (when bad data
11254 members are used), and more easily create related currency
11256 * CurrencyManager.cs: All the table creation stuff is done by the
11257 binding context now.
11258 - Current should throw an exception if listposition is -1.
11259 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
11262 2006-05-30 Mike Kestner <mkestner@novell.com>
11264 * ListView.cs: allow reexpansion of zero-width column headers.
11267 2006-05-28 Chris Toshok <toshok@ximian.com>
11269 * CurrencyManager.cs (get_Current): after the late binding
11270 listposition = -1 fix, we need to guard against it here and return
11271 null, otherwise we raise an exception (which is swallowed
11272 elsewhere, and breaks datagrid databinding.)
11274 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
11276 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
11277 than WM_SYSKEY, don't throw if get something unexpected (#78507)
11279 2006-05-26 Jackson Harper <jackson@ximian.com>
11282 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
11283 values, it's faster and it's all we care about (we don't care if
11284 the names aren't equal).
11285 * KeyboardLayouts.cs: Eliminate some dead code.
11287 * X11Keyboard.cs: Lazy init keyboard detection.
11288 - Cleanup access modifiers a little.
11290 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
11292 * XplatUIX11.cs: Once again, attempting to get layout just right.
11294 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
11296 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
11297 the sizes of each link section, that will result in sizes that
11298 match DrawString's layout (Fixes #78391)
11300 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
11302 * FileDialog.cs: If AddExtension property is true autocomplete the
11303 extensions in SaveFileDialog correctly. Fixes bug #78453.
11304 Set MyNetwork and MyComputer to "C:\" for windows. This should
11305 fix part 8 of bug #78446 for now.
11307 2006-05-26 Chris Toshok <toshok@ximian.com>
11309 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
11310 invalidate the current row header if we need to, but presumably
11311 we'll invalidate the row corrsponding to the bounds or
11313 (GridHScrolled): switch back to this method, as it's part of the
11314 public api. *sigh*.
11315 (GridVScrolled): same.
11316 (OnMouseWheel): hack up something that more or less works. Call
11317 GridHScrolled/GridVScrolled directly, instead of duplicating much
11318 of their code here.
11319 (EnsureCellVisibility): reinstate a bunch of this code, since we
11320 can't just set the scrollbar Value and expect to do all the work
11321 in the ValueChanged handler. Also, Call Update() after scrolling
11322 in one direction so the other XplatX11.ScrollWindow call has the
11323 proper stuff in the proper places.
11324 (EditCell): set is_editing to true before calling .Edit.
11326 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
11327 don't bother comparing first.
11328 (OnKeyPress): call grid.ColumnStartedEditing before calling
11329 base.OnKeyPress. this will set is_changing and invalidate the row
11330 header if necessary.
11331 (ProcessKeyMessage): for WM_CHAR messages, call
11332 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
11335 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
11336 it's done in the DataGrid.
11337 (NextState): call grid.ColumnStartedEditing, which takes care of
11338 invalidating the row header (and setting is_changing).
11340 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
11341 here. it's done in the DataGrid.
11343 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11345 * Control.cs: allow changing the cursor when the mouse position is
11346 out of bounds but Capture is set.
11347 * LinkLabel.cs: handle the case when the mouse button is pressed on the
11348 linklabel but released somewhere else.
11350 2006-05-25 Jackson Harper <jackson@ximian.com>
11352 * TreeView.cs: When we get focus if there is no selected node make
11354 - Remove some uneeded setup code from Draw.
11355 * TreeNodeCollection.cs: If the tree doesn't have a top node when
11356 a new node is inserted make the new node the top.
11358 * Timer.cs: Use Utc time so that no local time zone stuff needs to
11359 be used (should be faster).
11361 2006-05-25 Chris Toshok <toshok@ximian.com>
11363 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
11364 problem with the last commit.
11366 2006-05-25 Chris Toshok <toshok@ximian.com>
11368 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
11369 need the invalidate call here, while scrolling right-to-left via
11370 the left arrow key (i.e. moving the editing cell while scrolling).
11372 * DataGrid.cs (.ctor): remove the initialization of
11373 ctrl_pressed/shift_pressed. We no longer track them using key
11374 up/down handlers, but by using Control.ModifierKeys. Also, switch
11375 to using ValueChanged handlers on the scrollbars instead of
11376 Scrolled event handlers. This simplifies a bunch of the scrolling
11378 (GridHValueChanged): rename from GridHScrolled, and change it to
11379 work with the new event args.
11380 (GridVValueChanged): same.
11381 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
11382 (OnMouseWheel): actually scroll the datagrid. Don't change the
11384 (ProcessGridKey): correct all the keyboard navigation stuff I
11385 could find. Ctrl up/down/left/right/home/end work now.
11386 (EnsureCellVisibility): correct method name spelling. Also,
11387 simplify this a touch by not explicitly calling the
11388 ScrollToRow/ScrollToColumnInPixels methods. We just set the
11390 (OnKeyUpDG): no need for this method now.
11392 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11394 * LinkLabel.cs: display the OverrideCursor when hovering the label.
11397 2006-05-25 Chris Toshok <toshok@ximian.com>
11399 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
11402 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
11404 * Application.cs: Moved setting of is_modal and closing to before
11405 we create the control, to allow the event handlers called as a
11406 result of creation affect closing. Also removed Gonzalo's previous
11407 change to setting DialogResult, the behaviour has been moved to
11410 - ShowDialog(): Removed explicit creation of the form, let RunLoop
11412 - ShowDialog(): If no dialog result is set, we need to return Cancel
11413 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
11414 the close is cancelled
11416 2006-05-25 Jackson Harper <jackson@ximian.com>
11418 * StatusBar.cs: We only need to update the sizes of the other
11419 panels when we have auto size contents. Also we are only updating
11420 the contents of the panel, not the borders, so compensate for the
11421 border width (TODO: get this width from the theme somehow).
11422 * TreeView.cs: Scrollable is true by default
11423 - Use invalidate instead of refresh where needed
11424 - Factor the scrollable value into scrollbar updating
11425 - Update the scrollbars if the Scrollable property is altered
11426 - Update the selected node if its ImageIndex is changed
11427 - Handle null nodes in UpdateNode (mainly so we don't have to
11428 check if selected is null when updating it
11429 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
11430 are factored into the visible count
11431 - Use VisibleCount for clarity in the code
11432 - When the font is changed we need to recurse through all the
11433 nodes and invalidate their sizes
11435 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11437 * Application.cs: set the DialogResult to fixed when the main form is
11438 hidden or destroyed while being modal.
11440 2006-05-25 Miguel de Icaza <miguel@novell.com>
11442 * Theme.cs: Use Tangoified messagebox icons.
11444 (GetSizedResourceImage): Also cope with width = 0 and do not
11445 trigger a warning in that case (0 means "give me your icon from
11446 the resouce, no special size needed).
11448 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
11450 * Application.cs: Leave runloop if the the main modal form is
11451 hidden (fixes #78484)
11453 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
11455 * BindingContext.cs : reject null datasource in Contains() and
11457 * CurrencyManager.cs : check data_member validity when data_source
11458 is dataset. When it is late binding, the initial position is -1.
11460 2006-05-24 Jackson Harper <jackson@ximian.com>
11462 * TreeNodeCollection.cs: Dont't recalculate the visible order on
11463 inserted nodes that aren't visible. This changes the
11464 max_visible_order which confuses scrollbar settings.
11465 - Use the enumerator to get the prev node instead of duplicating
11467 * TreeView.cs: Use new method for setting scrollbar values
11468 - Don't set the bounds every time the scrollbar is updated
11469 - When updating below the root node use an invalidate instead of a
11470 refresh to prevent the child controls (scrollbars) from being
11471 refreshed. (UpdateBelow still needs to be reworked anyways).
11472 - Reenable SetBottom now that visible orders are set correctly,
11473 added some debug code incase we ever get bad values there again.
11474 - Set the scrollbar max to 2 less then the max value, this
11475 compensates for the max value being one above the node count, and
11476 for scrollbars adding one extra "notch".
11477 - When drawing image nodes if there is an imagelist we draw the
11478 first image in the list if the supplied image index is out of the
11479 image list's bounds.
11481 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
11483 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
11484 we receive a size change from the WM (Fixes #78503)
11486 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
11488 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
11489 rectangle (Fixes #78501)
11491 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
11494 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
11496 - Fixed MouseMove to no longer switch pressed state unless the left
11497 mouse button is pressed. Atsushi provided the original patch (#78485)
11499 2006-05-24 Jackson Harper <jackson@ximian.com>
11501 * ScrollBar.cs: New internal methods that allow us to change a
11502 couple values on the scrollbar (the most common case is maximum
11503 and large change) without getting multiple invalidates.
11505 2006-05-24 Chris Toshok <toshok@ximian.com>
11507 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
11508 (Edit): save off the original state in oldState, and set
11509 grid.is_editing to true.
11510 (OnKeyDown): abort editing if escape is pressed. also, call
11511 NextState if space is pressed.
11512 (OnMouseDown): call NextState.
11513 (NextState): factor out shared code from OnKeyDown and OnMouseDown
11514 here. Also, only invalidate the row header once (on the initial
11515 is_changing switch) to save on redraws.
11517 2006-05-24 Chris Toshok <toshok@ximian.com>
11519 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
11520 if the value in the cell is different than it was before. This
11521 keeps us from triggering a layout when we move around a datarid
11522 with a highlighted cell.
11523 (Edit): suspend layout when creating/positining the text box, and
11524 resume passing false so we don't ever actually re-layout.
11525 (ReleaseHostedControl): same.
11526 (EnsureTextBox): reformat slightly, and set WordWrap to false.
11528 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
11529 control-key sequences should go to the datagrid - remove that
11530 lock. Also, modify the conditions under which we move between
11531 cells when moving the cursor within a cell, and remove the "this"
11532 and "base" from field accesses. We weren't even consistent, given
11533 they all were in the base class.
11535 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
11537 * Binding.cs : (.ctor)
11538 An obvious NRE fix for BindingTest.CtorNullTest().
11540 2006-05-23 Chris Toshok <toshok@ximian.com>
11542 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
11543 them between lines. This fixes some quirks editing cells in the
11546 2006-05-23 Jackson Harper <jackson@ximian.com>
11548 * TreeView.cs: Use begin/end update when doing expand/collapse all
11549 so that we don't get flicker on the scrollbar.
11551 2006-05-23 Jackson Harper <jackson@ximian.com>
11553 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
11554 treenode calculations to be independant of the painting code. To
11555 do this nodes track a visible order which is calculated by the
11557 - Call new methods for expanding/collapsing nodes. These methods
11558 use scrollwindow so we don't have to update everything below the
11560 * TreeView.cs: Refactored drawing and scrolling code. We don't
11561 need to update nodes when drawing anymore or calculate scrollbar
11563 - Added new methods for expanding/collapsing nodes. These methods
11564 use ScrollWindow so as to not have to redraw all the nodes below.
11565 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
11566 we add/remove nodes or sort.
11567 - Handle removing the selected and the top node properly.
11569 2006-05-23 Chris Toshok <toshok@ximian.com>
11571 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
11572 maybe this should actually happen in the datagrid code?
11573 (EndEdit): no need to invalidate anything, given that
11574 ReleaseHostedControl causes the datagrid to relayout, which
11575 invalidates everything anyway.
11577 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
11578 in SetCurrentCell).
11579 (set_SelectionBackColor): call InvalidateSelection instead of
11581 (set_SelectionForeColor): same.
11582 (BeginEdit): Flesh this out a bit.
11583 (CancelEditing): only do any of this if we're editing/adding.
11585 (OnMouseDown): there's no need to cancel editing here, it's done
11587 (SetCurrentCell): only invalidate the current row header if it's a
11588 different row than the new one.
11589 (ShiftSelection): fix this to work like MS does.
11590 (ResetSelection): factor out the invalidation of selected_rows to
11591 InvalidateSelection.
11592 (SetDataSource): cancel any editing that's going on.
11594 * DataGridColumnStyle.cs
11595 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
11596 call the non-interface version.
11598 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
11599 header rectangle with the clip rectangle so we don't redraw the
11600 entire header for just a small area. Gets rid of the last flicker
11601 when horizontally scrolling.
11602 (DataGridPaintRow): same.
11604 2006-05-23 Mike Kestner <mkestner@novell.com>
11606 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
11607 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
11608 poorly placed checkbox on the MS control. Fixes Alex's unfiled
11609 Critical bug report.
11611 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
11613 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
11614 and this fixes #78493
11616 2006-05-23 Miguel de Icaza <miguel@novell.com>
11618 * Theme.cs (GetSizedResourceImage): Scale images if the proper
11621 * FileDialog.cs: Do not change the background for the side bar as
11622 it wont work nicely with the theme, and also reduces the artifacts
11623 in rendering the icons (which I want to fix too).
11625 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
11626 resources, not resgen resources.
11628 (PlatformDefaultHandler): Pull images using the new API.
11630 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
11632 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
11633 a reference to the hwnd and will not remove it unless there are
11634 no pending exposures (fixes #78341)
11635 * XplatUI.cs: Improved debug
11637 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
11639 * MenuAPI.cs : don't handle OnClick event when it was not the left
11640 button. Fixed bug #78487.
11642 2006-05-23 Mike Kestner <mkestner@novell.com>
11644 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
11645 prefer submenus to the top menu for item lookup, to avoid popping down
11648 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
11650 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
11651 Graphics.FillRectangle as the visual results are really bad (even
11652 on win). We now draw perfect arrows (and perfect shadows when the
11653 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
11654 Pen.DashPattern to draw the dots of each line.
11656 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
11658 * FileDialog.cs: Update the filename combobox when navigating through
11659 the ListView with the cursor keys. Fixes part 7 of bug #78446.
11661 2006-05-22 Mike Kestner <mkestner@novell.com>
11663 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
11666 2006-05-22 Mike Kestner <mkestner@novell.com>
11668 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
11669 requests. Fix a misspelled parameter and a copy paste exception error
11672 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
11674 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
11675 to get the same width/height (5/13) on X11 as the default font has on
11676 win32. This means that our DefaultFont emSize is smaller than the
11677 the MS SWF equivalent (even thought the width/height stays the same)
11679 2006-05-20 Jackson Harper <jackson@ximian.com>
11682 * MdiWindowManager.cs:
11683 * InternalWindowManager.cs: Make sure to use the border width from
11686 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
11688 * PrintDialog.cs: Implements printer details
11690 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
11692 * FileDialog.cs: Added focus handling for PopupButtonPanel.
11693 Fixes part 1 and 2 of bug #78446
11695 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
11697 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
11698 instead of sticking to the first ever calculated value
11700 2006-05-19 Mike Kestner <mkestner@novell.com>
11702 * ComboBox.cs: fix mouse motion selection to use MousePosition and
11703 PointToClient, since Capture is set. Fixes #78344.
11705 2006-05-19 Mike Kestner <mkestner@novell.com>
11707 * ListView.cs: match MS behavior in Details view where items are not
11708 drawn if Columns.Count == 0.
11709 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
11710 Use a separate pen to draw the check, since changing the width affects
11711 the box as well. Fixes #78454.
11713 2006-05-18 Miguel de Icaza <miguel@novell.com>
11715 * ListView.cs: ArgumentOutOfRangeException, single versions of the
11716 exception should throw the name of the invalid argument.
11718 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
11719 there are no files listed.
11721 2006-05-18 Jackson Harper <jackson@ximian.com>
11723 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
11726 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11728 * Control.cs: Brought back our old UpdateZOrder method as a private
11729 function and switched our calls from UpdateZOrder to the new one.
11730 This fixes the Paint.Net canvas disappearing bug.
11732 2006-05-18 Jackson Harper <jackson@ximian.com>
11735 * ThemeWin32Classic.cs:
11736 * InternalWindowManager.cs: Move the drawing into the theme,
11737 expose everything the theme should need from the window manager.
11739 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11741 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
11742 from the call to NativeWindow to avoid walking up the parent chain
11743 further than needed (speeds up setting cursors and avoids setting
11744 the wrong cursor if a parent has another cursor defined)
11745 * Cursor.cs: When loading an icon as cursor, MS uses the center of
11746 the icon as hotspot, not what's contained as hotspot in the icon
11747 file. This fixes the perceived drawing offset seen with Paint.Net
11749 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11752 - Store the calculated rectangle in Hwnd object and use it when
11753 setting the client size
11754 - Force Toolwindows to always be type Dock, to ensure they're on top
11756 2006-05-18 Mike Kestner <mkestner@novell.com>
11758 * ComboBox.cs: first pass at ComboBox rework. Layout is more
11759 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
11760 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
11761 Substantial refactoring to remove confusing nested classes. Coding
11762 standard and Get+Set->property refactorings. Shift to index based
11763 highlighting in ComboListBox instead of constantly using IndexOf and
11764 Items[]. Add invalidations on resize for DropDownList to fix ugliness
11765 in FileDialog growth. Draw borders manually since Simple mode needs
11766 to look like two independent controls. Make listbox border
11767 conditional to DropDownStyle. Improved OwnerDraw support.
11769 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
11771 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
11772 Don't set the disposed graphics to null, so we can throw the "right"
11773 exception if the graphics is reused later (added a flag to avoid
11774 double disposing). Some behaviours are different under 2.0 and are
11775 filled under bug #78448.
11777 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11779 * Control.cs: When double-buffering is enabled, we need to reset
11780 our graphics context between paint calls. Otherwise, any
11781 transformations and other alterations on the context will
11782 become cumulative (#77734)
11784 2006-05-18 Mike Kestner <mkestner@novell.com>
11786 * ListView.cs: do focused item selection like MS on clicks.
11787 Rework focus handling for ItemControl so LostFocus invalidates as
11789 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
11790 the ListView ItemControl has focus.
11792 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
11794 * XplatUIX11.cs: If client_window ends up being width or height zero
11795 due to border settings, move it off window inside whole_window (#78433)
11797 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
11799 * Mime.cs: Shrink the mime file cache correctly.
11801 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
11803 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
11805 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11807 * XplatUIX11.cs (AddExpose): More sanity checks
11809 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11812 - AddExpose: Don't add expose ranges outside the size of our
11814 - Cast opacity values to Int32 to avoid crashes with certain
11816 - Added disabled code paths that protect against illegal cross-
11817 thread painting (Developers.exe)
11819 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11821 * ProgressBar.cs: Invalidate the control when it's resized
11822 since block size is based on control size. (#78388)
11824 2006-05-16 Miguel de Icaza <miguel@novell.com>
11826 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
11827 of setting the incoming argument to the "reset" value, we set the
11828 this.datamember to string.empty (before we were invalidating the
11833 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11835 * Form.cs: Only apply transparency settings after the form
11836 is created. (Fixes #77800)
11838 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11840 * ApplicationContext.cs: Grab the HandleDestroyed event so
11841 we know when to fire OnMainFormClosed
11843 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11845 * Application.cs: Introduced sub-class to allow tracking of
11846 threads and centralized triggering of the event mess for
11847 ThreadExit, AppExit, etc.. (#76156)
11849 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
11852 - Do not return a null icon index value for a mime subclass.
11853 Instead try the main mime type class too.
11854 - Seems that some newer distributions don't have a link to some
11855 gnome default icons anymore. So check the default gnome dir too.
11858 2006-05-16 Jackson Harper <jackson@ximian.com>
11860 * MdiClient.cs: Don't paint the parent background image if we have
11861 our own background image.
11863 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11866 - PerformLayout: Do not shrink space filled by DockStyle.Fill
11867 controls, all filled controls are supposed to overlap (#78080)
11868 - UpdateZOrder is supposed to update the control's z-order in the
11869 parent's z-order chain. Fixed to behave like that
11870 - BringToFront: Removed obsolete code
11871 - SendToBack: Simplyfied
11872 - SetChildIndex: Trigger layout calculations when Z-order changes
11873 since layout is done by z-order
11875 2006-05-16 Chris Toshok <toshok@ximian.com>
11877 [ fixes bug #78410 ]
11878 * DataGrid.cs (set_AlternatingBackColor): use
11879 grid_drawing.InvalidateCells instead of Refresh().
11880 (set_BackColor): call grid_drawing.InvalidateCells.
11881 (set_BackgroundColor): use Invalidate instead of Refresh.
11883 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
11884 invalidate the cell area.
11886 2006-05-15 Chris Toshok <toshok@ximian.com>
11888 [ fixes bug #78011 ]
11889 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
11890 on to DataGridPaintRow.
11891 (DataGridPaintRow): take a clip argument, and only draw the cells
11892 which intersect it. same with the not_usedarea.
11894 * Theme.cs (DataGridPaintRow) add @clip parameter.
11896 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
11897 XplatUI.ScrollWindow.
11898 (ScrollToRow): same.
11900 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
11901 with last column which was causing a gray swath to appear with the
11902 XplatUI.ScrollWindow code.
11904 2006-05-15 Chris Toshok <toshok@ximian.com>
11906 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
11907 use XplatUI.ScrollWindow.
11908 (VerticalScrollEvent): use XplatUI.ScrollWindow.
11910 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
11912 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
11914 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
11916 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
11917 file since there are no equivalent X11 cursors
11919 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
11921 * MonthCalendar.cs : DateTimePicker should reflect selected date
11922 on mouse*up*, not mouse*down*. Fixed originally reported part of
11925 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
11927 * TabControl.cs : When argument index is equal or more than tab
11928 count, just ignore. Fixed bug #78395.
11930 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
11932 * Control.cs: Dispose all child controls when control is diposed (#78394)
11934 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
11936 * ColorDialog.cs: Finally it is possible to select the color with
11939 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
11941 * PrintDialog.cs: Fix typo
11943 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
11945 * PrintDialog.cs: PrintDialog is not resizable
11946 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
11947 color. Made some ToolBar drawing methods protected virtual.
11949 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
11951 * PrintDialog.cs: Implementation of the PrintDialog
11953 2006-05-12 Chris Toshok <toshok@ximian.com>
11955 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
11956 thumb, instead use MoveThumb. This has the side effect of making
11957 most of the other thumb moving machinery use MoveThumb as well.
11958 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
11959 need to actually invalidate the rectangle where the new thumb will
11961 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
11962 We force an Update() after, so it's not as fast as it could be,
11963 but at least there's zero flicker and no droppings.
11964 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
11965 (UpdateThumbPos): add another argument (dirty), which says whether
11966 or not to calculate/add dirty regions which we later invalidate.
11967 For cases where we know we're going to use MoveThumb, we pass
11968 false for this. Otherwise, pass true.
11970 2006-05-12 Jackson Harper <jackson@ximian.com>
11972 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
11975 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
11977 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
11978 and GetClipRegion methods and UserClipWontExposeParent property.
11979 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
11980 overriding UserClipWontExposeParent property, setting to false, since
11981 Win32 handles the required expose messages to draw our clipped parent
11983 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
11984 PaintEventStart to set the user clip region if set.
11986 - Now internally tracking the Region for the control since we need to
11987 store it if the handle is not yet created and only set it when it
11988 becomes created. Before setting the region forced handle creation
11989 - Added code to draw the parents underneath a user-clipped region
11990 * Hwnd.cs: Added UserClip property
11992 2006-05-12 Chris Toshok <toshok@ximian.com>
11994 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
11995 (set_Maximum): same.
11996 (set_Minimum): same.
11997 (set_SmallChange): same.
11998 (OnMouseUpSB): remove the call to refresh when releasing the
11999 thumb. We shouldn't need it.
12001 2006-05-12 Miguel de Icaza <miguel@novell.com>
12003 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
12004 AutoSize set to None, we do not need to relayout everything, we
12005 just need to invalidate the current region.
12007 (Draw): Do not draw the entire ClientArea, just redraw the
12008 clip area being passed.
12010 * MdiClient.cs: Make MdiClient constructor with the Form argument
12013 2006-05-12 Jackson Harper <jackson@ximian.com>
12015 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
12016 parents background image, but strangely not their own.
12017 - (DrawStatusBarPanel): Take into account horizontal alignment
12018 when drawing the strings and icons.
12020 2006-05-12 Mike Kestner <mkestner@novell.com>
12022 * ListBox.cs: avoid invalidations for focus when the collection is
12025 2006-05-12 Chris Toshok <toshok@ximian.com>
12027 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
12028 invalidate the entire thumb area. Call InvalidateDirty which
12029 limits the redraw to the thumb itself and surrounding pixels.
12031 * XplatUIX11.cs (ScrollWindow): optimize copying.
12033 2006-05-12 Chris Toshok <toshok@ximian.com>
12035 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
12036 Figure out the positioning/layout in a single pass instead of
12037 multiple recursive invocations. Speeds up the initial display of
12038 the data grid. Also, make many things private that were
12039 originally public but unused outside this class.
12041 2006-05-11 Jackson Harper <jackson@ximian.com>
12043 * MdiClient.cs: Improved layout code.
12045 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
12047 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
12048 not SelectedObject.
12050 2006-05-11 Chris Toshok <toshok@ximian.com>
12052 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
12053 union of that will always be {0,0,width,height}.
12055 2006-05-11 Jackson Harper <jackson@ximian.com>
12057 * Form.cs: Match MS's DefaultSize for forms (they must have
12058 changed the size in sp2).
12060 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
12062 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
12064 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
12066 * TextControl.cs : Fixed bug #78109. This incorrect position
12067 comparison caused crash on automatic line split.
12068 * TextBoxBase.cs : reduce duplicate code.
12070 2006-05-10 Jackson Harper <jackson@ximian.com>
12072 * MdiClient.cs: Active form is only sent to the back when using
12073 the Next form functionality, when a form is clicked the current
12074 active shouldn't be sent to the back.
12075 - Layout the mdi windows when the container is first made visible.
12076 * Form.cs: Give the MdiClient a ref to the containing form when we
12079 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
12081 * LinkLabel.cs : link_font could be uninitialized, so populate one
12082 before actual use. Fixed bug #78340.
12084 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
12086 * XplatUIX11.cs : clipboard format native value is IntPtr.
12089 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
12092 - Instead of showing context menus directly we send WM_CONTEXTMENU,
12093 which is passed up the parent chain by DefWndProc
12094 - We now handle WM_CONTEXTMENU to display any menu, or pass it
12095 to DefWndProc (#77956)
12096 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
12098 2006-05-10 Jackson Harper <jackson@ximian.com>
12100 * MdiClient.cs: We need to remove the controls from the mdi
12101 collection, when we close the window.
12102 * MdiWindowManager.cs: Special handling of closing mdi windows.
12103 * InternalWindowManager.cs: Make the close method virtual so the
12104 mdi window manager can handle it specially.
12106 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
12109 - Recalculate grid when the data source has changed
12110 - Matches styles provided by user from all data sources types
12111 * DataGridTableStyle.cs: For columns that provided by the user set the
12112 with the preferred value is there was unassigned.
12113 * CurrencyManager.cs: throw OnItemChanged event
12115 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
12117 * PictureBox.cs: Don't animate until handle is created. Start animation
12118 when handle is created.
12120 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
12122 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
12124 * XEventQueue.cs: We don't need to provide the extra info
12126 2006-05-10 Jackson Harper <jackson@ximian.com>
12128 * MdiClient.cs: If the mdi clients parent form has a background
12129 image set, we draw that background image for the mdi area's
12132 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
12134 * TextBoxBase.cs: Set IBeam cursor (#78347)
12136 2006-05-10 Mike Kestner <mkestner@novell.com>
12138 * ToolBar.cs: fix some text padding issues with ButtonSize
12139 calculation. Update the default size to match MS documentation.
12140 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
12141 button size. Fixes #78296.
12143 2006-05-10 Mike Kestner <mkestner@novell.com>
12145 * ListBox.cs: use is_visible for scrollbar positioning in case the
12146 control isn't on screen yet. Fix off by one with Right vs Width
12147 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
12149 2006-05-10 Jackson Harper <jackson@ximian.com>
12151 * X11Dnd.cs: Drop to a control with another control on top of it.
12152 * ToolBar.cs: Work on a copy of the buttons list, so that it can
12153 be modified in click handlers. TODO: Look for similar problems in
12156 2006-05-09 Jackson Harper <jackson@ximian.com>
12158 * Form.cs: Window managers need the old window state when setting
12160 * InternalWindowManager.cs: Allow the base mdi window manager to
12161 handle more of the MDI only stuff (like maximize buttons).
12162 * MdiWindowManager.cs: Fix some snafus in changing the window
12163 state. Add all the menu functionality, for both popup and
12165 * MdiClient.cs: When a new form is selected the currently
12166 activated form is sent to the back, this matches MS.
12167 - Implement a new method to activate the next mdi child window.
12169 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
12172 - Added new InternalCapture method to allow controls to prevent
12173 the capture behaviour on the click handlers
12174 - Switched to use InternalCapture
12176 - Using InternalCapture to prevent mouse captures from being released
12177 on mouse button release (Fixes #78100)
12178 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
12179 returns Form borders if a caption is present. (Fixes #78310)
12181 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
12183 * TreeNode.cs: Changed serialization .ctor to not require every field
12184 to be present. (#78265)
12185 * OwnerDrawPropertyBag.cs: Added serialization .ctor
12187 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
12189 * MimeIcon.cs: for is faster than foreach for strings.
12191 2006-05-05 Mike Kestner <mkestner@novell.com>
12193 * CheckedListBox.cs: update check handling code to not use selected.
12194 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
12195 behavior for visual feedback, motion response, shift/ctrl handling,
12196 and properly deal with all 4 selection modes. Updates to bounds
12197 handling logic. Add scroll wheel support. [Fixes #77842]
12199 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
12202 - Moved adding of Implicit controls into .ctor. That way, subsequent
12203 creation of the controls will not cause them to think they are
12204 toplevel windows (fixes #78200 header problem)
12205 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
12206 - Switched visibility setting of header control to use internal field
12207 to avoid triggering handle creation
12208 - Now checking if handle is created before causing a refresh when items
12209 are added (This makes us now match handle creation time with MS)
12210 * Splitter.cs: Removed loading of private splitter cursor, switched to
12211 Cursors version now that that is loading the right ones
12212 * Cursors.cs: Load proper splitter cursors from resources
12213 * Cursor.cs: Added second method of loading resource cursors for the
12214 VS.Net users amongst us
12216 2006-05-05 Mike Kestner <mkestner@novell.com>
12218 * ListView.cs: give header_control a minimum size based on the
12221 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
12223 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
12224 window seems to do that with metacity, so set that type. (#78120)
12226 2006-05-05 Mike Kestner <mkestner@novell.com>
12228 * ListViewItem.cs: fix Details mode checkbox layout bug.
12229 * ThemeWin32Classic.cs: draw a ListView column header for unused space
12230 at the end of the header, if it exists. [Fixes for #78200]
12232 2006-05-04 Jackson Harper <jackson@ximian.com>
12234 * MdiClient.cs: Add a helper property to get the container form.
12235 * MdiWindowManager.cs: We have to make sure to use the menu origin
12236 when drawing the icons and buttons, this fixes maximized window
12237 icons/buttons on win32.
12238 * InternalWindowManager.cs: Reset the restore captions when a
12239 window goes from Maximized to Minimized and vice versa. Move the
12240 DrawMaximizedButtons into the MdiWindowManager source, tool
12241 windows can't be maximized. NOTE: This could use a little
12242 refactoring if time ever permits.
12244 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
12246 * TextBox.cs: Add MWFCategoryAttributes
12247 * TextBoxBase.cs: Add MWFCategoryAttributes
12248 * Form.cs: Add MWFCategoryAttributes
12250 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
12252 * Control.cs: Add MWFCategoryAttributes
12253 * ScrollableControl.cs: Add MWFCategoryAttributes
12255 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
12257 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
12258 Divider is true. Fix a little glitch in PropertyToolBar
12261 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
12264 - Dispose: Call base.Dispose, this causes the disposed event
12265 to be fired (and probably other, more important stuff)
12266 - SetVisibleCore: Set is_visible to true after creating the
12267 window so that the window still gets created invisible (if
12268 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
12269 to generate a WM_ACTIVE message
12270 * Form.cs: Call Dispose when we want to destroy the window, instead of
12271 just destroying the handle (Dispose will do that for us)
12273 - RootWindow also needs a queue, so we can properly process the
12274 property change events from RootWindow (like Activate)
12275 - Generatic synthetic WM_ACTIVE message when the active window is
12278 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
12280 * LinkLabel.cs: Trigger a recalc of our label dimensions when
12283 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
12285 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
12286 for determining width and height (image might not be assigned if
12287 we're drawing an imagelist)
12289 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
12291 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
12292 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
12294 * Theme.cs: No longer returns hardcoded menu height, instead calls
12296 * Form.cs (OnLoad): Scaling happens before triggering Load events
12299 2006-05-01 Mike Kestner <mkestner@novell.com>
12301 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
12303 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
12305 * TextBoxBase.cs: Removed Fixme
12306 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
12308 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
12311 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
12312 the rectangle relative to the parent, considering borders. We
12313 don't really want that.
12314 - ScrollWindow: Fixed warning to be more understandable
12315 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
12316 scrollbars and scroll only the visible area
12317 * RichTextBox.cs: Removed debug output
12319 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12321 * NumericUpDown.cs (Text): Just use base
12322 * UpDownBase.cs: Ensure txtView is created before using it
12324 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12326 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
12327 casting to IntPtr to avoid 64bit overflow errors
12329 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12332 - AllowDrop: Don't force handle creation.
12333 - CreateHandle: Added call to tell driver if we're allowed to drop
12335 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
12337 * FileDialog.cs: Remember the last directory not only for the
12338 current instance but also for new FileDialog instances.
12340 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12342 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
12343 broke sending async messages
12345 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12348 - ScrollWindow: Fixed method. We finally generate expose events again
12349 for scrolled areas. This was causing 'garbage' when scrolling
12350 textbox and other controls that used ScrollWindow
12351 - Switched from using the regular queue for paint events to the MS
12352 model of 'generating' paint events when the queue is empty.
12353 We use the new XQueueEvent.Paint subclass to store which windows
12355 - AddExpose now takes the x/y/width/height of the exposed area
12356 and inserts the window into the paint queue if not already there
12357 - InvalidateWholeWindow: Switched to use new AddExpose method
12358 - UpdateMessageQueue: Added which queue to monitor for paint events
12359 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
12360 the unlikely case nothing above handles it. We reset the expose
12361 pending states to get them off the queue.
12362 - GetMessage: Now pulls a paint event if no other events are in the
12364 - Invalidate: Switched to new AddExpose method
12365 - PeekMessage: Updated to understand pending paint events
12366 - UpdateWindow: Fixed logic bug. We were only updating if the window
12367 didn't need updating. Also switched to sending WM_PAINT directly,
12369 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
12370 and random access Remove(). The random access is needed to handle
12371 UpdateWindow() where a WM_PAINT is sent directly without accessing
12373 * ScrollBar.cs: Added Update() calls to cause immediate updates to
12374 allow for better feedback when scrolling. Scrollbars are small and
12375 the immediate update should make it 'feel' more responsive without
12376 slowing things down. ScrollBar still needs it's invaliate logic
12377 updated to not always invalidate the whole bar on certain changes.
12379 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12382 (BackColor): if the control does not support a transparent background,
12383 return the default backcolor when the parent backcolor is transparent.
12385 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
12387 * Application.cs: Updated to new StartLoop/GetMessage API
12388 * RichTextBox.cs: Provide some output on RTF parsing errors
12389 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
12390 new queue_id argument to GetMessage and PeekMessage to allow faster
12391 handling of per-thread queues in drivers.
12392 * Hwnd.cs: Added Queue tracking and property
12393 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
12394 * XEventQueue.cs: Added thread trackingA
12395 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
12397 - Implemented new per-thread queue
12398 - GetMessage: Fixed return/break behaviour on several cases. We were
12399 returning stale messages in some cases, instead of just processing
12402 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
12404 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
12406 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
12408 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
12409 fixed off-by-one comparisons between Width/Height and Right/Bottom.
12411 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
12413 * PropertyGridView.cs: Fix drop down width.
12415 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
12417 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
12418 a mess in DrawToolBar, so I removed one of them.
12420 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
12422 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
12423 needed (clip). Otherwise we get artifacts.
12425 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
12427 * FixedSizeTextBox.cs: Added constructor to allow specifying which
12429 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
12430 and switched FixedSizeTextBox to only be fixed vertical (#78116)
12431 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
12432 if it matches the scale base font (avoids unneeded scaling)
12434 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
12436 * X11DesktopColors.cs: One gtk_init_check should be enough
12438 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
12440 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
12443 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
12446 - Generate OnTextChanged for Backspace even if we're only deleting
12447 the current selection
12448 - When setting the Text property, only select all text if the
12449 control does not have focus when it is being set. Otherwise
12450 just place the cursor at the beginning of the control
12452 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
12454 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
12455 Added a little helper to draw PropertyGrid ToolBar with a different
12456 border and a different BackColor.
12457 * PropertyGrid.cs: Some background parts didn't get painted with the
12458 correct background color. Added a class that helps us to draw the
12459 correct border for PropertyGridView and a class that helps us to
12460 draw ToolBars with a different backcolor
12461 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
12463 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
12465 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
12466 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
12468 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
12470 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
12471 into the palette entries. Also, since we're working on a copy
12472 we needed to copy the palette back onto the bitmap.
12473 * Cursor.cs: Same fix as XplatUIWin32.cs.
12475 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
12477 * ImageListStreamer.cs: Need to read the var (or we're off)
12479 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
12481 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
12482 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
12483 TextBoxBase.cs: Unused var fixes
12484 * AxHost.cs: Small 2.0 fix
12485 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
12486 as it seems that is what at least Metacity expects. This will make
12487 icons show up on 64bit platforms. We still have some 64bit size
12488 issues, though, since the startup app window size still won't match.
12490 2006-04-25 Mike Kestner <mkestner@novell.com>
12492 * *.cs: cleanup newly reported exception var unused warnings.
12494 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
12496 * ThemeWin32Classic.cs: Button image alignment now matches exactly
12499 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
12501 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
12502 image. The image position is always the same, no matter if the
12503 button is pressed or not.
12505 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
12507 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
12508 selection and set the correct filename for SaveFileDialog.
12509 Patch by Emery Conrad.
12511 2006-04-24 Mike Kestner <mkestner@novell.com>
12513 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
12514 check for item.X outside the ClientRect instead of item.Y. Fixes
12517 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12519 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
12520 trust that value blindly and do some sanity check. Fixes bug #77814.
12522 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12524 * ImageListStreamer.cs: save the mask as a 1bpp image.
12526 2006-04-21 Mike Kestner <mkestner@novell.com>
12528 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
12529 pass Checked and Indeterminate to the Theme Engine. Improve
12530 encapsulation with ListBox.
12531 * ListBox.cs: Keep a StringFormat instead of calculating it every item
12532 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
12533 nested types. Move all CheckState functionality to CheckedListBox.
12534 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
12535 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
12536 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
12537 single base list. Fix scrollbar sizing and placement to mirror MS.
12538 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
12540 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
12541 for CheckedListBox by using new DrawItemState info. Center the
12542 checkboxes on the items. Use new StringFormat property.
12544 2006-04-18 Jackson Harper <jackson@ximian.com>
12546 * Form.cs: MdiChildren don't do default locations the same way as
12547 regular forms. This prevents a crash when trying to position the
12550 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
12552 * PropertyGridTextBox.cs: Formatting, copyright
12553 * PropertiesTab.cs: Formatting
12554 * PropertyGrid.cs: Formatting
12555 * PropertyGridView.cs: Formatting, fix drop down, enabled double
12556 click toggling of values
12558 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
12560 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
12561 * Control.cs (.ctor): verify_thread_handle is static, don't reset
12562 every time a control is created
12563 * Application.cs: Removed obsolete EnableRTLMirroring method
12565 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
12567 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
12568 SelectedIndex to -1. Fixes bug #78121.
12570 2006-04-17 Jackson Harper <jackson@ximian.com>
12572 * Binding.cs: Handle null values for Current and BindingContext.
12573 This occurs when binding is a little delayed.
12574 * CurrencyManager.cs: return null for Current when there are no
12576 - Hookup to the listchanged event on the DataView and update
12577 bindings when the list is changed. This fixes late binding of
12580 2006-04-17 Jackson Harper <jackson@ximian.com>
12583 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
12586 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
12588 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
12590 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
12591 with the correct ButtonState
12593 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
12595 * XplatUIX11.cs: Improved distinguishing between window types to
12596 tell the WM a type closer to what the app wants (Fixes #78107)
12598 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
12600 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
12603 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
12605 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
12606 drawing code to reflect the size grip changes
12608 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12610 * ImageListStreamer.cs: fix handling of the mask that follows the main
12611 bitmap when deserializing and serialize it properly. The generated mask
12612 should better be a 1bpp image, but I'll do that later.
12614 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
12616 * FileDialog.cs: Show something in the DirComboBox on *nix if the
12617 path doesn't fit into some of our Current.Places
12619 2006-04-13 Jackson Harper <jackson@ximian.com>
12621 * ComboBox.cs: Use borders instead of drawing our own decorations,
12622 try to obey correct rules for heights.
12625 * ThemeClearLooks.cs:
12626 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
12627 this is now handled by borders.
12628 - Remove unused DrawListBoxDecorationSize method.
12630 2006-04-13 Mike Kestner <mkestner@novell.com>
12632 * MenuAPI.cs: null guarding for the disbled click check fixes crash
12635 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
12637 * ThemeWin32Classic.cs:
12638 - Fixed CPDrawStringDisabled
12639 - Corrected drawing of disabled menu items
12640 - Fixed drawing of disabled radio buttons (bug #78095)
12641 - Draw check in a disabled CheckBox with color ControlDark
12643 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12645 * Form.cs: Use the provided width when calculating the menu size;
12646 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
12647 and ClientSize.Width won't be updated yet
12648 * Application.cs: Use Visible instead of Show() to make form visible,
12649 this way we create the handle later and menusize is considered
12651 2006-04-12 Mike Kestner <mkestner@novell.com>
12653 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
12656 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12658 * TextBox.cs: Implemented context menu
12660 2006-04-12 Mike Kestner <mkestner@novell.com>
12662 * ListView.cs: implement box selection. fixes #77838.
12663 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
12665 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12667 * XplatUIX11.cs: Added setting of window type when transient window
12668 is created (metacity would move it otherwise)
12669 * X11Structs.cs: Added WINDOW_TYPE atoms
12670 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
12671 background (the control is Opaque but still wants transparent
12674 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12676 * Control.cs: Added OnPaintBackgroundInternal to allow controls
12677 that set Opaque but don't mean it (like all ButtonBase-derived
12678 controls) to still draw their background
12679 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
12682 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12684 * Control.cs (PaintControlBackground): Set the graphics object
12685 on our PaintEvent to null to prevent it from being disposed
12686 when the PaintEvent gets disposed
12688 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
12690 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
12691 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
12693 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12696 - Added transparency check to BackColor property. Transparent
12697 backgrounds are only allowed if the control styles permit it
12698 - Added recursive painting of parent control background and
12699 foreground if a control with a transparent backcolor is drawn
12700 (Thanks to Tim Ringenback for providing his 'hack' as a base
12701 for this patch) Fixes #77985 and #78026.
12702 - Added Opaque style check before calling OnPaintBackground, no
12703 need to draw the background if the control is opaque
12704 - Removed ControlAccessibleObject owner variable (inherited from
12705 base, no need to define again)
12706 - Added some documentation links explaining the drawing events
12709 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12711 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
12712 that the affected control is the located at the left border of our
12713 parent (Fixes #77936)
12715 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12717 * TextBoxBase.cs: When rendering disabled or readonly controls,
12718 draw the background with 'Control' instead of 'Window' color as
12719 long as the user hasn't specifically set a color
12721 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12723 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
12724 since that won't be updated if the user types text (only if it's
12725 programatically set)
12727 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12729 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
12730 layout changes do to app-triggered resizes will have the proper
12731 display rectangle for layout
12733 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
12735 * ThemeWin32Classic.cs:
12736 - Make use of the SystemBrushes and SystemPens wherever possible
12737 - Corrected some highlight colors
12738 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
12740 * Theme.cs: Added Empty field to CPColor struct
12742 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12744 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
12745 is displayed when calculating the display rectangle. Thanks to Mike
12746 for teaching me the err of my ways.
12748 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
12750 * ScrollableControl.cs:
12751 - Rewrote DisplayRectangle code, now returning the proper x/y coords
12752 (instead of 0,0) and we now return the real width/height instead of
12753 just the clientrectangle, adjusted for padding. The rectangle is
12754 now cached and created by the new CalculateDisplayRectangle method.
12755 - Created new CalculateDisplayRectange method, which basically does
12756 what get_DisplayRectangle() did originally, but now using the
12757 right edge instead of DisplayRectangle to determine the size of
12759 - get_Canvas(): Fixed it to properly calculate canvas for
12760 right/bottom controls which seem to be placed to the right/bottom
12761 of any controls that have a fixed location
12762 - Removed TODO that's taken care of
12763 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
12764 and SetDisplayRectLocation according to new MSDN2 docs
12765 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
12766 event when that is called, this is added for compatibility
12767 - ScrollControlIntoView(): Implemented.
12768 - Switched scrollbars to be implicit, they shouldn't be selectable
12769 * ContainerControl: Now that ScrollControlIntoView is implemented, we
12770 call it when the active control is set/changed
12771 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
12772 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
12773 implicit_control variable (used for native Win32 message generation)
12774 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
12775 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
12776 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
12777 * XplatUIStructs.cs: Added ScrollBarCommands enum
12779 2006-04-10 Jackson Harper <jackson@ximian.com>
12782 * CheckedListBox.cs:
12789 * PrintPreviewControl.cs:
12795 * UpDownBase.cs: Fixup base event overrides.
12797 2006-04-06 Mike Kestner <mkestner@novell.com>
12799 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
12800 all user-initiated value changes to min <= value <= max-thumbsz+1.
12801 (set_Value): check for vert/horiz when calculating new thumb position.
12802 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
12804 (OnMouseMoveSB): refactor the thumb dragging code and refine
12805 invalidation logic to reduce flicker.
12806 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
12807 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
12808 (UpdateThumbPosition): small code readability cleanup
12810 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
12812 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
12815 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
12817 * ThemeNice.cs: Use a better graphics effect when a button is pressed
12819 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
12821 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
12822 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
12823 This dramatically reduces the number of Pen.Dispose calls.
12824 Where possible call ResPool methods only once instead of calling it
12825 over and over again (for example for the same color).
12827 2006-04-06 Mike Kestner <mkestner@novell.com>
12829 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
12830 Also remove an unused private field on the collection. Fixes #77972.
12832 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
12834 * ThemeNice.cs: Added ToolBar drawing code
12836 2006-04-06 Mike Kestner <mkestner@novell.com>
12838 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
12839 I'm assuming that means we need to look up the toplevel for the
12840 provided control. Fixes the crash trace in #77911 but exposes another
12841 crash in some strange reflection usage in NDocGui.
12843 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
12845 * ThemeNice.cs: Gave it a little silver touch and added Images
12847 * FontDialog.cs: FontDialog is not resizable
12848 * FileDialg.cs: Added SizeGripStyle.Show
12850 2006-04-05 Jackson Harper <jackson@ximian.com>
12852 * KeyboardLayouts.cs: Remove warning.
12854 2006-04-05 Jackson Harper <jackson@ximian.com>
12856 * Control.cs: Enable OnPaintInternal so we can use it for drawing
12857 all of our controls instead of Paint +=.
12872 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
12873 use OnPaintInternal. Remove Width/Height and Visible checks in
12874 paint handler, this is done at a higher level now.
12875 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
12876 * PaintEventArgs.cs: Add a handled flag so controls that don't
12877 want anymore painting after OnPaintInternal can make sure OnPaint
12880 2006-04-05 Mike Kestner <mkestner@novell.com>
12882 * Form.cs: fix the menu WndProc hacks to respect the native enabled
12883 state of the form, so that we don't process events when Modal dialogs
12884 are up. Fixes #77922.
12886 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
12888 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
12891 2006-04-05 Mike Kestner <mkestner@novell.com>
12893 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
12895 2006-04-05 Mike Kestner <mkestner@novell.com>
12897 * ListView.cs (HeaderMouseMove): null guarding for the over column
12898 when setting up the drag_to_index. Fixes #78015.
12900 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
12902 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
12903 in the taskbar. Transient windows seem to accomplish that.
12905 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
12908 - Re-enabled CreateParams.X/Y code for FormStartPosition
12909 - Added code for manual placement when creating the Control
12910 - Incomplete patch to treat MDI forms differently when
12911 setting the ClientSizeCore. (Still need to figure out handling
12914 - When we're explicitly setting the X/Y position of a non-Child
12915 window, let the WM know. Metacity really wants this.
12917 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
12919 * ThemeNice.cs: Added CPDrawButton
12921 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
12923 * ThemeNice.cs: Changed the color for focused buttons and activated
12924 the arrows for small scroll buttons.
12926 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
12928 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
12929 anymore. Changed some method modifiers to protected (virtual)
12930 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
12932 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
12933 Updated drawing of menus, buttons and progressbars; added
12936 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12938 * ImageListStreamer.cs: implemented serialization/deserialization
12941 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
12943 * ThemeWin32Classic.cs:
12944 - Removed all the DrawFrameControl stuff; CPDrawButton,
12945 CPDrawCheckBox and CPDrawRadioButton are now handled directly
12947 - Updated and corrected the drawing code of CPDrawButton,
12948 CPDrawCheckBox and CPDrawRadioButton to better match ms
12949 - Updated theme checkbox and radiobutton code to use the CP*
12952 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
12954 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
12957 2006-03-31 Jackson Harper <jackson@ximian.com>
12959 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
12961 * UpDownBase.cs: Don't CreateGraphics manually, use a
12962 Refresh. Ideally we would invalidate the correct areas here.
12964 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
12967 - We now track the mapping state of windows. If a window (or
12968 one of it's parents) is not mapped we no longer permit
12969 WM_PAINT messages to be generated since we'd otherwise get
12970 lots of BadMatch X errors. Jackson did all the work figuring
12972 - Destroying the caret if the window it's contained in is
12973 destroyed. Can't use regular DestroyCaret method since it
12974 might fall into a drawing function (trying to remove the
12975 caret) and with that generate new BadMatch errors. Again,
12976 Jackson tracked this down.
12977 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
12978 make sure we send the messages to all windows. (The old code
12979 would send the WM_DESTROY to the window, and then all child
12980 windows would be 'gone' because the WM_DESTROY handle lookup
12981 would no longer find the destroyed window)
12982 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
12983 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
12985 2006-03-31 Jackson Harper <jackson@ximian.com>
12987 * ScrollableControl.cs: Dont recalc if we are not visible.
12989 2006-03-31 Mike Kestner <mkestner@novell.com>
12991 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
12992 the visibility branch.
12994 2006-03-31 Jackson Harper <jackson@ximian.com>
12996 * ScrollBar.cs: Cap values when incrementing/decrementing.
12998 2006-03-31 Mike Kestner <mkestner@novell.com>
13000 * MenuAPI.cs: setup menu.tracker for popup/context menus.
13001 * ToolTip.cs: guard against timer expirations with no active control.
13002 Not sure why it happened.
13004 2006-03-31 Mike Kestner <mkestner@novell.com>
13006 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
13008 * ToolTip.cs: Position the tooltip based on where the cursor is at
13009 popup time, not at MouseEnter time. Add a Down state so that we don't
13010 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
13011 positioning offset. Lookup DisplaySize at positioning time, since it
13012 can theoretically change during invocation.
13013 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
13014 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
13016 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
13018 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
13019 Fixes behaviour when the Text property of the box is String.Empty
13021 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
13023 * XplatUIX11.cs: Only send mouseleave for our client windows, not
13024 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
13027 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
13029 * FileDialog.cs: Visual enhancement for the popup buttons in
13032 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
13034 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
13037 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
13039 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
13040 highlighted menu items to match ms
13042 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
13044 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
13046 2006-03-30 Mike Kestner <mkestner@novell.com>
13048 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
13049 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
13050 go active to account for HotLight to Selected transition.
13051 * MenuItem.cs: add internal Selected prop. Fill out the Status
13052 property by calculating it from item info. Add HotLight,
13053 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
13055 2006-03-30 Mike Kestner <mkestner@novell.com>
13057 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
13059 2006-03-29 Jackson Harper <jackson@ximian.com>
13061 * Form.cs: Implement TODO.
13063 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
13065 * PrintPreviewDialog.cs: Implemented missing methods and events; still
13066 missing proper dialog setup in the constructor
13068 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
13070 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
13072 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
13073 - Fixed ResetBindings and removed TODO
13074 - Added check for cross-thread calls to get_Handle()
13075 - Added Marshaller attribute for set_Font to satisfy class status
13076 * FontDialog.cs: Removed TODOs that seemed implemented
13077 * UpDownBase.cs: Removed unneeded TODO and Fixme
13078 * MessageBox.cs: Implemented support for Default button and removed TODO
13079 * FileDialog.cs: Removed obsolete TODO
13080 * DomainUpDown.cs: Removed obsolete TODO
13081 * ButtonBase.cs: Removed obsolete TODO
13082 * XplatUIWin32.cs: Removed obsolete TODO
13084 - Removed obsolete TODO
13085 - Calling CheckAcceptButton when the acceptbutton is changed to allow
13086 internal status updates
13087 - Making sure the active control is selected when the control is created
13088 * CurrencyManager.cs: Removed obsolete TODO
13090 2006-03-29 Mike Kestner <mkestner@novell.com>
13092 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
13093 of PrintPreviewDialog and RichTextBox.
13095 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
13097 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
13098 DarkDark, Light and LightLight colors for a specific color
13099 * ThemeWin32Classic.cs:
13100 - Use Button drawing code to draw RadioButtons and CheckBoxes with
13101 Appearance = Button
13102 - Make use of the new ResPool helper CPColor
13103 - Draw ProgressBar and StatusBar with correct 3D borders
13105 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
13107 * ColorDialog.cs: Return selected color. Fixes bug #77940.
13109 2006-03-28 Mike Kestner <mkestner@novell.com>
13111 * ListView.cs: fix Icon layout to plan for scrollbar widths when
13112 calculating col/row counts.
13114 2006-03-28 Mike Kestner <mkestner@novell.com>
13120 switch to explicit interface method implementation for some methods
13121 corcompare identifies as inconsistent with MS.
13123 2006-03-28 Mike Kestner <mkestner@novell.com>
13127 add a few missing methods from the class status output.
13129 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
13131 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
13134 2006-03-28 Mike Kestner <mkestner@novell.com>
13136 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
13138 2006-03-27 Mike Kestner <mkestner@novell.com>
13140 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
13141 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
13143 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
13145 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
13147 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
13149 * ThemeWin32Classic.cs:
13150 - GroupBox: Inserted a little gap between the text and the lines
13152 - Made the code in CPDrawBorder3D more readable
13153 - Corrected the drawing location of the up and down arrows in
13156 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
13158 * ControlPaint.cs: Corrected line widths in DrawBorder for
13159 ButtonBorderStyle Inset and Outset
13161 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
13163 * ThemeWin32Classic.cs:
13164 - Rewrote the totally broken CPDrawBorder3D method. That was
13165 one of the main problems for the terrific ThemeWin32Classic
13167 - Updated and corrected Button drawing
13168 - Correct the dimensions of the SizeGrip to match ms ones
13169 - Removed a small drawing glitch in DrawComboBoxEditDecorations
13170 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
13171 Border3DStyle.Sunken to match ms.
13173 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
13175 * ThemeWin32Classic.cs: First small part of the "de-uglify
13176 ThemeWin32Classic" effort, SizeGrip
13178 2006-03-24 Jackson Harper <jackson@ximian.com>
13180 * XplatUIX11.cs: Give a max idle time of one second, this matches
13181 MS and forces an Idle event every second when there are no other
13182 events in the queue.
13184 2006-03-24 Mike Kestner <mkestner@novell.com>
13186 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
13187 * ListView.Item.cs: fix layout issues with null image lists and images
13188 smaller than checkbox size.
13189 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
13190 mode like MS does. It's weird, but consistent. ;-)
13193 2006-03-24 Mike Kestner <mkestner@novell.com>
13195 * ListView.cs: Scroll wheel support for the item control. Fixes
13198 2006-03-23 Jackson Harper <jackson@ximian.com>
13200 * ScrollableControl.cs: Special case negative sized areas, not
13202 * MonthCalendar.cs: Save the rect of the clicked date so we can
13203 use it for invalidation.
13204 - Try to cut down on the number of invalidates
13205 - Invalidate the rect the mouse is over and was over when moving
13206 the mouse, so we get the focus box following the cursor.
13208 2006-03-23 Mike Kestner <mkestner@novell.com>
13210 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
13211 focus rectangle drawing. Fixes #77835.
13213 2006-03-23 Mike Kestner <mkestner@novell.com>
13215 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
13216 the if and else if and reverting back to the original == check on the
13219 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
13221 * FontDialog.cs: Update the example panel if the selected index of
13222 the fontListBox changes.
13224 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
13226 * FileDialog.cs: Make FileDialog remember which directory it was in
13227 last in the same execution.
13229 2006-03-22 Mike Kestner <mkestner@novell.com>
13231 * FileDialog.cs: make the DropDownMenu on the toolbar display
13232 RadioChecks since they are mutually exclusive and that's what MS does.
13234 2006-03-22 Mike Kestner <mkestner@novell.com>
13236 * Theme.cs: add Color param to CPDrawMenuGlyph.
13237 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
13238 checks and radio marks and arrows are visible on highlighted items.
13239 * ControlPaint.cs: update to use new Theme signature.
13241 2006-03-22 Mike Kestner <mkestner@novell.com>
13243 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
13244 is active. Fixes #77870.
13246 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
13248 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
13249 to be focused/selected after startup
13251 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
13254 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
13255 CustomColors and ShowHelp properties
13256 - Some internal rewrites to get better results when using the
13259 2006-03-22 Mike Kestner <mkestner@novell.com>
13261 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
13262 HoverSelection. Fixes #77836.
13264 2006-03-22 Mike Kestner <mkestner@novell.com>
13266 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
13267 ToggleButtons. (De)Sensitize the Back button around a stack count of
13268 1, not 0. Update ButtonSize based on a pixel count of the win32
13269 control. Adjust the toolbar size/location for new button size.
13271 2006-03-22 Jackson Harper <jackson@ximian.com>
13273 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
13275 * ScrollBar.cs: When doing increments and decrements we need to
13276 set the Value property so that ValueChanged gets raised. A
13277 possible optimization here would be to make an internal SetValue
13278 that doesn't invalidate immediately.
13279 * ToolTip.cs: Tooltips get added to their container (when
13280 supplied) so they get disposed when the container is disposed.
13281 - Don't create tooltips for String.Empty. This prevents all these
13282 little 2-3 pixel windows from showing up when running nunit-gui
13283 and driving me mad.
13284 * Form.cs: Don't set topmost when setting the owner if the handles
13285 haven't been created yet. The topmost set will happen when the
13286 handles are created.
13288 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
13291 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
13292 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
13293 visible (to allow them to recalculate their sizes)
13295 2006-03-21 Mike Kestner <mkestner@novell.com>
13297 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
13298 methods. Removed a ton of redundant code. Still not really happy with
13299 the border rendering, but I think that's mainly because of the
13300 ControlDarkDark being black instead of a dark grey. Depending on how
13301 close we want to be, we might want to revisit those color choices.
13302 Among the new features added during the refactor were DropDownArrow
13303 pressed rendering, Disabled image rendering. Proper flat appearance
13304 boundary rendering. Removed the Divider and Wrapping dividers since I
13305 can't figure out any combination of themes and conditions to make the
13306 MS control draw a horizontal line on a toolbar despite what the
13307 Divider property docs indicate.
13308 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
13309 conditions and incorrect layout. Updated to coding standard.
13310 * ToolBarButton.cs: refactored layout and positioning code from
13311 ToolBar to here. Invalidate wherever possible instead of forcing
13312 redraws of the whole toolbar.
13313 (Known remaining issues: explicit ButtonSize smaller than provided
13316 2006-03-21 Mike Kestner <mkestner@novell.com>
13318 * ContextMenu.cs (Show): use the position parameter instead of just
13319 showing at the MousePosition.
13321 2006-03-21 Jackson Harper <jackson@ximian.com>
13323 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
13324 control handle this.
13325 * TreeNodeCollection.cs: If we are clearing the root node we need
13326 to reset top_node so calcs can still happen.
13327 * ThemeWin32Classic.cs: This is a Flags so we need to check
13330 2006-03-21 Jackson Harper <jackson@ximian.com>
13332 * DataGrid.cs: Create columns when the binding context has been
13334 * X11Structs.cs: Keysyms are uints.
13335 - Add size to fix build.
13337 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
13339 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13341 - Added ResetMouseHover method to allow controls to retrigger
13342 hovering if they need it more than once
13343 - Implemented MouseHoverTime and MouseHoverSize properties
13344 * Timer.cs: Start() must reset the interval
13345 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
13348 2006-03-21 Jackson Harper <jackson@ximian.com>
13350 * X11Keyboard.cs: improved layout detection. Move the nonchar
13351 tables into this file.
13352 * KeyboardLayouts.cs: Move the tables into resource files.
13354 2006-03-21 Mike Kestner <mkestner@novell.com>
13356 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
13358 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
13360 * Mime.cs: Various speed optimizations. Looking up mime types
13361 is now 2 times faster than before
13363 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
13365 * CreateParams.cs: Added internal menu field
13367 - Switched call order for UpdateBounds; now we always call
13368 the one that also takes ClientSize, and we're calculating the
13369 client size via driver method in the others. The previous
13370 method of tracking client size by difference wasn't working
13371 for forms where even the starting client size wouldn't match
13372 the overall form size (due to borders) (Part of fix for #77729)
13373 - CreateParams(): Do not use parent.Handle unless the handle is
13374 already created. Causes havoc with Nexxia and throws off our
13375 creation of controls
13377 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
13378 - Switched handling of ConfigureNotify over to new PerformNCCalc
13379 method (consolidates code)
13380 - Changed RequestNCRecalc to use new PerformNCCalc method
13381 - Added calls to RequestNCRecalc when menus and borders are changed
13382 to allow app to set NC size. (Part of fix for #77729) This matches
13383 when MS send a WM_NCRECALC on Win32 windows.
13384 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
13385 (Part of fix for #77729). This matches what MS does, they also
13386 send that message when the form is made visible.
13387 - XException.GetMessage: Improved usability of X errors by including
13388 a translation of the window into Hwnd and Control class
13389 - Improved debug info for window creation, reparenting and destruction
13390 - Created helper method WindowIsMapped() [Currently not used]
13391 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
13393 - CreateParams: Now setting our menu on the new internal menu field
13394 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
13395 avoid calculating the same property twice
13397 - Improved usability of ToString() for debugging purposes
13398 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
13399 determine the height of the menu, instead of just the font. This
13400 required to also create a graphics context and to keep a bmp
13401 around (for performance reasons)
13403 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
13405 * MenuAPI.cs: Added OnMouseUp method
13407 - Now remembering the requested client size, avoids size errors
13408 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
13409 instead of base if the menu is active. This is required due to
13410 control now capturing and releasing on down/up and it would
13411 prematurely release our menu capture
13413 2006-03-17 Jackson Harper <jackson@ximian.com>
13415 * KeyboardLayouts.cs: Add the czech layouts.
13417 2006-03-16 Jackson Harper <jackson@ximian.com>
13419 * Control.cs: Use the viewport space when sizing not the controls
13420 client size, so things like ScrollableControl that effect the
13421 viewport size (when scrollbars are added) are computed correctly.
13422 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
13424 - Handle creating BindingManagers for null data sources.
13425 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
13426 source, otherwise when rows are added they are added to the 'fake'
13427 datasource and we will crash when trying to set the position in
13429 - Use Implicit scrollbars on the datagrid so they arent
13432 2006-03-16 Jackson Harper <jackson@ximian.com>
13435 * InternalWindowManager.cs:
13436 * MdiWindowManager.cs:
13437 * X11Keyboard.cs: I really want Mike to love me again (fix
13438 compiler warnings).
13440 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
13443 - OnMouseDown: Switch to editing mode when clicking on the cell
13444 even if we're clicking on the cell that's currently
13446 - ProcessGridKey: Left/Right now wrap like MS.Net does
13447 - ProcessGridKey: Tab now knows to add a new row when tab is
13448 pressed in the cell of the last column of the
13450 - ProcessGridKey: Enter now adds another row if pressed in the last
13451 row and selectes the new row, same column cell
13452 - ProcessGridKey: Home/End navigate columns, not rows, like
13453 originally implemented
13454 - Broke ProcessKeyPreview code out into an extra Internal method
13455 so it can be called from the edit code
13456 * DataGridTextBox.cs (ProcessKeyMessage):
13457 - Switched to accept Tab keypresses
13458 - Added F2 handling to allow jumping to the end of the edited cell
13459 - Added logic to allow moving caret left/right inside edited cell
13460 and making the edited cell jump when the caret hits cell borders
13461 - Tab and Enter are now passed to the datagrid after being handled
13463 - Removed capture code now that Control handles it
13464 - set_SelectionStart now ensures caret is visible
13466 2006-03-16 Jackson Harper <jackson@ximian.com>
13468 * TrackBar.cs: Debackwards the increment/decrement for handling
13469 mouse clicks on the bar with vertical trackbars.
13470 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
13471 bottom to match MS.
13473 2006-03-16 Mike Kestner <mkestner@novell.com>
13475 * ListView.cs: make shift/ctrl keyboard and mouse selection
13476 consistent with the MS control. Fix a bug in
13477 SelectedListViewItemCollection.Clear that was pissing me off for the
13478 better part of a day because the collection was being altered
13479 underneath us as we walked the list.
13481 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
13483 * Control.cs: Not sure how we could miss this so long, but it seems
13484 that MS.Net has Capture set all the way from before calling
13485 OnMouseDown through sending the mouse events until after
13486 OnMouseUp. This will fix DataGrid's selection being set to end
13487 at the location of the MouseUp.
13489 2006-03-15 Jackson Harper <jackson@ximian.com>
13491 * BindingContext.cs: Check the binding after its added so that it
13492 can initialize the binding managers and hookup to events.
13493 * Binding.cs: Data members seem to sometimes include rows/cols in
13494 the format Row.Column we now take this into account.
13495 - Hookup to the position changed event so we can update the
13496 control when the position has changed in the data set.
13497 * CurrencyManager.cs: Take into account the row/col naming
13498 convention when creating dataset tables.
13499 * BindingContext.cs: Using a newer better way of storing
13500 datasource/datamember pairs. Hopefully this better matches MS for
13501 looking up binding managers.
13504 2006-03-15 Jackson Harper <jackson@ximian.com>
13506 * BindingContext.cs: The currency manager needs the data member
13507 name, if the member is a data set we use the name to find the
13509 * CurrencyManager.cs: When creating the list prefer an IList over
13511 - Attempt to create a DataTable from a DataSet (TODO: might need
13512 some better error checking here, although MS doesn't seem to have much)
13513 - If we have a DataTable create a view and use it as our list.
13515 2006-03-15 Mike Kestner <mkestner@novell.com>
13517 * ListView.cs: keep a matrix of the icon mode layout to facilitate
13518 keyboard navigation. Support Up/Down/Left/Right selection correctly
13519 for all 4 View modes.
13520 * ListViewItem.cs: add internal row/col fields for icon layouts.
13522 2006-03-15 Jackson Harper <jackson@ximian.com>
13524 * TabControl.cs: Redraw the tabs when we resize so their newly
13525 calculated sizes are drawn on screen.
13526 * X11Keyboard.cs: Begginnings of XIM support. We also now support
13527 composite characters.
13528 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
13529 - filter events so that composite characters can be created
13531 * X11Structs.cs: Add XIMProperties enum.
13533 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13535 * Control.cs (BringToFront, SendToBack): Don't use window or handle
13536 unless it's created
13538 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13540 * Control.cs (PerformLayout): We don't need to consider visiblity
13541 for anchoring, only for docking. This fixes 'whacky' alignment
13542 in listbox and other controls that use implicit scrollbars after
13543 the previous PerformLayout patch
13544 * ListBox.cs: Switched to use implicit scrollbars
13546 2006-03-14 Mike Kestner <mkestner@novell.com>
13550 - chain up the "new event" overrides to base and use
13551 OnEvent to raise them. Part of fix for bug #76509.
13553 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
13555 * FileDialog.cs: Do not select an item in the parent directory
13558 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13560 * Control.cs (PerformLayout): It would seem that we considered
13561 invisible windows for our layout. Not quite the right thing
13562 to do. Now we don't any longer, thereby fixing bug #76889.
13564 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13566 * Control.cs (CanFocus): I goofed. A control can have focus
13567 even though it's not selectable. Made it match MS docs.
13569 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13571 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
13572 center by default (fixes #76895)
13573 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
13574 all uses of Border3DSides.All with the explicit ORd together
13575 Left|Right|Top|Bottom because I assume that nobody was aware
13576 that All also implies a center fill. Most places I checked had
13577 a fill right above.
13578 * ProgressBarStyle.cs: Added
13580 2006-03-13 Mike Kestner <mkestner@novell.com>
13582 * ListView.cs: fix breakage in drag shadow header positioning
13583 from Peter's csc compilation fix.
13585 2006-03-13 Mike Kestner <mkestner@novell.com>
13587 * ListView.cs: fix NRE produced by backspacing twice in a focused
13590 2006-03-13 Mike Kestner <mkestner@novell.com>
13592 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
13594 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13596 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
13598 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
13599 the allowed size before making programmatic size changes
13601 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13603 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
13604 set, metacity is broken and will still use the emty sizes in
13605 the struct. (Fix for #77089)
13607 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13609 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
13610 WindowExStyles and marked both enums as Flags
13611 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
13612 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
13613 to match WindowStyles split
13615 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
13616 - Updated to match WindowStyles split
13618 - Fixed FosterParent creation, was using ExStyle on the Style field
13619 (This should help with Popup focus issues)
13620 - Updated to match WindowStyles split
13622 2006-03-13 Jackson Harper <jackson@ximian.com>
13624 * MdiWindowManager.cs: Use the system menu height. Fixes some
13625 strange sizing issues.
13627 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
13629 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
13631 - Scroll to caret after inserting text (#77672)
13632 - Make scroll range one pixel higher, fixes off-by-one error (and
13633 makes underlines visible on the last line)
13635 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
13637 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
13638 the keyboard state from being stuck with keys in 'pressed' state when
13639 focus is switched away via keyboard
13640 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
13641 reset the keyboard if no X11 KeyUp events are expected to come
13642 * X11Structs.cs: Switched type of Visible to bool to match driver
13644 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
13647 - Switched caret to be just 1 pixel wide, matches MS and looks less
13649 - Moved caret display 1 pixel down from the top of the control
13651 - InsertCharAtCharet: Update the selection start if moving the caret
13652 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
13653 - No longer always creating the caret when the caret methods are
13654 called. Only the actual ShowCaret/HideCaret will do that now
13655 - Only setting caret visible if the owner control has focus
13656 - UpdateView: Added invalidation-shortcut logic for center and right
13657 aligned text. Previously we'd update all according to the left
13658 logic which caused drawing errors. Also fixed height of invalidated
13659 areas, now properly invalidating the whole area (was off-by-one)
13660 - owner_HandleCreated: Always generate the document when the
13661 handle is created; this ensures that
13663 - Fixed situation where caret would disappear under the right
13664 window border, also improved scrolling behaviour on left-
13666 - Fixed right-aligned textboxes to have a border to the
13667 right instead of the caret being under the right border
13669 - Switched from 'nested' to simple visible/not visible tracking
13670 for caret (part of fix for #77671)
13671 - No longer passing through translated FocusIn/FocusOut messages
13672 since we were notifying too often and the wrong windows. Instead
13673 we just notify our focussed window of receiving or loosing focus
13674 * XplatUIWin32.cs: Switched from 'nested' show/hide
13675 counting for caret to simple visible yes/no behaviour (part of
13678 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
13680 * Mime.cs: Remove debug code...
13682 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
13684 * MimeGenerated.cs: Removed
13685 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
13686 and subclasses) from /usr/(local/)share/mime and
13687 $HOME/.local/share/mime.
13689 2006-03-10 Jackson Harper <jackson@ximian.com>
13691 * MdiWindowManager.cs: Recalc the NC area when a window is
13692 maximized/restored so that the menu area is drawn on forms that
13695 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13697 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13698 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
13699 us to force a WM_NCCALCRESIZE message being sent. This is needed
13700 for MDI maximizing.
13702 2006-03-10 Jackson Harper <jackson@ximian.com>
13704 * Form.cs: We need to use the ActiveMenu when calculating menu
13706 - Fix nullref when the window manager hasn't been created yet.
13707 * Control.cs: Fix nullref when we try to bring a control to the
13708 front that has no parent.
13709 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
13711 - Add a dummy item to the maximized menu so it always has the
13712 correct height. Otherwise when there are no menus we don't get our
13716 2006-03-10 Jackson Harper <jackson@ximian.com>
13718 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
13720 * Form.cs: Make the window_state internal so the window managers
13722 - When an MDI child is maximized let its window manager create the
13723 main menu (so it can add its icon).
13724 - Notify the window managers of state changes
13725 - Let the window manager paint its buttons and handle button
13726 clicks on the menu when it is maximized.
13727 * InternalWindowManager.cs: Move the prev_bounds into the mdi
13728 window manager, since tool windows don't use it, only mdi windows.
13729 - Tell the main form that we don't want it to handle NCPAINT
13730 itself to avoid extra painting.
13731 - Handle clicks on a maximized windows menu.
13732 - Handle window state changes
13733 - Handle minimize/maximize clicks correctly by setting the window state.
13734 * MdiWindowManager.cs: Add an icon menu that (the menu you get
13735 when clicking on the forms icon).
13736 - New method to create a forms maximized menu. This is its normal
13738 - Handle window state changes.
13739 - Handle sizing of maximized windows. Maximized windows are just
13740 drawn bigger then the parent visible area. All controls are still
13741 there, they are just outside the visible area (this matches windows).
13742 * MdiClient.cs: No scrollbars when a child window is maximized.
13743 - Let the children windows figure out how big they should be when
13744 sizing maximized windows.
13745 - Implement a version of ArrangeIconicWindows somewhat similar to
13746 Windows version. There are some little differences, but I don't
13747 think any app will rely on the layout of minimized mdi windows.
13749 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13751 * Padding.cs: Several fixes to allow compiling with csc 2.0
13753 2006-03-09 Jackson Harper <jackson@ximian.com>
13756 * MenuItem.cs: Cheap hack so we can add items to the list without
13757 the events being raised. This allows adding mdi items during
13758 drawing. TODO: Should probably find a better time to add the items.
13760 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13762 * ThemeWin32Classic.cs:
13763 - CheckBox_DrawText: Added logic to not wrap if not enough space
13764 is available (Fix for bug #77727)
13765 - RadioButton_DrawText: Added logic not to wrap if not enough
13766 space is available (Fix for bug #77727). Also removed some
13767 duplicate code, DrawString always drawing the regular text
13768 before hitting the if statement.
13770 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13772 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
13774 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13776 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
13777 * ContainerControl.cs: Partial implementation of some 2.0 scaling
13778 methods. Moved the new 2.0 properties into alphabetical order with
13779 other properties and added MonoTODO tags
13781 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13783 * AutoScaleMode.cs: Added. Fix build.
13785 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13787 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13788 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
13789 and was requiring premature handle creation for calls from above
13790 * Form.cs, Control.cs: Removed handle arguments from calls to
13791 CalculateClientRect()
13793 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13795 * ListView.cs (HeaderMouseMove): Fix csc compilation.
13796 drag_column.column_rect is MarshalByRef and can't be used that way
13798 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13800 * AxHost.cs: Added deserialization constructor for
13801 AxHost+State (fixes 77743)
13803 2006-03-09 Mike Kestner <mkestner@novell.com>
13806 - Added column drag reordering for details view.
13807 - fixed behavior when mouse is dragged off column and
13808 AllowColumnReorder is false.
13809 * ColumnHeader.cs: clone the format too in Clone.
13810 * Theme.cs: add DrawListViewHeaderDragDetails method.
13811 * ThemeWin32Classic.cs:
13812 - impl new method for drawing drag column shadows and targets.
13813 - support column offset for details mode in DrawListViewItem.
13815 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13817 * TextControl.cs: Reset the char_count when the document is cleared
13818 (Fixes bug reported on mono-winforms mailing list)
13820 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13822 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
13823 of calling base we simply process the key ourselves, since both
13824 DefWindowProc and the handled method would set m.Result.
13827 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13829 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
13830 method also moves the window; instead implemented a copy of
13831 Control.ScaleCore (Part of fix for #77456)
13833 - Created new CreateGraphicsInternal method to allow providing
13834 a graphics context when no handle is created without triggering
13835 handle creation. (Part of fix for #77456)
13836 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13838 - Switched Constructor to require TextBoxBase instead of Control (to
13839 allow uncast access to CreateGraphicsInternal)
13840 - Safeguarded use of owner.Handle property. No longer accessing it
13841 unless the handle is already created.
13842 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13843 - Now triggering a recalc when owning control becomes visible
13844 * TextBox.cs, RichTextBox.cs: Switched to use new internal
13845 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
13846 premature handle creation (Part of fix for #77456)
13848 - We now only destroy our double-buffering buffers when the
13849 control is resized or disposed, but not when visibility
13850 changes. (The code even re-created them twice every time)
13851 - Now requiring a redraw of the buffer on visibility changes
13852 (fixes bug 77654 part 2)
13853 - Not passing OnParentVisibleChanged up unless the control
13855 - CanFocus: Fixed to match MS documentation
13856 - Focus: Fixed to return actual focus state and to check if
13857 setting focus is legal before setting it
13859 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
13861 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
13862 when to draw focus rectangle by looking at parent focus and
13863 selected state instead. This fixes TabPages on Linux sometimes
13864 having none or multiple focus rectangles.
13865 * XplatUIX11.cs (SetFocus):
13866 - Don't set the focus if the same window already has focus
13867 - Use SendMessage instead of PostMessage (like it's Win32
13868 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
13869 to match MS behaviour
13870 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
13871 are not selectable.
13873 2006-03-07 Jackson Harper <jackson@ximian.com>
13875 * PictureBox.cs: Revert line I accidently committed last week.
13877 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
13880 - Added new IsRecreating and ParentIsRecreating properties to
13881 allow testing if RecreateHandle has been called on ourselves
13882 or one of our parents
13883 - WndProc(WM_DESTROY): If our control handle is being recreated
13884 we immediately need to create the handle when receiving the
13885 destroy, that way our child windows find a valid parent handle
13886 when they themselves are being recreated upon WM_DESTROY receipt
13887 (fix for bug #77654 part 1)
13889 - DestroyWindow: WM_DESTROY must be sent to our own window before
13890 notifying any child windows. MS documents that child windows
13891 are still valid when WM_DESTROY is received. (Control now relies on
13893 - Added some fine-grain debug options
13895 2006-03-06 Jackson Harper <jackson@ximian.com>
13897 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
13898 box and base calculations off this.
13899 * MdiChildContext.cs:
13900 * MdiWindowManager.cs: Don't need to ensure scrollbars here
13903 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
13905 * Splitter.cs: In situations where the affected control is added
13906 to the parent's control list after the splitter, we would not
13907 populate affected. Now we try populating it on mousedown, if
13908 it's not already set, and force it to be re-set whenever our
13911 2006-03-03 Matt Hargett <matt@use.net>
13913 * Control.cs: implement Control.Padding
13914 * Padding.cs: -Padding.All returns -1 when constructing with the
13915 implicit default ctor
13916 -Padding.ToString() matches MS.NET
13917 * ContainerControl.cs: implement
13918 ContainerControl.AutoScaleDimensions
13919 * ListControl.cs: implement ListControl.FormattingEnabled
13920 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
13922 * TabPage.cs: Implement UseVisualStyleBackColor.
13923 * PictureBox.cs: Implement PictureBox.InitialImage.
13925 2006-03-03 Mike Kestner <mkestner@novell.com>
13927 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
13928 event declarations to proxy to base event.
13929 * ListViewItem.cs: update to use ItemControl.
13930 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
13931 * ThemeWin32Classic.cs: update to new ListView theme API and fix
13932 column header label rendering for 0 width columns.
13934 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
13936 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
13937 that causes the control to be created. Fixes #77476.
13939 2006-03-02 Jackson Harper <jackson@ximian.com>
13941 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
13944 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
13946 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
13947 passed in for the EventArgs (fixes #77690)
13949 2006-03-01 Jackson Harper <jackson@ximian.com>
13951 * ScrollBar.cs: Refresh afterbeing resized.
13953 2006-02-28 Mike Kestner <mkestner@novell.com>
13955 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
13956 Clean up a tracker compile warning.
13957 * MenuItem.cs: add internal PerformPopup method.
13960 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
13962 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
13963 implicit expose) when the text is set to null
13965 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
13967 * RichTextBox.cs (FlushText): When newline is true, we always
13968 need to split the line, even if no text is on it and we may
13969 never eat newlines. (Fixes #77669)
13971 2006-02-28 Mike Kestner <mkestner@novell.com>
13973 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
13974 and set Selected instead.
13975 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
13978 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
13980 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
13982 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
13985 - Got rid of the panel. All controls are now directly added to
13987 - It is now possible to set a font with the Font property
13988 - MinSize and MaxSize property do now what they should
13989 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
13990 - Searching and selecting a font with the font textbox works now,
13991 the same applies to the style and size textbox
13992 - Draw the correct 3D border in the example panel
13993 - Fixed a little mem leak (unused fonts didn't get disposed)
13994 - Many other internal updates/rewrites...
13997 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
14000 - InsertRTFFromStream: Added 'number of characters inserted' argument
14001 - set_SelectedRTF: Now using the number of characters to calculate
14002 the new location for the selection and cursor (x/y cannot be used
14003 due to potentially already wrapped text)
14005 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
14007 * TextControl.cs: Added property and implemented means to allow
14008 disabling recalculation of a document (can be used to speed up
14009 multiple inserts and is needed to make RTF inserts predictable, see
14011 * RichTextBox.cs: Using the new NoRecalc property of Document to
14012 keep x/y insert locations predictable. Also makes it faster inserting
14013 large chunks of RTF
14015 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
14017 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
14018 it's easier for a child control to handle the other messages without
14019 having to duplicate the special functionality
14021 - WndProc: Removed calling base handler for WM_KEYDOWN and added
14022 code to handle processing the key ourselves, in order to get
14023 access to the result of KeyEventArgs.Handled. We now only call
14024 ProcessKey if they key hasn't been handled already. Fixes #77526.
14025 - set_Text: If null or empty string is given, just clear the
14026 document. Fixes part of #77526
14028 2006-02-27 Jackson Harper <jackson@ximian.com>
14030 * SizeGrip.cs: Paint the background color before painting the grip
14031 so things look right.
14032 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
14034 2006-02-27 Mike Kestner <mkestner@novell.com>
14037 - Restructure layout and invalidation model to remove a ton of
14038 flicker from the control and speed up performance in general.
14039 - Add manual column resize, flickers like crazy, but I already have
14040 some ideas on how I'll fix that. (#76822)
14041 - Merge the three Icon-based views into a single layout method.
14042 - Move item selection interaction logic from the item since
14043 interaction with the collections is more appropriate to the view.
14044 - Deselection on non-item clicks.
14046 - Encapsulate most of the layout. Add some internal props to trigger
14047 layout. Move to a model where Items invalidate themselves instead
14048 of just invalidating the whole control every time something changes.
14049 - Invalidate on Text/Caption changes.
14050 - switch to an offset based layout model to avoid having to absolute
14051 position every element on item moves.
14052 - correct checkbox layout to conform to MS layout.
14053 * ThemeWin32Classic.cs:
14054 - refactor some column header drawing code.
14055 - fix string justification for column headers (#76821)
14056 - make SmallIcon labels top justified for compat with MS impl.
14057 * ThemeClearlooks.cs:
14058 - adjust to new ListViewItem internal checkbox bounds api.
14060 2006-02-27 Jackson Harper <jackson@ximian.com>
14062 * Control.cs: Change where implicit controls fall in the zorder.
14063 They are now on top of all children.
14064 - Synced AddImplicit code with Add
14065 - Removed unused enumerator.
14066 * SizeGrip.cs: Remove the TODO as its been TODONE.
14068 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
14070 * TextControl.cs(Insert): Combine the last lines unless the insertion
14071 string ends with \n\n, otherwise we leave one line too many (Fixes
14072 something I noticed with the testapp for #77526; the bug itself was
14073 already fixed in the previous checkin)
14075 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
14078 - SelectionColor and SelectionFont methods no longer set absolute
14079 styles. Instead, the keep font or color respectively (This
14080 resolves a long-standing FIXME in the code)
14081 - When flushing RTF text, the insert code now considers text trailing
14082 behind the insertion point (Fixes the bug where when replacing
14083 the selected text via SelectedRTF the remainder of the line behind
14084 the selection would stay on the first insertion line)
14086 - AppendText now updates the selection points after inserting text
14087 - AppendText now ensures that the last tag (sometimes 0-length) of
14088 the document is used for the style information (Fixes part of
14091 - Created new FontDefiniton class to allow describing partial style
14093 - StreamLine() now takes a lines argument, to allow it to decide
14094 whether an encountered zero-length tag is the last in the document
14095 (which must be kept to not loose the font/color contained in it,
14097 - Created Combine() and Split() methods for Marker structs, to
14098 support marker updates due to reformatted documents (soft line
14100 - Implemented Document.CaretTag setter
14101 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
14102 of the last line (Not the cause, but also exposed by bug #77220)
14103 - Added LineTag argument to InsertString method, to allow callers
14104 to force a certain tag to be used (required to force use of the
14105 trailing zero-length tag of a document)
14106 - Now updating markers in Combine(), to avoid stale tag markers
14107 - Added some method descriptions to aid maintenance
14108 - Implemented new FormatText concept, allowing additive/subtractive
14109 formatting by only specifying the components that are to be
14110 changed. This was needed for resolving the RTB.SelectedColor/
14111 RTB.SelectedFont fixmes
14112 - Added Break() support method to allow breaking up linetags (used
14113 for partial formatting)
14114 - Added GenerateTextFormat() method. It is used for partial
14115 formatting and allows to generate a full font/color from given
14116 attributes and an existing tag.
14118 2006-02-26 Jackson Harper <jackson@ximian.com>
14120 * XplatUIX11.cs: Use the correct caption height.
14121 - Translate hittest coordinates to screen coords to match MS.
14122 * XplatUIWin32.cs: When we create MDI windows we need to reset
14123 some of the style flags, so we get a nice blank window, and can
14124 draw all the decorations ourselves.
14125 - Set a clipping rectangle on the non client paint event, the
14126 window manager drawing code needs one.
14127 * Form.cs: The window manager needs to know when the window state
14129 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
14130 don't need to factor in border and title sizes in these
14131 methods. TODO: Remove the args and fix the call points.
14132 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
14134 - Let the driver set the cursors.
14135 - Improve active window handling
14136 - Correct sizes for title bars and buttons.
14137 - Match MS drawing better
14138 * MdiWindowManager.cs: We don't need to handle border style
14139 updates specially anymore.
14140 - Check for scrollbars when windows are done moving
14141 - Handle Active properly.
14142 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
14143 correctly. I am spewing the exception though, so we don't hide the
14146 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
14148 * DataGridViewRowPostPaintEventArgs.cs,
14149 DataGridViewCellPaintingEventArgs.cs,
14150 DataGridViewRowCollection.cs,
14151 DataGridViewRowPrePaintEventArgs.cs,
14152 DataGridViewCell.cs: Clear a few warnings and implement a few
14153 exceptions that should be thrown.
14155 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
14157 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
14158 'inheriting' our parent's (non-default) cursor. (Part of
14159 the fix for #77479)
14161 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
14163 * XplatUIX11.cs: Fixed cast to make csc happy
14165 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
14167 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
14168 it's for the client area (part of fix for #77479 and needed
14169 for MDI window cursor handling)
14171 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
14172 the appropriate default cursors and also passing the message
14173 up the parent chain
14174 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
14175 for non-client areas
14177 2006-02-15 Jackson Harper <jackson@ximian.com>
14179 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
14180 is a real MDI window
14182 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
14184 * X11DesktopColors.cs: Instead of checking the desktop session
14185 string for "KDE" check if it starts with "KDE"
14187 2006-02-10 Jackson Harper <jackson@ximian.com>
14189 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
14192 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
14194 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
14197 - Got rid of the panel. All controls are now directly added to
14199 - Changed to mono coding style
14201 2006-02-10 Jackson Harper <jackson@ximian.com>
14203 * InternalWindowManager.cs: We don't need the set visibility to
14204 false hack anymore now that peter has written beautiful shutdown
14207 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
14209 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
14210 where already explicitly destroyed
14212 2006-02-10 Jackson Harper <jackson@ximian.com>
14214 * MdiClient.cs: Handle the case where windows are too high or to
14215 the left and we need scrollbars.
14217 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
14219 * MimeIcon.cs: Added some icons
14222 - Got rid of the panel. All controls are now directly added to
14224 - Changed to mono coding style
14225 - On Linux "My Computer" and "My Network" will now show some
14226 more usefull information. A new class, MasterMount, gathers
14227 this information from /proc/mount. Updated MWFFileView to make
14228 use of this information
14229 - Fixed a bug that caused FileDialog to crash when
14230 ".recently_used" file had a zero size
14231 - FilterIndex does now what it should
14233 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
14236 2006-02-09 Jackson Harper <jackson@ximian.com>
14238 * ComboBox.cs: Don't touch if null.
14240 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
14242 * Cursor.cs: 64bit safeness fix
14243 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
14245 2006-02-09 Jackson Harper <jackson@ximian.com>
14247 * Form.cs: If a form is made into an MDI form update the styles so
14248 all the props can get set correctly.
14249 - Kill the mdi_container when we dont need it anymore.
14250 * InternalWindowManager.cs: Add missing NOT
14252 2006-02-08 Jackson Harper <jackson@ximian.com>
14254 * InternalWindowManager.cs: Respek clipping when drawing MDi
14257 2006-02-08 Jackson Harper <jackson@ximian.com>
14259 * Hwnd.cs: Add bits to track non client expose events.
14260 * XplatUIX11.cs: Track non client expose events on the hwnd. This
14261 gives us a proper invalid rect and will allow for some nice
14262 optimizations with NC client drawing
14263 - MDI windows are children windows, so move their style handling
14264 into the child window block.
14265 * InternalWindowManager.cs: Remove a state reset that was
14266 getting invoked at the wrong time. Fixes managed windows getting
14267 into a 'stuck' captured state.
14269 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
14271 * TextControl.cs (Document.ctor): Now initializing
14272 selection_anchor. Fixes #77493
14274 2006-02-07 Jackson Harper <jackson@ximian.com>
14276 * TrackBar.cs: The increment/decrements were backwards.
14278 2006-02-07 Mike Kestner <mkestner@novell.com>
14280 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
14281 to the instance itself.
14283 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
14285 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
14286 on ulongs and pointers, the size differs between 32bit and 64bit
14289 2006-02-07 Mike Kestner <mkestner@novell.com>
14291 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
14292 for 64 bit platforms to work around a metacity bug.
14294 2006-02-07 Jackson Harper <jackson@ximian.com>
14296 * TrackBar.cs: Process the input keys we need, and hookup to
14297 KeyDown instead of using WndProc, so we get key messages.
14299 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
14301 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
14303 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
14304 we need to translate the XdndVersion atoms array before sending it
14306 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
14309 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
14310 number of bits for the property, not the number of bytes. The
14311 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
14312 but would not crash since it specified 8 bits instead of 4 bits)
14313 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
14314 defined as XID -> long in the C headers)
14315 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
14316 references since those are now IntPtr to begin with
14317 - Switched all Atom.XXX 'int' casts to IntPtr casts
14318 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
14319 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
14320 - Added XChangeActivePointerGrab DllImport (for X11DnD)
14322 - Changed 'int' type for Atoms in XEvent structures to IntPtr
14323 - Changed atom in HoverStruct to be IntPtr
14325 - Removed local DllImports, switched code to use those from XplatUIX11
14326 - Removed/fixed casts related to the switch of Atom to be a IntPtr
14328 2006-02-06 Mike Kestner <mkestner@novell.com>
14330 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
14331 method signatures in the import region. There may still be some
14332 lingering struct marshaling issues, as I didn't drill down into those.
14335 2006-02-06 Jackson Harper <jackson@ximian.com>
14337 * ComboBox.cs: Dont manually set the top_item, this is computed
14338 when the scrollbar position is set.
14340 2006-02-06 Mike Kestner <mkestner@novell.com>
14342 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
14343 startup crashes on amd64. There's other fixes needed. All pinvoke
14344 usage of Atom needs to be mapped to IntPtr for example. And there are
14345 likely other int/long issues to be addressed.
14347 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
14349 * FileDialog.cs: One more...
14351 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
14353 * FileDialog.cs: Next try
14355 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
14357 * FileDialog.cs: First part of fix for #77464
14359 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
14361 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
14362 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
14363 AcceptButton border drawing.
14365 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
14367 * Form.cs: Moved positioning of form after auto scaling is applied,
14368 otherwise it would possibly use wrong form size.
14370 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
14372 * Control.cs (RecreateHandle): No need to re-create any child
14373 controls, the child windows will get destroyed automatically by
14374 the windowing system or driver, and re-created when the handle
14375 is being accessed the first time. Fixes #77456
14376 * Form.cs: No longer setting the form to closing if the handle is
14377 being recreated. This seems like the right thing to do, don't
14378 have a bug or testcase for this, though.
14380 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
14382 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
14383 controls to avoid unwanted side effects
14385 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
14388 - ScaleCore needs to scale the bounds, not the ClientSize of the
14389 control. Fixes #77416.
14390 - DefaultSize is 0,0 for control
14392 - DefaultSize is 100, 20
14393 - SetBoundsCore: Now enforcing the height, no matter if the provided
14394 height is more or less than the preferred one, as long as AutoSize
14396 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
14398 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
14401 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
14402 call unless both performLayout is true *and* we have a pending
14404 - ResumeLayout: MS does not completely nest Suspend and Resume,
14405 they bottom out at 0, fixed our code to match that.
14406 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
14407 SetBoundsCore, we were updating even when we shouldn't. This fixes
14408 swf-anchors mis-anchoring when resizing the app fast and lots.
14409 - UpdateDistances: Now only setting the left and top distance if
14410 we have a parent and are not suspended, this is based on
14411 a suggestion by Don Edvaldson in bug #77355.
14412 - OnVisibleChanged: Fixed logic when to create the control. We may
14413 not create the control if we have no parent or if it's not visible;
14414 switched to using Visible property instead of is_visible field
14415 since the property also considers parent states. This fixes a bug
14416 when starting Paint.Net
14418 2006-02-02 Jackson Harper <jackson@ximian.com>
14420 * Form.cs: If the forms handle hasn't been created yet don't call
14421 into xplatui to make it top most, just set the topmost flag on the
14422 form in CreateParams
14423 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
14425 2006-02-01 Jackson Harper <jackson@ximian.com>
14427 * ScrollableControl.cs: Refactored the Recalculate method a
14428 little, this wasn't handling all the variants of bottom and right
14429 bars needed to be added and added/removed based on their
14430 counterparts being added/removed (which changes the drawable
14431 size). Also we special case client widths and heights of 0 and
14432 don't add the scrollbar for those.
14434 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
14437 - Added method to get AbsoluteGeometry(); currently unused, but might
14438 be used in the future, if we try again to figure out toplevel
14439 coordinates with some more crappy window managers
14440 - Added FrameExtents() method to retrieve the WM set decoration size
14441 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
14442 to deal with at least KDE, FVWM and metacity (Fixes #77092)
14444 - Added whacky_wm tracking var for metacity
14445 - Added logic to have default menu height if the actual menu height
14446 has not yet been calculated (part of fix for #77426)
14447 * Form.cs: Keep track whether client size has been set and re-set
14448 it if a menu is added/removed afterwards (Fixes #77426)
14450 2006-01-31 Jackson Harper <jackson@ximian.com>
14452 * Control.cs: When a new Site is set on the component attempt to
14453 pull the AmbientProperties from it.
14455 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
14457 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
14458 in the background of the owning form. Fixes #77332
14460 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
14462 * MimeIcon.cs: Fix for #77409
14464 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
14466 * XplatUIX11GTK.cs: Initial import
14468 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
14470 * FixedSizeTextBox: fixes class signature
14472 2006-01-30 Jackson Harper <jackson@ximian.com>
14474 * FixedSizeTextBox.cs: New internal class that represents a
14475 textBox that will not be scaled.
14478 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
14481 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
14483 * XplatUIX11.cs: Retrieve default screen number instead of
14484 assuming 0. Attempted fix for #77318
14486 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
14489 - GetWindowPos: When a window is parented by FosterParent, use
14490 the desktop instead of FosterParent as the base to get coordinates
14491 - CreateWindow: Don't make FosterParent the parent window for Popups
14492 if we don't want a taskbar entry, Popups automatically don't get one
14493 * Hwnd.cs: Need to call remove to actually remove the key from the
14496 2006-01-30 Mike Kestner <mkestner@novell.com>
14498 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
14500 2006-01-30 Jackson Harper <jackson@ximian.com>
14503 * TreeNode.cs: Raise events no matter how the treenode is
14504 checked. Patch by Don Edvalson.
14506 2006-01-30 Jackson Harper <jackson@ximian.com>
14508 * TreeNode.cs: Signature fix.
14510 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
14512 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
14514 2006-01-20 Mike Kestner <mkestner@novell.com>
14516 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
14517 event forwarding when menus are active.
14518 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
14519 Most of the patch is pdb's with a little rework.
14521 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14523 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
14524 Removed GetMenuDC and ReleaseMenuDC methods; replaced
14525 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
14526 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
14527 * InternalWindowManager.cs: Added use of PaintEventStart/End to
14528 handling of WM_NCPAINT message, now passing the PaintEventArgs to
14529 the PaintWindowDecorations method
14530 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
14531 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
14532 * MenuAPI.cs: Made tracker window invisible
14534 - Removed GetMenuDC and ReleaseMenuDC methods
14535 - Implemented the client=false path for PaintEventStart and
14538 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14540 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
14541 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
14544 - MaximizeBox, MinimizeBox: Recreate the handle when setting
14546 - CreateParams: Reworked the styles to match MS look'n'feel,
14547 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
14548 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
14550 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14552 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
14553 window is not mapped, since otherwise every form that's being
14554 created is considered minimized, which is wrong.
14555 * Form.cs: Catching the exception and returning our internal value
14558 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14560 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
14561 SetWindowMinMax() to have means to tell the driver about the minimum,
14562 maximum and maximized state window sizes. (Part of the fix for #76485)
14564 - Implemented tracking of minimum and maximum window size, now calling
14565 new SetWindowMinMax() driver method to tell the driver (Part of the
14567 - Finished handling of WM_GETMINMAXINFO method, now setting all values
14568 (Completes fix for #76485)
14569 - Calling new SetWindowMinMax driver method when the handle for a
14570 form is created, to make sure the driver knows about it even if
14571 the values have been set before the window was created
14572 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
14573 to avoid messing up our anchoring calculations (partial fix
14575 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
14577 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
14578 - Improved GetWindowState() to detect 'Minimized' state on Metacity
14579 (and presumably other freedesktop.org compliant WMs). Left the
14580 assumption unmapped=minimized, needed for SetVisible to work.
14581 - Now setting the window state when creating windows
14582 - Fixed SetVisible to consider/set the window state when mapping
14583 a Form. We cannot set the state before it's mapped, and we cannot
14584 use Form.WindowState once it's mapped (since it would ask the
14585 driver and get 'normal'. Therefore, we grab the state before
14586 mapping, map, and then set state.
14587 - Implmemented SetWindowMinMax method; Metacity does not seem to
14588 honor the ZoomHints, though.
14590 - Removed MINMAXINFO (moved to XplatUIStructs)
14591 - Added SetWindowMinMax stub (on Win32 the only way to set that
14592 information is in response to the WM_GETMINMAXINFO message, which
14593 is handled in Form.cs)
14594 - Added logic to SetVisible to set the proper window state when a
14595 form is made visible (fixes #75720)
14597 2006-01-26 Jackson Harper <jackson@ximian.com>
14599 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
14600 same way we handle them with Invoke.
14602 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
14605 - Added tracking of window state so CreateParams can return
14606 the appropriate style
14607 - Moved setting of WS_CAPTION style in CreateParams to allow
14608 styles without caption
14609 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
14610 control if the TextBox property is accessed. Fixes #77345
14612 - get_Created: now uses is_disposed and is_created to determine
14613 return value (suggested by Jackson)
14614 - CreateHandle: No longer exits if the handle is being recreated
14615 - RecreateHandle: If the handle is not yet created call the
14616 appropriate method to create either control or handle. If the
14617 control is already created CreateHandle will simply exit instead
14618 of just creating the handle
14619 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
14620 now SendMessage WM_DESTROY directly to the control when DestroyWindow
14623 - When DestroyWindow is called, instead of waiting for the
14624 DestroyNotification from X11, we directly post it to the WndProc
14625 and immediately dispose the hwnd object.
14626 Same applies to DestroyChildWindows, and this obsoletes the
14627 expose_pending tracking. Contrary to Win32 behaviour we destroy our
14628 child windows before our own, to avoid X11 errors.
14629 - Removed the direct sending of WM_PAINT on UpdateWindow
14631 - Reworked DoEvents and GetMessage to allow access to internal queue
14632 even when trying non-blocking access to the queue. Fixes #77335.
14633 Based on a patch suggestion by Don Edvalson. The new private
14634 GetMessage can now also be used as a backend for a PeekMessage
14636 * XplatUI.cs: Improved debug output for CreateWindow
14638 2006-01-25 Jackson Harper <jackson@ximian.com>
14640 * Help.cs: Allow param to be null. Patch by Don Edvalson.
14642 2006-01-24 Jackson Harper <jackson@ximian.com>
14644 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
14645 when we have a MaxDropItems lower then the selected index.
14647 2006-01-24 Jackson Harper <jackson@ximian.com>
14649 * Control.cs: Don't allow selection of non visible controls, allow
14650 selection of controls without parents.
14652 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
14654 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
14655 * DataGridDrawingLogic.cs: Add editing row only when is necessary
14657 2006-01-23 Jackson Harper <jackson@ximian.com>
14659 * UpDownBase.cs: Make the textbox handle all the selection and
14660 tabbing. This fixes tabing to updown controls.
14662 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
14664 * TextBoxBase.cs: fixes exception thown the object was null
14666 2006-01-23 Jackson Harper <jackson@ximian.com>
14668 * ButtonBase.cs: Just use the base CreateParams. They set
14669 visibility and enabled correctly.
14672 * MonthCalendar.cs: Lets let the base set as much of the
14673 createparams as possible so we don't have duplicate code all over
14676 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
14678 * ThemeGtk.cs: Added TrackBar and some experimental code to
14679 get double buffering back
14681 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
14683 * DataGrid.cs: Allows row number set internally higher than the last
14684 when creating a new row. Restores the editing functionality.
14686 2006-01-20 Mike Kestner <mkestner@novell.com>
14688 * MimeIcon.cs: delay Image creation until the icons are accessed
14689 instead of creating 190 scaled images on GnomeHandler startup.
14691 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
14693 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
14694 first call base before processing the event. Fixes #77279
14696 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
14698 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
14699 that the stride for the GDI bitmap would match the stride of
14702 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
14704 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
14706 2006-01-19 Jackson Harper <jackson@ximian.com>
14708 * ComboBox.cs: Hookup the text controls keydown event so we get
14709 those when the text control has the focus.
14711 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14713 * Label.cs: Now using the base events instead of defining new ones;
14714 this allows us to just call the base properties without having to
14715 duplicate all base property logic
14717 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14719 * Label.cs: A label by default is not a tabstop (Fixes one of our
14720 failing nunit tests)
14722 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14724 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
14725 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
14727 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14729 * Cursor.cs: Reimplemented creating cursor bitmaps without using
14730 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
14733 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
14734 constructor creates images that can't be saved. Part of the fix
14736 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
14737 - SetWindowState: Switched ShowWindow flags (part of an upcoming
14738 bug fix for handling window state in forms properly)
14740 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14742 * ThemeGtk.cs: Simplify ScrollBar drawing
14744 2006-01-18 Jackson Harper <jackson@ximian.com>
14746 * Splitter.cs: Set the default dock style for the splitter control
14747 in the constructor.
14749 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14751 * ThemeGtk.cs: Corrected StateType and ShadowType for
14754 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14756 * Control.cs: Make use of Theme.DoubleBufferingSupported
14758 - Added drawing for flat style buttons
14759 - Added ScrollBar drawing
14761 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14763 * ThemeClearlooks.cs: Removed some unneeded code.
14764 * ThemeGtk.cs: First part of ThemeGtk enhancements.
14766 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
14768 * LinkLabel.cs: We need to update the hover drawing when
14769 leaving the control as well.
14771 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
14773 * DataGrid.cs: Clicking on non empty areas in the columns
14774 area was giving an exception
14776 2006-01-17 Jackson Harper <jackson@ximian.com>
14778 * ThemeWin32Classic.cs:
14779 * ListView.cs: Do not draw/clip the headers when the header style
14782 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
14784 * DataGrid.cs: Fixes 77260
14786 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
14788 * DataGrid.cs: Clicking on a column on a empty grid was giving
14791 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
14793 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
14794 or any keypress will crash the grid.
14796 2006-01-17 Mike Kestner <mkestner@novell.com>
14798 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
14799 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
14800 invisible/previously-visible items.
14803 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
14805 * ThemeClearlooks.cs:
14806 - Added CL_Draw_Button method; now other theme controls that are
14807 not derived from button or do not have a button can draw buttons
14809 - Updated ComboBox drawing
14810 - Beautified RadioButton drawing
14811 - Corrected drawing of bottom and left tabs
14812 - Beautified DateTimePicker and MonthCalendar
14813 - Added CPDrawButton and CPDrawRadioButton
14815 2006-01-16 Jackson Harper <jackson@ximian.com>
14817 * ComboBox.cs: Set the initial value of the scrollbar to the
14818 current index. Reduce the numbers of refreshs and IndexOfs called.
14820 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
14822 * FileDialog.cs: When the file listview is focused hitting the
14823 backspace key moves the fileview to the parent directory
14825 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14828 - Added RecreateHandle call when changing taskbar visibility to
14829 trigger reparenting in Win32 driver (Fixes #75719)
14830 - If a window has minimize or maximize buttons, it cannot have
14833 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
14834 the toplevel form with FosterParent (A toolwindow not on the
14835 taskbar) (Fixes #75719)
14836 - Made FosterParent a toolwindow
14838 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
14840 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
14842 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
14844 * ToolTip.cs: If SetToolTip is called from a control and the mouse
14845 is currently over that control, make sure that tooltip_window.Text
14848 2006-01-13 Mike Kestner <mkestner@novell.com>
14850 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
14852 2006-01-13 Jackson Harper <jackson@ximian.com>
14854 * TreeView.cs: On MS GetNodeAt never actually factors in the X
14855 value passed. Also redraw the selected node when we recieve
14856 focus, so tabbing between trees works correctly.
14858 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
14860 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
14861 ~/.gconf/%gconf-tree.xml, so use
14862 .gconf/desktop/gnome/interface/%gconf.xml
14864 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14866 * TextControl.cs: Draw text in gray if control is disabled
14868 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14870 * TreeView.cs: Draw the focus rectangle outside the highlight, to
14871 make sure it's always visible. Fixes #76680.
14873 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14875 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
14877 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
14879 * PageSetupDialog.cs: Added.
14880 * PrintDialog.cs: Attributes.
14881 * PrintPreviewControl.cs: Updates.
14882 * PrintPreviewDialog.cs: Updates.
14884 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14886 * Control.cs: Undid my selection check fix, since it's not needed
14888 - Now considering the presence of hscroll/vscroll when sizing
14889 vscroll/hscroll respectively. Fixed bug #77077
14890 - Added Left/Up/Down/Right to IsInputKey list to prevent
14891 ContainerControl from stealing them. This fixes what I broke
14892 with my last checkin.
14894 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14896 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
14897 I finally understand how the property can be set without a setter :-)
14899 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14902 - Switched RunLoop to use static Message.Create to create a
14904 - Added PreProcessMessage call in runloop for keyboard events; this
14905 is part of the fix for #77219, I overlooked this originally in the
14906 MSDN doc for PreProcessMessage
14908 - Removed call to PreProcessMessage from handling of keyboard
14909 messages; it's supposed to be done in the message pump
14910 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
14911 per MSDN documentation.
14912 - IsInputChar: All chars are input chars by default; removed the
14913 parent calling chain, MS does not document that
14914 - PreProcessMessage: If IsInputChar is true, we want to return false
14915 to allow dispatching of the message
14916 - When selecting the next control, now also check that we're not
14917 selecting ourselves again and therefore return a false positive.
14919 - Tried to match return values for IsInputKey and ProcessDialogKey
14920 to what MS returns; moved processing of our special keys outside
14921 ProcessDialogKey since MS does not seem to return true on those.
14922 - Moved code that previously was in ProcessDialogKey into new private
14923 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
14924 - Reworked handling of WM_CHAR to not have to duplicate code from
14925 Control.cs anymore, instead we simply call down to base.
14927 2006-01-12 Jackson Harper <jackson@ximian.com>
14929 * ComboBox.cs: We always need to refresh the text area when
14930 EndUpdate is called. Fixes the combobox in the file dialog.
14931 * Control.cs: Don't create the creator_thread until the controls
14932 handle is created. Also in InvokeRequired we check if the
14933 creator_thread is null. This gives the effect of InvokeRequired
14934 returning true if the controls handle is not created yet, and
14937 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14940 - Added StartLoop() driver method. This is used to allow drivers to
14941 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
14942 loop for a particular thread
14943 - Added EndLoop() driver method. This is called once the message
14944 pump for the thread is shut down
14945 - Added SupportsTransparency method to allow the driver to indicate
14946 opacity support for windows
14948 - Removed TODO attribute, completed AllowTransparency property
14949 - Added documented logic to Opacity
14950 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
14951 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
14952 versions of CompatibleTextRendering
14953 * X11Structs.cs: Added opacity atom to our atom enumeration
14954 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
14955 of a form might be set before it's reparented by the WM, and we need
14956 the opacity value without calling up to Form)
14957 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
14958 SupportsTransparency() driver methods
14959 * Application.cs: Now calling StartLoop and EndLoop driver methods
14961 - Added opacity atom registration
14962 - Added StartLoop()/EndLoop() methods. They're empty right now but
14963 will need to get implemented when we switch to a per-thread queue
14964 - Implemented SupportsTransparency() method
14965 - Implemented SetWindowTransparency() method
14966 - Added support for setting the opacity value when a window is
14967 reparented (since the opacity needs to be set on the WM frame)
14968 * XplatUIOSX.cs, XplatUIWin32.cs:
14969 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
14971 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
14973 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
14975 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
14977 * FileDialog.cs: Added ToolTip for MWFFileView
14978 * MimeIcon.cs: Rewrote GnomeHandler.
14979 - Get currently used gnome icon theme from
14980 ($HOME)/.gconf/%gconf-tree.xml
14981 - Make use of inherited icon themes
14982 - Support SVG icon themes like Tango via librsvg
14984 2006-01-12 Miguel de Icaza <miguel@novell.com>
14986 Revert's Jackson's revert which broke 2.0 builds. Fix both
14989 * Application.cs: Move the use_compatible_text_rendering outside
14990 the NET_2_0 define. If we ever need to use the
14991 use_compatible_text_rendering on the individual controls they will
14992 access the variable from the common shared code paths.
14994 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14997 - Added more granular debug options
14998 - Added method to print both window text and id
14999 - Switched debug output to use new Window() debug method
15000 - Added IsEnabled() driver method
15001 - Added EnableWindow() driver method
15003 - Removed end_modal; no longer needed, new loop handles termination
15004 via 'closing' variable
15005 - If form is modal, setting DialogResult will now initiate loop
15006 termination via 'closing' variable
15007 - Added support for is_enabled/WS_DISABLED to CreateParams
15008 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
15010 - Removed code that's now in RunLoop from ShowDialog()
15011 - Added various documented sanity checks to ShowDialog()
15012 - Added handling of WM_DESTROY message; we set 'closing' on getting
15013 the message to indicate the message pump to terminate
15014 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
15015 send by the Application.ExitThread method. (We send the message
15016 to destroy the window after all other events have been
15017 processed through the queue, instead of destroying the handle
15019 - Moved code from Close() method to WM_CLOSE handler; added logic
15020 to only send close-related events if the form is not displayed
15022 * Splitter.cs (..ctor): Fixed typo in resource name
15024 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
15026 - set_Cursor: Now only setting calling into XplatUI if the handle for
15027 the control is already created; this avoids implict handle creation
15028 or crashes if it's not created
15029 - set_Enabled: Now setting the enabled state via the new driver method
15030 instead of just tracking it
15031 - CreateParams: Added logic to set WS_DISABLED based on enabled state
15032 - CreateControl: Reordered event firing and method calls to more
15033 closely fire events in the order MS does. Now setting the
15034 enabled state in the driver when creating the control.
15035 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
15037 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
15038 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
15039 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
15041 - Added tracking of window enabled state (get_Enabled/set_Enabled)
15042 - Added EnabledHwnd property to easily allow a driver to find the
15043 handle of the first enabled window in the parent chain (this is
15044 used by drivers to pass up input events of disabled windows)
15045 * XplatUIDriver.cs: Added IsEnabled() method
15047 - Removed crude and obsolete exiting tracking variable
15048 - Removed internal ModalRun(); replaced by RunLoop()
15049 - Implemented private CloseForms() method to allow closing all
15050 windows owned by a particular (or all) threads
15051 - Exit() now properly closes all windows without forcing the message
15053 - Removed obsolete InternalExit() method
15054 - Changed Run() methods to use new RunLoop() message pump
15055 - Implemented new RunLoop() method for both modal and non-modal forms
15057 - get_CreateParams: Added setting of WS_DISABLED
15058 - Simplified ShowDialog(); now all the work is done in RunLoop(),
15059 invoked via Form.ShowDialog()
15060 * NativeWindow.cs: We don't remove the window from the collection when
15061 the handle is destroyed; there might still be messages for it in the
15062 queue (mainly the resulting WM_DESTROY); instead it will be removed
15063 when Control calls InvalidateHandle in the WM_DESTROY handler
15065 - CreateWindow: Added logic to handle the WS_DISABLED window style
15066 - EnableWindow: Implemented based on Hwnd.Enabled
15067 - GetMessage: Reset PostQuitState so the method can be called again
15068 - Implemented support for disabled windows (passing messages to the
15069 first enabled parent) in handling all input messages
15070 - Added optimizations for handling Expose events
15071 - Implemeted new driver method IsEnabled()
15072 - Now always resetting paint pending tracking vars when we start paint
15073 - Re-implemented UpdateWindow via just sending a WM_PAINT message
15074 * XplatUIOSX.cs: Added IsEnabled method stub
15075 * XplatUIWin32.cs: Implemented new IsEnabled() method
15077 2006-01-11 Jackson Harper <jackson@ximian.com>
15079 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
15080 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
15081 variables a little.
15082 * ColorDialog.cs: Clear out the old form before adding the new
15085 2006-01-11 Jackson Harper <jackson@ximian.com>
15087 * X11Dnd.cs: Make sure to add all the text formats when adding
15088 strings to the data object.
15089 * TreeNodeCollection.cs: When adding to a sorted tree we need to
15090 do some redrawing too. Also change the UpdateNode to an
15091 UpdateBelow so the newly added node gets painted.
15093 2006-01-11 Miguel de Icaza <miguel@novell.com>
15095 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
15096 LinkLabel.cs, PropertyGrid.cs: Implement the
15097 UseCompatibleTextRendering property for 2.x
15099 * Application.cs (SetCompatibleTextRenderingDefault): Add.
15101 2006-01-11 Jackson Harper <jackson@ximian.com>
15103 * TreeView.cs: Use the property for setting the selected node so
15104 the correct events get raised.
15105 * TreeNode.cs: Update the tree when the fore/back colours of a
15108 2006-01-10 Jackson Harper <jackson@ximian.com>
15110 * TreeView.cs: Allow setting SelectedNode to null.
15112 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15114 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
15116 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15118 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
15120 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15122 * PrintDialog.cs: Added attributes and set default property values.
15124 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15126 * PrintControllerWithStatusDialog.cs:
15127 Added PrintControllerWithStatusDialog.
15129 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15131 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
15132 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
15134 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15136 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
15138 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
15140 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
15141 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
15143 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
15145 * MimeIcon.cs: Added internal class SVGUtil.
15147 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
15149 * FileDialog.cs: Don't crash if there are two files with the
15150 same name but different locations.
15152 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
15154 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
15155 dates across multiple month grids. Used to not highlight entire
15156 month, but does now.
15158 2006-01-06 Jackson Harper <jackson@ximian.com>
15160 * MonthCalendar.cs: Removed DoEvents call to prevent a running
15161 message loop. Change timer intervals to numbers that seem more
15164 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
15166 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
15167 object for location info since screen object is now implemented.
15169 2006-01-05 Jackson Harper <jackson@ximian.com>
15171 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
15172 * AsyncMethodResult.cs: We no longer use a WeakReference for the
15173 AsyncMethodResult, this is because we ALWAYS want the
15174 ManualResetEvent to get set.
15175 * Control.cs: When disposing use an async invoke to call shutdown
15176 code, so that thigns don't block on the finalizer thread. Also
15177 check if we even have a message loop before trying to send
15178 messages, if we don't then don't bother sending messages.
15179 - No more weak references for async methods
15180 * XplatUIDriver.cs: No more weak references for async methods.
15182 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
15184 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
15185 returns two FontFamily with the same name
15187 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
15189 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
15190 drawing disabled text. Instead using the ColorGrayText color
15192 2006-01-04 Jackson Harper <jackson@ximian.com>
15194 * TreeNode.cs: redraw the node when its image index is changed.
15196 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
15198 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
15199 time I checked there are no others like it.
15201 2006-01-04 Jackson Harper <jackson@ximian.com>
15203 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
15204 this gives the behavoir I was looking for.
15205 * Control.cs: Special case Invoking EventHandlers, this matches MS
15206 and fixes part of bug #76326.
15208 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
15210 * ThemeClearlooks.cs, FileDialog.cs:
15211 - Reflect the latest Theme class changes
15212 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
15215 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
15217 * Theme.cs: Cache UI resource images and resize them if needed
15219 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
15221 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
15222 is called. This fixes the crash in Nexxia when setting the font
15223 attributes in the chat. [However, RTF needs a look-over to make sure
15224 that all SelectionXXX methods handle the special case that selection
15225 is empty and therefore the change must be applied to all text starting
15226 at the cursor/selection start]
15228 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
15230 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15231 XplatUIOSX.cs: Added SendMessage and PostMessage methods
15232 * X11Keyboard.cs: Switched to new way of calling PostMessage
15234 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
15236 * Theme.cs: Added theme interface for images to allow the theme to
15237 control what images are used for things like FileDialog, MessageBox
15239 * MessageBox.cs: Now uses the new Theme icon/image interfaces
15241 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
15244 - Removed some dead code
15245 - Opening a recently used file does work now
15246 - Small UI enhancements
15249 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
15251 * FileDialog.cs: Forgot too add __MonoCS__
15253 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
15255 * FileDialog.cs: We are able to read recently used files now let's
15256 go on and write them.
15258 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
15260 * FileDialog.cs: Breathe some life into "last open"/"recently used"
15262 * MimeIcon.cs: Do a check for the top level media type also
15264 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
15266 * ThemeClearlooks.cs:
15267 - Added CPDrawStringDisabled
15268 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
15269 some chars if the text doesn't fit into text_rect
15270 - DrawListViewItem: If View = View.LargeIcon center the image;
15271 rewrote the drawing of ListViewItem.Text if View =
15274 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
15276 * MimeIcon.cs: Use default KDE icon theme if there is no
15277 "48x48" directory for the current icon theme, fixes #77114
15278 * Mime.cs: Disable not working and actually not used code.
15279 * ThemeWin32Classic.cs:
15280 - Replace "new SolidBrush" in GetControlBackBrush and
15281 GetControlForeBrush with ResPool.GetSolidBrush
15282 - Changed DrawListViewItem from private to protected virtual
15284 - Added form.MaximizeBox = true
15285 - Don't throw an exception if there is a broken symbolic link
15287 2005-12-23 Jackson Harper <jackson@ximian.com>
15289 * TabControl.cs: Give the panels focus, keyboard navigation is
15290 fixed so this works correctly now.
15291 - We need these key events also.
15292 * ToolBar.cs: Remove some of the poor mans double buffering.
15294 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
15296 * ComboBox.cs: The internal TextBox now returns the focus.
15298 2005-12-23 Jackson Harper <jackson@ximian.com>
15300 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
15302 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
15304 * Control.cs: Removed debug code
15305 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
15308 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
15310 * Control.cs: When creating the control, update the Z-order after
15311 all it's children are created, too. (Fixes nexxia not showing
15314 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
15316 * Control.cs: Do not update the anchoring distances if layout is
15317 suspended, instead do it once layout is resumed
15319 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
15322 - After many hours of debugging, for both Jackson and
15323 myself, it turns out that it helps to set the parent of a control
15324 if you want to actually see it onscreen. In the spirit of that
15325 discovery, we're now setting the parent of the control and
15326 it's children when the control's handle is created. This fix
15327 will make Lutz Roeder's Reflector run happily.
15328 - now just creating the handle instead of the whole control when
15329 getting a graphics context for the control.
15331 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
15333 * ScrollableControl.cs: When calculating the canvas, don't consider
15334 the scrollbar widths. Instead, predict if horizontal scrollbar
15335 will affect canvas when deciding on vertical display and vice versa.
15337 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
15339 * RichTextBox.cs: Set default RTF font for documents that don't
15340 have a font table (Fixes #77076)
15342 2005-12-22 Jackson Harper <jackson@ximian.com>
15344 * TextBoxBase.cs: It's difficult to do, but you can have an empty
15345 clipboard. This prevents a NullRef in that case.
15346 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
15347 clipboard. PRIMARY is for the currently selected text only. (We
15348 should implement PRIMARY at some point.
15350 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15352 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
15353 a Unicode function with a structure that was defined in Ansi way.
15356 2005-12-21 Jackson Harper <jackson@ximian.com>
15358 * StatusBar.cs: Statusbar handles its fore/back colours on it's
15359 on. Because thats how it rolls. (and this avoids it using ambient
15361 * ThemeWin32Classic.cs: Use the proper back color for filling.
15362 * Menu.cs: Use the system menu bar color for drawing menu
15363 bars. Using the window back color will bring ambient colours into
15366 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
15368 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
15369 Bitmaps were created and not disposed.
15371 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15373 * Control.cs (CreateControl): Don't do anything if the control is
15374 already created, otherwise we'd fire the OnCreated event more than
15377 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15379 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
15380 will always match. Instead return -1. Fixes #76464.
15382 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15384 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
15385 neither the beginning nor the end of the line (Fixes bug #76479)
15387 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15390 - ControlNativeWindow.ControlFromHandle(): Now handling situation
15391 where handle is invalid
15392 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
15393 instead of slower linear search
15394 * NativeWindow.cs: Don't remove the window from the hashtable until
15395 after the driver has destroyed it (since the driver might use
15396 Control.FromHandle to lookup the control object
15397 * Hwnd.cs: Added DestroyPending property to track if a window is
15398 already destroyed as far as the driver is concerned and only hasn't
15399 yet notified the control
15401 - Activate(): Check if the window is still valid before using the
15403 - Implemented DestroyChildWindow() method to mark child windows as
15404 destroyed when a window is destroyed. This prevents situations
15405 where we might call an X method based on queued events for a
15406 window that already has been destroyed but we haven't yet pulled
15407 the destroy method from the queue.
15408 - Added a call to the new DestroyChildWindow() method to the drivers
15409 DestroyWindow code. Also now marking the destroyed window itself
15412 2005-12-20 Jackson Harper <jackson@ximian.com>
15415 * StatusBarPanel.cs: Don't calculate panel sizes on draw
15416 anymore. Just do them when needed, also track the rects of panels
15417 so that we can optimize refreshing more in the future.
15419 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
15421 * ColorDialog.cs: Fixed focus drawing in small color controls
15423 2005-12-19 Jackson Harper <jackson@ximian.com>
15425 * InternalWindowManager.cs:
15426 * MdiWindowManager.cs: Cleanup some coordinate system changes so
15427 moving windows works properly.
15429 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
15432 - Removed call to InitLayout() from SetBoundsCore(); doc says
15433 it's only called when a control is added to a container
15434 - Split InitLayout logic, moved to separate UpdateDistances() method
15435 since we need to perform those calculations more often than just
15436 when adding the control to a container. (Needed to fix #77022)
15437 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
15438 - Reduced the OnBindingContextChanged events count, don't send them
15439 unless the control is created, we still aren't totally matching
15440 MS, but I can't quite figure out some of their rules
15442 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
15444 * ThemeClearlooks.cs: Corrected distance between ProgressBar
15447 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
15449 * ThemeClearlooks.cs:
15450 - Updated ProgressBar drawing
15451 - Corrected drawing of ScrollBars and scroll buttons
15452 - Some temporary fixes for minor pixel artefacts
15454 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
15457 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
15458 cause events to be sent in the same order as MS does.
15459 - Added ChangeParent() method to trigger various OnXXXChanged events
15460 that need to be fired when a parent changes (This is a reworking
15461 of the patch from r54254, with the X11 errors fixed)
15462 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
15463 since on MS we get OnLayoutChanged events when calling Clear()
15464 - Changed Enabled property to consider parent state as well, if a
15465 parent is not enabled, the control will not be either
15466 - Changed Parent property to simply call Controls.Add() since that
15467 now does all the work required, this way we avoid code duplication
15468 - Threw in a few OnBindingsContextChanged calls to try and match
15469 when MS sends them. We seem to send a few too many, though.
15470 - Added call to CreateControl when adding the control to a parent.
15471 We were never calling CreateControl. Still needs some work, in
15472 some places we treat HandleCreated and ControlCreated as equal,
15474 - Removed obsolete commented out code from UpdateZOrder()
15476 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
15478 * ThemeClearlooks.cs: Updated TrackBar drawing.
15480 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
15482 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
15484 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
15486 * FileDialog.cs: Add the Help button and the open readonly
15487 checkbox only if needed
15489 2005-12-16 Jackson Harper <jackson@ximian.com>
15491 * Control.cs: Make sure we have an active menu before trying to
15492 process commands on it. Prevents menu-less forms from crashing
15493 when Alt is pressed.
15494 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
15496 * RichTextBox.cs: Expand statement to help out gmcs and fix the
15499 2005-12-16 Jackson Harper <jackson@ximian.com>
15501 * InternalWindowManager.cs: Don't translate tool windows screen
15502 coordinates. This fixes windows 'bouncing' around when being moved.
15504 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
15507 - MaxLength now treats 2^31-1 equal to unlimited length (this is
15508 not quite MS compatible, MS uses that number only for single line
15509 and 2^32-1 for multi-line, but I figure it won't hurt keeping
15511 - Now enforcing the MaxLength limit when entering characters
15512 - Added argument to internal Paste() method to track if it's called
15513 from programatically or via keyboard, since keyboard driven pastes
15514 need to enforce max-length
15515 - Added logic to Paste to only paste as many chars as MaxLength
15517 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
15519 - Added Length property to return number of characters in document
15520 - Added private CharCount property which only tracks actual chars
15521 in the document (no linefeeds) and fires event when CharCount
15523 - Added tracking of character count to all methods that alter it
15524 - Added LengthChanged event to allow applications to subscribe
15525 to any changes to the document
15527 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
15530 - Removed local password_char field (moved to TextBoxBase)
15531 - Now setting the document's password var when password is
15534 - Added password_char field (needed here so MultiLine can
15536 - Added logic to MultiLine property setter to set the document's
15537 variable when password display is allowed
15538 - Removed debug code and made some debug code conditional
15540 - Added RecalculatePasswordLine() method to handle special password
15542 - Added PasswordChar property, also added related tracking vars
15543 - Draw() method now uses local text var for grabbing text to draw,
15544 this var is set to line.text unless we're doing password display,
15545 then it is set to the pre-generated all-password-chars line
15546 - Added calling RecalculatePasswordLine() method for password lines
15548 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
15551 - Added Reparented property to allow tracking of Window Manager
15552 reparenting actions (which affect X/Y calculations of toplevel
15554 - Made ToString() print window handles in hex
15556 - AddConfigureNotify(): Now uses reparented state off Hwnd to
15557 determine if X/Y needs offsetting
15558 - AddConfigureNotify(): Fixed offset calculations
15559 - Now adds ReparentNotify messages into the queue
15560 - Now processes ReparentNotify messages and causes a
15561 WM_WINDOWPOSCHANGED message to be sent upstream if a window
15562 is reparented (as most likely it's X/Y coordinates are changed
15565 2005-12-14 Jackson Harper <jackson@ximian.com>
15567 * XplatUIX11.cs: Tool windows still need to respek focus.
15569 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
15571 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
15572 have a working release
15574 2005-12-13 Jackson Harper <jackson@ximian.com>
15576 * Form.cs: Update styles after setting the border style regardless
15577 of whether or not the window is using a window manager.
15579 2005-12-13 Jackson Harper <jackson@ximian.com>
15581 * Form.cs: We now hook into an internal window manager instead of just an
15582 MDI subsystem, this is so we can have properly behaving tool windows.
15583 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
15584 * InternalWindowManager.cs: New internal class that acts as a
15585 window manager for tool windows and as a base for mdi windows.
15586 * MdiWindowManager.cs: New class that acts as a window manager for
15589 2005-12-12 Jackson Harper <jackson@ximian.com>
15591 * Control.cs: Updates so we match behavoir for for implicit
15592 controls. Fixes explosions in MDI.
15594 2005-12-12 Jackson Harper <jackson@ximian.com>
15596 * Control.cs: Implement Invalidate (Region).
15598 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
15601 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
15602 the same events as MS does. MS fires events for each property
15603 except, for unknown reasons, Cursor, when the control is reparented.
15604 I can't seem to totally match add/remove since MS also fires some
15605 VisibleChanged events, which makes no sense. Consolidated the
15606 parenting code into a separate method so it can be called from
15607 both Add and Remove. set_Parent no longer needs any special logic
15608 as it calls the parent's add method which implicitly fires
15610 - Removed some obsolete code and debug output
15611 - Enabled state is inherited from parents, if this is enabled
15613 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
15615 * Form.cs: Removed commented out code
15617 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
15620 - Added internal version of Invoke, with additional argument
15621 indicating if we're calling it from a Dispose() handler. That
15622 way we can avoid BeginInvoke throwing an exception if we're
15623 calling for an already destroyed window.
15624 - Added a dispose argument to BeginInvokeInternal, and made the
15625 check if a valid window handle chain exists conditional on
15626 it not being a dispose call
15627 - Removed code in DestroyHandle to destroy our children. Since we
15628 now handle the WM_DESTROY message we will catch all our children
15630 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
15632 - Added a field to track the application context of the form.
15633 - No need to set closing variable as response to WM_CLOSE, instead
15634 we destroy the window. We also call PostQuitMessage if the form
15635 has an application context (which makes it the main app form,
15636 which, when closed terminates the app)
15638 - Dropped Exit() method, it's naming was confusing
15639 - Added PostQuitMessage() which causes GetMessage to return false
15640 once the message queue is empty
15641 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
15643 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
15644 no longer a valid XplatUI method, but left it in since it's used
15645 internally. Added empty PostQuitMessage() method.
15646 * MenuAPI.cs: Replaced call to Exit() with call to
15647 PostQuitMessage, even though this is probably no longer needed.
15648 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
15649 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
15651 - Replaced call to XplatUI.Exit() with PostQuitMessage()
15652 - Removed old debug code that would call XplatUI for exception
15653 display, enabled standard exception handling (Still not enabled
15654 though, until NativeWindow's ExternalExceptionHandler define
15657 - Added internal method to allow control to update NativeWindow
15658 after a window has been destroyed
15659 - Added handling of already destroyed windows when calling i
15661 - Added removal of handle from list on ReleaseHandle
15663 - Dropped GetMessageResult var and related code
15664 - Added PostQuitState to field to track if PostQuitMessage has been
15666 - Dropped Exit() method
15667 - Added PostQuitMessage() method
15668 - GetMessage now will return false if PostQuitState is set and no
15669 more messages are in the queue.
15670 - Expose handler will no longer generate WM_PAINT messages if we are
15671 in PostQuitState since it's very likely any windows have already
15672 been destroyed, and since Hwnd won't get updated until we have
15673 processed the DestroyNotify we'd be causing X errors.
15675 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15677 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
15678 Thanks to Mike for pointing out the err of my ways.
15680 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15682 * Control.cs(PreProcessMessage): Moved menu handling back, but
15683 after all other key handling, to match MS (who handles Menu in
15685 * Menu.cs (WndProc): Removed my brainfart
15687 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15689 * Control.cs(PreProcessMessage): Removed special menu handling
15690 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
15692 2005-12-07 Mike Kestner <mkestner@novell.com>
15694 * Control.cs : special case SYSKEYUP so that we can adjust keynav
15695 state according in tracker.
15696 * Menu.cs : promote tracker field to base class and provide a tracker
15697 lookup capability. Add/Remove shortcuts dynamically if the top menu
15698 has a tracker. Unparent items that are removed from the collection.
15699 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
15700 * Theme*.cs: add always_show_hotkeys field to support configurability
15701 of mnemonic display. win32 doesn't show mnemonics until Alt is
15704 2005-12-07 Jackson Harper <jackson@ximian.com>
15706 * MdiChildContext.cs: Use Control.ResetCursor.
15707 * Control.cs: ResetCursor needs to set the property so that the
15708 correct XplatUI call gets made.
15710 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15712 * Control.cs: More fixes to make our key events match MS. We
15713 were not setting the modifier state on KeyData, and we were
15714 not generating any events when Alt was pressed with a key
15715 since handling of WM_SYSxxx was missing for the OnKey methods.
15717 2005-12-07 Jackson Harper <jackson@ximian.com>
15719 * MdiChildContext.cs: reenable the sizing code.
15720 - When the mouse leaves a window reset its cursor.
15722 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
15724 * ThemeClearlooks.cs: Reflect latest Hwnd changes
15726 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15728 * Hwnd.cs: Now using the theme 3d bordersize to calculate
15729 widths of Fixed3D borders
15731 2005-12-07 Jackson Harper <jackson@ximian.com>
15733 * MdiClient.cs: Fix warnings. Earn Mike's love.
15735 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
15737 * ThemeClearlooks.cs:
15738 - Adjusted mouse over button color
15739 - Added first parts of CheckBox drawing
15740 - Added correct color for selected text background
15741 - Fixed ComboBox drawing
15742 - Added CPDrawBorder3D and CPDrawBorder
15744 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
15746 * XplatUIX11.cs: Added call to XBell for AudibleAlert
15748 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
15750 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15751 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
15752 alert users via sound. We could add an enum arg with different
15753 types of alerts in the future
15755 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
15757 * Control.cs: Fix behaviour problems pointed out by Mike
15759 2005-12-05 Mike Kestner <mkestner@novell.com>
15761 * StatusBarPanel.cs: add Invalidate method and hook it into all the
15762 prop setters. Calls parent.Refresh for now, but could be maybe be
15763 optimized with an internal method on StatusBar at some point.
15766 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
15768 * RichTextBox.cs: Implemented get_SelectionColor
15770 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
15772 * ThemeClearlooks.cs:
15773 - Removed dead code
15774 - Draw black button border only if button is Form.AcceptButton
15775 - Draw correct button color for pressed RadioButton if the mouse
15776 has entered the button
15777 - Updated ProgressBar drawing!
15778 - Updated CPDrawSizeGrip drawing
15779 - Updated StatusBarPanel drawing
15781 2005-12-05 Mike Kestner <mkestner@novell.com>
15783 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
15784 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
15786 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
15788 * ThemeClearlooks.cs: Initial check-in, activate with
15789 export MONO_THEME=clearlooks
15790 * ThemeEngine.cs: Added ThemeClearlooks
15792 2005-12-03 Mike Kestner <mkestner@novell.com>
15794 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
15797 2005-12-02 Jackson Harper <jackson@ximian.com>
15799 * Form.cs: If the child form has no menu the default main menu is
15800 used as the active menu.
15802 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
15804 * ListBox.cs: Check if any items exist before trying to resolve
15805 coordinates into items
15807 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
15809 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
15810 as the second color for the background hatch
15812 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
15814 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
15815 * RichTextBox.cs: FormatText position arguments are 1-based, now making
15816 sure that what we pass to FormatText is always 1-based. Fixes #76885
15818 2005-11-29 Miguel de Icaza <miguel@novell.com>
15820 * NumericUpDown.cs (EndInit): When we are done initializing,
15821 reflect any updates on the UI.
15823 2005-12-02 Jackson Harper <jackson@ximian.com>
15825 * ImplicitHScrollBar.cs:
15826 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
15827 their container controls.
15828 * TreeView.cs: Use the new implicit scrollbars.
15830 2005-12-02 Jackson Harper <jackson@ximian.com>
15832 * TreeView.cs: Make top_node internal so the TreeNodeCollections
15834 * TreeNodeCollection.cs: If we remove the topnode we need to
15835 update topnode to the next node in line.
15836 - When clearing nodes go through the same process as removing
15837 them, so they get depareneted and checked if they are top node.
15839 2005-12-01 Jackson Harper <jackson@ximian.com>
15841 * TreeView.cs: When imagelists are used the image area is
15842 selectable as well as the text.
15843 - If there are no selected nodes select the first one.
15844 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
15845 so don't do it more then we need to.
15847 2005-12-01 Jackson Harper <jackson@ximian.com>
15849 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
15850 that arrows can be scaled.
15852 2005-12-01 Jackson Harper <jackson@ximian.com>
15854 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
15855 fail. Patch by Dieter Bremes
15857 2005-11-30 Jackson Harper <jackson@ximian.com>
15859 * Form.cs: Property is 2.0 only
15860 * PrintDialog.cs: Signature fix.
15862 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
15865 - No longer artificially moves text 2 pixels down (now that we have
15866 borders this is no longer needed)
15867 - Added calcs for left, hanging and right indent
15869 2005-11-23 Mike Kestner <mkestner@novell.com>
15871 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
15873 2005-11-30 Jackson Harper <jackson@ximian.com>
15875 * MdiChildContext.cs: Set the cloned menus forms, as these don't
15876 get cloned as part of CloneMenu ().
15877 * Menu.cs: Make sure the parent of the items get set correctly
15878 when they are added. And the owners are notified of the changes.
15879 * Form.cs: Create an ActiveMenu property, so that when MDI is used
15880 we can change the menu being displayed/handled by the form without
15881 changing the menu assosciated with the form.
15882 - Don't let Mdi children draw/handle menus.
15884 2005-11-30 Jackson Harper <jackson@ximian.com>
15886 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
15887 a MenuChanged event. Just to make the API a little more
15890 * MenuItem.cs: Use the new OnMenuChanged
15891 * MdiChildContext.cs: Handle menu merging.
15892 * Form.cs: Implement MergedMenu.
15894 2005-11-30 Jackson Harper <jackson@ximian.com>
15896 * Menu.cs: We were misusing Add. Add goes behind the specified
15897 index according to the docs, and does not replace the specified
15898 index. So I added an Insert method.
15900 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
15902 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
15903 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
15905 * RichTextBox.cs: Added calls to base for DnD events
15907 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
15910 - Fixed drag-selection related crash; style fixes
15911 - Implemented undo class
15912 o Implemented method to capture document state for specified
15913 range in document tree
15914 o Implemented method to restore captured document state
15915 o Implemented cursor tracking
15916 o Implemented basic undo stack
15917 - Added undo cursor tracking to methods altering cursor location
15918 - Added undo tracking to selection deletion (still missing
15919 other text-altering hookups)
15921 - Added SelectionLength property
15922 - Implemented CanPaste()
15923 - Implemented Paste()
15924 - Added missing protected methods
15925 - Fixed RTF->Document conversion; now uses font index 0 and color
15926 index 0 as the default font for the parsed text
15927 - Fixed RTF<->Document font size translation
15928 - Fixed RTF generation, now properly handles cross-tag boundaries
15929 for single line selection
15930 - No longer always appends blank line to generated RTF
15932 - Added missing attributes
15933 - Hooked up undo-related methods
15935 - Implemented Copy()
15936 - Implemented Paste()
15937 - Implemented Cut()
15938 - Fixed caret mis-behaviour on backspace across line-boundaries
15940 2005-11-29 Jackson Harper <jackson@ximian.com>
15942 * MdiClient.cs: Add a method for activating mdi children. Very
15943 basic right now. I imagine someday it might need more girth.
15944 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
15945 children windows names are added to the menu item.
15946 * ThemeWin32Classic.cs: Draw the arrow if the item is an
15947 mdilist. This happens regardless of whether or not there are any
15948 mdi windows to see in the list, and according to my tests happens
15949 before the items are even added. Also happens if there isn't even
15950 an mdi client to get windows from.
15952 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
15954 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
15955 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
15957 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
15959 * DataGridTableStyle.cs:
15960 - Create always the styles for the missing columns even if they are
15961 provided by the user (not default table style)
15964 - Fixes SetDataBinding (always re-attach source)
15965 - Fixes SetNewDataSource (only clear styles if they are not for
15967 - Expands OnTableStylesCollectionChanged to handle style refresh
15968 and remove properly
15970 2005-11-29 Jackson Harper <jackson@ximian.com>
15972 * FileDialog.cs: Implement missing bits, remove some dead
15974 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
15975 creation of the panel so that the options set on the dialog are
15976 seen when the panel is created.
15977 * TreeView.cs: raise a click when items are clicked.
15979 2005-11-29 Jackson Harper <jackson@ximian.com>
15981 * MdiClient.cs: Pass some signature methods through to base.
15983 2005-11-28 Jackson Harper <jackson@ximian.com>
15985 * ListView.cs: Raise the click event when items are clicked.
15987 2005-11-28 Jackson Harper <jackson@ximian.com>
15989 * MdiClient.cs: Make this algorithm even more beautiful. And fix
15992 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
15994 * ThemeNice.cs: - Removed 1 pixel bitmaps
15995 - Use SmoothingMode.AntiAlias where it makes sense
15996 (ScrollButton arrow for example)
15997 - Enhanced Button focus drawing
15998 - Fixed ComboBox drawing (no artefacts anymore, focus
15999 rectangle is back again, reduced size of ComboButton, etc.)
16000 - Fixed RadioButton focus drawing for Appearence.Button
16001 - Slight ScrollButton redesign
16002 - Some LinearGradientBrush size fixes
16003 - GroupBoxes have now rounded edges
16004 - Fixed StatusBar drawing
16006 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
16008 * ThemeNice.cs: - Remove dead code
16009 - use correct background colors for menus, etc.
16010 - Fake pixel drawing with 1 pixel bitmaps
16012 2005-11-24 Jackson Harper <jackson@ximian.com>
16014 * MdiClient.cs: Size the scrollbars when resizing the window.
16015 - Resize the maximized windows when the client is resized
16016 * Form.cs: Make the child context available
16018 2005-11-23 Jackson Harper <jackson@ximian.com>
16020 * MdiChildContext.cs: Don't size windows if they are maximized.
16022 2005-11-23 Mike Kestner <mkestner@novell.com>
16024 * ContextMenu.cs: use MenuTracker.
16025 * Control.cs: remove menu handle usage.
16026 * Form.cs: remove menu handle usage.
16027 * Hwnd.cs: remove menu handle usage.
16028 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
16029 motion and clicks to the new Tracker handlers.
16030 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
16032 * MenuAPI.cs: refactored to combine popup and menubar event handling.
16033 Killed the MENU and MENUITEM data types and associated collections
16034 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
16035 MenuTracker class that exposes the leftovers from the old MenuAPI
16036 static methods. Restructured Capture handling so that only one grab is
16037 done for the entire menu hierarchy instead of handing off grabs to
16038 submenus. Tracker now has an invisible control to Capture when active.
16039 * MenuItem.cs: add sizing accessors, kill Create
16041 * Theme.cs: remove menu handle and MENU(ITEM) usage.
16042 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
16043 MENU(ITEM). remove menu handle usage, use Menu directly.
16044 * XplatUIDriver.cs: remove menu handle usage.
16045 * XplatUIOSX.cs: remove menu handle usage.
16046 * XplatUIWin32.cs: remove menu handle usage.
16047 * XplatUIX11.cs: remove menu handle usage.
16049 2005-11-22 Jackson Harper <jackson@ximian.com>
16051 * Hwnd.cs: Don't compute the menu size for
16052 DefaultClientRectangle.
16053 - Reenable menu sizes being computed for GetClienRectangle.
16054 * Form.cs: Remove comment of trechery
16056 2005-11-22 Jackson Harper <jackson@ximian.com>
16058 * Hwnd.cs: The adjustments for the menu bar are made when it is
16059 attached to the form.
16061 2005-11-19 Jackson Harper <jackson@ximian.com>
16063 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
16064 (just like on windows).
16066 2005-11-19 Jackson Harper <jackson@ximian.com>
16068 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
16069 use real buttons anymore because they are in non client area. The
16070 one TODO here is that I need to somehow invalidate a section of
16071 the non client area.
16073 2005-11-18 Jackson Harper <jackson@ximian.com>
16075 * Control.cs: Put the enum check back in now that MDI doesnt have
16076 to use this to set border styles.
16077 * Form.cs: Only set mdi child windows borders if the handle has
16079 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
16080 this directly on to the driver.
16081 - Get the move start position before adjusting for the titlebar
16082 height, this fixes the windows "skipping" when they are first
16085 2005-11-18 Jackson Harper <jackson@ximian.com>
16087 * XplatUIX11.cs: Just compute the mdi borders separately as they
16088 don't totally match up with normal form borders.
16090 2005-11-18 Jackson Harper <jackson@ximian.com>
16092 * Control.cs: Set WS_ styles for borders, so that the driver does
16093 not have to retrieve the control instance to figure out what kind
16094 of borders it should have.
16095 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
16096 driver can know its an mdi child easily.
16097 * XplatUIX11.cs: Get the border styles and whether the window is
16098 MDI from the Styles and ExStyles params instead of having to get a
16099 control. This prevents a chicken and egg problem.
16101 2005-11-18 Jackson Harper <jackson@ximian.com>
16103 * MdiClient.cs: Fix typo so scrollbars show up correctly.
16105 2005-11-18 Jackson Harper <jackson@ximian.com>
16107 * MdiClient.cs: Calculate when to add and remove scrollbars
16109 * MdiChildContext.cs: Adjust the y position to take the titlebar
16111 - No height for FormBorderStyle.None
16113 2005-11-18 Jackson Harper <jackson@ximian.com>
16115 * Control.cs: Allow non enum values to be used for
16116 InternalBorderStyle. MDI does this to set a special border style.
16117 - New utility methods for converting points to/from client coords
16118 - Add the newly created control to the Controls collection before
16119 updating its style. This way UpdateStyle can walk the control
16120 heirarchy to find the control if needed.
16121 so I don't need to create a new Point object all the time.
16122 * Form.cs: Let MDI windows handle their border styles.
16123 - Set styles on MDI windows so the correct title style is derived.
16124 * MdiChildContext.cs: Move all the painting and window handling
16125 into the non client area.
16126 - Use correct sizing and put correct buttons on frames based on
16127 the FormBorderStyle.
16128 - Notify the mdi client about scrolling
16129 - Need to handle the buttons ourselves now, because they are all
16130 in non client areas and we can't add controls there.
16131 * MdiClient.cs: Halfway to scrolling, this implementation is
16132 somewhat broken though, we need to check to make sure other
16133 windows aren't causing scrolling before removing the bars. Also
16134 the bars need to be drawn on top, maybe I can switch implicit
16135 controls to be on top.
16136 * Hwnd.cs: caption_height and tool_caption_height are now
16137 properties of an hwnd, this way they can be set by the driver
16138 based on the type of window they are. In X11 the window manager
16139 handles the decorations so caption_height is zero unless its an
16141 - Add 3 pixel borders for MDI windows (0xFFFF).
16142 - Get rid of some code duplication, have DefaultClientRectanle
16143 just call GetClientRectangle.
16144 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
16146 - Set border styles differently for mdi windows.
16147 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
16150 2005-11-15 Mike Kestner <mkestner@novell.com>
16152 * Menu.cs: when adding an item to the collection, if item is already
16153 parented, remove it from the parent.
16155 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
16157 * X11DesktopColors.cs: Added KDE support
16159 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
16162 - Clipboard methods now can translate Rtf format
16163 - No longer removes clipboard contents whenever a new format is added
16164 to allow placing multiple formats on the clipboard
16165 * Clipboard.cs: Clipboard now supports getting a IDataObject and
16166 will place all formats contained in it onto the clipboard. Also
16167 now cleans the clipboard before placing a new object onto it
16169 - Implemented set_Rtf
16170 - Implemented set_SelectedRtf
16171 - Created InsertRTFFromStream() method to allow single code base
16172 for all properties and methods that insert RTF into document
16173 - Removed debug output
16175 - Fixed Delete(int) to fix up line numbers
16176 - Fixed ReplaceSelection to combine start and end line
16177 - Fixed serious DeleteChars bug that would leave the document tree
16179 - Improved DumpTree with several logic checks to detect broken
16181 - Removed debug lines
16182 - Fixed Caret.WordForward/WordBack moving code, now always also
16183 updates caret.tag (fixes crash when word-selecting across tag
16184 boundaries via keyboard)
16185 - Added Insert() method for inserting multiline text into documents
16186 - Fixed DeleteChars() calculation errors that would cause a broken
16187 tag chain with multiple tag lines
16188 - DeleteChars() no longer crashes on multi-tag lines if not all tags
16189 - Split() no longer moves caret if split is at caret location
16190 - ReplaceSelection() now updates the cursor and re-displays it
16191 - ReplaceSelection() now uses new Insert() method to avoid code
16193 - FormatText() can now handle formatting partial lines
16195 - Append now uses new TextControl.Insert() method (this avoids
16197 - Implemented Ctrl-X (Cut) (
16198 - Implemented Ctrl-C (Copy)
16199 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
16200 regeneration when pasting text; roundtripping Copy&Paste within
16201 edit control still fails due to some calculation bugs in GenerateRTF)
16202 - The Delete key will now remove the current selection if it is visible
16203 * TextBox.cs: Removed debug lines
16204 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
16205 driver to be initialized and can't therefore be done via a static ctor)
16207 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
16209 * TextControl.cs: Added backend code for finding char arrays and strings
16211 - Added mouse wheel scroll support
16212 - Added support for VScroll and HScroll events
16214 - Implemented all seven Find() variants
16215 - Implemented GetCharFromPosition()
16216 - Implemented GetCharIndexFromPosition()
16217 - Implemented GetLineFromIndex()
16218 - Implemented GetPositionFromCharIndex();
16219 - Implemented SaveFile for PlainText and UnicodeText
16220 - Fixed set_Font, now setting a new font applies that font to
16222 - Implemented generic Document to RTF converter
16223 - Implemented SaveFile for RichText format (still missing unicode
16224 conversion for non-ansi chars)
16225 - Implemented get_Rtf
16226 - Implemented get_SelectedRtf
16228 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
16230 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
16231 to allow any captures to be released before triggering OnClick. This
16232 way a click handler may capture the mouse without interference.
16233 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
16234 This way we send them even though X may not allow a grab (if the window
16235 isn't visible, for example)
16237 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
16239 * DataGridViewRowEventArgs.cs: DataGridView implementation
16240 * DataGridViewElement.cs: DataGridView implementation
16241 * DataGridViewComboBoxCell.cs: DataGridView implementation
16242 * DataGridViewDataErrorContexts.cs: DataGridView implementation
16243 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
16244 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
16245 * ImageLayout.cs: DataGridView implementation
16246 * DataGridViewComboBoxColumn.cs: DataGridView implementation
16247 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
16248 * DataGridViewSelectionMode.cs: DataGridView implementation
16249 * IDataGridViewEditingControl.cs: DataGridView implementation
16250 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
16251 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
16252 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
16253 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
16254 * DataGridViewColumnSortMode.cs: DataGridView implementation
16255 * DataGridView.cs: DataGridView implementation
16256 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
16257 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
16258 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
16259 * Padding.cs: DataGridView implementation
16260 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
16261 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
16262 * DataGridViewRowEventHandler.cs: DataGridView implementation
16263 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
16264 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
16265 * DataGridViewButtonCell.cs: DataGridView implementation
16266 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
16267 * DataGridViewEditMode.cs: DataGridView implementation
16268 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
16269 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
16270 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
16271 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
16272 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
16273 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
16274 * DataGridViewCellEventHandler.cs: DataGridView implementation
16275 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
16276 * DataGridViewCellStyleConverter.cs: DataGridView implementation
16277 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
16278 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
16279 * DataGridViewColumnEventArgs.cs: DataGridView implementation
16280 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
16281 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
16282 * QuestionEventArgs.cs: DataGridView implementation
16283 * IDataGridViewEditingCell.cs: DataGridView implementation
16284 * DataGridViewTriState.cs: DataGridView implementation
16285 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
16286 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
16287 * DataGridViewColumnCollection.cs: DataGridView implementation
16288 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
16289 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
16290 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
16291 * DataGridViewColumn.cs: DataGridView implementation
16292 * DataGridViewCellBorderStyle.cs: DataGridView implementation
16293 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
16294 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
16295 * DataGridViewRow.cs: DataGridView implementation
16296 * DataGridViewImageCellLayout.cs: DataGridView implementation
16297 * DataGridViewImageCell.cs: DataGridView implementation
16298 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
16299 * DataGridViewCheckBoxCell.cs: DataGridView implementation
16300 * DataGridViewHeaderCell.cs: DataGridView implementation
16301 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
16302 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
16303 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
16304 * DataGridViewTextBoxColumn.cs: DataGridView implementation
16305 * QuestionEventHandler.cs: DataGridView implementation
16306 * DataGridViewCellStyleScopes.cs: DataGridView implementation
16307 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
16308 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
16309 * DataGridViewCell.cs: DataGridView implementation
16310 * DataGridViewCellEventArgs.cs: DataGridView implementation
16311 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
16312 * DataGridViewCellStyle.cs: DataGridView implementation
16313 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
16314 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
16315 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
16316 * TextFormatFlags.cs: DataGridView implementation
16317 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
16318 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
16319 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
16320 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
16321 * DataGridViewButtonColumn.cs: DataGridView implementation
16322 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
16323 * HandledMouseEventArgs.cs: DataGridView implementation
16324 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
16325 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
16326 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
16327 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
16328 * DataGridViewRowCollection.cs: DataGridView implementation
16329 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
16330 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
16331 * DataGridViewHitTestType.cs: DataGridView implementation
16332 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
16333 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
16334 * DataGridViewColumnEventHandler.cs: DataGridView implementation
16335 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
16336 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
16337 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
16338 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
16339 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
16340 * DataGridViewContentAlignment.cs: DataGridView implementation
16341 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
16342 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
16343 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
16344 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
16345 * DataGridViewPaintParts.cs: DataGridView implementation
16346 * DataGridViewCellCollection.cs: DataGridView implementation
16347 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
16348 * DataGridViewImageColumn.cs: DataGridView implementation
16349 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
16350 * DataGridViewElementStates.cs: DataGridView implementation
16351 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
16352 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
16353 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
16354 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
16355 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
16356 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
16357 * DataGridViewRowHeaderCell.cs: DataGridView implementation
16358 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
16359 * DataGridViewTextBoxCell.cs: DataGridView implementation
16360 * DataGridViewBand.cs: DataGridView implementation
16361 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
16362 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
16363 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
16364 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
16365 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
16366 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
16367 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
16368 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
16369 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
16370 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
16371 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
16373 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
16375 * ThemeWin32Classic.cs:
16376 - Draw the outside focus rectangle around buttons
16377 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
16378 doesn't use end caps for every dash of a line anymore. This
16379 workaround ignores the forecolor.
16381 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
16383 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
16386 2005-11-07 Jackson Harper <jackson@ximian.com>
16388 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
16390 2005-11-07 Jackson Harper <jackson@ximian.com>
16392 * ScrollableControl.cs: Calculate the maximum and change vars
16393 (more) correctly so that scrollbars appear as a sensible size.
16395 2005-11-04 Jackson Harper <jackson@ximian.com>
16397 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
16399 * TreeView.cs: When the tree is sorted null out the top_node so
16400 that it is recalculated.
16401 - Use dotted lines instead of dashed lines to match MS better.
16403 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
16406 - Implements key search for items. Useful when browsing files with FileDialog
16407 - When changing view mode or when clear the items reset scrollbar positions
16409 2005-11-04 Jackson Harper <jackson@ximian.com>
16411 * CurrencyManager.cs: Implement the MetaDataChanged event, the
16412 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
16413 as to what the method may do as there is no real way of creating a
16414 derived CurrencyManager and calling the method.
16416 2005-11-03 Jackson Harper <jackson@ximian.com>
16418 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
16419 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
16420 method which seems to just be used internally to refresh the tabs.
16422 2005-11-03 Jackson Harper <jackson@ximian.com>
16424 * TabControl.cs: Implement the remove method. Fix some broken
16427 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
16429 * DateTimePicker.cs:
16430 - Added missing DateTimePickerAccessibleObject class
16431 - Added missing events
16432 - Added OnFontChanged method
16433 * Form.cs: Added missing attributes
16434 * TreeView.cs: Added missing attributes
16436 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
16438 * GridItemCollection.cs: Fix signatures
16440 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
16442 * XplatUI.cs: Updated build rev/date
16443 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
16444 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
16445 * Application.cs: Trigger context-specific ExitThread events
16447 2005-11-03 Jackson Harper <jackson@ximian.com>
16451 * GridTableStylesCollection.cs:
16456 * MonthCalendar.cs: Signature fixes
16458 2005-11-03 Jackson Harper <jackson@ximian.com>
16460 * TreeNodeCollection.cs: Remove should not be virtual.
16461 * TreeView.cs: Implement the last of the missing methods.
16463 2005-11-03 Jackson Harper <jackson@ximian.com>
16465 * TreeNodeConverter.cs: Implement to get off my class-status back.
16467 2005-11-03 Jackson Harper <jackson@ximian.com>
16469 * TreeView.cs: Hookup the bits for drag and drop.
16470 * TreeNode.cs: Don't cache the tree_view or index anymore, now
16471 that nodes can be moved from tree to tree easily this just causes
16472 all sorts of problems.
16473 * TreeNodeCollection: Don't need to give treenodes an index and
16474 treeview anymore when they are added, these are computed on the
16475 fly. Also make sure to remove a node before its added.
16477 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
16480 - Added CaretSelection enum
16481 - Added comparison methods to Marker struct, makes selection code
16483 - Added SelectionStart and SelectionEnd as 'moveable' location for
16484 the CaretDirection enum and handler
16485 - Added selection_prev variable to track optimized invalidation for
16486 word and line selection
16487 - Added SelectionVisible property (returns true if there is a valid
16489 - Switched CaretHasFocus to only display the caret if there is no
16491 - Avoiding StringBuilder.ToString to retrieve a single char, instead
16492 using the direct character index; should be much faster
16493 - Added various conditional debug statements
16494 - Fixed invalidation calculation for selection ranges
16495 - Added ExpandSelection() method to support word and line selection
16496 - Switched SetSelectionToCaret to use new Marker compare overloads
16497 - Added central IsWordSeparator() method to determine word
16498 separators/whitespace and FindWordSeparator() to streamline common
16499 usage of IsWordSeparator()
16501 - Removed unneeded grabbed variable, it was just mirroring
16503 - No longer firing OnTextChanged event when Text setter is called,
16504 since the base will fire the event for us
16505 - Added handling of Ctrl-Up/Down selection
16506 - Added handling of Shift-Cursorkey selection
16507 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
16509 - Added handling of Shift and Ctrl-Shift-Home/End selection
16510 - Removed some debug output
16511 - Added handling for single/double/tripple-click to place caret/
16512 select word/select line respectively (Fixes bug #76031)
16513 - Added support for drag expansion of word/line selection
16514 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
16517 2005-11-02 Jackson Harper <jackson@ximian.com>
16519 * X11Dnd.cs: If the drag is going to and from a MWF window just
16520 copy the data instead of sending it out through the X Selection
16523 2005-11-02 Jackson Harper <jackson@ximian.com>
16526 * XplatUIX11.cs: When in a drag we don't want motion notify
16527 messages to get passed on to the other controls. This prevents
16528 mouse move messages from showing up in the drag source.
16530 2005-11-02 Jackson Harper <jackson@ximian.com>
16532 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
16533 the correct button is release to end a drag.
16534 * XplatUIX11.cs: Make the button state internal so the drag system
16535 can access it. Dragging needs to know about all button releases,
16536 not just left button.
16538 2005-11-02 Miguel de Icaza <miguel@novell.com>
16540 * Form.cs (Icon): If the icon is null, reset the icon to the
16543 * Cursor.cs: When writing the AND-mask bitmap do not include the
16544 number of colors, but hardcode those to two (black and white),
16545 fixes the loading of color cursors (Paint Dot Net).
16547 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
16548 turn off autoscaling.
16550 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
16552 2005-11-02 Jackson Harper <jackson@ximian.com>
16554 * X11Dnd.cs: Make sure to send a status message if the pointer
16555 enters a control that can not accept a drop, otherwise the cursor
16556 isn't updated correctly. Also tried to compress the lines of code
16559 2005-11-02 Jackson Harper <jackson@ximian.com>
16561 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
16562 set actions correctly. This isn't perfect as XDND and win32 have
16563 some differences on how you allow actions. I'll clear this up by
16564 adding a path for drag from MWF to MWF windows.
16565 * XplatUIX11.cs: Hook into the dnd system.
16567 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
16569 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
16570 previously shown but they are no longer need it. Very obvious when
16571 browsing files with FileDialog.
16573 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
16575 * Control.cs: We always need to call OnPaintBackground. We pretty much
16576 ignore AllPaintingInWmPaint and always do the painting there, whether
16577 it's set or not, since we always ignore the WM_ERASEBKGND message
16578 (which we don't generate on X11). This fixes #76616.
16579 * Panel.cs: Removed unneeded background painting. This happens properly
16580 in Control.cs already
16582 2005-10-31 Mike Kestner <mkestner@novell.com>
16584 * Menu.cs: Add items to collection before setting their index.
16585 * MenuItem.cs : add range checking with ArgumentException like MS.
16588 2005-10-31 Jackson Harper <jackson@ximian.com>
16590 * ListBox.cs: Invalidate if the area is visible at all not just
16591 contained in the visible rect. Fixes unselection of semi visible
16594 2005-10-31 Jackson Harper <jackson@ximian.com>
16596 * Control.cs: Consistently name the dnd methods. Make them
16597 internal so we can override them to match some MS behavoir
16599 * Win32DnD.cs: Use the new consistent names.
16601 2005-10-31 Jackson Harper <jackson@ximian.com>
16603 * TreeView.cs: Don't draw the selected node when we lose focus.
16605 2005-10-31 Jackson Harper <jackson@ximian.com>
16607 * X11Dnd.cs: We still need to reset the state even though a full
16608 reset isn't being done, otherwise status's still get sent all over
16611 2005-10-31 Jackson Harper <jackson@ximian.com>
16613 * Control.cs: Make the dnd_aware flag internal so the dnd
16614 subsystem can check it. Catch exceptions thrown in dnd handlers to
16616 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
16617 * X11Dnd.cs: Handle null data in the converters. Set the XDND
16618 version when sending a XdndEnter. Use the control/hwnd dnd_aware
16619 flags to reduce the number of dnd enters/status's sent.
16621 2005-10-31 Jackson Harper <jackson@ximian.com>
16623 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
16625 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
16627 * PictureBox.cs: Fixes 76512
16629 2005-10-28 Jackson Harper <jackson@ximian.com>
16631 * X11Dnd.cs: Early implementation to support winforms being a drag
16632 source for data on X11. Also restructured the converters so they
16633 can go both ways now.
16634 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
16636 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
16638 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
16641 2005-10-27 Jackson Harper <jackson@ximian.com>
16643 * TreeNode.cs: Implement serialization so my DnD examples will work.
16645 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
16647 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
16648 TreeView.cs: Don't dispose objects that are not owned.
16650 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
16652 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
16653 should retrieve the current cursor and report that, but XplatUI
16654 doesn't (yet) have an interface for that (and I'm not sure I even
16656 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
16657 until any message loop processing is done (and the WM_SETCURSOR
16658 replaces the cursor to the proper one)
16660 - Fixed override behaviour, we can't set the cursor globally on X11,
16661 just for our windows.
16662 - Invalidating the System.Drawing X11 display handle when we are
16664 * Control.cs: Fix to make csc happy
16666 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
16669 - get_Text: Add last line (without trailing newline) to returned
16670 value (Fixes 76212)
16671 - get_TextLength: Count last line in returned length
16672 - ToString: Call Text property instead of duplicating code
16674 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
16676 * ImageList.cs: Dispose ImageAttributes objects.
16678 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
16680 * ImageList.cs: Use attribute constructors with less arguments where
16683 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
16685 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
16686 Use typeof instead of strings when assembly is referenced. Added
16687 some more comments.
16689 2005-10-21 Jackson Harper <jackson@ximian.com>
16691 * ListView.cs: Raise a double click event. Also tried to somewhat
16692 fix when the selectedindexchanged event is raised. Its still
16695 2005-10-21 Jackson Harper <jackson@ximian.com>
16697 * TreeView.cs: New method to invalidate the plus minus area of a
16698 node without invalidating the whole node (maybe this can be used
16699 in some more places).
16700 * TreeNodeCollection.cs: When adding to an empty node we need to
16701 invalidate its plus minus area so the little block shows up.
16703 2005-10-21 Jackson Harper <jackson@ximian.com>
16705 * TreeView.cs: Make sure that when we invalidate a node the bounds
16706 are big enough to cover the selected box and the focus
16707 rectangle. Use a different colour for the lines connecting nodes
16708 so they show up with all themes.
16710 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
16712 * NativeWindow.cs: Don't call anything that could call into the driver,
16713 we might be on a different thread.
16715 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
16717 * Control.cs(Dispose): Since Dispose might run on a different thread,
16718 make sure that we call methods that could call into the driver via
16719 invoke, to avoid thread issues
16721 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
16723 * XplatUI.cs: Removed finalizer
16724 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
16725 not allowing to be called on the finalizer thread.
16727 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
16730 - Reverted r51889 and r51891.
16731 - Added ImageListItem class that stores unmodified image items and image
16732 properties required to create list images until handle is created.
16733 - Added AddItem and moved image creation logic to AddItemInternal.
16734 - Added CreateHandle method that creates images based on unmodified items.
16735 - Added DestroyHandle that changes state to store unmodified items.
16736 - Add and AddStrip methods no more create handle.
16737 - ReduceColorDepth has no return value.
16738 - Dispose destroys handle.
16739 - Modified other methods to reflect the above changes.
16740 - Implemented key support.
16741 - Added profile 2.0 members and attributes.
16742 - Added private Reset and ShouldSerialize methods that provide the same
16743 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
16744 them as they are private.
16745 - Added some more comments about implementation details.
16747 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
16749 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
16751 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
16753 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
16755 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
16757 * DataGridDrawingLogic.cs: Fixes column hit calcultation
16758 * DataGridColumnStyle.cs: Remove debug message
16760 2005-10-20 Jackson Harper <jackson@ximian.com>
16762 * TreeView.cs: We can always get input keys regardless of whether
16763 or not editing is enabled. They are used for navigation.
16765 2005-10-20 Jackson Harper <jackson@ximian.com>
16767 * TreeNode.cs: Use the viewport rect for determining if a node
16768 needs to be moved for visibility. Don't use Begin/End edit. This
16769 calls a full refresh when its done.
16770 * TreeView.cs: New SetBottom works correctly. Make the viewport
16771 rect property internal so the treenodes can see it. When clicking
16772 on a node we need to ensure that its visible because it might just
16773 be partly visible when clicked.
16775 2005-10-20 Jackson Harper <jackson@ximian.com>
16777 * TreeNodeCollection.cs: Remove debug code.
16779 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
16781 * Datagrid.cs: Implements column sorting in Datagrid
16782 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
16784 2005-10-20 Jackson Harper <jackson@ximian.com>
16786 * TreeNodeCollection.cs: Remove items properly. Update the correct
16787 area after removing them.
16789 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
16791 * Datagrid.cs: Should not call base.OnPaintBackground
16793 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
16795 * XplatUIX11.cs (GetMessage):
16796 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
16797 window instead of client window
16798 - Now properly calculates NC_xBUTTONUP message coordinates
16799 - ScreenToMenu now properly calculates it's coordinates of whole
16800 window, since menus are in the whole window, not in the client
16802 - Added WholeToScreen coordinate translation method
16804 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
16806 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
16807 want to return a message, loop back to the beginning of the function
16808 and grab the next real message to process instead.
16810 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
16812 * Splitter.cs: Properly set limits if no filler control is used
16814 2005-10-19 Jackson Harper <jackson@ximian.com>
16816 * ColorDialog.cs: Don't show the help button if it is not enabled
16817 instead of disabling it (this is what MS does). Don't create the
16818 panel until the dialog is run, otherwise the vars (such as
16819 ShowHelp) are not set yet.
16821 2005-10-19 Jackson Harper <jackson@ximian.com>
16823 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
16824 are reduced when adding nodes.
16826 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
16829 2005-10-19 Jackson Harper <jackson@ximian.com>
16831 * FolderBrowserDialog.cs: End editing our treeview so the window
16832 actually gets refreshed.
16834 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
16836 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
16837 Obsoleted handling of WM_ERASEBKGND, now always draws our background
16840 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
16842 * MenuAPI.cs: Returns after Hidding window
16843 * XplatUIX11.cs: Added TODO found while debugging menu issues
16845 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
16847 * XplatUIX11.cs: Do not re-map the whole window when it's size
16848 becomes non-zero unless it's supposed to be actually visible
16850 2005-10-18 Jackson Harper <jackson@ximian.com>
16852 * TreeView.cs: We don't need to keep a count anymore.
16853 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
16854 use the Grow method.
16856 2005-10-18 Jackson Harper <jackson@ximian.com>
16858 * TreeNodeCollection.cs: Insert is not supported on arrays, so
16859 implement it manually here.
16861 2005-10-18 Jackson Harper <jackson@ximian.com>
16863 * ImageList.cs: Dont kill the list when the colour depth is
16864 changed, just change the colour depth of all the images.
16865 - Same goes for setting the image size. Just resize them all
16866 instead of killing the list softly.
16868 2005-10-18 Jackson Harper <jackson@ximian.com>
16870 * Control.cs: Don't invalidate empty rectangles.
16872 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
16875 - Adds checked item to the Checked/Item lists (where empty before)
16876 - Do not add items to the Selected lists if they are already present
16878 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
16879 - When deleting items make sure that we delete them for the Selected
16880 and Checked list also.
16882 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
16884 * Label.cs: Dispose objects no longer used
16885 * ThemeWin32Classic.cs: Dispose objects no longer used
16887 2005-10-18 Jackson Harper <jackson@ximian.com>
16889 * TabControl.cs: Don't refresh the whole control when the tabs are
16890 scrolled, we just need to refresh the tab area.
16892 2005-10-17 Jackson Harper <jackson@ximian.com>
16894 * XplatUIX11.cs: Compress code a little bit. Only calculate the
16895 after handle when we need it.
16897 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
16899 * Control.cs: When the parent size changes, recalculate anchor
16900 positions. Partial fix for #76462
16902 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
16904 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
16905 drawn. Fixes #76462
16907 2005-10-17 Jackson Harper <jackson@ximian.com>
16909 * MonthCalendar.cs: Don't create the numeric up down until our
16910 handle is created. Otherwise our handle is created in the
16911 constructor and we don't know if we are a WS_CHILD or WS_POPUP
16914 2005-10-17 Jackson Harper <jackson@ximian.com>
16916 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
16919 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
16920 * TreeNode.cs : small logical fix (was using local var instead of field)
16922 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
16924 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
16926 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
16928 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
16930 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
16933 - Re-implemented anchoring code. My first version was really broken.
16934 This fixes bug #76033. Unlike the previous implementation we will
16935 no longer have round errors since all numbers are calculated from
16936 scratch every time. Removed various anchor-related obsolete vars.
16937 - InitLayout no longer causes layout event firing and layout to be
16940 2005-10-16 Jackson Harper <jackson@ximian.com>
16942 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
16945 2005-10-16 Jackson Harper <jackson@ximian.com>
16947 * TabControl.cs: Remove debug code.
16949 2005-10-16 Jackson Harper <jackson@ximian.com>
16951 * XEventQueue.cs: Increase the default queue size (very simple
16952 apps needed to grow the queue).
16953 * Hwnd.cs: No finalizer so we don't need to suppress
16954 finalization. Compute the invalid area manually so a new rectangle
16955 does not newto be created.
16956 * ScrollableControl.cs: Don't set any params (otherwise visibility
16957 isn't set correctly).
16958 * MdiChildContext.cs: New constructor takes the mdi parent so it
16959 doesn't have to be computed and avoids a crash on windows. Draw
16960 the window icon properly, and allow the text to be seen.
16961 * Form.cs: Use new MdiChildContext constructor. Make sure the
16962 child context isn't null in wndproc.
16963 * TabControl.cs: Don't set focus, this is muddling keyboard
16964 behavoir. Expand the tab rows when a window size increase will
16965 allow extra tabs to be seen. Don't allow tabs smaller than the
16966 width of a window to be scrolled out of view.
16968 * TreeView.cs: Use measure string to calculate a nodes width, the
16969 width is cached and only updated when the text or the font is
16970 changed. Don't check for expand/collapse clicks on the first level
16971 nodes if root lines are disabled.
16973 2005-10-16 Ritvik Mayank <mritvik@novell.com>
16975 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
16977 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
16979 * DataGridBoolColumn.cs: fixes warning
16981 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
16983 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
16984 to match more to match more precisely the MS Net behavior
16986 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16988 * Hwnd.cs: Added field to track if window is mapped
16990 - Unmap windows if they become 0-size, re-map when
16991 they are >0 again; fixes #76035
16992 - Re-set our error handler after initializing X11Desktop
16993 to override any error handlers Gtk or whatever was called
16996 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16998 * CheckedListBox.cs: Removed unused vars
16999 * ListView.cs: Fixed signatures
17000 * RichTextBox.cs: Removed unused vars
17001 * TextBoxBase.cs: Removed unused vars
17002 * XplatUIWin32.cs: Removed unused vars
17003 * XplatUIX11.cs: Removed unused vars
17004 * XplatUI.cs: Updated version and date to latest published
17006 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
17008 * Cursor.cs: Added private .ctor to work around a bug in
17009 resourceset (Thanks to Geoff Norton for the help on this)
17010 * SplitterEventArgs.cs: Made fields accessible so we don't
17011 waste boatloads of objects and can reuse the same one
17013 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
17014 any captions and borders when generating screen coordinates
17015 * Splitter.cs: Reimplemented control, now fully complete, uses
17016 rubberband drawing, supports and obeys all properties, has
17019 2005-10-13 Miguel de Icaza <miguel@novell.com>
17021 * Form.cs (Form): Setup default values for autoscale and
17022 autoscale_base_size; Make these instance variables, not static
17025 (OnLoad): on the first load, adjust the size of the form.
17027 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
17029 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
17030 width argument to DrawReversibleRectangle()
17031 * XplatUIWin32.cs, XplatUIX11.cs:
17032 - Implemented width for DrawReversibleRectangle()
17033 - Added logic to DrawReversibleRectangle that recognizes a zero
17034 width or height and only draws a line in that situation
17036 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
17038 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
17039 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
17040 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
17041 method (it uses our FosterParent window to get a graphics context)
17043 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
17045 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
17046 and SetWindowBackground methods
17048 - Setting proper ControlStyles
17049 - We no longer call XplatUI.SetWindowBackground and XplatUI.
17050 EraseWindowBackground, instead we draw the window background
17051 ourselves in PaintControlBackground. This behaviour is
17052 required to match MS, where, when OnPaintBackground is not
17053 called, the background is not drawn.
17054 - Removed unneeded Refresh() in set_Text
17055 * Hwnd.cs: Dropped the ErasePending support. No longer needed
17057 - Created DeriveStyles method to translate from CreateParams to
17058 FormBorderStyle and TitleStyle, also handles BorderStyle (which
17059 matches FormBorderStyle enum values)
17060 - Consolidated SetHwndStyles and CalculateWindowRect border/title
17061 style calculations into single DeriveStyles method
17062 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
17063 from redrawing the whole window on any resize or expose.
17064 - Fixed CreateWindow usage of SetWindowValuemask. Before not
17065 all styles were applied to our whole/client window appropriately
17066 - Removed EraseWindowBackground() and SetWindowBackground() methods
17067 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
17068 no longer clear/redraw the background through X
17069 - Removed handling of erase_pending bit, we have no use for it (or
17072 - Removed generation and handling of WM_ERASEBKGND message
17073 - Removed EraseWindowBackground() and SetWindowBackground() methods
17074 - Removed handling of hwnd.ErasePending flag
17076 - Removed EraseWindowBackground() and SetWindowBackground() methods
17077 - We no longer call EraseWindowBackground on PaintEventStart, we
17078 ignore the fErase flag, erasing is handled in Control in the
17080 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
17081 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
17082 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
17083 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
17084 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
17085 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
17086 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
17088 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
17090 * PropertyGrids.cs: Get sub properties
17091 * PropertyGridView.cs: Fix drawing code
17093 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
17095 * ListBox.cs: Fixes 76383
17097 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
17099 * DataGridTextBoxColumn.cs: Sets location and size before attachment
17100 * ThemeWin32Classic.cs: Fixes border drawing and calculations
17101 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
17104 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
17106 * ComboBox.cs: Fixes border drawing
17108 2005-10-10 Miguel de Icaza <miguel@novell.com>
17110 * MimeIcon.cs: Ignore errors if the file can not be read.
17112 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
17114 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
17115 - Fixed border calculations
17116 - Fixed horizontal scrolling in single column listboxes
17117 - Fixed drawing issues
17119 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
17121 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
17122 FormBorderStyle enum
17123 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
17124 code to determine FormBorderStyles from CreateParams
17126 - Fixed bug where we'd set the wrong window styles if we were
17127 not creating an MDI window
17128 - Added call to XplatUI.SetBorderStyle when form borders are set
17129 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
17131 - Removed obsolete edge style
17132 - Switched from BorderStyle to FormBorderStyle
17134 2005-10-10 Jackson Harper <jackson@ximian.com>
17136 * Form.cs: Use the property to get the window handle instead of
17137 accessing it directly. Prevents a null reference exception.
17139 2005-10-10 Jackson Harper <jackson@ximian.com>
17141 * TreeView.cs: Don't adjust the rect given to DrawString now that
17142 our libgdiplus draws correctly.
17144 2005-10-08 Jackson Harper <jackson@ximian.com>
17146 * TreeView.cs: Don't try to find the clicked on node if there are
17147 no nodes in the tree.
17149 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
17155 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
17157 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
17158 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
17160 Use ResPool for brushes and dispose System.Drawing objects that
17161 are not used anymore.
17163 2005-10-07 Jackson Harper <jackson@ximian.com>
17165 * MdiChildContext.cs: Use the new borders instead of drawing them
17168 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
17170 * Calling UpdateBounds after changing the window's BorderStyle
17171 since the style can change the ClientSize
17173 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17175 * Control.cs: Made PaintControlBackground virtual
17176 * Panel.cs: Overriding PaintControlBackground instead of using paint
17177 event; paint event method was interfering with 'real' users of the
17180 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
17182 * ThemeWin32Classic.cs: remove border drawing since it is handled
17183 by the base control class now and was causing double border drawing.
17185 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17187 * Panel.cs: Redraw our background on paint. Not a pretty solution,
17188 but it does seem to match MS behaviour. This fixes bug #75324
17190 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17192 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
17193 somewhat hackish looking
17195 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17198 - We now accept Enter even if AcceptEnter is false, if the containing
17199 form does not have an AcceptButton configured (fixes bug #76355)
17200 - Calculations are now fixed to no longer use Width/Height, but
17201 ClientSize.Width/Height, since we now support borders (this was
17202 a result of fixing borders and therefore bug #76166)
17203 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
17204 true (fixes bug #76354)
17206 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17209 - Defaulting BorderStyle and setting it in XplatUI when our window
17211 - Added enum check to InternalBorderStyle setter
17213 - Added drawing of window borders
17214 - Now properly calculates WM decorations offset for toplevel
17215 windows (fixes bug #74763)
17217 - Implemented BorderStyles for windows (we're letting win32 draw
17219 - Fixed the signature for SetWindowLong
17220 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
17221 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
17223 * UpDownBase.cs: Remove drawing of borders, this is handled by
17224 the driver, outside the client area
17225 * ListView.cs: Removed bogus border calculations. The control should
17226 be oblivious to borders, since those are not part of the client
17228 * X11DesktopColors.cs: Commented out (currently) unneeded variables
17229 * ThemeWin32Classic.cs: Removed border calculations from ListView
17232 2005-10-06 Jackson Harper <jackson@ximian.com>
17234 * MdiChildContext.cs: Clear out the old virtual position remove
17235 all the unneeded calls to CreateGraphics.
17237 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17239 * TextControl.cs: Use proper color for highlighted text; fixes #76350
17241 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17244 - Added loading and setting of our new default icon
17245 - Only set icon if window is already created
17247 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17250 - Do not explicitly set the foreground and background colors, to
17251 allow inheriting from parents (fixes #76302)
17252 - Use Control's InternalBorderStyle property to deal with borders
17254 2005-10-06 Jackson Harper <jackson@ximian.com>
17256 * MdiChildContext.cs: Use the new xplatui function to draw a
17259 2005-10-06 Jackson Harper <jackson@ximian.com>
17261 * Form.cs: Add the parent before creating the child context cause
17262 we need the parent when setting up the child.
17264 2005-10-06 Jackson Harper <jackson@ximian.com>
17266 * FolderBrowserDialog.cs: redo the tree population code so a
17267 second thread isn't used. Should be a lot faster and more stable
17270 2005-10-05 Jackson Harper <jackson@ximian.com>
17272 * TreeView.cs: There are no expand/collapse boxes if the node has
17275 2005-10-05 Jackson Harper <jackson@ximian.com>
17277 * X11DesktopColors.cs: Get menu colours for the gtk theme.
17279 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
17281 * FileDialog.cs: Fix InitialDirectory
17283 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
17286 - Fixes changing between styles
17287 - Fixes simple mode
17288 - Fixes last item crashing when navigating with keyboard
17290 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
17292 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
17294 2005-10-05 Jackson Harper <jackson@ximian.com>
17296 * TreeView.cs: If updating the root node do a full refresh.
17297 * TreeNode.cs: The root node should be expanded by default. Also
17298 added a utility prop to tell if we are the root node.
17299 * TreeNodeCollection.cs: Only refresh if the node we are being
17300 added to is expanded. Also added a comment on a potential
17303 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
17305 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
17306 in dispose method. Fixes #76330
17308 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
17310 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
17312 - Implements vertical and horizontal scrolling using XplatUI
17313 - Fixes keyboard navagation
17314 - Fixes EnsureVisible
17316 - Handles and draws focus properly
17319 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
17321 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
17322 Create handle. NET_2_0: Destroy handle when value is null.
17324 2005-10-03 Jackson Harper <jackson@ximian.com>
17326 * ScrollBar.cs: My last scrollbar patch was broken. This is a
17327 revert and a new patch to prevent the thumb from refreshing so
17330 2005-10-02 Jackson Harper <jackson@ximian.com>
17332 * ScrollBar.cs: Don't update position if it hasn't actually
17333 changed. This occurs when you hold down the increment/decrement
17334 buttons and the thumb gets to the max/min.
17336 2005-10-01 Jackson Harper <jackson@ximian.com>
17339 * MdiChildContext.cs:
17340 * MdiClient.cs: Implement ActiveMdiChild in Form.
17342 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
17344 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
17346 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
17348 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
17351 2005-09-30 Jackson Harper <jackson@ximian.com>
17353 * ListBox.cs: Don't do a full refresh unless some data has
17356 2005-09-30 Jackson Harper <jackson@ximian.com>
17358 * TreeView.cs: Make sure that the checkboxes size is factored in
17359 even when not visible.
17361 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
17363 * FileDialog.cs: Fix Jordi's build break
17365 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
17368 - Use standard the Windows colours for the combobox as espected
17369 - Dispose objects that use resouces when no longer need them
17371 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
17373 * X11DesktopColors.cs: Initial incomplete implementation
17374 * XplatUIX11.cs: Added call to initialize X11DesktopColors
17376 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
17379 - Switched Theme color names to match the names defined in
17380 System.Drawing.KnownColors. Life's hard enough, no need to make
17382 - Added setters to all theme color properties so themes can set
17383 their color schemes. The setters also propagate the color changes
17384 to System.Drawing.KnownColors via reflection
17385 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
17386 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
17387 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
17388 use the new, more logical theme color names
17389 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
17391 * ThemeWin32Classic.cs:
17392 - Removed code to set the old classic Windows colors. Instead it
17393 now relies on the colors returned by System.Drawing.KnownColors
17394 which will be either modern static colors (Unix) or colors
17395 read from the user's configuration (Win32)
17396 - Updated to use the new, more logical theme color names
17397 - Switched DataGrid drawing code to use only Theme colors instead of
17398 a mix of System.Drawing.KnownColors and Theme colors
17399 - DrawFrameControl(): Removed code that fills the button area, the
17400 fill would overwrite any previous fill done by a control. This
17402 - Added DrawReversibleRectangle() stub
17403 * ScrollableControl.cs: Set visible state to false when scrollbars
17404 are removed (pdn fix)
17405 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
17406 DrawReversibleRectangle() method to allow drawing primitive
17408 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
17410 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17412 * ImageList.cs: Add(Icon): Create handle.
17414 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
17417 * ThemeWin32Classic.cs:
17418 - Fixes detail mode
17420 - Issues with drawing
17422 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17424 * ImageList.cs: Moved RecreateHandle back to ImageList as event
17425 source has to be the ImageList.
17427 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17429 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
17431 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17433 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
17435 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17437 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
17439 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
17440 * GridItem.cs: Fixed TODOs
17441 * GridItemCollection.cs: Added ICollection interface
17443 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17445 * ImageList.cs: Resize icons when needed.
17447 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
17450 - Fixes GetBounds and returns on screen rects
17452 - Fixes vertical and horzintal scrolling of items
17453 * ThemeWin32Classic.cs:
17456 2005-09-29 Raja R Harinath <harinath@gmail.com>
17458 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
17460 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
17462 * ImageList.cs: Added comments about handle creation. Moved Handle,
17463 HandleCreated and OnRecreateHandle implementations to ImageCollection.
17464 Handle is created in Add methods.
17466 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
17468 * DataGridDrawingLogic.cs:
17469 - Takes rows into account on Colum calculations
17470 - Returns the column when clickig
17472 - Fixes default HitTestInfo values
17473 - Fixes HitTestInfo.ToString
17474 - Fixes ResetBackColor
17476 2005-09-28 Jackson Harper <jackson@ximian.com>
17478 * MdiChildContext.cs: Obey rules for fixed sized windows (no
17479 sizing or cursor changes). Also added some temp code to draw the
17480 titlebars text (Makes dev a little easier).
17482 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
17484 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
17486 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
17488 * ListBox.cs: Fixes bug 76253
17490 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
17492 * ImageList.cs: Added comments about the current implementation. Added
17493 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
17494 Format32bppArgb to preserve transparency and can use Graphics.FromImage
17495 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
17496 with Bitmap.LockBits for better performance. Revised the whole file to
17497 match MS.NET behaviour and provide better performance. Non-public
17498 interface members are calling public members even when they throw
17499 NotSupportedException for better maintainability. Moved ColorDepth,
17500 ImageSize, ImageStream and TransparentColor implementations to
17501 ImageCollection for better performance as these properties are not used
17503 * ImageListStreamer.cs: Added a new internal constructor that takes an
17504 ImageList.ImageCollection and serializes Images based on
17505 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
17506 match ImageList property name.
17508 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
17510 * ListBox.cs: Fixes IndexFromPoint for last item
17512 2005-09-27 Jackson Harper <jackson@ximian.com>
17514 * Form.cs: Set the position of new mdi children correctly.
17516 2005-09-27 Jackson Harper <jackson@ximian.com>
17518 * MdiClient.cs: New mdi children need to be added to the back of
17519 the controls collection so the zorder is set correctly. Also add a
17520 count of all the child windows that have been created.
17522 2005-09-27 Jackson Harper <jackson@ximian.com>
17524 * Form.cs (CreateParams): Setup MDI forms correctly.
17526 2005-09-27 Jackson Harper <jackson@ximian.com>
17528 * MdiChildContext.cs:
17529 * MonthCalendar.cs:
17535 * ScrollableControl.cs:
17536 * ComboBox.cs: Add implicit controls using the new implict control
17537 functionality in ControlCollection. Also try to block multiple
17538 control add in a suspend/resume layout to save some cycles.
17540 2005-09-27 Jackson Harper <jackson@ximian.com>
17542 * Control.cs: Add functionality to the controls collection to add
17543 'implicit controls' these are controls that are created by the
17544 containing control but should not be exposed to the user. Such as
17545 scrollbars in the treeview.
17546 * Form.cs: The list var of the ControlsCollection is no longer
17547 available because of the potential of implicit controls getting
17548 ignored by someone accessing the list directly.
17550 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
17552 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
17553 loose it's parent. (Fixed bug introduced in r49103 when we added
17554 setting the child parent to null on Remove)
17556 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
17558 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
17559 * Splitter.cs: Added missing attributes for BorderStyle property.
17560 * TextBoxBase.cs: Marked Calculate* methods internal.
17561 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
17564 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
17566 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
17568 2005-09-25 Jackson Harper <jackson@ximian.com>
17570 * TreeView.cs: Update the node bounds correctly regardless of
17571 whether the node is visible.
17573 2005-09-25 Jackson Harper <jackson@ximian.com>
17575 * ImageList.cs: Don't dispose the image after it is added to the
17576 image list. Only reformat images that need to be resized.
17578 2005-09-25 Jackson Harper <jackson@ximian.com>
17580 * ImageList.cs: Don't set the format when changing the image.
17582 2005-09-25 Jackson Harper <jackson@ximian.com>
17584 * TreeView.cs: We can't just assume the node has a font. Use the
17585 treeviews font if no node font is available.
17587 2005-09-25 Jackson Harper <jackson@ximian.com>
17589 * TreeView.cs: Allow the scrollbars to be reset with negative
17591 - Don't add scrollbars to negative sized windows.
17593 2005-09-23 Jackson Harper <jackson@ximian.com>
17595 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
17596 old Mono.Posix. Also remove some stray code that shouldn't have
17599 2005-09-23 Jackson Harper <jackson@ximian.com>
17601 * TreeView.cs: Attempt at proper sizing of the horizontal
17602 scrollbar. Also don't resize the scrollbars unless they are
17605 2005-09-23 Jackson Harper <jackson@ximian.com>
17607 * TreeView.cs: We don't need to expand the invalid area when the
17608 selection changes, as this is all drawn in the node's bounding
17609 box. The area needs to be expanded (previous typo was contracting
17610 it) when the focus rect moves.
17612 2005-09-23 Jackson Harper <jackson@ximian.com>
17614 * TreeView.cs: Display the selection box under the correct
17615 circumstances. We were rendering white text with no selection box
17618 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
17620 * TextControl.cs(Split): Now updates selection start/end if it points
17621 into a line that's being split. Fixes a FIXME and bug #75258
17623 2005-09-23 Jackson Harper <jackson@ximian.com>
17626 * ListControl.cs: Don't use the path when retrieving binding
17627 managers from the binding context. My bat sense tells me that the
17628 path is only used on insertion.
17630 2005-09-22 Jackson Harper <jackson@ximian.com>
17632 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
17634 2005-09-22 Jackson Harper <jackson@ximian.com>
17636 * Splitter.cs: There are special cursors used for splitting.
17637 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
17639 2005-09-22 Jackson Harper <jackson@ximian.com>
17641 * Splitter.cs: Change the cursor appropriately when the splitter
17642 is moused over, so the user actually knows there is a splitter
17645 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17647 * Label.cs : Fix ToString method to give same output as MS.NET
17649 2005-09-22 Jackson Harper <jackson@ximian.com>
17651 * TreeView.cs: Create the scrollbars when the handle is created
17652 and add them right away, just make them invisble. Also account for
17653 the window being shrunk vertically to the point that the vert
17654 scrollbar needs to be added.
17655 - Remove some 0.5 adjustments to get around anti aliasing issues.
17657 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
17659 * MainMenu.cs: Fixes default value
17660 * MenuItem.cs: Fixes default value
17662 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
17664 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
17666 2005-09-21 Jackson Harper <jackson@ximian.com>
17668 * Control.cs: Don't try to set the border style on the window if
17669 it hasn't been created. When the window is created the border
17670 style will be used.
17672 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17674 * Control.cs (Update): Don't call XplatUI if we don't have a
17677 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17679 * ContainerControl.cs: Instead of throwing an exception, print
17680 a one-time warning about Validate not being implemented
17681 * XplatUIWin32.cs: Removed debug output
17683 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17685 * Control.cs: Only set XplatUI background if we expect the windowing
17686 system to handle the background. This stops controls that draw their
17687 own background from flickering
17689 * XplatUIX11.cs: Support custom visuals and colormaps for window
17690 creation. This allows, amongst other things, using MWF X11 windows
17693 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17695 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
17696 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
17697 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
17698 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
17699 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
17700 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
17701 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
17702 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
17703 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
17704 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
17705 GridColumnStylesCollection.cs,
17706 IDataGridColumnStyleEditingNotificationService.cs,
17707 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
17708 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
17709 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
17710 TreeNodeCollection.cs, AmbientProperties.cs,
17711 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
17712 DataObject.cs, ErrorProvider.cs, Splitter.cs,
17713 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
17714 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
17715 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
17716 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
17717 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
17718 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
17719 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
17720 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
17721 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
17722 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
17723 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
17724 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
17725 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
17726 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
17727 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
17728 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
17729 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
17730 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
17731 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
17732 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
17733 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
17734 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
17735 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
17736 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
17737 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
17738 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
17739 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
17740 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
17741 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
17742 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
17743 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
17744 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
17745 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
17746 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
17747 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
17749 2005-09-21 Jackson Harper <jackson@ximian.com>
17751 * TreeNode.cs: Call Before/After Expand not Collapse when
17754 2005-09-20 Jackson Harper <jackson@ximian.com>
17756 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
17758 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
17762 - Fixes proper storing of subitems
17763 - Fixes not updated items
17765 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
17767 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
17768 things if our window handle isn't created yet. Also disabled
17769 debug for TextBoxBase
17771 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
17773 * MenuAPI.cs: Remove filtering of events to allow menu usage
17775 2005-09-20 Miguel de Icaza <miguel@novell.com>
17777 * Cursor.cs: Allow null to be passed to Cursor.Current.
17779 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
17781 * ThemeWin32Classic.cs:
17782 - Change some private methods/fields to protected virtual so that
17783 they can be accessed and overriden in derived classes
17784 - First refactoring of some methods. Derived themes now don't
17785 need to duplicate the complete code from ThemeWin32Classic
17787 - Added nice StatusBar
17788 - Derive from ThemeWin32Classic and not Theme
17789 - Removed duplicate ThemeWin32Classic code
17791 2005-09-20 Miguel de Icaza <miguel@novell.com>
17793 * Control.cs (ControlCollection.Add): If the value null is passed
17794 the control is ignored.
17796 Optimize this loop.
17798 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
17800 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
17801 PostQuitMessage state.
17802 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
17804 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
17806 * Application.cs: Our constructor will never get called, move
17807 initialization to fields; fixes bug #75933
17809 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17812 - Allow files to be selected properly using file name
17814 - Add ability to change diretory (absolute / relative)
17815 using file name combo box.
17817 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
17820 - Fixes Multicolumn listboxes item wrong calculations
17821 - Allows to click when only one item is in the listbox
17822 - Fixes crash when no items using keyboard navigation
17824 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
17826 * ComboBox.cs: Reverted almost everything from the latest patch which
17829 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
17832 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
17834 - When DropDownStyle is Simple, it does not show scrollbar
17835 to the last item of the list.
17836 - When DropDownStyle is Simple, it crashed when the list was
17837 scrolled down with the down cursor key.
17838 - Fixed a bug that when DropDownStyle is DropDownList, the
17839 selected item was not shown.
17840 - The position of the selected item was not preserved when
17841 the next dropdown happened.
17842 * ThemeWin32Classic.cs:
17843 - Items were wrapped at the right end.
17844 * CheckedListBox.cs:
17847 - Items should be fully shown.
17848 - When resizing and vertical scrollbar disappeared, the item
17849 of index 0 should be on the top of the list.
17850 - GetItemRectangle should consider the size of ver. scrollbar
17852 - SizingGrip area should not be allocated when it is not
17854 - Now it reflects MinWidth of the containing panel and
17855 fixed a crash that happens when its width becomes so small.
17857 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
17859 * CheckedListBox.cs: Fixes bug 76028
17860 * ListBox.cs: Fixes bug 76028
17862 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
17864 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
17865 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
17867 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
17869 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
17871 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
17873 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
17875 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
17877 * IRootGridEntry.cs: Added
17878 * PropertyGridCommands.cs: Added
17879 * PropertiesTab.cs: Added missing methods and property
17880 * PropertyGridView.cs: Made class internal
17881 * PropertyGridTextBox.cs: Made class internal
17883 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
17885 * MimeIcon.cs: Try to check some other environment variables
17886 if "DESKTOP_SESSION" returns "default"
17888 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
17890 * ThemeNice.cs: Corrected background colors (e.g. menus)
17891 * ColorDialog.cs: Use correct background colors for controls
17893 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
17895 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
17897 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
17899 * RichTextBox.cs: Added initial implementation
17900 * lang.cs: Removed. Was accidentally checked in long time ago
17901 * TODO: Removed. Contents were obsolete
17903 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
17905 * PropertiesTab.cs : Added
17907 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
17909 * PropertyGrid.cs : Update
17910 * PropertyGridView.cs : Update
17911 * System.Windows.Forms.resx : Added images and strings
17913 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
17915 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
17917 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
17919 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
17920 a busy loop right after the Ungrab the X11 display is otherwise
17923 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
17925 * ThemeWin32Classic.cs: Optimise the use of clipping
17927 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
17929 * DataGrid.cs: fixes recursion bug
17931 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
17934 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
17937 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
17939 * ThemeNice.cs: Draw nice ProgressBars
17941 2005-09-01 Miguel de Icaza <miguel@novell.com>
17943 * VScrollBar.cs: Another buglet found by Aaron's tool.
17945 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
17948 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
17951 - Added nicer menu drawing
17955 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17957 * CreateParams.cs (ToString): Made output match MS
17958 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
17959 handle is already created (to avoid forcing window creation)
17960 * XplatUIX11.cs: Set window text to caption after creating window,
17961 in case Text was set before window was created
17962 * Form.cs: Use this.Text instead of a static string as caption
17964 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17966 * NotifyIcon.cs: Don't set the window to visible; this screws
17967 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
17968 OnPaint without a bitmap)
17969 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
17970 happen very often anyway; we could add the check to the WM_PAINT
17971 event generation code
17973 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17975 * NotifyIcon.cs: Fill the icon area with a background color, to
17976 avoid 'residue' when transparent icons are drawn
17978 - Handle whole_window == client_window when destroying windows
17979 - SystrayAdd(): Set client_window to whole_window value to
17980 get mouse and other events passed to NotifyIcon
17982 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17984 * Form.cs: Set proper default for Opacity property
17986 - ShowSystray(): Don't bother creating telling the OS
17987 about the systray item if no icon is provided
17988 - Now handles WM_NCPAINT message to deal with whole/client window
17990 - Create window as visible to not get caught by Expose optimization
17991 * Hwnd.cs: Removed debug message
17992 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
17993 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
17994 PaintEventStart/End to use new client argument
17996 - Commented out debug messages
17997 - Switched PaintEventStart/End to use new client argument
17998 * XplatUI.cs: Added client window bool to PaintEventStart()/
17999 PaintEventEnd() calls, to support drawing in non-client areas
18000 * XplatUIDriver.cs:
18001 - Added client window bool to PaintEventStart()/PaintEventEnd()
18002 calls, to support drawing in non-client areas
18003 - Added conditional compile to allow using MWF BeginInvoke
18006 - Added some conditional debug output
18007 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
18008 whole/client window split
18009 - Implemented handling of client argument to PaintEventStart()/End()
18011 - Throw exception if BeginInvoke() is called and the window handle
18012 or one of the window's parent handles is not created
18013 - Added conditional compile to allow using MWF BeginInvoke on
18015 - get_Parent(): Only sets parent if handle is created. This avoids
18016 forcing window handle creation when parent is set.
18017 - Now fires Layout and Parent changed events in proper order
18018 - Switched to use Handle instead of window.Handle for Z-Order setting,
18019 the get_Parent() patch above causes us to possibly get null for 'window'
18020 - Implemented handling of client argument to PaintEventStart()/End()
18021 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
18023 - Now sends a Refresh() to all child windows when Refresh() is called
18025 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
18027 * Form.cs: Added (non-functional) Opacity property
18028 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
18030 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
18031 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
18032 use export MONO_THEME=nice to activate it.
18033 Currently supported controls:
18037 - TabControl (TabAlignment.Top only, other will follow)
18038 * ThemeEngine.cs: Add theme nice
18039 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
18042 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
18044 * Splitter.cs: Resize docked control and its neighbor.
18046 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
18047 -- Making Windows with Menus layout correctly --
18048 * Form.cs : The first leg of the fix
18049 Menu setter - adjust Client Size as needed to make space for the menu
18050 SetClientSizeCore - doesn't call base version to be able to pass the
18051 menu handle to XplatUI.CalculateWindowRect
18052 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
18053 * XplatUIX11.cs: The critical second leg of the fix
18054 GetWindowPos needs to use a recalculated client_rect
18055 so that resizing the window doesn't break layout of child controls.
18056 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
18057 Lots of \t\n killed
18059 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
18061 * Label.cs: Now properly recalculates width and height on Font and Text
18062 changes if AutoSize is set
18064 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
18065 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
18067 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
18069 * ImageList.cs: Makes ToString method compatible with MS
18071 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
18073 * MenuAPI.cs: fixes bug 75716
18075 2005-08-11 Umadevi S <sumadevi@novell.com>
18076 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
18078 2005-08-11 Umadevi S <sumadevi@novell.com>
18079 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
18081 2005-08-10 Umadevi S <sumadevi@novell.com>
18082 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
18084 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
18086 * Menu.cs: fixes bug 75700
18087 * MenuAPI.cs: fixes navigation issues
18089 2005-08-09 Umadevi S <sumadevi@novell.com>
18090 * CheckedListBox.cs - simple fix for GetItemChecked.
18092 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
18094 * ComboBox.cs: Serveral fixes
18095 * ListBox.cs: Serveral fixes
18097 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
18099 * ComboBox.cs: Fixes FindString methods and GetItemHeight
18100 * ListBox.cs: Fixes FindString methods
18102 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
18104 * DataGrid.cs: fixes bugs exposed by new tests
18106 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
18108 * Mime.cs: Compile Mono assembly references only if compiling
18109 with Mono (Allows to build with VS.Net again)
18111 2005-07-28 Marek Safar <marek.safar@seznam.cz>
18113 * Control.cs (PaintControlBackground): Draw background image
18115 (CheckForIllegalCrossThreadCalls): Stubbed.
18117 * Form.cs (OnCreateControl): Center when should be centered.
18119 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
18121 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
18123 * Binding.cs: Binding to properties should be case unsensitive
18125 2005-07-18 vlindos@nucleusys.com
18127 * DataGrid.cs: fixes setmember order
18129 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
18131 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
18132 * FileDialog.cs: FileDialog is now resizable and uses the new
18135 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
18137 * DataGridTextBoxColumn.cs: default value
18138 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
18139 * GridTableStylesCollection.cs: fixes checking MappingName
18140 * DataGridDrawingLogic.cs: fixes drawing logic issues
18141 * DataSourceHelper.cs: rewritten to make compatible with more data sources
18142 * DataGrid.cs: fixes
18144 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
18146 * MimeGenerated.cs: Use case sensitive comparer for
18147 NameValueCollections
18149 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
18151 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
18152 * ThemeWin32Classic.cs: bug fixes, code refactoring
18153 * DataGridDrawingLogic.cs: bug fixes, code refactoring
18154 * DataGrid.cs: bug fixes, code refactoring
18155 * DataGridTextBox.cs: bug fixes, code refactoring
18156 * DataGridColumnStyle.cs: bug fixes, code refactoring
18157 * Theme.cs: bug fixes, code refactoring
18159 2005-07-01 Peter Bartok <pbartok@novell.com>
18161 * TextControl.cs: Quick fix for the reported crash on ColorDialog
18162 and other text box usage
18164 2005-07-01 Jackson Harper <jackson@ximian.com>
18166 * TabControl.cs: Make sure the bottom of the tab covers the pages
18169 2005-06-30 Peter Bartok <pbartok@novell.com>
18171 * Form.cs (ShowDialog): Assign owner of the dialog
18172 * TextBoxBase.cs: Always refresh caret size when deleting, caret
18173 might have been moved to a tag with different height
18175 2005-06-30 Jackson Harper <jackson@ximian.com>
18177 * Form.cs: Don't create an infinite loop when setting focus
18178 * MenuItem.cs: Don't dirty the parents if we don't have any
18180 2005-06-29 Ben Maurer <bmaurer@ximian.com>
18182 * LibSupport.cs: Rename
18184 2005-06-29 Peter Bartok <pbartok@novell.com>
18186 * TextBoxBase.cs: Re-align caret after deleting a character
18188 - DeleteChars(): Ensure that tag covers the provided position
18189 - StreamLine(): Drop reference for dropped tag
18191 2005-06-29 Peter Bartok <pbartok@novell.com>
18194 - Selections now work properly, anchoring at the initial location
18195 and properly extending in either direction (SetSelectionToCaret(),
18196 SetSelectionStart() and SetSelectionEnd())
18197 - No longer redraws the whole control on selection change, now
18198 calculates delta between previous and new selection and only
18199 invalidates/redraws that area
18200 - Fixed FindPos() math off-by-one errors
18201 - Changed DeleteChars() to verify the provided tag covers the
18202 provided position, selections may have a tag that doesn't cover
18203 the position if the selection is at a tag border
18204 - Fixed off-by-one errors in DeleteChars()
18205 - Added missing streamlining check in DeleteChars() to remove
18207 - Implemented Invalidate() method, now properly calculates exposures
18208 between two given lines/positions
18209 - Implemented SetSelection()
18210 - Obsoleted and removed FixupSelection()
18211 - Improved RecalculateDocument() logic, removing code duplication
18213 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18215 * LibSupport.cs: changes to match different input/output arguments.
18217 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18219 * LibSupport.cs: added libsupport.so init routine.
18221 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
18223 * ControlBindingsCollection.cs
18224 - Throws an exception on null datasource when adding
18225 - Checks for duplicated bindings when adding
18227 2005-06-28 Jackson Harper <jackson@ximian.com>
18229 * TreeView.cs (OnKeyDown): Support left and right properly
18230 (navigates as well as expanding and collapsing.
18231 - Add support for Multiply, this expands all the selected nodes
18233 - Fix some tabbing.
18235 2005-06-28 Jackson Harper <jackson@ximian.com>
18237 * TreeView.cs: Implement keyboard navigation, currently supports,
18238 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
18239 support for toggling checkboxes with the space bar.
18241 2005-06-28 Jackson Harper <jackson@ximian.com>
18243 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
18246 2005-06-28 Jackson Harper <jackson@ximian.com>
18248 * TreeView.cs: Add missing event.
18250 2005-06-27 Peter Bartok <pbartok@novell.com>
18253 - Made line ending size configurable (now allows for counting
18254 lineendings as \n or \r\n)
18255 - Added margin to viewport to keep caret visible on right side
18256 - Fixed translation routines for line/pos to documentpos to consider
18257 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
18258 - Fixed some line-endings to be unix style
18259 - Fixed Document.FormatText to perform it's calculations 1-based
18260 - Added descriptions for a few methods that might otherwise get
18262 - Added NOTE section with some basic conventions to remember at
18263 the top of the file
18264 - Major fixup for RichTextBox selection drawing:
18265 * Fixed crashes when multiple tags on a single line were selected
18266 * fixed selection box drawing not overlaying text
18267 * fixed bogus offset calculation for tags not starting at index 1
18268 * Switched behaviour from using multiple Substrings of a
18269 StringBuilder.ToString() to using multiple
18270 StringBuilder.ToString(start, length) statements, hoping this is
18271 faster (kept original version commented out in the code, in case
18272 original version was faster)
18273 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
18275 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
18278 2005-06-27 Jackson Harper <jackson@ximian.com>
18280 * TabControl.cs: Move to the left and right with the arrow
18281 keys. These keys don't cycle beyond first and last like
18282 tab. Refresh all the tabs when scrolling them to the left or
18285 2005-06-27 Jackson Harper <jackson@ximian.com>
18288 - ToString: Added method
18289 - CreateParams: Remove TODO and comment
18290 - OnKeyDown: Cycle through bounds properly.
18291 - SelectedIndex: Scroll to the right or left if we need to
18292 display the newly selected tab.
18294 2005-06-23 Jackson Harper <jackson@ximian.com>
18296 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
18299 2005-06-23 Jackson Harper <jackson@ximian.com>
18301 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
18302 CTRL-SHIFT-TAB, and HOME, END are there any others?
18304 2005-06-23 Jackson Harper <jackson@ximian.com>
18306 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
18308 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
18310 * DataGridTextBoxColumn.cs: fixes and enhancements
18311 * ThemeWin32Classic.cs: fixes and enhancements
18312 * DataGridBoolColumn.cs: fixes and enhancements
18313 * DataGridDrawingLogic.cs: fixes and enhancements
18314 * CurrencyManager.cs: fixes and enhancements
18315 * DataGrid.cs: fixes and enhancements
18316 * DataGridColumnStyle.cs: fixes and enhancements
18318 2005-06-22 Jackson Harper <jackson@ximian.com>
18320 * TabControl.cs: Add some missing methods that just call into the
18321 base. Make the TabPageCollection's IList interface behave in the
18322 same manner as the MS implementation.
18324 2005-06-22 Peter Bartok <pbartok@novell.com>
18326 * TextControl.cs: Added sanity check
18328 - Fixed wrapping behaviour, don't set wrap on single line controls
18329 (this fixes the breakage of colordialog introduced in an earlier
18331 - Added rudimentary support for autoscrolling right-aligned controls
18332 (still needs fixing, also, center alignment scroll is missing)
18334 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
18336 * ScrollBar.cs: Fixes thumbpos on Maximum values
18338 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
18340 * PropertyGridView.cs: Pass context information to UITypeEditors
18342 2005-06-21 Peter Bartok <pbartok@novell.com>
18345 - Now calling PositionCaret with absolute space coordinates
18346 - Enabled vertical scrolling
18347 - Better tracking of scrollbar changes, tied into WidthChange
18349 - Improved cursor tracking
18350 - Removed debug output
18352 - PositionCaret coordinates are now works in absolute space, not
18354 - Improved tracking of document size
18355 - Added events for width and height changes
18357 2005-06-21 Peter Bartok <pbartok@novell.com>
18359 * Form.cs: Set focus to active control when form is activated
18361 - Added word-wrap functionality to RecalculateLine()
18362 - Added some short function descriptions for VS.Net to aid in
18363 writing dependent controls
18364 - Added Caret property, returning the current coords of the caret
18365 - Added ViewPortWidth and ViewPortHeight properties
18366 - Added Wrap property
18367 - Added CaretMoved event
18368 - Removed some old debug code
18369 - Split() can now create soft splits
18370 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
18371 - Added method to format existing text
18372 - Fixed size/alignment calculations to use viewport
18373 - RecalculateDocument now can handle changing line-numbers while
18377 - Added some wrap logic, we don't wrap if alignment is not left
18378 - Added casts for scrollbar var, base class switched types to
18379 also support RichTextBoxA
18380 - Implemented handling of scrollbar visibility flags
18383 - Switched scrollbars type to RichTextBoxScrollBars to support
18385 - Added tracking of canvas width/height
18386 - Switched scrollbars to be not selectable (to keep focus on text)
18387 - Added central CalculateDocument() method to handle all redraw
18389 - Added ReadOnly support
18390 - Added WordWrap support
18391 - Fixed handling of Enter key (we now treat it as a DialogKey)
18392 - Fixed caret positioning when h or v scroll is not zero
18393 - Fixed placing/generation of vertical scrollbar
18394 - Added CalculateScrollBars() method to allow updating scrollbar
18395 limits and visibility
18396 - Fixed handling of horizontal scroll
18397 - Added handling of vertical scroll
18398 - Implemented auto-'jump' when caret moves to close to a left or
18399 right border and there is text to be scrolled into view (currently
18400 there's the potential for a stack overflow, until a bug in
18401 scrollbar is fixed)
18403 2005-06-21 Geoff Norton <gnorton@customerdna.com>
18405 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
18407 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
18411 - return application/x-zerosize for files with size zero
18412 (if no extension pattern matches).
18413 - check matches collection for strings too.
18414 - return only the first mime type if the name value
18415 collection has more than one mime type.
18417 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
18419 * PropertyGrid.cs: Cleaned up some TODOs
18420 * PropertyGridView.cs: Added support for UITypeEditors
18422 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
18424 * DataGrid.cs: clears cached value
18426 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
18428 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
18429 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
18430 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
18431 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
18433 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
18435 * ThemeWin32Classic.cs: fixes colour
18437 2005-06-15 Peter Bartok <pbartok@novell.com>
18439 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
18440 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
18441 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
18442 * Control.cs: Added some MWFCategory and MWFDescription attributes
18443 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
18445 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
18447 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
18450 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
18452 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
18453 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
18454 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
18455 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
18456 * DataGrid.cs: default datagrid settings for Default Styles, fixes
18457 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
18459 2005-06-13 Jackson Harper <jackson@ximian.com>
18461 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
18462 isn't printed when the user enables dropping. (X11 does accept
18465 2005-06-13 Jackson Harper <jackson@ximian.com>
18467 * TreeView.cs: Remove some TODOS.
18469 2005-06-13 Jackson Harper <jackson@ximian.com>
18471 * Form.cs: Hook into the mdi framework.
18472 * MdiClient.cs: Use the base control collections add method so
18473 parents get setup correctly. Set the default back colour and dock
18475 * MdiChildContext.cs: New class, this bad actor handles an
18476 instance of an MDI window. Right now there is only basic
18477 support. You can drag, close, and resize windows. Minimize and
18478 Maximize are partially implemented.
18480 2005-06-13 Jackson Harper <jackson@ximian.com>
18482 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
18483 freaky when both vals are negative. NOTE: There are probably other
18484 places in XplatUIX11 that this needs to be done.
18486 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
18488 * DataGrid.cs: implement missing methods, move KeyboardNavigation
18489 * DataGridColumnStyle.cs: fixes signature
18491 2005-06-12 Jackson Harper <jackson@ximian.com>
18493 * XplatUIX11.cs: Use sizing cursors similar to the ones on
18496 2005-06-11 Jackson Harper <jackson@ximian.com>
18498 * StatusBarPanel.cs: Signature cleanups. Implement
18501 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
18503 * DataGridTextBoxColumn.cs: Honors aligment
18504 * GridColumnStylesCollection.cs: Contains is case unsensitive
18505 * GridTableStylesCollection.cs: several fixes
18506 * DataGridTableStyle.cs: default column creation
18507 * DataGridDrawingLogic.cs: fixes
18508 * CurrencyManager.cs: ListName property
18509 * DataGrid.cs: multiple styles support
18510 * DataGridColumnStyle.cs: fixes
18513 2005-06-10 Peter Bartok <pbartok@novell.com>
18515 * Control.cs(Select): Moved SetFocus call to avoid potential
18516 loops if controls change the active control when getting focus
18517 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
18518 the up/down buttons
18520 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
18522 * ImageListConverter.cs: Implemented
18524 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
18526 * MonthCalendar.cs: Wired in NumericUpDown control for year
18528 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
18530 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
18531 DoubleClick events, since they are not meant to be fired.
18533 2005-06-09 Peter Bartok <pbartok@novell.com>
18535 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
18536 Jonathan's standalone controls into MWF, implemented missing
18537 events, attributes and methods; added xxxAccessible classes
18538 * AccessibleObject.cs: Made fields internal so other classes
18539 can change them if needed
18541 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
18543 * UpDownBase.cs: Complete implementation
18544 * NumericUpDown.cs: Complete implementation
18545 * DomainUpDown.cs: Complete implementation
18547 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
18549 * DataGridTextBoxColumn.cs: drawing fixes
18550 * DataGridCell.cs: fixes ToString method to match MSNet
18551 * DataGridTableStyle.cs: fixes
18552 * DataGridBoolColumn.cs: fixes, drawing
18553 * DataGridDrawingLogic.cs: fixes, new methods
18554 * DataGridTextBox.cs: Keyboard and fixes
18556 - Keyboard navigation
18558 - Row selection (single, multiple, deletion, etc)
18561 2005-06-07 Jackson Harper <jackson@ximian.com>
18563 * ThemeWin32Classic.cs: Clear the background area when drawing
18566 2005-06-06 Peter Bartok <pbartok@novell.com>
18568 * ImageListStreamer.cs: Fixed signature for GetData
18569 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
18571 - Added missing ChildAccessibleObject class
18572 - Added missing OnXXXFocus overrides, switched to using those
18573 instead of the event handler
18575 - Added Parent property for ControlAccessibleObject
18578 - Added ResetBindings()
18579 * ListBindingConverter.cs: Implemented some methods
18580 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
18581 * ImageList.cs: Implemented basic handle scheme, removed TODOs
18582 * ContainerControl.cs: Fixed signature, now subscribing to the
18583 ControlRemoved event instead of overriding the handler, LAMESPEC
18584 * CurrencyManager.cs: Added missing attribute
18585 * MonthCalendar.cs: Added missing properties
18587 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
18589 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
18591 2005-06-06 Gaurav Vaish and Ankit Jain
18593 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
18594 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
18596 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
18598 * Control.cs: fixes CreateParams Width / Height.
18600 2005-06-05 Peter Bartok <pbartok@novell.com>
18602 * Win32DnD.cs: Removed compilation warnings
18604 2005-06-05 Peter Bartok <pbartok@novell.com>
18606 * Control.cs (CreateParams): Since we don't know if one of the
18607 properties we use is overridden, lets make sure if we fail accessing
18608 we continue with a backup plan
18610 2005-06-05 Peter Bartok <pbartok@novell.com>
18613 - Removed debug output
18614 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
18616 - Plugged resource leak
18617 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
18620 2005-06-05 Peter Bartok <pbartok@novell.com>
18622 * XplatUIWin32.cs: Removed DnD code
18623 * Win32DnD.cs: Implemented drop source and drop target functionality
18625 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18627 * UpDownBase.cs: remove duplicate addition of event, enable some code
18628 that was commented out.
18629 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
18630 Validate input when a key is pressed. It works fine now for every
18631 combination of Hexadecimal. Only missing some drawing love when sharing
18632 space with other controls.
18634 2005-06-04 Peter Bartok <pbartok@novell.com>
18637 - We need to pass a window for DragDrop, so enable callback events
18638 - Added DnD callback events when being a DragSource
18639 * XplatUI.cs (StartDrag): Added window handle argument
18640 * XplatUIDriver.cs (StartDrag): Added window handle argument
18641 * QueryContinueDragEventArgs: Made fields internally accessible so
18642 drivers can set them
18643 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
18646 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
18648 * DataGridTextBoxColumn.cs: column text editing
18649 * DataGridTableStyle.cs: Respect columns styles created by the user
18650 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
18651 * DataGridBoolColumn.cs: bool column editing
18652 * DataGrid.cs: fixes to scrolling, properties, etc
18653 * DataGridTextBox.cs: handle keyboard
18654 * DataGridColumnStyle.cs: fixes
18656 2005-06-02 Jackson Harper <jackson@ximian.com>
18658 * ImageListStreamer.cs: Somewhat broken implementation of
18659 GetObjectData. The RLE needs some work to match MS properly.
18661 2005-06-02 Jackson Harper <jackson@ximian.com>
18663 * X11Dnd.cs: Attempting to keep at least one file in MWF
18666 2005-06-02 Peter Bartok <pbartok@novell.com>
18668 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
18671 2005-06-02 Peter Bartok <pbartok@novell.com>
18673 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
18674 * XplatUI.cs: Added DoDragDrop() method
18675 * XplatUIDriver.cs: Added DoDragDrop() method
18677 2005-06-02 Jackson Harper <jackson@ximian.com>
18679 * Splitter.cs: Implement BorderStyle.
18681 2005-06-02 Jackson Harper <jackson@ximian.com>
18683 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
18684 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
18687 2005-06-02 Peter Bartok <pbartok@novell.com>
18690 - Added Data setter
18691 - Fixed broken insertion code for SetData, now also
18692 overwrites any existing entry of the same format name
18693 * Hwnd.cs: Added list of pointers that automatically gets
18694 freed when the window is disposed
18695 * XplatUI.cs: Call driver initialization method when loading
18698 - OnDragLeave takes EventArgs, not DragEventArgs
18699 - Added setting of WS_EX_ACCEPTFILES style when dropping is
18701 - Forces style update when drop state changes
18702 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
18703 not perfect since we cannot (yet) call the IDataObject.GetData()
18704 method, we keep getting 0x80004005 error, dunno why)
18706 2005-06-02 Peter Bartok <pbartok@novell.com>
18708 * DragEventArgs.cs: Make fields internal so we can cache the
18709 object and re-set the fields from XplatUI
18711 2005-06-02 Jackson Harper <jackson@ximian.com>
18713 * Control.cs: Add some internal methods so the DnD subsystem can
18714 raise DnD events. Also call into the driver when AllowDrop is set.
18716 * XplatUIDriver.cs: New method for setting whether or not a window
18717 is allowed to accept drag and drop messages.
18719 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
18721 * ScrollBar.cs: Make sure that values sent in Scroll events
18722 are always between Maximum and Minimum.
18724 2005-06-01 Marek Safar <marek.safar@seznam.cz>
18726 * Menu.cs: Call MenuChanged when menuitem visibility has been
18728 * MenuItem.cs: Rebuild menu when item is (not) visible.
18729 * MainMenu.cs: MainMenu has special MenuChanged.
18730 * Theme.cs: Caption and FrameBorderSize are not fixed.
18731 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
18732 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
18734 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
18735 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
18737 2005-05-30 Jackson Harper <jackson@ximian.com>
18739 * DataFormat.cs: We can't statically initialize this stuff because
18740 it calls into the xplatui and could create a loop. So we lazy init
18743 2005-05-28 Jackson Harper <jackson@ximian.com>
18745 * Control.cs: Proper implementation of Product(Name/Version).
18747 2005-05-27 Jackson Harper <jackson@ximian.com>
18749 * DataObject.cs: Dont crash if no data is found.
18751 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
18752 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
18753 as per status page, guessing it should be set to true
18755 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
18757 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
18758 * DataGridTableStyle.cs: set proper formatting text, def header text
18759 * ThemeWin32Classic.cs: new themable paramaters
18760 * DataGridBoolColumn.cs: paint check box, get data, fixes
18761 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
18762 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
18763 * DataGridColumnStyle.cs: fixes
18764 * Theme.cs: new themable paramaters
18766 2005-05-26 Peter Bartok <pbartok@novell.com>
18768 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
18770 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18771 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
18773 2005-05-24 Peter Bartok <pbartok@novell.com>
18775 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
18776 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
18777 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
18778 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
18779 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
18780 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
18781 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
18782 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
18783 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
18784 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
18785 missing attributes, etc
18786 * DataGridPreferredColumnWidthTypeConverter.cs: Added
18788 2005-05-24 Peter Bartok <pbartok@novell.com>
18790 * Help.cs: Added, implemented trivial functions, throws up MessageBox
18791 when user tries to get help
18792 * DataObject.cs, DataFormats.cs, LinkArea.cs,
18793 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
18794 to suppress warnings
18795 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
18796 avoid unreachable code warning
18798 2005-05-20 Peter Bartok <pbartok@novell.com>
18800 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
18802 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
18804 * DataGridTextBoxColumn.cs: Basic painting methods
18805 * DataGridTableStyle.cs: Set table style in the column
18806 * ThemeWin32Classic.cs: Use Theme for colors
18807 * DataGridDrawingLogic.cs: Implement more drawing
18808 * DataGrid.cs: drawing, theming, enhacements, fixes
18809 * DataGridColumnStyle.cs: fixes, drawing
18810 * Theme.cs: theming for Datagrid
18812 2005-05-20 Peter Bartok <pbartok@novell.com>
18814 * Cursor.cs: Implemented GetObjectData() method
18816 2005-05-20 Peter Bartok <pbartok@novell.com>
18818 * Cursors.cs: Added setting of cursor name
18820 - Implemented constructors
18821 - Implemented Draw and DrawStretched
18822 - Implemented Current property
18823 - Implemented == and != operators
18824 - Implemented Dispose()
18825 - Implemented ToString
18826 - Added missing attributes
18828 - Added missing reset for OverrideCursor when DoEvents is called
18829 - Fixed creation of cursor, logic was wrong
18831 - Added missing reset for OverrideCursor when DoEvents is called
18832 - Fixed creation of cursor, bit arrays were swapped
18833 * Clipboard.cs: Removed obsolete MonoTODO attribute
18835 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
18837 * ComboBox.cs: fixes OnSelectedItemChanged
18838 * ControlBindingsCollection.cs: fixes item range check
18840 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
18843 - Calc preferred height properly
18844 - Implement missing properties
18846 * NumericUpDown.cs: Implement missing events
18848 2005-05-19 Jackson Harper <jackson@ximian.com>
18850 * TabControl.cs: New method that resizes the tab pages before
18851 redrawing them. This as needed as the control is double buffered
18852 and sizing will not be recalculated unless ResizeTabPages is
18854 * TabPage.cs: Set base.Text instead of Text in the constructor so
18855 that UpdateOwner does not get called. Use the new Redraw method of
18856 TabControl instead of Refresh so the sizing is recalculated.
18857 * ThemeWin32Classic.cs: Draw the text for button tabs.
18859 2005-05-19 Jackson Harper <jackson@ximian.com>
18861 * Control.cs: Paint control background images. Fix typo where
18862 PaintControlBackground was not getting called correctly.
18864 2005-05-19 Peter Bartok <pbartok@novell.com>
18866 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
18867 I can investigate, apparently I broke FileDialog
18869 2005-05-19 Marek Safar <marek.safar@seznam.cz>
18871 * AxHost.cs: Some simple properties.
18872 * Control.cs: window must be accessible after ctor.
18873 * Form.cs: Added TransparencyKey property.
18874 * TextBoxBase.cs: Implemented Clear. Text property can be null.
18875 * XplatUIWin32.cs: SetBorderStyle implemented.
18877 2005-05-18 Peter Bartok <pbartok@novell.com>
18879 * DataObject.cs: Entries are not global but particular to the
18880 DataObject, now it behaves that way
18881 * XplatUIWin32.cs: Implemented Clipboard methods
18882 * Clipboard.cs: Implemented
18883 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
18884 * XplatUIOSX.cs: Updated to final clipboard prototypes
18885 * XplatUIX11.cs: Implemented Clipboard methods
18886 * XplatUIDriver.cs: Updated to final clipboard prototypes
18887 * XplatUIStructs.cs:
18888 - Added BITMAPINFOHEADER struct
18889 - Added ClipboardFormats enum
18891 - Added ClipboardStruct
18892 - Added Atom enum items for clipboard types
18893 - Fixed atom types for Selection event structures
18895 - Added internal properties and methods for drivers to enumerate
18897 - Switched initialization method to allow drivers to assign their
18898 own IDs even for the MS predefined clipboard IDs
18899 * XplatUI.cs: Updated to final clipboard interface
18901 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18902 * PropertyGridView.cs: Fixed compiler warnings.
18904 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18905 * PropertyGrid.cs: Added some event calls
18906 * PropertyGridView.cs: Change drawing code to use double buffering
18907 * PropertyGridTextBox.cs: Changed Text property name
18908 * GridItem.cs: Added Bounds property.
18909 * GridEntry.cs: Added Bounds property.
18911 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
18913 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
18914 since GetType() may not return the correct type if the object is
18917 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
18919 * TreeNodeCollection.cs: fixes get/set item ranges
18921 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
18923 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
18925 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
18927 * ComboBox.cs: Fix item range comparation
18928 * ListView.cs: Fix item range comparation
18930 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
18933 - Clear example panel when OnPaint is called
18934 - Better solution for displaying the example panel text
18935 - Select default indexes in the ListBoxes
18937 2005-05-11 Geoff Norton <gnorton@customerdna.com>
18939 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
18941 2005-05-11 Peter Bartok <pbartok@novell.com>
18943 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
18944 * SelectionRangeConverter.cs: Implemented
18945 * PropertyGrid.cs: Fixed attribute value
18947 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
18948 - Added Sebastien Pouliot's CAS Stack Propagation fixes
18949 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
18950 that's common to all drivers. First methods to go there are
18951 Sebastien Pouliot's CAS Stack Propagation helper methods
18952 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
18953 Sebastien Pouliot for CAS Stack Propagation
18955 2005-05-11 Geoff Norton <gnorton@customerdna.com>
18958 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
18960 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
18962 * DataGridTextBoxColumn.cs: fixed some members
18963 * GridColumnStylesCollection.cs: indexed column is case insensitive
18964 * DataGridTableStyle.cs: fixes
18965 * ThemeWin32Classic.cs: add new theme parameter
18966 * Theme.cs: add new theme parameter
18967 * DataGridDrawingLogic.cs: Datagrid's drawing logic
18968 * DataGrid.cs: fixes, new internal properties, etc.
18969 * DataGridColumnStyle.cs: allows to set grid value
18972 2005-05-10 Peter Bartok <pbartok@novell.com>
18974 * AccessibleObject.cs:
18975 - Removed MonoTODO attribute on help, method is correct
18976 - Fixed Bounds property
18977 * AxHost.cs: Moved MonoTODO
18978 * ButtonBase.cs: Now setting AccessibleObject properties
18979 * RadioButton.cs: Setting proper AccessibleObject role
18980 * CheckBox.cs: Setting proper AccessibleObject role
18981 * ControlBindingsCollection.cs: Added properties, methods and attributes
18982 * DataFormats.cs: Fixed awkward internal API, and changed to enable
18983 userdefined DataFormats.Format items as well
18984 * ListControl.cs: Removed data_member from the public eye
18985 * OpenFileDialog.cs:
18986 - Made class sealed
18987 - Added missing attributes
18988 * SaveFileDialog.cs: Added missing attributes
18989 * ImageListStreamer.cs: Fixed code that caused warnings
18990 * LinkLabel.cs: Removed unreachable code
18991 * TreeView.cs: Fixed code that caused warnings
18992 * PropertyGridView.cs: Fixed code that caused warnings
18993 * GridColumnStylesCollection.cs: Added missing attributes
18994 * GridTableStylesCollection: Added missing attribute
18995 * PropertyManager: Added .ctor
18996 * SecurityIDType: Added
18997 * DataObject.cs: Implemented class
18998 * LinkArea.cs: Added missing attribute
19000 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
19002 * RadioButton.cs: call base method to allow to fire OnClick event
19003 * UpDownBase.cs: OnMouseUp call base method
19004 * CheckedListBox.cs: call base method before returning
19005 * TrackBar.cs: call base method before returning
19008 2005-05-10 Peter Bartok <pbartok@novell.com>
19010 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
19013 2005-05-10 Peter Bartok <pbartok@novell.com>
19015 * DataFormats.cs: Implemented
19016 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
19017 XplatUIX11.cs: Added Clipboard APIs
19018 * XplatUIWin32.cs: Implemented Clipboard APIs
19019 * FolderBrowserDialog.cs: Added missing event, attributes
19021 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
19023 * CheckBox.cs: call base method to allow to fire OnClick event
19025 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
19027 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
19029 2005-05-06 Peter Bartok <pbartok@novell.com>
19031 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
19032 * Screen.cs: Implemented
19033 * HelpNavigator.cs: Added
19034 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
19036 * HelpProvider.cs: Implemented all we can do until we have a CHM
19037 help library (which means that "What's This" does work now)
19039 2005-05-06 Jackson Harper <jackson@ximian.com>
19041 * XplatUIX11.cs: Fix waking up the main loop.
19043 2005-05-05 Peter Bartok <pbartok@novell.com>
19045 * XplatUI.cs: Updated revision
19046 * Form.cs: Removed enless loop
19047 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
19048 * Label.cs (OnPaint): Added call to base.OnPaint()
19049 * ToolTip.cs: Made ToolTipWindow reusable for other controls
19050 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
19051 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
19053 * ButtonBase.cs: Moved base.OnPaint() call to end of method
19054 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
19055 to ToolTip.ToolTipWindow for drawing and size methods; this allows
19056 reuse of ToolTipWindow by other controls
19057 * SizeGrip.cs: Moved base.OnPaint() call to end of method
19058 * XplatUIX11.cs: Now clipping drawing area (experimental)
19059 * PictureBox.cs: Moved base.OnPaint() call to end of method
19060 * Theme.cs: Fixed ToolTip abstracts to match new format
19061 * ErrorProvider.cs: Implemented
19063 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
19065 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
19069 - Implements LinkBehavior
19070 - Fixes many issues
19072 2005-05-03 Jackson Harper <jackson@ximian.com>
19074 * ListView.cs: Calculate the scrollbar positioning on resize and
19075 paint, so they get put in the correct place.
19077 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
19079 * ColorDialogs.cs: The small color panels are now handled by
19080 SmallColorControl. This fixes drawing of the focus rectangle
19081 and adds a 3D border.
19083 2005-05-03 Peter Bartok <pbartok@novell.com>
19085 * Control.cs: Modified version of Jonathan Chamber's fix for
19088 2005-05-03 Jackson Harper <jackson@ximian.com>
19090 * ListView.cs: Remove redraw variable. Control now handles whether
19091 or not a redraw needs to be done, and will only raise the paint
19092 event if redrawing is needed.
19094 2005-05-03 Jackson Harper <jackson@ximian.com>
19096 * Splitter.cs: No decorations for the splitter form. Cache the
19099 2005-05-03 Jackson Harper <jackson@ximian.com>
19101 * TreeView.cs: Use dashed lines to connect nodes. Use the
19102 ControlPaint method for drawing the focus rect instead of doing
19105 2005-05-02 Peter Bartok <pbartok@novell.com>
19107 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
19109 2005-04-29 Jackson Harper <jackson@ximian.com>
19111 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
19112 entire image buffer. Just clear the clipping rectangle.
19114 2005-04-29 Jackson Harper <jackson@ximian.com>
19116 * ThemeWin32Classic.cs: Don't draw list view items that are
19117 outside the clipping rectangle.
19119 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
19121 * ListBox.cs: added horizontal item scroll
19123 2005-04-29 Jackson Harper <jackson@ximian.com>
19125 * ThemeWin32Classic.cs: Remove some old debug code that was
19126 causing flicker with the new double buffering code.
19128 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
19130 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
19131 behave like combobox and comboboxlist (still not sure if this is
19134 2005-04-28 Jackson Harper <jackson@ximian.com>
19136 * ThemeWin32Classic.cs: Don't fill the middle of progress
19137 bars. This fills areas outside of the clip bounds that don't need
19140 2005-04-28 Jackson Harper <jackson@ximian.com>
19142 * Control.cs: Don't expose functionality to touch the image buffers.
19144 * ListView.cs: We do not need to (and no longer can) manipulate
19145 the image buffers directly. All of this is handled by Control.
19147 2005-04-28 Peter Bartok <pbartok@novell.com>
19149 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19150 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
19151 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
19153 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
19156 - Adjust control's height for non-simple comboboxes (bug fix)
19158 * MenuAPI.cs: remove unused var
19159 * ScrollBar.cs: remove unsed var
19161 * ListBox.cs: unselect items when clearing
19163 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
19165 * ListControl.cs: honors OnPositionChanged and default Selected Item
19166 * ListBox.cs: unselect items when clearing
19168 2005-04-27 Jackson Harper <jackson@ximian.com>
19170 * X11Keyboard.cs: Initialize a default keyboard and give a warning
19171 if a "correct" keyboard is not found. This will make us not crash,
19172 but might give some users bad keyboard layouts...seems to be the
19173 same thing rewind does.
19175 2005-04-27 Jackson Harper <jackson@ximian.com>
19177 * BindingManagerBase.cs: Attach the current/position changed
19178 handlers to their respective events.
19180 2005-04-27 Jackson Harper <jackson@ximian.com>
19182 * Control.cs: Make sure that the first WM_PAINT does a full draw,
19184 * ThemeWin32Classic.cs: Don't fill the background for picture
19185 boxes. This could overright user drawing.
19186 * ComboBox.cs: Just fill the clipping rect not the entire client
19187 rect when drawing the background. This prevents pieces of the
19188 image buffer from getting overwritten and is theoretically faster.
19190 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
19192 * ComboBox.cs: Databinding support fixes, fire missing events
19193 * ListControl.cs: implement missing methods and properties, fixes
19194 * ThemeWin32Classic.cs: Databiding support on Drawing
19195 * CheckedListBox.cs: Databinding support fixes, fire missing events
19196 * ListBox.cs: Databinding support fixes, fire missing events
19198 2005-04-25 Peter Bartok <pbartok@novell.com>
19200 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
19202 2005-04-25 Jackson Harper <jackson@ximian.com>
19204 * TreeView.cs: Use the horizontal scrollbars height not width when
19205 determining how much of the client area is available.
19207 2005-04-25 Jackson Harper <jackson@ximian.com>
19209 * Control.cs: Double buffering is handled differently now. As per
19210 the spec, the extra buffer is created in the WM_PAINT message and
19211 passed down to the control's drawing code.
19219 * PropertyGridView.cs:
19231 * DateTimePicker.cs:
19233 * TreeView.cs: Update to new double buffering system.
19234 * MonthCalendar.cs: Uncomment block, as Capture is now
19235 working. Update to new double buffering
19236 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
19237 * PaintEventArgs.cs: New internal method allows us to set the
19238 graphics object. This is used for double buffering.
19239 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
19240 rectangle. The internal paint_area var has been removed from
19241 StatusBar. The clipping rect should be used instead.
19242 * Theme.cs: Give the PictureBox drawing method a clipping rect.
19243 * TabPage.cs: The RefreshTabs method was removed, so just call the
19244 tab controls Refresh method now.
19245 * TabControl.cs: Update to new double buffering. Make sure the
19246 handle is created before sizing the tab pages, otherwise we will
19247 get stuck in a loop.
19249 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
19251 * LinkLabel.cs: Fix typo, bug #74719; patch
19252 from Borja Sanchez Zamorano
19254 2005-04-22 Jackson Harper <jackson@ximian.com>
19256 * TreeNode.cs: Implement Handle stuff.
19257 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
19259 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
19261 * DataGridTextBoxColumn.cs: call base constructors, fixes
19262 * GridColumnStylesCollection.cs: missing events, methods, and functionality
19263 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
19264 * DataGridTableStyle.cs: implements create default column styles
19265 * DataGridBoolColumn.cs: which types can handle
19266 * DataGrid.cs: missing methods, fixes, new functionality
19267 * DataGridColumnStyle.cs: fixes
19269 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
19270 * FolderBrowserDialog.cs:
19271 - Use a thread to fill the TreeView
19272 - Adjusted some sizes
19274 2005-04-19 Peter Bartok <pbartok@novell.com>
19276 * LinkLabel.cs: (Re-)create the pieces when setting the Text
19277 property. Fixes #74360.
19279 2005-04-19 Jackson Harper <jackson@ximian.com>
19281 * XEventQueue.cs: Lock when getting the lockqueue size.
19282 * PictureBox.cs: Call base OnPaint
19284 2005-04-19 Peter Bartok <pbartok@novell.com>
19286 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
19287 messages were no longer being processed (this broke BeginInvoke)
19290 2005-04-18 Jackson Harper <jackson@ximian.com>
19292 * TreeView.cs: buglet that caused node images to get drawn
19293 regardless of whether or not they were in the clipping rectangle.
19295 2005-04-18 Jackson Harper <jackson@ximian.com>
19297 * CurrencyManager.cs: There are four rules for GetItemProperties:
19298 - If the type is an array use the element type of the array
19299 - If the type is a typed list, use the type
19300 - If the list contains an Item property that is not an object, use
19302 - use the first element of the list if there are any elements in
19305 2005-04-17 Jackson Harper <jackson@ximian.oom>
19307 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
19308 click. This handles offsets for scrolling properly and reduces
19309 memory. Also fixed GetNode to not offset now that TopNode works
19311 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
19313 2005-04-17 Jackson Harper <jackson@ximian.com>
19315 * CursorConverter.cs: Initial implementation.
19317 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
19319 * ListControl.cs: work towards complex data binding support on ListControl
19320 * CurrencyManager.cs: work towards complex data binding support on ListControl
19321 * ListBox.cs: work towards complex data binding support on ListControl
19324 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
19326 * GridTableStylesCollection.cs: fixes name and constructor
19327 * DataGridTableStyle.cs: fixes
19328 * DataGridBoolColumn.cs: fixes names and constructors
19329 * DataGrid.cs: define methods and properties. Some init implementations
19330 * DataGridCell.cs: define methods and properties. Some init implementations
19331 * GridTablesFactory.cs: Define methods and properties
19333 2005-04-15 Geoff Norton <gnorton@customerdna.com>
19335 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
19336 graphics port changes. We still want the coordinates in global screen
19339 2005-04-14 Jackson Harper <jackson@ximian.com>
19341 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
19342 check plus minus or checkbox clicks unless those features are enabled.
19344 2005-04-14 Jackson Harper <jackson@ximian.com>
19346 * TreeView.cs: Add methods for setting the top and bottom visible
19347 nodes. TreeNode::EnsureVisible uses these methods.
19348 * TreeNode.cs: Implement EnsureVisible
19350 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
19352 * Form.cs: Pospone menu assignation if the window has not been created yet
19353 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
19356 2005-04-12 Jackson Harper <jackson@ximian.com>
19358 * TreeView.cs: Set the TopNode properly when scrolling
19359 occurs. This has the added benifit of reducing the amount of
19360 walking that needs to be done when drawing. Also removed an old
19362 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
19364 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
19366 * Timer.cs: fixes interval setting when the timer is already enabled
19368 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
19370 * FolderBrowserDialog.cs: First approach
19372 2005-04-09 Peter Bartok <pbartok@novell.com>
19374 * FolderBrowserDialog: Added
19376 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
19378 * LinkLabel.cs: move drawing code into the theme
19379 * ThemeWin32Classic.cs: drawing code and painting background bugfix
19380 * Theme.cs: define DrawLinkLabel method
19382 2005-04-05 Jackson Harper <jackson@ximian.com>
19384 * BindingContext.cs: Use weak references so these bad actors don't
19385 stay alive longer then they need to.
19387 2005-04-05 Jackson Harper <jackson@ximian.com>
19389 * ListControl.cs: Basic implementation of complex databinding.
19391 * ListBox.cs: Add calls to ListControl databinding methods.
19393 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
19396 - Don't change PopupButtonState to Normal when the
19397 PopupButton gets pressed several times.
19398 - Renamed ButtonPanel to PopupButtonPanel
19400 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
19402 * ColorDialog.cs: Use cached objects instead of creating them
19403 * LinkLabel.cs: Use cached objects instead of creating them
19404 * Splitter.cs: Use cached objects instead of creating them
19405 * FontDialog.cs: Use cached objects instead of creating them
19406 * PropertyGridView.cs: Use cached objects instead of creating them
19407 * MessageBox.cs: Use cached objects instead of creating them
19408 * FileDialog.cs: Use cached objects instead of creating them
19409 * ThemeWin32Classic.cs: Use cached objects instead of creating them
19410 * TreeView.cs: Use cached objects instead of creating them
19412 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
19414 * Control.cs: use Equals to compare the font since no == op
19415 * ScrollBar.cs: use Equals to compare the font since no == op
19417 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
19419 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
19421 2005-04-01 Jackson Harper <jackson@ximian.com>
19423 * Binding.cs: Implement IsBinding.
19424 * BindingManagerBase.cs:
19425 * PropertyManager.cs:
19426 * CurrencyManager.cs: Add IsSuspended property.
19428 2005-04-01 Jackson Harper <jackson@ximian.com>
19430 * Binding.cs: Had some IsAssignableFrom calls backwards.
19432 2005-04-01 Jackson Harper <jackson@ximian.com>
19434 * Binding.cs: Handle null data members when pulling data.
19435 * PropertyManager.cs: Handle the data member being a property that
19438 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
19440 * DataGridTextBoxColumn.cs: fixes signature
19441 * DataGrid.cs: calls right constructor
19443 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
19445 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
19446 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
19447 * GridTableStylesCollection.cs: implements GridTableStylesCollection
19448 * DataGridTableStyle.cs: implements DataGridTableStyle
19449 * DataGridBoolColumn.cs: implements DataGridBoolColumn
19450 * DataGridTextBox.cs: implements DataGridTextBox
19451 * DataGridColumnStyle.cs: implements DataGridColumnStyle
19453 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
19455 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
19457 2005-03-29 Peter Bartok <pbartok@novell.com>
19460 - Properly implemented CompanyName property
19461 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
19462 returns a path that includes CompanyName, ProductName and
19463 Version (fixes bug #70330)
19465 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
19467 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
19470 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
19472 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
19474 - Added ReadOnly CheckBox
19475 - Further refactoring: moved some code from Open-/SaveFileDialog
19478 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
19480 * OpenFileDialog.cs: Fixed CheckFileExists
19482 Moved FileView and DirComboBox outside FileDialog class.
19483 They can now be used outside FileDialog
19485 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
19487 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
19488 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
19490 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
19492 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
19493 - Added missing CreatePrompt property in SaveDialog
19494 - Overall SaveDialog handling should be better now
19495 - Added non standard ShowHiddenFiles property
19496 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
19497 - Added InitialDirectory and RestoreDirectory support
19499 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
19501 * FileDialog.cs: Made dirComboBox usable
19503 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
19505 * FileDialog.cs: Added Filter support (case sensitiv)
19507 2005-03-24 Jackson Harper <jackson@ximian.com>
19509 * TabControl.cs: Need a couple more pixels for the lines.
19511 2005-03-23 Jackson Harper <jackson@ximian.com>
19513 * TabControl.cs: Give the tab page focus when it is selected.
19515 2005-03-23 Jackson Harper <jackson@ximian.com>
19517 * TabControl.cs: Account for the drawing of tabs borders when
19518 invalidating. If the slider was clicked dont do click detection on
19521 2005-03-23 Jackson Harper <jackson@ximian.com>
19523 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
19525 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
19527 * CategoryGridEntry.cs: Added
19528 * GridItem.cs: Added helper properties
19529 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
19530 * GridEntry.cs: Updated code for collection
19531 * PropertyGrid.cs: Cleaned up some formatting
19532 * PropertyGridView.cs: Added drop down functionality for enums.
19533 * GridItemCollection.cs: Added enumerator logic
19534 * PropertyGridEntry.cs: Added
19536 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
19539 - Removed unnecessary commented code
19540 - Fixed handling for entering the filename manually in the combobox
19542 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
19544 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
19546 2005-03-18 Peter Bartok <pbartok@novell.com>
19548 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
19549 them being touching the border
19551 2005-03-18 Peter Bartok <pbartok@novell.com>
19553 * TextControl.cs: Quick hack to center text better
19555 2005-03-18 Peter Bartok <pbartok@novell.com>
19558 - Don't throw NotImplemented exceptions, just print a notice once
19559 instead (requested by Miguel). This makes running existing SWF
19562 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
19563 - Added context menu trigger on right click
19564 * Panel.cs: Trigger invalidate on resize
19566 - Removed old double-buffer drawing
19567 - Added ResizeRedraw style to force proper update of statusbar
19569 - Removed debug output
19570 * ThemeWin32Classic.cs:
19571 - Fixed drawing of status bar, now draws Text property if there
19572 are no defined panels
19574 2005-03-18 Jackson Harper <jackson@ximian.com>
19576 * ImageList.cs: When the image stream is set pull all the images
19578 * ImageListStreamer.cs: Implement reading image list streams.
19580 2005-03-18 Peter Bartok <pbartok@novell.com>
19582 * ThemeWin32Classic.cs (DrawPictureBox):
19583 - Fixed calculations for centered drawing
19584 - Fixed drawing for normal mode, not scaling the image on normal
19586 2005-03-18 Peter Bartok <pbartok@novell.com>
19588 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
19591 - Made Open/Save button the accept button for FileDialog
19592 - Tied the cancel button to the IButtonControl cancel button
19593 - Save/Open now properly builds the pathname
19594 - Now handles user-entered text
19595 - Preventing crash on right-click if no item is selected
19596 - Fixed Text property, now uses contents of textbox
19597 - Fixed SelectedText property, now just returns the text part that
19598 is selected in the text box
19600 2005-03-18 Jackson Harper <jackson@ximian.com>
19602 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
19603 rect, make sure to de-adjust the interior rect after drawing the
19606 2005-03-18 Peter Bartok <pbartok@novell.com>
19608 * MenuAPI.cs: Remove menu *before* executing selected action to
19609 prevent the menu from 'hanging around'
19611 2005-03-17 Geoff Norton <gnorton@customerdna.com>
19613 * XplatUIOSX.cs: Implemented WorkingArea property
19615 2005-03-17 Peter Bartok <pbartok@novell.com>
19617 * XplatUIX11.cs: Fixed menu coord calculations
19618 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
19619 for calculating offsets
19621 2005-03-17 Peter Bartok <pbartok@novell.com>
19623 * Hwnd.cs: Do not consider menu presence for default client
19624 rectangle location/size
19625 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
19626 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
19627 translation functions
19628 * FileDialog.cs: Fixed (what I presume is a) typo
19630 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
19632 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
19633 X access (avoids X-Async errors)
19635 2005-03-16 Jackson Harper <jackson@ximian.com>
19637 * TabControl.cs: Raise the SelectedIndexChanged event.
19639 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
19641 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
19642 - Removed vertical ToolBar and replaced it with a custom panel
19643 (desktop and home button already work)
19644 - Added Help button (some controls get resized or relocated then)
19645 - Draw correct text depending on Open or Save.
19646 - Fixed some typos...
19648 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
19651 - Only change Maximum and Minimum when need it (bug fix)
19653 2005-03-15 Peter Bartok <pbartok@novell.com>
19655 * Form.cs: Use Handle for icon, to trigger creation if
19656 the window does not yet exist
19658 - CanSelect: Slight performance improvement
19659 - Focus(): Preventing possible recursion
19660 - Invalidate(): Removed ControlStyle based clear flag setting
19661 - WM_PAINT: fixed logic for calling OnPaintBackground
19662 - WM_ERASEBKGND: Fixed logic, added call to new driver method
19663 EraseWindowBackground if the control doesn't paint background
19665 - Moved EraseWindowBackground() method to internal methods
19666 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
19667 is sent via SendMessage on BeginPaint call on Win32
19669 - Added EraseWindowBackground() method
19670 - No longer sends WM_ERASEBKGND on .Expose, but on call to
19671 PaintEventStart, which more closely matches Win32 behaviour
19672 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
19673 - Fixed SetFocus() to properly deal with client and whole windows
19674 * Hwnd.cs: Added ErasePending property
19675 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
19676 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
19678 2005-03-12 Geoff Norton <gnorton@customerdna.com>
19681 - Fix hard loop when timers exist.
19682 - Fix bugs with middle and right click for 3 button mice.
19684 2005-03-11 Peter Bartok <pbartok@novell.com>
19687 - get_WorkingArea: Need to call X directly, GetWindowPos only
19688 returns cached data now
19689 - Added sanity check to GetWindowPos hwnd usage
19691 2005-03-11 Jackson Harper <jackson@ximian.com>
19693 * BindingManagerBase.cs: This method isn't used anymore as
19694 PullData now updates the data in the control.
19696 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
19698 * Form.cs: fixes menu drawing on X11
19699 * MenuAPI.cs: fixes menu drawing on X11
19701 2005-03-11 Peter Bartok <pbartok@novell.com>
19703 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
19704 from Jonathan Gilbert; should fix bug #73606
19705 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
19706 in Screen coordinates. Thanks, Jordi.
19707 * Form.cs: Added missing attribute
19709 2005-03-11 Peter Bartok <pbartok@novell.com>
19712 - Rudimentary Mdi support
19713 - Removed outdated FormParent code
19714 - Implemented lots of missing properties and methods, still missing
19715 transparency support
19716 - Added missing attributes
19717 - Implemented support for MaximumBounds
19718 - Added firing of various events
19719 * XplatUI.cs: Added SetIcon() method
19720 * XplatUIDriver.cs: Added SetIcon() abstract
19721 * XplatUIOSX.cs: Stubbed out SetIcon() method
19723 - Implemented SetIcon() support
19724 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
19725 - Switched to unix line endings
19727 - Made POINT internal so for can access it as part of MINMAX
19728 - Implemented SetIcon() support
19729 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
19730 native Mdi support again, might have to go managed)
19731 * Control.cs: Now fires the StyleChanged event
19732 * MdiClient.cs: Added; still mostly empty
19734 2005-03-10 Peter Bartok <pbartok@novell.com>
19736 * SaveFileDialog.cs: Added emtpy file
19738 2005-03-08 Peter Bartok <pbartok@novell.com>
19740 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
19741 in turn triggers OnCreateContro) when creating a handle for the
19743 * TextControl.cs: Fixed endless loop in certain cases when
19744 replacing the current selection
19746 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
19749 - Honors NewValue changes in Scroll events allowing apps to change it
19750 - Adds First and Last Scroll events
19751 - Fixes Thumb events
19753 2005-03-07 Peter Bartok <pbartok@novell.com>
19755 * Hwnd.cs: Added DefaultClientRectangle property
19756 * XplatUI.cs: Now using the X11 driver Where() method, which provides
19757 more detailed debug information
19759 - Fixed size-change feedback loop, where we would pull an old size
19760 off the queue and mistakenly change our window's size to an
19762 - Now compressing ConfigureNotify events, to reduce looping and
19764 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
19767 2005-03-07 Jackson Harper <jackson@ximian.com>
19769 * Binding.cs: Push data pushes from data -> property. Check if the
19770 property is readonly when attempting to set it.
19772 2005-03-07 Jackson Harper <jackson@ximian.com>
19774 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
19775 instead of IsSubclassOf. Pulling data now sets the value on the
19777 * PropertyManager.cs:
19778 * CurrencyManager.cs: Just need to pull data when updating now,
19779 because PullData will set the value on the control.
19781 2005-03-04 Jackson Harper <jackson@ximian.com>
19783 * Binding.cs: Implement data type parsing and converting on pulled
19784 data. TODO: Are there more ways the data can be converted?
19786 2005-03-04 Jackson Harper <jackson@ximian.com>
19788 * Binding.cs: Support <Property>IsNull checks. Also bind to the
19789 controls Validating method so we can repull the data when the
19790 control loses focus.
19792 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
19795 - Fixes null string format
19798 - Adds enum type checks
19799 - Fixes redrawing and recalc need after changing some properties
19800 - Fixes on focus_item set after the event
19801 - Fixes adding columns after the control has been created
19803 * ThemeWin32Classic.cs:
19804 - Fixes CheckBox focus rectangle
19805 - Fixes ColumnHeader drawing
19808 2005-03-03 Jackson Harper <jackson@ximian.com>
19810 * Binding.cs: Bind to <Property>Changed events so we can detect
19811 when properties are changed and update the data.
19813 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
19816 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
19817 - Fixes ImageList constructor with ImageList container
19818 - Fixes image scaling (wrong parameters at DrawImage)
19820 2005-02-02 Jackson Harper <jackson@ximian.com>
19822 * Binding.cs: Make property searches case-insensitive. Eliminate
19823 some duplicated code.
19825 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
19828 - Handle focus event
19829 - Fix scrollbar events
19830 - Discard highlighted item if remove it
19831 - Fixes SelectedItem with strings
19833 2005-03-01 Peter Bartok <pbartok@novell.com>
19836 - Fixed Visible property, now follows (once again) parent chain
19837 to return false if any control in the chain is visible=false
19838 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
19839 - Fixed several places where is_visible instead of Visible was used
19840 - Implemented FIXME related to focus selection when setting focused
19841 control to be invisible
19843 * XplatUIWin32.cs: Now using proper method to find out if window is
19844 visible. Thanks to Jordi for pointing it out
19846 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
19848 * ComboBox.cs: show/hide scrollbar instead of creating it
19850 2005-02-27 Jackson Harper <jackson@ximian.com>
19852 * CurrencyManager.cs: Add PositionChanged stuff.
19854 2005-02-27 Peter Bartok <pbartok@novell.com>
19856 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
19857 * XplatUIOSX.cs: Added GetMenuOrigin() stub
19858 * XplatUIWin32.cs: Implemented GetMenuOrigin()
19860 - Implemented GetMenuDC()
19861 - Implemented GetMenuOrigin()
19862 - Implemented ReleaseMenuDC()
19863 - Implemented generation of WM_NCPAINT message
19864 - Implemented generation and handling of WM_NCCALCSIZE message
19865 * Form.cs: Added debug helper message for Jordi's menu work
19867 - Modified ClientRect property; added setter, fixed getter to handle
19868 setting of ClientRect
19869 - Added MenuOrigin property
19871 2005-02-26 Peter Bartok <pbartok@novell.com>
19874 - Destroys the caret if a window that's being destroyed contains it
19875 - Ignores expose events coming from the X11 queue for windows that
19876 already are destroyed
19877 - Now uses the proper variable for handling DestroyNotify, before we
19878 marked the wrong window as destroyed
19879 - Improved/added some debug output
19881 2005-02-26 Peter Bartok <pbartok@novell.com>
19883 * X11Keyboard.cs: Fixes to work on 64bit systems
19885 2005-02-26 Peter Bartok <pbartok@novell.com>
19888 - Now calling OnHandleDestroyed from DestroyHandle()
19889 instead of Dispose()
19890 - Removed bogus call to controls.Remove() from DestroyHandle()
19892 2005-02-26 Peter Bartok <pbartok@novell.com>
19894 * Control.cs: Properly destroy child windows when our handle is
19897 2005-02-25 Peter Bartok <pbartok@novell.com>
19900 - Added 'DriverDebug' define to allow tracing XplatUI API calls
19901 - Alphabetized Static Methods and Subclasses
19904 - Added XException class to allow custom handling of X11 exceptions
19905 - Created custom X11 error handler, tied into XException class
19906 - Added support for MONO_XEXCEPTIONS env var to allow the user
19907 to either throw an exception on X errors or continue running
19908 after displaying the error
19909 - Added handling of DestroyNotify message
19910 - Added handler for CreateNotify message (still disabled)
19911 - Improved (tried to at least) Where method to provide file and lineno
19913 - Added XErrorHandler delegate
19914 - Added XRequest enumeration (to suppor translation of errors)
19916 2005-02-25 Jackson Harper <jackson@ximian.com>
19918 * PropertyManager.cs: Implement editing features
19919 * CurrencyManager.cs:
19920 * Binding.cs: First attempt at UpdateIsBinding
19921 * BindingManagerBase.cs: Call UpdateIsBinding before
19922 pushing/pulling data.
19924 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
19926 * MenuAPI.cs: Respect disabled items
19927 * ThemeWin32Classic.cs
19928 - Caches ImageAttributes creation for DrawImageDisabled
19929 - Fixes vertical menu line drawing
19930 - Draws disabled arrows in disable menu items
19932 2005-02-24 Peter Bartok <pbartok@novell.com>
19935 - Added UserData property to allow associating arbitrary objects
19937 - Fixed leak; now removing Hwnd references from static windows array
19939 - Fixed Graphics leak in PaintEventEnd
19940 - Removed usage of HandleData, switched over to Hwnd class
19941 * HandleData.cs: Removed, obsoleted by Hwnd.cs
19943 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
19945 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
19946 * ScrollBar.cs: Fixes bug
19947 * TrackBar.cs: removes death code, clipping, mimize refreshes,
19948 keyboard navigation enhancements
19950 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
19952 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
19953 * GroupBox.cs: Add control styles
19954 * Label.cs: Add control styles
19955 * UpDownBase.cs: Add control styles
19956 * ListBox.cs: Add control styles
19957 * XplatUIWin32.cs: Fixes wrong parameter order
19960 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
19962 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
19964 2005-02-23 Jackson Harper <jackson@ximian.com>
19966 * PropertyManager.cs: Implement property binding. This doesn't
19967 seem to work yet though as (I think) there are some bugs in
19968 System.ComponentModel.PropertyDescriptor.
19969 * BindingContext.cs: Use new PropertyManager constructor.
19971 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
19973 * ProgressBar.cs: use clip region in ProgressBar
19974 * ThemeWin32Classic.cs: use clip region in ProgressBar
19976 2004-02-22 Jackson Harper <jackson@ximian.com>
19978 * BindingsCollection.cs: Remove some debug code.
19980 2005-02-22 Jackson Harper <jackson@ximian.com>
19982 * BindingContext.cs:
19983 * ControlBindingsCollection.cs:
19984 * CurrencyManager.cs:
19986 * BindingManagerBase.cs: Initial implementation
19987 * BindingsCollection.cs: Add an internal contains method that the
19988 BindingManagerBase uses to ensure bindings aren't added twice to
19990 * PropertyManager.cs: Stubbed out.
19992 * ContainerControl.cs: Hook up databinding
19994 2005-02-22 Geoff Norton <gnorton@customerdna.com>
19997 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
19998 Fixed Invalidate/Update chain.
19999 Fixed tons of other minor bugs (this is almost a complete rewrite).
20001 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
20003 * ComboBox.cs: do subcontrol creation when the control is created
20005 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
20007 * Label.cs: fixes image drawing (image and imagelist)
20008 * ThemeWin32Classic.cs: cache brushes
20010 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
20012 * Form.cs: Move menu drawing code to Theme class
20013 * ComboBox.cs: Move ComboBox drawing code to Theme class
20014 * MenuItem.cs: Move menu drawing code to Theme class
20015 * MenuAPI.cs: Move menu drawing code to Theme class
20016 * ThemeWin32Classic.cs: New methods
20017 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
20018 * ListBox.cs: Move Listbox drawing code to Theme class
20019 * Theme.cs: New methods
20021 2005-02-20 Peter Bartok <pbartok@novell.com>
20024 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
20025 only process mnemonics on those)
20026 - Fixed event sequence for key handling; first calling
20027 ProcessKeyEventArgs now
20029 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
20030 for processing non-character keys
20031 - Fixed WM_CHAR to generate proper event sequence before processing
20032 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
20035 2005-02-19 Peter Bartok <pbartok@novell.com>
20037 * UserControl.cs: Added TextChanged event; added attributes
20038 * SizeGrip.cs: Implemented resizing and optional display of grip
20039 * Form.cs: Fixed attribute
20040 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
20041 Changed meaning of ScrollWindow bool argument; instead of the
20042 clear attribute (which will be true usually anyway), it gives the
20043 option of moving child controls as well.
20045 - Changed to match new ScrollWindow argument
20046 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
20047 now handles the implicit parent window a WM puts around us
20048 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
20050 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
20051 * TreeView.cs: Adjusted to new ScrollWindow arguments
20053 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
20055 * Form.cs: Menu integration with non-client area
20056 * MenuItem.cs: Menu integration with non-client area
20057 * MenuAPI.cs: Menu integration with non-client area
20059 2005-02-18 Peter Bartok <pbartok@novell.com>
20061 * MethodInvoker.cs: Added
20062 * MdiLayout.cs: Added
20063 * SendKeys.cs: Started implementation
20064 * ErrorIconAlignment.cs: Added
20066 2005-02-18 Peter Bartok <pbartok@novell.com>
20068 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
20069 * Form.cs: Added handling for Menu-related Non-client messages
20071 2005-02-17 Peter Bartok <pbartok@novell.com>
20073 * UpDownBase.cs: Fixed typo, compilation errors
20074 * DomainUpDown.cs: Fixed attribute value
20076 2005-02-16 Miguel de Icaza <miguel@novell.com>
20078 * UpDownBase.cs: Attach entry events.
20080 Add ForeColor property, Focused, InterceptArrowKeys (interception
20081 does not work yet).
20083 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
20086 - Redraw non client are on Setmenu
20087 - Calc proper menu starting point
20089 2005-02-17 Peter Bartok <pbartok@novell.com>
20091 * Application.cs: Fixed message_filter check
20093 2005-02-17 Peter Bartok <pbartok@novell.com>
20095 * Application.cs: Now calls registered message filters
20096 * DockStyle.cs: Fixed attribute
20097 * Form.cs: Fixed attribute
20098 * Menu.cs: Fixed attribute
20099 * ToolTip.cs: Fixed attribute
20100 * TreeNode.cs: Added missing attributes and arranged in regions
20101 * PropertyGrid.cs: Fixed signatures
20102 * TreeNodeCollection.cs: Added attributes
20103 * Splitter.cs: Added missing attributes; arranged into regions
20104 * TabPage.cs: Added missing attributes; arranged into regions
20105 * TextBoxBase.cs: Added missing attributes
20106 * TextBox.cs: Added missing attributes
20107 * ArrangeDirection.cs: Added missing attributes
20108 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
20109 * ToolBarButton.cs: Fixed attributes
20110 * AnchorStyles.cs: Fixed attribute
20111 * TrackBar.cs: Fixed attributes
20112 * TabControl.cs: Added missing attributes and arranged into regions
20113 * ToolBar.cs: Fixed attribute
20114 * StatusBar.cs: Fixed signature, organized into regions and added
20116 * StatusBarPanel.cs: Fixed attributes
20117 * ContentsResizedEventArgs.cs: Implemented
20118 * ContentsResizedEventHandler.cs: Implemented
20119 * DateBoldEventArgs.cs: Implemented
20120 * DateBoldEventHandler.cs: Implemented
20121 * UpDownEventArgs.cs: Implemented
20122 * UpDownEventHandler.cs: Implemented
20124 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
20126 * Form.cs: first Menu NC refactoring
20127 * MenuAPI.cs: first Menu NC refactoring
20129 2005-02-16 Peter Bartok <pbartok@novell.com>
20131 * ImeMode.cs: Added missing attributes
20132 * Menu.cs: Fixed attribute
20133 * GroupBox.cs: Fixed attribute
20134 * Label.cs: Fixed attribute
20135 * ColorDialog.cs (RunDialog): Removed TODO attribute
20136 * ComboBox.cs: Fixed attributes
20137 * ListControl.cs: Added missing attributes
20138 * PropertyGrid.cs: Fixed attributes
20139 * Control.cs: Fixed attributes
20140 * ListViewItem.cs: Added TypeConverter attribute
20141 * NotifyIcon.cs: Fixed attributes
20142 * ListView.cs: Fixed attributes
20143 * ButtonBase.cs: Fixed attribute
20144 * ImageList.cs: Added missing attributes
20145 * ContainerControl.cs: Fixed signature
20146 * CheckedListBox.cs: Fixed attribute; added missing attributes
20147 * Panel.cs: Fixed attributes
20148 * PropertyTabChangedEventArgs.cs: Added missing attribute
20149 * PropertyValueChangedEventArgs.cs: Added missing attribute
20150 * Binding.cs: Fixed attribute
20151 * ListViewItemConverter: Implemented ListViewSubItemConverter class
20152 * ListBox.cs: Fixed attribute; added missing attributes;
20153 * ScrollableControl.cs: Added missing attributes
20154 * PictureBox.cs: Added missing attributes; implemented missing property
20155 * DateTimePicker.cs: Added missing attributes
20156 * Theme.cs (ToolWindowCaptionHeight): Fixed type
20157 * MonthCalendar.cs: Fixed attributes
20158 * StatusBarPanel.cs: Added missing attributes
20159 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
20161 2005-02-16 Peter Bartok <pbartok@novell.com>
20163 * TextBoxBase.cs: The previous method to enforce height yet remember
20164 the requested high was less than ideal, this is an attempt to do
20166 * Control.cs: Added comment about possible problem
20167 * Copyright: Updated format
20168 * GridItemType.cs: Fixed swapped values
20170 2005-02-15 Jackson Harper <jackson@ximian.com>
20172 * BaseCollection.cs: Use property so we never access an
20173 uninitialized list. Also initialize the list in the property.
20175 2005-02-15 Peter Bartok <pbartok@novell.com>
20177 * GroupBox.cs (ProcessMnemonic): Implemented
20178 * Label.cs (ProcessMnemonic): Implemented
20179 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
20182 2005-02-15 Peter Bartok <pbartok@novell.com>
20184 * RadioButton.cs (ProcessMnemonic): Implemented
20185 * CheckBox.cs (ProcessMnemonic): Implemented
20187 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
20189 - Added internal method to allow calling ProcessMnemonic from other
20191 * ContainerControl.cs:
20192 - Started support for handling validation chain handling
20193 - Implemented ProcessMnemonic support
20194 - Added Select() call to Active, to make sure the active control
20196 * Form.cs: Setting toplevel flag for Forms (this was lost in the
20197 FormParent rewrite)
20198 * ThemeWin32Classic.cs:
20199 - DrawCheckBox(): Fixed stringformat to show hotkeys
20200 - DrawRadioButton(): Fixed stringformat to show hotkeys
20201 * CommonDialog.cs: Removed WndProc override, not needed
20203 2005-02-14 Peter Bartok <pbartok@novell.com>
20205 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
20206 missed those in the rewrite
20208 2005-02-14 Miguel de Icaza <miguel@novell.com>
20210 * NumericUpDown.cs (Increment, ToString): Add.
20211 (DecimalPlaces): implement.
20215 * UpDownBase.cs: Add the designer attributes.
20217 2005-02-13 Peter Bartok <pbartok@novell.com>
20219 * Panel.cs: Removed border_style, now in Control
20220 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
20221 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
20223 2005-02-13 Peter Bartok <pbartok@novell.com>
20225 * MouseButtons.cs: Added missing attributes
20226 * XplatUIStructs.cs: Added enumeration for title styles
20227 * LeftRightAlignment.cs: Added missing attributes
20228 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
20229 it compatible with Graphics.FromHwnd()
20230 * SelectedGridItemChangedEventArgs.cs: Fixed property type
20231 * Keys.cs: Added missing attributes
20232 * SelectionRange.cs: Added missing attributes
20233 * SelectionRangeConverter.cs: Added
20235 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
20236 ReleaseMenuDC methods
20237 - Renamed ReleaseWindow to UngrabWindow
20238 - Added proper startup notice to allow version identification
20240 - Added missing attributes
20241 - Removed FormParent concept
20242 * Label.cs: Removed border_style field, now in Control
20243 * RadioButton.cs: Now properly selects RadioButton when focus is
20245 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
20247 - Added missing attributes
20248 - Added borderstyle handling
20249 - Removed FormParent concept support
20250 - Fixed calls to XplatUI to match changed APIs
20251 - Fixed bug that would case us to use disposed Graphics objects
20252 - Removed unneeded internal methods
20253 - PerformLayout(): Fixed to handle DockStyle.Fill properly
20254 - SelectNextControl(): Fixed to properly check common parents
20255 * TextBoxBase.cs: Removed border_style field (now in Control)
20257 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
20258 fixed calculations for form size
20259 - Added support for localized strings and icons
20260 - Improved form size calculations, added border
20261 * ListView.cs: Removed border_style field (now in Control)
20262 * X11Structs.cs: Moved several structs from X11 driver here
20263 * X11Keyboard.cs: Changed debug message
20264 * Application.cs: Removed FormParent concept support
20266 - Resetting end_modal flag
20267 - Removed FormParent concept support
20268 * NativeWindow.cs: Removed FormParent concept support
20269 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
20270 Client area and Non-Client whole window to allow support for WM_NC
20272 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
20273 prevent using it until it supports Hwnd as per Geoff Norton's request
20274 * ToolBar.cs: Fixed drawing, was not doing proper drawing
20275 * PictureBox.cs: Removed border_style field, now in Control
20276 * XplatUIWin32.cs: Added new driver methods
20278 2005-02-12 Peter Bartok <pbartok@novell.com>
20280 * OpacityConverter.cs: Implemented
20281 * Hwnd.cs: Internal class to support drivers that need to emulate
20282 client area/non-client area window behaviour
20284 2005-02-11 Peter Bartok <pbartok@novell.com>
20286 * KeysConverter.cs: Implemented
20288 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
20290 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
20291 * LinkLabel: Added missing attributes
20292 * MainMenu.cs: fixes ToString
20293 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
20294 * ListBox.cs: fixes event position
20295 * TrackBar.cs: adds missing attributes and events
20297 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
20299 * MenuItem.cs: Use SystemInformation and bug fixes
20300 * MenuAPI.cs: Use SystemInformation and bug fixes
20302 2005-02-09 Jackson Harper <jackson@ximian.com>
20304 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
20305 their keystate otherwise things like VK_MENU get stuck "on".
20307 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
20309 * ListBox.cs: Fixes AddRange bug
20311 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
20314 - Add missing attributes
20315 - Add missing method
20317 * CheckedListBox.cs: Added missing attributes
20318 - Add missing attributes
20319 - Remove extra method
20321 * ComboBox.cs: Added missing attributes
20322 * VScrollBar.cs: Added missing attributes
20323 * ScrollBar.cs: Added missing attributes
20324 * ListBox.cs: Fixes signature, add missing consts
20325 * LinkArea.cs: Added missing attributes
20328 2005-02-08 Peter Bartok <pbartok@novell.com>
20330 * Menu.cs: Added missing attributes
20331 * MainMenu.cs: Added missing attributes
20332 * GroupBox.cs: Added missing attributes
20333 * Label.cs: Added missing attributes
20334 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
20336 - Added Instance and Options properties
20337 - Added missing attributes
20338 * Cursor.cs: Made Serializable
20339 * NotifyIcon: Added missing attributes
20340 * MenuItem.cs: Added missing attributes
20341 * TextBoxBase.cs: Implemented AppendText() and Select() methods
20342 * Panel.cs: Added Missing attributes
20343 * MonthCalendar.cs: Fixed CreateParams
20345 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
20349 - Fixes issues with links
20350 - Adds the class attributes
20352 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
20355 - Fixes button when no items available in dropdown
20356 - Fixes repainting problems
20357 - Adds the class attributes
20359 2005-02-07 Geoff Norton <gnorton@customerdna.com>
20361 * XplatUIOSX.cs: Detect the menu bar and title bar height from
20362 the current theme. Cache these on startup.
20364 2005-02-07 Jackson Harper <jackson@ximian.com>
20366 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
20367 the scrollbar buttons when they are depressed.
20369 2005-02-07 Geoff Norton <gnorton@customerdna.com>
20371 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
20372 Get the display size from the main displayid. We currently dont
20373 support multiple display configurations.
20375 2005-02-07 Geoff Norton <gnorton@customerdna.com>
20377 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
20379 2005-02-07 Miguel de Icaza <miguel@novell.com>
20381 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
20383 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
20385 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
20387 2005-02-04 Jackson Harper <jackson@ximian.com>
20389 * ThemeWin32Classic.cs: Respect the clipping rect when
20390 drawing. Only fill the intersection of clips and rects so there
20391 isn't a lot of large fills.
20392 * ScrollBar.cs: Pass the correct clipping rect to the theme
20393 engine. Remove some debug code.
20395 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
20397 * DateTimePicker.cs:
20398 - Fixed crash on DateTime.Parse, use Constructor instead
20400 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
20404 - Owner draw support (MeasureItem and DrawItem)
20406 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
20409 - Implements FindMergePosition and MergeMenu functions (very poor documented)
20410 - Fixes MenuItems.Add range
20412 - MergeMenu and Clone and CloneMenu functions
20414 2005-02-03 Jackson Harper <jackson@ximian.com>
20416 * ScrollBar.cs: Make abstract
20417 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
20420 2005-02-03 Jackson Harper <jackson@ximian.com>
20422 * ScrollBar.cs: First part of my scrollbar fixups. This removes
20423 all the unneeded refreshes and uses invalidates with properly
20426 2005-02-03 Peter Bartok <pbartok@novell.com>
20428 * ComponentModel.cs: Added
20429 * IDataGridEditingService.cs: Added
20430 * Timer.cs: Added missing attributes
20431 * ToolTip.cs: Added missing attributes
20433 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
20435 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
20437 2005-02-03 Peter Bartok <pbartok@novell.com>
20439 * ListBox.cs: Added missing attributes
20441 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
20444 - Fixes font height after font change
20445 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
20447 2005-02-02 Peter Bartok <pbartok@novell.com>
20449 * HandleData.cs: Introduced static methods to allow class
20450 to be more self-contained and track it's own HandleData objects
20451 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
20452 HandleData to use new static methods
20454 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
20457 - Fixes default size and PreferredHeight
20459 - ObjectCollection.Insert implementation
20465 - ObjectCollection.Insert implementation
20466 - No selection after clean
20469 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
20471 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
20473 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
20476 - Caches ItemHeight calculation for OwnerDrawVariable
20477 - Handles dropdown properly
20478 - Fixes several minor bugs
20480 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
20483 - Fixes 71946 and 71950
20484 - Fixes changing Multicolumn on the fly
20485 - Fixes keyboard navigation on Multicolumn listboxes
20487 2005-01-31 Geoff Norton <gnorton@customerdna.com>
20489 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
20490 crash reporter log.
20492 2005-01-31 Geoff Norton <gnorton@customerdna.com>
20494 * XplatUIOSX.cs: Allow applications to actually exit.
20496 2005-01-31 Geoff Norton <gnorton@customerdna.com>
20498 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
20499 their parent at creation time rather than lazily later. Fixes a major
20500 regression we were experiencing.
20502 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
20504 * ThemeWin32Classic.cs: more date time picker painting fixes
20505 * DateTimePicker.cs: more monthcalendar drop down fixes
20506 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
20508 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
20511 - When moving the thumb going outside the control should stop the moving
20512 - Adds the firing of missing events
20513 - Fixes no button show if Size is not specified
20514 - End / Home keys for keyboard navigation
20516 2005-01-30 Peter Bartok <pbartok@novell.com>
20518 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
20519 sanity check to prevent theoretical loop
20520 * XplatUIWin32.cs (SetVisible): Removed debug output
20521 * XplatUIX11.cs (SystrayChange): Added sanity check
20522 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
20523 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
20524 behaviour, valid until the X11 client window rewrite is done
20525 * TextBox.cs (ctor): Setting proper default foreground and background
20528 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
20530 * Theme: Added DrawDateTimePicker to interface
20531 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
20532 * DateTimePicker.cs: Created (still needs keys and painting code)
20533 * DateTimePickerFormat.cs: added
20534 * MonthCalendar.cs: fixed CreateParams for popup window mode
20536 2005-01-29 Peter Bartok <pbartok@novell.com>
20538 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
20539 this should also the calculations for ligher/darker
20540 * Theme.cs: Fixed defaults for ScrollBar widths/heights
20542 2005-01-29 Peter Bartok <pbartok@novell.com>
20544 * ArrangeDirection.cs: Added
20545 * ArrangeStartingPositon.cs: Added
20546 * SystemInformation.cs: Implemented
20547 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20548 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
20549 used by SystemInformation class
20550 * X11Strucs.cs: Added XSizeHints structure
20552 - Fixed CreateParams to make sure the menu window is always visible
20553 - TrackPopupMenu: Added check to make sure we don't draw the
20556 2005-01-29 Peter Bartok <pbartok@novell.com>
20558 * HandleData.cs: Added method for altering invalid area
20559 * TextBoxBase.cs: Implemented TextLength
20561 2005-01-28 Peter Bartok <pbartok@novell.com>
20563 * XplatUIX11.cs: Improvement over last patch, not sending
20564 the WM_PAINT directly anymore, instead we scroll any pending
20565 exposed areas and let the system pick out the WM_PAINT later
20567 2005-01-28 Peter Bartok <pbartok@novell.com>
20569 * SWF.csproj: Deleted, no longer used. Instead,
20570 Managed.Windows.Forms/SWF.csproj should be used
20571 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
20572 directly, to avoid a potential race condition with the next
20575 2005-01-28 Peter Bartok <pbartok@novell.com>
20577 * XplatUI.cs: Made class internal
20579 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
20581 * CheckedListBox.cs:
20584 - Missing methods and events
20586 2005-01-27 Peter Bartok <pbartok@novell.com>
20588 * Application.cs (Run): Don't use form if we don't have one
20590 2005-01-27 Peter Bartok <pbartok@novell.com>
20592 * TextBoxBase.cs (get_Lines): Fixed index off by one error
20594 2005-01-27 Peter Bartok <pbartok@novell.com>
20596 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
20597 * GridItem.cs: Added; Patch by Jonathan S. Chambers
20598 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
20599 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
20600 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
20601 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
20602 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20603 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20604 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20605 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20606 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20607 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20609 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
20612 - Draw focus on Simple Combobox
20613 - Fixes drawing issues
20616 2005-01-27 Peter Bartok <pbartok@novell.com>
20619 - Place window in default location, instead of hardcoded 0/0
20620 - Send initial LocationChanged event
20622 - UpdateBounds after creation to find out where the WM placed us
20623 - Make sure that if the ParentForm changes location the Form
20625 * XplatUIX11.cs: XGetGeometry will not return the coords relative
20626 to the root, but to whatever the WM placed around us.
20627 Translate to root coordinates before returning toplevel
20629 * XplatUIWin32.cs: Removed debug output
20630 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
20631 flag to GetWindowPos, to allow translation of coordinates on X11
20633 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
20635 * ListBox.cs: connect LostFocus Event
20637 2005-01-27 Peter Bartok <pbartok@novell.com>
20639 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20640 XplatUIX11.cs: Extended the Systray API
20641 * Form.cs: Removed debug output
20642 * Application.cs: Fixed focus assignment, always need to call
20643 XplatUI.Activate() since Form.Activate() has rules that may
20645 * NotifyIcon.cs: Should be complete now
20646 * ToolTip.cs: Worked around possible timer bug
20648 2005-01-27 Jackson Harper <jackson@ximian.com>
20651 - Only invalidate the effected tabs when the
20652 selected index changes. This reduces drawing and gets rid of some
20654 - Only refresh if the tabs need to be shifted, otherwise only
20655 invalidate the slider button.
20656 - On windows the tabs are not filled to right if the slider is
20659 2005-01-27 Jackson Harper <jackson@ximian.com>
20661 * TabControl.cs: Only refresh on mouseup if we are showing the
20662 slider. Also only invalidate the button whose state has changed.
20664 2005-01-26 Peter Bartok <pbartok@novell.com>
20666 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
20667 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
20668 and SystrayRemove() methods
20669 * XplatUIOSX.cs: Stubbed Systray methods
20671 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
20673 - Fixed broken XChangeProperty calls (marshalling messed up things)
20674 * X11Structs.cs: Added enums and structs required for Size hinting
20675 * NotifyIcon.cs: Added & implemented
20677 2005-01-26 Jackson Harper <jackson@ximian.com>
20679 * TabControl.cs: Space vertically layed out tabs properly.
20681 2005-01-26 Peter Bartok <pbartok@novell.com>
20683 * Form.cs (CreateClientParams): Always set the location to 0,0
20684 since we're a child window.
20686 * Control.cs (SetVisibleCore): Always explicitly setting the location
20687 of a toplevel window, apparently X11 doesn't like to move windows
20688 while they're not mapped.
20690 2005-01-26 Jackson Harper <jackson@ximian.com>
20692 * TabControl.cs: Implement FillToRight size mode with vertically
20695 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
20697 * ControlPaint.cs, ThemeWin32Classic.cs
20698 - Fixes DrawFocusRectangle
20700 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
20703 - MenuBar tracking only starts when item is first clicked
20704 - Fixes menu hidding for multiple subitems
20705 - Unselect item in MenuBar when item Executed
20708 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
20711 - IsInputKey for ListBox
20714 - Shift and Control item selection
20715 - Implement SelectionMode.MultiExtended
20716 - Fixes RightToLeft
20718 - IsInputKey implemented
20719 - Do not generate OnTextChangedEdit on internal txt changes
20721 2005-01-23 Peter Bartok <pbartok@novell.com>
20723 * AccessibleObject.cs: Partially implemented Select()
20724 * MonthCalendar.cs: Added missing attributes and events
20725 * Form.cs: Fixed CreateParams behaviour, now controls derived from
20726 form can properly override CreateParams.
20727 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20728 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
20729 Control performs Invalidate & Update
20730 * NativeWindow (CreateHandle): Added special handling for Form
20731 and Form.FormParent classes to allow overriding of From.CreateParams
20733 - ControlNativeWindow: Renamed 'control' variable to more intuitive
20735 - ControlNativeWindow: Added Owner property
20736 - Removed usage of Refresh() on property changes, changed into
20737 Invalidate(), we need to wait until the queue is processed for
20738 updates, direct calls might cause problems if not all vars for
20739 Paint are initialized
20740 - Added call to UpdateStyles() when creating the window, to set any
20741 styles that CreateWindow might have ignored.
20742 - Added support for Form CreateParent overrides to UpdateStyles()
20743 * MessageBox.cs: Removed no longer needed FormParent override stuff,
20744 CreateParams are now properly overridable
20745 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
20746 CreateParams are now properly overridable
20748 2005-01-23 Miguel de Icaza <miguel@ximian.com>
20750 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
20753 Capture LostFocus and OnTextBoxChanged. The later introduces a
20754 recursive invocation that I have not figured out yet.
20756 Reset the timer when not using (it was accumulating).
20759 (OnTextBoxChanged): Set UserEdit to true here to track whether the
20760 user has made changes that require validation.
20762 Reset changing to avoid loops.
20764 2005-01-22 Miguel de Icaza <miguel@ximian.com>
20766 * NumericUpDown.cs: Display value at startup.
20768 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
20771 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
20772 filled in. Added some basic parsing of text.
20774 Still missing the OnXXX method overrides, and figuring out the
20775 events that must be emitted.
20777 * UpDownBase.cs: Handle UserEdit on the Text property.
20779 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
20782 - Fixes IntegralHeight
20785 2005-01-21 Jackson Harper <jackson@ximian.com>
20787 * TabControl.cs: Set the SelectedIndex property when SelectedTab
20788 is set so that the page visibility is updated and the tabs are
20791 2005-01-21 Jackson Harper <jackson@ximian.com>
20793 * TabControl.cs: Use cliping rectangle for blitting. Give the
20794 theme the clipping rect so we can do clipping while
20795 drawing. Remove some debug code.
20797 2005-01-21 Jackson Harper <jackson@ximian.com>
20799 * TabPage.cs: Add a new method so tab pages can force the tab
20800 control to recalculate the tab page sizes.
20801 * TabControl.cs: UpdateOwner needs to make the tab control recalc
20804 2005-01-20 Jackson Harper <jackson@ximian.com>
20806 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
20808 2005-01-20 Jackson Harper <jackson@ximian.com>
20810 * TreeView.cs: Set the bounds for nodes properly. They were
20811 getting screwed up when checkboxes were not enabled, but images
20814 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
20817 - Owner draw support
20820 2005-01-20 Jackson Harper <jackson@ximian.com>
20822 * XplatUIStructs.cs: More misc keys
20823 * X11Keyboard.cs: Ignore some control keys.
20825 2005-01-20 Jackson Harper <jackson@ximian.com>
20827 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
20828 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
20830 2005-01-19 Peter Bartok <pbartok@novell.com>
20832 * Control.cs: Un-selecting the control when it is loosing focus
20834 2005-01-19 Jackson Harper <jackson@ximian.com>
20836 * TreeView.cs: Hook up to the text controls leave event so we can
20837 end editing when the users clicks outside the text box.
20839 2005-01-19 Jackson Harper <jackson@ximian.com>
20841 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
20842 get set in the conversion array.
20844 2005-01-19 Peter Bartok <pbartok@novell.com>
20846 * Application.cs (ModalRun): Added a call to CreateControl to ensure
20847 focus is properly set
20849 - Added missing attributes
20850 - removed styles, those are already set in the base class
20852 - Added missing attributes
20853 - Added clip window styles
20854 * CheckBox.cs: Added missing attributes
20856 - FormParentWindow.CreateParams: Added required clip styles
20857 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
20858 also filters modifier keys
20860 - Added assignment of Accept and Cancel button to enable Enter
20861 and Esc keys in MessageBox dialogs
20862 - FormParentWindow.CreateParams: Added required clip styles
20863 * RadioButton.cs: Added missing attributes
20864 * TextControl.cs: No longer draws selection if control does not
20867 - Now draws simple rectangle around test area to make it obvious
20868 there's a control. This is a hack until we properly support borders
20869 - A few simple fixes to support selections better, now erases selected
20870 text when typing, and resets selection when using movement keys
20872 2005-01-19 Miguel de Icaza <miguel@ximian.com>
20874 * UpDownBase.cs: Added some new properties.
20876 * DomainUpDown.cs: Implement a lot to get my test working.
20878 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20880 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
20882 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20884 * OSXStructs (WindowAttributes): Fixed csc complaints
20886 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20889 OSXStructs.cs: Initial refactor to move enums and consts into
20890 OSXStructs and use them in the driver for greater readability.
20892 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20894 * XplatUIOSX.cs: Initial support for Standard Cursors.
20895 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
20897 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
20899 * ComboBox.cs: ability to change style when the ctrl is already
20900 created, missing methods and events, bug fixes, signature fixes
20902 2005-01-19 Peter Bartok <pbartok@novell.com>
20904 * Cursors.cs (ctor): Added ctor to fix signature
20906 2005-01-18 Peter Bartok <pbartok@novell.com>
20908 * Button.cs: Implemented DoubleClick event
20910 - Fixed keyboard handling to behave like MS, where the press of
20911 Spacebar is equivalent to a mousedown, and the key release is
20912 equivalent to mouseup. Now a spacebar push will give the same
20913 visual feedback like a mouse click.
20914 - Added missing attributes
20915 - Added ImeModeChanged event
20916 - Added support for generating DoubleClick event for derived classes
20918 - Implemented DoubleClick event
20919 - Added missing attributes
20920 * CommonDialog.cs: Added missing attribute
20921 * ContextMenu.cs: Added missing attributes
20923 - AutoChecked buttons do not allow to be unselected when clicked
20924 (otherwise we might end up with no selected buttons in a group)
20925 - Added missing attributes
20926 - Implemented DoubleClickEvent
20927 * ThreadExceptionDialog.cs: Enabled TextBox code
20929 2005-01-18 Peter Bartok <pbartok@novell.com>
20931 * Form.cs: Removed debug output
20932 * Button.cs: Added support for DoubleClick method
20934 2005-01-18 Peter Bartok <pbartok@novell.com>
20937 - Added method to parent window that allows triggering size
20938 calculations when a menu is added/removed
20939 - set_Menu: Cleaned up mess from early days of Form and Control,
20940 now properly triggers a recalc when a menu is added/removed
20941 - Added case to select form itself as focused form if no child
20943 - Added PerformLayout call when showing dialog, to ensure properly
20946 - Select(): Made internal so Form can access it
20947 - Focus(): Only call Xplat layer if required (avoids loop), and sets
20949 * Application.cs (Run): Removed hack and calls PerformLayout instead
20950 to trigger calculation when Form becomes visible
20952 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
20954 * ComboBox.cs: fixes for ownerdraw
20956 2005-01-18 Peter Bartok <pbartok@novell.com>
20959 - Sentinel is no longer static, each Document gets it's own, this
20960 avoids locking or alternatively overwrite problems when more
20961 than one text control is used simultaneously.
20962 - Switched to use Hilight and HilightText brushes for text selection
20964 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
20966 2005-01-18 Peter Bartok <pbartok@novell.com>
20969 - Hooked up the following events:
20977 o SystemColorsChanged
20978 o ParentFontChanged
20980 - Removed debug output
20981 - Added a call to the current theme's ResetDefaults when a color change
20983 * Form.cs: Now setting the proper ImeMode
20984 * Theme.cs: Defined a method to force recreation of cached resources
20985 and rereading of system defaults (ResetDefaults())
20986 * ThemeWin32Classic.cs: Added ResetDefaults() stub
20988 2005-01-17 Peter Bartok <pbartok@novell.com>
20990 * Control.cs: Added missing attributes
20992 2005-01-17 Jackson Harper <jackson@ximian.com>
20994 * TreeNode.cs: Implement editing. Add missing properties selected
20996 * TreeView.cs: Implement node editing. Also some fixes to use
20997 Invalidate (invalid area) instead of Refresh when selecting.
20999 2005-01-17 Peter Bartok <pbartok@novell.com>
21002 - Implemented InvokeGotFocus() method
21003 - Implemented InvokeLostFocus() method
21004 - Implemented InvokePaint() method
21005 - Implemented InvokePaintBackground() method
21006 - Implemented InvokeClick() method
21007 - Implemented FindForm() method
21008 - Implemented RectangleToClient() method
21009 - Implemented ClientToRectangle() method
21010 - Implemented ResetBackColor() method
21011 - Implemented ResetCursor() method
21012 - Implemented ResetFont() method
21013 - Implemented ResteForeColor() method
21014 - Implemented ResetImeMode() method
21015 - Implemented ResetLeftToRight() method
21016 - Implemented ResetText() method
21017 - Implemented Scale() methods
21018 - Implemented ScaleCore() method
21019 - Implemented Update() method
21020 - Removed unused variables
21021 - Stubbed AccessibilityNotifyClients and
21022 ControlAccessibleObject.NotifyClients() methods (dunno what to do
21024 - Now setting proper default for RightToLeft property
21025 - Fixed bug in SetClientSizeCore that would cause windows to get
21027 - Now sending Click/DoubleClick events
21028 - Now selecting controls when left mouse button is clicked on
21030 * AccessibleEvents.cs: Added
21031 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
21032 * XplatUIOSX.cs: Stubbed UpdateWindow() method
21033 * XplatUIWin32.cs: Implemented UpdateWindow() method
21034 * XplatUIX11.cs: Implemented UpdateWindow() method
21035 * Form.cs: Removed stray semicolon causing CS0162 warning
21036 * ThemeWin32Classic.cs: Fixed unused variable warnings
21037 * ScrollableControl.cs: Now calls base method for ScaleCore
21038 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
21039 style to avoid interference with internal click handler (which is
21040 different than standard Control click handling)
21042 - Now unchecks all sibling radio buttons when control is
21043 selected (Fixes #68756)
21044 - Removed internal tabstop variable, using the one inherited from
21047 2005-01-17 Jackson Harper <jackson@ximian.com>
21049 * NavigateEventArgs.cs: Fix base type.
21050 * LinkLabel.cs: Sig fix
21052 2005-01-17 Jackson Harper <jackson@ximian.com>
21054 * TreeView.cs: Only invalidate the effected nodes bounds when
21057 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
21059 * XplatUIWin32.cs: fixes Win32 marshaling
21060 * XplatUIX11.cs: fixes method signature
21062 2005-01-17 Peter Bartok <pbartok@novell.com>
21064 * XplatUIX11.cs: Clean up resources when we no longer need them
21066 2005-01-17 Peter Bartok <pbartok@novell.com>
21068 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
21069 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
21070 and DestroyCursor() methods.
21071 * Cursor.cs: Partially implemented, now supports standard cursors;
21072 still contains some debug code
21073 * Cursors.cs: Implemented class
21075 - WndProc(): Added handling of WM_SETCURSOR message, setting the
21077 - Implemented Cursor property
21078 - Replaced break; with return; more straightforwar and possibly
21080 - Now properly setting the result for WM_HELP
21081 * X11Structs.cs: Added CursorFontShape enum
21082 * XplatUIStructs.cs:
21083 - Added StdCursor enum (to support DefineStdCursor() method)
21084 - Added HitTest enum (to support sending WM_SETCURSOR message)
21086 - Now sends the WM_SETCURSOR message
21087 - Implemented new cursor methods
21088 * XplatUIOSX.cs: Stubbed new cursor methods
21090 - Implemented new cursor methods
21091 - Added GetSystemMetrics function and associated enumeration
21093 2005-01-15 Peter Bartok <pbartok@novell.com>
21096 - WndProc(): Now handles EnableNotifyMessage
21097 - SelectNextControl(): Fixed bug where if no child or sibling
21098 controls exist we looped endlessly
21100 2005-01-14 Jackson Harper <jackson@ximian.com>
21102 * TreeView.cs: Recalculate the tab pages when a new one is added
21103 so that the proper bounding rects are created.
21105 2005-01-14 Jackson Harper <jackson@ximian.com>
21107 * TreeView.cs: Draw a gray box instead of a grip in the lower
21108 right hand corner when there are both horizontal and vertical
21111 2005-01-14 Jackson Harper <jackson@ximian.com>
21113 * Control.cs: When erasing backgrounds use FromHwnd instead of
21114 FromHdc when there is a NULL wparam. This occurs on the X driver.
21115 * XplatUIX11.cs: Set the wparam to NULL.
21117 2005-01-13 Jackson Harper <jackson@ximian.com>
21119 * PictureBox.cs: Implement missing methods (except ToString, need
21120 to test that on windows) and events. When visibility is changed we
21121 need to redraw the image because the buffers are killed. When size
21122 is changed refresh if the sizemode needs it.
21124 2005-01-13 Peter Bartok <pbartok@novell.com>
21126 * Control.cs (SelectNextControl): Was using wrong method to select
21129 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
21131 * ComboBox.cs: fixes dropstyle
21133 2005-01-13 Peter Bartok <pbartok@novell.com>
21136 - Implemented Select() override
21137 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
21138 - Now sets keyboard focus on startup
21139 * Control.cs (SelectNextControl): Now properly handles directed=true
21141 - WndProc: Now passes tab key on to base if AcceptTabChar=false
21142 - Added (really bad) focus rectangle (mostly for testing)
21143 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
21144 to enforce redraw on focus changes
21145 * ContainerControl.cs:
21146 - Fixed detection of Shift-Tab key presses
21147 - Fixed traversal with arrow keys
21148 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
21149 gonna keep this or if it's complete yet
21151 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
21153 * ComboBox.cs: missing properties, fixes
21155 2005-01-13 Peter Bartok <pbartok@novell.com>
21157 * Panel.cs (ctor): Setting Selectable window style to off
21158 * Splitter.cs (ctor): Setting Selectable window style to off
21159 * GroupBox.cs (ctor): Setting Selectable window style to off
21160 * Label.cs (ctor): Setting Selectable window style to off
21162 2005-01-12 Miguel de Icaza <miguel@ximian.com>
21164 * UpDownBase.cs (InitTimer): If the timer has been already
21165 created, enable it.
21167 Use a TextBox instead of a Label.
21169 2005-01-12 Jackson Harper <jackson@ximian.com>
21171 * TreeView.cs: Refresh the tree after sorting the nodes. Always
21172 draw the connecting node lines (when ShowLines is true).
21173 * TreeNode.cs: The nodes index can now be updated. This is used
21174 when a node collection is sorted.
21175 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
21176 insert or an existing unsorted node collection can be sorted.
21178 2005-01-12 Peter Bartok <pbartok@novell.com>
21180 * ContainerControl.cs: Implemented ProcessDialogKeys()
21182 2005-01-12 Peter Bartok <pbartok@novell.com>
21185 - Implemented SelectNextControl() method
21186 - Several focus related bug fixes
21187 - Fixed Docking calculations to match MS documentation and
21190 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
21192 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
21195 2005-01-12 Peter Bartok <pbartok@novell.com>
21198 - Fixed broken Contains() method
21199 - Implemented GetNextControl() method. Finally. This is the pre-
21200 requisite for focus handling.
21202 2005-01-12 Peter Bartok <pbartok@novell.com>
21204 * OSXStrucs.cs: Added
21206 2005-01-12 Peter Bartok <pbartok@novell.com>
21209 - Removed PeekMessageFlags
21210 - Implemented SetWindowStyle() method
21211 * XplatUIStructs.cs: Added PeekMessageFlags
21212 * X11Structs: Added missing border_width field to XWindowChanges struct
21214 - PeekMessage: Now throws exception if flags which are not yet
21215 supported are passed
21216 - Implemented SetWindowStyle() method
21217 - Fixed SetZOrder to handle AfterHwnd properly
21218 * XplatUI.cs: Added SetWindowStyle() method
21219 * XplatUIDriver.cs: Added SetWindowStyle() abstract
21221 - Implemented UpdateStyles() method
21222 - Implemented UpdateZOrder() method
21223 * XplatUIOSX.cs: Added SetWindowStyle() stub
21225 2005-01-12 Geoff Norton <gnorton@customerdna.com>
21227 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
21231 2005-01-11 Jackson Harper <jackson@ximian.com>
21233 * TreeView.cs: Still need to draw lines to siblings even if out of
21234 the current node is out of the clip.
21236 2005-01-11 Jackson Harper <jackson@ximian.com>
21238 * TreeView.cs: When setting the hbar/vbar/grip position use
21239 SetBounds so that perform layout is only called once. Also suspend
21240 and resume layout so layout is only done once for all controls.
21241 - Removed some debug fluff
21242 * SizeGrip.cs: Call base implmentation in overriding methods.
21243 - When visibility is changed the drawing buffers are killed so we
21246 2005-01-11 Jackson Harper <jackson@ximian.com>
21248 * TreeView.cs: Calculate the open node count while drawing. This
21249 saves us an entire tree traversal for every paint operation. Use
21250 a member var for the open node count so less vars are passed around.
21252 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
21254 * MonthCalendar.cs:
21255 - fixed selection to use mousemove, not mouse polling on timer
21256 * ThemeWin32Classic.cs
21257 - removed redundant unused variable "no_more_content"
21259 2005-01-11 Peter Bartok <pbartok@novell.com>
21261 * XplatUIX11.cs (DoEvents): Needs to return when no more events
21262 are pending, so it now calls PeekMessage instead of GetMessage;
21263 implemented a incomplete version of PeekMessage
21265 2005-01-11 Peter Bartok <pbartok@novell.com>
21267 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
21269 * TextBoxBase.cs: Added sending of TextChanged event
21271 2005-01-10 Jackson Harper <jackson@ximian.com>
21273 * TreeView.cs: Try not to draw outside the clipping rectangle on
21276 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
21278 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
21280 2005-01-10 Jackson Harper <jackson@ximian.com>
21283 - Implement fast scrolling. Now only the newly
21284 exposed nodes are drawn and the old image is moved using the
21285 XplatUI::ScrollWindow method.
21286 - Factor in height of nodes when calculating whether or not the
21287 node is in the clipping rect.
21289 2005-01-10 Jackson Harper <jackson@ximian.com>
21291 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
21293 2005-01-10 Peter Bartok <pbartok@novell.com>
21295 * Application.cs: Added temporary hack to resolve all our resize
21296 required issues on startup. This will get fixed properly at
21297 some point in the future
21299 2005-01-10 Jackson Harper <jackson@ximian.com>
21301 * SizeGrip.cs: New internal class that is used as a sizing
21302 grip control...hence the name.
21304 2005-01-10 Peter Bartok <pbartok@novell.com>
21306 * Control.cs: Implemented proper TabIndex handling, now assigning
21307 a tabindex when a control is added to a container
21308 * GroupBox.cs (ctor): Now sets the Container style bit, required
21309 for Control.GetNextControl()
21311 2005-01-09 Jackson Harper <jackson@ximian.com>
21313 * TextBoxBase.cs: Clear window when scrolling (fixes build).
21315 2005-01-09 Peter Bartok <pbartok@novell.com>
21317 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21318 XplatUIX11.cs: Added ability to control ScrollWindow expose and
21319 an overload for ScrollWindow to allow only scrolling a rectangle
21321 2005-01-09 Peter Bartok <pbartok@novell.com>
21324 - Implemented SetDesktopBounds method
21325 - Implemented SetDesktopLocation method
21327 2005-01-08 Jackson Harper <jackson@ximian.com>
21329 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
21330 the node count has changed, this removes to VScroll::Refresh calls
21333 2005-01-08 Geoff Norton <gnorton@customerdna.com>
21335 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
21337 2005-01-07 Jackson Harper <jackson@ximian.com>
21339 * TreeNode.cs: Just update the single node when it is
21340 checked. Don't refresh after toggling, the Expand/Collapse already
21342 * TreeView.cs: Respect clipping a little more when drawing. Try
21343 not to redraw things that don't need to be redrawn. Just hide the
21344 scrollbars when they are no longer needed instead of removing
21345 them, so they don't have to be created again and again.
21347 2005-01-07 Geoff Norton <gnorton@customerdna.com>
21349 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
21350 coordinates to window space to place the caret properly, FIXED.
21351 Implement GetWindowState & SetWindowState
21353 2005-01-06 Peter Bartok <pbartok@novell.com>
21356 - Implemented ClientSize property
21357 - Implemented DesktopBounds property
21358 - Implemented DesktopLocation property
21359 - Implemented IsRestrictedWindow property
21360 - Implemented Size property
21361 - Implemented TopLevel property
21362 - Implemented FormWindowState property
21364 - Implemented GetTopLevel() method
21365 - Implemented SetTopLevel() method
21366 * X11Structs.cs (Atom):
21367 - Added AnyPropertyType definition
21368 - Added MapState definiton and updated XWindowAttribute struct
21369 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
21370 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
21371 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
21373 - Implemented GetWindowState() and SetWindowState() methods
21374 - Fixed Win32GetWindowLong return type
21376 - Introduced central function for sending NET_WM messages
21377 - Implemented GetWindowState() and SetWindowState() methods
21378 * TextBoxBase.cs (set_Lines):
21379 - Now uses Foreground color for text added via Text property (Duh!)
21380 - Added code to remember programmatically requested size (fixes
21381 behaviour when Multiline is set after Size)
21382 - Added AutoSize logic
21384 2005-01-06 Jackson Harper <jackson@ximian.com>
21386 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
21388 2005-01-06 Jackson Harper <jackson@ximian.com>
21390 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
21391 set to less then 0.
21393 2005-01-06 Jackson Harper <jackson@ximian.com>
21395 * ScrollableControl.cs: Lazy init the scrollbars.
21397 2005-01-06 Jackson Harper <jackson@ximian.com>
21399 * Theme.cs: Speed up getting pens and solid brushes, by using
21400 their ARGB as a hash instead of tostring and not calling Contains.
21402 2005-01-06 Peter Bartok <pbartok@novell.com>
21405 - Implemented OnActivated and OnDeactivate event trigger
21406 - Implemented Activate() method
21407 - Fixed ShowDialog() to activate the form that was active before
21408 the dialog was shown
21410 - Added global active_window var that tracks the currently active
21412 - Now always grabs Property changes from the root window to always
21413 catch changes on the active window property
21414 - Added code to PropertyNotify handler to send Active/Inactive
21415 messages when state changes. This puts X11 and Win32 en par on
21416 WM_ACTIVATE notifications (except for double notifications when
21417 the user clicks away from our modal window to another one of our
21420 2005-01-05 Jackson Harper <jackson@ximian.com>
21422 * ImageList.cs: Implment ctor
21424 2005-01-05 Geoff Norton <gnorton@customerdna.com>
21426 * XplatUIOSX.cs: Implement Activate/SetTopmost
21428 2005-01-05 Geoff Norton <gnorton@customerdna.com>
21430 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
21432 2005-01-05 Geoff Norton <gnorton@customerdna.com>
21434 * XplatUIOSX.cs: Implement GetActive/SetFocus.
21436 2005-01-05 Peter Bartok <pbartok@novell.com>
21438 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
21439 XplatUIOSX.cs: Added GetActive method to return the currently
21440 active window for the application (or null, if none is active)
21442 - Implemented ActiveForm
21443 - Commented out owner assignment for modal dialogs (causes problems
21444 on Win32, since the owner will be disabled)
21445 - Reworked some Active/Focus handling (still incomplete)
21446 * CommonDialog.cs: Commented out owner assignment for modal dialogs
21447 (causes problems on Win32, since the owner will be disabled)
21448 * IWin32Window: Added ComVisible attribute
21450 2005-01-05 Peter Bartok <pbartok@novell.com>
21452 * ToolTip.cs (WndProc): Enable setting focus now that we have the
21453 required XplatUI functions.
21455 2005-01-05 Peter Bartok <pbartok@novell.com>
21457 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
21458 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
21459 to implement focus and activation handling; still incomplete and
21462 2005-01-04 Peter Bartok <pbartok@novell.com>
21464 * TextBoxBase.cs: Changed access level for Document property to
21465 match switch to internal for TextControl
21467 2005-01-04 Peter Bartok <pbartok@novell.com>
21469 * AccessibleObject: Added ComVisible attribute
21471 2005-01-04 Jackson Harper <jackson@ximian.com>
21473 * X11Keyboard.cs: Remove unneeded var.
21475 2005-01-04 Jackson Harper <jackson@ximian.com>
21477 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
21479 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
21480 ClientMessage. This makes apps exit cleanly (more often).
21482 2005-01-04 Jackson Harper <jackson@ximian.com>
21484 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
21485 handling focus, return correct colors and fonts,
21486 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
21487 handle selection, horizontal scrolling, and mouse interaction.
21489 2005-01-04 Peter Bartok <pbartok@novell.com>
21491 * ICommandExecutor.cs: Added
21492 * IDataGridColumnStyleEditingNotificationService.cs: Added
21493 * IFeatureSupport.cs: Added
21494 * IFileReaderService.cs: Added
21495 * IDataObject.cs: Added ComVisible attribute
21496 * AmbientProperties.cs: Added
21497 * BaseCollection.cs: Added missing attributes
21498 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
21499 * BaseCollection.cs: Added missing attributes
21500 * Binding.cs: Added TypeConverter attribute
21501 * BindingContext.cs: Added DefaultEvent attribute
21502 * BindingsCollection.cs: Added DefaultEvent attribute
21503 * Button.cs: Added DefaultValue attribute
21504 * DragEventArgs.cs: Added ComVisible attribute
21505 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
21506 * KeyEventArgs.cs: Added ComVisible attribute
21507 * KeyPressEventArgs.cs: Added ComVisible attribute
21508 * MouseEventArgs.cs: Added ComVisible attribute
21509 * NavigateEventArgs.cs: Added
21510 * NavigateEventHandler.cs: Added
21511 * FeatureSupport.cs: Added
21512 * OSFeature.cs: Added
21513 * Theme.cs: Added abstract Version property to support OSFeature
21514 * ThemeWin32Classic.cs: Added Version property to
21515 support OSFeature.Themes
21516 * ProgressBar.cs: Removed OnPaintBackground override, not required since
21517 the proper styles to avoid background drawing are set, also doesn't
21519 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
21520 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
21521 * ScrollEventArgs.cs: Added ComVisible attribute
21522 * SplitterEventArgs.cs: Added ComVisible attribute
21523 * AccessibleSelection.cs: Added Flags attribute
21524 * Appearance.cs: Added ComVisible attribute
21525 * Border3DSide.cs: Added ComVisible attribute
21526 * Border3DStyle.cs: Added ComVisible attribute
21527 * BorderStyle.cs: Added ComVisible attribute
21528 * DragAction.cs: Added ComVisible attribute
21529 * ErrorBlinkStyle.cs: Added
21530 * ScrollEventType.cs: Added ComVisible attribute
21531 * AnchorStyles.cs: Added Editor attribute
21532 * DockStyle.cs: Added Editor attribute
21533 * HorizontalAlignment.cs: Added ComVisible attribute
21534 * HelpEventArgs.cs: Added ComVisible attribute
21535 * PaintEventArgs.cs: Added IDisposable
21537 2005-01-04 Peter Bartok <pbartok@novell.com>
21539 * TextControl.cs: Switched Line, LineTag and Document classes to
21542 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
21544 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
21545 Simple mode, fixes, IntegralHeight, etc.
21547 2005-01-04 Peter Bartok <pbartok@novell.com>
21549 * TextBoxBase.cs: Using proper font variable now
21551 2005-01-04 Peter Bartok <pbartok@novell.com>
21553 * Form.cs (ShowDialog): Set parent to owner, if provided
21554 * GroupBox.cs: Removed unused vars
21556 - Added GetHashCode() for Document and LineTag classes
21557 - Removed unused variables
21558 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
21559 to allow translation between continuous char position and line/pos
21560 * CheckBox.cs: Removed vars that are provided by base class
21561 * RadioButton.cs: Removed vars that are provided by base class, added
21562 new keyword where required
21563 * LinkLabel.cs: Added new keyword where required
21564 * Control.cs (WndProc): Removed unused variable
21566 - Finished SelectionLength property
21567 - Implemented SelectionStart property
21568 - Implemented Text property
21569 - Removed unused vars
21570 * MessageBox.cs: Added new keyword where required
21571 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
21573 * MenuAPI.cs: Added new keyword where required
21574 * ButtonBase.cs: Removed vars that are provided by base class, added
21575 new keyword where required
21576 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
21577 argument to double, to allow compiling with csc 2.0 (Atsushi ran
21579 * Application.cs (Run): Now triggers the ThreadExit event
21580 * CommonDialog.cs: Added new keyword where required; now properly sets
21581 parent (owner) for dialog
21582 * XplatUIX11.cs: Commented out unused vars
21583 * StatusBar.cs: Fixed signature for Text property
21584 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
21586 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
21588 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
21589 TrackBar.cs, MonthCalendar.cs: remove unused vars
21591 2005-01-03 Jackson Harper <jackson@ximian.com>
21593 * ThemeWin32Classic.cs:
21594 * X11Keyboard.cs: Remove unused vars.
21596 2005-01-03 Peter Bartok <pbartok@novell.com>
21599 - set_Text: Tied into TextControl
21600 - set_TextAlignment: Tied into TextControl
21602 - Added alignment properties and implemented alignment handling
21603 and drawing (still has a bug, not generating proper expose events)
21604 - Added new Line() constructor to allow passing the line alignment
21605 - Fixed selection setting, properly handling end<start now
21606 - Added aligment considerations to RecalculateDocument()
21608 - Now properly enforces control height for single line controls
21609 - Added support for CharacterCasing
21610 - Added IsInputKey override
21611 - Fixed Keys.Enter logic
21612 - Added SetBoundsCore override
21613 - Fixed mouse selection handling
21615 2005-01-03 Jackson Harper <jackson@ximian.com>
21618 - Collapse and uncheck all nodes when CheckBoxes is disabled.
21619 - Checkboxes are always aligned to the bottom of the node,
21620 regardless of item height.
21621 - Use the node bounds to draw the text so we can center it when
21622 the item height is greater then the font height.
21623 - Node::Bounds are only the text part of the node.
21624 * TreeNode.cs: New method to combine collapsing and unchecking all
21627 2005-01-02 Jackson Harper <jackson@ximian.com>
21629 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
21630 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
21631 tree when a check is changed. TODO: Only refresh the checked node.
21633 2004-12-30 Jackson Harper <jackson@ximian.com>
21635 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
21636 * TreeNode.cs: When collapsing make sure to never collapse the
21639 2004-12-29 Jackson Harper <jackson@ximian.com>
21641 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
21643 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
21645 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
21647 2004-12-28 Peter Bartok <pbartok@novell.com>
21649 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
21652 2004-12-28 Peter Bartok <pbartok@novell.com>
21654 * Control.cs (WndProc): Added WM_HELP handler, now generates
21655 HelpRequested event
21656 * Form.cs: Added HelpButton property and required support code
21657 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
21659 2004-12-28 Peter Bartok <pbartok@novell.com>
21662 - Made DialogForm.owner variable internal
21663 - Added check to ensure owner form is set before setting
21664 owner properties in CreateParams
21666 2004-12-28 Geoff Norton <gnorton@customerdna.com>
21668 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
21669 swizzling. Implement ClientToScreen and ScreenToClient. Implement
21670 GetCursorPos. Fix major visibility issues. Rework the windowing
21671 system to support borderless/titleless windows (implements menus).
21672 Fix GetWindowPos. Implement initial background color support for
21675 2004-12-28 Peter Bartok <pbartok@novell.com>
21677 * Form.cs (get_CreateParams): Make sure we have an owner before using
21678 the owner variable. Implement proper default if no owner exists
21680 2004-12-28 Peter Bartok <pbartok@novell.com>
21682 * In preparation for making Managed.Windows.Forms the default build target
21683 for System.Windows.Forms, the following stubbed files were added.
21684 Dialogs are currently being implemented by contributors and are only
21685 short-term place holders.
21686 * ColorDialog.cs: Initial check-in (minmal stub)
21687 * DataGrid.cs: Initial check-in (minimal stub)
21688 * DataGridLineStyle.cs: Initial check-in (minimal stub)
21689 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
21690 * DataGridTableStyle.cs: Initial check-in (minimal stub)
21691 * FontDialog.cs: Initial check-in (minimal stub)
21692 * FileDialog.cs: Initial check-in (minimal stub)
21693 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
21694 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
21695 * OpenFileDialog: Initial check-in (minimal stub)
21696 * IComponentEditorPageSite.cs: Initial check-in
21697 * Splitter.cs: Initial check-in (for Jackson)
21698 * SplitterEventArgs.cs: Initial check-in (for Jackson)
21699 * SplitterEventHandler.cs: Initial check-in (for Jackson)
21700 * TextBox.cs: Initial check-in; still needs some wiring to
21701 TextControl backend
21702 * Form.cs: Implemented ControlBox property
21703 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
21704 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
21705 * TextControl.cs: Added selection functionality; added todo header
21707 - Implemented Lines property
21708 - Implemented TextHeight property
21709 - Implemented SelectedText property
21710 - Implemented SelectionLength property
21711 - Implemented SelectAll method
21712 - Implemented ToString method
21713 - Removed and cleaned up some debug code
21714 - Implemented (still buggy) mouse text selection
21716 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
21718 * ComboBox.cs: Complete DropDownList implementation, fixes.
21720 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
21722 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
21723 * ComboBoxStyle.cs: ComboBoxStyle enum
21724 * ComboBox.cs: Initial work on ComboBox control
21726 2004-12-21 Peter Bartok <pbartok@novell.com>
21728 * Control.cs (ctor, CreateParams): Moved setting of is_visible
21729 forward so that anything that creates a window gets the default,
21730 also no longer uses Visible property in CreateParams to avoid
21731 walking up the parent chain and possibly get the wrong visible
21732 status. Fixed IsVisible to no longer walk up to the parent.
21734 2004-12-21 Peter Bartok <pbartok@novell.com>
21736 * Form.cs (ShowDialog): Unset modality for the proper window
21738 2004-12-20 Peter Bartok <pbartok@novell.com>
21740 * CommonDialog.cs: Initial check-in
21742 2004-12-20 Peter Bartok <pbartok@novell.com>
21744 * Control.cs (Visible): Now uses the parent window instead of the
21745 client area window for the property
21748 - ShowDialog(): Now uses the proper window for modality
21749 - The default visibility state for the form parent is now false. This
21750 will prevent the user from seeing all the changes to the form and
21751 its controls before the application hits Application.Run()
21752 - Removed some stale commented out code
21755 - Added FindWindow() method to have a method to check for existence
21757 - Added ability to override default exception handling (for example
21758 when debugging with VS.Net; to do this the ExternalExceptionHandler
21760 - Removed some useless debug output
21763 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
21764 not working as expected
21765 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
21766 property to allow switching back to the modal window if focus is
21767 given to another one of our windows (Application Modal)
21768 - Now only sets override_redirect if we create a window
21770 - Moved EventMask selection before mapping of newly created window
21771 so we can catch the map event as well
21772 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
21773 - Added various Atom related DllImports
21774 - Implemented Exit() method
21775 - .ctor() : No longer shows window if WS_VISIBLE is not defined
21776 in the CreateParams
21778 * MessageBox.cs: Now properly deals with the FormParent window by
21779 providing an override the FormParent CreateParams property to
21780 set as POPUP instead of OVERLAPPED window.
21782 2004-12-19 Geoff Norton <gnorton@customerdna.com>
21784 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
21785 Minor code cleanup.
21787 2004-12-19 Geoff Norton <gnorton@customerdna.com>
21789 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
21791 2004-12-18 Peter Bartok <pbartok@novell.com>
21793 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
21794 implementing SetModal() method
21796 2004-12-18 Peter Bartok <pbartok@novell.com>
21798 * X11Structs.cs (XGCValues): Fixed type of function element
21799 * XplatUI.cs: Added ScrollWindow() method
21800 * XplatUIDriver.cs: Added ScrollWindow() abstract
21801 * XplatUIWin32.cs: Implemented ScrollWindow() method
21802 * XplatUIX11.cs: Implemented ScrollWindow() method
21803 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
21805 2004-12-17 Geoff Norton <gnorton@customerdna.com>
21807 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
21808 Some more keyboard support (INCOMPLETE)
21810 2004-12-17 Peter Bartok <pbartok@novell.com>
21813 - Added color attribute to line tags.
21814 - Added color argument to all functions dealing with tags
21815 - Added color argument support to various functions
21816 - Fixed miss-calculation of baseline/shift in certain circumstances
21818 * TextBoxBase.cs: Added new color option to test code
21820 2004-12-17 Jackson Harper <jackson@ximian.com>
21823 * MonthCalendar.cs: Signature fixes
21825 2004-12-17 Geoff Norton <gnorton@customerdna.com>
21827 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
21828 keyboard event moved it. Create a new graphics context for each paint resolves this
21830 2004-12-17 Geoff Norton <gnorton@customerdna.com>
21832 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
21833 Make caret exist and go blink blink. Initial keyboard support.
21834 Fix exception handler, Add Invalidate support. Change way RefreshWindow
21837 2004-12-17 Jackson Harper <jackson@ximian.com>
21839 * XplatUIStructs.cs: Updated set of virtual keycodes.
21840 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
21842 2004-12-17 Jackson Harper <jackson@ximian.com>
21844 * XplatUIX11.cs: Prune old keyboard code.
21846 2004-12-17 Jackson Harper <jackson@ximian.com>
21848 * XplatUIX11.cs: When generating mouse wparams get the modifier
21849 keys from the ModifierKeys property.
21851 2004-12-17 Jackson Harper <jackson@ximian.com>
21853 * X11Keyboard.cs: Send up/down input when generating
21854 messages. Remove some unused vars.
21856 2004-12-17 Jackson Harper <jackson@ximian.com>
21859 * TreeView.cs: get rid of warnings.
21861 2004-12-17 Jackson Harper <jackson@ximian.com>
21863 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
21865 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
21867 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
21868 CheckedListBox.cs: Implementation
21870 2004-12-17 Peter Bartok <pbartok@novell.com>
21872 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
21874 2004-12-16 Peter Bartok <pbartok@novell.com>
21877 - InsertCharAtCaret(): Fixed start pos fixup
21878 - CaretLine_get: No longer derives the line from the tag, the tag
21879 could be stale if lines in the document have been added or deleted
21880 - RebalanceAfterDelete(): Fixed bug in balancing code
21881 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
21882 - Line.Streamline(): Now can also elminate leading empty tags
21883 - DumpTree(): Added a few more tests and prevented exception on
21885 - Added Debug section for Combining lines
21886 - Delete(): Now copies all remaining properties of a line
21889 - Left mousebutton now sets the caret (and middle button still acts
21890 as formatting tester, which must go away soon)
21891 - Added Debug section for Deleting/Combining lines
21892 - Fixed calculations for UpdateView after Combining lines
21894 2004-12-16 Peter Bartok <pbartok@novell.com>
21896 * TextControl.cs: Now properly aligns text on a baseline, using the
21897 new XplatUI.GetFontMetrics() method. Simplified several calculations
21898 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
21901 2004-12-16 Peter Bartok <pbartok@novell.com>
21903 * XplatUI.cs: Added GetFontMetrics() method
21904 * XplatUIDriver.cs: Added GetFontMetrics() abstract
21905 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
21906 into libgdiplus, our private GetFontMetrics function
21907 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
21908 * XplatUIWin32.cs: Implemented GetFontMetrics() method
21910 2004-12-16 Jackson Harper <jackson@ximain.com>
21912 * XplatUIStruct.cs: Add enum for dead keys
21913 * X11Keyboard.cs: Map and unmap dead keys.
21915 2004-12-16 Jackson Harper <jackson@ximian.com>
21917 * X11Keyboard.cs: Detect and use the num lock mask.
21919 2004-12-16 Peter Bartok <pbartok@novell.com>
21921 * Control.cs (CreateGraphics): Added check to make sure the
21922 handle of the window exists before calling Graphics.FromHwnd()
21924 2004-12-16 Peter Bartok <pbartok@novell.com>
21926 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
21927 contains a lot of code that's not supposed to be there for the
21928 real thing, but required for developing/testing the textbox
21931 2004-12-16 Peter Bartok <pbartok@novell.com>
21934 - Fixed Streamline method
21935 - Added FindTag method to Line
21936 - Added DumpTree method for debugging
21937 - Added DecrementLines() method for deleting lines
21938 - Fixed UpdateView to update the cursor to end-of-line on single-line
21940 - Added PositionCaret() method
21941 - Fixed MoveCaret(LineDown) to move into the last line, too
21942 - Added InsertChar overload
21943 - Fixed InsertChar tag offset calculations
21944 - Added DeleteChar() method
21945 - Added Combine() method for folding lines
21946 - Fixed Delete() method, no longer allocates wasted Line object and
21947 now copies all properties when swapping nodes
21948 - Delete() method now updates document line counter
21950 2004-12-15 Jackson Harper <jackson@ximian.com>
21952 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
21953 * X11Keyboard.cs: Expose the currently selected modifier keys
21954 through a property.
21956 2004-12-15 Peter Bartok <pbartok@novell.com>
21958 * TextControl.cs: Initial check-in. Still incomplete
21960 2004-12-15 Jackson Harper <jackson@ximian.com>
21963 * TreeView.cs: Fix build on csc (second time today ;-))
21965 2004-12-15 Jackson Harper <jackson@ximian.com>
21967 * TreeView.cs: Store the treenodes plus/minus box bounds when it
21968 is calculated and use this for click testing.
21969 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
21971 2004-12-15 Jackson Harper <jackson@ximian.com>
21973 * TreeView.cs: Pass the nodes image index to the image list when
21974 drawing that image.
21976 2004-12-15 Jackson Harper <jackson@ximian.com>
21978 * X11Keyboard.cs: Set messages hwnd.
21979 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
21980 post_message calls.
21982 2004-12-15 Jackson Harper <jackson@ximian.com>
21984 * X11Keyboard.cs: Fix to compile with csc.
21986 2004-12-15 Jackson Harper <jackson@ximian.com>
21988 * X11Structs.cs: Add key mask values
21989 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
21990 * X11Keyboard.cs: New file - Extrapolates and interpolates key
21991 down/up foo into WM_CHAR foo
21992 * KeyboardLayouts.cs: Common keyboard layouts
21993 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
21994 post messages into the main queue.
21996 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
21998 * Button.cs: implement ProcessMnemonic
21999 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
22001 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
22002 * ButtonBase.cs: Show HotkeyPrefix (not the &)
22004 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
22006 * MonthCalendar.cs: Implemented click-hold for next/previous month
22009 2004-12-11 Peter Bartok <pbartok@novell.com>
22012 - Added XKeyboardState (moved from XplatUIX11.cs)
22013 - Added XCreateGC related enums and structures
22014 - Added GXFunction for XSetFunction
22016 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
22018 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
22019 CaretVisible() calls
22021 * ToolTip.cs: Added code to prevent stealing focus from app windows
22023 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
22024 DestroyCaret, SetCaretPos and CaretVisible)
22027 - Added implementation for caret functions
22028 - Moved hover variables into a struct, to make it a bit easier
22029 on the eyes and to debug
22030 - Removed XKeyboardState (moved to XplatUIX11.cs)
22031 - Moved Keyboard properties into the properties region
22033 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
22034 call to get a graphics context for our control
22036 * XplatUIOSX.cs: Added empty overrides for the new caret functions
22038 * TreeView.cs: Fixed bug. No matter what color was set it would always
22039 return SystemColors.Window
22041 * XplatUIWin32.cs: Implemented caret overrides
22043 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
22045 * ListBox.cs: fire events, implement missing methods and properties,
22048 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
22050 * MonthCalendar.cs: invalidation bug fixing
22051 * ThemeWin32Classic.cs: paint fixing
22053 2004-12-09 Geoff Norton <gnorton@customerdna.com>
22055 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
22056 prepare the CGContextRef there now.
22058 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
22060 * MonthCalendar.cs:
22061 - optimisationL only invalidate areas that have changed
22062 * ThemeWin32Classic.cs:
22063 - only paint parts that intersect with clip_area
22065 2004-12-09 Peter Bartok <pbartok@novell.com>
22067 * Application.cs: Undid changes from r37004 which cause problems
22070 2004-12-09 Ravindra <rkumar@novell.com>
22072 * ToolBar.cs: Added support for displaying ContextMenu
22073 attached to a button on ToolBar.
22074 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
22077 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
22079 * Label.cs: autosize works in text change and removes unnecessary
22082 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
22084 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
22087 2004-12-08 Geoff Norton <gnorton@customerdna.com>
22089 * XplatUIOSX.cs: Added mouse move/click/grab support
22090 Remove some debugging WriteLines not needed anymore.
22091 Add window resizing/positioning.
22092 Fix visibility on reparenting.
22094 2004-12-08 Peter Bartok <pbartok@novell.com>
22096 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
22098 2004-12-07 Geoff Norton <gnorton@customerdna.com>
22100 * XplatUIOSX.cs: Initial checkin
22101 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
22103 2004-12-03 Ravindra <rkumar@novell.com>
22105 * ListView.cs: Added some keybindings and fixed scrolling.
22106 ScrollBars listen to ValueChanged event instead of Scroll
22107 Event. This would let us take care of all changes being
22108 done in the scrollbars' values programmatically or manually.
22109 * ListView.cs (CanMultiselect): Added a check for shift key.
22110 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
22111 * ListViewItem.cs (Clone): Fixed. We need to make a copy
22112 of ListViewSubItemCollection as well.
22114 2004-12-06 Peter Bartok <pbartok@novell.com>
22116 * Control.cs (Parent): Added check and exception to prevent
22119 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
22121 * ListBox.cs: implemented clipping, selection single and multiple,
22124 2004-12-03 Ravindra <rkumar@novell.com>
22126 * ListView.cs (ListView_KeyDown):
22127 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
22128 when CTRL key is pressed.
22129 * ListViewItem.cs (Selected): Fixed setting the property.
22131 2004-12-03 Marek Safar <marek.safar@seznam.cz>
22133 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
22135 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
22136 MinimizeBox, ShowInTaskbar, TopMost properties.
22138 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
22139 will be implemented).
22141 2004-12-03 Marek Safar <marek.safar@seznam.cz>
22143 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
22145 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
22148 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
22150 * TreeView.cs: BackColor is Colors.Window.
22152 2004-12-01 Jackson Harper <jackson@ximian.com>
22154 * TreeView.cs: When resizing the tree if the user is making it
22155 smaller we don't get expose events, so we need to handle adding
22156 the horizontal scrollbar in the size changed handler as well as
22157 the expose handler.
22159 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
22161 * DrawItemState.cs: fixes wrong enum values
22163 2004-12-01 Jackson Harper <jackson@ximian.com>
22165 * TreeView.cs: Resize the hbar as well as the vbar on resize.
22167 2004-12-01 Jackson Harper <jackson@ximian.com>
22169 * NodeLabelEditEventArgs.cs:
22170 * NodeLabelEditEventHandler.cs:
22171 * OpenTreeNodeEnumerator.cs:
22173 * TreeNodeCollection.cs:
22175 * TreeViewAction.cs:
22176 * TreeViewCancelEventArgs.cs:
22177 * TreeViewCancelEventHandler.cs:
22178 * TreeViewEventArgs.cs:
22179 * TreeViewEventHandler.cs: Initial implementation.
22181 2004-12-01 Ravindra <rkumar@novell.com>
22183 * ListView.cs (CalculateListView): Fixed scrolling related
22184 calculations. Also, removed some debug statements from other
22186 * ListViewItem.cs: Changed access to 'selected' instance variable
22187 from private to internal.
22188 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
22190 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
22192 * ThemeWin32Classic.cs: remove cache of brush and pens for
22193 specific controls and use the global system, fixes scrollbutton
22194 bugs (for small sizes, disabled, etc)
22196 * ScrollBar.cs: does not show the thumb for very small controls
22197 (as MS) and allow smaller buttons that the regular size
22199 2004-12-01 Miguel de Icaza <miguel@ximian.com>
22201 * UpDownBase.cs: Add abstract methods for the interface.
22202 Add new virtual methods (need to be hooked up to TextEntry when it
22204 Add override methods for most features.
22205 Computes the size, forces the height of the text entry.
22207 * NumericUpDown.cs: Put here the current testing code.
22209 * Set eol-style property on all files that do not have mixed line
22210 endings, to minimize the future problems. There are still a few
22211 files with mixed endings, and someone should choose whether they
22212 want to move it or not.
22214 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
22216 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
22219 2004-11-30 Ravindra <rkumar@novell.com>
22221 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
22222 drawing and replaced use of SystemColors by theme colors.
22223 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
22224 * ListView.cs (ListViewItemCollection.Add): Throw exception when
22225 same ListViewItem is being added more than once.
22227 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
22229 * MonthCalendar.cs:
22230 - ControlStyles love to make the control not flicker
22232 2004-11-30 Peter Bartok <pbartok@novell.com>
22234 * CharacterCasing.cs: Added
22236 2004-11-29 Peter Bartok <pbartok@novell.com>
22238 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
22239 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
22240 I am removing these files as they conflict with already completed
22241 work. While it is fantastic to get contributions to MWF, I
22242 respectfully ask that everyone please coordinate their contributions
22243 through mono-winforms-list or #mono-winforms at this time. We're
22244 explicitly avoiding stubbing and don't want controls that don't have
22245 their basic functionality implemented in svn. Please also see
22246 http://www.mono-project.com/contributing/winforms.html
22249 2004-11-29 Marek Safar <marek.safar@seznam.cz>
22251 * Application.cs (ModalRun): Don't hang after exit.
22253 * Theme.cs: New TreeViewDefaultSize property.
22255 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
22256 with less hardcoded SystemColors constant.
22257 Implemented TreeViewDefaultSize.
22259 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
22260 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
22263 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
22265 * MonthCalendar.cs:
22266 - Fix NextMonthDate and PrevMonthDate click moving calendar
22268 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
22270 * MonthCalendar.cs:
22271 - Fix usage of ScrollChange Property when scrolling months
22273 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
22275 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
22276 - Fixes menu destroying
22277 - Support adding and removing items on already created menus
22279 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
22281 * MonthCalendar.cs:
22282 - Re-worked all bolded dates handling to match win32
22283 * ThemeWin32Classic.cs:
22284 - Fixed rendering with bolded dates
22286 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
22288 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
22289 - Horizontal scroolbar
22294 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
22296 * MonthCalendar.cs:
22297 - Fix Usage of MaxSelectionCount from SelectionRange
22298 - Fixed Shift + Cursor Selection
22299 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
22300 - Fixed normal cursor selection to be compat with win32
22301 - Fixed Shift + Mouse Click selection
22303 2004-11-24 Peter Bartok <pbartok@novell.com>
22305 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
22306 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
22308 - CreatedKeyBoardMsg now updates keystate with Alt key
22309 - Added workaround for timer crash to CheckTimers, Jackson will
22310 develop a proper fix and check in later
22311 - Implemented DispatchMessage
22312 - Removed calling the native window proc from GetMessage (call
22313 now moved to DispatchMessage)
22315 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
22316 the keydata (Fixes bug #69831)
22319 - (DispatchMessage): Switched to return IntPtr
22320 - Added DllImport for SetFocus
22322 2004-11-24 Ravindra <rkumar@novell.com>
22324 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
22325 background drawing.
22326 * ListViewItem.cs: Fixed various properties, calculations
22327 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
22328 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
22329 and some internal properties. Fixed MouseDown handler and Paint
22332 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
22334 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
22336 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
22338 * ContainerControl.cs: correct accidental check in of local changes
22340 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
22342 * ThemeWin32Classic.cs:
22343 - Fixed Drawing Last month in grid (sometimes not showing)
22344 * MonthCalendar.cs:
22345 - Fixed title width calculation bug (makeing title small)
22347 2004-11-23 Peter Bartok <pbartok@novell.com>
22350 - Added generation of WM_MOUSEHOVER event
22351 - Added missing assignment of async_method atom
22352 - Fixed WM_ERASEBKGND; now only redraws the exposed area
22354 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
22356 * ThemeWin32Classic.cs:
22357 - Fixed Drawing of today circle when showtodaycircle not set
22358 - fixed drawing of first and last month in the grid (gay dates)
22359 * MonthCalendar.cs:
22360 - Fixed Drawing of today circle
22361 - Fixed drawing of grady dates
22362 - Fixed HitTest for today link when ShowToday set to false
22363 - Fixed DefaultSize to obey ShowToday
22365 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
22367 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
22368 * System.Windows.Forms/Theme.cs
22369 * MonthCalendar.cs: added for MonthCalendar
22370 * SelectionRange.cs: added for MonthCalendar
22371 * Day.cs: added for MonthCalendar: added for MonthCalendar
22372 * DateRangeEventArgs.cs: added for MonthCalendar
22373 * DateRangeEventHandler.cs: added for MonthCalendar
22375 2004-11-22 Ravindra <rkumar@novell.com>
22377 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
22380 2004-11-22 Miguel de Icaza <miguel@ximian.com>
22382 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
22385 * NumericUpDown.cs: Added new implementation.
22386 * UpDownBase.cs: Added new implementation.
22388 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
22391 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
22394 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
22397 2004-11-21 Miguel de Icaza <miguel@ximian.com>
22399 * Timer.cs (Dispose): Should call the base dispose when
22402 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
22404 * ScrollBar.cs: updates thumb position when max, min or increment
22407 2004-11-21 Ravindra <rkumar@novell.com>
22409 * ListView.cs: Implemented item selection, activation and
22410 column header style. Fixed properties to do a redraw, if
22411 required. Added support for MouseHover, DoubleClick, KeyDown
22412 and KeyUp event handling and some minor fixes.
22413 * ListViewItem.cs: Fixed constructor.
22414 * ThemeWin32Classic.cs: Improved drawing for ListView.
22416 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
22418 * ThemeWin32Classic.cs: initial listbox drawing code
22419 * DrawMode.cs: new enumerator
22420 * ListControl.cs: stubbed class
22421 * ListBox.cs: initial implementation
22422 * Theme.cs: new methods definitions
22423 * SelectionMode.cs: new enumerator
22425 2004-11-17 Peter Bartok <pbartok@novell.com>
22427 * XplatUIWin32.cs: Added double-click events to the class style
22428 * Control.cs (WndProc):
22429 - Added handling of click-count to MouseDown/ MouseUp events.
22430 - Added handling of middle and right mouse buttons
22431 - Removed old debug code
22433 2004-11-17 Jackson Harper <jackson@ximian.com>
22435 * XplatUIX11.cs: Use the new Mono.Unix namespace.
22437 2004-11-17 Ravindra <rkumar@novell.com>
22439 * ListView.cs: Added event handling for MouseMove/Up/Down.
22440 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
22441 * ThemeWin32Classic.cs: We need to clear the graphics context and
22442 draw column header in a proper state.
22445 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
22447 * Menu.cs: fixes signature
22449 2004-11-16 Peter Bartok <pbartok@novell.com>
22451 * XplatUIX11.cs (GetMessage): Implemented generation of
22452 double click mouse messages
22454 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
22456 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
22459 2004-11-11 Peter Bartok <pbartok@novell.com>
22461 * HandleData.cs: Added Visible property
22462 * XplatUIX11.cs (IsVisible): Now uses Visible property from
22464 * XplatUIX11.cs: Removed old debug leftovers
22465 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
22466 * Control.cs (WndProc): Removed old debug leftovers,
22467 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
22468 needed WM_SIZE handling
22470 2004-11-11 Jackson Harper <jackson@ximian.com>
22472 * OwnerDrawPropertyBag.cs:
22473 * TreeViewImageIndexConverter.cs: Initial implementation
22475 2004-11-10 Jackson Harper <jackson@ximian.com>
22477 * ThemeWin32Classic.cs:
22478 * TabControl.cs: instead of moving tabs by the slider pos just
22479 start drawing at the tab that is offset by the slider. This way
22480 scrolling always moves by exactly one tab.
22482 2004-11-10 Jackson Harper <jackson@ximian.com>
22484 * TabControl.cs: You can only scroll left when the slider has
22485 already ben moved right.
22487 2004-11-10 Jackson Harper <jackson@ximian.com>
22489 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
22492 2004-11-10 Jackson Harper <jackson@ximian.com>
22494 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
22497 2004-11-09 Jackson Harper <jackson@ximian.com>
22499 * TabControl.cs (CalcXPos): New helper method so we can determine
22500 the proper place to start drawing vertical tabs.
22501 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
22503 2004-11-09 Jackson Harper <jackson@ximian.com>
22505 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
22506 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
22507 and Bottom, left and right are illegal values for this and
22508 multiline is enabled when the alignment is set to left or right.
22509 (DrawTab): Each alignment block should draw the text itself now
22510 because Left requires special love. Also add rendering for Left
22513 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
22515 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
22516 does not destroy the windows, removes debugging messages
22518 2004-11-09 jba <jba-mono@optusnet.com.au>
22520 * ThemeWin32Classic.cs
22521 (DrawButtonBase): Fix verticle text rect clipping in windows
22522 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
22523 rendering and incorrect text rect clipping
22524 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
22525 rendering and incorrect text rect clipping
22527 2004-11-08 Jackson Harper <jackson@ximian.com>
22529 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
22530 bottom when they are bottom aligned so the bottoms of the tabs get
22532 * TabControl.cs (DropRow): Move rows up instead of down when the
22533 tab control is bottom aligned.
22535 2004-11-08 13:59 pbartok
22538 - Added handling for various window styles
22539 - Added handling for popup windows
22540 - Added SetTopmost handling
22542 2004-11-08 13:55 pbartok
22545 - Added argument to SetTopmost method
22546 - Fixed broken ClientToScreen function
22548 2004-11-08 13:53 pbartok
22550 * XplatUIStructs.cs:
22551 - Added missing WS_EX styles
22553 2004-11-08 13:53 pbartok
22555 * XplatUI.cs, XplatUIDriver.cs:
22556 - Added argument to SetTopmost
22558 2004-11-08 13:52 pbartok
22561 - Added XSetWindowAttributes structure
22562 - Improved XWindowAttributes structure
22563 - Added SetWindowValuemask enum
22564 - Added window creation arguments enum
22565 - Added gravity enum
22566 - Added Motif hints structure
22567 - Added various Motif flags and enums
22568 - Added PropertyMode enum for property functions
22570 2004-11-08 13:50 pbartok
22573 - Fixed arguments for updated SetTopmost method
22575 2004-11-08 13:49 pbartok
22578 - Fixed arguments for updated SetTopmost function
22579 - Fixed usage of PointToClient
22581 2004-11-08 13:44 pbartok
22584 - Added Clipping of children and siblings
22586 2004-11-08 13:41 pbartok
22589 - Removed SetMenuBarWindow call. We do this in Form.cs
22591 2004-11-08 13:40 jackson
22593 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
22594 scrolling jimmi in the correct location with bottom aligned tabs
22596 2004-11-08 13:36 pbartok
22598 * ContainerControl.cs:
22599 - Implemented BindingContext
22600 - Implemented ParentForm
22602 2004-11-08 12:46 jackson
22604 * TabControl.cs: Put bottom rendered tabs in the right location
22606 2004-11-08 07:15 jordi
22608 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
22611 2004-11-05 17:30 jackson
22613 * TabControl.cs: When selected tabs are expanded make sure they
22614 don't go beyond the edges of the tab control
22616 2004-11-05 14:57 jackson
22618 * TabControl.cs: Reset show_slider so if the control is resized to
22619 a size where it is no longer needed it's not displayed anymore
22621 2004-11-05 13:16 jackson
22623 * TabControl.cs: Make tab pages non visible when added to the
22626 2004-11-05 12:42 jackson
22628 * TabControl.cs: Implement SizeMode.FillToRight
22630 2004-11-05 12:16 jackson
22632 * Control.cs: Do not call CreateHandle if the handle is already
22635 2004-11-05 11:46 jackson
22637 * TabControl.cs: Remove superflous call to CalcTabRows
22639 2004-11-05 09:07 jackson
22641 * XplatUIX11.cs: Update for Mono.Posix changes
22643 2004-11-05 07:00 ravindra
22645 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
22648 2004-11-04 22:47 jba
22650 * ThemeWin32Classic.cs:
22651 - Fix Button rendering for FlatStyle = Flat or Popup
22652 - Fix RadioButton and CheckBox rendering when Appearance = Button
22653 (normal and flatstyle).
22654 - Correct outer rectangle color when drawing focus rectangle
22655 - Adjust button bounds to be 1 px smaller when focused
22656 - Make button not draw sunken 3d border when pushed (windows compat)
22657 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
22658 - Offset the text in RadioButton and Checkbox when being rendered as
22660 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
22662 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
22663 - Fixed disabled text rendering for normally rendered radiobuttons
22665 2004-11-04 10:26 jackson
22667 * TabControl.cs: Recalculate tab rows when resizing
22669 2004-11-04 07:47 jordi
22671 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
22672 collection completion, drawing issues, missing features
22674 2004-11-04 05:03 ravindra
22677 - We need to recalculate the Thumb area when
22678 LargeChange/maximum/minimum values are changed.
22679 - We set the 'pos' in UpdatePos() method to minimum, if it's less
22680 than minimum. This is required to handle the case if large_change is
22681 more than max, and use LargeChange property instead of large_change
22683 - We return max+1 when large_change is more than max, like MS does.
22685 2004-11-04 04:29 ravindra
22687 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
22688 - Changed default value signatures (prefixed all with ListView).
22689 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
22691 - Fixed calculations for ListViewItem and implemented Clone()
22694 2004-11-04 04:26 ravindra
22696 * Theme.cs, ThemeWin32Classic.cs:
22697 - Changed default ListView values signatures (prefixed all with
22699 - Fixed default size values for VScrollBar and HScrollBar.
22700 - Fixed DrawListViewItem method.
22702 2004-11-04 04:05 ravindra
22704 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
22706 2004-11-04 04:04 ravindra
22708 * ImageList.cs: Implemented the missing overload for Draw method.
22710 2004-11-03 19:29 jackson
22712 * TabControl.cs: Handle dropping rows on selection properly
22714 2004-11-03 11:59 jackson
22716 * TabControl.cs: remove debug code
22718 2004-11-03 11:52 jackson
22720 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
22721 the scrolly widgerywoo
22723 2004-11-02 13:52 jackson
22725 * TabControl.cs: Resize the tab pages and tabs when the tab control
22728 2004-11-02 13:40 jackson
22730 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
22731 selected tab to the bottom
22733 2004-11-02 13:39 jackson
22735 * TabPage.cs: Store the tab pages row
22737 2004-11-02 12:33 jordi
22739 * MenuItem.cs: fixes handle creation
22741 2004-11-02 11:42 jackson
22743 * TabControl.cs: signature fix
22745 2004-11-02 08:56 jackson
22747 * TabControl.cs: Calculate whether the tab is on an edge properly.
22748 Remove top secret debugging code
22750 2004-11-01 19:57 jackson
22752 * TabControl.cs: Add click handling, and proper sizing
22754 2004-11-01 19:47 jackson
22756 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
22759 2004-11-01 19:39 jackson
22761 * TabPage.cs: add internal property to store the bounds of a tab
22764 2004-10-30 04:23 ravindra
22766 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
22769 2004-10-30 04:21 ravindra
22771 * ListView.cs, ListViewItem.cs: Added support for scrolling and
22772 fixed calculations.
22774 2004-10-30 03:06 pbartok
22777 - Removed extension of DllImported libs
22779 2004-10-29 09:55 jordi
22781 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
22782 navigation, itemcollection completion, menu fixes
22784 2004-10-27 22:58 pbartok
22787 - Now throws a nice error message when no X display could be opened
22789 2004-10-26 13:51 jordi
22791 * ListView.cs: removes warning
22793 2004-10-26 03:55 ravindra
22795 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
22796 ThemeWin32Classic.cs: Some formatting for my last checkins.
22798 2004-10-26 03:36 ravindra
22800 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
22801 control and default values.
22803 2004-10-26 03:35 ravindra
22805 * Theme.cs: Added some default values for ListView control.
22807 2004-10-26 03:33 ravindra
22809 * ToolBar.cs: ToolBar should use the user specified button size, if
22810 there is any. Added a size_specified flag for the same.
22812 2004-10-26 03:33 ravindra
22814 * ColumnHeader.cs: Added some internal members and calculations for
22817 2004-10-26 03:32 ravindra
22819 * ListViewItem.cs: Calculations for ListViewItem.
22821 2004-10-26 03:31 ravindra
22823 * ListView.cs: Added some internal members and calculations for
22826 2004-10-22 13:31 jordi
22828 * MenuAPI.cs: speedup menus drawing
22830 2004-10-22 13:16 jackson
22832 * XplatUIX11.cs: Make sure to update exposed regions when adding an
22835 2004-10-22 11:49 jackson
22839 2004-10-22 11:41 jackson
22841 * Control.cs: Check to see if the window should have its background
22842 repainted by X when drawing.
22844 2004-10-22 11:31 jackson
22846 * XplatUIX11.cs: When invalidating areas only use XClearArea if
22847 clear is true, this way we do not get flicker from X repainting the
22850 2004-10-22 11:28 jackson
22852 * XEventQueue.cs: Queue properly
22854 2004-10-21 09:38 jackson
22856 * XEventQueue.cs: Fix access modifier
22858 2004-10-21 09:36 jackson
22860 * XEventQueue.cs: Don't loose messages
22862 2004-10-21 09:22 jackson
22864 * XEventQueue.cs: Don't loose messages
22866 2004-10-20 04:15 jordi
22868 * BootMode.cs: enum need it by SystemInfo
22870 2004-10-19 21:58 pbartok
22873 - Small sanity check
22875 2004-10-19 21:56 pbartok
22878 - Added private FormParentWindow class which acts as the container
22879 for our form and as the non-client area where menus are drawn
22880 - Added/Moved required tie-ins to Jordi's menus
22881 - Fixed/Implemented the FormStartPosition functionality
22883 2004-10-19 21:52 pbartok
22886 - Removed unneeded locals
22887 - Added code to all size and location properties to understand and
22888 deal with the parent container of Form
22890 2004-10-19 21:33 pbartok
22893 - Fixed to deal with new Form subclasses for menus
22895 2004-10-19 17:48 jackson
22897 * XEventQueue.cs: commit correct version of file
22899 2004-10-19 16:50 jackson
22901 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
22903 2004-10-19 16:15 jordi
22905 * MenuAPI.cs: MenuBarCalcSize returns the height
22907 2004-10-19 08:31 pbartok
22910 - Added missing call to PreProcessMessage before calling OnXXXKey
22913 2004-10-19 00:04 ravindra
22915 * ToolTip.cs: Fixed constructor.
22917 2004-10-18 09:31 jordi
22919 * MenuAPI.cs: menuitems in menubars do not have shortcuts
22921 2004-10-18 09:26 jordi
22923 * MenuItem.cs: fixes MenuItem class signature
22925 2004-10-18 08:56 jordi
22927 * MenuAPI.cs: prevents windows from showing in the taskbar
22929 2004-10-18 00:28 ravindra
22931 * ToolTip.cs: Suppressed a warning message.
22933 2004-10-18 00:27 ravindra
22935 * Control.cs: Default value of visible property must be true.
22937 2004-10-17 23:19 pbartok
22940 - Complete implementation
22942 2004-10-17 23:19 pbartok
22945 - Added EnableWindow method
22946 - Added SetModal stub
22947 - Added generation of WM_ACTIVATE message (still needs testing)
22948 - Added SetTopMost stub
22949 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
22951 2004-10-17 23:17 pbartok
22954 - Removed VirtualKeys to XplatUIStructs
22955 - Implemented SetTopMost method
22956 - Implemented EnableWindow method
22957 - Bugfix in ScreenToClient()
22958 - Bugfixes in ClientToScreen()
22960 2004-10-17 22:51 pbartok
22962 * XplatUIStructs.cs:
22963 - Added WS_EX styles to WindowStyles enumeration
22965 2004-10-17 22:50 pbartok
22967 * XplatUI.cs, XplatUIDriver.cs:
22968 - Added method for enabling/disabling windows
22969 - Added method for setting window modality
22970 - Added method for setting topmost window
22972 2004-10-17 22:49 pbartok
22974 * ThemeWin32Classic.cs:
22975 - Added ToolTip drawing code
22977 2004-10-17 22:49 pbartok
22980 - Added ToolTip abstracts
22982 2004-10-17 22:47 pbartok
22985 - Fixed Form.ControlCollection to handle owner relations
22986 - Added Owner/OwnedForms handling
22987 - Implemented Z-Ordering for owned forms
22988 - Removed unneeded private overload of ShowDialog
22989 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
22991 - Fixed Close(), had wrong default
22992 - Added firing of OnLoad event
22993 - Added some commented out debug code for Ownership handling
22995 2004-10-17 22:16 pbartok
22998 - Fixed/implemented flat list of controls
23000 2004-10-17 22:14 pbartok
23003 - Added code to simulate modal dialogs on Win32
23005 2004-10-17 16:11 jordi
23007 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
23010 2004-10-17 13:39 jordi
23012 * MenuAPI.cs: menu drawing fixes
23014 2004-10-15 09:10 ravindra
23016 * StructFormat.cs: General Enum.
23018 2004-10-15 09:09 ravindra
23020 * SizeGripStyle.cs: Enum for Form.
23022 2004-10-15 09:08 ravindra
23024 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
23025 in Theme for ListView.
23027 2004-10-15 09:06 ravindra
23029 * ColumnHeader.cs: Flushing some formatting changes.
23031 2004-10-15 09:05 ravindra
23033 * ListViewItem.cs: Implemented GetBounds method and fixed coding
23036 2004-10-15 09:03 ravindra
23038 * ListView.cs: Implemented Paint method and fixed coding style.
23040 2004-10-15 07:34 jordi
23042 * MenuAPI.cs: fix for X11
23044 2004-10-15 07:32 ravindra
23046 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
23047 - Renamed Paint() method to Draw() for clarity. Also, moved
23048 DrawImage() to OnPaint().
23050 2004-10-15 07:25 ravindra
23052 * CheckBox.cs, RadioButton.cs:
23053 - Removed Redraw (), we get it from ButtonBase.
23054 - Implemented Paint (), to do class specific painting.
23056 2004-10-15 07:16 ravindra
23059 - Redraw () is not virtual now.
23060 - Added an internal virtual method Paint (), so that
23061 derived classes can do their painting on their own.
23062 - Modified OnPaint () to call Paint ().
23064 2004-10-15 06:43 jordi
23066 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
23067 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
23069 2004-10-15 00:30 ravindra
23072 - MessageBox on windows does not have min/max buttons.
23073 This change in CreateParams fixes this on Windows. We
23074 still need to implement this windowstyle behavior in
23077 2004-10-14 05:14 ravindra
23080 - Changed Redraw () to do a Refresh () always.
23081 - Fixed the MouseMove event handling when mouse is pressed,
23082 ie drag event handling.
23083 - Replaced the usage of ToolBarButton.Pressed property to
23084 ToolBarButton.pressed internal variable.
23086 2004-10-14 05:10 ravindra
23088 * ToolBarButton.cs:
23089 - Added an internal member 'inside' to handle mouse move
23090 with mouse pressed ie mouse drag event.
23091 - Changed 'Pressed' property to return true only when
23092 'inside' and 'pressed' are both true.
23093 - Some coding style love.
23095 2004-10-14 00:17 ravindra
23097 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
23100 2004-10-14 00:15 ravindra
23102 * ButtonBase.cs: Redraw () related improvements.
23104 2004-10-14 00:14 ravindra
23106 * MessageBox.cs: Moved InitFormSize () out of Paint method and
23107 removed unnecessary calls to Button.Show () method.
23109 2004-10-13 17:50 pbartok
23113 - Removed destroying of window until we solve the problem of X
23114 destroying the window before us on shutdown
23116 2004-10-13 16:32 pbartok
23119 - Now Redraws on MouseUp for FlatStyle Flat and Popup
23121 2004-10-13 14:18 pbartok
23124 - Added code to destroy the X window
23126 2004-10-13 14:18 pbartok
23129 - Added code to destroy a window
23131 2004-10-13 14:12 pbartok
23134 - Added the Redraw on Resize that got dropped in the last rev
23136 2004-10-13 09:06 pbartok
23138 * ThemeWin32Classic.cs:
23139 - Path from John BouAntoun:
23140 * Fix check rendering (centre correctly for normal style, offset
23141 correctly for FlatStyle).
23142 * Fix border color usage (use backcolor) for FlatStyle.Popup
23143 * Use checkbox.Capture instead of checkbox.is_pressed when
23144 rendering flatstyle states.
23146 2004-10-12 21:48 pbartok
23148 * ThemeWin32Classic.cs:
23149 - Removed all occurences of SystemColors and replaced them with the
23150 matching theme color
23152 2004-10-12 21:41 pbartok
23154 * ThemeWin32Classic.cs:
23155 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
23156 him using the function for flatstyle drawing
23157 - Changed functions to use the new version of CPDrawBorder3D
23159 2004-10-12 21:15 pbartok
23162 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
23163 match MS documentation. They need to return defined colors if the
23164 passed color matches the configured control color. Thanks to John
23165 BouAntoun for pointing this out.
23167 2004-10-12 20:57 pbartok
23170 - Fix from John BouAntoun: Raise ForeColorChanged event when text
23173 2004-10-12 20:46 pbartok
23176 - Fix from John BouAntoun: Now properly sets the Appearance property
23178 2004-10-12 20:45 pbartok
23180 * ThemeWin32Classic.cs:
23181 - Fixes from John BouAntoun: now handles forecolors and backcolors
23182 for flatstyle rendered controls much better; It also fixes normal
23183 checkbox rendering when pushed or disabled.
23185 2004-10-08 02:50 jordi
23187 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
23190 2004-10-07 08:56 jordi
23192 * ThemeWin32Classic.cs: Removes deletion of cached brushes
23194 2004-10-06 03:59 jordi
23196 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
23197 XplatUIWin32.cs: removes warnings from compilation
23199 2004-10-05 12:23 jackson
23201 * RadioButton.cs: Fix ctor
23203 2004-10-05 11:10 pbartok
23206 - Partial implementation by Benjamin Dasnois
23208 2004-10-05 10:15 jackson
23210 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
23213 2004-10-05 03:07 ravindra
23216 - Removed a private method, Draw ().
23217 - Fixed the ButtonDropDown event handling.
23218 - Fixed MouseMove event handling.
23220 2004-10-05 03:04 ravindra
23222 * ThemeWin32Classic.cs:
23223 - Added DrawListView method and ListViewDefaultSize property.
23224 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
23225 - Changed DOS style CRLF to Unix format (dos2unix).
23227 2004-10-05 03:03 ravindra
23230 - Added DrawListView method and ListViewDefaultSize property.
23232 2004-10-05 02:42 ravindra
23234 * ToolBarButton.cs: Added an internal member dd_pressed to handle
23235 clicks on DropDown arrow.
23237 2004-10-04 22:56 jackson
23239 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
23240 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
23241 Control handle the buffers, derived classes should not have to
23242 CreateBuffers themselves.
23244 2004-10-04 21:20 jackson
23246 * StatusBar.cs: The control handles resizing the buffers now.
23248 2004-10-04 21:18 jackson
23250 * Control.cs: When resizing the buffers should be invalidated. This
23251 should be handled in Control not in derived classes.
23253 2004-10-04 14:45 jackson
23257 2004-10-04 02:14 pbartok
23259 * LeftRightAlignment.cs:
23262 2004-10-04 01:09 jordi
23264 * ThemeWin32Classic.cs: fixes right button position causing right
23265 button not showing on horizontal scrollbars
23267 2004-10-02 13:12 pbartok
23270 - Simplified the Invalidate method by using an X call instead of
23271 generating the expose ourselves
23272 - Added an expose when the window background is changed
23273 - Implemented ClientToScreen method
23275 2004-10-02 13:08 pbartok
23278 - Added Win32EnableWindow method (test for implementing modal
23280 - Added ClientToScreen method and imports
23282 2004-10-02 13:07 pbartok
23284 * XplatUI.cs, XplatUIDriver.cs:
23285 - Added ClientToScreen coordinate translation method
23287 2004-10-02 13:06 pbartok
23289 * KeyPressEventArgs.cs:
23290 - Fixed access level for constructor
23292 2004-10-02 13:06 pbartok
23295 - Changed access level for the window_collection hash table
23297 2004-10-02 13:05 pbartok
23300 - Added KeyPreview property
23301 - Added Menu property (still incomplete, pending Jordi's menu work)
23302 - Implemented ProcessCmdKey
23303 - Implemented ProcessDialogKey
23304 - Implemented ProcessKeyPreview
23306 2004-10-02 13:02 pbartok
23309 - Added private method to get the Control object from the window
23311 - Implemented ContextMenu property
23312 - Implemented PointToScreen
23313 - Implemented PreProcessMessage
23314 - Implemented IsInputChar
23315 - Implemented IsInputKey
23316 - Implemented ProcessCmdKey
23317 - Completed ProcessKeyEventArgs
23318 - Fixed message loop to call the proper chain of functions on key
23320 - Implemented ProcessDialogChar
23321 - Implemented ProcessDialogKey
23322 - Implemented ProcessKeyMessage
23323 - Implemented ProcessKeyPreview
23324 - Added RaiseDragEvent stub (MS internal method)
23325 - Added RaiseKeyEvent stub (MS internal method)
23326 - Added RaiseMouseEvent stub (MS Internal method)
23327 - Added RaisePaintEvent stub (MS Internal method)
23328 - Added ResetMouseEventArgs stub (MS Internal method)
23329 - Implemented RtlTranslateAlignment
23330 - Implemented RtlTranslateContent
23331 - Implemented RtlTranslateHorizontal
23332 - Implemented RtlTranslateLeftRight
23333 - Added generation of KeyPress event
23335 2004-10-02 05:57 ravindra
23337 * ListViewItem.cs: Added attributes.
23339 2004-10-02 05:32 ravindra
23341 * ListView.cs: Added attributes.
23343 2004-10-01 11:53 jackson
23345 * Form.cs: Implement the Close method so work on MessageBox can
23348 2004-09-30 14:06 pbartok
23353 2004-09-30 11:34 jackson
23355 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
23357 2004-09-30 07:26 ravindra
23359 * ListViewItemConverter.cs: Converter for ListViewItem.
23361 2004-09-30 07:26 ravindra
23363 * SortOrder.cs: Enum for ListView control.
23365 2004-09-30 07:25 ravindra
23367 * ColumnHeader.cs: Supporting class for ListView control.
23369 2004-09-30 07:24 ravindra
23371 * ListView.cs, ListViewItem.cs: Initial implementation.
23373 2004-09-30 07:20 ravindra
23375 * ItemActivation.cs: Enum for ListView Control.
23377 2004-09-29 20:29 pbartok
23380 - Added lookup of pixel value for background color; tries to get a
23381 color 'close' to the requested color, it avoids having to create a
23382 colormap. Depending on the display this could mean the used color
23383 is slightly off the desired color. Might have to change it to a more
23384 resource intensive colormap approach, but it will work as a
23385 workaround to avoid red screens.
23387 2004-09-29 14:27 jackson
23389 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
23391 2004-09-28 12:44 pbartok
23393 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
23394 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
23395 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
23396 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
23397 TrackBar.cs, VScrollBar.cs:
23398 - Streamlined Theme interfaces:
23399 * Each DrawXXX method for a control now is passed the object for
23400 the control to be drawn in order to allow accessing any state the
23401 theme might require
23403 * ControlPaint methods for the theme now have a CP prefix to avoid
23404 name clashes with the Draw methods for controls
23406 * Every control now retrieves it's DefaultSize from the current
23409 2004-09-28 12:17 jackson
23411 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
23414 2004-09-24 14:57 jackson
23416 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
23417 Gives us a nice little performance boost.
23419 2004-09-24 12:02 jackson
23421 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
23422 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
23423 Control and supporting classes. Initial checkin
23425 2004-09-23 13:08 jackson
23427 * Form.cs: Temp build fixage
23429 2004-09-23 01:39 ravindra
23431 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
23432 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
23433 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
23434 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
23435 EventHandlers needed by ListView Control.
23437 2004-09-22 14:12 pbartok
23439 * ScrollableControl.cs:
23440 - Implemented DockPadding property
23441 - Implemented AutoScroll property
23442 - Implemented AutoScrollMargin property
23443 - Implemented AutoScrollMinSize property
23444 - Implemented AutoScrollPosition property
23445 - Implemented DisplayRectangle property (still incomplete)
23446 - Implemented CreateParams property
23447 - Implemented HScroll property
23448 - Implemented VScroll property
23449 - Implemented OnVisibleChanged property
23451 2004-09-22 14:09 pbartok
23454 - Added Form.ControllCollection class
23455 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
23456 RemoveOwnedForm (still incomplete, missing on-top and common
23457 minimize/maximize behaviour)
23458 - Added StartPosition property (still incomplete, does not use when
23460 - Added ShowDialog() methods (still incomplete, missing forcing the
23463 2004-09-22 14:05 pbartok
23466 - Added message loop for modal dialogs
23468 2004-09-22 14:02 pbartok
23471 - Fixed wrong types for events
23473 2004-09-22 14:00 pbartok
23475 * Shortcut.cs, FormWindowState.cs:
23476 - Fixed wrong values
23478 2004-09-22 12:01 jackson
23480 * Control.cs: Text is never null
23482 2004-09-20 22:14 pbartok
23485 - Fixed accessibility level for Idle handler
23487 2004-09-20 18:54 jackson
23489 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23490 XplatUIX11.cs: New message loop that uses poll so we don't get a
23493 2004-09-17 10:43 pbartok
23496 - Fixed behaviour of arrow buttons. Now properly behaves like
23497 Buttons (and like Microsoft's scrollbar arrow buttons)
23499 2004-09-17 10:14 pbartok
23502 - Added missing release of keyboard/mouse capture
23504 2004-09-17 06:18 jordi
23506 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
23507 Theme.cs: Very early menu support
23509 2004-09-16 17:45 pbartok
23512 - Fixed sending a window to the front
23513 - Added overload for SetWindowPos to avoid casting
23515 2004-09-16 17:44 pbartok
23518 - Added SendToBack and BringToFront methods
23520 2004-09-16 07:00 ravindra
23522 * Copyright: Added Novell URL.
23524 2004-09-16 07:00 ravindra
23526 * ToolBar.cs: Invalidate should be done before redrawing.
23528 2004-09-15 21:19 ravindra
23530 * ColumnHeaderStyle.cs: Enum for ListView Control.
23532 2004-09-15 21:18 ravindra
23534 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
23537 2004-09-13 18:26 jackson
23539 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
23542 2004-09-13 18:13 jackson
23544 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
23545 a second thread and post messages into the main threads message
23546 queue. This makes timing much more consistent. Both win2K and XP
23547 have a minimum timer value of 15 milliseconds, so we now do this
23550 2004-09-13 15:18 pbartok
23552 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23554 - Added Z-Ordering methods
23556 2004-09-13 10:56 pbartok
23559 - Fixed #region names
23560 - Moved properties and methods into their proper #regions
23562 2004-09-13 10:51 pbartok
23565 - Added Accept and CancelButton properties
23566 - Added ProcessDialogKey() method
23568 2004-09-13 08:18 pbartok
23570 * IWindowTarget.cs:
23573 2004-09-10 21:50 pbartok
23576 - Added DoDragDrop() [incomplete]
23577 - Properly implemented 'Visible' handling
23578 - Added SetVisibleCore()
23579 - Implemented FindChildAtPoint()
23580 - Implemented GetContainerControl()
23581 - Implemented Hide()
23583 2004-09-10 19:28 pbartok
23586 - Moved methods into their appropriate #regions
23587 - Reordered methods within regions alphabetically
23589 2004-09-10 18:57 pbartok
23591 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23592 - Added method to retrieve text from window
23594 2004-09-10 18:56 pbartok
23597 - Moved some internal functions into the internal region
23598 - Implemented FontHeight
23599 - Implemented RenderRightToLeft
23600 - Implemented ResizeRedraw
23601 - Implemented ShowFocusCues
23602 - Implemented ShowKeyboardCues
23603 - Implemented FromChildHandle
23604 - Implemented FromHandle
23605 - Implemented IsMnemonic
23606 - Implemented ReflectMessage
23607 - All public and protected Static Methods are now complete
23609 2004-09-10 16:54 pbartok
23612 - Implemented remaining missing public instance properties
23613 - Alphabetized some out of order properties
23615 2004-09-10 05:51 ravindra
23617 * PictureBox.cs: Added a check for null image.
23619 2004-09-10 00:59 jordi
23621 * GroupBox.cs: remove cvs tag
23623 2004-09-09 05:25 ravindra
23625 * ToolBar.cs: Make redraw accessible from ToolBarButton.
23627 2004-09-09 05:23 ravindra
23629 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
23632 2004-09-09 02:28 pbartok
23634 * ThemeWin32Classic.cs:
23635 - Improve disabled string look
23637 2004-09-09 01:15 jordi
23639 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
23642 2004-09-08 23:56 ravindra
23644 * ItemBoundsPortion.cs: It's enum, not a class!
23646 2004-09-08 23:47 ravindra
23648 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
23651 2004-09-08 21:13 ravindra
23653 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
23656 2004-09-08 21:03 ravindra
23658 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
23661 2004-09-08 21:01 ravindra
23663 * ScrollableControl.cs: Removed unreachable code.
23665 2004-09-08 06:45 jordi
23667 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
23669 2004-09-08 01:00 jackson
23671 * XplatUIX11.cs: Only run the timers when updating the message
23672 queue. This effectively gives X messages a higher priority then
23673 timer messages. Timers still need love though
23675 2004-09-07 14:01 jackson
23677 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
23678 this for us and the handle is no longer valid.
23680 2004-09-07 13:59 jackson
23682 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
23683 loop that manages to not crash. TODO: Add poll and cleanup timers
23685 2004-09-07 11:12 jordi
23687 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
23689 2004-09-07 03:40 jordi
23691 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
23692 fixes, methods, multiple links
23694 2004-09-06 06:55 jordi
23696 * Control.cs: Caches ClientRectangle rectangle value
23698 2004-09-05 02:03 jordi
23700 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
23703 2004-09-04 11:10 jordi
23705 * Label.cs: Refresh when font changed
23707 2004-09-02 16:24 pbartok
23710 - Added sanity check to creation of double buffer bitmap
23712 2004-09-02 16:24 pbartok
23715 - Fixed selection of text color
23716 - Fixed handling of resize event; now properly recreates double
23718 - Added missing assignment of TextAlignment
23719 - Added proper default for TextAlignment
23721 2004-09-02 14:26 pbartok
23724 - Added missing RadioButton.RadioButtonAccessibleObject class
23726 2004-09-02 14:26 pbartok
23729 - Added missing Control.ControlAccessibleObject class
23730 - Started to implement Select()ion mechanisms, still very incomplete
23732 2004-09-02 14:25 pbartok
23734 * AccessibleObject.cs:
23735 - Added missing methods
23737 2004-09-02 14:23 pbartok
23739 * AccessibleNavigation.cs, AccessibleSelection.cs:
23742 2004-09-02 10:32 jordi
23744 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
23745 pool for pens, brushes, and hatchbruses
23747 2004-09-01 15:30 jackson
23749 * StatusBar.cs: Fix typo
23751 2004-09-01 14:44 pbartok
23756 2004-09-01 14:39 pbartok
23758 * Button.cs, RadioButton.cs:
23759 - Functional initial check-in
23761 2004-09-01 14:01 pbartok
23764 - Added missing default
23765 - Added missing region mark
23767 2004-09-01 09:10 jordi
23769 * Label.cs: fixes method signatures, new methods, events, fixes
23772 2004-09-01 07:19 jordi
23774 * Control.cs: Init string variables with an empty object
23776 2004-09-01 04:20 jordi
23778 * Control.cs: fires OnFontChanged event
23780 2004-08-31 20:07 pbartok
23783 - Enabled display of strings
23785 2004-08-31 20:05 pbartok
23788 - Added (partial) implementation of DialogResult; rest needs to be
23789 implemented when the modal loop code is done
23791 2004-08-31 19:55 pbartok
23794 - Fixed to match the removal of the needs_redraw concept
23796 2004-08-31 19:55 pbartok
23799 - Removed the rather odd split between 'needs redraw' and redrawing
23800 - Now handles the events that require regeneration (ambient
23801 properties and size)
23803 2004-08-31 19:41 pbartok
23806 - Added firing of BackColorChanged event
23807 - Added TopLevelControl property
23808 - Fixed handling of WM_ERASEBKGRND message
23810 2004-08-31 12:49 pbartok
23816 2004-08-31 12:48 pbartok
23819 - Finished (famous last words)
23821 2004-08-31 04:35 jordi
23823 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
23824 scrolling bugs, adds new methods
23826 2004-08-30 14:42 pbartok
23829 - Implemented CheckBox drawing code
23831 2004-08-30 14:42 pbartok
23834 - Made Redraw() and CheckRedraw() virtual
23835 - Improved mouse up/down/move logic to properly track buttons
23837 2004-08-30 09:44 pbartok
23840 - Updated to fix broken build. Not complete yet.
23842 2004-08-30 09:28 pbartok
23847 2004-08-30 09:17 pbartok
23852 2004-08-27 16:12 ravindra
23854 * ToolBarButton.cs: Added TypeConverter attribute.
23856 2004-08-27 16:07 ravindra
23858 * ImageIndexConverter.cs: Implemented.
23860 2004-08-27 14:17 pbartok
23863 - Removed unneeded stack vars
23864 - First attempt to fix sizing issues when layout is suspended
23866 2004-08-25 15:35 jordi
23868 * ScrollBar.cs: more fixes to scrollbar
23870 2004-08-25 14:04 ravindra
23872 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
23873 Added the missing divider code and grip for ToolBar Control.
23875 2004-08-25 13:20 pbartok
23878 - Control now properly passes the ambient background color to child
23881 2004-08-25 13:20 jordi
23883 * ScrollBar.cs: small bug fix regarding bar position
23885 2004-08-25 12:33 pbartok
23888 - Now only calls SetTimer or KillTimer if the enabled state has
23891 2004-08-25 12:33 pbartok
23894 - Fixed timer handling, now seems to work
23895 - Improved error message for window creation
23897 2004-08-25 12:32 pbartok
23900 - Fixed generation of MouseUp message
23902 2004-08-25 12:29 jordi
23904 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
23905 and fixes for progressbar
23907 2004-08-24 18:43 ravindra
23909 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
23910 in ToolBar control.
23912 2004-08-24 17:15 pbartok
23916 - Added missing events
23919 2004-08-24 17:14 pbartok
23921 * StatusBar.cs, PictureBox.cs:
23922 - Now uses Control's CreateParams
23924 2004-08-24 16:36 pbartok
23927 - Fixed background color handling
23928 - Fixed sending of enter/leave events on a grab
23930 2004-08-24 16:35 pbartok
23933 - Refined definitions for CrossingEvent
23935 2004-08-24 12:37 jordi
23937 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
23938 formmating, methods signature, and adds missing events
23940 2004-08-24 12:24 jordi
23942 * Control.cs: fire OnEnabledChanged event
23944 2004-08-24 11:17 pbartok
23947 - Implemented SetTimer() and KillTimer()
23949 2004-08-24 11:16 pbartok
23952 - Now uses Remove instead of Add to kill the timer
23954 2004-08-24 10:16 jackson
23956 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
23957 picture boxes in the theme now. Draw picture box borders and obey
23960 2004-08-24 05:49 jackson
23962 * Timer.cs: Remove top secret debugging code
23964 2004-08-24 05:34 jackson
23966 * PictureBox.cs: Temp hack to make picture boxes draw their full
23969 2004-08-24 05:29 jackson
23971 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23972 XplatUIX11.cs: Move timers to the driver level. On X they are
23973 queued by the driver and checked on idle.
23975 2004-08-24 01:07 jackson
23977 * XplatUIX11.cs: Use a queue for async messages instead of passing
23978 them as ClientMessages since that was totally broken. Also simply
23979 check for events and return an idle message if none are found. This
23980 gives us an idle handler, and prevents deadlocking when no messages
23983 2004-08-23 18:19 ravindra
23985 * XplatUIWin32.cs: Removed the unwanted destructor.
23987 2004-08-23 17:27 pbartok
23990 - Finishing touches. Works now, just needs some optimizations.
23992 2004-08-23 16:53 jordi
23994 * ScrollBar.cs: small fix
23996 2004-08-23 16:45 pbartok
23999 - Removed debug output
24002 2004-08-23 16:43 jordi
24004 * ScrollBar.cs: [no log message]
24006 2004-08-23 16:10 pbartok
24009 - Fixed handling of WM_CLOSE message
24010 - Removed debug output
24012 2004-08-23 16:09 pbartok
24015 - Added handling of Idle event
24016 - Added handling of form closing
24017 - Fixed reporting of MessageLoop property
24018 - Removed some unneeded code, should provide a bit of a speedup
24020 2004-08-23 15:22 pbartok
24023 - Added InitLayout() method
24024 - Added code to properly perform layout when Anchor or Dock property
24026 - Changed 'interpretation' of ResumeLayout. MS seems to have a
24027 LAMESPEC, tried to do it in a way that makes sense
24029 2004-08-23 14:10 jordi
24031 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
24032 properties and methods
24034 2004-08-23 13:55 pbartok
24037 - Properly fixed Jordi's last fix
24038 - Now uses Cursor's Position property instead of calling XplatUI
24041 2004-08-23 13:44 jordi
24043 * PaintEventHandler.cs: Adding missing attribute
24045 2004-08-23 13:39 pbartok
24048 - Implemented Position property
24050 2004-08-23 13:39 pbartok
24052 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
24053 - Added method to move mouse cursor
24055 2004-08-23 13:39 pbartok
24058 - Fixed setting of background color
24059 - Added method to move mouse cursor
24061 2004-08-23 13:16 jordi
24063 * Control.cs: avoids null exception
24065 2004-08-22 17:46 jackson
24067 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
24070 2004-08-22 17:40 jackson
24072 * XplatUIX11.cs: Add some missing locks
24074 2004-08-22 15:10 pbartok
24076 * Control.cs, Form.cs:
24077 - Removed OverlappedWindow style from Control, instead it's default
24079 - Made form windows OverlappedWindow by default
24081 2004-08-22 13:34 jackson
24083 * ScrollBar.cs: Update the position through the Value property so
24084 the OnValueChanged event is raised.
24086 2004-08-22 12:04 pbartok
24089 - Added Cursor.cs and UserControl.cs
24091 2004-08-22 12:03 pbartok
24094 - Started implementation, not usable yet
24096 2004-08-22 12:00 pbartok
24099 - Implemented UserControl (complete)
24101 2004-08-21 19:20 ravindra
24103 * ToolBar.cs: Correcting the formatting mess of VS.NET.
24105 2004-08-21 18:49 ravindra
24107 * ToolBar.cs: Probably this completes the missing attributes in
24110 2004-08-21 18:03 ravindra
24112 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
24113 Fixed toolbar control signatures.
24115 2004-08-21 16:32 pbartok
24120 2004-08-21 16:30 pbartok
24125 2004-08-21 16:19 pbartok
24127 * Control.cs, Label.cs:
24130 2004-08-21 15:57 pbartok
24133 - Added loads of debug output for development
24134 - Fixed typo in method name
24136 2004-08-21 15:52 pbartok
24138 * ToolBarButtonClickEventArgs.cs:
24139 - Added missing base class
24141 2004-08-21 14:53 pbartok
24144 - Updated to match new GrabWindow signature
24146 2004-08-21 14:51 pbartok
24148 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24149 - Added method to get default display size
24151 2004-08-21 14:23 pbartok
24153 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24154 - Added method to query current grab state
24155 - Added argument to allow confining a grab to a window
24157 2004-08-21 14:22 pbartok
24160 - Added [Flags] attribute so that modifiers can be used in bitwise
24163 2004-08-21 14:21 pbartok
24165 * TrackBar.cs, ScrollBar.cs:
24166 - Replaced direct XplatUI calls with their Control counterpart
24168 2004-08-21 13:32 pbartok
24171 - Implemented Created property
24173 2004-08-21 13:28 pbartok
24176 - Implemented ContainsFocus
24178 2004-08-21 13:26 pbartok
24181 - Implemented CausesValidation
24183 2004-08-21 13:21 pbartok
24186 - Implemented CanFocus
24187 - Implemented CanSelect
24188 - Implemented Capture
24190 2004-08-21 12:35 pbartok
24193 - Fixed bug with Async message handling
24194 - Implemented getting the ModifierKeys
24196 2004-08-21 12:32 jackson
24198 * AsyncMethodResult.cs: Make sure we have the mutex before we
24199 release it. Fixes BeginInvoke on windows
24201 2004-08-21 11:31 pbartok
24203 * XplatUIWin32.cs, XplatUIX11.cs:
24204 - Drivers now return proper mouse state
24206 2004-08-21 10:54 jackson
24208 * Control.cs: Implement EndInvoke
24210 2004-08-21 10:48 jackson
24212 * Timer.cs: Remove unneeded finalizer
24214 2004-08-20 19:52 ravindra
24216 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
24217 in mouse event handling in the ToolBar control.
24219 2004-08-20 19:50 ravindra
24221 * ImageList.cs: Changed draw method to use the arguments passed in
24224 2004-08-20 18:58 pbartok
24226 * XplatUIStructs.cs:
24227 - Added private message for async communication
24229 2004-08-20 17:38 ravindra
24231 * Control.cs: Made RightToLeft property virtual and removed a
24234 2004-08-20 14:39 jordi
24236 * ThemeGtk.cs: use style_attach
24238 2004-08-20 14:39 pbartok
24241 - Added jackson's Async code from X11 to Win32
24243 2004-08-20 14:09 pbartok
24246 - Added all new files
24248 2004-08-20 14:09 pbartok
24251 - Added call to set window background color
24253 2004-08-20 14:03 pbartok
24255 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24256 - Added method for setting the window background
24258 2004-08-20 14:02 pbartok
24261 - Added method for setting the background color
24262 - Added handling for erasing the window background
24264 2004-08-20 13:45 jordi
24266 * TrackBar.cs: fixes timer, new properties and methods
24268 2004-08-20 13:34 jackson
24270 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
24273 2004-08-20 13:22 jackson
24275 * Timer.cs: Timer Tick events are now handed through Controls Async
24276 mechanism so the callbacks are executed in the same thread as X
24278 2004-08-20 13:19 jackson
24280 * XplatUIDriver.cs: Expose functionality to send async messages
24283 2004-08-20 13:18 jackson
24285 * Control.cs: Implement Begininvoke
24287 2004-08-20 13:14 jackson
24289 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
24290 messages through the driver
24292 2004-08-20 13:12 jackson
24294 * XplatUIX11.cs: Lock before all X operations. Also added Async
24295 method functionality through XSendEvent
24297 2004-08-20 13:11 jackson
24299 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
24300 This will screw up on 64 bit systems)
24302 2004-08-20 13:10 jackson
24304 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
24305 Async messages through X/Win32
24307 2004-08-19 19:39 pbartok
24310 - Updated code to match new HandleData.DeviceContext type
24312 2004-08-19 19:38 pbartok
24315 - Made DeviceContext a generic object to allow usage from various
24317 - Added support for queueing Windows messages
24319 2004-08-19 19:37 pbartok
24322 - Added generation of MouseEnter, MouseLeave and MouseHover events
24323 - Added cleanup on EndPaint
24325 2004-08-19 19:17 pbartok
24328 - Added handling of WM_MOUSEHOVER
24329 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
24332 2004-08-19 18:55 jordi
24334 * ThemeGtk.cs: fixes button order
24336 2004-08-19 18:12 jordi
24338 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
24340 2004-08-19 17:09 pbartok
24343 - Added Right property
24344 - Added RightToLeft property
24346 2004-08-19 16:27 jordi
24348 * ThemeGtk.cs: experimental GTK theme support
24350 2004-08-19 16:26 jordi
24352 * ITheme.cs, Theme.cs: move themes from an interface to a class
24354 2004-08-19 16:25 jordi
24356 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
24359 2004-08-19 16:04 pbartok
24362 - Added colormap basics
24363 - Added a way to re-initialize with a different display handle
24364 - Fixed setting of the window background color
24365 - Added various X11 imports related to colors and colormaps
24367 2004-08-19 15:51 pbartok
24370 - Removed packing hints (Paolo suggested this a while back)
24371 - fixed colormap type
24372 - Added default Atom types
24373 - Added Screen and color structs and enums
24375 2004-08-19 15:39 pbartok
24378 - Added missing Draw() method
24379 - Added missing RecreateHandle event
24381 2004-08-19 15:30 pbartok
24384 - Added handling of WM_CLOSE
24386 2004-08-18 13:16 jordi
24388 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
24391 2004-08-18 09:56 jordi
24393 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
24395 2004-08-17 15:31 ravindra
24397 * SWF.csproj: Updated project.
24399 2004-08-17 15:25 pbartok
24402 - Drawing improvement; don't call UpdateBounds if we are not visible
24403 (or have been minimized)
24405 2004-08-17 15:24 pbartok
24408 - Finished IsVisible
24409 - Added Win32GetWindowPlacement
24411 2004-08-17 15:08 jackson
24413 * Panel.cs: Initial checkin of the Panel
24415 2004-08-17 14:25 pbartok
24418 - Fixed broken handling of default window sizes
24420 2004-08-17 13:29 jackson
24422 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
24423 has a large startup time.
24425 2004-08-17 10:25 jackson
24427 * HandleData.cs: union areas properly
24429 2004-08-17 10:12 jackson
24431 * HandleData.cs: union areas properly
24433 2004-08-16 20:00 ravindra
24435 * ToolBar.cs, ToolBarButton.cs: Added attributes.
24437 2004-08-16 18:48 ravindra
24439 * ToolBar.cs: Added attributes.
24441 2004-08-16 17:17 ravindra
24443 * SWF.csproj: Updated project.
24445 2004-08-16 17:16 jackson
24447 * XplatUIX11.cs: Check for more expose events before sending a
24448 WM_PAINT so they can all be grouped together. This makes dragging a
24449 window across another window redraw in a sane way.
24451 2004-08-16 15:47 pbartok
24454 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
24455 support OnMouseEnter/Leave()
24456 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
24459 2004-08-16 15:46 pbartok
24461 * XplatUIStructs.cs, XplatUIX11.cs:
24462 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
24463 OnMouseEnter/Leave()
24465 2004-08-16 15:34 jackson
24467 * XplatUIX11.cs: Group multiple expose events in HandleData, make
24468 sure messages get the message field set to WM_NULL if they are not
24471 2004-08-16 15:24 jackson
24473 * HandleData.cs: HandleData is used for storing message information
24476 2004-08-15 17:23 ravindra
24478 * ColorDepth.cs: Added attribute.
24480 2004-08-15 17:23 ravindra
24482 * SWF.csproj: Updated project for ToolBar Control.
24484 2004-08-15 17:20 ravindra
24486 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
24487 control and also dos2unix format.
24489 2004-08-15 17:13 ravindra
24491 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
24492 ToolBarButtonClickEventArgs.cs,
24493 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
24494 ToolBarTextAlign.cs: First Implementation of ToolBar control.
24496 2004-08-15 15:31 pbartok
24499 - First (mostly) working version
24501 2004-08-13 16:15 pbartok
24504 - Fixed Anchor default
24506 2004-08-13 15:43 pbartok
24509 - Changed GetCursorPos signature
24511 2004-08-13 15:42 pbartok
24513 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
24514 - Changed signature for GetCursorPos
24516 2004-08-13 15:25 pbartok
24520 - Fixed resizing/exposure handling
24522 2004-08-13 15:22 jordi
24524 * ThemeWin32Classic.cs: removes redundant code and fixes issues
24527 2004-08-13 14:55 jordi
24529 * TrackBar.cs: change from wndproc to events
24531 2004-08-13 13:00 jordi
24533 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24534 XplatUIX11.cs: implements PointToClient (ScreenToClient)
24536 2004-08-13 12:53 pbartok
24539 - Changed GetWindowPos to also provide client area size
24540 - Fixed broken prototypes for several win32 functions
24542 2004-08-13 12:53 pbartok
24544 * XplatUI.cs, XplatUIDriver.cs:
24545 - Changed GetWindowPos to also provide client area size
24547 2004-08-13 12:52 pbartok
24550 - Added generation of WM_POSCHANGED
24551 - Changed GetWindowPos to also provide client area size
24553 2004-08-13 12:52 pbartok
24556 - Added Dispose() and destructor
24557 - Fixed resizing and bounds calculation
24559 - Added memory savings for invisible windows
24561 2004-08-13 12:46 jordi
24563 * TrackBar.cs: adds timer and grap window
24565 2004-08-13 10:25 jackson
24567 * Timer.cs: SWF Timer
24569 2004-08-12 16:59 pbartok
24571 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24572 - Implemented method to get current mouse position
24574 2004-08-12 14:29 jordi
24576 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
24577 enhancement, fix mouse problems, highli thumb, etc
24579 2004-08-12 13:31 pbartok
24582 - Fixed Anchoring bugs
24584 2004-08-12 13:01 jackson
24586 * StatusBar.cs: Don't forget things
24588 2004-08-12 12:54 jackson
24590 * ThemeWin32Classic.cs: Handle owner draw status bars
24592 2004-08-12 12:54 jackson
24594 * StatusBar.cs: Implement missing properties, events, and methods.
24595 Handle mouse clicking
24597 2004-08-12 10:19 jackson
24599 * StatusBarPanelClickEventArgs.cs,
24600 StatusBarPanelClickEventHandler.cs: Classes for handling status
24601 bar panel click events
24603 2004-08-12 10:10 jackson
24605 * Control.cs: Add missing properties
24607 2004-08-12 09:46 pbartok
24609 * BindingsManagerBase.cs:
24610 - Name changed to BindingManagerBase.cs
24612 2004-08-12 09:25 jordi
24614 * ScrollableControl.cs: calls ctrlbase instead of exeception
24616 2004-08-11 16:28 pbartok
24618 * InputLanguageChangingEventArgs.cs:
24619 - Never check in before compiling. Fixes the last check-in
24621 2004-08-11 16:26 pbartok
24623 * InputLanguageChangingEventArgs.cs:
24624 - More signature fixes
24626 2004-08-11 16:20 pbartok
24628 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
24629 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
24630 ImageListStreamer.cs, InputLanguage.cs,
24631 InputLanguageChangedEventArgs.cs,
24632 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
24633 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
24634 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
24635 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24638 2004-08-11 16:16 pbartok
24642 - Added .Net 1.1 method
24644 2004-08-11 15:25 pbartok
24647 - Fixed BindingManagerBase.cs filename
24649 2004-08-11 15:22 pbartok
24651 * BindingManagerBase.cs:
24652 - Was checked in with wrong filename
24654 2004-08-11 14:50 pbartok
24659 2004-08-11 13:41 jordi
24661 * XplatUIWin32.cs: Fixes ClientRect
24663 2004-08-11 13:19 pbartok
24665 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24667 - We had SetWindowPos and MoveWindow to set window positions and
24668 size, removed MoveWindow. We have GetWindowPos, so it made sense to
24669 keep SetWindowPos as matching counterpart
24670 - Added some X11 sanity checking
24672 2004-08-11 12:59 pbartok
24675 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
24676 (It seems that SetBounds is just a front for SetBoundsCore and
24677 SetBoundsCore updates the underlying window system and
24678 UpdateBounds is responsible for updating the variables associated
24679 with the Control and sending the events)
24680 - Major cleanup of Size handling; we now have two sizes, client_size
24681 and bounds. Bounds defines the window with decorations, client_size
24684 2004-08-11 12:55 pbartok
24686 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24687 - Added method to calculate difference between decorated window and
24690 2004-08-11 12:54 pbartok
24693 - Forcing redraw on resize
24695 2004-08-11 11:43 pbartok
24698 - Removed disposing of the actual images when the list is disposed
24700 2004-08-11 09:13 pbartok
24703 - Now properly reparents windows
24705 2004-08-11 08:37 pbartok
24710 2004-08-11 07:47 pbartok
24713 - Rewrote the collection stuff. Might not be as fast now, not
24714 keeping the number of children around and accessible directly, but
24715 it's more straightforward
24717 2004-08-11 07:44 pbartok
24719 * AccessibleObject.cs:
24720 - Fixed to match ControlCollection rewrite
24722 2004-08-11 07:43 pbartok
24725 - Added missing creation of the collection list
24727 2004-08-10 20:08 jackson
24729 * StatusBar.cs: Get the paint message from WndProc
24731 2004-08-10 19:31 jackson
24733 * ThemeWin32Classic.cs: Create Brushes as little as possible
24735 2004-08-10 19:20 jackson
24737 * UICues.cs: Add Flags attribute
24739 2004-08-10 19:19 jackson
24741 * StatusBarPanel.cs: Signature cleanup
24743 2004-08-10 19:10 jackson
24745 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
24746 Initial implementation of status bar item drawing
24748 2004-08-10 17:27 jordi
24750 * TrackBar.cs: add missing methods, properties, and restructure to
24753 2004-08-10 16:24 jackson
24755 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
24756 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
24759 2004-08-10 13:21 jordi
24761 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
24762 enhancements and standarize on win colors defaults
24764 2004-08-10 12:52 jackson
24766 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
24767 ThemeWin32Classic.cs: Implement DrawItem functionality
24769 2004-08-10 12:47 jordi
24771 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
24773 2004-08-10 12:32 jordi
24775 * Control.cs: throw ontextchange event
24777 2004-08-10 11:43 pbartok
24780 - Added more to the still unfinished Dock/Anchor layout code
24782 2004-08-10 11:39 pbartok
24784 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24785 - Added GetWindowPos method
24787 2004-08-10 11:36 pbartok
24790 - Implemented several methods
24792 2004-08-10 09:47 jackson
24794 * TrackBar.cs: Allow control to handle buffering
24796 2004-08-10 09:41 jackson
24798 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
24800 2004-08-10 09:24 jackson
24802 * Label.cs, LinkLabel.cs: Let Control handle buffering.
24804 2004-08-10 09:09 jackson
24806 * StatusBar.cs: Let Control handle all the buffering.
24808 2004-08-10 09:08 jackson
24810 * Control.cs: Control will now handle the buffering code, so each
24811 control does not have to implement this.
24813 2004-08-10 08:34 jackson
24815 * XplatUIDriver.cs: Use default colors from the theme
24817 2004-08-09 17:12 pbartok
24820 - Fixed several bugs Ravindra pointed out
24822 2004-08-09 16:11 pbartok
24825 - Added incomplete dock layout code
24826 - Added support for mouse wheel
24828 2004-08-09 16:09 pbartok
24831 - Added handling for middle and right mousebutton
24832 - Added handling for mouse wheel
24833 - Added handling for key state and mouse state and position
24834 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
24837 2004-08-09 15:40 jackson
24839 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
24840 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
24843 2004-08-09 15:37 jackson
24845 * StatusBar.cs: Initial implementation of StatusBar
24847 2004-08-09 15:36 jackson
24849 * ITheme.cs: Add support for drawing status bar and getting status
24852 2004-08-09 15:35 pbartok
24857 2004-08-09 15:34 jackson
24859 * ThemeWin32Classic.cs: Add support for drawing status bar and get
24860 status bar item sizes
24862 2004-08-09 15:21 jackson
24864 * ThemeWin32Classic.cs: Use known colors for default control
24867 2004-08-09 15:12 jackson
24869 * ThemeWin32Classic.cs: Make the default font static, it is static
24870 in control so this doesn't change functionality and creating fonts
24873 2004-08-09 14:56 pbartok
24876 - Added GrabMode enum
24878 2004-08-09 14:55 pbartok
24880 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24881 - Removed Run method, was only required for initial development
24883 2004-08-09 14:51 pbartok
24885 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24886 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
24889 2004-08-09 13:48 pbartok
24892 - Fixed default sizing for child windows
24894 2004-08-09 12:56 pbartok
24897 - Added generation of WM_DESTROY message
24898 - Added handling of window manager induced shutdown
24900 2004-08-09 11:31 jackson
24902 * ThemeWin32Classic.cs: New names for control properties
24904 2004-08-09 11:25 jackson
24906 * Control.cs: Use new color names
24908 2004-08-09 11:02 jackson
24910 * XplatUI.cs: Get default window properties from the theme
24912 2004-08-09 11:01 jackson
24914 * ITheme.cs: The theme engine now controls default window
24917 2004-08-09 11:00 jackson
24919 * ThemeWin32Classic.cs: Add default window color properties
24921 2004-08-09 10:17 jackson
24923 * ThemeWin32Classic.cs: Use correct default back color
24925 2004-08-09 10:05 jackson
24927 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
24930 2004-08-09 09:56 jackson
24932 * XplatUI.cs: Remove defaults, these are handled by the theme now.
24934 2004-08-09 09:54 jackson
24936 * Control.cs: Get default properties from the theme.
24938 2004-08-09 09:53 jackson
24940 * ITheme.cs: Themes now handle default control properties
24942 2004-08-09 09:53 jackson
24944 * ThemeWin32Classic.cs: Themes now handle default control
24945 properties so coloring will be consistent
24947 2004-08-08 16:54 jordi
24949 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
24951 2004-08-08 15:08 jordi
24953 * XplatUIX11.cs: fixes keyboard crash
24955 2004-08-08 13:47 jordi
24957 * Label.cs: add cvs header info
24959 2004-08-08 12:09 jackson
24961 * ThemeWin32Classic.cs: Add pen_buttonface
24963 2004-08-08 11:52 jordi
24965 * Label.cs, LinkLabel.cs: [no log message]
24967 2004-08-08 11:34 jordi
24969 * ThemeWin32Classic.cs: Use Windows Standard Colours
24971 2004-08-07 17:32 jordi
24973 * TrackBar.cs: throw exceptions of invalid enums values
24975 2004-08-07 17:31 jordi
24977 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
24980 2004-08-07 16:56 jackson
24982 * HorizontalAlignment.cs: Initial checkin
24984 2004-08-07 13:16 jordi
24986 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
24989 2004-08-07 13:05 jordi
24991 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
24992 GetSysColor defines
24994 2004-08-06 18:01 pbartok
24996 * ThemeWin32Classic.cs:
24997 - Fixed some rounding issues with float/int
24999 2004-08-06 18:00 jackson
25001 * DockStyle.cs, AnchorStyles.cs:
25003 Add flags and serializable attributes.
25005 2004-08-06 17:46 pbartok
25008 - Implemented GetParent
25010 2004-08-06 17:18 pbartok
25013 - Fixed some rounding issues with float/int
25015 2004-08-06 17:17 pbartok
25017 * X11Structs.cs, XplatUIX11.cs:
25018 - Fixed Refresh and Invalidate
25020 2004-08-06 15:30 pbartok
25022 * Control.cs, X11Structs.cs, XplatUIX11.cs:
25023 - Fixed recursive loop when resizing
25024 - Improved/fixed redrawing on expose messages
25026 2004-08-06 09:53 jordi
25028 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
25029 keyboard navigation
25031 2004-08-06 08:02 pbartok
25033 * X11Structs.cs, XplatUIX11.cs:
25034 - Fixed reparenting
25035 - Fixed window border creation
25037 2004-08-05 15:38 pbartok
25040 - Attempted fix for reparenting problems
25042 2004-08-04 15:14 pbartok
25045 - Fixed Invalidation bug (calculated wrong client area)
25046 - Added ClientSize setter
25048 2004-08-04 15:13 pbartok
25051 - Added AutoScale properties
25053 2004-08-04 15:13 pbartok
25056 - Added latest files
25058 2004-08-04 14:11 pbartok
25060 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25062 - Added Invalidate handling
25064 2004-08-03 17:09 jordi
25066 * XplatUIDriver.cs: fixes spelling mistake
25068 2004-07-27 09:53 jordi
25070 * TrackBar.cs: fixes trackbar events, def classname, methods
25073 2004-07-27 09:29 jordi
25075 * ScrollBar.cs: fixes scrollbar events
25077 2004-07-27 04:38 jordi
25079 * Control.cs: changes to be able to run winforms samples
25081 2004-07-26 11:42 jordi
25083 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
25084 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
25086 2004-07-26 05:41 jordi
25088 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
25089 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
25092 2004-07-22 09:22 jordi
25094 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
25095 check link overlapping, implement events, and fixes
25097 2004-07-21 10:28 jordi
25099 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
25101 2004-07-21 10:19 jordi
25103 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
25104 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
25105 LinkLabelLinkClickedEventArgs.cs,
25106 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
25107 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
25110 2004-07-19 13:09 jordi
25112 * Control.cs, Label.cs: label control re-written: added missing
25113 functionlity, events, and properties
25115 2004-07-19 10:49 jordi
25117 * Control.cs: fixes SetBounds logic
25119 2004-07-19 01:29 jordi
25121 * Control.cs: Call RefreshWindow only if the window has created
25123 2004-07-15 14:05 pbartok
25125 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
25126 - Implemented ImageList and ImageList.ImageCollection classes
25127 - Added ColorDepth enumeration
25128 - Updated SWF VS.Net project
25130 2004-07-15 11:06 jordi
25132 * XplatUIStructs.cs: added MsgButons enum
25134 2004-07-15 11:03 jordi
25136 * Control.cs: added basic mouse handeling events
25138 2004-07-15 03:38 jordi
25140 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
25141 Vertical TrackBar control implementation
25143 2004-07-13 09:33 jordi
25145 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
25147 2004-07-13 09:31 jordi
25149 * Control.cs, Form.cs: commit: new properties and fixes form size
25152 2004-07-09 14:13 miguel
25154 * ProgressBar.cs: Spelling
25156 2004-07-09 11:25 pbartok
25159 - Removed usage of Rectangle for drawing. Miguel pointed out it's
25162 2004-07-09 11:17 miguel
25164 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
25166 * ProgressBar.cs: Fixed spelling for `block'
25168 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
25171 Avoid using the += on rect.X, that exposed a bug in the compiler.
25173 2004-07-08 23:21 pbartok
25175 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
25176 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
25177 BaseCollection.cs, Binding.cs, BindingContext.cs,
25178 BindingMemberInfo.cs, BindingsCollection.cs,
25179 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
25180 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
25181 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
25182 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
25183 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
25184 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
25185 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
25186 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
25187 FrameStyle.cs, GiveFeedbackEventArgs.cs,
25188 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
25189 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
25190 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
25191 InputLanguageChangedEventArgs.cs,
25192 InputLanguageChangedEventHandler.cs,
25193 InputLanguageChangingEventArgs.cs,
25194 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
25195 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
25196 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
25197 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
25198 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
25199 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
25200 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
25201 QueryAccessibilityHelpEventArgs.cs,
25202 QueryAccessibilityHelpEventHandler.cs,
25203 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
25204 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
25205 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
25206 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
25207 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
25208 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
25209 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
25210 XplatUIX11.cs, lang.cs: