1 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
4 control is removed from a control collecftion.
5 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
6 Fixes FormPropertyTest (failed on rare occasions).
7 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
8 of Win32SetParent (when changing from no parent to a parent it
9 might add the new parent's location in screen coordinates to this
11 * Form.cs: Rework ChangingParent once again, now the handle is
12 recreated whenever a FormWindowManager is added or removed (that is
13 whenever a normal form is parented or abandoned). Also change
14 CreateParams so that all non-toplevel windows always get the
15 specified sice (StartupPosition is never considered for
17 * ContainerControl.cs: Add ChildControlRemoved, the container control
18 needs to be notified when a control is removed from it's
19 collection, in the case the removed control is the active control.
21 2007-04-02 Jackson Harper <jackson@ximian.com>
23 * RichTextBox.cs: Use the new methods for setting the font and
24 color, these methods set the specified attribute without
25 overriding the other attributes.
27 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
29 * ToolStripPanel.cs: Fixes for better layouts in PDN.
31 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
33 * TextBox.cs: Added internal ChangeBackColor method to special-case
34 Color.Empty. Added check for invalid ScrollBars value.
35 * TextBoxBase.cs: Added internal ChangeBackColor method.
36 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
37 internal ChangeBackColor method to special-case Color.Empty. Added
38 check for invalid ScrollBars value.
40 2007-03-30 Everaldo Canuto <everaldo@simios.org>
42 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
44 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
46 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
47 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
48 [Based on submitted patch from Olivier Duff.]
50 2007-03-30 Jackson Harper <jackson@ximian.com>
52 * TextBox.cs: Only select all on initial focus if the user has not
53 specified a selection area.
55 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
57 * UserControl.cs: Override CreateParams.
59 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
61 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
62 layout of the mdi children is handled by CreateParams. Fixes
65 2007-03-29 Everaldo Canuto <everaldo@simios.org>
67 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
70 * Form.cs: When active tracker mouse down is not processed, send event
71 back to control inside mouse position. [Fixes #81227]
73 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
75 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
76 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
77 stealing focus from the active form on Windows. (Control will be made
78 visible in ShowWindow.)
80 2007-03-29 Mike Kestner <mkestner@novell.com>
82 * ImageList.cs : add internal Changed event.
83 * ListView.cs : hook up to StateImageList.Changed to perform
84 invalidations when the the state icon list changes. [Fixes #81191]
86 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
88 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
89 to prevent tooltips from stealing focus from the active form on Windows.
91 2007-03-29 Everaldo Canuto <everaldo@simios.org>
93 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
95 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
97 2007-03-29 Everaldo Canuto <everaldo@simios.org>
99 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
102 2007-03-29 Jackson Harper <jackson@ximian.com>
104 * TextControl.cs: When deleting text from non multiline textboxes,
105 we need to update the entire document, because line offsets will
108 2007-03-29 Everaldo Canuto <everaldo@simios.org>
110 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
111 added to theme, now we can create themes that uses diferent notify engines
112 like notification-daemon from galago project or growl for Mac OS.
114 2007-03-28 Everaldo Canuto <everaldo@simios.org>
116 * NotifyIcon.cs: Prevent Balloon to show in task bar.
118 2007-03-28 Everaldo Canuto <everaldo@simios.org>
120 * XplatUIX11.cs: Prevent system to open more than one balloon.
122 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
123 some compiler warning messages.
125 2007-03-28 Everaldo Canuto <everaldo@simios.org>
129 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
131 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
132 implemented, this methods is used by NotifyIcon.BalloonWindow class.
134 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
137 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
139 * ListViewItem.cs: Forgot to make Invalidate internal.
141 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
143 * ListView.cs: Add a InvalidateSelection method to
144 invalidate methods which are currently selected, and call
145 it when setting FullRowSelect and HideSelection, instead of
148 2007-03-28 Chris Toshok <toshok@ximian.com>
150 * XplatUIX11.cs (UnmapWindow): reindent this block.
152 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
153 the selection_start if we're moving the selection (that is, not
154 extending it). Fixes bug #80461.
156 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
158 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
159 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
160 create private ControlCollection.
162 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
164 * Control.cs: We need to call OnVisibleChanged for our implicit
165 children as well as our normal children. Fixes scrollbars in
166 comboboxes not showing up.
168 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
170 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
171 the check for IsHandleCreated first. The check in CreateHandle is not
172 good enough because CreateHandle can be overriden, and the override
173 should not be called if the handle is already created.
175 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
177 * ToolStrip.cs: Remove MonoTODO for tooltips.
178 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
179 * ToolStripContainer.cs: Add custom ControlCollection class.
180 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
181 * ToolStripDropDown.cs: Add some missing properties/methods.
182 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
183 * ToolStripItem.cs: Remove MonoTODO for tooltips.
184 * ToolStripManager.cs: Add IsShortcutDefined.
185 * ToolStripOverflow.cs: Override LayoutEngine.
186 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
187 * ToolStripSeparator.cs: Add ImageKey.
189 2007-03-28 Jackson Harper <jackson@ximian.com>
191 * TextControl.cs: If a char delete removes a line ending, we need
192 to update the ending style.
193 - Make sure the line ending calcs get called.
195 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
197 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
198 it was making the new code not work. Fixed a typo in the new code
199 as well. Fixes #79826.
201 2007-03-27 Everaldo Canuto <everaldo@simios.org>
204 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
205 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
206 - SystrayBalloon method implemented.
207 [Add support for notifyicon balloon on win32, #79149]
209 2007-03-27 Mike Kestner <mkestner@novell.com>
211 * ThemeWin32Classic.cs : update StateImageList selection to mirror
212 the ms behavior when only one image is added to the list.
215 2007-03-27 Jackson Harper <jackson@ximian.com>
217 * TextControl.cs: Improvements to non multiline line ending
220 2007-03-27 Everaldo Canuto <everaldo@simios.org>
222 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
224 2007-03-27 Everaldo Canuto <everaldo@simios.org>
227 - Balloon message handling added.
228 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
230 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
231 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
232 to SystrayBalloon to me like other Systray method, also a
233 handle parameter added.
235 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
237 * ListView.cs: Show scrollbars even when items.Count == 0
238 but the columns Width is bigger than the ListView.Width.
239 Also, when columns.Count == 0 set layout_wd and layout_ht
240 to the ClientRectangle values, so we don't show any scrollbar
243 2007-03-27 Everaldo Canuto <everaldo@simios.org>
245 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
247 2007-03-27 Jackson Harper <jackson@ximian.com>
249 * RichTextBox.cs: The RTF library decodes the text properly for us
252 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
254 * ListView.cs: Display HeaderControl even when columns.Count == 0.
255 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
256 ListView header (HeaderControl), instead of Control.BackColor.
258 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
260 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
261 Fixes tab control issues where controls would not show up because they
262 never received their OnVisibleChanged call.
264 2007-03-27 Everaldo Canuto <everaldo@simios.org>
266 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
269 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
271 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
272 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
273 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
274 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
275 the handle. Fix WindowState by using the internal variable until we are
276 sure that we've been shown.
277 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
281 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
283 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
284 (at least borders). Fixes #79386 on Linux (with a small difference
285 in behaviour: when trying to resize a caption-less window metacity
286 shows the sysmenu. Resizing is still possible though).
287 * XplatUIWin32.cs: When setting window styles send request an extra
288 WM_NCCALCSIZE when it's a form without title (due to no text and no
289 caption), since Win32 seems to calculate it wrong the first time we
290 get the message, though the second time things work as they should.
291 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
292 newly reparented window might show up unparented. Update
293 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
294 there's no title text. Fixes #79386.
296 2007-03-27 Mike Kestner <mkestner@novell.com>
298 * ListBox.cs : don't perform invalidations if the handle hasn't been
299 created. [Fixes #80753]
301 2007-03-27 Mike Kestner <mkestner@novell.com>
303 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
306 2007-03-26 Everaldo Canuto <everaldo@simios.org>
308 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
309 needed to implement Balloon.
311 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
313 * ListViewItem.cs: In the constructors that take
314 an array of strings, don't use ListViewSubItemCollection.AddRange
315 method to add items, since we need to have a different behaviour (in
316 the constructors we add an item for each null string, opposed to
317 the behaviour of AddRange, which adds nothing).
319 2007-03-26 Andreia Gaita <avidigal@novell.com>
321 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
323 2007-03-26 Jackson Harper <jackson@ximian.com>
325 * TextControl.cs: Draw and measure line endings when in non
327 - When searching the text, count the end of the last line as a
330 2007-03-26 Jackson Harper <jackson@ximian.com>
332 * RichTextBox.cs: The selection_start and selection_end don't
333 really track the correct tags for the selection. So we'll manually
334 compute the correct tag here.
336 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
338 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
339 and Continuous styles. Fixes #79469.
341 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
343 * ToolStrip.cs: Implement Tooltips.
344 * ToolStripItem.cs: Create internal method for determining tooltip.
346 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
348 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
350 2007-03-26 Everaldo Canuto <everaldo@simios.org>
352 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
353 it prevents a problem thak keeps icon visible after application
356 2007-03-26 Everaldo Canuto <everaldo@simios.org>
358 * NotifyIcon.cs: Balloon properties and methods created.
360 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
361 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
363 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
365 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
367 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
369 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
370 parameter indicates which aspects were explicit/user-set.
371 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
373 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
375 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
376 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
377 SmallChange, and Value (2.0).
378 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
380 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
382 * ListView.cs: Always set item_control.Width in LayoutDetails
383 if View is Details. Setting it later in CalculateScrollBars
384 in a not-so-corner scenario (the sum of columns width is
385 not bigger than the ListView width when handle is created, and then
386 that sum gets bigger by increasing the width of the columns)
387 causes a very weird recursion path (which shouldn't be happening,
388 since header_control sets it in CalculateScrollBars too). This bug
389 appeared after Chris' fixes for handle created issues, so probably
390 it's related to some handle-creation time.
392 2007-03-23 Chris Toshok <toshok@ximian.com>
394 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
395 case where there's an add row, just so we don't end up in a case
396 where it's not displayed (this happens when the row is partially
397 obscured). Fixes bug #79574.
399 2007-03-23 Jackson Harper <jackson@ximian.com>
403 * RichTextBox.cs: Preserve line endings in the lines text buffer,
404 also added an enum that represents the line ending type.
406 2007-03-23 Andreia Gaita <avidigal@novell.com>
408 * NumericUpDown.cs: Fix logic so Text and Value properties are not
409 messed with in every method call, but only from DownButton,
410 UpButton, UpdateEditText() and ValidateText. Fixes #80346
412 2007-03-23 Chris Toshok <toshok@ximian.com>
414 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
415 format objects if the format spec is "". Fixes bug #80889.
417 2007-03-22 Miguel de Icaza <miguel@novell.com>
419 * ToolStripPanel.cs (Join): added stubs to build PDN3
421 * Control.cs (AutoScrollOffset): Add.
423 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
424 property, its only implemented for Win32, on X11 it defaults to
425 some hardcoded value.
427 * ToolStripItem.cs (AllowDrop): Add property
429 2007-03-22 Mike Kestner <mkestner@novell.com>
431 * ListView.cs : in FullRowSelect Details mode, only enable box
432 selection if the user clicks over the "item" column outside of the
433 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
435 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
437 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
438 handle is not created yet.
439 * Form.cs: Select: Don't call CreateHandle if the handle is already
440 created, avoids a stack overflow on Windows when we are recreating
442 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
443 they are made visible, and override AfterTopMostControl to keep
444 them on top when other controls are brought to front.
445 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
446 or force_*scroll_visible is true (old implementation always shows
447 scrollbars when needed, no matter what auto_scroll was set to).
448 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
449 IsHandleCreated check.
451 2007-03-22 Andreia Gaita <avidigal@novell.com>
453 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
454 row or col separator.
455 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
457 2007-03-22 Everaldo Canuto <everaldo@simios.org>
459 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
461 2007-03-22 Everaldo Canuto <everaldo@simios.org>
463 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
464 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
465 every time. Fixes #80410.
467 2007-03-22 Chris Toshok <toshok@ximian.com>
469 * BindingSource.cs (AddNew): partially implement.
471 remove a couple of NotImplementedException's
472 to get bug #81148 closed.
474 2007-03-22 Everaldo Canuto <everaldo@simios.org>
479 - UpdateCursor method added to update the screen cursor.
480 - GetAvailableCursor method added to return cursor for enabled tree,
481 it searches for cursor on control and it's parent's for enabled control.
482 - Call UpdateCursor method on setter of Cursor property.
483 - On setter of Enabled call UpdateCursor when it is false, we need to
484 change cursor to normal (or to this parent cursor) because cursor
485 setting theres no effect to disabled controls.
486 - Some minor source changes to follow the coding style guidelines.
488 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
491 2007-03-22 Chris Toshok <toshok@ximian.com>
493 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
496 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
498 * XplatUIX11.cs: Implement default locations for forms.
499 * Form.cs: Completely rework startup location for forms. Fixes #79964.
500 * Hwnd.cs: Add previous_child_startup_location (to track the current
501 startup location for any child forms of the current form) and
502 previous_main_startup_location (to track the startup location for
503 the current toplevel form).
505 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
507 * Control.cs: Don't trigger a layout if an implicit control is added
508 that isn't visible. Also, don't notify the owner when an implicit control
509 is added. (Owners shouldn't even know about their implicit controls.)
511 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
513 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
514 to save some re-layouts.
516 2007-03-21 Everaldo Canuto <everaldo@simios.org>
518 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
521 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
523 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
524 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
526 2007-03-21 Mike Kestner <mkestner@novell.com>
528 * ListView.cs : disable selection update for non-left button clicks
529 with mods and over selected items. [Fixes #80524]
531 2007-03-20 Jackson Harper <jackson@ximian.com>
534 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
537 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
539 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
540 very probably a more complicated calculation there. Update the
541 textbox' ForeColor and BackColor when the ComboBox' colors are
542 changed. Change the border change in LayoutComboBox to only affect
543 the textbox, not all the calculations there. Seems to fix most of
546 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
548 * ComboBox.cs: Handle Home and End keys as well as all combinations of
549 modifiers + navigation keys as input keys, enables advanced text
550 selection in the combobox (like Shift+Left Arrow for instance).
551 ComboTextBox now overrides Focused and returns whatever
552 ComboBox.Focused returns, since it really should be focused
553 whenever the ComboBox is. Fixes #80795. Also make the border around
554 the text box one pixel bigger, as mentioned in #79436.
556 2007-03-20 Jackson Harper <jackson@ximian.com>
558 * TreeView.cs: Don't offset the images, this was causing some
559 artifacts when expanding/collapsing with images that were the
560 exact height of the treenode.
562 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
564 * TrackBar.cs: Query the theme for the correct value when the mouse
565 moves and the thumb is pressed.
566 * Theme.cs: Added TrackBarValueFromMousePosition
567 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
568 implementation was updating the trackbar value when drawing, now
569 the drawing methods only draw. Fixes #80900. Refactored the
570 calculations out to TrackBarValueFromMousePosition and
571 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
572 according to the mouse position whenever it wants to. Changed the
573 light coloured pen when drawing the thumb from ControlLight to
574 ControlLightLight, because the ControlLight is the same colour as
575 the background so the 3D effect is lost.
577 2007-03-20 Everaldo Canuto <everaldo@simios.org>
579 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
580 defined. Fixes #80784.
582 2007-03-20 Marek Habersack <mhabersack@novell.com>
584 * ContextMenuStrip.cs: align with the change introduced in
587 2007-03-20 Everaldo Canuto <everaldo@simios.org>
589 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
590 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
593 2007-03-19 Chris Toshok <toshok@ximian.com>
595 * Control.cs (WmPaint): don't make use of the Handle property
596 after an event is emitted, as the user could have closed the
597 form/destroyed the control. Store the Handle in a local variable
598 and make use of that. Fixes bug #80768.
600 2007-03-20 Everaldo Canuto <everaldo@simios.org>
602 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
603 behavior in X11 environments.
605 2007-03-20 Everaldo Canuto <everaldo@simios.org>
607 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
608 because on setter of topmost we dont call SetTopmost when handle is not
611 2007-03-20 Jackson Harper <jackson@ximian.com>
613 * TextControl.cs: Need to use SelectionLength () not
614 selection_length, since that var is reset to -1.
615 - Draw the caret when we don't have focus.
616 * TextBox.cs: The selectall actually doesn't occur until the first
618 * TextBoxBase.cs: Need to update the caret position after a
621 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
623 * ListView.cs: Enable scrolling when using Tile view.
625 2007-03-20 Everaldo Canuto <everaldo@simios.org>
629 * XplatUIDriver.cs: Abstract SetOwner method created.
631 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
632 must be implemented and was masked as todo.
634 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
637 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
638 cheking for null owner to remove transient. The SetTopmost will be change
641 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
642 SetTopmost. Now owned forms will work properly in win32 and X11.
644 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
646 * MdiWindowManager.cs: Update function name.
647 * Form.cs: After closing a form MdiParent is always null.
648 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
649 better what it should do: necessary book-keeping when the form is
650 closed, it should not close the form itself.
652 2007-03-19 Andreia Gaita <avidigal@novell.com>
654 * ListViewItem.cs: Fix back and fore color. The subitems only
655 use their own colors if they are set, otherwise use the listview's
656 colors. Don't set default colors on constructor for subitem.
659 2007-03-19 Mike Kestner <mkestner@novell.com>
661 * ListView.cs : make box selection for Details views with
662 FullRowSelect conform to MS behavior when clicking in the "item"
663 column and clicking outside the defined columns.
664 [Fixes case 5-6 of #80374]
666 2007-03-19 Chris Toshok <toshok@ximian.com>
668 * ScrollableControl.cs: create the controls from within the ctor,
669 but don't actually add them until our handle is created. this
670 fixes a NRE possibility jpobst found (if you override OnLayout in
671 a subclass, it's called before your ctor). Also, add a
672 IsHandleCreated guard to UpdateSizeGripVisibility as well.
674 2007-03-19 Jackson Harper <jackson@ximian.com>
676 * TextBox.cs: Reduce the amount of invalidation we do.
677 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
678 some of them are true by default on MS.
679 - Add some functions to reduce the amount of invalidates we do.
680 * TextControl.cs: Less invalidation.
682 2007-03-19 Chris Toshok <toshok@ximian.com>
684 [ Fixes #81773, and *seems* to fix #81553 as well ]
686 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
687 AccumulateDestroyedHandles. We need to do it *after* we send
688 WM_DESTROY, as the user's code can access Control.Handle in
689 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
690 move the WM_DESTROY/zombie handling to before the call to
691 XDestroyWindow. For some reason without this ordering
692 FormTest.RecreateHandle hangs. This ordering is semantically
693 equivalent, however, as XDestroyWindow is async anyway.
695 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
697 * RichTextBox.cs: Reset backcolor_set after setting default.
699 2007-03-19 Chris Toshok <toshok@ximian.com>
701 * ScrollableControl.cs: the scroll position should not effect the
702 canvas size. commit patch from georgegiolfan@yahoo.com, which
703 fixes some really bizarre behavior on resizing. Fixes bug #80778.
705 2007-03-19 Chris Toshok <toshok@ximian.com>
707 * ScrollableControl.cs: clean this up a bit. create the
708 scrollbars in the ctor and just show/hide them as needed. Also,
709 make hscroll_visible/vscroll_visible internal to Recalculate, and
710 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
711 everywhere else. This seems to fix the scrollbars appearing
712 beneath the content for me (i have *no* idea why that is,
715 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
717 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
718 some redundacy for stuff in Anchor and Dock that base will take care of.
721 2007-03-19 Mike Kestner <mkestner@novell.com>
723 * ListView.cs : make box selection for Details views without
724 FullRowSelect dependent on the text bounds, not item bounds.
725 * ListViewItem.cs : add an internal property to obtain the TextBounds
726 in Details view. [Fixes case 1-4 of #80374]
728 2007-03-19 Andreia Gaita <avidigal@novell.com>
730 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
731 we're < 2.0. #78448 && #80316
733 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
735 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
736 have the same style available as the previously selected one. Also,
737 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
739 2007-03-19 Jackson Harper <jackson@ximian.com>
741 * TextControl.cs: Add an alignment property that all new lines
743 - Make sure to use the align shift when calculating the line's X
745 * TextBox.cs: Set the alignment on the document as well as on all
748 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
750 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
751 throw if setting the parent of an mdichild that already has an
752 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
753 AssemblyProductAttribute in the assembly, use the type's namespace (as
754 MS seems to do). CreateControl: don't create the handle if the control
755 is not visible (according to MS behaviour and spec). SetTopLevel: Only
756 create handle if the control is not a form. Change FocusInternal to
757 virtual so that it can be overriden by Form.
758 * TextBox.cs: Update call to FocusInternal.
759 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
760 form is not a toplevel form when it's a mdi child, so update is_toplevel
761 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
762 hasn't been created. Show (IWin32Window): Don't allow this overload for
763 toplevel windows. CenterToParent/CenterToScreen/Select: create the
764 handle as MS does. SetVisibleCore: if called on a MdiChild and the
765 parent isn't visible yet, save the visibility and restore it when the
766 parent is made visible.
767 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
768 methods, since the visibility of the scrollbars can be changed from
769 several places, not only from AutoScroll.
772 2007-03-19 Jackson Harper <jackson@ximian.com>
774 * RichTextBox.cs: Enable shortcuts by default.
775 * TextBoxBase.cs: Add conditional shortcuts.
777 2007-03-19 Everaldo Canuto <everaldo@simios.org>
779 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
781 2007-03-19 Chris Toshok <toshok@ximian.com>
785 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
786 swallow the message we're waiting on, instead of delivering it, as
787 this is only used for the WM_SHOWWINDOW raised from
788 MapWindow/UnmapWindow, and the message needs to be generated
789 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
790 before doing the Map/Unmap. Also make sure that the Hwnd is still
791 alive after the message has been handled.
793 *before* the window is shown.
795 * Control.cs (CreateControl): guard a few more things inside the
796 if (!is_created) block, as we might end up being called again -
798 (WmShowWindow): call CreateControl if we're showing the control.
800 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
802 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
803 controls without a handle if they have any parent with a handle. In
804 Dispose add a check whether the handle is created or not before
805 calling BeginInvoke, this removes the need of the extra disposing
806 parameter (which was bogus anyway since it didn't prevent the
807 invoke from happening, it only skipped the check for an existing
808 handle, meaning that the invoke would call on an inexistent
811 2007-03-19 Everaldo Canuto <everaldo@simios.org>
813 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
816 2007-03-18 Everaldo Canuto <everaldo@simios.org>
819 - Fixed a problem that dont show help button for messages with 3 buttons.
820 - Refactory button size and position calculations, now dont use fixed
821 values, also fixed button sizes (#80043) and form's border space.
822 - AddButton method created, now all other AddButton methods call this one.
823 - Some other source code cosmetic changes.
825 2007-03-18 Jackson Harper <jackson@ximian.com>
827 * RichTextBox.cs: Don't do this all fonts must match check if
828 there is only one char selected.
830 2007-03-18 Jackson Harper <jackson@ximian.com>
832 * TreeView.cs: ScrollWindow works properly now, so we don't need
833 to screw around with the scroll area. This fixes some artifacts
834 when expanding and collapsing.
836 2007-03-18 Jackson Harper <jackson@ximian.com>
838 * TextBoxBase.cs: Allow updating the selection position when the
839 cursor is outside the textarea, but we have a capture.
840 * TextControl.cs: A special case for when the cursor is outside
841 the bounds of the TB.
843 2007-03-18 Jackson Harper <jackson@ximian.com>
845 * TextBoxBase.cs: Remove image pasting code for now. There is no
846 way to get an image on the clipboard right now anyways.
848 * RichTextBox.cs: Use the new RTF Picture class for pictures.
850 2007-03-18 Everaldo Canuto <everaldo@simios.org>
853 - Set window properties in constructor intead of on CreateParams.
854 - Remove topmost from Window ExStyle.
855 - Set ShowInTaskbar to false.
856 - Set form border to FixedDialog.
857 - Some cosmetic changes and remove unneeded comments.
858 - It fixes itens 2,3 and 4 of bug #80043.
860 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
862 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
863 none was explicitly set. Fixes part of bug #79949.
865 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
867 * ToolStripComboBox.cs: Add AutoComplete*.
869 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
871 * ToolStripComboBox.cs: Add FlatStyle.
873 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
875 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
876 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
878 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
880 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
881 CheckBox.cs, RadioButton.cs, BindingSource.cs,
882 DataGridColumnStyle.cs: Remove warnings.
884 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
886 * Menu.cs: MergeMenu: Check menu argument for null before looping over
888 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
889 visibility of mdi child forms. FormSizeChangedHandler: update the
890 maximized size if size has changed while maximized.
891 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
893 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
894 avoid creating the handle if not created.
895 * XplatUI.cs: Update debug output.
896 * XplatUIStructs.cs: Added ToString's for a couple of structs.
898 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
900 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
902 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
903 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
904 Implement keyboard shortcuts.
906 2007-03-15 Everaldo Canuto <everaldo@simios.org>
908 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
909 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
910 ColorDialog and all derived classes.
912 2007-03-15 Everaldo Canuto <everaldo@simios.org>
917 - Rename ToolBarButtonInfor to ToolBarItem.
918 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
919 - Maintain an array of ToolBarItem, used instead of ToolBarButton
920 collection to be able add same button more than one time on a toolbar.
921 - Refactory all properties and methods to use ToolBarItem.
924 - Remove all propeties and methods that is now in ToolBarItem.
925 - Rectangle propery now gets the rectangle from first ToolBarItem to
926 mimic win32 behavior.
927 - Size calculation and layout methods also removed.
929 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
930 ToolBarItem instead of ToolBarButton to right drawing buttons when
931 same button/separator was added more than one time to ToolBar.
933 * ThemeNice.cs: Same as above.
935 2007-03-15 Andreia Gaita <avidigal@novell.com>
937 * XplatUIX11.cs: Fire extra MouseMove events right after
938 MouseDown and MouseUp, emulating win32's <censored> behaviour
939 for apps that rely on it.
941 2007-03-15 Jackson Harper <jackson@ximian.com>
944 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
945 it is drawn on the controls client window and there is no NC
947 - Set the background color to gray on 2.0 when we are readonly.
949 2007-03-15 Chris Toshok <toshok@ximian.com>
953 * XplatUIX11.cs: implement VirtualScreen independently of
954 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
957 2007-03-15 Chris Toshok <toshok@ximian.com>
959 * Hwnd.cs: add an internal field for the cached_window_state.
961 * XplatUIX11.cs: cache the window state, invalidating the cache
962 (and thus re-querying the X server) only when we see an update to
963 the _NET_WM_STATE property.
965 2007-03-15 Chris Toshok <toshok@ximian.com>
967 * BindingSource.cs: get a lot of the unit tests working.
969 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
971 * Control.cs: Modify UpdateStyles to store distances when bounds >=
972 0 instead of just bounds > 0. [Fixes bug #80912]
974 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
976 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
979 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
981 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
982 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
983 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
984 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
986 2007-03-15 Chris Toshok <toshok@ximian.com>
990 * Control.cs: add Ivan's fix for 81101, with a slight modification
991 - you can set control.Target to null.
993 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
995 * ToolStripItem.cs: If our OwnerItem is null, we can't use
996 HideDropDown, use Hide instead to prevent an NRE.
999 2007-03-14 Jackson Harper <jackson@ximian.com>
1001 * TextBoxBase.cs: Mess with the creation stuff a little. We need
1002 to calculate the document before the handle is created, in some
1003 cases. (Actually just one case).
1005 2007-03-14 Jackson Harper <jackson@ximian.com>
1007 * TextBoxBase.cs: Need to display the caret after letting the base
1008 wndproc handle the focus methods, because the caret display
1009 methods check the focus state.
1010 - Try to display the caret after updating it's position with SelectWord.
1011 - Don't need to do an immediate update on this recalc, since there
1012 will be an invalidate anyways.
1014 2007-03-14 Jackson Harper <jackson@ximian.com>
1016 * TreeView.cs: Some workarounds so that we can match event order a
1019 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
1021 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
1022 #80803. Avoid NullReferenceException when Control does not have
1023 parent. Fixed different blinkstyle issues. Only subscribe to Tick
1024 event a single time. Only draw error icon when control is created and
1025 visible. Fixes failing unit tests.
1027 2007-03-14 Andreia Gaita <avidigal@novell.com>
1029 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
1030 Selecting events. Fire Leave and Enter events when changing tabs.
1032 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
1034 * TreeView.cs: Add TreeViewNodeSorter.
1035 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
1037 2007-03-14 Chris Toshok <toshok@ximian.com>
1039 * Form.cs: go ahead and remove the RecreateHandles that jpobst
1040 removed earlier and I had him add back it. It turns out metacity
1041 *does* in fact handle the MOTIF_WM_HINTS property changing, it
1042 just doesn't redraw the window titlebar until you resize the
1043 window. This also means we aren't recreating the entire window
1044 hierarchy on X when you change this property. And it looks better
1047 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1050 * ListView.cs: Collecting selection information
1051 is now done in SelectedIndexCollection rather than in
1052 SelectedListViewItemCollection. This is done so we can
1053 have the selection information code in one single place
1054 (virtual mode selection information entirely depends on
1055 SelectedIndexCollection).
1057 2007-03-13 Miguel de Icaza <miguel@novell.com>
1059 * ErrorProvider.cs: Add stubs for ISupportInitialize
1061 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1063 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
1064 in the right order with the right values, from the Checked property,
1065 just as MS does (instead of triggering them from ListView).
1067 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
1069 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1071 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
1072 the correct handler in OnItemCheck method (ItemCheckEventHandler
1073 instead of EventHandler). This used to throw an InvalidCastException.
1075 2007-03-13 Jackson Harper <jackson@ximian.com>
1077 * TextBoxBase.cs: Calculate the document before the handle is
1078 created, so there isn't an extra invalidate called.
1080 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
1082 * Form.cs: Don't set owner in ShowDialog until we are sure
1083 that we aren't going to throw an exception. [Fixes bug #80773]
1085 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
1087 * TreeView.cs: Make it compile.
1089 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1091 * Control.cs: Another place we don't call SizeFromClientSize.
1092 * Form.cs: Another place we don't call SizeFromClientSize.
1095 2007-03-12 Jackson Harper <jackson@ximian.com>
1097 * TreeView.cs: Basically emulating some strangness here with
1098 exanding nodes and setting node positions when windows aren't
1100 - Also attempting to walk the node tree less than previously, and
1101 just use visible order calculations for determining offsets.
1102 - oops made scrolling backwards.
1103 * TreeNode.cs: We need to start nodes with a zero visible order,
1104 because the order calcs are based on the first nodes order.
1106 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1108 * Form.cs: Don't exit the program if RecreateHandle is called on
1111 2007-03-12 Chris Toshok <toshok@ximian.com>
1113 * XEventQueue.cs: remove the use of PostQuitState.
1115 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
1116 WM_QUIT message in GetMessage, return false (and if we're in the
1117 nested WaitForHwndMessage, repost the WM_QUIT message).
1119 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1121 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
1122 or the MaximizeBox properties. [Part of bug #80640]
1124 2007-03-12 Everaldo Canuto <everaldo@simios.org>
1126 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
1129 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1131 * ToolStripItem.cs: Fix some tests I broke by checking Visible
1134 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
1136 * FileDialog.cs: Use text of File name combobox to determine what
1137 files the user selected. Added tokenizer to parse the file names.
1140 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
1142 * Control.cs: We can't call SizeFromClientSize in the constructor,
1143 but we still need to do the same work, so make an internal version.
1146 2007-03-12 Jackson Harper <jackson@ximian.com>
1150 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
1153 2007-03-12 Jackson Harper <jackson@ximian.com>
1155 * TextBoxBase.cs: Now that the handles are being created a little
1156 later, we need to make sure that the document is recalculated when
1157 the handle is created.
1159 2007-03-11 Everaldo Canuto <everaldo@simios.org>
1161 * Theme.cs: GetLinkFont abstract method added.
1164 - Remove CalcTrimRectangle, no longer needed.
1165 - Factor also remove, position issues must be fixed in libgdiplus.
1166 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
1167 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
1168 care about font used to draw links.
1169 - Set TabStop to true when control is "Selectable", control is selectable
1170 when have one or more links. Fixes #80501 (test case is also added).
1171 - Set the LinkArea values after links change, LinkArea values must be
1172 based in first link position and size, a test case was created.
1173 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
1174 the attribute must be true LinkArea.Length > 0. The same was applied to
1177 * ThemeWin32Classic.cs:
1178 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
1180 - Use CPDrawStringDisabled to draw disabled text instead of hard code
1182 - Draw focus rectangle for every parts focused, including parts that
1183 is on another line, its because regions returns various rectangles
1184 and not only one. Needed to mimic W32 look.
1185 - Uses Graphics.Clip to delimite region painted, it mean that now
1186 complete text is passed to DrawString, with this we solve layout
1187 issues without create another text renderer.
1188 - Uses Region.Intersect to fix some flickers problems, now only needed
1189 parts will redrawed.
1190 - This changes fixes #79614 and some other unreported issues, on Linux
1191 some layout problems still remain, the problem is under
1192 MeasureCharacterRanges but it is an libgdiplus bug.
1194 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
1196 * TextBox.cs: Set for foreground color.
1197 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
1198 this is already done in Control.
1200 2007-03-10 Jackson Harper <jackson@ximian.com>
1202 * TextBox.cs: Set the background color, but reset the
1203 backcolor_set flag which is just for the user setting the
1206 2007-03-09 Chris Toshok <toshok@ximian.com>
1208 * Control.cs: really remove the call to XplatUI.SetVisible from
1209 CreateHandle(), like I said I did when I merged the branch.
1211 * BindingSource.cs: implement some more of this stuff.
1213 2007-03-09 Jackson Harper <jackson@ximian.com>
1215 * TextBox.cs: Don't explicitly set our background colors.
1217 * TextBoxBase.cs: Draw readonly text.
1218 - Need to invalidate when backcolor or readonly are changed.
1220 2007-03-09 Jackson Harper <jackson@ximian.com>
1222 * TextBoxBase.cs: Don't set the forecolor until the handle is
1224 - Do not raise OnPaint, and removed some old debug code.
1226 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
1228 * ScrollableControl.cs: Fix mouse wheel scrolling.
1230 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
1232 * Control.cs: Wire up MouseDoubleClick event.
1234 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
1236 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
1238 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
1239 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
1240 item is added. This logic was moved to ToolStrip.OnItemAdded.
1243 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1245 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
1247 2007-03-08 Jackson Harper <jackson@ximian.com>
1249 * TreeView.cs: Show the correct image for selected node (this used
1250 to work, not sure how the code got deleted). Also implemented 2.0 feature
1253 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1256 * ListViewItem.cs: Cache index in items when retrieving them
1259 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
1261 * ToolStripItem.cs: Don't return the explicit_size if we are using
1262 AutoSize. Fixes invalidation issue when user has explicitly set a
1263 size and has AutoSize = true.
1265 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
1267 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
1269 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1271 * DataGridView.cs: Remove event handler from DataView when a
1272 DataTable is used as DataSource.
1274 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
1276 * Control.cs: Create internal setter for client_size to allow it to be
1277 set without triggering resizing code.
1278 * Form.cs: Calculate client_size in constructor, only change client_size
1279 in FormBorderStyle property if Handle has been created.
1280 [Fixes #80574, #80791]
1282 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
1284 * SystemInformation.cs: Add TerminalServerSession.
1286 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
1288 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
1291 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
1293 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
1294 Handle before we were supposed to. Now checks ActivateOnShow property
1296 * Control.cs: Add internal ActivateOnShow property.
1297 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
1299 * Hwnd.cs Remove no longer needed no_activate field.
1301 2007-03-07 Jackson Harper <jackson@ximian.com>
1303 * TreeView.cs: Implement owner draw tree nodes. And a couple more
1305 * DrawTreeNodeEventHandler.cs: Add
1306 * DrawTreeNodeEventArgs.cs: Correct default value.
1308 2007-03-07 Chris Toshok <toshok@ximian.com>
1310 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
1311 to be called before NativeWindow.WndProc. Put the HwndCreating
1312 magic there to hook up our Hwnd's to handles.
1314 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
1316 * DataGridView.cs: Comment out debug code.
1318 2007-03-07 Chris Toshok <toshok@ximian.com>
1320 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
1321 to make the rest of the world happy]
1323 * Control.cs (CreateHandle): there's no need to call
1324 XplatUI.SetVisible here, it's effectively done by
1325 XplatUI.CreateWindow on X now, and always was on windows.
1327 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
1328 shortcircuit out of the loop if we have a message loop running on
1331 [Changelog from merge]
1333 2007-03-05 Chris Toshok <toshok@ximian.com>
1335 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
1336 causes handle creation.
1338 2007-02-28 Chris Toshok <toshok@ximian.com>
1340 * ApplicationContext.cs: Add a flag to make sure we only raise the
1341 ThreadExit event once (ExitThreadCore can be indirectly called
1342 from a few places.) I don't like the additional flag, but it
1343 makes the event ordering/count correct.
1345 * Application.cs (MWFThread.LoopCount): don't use an enumerator
1346 without locking the collection. An enumerator doesn't give us any
1347 protection from modification anyway. Lock the thread hash and
1348 replace the complicated enumerator loop with a foreach.
1349 (Application.CloseForms): make internal so it can be called from
1350 ApplicationContext. This should probably be moved to MWFThread.
1351 (Application.ExitThread): don't call MWFThread.Current.Exit()
1352 here. just call XplatUI.PostQuitMessage. We'll exit the thread
1353 when the runloop exits (in response to WM_QUIT.)
1354 (Application.RunLoop): add a comment (and check) for
1355 context.MainForm being null after setting context.MainForm.Visible
1356 = true. This is because you're perfectly free to dispose of a
1357 form in VisibilityChanged. Chalk this up to another case where we
1358 need to synchronously generate WM_ACTIVATE from Control.Show.
1359 Also, add handling for WM_QUIT here so we'll exit the loop.
1361 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
1362 fact that we don't wait if we're only unmapping the whole_window
1363 makes me a bit nervous, but it doesn't seem to cause any problems
1366 also, add a comment about the stupid, broken and wrong resetting
1367 of PostQuitState to false in GetMessage().
1369 In PostQuitMessage, we need to add a WM_QUIT message to the
1370 thread's queue. We use the FosterParent to get the right
1373 Lastly, in SetVisible, we need to unmap both windows, since the
1374 waiting only happens when we're unmapping the client window. So
1375 now, the *only* time we unmap just the whole_window is in the hack
1376 for resizing a control to 0,0.
1378 2007-02-21 Chris Toshok <toshok@ximian.com>
1380 * Application.cs (CloseForms): rewrite this so that we don't
1381 modify the list while we're traversing it.
1383 2007-02-20 Chris Toshok <toshok@ximian.com>
1385 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
1387 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
1388 handle is created. otherwise we'll create it here.
1389 (VerticalScrollEvent): same here.
1391 * Application.cs (CloseForms): call Form.Dispose, don't post
1394 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
1395 here. Application should Dispose() of the Form's.
1397 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
1399 (MapWindow,UnmapWindow): only actually do the waiting for
1400 SHOWWINDOW if the control we're dealing with is a Form.
1401 (CreateWindow): if the control isn't a form, SendMessage
1402 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
1404 * Control.cs (SetVisibleCore): always use is_visible here, not
1405 value. If we use value, we can end up re-setting something
1406 visible if, for instance, you do Control.Hide() in a delegate
1407 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
1409 2007-02-20 Chris Toshok <toshok@ximian.com>
1411 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
1412 the message we need. PeekMessage returning false should not be a
1413 condition under which we exit the loop.
1415 2007-02-15 Chris Toshok <toshok@ximian.com>
1417 * Control.cs (Refresh): only refresh if we've got a handle and are
1419 (CreateAccessibilityInstance): CreateControl() here.
1420 (UpdateChildrenZOrder): complicate the code loop even more by
1421 taking into account controls that haven't had their handle
1422 created, and those that aren't visible. But on the flip side,
1423 simplify the code by splitting it into two loops. one which
1424 builds up the list of child controls we're interested in, and the
1425 other that sets the z order of those children.
1427 2007-02-14 Chris Toshok <toshok@ximian.com>
1429 * Control.cs: Control.AccessibilityObject causes the control to be
1430 created, not just the handle.
1432 2007-02-14 Chris Toshok <toshok@ximian.com>
1434 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
1435 problem on X where a window might have its handle created (and be
1436 visible) while the window is unmapped. calling XConfigureWindow
1437 on an unmapped window is bad, and generates X errors.
1439 2007-02-13 Chris Toshok <toshok@ximian.com>
1441 * Control.cs (CreateHandle): don't loop over our children setting
1442 their parent here. do it when in WndProc when we're shown.
1443 (UpdateChildrenZOrder): make this internal so we can call it from
1445 (WndProc): for WM_SHOWWINDOW, reparent the child control after
1446 creating its handle. Also, remove the calls to PerformLayout from
1447 here. they're done in ScrollableControl.OnVisibleChanged. Also,
1448 OnVisibleChanged only seems to be called directly here for the
1449 toplevel control. It's propagated down the window hierarchy by
1450 calls to child.OnParentVisibleChanged.
1451 (OnVisibleChanged): don't do layout here - it's done (oddly
1452 enough, according to a glance at stack traces on ms.net..) in
1455 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
1456 z order of our children before calling PerformLayout.
1458 2007-02-12 Chris Toshok <toshok@ximian.com>
1460 [big change, fixes #80020]
1462 * AccessibleObject.cs: we need to make owner internal again to fix
1463 some of ControlAccessibleObject.
1465 * Control.cs: lots of changes here. add support for WM_CREATE,
1466 for which we generate OnHandleCreated. Remove the OnHandleCreated
1467 call from CreateHandle. Also add support for WM_SHOWWINDOW where
1468 we create child controls. leave the MonoTODO's for the
1469 accessibility calls, but fix the exceptions so the tests pass.
1471 Add the InvalidOperationExceptions to Invoke methods, and remove a
1472 couple of InvokeInternal methods we aren't using.
1474 Also, add a couple of CreateHandle calls in places where we know
1475 the handles are being created but our code doesn't reference
1478 Make SetVisibleCore call OnVisibleChange if the handle isn't
1479 created. If the handle is created, we rely on XplatUI.SetVisible
1480 generating the event synchronously.
1482 Lastly, make sure we don't use this.Handle inside CreateHandle,
1483 because we can call back into client (and that code can dispose of
1486 * XplatUIStructs.cs: misc/cleanup.
1488 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
1489 although we don't populate the wParam properly.
1490 (CreateWindow): generate WM_CREATE.
1491 (MapWindow,UnmapWindow): make these calls synchronous, at great
1492 performance expense (particularly in the unmap case), to match
1495 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
1497 (set_MdiParent): don't recreate the handle unless it's been
1500 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
1503 * NativeWindow.cs: this is probably the weirdest part of the
1504 patch. We need a way to link up the window being created to the
1505 WM_CREATE message. Since we can only be creating one window at a
1506 time on a given thread, we keep track of a per-thread reference so
1507 we can dispatch it properly. We also need to keep track of the
1508 Hwnd currently being created so that the win32 backend doesn't
1511 * XplatUIWin32.cs: a similar change to the one we made in
1514 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
1516 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
1517 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
1518 to draw the menu shortcut string.
1520 2007-03-07 Jackson Harper <jackson@ximian.com>
1522 * TreeNode.cs: Add the 2.0 collapse method.
1524 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1526 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
1528 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1530 * DataGridView.cs: Change DataSource will clear column and row
1531 lists. Call Invalidate() to reflect DataSource change.
1533 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1535 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
1536 and a new row is added to it.
1538 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
1540 * DataGridView.cs: Add columns when DataSource is en empty list but
1541 is a System.Data.DataView (from a System.Data.DataTable).
1543 2007-03-06 Andreia Gaita <avidigal@novell.com>
1545 * Label.cs: Implement AutoEllipsis (2.0)
1547 2007-03-06 Jackson Harper <jackson@ximian.com>
1549 * TreeView.cs: Implement 2.0 TopNode setter property.
1550 - Use a local var instead of the skipped_nodes field for computing
1551 how many nodes to skip. Otherwise we won't scroll because the
1552 valuechanged handler checks if skipped_nodes is equal to the new
1554 - Implement 2.0 Sort method.
1555 - Add useless 2.0 DoubleBuffer property
1556 - Implement 2.0 LineColors property. Lets you change the color of
1557 the lines in the tree. Terribly useful for creating non cohesive
1559 - Implement 2.0 image key feature.
1561 2007-03-06 Jackson Harper <jackson@ximian.com>
1563 * TreeView.cs: We can't get the bounds of the nodes before raising
1564 the AfterSelect event, because that event could change the node's
1565 bounds (scrolling, font change, etc).
1567 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1569 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
1570 * Form.cs: Don't recreate handle when creating FormWindowManager, just
1571 update window styles. In CreateParams us VisibleInternal instead of
1572 VIsible to get the actual visible flag set for this form.
1573 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
1574 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
1575 handle the case when the form is already maximized, in which case
1576 it should be restored. Fixes #81043.
1578 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
1580 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
1582 2007-03-05 Jackson Harper <jackson@ximian.com>
1584 * TreeViewHitTestInfo.cs: implement.
1586 2007-03-05 Jackson Harper <jackson@ximian.com>
1588 * InternalWindowManager.cs: class status fix.
1590 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1592 * InternalWindowManager.cs: All windows that have a parent
1593 are confined to their parent when they're being moved.
1596 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
1598 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
1599 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
1601 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1603 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
1604 buttons invisible before deciding which ones should be visible
1605 (fixes minimize/maximize buttons showing up in toolwindows). Remove
1607 * InternalWindowManager.cs: Remove warning.
1609 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1611 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
1612 to throw an InvalidOperationException is virtual mode is being used.
1614 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
1616 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
1617 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
1618 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
1619 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
1620 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
1621 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
1623 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1625 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
1626 driver.KeyboardDelay from XplatUI.KeyboardDelay
1627 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
1628 (patch by Sergey Volk)
1630 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1632 * ToolWindowManager.cs: Added, contains logic for
1634 * CreateParams.cs: Add a few helper methods and an
1635 internal variable to know which control the CreateParams belongs
1637 * Control.cs: Call Form.ChangingParent when the
1638 parent is about to be changed.
1639 * XplatUIX11.cs: DeriveStyles (): Set
1640 caption_height for all windows that have captions and are children.
1641 Update to use ToolWindowManager instead of InternalWindowManager
1643 * XplatUIWin32.cs: Set fake window styles for all
1644 windows that have window managers.
1645 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
1646 now duplicated for mdi windows when they are
1647 maximized, first for the buttons the window itself has, then for
1648 the buttons that appear in the menu bar. Makes things a little
1649 easier). Updated UpdateWindowDecorations, SetWindowState and the
1650 mouse eventhandlers accordingly.
1651 * Form.cs: Add ChangingParent (), contains the
1652 logic of what should happen when the parent changes. In MdiParent
1653 don't set things that ChangingParent () is doing. When handling
1654 WM_CLOSE, we can close the form if there are any other modal forms
1655 and the current form is a descendent of the modal form.
1656 * InternalWindowManager.cs: A lot of refactoring,
1657 the title buttons are now extracted to a separate container class
1658 that takes care of all button code (clicks, tooltips, etc). Moved
1659 Iconic|Maximized|Normal Bounds properties to this class from
1660 MdiWindowManager, so that the window state logic can succeed for
1661 other than mdi wm's. Implemented general window state change logic.
1662 Moved CreateButtons to ThemeWin32Classic, since the theme might
1663 override which buttons are available when as well as the exact
1665 * FormWindowManager.cs: Added, contains logic for
1667 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
1668 which buttons go where (and if they are at all visible).
1669 Removed special handling of maximized windows, since they aren't special.
1670 In DrawManagedWindowDecorations don't try to draw the text if it is
1672 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
1673 use whatever the wm gives us.
1675 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
1677 * ButtonBase.cs: Add 2.0 properties.
1678 * Button.cs: Override Draw for 2.0.
1679 * Control.cs: Add Entered and Selected properties.
1680 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
1681 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
1682 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
1684 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
1686 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
1688 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
1690 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
1692 * XplatUIWin32.cs: Register a new class with Windows each time we get
1693 a new ClassStyle. [Fixes bugs #79432, #80817]
1694 * Controls.cs: Set the correct ClassStyle in CreateParams.
1695 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
1697 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
1699 * ListView.cs: Add fireEvent argument to ReorderColumn since the
1700 ColumnReordered event must not be signaled when modifying DisplayIndex
1701 of a ColumnHeader. Added internal ReorderColumns method which takes
1702 care of drawing, and updating the internal DisplayIndex of the
1703 ColumnHeader. Added AddColumn method which is invoked from
1704 ColumnHeaderCollection when adding or inserting columns, and which
1705 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
1706 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
1707 Recalculated dispay indices after removing a ColumnHeader.
1708 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
1709 match MS. Allows last display index to be returned after ListView
1710 is disposed. Update actual location of ColumnHeader when DisplayIndex
1713 2007-03-01 Everaldo Canuto <everaldo@simios.org>
1715 * LinkLabel.cs: Improve CalcTrimRectangle.
1717 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
1719 2007-02-28 Everaldo Canuto <everaldo@simios.org>
1721 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
1722 get rectangle as a result value.
1724 2007-02-28 Everaldo Canuto <everaldo@simios.org>
1726 * LinkLabel.cs: Theres some diferences between rectangle return from
1727 MeasureCharacterRanges and the area used for DrawString to fix this
1728 CalcMeasurementFactor method was created, it calcules the diferences
1729 to be use later to adjust rectangle in draw operations. Fixes #80473.
1731 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
1732 to adjust draw rectangle.
1734 2007-02-27 Everaldo Canuto <everaldo@simios.org>
1736 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
1737 text and some other changes to reduce and optimize source code.
1739 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
1741 * RadioButton.cs: Implement 2.0 event.
1742 * RelatedImageListAttribute.cs: Implement new class.
1744 2007-02-27 Everaldo Canuto <everaldo@simios.org>
1746 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
1748 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
1750 * CheckBox.cs: Implement 2.0 functionality.
1752 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1754 * ListView.cs: Refactor Add and AddRange methods of
1755 ListViewItemCollection, to not update the ListView
1756 everytime an item is added in AddRange. Also move the update
1757 code to a new CollectionChanged method, and call it
1758 from other methods that need it as well (this should also fix some
1759 bugs when Sorting is used).
1761 2007-02-27 Jackson Harper <jackson@ximian.com>
1763 * TextControl.cs: Try to never let the caret stay in a non-text
1765 * TextBoxBase.cs: Update the caret.
1767 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
1769 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
1770 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
1771 delete POINT structure, duplicate of one in XplatUIStructs.
1772 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
1774 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
1776 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
1777 edit box since otherwise the Label would immediately be set (even if
1778 the user did not modify the label). In OnKeyDown set Handled to true
1779 if Return or Escape was pressed. In ColumnHeaderCollection unlink
1780 columns that are to be removed. In ListViewItemCollection unlink items
1781 that are to be removed.
1783 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
1785 * TextRenderer.cs: If we set a GDI clip region, we need to clear
1786 it when we are done. [Fixes bug #80949]
1788 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1790 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
1792 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1794 * ListView.cs: I forgot to commit the changes for ListView
1795 in my previous patch.
1797 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1799 * Clipboard.cs: Partially implement an overload of SetDataObject.
1800 * Form.cs: Implement ShowWithoutActivation.
1801 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
1803 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1805 This is a first set of changes to make the Virtual mode works,
1806 by avoiding the retrieval of ListViewItem instances until
1809 * ListView.cs: Store item position in the ListView instead of the
1810 ListViewItem, this way we don't request the Bounds property of
1811 ListViewItem inside the ListView calculations, as well as cache the item
1812 size in item_size field. Store indexes instead of ListViewItem
1813 instances in the matrix used by icon view. Add a ItemMatrixLocation
1814 struct to hold the row and col info of the matrix info.
1816 * ListViewItem.cs: Don't store the location anymore, and only cache
1817 the rectangles for GetBounds. Use the ListView.GetItemLocation
1818 method to retrieve the actual location.
1820 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1822 * TextRenderer.cs: Add clipping support, thanks to George.
1825 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
1827 * ListViewItem.cs: Cancel label edit when item is removed from
1829 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
1830 event before the edit textbox is displayed. Added CancelEdit method
1831 which is used end to editing while ignoring the value set by the
1832 user. In EndEdit, set focus to ListView to avoid losing focus to
1833 other controls. In ListViewItemCollection.Clear, cancel editing of
1834 any of the items. In Remove, cancel editing of item being removed.
1835 Avoid udplicate code by modifing RemoveAt to invoke Remove.
1837 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
1839 * FileDialog.cs: Update FSEntry when move is successful. Fixes
1842 2007-02-23 Everaldo Canuto <everaldo@simios.org>
1844 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
1845 compatible with non X11 systems. Fixes #80901.
1847 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
1849 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
1850 whether the item should be unselected and reselect. We do no want this
1851 when we're starting to edit the label. Do not fire the
1852 SelectedIndexChanged event from ListView when its already been fired
1853 by modifying ListViewItem.Selected. Fixes bug #80943.
1855 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1857 * TextRenderer.cs: Previos commit logic was backwards.
1859 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
1861 * TextRenderer.cs: Don't add padding on MeasureText if we were
1862 sent the NoPadding flag.
1864 2007-02-23 Everaldo Canuto <everaldo@simios.org>
1866 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
1867 after DrawButton. To prevent image overlaps button borders SetClip and
1868 ResetClip added before and after draw image. Fixes #79129.
1870 2007-02-23 Everaldo Canuto <everaldo@simios.org>
1872 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
1873 window size, it fix problem when you run under win32 that theres
1874 Size diferent than ClientSize. Also fix controls size and positions
1875 to mimic Win32. Fixes #80837.
1877 2007-02-22 Everaldo Canuto <everaldo@simios.org>
1879 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
1880 menu area to fix some problems for non X11 systems. Fixes #80613.
1882 2007-02-22 Jackson Harper <jackson@ximian.com>
1884 * TreeNode.cs: When a node is expanded, set its is_expanded flag
1885 even if it doesn't have any children.
1887 2007-02-22 Jackson Harper <jackson@ximian.com>
1889 * TreeView.cs: Calculate the top node 'on the fly', this
1890 eliminates issues where you need to click on the tree before
1891 scrolling it to get the top node computed correctly.
1892 * TreeNodeCollection.cs: We don't need to mess with the top node
1895 2007-02-22 Jackson Harper <jackson@ximian.com>
1897 * DataGridViewRow.cs: Fix typo so height can actually be set.
1898 Patch by Peter Grimm.
1900 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
1902 * FileDialog.cs: Fixed support for renaming files and directories.
1903 * ListView.cs: Do not lose focus when edit is canceled. Process
1904 Escape as regular key (to prevent closing of dialogs).
1906 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
1908 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
1909 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
1911 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
1913 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
1914 did not modify label.
1915 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
1916 modified the text. Reset Label when user presses Escape in edit mode.
1917 Move focus to ListView after having cancelled or finished editing the
1920 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
1922 * ComboBox.cs: Removed unnecessary initializations. Marked items field
1923 private. Clear textbox when Text is set to null and SelectedIndex is
1925 * FileDialog.cs: Removed unnecessary initializations. Removed
1926 workarounds for ComboBox bugs that are now fixed. Modified
1927 DefaultExt, InitialDirectory and Title property to change null to
1928 zero-length string in getters. Avoid directly accessing fields.
1930 2007-02-20 Jackson Harper <jackson@ximian.com>
1932 * TextControl.cs: Remove RecalAlignments call, that was some
1933 debugging leftovers.
1934 - Don't use the line indent when we shouldn't.
1935 * RichTextBox.cs: Add support for paragraph left indents.
1937 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1939 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
1940 Seems like the class status pages doesn't catch params differences.
1942 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
1944 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
1946 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
1948 * ComboBox.cs: Setting Text should have no effect if item text of
1949 selected item exactly matches value. First lookup text using
1950 case-sensitive comparison, and fallback to case-insensitive comparison.
1951 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
1952 allow startIndex to be last index. Changed ArgumentOutOfRangeException
1953 paramname to match MS. Restart from first item if string is not found
1954 after startIndex. Fixed paramname of ArgumentNullException that is
1955 thrown for null value in ObjectCollection.Contains.
1957 2007-02-19 Everaldo Canuto <everaldo@simios.org>
1959 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
1961 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1963 * ListControl.cs: In SelectedValue use value.Equals to compare for
1964 equality instead of ==, otherwise it will fail for strings.
1967 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1969 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
1970 since the caret won't show up unless ShowSelection is true.
1973 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1975 * Application.cs: When disabling all forms but the main form, do not
1976 disable any descendants of the main form (such as mdi children or
1977 other parented forms). Fixes #80822 on Windows.
1978 * Form.cs: If we have a parent, set the WS_CHILD style.
1979 * Control.cs: Update the window styles if the control whose parent has
1980 changed is a form (the WS_CHILD style has to be switched).
1982 2007-02-19 Everaldo Canuto <everaldo@simios.org>
1984 * XplatUIStructs.cs: MsgUIState structure added.
1986 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
1988 * FileDialog.cs: Removed need for separate fileName field. On 2.0
1989 profile, do not check filename(s) for illegal character if filename(s)
1990 were set non-interactively but always check on 1.0 profile. Fixed NRE
1991 in DefaultExt and only strip off first leading dot. Improve exception
1992 message when invalid Filter is set. Do not ignore InitialDirectory if
1993 it does no exist. Store specified Title, and if empty use default
1994 title (depending on type of dialog). Added an internal DialogTitle
1995 property for retrieving dialog title. Fixed logic of displayed dir to
1996 more closely match MS. Avoid setting ComboBox.Text to a zero-length
1997 string as its buggy.
1998 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
1999 FileName is a zero-length string (it can never be null). Override
2000 DialogTitle property to set default title of dialog box.
2001 * SaveFileDialog.cs: Override DialogTitle property to set default
2002 title of dialog box.
2004 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
2006 * FileDialog.cs: Modify default text of filename and filetype labels
2007 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
2008 after we've updated the SelectedIndex. Fixes part of bug #80887.
2009 * SaveFileDialog.cs: Set text of filetype label.
2011 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2013 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
2014 label field. Needed by latest Jackson's fixes for ListView.
2016 2007-02-16 Andreia Gaita <avidigal@novell.com>
2018 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
2019 print preview images.
2021 2007-02-16 Jackson Harper <jackson@ximian.com>
2023 * ListView.cs: Make AfterLabelEdit work correctly.
2024 * FileDialog.cs: After changing the name of the folder, we have to
2025 make sure that it is created, or that we pop up an error because
2028 2007-02-16 Jackson Harper <jackson@ximian.com>
2030 * X11Dnd.cs: Implement aliases on mime handlers, so things like
2031 System.String are mapped to text.
2032 - Handle dataobjects, getting all the possible formats out of them
2033 - We dont need the drag event args before we give feedback. This
2034 allows feedback cursors to be immediate before selections have
2037 2007-02-16 Jackson Harper <jackson@ximian.com>
2039 * TextBoxBase.cs: Modified the method for inserting images to
2040 taking a line and position instead of tag and position.
2041 * RichTextBox.cs: Handle PngBlip data by inserting the png image
2043 * TextControl.cs: Allow images to be inserted as the first tag of
2045 - Fix some off by one issues when we assume the first tag is a
2046 text tag, not an image tag.
2048 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2050 * ListView.cs: Set focus to ListView when ItemControl gets a
2051 WM_RBUTTONDOWN message, to mimic .Net behaviour.
2052 Fixes part of #80467.
2054 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
2056 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
2057 validate Text input (if null or empty string reset Value to default
2058 value). Fixes #80830.
2060 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2062 * ListView.cs: Set owner as null for columns and items when
2063 Dispose is invoked. Fixes #80607.
2065 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
2067 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
2068 showing DropDowns, don't show a Grip when doing Flow layout.
2069 [This fixes the toolbox in PDN 2.72.]
2070 * ToolStripItem.cs: Add Anchor property and some internal properties to
2071 reduces needed changes to FlowLayout.
2072 * ToolStripOverflow.cs: Remove unused variable.
2073 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
2074 use it in the layout calculations.
2076 2007-02-13 Everaldo Canuto <everaldo@simios.org>
2078 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
2081 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
2084 2007-02-13 Everaldo Canuto <everaldo@simios.org>
2086 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
2087 MeasureString format, it can make button very large in some cases, it is
2088 strange but is what win32 do.
2090 2007-02-13 Everaldo Canuto <everaldo@simios.org>
2092 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
2095 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
2096 rendering, the value is based on MenuAccessKeysUnderlined.
2098 2007-02-13 Everaldo Canuto <everaldo@simios.org>
2100 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
2103 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
2105 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
2106 and use MenuAccessKeysUnderlined instead.
2108 2007-02-13 Andreia Gaita <avidigal@novell.com>
2110 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
2111 A selected control would not get a Focus call if:
2112 - the default active control of the container is the same as
2113 the one that was selected
2114 - we are switching from one container to another
2115 Under these conditions, the container being selected already has
2116 an active_control, which is the same as the one being activated,
2117 so set_ActiveControl would always return and not send the Focus
2118 call. Fix to check if the currently active control of the container
2119 is actually focused.
2121 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
2123 * StatusStrip.cs: Implement the spring layout.
2124 * ToolStripControlHost.cs: Make sure the hosted control's visibility
2125 always matches the host.
2126 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
2129 2007-02-13 Andreia Gaita <avidigal@novell.com>
2131 * Control.cs: Code reorganization only.
2132 - Reorganize the WndProc cases so that each case has it's own handling method,
2133 to help with the no-line-numbering stack traces.
2134 - Formatting changes (it's vstudio's fault, really :p)
2136 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2138 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
2139 Thread.CurrentUICulture to match DateTimePicker's (and MS)
2142 2007-02-12 Jackson Harper <jackson@ximian.com>
2145 * TextBox.cs: By default we have a non multiline document
2146 - use the multiline property instead of the internal variable
2147 * TextBoxBase.cs: Treat multiline and non multiline the same in
2149 - Use the documents multiline flag instead of tracking it ourself
2150 * TextControl.cs: Attempt at getting multiline to match MS
2151 behavior. Lines now track an offset, which is either their X or Y
2152 offset depending on whether or not we are in multiline mode.
2153 - Update all the methods to understand that lines have an X value.
2154 - Fix crash in Undo::Duplicate when empty lines are deleted.
2156 2007-02-12 Everaldo Canuto <everaldo@simios.org>
2158 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
2159 code moved to properties PreferredHeight and PreferredWidth. It solve the
2160 all problems when preferred sizes must be recalculated. Fixes #80801.
2162 2007-02-12 Everaldo Canuto <everaldo@simios.org>
2164 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
2165 font height when compatible_text_rendering is false. Partially fix #80801.
2167 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
2169 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
2171 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
2173 * Form.cs: Improved exception messages in ShowDialog.
2175 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
2177 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
2178 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
2179 if not set. Fixes bug #80764. Avoid accessing current_settings field
2182 2007-02-08 Everaldo Canuto <everaldo@simios.org>
2184 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
2187 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
2188 public in 2.0 and for easy maintenance and dont break compatibility it is
2191 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
2193 * ToolStripItem.cs: Implement using images from ImageList.
2195 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2197 * DateTimePicker.cs: Change default date-formatting culture from
2198 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
2199 seems to be the way MS does it.
2201 2007-02-08 Andreia Gaita <avidigal@novell.com>
2203 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
2204 (the 6 was cut off on the right side)
2206 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
2208 * Form.cs: Tell MenuStrips to close when the form is clicked.
2209 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
2210 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
2211 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
2212 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
2213 support for Overflow, where items that do not fit are automatically
2214 reparented to a drop down menu.
2215 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
2216 Also: fixes bug #80747.
2218 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2220 * ComboBox.cs: Remove warning (unused code).
2221 * ScrollableControl.cs: Remove warning for 1.1 profile.
2223 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2225 * Form.cs: Remove a warning.
2227 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
2229 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
2230 'g' specifier, not documented anywhere, but seems to always show up
2231 as a single space (might have something to do with the DateTime 'g'
2232 specifier, which is the era format, but since DateTimePicker can't
2233 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
2234 won't crash if the format has an unmatched quote. Now shows
2235 single-character formats correctly. Fixes #80744.
2237 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
2239 * StatusStrip.cs: Stretch property needs to call base.Stretch,
2240 not this.Stretch to fix stack overflow. [Fixes bug #80760]
2242 2007-02-07 Chris Toshok <toshok@ximian.com>
2244 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
2245 background color. it overwrites the background image we've
2246 already painted. Fixes #80599.
2248 2007-02-07 Chris Toshok <toshok@ximian.com>
2250 * DataGrid.cs: return immediately from Edit() when there are no
2251 columns. Fixes #80662.
2253 2007-02-07 Chris Toshok <toshok@ximian.com>
2255 * MessageBox.cs: fix #80625. don't always show the Help button in
2256 2.0. use the displayHelpButton parameter to determine if we
2257 should show it. Also, make the internal show_help field private.
2259 2007-02-07 Chris Toshok <toshok@ximian.com>
2261 * Control.cs (SetVisibleCore): check in the proposed patch for
2262 80604, and set is_visible before calling CreateControl.
2264 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
2266 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
2267 MonoInternalNote. This is added automagically by VS2005, so let's not crash
2270 2007-02-06 Everaldo Canuto <everaldo@simios.org>
2272 * MenuAPI.cs: hotkey_active internal field added, it is required because
2273 we need to know when hotkeys must be draw, before this change a keystate
2274 Navigating was used but we can have menu in navigating state without
2275 hotkeys. Fixes #80694.
2277 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
2279 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2281 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
2282 corresponding events and methods to be internal for 1.1 profile and
2283 public for 2.0 profile (required by SizeGrip).
2284 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
2285 implicit control list). Don't set the size nor the location of the
2286 SizeGrip anymore as it's not needed.
2287 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
2288 draw directly on the captured control (fixes #80656). Removed
2289 ShowGrip (it wasn't used anywhere), redraw (always true), added
2290 GetDefaultSize and GetDefaultRectangle to calculate defaults.
2291 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
2292 be called from SizeGrip.
2294 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2296 * Timer.cs: Throw ArgumentException if Interval <= 0.
2298 2007-02-05 Jackson Harper <jackson@ximian.com>
2300 * TreeView.cs: We need to check scrollbar visibility when window
2301 visibility is updated, because non visible trees don't ever add
2303 * Cursor.cs: We want the override cursor to be reset to NULL when
2304 we set current cursor to the default cursor.
2306 2007-02-05 Jackson Harper <jackson@ximian.com>
2308 * TextControl.cs: Don't have crlfs when we are non multiline.
2309 - Consolidate the line position.
2311 2007-02-05 Jackson Harper <jackson@ximian.com>
2313 * X11Keyboard.cs: BACK+CTRL gets a special char code.
2315 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
2317 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
2318 handling LeaveNotify->NotifyUngrab in order to send
2319 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
2320 after calling XUngrabPointer, so we call WindowUngrabbed directly
2321 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
2322 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
2323 MouseCaptureChanged correctly. Also create handles if changing
2324 Capture (matches MS behaviour).
2326 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2328 * SizeGrip.cs: Make the last change 2.0 only.
2330 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2332 * SizeGrip.cs: If resizing and the capture is lost, revert any size
2333 changes to initial size (fixes #80597).
2335 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2337 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
2339 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2341 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
2342 background) and only allow dragging if enabled. This way the
2343 sizegrip can be used to fill the open square that otherwise would
2344 have been shown in the bottom right corner of ScrollableControl
2345 when ScrollableControl is not suppose to support sizing.
2346 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
2347 sizegrip is shown and enabled, and hook up with necessary events.
2349 2007-02-01 Chris Toshok <toshok@ximian.com>
2351 * DataGridTextBoxColumn.cs: clean up the
2352 GetFormattedString/GetColumnValueAtRow combination of functions.
2353 Also fix UpdateUI, and the initial state of
2354 IsInEditOrNavigateMode.
2356 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
2357 aren't supposed to scroll the textbox here, we're supposed to
2358 scroll the datagrid.
2360 2007-02-01 Chris Toshok <toshok@ximian.com>
2362 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
2363 setting the position.
2365 2007-02-01 Chris Toshok <toshok@ximian.com>
2367 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
2368 here, since the most recent focus fixes keep us from generating
2369 the Leave event when our textbox gets focus.
2370 (Edit): we should be passing null for the column style's
2371 instantText parameter.
2373 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
2375 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
2376 raised. Fixes menu text/icons not showing up in PDN.
2378 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2380 * Control.cs: Remove code in constructor that makes every
2381 control with WS_CHILD set have initial location -1, -1.
2383 2007-01-31 Jackson Harper <jackson@ximian.com>
2385 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
2387 * XplatUIX11.cs: Give teh keyboard to teh dnd.
2389 2007-01-31 Jackson Harper <jackson@ximian.com>
2391 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
2392 - Remove some debug code.
2394 2007-01-31 Jackson Harper <jackson@ximian.com>
2396 * XplatUIX11.cs: If you set the override cursor during a grab, it
2397 should actually override the grab cursor. This comes into play
2398 when you are setting custom cursors in a DND feedback method.
2400 2007-01-31 Jackson Harper <jackson@ximian.com>
2402 * X11Dnd.cs: Add support for handling the QueryContinue and
2403 GiveFeedback events.
2404 - Cancel drag and drop actions when the escape key is clicked.
2405 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
2406 can handle the ESCAPE key.
2407 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
2408 done when dnd events are continued after the button is released.
2409 - Add a new helper method so that dnd can translate key events.
2411 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
2413 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
2414 make it more obvious what is happening.
2416 2007-01-30 Jackson Harper <jackson@ximian.com>
2418 * XplatUIX11.cs: Don't break when handling button release in drag
2419 and drop operations. We need that BUTTONUP message to get through
2420 so capture is released.
2421 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
2422 this is handled automatically when the mouse is down.
2424 2007-01-30 Jackson Harper <jackson@ximian.com>
2426 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
2427 is closed, so we need to make sure that we aren't changing the
2428 dialog result when the OK (Open or Save) button has been clicked
2429 and we are closing the window ourselves. Note we don't need to
2430 worry about the cache being written in this case, because it was
2431 already done in the previous FilOk call.
2433 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2435 * DateTimePicker.cs: Remove a warning.
2436 * ComboBox.cs: Remove a couple of warnings.
2438 2007-01-29 Chris Toshok <toshok@ximian.com>
2440 * XplatUIX11.cs: don't crash, and remove the icon if the user has
2441 set one, if SetIcon is passed a null icon.
2443 2007-01-29 Andreia Gaita <avidigal@novell.com>
2445 * TextBox.cs: Redraw when the password characters changes
2446 * TextControl.cs: Check if textbox has a password char and draw
2447 a line of password chars instead of the text in the line. LineTag gets
2448 an extra Draw() method which allows document.Draw to override the text
2449 that will be drawn. Removes 1024 char limitation on length of passworded
2452 2007-01-29 Jackson Harper <jackson@ximian.com>
2454 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
2455 single chars is not.
2457 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
2459 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
2460 one pixel. Fix a StackOverflowException caused by an overload wrongly
2463 2007-01-26 Everaldo Canuto <everaldo@simios.org>
2465 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
2466 also remove ProcessArrowKey and put the code inside ProcessKeys.
2468 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
2470 * PaddingConverter.cs: Added.
2472 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
2474 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
2475 ShowPanels is false (fixes #80600). Only draw up to 127 characters
2476 of text (fixes #80601). For panels clip the text to draw to the
2477 panel (fixes #80603).
2479 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
2481 * ComboBox.cs: Fixed implementation of ResetText.
2483 2007-01-25 Jackson Harper <jackson@ximian.com>
2485 * TextControl.cs: For the last char of a line we need to use the
2486 line size, not that chars width, since it won't actually be
2487 computed since the right side of a char is based on the start of
2488 the left side of the next char, and the next char does not exist.
2490 2007-01-25 Chris Toshok <toshok@ximian.com>
2492 * Splitter.cs: fix the new unit tests, and reindent some switch
2495 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2497 * ComboBox.cs: Implemented 2.0 methods and events.
2498 * TextBoxBase.cs: Added OnTextUpdate, so that
2499 ComboBox.ComboTextBox can inform ComboBox of it.
2501 2007-01-25 Jackson Harper <jackson@ximian.com>
2503 * TextControl.cs: Respect ShowSelection when deciding whether or
2504 not to display the caret, this allows comboboxes to have carets
2505 when the combotextbox does not have focus.
2507 2007-01-25 Jackson Harper <jackson@ximian.com>
2509 * TextControl.cs: Add a Suspend/Resume for updating, basically the
2510 same as the Suspend/Resume for recalc, except this will do actual
2512 - New Undo manager, works much like the MS version.
2514 * TextBoxBase.cs: The Cut operation is undoable.
2516 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2518 * TextBoxBase.cs: Don't antialias text. Makes it look way better
2519 on Windows (no difference on Linux).
2521 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2523 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
2524 we don't want to activate any windows. Fixes #79433.
2526 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
2528 - ButtonBase.cs: Fix capitalization of parameter: disposing.
2531 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
2534 - Move to using System.ComponentModel.EventHandlerList
2535 - Replace Refresh with Invalidate
2536 - Clear the mime filecache on closing
2537 - Some other memory reducing work. After beeing closed FD now uses
2538 only about 300 KB for the fdo mime stuff plus the memory of the
2540 * Mime.cs: Changed coding style and removed unnecessary commented
2541 code. Some more memory memory reducing work.
2543 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2545 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
2546 a few other missing 2.0 properties.
2547 * Theme.cs: Added DrawFlatStyleComboBox.
2548 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
2550 2007-01-24 Chris Toshok <toshok@ximian.com>
2552 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
2553 wake_waiting flag, not just when there's data to be read. if we
2554 don't, then future wakeup's won't reach us and we'll be doomed to
2555 wait for the entire 1 second timeout forever (unless there are X
2558 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
2560 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
2561 until you pass Items.Count, not Items.Count - 1 like 1.1.
2563 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
2565 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
2567 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
2569 * ToolStripContainer.cs: The recent Dock fix exposed that I was
2570 adding the panels in the wrong order.
2572 2007-01-24 Jackson Harper <jackson@ximian.com>
2574 * TextBoxBase.cs: When we move the caret we also need to move the
2575 selection, this fixes some random crashing after doing select
2576 text, unselect, delete a char, paste.
2578 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2580 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
2582 2007-01-23 Everaldo Canuto <everaldo@simios.org>
2584 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
2585 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
2586 * ToolBar.cs: Force redraw in BackgroundImageChanged.
2588 2007-01-23 Everaldo Canuto <everaldo@simios.org>
2591 - Implement support for vertical toolbars. Fixes #80539;
2592 - Call LayoutToolBar when resize, it fix some other problems in layout.
2593 - Rename requested_height to requested_size, as we can have width on it
2594 when toolbar is vertical.
2595 - Create a private property "Vertical" that uses Dock to verify when
2596 toolbar is vertical or not.
2597 - Set ControlStyles when change Dock property.
2598 - Refactory in LayoutToolBar to have better variables names and to support
2600 - Fixes default value for ButtonSize when button count is equal zero, size
2601 must be (39, 36) test case writed.
2603 2007-01-23 Chris Toshok <toshok@ximian.com>
2605 * Control.cs: fix the checks so that they work correctly for mdi
2608 2007-01-23 Chris Toshok <toshok@ximian.com>
2610 * Control.cs: ControlCollection seems to have super-secret
2611 abstraction breaking knowledge of Mdi containers. allow MdiClient
2612 to add toplevel controls.
2614 2007-01-23 Chris Toshok <toshok@ximian.com>
2616 * Control.cs: throw an ArgumentException if a toplevel control is
2617 added to our control collection from ControlCollection.Add, as
2618 well as from ControlCollection.IList.Add. This fixes the
2619 ControlSetTopLevelTest.TestTopLevelAdd unit test.
2621 Also, in ControlCollection.IList.Add, don't through an
2622 ArgumentNullException, throw an ArgumentException, when value ==
2623 null. This matches MS.
2625 2007-01-23 Chris Toshok <toshok@ximian.com>
2627 * BindingSource.cs: initial, incomplete, implementation of
2630 2007-01-23 Jackson Harper <jackson@ximian.com>
2633 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
2634 that I can fix a broken unit test (TextBoxTest::ClearUndo)
2636 2007-01-23 Everaldo Canuto <everaldo@simios.org>
2638 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
2640 2007-01-23 Andreia Gaita <avidigal@novell.com>
2642 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
2643 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
2644 IndexOfKey() for 2.0
2646 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2648 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
2649 to prevent it from changing z-order.
2650 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
2651 leave UI updates in MdiWindowManager.
2652 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
2653 1 sized (NC handling goes weird on Linux otherwise).
2654 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
2655 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
2656 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
2657 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
2658 and SetWindowState(s) to allow for changing the size of an activated child
2659 before activating it (reduces a lot of flicker).
2661 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
2663 * Form.cs: Changing FormBorderStyle has different semantics based
2664 on whether the Form is visible or not. If not visible, don't change
2665 the Size. But InvalidateNC needs to be called to force the window
2666 to pick up the changes and redraw itself. [Fixes bug #80574]
2668 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
2671 * ContainerControl.cs: ProcessCmdKey.
2672 * ErrorProvider.cs: new constructor.
2673 * Form.cs: fix AutoValidateEvent compiler warning.
2674 * Label.cs: fix OnAutoSizeChanged compiler warning.
2675 * MenuStrip.cs: fix CanOverflow compiler warning.
2676 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
2677 * TextBox.cs: Dispose.
2678 * ToolStrip.cs: CanOverflow, re-enable double buffering.
2679 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
2680 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
2681 * ToolStripItem.cs: Overflow, RightToLeft properties.
2683 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
2685 * Form.cs: Move the layout of the main form to MdiWindowManager.
2686 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
2687 do a layout of the main window to update MdiClient's client area to
2688 the right area. Fixes #80533. Remove the calculation of nc size,
2689 it was just wrong and the correct one is the same as for
2690 InternalWindowManager.
2692 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
2694 * Control.cs: Setting Anchor or Dock needs to reset the other
2695 to its default. [Fixes bug #80556]
2697 2007-01-20 Chris Toshok <toshok@ximian.com>
2699 * CheckedListBox.cs: class status changes.
2701 * ScrollableControl.cs: same.
2703 * RichTextBox.cs: same.
2705 * ContainerControl.cs: same.
2707 * ListView.cs: same.
2709 * NotifyIcon.cs: same.
2711 * MenuStrip.cs: same.
2713 * RadioButton.cs: same.
2715 * CheckBox.cs: same.
2717 * PrintPreviewDialog.cs: same.
2721 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
2723 * TreeNode.cs: Apply Alan's patch for Name property.
2725 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
2727 * Form.cs: Implemented SizeGripStyle.
2728 * SizeGrip.cs: Check for minimum and maximum size for the
2729 control being resized and only resize if size has actually
2732 2007-01-19 Chris Toshok <toshok@ximian.com>
2734 * DataGridColumnStyle.cs: stop setting _readonly in the
2735 PropertyDescriptor setter. fixes a unit test failure.
2737 also, rename ParentReadOnly to TableStyleReadOnly, and have it
2738 just consult our table style (if we have one). We don't need to
2739 consult the datagrid readonly attribute because that's passed in
2740 as the _ro arg to Edit. this simplifies things a little.
2742 * DataGrid.cs: use CurrentColumn instead of
2743 current_cell.ColumnNumber just to simplify some of the code.
2745 switch the order of some things in the CurrentCell setter to keep
2746 the previous cell from getting a textbox again -
2747 EnsureCellVisibility causes scrolling to happen, which calls Edit.
2748 So we need to set the new cell before calling it.
2750 call Edit in OnEnter, as does Microsoft.
2752 also, make sure the current table style isn't the one we create
2753 initially when checking to see if it's different than the one
2754 we're setting it to in BindColumns (this fixes #80421).
2756 * GridTableStylesCollection.cs: table styles can have "" for a
2757 mapping name. part of the fix for #80421.
2759 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
2762 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2764 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
2765 and less GDI object leaky-er.
2767 2007-01-18 Andreia Gaita <avidigal@novell.com>
2769 * LinkLabel.cs: Add opaque control style
2771 2007-01-18 Jackson Harper <jackson@ximian.com>
2773 * TextControl.cs: Calculate width properly.
2774 - Don't store the tag's X offset, this can be figured out very
2776 - When getting the caret tag make sure to get the last empty tag.
2778 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2780 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
2783 * Control.cs: Color.Empty shouldn't count for previous transparent
2786 2007-01-18 Jackson Harper <jackson@ximian.com>
2790 * TextControl.cs: Starting to merge in some pieces of my older
2791 undo work. Basically just some slight cleanup of the undo API.
2793 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
2795 * TrackBar.cs: Fix signature of RightToLeftLayout.
2796 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
2797 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
2798 * Application.cs: Implemented UseWaitCursor.
2800 2007-01-18 Jackson Harper <jackson@ximian.com>
2802 * TextControl.cs: We can't skip tags if any part of the tag is
2805 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2807 * ContainerControl.cs: Override OnLayout.
2809 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2811 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
2813 * ContextMenuStrip.cs: Make sure context menu is shown on top of
2816 2007-01-18 Chris Toshok <toshok@ximian.com>
2818 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
2819 (leftover from the container_selected days, I'd wager). fixes bug
2822 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2824 * Control.cs: Apply patch from George to fix the new testcase on
2825 bug #80451. We can't just check for Color.Transparent, we need
2826 to check if the back color's alpha channel is < 255.
2828 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
2830 * Form.cs: Move setting show_icon = true to before the constructor
2831 so that the base constructor has that information when it calculates
2832 the form's size. Was causing forms to be (6, 6) bigger than they
2833 were supposed to be. Thanks for catching this Rolf!
2835 2007-01-18 Jackson Harper <jackson@ximian.com>
2837 * TextControl.cs: When replacing a selection we need to invalidate
2838 from the initial selection start, because selection start is moved
2839 to the end of the replacement.
2841 2007-01-18 Andreia Gaita <avidigal@novell.com>
2843 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
2845 2007-01-18 Chris Toshok <toshok@ximian.com>
2847 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
2850 2007-01-17 Everaldo Canuto <everaldo@simios.org>
2852 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
2853 layout methods and properties from ToolBarButton must be available
2854 into ToolBarButtonInfo.
2856 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
2858 * Control.cs: If the control has a transparent background, we
2859 need to refresh it when it moves and when it's parent's background
2860 image changes. [Fixes bug #80451]
2862 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
2864 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
2866 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
2868 * XplatUIWin32.cs: Implement proper double buffering for Windows.
2869 [Fixes bug #80447, and probably speeds up things as well]
2871 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2873 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
2874 * XplatUIWin32.cs: We need to recalculate NC size after changing
2875 window style to toolwindow (otherwise the client rectangle will be
2876 3 pixels to small for some reason).
2877 * MdiWindowManager.cs: Revert NC size calculations to match how
2878 they are calculated only based on window styles (to match
2879 Win32AdjustWindowRectEx, since otherwise when setting size or
2880 location, Control will call Win32AdjustWindowRectEx to update client
2881 size, which would provoke a paint, then we'd get a NCCALCSIZE and
2882 calculate a different value of client size causing another paint
2884 * InternalWindowManager.cs: When moving or resizing a window only
2885 update size or location if they actually changed.
2886 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
2887 (seems to match Windows behaviour better). Cleaned up
2888 ManagedWindowDecorations to draw what's needed and nothing else
2889 (was drawing borders and lines where they shouldn't be)
2890 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
2891 (style = 0xFFFF) and takes into account caption height when
2892 calculating window rectangle.
2894 2007-01-16 Everaldo Canuto <everaldo@simios.org>
2896 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
2897 can be added to toolbar multiple times, we need to maintain a list of
2898 button information for each positions.
2900 2007-01-16 Everaldo Canuto <everaldo@simios.org>
2902 * ToolBar.cs: Some small stetic changes.
2904 2007-01-16 Jackson Harper <jackson@ximian.com>
2906 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
2907 that allow us to have nested recalc = false blocks.
2908 - Add paste support for images in the RichTextBox
2909 * RichTextBox.cs: flush the text after the color is changed, so
2910 the change takes effect.
2912 - Some extra debugging info
2913 * TextControl.cs: Tags no longer track their length, it is just
2914 computed from the next tags length, this makes things a little
2915 simpler and reduces places that we have to track length changes.
2916 - Refactored the linetag class a little so we could make it
2917 a base class for different kinds of tags
2918 - Created a image tag, a tag that can have a single image inserted
2920 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
2921 that we can call suspend multiple times.
2922 - Add some debugging methods
2924 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2926 * MdiClient.cs: Add ActivatePreviousChild for
2927 mdi child window navigation.
2928 * Form.cs: Use MdiClient.ActivateNextChild/
2929 ActivatePreviousChild instead of Form.SelectNextControl
2930 to select the next/previous child since
2931 SelectNextControl doesn't do it in the same order
2932 as mdi children should do it.
2934 2007-01-16 Chris Toshok <toshok@ximian.com>
2936 * Control.cs: remove container_selected field.
2938 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2940 * MdiClient.cs: Update main form's ActiveChild when
2941 updating keyboard focus for the mdi child.
2943 2007-01-16 Jonathan Pobst <jpobst@novell.com>
2945 * Control.cs: PreferredSize fix.
2947 * Form.cs: Add several 2.0 events, properties, and methods.
2949 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
2951 * Form.cs: Provide meaningful message when MdiParent is assigned a
2952 Form that is not an MdiContainer.
2954 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2956 * MdiClient.cs: Update main form's ActiveChild when
2957 activating a mdi child.
2959 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2961 * MdiWindowManager.cs: Fix NRE when merging menus and main form
2962 doesn't have a menu.
2964 * Form.cs: Request NCRecalc after creating a mdi child window.
2965 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
2966 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
2968 * MdiClient.cs: Add new method SendFocusToActiveChild that either
2969 sends keyboard focus to the active child, or to the MdiClient
2970 if there are no child forms.
2972 2007-01-15 Chris Toshok <toshok@ximian.com>
2974 * ListView.cs: drop the *Internal overrides, just do our work in
2975 ItemControl's WndProc instead.
2977 * UpDownBase.cs: a few large changes. Fix up the Selectable state
2978 of the various controls, and forward the events properly (in the
2979 same manner as MS) from the textbox to the UpDown. Also the
2980 ActiveControl of the UpDownBase gets set properly now. Finally,
2981 we don't call UpdateEditText from the ctor. Fixes bug #79957.
2983 * NumericUpDown.cs: set Text in the ctor.
2985 * DomainUpDown.cs: call UpdateEditText in the ctor.
2987 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
2988 so even a Selectable = false textbox can be focused if you click
2991 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
2992 just add their handling in their respective WndProc's. Also add
2993 an explicit FocusInternal method that doesn't consult CanFocus
2994 before calling Select(this).
2996 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
2997 do our work in WndProc instead.
2999 * TabControl.cs: same.
3001 * ComboBox.cs: same.
3003 2007-01-15 Everaldo Canuto <everaldo@simios.org>
3005 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
3008 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3011 * ThemeWin32Classic.cs: Don't draw the item text outside
3012 item bounds in Details view, as well as use trimming.
3015 2007-01-15 Jonathan Pobst <jpobst@novell.com>
3017 * Form.cs: Implement Form.ShowIcon.
3019 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
3020 null, which when combined with the DlgModalFrame window style removes
3021 the icon from the title bar.
3023 2007-01-15 Jonathan Pobst <jpobst@novell.com>
3025 * Control.cs: Call OnMouseClick after OnClick. (2.0)
3027 2007-01-15 Everaldo Canuto <everaldo@simios.org>
3029 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
3030 menu when mdi child windows theres a menu, uses insert to get icon
3031 at first position. Partially fix #80006.
3033 2007-01-15 Jonathan Pobst <jpobst@novell.com>
3035 * Clipboard.cs: Implement 2.0 methods.
3037 2007-01-15 Everaldo Canuto <everaldo@simios.org>
3039 * Menu.cs: Implement Insert method of MenuItemCollection class
3042 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3044 * ListView.cs: Implement 2.0 FindItemWithText method.
3046 2007-01-11 Everaldo Canuto <everaldo@simios.org>
3048 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
3049 to calculate menu bar size. Fixes #80290.
3051 2007-01-11 Everaldo Canuto <everaldo@simios.org>
3053 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
3055 2007-01-11 Chris Toshok <toshok@ximian.com>
3057 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
3060 2007-01-11 Chris Toshok <toshok@ximian.com>
3062 * LinkLabel.cs: make sure to call base.Select in our Select method
3063 if it turns out we're going to be selected (i.e. if we have a link
3064 that is going to receive focus). That way our container's
3065 ActiveControl is updated properly.
3067 2007-01-11 Chris Toshok <toshok@ximian.com>
3069 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
3070 they have 1 or more links. this fixes the crash gert reported.
3072 2007-01-11 Andreia Gaita <avidigal@novell.com>
3074 * ContainerControl.cs: Remove ContainerSelected flag, not needed
3077 * Control.cs (Controls.Add): Check if control to be added to the collection
3078 is a top level control, and throw an ArgumentException if it is.
3079 Remove ContainerSelectedFlag, not needed anymore.
3081 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
3082 top most control doesn't activate the form. This fixes a problem in the
3083 MessageBox, where the default button wouldn't get focus because the form
3084 was activated before being Loaded - when the Owner is set, SetTopMost is
3085 called, and it would activate it.
3087 2007-01-11 Jonathan Pobst <jpobst@novell.com>
3089 * Button.cs: When clicked and setting the parent form's DialogResult,
3090 use FindForm instead of Parent, since parent could be a container
3091 control and not the Form. Fixes bug #80495.
3093 2007-01-10 Chris Toshok <toshok@ximian.com>
3095 * Form.cs: move the call to SendControlFocus into the same
3098 2007-01-10 Chris Toshok <toshok@ximian.com>
3100 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
3101 It breaks in the face of the new ActiveControl stuff, and should
3104 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
3105 activecontrol's focus if it's not already set, after we set
3106 ActiveControl, but before we call OnActivated. Re-fixes #79667
3107 after the previous focus/active control fixes regressed it.
3109 * Control.cs: reindent some code.
3111 2007-01-10 Chris Toshok <toshok@ximian.com>
3113 * Splitter.cs: clearing some outstanding changes from my tree.
3114 Replace all accesses (not writes) to the internal dock_style field
3115 with the Dock property.
3117 2007-01-10 Chris Toshok <toshok@ximian.com>
3119 * Control.cs: make FireEnter, FireLeave, FireValidating, and
3120 FireValidated virtual.
3122 * Form.cs: override and don't chain up calls to FireEnter and
3125 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3127 * ListView.cs: Add more text padding space when using
3128 auto resize for columns (the previous value didn't work fine).
3130 * ThemeWin32Classic.cs: Update text position inside columns,
3131 to match the appeareance of .Net.
3133 * ColumnHeader.cs: When using auto resize, only the Width should
3134 depend on the sub items, not the Height. Also, set width after
3135 auto resizing (the value of Width should never remain as -1 or -2).
3137 2007-01-10 Chris Toshok <toshok@ximian.com>
3139 * Application.cs: fix compilation errors when debug is enabled.
3141 2007-01-10 Chris Toshok <toshok@ximian.com>
3143 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
3144 add some nice ascii art pictures and explanation of the process).
3145 (GetMostDeeplyNestedActiveControl): new utility function we need
3146 because our ActiveControl can refer to a child container with its
3149 * Form.cs (OnActivated): remove the call to SelectActiveControl
3150 from here, since you can override this method and not chain up,
3151 and winforms still sets the active control.
3152 (OnCreateControl): also remove the unnecessary SelectActiveControl
3154 (WndProc): it's actually called from the WM_ACTIVATE block, just
3155 before calling OnActivated.
3157 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
3158 inside the else. the ActiveControl setter will end up setting
3159 focus on @control. This keeps us from setting it again (and
3160 generating an extra LostFocus/GotFocus pair).
3161 (Select (bool, bool)): reindent.
3163 2007-01-10 Jonathan Pobst <jpobst@novell.com>
3165 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
3166 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
3167 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
3168 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
3169 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
3170 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
3171 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
3172 ToolStripTextBox.cs: Another wave of corcompare work.
3174 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3176 * ColumnHeader.cs: Implement 2.0 AutoResize method using
3179 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
3180 methods by callling Column.AutoResize method on columns.
3182 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
3184 * Control.cs: Provide proper implementations of PreferredSize
3185 and GetPreferredSize (2.0).
3187 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
3189 * Form.cs: Remove one character (!) to make my previous OnClosing
3190 stuff work for modal windows like MessageBox.
3192 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3195 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
3196 ListView.Columns to get the last displayed column. Fixes #80452.
3198 2007-01-09 Everaldo Canuto <everaldo@simios.org>
3200 * Label.cs, LinkLabel.cs: Source code identation fixes.
3202 2007-01-08 Everaldo Canuto <everaldo@simios.org>
3204 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
3205 we dont need to invalidate only borders because when we invalidate four
3206 border lines the invalidate's generates a complete redraw of button,
3207 because it now invalidate a complete rect some other redraws operations
3208 are fixed. Fixes #80196.
3210 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
3211 Remove ToolBarInvalidateEntireButton as it is not used.
3213 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
3215 * Form.cs: Make sure that both OnClosing and OnFormClosing are
3216 called for 2.0 profile.
3217 * CloseReason.cs: Make class internal for 1.1.
3219 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
3221 * ToolStripManager.cs: Implement FindToolStrip functionality.
3222 * ToolStrip.cs: Register and unregister with ToolStripManager.
3224 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
3226 * Control.cs: This was messy. 2.0 moves much of ControlCollection
3227 to ArrangedElementCollection. Implemented this with as few #if's as
3228 possible (which is still too many).
3230 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
3232 * Control.cs: Implement SizeFromClientSize() [2.0].
3234 2007-01-07 Everaldo Canuto <everaldo@simios.org>
3236 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
3237 use Theme.BorderSize to calculate area instead of static value 1,
3238 by the way use new BorderStaticSize instead Border3DSize when
3239 border_static is true. Fixes #79537.
3241 * XplatUIOSX.cs: Fix call to GetClientRectangle.
3243 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
3246 2007-01-06 Everaldo Canuto <everaldo@simios.org>
3248 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
3250 2007-01-06 Everaldo Canuto <everaldo@simios.org>
3252 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
3253 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
3256 - border_static field added, it will used to define when a control
3257 theres 3D border but it must be static (thin).
3258 - In GetWindowRectangle use Theme.BorderSize to calculate area
3259 instead of static value 1, by the way use new BorderStaticSize instead
3260 Border3DSize when border_static is true.
3262 * XplatUIX11.cs, XplatUIOSX.cs:
3263 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
3265 * Theme.cs: BorderStaticSize field added.
3267 2007-01-05 Everaldo Canuto <everaldo@simios.org>
3269 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
3271 2007-01-05 Everaldo Canuto <everaldo@simios.org>
3273 * Control.cs: Under InternalBorderStyle call RecreateHangle to
3274 mimic same behavior than win32 that set border only in CreateParams,
3275 it fix problems under CreateParams overrides. Fix #79442 and partial
3278 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
3279 of thi control you must call recreate handle.
3281 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
3282 need to do anything as RecreateHangle will take care about borders.
3284 2007-01-05 Mike Kestner <mkestner@novell.com>
3286 * ListView.cs: hack to eliminate Lost/Got focus notifications on
3287 cycles between the ItemControl and parent. Fixes #80388.
3289 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
3291 * Control.cs: Lazy init layout engine. Do not directly use
3292 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
3294 2007-01-05 Chris Toshok <toshok@ximian.com>
3296 * DataGrid.cs: don't forceably rebind columns in SetDataSource
3297 unless our list manager has changed (i.e. unless we have reason to
3298 believe our columns have changed). Fixes #80422.
3300 also, disable the call do BindColumns in
3301 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
3302 1.1 the event isn't raised in response to a column addition on a
3305 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
3307 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
3308 that inheritors can not call it if they choose. Fixes bug #80456.
3310 2007-01-05 Andreia Gaita <avidigal@novell.com>
3312 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
3313 doesn't blow up with a null exception on marshalling.
3315 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
3317 * Control.cs: Implement several 2.0 protected properties and methods.
3318 Ensure that all necessary events are being called when properties
3321 2007-01-05 Mike Kestner <mkestner@novell.com>
3323 * ListView.cs: implement PgUp/PgDn for Details view. Also
3324 fixes First/LastVisibleIndex to use the item_control.ClientRect
3325 instead of the parent control. Fixes #80378.
3327 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
3329 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
3330 determine whether to use yard-pound or not (bug #78399).
3332 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
3334 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
3335 problems. So it is time to bring back the old popupbutton colors.
3337 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3340 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
3341 property by using the internal information of the
3342 columns order in ListView.
3344 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
3346 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
3347 Add 2.0 Tag properties.
3349 * LinkArea.cs: Add 2.0 ToString method.
3351 2007-01-03 Chris Toshok <toshok@ximian.com>
3353 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
3354 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
3355 when we're editing, which fixes #80047.
3357 2007-01-03 Chris Toshok <toshok@ximian.com>
3359 * Form.cs: apply patch contributed by Dominik Seichter. fixes
3362 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
3364 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
3365 property and implementation.
3367 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
3368 for MdiWindowListItem property.
3370 * ToolStripDropDown.cs: Don't consider hidden menu items while
3371 laying out the menu.
3373 2007-01-03 Andreia Gaita <avidigal@novell.com>
3375 * SendKeys.cs: window handle is not needed in win32, so just
3376 get the active window for X after parsing keys and don't use
3377 it when building the message; it is passed by parameter to the
3378 Xplat method and used there to build the message instead. Also,
3379 wait for events to be processed on SendWait, as opposed to Send,
3380 which doesn't wait :) Playing with threads and Send() completely
3381 hangs on ms.net, only SendWait() works.
3384 X11Display.cs: Check for valid window handle.
3386 2007-01-03 Jackson Harper <jackson@ximian.com>
3388 * TextControl.cs: Need to prevent wrap calculations when replacing
3389 text (this was there before i removed it accidently).
3390 - Don't update the cursor during the positioning, just set it to
3391 selection_start at the end of the operaion.
3393 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
3396 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
3398 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
3400 * MonthCalendar.cs: Added Click and DoubleClick events again,
3401 but this time they only hide Control's Click and DoubleClick.
3403 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
3405 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
3406 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
3408 2007-01-02 Jackson Harper <jackson@ximian.com>
3410 * TextBoxBase.cs: We move the caret with the split now, so we
3411 don't need to explicitly move the caret after splitting. This
3412 fixes the caret bumping down an extra line on Enter.
3414 2007-01-02 Miguel de Icaza <miguel@novell.com>
3416 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
3419 * ScrollableControl.cs: Add Scroll event.
3421 2007-01-02 Mike Kestner <mkestner@novell.com>
3423 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
3424 to fix all hdr height padding codepaths. Fixes #80207.
3426 2007-01-02 Chris Toshok <toshok@ximian.com>
3428 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
3429 setting it to the Control defaults anyway, and it being after the
3430 Dock set was screwing up layout.
3431 (set_Dock): don't short circuit out of setting base.Dock. Also,
3432 no need to call UpdateStatusBar here, as it'll be re-layed out if
3435 2007-01-02 Mike Kestner <mkestner@novell.com>
3437 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
3438 to header height for width == -1. Fixes the rest of #80207.
3440 2007-01-02 Mike Kestner <mkestner@novell.com>
3442 * ListView.cs: rework the mouse event forwarding everaldo added
3443 to translate the coordinates to the parent control not
3444 raise the parent events until after we've done our work. Hover
3445 needs more work, in the case where HoverSelection is on, because
3446 the item control receives more than one MouseHover per Enter
3447 event, so we need to ensure only the "first" hover gets forwarded.
3448 Opening a minor bug for that.
3450 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
3452 * CheckedListBox.cs: Fixed SelectionMode to match MS.
3453 * ListControl.cs: Implemented AllowSelection property. Removed extra
3455 * ListBox.cs: Implemented AllowSelection property.
3457 2007-01-02 Everaldo Canuto <everaldo@simios.org>
3459 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
3460 SelectedItem, it prevent for errors when you must disable item
3461 before perform click. Fixes #80409.
3463 2007-01-02 Everaldo Canuto <everaldo@simios.org>
3465 * MenuAPI.cs: Prevent second level and beyond submenus to close
3466 until first level when move out side of popup.
3468 2007-01-02 Everaldo Canuto <everaldo@simios.org>
3471 - Down submenu positin in three pixels.
3472 - Closes sub menu when mouse leaves from menu. Fixes #80402.
3474 2007-01-02 Everaldo Canuto <everaldo@simios.org>
3476 * ThemeWin32Classic.cs:
3477 - Fix popup menu size adding one pixel on the top.
3478 - Down menu item border from two to one to mimic Win32.
3479 - Some source identation fixes.
3481 2007-01-01 Everaldo Canuto <everaldo@simios.org>
3483 * ThemeWin32Classic.cs: Use float numbers to calculate size and
3484 position of menu arrows, it fix wrong arrow size.
3486 2007-01-01 Everaldo Canuto <everaldo@simios.org>
3488 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
3489 instead of line, it simplify draw operation and fix it using 3D
3490 borders to mimic Win32.
3492 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
3494 * StatusStrip.cs: Add implementation of the sizing grip.
3496 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
3497 StatusStrip rendering.
3499 2006-12-31 Chris Toshok <toshok@ximian.com>
3501 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
3502 override the layout style (anchor/dock) of the control. assign to
3503 Dock instead. Fixes bug #80416.
3505 * ToolStrip.cs: same.
3507 2006-12-31 Andreia Gaita <avidigal@novell.com>
3509 * ContainerControl.cs: Use ContainerSelected flag to check if
3510 a Container is directly selected, or if Select is called on a
3511 non-container. If a container is directly selected, focus events
3512 should not be raised.
3513 Apply #80411 patch to throw exception on set_ActiveControl if
3514 control is the same as the current one.
3516 * Control.cs: Use ContainerSelected flag (see above).
3517 Add invalidation check to raise event but not invalidate if
3522 2006-12-31 Everaldo Canuto <everaldo@simios.org>
3524 * MenuAPI.cs: After click, dont close popup menu when menu is
3525 ContextMenu. Fixes #80399.
3527 2006-12-30 Chris Toshok <toshok@ximian.com>
3529 * ContainerControl.cs: make sure we throw the exception if the
3530 container control doesn't contain the control we're setting
3533 2006-12-30 Chris Toshok <toshok@ximian.com>
3535 * Control.cs (SetTopLevel): fix the exception raised by
3536 SetTopLevel for child controls.
3537 (set_Anchor): call UpdateDistances when setting the anchor type.
3538 This fixes bug #80336.
3540 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
3542 * Theme.cs: For now, revert back to 8pt font.
3544 2006-12-29 Everaldo Canuto <everaldo@simios.org>
3546 * MenuAPI.cs: Set popup as active when open a ContextMenu.
3549 2006-12-29 Chris Toshok <toshok@ximian.com>
3551 * Control.cs: reorder the code in OnResize to give the same event
3554 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3556 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
3557 TileHorizontally and TileVertically.
3559 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
3561 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
3562 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
3563 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
3564 Corrected copyright and email adress.
3566 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
3568 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
3569 of Exception in FullPath property if no TreeView is associated with
3572 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
3574 * Theme.cs: Marked default_font as private, and initialize it in ctor
3575 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
3577 * ThemeGtk.cs: Removed default_font intialization.
3578 * ThemeWin32Classic.cs: Removed default_font initialization.
3580 2006-12-28 Chris Toshok <toshok@ximian.com>
3582 * Control.cs: fix a couple of place where we were creating handles
3583 more aggressively than we should be. Fixes ControlRefresh unit
3586 2006-12-28 Chris Toshok <toshok@ximian.com>
3588 * Control.cs: contrary to what the comment said, Control.Dock does
3589 not supercede Control.Anchor - the last one you assign to decides
3590 the layout behavior. so we need to keep track of which was the
3591 last set. Also, fix some of the affected property arguments in
3592 PerformLayout calls, and remove an redundant parent.PerformLayout
3595 Add a VisibleInternal property, which returns is_visible. We
3596 can/should get rid of all the usage of this field elsewhere.
3598 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3600 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
3601 control style, not DoubleBuffer. Added UseDoubleBuffering property
3602 that indicates whether doublebuffering is enabled and supported.
3603 (comment from and code based on Gert Driesen's patch in #80324).
3606 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3608 * Control.cs: Fixed a NRE.
3610 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3612 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
3615 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3617 * Control.cs: Rewrote double buffering, now a seperate
3618 class handles all the buffering, no Graphics is disposed of
3619 until the painting is finished (earlier implementation
3620 would crash if the control was resized in the OnPaint,
3621 since it would cause the double buffer to be recreated
3622 and the old one disposed), a separate Graphics is
3623 created for every paint (MS behaviour and anyways the state
3624 of the Graphics would have to be saved and restored otherwise)
3628 * XplatUI.cs: Added and implemented GetOffscreenGraphics
3629 so that we can get the graphics for the back buffer without
3630 having to create a new one and remove the offscreen_dc parameter
3631 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
3633 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3635 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
3636 Also make virtual all the key-related methods.
3638 * ListViewItem.cs: Make virtual the key related methods for
3639 ListViewSubItemCollection.
3641 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3645 * ThemeWin32Classic.cs:
3646 * Theme.cs: Initial support for Tile view in ListView,
3647 as well as the implementation of the required bits for it (Item
3650 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3652 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
3653 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
3654 Provide useful exception messages.
3656 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
3658 * TrackBar.cs: Remove a warning.
3659 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
3660 when used by DateTimePicker, fixes #80287. This also requires that
3661 MonthCalendar implements it's own drawing for the yearly updown control,
3662 otherwise the Capture tracking would be too complicated. Removed the Click
3663 and DoubleClick events (according to comments they were hiding the base class
3664 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
3665 raise these events, not that they cannot be raised. It is possible to raise
3666 them by calling OnClick and OnDoubleClick). Added two internal fields in
3667 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
3668 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
3669 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
3670 event, no longer needed.
3672 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3674 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
3675 true if new value differs from current value.
3677 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3679 * Control.cs: ControlCollection.Count must be public. Fixed build of
3682 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3684 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
3686 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
3688 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
3690 2006-12-26 Everaldo Canuto <everaldo@simios.org>
3692 * Control.cs: Invalidates control including when Width and Height is
3693 equal zero or is not visible, only Paint event must be care about
3696 2006-12-26 Chris Toshok <toshok@ximian.com>
3698 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
3699 more corcompare work.
3701 * DataGridView.cs: fix compiler warning.
3703 * ColumnHeader.cs: some corcompare work, and also take the
3704 opportunity to make the internal fields private.
3706 * ListView.cs: fix the fallout from the above field change.
3708 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
3710 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
3711 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
3712 ToolStripTextBox.cs: Fixes to events and corcompare.
3714 2006-12-26 Everaldo Canuto <everaldo@simios.org>
3716 * ListView.cs: Call owner.OnMousexx event to propagate events from
3717 item to ListView. Fixes #80367.
3719 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
3721 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
3722 if value is less than one. ItemHeight should not be set to a value
3723 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
3726 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
3728 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
3729 * ToolStripStatusLabel.cs: Add Spring for Moma.
3731 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
3733 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
3734 Fixed code formatting. Removed debug code.
3735 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
3737 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
3739 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
3740 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
3741 ArgumentOutOfRangeException if ColumnCount is negative. In
3742 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
3743 less than 4 or higher than 32768.
3744 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
3745 Fixed FormatProvider to return CurrentCulture unless explicitly set.
3746 Fixed IsFormatProviderDefault to return true if FormatProvider has
3747 not been explicitly set.
3749 2006-12-25 Chris Toshok <toshok@ximian.com>
3751 * Application.cs: add a couple of 2.0 events.
3753 2006-12-25 Chris Toshok <toshok@ximian.com>
3755 * Control.cs: fix compiler warning.
3757 * AxHost.cs: corcompare fixes.
3759 * ApplicationContext.cs: corcompare fixes.
3761 2006-12-25 Chris Toshok <toshok@ximian.com>
3763 * Control.cs: only update dist_right/dist_bottom if the
3764 width/height is > 0. this fixes anchored controls being resized
3765 smaller until they disappear and then resized larger again.
3767 2006-12-25 Chris Toshok <toshok@ximian.com>
3769 * Control.cs: a couple of changes. Remove dist_left and dist_top,
3770 since they're nothing more than X/Left and Y/Top, respectively.
3772 Also, move back to a per-control Bitmap/Graphics for
3773 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
3774 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
3777 2006-12-25 Miguel de Icaza <miguel@novell.com>
3779 * MessageBox.cs: Implemented overload that takes a new "bool
3780 displayHelpButton" by adding a new internal field "show_help".
3781 When clicked this will raise the HelpRequested on the owner or the
3784 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
3785 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
3787 * ListView.cs: Add support ColumnWidthChanged and
3788 ColumnWidthChanging.
3790 Add support for ColumnReordered event.
3791 (ReorderColumn): Add NET_2_0 specific support for cancelling the
3796 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
3798 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
3800 2006-12-24 Chris Toshok <toshok@ximian.com>
3802 * GridTablesFactory.cs: 2.0 corcompare work.
3804 * ToolStripContainer.cs: add "override" to
3805 ContextMenuStripChanged, and remove the local event object.
3807 * ToolStripDropDown.cs: same with a couple properties.
3809 * ToolStripPanel.cs: same with AutoSizeChanged event.
3811 * TextBoxBase.cs: add "override" to AutoSizeChanged.
3813 * Form.cs: add the remaining 2.0 events, and do some corcompare
3816 * DateTimePicker.cs: add "new" to padding.
3818 * ButtonBase.cs: use Control's use_compatible_text_rendering.
3820 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
3822 * DataGridView.cs: PaddingChanged is overridden.
3824 2006-12-24 Chris Toshok <toshok@ximian.com>
3826 * Control.cs: corecompare work here too.
3828 * DataGridViewElement.cs, DataGridView.cs,
3829 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
3830 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
3831 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
3832 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
3835 2006-12-24 Miguel de Icaza <miguel@novell.com>
3837 * Control.cs: Switched the error message on the console for a
3838 todo. A review of the code will have to cope with this anyways
3839 (since its a large feature, it is in our radar) and it was
3840 producing too much output when running PDN.
3842 * ToolStripComboBox.cs: Set the text when the SelectedIndex
3843 changes. Applications depend on this (PDN 2.72)
3845 2006-12-23 Chris Toshok <toshok@ximian.com>
3847 * TableLayoutSettings.cs: finish up the corcompare work for this
3850 2006-12-23 Chris Toshok <toshok@ximian.com>
3852 * Control.cs: make SetImplicitBounds internal, do some futzing
3853 with LayoutEngine so that it's available in 1.1, and remove the
3854 entire duplicated code mess from PerformLayout. Use
3855 System.Windows.Forms.Layout.DefaultLayout instead.
3857 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
3859 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
3861 * Form.cs: Add MainMenuStrip property.
3863 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
3865 * Control.cs: Add ContextMenuStrip property and implementation.
3866 Fix ContextMenu implementation to show menu centered on control when
3867 activated using the keyboard instead of showing at screen (0,0).
3869 * ToolStripDropDown.cs: Fix needed overload of Show ().
3871 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3873 * Menu.cs: Name property added for 2.0 profile.
3875 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3877 * Menu.cs: Update information about FindMenuItem, method to be
3880 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3882 * MenuAPI.cs: When deselect items deselect also selected subitems.
3884 2006-12-23 Everaldo Canuto <everaldo@simios.org>
3886 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
3887 FindSubItemByCoord to found itens that is not active, also an
3888 cheking added to FindSubItemByCoord to search for items only
3889 in visible popup windows. Fixes #80274.
3891 2006-12-22 Everaldo Canuto <everaldo@simios.org>
3893 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
3894 internal property, it be care about change ExStyle.
3896 2006-12-22 Andreia Gaita <avidigal@novell.com>
3898 * ContainerControl.cs: set activeControl for parent forms up the
3899 tree when the new activecontrol is a container.
3900 When validating the active control, if it is a container, also
3901 raise up the validation for it's active control. Fixes #80280
3903 * Control.cs: Add internal property flag and check to prevent
3904 Focus events from getting raised when Select() is called for
3905 a ContainerControl. There are still too many focus events being
3906 raised at the moment though.
3907 Cleaned up the code a bit.
3909 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
3911 * Control.cs: Added all missing 2.0 events.and
3912 fixed a couple of corcompare issues.
3913 * TrackBar.cs: Implemented missing 2.0 bits.
3915 * DateTimePicker.cs,
3916 * MdiClient.cs: Fixed some corcompare issues.
3918 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
3920 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
3921 SplitterPanel.cs: corecompare work.
3923 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
3925 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
3926 Clean up warnings for BackgroundImageChanged and PaddingChanged
3927 events now that they are implemented in Control.cs.
3929 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
3931 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
3933 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
3934 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
3935 of TableLayoutPanel and supporting cast.
3937 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
3940 - GrabWindow now confines the mouse pointer to the confine window.
3941 - Added Win32ClipCursor and Win32GetClipCursor.
3944 - Added CaptureWithConfine to be able to capture and confine
3947 * InternalWindowManager.cs:
3948 - Call CaptureWithConfine instead of Capture if we're an
3949 MdiChild (fixes #79982).
3951 2006-12-21 Chris Toshok <toshok@ximian.com>
3953 * DataGrid.cs: guard against the initial state of selection, where
3954 selection_start == -1. make sure we only select from index >= 0.
3957 2006-12-21 Chris Toshok <toshok@ximian.com>
3959 * Control.cs: we don't need to be so draconian with
3960 UpdateDistances, and we thusly don't need to call it before
3961 calling PerformLayout in ResumeLayout. Fixes bug #80289.
3963 2006-12-21 Daniel Nauck <dna@mono-project.de>
3966 TextBox.cs: Implemented AutoComplete properties.
3968 2006-12-20 Chris Toshok <toshok@ximian.com>
3970 * DataGridView*.cs: some corecompare work.
3972 2006-12-20 Jackson Harper <jackson@ximian.com>
3974 * XplatUIX11.cs: We need to hide the caret when deleting it,
3975 otherwise you get carets left lying around everywhere.
3976 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
3977 prevents getting some weird half drawn caret tracers when
3979 * TextControl.cs: Attempt to reduce the number of times we need to
3982 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
3984 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
3986 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
3988 * DateTimePicker.cs:
3989 - Implemented missing 2.0 bits.
3990 - Changed some default values to match MS.
3992 2006-12-20 Jackson Harper <jackson@ximian.com>
3994 * TextBoxBase.cs: When changing the font across the document we
3995 can't recalculate after changing each line, since that will cahnge
3997 - PreferredHeight is a little different than i thought.
3998 - When backspacing, move the caret before we do the actual char
3999 delete, because when that delete crosses a wrap boundary the
4000 positional information will change.
4002 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4004 * Control.cs: Added some missing 2.0 bits:
4005 BackgroundImageLayout, BackgroundImageLayoutChanged,
4006 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
4007 add IBindableComponent and IDropTarget implementation.
4010 - Added all missing 2.0 features:
4011 BackgroundImageLayout, RightToLeftLayout,
4012 OnHandleDestroyed, RightToLeftLayoutChanged,
4013 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
4015 - Rewrote all the BoldDate code, it was completely broken.
4016 - Fixed all the tests (the tests can now be re-enabled, the
4017 problems were not with the tests, but with the control, it was
4020 * DateTimePicker.cs: Changed the location where the
4021 MonthCalendar is shown.
4023 2006-12-19 Chris Toshok <toshok@ximian.com>
4025 * DataGridView.cs: add IDropTarget implementation.
4027 * ToolStripPanel.cs: add IDropTarget implementation.
4029 2006-12-19 Jackson Harper <jackson@ximian.com>
4031 * TextControl.cs: soft now means something different than what it
4032 used to mean, we want to move the caret regardless of whether or
4033 not this break was soft (would we really have wanted the caret
4034 to not move with the break in the old context?)
4035 * TreeView.cs: Make sure we factor in the vert scrollbar when
4036 calculating the horizontal scrollbar's maximum.
4038 2006-12-19 Andreia Gaita <avidigal@novell.org>
4040 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
4041 check for keywords in alternate casing, close bug #80049.
4043 2006-12-19 Chris Toshok <toshok@ximian.com>
4045 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
4046 methods (which all do nothing).
4048 * IDropTarget.cs: add the 4 missing methods.
4050 2006-12-19 Chris Toshok <toshok@ximian.com>
4052 * TableLayoutRowStyleCollection.cs: corcompare work.
4054 * TableLayoutSettings.cs: same.
4056 * TableLayoutStyle.cs: same.
4058 * TableLayoutColumnStyleCollection.cs: same.
4060 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
4062 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
4063 TableLayoutPanel I've had in my local tree for way too long.
4065 2006-12-19 Miguel de Icaza <miguel@novell.com>
4067 * TableLayoutSettings.cs: Finish the public API (still needs all
4068 the logic to update on changes).
4070 * TableLayoutPanelCellPosition.cs: new file.
4072 * TableLayoutRowStyleCollection.cs,
4073 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
4074 TableLayoutSettings.cs: Track the final 2.0 table api.
4076 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4078 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
4079 and Image List 2.0 members for ColummnHeader.
4080 * ListView.cs: Add key-related 2.0 methods for
4081 ColumnHeaderCollection.
4083 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
4085 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
4086 ArgumentNullException if items argument is null. Ignore null item in
4087 arrays. Removed extra tabs.
4089 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
4091 * MonthCalendar.cs: Fixed InvalidCastException.
4093 2006-12-19 Jackson Harper <jackson@ximian.com>
4095 * TextControl.cs: Don't increment the position here.
4096 - When calculating char positions only add in the line break size
4097 for hard line breaks.
4099 2006-12-19 Andreia Gaita <avidigal@novell.org>
4101 * SendKeys.cs: Changed some things to match ms.net behaviour
4102 when parsing shifted capital letters.
4104 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
4105 Add window handle as parameter to SendInput. X11 needs the
4106 window handle, and the handle being passed to it in the keys
4107 queue is the active control handle (which windows needs), not
4110 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
4111 to support SendKeys on X.
4113 * X11Keyboard: Implement helper method to lookup a linux keycode
4114 given the virtual keycode. Added table of keycode-2-virtualkey
4115 values to support this.
4117 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4119 * ListView.cs: Add support for SelectedIndexCollection
4120 and SelectedItemCollection 2.0 methods. Implement support
4122 * ListViewItem.cs: Add support for ListViewSubItemCollection
4123 2.0 methods. Also, fix an incorrect behavior of AddRange method
4124 (it shouldn't call Clear).
4125 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
4127 2006-12-19 Jackson Harper <jackson@ximian.com>
4130 * TextBoxBase.cs: New args for FormatText
4131 * TextControl.cs: Rewrote the main drawing method, this version
4132 feels a little easier to understand and debug to me. Hopefully it
4134 - Fix FormatText to OR in the new formating values. Added
4135 FormatSpecified param, basically this works in the same way as
4136 BoundsSpecified in Control.
4137 - Set the caret properties when the caret is positioned.
4138 - When wrapping text make sure that we calculate the width of the
4140 - when calculating alignments we might have wrapped down to the
4141 next line, so don't search for an individual tag, search for the
4143 - We need to invalidate the selection area when we replace the
4146 2006-12-19 Daniel Nauck <dna@mono-project.de>
4148 * Application.cs: add Restart () 2.0 support
4150 2006-12-18 Everaldo Canuto <everaldo@simios.org>
4152 * MenuItem.cs: Invalidate menu item rectangle after change Enable
4153 property. Fixes #80268.
4155 2006-12-18 Everaldo Canuto <everaldo@simios.org>
4157 * MenuAPI.cs: Dont trigger select event when closes top menu
4160 2006-12-18 Everaldo Canuto <everaldo@simios.org>
4162 * MenuAPI.cs: When you click on menuitem only trigger onselect
4163 event for top menu itens. Fixes #80271.
4165 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
4167 * MdiWindowManager.cs: Make IconicBounds depend on
4168 the bottom of MdiClient, not the top (fixes #80267)
4170 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
4172 * MdiClient.cs: Added missing 2.0 attribute
4174 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4176 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
4177 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
4179 2006-12-18 Everaldo Canuto <everaldo@simios.org>
4181 * MenuAPI.cs: Fix click when menuitem is not popup,
4182 this regression was caused by last commit (#80272).
4184 2006-12-17 Everaldo Canuto <everaldo@simios.org>
4186 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
4187 fire click event or close menu. Fixes #80272.
4189 2006-12-17 Daniel Nauck <dna@mono-project.de>
4191 * ListViewHitTestInfo.cs: add
4193 2006-12-17 Daniel Nauck <dna@mono-project.de>
4195 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
4196 * FlatButtonAppearance.cs: add
4197 * DockingAttribute.cs: add
4199 2006-12-17 Chris Toshok <toshok@ximian.com>
4201 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
4202 and rebind our columns when it does - this way, if you make
4203 changes to the DataTable (or set the Table attribute on a DataView
4204 after setting it as the DataGrid's DataSource, the changes are
4205 made visible.) Fixes bug #80107.
4207 2006-12-17 Daniel Nauck <dna@mono-project.de>
4209 * ListViewGroup.cs: add internal Location property for layouting.
4210 * Theme.cs: add abstract ListViewGroupHeight function.
4211 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
4213 2006-12-16 Andreia Gaita <avidigal@novell.com>
4215 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
4216 Added reset of selected index to 0 when adding first tab page.
4219 * NumericUpDown.cs: Fix NET_2_0 check
4221 2006-12-16 Daniel Nauck <dna@mono-project.de>
4223 * ListViewGroup.cs: fixed DefaultValueAttribute value
4225 2006-12-16 Daniel Nauck <dna@mono-project.de>
4227 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
4229 2006-12-15 Miguel de Icaza <miguel@novell.com>
4231 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
4232 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
4233 ScrollableControl.cs: Add a handful of methods that are
4236 2006-12-15 Chris Toshok <toshok@ximian.com>
4238 * XplatUIWin32.cs: initial implementation of the Reversible
4239 drawing functions. there are some problems. DrawReversibleFrame
4240 doesn't seem to work at all for Dashed FrameStyle, and in the
4241 Thick case there are drawing errors at the corners (we probably
4242 need to bind Rectangle instead of doing moveto/lineto's.)
4244 2006-12-16 Andreia Gaita <avidigal@novell.com>
4246 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
4247 to send blocks of key messages. Send accumulates keys to send with Flush,
4248 while SendWait sends all keys immediately.
4250 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
4251 XplatUIX11.cs, XplatUIX11-new.cs:
4252 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
4254 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
4256 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
4257 testing for ms.net on this class is very tricky, as the tests run too fast
4258 to allow the hook to release, essentially freezing the keyboard and the
4259 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
4262 2006-12-16 Daniel Nauck <dna@mono-project.de>
4264 * Padding.cs: fixed serialization compability to MS ("_var" field names),
4265 added missing attributes.
4267 2006-12-15 Daniel Nauck <dna@mono-project.de>
4269 * ListViewGroup.cs: Added missing attributes.
4270 * ListViewGroupCollection.cs: Added missing attributes.
4272 2006-12-15 Daniel Nauck <dna@mono-project.de>
4274 * ListViewItem.cs: fixed ListViewSubItem text property.
4276 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4278 * Control.cs: Added missing 2.0 attributes
4280 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4282 * MdiClient.cs: Added missing 2.0 attribute.
4283 * MonthCalendar.cs: Added some missing 2.0 attributes
4286 2006-12-15 Daniel Nauck <dna@mono-project.de>
4288 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
4290 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
4292 * MainMenu.cs: Add the new 2.0 constructor to help out people
4293 using the MainMenu in VS2005.
4295 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4297 * MdiChildContext.cs: Removed it, no longer used.
4298 * MdiClient.cs: Added missing 2.0 attributes.
4300 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4302 * InternalWindowManager.cs: Fix a NullRef with previous
4303 changes for toolwindows.
4305 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4308 - Added AfterTopMostControl to allow for certain controls
4309 to always stay on top when normal controls are brought to
4313 - (DrawInversibleRectangle): Get window rectangle from Win32
4314 in stead of from control, since Win32 doesn't calculate
4315 screen coords correctly from control's Location if it
4316 have docked siblings.
4318 * MdiWindowManager.cs:
4319 - Correct the control menu popup location when clicked on
4320 the maximized form icon. (fixes #80223.1)
4321 - Don't show moving rectangle if mouse hasn't moved from
4322 the original clicked point.
4323 - Removed FormGotFocus handler (not used).
4324 - Calculate the control buttons location from the main
4325 window's size and not client size (fixes #79770).
4326 - Form is now closed when the form icon is double-clicked
4328 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
4330 * InternalWindowManager.cs:
4331 - Moved some MDI-only methods to MdiWindowManager.
4332 - Removed unused properties and methods.
4333 - Unified method naming for methods handling wm messages.
4334 - Moved all message handling to seperate methods for
4337 * ThemeWin32Classic.cs:
4338 - DrawManagedWindowDecorations now draws the title bar
4339 with a gradient brush.
4340 - Add a CPDrawButtonInternal that allows us to specify
4341 light, normal and dark colors for the buttons (control
4342 buttons for MDI children were drawn with the same light
4343 color as the background, therefore loosing the 3D effect).
4346 - Add a CapturedControl property that is used to
4347 determine the control to resize (defaults to parent).
4348 Needed for MdiClient, since its SizeGrip's parent is
4349 MdiClient, but the control to resize is the main form.
4352 - Set SizeGrip's CapturedControl to the main form in order
4353 to resize the main form and not the MdiClient.
4354 - Override AfterTopMostControl to leave the scrollbars
4357 2006-12-15 Daniel Nauck <dna@mono-project.de>
4359 * ListView.cs: fixed ListViewItemCollection AddRange and
4360 implemented ListViewItemCollection AddRange 2.0 support.
4362 2006-12-15 Daniel Nauck <dna@mono-project.de>
4364 * ListViewGroup.cs: Add.
4365 * ListViewGroupCollection.cs: Add
4366 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
4367 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
4368 stub for ImageKey 2.0 support.
4370 2006-12-14 Mike Kestner <mkestner@novell.com>
4372 * ListView.cs: add text padding to the autocalculation for columns
4373 of width -2. Fixes #80207.
4375 2006-12-14 Mike Kestner <mkestner@novell.com>
4377 * ListView.cs: add some index guarding for partial row navigation
4378 logic. Fixes #80250.
4380 2006-12-14 Mike Kestner <mkestner@novell.com>
4382 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
4383 are added or inserted to the collection. Fixes #81099.
4385 2006-12-13 Everaldo Canuto <everaldo@simios.org>
4387 * MenuAPI.cs: Closes menu when right click out side of popup
4388 it fix problem in ContextMenu and MainMenu. Fixes #80252.
4390 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4392 * ListViewItem.cs: Fix dumb error.
4394 * ListView.cs: Add Find and ContainsKey methods in
4395 ListViewItemCollection, and also return true for IsReadOnly
4396 and IsFixedSize (changes for 2.0).
4398 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
4400 * Control.cs: Allow Region to be set to null.
4402 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
4404 * MdiWindowManager.cs: Remove unused (commented out) code.
4405 * Form.cs: When the MdiChild is maximized, the form needs
4406 WM_NCMOUSELEAVE, so request it.
4407 * InternalWindowManager.cs:
4408 - Added tooltips to control buttons.
4409 - Removed duplicated control button handling code.
4410 - Removed unused (commented out) code.
4412 2006-12-12 Everaldo Canuto <everaldo@simios.org>
4414 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
4415 was used because we must set cursor without trigger ChangeCursor event
4416 and without change Cursor control property. Fixes #79963.
4418 2006-12-12 Andreia Gaita <avidigal@novell.com>
4420 * Control.cs: Check if Region setter value is null, and ignore
4422 2006-12-12 Jackson Harper <jackson@ximian.com>
4424 * TextControl.cs: We were almost always drawing one more line then
4425 needed, since the GetLineByPixel will return the last line found
4426 at that pixel. In most cases though, we were invalidating up to
4427 the junction between two lines.
4428 - Improve debug code.
4430 2006-12-12 Chris Toshok <toshok@ximian.com>
4432 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
4433 and FillReversibleRectangle.
4435 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
4436 and FillReversibleRectangle.
4438 * XplatUIWin32.cs: add stubs which do nothing for
4439 DrawReversibleFrame, DrawReversibleLine, and
4440 FillReversibleRectangle.
4442 * XplatUIOSX.cs: add stubs which raise NIE for
4443 DrawReversibleFrame, DrawReversibleLine, and
4444 FillReversibleRectangle.
4446 * XplatUIX11.cs: add working implementation for
4447 DrawReversibleFrame, DrawReversibleLine, and
4448 FillReversibleRectangle.
4450 * ControlPaint.cs: implement DrawReversibleFrame,
4451 DrawReversibleLine, and FillReversibleRectangle, by calling into
4452 the appropriate XplatUI method.
4454 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4456 * Form.cs: Make MdiClient have the focus even if it's
4457 not selectable, since it should receive WM_KEY* and WM_MOUSE
4458 messages. Fixes #79907.
4460 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4462 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
4463 queried after the window is created.
4465 * XplatUIX11.cs: Added SendParentNotify to implement
4466 WM_PARENTNOTIFY logic. Fixes #79965.
4468 * Control.cs: Added MakeParam.
4470 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4472 * MdiClient.cs: Resume Layout before setting window
4473 states (fixes #80201).
4475 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4477 * MenuAPI.cs: Deselect a menu item after performing
4478 the click (fixes #80197).
4480 2006-12-11 Jackson Harper <jackson@ximian.com>
4482 * TextBoxBase.cs: We need to cap this value, since Maximum -
4483 ViewPortHeight can be less than zero.
4484 - Only do selection with the left mouse button.
4485 * TextBox.cs: Don't tell the world that we have a context menu.
4486 * Control.cs: New method so that we can control whether or not the
4487 context menu is visible outside MWF.
4489 2006-12-11 Everaldo Canuto <everaldo@simios.org>
4491 * ToolBarButton.cs: Fix text positon.
4493 2006-12-11 Miguel de Icaza <miguel@novell.com>
4495 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
4497 * Control.cs (DoubleBuffered): Add implementation.
4499 * Application.cs (OpenForms): Add.
4501 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
4503 * Form.cs: Use opacity instead of Opactiy to determine if we need
4504 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
4506 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
4508 * Control.cs: Fix NRE if Control.Site was set to null.
4510 2006-12-11 Chris Toshok <toshok@ximian.com>
4512 * Control.cs: ControlCollection.Remove should return if the arg is
4513 null, and ControlCollection.SetChildIndex should raise a ANE.
4515 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
4517 * Control.cs: Verify value set for Dock property. Code formatting
4520 2006-12-11 Jackson Harper <jackson@ximian.com>
4522 * TextControl.cs: Draw the caret and the selection when a flag is
4524 * TextBoxBase.cs: We want to draw the caret and the selection for
4525 TextBox but not for TextBoxBase.
4526 - If the window is resized and scrolling is no longer needed (the
4527 whole doc is visible) set the scroll position to zero.
4528 - The default SelectWord (the one TextBox uses) should move the
4529 caret to the end of the word.
4530 - SelectAll moves the caret to the end of the selection.
4531 * TextBox.cs: We don't selectall on focus, we just do it when the
4534 2006-12-11 Mike Kestner <mkestner@novell.com>
4536 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
4538 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4540 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
4542 * ListViewItem.cs: Add Name 2.0 property.
4544 2006-12-11 Andreia Gaita <avidigal@novell.com>
4546 * TabControl.cs: Set visibility on selected or default tab
4547 when tabcontrol handle is created, so that it's contents
4548 actually show up (duh). Fixes #80193
4549 Don't redraw the control if there is no handle created, as
4550 the selected index might be completely invalid. Added some tests
4553 2006-12-11 Everaldo Canuto <everaldo@simios.org>
4555 * ToolBar.cs: Uses maximun width and height of all buttons as
4556 button rectangle when ButtonSize specified, it looks strange but
4557 is what happens in Win32. Fixes #80189.
4559 2006-12-11 Jackson Harper <jackson@ximian.com>
4561 * TextControl.cs: Need to track undo levels ourself, since
4562 compound actions will mess them up.
4564 2006-12-10 Andreia Gaita <avidigal@novell.com>
4566 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
4567 SelectedIndex value is changed (even if it's not valid).
4568 Reset SelectedIndex to 0 when the handle is created and if
4569 the current index is invalid.
4570 Fixes SelectdeIndex unit tests and #80128
4572 2006-12-08 Chris Toshok <toshok@ximian.com>
4574 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
4575 calls EndEdit, it needs to be called before we set current_cell to
4576 its new value. Otherwise, we end up committing the value in the
4577 textbox to the new cell as well. Fixes bug #80160.
4579 2006-12-08 Chris Toshok <toshok@ximian.com>
4581 * Form.cs (set_CancelButton): if the button's DialogResult is
4582 None, set it to Cancel. Fixes bug 80180.
4584 2006-12-08 Jackson Harper <jackson@ximian.com>
4586 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
4587 to watch ourselves when setting the canvas size and setting the
4590 2006-12-08 Chris Toshok <toshok@ximian.com>
4592 * DataGrid.cs: comment out the two MakeTransparent calls for the
4593 time being so people using trunk (and not 1.2.2) on windows can
4594 actually use the datagrid. This deals with bug #80151.
4596 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
4598 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
4599 Graphics.DrawImage (image, int, int, int, int) overload instead
4600 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
4601 the dpi difference and was blurring images it drew.
4604 2006-12-08 Chris Toshok <toshok@ximian.com>
4606 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
4607 rowcnt is 0 (such as with an empty datasource), and make sure we
4608 initialize not_usedarea.Y to cells.Y, so we don't draw over the
4609 other areas (caption, parent row, etc, etc). Fixes bug #80095.
4611 2006-12-08 Chris Toshok <toshok@ximian.com>
4613 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
4616 2006-12-08 Chris Toshok <toshok@ximian.com>
4618 [ Fixes bug #80167 ]
4620 * ThemeWin32Classic.cs: don't draw the image if the button's flat
4621 style is FlatStyle.System.
4623 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
4624 ButtonBase.flat_style private, and switch uses of it to the public
4627 2006-12-08 Chris Toshok <toshok@ximian.com>
4629 [ Fixes bug #80121 ]
4631 * ThemeWin32Classic.cs: center the caption text in the datagrid
4634 * DataGrid.cs: lessen the amount we add to the caption height from
4635 6 to 2. 6 was making it huge.
4637 2006-12-08 Andreia Gaita <avidigal@novell.com>
4639 * UpDownBase: Handle MouseWheel call directly instead of capturing
4640 the inner textbox's OnMouseWheel. Fixes #80166
4642 2006-12-08 Jackson Harper <jackson@ximian.com>
4644 * TextControl.cs: We need to invalidate the textbox when we empty
4645 it (how had this not been discovered before?)
4647 2006-12-08 Jackson Harper <jackson@ximian.com>
4649 * TextBoxBase.cs: Reworked the mouse down code so I could get it
4650 to behave like MS, we now ignore the eventargs.Click and just
4651 track state ourself, which we were already doing anyways.
4652 - Constrain the double click handler to the double click size.
4654 2006-12-08 Chris Toshok <toshok@ximian.com>
4656 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
4657 direction if that scrollbar isn't shown. fixes bug #80158.
4659 2006-12-08 Andreia Gaita <avidigal@novell.com>
4661 * NumericUpDown.cs: Update value on getter. Fixes #79950
4663 2006-12-08 Chris Toshok <toshok@ximian.com>
4665 * MenuItem.cs: add back in the event cloning code. I didn't know
4666 how to do it in the face of the EventHandlerList work i'd done
4667 last week. Fixes bug #80183.
4669 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
4671 * Control.cs: Add an invalidate to the BackgroundImage setter.
4674 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
4676 * ToolStrip*: Add some small properties reported by MoMA, fix event
4677 firing and default properties based off of unit tests, and add some
4678 attributes based off of the class status page.
4680 2006-12-07 Jackson Harper <jackson@ximian.com>
4682 * TextBoxBase.cs: Take HideSelection into account when determining
4683 whether or not to show the selection.
4684 * RichTextBox.cs: After inserting the RTF into the document move
4685 the cursor to the beginning of the document.
4687 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
4689 * Control.cs: Remove static ArrayList "controls" which maintained
4690 a reference to every control created.
4691 * Application.cs: Create a static FormCollection to maintain a reference
4692 to every form created. Use it in places that formerly enumerated through
4693 the controls one looking for forms.
4694 * Form.cs: Add and remove self from above FormCollection.
4696 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
4698 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
4699 not libgdk (though it makes me wonder why I didn't have any
4702 2006-12-07 Chris Toshok <toshok@ximian.com>
4704 [ you had to know this was coming after that last commit...]
4706 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
4707 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
4708 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
4711 2006-12-07 Chris Toshok <toshok@ximian.com>
4713 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
4714 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
4715 all the behavior we need for double buffering.
4717 * XplatUIDriver.cs: implement the 3 double buffer methods using a
4718 client side Bitmap, just like the old Control-based double buffer
4719 code did. The methods are virtual, so each XplatUI driver
4720 subclass can replace the implementation to use a faster, platform
4723 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
4724 double buffer code, and clean things up a bit in the process.
4726 2006-12-06 Chris Toshok <toshok@ximian.com>
4728 * Control.cs: reindent WndProc.
4730 2006-12-06 Chris Toshok <toshok@ximian.com>
4732 [ I wanna be like BenM when I grow up ]
4734 * Hwnd.cs: create a single static Graphics object on the static
4735 Bitmap we create. use this for our text measurements.
4737 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
4738 This was causing us to allocate a backbuffer for every control,
4739 even when it wasn't flagged as double buffered. Instead use the
4740 single graphics instance. This might have implications for
4741 multithreaded applications. If we run into problems we can switch
4742 to creating 1 Graphics per control, on the static Hwnd bitmap.
4744 this change nets us a 7M savings in private dirty mappings when
4745 running FormsTest.exe.
4747 2006-12-06 Chris Toshok <toshok@ximian.com>
4749 * ListView.cs: the BackgroundImage override is just to set
4750 attributes. chain up to base.BackgroundImage.
4752 * RichTextBox.cs: same.
4754 * ToolBar.cs: same, but we need to also redraw the toolbar when it
4755 changes, so instead a handler for BackgroundImageChanged.
4757 * Control.cs: make background_image private.
4759 2006-12-06 Chris Toshok <toshok@ximian.com>
4761 * ScrollBar.cs: change the assignment of cursor to Cursor. not
4762 sure we even need this assignment, but roll with it for now.
4764 * Control.cs: make the cursor field private.
4766 2006-12-06 Chris Toshok <toshok@ximian.com>
4768 * Form.cs: we don't need to explicitly set ImeMode to
4769 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
4770 behavior in the face of ImeMode.Inherit.
4772 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
4773 change the ctor's assignment to use ImeMode instead of ime_mode.
4775 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
4776 ImeModeInherit. Only check for the parent's imemode (and return
4777 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
4778 This fixes the button unit test, which sets both ImeMode and
4779 DefaultImeMode to ImeMode.Disable.
4781 also make the ime_mode field private.
4783 2006-12-06 Chris Toshok <toshok@ximian.com>
4785 * Control.cs: make control_style private.
4787 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
4788 setting the styles to true, then setting them to false instead of
4789 reverting to their previous values.
4791 also, call SetStyle on the scrollbars instead of using
4792 control_style directly.
4794 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
4796 * FormCollection.cs: Implement. [2.0]
4798 2006-12-06 Chris Toshok <toshok@ximian.com>
4800 * Control.cs: make tab_stop private.
4802 * Label.cs: set TabStop, not tab_stop. reformat some event
4803 add/remove methods to make them more compact.
4805 2006-12-06 Chris Toshok <toshok@ximian.com>
4807 * RadioButton.cs: fix TabStop handling.
4809 2006-12-06 Chris Toshok <toshok@ximian.com>
4811 * TextBox.cs: remove the explicit assignments to has_focus.
4814 * ButtonBase.cs: remove the assignment to has_focus. Control will
4817 2006-12-06 Chris Toshok <toshok@ximian.com>
4819 * ButtonBase.cs: remove all uses of is_enabled from this code.
4820 it's always true when any of the code containing the checks is
4823 2006-12-06 Chris Toshok <toshok@ximian.com>
4825 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
4826 with different semantics (some are present in both 1.1 and 2.0
4827 profiles) so that we match MS's behavior in our unit tests.
4829 2006-12-06 Jackson Harper <jackson@ximian.com>
4831 * TextControl.cs: Make this operation undoable.
4832 * TextBoxBase.cs: Factor the border width into the preferred
4834 - implement Modified as per the spec.
4836 2006-12-06 Chris Toshok <toshok@ximian.com>
4838 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
4840 2006-12-06 Chris Toshok <toshok@ximian.com>
4842 * Control.cs: make right_to_left and context_menu fields private.
4844 2006-12-06 Chris Toshok <toshok@ximian.com>
4846 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
4847 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
4848 Control.child_controls private. switch all uses over to
4851 2006-12-06 Chris Toshok <toshok@ximian.com>
4853 * System.Windows.Forms/GroupBox.cs,
4854 System.Windows.Forms/AccessibleObject.cs,
4855 System.Windows.Forms/ErrorProvider.cs,
4856 System.Windows.Forms/Control.cs,
4857 System.Windows.Forms/UpDownBase.cs,
4858 System.Windows.Forms/ScrollBar.cs,
4859 System.Windows.Forms/DateTimePicker.cs,
4860 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
4861 System.Windows.Forms/ToolTip.cs,
4862 System.Windows.Forms/RadioButton.cs,
4863 System.Windows.Forms/LinkLabel.cs,
4864 System.Windows.Forms/Splitter.cs,
4865 System.Windows.Forms/TextBoxBase.cs,
4866 System.Windows.Forms/ToolStripTextBox.cs,
4867 System.Windows.Forms/ContainerControl.cs,
4868 System.Windows.Forms/ThemeWin32Classic.cs,
4869 System.Windows.Forms/SizeGrip.cs,
4870 System.Windows.Forms/ToolStripDropDown.cs,
4871 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
4872 private. switch all uses over to Control.Parent.
4874 2006-12-06 Chris Toshok <toshok@ximian.com>
4876 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
4877 Control does this before calling emitting these events.
4879 * TabControl.cs: same.
4881 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
4882 Control.client_rect.
4884 * ButtonBase.cs: use the ClientSize property instead of the
4887 * ScrollableControl.cs: same.
4889 * Control.cs: another pass at making properties private. also,
4890 move the initialization of tab_stop to the ctor.
4892 2006-12-05 Andreia Gaita <avidigal@novell.com>
4894 * TabControl.cs: Let the selected index be set freely if the
4895 control handle is not yet created.
4897 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
4899 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
4900 internal until I can rewrite DefaultLayout.
4901 * ToolStrip.cs: Fix build error and some general cleaning.
4902 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
4903 Fix build errors caused by making some of Control's fields private.
4905 2006-12-05 Jackson Harper <jackson@ximian.com>
4907 * TextControl.cs: Redo Insert a little so that it use IndexOf
4908 instead of Split, this prevents it from messing up on things like
4909 \n\n\n. Also more effecient since the split array doesn't need to
4911 * TextBoxBase.cs: AppendText doesnt handle multiline and non
4912 multiline text differently, this is the first of many fixes that
4913 will make multiline/non-multiline the same thing as far as the
4914 TextBoxBase is concerned.
4915 - Don't split the text and insert lines, this can lose some line
4916 endings (like is the last line a soft or hard break). Instead use
4918 - Fix an off by one when combining all the lines in the Text
4920 - Remove separate multiline handling from the Text getter/setter.
4922 2006-12-05 Chris Toshok <toshok@ximian.com>
4924 * ButtonBase.cs: a few changes:
4926 - don't reinitialize internal Control fields in the ctor when they
4927 have the same values as Control sets them.
4929 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
4930 this before calling those methods.
4932 - we don't need to call Refresh for anything. use Invalidate
4935 - OnEnabledChanged doesn't need to redraw at all - Control.cs
4936 calls Refresh in its OnEnabledChanged.
4938 - several of the events we were registered for in the ctor to
4939 redraw ourselves already include calls to Invalidate in the
4940 property setters that raise the events. remove the extra
4943 - reformat a switch statement that was 83274658 columns wide.
4945 2006-12-05 Mike Kestner <mkestner@novell.com>
4947 * ComboBox.cs: fix a unit test regression from a TextBox
4948 SelectionLength return of -1 when there's no selection.
4950 2006-12-05 Chris Toshok <toshok@ximian.com>
4952 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
4953 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
4954 cleaning up some of the internal Control fields being used by
4957 2006-12-05 Mike Kestner <mkestner@novell.com>
4959 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
4960 listbox after AddImplicit calls since it defaults to hidden. Add a
4961 hack to preserve requested heights across DropDownStyle changes.
4963 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
4965 * PropertyGrid.cs: Hide FindFirstItem method from public API.
4967 2006-12-05 Chris Toshok <toshok@ximian.com>
4969 * DataGridView.cs: fix compiler warnings.
4971 * PrintControllerWithStatusDialog.cs: same.
4975 * FolderBrowserDialog.cs: same.
4977 * Splitter.cs: same.
4979 * DataGridViewComboBoxCell.cs: same.
4981 * XplatUIWin32.cs: same.
4983 * PictureBox.cs: same.
4985 * Win32DnD.cs: same.
4987 * PageSetupDialog.cs: same.
4989 * FileDialog.cs: same.
4991 * PrintDialog.cs: same.
4993 * DataGridTextBoxColumn.cs: same.
4995 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
4997 2006-12-05 Chris Toshok <toshok@ximian.com>
4999 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
5000 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
5001 System.ComponentModel.EventHandlerList work.
5003 2006-12-05 Jonathan Chambers <joncham@gmail.com>
5005 * DrawTreeNodeEventArgs.cs: Added.
5007 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
5009 * InternalWindowManager.cs: Remove an unused field.
5011 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
5013 * InternalWindowManager.cs:
5014 - Save the point where the title bar is clicked.
5016 * MdiWindowManager.cs:
5017 - Only allow moving of the window as long as the
5018 clicked point on the title bar does not get out of
5019 MdiClient's rectangle. Fixes #79982.
5022 - Added Horizontal/VerticalScrollbarVisible.
5023 - Simplified the scrollbar sizing algorithm.
5024 - Cache the difference in scrolled value in
5025 H/VBarValueChanged and move the calculation out
5028 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
5030 * Control.cs: Make the Console.WriteLine in WndProc
5033 2006-12-05 Chris Toshok <toshok@ximian.com>
5035 * ToolStripManager.cs, ToolStripButton.cs,
5036 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
5037 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
5038 ToolStripSplitButton.cs, ToolStripSeparator.cs,
5039 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
5040 ToolStripProgressBar.cs, ToolStripContainer.cs,
5041 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
5042 to using System.ComponentModel.EventHandlerList.
5044 2006-12-04 Chris Toshok <toshok@ximian.com>
5046 * LinkLabel.cs: fix up compiler warnings.
5048 * TableLayoutSettings.cs: same.
5050 * TreeView.cs: same.
5054 * TabControl.cs: same.
5056 * RichTextBox.cs: same.
5058 * ListViewItem.cs: same.
5060 * PropertyGrid.cs: same.
5062 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
5066 * TextRenderer.cs: fix up compiler warnings.
5070 * Form.cs: corcompare fixes.
5072 * PictureBox.cs: fix up compiler warnings.
5074 * ImageListStreamer.cs: same.
5076 * TrackBar.cs: corcompare fix.
5078 * Control.cs: fix up compiler warnings.
5080 * SplitterPanel.cs: same.
5082 * NumericTextBox.cs: same.
5084 * ImageList.cs: same.
5086 * StatusStrip.cs: same.
5088 * ProgressBar.cs: corcompare fix.
5090 * ToolStripButton.cs: fix up compiler warnings.
5092 * ToolStripStatusLabel.cs: same.
5094 * ToolStripSplitButton.cs: same.
5096 * ToolStripSeparator.cs: same.
5098 * ToolStripProgressBar.cs: same.
5100 * ToolStripDropDownMenu.cs: same
5102 * ToolStripDropDown.cs: same.
5104 * ToolStripDropDownButton.cs: same.
5106 * ToolStrip.cs: same.
5108 * ToolStripControlHost.cs: same.
5110 * ToolStripContentPanel.cs: same.
5112 * ToolStripDropDown.cs: same.
5114 * ToolStripContainer.cs: same.
5116 * ToolStripPanel.cs: same, and add "new" where we need it to work
5117 with the new ArrangedElementCollection.
5119 * ToolStripItemCollection.cs: add "new" where we need it to work
5120 with the new ArrangedElementCollection.
5122 2006-12-04 Andreia Gaita <avidigal@novell.com>
5124 * TabControl.cs: Fix default tab selection to after TabControl
5125 gets focus and not before. Fixes #80128
5127 2006-12-04 Chris Toshok <toshok@ximian.com>
5129 * DataGridTableStyle.cs: remove the gross calling of
5130 datagrid.Refresh from here. It's a broken idea and it doesn't
5133 * DataGrid.cs: instead, just register/unregister from the
5134 DataGridTableStyle events in CurrentTableStyle. we play it
5135 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
5136 even though some would most likely not require it. Fixes bug
5137 #80115 (and one portion of #80117 as a side effect).
5139 2006-12-04 Chris Toshok <toshok@ximian.com>
5141 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
5142 so the textbox (if any) goes away. Fixes bug #80117.
5144 2006-12-04 Chris Toshok <toshok@ximian.com>
5146 * DataGridColumnStyle.cs: set the column's readonly property
5147 initially based on the property descriptor's IsReadOnly. Fixes
5150 2006-12-04 Chris Toshok <toshok@ximian.com>
5152 * ComboBox.cs: wrap the dropdown style changing work in
5153 SuspendLayout/ResumeLayout. Fixes bug #79968.
5155 2006-12-04 Jackson Harper <jackson@ximian.com>
5157 * TextBoxBase.cs: Fix off by one, since these are one-based.
5158 * TextBox.cs: Select all the text when we get focus. The TextBox
5159 does this but the RTB does not.
5161 2006-12-04 Chris Toshok <toshok@ximian.com>
5163 * DataGridTextBoxColumn.cs: remove some spew.
5165 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
5166 but some part of me is saying "it shouldn't be here.." At any
5167 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
5170 2006-12-04 Chris Toshok <toshok@ximian.com>
5172 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
5173 to reassign the propertydescriptor.
5175 2006-12-04 Jackson Harper <jackson@ximian.com>
5178 * TextControl.cs: Remove some unused variables. Maybe this will
5179 patch things up between mike and I.
5180 - don't split lines less then one char wide, if the viewport is
5181 that small text won't be visible anyways.
5183 2006-12-04 Jackson Harper <jackson@ximian.com>
5185 * TextBoxBase.cs: Default selection length is -1, need to do some
5186 more testing on windows to see when this is used for the property.
5187 - Redid the Lines [] property to that we properly remove soft line
5189 - added support for preserving carriage returns
5190 - CanUndo is not a variable like 'is undo enabled' it just returns
5191 true if there is undo operations available.
5192 - AppendText doesn't need to grab the last tag itself anymore,
5193 this happens automatically when we move the cursor.
5194 * TextControl.cs: Add CompoundActions to the undo class. This
5195 allows combining the other operations into one big option. ie a
5196 paste will combine { delete old, insert new, move cursor }
5197 - Add InsertString undo operation
5198 - New method for deleting multiline text
5199 - Add carriage returns to lines. So we can preserve carriage
5200 returns when text is 'roundtripped'
5202 2006-12-04 Chris Toshok <toshok@ximian.com>
5204 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
5205 minimum 0. Fixes the scrollbar exception in bug #80136.
5207 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5210 * MdiWindowManager: Removed unused fields and methods.
5212 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5214 * StatusBar.cs: Update all panels when a AutoSize=Contents
5215 panel needs updating.
5217 * StatusBarPanel.cs: Remove twidth and only use initialize.
5220 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5222 * Form.cs: When a form's MdiParent is set add it directly
5223 on top of the z-order in stead of relying on MdiClient's
5224 ActivateChild to do it. Fixes #80135.
5227 - Remove original_order, mdi_child_list is already doing
5229 - Create mdi_child_list on construction in
5230 stead of first use (avoids a few null checks).
5232 * MenuItem.cs: Use an already existing list of mdi children
5233 to get the correct order of children and remove the other
5236 2006-12-04 Chris Toshok <toshok@ximian.com>
5238 * PropertyGridView.cs: cached_splitter_location is only used in
5241 * PropertyGrid.cs: implement the ComComponentNameChanged event
5242 using Events, hoping that would fix the warning. Looks like a
5243 compiler bug instead (#80144).
5245 * PropertyManager.cs: remove unused method.
5247 2006-11-04 Everaldo Canuto <everaldo@simios.org>
5249 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
5250 include parentesis to fix expression evaluation. Fixes #79634.
5252 2006-11-02 Everaldo Canuto <everaldo@simios.org>
5255 - Changes to fix behavior in Menu control, some reported in #80097
5256 and other detected during behavior refactory like a select event
5258 - Remove unneded "if's" conditions.
5259 - Created an internal to flag when popup is active in control, we need
5260 it because in .NET you can have menu active but without popup active
5261 when you active menu using popup without visible items.
5262 - Mimic win32 behavior for Select and Popup events.
5263 - Dont open popup menu when you dont have visible subitems.
5264 - Do nothing when click on disabled menu item.
5265 - Some small changes to follow the coding style guidelines.
5266 - Unselect menu only when another control gives focus. Fixes #80097.
5267 - Remove unused code.
5269 * MenuItem.cs: internal VisibleItems method to check if menu
5270 theres visible subitems, it will be usefull to fix some
5271 behavior in Menu control.
5273 2006-11-01 Everaldo Canuto <everaldo@simios.org>
5275 * Timer.cs: Tag property for 2.0 profile.
5277 2006-12-01 Chris Toshok <toshok@ximian.com>
5279 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
5281 * Win32DnD.cs: comment out some unused fields.
5283 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
5284 some unused properties/methods.
5286 * XplatUIX11.cs: fix MousePosition so we override the base class's
5287 property instead of conflicting with it.
5289 * PictureBox.cs: comment out some unused fields
5291 * OSXStructs.cs: make some struct fields public.
5293 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
5294 MousePosition so we override the base class's property instead of
5295 conflicting with it.
5297 * X11Dnd.cs: comment out some unused fields
5299 * X11DesktopColors.cs: fix some struct field visibility to quiet
5302 * X11Dnd.cs: remove some debug code.
5304 * ThemeClearlooks.cs: comment out unused field.
5306 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
5308 * ThemeGtk.cs: comment out some unused pinvokes.
5310 * Timer.cs: remove some unused fields.
5312 * ThemeClearlooks.cs: comment out unused field.
5314 * UpDownBase.cs: comment out unused field.
5316 * DataObject.cs: comment out unused field.
5318 * DataGridBoolColumn.cs: reomve unused field.
5320 * DataGrid.cs: remove unused field.
5322 * Cursor.cs: remove old ToBitmap code.
5324 * ControlPaint.cs: remove unused method.
5326 * ScrollBar.cs: remove unused fields.
5328 * ComboBox.cs: remove unused field, and chain up to
5329 AccessibleObject ctor.
5331 * ListBox.cs: remove unused field.
5333 * ButtonBase.cs: wrap a couple fields in NET_2_0.
5335 * GridEntry.cs: remove unused fields.
5337 * Binding.cs: remove unused fields.
5339 * AxHost.cs: remove unused method.
5341 * ContainerControl.cs: remove unused field.
5343 * ScrollableControl.cs: remove unused fields.
5345 2006-12-01 Chris Toshok <toshok@ximian.com>
5347 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
5348 the Where/WhereString stuff. it's easy enough to CWL
5349 Environment.StackTrace.
5351 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
5352 unused private fields.
5354 2006-12-01 Jackson Harper <jackson@ximian.com>
5356 * TextControl.cs: Do not update the view while inserting multiline
5357 text. If we update the view we might wrap lines, before entering
5358 the new lines, which causes the new line insertion calculations to
5360 - Remove an old TODO
5361 - Make debug output a little nicer
5363 2006-12-01 Chris Toshok <toshok@ximian.com>
5365 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
5367 2006-12-01 Chris Toshok <toshok@ximian.com>
5369 [ fix the majority of the CS0108 warnings we've been suppressing ]
5371 * TreeView.cs: mark BackgroundImageChanged as 'new'.
5373 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
5374 to "LayoutToolBar" to quiet mcs.
5376 * TabControl.cs: mark our ControlCollection class as 'new'.
5378 * TextBoxBase.cs: mark some events as 'new'.
5380 * Splitter.cs: TabStop is 'new'.
5382 * ControlBindingsCollection.cs: mark a few methods as new since
5383 they change the visibility from protected to public.
5385 * RadioButton.cs: DoubleClick -> base class, and remove unused
5388 * MonthCalendar.cs: ImeMode property -> base class, and mark many
5391 * NumericUpDown.cs: TextChanged -> base class.
5393 * CheckedListBox.cs: mark our ObjectCollection class as new to
5396 * FolderBrowserDialog.cs: make HelpRequest event new and have it
5397 muck with the base class.
5399 * StatusBar.cs: fix some mcs warnings about Update being the same
5400 name as a base class method.
5402 * RichTextBox.cs: mark some events as new, and make them do things
5403 to the base class impl.
5405 * UserControl.cs: mark TextChanged as new, and have it manipulate
5408 * UpDownBase.cs: mark some things new.
5410 * CheckBox.cs: mark DoubleClick "new", and add some text about
5411 what we need to look at.
5413 * Panel.cs: make the events "new", and manipulate the base
5414 version. these are just here for attributes.
5416 * AccessibleObject.cs: make owner private.
5418 * Control.cs: deal with AccessibleObject.owner being private.
5419 cache our own copy if we need it.
5421 * Button.cs: add "new" to the DoubleClickEvent.
5423 * ListBox.cs: no need to track our own has_focus here. let
5424 Control.has_focus do it for us. Also some other work to clear up
5425 warnings about not overriding base class methods of the same name.
5427 * ComboBox.cs: clear up some warnings about not override base
5428 class methods of the same name.
5430 2006-12-01 Chris Toshok <toshok@ximian.com>
5432 * Form.cs: flag a few things as "new" to quiet some of the mcs
5437 * PrintPreviewDialog.cs: same.
5439 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
5440 now DGV isn't so horrible on the class status page. also, move
5441 all events to using System.ComponentModel.EventHandlerList. my
5444 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
5446 * MdiWindowManager.cs:
5447 - Set form to active mdi child if shown,
5448 and update the active mdi child to the next
5449 remaining child in the z-order if the form is hidden.
5452 - Track if the form has been visible and if its
5453 visibility is beeing changed, so that the MdiClient
5454 can properly decide the ActiveMdiChild. The MdiClient
5455 cannot track this since the form can change visibility
5456 before MdiClient is created.
5459 - Don't activate anything of the parent form is changing
5461 - Rework ActiveMdiChild to only return visible mdi
5462 children and take into account several other corner
5465 2006-12-01 Chris Toshok <toshok@ximian.com>
5467 * IBindableComponent.cs: new 2.0 interface.
5469 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
5471 * DataGrid.cs: Font for caption area is bold by default.
5473 2006-12-01 Everaldo Canuto <everaldo@simios.org>
5475 * Menu.cs: Tag property for 2.0.
5477 2006-11-01 Everaldo Canuto <everaldo@simios.org>
5479 * ThemeWin32Classic.cs: Adjust menu separator drawing.
5481 2006-12-01 Chris Toshok <toshok@ximian.com>
5483 * TreeView.cs: doh, the Begin* events should be
5484 TreeViewCancelEventHandler.
5486 2006-12-01 Chris Toshok <toshok@ximian.com>
5488 * Form.cs: Form.ControlCollection already stores off the
5489 form_owner field. don't access the base class's internal "owner"
5492 * Control.cs: make all the fields in Control.ControlCollection
5493 private. there's no need for any internal fields here.
5495 2006-12-01 Chris Toshok <toshok@ximian.com>
5497 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
5498 OnHandleCreated. Fixes bug #80109.
5500 2006-12-01 Chris Toshok <toshok@ximian.com>
5502 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
5503 SplitContainer.cs, Control.cs, StatusStrip.cs,
5504 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
5505 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
5506 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
5507 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
5508 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
5509 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
5510 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
5511 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
5512 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
5513 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
5515 do most of the work to convert our code over to use
5516 System.ComponentModel.Component.Events for
5517 adding/removing/dispatching events.
5520 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
5522 * DataGridView.cs: Fix an ArgumentNullException reported
5525 2006-11-30 Mike Kestner <mkestner@novell.com>
5527 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
5528 grabbed listbox. Fixes #80036 and #80101.
5530 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
5532 * Message.cs: Changed ToString() to match MS.
5534 2006-11-30 Jackson Harper <jackson@ximian.com>
5536 * TextBoxBase.cs: You can still change the selected text on a read
5538 * TextControl.cs: Lower magic number for wrap calculations. This
5539 lets text get closer to the right (far) edge.
5541 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
5543 * Control.cs: Tweak 2.0 layout properties.
5544 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
5545 * TextRenderer.cs: Add a new overload.
5546 * ToolStrip*: Huge amount of changes and new features.
5548 2006-11-30 Mike Kestner <mkestner@novell.com>
5550 * ComboBox.cs: fixes for LargeChange and Maximum to get the
5551 scroll range correct. Fixes #79994.
5553 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
5555 * MdiWindowManager.cs: Update main form's text when
5556 a form is closed. (fixes #80038)
5558 2006-11-30 Everaldo Canuto <everaldo@simios.org>
5561 - Fix an regression in ButtonSize.
5562 - Get ImeMode default value change to "Disable".
5563 - Get ShowTooltips default value change to true, default value is
5564 "false" but after make a test in .NET we get "true" result as default.
5566 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
5568 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
5570 2006-11-29 Chris Toshok <toshok@ximian.com>
5572 * XplatUIWin32.cs (GetWindowTransparency): check return value of
5573 GetLayeredWindowAttributes. if it's 0, return 1.0, as
5574 SetWindowTransparency hasn't been called.
5576 2006-11-29 Chris Toshok <toshok@ximian.com>
5578 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
5580 (set_AllowTransparency): reorder things a little so that the
5581 WS_EX_LAYERED style is removed properly.
5583 2006-11-29 Chris Toshok <toshok@ximian.com>
5585 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
5587 * Form.cs: only call the XplatUI transparency method (get/set) if
5588 SupportsTransparency says it's supported. Otherwise fallback to
5589 doing nothing (in the set case) or returning the instance field we
5590 cache (in the get case).
5592 * XplatUIStructs.cs: add TransparencySupport flag enum.
5594 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
5595 change to SupportsTransparency.
5597 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
5598 TransparencySupport.None from SupportsTransparency.
5600 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
5601 TransparencySupport.Set from SupportsTransparency.
5603 * XplatUIWin32.cs: implement GetWindowTransparency calling
5604 GetLayeredWindowAttributes, and implement SupportsTransparency by
5605 checking whether or not both
5606 GetWindowTransparency/SetWindowTransparency are available
5607 entrypoints. We need to do this since SetWindowTransparency is
5608 available as of win2k, but GetWindowTransparency requires winxp.
5611 * XplatUI.cs: Add GetWindowTransparency, and change
5612 SupportsTransparency to allow for either/both Get/Set.
5614 2006-11-29 Chris Toshok <toshok@ximian.com>
5616 * DataGrid.cs: keep from going into an infinite loop redrawing a
5617 datagrid that has no datasource. Fixes bug #80033.
5619 2006-11-29 Chris Toshok <toshok@ximian.com>
5621 * MenuItem.cs: fix the NRE when we assign text (and therefore call
5622 Invalidate) before the mainmenu has been assigned to a control.
5624 2006-11-29 Chris Toshok <toshok@ximian.com>
5626 * DataGrid.cs: detect when we should be double the double click
5627 row/column autosize stuff, although that codepath has yet to be
5628 written. part of the work for bug #79891.
5630 2006-11-29 Chris Toshok <toshok@ximian.com>
5632 * Binding.cs (SetControl): fix unit test.
5634 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5636 * PageSetupDialog.cs: Validate the margins and set them in
5638 * NumericTextBox.cs: New class to mimic the behavior of the
5639 textboxes used in the printing dialogs.
5641 2006-11-29 Andreia Gaita <avidigal@novell.com>
5643 * Form.cs: Revert previous change (remove call UpdateBounds
5644 from form constructor), because it messes with the handle creation
5645 order, and that one needs lots and lots of love.
5646 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
5647 for valid printer and throw InvalidPrinterException if document
5648 is set but printer not valid), adding a MonoTODO. Once
5649 handle creation is done properly, we can put this back in.
5651 2006-11-28 Everaldo Canuto <everaldo@simios.org>
5653 * MenuItem.cs: Create a invalidate method for menu item, to be
5654 calling from set text, it make text changes to imadiate update
5655 on screen. Fixes #80013.
5657 2006-11-28 Everaldo Canuto <everaldo@simios.org>
5659 * ToolBar.cs: Fixes and simplify toolbar button layout, it
5660 fixes bug #80070 and some other problem on toolbar buttons
5663 2006-11-28 Everaldo Canuto <everaldo@simios.org>
5665 * ThemeWin32Classic.cs: Paint toolbar toggle button background
5666 with dotted brush. Fixes #79564
5668 2006-11-28 Andreia Gaita <avidigal@novell.com>
5670 * Form.cs: Removed call to UpdateBounds on Form
5671 constructor, it was causing a call to CreateHandle
5672 before it was supposed to.
5673 * PrintControllerWithStatusDialog: Applied patch
5674 by Chris Toshok to hide controller when there are
5675 no printers available.
5676 PrintDialog.cs: initialize printer settings to
5677 null - correct DefaultValues test #5
5678 * PrintPreviewControl.cs: Move PrintController
5679 initialization to GeneratePreview
5680 * PrintPreviewDialog.cs:
5681 - Remove Preview generation from Document_set(). It is
5683 - Throw InvalidPrinterException on CreateHandle if
5684 a Document is set but there are no printers or
5685 printer is not valid.
5686 * ThemeWin32Classic: don't paint PrintPreviewControl
5687 if there is nothing to paint
5689 2006-11-28 Miguel de Icaza <miguel@novell.com>
5691 * Form.cs: Add another popular method.
5693 * TabPage.cs: ditto.
5695 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5697 * MenuItem.cs: Fixed a warning.
5698 * InternalWindowManager: Fixed a warning.
5700 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5703 - When cloning a menu also clone MdiList and clone the
5704 window menu items properly (as the forms and menuitems
5705 are kept in an internal hashtable, these need updating
5707 - Rewrote the window menu code, menu items are added in the
5708 order the forms were added to their parent, and they are
5709 updated every time the window menu is shown (before the
5710 list was only generated once, in the current order of the
5711 forms, and would never be updated). A checkmark is shown
5712 next to the item corresponding to the active mdi child.
5714 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5716 * XplatUIStructs.cs:
5717 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
5720 - Added TME_NONCLIENT to TMEFlags.
5721 - Handles WM_NCMOUSEMOVE in GetMessage to
5722 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
5725 - Now merges mdi child menu to parent menu when maximized.
5726 - Recalculate NC areas of both mdi child and mdi parent.
5728 on window state and size changes.Fixes #79844 (3).
5729 - Handle WM_NCCALCSIZE to properly calculate borders.
5732 - Add/remove to the mdi containers list of mdi children
5733 in the order they are added.
5734 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
5735 to the maximized mdi child.
5737 * InternalWindowManager.cs:
5738 - Only execute a click on the control buttons on the mouse up,
5739 not on the mouse down. Show the state of the button
5740 (was only showing Normal state, never Pressed state). The
5741 pressed button now follows the mouse (if you click the Close
5742 button and move the mouse over the Maximize button, the
5743 Maximize button will be shown as pressed). Since Win32 does
5744 not generate WM_NCLBUTTONUP if you release the button outside
5745 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
5748 * ThemeWin32Classic.cs:
5749 - Draw a missing border around mdi child forms. Fixes #79844 (2).
5752 - Added a list of forms which contains the order the forms are
5753 added to the mdi parent.
5754 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
5755 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
5756 - If the active form changes set the scrollbars to the top
5757 of the Z order, otherwise the form could hide them.
5758 - Scrollbars are now sized according to ClientSize, not
5759 to Size, and they take into account the other scrollbar
5760 to determine maximum.
5762 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5769 - Added RequestAdditionalWM_NCMessages for windows to
5770 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
5771 Currently only implemented in XplatUIWin32.
5773 2006-11-27 Chris Toshok <toshok@ximian.com>
5775 * Hwnd.cs: only add the hwnd to the windows hash in
5776 set_WholeWindow and set_ClientWindow if whole_window/client_window
5777 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
5779 2006-11-27 Mike Kestner <mkestner@novell.com>
5781 * ComboBox.cs: remove redundant OnDropDown call. It is called
5782 from the ComboListBox.ShowWindow code. Fixes #79969.
5784 2006-11-27 Chris Toshok <toshok@ximian.com>
5786 * Hwnd.cs: remove the setters for ExposePending and
5787 NCExposePending - noone uses them.
5789 2006-11-27 Jackson Harper <jackson@ximian.com>
5791 * TextControl.cs: new param for ReplaceSelection which determines
5792 whether we select the new selection, or set the cursor to the end
5793 of the new selection.
5794 * TextBoxBase.cs: Use new param for ReplaceSelection. When
5795 pasting, select the new text.
5796 * RichTextBox.cs: Use new param for ReplaceSelection.
5798 2006-11-27 Jackson Harper <jackson@ximian.com>
5800 * TextBoxBase.cs: Set the selection to the caret after the caret
5801 is moved, otherwise they get out of sync.
5803 2006-11-26 Everaldo Canuto <everaldo@simios.org>
5805 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
5808 2006-11-26 Everaldo Canuto <everaldo@simios.org>
5810 * ThemeWin32Classic.cs:
5811 - Fix toolbar drop down arrow position.
5812 - Fix drop down appearance when ToolBar.Appearance is normal,
5815 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
5817 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
5819 * UpDownBase.cs: Same.
5820 * ButtonBase.cs: Same.
5821 * ScrollBar.cs: Same.
5822 * TrackBar.cs: Same.
5823 * PictureBox.cs: Same.
5824 * UserControl.cs: Same.
5826 * ListControl.cs: Same.
5827 * TextBoxBase.cs: Same.
5828 * ListView.cs: Same.
5829 * RichTextBox.cs: Same.
5830 * TreeView.cs: Same.
5832 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
5835 - Text label for where
5836 - Text label comment was not shown
5838 2006-11-23 Everaldo Canuto <everaldo@simios.org>
5840 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
5842 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5844 * InternalWindowManager.cs:
5845 - Handle WM_PARENTNOTIFY to activate the form
5846 if any child control is clicked.
5847 - The form is only sizable if not minimized.
5849 * MdiWindowManager.cs:
5850 - Save the IconicBounds if the form is moved.
5851 - Rework SetWindowState, now the window bounds
5852 are stored only if the old window state is Normal.
5855 - In SetWindowStates store the old window state if
5856 the window is maximized and restore window state if
5857 the window looses focus.
5858 - Don't handle any scrollbar value changes if
5859 initializing the scroll bars. Fixes #79771.
5860 - Reworked ArrangeIconicWindows. Current algorithm
5861 tests bounds agains all other minimized windows, if
5862 any intersections create new bounds (going left to
5863 right, bottom to top) and then test again. When
5864 successful the bounds are saved and never computed
5865 again. Fixes #79774.
5867 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5869 * InternalWindowManager.cs: Added HandleTitleBarUp.
5871 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
5873 * NumericUpDown.cs: In .NET 1.1, user entered text is still
5874 hexadecimal in ParseUserEdit.
5877 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5879 * MdiWindowManager.cs:
5880 - Handle a click on the form's icon to show the
5881 system menu (when maximized). Fixes #79775.
5882 - Change the existing click handler for the form's
5883 icon when not maximized to show on MouseUp.
5886 * Form.cs: In OnResize only layout the mdi child's
5887 parent if it actually has a parent. Might not if
5888 the window is closing.
5891 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
5893 * MdiClient.cs: Ignore active MDI client for text of parent, if
5894 child has no text set.
5896 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
5898 * ToolBar.cs: Fixed ToString to match MS.
5900 2006-11-22 Andreia Gaita <avidigal@novell.com>
5903 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
5904 update inner values on set. Fixes #79966.
5905 - Override OnLostFocus to update value on NET 2. Fixes #79950.
5906 - Fix hexadecimal parsing.
5908 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
5909 parent. Fixes #79957
5911 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
5913 * Control.cs: After calling SetWindowsPos in SetBoundsCore
5914 the actual size has to be queried, since if height /
5915 width is negative Win32 changes it to 0.
5916 Fixes #79999 on Windows.
5918 * XplatUIX11.cs: Set height / width to 0 if negative
5919 in SetWindowPos. Fixes #79999 on Linux.
5921 2006-11-22 Everaldo Canuto <everaldo@simios.org>
5923 * ThemeWin32Classic.cs: Fix text redenring when button is
5926 2006-11-22 Everaldo Canuto <everaldo@simios.org>
5928 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
5929 and later navigate by mouse. Fixes #79528.
5931 2006-11-21 Everaldo Canuto <everaldo@simios.org>
5933 * ToolBar.cs: Set default value for TabStop to false in
5934 constructor, it fixes remaining behavior of bug #79863.
5936 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5938 * MdiWindowManager.cs:
5939 * InternalWindowManager.cs:
5940 - Moved a few methods specific to Mdi from
5941 InternalWindowManager to MdiWindowManager.
5944 2006-11-21 Chris Toshok <toshok@ximian.com>
5946 * XplatUIOSX.cs: stub out InvalidateNC.
5948 * XplatUIWin32.cs: implement InvalidateNC using the call I found
5949 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
5951 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
5953 * XplatUIDriver.cs: add InvalidateNC abstract method.
5955 * XplatUI.cs: add InvalidateNC.
5957 2006-11-21 Everaldo Canuto <everaldo@simios.org>
5959 * ToolBar.cs: Invalidate complete button area when pressed status
5961 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
5962 * ThemeWin32Classic.cs: Increase vertical and horizontal position
5963 by 1 when button is pressed.
5965 2006-11-20 Everaldo Canuto <everaldo@simios.org>
5967 * ToolButton.cs: Invalidate middle of DropDown button when
5968 ToolBar theres DropDownArrows.
5969 * ThemeWin32Classic.cs: Change position of DropDown arrow and
5970 fix DropDown drawing operations.
5972 2006-11-20 Chris Toshok <toshok@ximian.com>
5974 * NativeWindow.cs: fix the formatting of functions ('{' on the
5975 following line), and enable the thread exception dialog.
5977 * Application.cs: remove the duplicate exception catching from
5980 2006-11-20 Everaldo Canuto <everaldo@simios.org>
5982 * Toolbar.cs: Triggers button click event when click on icon
5983 of dropdown ToolBarButton. Fixes #79912.
5985 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5988 * ThemeWin32Classic.cs:
5989 - Added a property WindowBorderFont to enable themeing
5990 of mdi child windows' Text.
5992 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5994 * InternalWindowManager.cs:
5997 * MdiWindowManager.cs:
5998 - If mdi child is maximized, set mdi parent's
5999 text to "Parent - [Child]". Fixes #79770.
6000 - If there is any maximized mdi child windows, only the active
6001 window (and any new windows) is maximized, the rest are normal.
6002 - On a WindowState change only save mdi child's window bounds
6003 if the old window state was normal. Fixes #79774.
6004 - The scroll bars are now calculated on hopefully all
6005 necessary events. Fixed #79771 / #79844->6 / #79906.
6006 - MdiClient.SizeScrollBars() now takes into account docked
6007 controls in the parent when calculating available space.
6008 - InternalWindowManager now always repaints the entire title
6009 area. Fixes #79844->1/4/5.
6010 - Added RequestNCRecalc on mdi child windowstate changes.
6013 2006-11-20 Mike Kestner <mkestner@novell.com>
6015 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
6016 in the MouseUp handler of the listbox and move the return handling
6017 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
6019 2006-11-20 Everaldo Canuto <everaldo@simios.org>
6021 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
6023 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
6025 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
6026 working in 1.2.x anymore. So, updated.
6028 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
6030 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
6031 NumberGroupSeparator of current culture instead of assuming en-US.
6034 2006-11-17 Mike Kestner <mkestner@novell.com>
6036 * Control.cs: Add the concept of implicit bounds setting so that
6037 dock/undock round trips preserve explicitly set size/locations.
6040 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
6042 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
6043 can't handle those filters. (Fixes bug #79961)
6045 2006-11-17 Chris Toshok <toshok@ximian.com>
6047 [ fixes the exit/crashes associated with #79835. it's clearly
6048 suboptimal though, we need to figure out a better way to solve
6051 * PrintPreviewControl.cs: deal with the new invalid printer
6054 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
6055 and return false (so CommonDialog.ShowDialog doesn't actually show
6058 * PrintDialog.cs: enable/disable the Ok button depending on
6059 whether or not the printer is valid.
6061 * CommonDialog.cs (ShowDialog): only actually show the form if
6062 RunDialog returns true.
6064 2006-11-17 Jackson Harper <jackson@ximian.com>
6066 * TextControl.cs: When soft splitting a line, mark it as a soft
6067 split line. Also carry over the current line break to the next
6070 2006-11-17 Chris Toshok <toshok@ximian.com>
6072 * XplatUIX11.cs: when scrolling a window with an invalid area, we
6073 only want to shift the part of the invalid area that overlaps the
6074 area we're scrolling. we also don't want to clear the invalid
6075 area unless the invalid area was entirely contained within the
6078 2006-11-16 Chris Toshok <toshok@ximian.com>
6080 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
6081 also make sure to free the memory returned by XGetWindowProperty
6084 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
6086 2006-11-16 Chris Toshok <toshok@ximian.com>
6088 * XplatUI.cs: add a new super secret way to get at the totally
6089 unsupported X11 backend.
6091 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
6093 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
6095 2006-11-16 Jackson Harper <jackson@ximian.com>
6097 * TreeView.cs: Allow more explicit setting of top node position
6098 for scrollbars. Slower algo, but more accurate.
6099 - CollapseAll should maintain the current top node.
6100 * TextBoxBase.cs: When positioning the caret, use the line, pos
6101 method, since the x, y method does not grab the correct tag, and
6102 the caret height never gets set correctly. (Maybe I should just do
6103 away with the caret having its own height, and always use the
6104 carets current tag for height).
6106 2006-11-16 Jonathan Pobst <monkey@jpobst.com
6108 [Fixes 79778, 79923]
6110 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
6111 Parent to the FosterParent instead.
6113 2006-11-16 Jackson Harper <jackson@ximian.com>
6115 * TreeView.cs: Need to recalc the topnode when we expand or
6116 collapse. The scrolling methods can't handle this on their own,
6117 since they use differences between the last scroll position, and
6118 those difference get completely messed up since we are expanding
6119 nodes. This problem should probably be fixed in the scrolling
6120 methods, so they can figure out exactly where they are, but this
6121 will slow things down a little.
6122 * ThemeWin32Classic.cs: Special case for groupboxes with empty
6123 strings, makes nunit-gui look a lot nicer.
6125 2006-11-16 Chris Toshok <toshok@ximian.com>
6127 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
6128 the broken multithreaded event handling we have in here. File
6129 this entry under "Why we should move to the new X11 backend".
6131 Any thread can make it into UpdateMessageQueue, which gets events
6132 from the X socket - some of which could belong to hwnds being
6133 managed by a different thread. We can also have multiple threads
6134 in UpdateMessageQueue at the same time, with each one reading from
6135 the X socket. This leads to many problems, with the following
6138 We can't use hwnd.Queue.Enqueue anywhere in here and must use
6141 The MotionNotify compression we do can't work across threads
6142 (without locking the entire queue, perhaps) since we call
6143 hwnd.Queue.Peek, so we just punt and don't compress motion events
6144 unless the owning thread is the one which got the X event.
6146 ConfigureNotify is another fun one, since it modifies the hwnd's
6147 bounds and then enqueues the event. We add a lock to Hwnd which
6148 is held when setting configure_pending to true (and enqueuing the
6151 There is a race wrt the wake socket. we need to make sure that
6152 only 1 thread is waiting on that socket, or else a thread could
6153 sleep waiting for data that never comes. It's difficult (but not
6154 impossible) to make happen, because it seems to require something
6157 1. Thread 1 polls on wake_receive
6159 2. poll returns saying there's data to be read on
6162 3. Thread 2 polls on wake_receive and immediately returns
6163 saying there's data to be read.
6165 4. Thread 2 reads the wakeup byte from wake_receive
6167 5. Thread 1 attempts to read the wakeup byte from
6170 6. Thread 2 exits (due to a form closing, perhaps).
6172 7. Thread 1 blocks forever.
6176 Fixing the Expose handling isn't done yet, and the races inherent
6177 in that piece of code are responsible for the drawing mistakes you
6178 see when generating expose events in a MT app (like NPlot). This
6179 one is the likely to be the hardest to bandaid, and it doesn't
6180 appear to cause anything but drawing problems. The other issues
6181 caused apps to exit or hang.
6183 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
6184 called from a different thread than the one that should be calling
6187 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
6189 2006-11-15 Chris Toshok <toshok@ximian.com>
6191 * Application.cs: null out the context's MainForm when we exit
6192 RunLoop. Fixes a newly checked in unit test as well as the last
6193 ODE from bug #79933.
6195 2006-11-15 Chris Toshok <toshok@ximian.com>
6197 * Form.cs (set_Owner): allow a null value so we can clear the
6199 (Dispose): set all our owned_form's Owner properties to null, and
6200 clear the owned_forms collection.
6201 (WM_CLOSE): clean up this a little bit.. still not right though.
6203 * ApplicationContext.cs: OnMainFormClosed should only call
6204 ExitThreadCore if the main form isn't recreating. Fixes unit
6207 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
6211 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
6213 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
6217 * Hwnd.cs: Add a flag to show a window, but not activate it, to
6218 keep popup window types from stealing focus from the main form
6221 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
6223 * MenuAPI.cs: Set above flag to true.
6225 2006-11-15 Chris Toshok <toshok@ximian.com>
6227 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
6228 the button being released is not in wParam.
6230 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
6232 * Form.cs: Add the released button to MouseEventArgs.Button
6233 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
6236 2006-11-15 Chris Toshok <toshok@ximian.com>
6238 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
6239 GetText(). untested because it's unused in our implementation.
6240 Control.Text always caches the text, even if
6241 ControlStyles.CacheText is not set.
6245 2006-11-15 Chris Toshok <toshok@ximian.com>
6249 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
6250 message. no hiding, no disposing.
6252 in the WM_CLOSE handler, hide the form if it's modal.
6254 2006-11-15 Chris Toshok <toshok@ximian.com>
6256 * XplatUIX11.cs: use AddExpose instead of sending a message.
6257 fixes textbox border drawing.
6259 2006-11-15 Chris Toshok <toshok@ximian.com>
6261 * PropertyGridView.cs: keep from crashing on mouse move/down when
6262 the property grid is empty.
6264 2006-11-14 Jackson Harper <jackson@ximian.com>
6266 * TextControl.cs: Make PageUp and PageDown more like the MS
6268 * TextBoxBase.cs: When we set the text property position the
6269 cursor at the beginning of the document.
6271 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
6273 * Form.cs: if a mdi child's WindowState has changed
6274 before it's creation, it would display wrong control
6277 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
6279 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
6282 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
6284 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
6285 the window gets to paint its borders even if the window is
6288 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
6289 otherwise the old control buttons would still be painted
6290 if the window gets bigger.
6292 * PaintEventArgs.cs: add an internal method so that the clip
6293 rectangle can be changed.
6295 2006-11-13 Chris Toshok <toshok@ximian.com>
6297 [ fixes bug #79745 ]
6299 * NotifyIcon.cs: lots of cleanup.
6301 * X11Structs.cs: add an enum for XEMBED messages.
6303 * XplatUIX11.cs: reindent one of the giant switch statements, it
6304 was taking up an additional tab stop, and this file is already way
6305 too wide for my laptop's screen.
6307 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
6308 we get it, resize the hwnd to the WMNormalHints max_width/height.
6310 2006-11-13 Jackson Harper <jackson@ximian.com>
6312 * TextBoxBase.cs: Compute the value changes for the mouse wheel
6315 2006-11-13 Chris Toshok <toshok@ximian.com>
6317 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
6318 #79898. force a reference to the Region to stick around so the
6319 unmanaged object isn't collected (rendering our handle in the MSG
6322 2006-11-13 Chris Toshok <toshok@ximian.com>
6324 * XplatUIX11.cs: fix #79917 for window managers which support
6326 using XStoreName on the raw utf8, and we need to convert to
6327 COMPOUND_TEXT if it's non-latin1.
6329 2006-11-13 Chris Toshok <toshok@ximian.com>
6331 * Form.cs (set_DialogResult): we need to set closing to false if
6332 we're setting our result to None. fixes bug #79908.
6334 2006-11-13 Jackson Harper <jackson@ximian.com>
6336 * TextControl.cs: When formatting text, compute the adjusted tag
6337 lengths correctly, using FindTag for the end tag instead of trying
6338 to figure it out outselves.
6339 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
6340 the item, ItemHeight doesn't work, because trees with large
6341 imagelists use those for their height
6342 * TreeView.cs: ActualItemHeight factors in the image height
6343 - compute left edge of checkboxes correctly
6344 - when expanding/collapsing move the bottom down one pixel, so we
6345 aren't moving part of the node
6347 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6349 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
6350 stack in PaintEventStart so that it won't get disposed by the gc
6351 before reaching PaintEventEnd.
6353 2006-11-13 Jackson Harper <jackson@ximian.com>
6355 * TextBoxBase.cs: Don't select the word if we are on a line with
6357 - We don't need to position the caret on mouse up, since the mouse
6358 move handler should be doing this
6359 - When double clicking a blank line, the caret is advanced to the
6362 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
6364 * TreeNodeCollection.cs: Avoid duplicating indexer code.
6366 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
6368 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
6369 Fixes part of bug #79910.
6371 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
6373 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
6374 (bug #79903). Some minor string updates to match ms.
6376 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
6378 * FileDialog.cs: Don't add an extension if the filename
6379 already ends with that extension.
6381 2006-11-10 Jackson Harper <jackson@ximian.com>
6383 * TreeView.cs: Use the currently highlighted node for the
6385 * TextBoxBase.cs: There is no need to expand selection on
6387 - CanUndo means 'is there any undo operations', not 'is undo
6388 allowed on this textcontrol. Fixed ClearUndo unit test.
6390 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
6392 * Button.cs: only perform click when button is Selectable (so as
6393 not to activate default buttons when they're disabled)
6395 * Control.cs: Rewrite of the SelectNextControl and related
6396 methods. HandleClick now selects next control if the current one
6399 * Form.cs: OnActivated selects next active control only if Load
6400 has already occurred. If Load hasn't run, there's no point in
6401 selecting here, Load might change the state of controls.
6403 * FocusTest.cs: Tests marked as working again for these fixes
6405 2006-11-10 Chris Toshok <toshok@ximian.com>
6407 * XplatUIX11.cs: a couple of fixes.
6409 - use XInternAtoms with almost all the atoms we need to register,
6410 instead of many, many calls to XInternAtom. should help a bit on
6411 startup time, at the expense of making the code look a little
6414 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
6415 isn't reparented (which seems to be a clue that we're running fon
6416 compiz) and they have an Owner form. This fixes the tool windows
6417 in paint.net when running under compiz.
6419 - when setting the opacity of a window, support both the case
6420 where the window has been reparented and also when it hasn't been.
6421 Since compiz/beryl doesn't seem to reparent windows, and these are
6422 the only window managers which support translucency, I'm not sure
6423 why we need the hwnd.reparented case at all.. but leave it in.
6424 now we get translucent windows in paint.net under compiz/beryl.
6426 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
6428 * FileDialog.cs: Always return the value for FilterIndex that
6429 was set. Internally convert it to values that make sense.
6431 2006-11-10 Everaldo Canuto <everaldo@simios.org>
6433 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
6435 2006-11-10 Everaldo Canuto <everaldo@simios.org>
6437 * Toolbar.cs: Change default value of DropDownArrows to true, the
6438 signature still using false to make it compatible with MS but the
6439 initial value is true. Fixes #79855.
6441 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
6443 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
6444 only available on Linux.
6446 2006-11-09 Everaldo Canuto <everaldo@simios.org>
6448 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
6449 reduce number of calls to redraw method during toolbar creation.
6451 2006-11-09 Mike Kestner <mkestner@novell.com>
6453 * ListView.cs : raise SelectedIndexChanged when an item is selected
6454 programmatically via the Item.Selected property. Gert's nice
6455 ListViewSelectedIndexChanged test fixture now runs clean.
6457 2006-11-09 Mike Kestner <mkestner@novell.com>
6459 * ListView.cs : raise SelectedIndexChanged when a selected item is
6460 removed from the item collection using Remove or RemoveAt.
6462 2006-11-09 Mike Kestner <mkestner@novell.com>
6464 * ListView.cs : raise SelectedIndexChanged once per selected item
6465 for compat with MS. Fixes #79849+.
6467 2006-11-09 Chris Toshok <toshok@ximian.com>
6469 * TabControl.cs: initialize row_count to 0, and set it to 1 when
6470 we need to (if we have any tab pages). Fixes unit test.
6472 2006-11-09 Chris Toshok <toshok@ximian.com>
6474 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
6475 width is 0, not 3. Fixes a unit test.
6477 2006-11-09 Mike Kestner <mkestner@novell.com>
6479 * ListView.cs : use Implicit scrollbars so that focus isn't
6480 stolen from the listview when they are clicked. Fixes #79850.
6482 2006-11-09 Chris Toshok <toshok@ximian.com>
6484 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
6485 have a root item. Fixes #79879.
6487 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
6491 - An ArgumentException is now thrown if a wrong filter
6492 is applied (matches ms). The previous filter doesn't change
6493 anymore if an exception is thrown.
6494 - Changing the FileName property also affects FileNames
6495 * ColorDialog.cs: The length of the CustomColors array is always
6496 16. It doesn't matter if we use a smaller array or null to update
6497 or change the custom colors property.
6498 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
6499 for RootFolder if we get a undefined value.
6501 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6503 * StatusBarPanel.cs:
6504 - Width is set to MinWidth if Width is smaller than
6505 MinWidth. Fixes #79842.
6506 - MinWidth now always overrides Width (MSDN says MinWidth
6507 is set to Width when AutoSize = None, but they do not
6509 - Style has now the the correct default value.
6511 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
6514 - The control is completely invalidated on
6515 Got/LostFocus to draw the focus rectangle correctly.
6516 - When AutoSize then height is always 45 (width for
6519 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
6520 on the mouse when moved and it doesn't move when grabbed
6521 until the mouse moves as well. Also fixed some wrong
6522 calculations when clicking on the thumb (control thought
6523 click was outside of thumb and didn't grab it).
6524 Fixes some of the issues in #79718.
6526 2006-11-08 Everaldo Canuto <everaldo@simios.org>
6528 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
6530 2006-11-08 Chris Toshok <toshok@ximian.com>
6532 * PropertyGridView.cs: only call ToggleValue if the item is not
6535 2006-11-08 Jackson Harper <jackson@ximian.com>
6537 * TextBoxBase.cs: The RichTextBox and textbox have very different
6538 word selection methods. Implement the textbox's simple word
6539 selection here, and let the RichTextBox override and provide it's
6541 - Don't do extra selection on mouseup
6542 * RichTextBox.cs: Use the documents word selection algorithm, I
6543 think ideally, this function will be pulled into the
6544 RichTextBox.cs code someday.
6546 2006-11-08 Chris Toshok <toshok@ximian.com>
6548 * RootGridEntry.cs: new class to represent GridItemType.Root.
6550 * CategoryGridEntry.cs: reformat, and add boilerplate.
6552 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
6553 returns the UI parent anyway, and we need special handling to
6554 implement the GetTarget method in the face of it. Also, implement
6557 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
6558 a root grid item, and use that instead of PropertyGrid.grid_items.
6559 Also, make use of TypeConverters (and add limitted support for
6560 ICustomTypeDescriptors) when initially populating the grid.
6561 Arrays now show up more or less properly.
6563 2006-11-08 Chris Toshok <toshok@ximian.com>
6565 * Application.cs: set the modal dialog to non modal after we close
6566 it. Fixes bug #79866.
6568 2006-11-08 Jackson Harper <jackson@ximian.com>
6570 * TextControl.cs: When combining lines carry over the line end
6571 style from the end line.
6572 - Invalidate the selected area when setting it, if it is visible.
6573 * TextBoxBase.cs: Only rich text box can do full line selects.
6574 - Make sure to set the cursor position when there is a click,
6575 otherwise two clicks in separate areas could cause a large chunk
6578 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6580 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
6583 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6585 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
6586 time. Remove tooltips when ToolButton click events. Fixes #79856.
6588 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6590 * MenuAPI.cs: Ignore right click for menu actions and fixes
6591 menu border when clicked. Fixes #79846.
6593 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6595 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
6596 MouseState after create wParam for message, this fixes mouse button
6597 equal none in mouse up events.
6599 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
6601 * Control.cs : Focus() now calls Select to set the Container's
6602 Active Control and to give it focus. To avoid infinite recursion
6603 (because ActiveControl also calls Focus at one point), a check
6604 is made in Focus with the help of a new internal variable
6607 2006-11-07 Mike Kestner <mkestner@novell.com>
6609 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
6610 if there's a selection. Fixes #79849.
6612 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
6614 * PropertyGrid.cs: Avoid fixed height of help description label.
6615 Fixes part of bug #79829.
6617 2006-11-07 Chris Toshok <toshok@ximian.com>
6619 * XplatUIX11.cs: fix #79790 again, by using the
6620 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
6622 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6624 * ToolBar.cs: Fix left click checking.
6626 2006-11-07 Chris Toshok <toshok@ximian.com>
6628 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
6630 2006-11-07 Chris Toshok <toshok@ximian.com>
6632 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
6633 PropertyManager unit tests.
6635 * PropertyManager.cs: make property_name internal.
6637 2006-11-07 Chris Toshok <toshok@ximian.com>
6639 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
6640 pass a unit test. Also, don't set image_index to anything in
6641 response to setting the ImageList property.
6643 2006-11-07 Everaldo Canuto <everaldo@simios.org>
6645 * ToolBar.cs: Ignore click events when mouse button is not a
6646 left button, only accepts other button for dropdown menus.
6649 2006-11-07 Chris Toshok <toshok@ximian.com>
6651 * DataGrid.cs: make the back and parent row buttons a little less
6654 2006-11-07 Jackson Harper <jackson@ximian.com>
6656 * TextBoxBase.cs: When converting to Text don't put line breaks in
6657 for soft line breaks.
6658 * TextControl.cs: There is an initial "fake" line in the document,
6659 this is now a soft break line, so that an extra line feed doesn't
6660 get added to the end of documents.
6662 2006-11-07 Chris Toshok <toshok@ximian.com>
6666 * CurrencyManager.cs: if the list is readonly, don't bother
6667 checking if IBindingList.AllowNew is true.
6669 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
6670 for non-DataRowView datasources.. or rather, make it not crash.
6671 (DataGridPaintRelationRow): make sure we limit the row painting to
6672 the area not covered by the row header, and make our cell width at
6673 least large enough to cover the relation area. This allows grids
6674 that have relations but no rows to render correctly.
6675 (DataGridPaintRowContents): same type of changes here.
6676 (SetDataSource): move back to always calling
6677 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
6678 navigating back through relations.
6679 (HitTest): handle the case where we have no cells but have
6680 relations. Right now we generate a hit in cell 0 of whatever the
6681 row is, not sure if this is strictly correct, but it works for our
6684 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
6685 bother doing anything.
6687 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
6689 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
6690 early version of StatusStrip. Not responsible for eaten
6691 application or firstborn children.
6693 2006-11-06 Chris Toshok <toshok@ximian.com>
6695 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
6696 call GetTabRect with a -1 index. Fixes #79847.
6698 2006-11-06 Jackson Harper <jackson@ximian.com>
6700 * TreeNodeCollection.cs: Update scrollbars after clearing.
6702 2006-11-06 Chris Toshok <toshok@ximian.com>
6704 * NumericUpDown.cs: fix the ToString method for some unit test
6707 2006-11-06 Chris Toshok <toshok@ximian.com>
6710 - set the initial SelectedGridItem if we can.
6712 - Exclude non-mergable properties only if we're merging > 1
6713 object. Merging 1 object isn't really merging, obviously.
6715 - Handle PropertySort.NoSort just like Alphabetical, which is
6716 wrong of course, but at least gets things on the screen.
6718 * PropertyGridView.cs:
6719 - Add method "FindFirstItem" which finds the first property grid
6720 item, so we can select it by default.
6722 - make use of GridEntry.CanResetValue.
6724 - Don't call RedrawBelowItemOnExpansion here anymore, the
6725 individual GridEntry's will do that.
6727 - Remove the ITypeDescriptorContextImpl internal class.
6730 - this class needs to implement ITypeDescriptorContext, as it's
6731 what MS's PropertyDescriptorGridEntry does, which means we can
6732 remove the ITypeDescriptorContextImpl internal class from
6733 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
6735 - keep a reference to our PropertyGridView, and move the call to
6736 RedrawBelowItemOnExpansion here from PGV. This means
6737 programmaticly setting Expanded actually does something visible.
6739 - add a CanResetValue() function which takes into account our
6740 possibly multiple "selected_objects" in the merged case. Shifting
6741 PropertyGridView to use this method fixes another unreported
6742 crasher found running the test for #79829.
6744 - when Top or Bounds is updated, make sure the PropertyGridTextBox
6745 is updated to reflect this.
6747 * CategoryGridEntry.cs: the ctor takes the PGV now.
6749 2006-11-06 Jackson Harper <jackson@ximian.com>
6751 * TextControl.cs: These are 1 based.
6752 * TextBoxBase.cs: When setting the selected text, don't change the
6753 selected text tags, this is done by ReplaceText, just position the
6754 cursor at the end of the new text.
6756 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
6758 * ListView.cs: Allow label edit only when, when LabelEdit is
6761 2006-11-06 Jackson Harper <jackson@ximian.com>
6763 * TextControl.cs: If a suitable wrapping position isn't found,
6764 just wrap right in the middle of a word.
6766 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
6768 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
6771 2006-11-06 Jackson Harper <jackson@ximian.com>
6773 * TreeView.cs: Can't use the VisibleCount property when setting
6774 scrollbar heights, because this doesn't take into account whether
6775 or not the horz scrollbar just came visible.
6777 2006-11-05 Everaldo Canuto <everaldo@simios.org>
6779 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
6780 activated. Fixes #79369, #79832.
6782 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
6784 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
6785 had to remove support for links that point to a directory. FileInfo
6786 returns no usefull information (means, the directory they point to)
6787 for such links. Replaced some empty string ("") with String.Empty.
6789 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6791 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
6792 NullReferenceException when attempting to remove node that is not in
6793 collection. Throw NullReferenceException when null is passed to
6794 Remove. Allow first element of the collection to be removed. Fixes
6795 bug #79831. In GetEnumerator ().Current return null if positioned
6796 before the first element of the collection. In GetEnumerator ().Reset,
6797 position before first element of the collection.
6799 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6801 * PropertyGrid.cs: To match MS, remove default title and description
6802 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
6805 2006-11-04 Chris Toshok <toshok@ximian.com>
6807 * Theme.cs: add a Clamp method, just for kicks.
6809 * ThemeWin32Classic.cs: clamp all color components to [0..255].
6811 2006-11-04 Chris Toshok <toshok@ximian.com>
6813 * Form.cs: if the form isn't visible, Close() does nothing.
6815 2006-11-03 Chris Toshok <toshok@ximian.com>
6817 * Form.cs (Close): if the form is modal, don't Dispose of it, only
6819 (WndProc): don't Dispose after handling the WM_CLOSE message.
6821 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
6822 them as such, instead of using casts from Control to Form. Also,
6823 don't Dispose of the modal dialog when we fall out of the loop -
6828 2006-11-03 Chris Toshok <toshok@ximian.com>
6830 * Control.cs (Dispose): only go through the dispose thing if we're
6831 @disposing, and we haven't already been disposed. Fixes bug
6834 * Form.cs: no reason to call "base.Dispose()" here instead of
6837 2006-11-03 Mike Kestner <mkestner@novell.com>
6839 * ComboBox.cs : use ToString instead of casts in AddItem for
6840 sorting functionality. Fixes #79812.
6842 2006-11-03 Chris Toshok <toshok@ximian.com>
6844 * Application.cs: pave the way for actually using the thread
6845 exception dialog. it's ifdefed out at the moment.
6847 2006-11-03 Chris Toshok <toshok@ximian.com>
6849 * ThreadExceptionDialog.cs: until we get a better layout, actually
6850 hide the details textbox and label when we shouldn't see them.
6852 2006-11-03 Jackson Harper <jackson@ximian.com>
6854 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
6855 multiline textboxes anymore. This method also determines the
6856 width/height of a textboxes canvas area.
6857 - Sorta a revert of the last patch. For multiline just position
6858 the controls, then bail. This way the scrollbar width won't be
6861 2006-11-03 Everaldo Canuto <everaldo@simios.org>
6863 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
6864 it dont need. Fixes #79537.
6866 2006-11-02 Jackson Harper <jackson@ximian.com>
6868 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
6869 send the status after firing the DndOver event.
6871 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6873 * TrackBar.cs: Now orientation only switches height / width if
6874 the control's handle is created (Win32 does it like this). Also
6875 fixed a typo in ToString() for a test to pass, changed the
6876 exception thrown in set_LargeChange and set_SmallChange to
6877 match Win32 behaviour, and added TrackBar tests to the unit
6880 2006-11-02 Chris Toshok <toshok@ximian.com>
6882 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
6883 not _NET_WM_STATE_NO_TASKBAR.
6885 2006-11-02 Jackson Harper <jackson@ximian.com>
6887 * TextControl.cs: Increment count by one, since in the update view
6890 2006-11-02 Jackson Harper <jackson@ximian.com>
6892 * TextBoxBase.cs: Use client rectangle not bounds for checking if
6893 the mouse is in the client rectangle (duh).
6895 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
6897 * TrackBar.cs: Fixed trackbar jumping around when clicking
6898 on it - the trackbar was not detecting correctly at which
6899 side of the thumb the click was done. (fixes #79718)
6901 2006-11-02 Everaldo Canuto <everaldo@simios.org>
6903 * ListBox.cs: scroll visible area when change SelectedIndex to
6904 a non visible area. Fixes #79481.
6906 2006-11-01 Jackson Harper <jackson@ximian.com>
6908 * TextControl.cs: When replacing the selection move the selection
6909 start/end/anchor to the end of the new text.
6911 2006-11-01 Jackson Harper <jackson@ximian.com>
6913 * XplatUIWin32.cs: When setting the parent change the controls
6914 visibility to it's visibility flag, not to it's old parents
6915 visibility (.Visible walks the parent chain).
6917 2006-11-01 Chris Toshok <toshok@ximian.com>
6919 * XplatUIX11.cs: revert the #79790 fix, as the simple.
6920 XSetTransientForHint fix breaks paint .net's tool windows. more
6921 work needed for that one.
6923 2006-11-01 Chris Toshok <toshok@ximian.com>
6925 * ScrollBar.cs: throw ArgumentException instead of Exception in
6926 LargeChange/SmallChange setters. fixes unit tests.
6928 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
6930 * ContainerControl.cs: reverted rev.67183 (which was itself
6931 a reversion of rev.66853... eh).
6933 * Control.cs: Fixes Reflector hang by changing Focus() call
6934 to what it was before rev.66643 (calling Select() here sets
6935 ActiveControl, which in some situations calls back Focus and
6936 eventually does a stack overflow). Temp fix.
6937 Changes to GetNextControl() to not look for children to select when
6938 parent cannot be selectable (so it looks for siblings instead)
6940 2006-10-31 Mike Kestner <mkestner@novell.com>
6942 * CheckedListBox.cs : off by one error in returned index from
6943 ObjectCollection.Add. Fixes #79758.
6945 2006-10-31 Chris Toshok <toshok@ximian.com>
6947 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
6948 calls for the textbox/spinner, to keep from recursing to the point
6949 where we crash. Fixes #79760.
6951 2006-10-31 Chris Toshok <toshok@ximian.com>
6953 * ListControl.cs (set_SelectedValue): don't throw exceptions on
6954 null/"" value, just return. matches ms's behavior and fixes some
6957 2006-10-31 Chris Toshok <toshok@ximian.com>
6959 * Control.cs (set_Capture): make a logic a little easier to
6962 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
6963 if it's being destroyed. A necessary fix surely, but a bandaid
6964 also, to fix the stuck capture problem in bug #78413.
6966 2006-10-31 Chris Toshok <toshok@ximian.com>
6968 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
6969 convention of clearing hwnd.ClientRect when we set the
6970 width/height (so it'll be recalculated by Hwnd).
6972 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
6974 * ContainerControl.cs: reversed Contains check from
6975 ActiveControl due to hanging problems. This fix
6976 partly regresses #79667 (button does not have
6977 initial focus), so this might be a symptom for
6978 a larger parenting problem (set_ActiveControl
6979 is being called but the child control does
6980 not have the parent set yet?)
6982 2006-10-31 Mike Kestner <mkestner@novell.com>
6984 * MenuAPI.cs : fix keynav when menu is click activated.
6986 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
6988 * ToolStrip*: Version 0.2.
6990 * MenuStrip.cs: Version 0.1.
6992 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
6994 2006-10-30 Chris Toshok <toshok@ximian.com>
6996 [ fixes the oversized notify icon issue in bug #79745 ]
6998 * NotifyIcon.cs: scale the icon down to the size we're given by
6999 the XplatUI layer (this would be faster if we did it once instead
7000 of whenever we paint..) Also, remove the WM_NCPAINT handling,
7001 since it's never invoked.
7003 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
7004 pixels high by default, so let's hardcode our systray icon to that
7005 size. The SYSTEM_TRAY protocol should really have a way for
7006 client apps to query for the correct icon size.. but oh well. A
7007 couple of patches to deal with the screwy client_window ==
7008 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
7009 instance, and also make sure we don't XSelectInput twice).
7011 2006-10-30 Chris Toshok <toshok@ximian.com>
7013 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
7014 recreating forms. Control recreation is the bane of my existence.
7015 Fix it in a way that keeps everyone happy.
7017 2006-10-30 Chris Toshok <toshok@ximian.com>
7019 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
7020 just non-CHILD ones. otherwise sometimes scrollbars end up with
7021 client_windows not being resized to the proper size (ReportBuilder
7022 shows this extremely well).
7024 2006-10-30 Chris Toshok <toshok@ximian.com>
7026 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
7027 for non-WS_EX_APPWINDOW windows. This is what keeps them from
7028 showing up in the gnome taskbar. Fixes bug #79790.
7030 2006-10-30 Chris Toshok <toshok@ximian.com>
7032 * ApplicationContext.cs: guard against a NRE.
7034 * Application.cs: null out the old MainForm for the context, so we
7035 don't try to use it again once it's disposed. Fixes bug #79783.
7037 2006-10-30 Chris Toshok <toshok@ximian.com>
7039 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
7040 BindingContext, set the data source directly, otherwise do the
7041 lazy approach - the actual ListManager will be created when we get
7042 a BindingContext. Fixes bug #79700.
7044 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
7046 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
7047 XplatUIX11.cs: Remove old 2 parameter SetVisible.
7049 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
7051 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
7053 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
7054 of SetVisible that allows a window to be shown, but not activated.
7055 This is needed on Windows for MenuStrip, and can probably be used
7056 with MainMenu and ComboBox to fix the focus stealing issues on
7059 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
7061 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
7063 * PictureBox.cs: Fix the output of the ToString method.
7065 2006-10-29 Chris Toshok <toshok@ximian.com>
7067 * Control.cs (get_TopLevelControl): fix bug #79781.
7069 2006-10-29 Chris Toshok <toshok@ximian.com>
7071 * ListControl.cs (set_DataSource): throw Exception here, not
7072 ArgumentException, to match MS behavior.
7074 2006-10-29 Chris Toshok <toshok@ximian.com>
7076 * Form.cs: remove the try-catch's around calls to GetWindowState.
7077 We can just check the return value.
7079 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
7082 * XplatUI.cs: Add note about additional return value for
7085 2006-10-29 Chris Toshok <toshok@ximian.com>
7087 * Control.cs (CreateHandle): when we create our handle, we also
7088 create the handles of our child controls. Fixes one of the
7089 Control unit tests (CH11).
7091 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
7093 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
7095 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
7097 * ThemeClearlooks.cs: A little speedup.
7099 2006-10-27 Chris Toshok <toshok@ximian.com>
7101 * Control.cs: implement Control.FromChildHandle in a way that
7102 matches the docs (and fixes the failed test.)
7104 2006-10-27 Chris Toshok <toshok@ximian.com>
7106 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
7109 * DataGrid.cs: implement ResetForeColor such that the tests
7112 2006-10-27 Chris Toshok <toshok@ximian.com>
7114 * ToolBarButton.cs: setting text/tooltiptext to null results in it
7115 being set to "". Fixes bug #79759.
7117 2006-10-27 Jackson Harper <jackson@ximian.com>
7119 * TextControl.cs: We need to clear the entire selection area when
7120 setting the start, otherwise multiline selections are still
7123 2006-10-26 Chris Toshok <toshok@ximian.com>
7125 * PropertyGridView.cs:
7127 - ifdef all the code specific to the double
7128 buffer case, and provide some alternatives in the non-doublebuffer
7129 code, which makes heavy use of XplatUI.ScrollWindow to move things
7130 around without having to invalidate (and cause flicker). There
7131 are still some drawing problems in the non-doublebuffered case, so
7132 DOUBLEBUFFER is defined by default.
7134 - Fix the way dropdowns are handled. now we explicitly watch for
7135 the events which might cause the dropdown to close, and break out
7136 of the nested event loop there. This gets rid of all Capture
7137 code, at the expense of the Msg special casing. Seems to work,
7138 though, and fixes bug #79743.
7140 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
7141 * Control.cs: SetIsRecreating now recreates implicitly added
7142 child controls as well. Finally fixes #79629. The flag passed to
7143 SetIsRecreating has also been removed since it wasn't used.
7145 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7147 * PageSetupDialog.cs: Clean some code, fix some bits,
7148 add some checks, and add a printer sub-dialog.
7150 2006-10-26 Chris Toshok <toshok@ximian.com>
7152 * PropertyGrid.cs: make set_SelectedObject call
7153 set_SelectedObjects, and move the duplicate logic to the
7154 SelectedObjects setter. Also, raise SelectedObjectsChanged.
7156 * PropertyGridView.cs: hide the textbox when we get a
7157 SelectedObjectsChanged event.
7161 2006-10-26 Chris Toshok <toshok@ximian.com>
7163 * PropertyGridView.cs: deal with the type converter not supporting
7164 GetStandardValues() or GetStandardValues() returning null, which
7165 is does in the default case. Fixes #79742.
7167 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
7169 * CheckedListBox.cs: nunit no longer crashes when selecting
7170 Project/Edit menu option
7172 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
7174 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
7175 is no menu selected. fixes #79739
7177 2006-10-25 Chris Toshok <toshok@ximian.com>
7179 * PropertyGridView.cs: factor out the splitter invalidation code
7180 into the SplitterPercent setter, and for kicks implement the
7181 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
7182 amount in either direction.
7184 2006-10-25 Chris Toshok <toshok@ximian.com>
7186 * PropertyGridView.cs: do some cleanup of the brush used to draw
7187 text - read only fields should be grayed out. not sure how to do
7188 this with the textbox, though. but the textbox's should also be
7189 readonly now at least. Also, hide/show the textbox when resizing
7192 * CursorConverter.cs: use System.Reflection when getting the
7193 properties of Cursors, as TypeDescriptor.GetProperties isn't
7194 returning static properties.
7196 2006-10-25 Chris Toshok <toshok@ximian.com>
7198 * PropertyGridView.cs: factor out the up/down handling, and reuse
7199 it for page up/down. also add End/Home support.
7201 2006-10-25 Chris Toshok <toshok@ximian.com>
7203 * PropertyGridView.cs:
7205 - ensure the selected grid item is visible in the scrolled area,
7208 - fix Keys.Down handling when you're on the last item in the
7211 2006-10-25 Mike Kestner <mkestner@novell.com>
7213 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
7214 clicks too. Fixes #79725.
7216 2006-10-24 Chris Toshok <toshok@ximian.com>
7218 * PropertyGrid.cs: use property.Converter instead of
7219 TypeDescriptor.GetConverter(property.PropertyType), so we catch
7220 TypeConverters declared on the property as well as on the
7221 PropertyType. Fixes bug #79678.
7223 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
7225 * MimeIcon.cs, Mime.cs:
7226 Fallback to the default platform handler if no shared mime info
7227 stuff exists (fixes #79693).
7229 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
7230 * ContainerControl.cs: Incorrect contains check in ActiveControl
7231 from previous fix (duh).
7233 2006-10-20 Chris Toshok <toshok@ximian.com>
7235 * PropertyGridView.cs: the dropdown should be MIN(number of items
7236 in list, 15). Fixes #79551.
7238 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
7239 Fixes #79384, #79394, #79652, #79667
7242 - Modal windows are now destroyed in the proper order for windows
7244 * ContainerControl.cs:
7246 - ActiveControl setter has more conditions on when to return:
7247 - if we're reselecting the active control, but it actually
7248 didn't have focus (window hidden or some such), it runs
7249 - if the active control being selected doesn't actually
7250 exist in the container, it returns
7254 - The ShowDialog now gets the current form as the owner when
7255 invoking without parameters, and correctly activates the owner
7260 - MessageBox now catches the Escape key to exit
7262 2006-10-20 Chris Toshok <toshok@ximian.com>
7264 * PropertyGridView.cs: fix a number of issues (bug #78565, and
7265 most of bug #79676):
7267 - you can navigate around the property grid with the arrow keys.
7269 - the dropdown is sized properly when the pg has a vertical
7272 - fix the indentation for subentries, and properly select the
7275 - fix the gray bar's drawing (only draw it to the last element,
7276 not for the height of the control. Also make sure we draw that
7277 last horizontal grid line.
7279 - use the same mechanism the datagrid uses wrt the editing textbox
7280 when scrolling/resizing/etc. Namely, we hide it first, do the
7281 operation, then show it again (if it's still visible).
7283 - aggressively remove a lot of unnecessary refreshes (and also
7284 calls to Invalidate(). call more limited variants, and only redraw
7289 - when we're populating the merged collection, fill in the UI
7290 parent with either the passed in item, or the category item we
7293 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
7295 * GridItem.cs: drop some fully qualified names.
7297 * GridEntry.cs: add a "UIParent", which is basically the parent
7300 * GridItemCollection.cs: add an IndexOf method.
7302 2006-10-20 Mike Kestner <mkestner@novell.com>
7304 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
7305 a working win32 NC invalidation mechanism, we can't invalidate
7306 menus. [Fixes #79705]
7308 2006-10-20 Mike Kestner <mkestner@novell.com>
7310 * ListBox.cs : don't update the VScrollbar if the list is empty,
7311 just hide it. [Fixes #79692]
7313 2006-10-20 Jackson Harper <jackson@ximian.com>
7315 * RichTextBox.cs: Handle some special chars better, and don't skip
7316 the entire group when we encounter a special char that we don't
7319 2006-10-18 Chris Toshok <toshok@ximian.com>
7321 * PropertyGridView.cs: address a number of issues from bug #79676,
7322 mostly of the cosmetic variety.
7324 - The highlight rectangle for indented items not extends all the
7327 - Indented items aren't indented so much.
7329 - the dropdown is properly sized width-wise if the pg has a
7332 2006-10-18 Chris Toshok <toshok@ximian.com>
7334 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
7335 systray stuff is rather convoluted to begin with.
7337 systray icons are a single window for some reason (that I haven't
7338 figured out yet), and for them, client_window == whole_window.
7339 Given the way the tests are structured elsewhere to determine
7340 which paints are pending (client vs. nc), that situation will
7341 always yield PAINT, not NCPAINT. So, if we have a pending
7342 nc_expose and no pending expose, remove the hwnd from the paint
7343 queue, and also set nc_expose_pending to false, to keep us from
7344 blocking further expose's adding the hwnd to the paint queue.
7346 phew. like i said, a rather convoluted change. Fixes the
7347 notifyicon repaint issues in bug #79645.
7349 2006-10-18 Chris Toshok <toshok@ximian.com>
7351 * Form.cs: when getting the backcolor of the form, don't get
7352 base.BackColor, as this allows parents to influence the background
7353 color. This breaks mdi forms. Instead, if the background_color
7354 is empty, return the default.
7356 2006-10-18 Chris Toshok <toshok@ximian.com>
7358 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
7359 to being private instead of internal static.
7361 * Control.cs: remove all the stupid ParentWaitingOnRecreation
7362 crap, it wasn't working for more deeply nested controls anyway,
7363 and we already have the is_recreating flag - use that instead.
7364 Before calling DestroyHandle in RecreateHandle, recurse through
7365 the control tree setting it to true. this returns the recreate
7366 code to much of its original simplicity, while now guaranteeing we
7367 actually recreate everything we're supposed to. This change gets
7368 fyireporting actually showing mdi children.
7370 2006-10-17 Chris Toshok <toshok@ximian.com>
7372 * Form.cs: remove some debug spew, and collapse some duplicate
7373 code at the end of SetClientSizeCore.
7376 - add some more debug spew here too wrt Destroy handling.
7377 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
7378 in Control's handling of WM_DESTROY.
7379 - Remove the handling of zombie window DestroyNotifies from the
7380 event loop - we don't need it. Now the only DestroyNotifies we
7381 actually handle are ones generated by X.
7382 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
7383 match gtk's (functioning) handling of this. This keep metacity
7384 from leaving droppings in the form of wm borders with no window
7385 contents all over the place.
7388 - add a bunch of debug spew wrt control recreation.
7389 - fix a bug where we weren't tracking Visible properly on
7391 - fixed the WM_PAINT double buffer handling to support re-entrant
7392 calls (yes, i know it's gross, but it's happening to us).
7394 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7395 * ThemeWin32Classic.cs: changed drawing of selected days
7396 to make them look better.
7398 2006-10-16 Chris Toshok <toshok@ximian.com>
7400 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
7401 drawing_stack. Nuke the ClientDC/NonClientDC properties.
7403 * XplatUIX11.cs: move away from using hwnd.client_dc and
7404 hwnd.non_client_dc and on to a stack of dc's (and in window's
7405 case, PAINTSTRUCT's), so we can deal with nested Paint calls
7406 without puking or not disposing of Graphics objects.
7408 * XplatUIOSX.cs: same.
7410 * XplatUIWin32.cs: same.
7412 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
7414 * FileDialog.cs: Don't call on_directory_changed inside
7415 OnSelectedIndexChanged (it changes the SelectedIndex too).
7416 Instead move it to OnSelectionChangeCommitted.
7418 2006-10-13 Chris Toshok <toshok@ximian.com>
7420 * XplatUIX11.cs: more Destroy work. the current code does the
7421 following things, in order:
7423 1. Enumerates all handles of all controls at or below the one
7424 being destroyed, in pre-order. As it is doing this, it marks the
7425 handles as zombie and clears all references to them.
7427 2. calls XDestroyWindow on the window passed in.
7429 3. SendMessage's WM_DESTROY to all he handles in the accumulated
7432 2006-10-13 Chris Toshok <toshok@ximian.com>
7434 * XplatUIX11.cs: set hwnd.zombie to true before calling
7435 SendMessage (WM_DESTROY). this keeps us from marking the new
7436 window a zombie, and also keeps us from calling sendmessage at
7439 2006-10-13 Jackson Harper <jackson@ximian.com>
7441 * TextControl.cs: Do not show the caret and selection at the same
7442 time. Reduces ugliness by 35%.
7444 2006-10-13 Chris Toshok <toshok@ximian.com>
7446 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
7447 zombie after we do the recursive call, so we actually do call
7448 SendMessage on the children controls.
7449 (GetMessage): if we find a pending paint event for a zombie hwnd,
7450 remove the hwnd from the paint queue, or else it will always be
7451 there (and we'll effectively loop infinitely)
7453 2006-10-13 Mike Kestner <mkestner@novell.com>
7455 * MenuItem.cs : add Selected format under keynav too.
7458 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7460 * PropertyGrid.cs: Fixed some NRE's and small difference between our
7461 implementation and that of MS.
7463 2006-10-13 Chris Toshok <toshok@ximian.com>
7465 * Control.cs (OnInvalidated) only futz with the invalid_region if
7466 the control is double buffered. this fixes the apparent hang in
7467 the ListView unit tests. Someone needs to make the
7468 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
7470 2006-10-13 Chris Toshok <toshok@ximian.com>
7472 * PropertyGridView.cs:
7474 - do a little refactoring so that only one place calls
7475 dropdown_form.Hide, and that is CloseDropDown. make everywhere
7476 else call that. Also make it Refresh, since there are redraw bugs
7477 otherwise (we should take a look at that...)
7479 - do a little more refactoring work to share the body of code
7480 involved with the drop down. it was duplicated in the code
7481 dealing with the listbox handling and in the code dealing with the
7484 - add a Capture to the dropdown form's control once it's
7485 displayed, and add a MouseDown handler that checks to make sure
7486 the position is inside the control. If it's not, close the
7487 dropdown. This fixes #78190.
7489 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
7490 if the value is different than the initial value.
7492 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
7494 * Control.cs: see #78650
7495 - Fixed GetNextControl for several cases:
7496 - Changed FindFlatForward to return
7497 correct sibling control when more than one
7498 control has same TabIndex as the currently
7500 - Changed FindFlatBackward to loop children
7501 from last to first and apply same logic as in
7503 - Changed FindControlForward to search for
7504 children when control is not a container
7505 but has children, or search for siblings if
7506 control is a container...
7507 - Changed FindControlBackward to continue
7508 searching for child controls when hitting
7511 - Fixed Focus method to update ActiveControl
7512 (FocusTest.FocusSetsActive failure)
7515 - Focus rectangle now refreshes when gaining
7517 - Removed grab for Tab key on IsInputKey that
7518 was keeping tab navigation from working (#78650)
7520 2006-10-13 Chris Toshok <toshok@ximian.com>
7522 * PropertyGridView.cs:
7523 - Rewrite SetPropertyValue to loop over SelectedGridItem's
7526 - Deal with GridItem.Value == null a few places.
7529 - replace the PopulateGridItemCollection with a pair of methods
7530 which compute the intersection of all the properties in the
7531 SelectedObjects array. Fixes #79615.
7533 - Throw ArgumentException from set_SelectedObjects if there's a
7536 - Add GetTarget method which can be used to traverse up the
7537 GridItem.Parent chain. It depends on the assumption that
7538 selected_objects for different GridEntries are always in the same
7539 order (a safe assumption). Use this method and loop over all the
7540 selected objects in the entry when calling RemoveValueChanged and
7543 * GridEntry.cs: Make this handle multiple selected objects.
7544 .Value returns null if not all the selected objects share the same
7547 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
7548 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
7549 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
7550 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
7551 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
7552 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
7553 add additional functionality.
7555 2006-10-12 Mike Kestner <mkestner@novell.com>
7557 * ErrorProvider.cs : new ToolTipWindow ctor sig.
7558 * HelpProvider.cs : new ToolTipWindow ctor sig.
7559 * ToolTip.cs : remove ToolTip param from Window sig since it is
7561 * ToolBar.cs : add tooltip support. Fixes #79565.
7563 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7565 * ComboBox.cs: move the events in set_SelectedIndex to
7566 after the call to HighlightIndex in order to avoid
7567 possible recursion and subsequent problems with the call
7568 to HighlightIndex and include a range check in
7569 set_HighlightIndex. Fixes #79588
7571 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7573 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
7574 to ui thread's settings instead of sunday.
7575 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
7577 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
7581 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
7582 and implement missing functionality (selecting different parts
7583 of the date and edit them individually with the keyboard).
7585 2006-10-11 Chris Toshok <toshok@ximian.com>
7587 * Control.cs (OnInvalidated): fix NRE relating to last change.
7589 2006-10-11 Chris Toshok <toshok@ximian.com>
7591 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
7592 atoms in _NET_WM_STATE here if the window is maximized. We need
7593 to do this because we're *replacing* the existing _NET_WM_STATE
7594 property, so those atoms will be lost otherwise, and any further
7595 call to GetWindowState will return Normal for a window which is
7596 actually maximized. Fixes #79338.
7598 2006-10-11 Jackson Harper <jackson@ximian.com>
7600 * TextControl.cs: Special case for setting selection end to
7601 selection start, we basically kill the anchor.
7602 - some todo comments.
7604 2006-10-11 Chris Toshok <toshok@ximian.com>
7606 * Control.cs: switch to using an "invalid_region" to track which
7607 parts of the image buffer need updating. This is more code than
7608 the simple fix from r66532. That version just attempted to always
7609 fill the entire buffer on redraw, which turns out to be
7610 inefficient when invalidating small rectangles. This version
7611 simply adds the invalid rectangle to the invalid region. When we
7612 get any WM_PAINT message we see if it can be filled using the
7613 image buffer, and if it can't (if the paint event's clip rectangle
7614 is visible in the invalid region) we first fill the image buffer.
7615 So, the image buffer is still a cache, we just fill it lazily.
7617 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
7620 2006-10-11 Chris Toshok <toshok@ximian.com>
7622 * XplatUIX11.cs (SetWindowPos): we need to update both position as
7623 well as size after calling XMoveResizeWindow. This keeps us from
7624 ignoring future SetWindowPos calls. Fixes the disappearing
7625 DateTimePicker in the ToolBarDockExample from bug #72499.
7627 2006-10-11 Chris Toshok <toshok@ximian.com>
7629 * TextBoxBase.cs: reorder things a bit when it comes to
7630 resizing-causing-recalculation. we were recalculating the
7631 document when our position was changed, which shouldn't happen.
7632 We only care about size changes. Clear up some more redundant
7633 recalculation calls while I'm at it. This makes the toolbar dock
7634 example snappy when you're just dragging toolbars around (since it
7635 causes a relayout whenever you move one.)
7637 2006-10-11 Chris Toshok <toshok@ximian.com>
7639 * ToolBarButton.cs (get_Rectangle): this only returns
7640 Rectangle.Empty if Visible == false, or Parent == null.
7641 Parent.Visible doesn't matter.
7643 2006-10-10 Chris Toshok <toshok@ximian.com>
7645 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
7646 by .net 1.1, so switch to an internal method instead.
7648 2006-10-10 Chris Toshok <toshok@ximian.com>
7650 * Control.cs (WM_PAINT): when a control is double buffered we draw
7651 initially to the ImageBuffer and then copy from there. But when a
7652 parent control which has child controls is double buffered, the
7653 initial drawing doesn't encompass the entire ClientRectangle of
7654 the parent control, so we end up with uninitialized bits (this is
7655 easily seen by dragging the top toolbar in
7656 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
7657 manually set the ClipRectangle of the paint_event (only the one we
7658 use to populate the ImageBuffer) to ClientRectangle. Fixes more
7659 of the nastiness in bug #72499.
7661 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
7662 which we use in Control.cs's WM_PAINT handling.
7664 2006-10-10 Jackson Harper <jackson@ximian.com>
7666 * TextBoxBase.cs: Finish off the autoscrolling stuff.
7668 2006-10-10 Chris Toshok <toshok@ximian.com>
7670 * Cursor.cs: Apply a slightly different patch to the one suggested
7673 2006-10-10 Jackson Harper <jackson@ximian.com>
7675 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
7676 not the parent form.
7677 * TextControl.cs: use difference in old line count vs new count to
7678 calculate how many lines were added, this takes into account soft
7679 line breaks properly.
7681 2006-10-10 Chris Toshok <toshok@ximian.com>
7683 * LinkLabel.cs: don't call MeasureCharacterRanges against a
7684 rectangle located at 0,0 and the size of the text. Use
7685 ClientRectangle instead. This fixes rendering of non-left aligned
7688 2006-10-10 Jackson Harper <jackson@ximian.com>
7690 * TextBoxBase.cs: When we set the selection start position the
7692 * TextControl.cs: Need to update the caret when we decrement it to
7694 - Make sure that the selection_visible flag gets reset to false if
7695 the selection isn't visible. Before this you could get it set to
7696 visible by changing the selection start, then changing the end to
7699 2006-10-09 Jackson Harper <jackson@ximian.com>
7701 * TreeView.cs: Don't update scrollbars when we aren't visible.
7702 * TreeNodeCollection.cs: Only need to update scrollbars if being
7703 added to an expanded visible node or the root node.
7705 2006-10-09 Chris Toshok <toshok@ximian.com>
7707 * XplatUIX11.cs (SendMessage): fix NRE.
7709 2006-10-09 Jackson Harper <jackson@ximian.com>
7711 * TextBoxBase.cs: Implement horizontal autoscrolling.
7712 * TextControl.cs: Add a movement types that allows moving forward
7713 and backwards without wrapping.
7715 2006-10-09 Mike Kestner <mkestner@novell.com>
7717 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
7718 with focus "expansion" of labels. Fixes #79532 and then some.
7719 * ThemeWin32Classic.cs : add LineLimit to ListView label format
7722 2006-10-09 Jackson Harper <jackson@ximian.com>
7724 * TextBoxBase.cs: Set the default max values to MaxValue since
7725 we use the scrollbar for autoscrolling and the default value is
7726 100. If we don't do this the caret won't keep up with typing
7727 after about 18 characters.
7728 * TextControl.cs: Make sure the selection is offset by the
7729 viewport x. This fixes selection when using auto scrolling.
7731 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
7733 * Form.cs: The active control should be selected after the
7734 OnLoad so that any child control initialization that affects
7735 the selection is done. Fixes #79406
7737 2006-10-06 Chris Toshok <toshok@ximian.com>
7739 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
7740 to have no evil effects.
7742 - Stop selecting StructureNotifyMask on non-toplevel windows.
7744 The only way children should be resized is by using the SWF api,
7745 and we already send WM_WINDOWPOSCHANGED messages in those cases.
7746 Toplevel windows can be interacted with via the window manager,
7747 and so we keep the input mask there.
7749 The other event StructureNotifyMask gives us (that we care
7750 about) is DestroyNotify. The code is already structured such
7751 that it assumes we won't be getting a DestroyNotify event for
7752 the window we pass to XDestroyWindow (which is what
7753 StructureNotifyMask is supposed to guarantee.) So, that code
7754 shouldn't be affected by this either.
7756 - Stop selecting VisibilityChangeMask altogether.
7758 We weren't doing anything with the resulting events anyway.
7760 This vastly reduces the number of X requests and events we see
7761 when resizing/laying out a large ui.
7763 2006-10-06 Chris Toshok <toshok@ximian.com>
7765 * ScrollableControl.cs (DisplayRectangle): we need to take into
7766 account the DockPadding regardless of whether or not auto_scroll
7767 == true. rework this slightly to this effect, and fix bug #79606,
7768 and part of #72499 (you can now see the drag handles and drag
7771 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
7773 * ListViewItem.cs: Collections of selected and checked items are now
7774 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
7775 we mark the collection "dirty".
7776 * ListView.cs: Marked collections readonly. Modified UpdateSelection
7777 to only clear SelectedItems when a new item is selected and MultiSelect
7778 is enabled. CheckedItems and SelectedItems now subscribe to Changed
7779 event of ListViewItemCollection, and mark its list dirty whenever
7780 that event is fire. This allows us to return selected/checked items
7781 in the same order as they are in the Items collection. This matches
7784 2006-10-06 Chris Toshok <toshok@ximian.com>
7786 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
7787 right mouse clicks. Fixes bug #79593.
7789 2006-10-06 Chris Toshok <toshok@ximian.com>
7791 * Splitter.cs: doh, fix splitters that don't want to cancel the
7792 movement when you drag them. Also, impose the limits on the
7793 values we send to the SplitterMovingEvent. Fixes #79598.
7795 2006-10-06 Jackson Harper <jackson@ximian.com>
7797 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
7798 since we use this for auto scrolling also.
7800 2006-10-05 Chris Toshok <toshok@ximian.com>
7802 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
7803 beginning to think that most datagrid column types don't need this
7804 method. Fixes bug #79392.
7806 2006-10-05 Chris Toshok <toshok@ximian.com>
7808 * DataGrid.cs: move back to a more lazy scheme for creating the
7809 CurrencyManager, so we aren't updating it every time you set
7810 either DataSource or DataMember. Also, don't call
7811 RecreateDataGridRows if the currency manager hasn't changed.
7813 2006-10-05 Chris Toshok <toshok@ximian.com>
7815 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
7816 emitted, SelectedIndex should already be updated. Fixes bug
7819 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
7821 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
7822 ToolStripTextBox.cs: Initial commit.
7823 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
7825 2006-10-05 Jackson Harper <jackson@ximian.com>
7827 * TabControl.cs: We need to invalidate the tab control area when
7828 new ones are added (duh).
7830 2006-10-03 Chris Toshok <toshok@ximian.com>
7832 * Form.cs (ProcessDialogKey): if the focused control is in this
7833 form and is a button, call its PerformClick method here. Fixes
7836 2006-10-04 Jackson Harper <jackson@ximian.com>
7838 * TabPage.cs: Ignore setting of Visible, and add an internal
7839 method for setting the controls visibility. TabPage's Visible
7840 property is a little strange on MS, this seems to make us
7841 compatible, and fixes cases where people set all the tab pages to
7843 * TabControl.cs: Use the new internal setting on tab pages
7846 2006-10-03 Mike Kestner <mkestner@novell.com>
7848 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
7850 2006-10-03 Mike Kestner <mkestner@novell.com>
7852 * ListView.cs : use is_visible instead of Visible to check if
7853 scrollbars should be placed/sized. Also some max_wrap_width
7854 love for LargeIcon view. [Fixes #79533]
7856 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
7859 Make set_TextAlign() do actually update the align. Fixed #78403.
7861 2006-10-03 Chris Toshok <toshok@ximian.com>
7863 * DataGrid.cs: fix a crash when switching datasources if the
7864 vertical scrollbar is at someplace other than Value = 0. Also,
7865 reduce the number of recalculation passes we do in SetDataSource
7868 2006-10-03 Jackson Harper <jackson@ximian.com>
7870 * TextBoxBase.cs: Move the if value the same bail check up, we
7871 don't want to empty the document if it is already empty, this
7872 seems to severly mess up the caret. TODO: I should probably fix
7873 the empty statement to update teh caret somehow.
7875 2006-10-03 Chris Toshok <toshok@ximian.com>
7877 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
7878 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
7879 reflection, an internal row type, properties on said type, etc.)
7880 will work with our datagrid. Fixes #79531.
7882 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
7884 * FileDialog.cs: Don't crash if a path is not accessible
7885 (System.UnauthorizedAccessException). Fixes #79569.
7886 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
7887 a ':' too. Return unknown icon for those paths/files.
7889 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
7891 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
7892 GetContainerControl returns null.
7894 2006-10-02 Chris Toshok <toshok@ximian.com>
7896 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
7897 call to XGetWindowAttributes instead of "handle". fixes an X
7898 error using notifyicon after the NotifyIconWindow to Form base
7901 2006-10-02 Chris Toshok <toshok@ximian.com>
7903 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
7904 server grab and looping we need to do to get down to the most
7905 deeply nested child window.
7906 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
7907 QueryPointer again after the WarpPointer so we can generate a
7908 proper (fake) MotionNotify event to be enqueued in the destination
7910 (GetCursorPos): call QueryPointer.
7914 2006-10-02 Jackson Harper <jackson@ximian.com>
7916 * NotifyIcon.cs: Derive the notify icon from a form, so things
7917 like FindForm work on it.
7918 - Swallow the WM_CONTEXTMENU message, since that is generated on
7919 mouse down, and context menu is a mouse up kinda guy. I believe
7920 the correct fix here is probably to make the notify icon entirely
7921 NC area, but this seems to work fine for anyone not manipulating
7924 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
7926 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
7927 ToolStripItemCollection.cs, ToolStripLabel.cs,
7928 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
7929 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
7930 Initial implementation.
7931 * TextRenderer.cs: Provide padding to MeasureText.
7933 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
7935 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
7936 of ButtonBaseAccessibleObject. Fix bug #79552.
7938 2006-10-02 Jackson Harper <jackson@ximian.com>
7940 * MdiWindowManager.cs: When maximizing use the containers client
7941 rect, not it's bounds, so nc area is accounted correctly.
7942 - Use the parent form's size for the menu position, since the
7943 client isn't always the full form size.
7945 2006-10-01 Chris Toshok <toshok@ximian.com>
7947 * ScrollableControl.cs: make sure neither right_edge or
7948 bottom_edge are < 0, since they're used as LargeChange for the
7949 horiz/vert scrollbars respectively. Fixes #79539.
7951 2006-10-01 Chris Toshok <toshok@ximian.com>
7953 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
7954 the xplatuix11 code can cause us to destroy/recreate our handle.
7958 - this code can be invoked many times for the same Hwnd. Make
7959 sure we only destroy the client window once (the first time this
7960 method is called). This fixes bug #79544.
7961 - Remove the call to the improperly bound XSync. why we had two
7962 bindings to this, I will never know, but this call resulted in
7963 events being discarded from the queue(!).
7964 - correct a misunderstanding of _XEMBED_INFO - the second atom is
7965 not our current state but the state we wish to be in. So, 0 if
7966 we don't want to be mapped. Change it to 1.
7967 (SystrayRemove): The XEMBED spec makes mention of the fact that
7968 gtk doesn't support the reparent of client windows away from the
7969 embedder. Looking at gtksocket-x11.c seems to agree with this.
7970 The only avenue we have for removing systray icons is to destroy
7971 them. We don't want the handle to go away for good, though, so
7972 call InternalRecreateHandle on the NotifyIconWindow. Fixes
7975 2006-10-01 Chris Toshok <toshok@ximian.com>
7977 * Form.cs (WndProc): inline the native_enabled variable usage into
7978 the cases in which it's used. Fixes #79536.
7980 2006-09-29 Mike Kestner <mkestner@novell.com>
7982 * ListView.cs : toggle the selection state for ctrl clicks in
7983 multiselect mode. [Fixes #79417]
7985 2006-09-29 Mike Kestner <mkestner@novell.com>
7987 * ListView.cs : kill CanMultiSelect and refactor the selection
7988 code to support multiselection in the absence of mod keys. Steal
7989 arrow/home/end keys by overriding InternalPreProcessMessage to
7990 restore regressed keynav behavior.
7993 2006-09-29 Jackson Harper <jackson@ximian.com>
7995 * MdiClient.cs: Repaint the titlebars when the active window is
7998 2006-09-29 Chris Toshok <toshok@ximian.com>
8000 * Application.cs: when entering a runloop with a modal, make sure
8001 the hwnd is enabled. Fixes #79480.
8003 2006-09-29 Chris Toshok <toshok@ximian.com>
8005 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
8006 when ListManager.CanAddRows == false, bump us back one.
8008 * DataGridColumnStyle.cs (ParentReadOnly): remove the
8009 listmanager.CanAddRows check. This makes ArrayLists uneditable
8010 using a datagrid, which is not right.
8011 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
8012 is an IEditable, but call property_descriptor.SetValue regardless.
8015 2006-09-29 Chris Toshok <toshok@ximian.com>
8017 * DataGridBoolColumn.cs: we need to test equality in the face of
8018 possible null values (as is the case with the default NullValue).
8019 This patch keeps us from crashing in that case.
8021 2006-09-29 Jackson Harper <jackson@ximian.com>
8023 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
8024 here, since it will get called for every node collection in the
8025 tree. This is now done in the treeview once the sorting is
8027 * TreeView.cs: Recalculate the visible order, and update the
8028 scrollbars after sorting, set the top nope to the root so that the
8029 recalc actually works.
8031 2006-09-29 Chris Toshok <toshok@ximian.com>
8033 * LinkLabel.cs: more handling of the default link collection in
8034 the face of LinkArea manipulation. The default link collection
8035 contains 1 element (start=0,length=-1). If the user sets LinkArea
8036 to anything and the links collection is the default, clear it.
8037 Then only add the link if its nonempty. Fixes #79518.
8039 2006-09-29 Chris Toshok <toshok@ximian.com>
8041 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
8042 piece correctly when we hit a '\n'. Fixes #79517.
8044 2006-09-29 Chris Toshok <toshok@ximian.com>
8046 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
8047 change the binding of gdk_init_check to take two IntPtr's, and
8048 pass IntPtr.Zero for both of them. Fixes #79520.
8050 2006-09-29 Mike Kestner <mkestner@novell.com>
8052 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
8055 2006-09-28 Jackson Harper <jackson@ximian.com>
8057 * XplatUIX11.cs: When translating NC messages make sure we go from
8058 whole window to screen, not client window to screen.
8059 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
8060 method doesn't exist
8061 - Skip over controls that aren't forms when arranging.
8063 2006-09-28 Jackson Harper <jackson@ximian.com>
8065 * XplatUIWin32.cs: Clip the rect to the parent window.
8066 * XplatUIStructs.cs: Add clipping modes struct.
8067 * InternalWindowManager.cs: New private method that factors title
8068 bar heights in when calculating the pos of an NC mouse message.
8069 - Use SendMessage to force a paint when the form's size is changed
8070 instead of painting the decorations immediately.
8071 - Don't let the NC button click messages get to DefWndProc,
8072 because they will attempt to handle windowing themself, and this
8073 messes up z-order (it will put them in front of the scrollbars).
8074 * XplatUIX11.cs: Make sure that we don't reset window managers if
8075 we already have one (ie the window is an MDI window).
8077 2006-09-28 Chris Toshok <toshok@ximian.com>
8079 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
8080 menu code really needs going over.
8082 2006-09-27 Chris Toshok <toshok@ximian.com>
8084 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
8085 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
8086 window is maximizable. So, we need to make sure that even if we
8087 clear the border/wm frame of those functions, they're still
8088 available (basically, we remove the decoration without removing
8089 the function). Half the fix for #79338.
8091 2006-09-27 Chris Toshok <toshok@ximian.com>
8093 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
8096 2006-09-27 Chris Toshok <toshok@ximian.com>
8098 * Splitter.cs: reorder things a bit so that we don't actually
8099 draw/move the splitter until after calling OnSplitterMoving. This
8100 lets users cancel/disallow the movement by explicitly setting
8101 event.SplitX/SplitY. Fixes #79372.
8103 2006-09-27 Jackson Harper <jackson@ximian.com>
8105 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
8106 because it is most likely on a window being destroyed, and that
8107 will give us an X11 error.
8109 2006-09-27 Chris Toshok <toshok@ximian.com>
8111 * PropertyGridView.cs: half of the fix for #78190. Clicking on
8112 the dropdown button now toggles between showing and hiding the
8113 dropdown. Also, get rid of dropdown_form_showing and just use
8114 dropdown_form.Visible. We still don't do a grab, but I'll leave
8115 that part to someone who has handled Capture-fu before.
8117 2006-09-27 Chris Toshok <toshok@ximian.com>
8119 * DataGrid.cs: return false if alt isn't pressed when '0' is
8120 pressed. this keeps the '0' key from being swallowed, and fixes
8123 2006-09-27 Chris Toshok <toshok@ximian.com>
8125 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
8126 Calling Refresh (in response to a scrollbar event) screws up the
8127 scrollbar painting. Fixes bug #78923.
8129 2006-09-27 Chris Toshok <toshok@ximian.com>
8131 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
8132 then insert into hashtable" blocks threadsafe.
8134 2006-09-27 Chris Toshok <toshok@ximian.com>
8136 * MessageBox.cs (CreateParams): the styles should be |'ed with our
8137 baseclass's, since otherwise the
8138 ControlBox/MinimizeBox/MaximizeBox assignments above have no
8139 effect. This gets the close button back in messageboxes.
8141 2006-09-27 Chris Toshok <toshok@ximian.com>
8143 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
8144 flag, not just != 0. this makes flags that are actually multiple
8145 bits (like WS_CAPTION) work. fixes bug #79508.
8147 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
8149 * PageSetupDialog.cs: add support for getting and settings the
8150 paper size, source and orientation.
8152 2006-09-26 Chris Toshok <toshok@ximian.com>
8154 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
8155 and caption == "", we need to remove the resize handles as well as
8158 * Control.cs (set_Text): turns out that setting Text on a form
8159 should change the WM styles on the window, since if ControlBox ==
8160 false, the only way to get a window border is to have a non-""
8161 Text property. check winforms/forms/text.cs for an example. so,
8162 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
8163 update both window styles and title. This fixes a lot of dialogs
8164 (including the preferences dialog in MonoCalendar.)
8166 2006-09-26 Chris Toshok <toshok@ximian.com>
8168 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
8169 control isn't a Form), call Win32ShowWindow to hide the window,
8170 but don't update the control Visible property. When we reparent
8171 back to a parent control, call SetVisible in order for the
8172 window's visibility to be reinstated.
8174 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
8177 * Control.cs (ControlCollection.Remove): remove that value.Hide()
8178 call for good, since it breaks MonoCalendar (and other things I'm
8179 sure.) Also, set all_controls to null *after* the owner calls,
8180 which end up regenerating it.
8181 (ChangeParent): allow new_parent to be == null, passing
8182 IntPtr.Zero down to XplatUI.
8184 this fixes #79294 the right way.
8186 2006-09-26 Mike Kestner <mkestner@novell.com>
8188 * GridEntry.cs : internal SetParent method.
8189 * PropertyGrid.cs : attach to property changed on the proper
8190 target if we have a hierarchical grid with subobjects. Setup
8191 GridItem.Parent for hierarchical items.
8192 * PropertyGridView.cs : Set value on the correct target for
8193 hierarchical grids. [Fixes #78903]
8195 2006-09-26 Chris Toshok <toshok@ximian.com>
8197 * Control.cs (ChildNeedsRecreating): this should return true if
8198 either we're being recreated and the child is in our list, or our
8199 parent is waiting for our recreation.
8201 2006-09-26 Chris Toshok <toshok@ximian.com>
8203 * Control.cs (ControlCollection.Remove): reinstate the
8204 value.Hide() call as suggested in bug #79294.
8206 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
8208 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
8209 coordinates (versus a relative move).
8211 2006-09-26 Chris Toshok <toshok@ximian.com>
8213 * Control.cs: rework child recreation a little bit. It turns out
8214 that we race between the DestroyNotify the WM_DESTROY message. If
8215 the parent gets its DestroyNotify before the child gets the
8216 WM_DESTROY message, the child ends up not recreating (since the
8217 parent finishes its recreation on DestroyNotify, and the child
8218 checks ParentIsRecreating.)
8220 So, instead we store off a list of all the child controls which
8221 need to be recreated when the parent control starts to recreate
8222 itself. Then, when child controls get their WM_DESTROY message we
8223 check to see if they're in the parent's pending recreation list,
8224 and if so, we recreate. This removes all dependency on ordering
8225 from the code and fixes the initial MonoCalendar upgrade dialog.
8227 2006-09-26 Jackson Harper <jackson@ximian.com>
8229 * TextControl.cs: Use the Line to get the length of the line,
8230 since soft line breaks can change the end line.
8232 2006-09-26 Chris Toshok <toshok@ximian.com>
8234 * Control.cs (ControlCollection.AddImplicit): don't add the
8235 control again if it's already in one of our lists. This keeps us
8236 from adding controls over and over again for comboboxes when their
8237 handle gets recreated (as the combobox adds implicit controls in
8238 OnHandleCreated). Fixes the X11 errors in bug #79480.
8240 2006-09-26 Jackson Harper <jackson@ximian.com>
8242 * TextControl.cs: When deleting characters make sure that any
8243 orphaned zero lengthed tags get deleted.
8244 - Fix ToString for zero lengthed tags.
8246 2006-09-25 Jackson Harper <jackson@ximian.com>
8248 * TextControl.cs: When getting a tag at the location there can be
8249 multiple tags at the same spot, these are 0-lengthed tags that
8250 appear when extra formatting has been stuck in a location. We
8251 need to pull out the last of these 0 lengthed tags.
8253 2006-09-25 Jackson Harper <jackson@ximian.com>
8255 * TextControl.cs: Fix print out in debug method.
8256 * TextBoxBase.cs: When text is set bail if we are setting to the
8259 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
8261 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
8262 It is now possible to change the selected index in a FontXXXListBox
8263 with the up and down arrow keys from the FontXXXTextBoxes.
8264 Also, send the FontXXXTextBox mouse wheel event to the corresponding
8265 FontXXXListBoxes to match ms.
8267 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
8269 * SystemInformation.cs: Return a clone of the theme's MenuFont because
8270 anyone can dispose it, anytime. All other properties returns enums,
8271 structs or basic types so they don't need such tricks.
8273 2006-09-22 Jackson Harper <jackson@ximian.com>
8280 * XplatUIDriver.cs: Update interface to add a primary selection
8281 flag, so the driver can use the primary selection buffer if
8283 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
8285 * RichTextBox.cs: We need to supply the data object to paste now
8286 (so we can choose to supply CLIPBOARD or PRIMARY).
8287 * TextBoxBase.cs: Supply data object to paste (see above).
8288 - Middle click uses the primary selection data object.
8290 2006-09-21 Chris Toshok <toshok@ximian.com>
8292 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
8293 of SetWMStyles. It's still a rat's nest and is largely
8294 order-dependent which I dislike immensely. This also fixes the X
8295 button disappearing from toplevel forms.
8297 2006-09-21 Mike Kestner <mkestner@novell.com>
8299 * ListBox.cs: move Jordi's click/dblclick raising code to the
8302 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
8304 * ListBox.cs: Fixes 79450
8306 2006-09-21 Mike Kestner <mkestner@novell.com>
8308 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
8309 to deal with people updating the TreeNodeCollection after the tree
8310 is disposed. "Fixes" 79330.
8312 2006-09-20 Jackson Harper <jackson@ximian.com>
8314 * TextControl.cs: Push the cursor record onto the undo stack
8315 before the delete action. This fixes 78651.
8317 2006-09-20 Jonathan Chambers <joncham@gmail.com>
8319 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
8320 CreateParams. Fixes 79329.
8322 2006-09-19 Chris Toshok <toshok@ximian.com>
8324 * XplatUIX11.cs: a couple of blanket code massage passes to clean
8325 things up a bit. First, get rid of the NetAtoms array (and the NA
8326 enum), and just embed the atoms as static fields. Also, add a
8327 couple of functions (StyleSet and ExStyleSet) to clean up all the
8328 bitmask testing of styles.
8330 * X11Structs.cs: remove the NA enum, not needed anymore.
8332 2006-09-19 Chris Toshok <toshok@ximian.com>
8334 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
8335 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
8336 added cleanup to get MessageBox titles appearing again, which were
8337 broken by my earlier fix for caption-less/ControlBox-less windows.
8339 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
8341 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
8342 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
8343 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
8344 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
8345 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
8346 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
8347 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
8348 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
8349 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
8350 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
8351 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
8353 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
8354 ToolStripButton.cs: Stubs needed for above.
8355 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
8357 2006-09-15 Chris Toshok <toshok@ximian.com>
8360 - make the MessageQueues hashtable Synchronized.
8362 - SendMessage: if the Hwnd is owned by a different thread, use the
8363 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
8364 thread. Fixes bug #79201.
8366 2006-09-15 Chris Toshok <toshok@ximian.com>
8368 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
8369 ControlBox == false, we disallow maximize/minimize/close. If the
8370 form Caption is "" we also disallow move (and get rid of the Title
8371 decoration). Unfortunately, regardless of how things are set,
8372 we're stuck with the Title and WM menu.
8374 2006-09-15 Chris Toshok <toshok@ximian.com>
8376 * Application.cs: add locking around the static message_filters
8377 ArrayList, part of #79196.
8379 2006-09-15 Chris Toshok <toshok@ximian.com>
8381 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
8382 Form.ControlBox == false, the window has no titlebar nor resize
8383 handles. fixes bug #79368.
8385 2006-09-15 Chris Toshok <toshok@ximian.com>
8387 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
8388 >= 0. Fixes bug #79370.
8390 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
8391 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
8393 Add properties: LayoutEngine, Margin, DefaultMargin.
8394 Add method: GetPreferredSize.
8395 Move layout logic from PerformLayout to layout engines.
8397 2006-09-13 Chris Toshok <toshok@ximian.com>
8399 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
8400 fix for #79326 broke #78718, so this change addresses that.
8402 - in SendWMDestroyMessages remove the call to
8403 CleanupCachedWindows, since we might be recreating the control and
8404 need to maintain the references to right Hwnd handles. Also, set
8405 the zombie flag to true for each of the children in the hierarchy
8406 instead of calling hwnd.Dispose. This will cause GetMessage to
8407 ignore all events for the window except for DestroyNotify.
8409 - In GetMessage, ignore messages except for DestroyNotify for
8412 * Control.cs: revert the is_recreating fix from the last
8413 ChangeLog. It's definitely "right", but it breaks switching from
8414 an MDI form to a non-MDI form. Will need to revisit that.
8416 * Hwnd.cs: add a zombie flag, which means "the
8417 client_window/whole_window handles are invalid, but we're waiting
8418 for the DestroyNotify event to come in for them". Set the flag to
8419 false explicitly if setting WholeWindow/ClientWindow, and also
8422 2006-09-13 Chris Toshok <toshok@ximian.com>
8424 * XplatUIX11.cs: rework window destruction slightly.
8426 - when destroying the windows associated with a control, we don't
8427 need 2 separate XDestroyWindow calls. Just the one for the
8428 whole_window (or for client_window if whole_window is somehow
8429 IntPtr.Zero -- can this happen?) is enough.
8431 - reworked SendWMDestroyMessages slightly, so we always dispose
8432 the child control hwnd's after sending the messages.
8434 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
8435 the two places it was used (one was even using hwnd.Handle and the
8436 other hwnd.client_window. ugh), adding another call in
8437 SendWMDestroyMessages. We need this new call because now the
8438 DestroyNotify events in the queue will be ignored for the child
8439 controls (as their hwnd's were disposed, and the window id's
8440 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
8442 - this fixes bug #79326.
8444 2006-09-13 Chris Toshok <toshok@ximian.com>
8446 * Control.cs: don't always set is_recreating to false at the end
8447 of RecreateHandle, since sometimes we're not done (and won't be
8448 until WndProc handles the WM_DESTROY message). Also, set
8449 is_recreating to false in the WM_DESTROY handling code. Part of
8450 the fix for bug #79326.
8452 2006-09-13 Miguel de Icaza <miguel@novell.com>
8454 * X11DesktopColors.cs: Start the droppage of debugging messages.
8456 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
8458 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
8460 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
8462 2006-09-12 Chris Toshok <toshok@ximian.com>
8464 * DataGrid.cs (get_ListManager): if the list_manager is null, try
8465 to create it using SetDataSource. Fixes bug #79151.
8467 2006-09-11 Chris Toshok <toshok@ximian.com>
8469 * XEventQueue.cs: add a DispatchIdle property.
8471 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
8472 either the queue is null, or the queue has DispatchIdle set to
8474 (DoEvents): set queue.DispatchIdle to false around the
8475 peek/translate/dispatch message loop in this method. This keeps
8476 Application.Doevents from emitting idle events. Part of the fix
8479 2006-09-11 Chris Toshok <toshok@ximian.com>
8481 * DataGrid.cs (set_DataSource): make this work for both the
8482 winforms/datagrid test and ReportBuilder. It seems as though when
8483 we've created a ListManager (or maybe it's if we have a
8484 BindingContext?), when we set the DataSource it clears the
8485 DataMember to "". otherwise we reuse the datamember. Fixes bug
8488 2006-09-11 Chris Toshok <toshok@ximian.com>
8490 * XplatUIX11.cs: deal with queue being null, which happens in all
8491 the Clipboard functions. Fixes one of the two problems mentioned
8494 2006-09-11 Chris Toshok <toshok@ximian.com>
8496 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
8497 button on various spots (including outside the menu) works closer
8498 to MS, and doesn't crash. Fixes #79343.
8500 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
8502 * ListView.cs: Do not initialize item_sorter in init. To match MS,
8503 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
8504 and the internal comparer is set. When a new ListViewItemSorter is set,
8505 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
8506 was specified. No further processing is necessary if SortOrder is set
8507 to it's current value. If Sorting is modified to None, and View is
8508 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
8509 (either custom or our internal ItemComparer) to null, on 1.0 profile
8510 only set item_sorter to null if its our internal IComparer. If Sorting
8511 is modified to Ascending or Descending, then use our internal IComparer
8512 if none is set, and if the current IComparer is our internal one then:
8513 on 2.0 profile always replace it with one for new Sorting, and on 1.0
8514 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
8515 Enum.IsDefined to verify whether a valid View value is specified in
8516 its setter. Automatically sort listview items when listview is
8517 created. In Sort, do nothing if ListView is not yet created, or if
8518 no item_sorter is set (no Sorting was set, Sorting was explicitly set
8519 to None or ListViewItemSorter was set to null). Added Sort overload
8520 taking a bool to indicate whether the ListView should be redrawn when
8521 items are sorted (we use this in ListViewItemCollection to avoid double
8522 redraws). Modified our internal IComparer to take the sort order into
8523 account. In Add and AddRange methods of ListViewItemCollection, also
8524 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
8525 view), but use overload with noredraw option to avoid double redraw.
8526 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
8527 true when View is Tile, and do the same when attempting to set View to
8528 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
8529 for selected/checked indices, as it involves overhead when sorting is
8530 done while these collections are not used all that often. Instead
8531 we'll build the indices on demand. Modified IList implementation of
8532 CheckedIndexCollection to use public methods if object is int.
8533 Modified CheckedListViewItemCollection to hide checked items if
8534 ListView.CheckBoxes is false. Removed LAMESPEC remark in
8535 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
8536 IList implementation in SelectedIndexCollection to use public methods
8537 if object is int. Modified SelectedListViewItemCollection to hide
8538 selected items if listview is not yet created.
8539 * ListViewItem.cs: CheckedIndices list no longer needs to be
8540 maintained separately (see ListView changes). Also clone font, fixes
8543 2006-09-11 Mike Kestner <mkestner@novell.com>
8545 * ComboBox.cs: if we are updating the contents of the currently
8546 selected index, refresh the control or the textbox selection.
8549 2006-09-11 Mike Kestner <mkestner@novell.com>
8551 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
8552 the 'specified' logic has been moved there. This seems like a bug
8553 in Control.cs, since our current SetBoundsCore completely ignores
8554 the specified parameter. Peter's commit seems to indicate that is
8555 the way the MS control implementation works. [Fixes #79325]
8557 2006-09-10 Jonathan Chambers <joncham@gmail.com>
8559 * XplatUI.cs: Set default_class_name to be composed
8560 of current domain id. This allows MWF to be loaded in multiple
8563 2006-09-09 Miguel de Icaza <miguel@novell.com>
8565 * X11Keyboard.cs: If we are unable to obtain the input method, do
8566 not call CreateXic to create the input context. Should fix
8569 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
8571 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
8572 Simplified gnome support by adding more pinvokes to get the
8573 icon for a file or mime type.
8575 2006-09-08 Jackson Harper <jackson@ximian.com>
8577 * MenuAPI.cs: Deslect popup context menu items before closing the
8578 window, so that you don't see the previously selected item
8579 selected when you reopen the menu.
8580 * TextControl.cs: Update the cursor position even if we don't have
8581 focus. This fixes typing in things like the ComboBox. I'm not
8582 totally sure we should always set the visibility if we don't have
8583 focus, but couldn't find any corner cases where the cursor showed
8584 up when it shouldn't.
8586 2006-09-08 Chris Toshok <toshok@ximian.com>
8588 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
8589 our arrays are length 256. & 0xff before indexing. Fixes the
8590 crash in bug #78077.
8592 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8594 * ThemeWin32Classic.cs:
8595 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
8596 is true. Handle that check box too.
8598 2006-09-07 Chris Toshok <toshok@ximian.com>
8600 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
8603 2006-09-07 Chris Toshok <toshok@ximian.com>
8605 * Control.cs: in set_BackColor only do the work if
8606 background_color != value.
8608 * XplatUIX11.cs: move the clearing of invalid areas (both client
8609 and nc) to the same block of code where we set (nc_)expose_pending
8610 to false. That is, move it from PaintEventEnd to PaintEventStart,
8611 so things that cause invalidates from within OnPaint will trigger
8612 another call to OnPaint. Fixes bug #79262.
8614 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
8616 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
8617 * FileDialog.cs: Fix typo
8619 2006-09-07 Jackson Harper <jackson@ximian.com>
8621 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
8622 for tab pages if they have any.
8624 2006-09-06 Mike Kestner <mkestner@novell.com>
8626 * Splitter.cs: use the "current" rect when finishing drag handle
8627 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
8629 2006-09-06 Mike Kestner <mkestner@novell.com>
8631 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
8632 support offset splitters. [Fixes #79298]
8634 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
8636 * Mime.cs: Fixed a bug that could override the global mime type
8639 2006-09-05 Jackson Harper <jackson@ximian.com>
8641 * TabControl.cs: Better calculation method for setting the slider
8642 pos. Prevents crashes on really wide tabs.
8643 - Draw Image on tab pages if an image list is used.
8645 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8647 * MonthCalendar.cs: When Font changes, the Size should be
8648 updated to fit the new font's space requirements.
8650 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
8652 * ListBox.cs: If the items are cleared with Items.Clear set
8655 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8657 * MonthCalendar.cs: Handle arrow keys as input keys. Also
8658 fire DateChanged event instead of DateSelected event when
8659 the date was changed by keyboard interaction.
8661 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8663 * DateTimePicker.cs: Handle DateChanged for the associated
8664 month_calendar control, and set month_calendar.Font from
8665 OnFontChanged method, as well as resize the height of the
8666 control when needed. Make PreferredHeight proportional.
8668 2006-09-01 Chris Toshok <toshok@ximian.com>
8670 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
8673 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
8675 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
8677 * FileDialog.cs: Set ClientSize instead of window size, to allow space
8678 for decorations (Fixes #79219)
8680 2006-09-01 Mike Kestner <mkestner@novell.com>
8682 * ComboBox.cs: first stab at sorting plus some selection handling
8683 fixes to bring us more in line with MS behavior. Also switches back
8684 to index based selection. Alternative patches for index-based
8685 selection were provided by Jackson Harper, Carlos Alberto Cortez,
8686 and latency@gmx.de on bug 78848. I assume they were similar to this
8687 code I've had simmering in my tree forever.
8690 2006-09-01 Chris Toshok <toshok@ximian.com>
8692 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
8693 when setting list position guard against ending up with a -1 index
8694 (the other part of the fix for #78812). Should probably make sure
8695 we don't need the analogous fix in the ItemDeleted case.
8698 - in SetDataSource, work around the fact that the way
8699 OnBindingContextChanged is invoked will cause us to re-enter this
8700 method. I'll remove the hack once I investigate
8701 OnBindingContextChanged.
8703 - fix the logic in set_DataSource and set_DataMember (basically
8704 what to do if the other of the two is null.)
8706 - in OnListManagerItemChanged, we need to take into account the
8707 edit row when deciding whether or not to call RecreateDataGridRows
8708 (part of the fix for #78812).
8710 2006-09-01 Jackson Harper <jackson@ximian.com>
8712 * Splitter.cs: Don't do anything if there is no control to affect
8713 (prevents us from crashing in weird tet cases).
8714 * TreeView.cs: Bounding box for the mouse movement reverting
8715 focus/selection back to previously selected node. This matches
8716 MS, and makes the tree a lot more useable.
8717 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
8718 use clipping so they are not drawn. This fixes when the control
8719 is set to have a transparent background, or if it was over an
8722 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
8724 * MimeIcon.cs: Improved handling for reading default icons when
8725 using gnome (2.16 made it necessary). Check and read svg icons
8726 first, then 48x48 and then 32x32 icons.
8728 2006-08-31 Chris Toshok <toshok@ximian.com>
8730 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
8733 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
8734 ProcessKeyPreview. Fixes part of #77806.
8736 * DataGrid.cs: big patch.
8738 - revert the queueing up of DataSource/DataMember if inside
8739 BeginInit/EndInit calls. That's not the way the datagrid achieves
8740 its delayed databinding. Instead, call SetDataSource in
8741 OnBindingContextChanged. This mimic's MS's behavior, and fixes
8744 - Also, it wasn't mentioned in #78811, but the test case exhibits
8745 behavior that was lacking in our datagrid implementation - Columns
8746 that have mapping names that don't exist in the datasource's
8747 properties aren't shown. Yuck. To fix this I added the bound
8748 field to the column style, and basically any calculation to figure
8749 out anything about columns uses a loop to find the bound columns.
8750 still need to investigate if I can cache an array of the bound
8751 columns or if the indices must be the same.
8753 - When setting CurrentCell, we no longer abort if the cell being
8754 edited was in the add row. This fixes the other part of #77806.
8756 - The new code also fixes #78807.
8758 * ThemeWin32Classic.cs: perpetrate the same disgusting
8759 column.bound field hack, and only render bound fields.
8761 2006-08-31 Chris Toshok <toshok@ximian.com>
8763 * DataGridColumnStyle.cs: add bound field. this field is true if
8764 the datasource has a property corresponding to the mapping name.
8766 * DataGridTableStyle.cs: set the bound field on the column styles
8767 depending on whether or not we have a column for that property.
8769 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
8771 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
8772 splitter control (fixes #79228)
8774 2006-08-31 Chris Toshok <toshok@ximian.com>
8776 * DataGridColumnStyle.cs: we need to delay the assignment of
8777 property descriptor until the last possible moment due to the lazy
8778 databinding stuff in the datagrid. Also, fix the exceptions
8779 thrown by CheckValidDataSource to match MS.
8781 2006-08-31 Jackson Harper <jackson@ximian.com>
8783 * Form.cs: When activated select the active control, if there is
8784 no active control, we select the first control.
8785 * XplatUIX11.cs: If there is no focus control when we get a
8786 FocusIn event, find the toplevel form and activate it. This
8787 occurs when you popup a window, it becomes the focus window, then
8788 you close that window, giving focus back to the main window.
8790 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8793 * ThemeWin32Classic.cs: Cache Font in bold style, as well
8794 as StringFormat with Center alignments in MonthCalendar,
8795 instead of creating new ones when drawing the control.
8796 Also, draw the month name in bold style.
8798 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
8801 - PerformLayout(): It would seem MS performs the fill even if the
8802 control is not visible (part of #79218 fix)
8803 - ResetBackColor(): Use the setter to reset the color, to allow
8804 overriders to catch the change.
8806 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
8807 - CreateHandle(): dito (part of $79218 fix)
8808 - Don't set an icon if we have a dialog
8809 * ScrollableControl.cs:
8810 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
8811 - ScrollIntoView(): No need to scroll if control is already visible
8812 (resolves fixme and fixes #79218)
8814 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8816 * MonthCalendar.cs: Change proportions in SingleMonthSize
8817 to match the aspect of the original control.
8819 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
8821 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
8822 get updated when they get maximized.
8824 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
8826 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
8828 2006-08-29 Chris Toshok <toshok@ximian.com>
8830 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
8832 2006-08-29 Jackson Harper <jackson@ximian.com>
8834 * TreeView.cs: Need to track selected node and highlighted node,
8835 they aren't always the same thing, when the mouse is down on a
8836 node it is hilighted, but not selected yet.
8837 - Do the HideSelection stuff right
8838 - Need to focus on rbutton mouse down. And redraw selection when
8839 right click is mouse upped.
8841 2006-08-29 Mike Kestner <mkestner@novell.com>
8843 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
8844 when SubItems.Count < Columns.Count. [Fixes #79167]
8846 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
8848 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
8850 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
8852 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
8853 from X. Only send based on ConfigureNotify if we don't have the
8854 correct location in hwnd (if the window manager moved us)
8856 2006-08-28 Mike Kestner <mkestner@novell.com>
8858 * ListView.cs: remove a TODO.
8859 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
8860 [Fixes ListView part of #79166]
8862 2006-08-28 Mike Kestner <mkestner@novell.com>
8864 * ListView.cs: move wheel handler to parent since it is focused
8865 instead of the item_control now. [Fixes #79177]
8867 2006-08-28 Mike Kestner <mkestner@novell.com>
8869 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
8870 when the control is focused. [Fixes #79171]
8872 2006-08-28 Mike Kestner <mkestner@novell.com>
8874 * ListView.cs: size the item and header controls for empty and
8876 * ThemeWin32Classic.cs: draw disabled backgrounds.
8879 2006-08-28 Chris Toshok <toshok@ximian.com>
8881 * Form.cs: remove unused "active_form" static field.
8883 * Hwnd.cs: lock around accesses to static windows collection.
8885 * Application.cs: lock threads in Exit ().
8887 2006-08-28 Chris Toshok <toshok@ximian.com>
8889 * NativeWindow.cs: lock around accesses to window_collection.
8891 2006-08-28 Chris Toshok <toshok@ximian.com>
8893 * Control.cs: err, fix this the right way, by locking on controls
8894 when using it. not by making it synchronized.
8896 2006-08-28 Chris Toshok <toshok@ximian.com>
8898 * Control.cs: make the static "controls" field synchronized, as it
8899 gets updated from multiple threads.
8901 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
8903 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
8904 Prevent other threads from exiting when calling thread sets quit state.
8905 * XEventQueue.cs: Added PostQuitState property
8907 2006-08-27 Chris Toshok <toshok@ximian.com>
8909 * AsyncMethodData.cs: add a slot for the window handle.
8911 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
8912 window (the destination control's window, not the foster window).
8914 * Control.cs (BeginInvokeInternal): store the window's handle in
8915 the AsyncMethodData.
8918 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
8921 - PostQuitMessage: Removed resetting S.D display handle, we might have
8922 another loop started after calling PostQuitMessage (Fixes #79119)
8923 - Created destructor to reset S.D handle
8925 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
8927 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
8929 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8931 * TextControl.cs (Insert): Update the caret position even if we don't
8932 have a handle yet, just don't call the driver in that case.
8933 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
8934 to the end of the new selection text (Fixes #79184)
8936 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8938 * Form.cs (Activate): Only activate if the handle is created)
8940 - Mark window as invisible when it's disposed
8941 - Check if window handle is created when setting window visible,
8942 instead of relying just on the is_created variable
8943 - Check if object is disposed when creating the control (Fixes #79155)
8945 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8947 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
8948 when allowing layout again. Otherwise we re-generate the anchoring
8949 distance to the border again and actually alter what the user wanted
8950 This is ugly, it'd be better if we used DisplayRectangle instead of
8951 ClientRectangle for Control.UpdateDistances, but that causes us to
8952 have other problems (initial anchoring positons would be wrong)
8955 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8958 - The size and location setters shouldn't go directly to
8959 SetBoundsCore, but to SetBounds, which triggers layout on the
8960 parent, then calls SetBoundsCore. (Related to fix for #78835)
8961 - SetBounds: Moved actual location update code into this function
8962 from SetBoundsCore, to match MS. Added call to PerformLayout if
8963 we have a parent (to trigger resizing of anchored parents if the
8964 child size has changed (see testcase for #78835)
8965 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
8967 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
8969 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8971 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
8972 System.Drawing when a toplevel window gets closed; there might
8973 be other toplevel windows belonging to the same app (Fixes #78052)
8975 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
8977 * FileDialog.cs: After reading FileDialog settings from mwf_config
8978 use Desktop prefix only if a real folder doesn't exist anymore.
8979 * FontDialog.cs: Added char sets.
8980 It is now possible to select the font, size or style with the
8983 2006-08-25 Kornél Pál <kornelpal@gmail.com>
8985 * PrintPreviewDialog.cs: Use assembly name constants.
8987 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
8989 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
8990 scrollbar from whacking it's buttons)
8992 2006-08-24 Chris Toshok <toshok@ximian.com>
8994 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
8995 in this patch (aggregating setting Left/Top/Width/Height to
8996 setting Bounds on the scrollbars), but the crux of the fix is in
8997 Recalculate, where we scroll by the remaining scroll_position if
8998 we're hiding a scrollbar. The 2*$5 reward in the comment is
9001 2006-08-24 Jackson Harper <jackson@ximian.com>
9004 * MdiWindowManager.cs: If the form is made a non-mdi window we
9005 need to remove the form closed event so that closing forms works
9008 2006-08-24 Jackson Harper <jackson@ximian.com>
9010 * Control.cs: Make IsRecreating internal so that the driver can
9012 - Temporarily remove the Hide when controls are removed, its
9013 making a whole bunch of things not work because visibility isn't
9014 getting reset elsewhere correctly
9015 * Form.cs: Need to do a full handle recreation when the mdi parent
9017 * XplatUIX11.cs: If we are recreating handles don't dispose the
9018 HWNDs. What was happening is the handles were being recreated in
9019 SendWMDestroyMessages, but then flow continued on in that method
9020 and destroyed the new handles.
9022 2006-08-23 Jackson Harper <jackson@ximian.com>
9024 * Form.cs: MdiClient is always at the back of the bus
9025 * Control.cs: When the order of items in the collection is changed
9026 we need to reset the all_controls array
9027 - do the same sorta setup thats done when adding a control when a
9028 control is set on the collection.
9030 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9032 * TextBoxBase.cs (get_Text): Return an empty array if our document
9033 is empty (fixes #79052)
9035 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9037 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
9038 on WM_SYSCHAR messages (fixes #79053)
9040 2006-08-23 Chris Toshok <toshok@ximian.com>
9042 * DataGrid.cs: fix flickering when scrolling vertically.
9044 2006-08-23 Chris Toshok <toshok@ximian.com>
9046 * DataGrid.cs (EndEdit): only invalidate the row header when we
9049 2006-08-23 Chris Toshok <toshok@ximian.com>
9051 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
9052 methods. fixes the flicker when scrolling around.
9054 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9056 * FileDialog.cs: Making sure the control is created before we get a
9057 chance to use it with BeginInvoke (Fixes #79096)
9059 2006-08-23 Chris Toshok <toshok@ximian.com>
9061 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
9062 width to use when painting the rows.
9064 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
9067 - Throw ArgumentException if a negative value is passed to SelectionLength
9068 - Update the selection end if start is moved. end needs to be always
9069 after start. (Fixes #79095)
9070 - Track selection length; MS keeps the selection length even if start
9071 is changed; reset on all other operations affection selection
9073 2006-08-22 Jackson Harper <jackson@ximian.com>
9075 * TreeView.cs: Make sure both scrollbars get displayed and sized
9076 correctly when the other bar is visible.
9077 - Use the original clip rectangle for checking if the area between
9078 the two scrollbars is visible, not the viewport adjusted clipping
9081 2006-08-22 Jackson Harper <jackson@ximian.com>
9083 * Binding.cs: We don't use IsBinding because it requires the
9084 control to be created, which really shouldn't be necessary just to
9085 set a property on the control.
9087 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9089 * ComboBox.cs: Some CB.ObjectCollection methods must throw
9090 ArgumentNullReferenceException when the argument is null.
9092 2006-08-21 Jackson Harper <jackson@ximian.com>
9094 * Timer.cs: Track the thread that the timer is started in (NOT
9095 CREATED), this way messages for it will only be triggered on its
9097 * XEventQueue.cs: Track the timers here, this makes timers per
9099 * XplatUIX11.cs: The timers are moved to the XEventQueue.
9101 2006-08-19 Chris Toshok <toshok@ximian.com>
9103 * XplatUIX11.cs: after further communication with pdb, we get the
9104 best of both worlds. SetZOrder working for un-Mapped windows, and
9105 no X errors for un-mapped windows.
9107 2006-08-19 Chris Toshok <toshok@ximian.com>
9109 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
9110 as it was causing pdn toolbars to not have the correct stacking.
9112 2006-08-18 Mike Kestner <mkestner@novell.com>
9114 * ListView.cs : guard against negative ClientArea.Width in scrollbar
9115 calculation. Not sure why control should ever be setting a negative
9116 width though. Fixes #78931.
9118 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9120 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
9121 null items in ObjectCollection class.
9122 * ListBox.cs.: Likewise.
9124 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
9126 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
9127 as the base method in ThemeWin32Classic should work fine.
9130 2006-08-18 Jackson Harper <jackson@ximian.com>
9132 * Binding.cs: When validating if the value entered doesn't convert
9133 properly reset to the old value.
9134 * RadioButton.cs: Don't fire click when we get focus.
9136 2006-08-18 Jackson Harper <jackson@ximian.com>
9138 * FileDialog.cs: Paint the selection on the directory combobox the
9141 2006-08-17 Jackson Harper <jackson@ximian.com>
9143 * ErrorProvider.cs: Don't allow the error control to be selected.
9144 * Control.cs: Don't send the SetFocus messages, the control
9145 activation will do this, and if we do it blindly here validation
9148 2006-08-17 Jackson Harper <jackson@ximian.com>
9151 * ContainerControl.cs: Make validation events fire in the correct
9152 order. TODO: For some reason the first validation event is not
9155 2006-08-17 Mike Kestner <mkestner@novell.com>
9157 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
9159 2006-08-17 Mike Kestner <mkestner@novell.com>
9161 * ComboBox.cs : implement scroll wheel support for popped-down
9162 state. Fixes #78945.
9164 2006-08-17 Jackson Harper <jackson@ximian.com>
9166 * TreeView.cs: Specify treeview actions (old patch that didn't get
9167 committed for some reason).
9168 - Don't let the mouse wheel scroll us too far. Just want to make
9169 the bottom node visible, not scroll it all the ways to the top.
9171 2006-08-17 Jackson Harper <jackson@ximian.com>
9173 * XplatUIX11.cs: Mouse wheel events go to the focused window.
9175 2006-08-17 Mike Kestner <mkestner@novell.com>
9177 * ComboBox.cs : don't do mouseover selection in simple mode.
9179 2006-08-16 Jackson Harper <jackson@ximian.com>
9181 * Form.cs: Fire the closing events for all the mdi child windows
9182 when a window is closed. If the cancel args are set to true, the
9183 main window still gets the event fired, but it doesn't not close.
9184 * MdiWindowManager.cs: Do this closing cleanup in a Closed
9185 handler, instead of when the button is clicked, so cancelling the
9186 close works correctly.
9187 * ComboBox.cs: Send the mouse down to the scrollbar.
9189 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9191 * ListBox.cs: When passing 'null' to SelectedItem,
9192 set SelectedIndex to -1, to unselect items. This is the
9193 observed behaviour in .Net.
9195 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
9197 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
9198 MS flags saying there won't be any. (fixes #78800)
9199 * Control.cs (HandleClick): Made virtual
9201 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
9203 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
9204 cultures. Fixed bug #78399.
9206 2006-08-16 Jackson Harper <jackson@ximian.com>
9208 * Form.cs: Use the MdiClients MdiChildren property to access
9209 MdiChildren instead of creating the array from the child controls.
9210 * MdiClient.cs: Maintain a separate array of the mdi children, so
9211 that insertion order is maintained when the Z-order is changed.
9213 2006-08-16 Mike Kestner <mkestner@novell.com>
9215 * ListView.cs : add an ItemComparer and default to it for sorting.
9216 Fixes #79076, but sorting needs a complete overhaul to be compat with
9219 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9221 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
9223 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9225 * Hwnd.cs (Mapped): Properly traverse the tree
9227 2006-08-15 Chris Toshok <toshok@ximian.com>
9229 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
9230 pass manager.Current.GetType() to ParseData. It has to be the
9231 property type. So, hold off doing the ParseData until we're in
9232 SetPropertyValue where we know the type. This fixes the crash in
9233 #78821 but the textbox is still empty.
9235 2006-08-15 Chris Toshok <toshok@ximian.com>
9238 - when we're scrolling, only call Edit() again if the
9239 current cell is still unobscured. Fixes bug #78927.
9240 - when handling mousedown on a cell, ensure the cell is visible
9241 before calling Edit.
9242 - remove the properties from DataGridRow, and remove the
9243 DataGridParentRow class altogether.
9246 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9248 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
9249 fire OnTextChanged by ourselves. There's no point calling base,
9250 we don't set the base value anywhere else. Fixes #78773.
9252 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9254 * ListBox.cs: Call CollectionChanged when modifying
9255 an item from Items indexer, to update the actual items
9258 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9260 * PrintDialog.cs: Small fixes for focus and a pair of checks,
9261 to match .Net behaviour.
9263 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9265 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
9267 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9269 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
9271 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
9273 * MessageBox.cs: Prevent potential NRE exception.
9274 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
9276 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
9278 * MessageBox.cs: Calculate the owner of a messagebox, also make
9279 it topmost. Fixes #78753
9281 2006-08-14 Chris Toshok <toshok@ximian.com>
9283 * XplatUIX11.cs: A couple of fixes so that metacity will let us
9284 programmatically move windows. first, set the PPosition hint as
9285 well as the USPosition hint. Second include some code from pdb
9286 that sets the window type to NORMAL when we set the transient for
9287 hint. This is because, in the absence of a window type, metacity
9288 thinks any window with TransientFor set is a dialog, and refuses
9289 to let us move it programmatically. fascists.
9291 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
9293 * XplatUIX11.cs: When setting normal hints, take into consideration
9294 an different hints previously set so we don't delete them (fixes #78866)
9296 2006-08-12 Chris Toshok <toshok@ximian.com>
9298 * ToolBarButton.cs: make Layout return a boolean, if something to
9299 do with the button's layout changed.
9302 - add another parameter to Redraw, @force, which all existing
9304 - make the Layout function return a boolean which is true if the
9305 layout has actually changed. Redraw now uses this (and @force)
9306 to determine when to invalidate. At present the only place
9307 where @force can be false is the call from OnResize, when
9308 background_image == null. So, resizing a toolbar when the
9309 layout doesn't change results in no drawing.
9311 2006-08-12 Chris Toshok <toshok@ximian.com>
9313 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
9314 the VScrollBar and HScrollbar reversed. oops.
9316 * DataGrid.cs: fix the logic that assigns sizes to the implicit
9317 scrollbars. we were assigning them twice (once in
9318 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
9319 therefore causing two scrollbar resizes (and redraws?) to happen
9322 2006-08-12 Chris Toshok <toshok@ximian.com>
9324 * ToolBarButton.cs: redraw the entire button if the theme tells us
9327 * Theme.cs: add ToolBarInvalidateEntireButton.
9329 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
9330 buttons, just the border.
9332 * ThemeNice.cs: redraw the entire toolbar button since we need to
9333 draw the highlight image.
9335 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
9336 we need to redraw the entire button (not just the border).
9338 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
9340 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
9341 for vertical bars. Fixes the mismatches shown by #78513
9343 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
9345 * FileDialog.cs: If a saved/remembered path doesn't exist
9346 anymore, fall back to "Desktop".
9348 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
9350 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
9351 parent. It's apparently legal to not have one
9353 - SetZOrder: Don't try to set Z-Order on an unmapped window
9354 - CreateWindow: 0,0 are legal coordinates for a window. don't move
9355 it unless the coordinates are negative
9357 2006-08-10 Mike Kestner <mkestner@novell.com>
9359 * ListControl.cs: allow null for DataSource. Clear DisplayMember
9360 when setting to null per msdn docs. Fixes #78854.
9362 2006-08-10 Chris Toshok <toshok@ximian.com>
9364 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
9365 flickering by setting a clip rectangle on the Graphics when we
9366 need to redraw just a particular menuitem. Also, rename "OnClick"
9367 to "OnMouseDown" to reflect what it actually is.
9369 * Form.cs: track the OnMouseDown change.
9371 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
9373 * CommonDialog.cs: Properly inherit the CreateParams from the form
9374 and only change what we need. Fixes #78865
9376 2006-08-10 Chris Toshok <toshok@ximian.com>
9378 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
9379 flickering in flat mode (and most of the flickering in general) by
9380 only invalidating the button border (and not the entire rectangle)
9381 when the state changes. A couple of cases still flicker:
9382 ToggleButtons, and the dropdown arrow case when the user mouse
9385 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
9387 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
9388 for german keyboards. Numlock state shouldn't affect the behaviour
9389 of the Del key. Fixes bug #78291.
9391 2006-08-10 Chris Toshok <toshok@ximian.com>
9393 * ListControl.cs: remove the items.Clear line from BindDataItems,
9394 as this is the first thing done by both subclasses in their
9395 SetItemsCore overrides. Also, add a ItemChanged handler, and when
9396 passed -1, refresh the list. This gets databinding working when
9397 the datasource is set on the list before the datasource is
9398 populated (as in wf-apps/ReportBuilder.)
9400 * ComboBox.cs: remove the argument to BindDataItems. This call
9401 should really go away, and be initiated by the ListControl code.
9405 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
9407 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
9408 if no data is in the document when the control is displayed
9410 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
9412 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
9415 - PositionCaret: Allow positioning of caret but don't call methods
9416 requiring a handle if the window isn't created yet
9417 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
9418 - owner_HandleCreated: Don't position the caret, just update it's
9419 location. User might have already set a different position
9421 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
9423 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
9424 windows. Screws up the returned coordinates for child windows.
9425 Fixes #78825. I'm hoping this doesn't break something, since the
9426 code was explicitly put in 8 months ago, but no bug was attached.
9427 Menus still seem to work properly.
9429 2006-08-08 Chris Toshok <toshok@ximian.com>
9431 * DataGrid.cs: make BeginInit/EndInit actually do what they're
9432 supposed to do - delay data binding until the EndInit call. Also,
9433 make the table style collection's CollectionChangeAction.Refresh
9436 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
9437 (with action = Refresh) when a consituent table's MappingName is
9440 2006-08-08 Chris Toshok <toshok@ximian.com>
9442 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
9443 Invalidate, since changing the text can change the size of the all
9446 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
9448 * Form.cs (AddOwnedForm): Still need to add the form to our listif
9449 we don't have it yet
9451 2006-08-08 Chris Toshok <toshok@ximian.com>
9453 * PrintControllerWithStatusDialog.cs: don't .Close() the status
9454 dialog, as this causes X errors later on, since we actually
9455 destroy the window. Instead, .Hide() it.
9457 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
9459 * ComboBox.cs: Added focus reflection for popup window
9461 - Removed transient setting for non-app windows for now, not sure it
9463 - Fixed logic checking if we have captions when deciding
9464 override_redirect, WS_CAPTION is two bits and a 0 check was not
9466 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
9469 - AddOwnedForm: Don't just add the form to the list, call the property
9470 to ensure the driver is informed about the ownership as well
9471 - CreateHandle: Set the TopMost status in the driver if we have an owner
9472 * XplatUI.cs: Fixed debug statement
9474 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
9475 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
9476 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
9477 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
9478 TrackBarRenderer.cs: Make constructor private.
9479 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
9480 * ProfessionalColorTable.cs: Make properties virtual.
9482 2006-08-06 Duncan Mak <duncan@novell.com>
9484 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
9487 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
9488 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
9489 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
9490 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
9491 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
9492 Initial import of new 2.0 classes.
9494 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
9495 * Application.cs: Add 2.0 VisualStyles properties.
9497 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
9498 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9499 XplatUIX11.cs: Create property to allow access to existing private
9500 variable "themes_enabled"
9502 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9504 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
9505 file size, as otherwise our class libraries fail using windows. Fixes
9508 2006-08-04 Jackson Harper <jackson@ximian.com>
9511 * XplatUIX11.cs: Move the toolwindow window manager creation into
9512 the X11 driver, this way on win32 we can let windows create/handle
9515 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9517 * PrintDialog.cs: Remove some redundant checks, add some others,
9518 clean some code, and move the focus to the text boxes when the
9519 values are incorrect.
9521 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
9523 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
9525 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
9527 * NumericUpDown.cs: Setting the Minimum and Maximum is now
9528 handled correctly. Fixes bug #79001.
9530 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9532 * PrintDialog.cs: The "Copies" numeric up down must have
9533 set the Minimum property to 1; only if the value is bigger
9534 than 1, activate "Collate" check box. This is the behaviour of .Net.
9535 Also modify the Document elements only if it is not null.
9537 2006-08-03 Jackson Harper <jackson@ximian.com>
9539 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
9540 length. (We have a larger array then actual node count).
9542 2006-08-03 Jackson Harper <jackson@ximian.com>
9544 * ComboBox.cs: Don't show selection by default.
9545 - The SelectAll isn't needed here, since the focus code should do
9547 - DDL style lists to manual selection drawing, so when they
9548 get/lose focus they have to invalidate.
9550 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
9552 * TextBoxBase.cs: Don't always show all selections by default.
9554 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
9555 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
9556 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
9557 Fixed various typos.
9559 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
9561 * Control.cs: Removing the controls in a ControlCollection with
9562 Clear now hides the controls as expected. Fixes bug #78804.
9564 2006-08-03 Jackson Harper <jackson@ximian.com>
9566 * Control.cs: Revert previous focus patch, it breaks reflector.
9568 2006-08-03 Jackson Harper <jackson@ximian.com>
9570 * ComboBox.cs: Cleanup selection and focus with the combobox.
9571 This also eliminates some duplicated keyboard code, since now
9572 everything is handled by the main class.
9573 - Make list selection work on mouse up instead of down, to match
9576 2006-08-02 Jackson Harper <jackson@ximian.com>
9578 * Control.cs: Setting focus needs to go through the whole
9579 selection mechanism.
9581 2006-08-02 Chris Toshok <toshok@ximian.com>
9583 * PrintPreviewDialog.cs: change MinimumSize to use
9584 base.MinimumSize so it works.
9586 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
9589 - UpdateCaret: Added sanity check in case caret isn't defined yet
9590 - Line.Delete: Now updating selection and caret markers if we're
9591 transfering a node (Properly fixes #78323)
9592 - SetSelectionEnd: Added sanity check
9593 * TextBoxBase.cs: Removed broken attempt to fix #78323
9595 2006-08-01 Chris Toshok <toshok@ximian.com>
9597 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
9598 Close() call is handled in Form, not here.
9600 2006-08-01 Chris Toshok <toshok@ximian.com>
9602 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
9605 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
9606 for sizes < 100% zoom. The code now aggressively attempts to keep
9607 from calling document.Print (), and tries not to use the scaling
9608 g.DrawImage whenever possible (it still does if you scale to >
9609 100%, since usually that involves huge images).
9611 * PrintPreviewControl.cs: hook up the close button.
9613 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
9614 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
9615 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
9616 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
9617 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
9618 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
9619 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
9620 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
9621 Removed [Serializable] for 2.0 Event Handlers.
9623 2006-07-31 Jackson Harper <jackson@ximian.com>
9625 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
9626 * TextControl.cs: Uncomment out the body of this method.
9628 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
9630 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
9633 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9635 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
9636 that embed TextBox and need selections visible even if textbox is not
9637 focused to enforce that behaviour.
9638 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
9641 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9644 - Added new SetSelectionStart/SetSelectionEnd overloads
9645 - Fixed viewport width assignment to be accurate
9646 - Adjusted alignment line shift calculations to allow cursor on right
9647 aligned lines to be always visible at the right border (like MS)
9649 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
9650 - TextBoxBase_SizeChanged: recalculating canvas on size changes
9651 - CalculateScrollBars: Use ViewPort size instead of window size, to
9652 properly consider space occupied by the border and scrollbars
9654 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
9655 calculations; no longer leaves artifacts
9656 - CaretMoved: Adjusted window scrolling to match MS and fixed several
9657 calculation bugs (Still missing right/center align calculations)
9659 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9661 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
9662 use of both scroll rect and clip rect, as they do the same.
9664 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
9666 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
9667 in the event handler (fixes #78912)
9669 2006-07-31 Chris Toshok <toshok@ximian.com>
9671 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
9672 grid.ListManager.Count, since grid.ListManager might be null.
9673 This of course begs the question "why are we drawing rows for a
9674 grid with no list manager (and therefor no rows)?" Fixes the
9675 crash in bug #78929.
9677 2006-07-31 Chris Toshok <toshok@ximian.com>
9679 * RelatedPropertyManager.cs: Don't always chain up to the parent
9680 ctor. instead, call SetDataSource if the parent's position is !=
9681 -1. Fixes the crash in #78822.
9683 2006-07-31 Chris Toshok <toshok@ximian.com>
9685 * DataGrid.cs (get_ListManager): use field instead of property
9686 accessors for datasource and datamember.
9687 (RowsCount): make internal again.
9688 (OnMouseDown): end edits before resizing columns/rows.
9689 (OnMouseUp): restart edits after resizing columns/rows.
9691 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
9693 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
9694 This fixes the situation where the last set cursor is displayed
9695 whenever the mouse is over scrollbars.
9697 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9699 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
9700 Document properties, as well as initial values.
9702 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
9704 * XplatUIWin32.cs (SetBorderStyle): Setting both border
9705 and ClientEdge results in a 3-pixel border, which is
9708 2006-07-28 Jackson Harper <jackson@ximian.com>
9710 * TreeNodeCollection.cs: Fix the clear method.
9711 - Fix the Shrink also
9713 2006-07-27 Jackson Harper <jackson@ximian.com>
9715 * TreeView.cs: Make sure the visible order is computed when we
9716 attempt to size the scrollbars (for trees that mess with the
9717 scrolling when they shouldn't.
9718 - Make sure to give the scrollbars valid values.
9720 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
9722 * XplatUIX11.cs: Move motion compression code to where it
9723 has less performance impact
9725 2006-07-26 Jackson Harper <jackson@ximian.com>
9727 * UpDownBase.cs: When the control is selected make the child
9728 controls non selectable, so that a click on them won't do a
9729 focus/unfocus cycle.
9730 - Don't give focus to the text box when the spinner is selected.
9731 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
9733 2006-07-26 Chris Toshok <toshok@ximian.com>
9735 * ThemeWin32Classic.cs: add print preview rendering. I'm not
9736 satisfied with this solution. If the bitmaps are small, we should
9737 just cache them in the PrintPreviewDialog and draw them here.
9738 Also, the layout is broken for the 2-up and 3-up cases.
9740 * Theme.cs: add PrintPReviewControlPaint.
9742 * PrintPreviewDialog.cs: first pass implementation.
9744 * PrintPreviewControl.cs: first pass implementation. No
9747 * PrintDialog.cs: only validate fields if that particular portion
9748 of the UI is enabled. Also, set the document's controller to a
9749 PrintControllerWithStatusDialog wrapping the document's print
9752 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
9753 bring up a SaveFileDialog (i hope we don't want to match the
9754 behavior of the crappy windows file entry) and set the
9755 PrinterSettings.PrintFileName accordingly.
9757 2006-07-26 Jackson Harper <jackson@ximian.com>
9759 * ContainerControl.cs: Add a field that disables auto selecting
9760 the next control in a container when the container is activated.
9761 * UpDownBase.cs: Don't select the text box when the up down is
9764 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
9766 * XEventQueue.cs: Added methods for peeking (used for compression
9767 of successive events)
9768 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
9769 mouse move events (fixes #78732)
9771 2006-07-25 Jackson Harper <jackson@ximian.com>
9773 * UpDownBase.cs: Use an internal class for the textbox so that we
9774 can control focus. the updown control should always have focus,
9775 if either the text area or the buttons are clicked.
9776 - Send the key messages to the textbox, since it never actually
9778 - Activate and decativate the textbox caret.
9780 2006-07-24 Jackson Harper <jackson@ximian.com>
9782 * Control.cs: Use the directed select when selecting a control,
9783 this way the container controls override will get called and the
9784 whole ActiveControl chain will get triggered. TODO: probably need
9785 to make sure this gets done everywhere instead of the old
9787 * ContainerControl.cs: Implement the directed Select method to
9788 find and activate the correct child control.
9790 2006-07-22 Mike Kestner <mkestner@novell.com>
9792 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
9793 menu handling code so that clicks without a grab work too.
9796 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
9798 * FileDialog.cs: Enable the BackButton when dirstack has one element.
9799 Added some small optimizations.
9801 2006-07-21 Matt Hargett <matt@use.net>
9803 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
9805 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
9807 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
9808 tests pass and match MS in some strange border cases.
9810 2006-07-21 Chris Toshok <toshok@ximian.com>
9812 * ThemeWin32Classic.cs: handle drawing of the relation links and
9815 * Theme.cs: change args to DataGridPaintParentRow.
9817 * DataGrid.cs: Don't use controls for the relation links and
9818 parent buttons, so we have to handle all their interactions in
9819 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
9820 when we're navigating through child tables, so we can reinstate
9821 selection, expanded state, current cell, etc.
9823 2006-07-20 Chris Toshok <toshok@ximian.com>
9825 * ToolBar.cs: When we redraw a button, for whatever reason,
9826 there's no reason to redraw the entire toolbar. Also, don't call
9827 Control.Refresh from within Redraw, as it's much heavier than
9828 Invalidate (which is really what we want).
9830 2006-07-20 Chris Toshok <toshok@ximian.com>
9832 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
9833 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
9834 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
9835 traces from within a debug IBindingList datasource
9836 (in mono/winforms/datagrid) for *days*, I've finally gotten things
9837 to work in a similar fashion.
9839 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9841 * ListBox.cs: Don't call Sort () when setting
9842 the Sorted property to false (avoid an unnecessary sort).
9844 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9846 * ListControl.cs: DataSource should throw an ArgumentException
9847 instead of a normal exception when the argument is not of the
9850 2006-07-20 Mike Kestner <mkestner@novell.com>
9852 * Control.cs: add InternalPreProcessMessage to allow us to steal
9853 key events before MWF gets its paws on them. Adapted from a
9855 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
9856 up/down/left/right navigation. Override the new internal control
9857 method to steal the events since they never make it to WndProc.
9858 * ToolBarButton.cs: don't worry about pushed when setting hilight
9859 since the drawing code prefers pushed to hilight. Invalidate on
9860 Hilight changes. Fixes #78547 and #78525.
9862 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
9864 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
9865 the canvas size. Fixes #78868
9867 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
9869 * Splitter.cs: Track requested split position until first layout
9870 is performed. Fixes #78871
9872 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
9874 * Application.cs: Removed code that forces 1.x for the version
9875 number if the version started with 0. Not sure why that code was
9876 there and I couldn't find any bugs that indicated we needed it.
9879 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
9881 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
9882 ResetDefaults(), just write some output to the console until it's
9883 implemented. Fixes bug #78907 for now. Eliminated two warnings.
9885 2006-07-19 Jonathan Chambers <joncham@gmail.com>
9887 * PropertyGridView.cs: set StartPosition of drop down forms
9888 so they appear in correct initial spot. Fixes #78190.
9890 2006-07-19 Mike Kestner <mkestner@novell.com>
9892 * ThemeWin32Classic.cs: use parent background color when drawing
9893 flat toolbars. Restructure the conditionals to make sure non-flat
9894 non-Divider toolbars are filled too. Fixes #78837.
9896 2006-07-19 Mike Kestner <mkestner@novell.com>
9898 * ListBox.cs: Sort on collection changes even if the handle
9899 isn't created yet. Fixes #78813.
9901 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9903 * ListControl.cs: DisplayMember should never be null,
9904 and now we assign String.Empty when null is passed to it (this
9907 2006-07-17 Mike Kestner <mkestner@novell.com>
9909 * ListViewItem.cs: restructure Font and subitem Font handling
9910 to hold a specific font and refer back to owner on null.
9913 2006-07-17 Mike Kestner <mkestner@novell.com>
9915 * ToolBar.cs: bandaid for side-effect of previous patch which was
9916 discarding explicit heights for non-AutoSize toolbars. Need to
9917 extend my format tester to deal with AutoSize=false. Fixes #78864.
9919 2006-07-15 Jackson Harper <jackson@ximian.com>
9921 * LabelEditTextBox.cs:
9922 * TreeView.cs: Use a new LabelEdit class for node editing, this
9923 class automatically 'closes' itself when it gets the enter key or
9925 - Use the client rectangle when setting the trees scrollbars, so
9926 border style is taken into account.
9928 2006-07-14 Jackson Harper <jackson@ximian.com>
9931 * TreeView.cs: Make the editing work similar to MSs, firing the
9932 events correctly and ending edits correctly.
9934 2006-07-14 Mike Kestner <mkestner@novell.com>
9937 * ToolBar.cs: layout restructuring and redraw enhancements to support
9938 formatting changes gracefully, like setting TextAlign, ImageList,
9939 ButtonSize, and Appearance. Handles explicit button sizing quirks
9940 of the MS controls. Things like flat toolbars ignoring button size
9941 but becoming constant sized at the largest button's size. Normal
9942 toolbars with an image set cannot be shrunk smaller than the image,
9943 but text can be clipped/ignored.
9944 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
9945 is zero. Seems like DrawString should be smart enough to not put
9946 anything on screen though. Also trim labels and ellipsize at the char
9948 Fixes #78711 and #78483.
9950 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
9952 * FolderBrowserDialog.cs: Disable "New Folder" button and
9953 "New Folder" contextmenu menuitem if a folder like "My Computer"
9956 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
9958 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
9959 * FolderBrowserDialog.cs:
9960 - Use MWFConfig to store and read size and position settings
9961 - Added code to create a new folder (button or context menu).
9962 Use TreeView labeledit to change the name of the new folder.
9964 2006-07-14 Jackson Harper <jackson@ximian.com>
9966 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
9967 when the tree is scrolled we end editing.
9969 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
9971 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
9974 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
9976 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
9977 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
9978 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
9979 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
9980 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
9981 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
9982 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
9983 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
9984 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
9985 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
9986 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
9987 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
9988 ListViewItemSelectionChangedEventHandler.cs,
9989 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
9990 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
9991 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
9992 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
9993 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
9994 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
9995 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
9996 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
9997 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
9998 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
9999 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
10000 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
10001 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
10002 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
10003 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
10004 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
10005 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
10006 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
10007 WebBrowserNavigatingEventHandler.cs,
10008 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
10010 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
10012 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
10013 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
10014 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
10015 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
10016 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
10017 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
10018 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
10019 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
10020 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
10021 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
10022 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
10023 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
10024 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
10025 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
10026 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
10027 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
10028 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
10029 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
10030 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
10031 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
10032 ListViewItemStates.cs, MaskFormat.cs: Added
10034 2006-07-13 Jonathan Chambers <joncham@gmail.com>
10036 * PropertyGridView.cs: Fix keyboard navigation of drop down.
10037 Patch from eno for bug 78558.
10039 2006-07-13 Jackson Harper <jackson@ximian.com>
10041 * TreeView.cs: When an edit is finished make sure that the
10042 selected node is visible.
10043 - When setting the top/bottom use the scrollbars is_visible, so
10044 everything will be set correctly even if the tree isn't visible
10047 2006-07-13 Jackson Harper <jackson@ximian.com>
10049 * ComboBox.cs: Revert the item->index part of my previous patch.
10050 * TreeView.cs: Use LostFocus instead of Leave for detecting when
10051 the edit box has lost focus (duh).
10052 - Just make the edit box not visible when we get return, that will
10053 take the focus, which will call EndEdit
10054 * TreeNode.cs When we start editing, notify the treeview.
10056 2006-07-12 Jackson Harper <jackson@ximian.com>
10058 * ComboBox.cs: Clear out old items before setting the item list.
10059 This prevents databound controls from having their items added
10061 - Switch the combobox to use indices whereever possible instead of
10062 using Item's. This allows usto navigate through lists that have
10063 more then one item with the same string value (ie a, b, b, a).
10064 - Scroll the listboxes scrollbar when a non visible item is
10066 - Allow keypress to cycle through all the possible values. For
10067 example if you have b1, b2, b3 and hold down the B key all the
10068 values will be cycled through.
10070 2006-07-12 Jackson Harper <jackson@ximian.com>
10073 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
10074 this using the internal methods.
10075 * Control.cs: Add OnGotFocusInternal. A new method that allows
10076 controls to "override" OnGotFocus and change focus behavior if
10078 - Same thing for LostFocus
10079 * ComboBox.cs: Pass off focus to the text control properly.
10081 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
10083 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
10084 * FolderBrowserDialog.cs: Almost a complete rewrite.
10085 - Better support for Environment.Specialfolders
10086 - Added support for MWFVFS
10087 - Made setting SelectedPath work
10089 2006-07-12 Jackson Harper <jackson@ximian.com>
10091 * Control.cs: Optimze getting all the controls.
10093 2006-07-11 Jackson Harper <jackson@ximian.com>
10095 * ContainerControl.cs: Override SETFOCUS in the container control,
10096 so that it is not selected on mouse click.
10098 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
10100 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
10101 Hopefully we will have a better way once all of focus is complete.
10103 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
10105 * ThemeWin32Classic.cs: Commented out some debug code and fixed
10106 a compile error with csc.
10108 2006-07-11 Jackson Harper <jackson@ximian.com>
10110 * Control.cs: When hiding a control only select the next control
10111 if the current control was focused.
10112 - Don't handle enter/leave when setting/killing focus, this is
10113 done by the container control.
10114 - Remove is_selected, it's not needed anymore.
10115 - Add utility methods for selecting a child control, and for
10116 firing the Enter/Leave events.
10117 * ContainerControl.cs: When a control is activated fire the
10118 enter/leave events.
10119 - Don't wrap when processing the tab key, so that focus can be
10120 moved outside of the container.
10121 - Use the correct active control
10123 2006-07-11 Jackson Harper <jackson@ximian.com>
10125 * ComboBox.cs: Remove some debug code that was blinding me.
10126 * UpDownBase.cs: These controls actually aren't implicit, they are
10127 visible to the user.
10129 2006-07-10 Chris Toshok <toshok@ximian.com>
10131 * DataGrid.cs: move back to the is_adding boolean field. god i
10132 hate this is_editing/is_adding/is_changing stuff.
10134 2006-07-10 Chris Toshok <toshok@ximian.com>
10136 * DataGridTableStyle.cs: just check if the property type is bool.
10137 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
10138 Don't use CanRenderType.
10140 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
10141 if our text == NullText. Remove CanRenderType.
10143 * DataGridBoolColumn.cs: nuke CanRenderType.
10145 * DataGrid.cs: reenable some code to end the current edit inside
10146 of set_CurrentCell. This fixes the other 1.1.16 regression.
10147 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
10148 Also, remove the visible_row_count arg from CalcRowHeaders, since
10149 we don't need to worry about the actual height of the area.
10151 2006-07-10 Chris Toshok <toshok@ximian.com>
10153 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
10156 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
10157 the real sense of the IsInEditOrNavigateMode property (true =
10158 navigate, false = edit). Also, update OnKeyPress to reflect this.
10160 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
10161 column style exists, we still need to set its property descriptor
10162 to match up with our list manager.
10164 2006-07-10 Chris Toshok <toshok@ximian.com>
10166 * ThemeWin32Classic.cs: implement the new row/header painting
10167 approach. The parent row painting will likely go away and
10168 replaced with label controls, but the rest seems to work ok (and
10171 * Theme.cs: change the way we draw datagrid rows. we don't draw
10172 the row headers as a block now. Instead we draw them in the
10173 normal draw-row loop. Add some calls for drawing parent rows and
10176 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
10177 a default table style. Set the defaults from ThemeEngine.Current,
10178 not SystemColors. Fix lots of misc issues with property setters.
10180 * DataGrid.cs: move loads of style information out of this class
10181 as it's being duplicated with DataGridTableStyle. keep track of a
10182 special DataGridTableStyle for the properties we used to mirror
10183 here. Switch all the style properties to access this table style
10184 instead of instance fields of this class. Also add a internal
10185 class to represent parent rows (more needs to be stored here, like
10186 the selection state from the parent table, as well as the
10187 expansion state.) Also, for datasources with relations, do the
10188 right thing for collapse/expand, and add support for the
10189 navigation/parent row buttons.
10191 Lastly, fix the crash in the 1.1.16 build.
10193 * GridTableStylesCollection.cs: make the explicit interface
10194 implementations call the class's methods as opposed to duplicating
10197 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
10198 0 so the text doesn't jump around when we move the cursor.
10200 2006-07-10 Jackson Harper <jackson@ximian.com>
10203 * ListBox.cs: Match MS's ToString (this makes debugging focus
10204 stuff infinitely easier).
10206 2006-07-10 Jackson Harper <jackson@ximian.com>
10208 * Control.cs (SelectNextControl): When checking the control's
10209 parent use this instead of ctrl.parent so that null can be passed
10210 to SelectNextControl. (I have unit tests for this).
10211 - Remove unused var.
10213 2006-07-10 Chris Toshok <toshok@ximian.com>
10215 * CurrencyManager.cs: correct one regression, the removal of the
10216 finalType field. Also, add a MonoTODO on CanAddRows, implement
10217 Refresh() correctly, and fix some event emission in
10218 ListChangedHandler.
10220 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
10222 * FileDialog.cs: Don't use brackets for new folders if they exist
10223 under *nix. Instead use -(number of existing folders +1).
10225 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
10228 - Fixed really nasty bug #78771
10229 - Don't block the whole GUI when reading directories with a lot of
10230 entries. Use an other thread instead and call BeginInvoke to
10231 update the ListView in MWFFileView
10233 2006-07-07 Chris Toshok <toshok@ximian.com>
10235 * Control.cs (Dispose): release any Capture when disposing.
10237 2006-07-07 Chris Toshok <toshok@ximian.com>
10239 * LinkLabel.cs (Select): if we chain up to the parent, set
10240 focused_index to -1 so we'll search for the first available link
10241 the next time the user tabs into us. Also, if the direction is
10242 backward and focused_index == -1, start the search from the last
10245 2006-07-07 Chris Toshok <toshok@ximian.com>
10247 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
10248 is beyond the end of the text, don't do anything.
10249 (CreateLinkPieces): set our ControlStyles.Selectable based on
10250 whether or not we have any links.
10251 (Link.Invalidate): use a loop instead of foreach.
10252 (Link.set_Start): null out owner.sorted_links so it'll be
10253 recreated by CreateLinkPieces.
10255 2006-07-06 Chris Toshok <toshok@ximian.com>
10257 * LinkLabel.cs: revert the SetStyle change.
10259 2006-07-06 Chris Toshok <toshok@ximian.com>
10261 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
10262 (OnEnableChanged): s/Refresh/Invalidate
10263 (OnGotFocus): if we have a focused index already, refocus it (so
10264 if we mouse out/in to the window it'll focus the right link).
10265 (OnKeyDown): move the tab handling out of here.
10266 (OnLostFocus): don't set focused_index to -1, so we can refocus it
10267 when we lose focus.
10268 (OnMouseDown): don't Capture here - Control handles it. Also,
10269 focus the active link.
10270 (OnMouseUp): don't deal with Capture.
10271 (OnPaintBackgroundInternal): remove.
10272 (OnTextAlignChanged): CreateLinkPieces before calling the
10273 superclass's method.
10274 (OnTextChanged): call CreateLinkPieces before calling superclass's
10276 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
10278 (Select): implement this, moving the selection between different
10279 links, and call parent.SelectNextControl if we don't have another
10280 link to focus in the given direction.
10281 (CreateLinkPieces): call Invalidate instead of Refresh.
10283 2006-07-06 Chris Toshok <toshok@ximian.com>
10285 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
10286 new LinkLabel internals.
10288 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
10289 over pieces looking for active/focused/etc links. also, deal with
10290 runs of text (and links) with embedded \n's in them, and use
10291 MeasureCharacterRanges instead of MeasureString to figure out the
10292 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
10295 2006-07-04 Jackson Harper <jackson@ximian.com>
10297 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
10298 XKB or key auto repeat, do it manually. Without key auto repeat,
10299 when a key is held down we get key press, key release, key press,
10300 key release, ... with auto repeat we get key press, key press, key
10301 press ..., and then a release when the key is actually released.
10303 2006-07-03 Jackson Harper <jackson@ximian.com>
10306 * ThemeWin32Classic.cs: Tabs do not obey normal background color
10307 rules, they are always control color regardless of the background
10310 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
10312 * FileDialog.cs: Added internal class MWFConfig.
10313 Removed Registry support and replaced it with support for the new
10314 MWFConfig class. See MWFConfig comments for more information.
10316 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
10318 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
10319 rectangle. Added some patches from eno from bug #78490 and fixed
10320 the arrow position for small up and down CPDrawScrollButtons.
10322 2006-06-30 Jackson Harper <jackson@ximian.com>
10324 * InternalWindowManager.cs: Remove some debug code.
10325 * Form.cs: When an MdiParent is set to null, the window is
10326 "detatched" and becomes a normal window.
10327 * MdiClient.cs: Don't bring the new child form to the front until
10328 it is activated (setting it as active does this), this makes the
10329 previously active forms titlebar get redrawn as inactive.
10331 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
10333 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
10334 with later controls
10336 2006-06-29 Mike Kestner <mkestner@novell.com>
10338 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
10339 arrow in keynav state. Fixes #78682.
10341 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
10343 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
10344 order (fixes #78393)
10346 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
10348 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
10349 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
10350 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
10351 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
10352 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
10353 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
10354 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
10355 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
10356 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
10357 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
10358 enumerations (FlagsAttribute, SerializableAttribute, added/removed
10361 2006-06-28 Mike Kestner <mkestner@novell.com>
10363 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
10365 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
10368 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
10369 item lines from other area (It also makes BackColor consistent and
10370 compatible with .NET). Fixed bug #78564.
10372 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
10374 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
10375 Patch from Eno for #78555.
10377 2006-06-27 Chris Toshok <toshok@ximian.com>
10379 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
10381 * DataGridColumnStyle.cs: same.
10383 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
10385 * DataGridDrawingLogic.cs: nuke.
10387 2006-06-27 Chris Toshok <toshok@ximian.com>
10389 * DataGridTableStyle.cs: clean up the constructors, and build the
10390 list of child relations for this table. I have no idea if this is
10391 where we should be doing it (it probably isn't), but since we're
10392 already iterating over the properties..
10394 * DataGrid.cs: add row resizing. for now we add a DataGridRow
10395 struct and array for keeping track of row information, similar to
10396 what's shown in a hack on
10397 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
10399 * Theme.cs: be consistent about the naming of DataGrid methods,
10400 prefering ColumnWidths and RowHeights over columnsWidths and
10403 * ThemeWin32Classic.cs: same, and also add support for variable
10404 sized rows (and the +/- expansion icons for related rows).
10406 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
10408 * TextBoxBase.cs: Applied Eno's patch from #78660
10410 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
10412 * Form.cs (ScaleCore): We don't want to scale our form if it's
10413 state is minimized or maximized, but we still need to scale our
10414 child windows. Also, added try/finally block to ensure layout
10415 gets reset (Fixes #78697)
10417 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
10419 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
10421 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
10423 * Form.cs: Fixed c+p error and added check to resize form if minimum
10424 size is bigger than current size (Fixes #78709)
10426 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
10428 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
10430 2006-06-26 Mike Kestner <mkestner@novell.com>
10432 * ComboBox.cs: only do Keypress handling in the combo when there
10433 are items in the collection. Fixes #78710.
10435 2006-06-26 Chris Toshok <toshok@ximian.com>
10437 * Binding.cs: make this work bi-directionally. also, clear up
10438 other mixups between Push/Pull Data (e.g. we're supposed to pull
10439 data when validating).
10441 * BindingManagerBase.cs: trim some fully qualified collection
10444 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
10446 2006-06-23 Chris Toshok <toshok@ximian.com>
10448 * PropertyManager.cs: It appears (according to the unit tests)
10449 that PropertyManager doesn't use
10450 PropertyDescriptor.AddValueChanged to track propery value changes
10451 in its datasource, but uses the same scheme as Binding, where it
10452 looks for a <Property>Changed event and binds to it.
10454 Also, according to the docs, IsSuspended always returns false for
10455 a property manager with a non-null datasource.
10457 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
10459 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
10460 need to update the actual DialogResult. (Fixes #78613)
10462 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
10464 * Form.cs (ShowDialog): Release any captures before running the
10465 new message pump (fixes #78680)
10467 2006-06-22 Mike Kestner <mkestner@novell.com>
10469 * ListView.cs: Layout column widths properly in details mode even
10470 if HeaderStyle.None is set. Fixes #78691.
10472 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
10474 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
10476 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
10478 * Control.cs (ContainsFocus): Using new driver method to get focused
10479 window, instead of trying to use internal tracking var, which can
10480 recursion issues (Fixes #78685)
10481 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
10482 XplatUIWin32.cs: Added GetFocus method to return focused window
10484 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10486 * ColorDialog.cs: when the mouse button is pressed inside the color
10487 matrix, don't let the cursor move out of it until the button is
10488 released, which is the behavior on windows. Changed 'colours' by
10489 'colors' to use the same word consistently.
10491 2006-06-21 Chris Toshok <toshok@ximian.com>
10493 * DataGrid.cs: add in some basic navigation stuff (navigating to a
10494 child relation and back, using a stack). Also, remove
10495 GetDataSource and the code that calls it - it's not needed. Also,
10496 track CurrencyManager.ListName's removal.
10498 2006-06-21 Chris Toshok <toshok@ximian.com>
10500 * CurrencyManager.cs: push some of the original type checking from
10501 BindingContext.CreateBindingManager to here, and remove some of
10502 the finalType stuff. Need more tests to make sure I've got the
10503 ListName part right, and we might need more in SetDataSource.
10505 * PropertyManager.cs: add a ctor that takes just the datasource,
10506 and no property name. Make SetDataSource work with a null
10507 property_name, and make Current return the data_source if the
10508 property descriptor is null. this makes 'string foo = "hi";
10509 BindingContext[foo].Current' return "hi" as it should.
10511 * RelatedCurrencyManager.cs: make this code more generic - there's
10512 no reason the parent manager has to be CurrencyManager, and
10513 there's no reason to pass the DataRelation. It suffices to use a
10514 BindingManagerBase and PropetyDescriptor.
10516 * RelatedPropertyManager.cs: make a similar change here.
10518 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
10519 flower I knew it could be.
10521 2006-06-20 Chris Toshok <toshok@ximian.com>
10523 * PropertyManager.cs: the PropertyChangedHandler is invoked when
10524 data in the source has changed and we need to update the control,
10525 so s/PullData/PushData.
10527 * CurrencyManager.cs: Refresh is meant to update the control from
10528 data in the datasource. So, s/PullData/PushData.
10530 * BindingContext.cs: add more ugliness (we weren't handling the
10531 case where data_source = DataTable and data_member = column_name).
10533 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
10534 from the perspective of the datasource. PullData pulls from the
10535 control, PushData pushes to the control.
10537 2006-06-20 Chris Toshok <toshok@ximian.com>
10539 * BindingContext.cs: rewrite the CreateBindingManager code to
10540 handle navigation paths more or less properly. This could
10541 definitely stand some more work, in particular to push the
10542 recursion up to the toplevel. But that relies on fixes in other
10543 places (System.Data comes to mind).
10545 Also, move to a flat hashtable (and encode the twolevel nature of
10546 the dictionary into the hash key). This lets us implement the
10547 IEnumerable.GetEnumerator method.
10549 * RelatedCurrencyManager.cs: new class. Update our view based on
10550 our relation and our parent CurrencyManager's position.
10552 * CurrencyManager.cs: split out some logic from the ctor into
10553 SetView, so it can be called from the new RelatedCurrencyManager
10556 * RelatedPropertyManager.cs: new class. Update our datasource
10557 based on the position of our parent CurrencyManager.
10559 * PropertyManager.cs: split out some logic from the ctor into
10560 SetDataSource, so it can be called from the new RelatedDataSource
10561 subclass. Also, make the Current getter return the value
10562 of the PropertyDescriptor, not the data_source.
10564 * Binding.cs: no need to duplicate the string splitting code here.
10566 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
10569 - set_Enabled: OnEnabledChanged is not called if the inherited state
10570 of the control is not altered, even though we might be changing the
10571 internal state of the control (#78458)
10572 - set_Enabled: (Re)Moved the enabling/disabling of the window to
10573 OnEnabledChanged, to allow easy altering of any child window state
10574 - OnEnabledChanged: Added code to enable/disable driver window state
10575 - OnParentEnabledChanged: Instead of firing the event, call
10576 OnEnabledChanged, which will fire the event and also a) set driver
10577 window state and pass the enabled state to any grandchildren (#78458)
10579 2006-06-19 Jackson Harper <jackson@ximian.com>
10581 * InternalWindowManager.cs: We don't set the cursor explicitly
10582 thats done via the response to NCHITTESTs.
10583 - Don't need to adjust for titlebar heights anymore, the
10584 coordinates are coming in the correct coordinates now (see peters
10588 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
10590 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
10591 being translated relative to whole window, instead of client window.
10592 That caused broken offsets on mouseclick (and caused gas for our
10593 InternalWindowManager)
10595 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
10598 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
10599 - Undo(): Added replay of cursor move on DeleteChars action; added
10600 calling Undo() again if a recorded cursor move is invalid (to
10601 ensure that some action is performed on Undo)
10602 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
10604 2006-06-16 Jackson Harper <jackson@ximian.com>
10606 * MdiClient.cs: Instead of just sizing maximized windows when
10607 there is a resize we also have to adjust the Y of minimized
10608 windows, so they stay pinned to the bottom of the mdi container.
10609 - Eliminate separate tracking of the active control, we can just
10610 get this from the controls collection.
10611 - Paint the decorations for the newly activated titlebar so we get
10613 * InternalWindowManager.cs:
10614 * ThemeWin32Classic.cs: Minimized windows get all three buttons
10615 even if they are a tool window.
10617 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
10619 * TextControl.cs (Undo): Handle non-existent cursor locations in the
10620 undo buffer, these can happen when text was deleted and the cursor
10621 was recorded first. Since we will also have a recorded cursor
10622 after the delete this is not an issue. (Fixes #78651)
10624 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
10626 * AccessibleObject.cs: Remove dependence on Control.is_selected;
10627 instead properly track control states internally (allows us to
10628 remove is_selected from Control)
10630 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10632 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
10633 whose width is not a multiple of 8.
10635 2006-06-13 Jackson Harper <jackson@ximian.com>
10637 * MdiClient.cs: Only maximize the next child if the current one
10640 2006-06-13 Chris Toshok <toshok@ximian.com>
10642 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
10643 modified. Also, guard against grid or grid_drawing being null in
10646 * DataGrid.cs: Reformat tons of getters/setters. In the
10647 DataMember setter, just call SetNewDataSource instead of
10648 duplicating some of its functionality. In SetNewDataSource, don't
10649 check ListManager for null, since the property getter creates the
10652 * DataGridTableStyle.cs: don't set TableStyle or call
10653 SetDataGridInternal on the column here, it's done in
10654 GridColumnStylesCollection.Add.
10656 * GridColumnStylesCollection.cs: fix all the explicit interface
10657 implementations to just call our methods. Nuke AddInternal() and
10658 move the body of it to Add(). Also, add a call to
10659 column.SetDataGridInternal to Add().
10661 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
10662 base()+duplicate code. Also, use the Format property instead of
10663 format to generate an Invalidate ala MS. Lastly, create the
10664 textbox here, unconditionally.
10665 (set_Format): call Invalidate.
10666 (get_TextBox): no need to call EnsureTextBox.
10667 (Commit): remove the message box.
10668 (Edit) remove the call to EnsureTextBox.
10669 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
10670 (EnterNullValue): no need to check textbox for null.
10671 (HideEditBox): no need to check textbox for null.
10672 (SetDataGridInColumn): add the textbox to the grid's controls.
10673 (EnsureTextBox): nuke.
10675 2006-06-13 Jackson Harper <jackson@ximian.com>
10677 * MdiWindowManager.cs: Hook up to the maximized menus paint event
10678 and redraw the buttons when needed. Unhook when the window is
10680 * MainMenu.cs: Add an internal Paint event, the mdi window manager
10681 needs this so that it can redraw its buttons when the menu is
10683 * InternalWindowManager.cs:
10684 * Form.cs: The method order has changed for DrawMaximizedButtons,
10685 so that it can be a PaintEventHandler.
10687 2006-06-13 Jackson Harper <jackson@ximian.com>
10689 * MdiClient.cs: When we close a maximized mdi window, the next mdi
10690 window is activated and maximized, even if it wasn't before.
10691 - When a new window is activated repaint the decorations of the
10692 old one, so that it no longer has the Active "look" (the blue
10694 * InternalWindowManager.cs: Open up CreateButtons to base classes
10695 so they can recreate the buttons on state changes.
10696 - If a window is maximized give it all three buttons
10697 * MdiWindowManager.cs: Create the titlebar buttons when the state
10698 is changed, this is needed because a toolwindow will not have all
10699 three buttons until it is maximized.
10701 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
10703 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
10706 2006-06-12 Jackson Harper <jackson@ximian.com>
10708 * KeysConverter.cs: Make sure we handle the Ctrl special case
10709 if its the only key.
10711 2006-06-12 Jackson Harper <jackson@ximian.com>
10713 * Theme.cs: Add a method to get the size of a managed window
10715 * InternalWindowManager.cs: Remove the ButtonSize property, this
10716 should be retrieved from the theme.
10717 * MdiWindowManager.cs: Get the button size from the theme
10718 * ThemeWin32Classic.cs: Make the method to get the managed window
10719 titlebar button size public.
10720 - Handle the different button sizes of maximized toolwindows
10721 (should match any maximized window).
10722 - Get the titlebar height from the theme, not the WM (which gets
10723 it from the theme).
10725 2006-06-12 Jackson Harper <jackson@ximian.com>
10727 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
10728 event down to the mdi window manager.
10729 - Expose some extra stuff to base classes
10730 - Make sure to end the Capture on an NC Mouse up, so that we can
10731 get double clicks properly, and the sizing doens't stick.
10732 - When doing PointToClient contain it in the workable desktop
10733 area, this prevents windows from changing size when the cursor is
10734 pulled outside of the working area while sizing.
10735 * MdiWindowManager.cs: When we get a double click maximize the
10737 - Reset the cursor after handling mode changes.
10739 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
10741 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
10742 current desktop, instead of just assuming a 0, 0 origin. This
10743 is needed for our internal window manager, to know the top
10744 margin of the desktop
10746 2006-06-12 Chris Toshok <toshok@ximian.com>
10748 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
10749 we need this to get rid of the selected background in the bool
10751 (CancelEditing): move the ConcedeFocus call to above the Abort
10752 call. Also, set is_changing to false and invalidate the row
10753 header if we were changing before.
10754 (ProcessKeyPreviewInternal): remove, since noone outside this
10755 class calls it anymore. Roll the code into ProcessKeyPreview.
10756 (EndEdit): remove the internal version.
10757 (InvalidateCurrentRowHeader): make private.
10759 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
10760 Keys.Escape handling (and with it the last call to
10761 DataGrid.EndEdit from outside the class.)
10764 2006-06-12 Chris Toshok <toshok@ximian.com>
10766 * DataGridTextBox.cs (.ctor): isedit defaults to false.
10767 (OnKeyPress): set isedit to true.
10768 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
10769 already handled by the grid.
10771 * DataGrid.cs (set_CurrentCell): more work here. it's still not
10773 (set_DataSource): SetDataSource always returns true, so stop
10774 putting it in an if statement.
10775 (EndEdit): get rid of some {}'s
10776 (ProcessGridKey): return true in case Keys.Escape.
10777 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
10778 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
10779 PositionChanged, stopped connecting to CurrentChanged.
10780 (GetDataSource): simplify this a bunch.
10781 (SetDataSource): change return type from bool to void.
10782 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
10783 to this, and make sure we don't set ListManager.Position inside
10785 (OnListManagerItemChanged): if we're passed an actual index,
10788 * CurrencyManager.cs (set_Position): don't call PullData here.
10790 2006-06-09 Jackson Harper <jackson@ximian.com>
10792 * TreeNode.cs: Recalculate the visible order before doing the
10793 Expand/Collapse Below calls, because those calls generate an
10795 - Reduce calls to the TreeView property, which is mildly expensive
10796 by using a local var.
10797 * Form.cs: Layout the MDI child windows when creating the parent
10799 - Don't use the internal constructor anymore
10800 * MdiClient.cs: use the parent form width/height (if available)
10801 when laying out the child windows, we do this because the
10802 mdiclient isn't docked yet when the initial layout is done.
10803 - Don't need an internal constructor anymore.
10805 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10807 * FileDialog.cs: handle access errors when trying to create a folder
10808 or changing to a directory. No need to initialize out parameters.
10810 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10812 * FileDialog.cs: Append a number when creating a new folder if the
10813 folder already exists (use parenthesis instead of square brackets)
10815 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10818 - Disabled registry support for windows and added better registry
10819 error checking for other systems (need to investigate why it
10820 works perfectly on my system)
10821 - If a folder already exist show an error MessageBox instead of
10822 trying to create an indexed name.
10823 - Fixed a non intentional typo.
10825 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10827 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
10829 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10831 * FileDialog.cs: When creating a new folder don't crash if the
10832 folder already exists.
10834 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10836 * FileDialog.cs: Allmost a complete rewrite.
10837 - added a "virtual" file system that handles the differences
10838 between unix and windows file systems (especially the directory
10839 structure). Moved most of the directory and file handling code
10841 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
10842 UnixFileSystem and FSEntry.
10843 - Recently used folder/directory, size, location and used file names
10844 (file name ComboBox) are now stored in the registry and get read
10845 before the dialog shows up (fixes part 6 of bug #78446).
10846 - Creation of new folders/directories is now possible (context menu
10847 or ToolBar). Added TextEntryDialog for this that fills in the gap
10848 until ListView.LabelEdit works.
10849 - Fixed cursor handling (bug #78527) and focus handling for
10851 - Various "Search in" ComboBox enhancements. The content of the
10852 dropdown listbox now almost matches ms.
10853 - Changed the behaviour when the user switches to SpecialFolder
10854 Recent to show the ListView in View.Details.
10855 - Beside using the ToolBar to change the View property of the
10856 file ListView it is now possible to use the context menu too.
10858 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
10860 * ComboBox.cs: Don't create a new ObjectCollection when an item
10861 gets inserted. Just insert the item in the existing object_items
10864 2006-06-08 Jackson Harper <jackson@ximian.com>
10866 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
10867 that the treeview and root node checks are done also, this fixes a
10868 regression i caused in the unit tests.
10870 2006-06-07 Wade Berrier <wberrier@novell.com>
10872 * RichTextBox.cs: More ISO8859-1 -> unicode
10874 2006-06-07 Mike Kestner <mkestner@novell.com>
10876 * ComboBox.cs : use items to hold highlight/selection so that
10877 collection insertions don't require synchronization.
10879 2006-06-07 Jackson Harper <jackson@ximian.com>
10881 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
10882 routine. We now always keep the sized edge at the cursor instead
10883 of computing movement and adjusting rects. There is one buglet
10884 with this method though when the cursor is moved over area that
10885 the window can not expand too (such as the toolbars on the desktop).
10887 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10889 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
10890 here. Fixes crash on startup in AlbumSurfer.
10892 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
10894 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
10897 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10899 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
10900 statement to avoid calling XNextEvent which will block if another thread
10901 took the event that we were expecting. Fixes bug #78605.
10903 2006-06-07 Mike Kestner <mkestner@novell.com>
10905 * ListView.cs : isolated checkbox clicking from the selection logic.
10906 Toggle check state on item doubleclicks. Really fixes #78454 part2.
10908 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10910 * Form.cs: Check that the value passed to Form.DialogResult
10911 is a valid enum value.
10913 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10915 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
10916 Computer'. Clicking it in the network view goes to 'My Computer'.
10917 Added CIFS filesystem type. Display the mount point of filesystems.
10918 Avoid duplicate mount points (happens for me with CIFS);
10920 2006-06-06 Jackson Harper <jackson@ximian.com>
10922 * InternalWindowManager.cs: Draw the maximized windows buttons
10925 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10927 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
10928 all other dialogs. Fixes bug #78585.
10930 2006-06-06 Mike Kestner <mkestner@novell.com>
10932 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
10933 Only invalidate checkbox on checkstate changes to avoid flicker.
10934 * ListBox.cs : avoid unselect/select when clicking selected item.
10935 avoid reselection flicker for already multiselected items.
10938 2006-06-06 Jackson Harper <jackson@ximian.com>
10940 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
10941 the parent form so that the menu is removed if needed.
10943 2006-06-06 Mike Kestner <mkestner@novell.com>
10945 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
10946 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
10948 2006-06-06 Mike Kestner <mkestner@novell.com>
10950 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
10953 2006-06-06 Jackson Harper <jackson@ximian.com>
10955 * Control.cs: Use the property (instead of the field) to get the
10956 default cursor so it is instantiated correctly.
10957 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
10958 resizes so we need to manually repaint the window decorations here.
10959 - Set the titlebar button locations as soon as they are created,
10960 otherwise they are not set correctly on win32.
10962 2006-06-06 Chris Toshok <toshok@ximian.com>
10964 * CurrencyManager.cs (set_Position): call PullData before
10966 (AddNew): after calling IBindingList.AddNew, update our
10967 listposition, and call OnCurrentChanged/OnPositionChanged (without
10969 (OnCurrentChanged): remove the call to PullData from here.
10970 (OnItemChanged): remove the call to PushData from here.
10971 (OnPositionChanged): change the test from == null to != null to
10972 match the other methods.
10973 (ListChangedHandler): the grossest part of the patch. Implement
10974 this such that it passes the unit tests in CurrencyManagerTest and
10975 the output more or less matches that of MS's implementation.
10977 2006-06-06 Mike Kestner <mkestner@novell.com>
10979 * ListView.cs : only update check state on single click.
10980 * ThemeWin32Classic.cs : fix focus drawing for details view without
10981 fullrowselect. Fixes #78454.
10982 * XplatUIX11.cs : fix for double click emission.
10984 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
10986 * PropertyGridView.cs : Applied Atsushi's patch to fix
10987 font dialog bug (#78197).
10989 2006-06-05 Jackson Harper <jackson@ximian.com>
10991 * TreeNode.cs: Compute the next node for expanding/collapsing
10992 correctly. We now factor in nodes without a NextNode
10993 correctly. (Fixes somes cases in nunit-gui).
10994 * InternalWindowManager.cs: Set the bounds when updating the
10995 virtual position of a tool window.
10997 2006-06-05 Chris Toshok <toshok@ximian.com>
10999 * DataGrid.cs: rename cached_currencymgr to list_manager.
11000 (set_CurrentCell): move SetCurrentCell code here, and clean it up
11002 (CurrentRow, CurrentColumn): single accessors so we can make the
11003 cursor movement code a lot easier to understand.
11004 (CurrentRowIndex): implement this in terms of CurrentRow.
11005 (BeginEdit): clean this up a bit.
11006 (CancelEditing): sort out the is_editing/is_changing/is_adding
11008 (EndEdit): minor changes.
11009 (OnKeyDown): add a comment about a (most likely) unnecessary
11011 (OnMouseDown): cancel editing when we click on a row header. And
11012 use the CurrentRow setter, not CurrentCell.
11013 (ProcessDialogKey): directly call ProcessGridKey.
11014 (UpdateSelectionAfterCursorMove): factor out this common block of
11015 code (it's used everywhere that we move the cursor by updating row
11017 (ProcessGridKey): pretty substantial overhaul. Use the
11018 CurrentRow/CurrentColumn properties to make the code a lot more
11019 readable. Only use the CurrentCell property when we have to
11020 modify both row and column at once. Tab behavior is still broken,
11021 and Delete is untested.
11022 (Select): if we have no selected rows, set selection_start to
11024 (EditCurrentCell): rename EditCell this. It was only ever invoked
11025 with CurrentCell as the arg, so drop the arg and rename it.
11027 * DataGridColumnStyle.cs: clean up the constructors a little, and
11028 drop CommonConstructor().
11030 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
11031 actually get notified when the user hits it.
11032 (ProcessKeyMessage): *substantially* simplify this method.
11033 There's no reason (that I can see) for the textbox to be making
11034 calls into the datagrid at all. Remove all of them but the ones
11035 for Enter handling. those will take some more work.
11037 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
11038 calling HideEditBox.
11039 (HideEditBox): if we have an active textbox, render it invisible
11040 without causing a re-layout of the datagrid.
11042 2006-06-05 Mike Kestner <mkestner@novell.com>
11044 * ListView.cs : fix NRE crasher when focuseditem is cleared by
11045 collection changes by resetting it to Items[0]. Fixes #78587.
11047 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11049 * MessageBox.cs: if the height of the text is larger than the icon_size,
11050 use that. Fixes bug #78575.
11052 2006-06-05 Jackson Harper <jackson@ximian.com>
11054 * TreeView.cs: Fix line drawing when scrolling. To do this each
11055 node is basically responsible for drawing its entire horizontal
11056 area. When drawing a node it draws its parent node lines if
11058 - Adjust the clip area to the viewport rectangle
11059 - Fix Left/Right key handling to match MS. (It expand/collapses
11060 and moves to parents/first child but does not move selection to
11062 - Fix SetTop to work with new bound calculation code
11063 - When scrollbars are no longer needed we need to reset scrolling
11064 vars and recalculate the visible order so the redraw is correct
11065 * TreeNode.cs: We can't expand/collapse nodes with no children.
11067 2006-06-03 John Luke <john.luke@gmail.com>
11069 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
11070 so the colors work without dev packages
11072 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
11075 - Select: Implemented to just use activate. Seems to match MS
11076 behaviour closest. Documented to only do actual control walking
11077 based on it's parameters if in a container control so I moved
11079 - Removed selection check logic from our internal Select() method
11080 * ContainerControl.cs:
11081 - Select: Moved selection logic from Control here, since MS documents
11082 that containers obey the bool arguments. No longer calling base
11084 2006-06-02 Jackson Harper <jackson@ximian.com>
11086 * TreeView.cs: If the selected node isn't changed when we get
11087 focus update the previously selected node so that we see the
11090 2006-06-02 Mike Kestner <mkestner@novell.com>
11092 * ComboBox.cs: restructure grab and general mouse event handling.
11093 Make the composite control raise mouse events like it was a single
11094 control for leaves/enters/motion/up/down events. fix dropdown list
11095 coordinate mangling and refactor it into the scrollbar subclass to
11096 reduce code duplication. Fixes #78282 #78361 and #78457.
11098 2006-06-02 Mike Kestner <mkestner@novell.com>
11100 * ScrollBar.cs: remove Capture setting/clearing, as it happens
11101 automatically in the Control.WndProc.
11103 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11105 * FileDialog.cs: fix crash when running SharpChess, which sets the
11106 FilterIndex to 2 with only one Filter.
11108 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11110 * ToolBar.cs: add SizeSpecified property.
11111 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
11112 try to figure out our real size, otherwise fallback to what the
11115 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
11117 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
11118 * Control.cs (WndProc): MS always calls the DefWndProc to pass
11121 2006-06-01 Mike Kestner <mkestner@novell.com>
11123 * ListView.cs: revamp the focus management in ListView. It still
11124 causes churn of LostFocus/GotFocus emissions on clicks, but it's
11125 better than not handling focus at all. Will revisit when pdb feels
11126 the general focus handling is solid. Fixes #78526.
11128 2006-06-01 Jackson Harper <jackson@ximian.com>
11130 * TreeView.cs: Set the default border style in the constructor.
11131 - Move painting to use OnPaintInternal instead of capturing
11132 WM_PAINT, this is the correct way of doing things
11133 - UpdateBelow shouldn't invalidate the scrollbar area
11134 - Cap the top on update below in case the node was above the top
11135 of the viewport rectangle.
11136 - ExpandBelow and Collapse below need to obey Begin/End Update.
11137 * TreeNode.cs: Make is_expanded internal so the treenode
11138 collection can change it without firing the whole event chain.
11139 * TreeNodeCollection.cs: When clearing all the child nodes make
11140 sure to recalc the visible order.
11141 - Improve algo for remove the top node
11143 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
11145 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
11146 SendMessage directly calling window procedures, which in turn might
11149 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
11151 * Control.cs: Don't handle WM_SETFOCUS if the same window already
11152 has focus (works around X11 sending a FocusIn after our SetFocus)
11153 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
11155 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
11157 * Mime.cs: Fix for the NET_2_0 build.
11158 NameValueCollection needs StringComparer now.
11160 2006-05-31 Chris Toshok <toshok@ximian.com>
11162 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
11163 return (via an out parameter) the starting X of the column.
11164 (UpdateVisibleColumn): track change to FromPixelToColumn.
11165 (HitTest): add a ColumnResize case here.
11166 (DrawResizeLine): new function, probably poorly named.
11168 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
11169 only need to keep one reference.
11170 (set_ListManager): same.
11171 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
11172 Also, add support for HitTestType.ColumnResize.
11173 (OnMouseMove): add column resize behavior here, and change the
11174 cursor to the correct one as we move around the datagrid.
11175 (OnMouseUp): terminate the column resize if we're resizing.
11176 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
11177 for the current cell.
11178 (ConnectListManagerEvents): use cached_currencymgr.
11179 (DisconnectListManagerEvents): fill this in, using
11180 cached_currencymgr.
11181 (SetCurrentCell): remove cached_currencymgr_events handling.
11182 (SetDataMember): only call DisconnectListManagerEvents if
11183 cached_currencymgr is != null.
11184 (SetDataSource): same.
11185 (OnListManagerCurrentChanged): cached_currencymgr_events ->
11186 cached_currencymgr.
11188 2006-05-31 Jackson Harper <jackson@ximian.com>
11190 * BindingManagerBase.cs: Remove somedebug code that creeped into
11192 * TreeNode.cs: We get the indent level dynamically right now, so
11193 don't track it as a member.
11194 * TreeNodeCollection.cs: Make sure all nodes added to the list
11195 have parents, treeviews/topnodes setup properly.
11196 - Don't attempt to track indent level.
11198 2006-05-30 Jackson Harper <jackson@ximian.com>
11200 * BindingContext.cs: Create the currency manager tables here.
11201 This allows us to more easily create null tables (when bad data
11202 members are used), and more easily create related currency
11204 * CurrencyManager.cs: All the table creation stuff is done by the
11205 binding context now.
11206 - Current should throw an exception if listposition is -1.
11207 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
11210 2006-05-30 Mike Kestner <mkestner@novell.com>
11212 * ListView.cs: allow reexpansion of zero-width column headers.
11215 2006-05-28 Chris Toshok <toshok@ximian.com>
11217 * CurrencyManager.cs (get_Current): after the late binding
11218 listposition = -1 fix, we need to guard against it here and return
11219 null, otherwise we raise an exception (which is swallowed
11220 elsewhere, and breaks datagrid databinding.)
11222 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
11224 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
11225 than WM_SYSKEY, don't throw if get something unexpected (#78507)
11227 2006-05-26 Jackson Harper <jackson@ximian.com>
11230 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
11231 values, it's faster and it's all we care about (we don't care if
11232 the names aren't equal).
11233 * KeyboardLayouts.cs: Eliminate some dead code.
11235 * X11Keyboard.cs: Lazy init keyboard detection.
11236 - Cleanup access modifiers a little.
11238 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
11240 * XplatUIX11.cs: Once again, attempting to get layout just right.
11242 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
11244 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
11245 the sizes of each link section, that will result in sizes that
11246 match DrawString's layout (Fixes #78391)
11248 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
11250 * FileDialog.cs: If AddExtension property is true autocomplete the
11251 extensions in SaveFileDialog correctly. Fixes bug #78453.
11252 Set MyNetwork and MyComputer to "C:\" for windows. This should
11253 fix part 8 of bug #78446 for now.
11255 2006-05-26 Chris Toshok <toshok@ximian.com>
11257 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
11258 invalidate the current row header if we need to, but presumably
11259 we'll invalidate the row corrsponding to the bounds or
11261 (GridHScrolled): switch back to this method, as it's part of the
11262 public api. *sigh*.
11263 (GridVScrolled): same.
11264 (OnMouseWheel): hack up something that more or less works. Call
11265 GridHScrolled/GridVScrolled directly, instead of duplicating much
11266 of their code here.
11267 (EnsureCellVisibility): reinstate a bunch of this code, since we
11268 can't just set the scrollbar Value and expect to do all the work
11269 in the ValueChanged handler. Also, Call Update() after scrolling
11270 in one direction so the other XplatX11.ScrollWindow call has the
11271 proper stuff in the proper places.
11272 (EditCell): set is_editing to true before calling .Edit.
11274 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
11275 don't bother comparing first.
11276 (OnKeyPress): call grid.ColumnStartedEditing before calling
11277 base.OnKeyPress. this will set is_changing and invalidate the row
11278 header if necessary.
11279 (ProcessKeyMessage): for WM_CHAR messages, call
11280 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
11283 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
11284 it's done in the DataGrid.
11285 (NextState): call grid.ColumnStartedEditing, which takes care of
11286 invalidating the row header (and setting is_changing).
11288 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
11289 here. it's done in the DataGrid.
11291 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11293 * Control.cs: allow changing the cursor when the mouse position is
11294 out of bounds but Capture is set.
11295 * LinkLabel.cs: handle the case when the mouse button is pressed on the
11296 linklabel but released somewhere else.
11298 2006-05-25 Jackson Harper <jackson@ximian.com>
11300 * TreeView.cs: When we get focus if there is no selected node make
11302 - Remove some uneeded setup code from Draw.
11303 * TreeNodeCollection.cs: If the tree doesn't have a top node when
11304 a new node is inserted make the new node the top.
11306 * Timer.cs: Use Utc time so that no local time zone stuff needs to
11307 be used (should be faster).
11309 2006-05-25 Chris Toshok <toshok@ximian.com>
11311 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
11312 problem with the last commit.
11314 2006-05-25 Chris Toshok <toshok@ximian.com>
11316 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
11317 need the invalidate call here, while scrolling right-to-left via
11318 the left arrow key (i.e. moving the editing cell while scrolling).
11320 * DataGrid.cs (.ctor): remove the initialization of
11321 ctrl_pressed/shift_pressed. We no longer track them using key
11322 up/down handlers, but by using Control.ModifierKeys. Also, switch
11323 to using ValueChanged handlers on the scrollbars instead of
11324 Scrolled event handlers. This simplifies a bunch of the scrolling
11326 (GridHValueChanged): rename from GridHScrolled, and change it to
11327 work with the new event args.
11328 (GridVValueChanged): same.
11329 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
11330 (OnMouseWheel): actually scroll the datagrid. Don't change the
11332 (ProcessGridKey): correct all the keyboard navigation stuff I
11333 could find. Ctrl up/down/left/right/home/end work now.
11334 (EnsureCellVisibility): correct method name spelling. Also,
11335 simplify this a touch by not explicitly calling the
11336 ScrollToRow/ScrollToColumnInPixels methods. We just set the
11338 (OnKeyUpDG): no need for this method now.
11340 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11342 * LinkLabel.cs: display the OverrideCursor when hovering the label.
11345 2006-05-25 Chris Toshok <toshok@ximian.com>
11347 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
11350 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
11352 * Application.cs: Moved setting of is_modal and closing to before
11353 we create the control, to allow the event handlers called as a
11354 result of creation affect closing. Also removed Gonzalo's previous
11355 change to setting DialogResult, the behaviour has been moved to
11358 - ShowDialog(): Removed explicit creation of the form, let RunLoop
11360 - ShowDialog(): If no dialog result is set, we need to return Cancel
11361 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
11362 the close is cancelled
11364 2006-05-25 Jackson Harper <jackson@ximian.com>
11366 * StatusBar.cs: We only need to update the sizes of the other
11367 panels when we have auto size contents. Also we are only updating
11368 the contents of the panel, not the borders, so compensate for the
11369 border width (TODO: get this width from the theme somehow).
11370 * TreeView.cs: Scrollable is true by default
11371 - Use invalidate instead of refresh where needed
11372 - Factor the scrollable value into scrollbar updating
11373 - Update the scrollbars if the Scrollable property is altered
11374 - Update the selected node if its ImageIndex is changed
11375 - Handle null nodes in UpdateNode (mainly so we don't have to
11376 check if selected is null when updating it
11377 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
11378 are factored into the visible count
11379 - Use VisibleCount for clarity in the code
11380 - When the font is changed we need to recurse through all the
11381 nodes and invalidate their sizes
11383 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11385 * Application.cs: set the DialogResult to fixed when the main form is
11386 hidden or destroyed while being modal.
11388 2006-05-25 Miguel de Icaza <miguel@novell.com>
11390 * Theme.cs: Use Tangoified messagebox icons.
11392 (GetSizedResourceImage): Also cope with width = 0 and do not
11393 trigger a warning in that case (0 means "give me your icon from
11394 the resouce, no special size needed).
11396 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
11398 * Application.cs: Leave runloop if the the main modal form is
11399 hidden (fixes #78484)
11401 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
11403 * BindingContext.cs : reject null datasource in Contains() and
11405 * CurrencyManager.cs : check data_member validity when data_source
11406 is dataset. When it is late binding, the initial position is -1.
11408 2006-05-24 Jackson Harper <jackson@ximian.com>
11410 * TreeNodeCollection.cs: Dont't recalculate the visible order on
11411 inserted nodes that aren't visible. This changes the
11412 max_visible_order which confuses scrollbar settings.
11413 - Use the enumerator to get the prev node instead of duplicating
11415 * TreeView.cs: Use new method for setting scrollbar values
11416 - Don't set the bounds every time the scrollbar is updated
11417 - When updating below the root node use an invalidate instead of a
11418 refresh to prevent the child controls (scrollbars) from being
11419 refreshed. (UpdateBelow still needs to be reworked anyways).
11420 - Reenable SetBottom now that visible orders are set correctly,
11421 added some debug code incase we ever get bad values there again.
11422 - Set the scrollbar max to 2 less then the max value, this
11423 compensates for the max value being one above the node count, and
11424 for scrollbars adding one extra "notch".
11425 - When drawing image nodes if there is an imagelist we draw the
11426 first image in the list if the supplied image index is out of the
11427 image list's bounds.
11429 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
11431 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
11432 we receive a size change from the WM (Fixes #78503)
11434 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
11436 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
11437 rectangle (Fixes #78501)
11439 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
11442 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
11444 - Fixed MouseMove to no longer switch pressed state unless the left
11445 mouse button is pressed. Atsushi provided the original patch (#78485)
11447 2006-05-24 Jackson Harper <jackson@ximian.com>
11449 * ScrollBar.cs: New internal methods that allow us to change a
11450 couple values on the scrollbar (the most common case is maximum
11451 and large change) without getting multiple invalidates.
11453 2006-05-24 Chris Toshok <toshok@ximian.com>
11455 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
11456 (Edit): save off the original state in oldState, and set
11457 grid.is_editing to true.
11458 (OnKeyDown): abort editing if escape is pressed. also, call
11459 NextState if space is pressed.
11460 (OnMouseDown): call NextState.
11461 (NextState): factor out shared code from OnKeyDown and OnMouseDown
11462 here. Also, only invalidate the row header once (on the initial
11463 is_changing switch) to save on redraws.
11465 2006-05-24 Chris Toshok <toshok@ximian.com>
11467 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
11468 if the value in the cell is different than it was before. This
11469 keeps us from triggering a layout when we move around a datarid
11470 with a highlighted cell.
11471 (Edit): suspend layout when creating/positining the text box, and
11472 resume passing false so we don't ever actually re-layout.
11473 (ReleaseHostedControl): same.
11474 (EnsureTextBox): reformat slightly, and set WordWrap to false.
11476 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
11477 control-key sequences should go to the datagrid - remove that
11478 lock. Also, modify the conditions under which we move between
11479 cells when moving the cursor within a cell, and remove the "this"
11480 and "base" from field accesses. We weren't even consistent, given
11481 they all were in the base class.
11483 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
11485 * Binding.cs : (.ctor)
11486 An obvious NRE fix for BindingTest.CtorNullTest().
11488 2006-05-23 Chris Toshok <toshok@ximian.com>
11490 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
11491 them between lines. This fixes some quirks editing cells in the
11494 2006-05-23 Jackson Harper <jackson@ximian.com>
11496 * TreeView.cs: Use begin/end update when doing expand/collapse all
11497 so that we don't get flicker on the scrollbar.
11499 2006-05-23 Jackson Harper <jackson@ximian.com>
11501 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
11502 treenode calculations to be independant of the painting code. To
11503 do this nodes track a visible order which is calculated by the
11505 - Call new methods for expanding/collapsing nodes. These methods
11506 use scrollwindow so we don't have to update everything below the
11508 * TreeView.cs: Refactored drawing and scrolling code. We don't
11509 need to update nodes when drawing anymore or calculate scrollbar
11511 - Added new methods for expanding/collapsing nodes. These methods
11512 use ScrollWindow so as to not have to redraw all the nodes below.
11513 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
11514 we add/remove nodes or sort.
11515 - Handle removing the selected and the top node properly.
11517 2006-05-23 Chris Toshok <toshok@ximian.com>
11519 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
11520 maybe this should actually happen in the datagrid code?
11521 (EndEdit): no need to invalidate anything, given that
11522 ReleaseHostedControl causes the datagrid to relayout, which
11523 invalidates everything anyway.
11525 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
11526 in SetCurrentCell).
11527 (set_SelectionBackColor): call InvalidateSelection instead of
11529 (set_SelectionForeColor): same.
11530 (BeginEdit): Flesh this out a bit.
11531 (CancelEditing): only do any of this if we're editing/adding.
11533 (OnMouseDown): there's no need to cancel editing here, it's done
11535 (SetCurrentCell): only invalidate the current row header if it's a
11536 different row than the new one.
11537 (ShiftSelection): fix this to work like MS does.
11538 (ResetSelection): factor out the invalidation of selected_rows to
11539 InvalidateSelection.
11540 (SetDataSource): cancel any editing that's going on.
11542 * DataGridColumnStyle.cs
11543 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
11544 call the non-interface version.
11546 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
11547 header rectangle with the clip rectangle so we don't redraw the
11548 entire header for just a small area. Gets rid of the last flicker
11549 when horizontally scrolling.
11550 (DataGridPaintRow): same.
11552 2006-05-23 Mike Kestner <mkestner@novell.com>
11554 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
11555 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
11556 poorly placed checkbox on the MS control. Fixes Alex's unfiled
11557 Critical bug report.
11559 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
11561 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
11562 and this fixes #78493
11564 2006-05-23 Miguel de Icaza <miguel@novell.com>
11566 * Theme.cs (GetSizedResourceImage): Scale images if the proper
11569 * FileDialog.cs: Do not change the background for the side bar as
11570 it wont work nicely with the theme, and also reduces the artifacts
11571 in rendering the icons (which I want to fix too).
11573 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
11574 resources, not resgen resources.
11576 (PlatformDefaultHandler): Pull images using the new API.
11578 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
11580 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
11581 a reference to the hwnd and will not remove it unless there are
11582 no pending exposures (fixes #78341)
11583 * XplatUI.cs: Improved debug
11585 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
11587 * MenuAPI.cs : don't handle OnClick event when it was not the left
11588 button. Fixed bug #78487.
11590 2006-05-23 Mike Kestner <mkestner@novell.com>
11592 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
11593 prefer submenus to the top menu for item lookup, to avoid popping down
11596 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
11598 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
11599 Graphics.FillRectangle as the visual results are really bad (even
11600 on win). We now draw perfect arrows (and perfect shadows when the
11601 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
11602 Pen.DashPattern to draw the dots of each line.
11604 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
11606 * FileDialog.cs: Update the filename combobox when navigating through
11607 the ListView with the cursor keys. Fixes part 7 of bug #78446.
11609 2006-05-22 Mike Kestner <mkestner@novell.com>
11611 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
11614 2006-05-22 Mike Kestner <mkestner@novell.com>
11616 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
11617 requests. Fix a misspelled parameter and a copy paste exception error
11620 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
11622 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
11623 to get the same width/height (5/13) on X11 as the default font has on
11624 win32. This means that our DefaultFont emSize is smaller than the
11625 the MS SWF equivalent (even thought the width/height stays the same)
11627 2006-05-20 Jackson Harper <jackson@ximian.com>
11630 * MdiWindowManager.cs:
11631 * InternalWindowManager.cs: Make sure to use the border width from
11634 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
11636 * PrintDialog.cs: Implements printer details
11638 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
11640 * FileDialog.cs: Added focus handling for PopupButtonPanel.
11641 Fixes part 1 and 2 of bug #78446
11643 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
11645 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
11646 instead of sticking to the first ever calculated value
11648 2006-05-19 Mike Kestner <mkestner@novell.com>
11650 * ComboBox.cs: fix mouse motion selection to use MousePosition and
11651 PointToClient, since Capture is set. Fixes #78344.
11653 2006-05-19 Mike Kestner <mkestner@novell.com>
11655 * ListView.cs: match MS behavior in Details view where items are not
11656 drawn if Columns.Count == 0.
11657 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
11658 Use a separate pen to draw the check, since changing the width affects
11659 the box as well. Fixes #78454.
11661 2006-05-18 Miguel de Icaza <miguel@novell.com>
11663 * ListView.cs: ArgumentOutOfRangeException, single versions of the
11664 exception should throw the name of the invalid argument.
11666 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
11667 there are no files listed.
11669 2006-05-18 Jackson Harper <jackson@ximian.com>
11671 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
11674 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11676 * Control.cs: Brought back our old UpdateZOrder method as a private
11677 function and switched our calls from UpdateZOrder to the new one.
11678 This fixes the Paint.Net canvas disappearing bug.
11680 2006-05-18 Jackson Harper <jackson@ximian.com>
11683 * ThemeWin32Classic.cs:
11684 * InternalWindowManager.cs: Move the drawing into the theme,
11685 expose everything the theme should need from the window manager.
11687 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11689 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
11690 from the call to NativeWindow to avoid walking up the parent chain
11691 further than needed (speeds up setting cursors and avoids setting
11692 the wrong cursor if a parent has another cursor defined)
11693 * Cursor.cs: When loading an icon as cursor, MS uses the center of
11694 the icon as hotspot, not what's contained as hotspot in the icon
11695 file. This fixes the perceived drawing offset seen with Paint.Net
11697 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11700 - Store the calculated rectangle in Hwnd object and use it when
11701 setting the client size
11702 - Force Toolwindows to always be type Dock, to ensure they're on top
11704 2006-05-18 Mike Kestner <mkestner@novell.com>
11706 * ComboBox.cs: first pass at ComboBox rework. Layout is more
11707 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
11708 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
11709 Substantial refactoring to remove confusing nested classes. Coding
11710 standard and Get+Set->property refactorings. Shift to index based
11711 highlighting in ComboListBox instead of constantly using IndexOf and
11712 Items[]. Add invalidations on resize for DropDownList to fix ugliness
11713 in FileDialog growth. Draw borders manually since Simple mode needs
11714 to look like two independent controls. Make listbox border
11715 conditional to DropDownStyle. Improved OwnerDraw support.
11717 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
11719 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
11720 Don't set the disposed graphics to null, so we can throw the "right"
11721 exception if the graphics is reused later (added a flag to avoid
11722 double disposing). Some behaviours are different under 2.0 and are
11723 filled under bug #78448.
11725 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
11727 * Control.cs: When double-buffering is enabled, we need to reset
11728 our graphics context between paint calls. Otherwise, any
11729 transformations and other alterations on the context will
11730 become cumulative (#77734)
11732 2006-05-18 Mike Kestner <mkestner@novell.com>
11734 * ListView.cs: do focused item selection like MS on clicks.
11735 Rework focus handling for ItemControl so LostFocus invalidates as
11737 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
11738 the ListView ItemControl has focus.
11740 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
11742 * XplatUIX11.cs: If client_window ends up being width or height zero
11743 due to border settings, move it off window inside whole_window (#78433)
11745 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
11747 * Mime.cs: Shrink the mime file cache correctly.
11749 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
11751 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
11753 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11755 * XplatUIX11.cs (AddExpose): More sanity checks
11757 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11760 - AddExpose: Don't add expose ranges outside the size of our
11762 - Cast opacity values to Int32 to avoid crashes with certain
11764 - Added disabled code paths that protect against illegal cross-
11765 thread painting (Developers.exe)
11767 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11769 * ProgressBar.cs: Invalidate the control when it's resized
11770 since block size is based on control size. (#78388)
11772 2006-05-16 Miguel de Icaza <miguel@novell.com>
11774 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
11775 of setting the incoming argument to the "reset" value, we set the
11776 this.datamember to string.empty (before we were invalidating the
11781 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11783 * Form.cs: Only apply transparency settings after the form
11784 is created. (Fixes #77800)
11786 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11788 * ApplicationContext.cs: Grab the HandleDestroyed event so
11789 we know when to fire OnMainFormClosed
11791 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11793 * Application.cs: Introduced sub-class to allow tracking of
11794 threads and centralized triggering of the event mess for
11795 ThreadExit, AppExit, etc.. (#76156)
11797 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
11800 - Do not return a null icon index value for a mime subclass.
11801 Instead try the main mime type class too.
11802 - Seems that some newer distributions don't have a link to some
11803 gnome default icons anymore. So check the default gnome dir too.
11806 2006-05-16 Jackson Harper <jackson@ximian.com>
11808 * MdiClient.cs: Don't paint the parent background image if we have
11809 our own background image.
11811 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
11814 - PerformLayout: Do not shrink space filled by DockStyle.Fill
11815 controls, all filled controls are supposed to overlap (#78080)
11816 - UpdateZOrder is supposed to update the control's z-order in the
11817 parent's z-order chain. Fixed to behave like that
11818 - BringToFront: Removed obsolete code
11819 - SendToBack: Simplyfied
11820 - SetChildIndex: Trigger layout calculations when Z-order changes
11821 since layout is done by z-order
11823 2006-05-16 Chris Toshok <toshok@ximian.com>
11825 [ fixes bug #78410 ]
11826 * DataGrid.cs (set_AlternatingBackColor): use
11827 grid_drawing.InvalidateCells instead of Refresh().
11828 (set_BackColor): call grid_drawing.InvalidateCells.
11829 (set_BackgroundColor): use Invalidate instead of Refresh.
11831 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
11832 invalidate the cell area.
11834 2006-05-15 Chris Toshok <toshok@ximian.com>
11836 [ fixes bug #78011 ]
11837 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
11838 on to DataGridPaintRow.
11839 (DataGridPaintRow): take a clip argument, and only draw the cells
11840 which intersect it. same with the not_usedarea.
11842 * Theme.cs (DataGridPaintRow) add @clip parameter.
11844 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
11845 XplatUI.ScrollWindow.
11846 (ScrollToRow): same.
11848 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
11849 with last column which was causing a gray swath to appear with the
11850 XplatUI.ScrollWindow code.
11852 2006-05-15 Chris Toshok <toshok@ximian.com>
11854 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
11855 use XplatUI.ScrollWindow.
11856 (VerticalScrollEvent): use XplatUI.ScrollWindow.
11858 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
11860 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
11862 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
11864 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
11865 file since there are no equivalent X11 cursors
11867 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
11869 * MonthCalendar.cs : DateTimePicker should reflect selected date
11870 on mouse*up*, not mouse*down*. Fixed originally reported part of
11873 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
11875 * TabControl.cs : When argument index is equal or more than tab
11876 count, just ignore. Fixed bug #78395.
11878 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
11880 * Control.cs: Dispose all child controls when control is diposed (#78394)
11882 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
11884 * ColorDialog.cs: Finally it is possible to select the color with
11887 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
11889 * PrintDialog.cs: Fix typo
11891 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
11893 * PrintDialog.cs: PrintDialog is not resizable
11894 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
11895 color. Made some ToolBar drawing methods protected virtual.
11897 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
11899 * PrintDialog.cs: Implementation of the PrintDialog
11901 2006-05-12 Chris Toshok <toshok@ximian.com>
11903 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
11904 thumb, instead use MoveThumb. This has the side effect of making
11905 most of the other thumb moving machinery use MoveThumb as well.
11906 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
11907 need to actually invalidate the rectangle where the new thumb will
11909 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
11910 We force an Update() after, so it's not as fast as it could be,
11911 but at least there's zero flicker and no droppings.
11912 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
11913 (UpdateThumbPos): add another argument (dirty), which says whether
11914 or not to calculate/add dirty regions which we later invalidate.
11915 For cases where we know we're going to use MoveThumb, we pass
11916 false for this. Otherwise, pass true.
11918 2006-05-12 Jackson Harper <jackson@ximian.com>
11920 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
11923 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
11925 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
11926 and GetClipRegion methods and UserClipWontExposeParent property.
11927 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
11928 overriding UserClipWontExposeParent property, setting to false, since
11929 Win32 handles the required expose messages to draw our clipped parent
11931 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
11932 PaintEventStart to set the user clip region if set.
11934 - Now internally tracking the Region for the control since we need to
11935 store it if the handle is not yet created and only set it when it
11936 becomes created. Before setting the region forced handle creation
11937 - Added code to draw the parents underneath a user-clipped region
11938 * Hwnd.cs: Added UserClip property
11940 2006-05-12 Chris Toshok <toshok@ximian.com>
11942 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
11943 (set_Maximum): same.
11944 (set_Minimum): same.
11945 (set_SmallChange): same.
11946 (OnMouseUpSB): remove the call to refresh when releasing the
11947 thumb. We shouldn't need it.
11949 2006-05-12 Miguel de Icaza <miguel@novell.com>
11951 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
11952 AutoSize set to None, we do not need to relayout everything, we
11953 just need to invalidate the current region.
11955 (Draw): Do not draw the entire ClientArea, just redraw the
11956 clip area being passed.
11958 * MdiClient.cs: Make MdiClient constructor with the Form argument
11961 2006-05-12 Jackson Harper <jackson@ximian.com>
11963 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
11964 parents background image, but strangely not their own.
11965 - (DrawStatusBarPanel): Take into account horizontal alignment
11966 when drawing the strings and icons.
11968 2006-05-12 Mike Kestner <mkestner@novell.com>
11970 * ListBox.cs: avoid invalidations for focus when the collection is
11973 2006-05-12 Chris Toshok <toshok@ximian.com>
11975 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
11976 invalidate the entire thumb area. Call InvalidateDirty which
11977 limits the redraw to the thumb itself and surrounding pixels.
11979 * XplatUIX11.cs (ScrollWindow): optimize copying.
11981 2006-05-12 Chris Toshok <toshok@ximian.com>
11983 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
11984 Figure out the positioning/layout in a single pass instead of
11985 multiple recursive invocations. Speeds up the initial display of
11986 the data grid. Also, make many things private that were
11987 originally public but unused outside this class.
11989 2006-05-11 Jackson Harper <jackson@ximian.com>
11991 * MdiClient.cs: Improved layout code.
11993 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
11995 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
11996 not SelectedObject.
11998 2006-05-11 Chris Toshok <toshok@ximian.com>
12000 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
12001 union of that will always be {0,0,width,height}.
12003 2006-05-11 Jackson Harper <jackson@ximian.com>
12005 * Form.cs: Match MS's DefaultSize for forms (they must have
12006 changed the size in sp2).
12008 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
12010 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
12012 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
12014 * TextControl.cs : Fixed bug #78109. This incorrect position
12015 comparison caused crash on automatic line split.
12016 * TextBoxBase.cs : reduce duplicate code.
12018 2006-05-10 Jackson Harper <jackson@ximian.com>
12020 * MdiClient.cs: Active form is only sent to the back when using
12021 the Next form functionality, when a form is clicked the current
12022 active shouldn't be sent to the back.
12023 - Layout the mdi windows when the container is first made visible.
12024 * Form.cs: Give the MdiClient a ref to the containing form when we
12027 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
12029 * LinkLabel.cs : link_font could be uninitialized, so populate one
12030 before actual use. Fixed bug #78340.
12032 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
12034 * XplatUIX11.cs : clipboard format native value is IntPtr.
12037 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
12040 - Instead of showing context menus directly we send WM_CONTEXTMENU,
12041 which is passed up the parent chain by DefWndProc
12042 - We now handle WM_CONTEXTMENU to display any menu, or pass it
12043 to DefWndProc (#77956)
12044 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
12046 2006-05-10 Jackson Harper <jackson@ximian.com>
12048 * MdiClient.cs: We need to remove the controls from the mdi
12049 collection, when we close the window.
12050 * MdiWindowManager.cs: Special handling of closing mdi windows.
12051 * InternalWindowManager.cs: Make the close method virtual so the
12052 mdi window manager can handle it specially.
12054 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
12057 - Recalculate grid when the data source has changed
12058 - Matches styles provided by user from all data sources types
12059 * DataGridTableStyle.cs: For columns that provided by the user set the
12060 with the preferred value is there was unassigned.
12061 * CurrencyManager.cs: throw OnItemChanged event
12063 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
12065 * PictureBox.cs: Don't animate until handle is created. Start animation
12066 when handle is created.
12068 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
12070 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
12072 * XEventQueue.cs: We don't need to provide the extra info
12074 2006-05-10 Jackson Harper <jackson@ximian.com>
12076 * MdiClient.cs: If the mdi clients parent form has a background
12077 image set, we draw that background image for the mdi area's
12080 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
12082 * TextBoxBase.cs: Set IBeam cursor (#78347)
12084 2006-05-10 Mike Kestner <mkestner@novell.com>
12086 * ToolBar.cs: fix some text padding issues with ButtonSize
12087 calculation. Update the default size to match MS documentation.
12088 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
12089 button size. Fixes #78296.
12091 2006-05-10 Mike Kestner <mkestner@novell.com>
12093 * ListBox.cs: use is_visible for scrollbar positioning in case the
12094 control isn't on screen yet. Fix off by one with Right vs Width
12095 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
12097 2006-05-10 Jackson Harper <jackson@ximian.com>
12099 * X11Dnd.cs: Drop to a control with another control on top of it.
12100 * ToolBar.cs: Work on a copy of the buttons list, so that it can
12101 be modified in click handlers. TODO: Look for similar problems in
12104 2006-05-09 Jackson Harper <jackson@ximian.com>
12106 * Form.cs: Window managers need the old window state when setting
12108 * InternalWindowManager.cs: Allow the base mdi window manager to
12109 handle more of the MDI only stuff (like maximize buttons).
12110 * MdiWindowManager.cs: Fix some snafus in changing the window
12111 state. Add all the menu functionality, for both popup and
12113 * MdiClient.cs: When a new form is selected the currently
12114 activated form is sent to the back, this matches MS.
12115 - Implement a new method to activate the next mdi child window.
12117 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
12120 - Added new InternalCapture method to allow controls to prevent
12121 the capture behaviour on the click handlers
12122 - Switched to use InternalCapture
12124 - Using InternalCapture to prevent mouse captures from being released
12125 on mouse button release (Fixes #78100)
12126 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
12127 returns Form borders if a caption is present. (Fixes #78310)
12129 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
12131 * TreeNode.cs: Changed serialization .ctor to not require every field
12132 to be present. (#78265)
12133 * OwnerDrawPropertyBag.cs: Added serialization .ctor
12135 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
12137 * MimeIcon.cs: for is faster than foreach for strings.
12139 2006-05-05 Mike Kestner <mkestner@novell.com>
12141 * CheckedListBox.cs: update check handling code to not use selected.
12142 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
12143 behavior for visual feedback, motion response, shift/ctrl handling,
12144 and properly deal with all 4 selection modes. Updates to bounds
12145 handling logic. Add scroll wheel support. [Fixes #77842]
12147 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
12150 - Moved adding of Implicit controls into .ctor. That way, subsequent
12151 creation of the controls will not cause them to think they are
12152 toplevel windows (fixes #78200 header problem)
12153 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
12154 - Switched visibility setting of header control to use internal field
12155 to avoid triggering handle creation
12156 - Now checking if handle is created before causing a refresh when items
12157 are added (This makes us now match handle creation time with MS)
12158 * Splitter.cs: Removed loading of private splitter cursor, switched to
12159 Cursors version now that that is loading the right ones
12160 * Cursors.cs: Load proper splitter cursors from resources
12161 * Cursor.cs: Added second method of loading resource cursors for the
12162 VS.Net users amongst us
12164 2006-05-05 Mike Kestner <mkestner@novell.com>
12166 * ListView.cs: give header_control a minimum size based on the
12169 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
12171 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
12172 window seems to do that with metacity, so set that type. (#78120)
12174 2006-05-05 Mike Kestner <mkestner@novell.com>
12176 * ListViewItem.cs: fix Details mode checkbox layout bug.
12177 * ThemeWin32Classic.cs: draw a ListView column header for unused space
12178 at the end of the header, if it exists. [Fixes for #78200]
12180 2006-05-04 Jackson Harper <jackson@ximian.com>
12182 * MdiClient.cs: Add a helper property to get the container form.
12183 * MdiWindowManager.cs: We have to make sure to use the menu origin
12184 when drawing the icons and buttons, this fixes maximized window
12185 icons/buttons on win32.
12186 * InternalWindowManager.cs: Reset the restore captions when a
12187 window goes from Maximized to Minimized and vice versa. Move the
12188 DrawMaximizedButtons into the MdiWindowManager source, tool
12189 windows can't be maximized. NOTE: This could use a little
12190 refactoring if time ever permits.
12192 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
12194 * TextBox.cs: Add MWFCategoryAttributes
12195 * TextBoxBase.cs: Add MWFCategoryAttributes
12196 * Form.cs: Add MWFCategoryAttributes
12198 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
12200 * Control.cs: Add MWFCategoryAttributes
12201 * ScrollableControl.cs: Add MWFCategoryAttributes
12203 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
12205 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
12206 Divider is true. Fix a little glitch in PropertyToolBar
12209 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
12212 - Dispose: Call base.Dispose, this causes the disposed event
12213 to be fired (and probably other, more important stuff)
12214 - SetVisibleCore: Set is_visible to true after creating the
12215 window so that the window still gets created invisible (if
12216 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
12217 to generate a WM_ACTIVE message
12218 * Form.cs: Call Dispose when we want to destroy the window, instead of
12219 just destroying the handle (Dispose will do that for us)
12221 - RootWindow also needs a queue, so we can properly process the
12222 property change events from RootWindow (like Activate)
12223 - Generatic synthetic WM_ACTIVE message when the active window is
12226 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
12228 * LinkLabel.cs: Trigger a recalc of our label dimensions when
12231 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
12233 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
12234 for determining width and height (image might not be assigned if
12235 we're drawing an imagelist)
12237 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
12239 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
12240 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
12242 * Theme.cs: No longer returns hardcoded menu height, instead calls
12244 * Form.cs (OnLoad): Scaling happens before triggering Load events
12247 2006-05-01 Mike Kestner <mkestner@novell.com>
12249 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
12251 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
12253 * TextBoxBase.cs: Removed Fixme
12254 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
12256 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
12259 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
12260 the rectangle relative to the parent, considering borders. We
12261 don't really want that.
12262 - ScrollWindow: Fixed warning to be more understandable
12263 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
12264 scrollbars and scroll only the visible area
12265 * RichTextBox.cs: Removed debug output
12267 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12269 * NumericUpDown.cs (Text): Just use base
12270 * UpDownBase.cs: Ensure txtView is created before using it
12272 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12274 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
12275 casting to IntPtr to avoid 64bit overflow errors
12277 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12280 - AllowDrop: Don't force handle creation.
12281 - CreateHandle: Added call to tell driver if we're allowed to drop
12283 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
12285 * FileDialog.cs: Remember the last directory not only for the
12286 current instance but also for new FileDialog instances.
12288 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12290 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
12291 broke sending async messages
12293 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
12296 - ScrollWindow: Fixed method. We finally generate expose events again
12297 for scrolled areas. This was causing 'garbage' when scrolling
12298 textbox and other controls that used ScrollWindow
12299 - Switched from using the regular queue for paint events to the MS
12300 model of 'generating' paint events when the queue is empty.
12301 We use the new XQueueEvent.Paint subclass to store which windows
12303 - AddExpose now takes the x/y/width/height of the exposed area
12304 and inserts the window into the paint queue if not already there
12305 - InvalidateWholeWindow: Switched to use new AddExpose method
12306 - UpdateMessageQueue: Added which queue to monitor for paint events
12307 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
12308 the unlikely case nothing above handles it. We reset the expose
12309 pending states to get them off the queue.
12310 - GetMessage: Now pulls a paint event if no other events are in the
12312 - Invalidate: Switched to new AddExpose method
12313 - PeekMessage: Updated to understand pending paint events
12314 - UpdateWindow: Fixed logic bug. We were only updating if the window
12315 didn't need updating. Also switched to sending WM_PAINT directly,
12317 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
12318 and random access Remove(). The random access is needed to handle
12319 UpdateWindow() where a WM_PAINT is sent directly without accessing
12321 * ScrollBar.cs: Added Update() calls to cause immediate updates to
12322 allow for better feedback when scrolling. Scrollbars are small and
12323 the immediate update should make it 'feel' more responsive without
12324 slowing things down. ScrollBar still needs it's invaliate logic
12325 updated to not always invalidate the whole bar on certain changes.
12327 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12330 (BackColor): if the control does not support a transparent background,
12331 return the default backcolor when the parent backcolor is transparent.
12333 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
12335 * Application.cs: Updated to new StartLoop/GetMessage API
12336 * RichTextBox.cs: Provide some output on RTF parsing errors
12337 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
12338 new queue_id argument to GetMessage and PeekMessage to allow faster
12339 handling of per-thread queues in drivers.
12340 * Hwnd.cs: Added Queue tracking and property
12341 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
12342 * XEventQueue.cs: Added thread trackingA
12343 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
12345 - Implemented new per-thread queue
12346 - GetMessage: Fixed return/break behaviour on several cases. We were
12347 returning stale messages in some cases, instead of just processing
12350 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
12352 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
12354 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
12356 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
12357 fixed off-by-one comparisons between Width/Height and Right/Bottom.
12359 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
12361 * PropertyGridView.cs: Fix drop down width.
12363 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
12365 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
12366 a mess in DrawToolBar, so I removed one of them.
12368 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
12370 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
12371 needed (clip). Otherwise we get artifacts.
12373 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
12375 * FixedSizeTextBox.cs: Added constructor to allow specifying which
12377 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
12378 and switched FixedSizeTextBox to only be fixed vertical (#78116)
12379 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
12380 if it matches the scale base font (avoids unneeded scaling)
12382 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
12384 * X11DesktopColors.cs: One gtk_init_check should be enough
12386 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
12388 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
12391 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
12394 - Generate OnTextChanged for Backspace even if we're only deleting
12395 the current selection
12396 - When setting the Text property, only select all text if the
12397 control does not have focus when it is being set. Otherwise
12398 just place the cursor at the beginning of the control
12400 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
12402 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
12403 Added a little helper to draw PropertyGrid ToolBar with a different
12404 border and a different BackColor.
12405 * PropertyGrid.cs: Some background parts didn't get painted with the
12406 correct background color. Added a class that helps us to draw the
12407 correct border for PropertyGridView and a class that helps us to
12408 draw ToolBars with a different backcolor
12409 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
12411 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
12413 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
12414 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
12416 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
12418 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
12419 into the palette entries. Also, since we're working on a copy
12420 we needed to copy the palette back onto the bitmap.
12421 * Cursor.cs: Same fix as XplatUIWin32.cs.
12423 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
12425 * ImageListStreamer.cs: Need to read the var (or we're off)
12427 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
12429 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
12430 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
12431 TextBoxBase.cs: Unused var fixes
12432 * AxHost.cs: Small 2.0 fix
12433 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
12434 as it seems that is what at least Metacity expects. This will make
12435 icons show up on 64bit platforms. We still have some 64bit size
12436 issues, though, since the startup app window size still won't match.
12438 2006-04-25 Mike Kestner <mkestner@novell.com>
12440 * *.cs: cleanup newly reported exception var unused warnings.
12442 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
12444 * ThemeWin32Classic.cs: Button image alignment now matches exactly
12447 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
12449 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
12450 image. The image position is always the same, no matter if the
12451 button is pressed or not.
12453 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
12455 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
12456 selection and set the correct filename for SaveFileDialog.
12457 Patch by Emery Conrad.
12459 2006-04-24 Mike Kestner <mkestner@novell.com>
12461 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
12462 check for item.X outside the ClientRect instead of item.Y. Fixes
12465 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12467 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
12468 trust that value blindly and do some sanity check. Fixes bug #77814.
12470 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12472 * ImageListStreamer.cs: save the mask as a 1bpp image.
12474 2006-04-21 Mike Kestner <mkestner@novell.com>
12476 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
12477 pass Checked and Indeterminate to the Theme Engine. Improve
12478 encapsulation with ListBox.
12479 * ListBox.cs: Keep a StringFormat instead of calculating it every item
12480 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
12481 nested types. Move all CheckState functionality to CheckedListBox.
12482 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
12483 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
12484 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
12485 single base list. Fix scrollbar sizing and placement to mirror MS.
12486 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
12488 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
12489 for CheckedListBox by using new DrawItemState info. Center the
12490 checkboxes on the items. Use new StringFormat property.
12492 2006-04-18 Jackson Harper <jackson@ximian.com>
12494 * Form.cs: MdiChildren don't do default locations the same way as
12495 regular forms. This prevents a crash when trying to position the
12498 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
12500 * PropertyGridTextBox.cs: Formatting, copyright
12501 * PropertiesTab.cs: Formatting
12502 * PropertyGrid.cs: Formatting
12503 * PropertyGridView.cs: Formatting, fix drop down, enabled double
12504 click toggling of values
12506 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
12508 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
12509 * Control.cs (.ctor): verify_thread_handle is static, don't reset
12510 every time a control is created
12511 * Application.cs: Removed obsolete EnableRTLMirroring method
12513 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
12515 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
12516 SelectedIndex to -1. Fixes bug #78121.
12518 2006-04-17 Jackson Harper <jackson@ximian.com>
12520 * Binding.cs: Handle null values for Current and BindingContext.
12521 This occurs when binding is a little delayed.
12522 * CurrencyManager.cs: return null for Current when there are no
12524 - Hookup to the listchanged event on the DataView and update
12525 bindings when the list is changed. This fixes late binding of
12528 2006-04-17 Jackson Harper <jackson@ximian.com>
12531 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
12534 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
12536 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
12538 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
12539 with the correct ButtonState
12541 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
12543 * XplatUIX11.cs: Improved distinguishing between window types to
12544 tell the WM a type closer to what the app wants (Fixes #78107)
12546 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
12548 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
12551 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
12553 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
12554 drawing code to reflect the size grip changes
12556 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12558 * ImageListStreamer.cs: fix handling of the mask that follows the main
12559 bitmap when deserializing and serialize it properly. The generated mask
12560 should better be a 1bpp image, but I'll do that later.
12562 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
12564 * FileDialog.cs: Show something in the DirComboBox on *nix if the
12565 path doesn't fit into some of our Current.Places
12567 2006-04-13 Jackson Harper <jackson@ximian.com>
12569 * ComboBox.cs: Use borders instead of drawing our own decorations,
12570 try to obey correct rules for heights.
12573 * ThemeClearLooks.cs:
12574 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
12575 this is now handled by borders.
12576 - Remove unused DrawListBoxDecorationSize method.
12578 2006-04-13 Mike Kestner <mkestner@novell.com>
12580 * MenuAPI.cs: null guarding for the disbled click check fixes crash
12583 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
12585 * ThemeWin32Classic.cs:
12586 - Fixed CPDrawStringDisabled
12587 - Corrected drawing of disabled menu items
12588 - Fixed drawing of disabled radio buttons (bug #78095)
12589 - Draw check in a disabled CheckBox with color ControlDark
12591 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12593 * Form.cs: Use the provided width when calculating the menu size;
12594 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
12595 and ClientSize.Width won't be updated yet
12596 * Application.cs: Use Visible instead of Show() to make form visible,
12597 this way we create the handle later and menusize is considered
12599 2006-04-12 Mike Kestner <mkestner@novell.com>
12601 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
12604 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12606 * TextBox.cs: Implemented context menu
12608 2006-04-12 Mike Kestner <mkestner@novell.com>
12610 * ListView.cs: implement box selection. fixes #77838.
12611 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
12613 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12615 * XplatUIX11.cs: Added setting of window type when transient window
12616 is created (metacity would move it otherwise)
12617 * X11Structs.cs: Added WINDOW_TYPE atoms
12618 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
12619 background (the control is Opaque but still wants transparent
12622 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12624 * Control.cs: Added OnPaintBackgroundInternal to allow controls
12625 that set Opaque but don't mean it (like all ButtonBase-derived
12626 controls) to still draw their background
12627 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
12630 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12632 * Control.cs (PaintControlBackground): Set the graphics object
12633 on our PaintEvent to null to prevent it from being disposed
12634 when the PaintEvent gets disposed
12636 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
12638 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
12639 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
12641 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
12644 - Added transparency check to BackColor property. Transparent
12645 backgrounds are only allowed if the control styles permit it
12646 - Added recursive painting of parent control background and
12647 foreground if a control with a transparent backcolor is drawn
12648 (Thanks to Tim Ringenback for providing his 'hack' as a base
12649 for this patch) Fixes #77985 and #78026.
12650 - Added Opaque style check before calling OnPaintBackground, no
12651 need to draw the background if the control is opaque
12652 - Removed ControlAccessibleObject owner variable (inherited from
12653 base, no need to define again)
12654 - Added some documentation links explaining the drawing events
12657 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12659 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
12660 that the affected control is the located at the left border of our
12661 parent (Fixes #77936)
12663 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12665 * TextBoxBase.cs: When rendering disabled or readonly controls,
12666 draw the background with 'Control' instead of 'Window' color as
12667 long as the user hasn't specifically set a color
12669 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12671 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
12672 since that won't be updated if the user types text (only if it's
12673 programatically set)
12675 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12677 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
12678 layout changes do to app-triggered resizes will have the proper
12679 display rectangle for layout
12681 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
12683 * ThemeWin32Classic.cs:
12684 - Make use of the SystemBrushes and SystemPens wherever possible
12685 - Corrected some highlight colors
12686 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
12688 * Theme.cs: Added Empty field to CPColor struct
12690 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
12692 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
12693 is displayed when calculating the display rectangle. Thanks to Mike
12694 for teaching me the err of my ways.
12696 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
12698 * ScrollableControl.cs:
12699 - Rewrote DisplayRectangle code, now returning the proper x/y coords
12700 (instead of 0,0) and we now return the real width/height instead of
12701 just the clientrectangle, adjusted for padding. The rectangle is
12702 now cached and created by the new CalculateDisplayRectangle method.
12703 - Created new CalculateDisplayRectange method, which basically does
12704 what get_DisplayRectangle() did originally, but now using the
12705 right edge instead of DisplayRectangle to determine the size of
12707 - get_Canvas(): Fixed it to properly calculate canvas for
12708 right/bottom controls which seem to be placed to the right/bottom
12709 of any controls that have a fixed location
12710 - Removed TODO that's taken care of
12711 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
12712 and SetDisplayRectLocation according to new MSDN2 docs
12713 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
12714 event when that is called, this is added for compatibility
12715 - ScrollControlIntoView(): Implemented.
12716 - Switched scrollbars to be implicit, they shouldn't be selectable
12717 * ContainerControl: Now that ScrollControlIntoView is implemented, we
12718 call it when the active control is set/changed
12719 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
12720 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
12721 implicit_control variable (used for native Win32 message generation)
12722 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
12723 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
12724 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
12725 * XplatUIStructs.cs: Added ScrollBarCommands enum
12727 2006-04-10 Jackson Harper <jackson@ximian.com>
12730 * CheckedListBox.cs:
12737 * PrintPreviewControl.cs:
12743 * UpDownBase.cs: Fixup base event overrides.
12745 2006-04-06 Mike Kestner <mkestner@novell.com>
12747 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
12748 all user-initiated value changes to min <= value <= max-thumbsz+1.
12749 (set_Value): check for vert/horiz when calculating new thumb position.
12750 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
12752 (OnMouseMoveSB): refactor the thumb dragging code and refine
12753 invalidation logic to reduce flicker.
12754 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
12755 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
12756 (UpdateThumbPosition): small code readability cleanup
12758 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
12760 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
12763 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
12765 * ThemeNice.cs: Use a better graphics effect when a button is pressed
12767 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
12769 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
12770 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
12771 This dramatically reduces the number of Pen.Dispose calls.
12772 Where possible call ResPool methods only once instead of calling it
12773 over and over again (for example for the same color).
12775 2006-04-06 Mike Kestner <mkestner@novell.com>
12777 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
12778 Also remove an unused private field on the collection. Fixes #77972.
12780 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
12782 * ThemeNice.cs: Added ToolBar drawing code
12784 2006-04-06 Mike Kestner <mkestner@novell.com>
12786 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
12787 I'm assuming that means we need to look up the toplevel for the
12788 provided control. Fixes the crash trace in #77911 but exposes another
12789 crash in some strange reflection usage in NDocGui.
12791 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
12793 * ThemeNice.cs: Gave it a little silver touch and added Images
12795 * FontDialog.cs: FontDialog is not resizable
12796 * FileDialg.cs: Added SizeGripStyle.Show
12798 2006-04-05 Jackson Harper <jackson@ximian.com>
12800 * KeyboardLayouts.cs: Remove warning.
12802 2006-04-05 Jackson Harper <jackson@ximian.com>
12804 * Control.cs: Enable OnPaintInternal so we can use it for drawing
12805 all of our controls instead of Paint +=.
12820 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
12821 use OnPaintInternal. Remove Width/Height and Visible checks in
12822 paint handler, this is done at a higher level now.
12823 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
12824 * PaintEventArgs.cs: Add a handled flag so controls that don't
12825 want anymore painting after OnPaintInternal can make sure OnPaint
12828 2006-04-05 Mike Kestner <mkestner@novell.com>
12830 * Form.cs: fix the menu WndProc hacks to respect the native enabled
12831 state of the form, so that we don't process events when Modal dialogs
12832 are up. Fixes #77922.
12834 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
12836 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
12839 2006-04-05 Mike Kestner <mkestner@novell.com>
12841 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
12843 2006-04-05 Mike Kestner <mkestner@novell.com>
12845 * ListView.cs (HeaderMouseMove): null guarding for the over column
12846 when setting up the drag_to_index. Fixes #78015.
12848 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
12850 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
12851 in the taskbar. Transient windows seem to accomplish that.
12853 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
12856 - Re-enabled CreateParams.X/Y code for FormStartPosition
12857 - Added code for manual placement when creating the Control
12858 - Incomplete patch to treat MDI forms differently when
12859 setting the ClientSizeCore. (Still need to figure out handling
12862 - When we're explicitly setting the X/Y position of a non-Child
12863 window, let the WM know. Metacity really wants this.
12865 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
12867 * ThemeNice.cs: Added CPDrawButton
12869 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
12871 * ThemeNice.cs: Changed the color for focused buttons and activated
12872 the arrows for small scroll buttons.
12874 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
12876 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
12877 anymore. Changed some method modifiers to protected (virtual)
12878 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
12880 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
12881 Updated drawing of menus, buttons and progressbars; added
12884 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12886 * ImageListStreamer.cs: implemented serialization/deserialization
12889 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
12891 * ThemeWin32Classic.cs:
12892 - Removed all the DrawFrameControl stuff; CPDrawButton,
12893 CPDrawCheckBox and CPDrawRadioButton are now handled directly
12895 - Updated and corrected the drawing code of CPDrawButton,
12896 CPDrawCheckBox and CPDrawRadioButton to better match ms
12897 - Updated theme checkbox and radiobutton code to use the CP*
12900 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
12902 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
12905 2006-03-31 Jackson Harper <jackson@ximian.com>
12907 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
12909 * UpDownBase.cs: Don't CreateGraphics manually, use a
12910 Refresh. Ideally we would invalidate the correct areas here.
12912 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
12915 - We now track the mapping state of windows. If a window (or
12916 one of it's parents) is not mapped we no longer permit
12917 WM_PAINT messages to be generated since we'd otherwise get
12918 lots of BadMatch X errors. Jackson did all the work figuring
12920 - Destroying the caret if the window it's contained in is
12921 destroyed. Can't use regular DestroyCaret method since it
12922 might fall into a drawing function (trying to remove the
12923 caret) and with that generate new BadMatch errors. Again,
12924 Jackson tracked this down.
12925 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
12926 make sure we send the messages to all windows. (The old code
12927 would send the WM_DESTROY to the window, and then all child
12928 windows would be 'gone' because the WM_DESTROY handle lookup
12929 would no longer find the destroyed window)
12930 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
12931 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
12933 2006-03-31 Jackson Harper <jackson@ximian.com>
12935 * ScrollableControl.cs: Dont recalc if we are not visible.
12937 2006-03-31 Mike Kestner <mkestner@novell.com>
12939 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
12940 the visibility branch.
12942 2006-03-31 Jackson Harper <jackson@ximian.com>
12944 * ScrollBar.cs: Cap values when incrementing/decrementing.
12946 2006-03-31 Mike Kestner <mkestner@novell.com>
12948 * MenuAPI.cs: setup menu.tracker for popup/context menus.
12949 * ToolTip.cs: guard against timer expirations with no active control.
12950 Not sure why it happened.
12952 2006-03-31 Mike Kestner <mkestner@novell.com>
12954 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
12956 * ToolTip.cs: Position the tooltip based on where the cursor is at
12957 popup time, not at MouseEnter time. Add a Down state so that we don't
12958 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
12959 positioning offset. Lookup DisplaySize at positioning time, since it
12960 can theoretically change during invocation.
12961 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
12962 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
12964 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
12966 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
12967 Fixes behaviour when the Text property of the box is String.Empty
12969 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
12971 * XplatUIX11.cs: Only send mouseleave for our client windows, not
12972 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
12975 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
12977 * FileDialog.cs: Visual enhancement for the popup buttons in
12980 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
12982 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
12985 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
12987 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
12988 highlighted menu items to match ms
12990 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
12992 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
12994 2006-03-30 Mike Kestner <mkestner@novell.com>
12996 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
12997 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
12998 go active to account for HotLight to Selected transition.
12999 * MenuItem.cs: add internal Selected prop. Fill out the Status
13000 property by calculating it from item info. Add HotLight,
13001 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
13003 2006-03-30 Mike Kestner <mkestner@novell.com>
13005 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
13007 2006-03-29 Jackson Harper <jackson@ximian.com>
13009 * Form.cs: Implement TODO.
13011 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
13013 * PrintPreviewDialog.cs: Implemented missing methods and events; still
13014 missing proper dialog setup in the constructor
13016 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
13018 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
13020 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
13021 - Fixed ResetBindings and removed TODO
13022 - Added check for cross-thread calls to get_Handle()
13023 - Added Marshaller attribute for set_Font to satisfy class status
13024 * FontDialog.cs: Removed TODOs that seemed implemented
13025 * UpDownBase.cs: Removed unneeded TODO and Fixme
13026 * MessageBox.cs: Implemented support for Default button and removed TODO
13027 * FileDialog.cs: Removed obsolete TODO
13028 * DomainUpDown.cs: Removed obsolete TODO
13029 * ButtonBase.cs: Removed obsolete TODO
13030 * XplatUIWin32.cs: Removed obsolete TODO
13032 - Removed obsolete TODO
13033 - Calling CheckAcceptButton when the acceptbutton is changed to allow
13034 internal status updates
13035 - Making sure the active control is selected when the control is created
13036 * CurrencyManager.cs: Removed obsolete TODO
13038 2006-03-29 Mike Kestner <mkestner@novell.com>
13040 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
13041 of PrintPreviewDialog and RichTextBox.
13043 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
13045 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
13046 DarkDark, Light and LightLight colors for a specific color
13047 * ThemeWin32Classic.cs:
13048 - Use Button drawing code to draw RadioButtons and CheckBoxes with
13049 Appearance = Button
13050 - Make use of the new ResPool helper CPColor
13051 - Draw ProgressBar and StatusBar with correct 3D borders
13053 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
13055 * ColorDialog.cs: Return selected color. Fixes bug #77940.
13057 2006-03-28 Mike Kestner <mkestner@novell.com>
13059 * ListView.cs: fix Icon layout to plan for scrollbar widths when
13060 calculating col/row counts.
13062 2006-03-28 Mike Kestner <mkestner@novell.com>
13068 switch to explicit interface method implementation for some methods
13069 corcompare identifies as inconsistent with MS.
13071 2006-03-28 Mike Kestner <mkestner@novell.com>
13075 add a few missing methods from the class status output.
13077 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
13079 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
13082 2006-03-28 Mike Kestner <mkestner@novell.com>
13084 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
13086 2006-03-27 Mike Kestner <mkestner@novell.com>
13088 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
13089 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
13091 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
13093 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
13095 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
13097 * ThemeWin32Classic.cs:
13098 - GroupBox: Inserted a little gap between the text and the lines
13100 - Made the code in CPDrawBorder3D more readable
13101 - Corrected the drawing location of the up and down arrows in
13104 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
13106 * ControlPaint.cs: Corrected line widths in DrawBorder for
13107 ButtonBorderStyle Inset and Outset
13109 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
13111 * ThemeWin32Classic.cs:
13112 - Rewrote the totally broken CPDrawBorder3D method. That was
13113 one of the main problems for the terrific ThemeWin32Classic
13115 - Updated and corrected Button drawing
13116 - Correct the dimensions of the SizeGrip to match ms ones
13117 - Removed a small drawing glitch in DrawComboBoxEditDecorations
13118 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
13119 Border3DStyle.Sunken to match ms.
13121 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
13123 * ThemeWin32Classic.cs: First small part of the "de-uglify
13124 ThemeWin32Classic" effort, SizeGrip
13126 2006-03-24 Jackson Harper <jackson@ximian.com>
13128 * XplatUIX11.cs: Give a max idle time of one second, this matches
13129 MS and forces an Idle event every second when there are no other
13130 events in the queue.
13132 2006-03-24 Mike Kestner <mkestner@novell.com>
13134 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
13135 * ListView.Item.cs: fix layout issues with null image lists and images
13136 smaller than checkbox size.
13137 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
13138 mode like MS does. It's weird, but consistent. ;-)
13141 2006-03-24 Mike Kestner <mkestner@novell.com>
13143 * ListView.cs: Scroll wheel support for the item control. Fixes
13146 2006-03-23 Jackson Harper <jackson@ximian.com>
13148 * ScrollableControl.cs: Special case negative sized areas, not
13150 * MonthCalendar.cs: Save the rect of the clicked date so we can
13151 use it for invalidation.
13152 - Try to cut down on the number of invalidates
13153 - Invalidate the rect the mouse is over and was over when moving
13154 the mouse, so we get the focus box following the cursor.
13156 2006-03-23 Mike Kestner <mkestner@novell.com>
13158 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
13159 focus rectangle drawing. Fixes #77835.
13161 2006-03-23 Mike Kestner <mkestner@novell.com>
13163 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
13164 the if and else if and reverting back to the original == check on the
13167 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
13169 * FontDialog.cs: Update the example panel if the selected index of
13170 the fontListBox changes.
13172 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
13174 * FileDialog.cs: Make FileDialog remember which directory it was in
13175 last in the same execution.
13177 2006-03-22 Mike Kestner <mkestner@novell.com>
13179 * FileDialog.cs: make the DropDownMenu on the toolbar display
13180 RadioChecks since they are mutually exclusive and that's what MS does.
13182 2006-03-22 Mike Kestner <mkestner@novell.com>
13184 * Theme.cs: add Color param to CPDrawMenuGlyph.
13185 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
13186 checks and radio marks and arrows are visible on highlighted items.
13187 * ControlPaint.cs: update to use new Theme signature.
13189 2006-03-22 Mike Kestner <mkestner@novell.com>
13191 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
13192 is active. Fixes #77870.
13194 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
13196 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
13197 to be focused/selected after startup
13199 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
13202 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
13203 CustomColors and ShowHelp properties
13204 - Some internal rewrites to get better results when using the
13207 2006-03-22 Mike Kestner <mkestner@novell.com>
13209 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
13210 HoverSelection. Fixes #77836.
13212 2006-03-22 Mike Kestner <mkestner@novell.com>
13214 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
13215 ToggleButtons. (De)Sensitize the Back button around a stack count of
13216 1, not 0. Update ButtonSize based on a pixel count of the win32
13217 control. Adjust the toolbar size/location for new button size.
13219 2006-03-22 Jackson Harper <jackson@ximian.com>
13221 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
13223 * ScrollBar.cs: When doing increments and decrements we need to
13224 set the Value property so that ValueChanged gets raised. A
13225 possible optimization here would be to make an internal SetValue
13226 that doesn't invalidate immediately.
13227 * ToolTip.cs: Tooltips get added to their container (when
13228 supplied) so they get disposed when the container is disposed.
13229 - Don't create tooltips for String.Empty. This prevents all these
13230 little 2-3 pixel windows from showing up when running nunit-gui
13231 and driving me mad.
13232 * Form.cs: Don't set topmost when setting the owner if the handles
13233 haven't been created yet. The topmost set will happen when the
13234 handles are created.
13236 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
13239 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
13240 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
13241 visible (to allow them to recalculate their sizes)
13243 2006-03-21 Mike Kestner <mkestner@novell.com>
13245 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
13246 methods. Removed a ton of redundant code. Still not really happy with
13247 the border rendering, but I think that's mainly because of the
13248 ControlDarkDark being black instead of a dark grey. Depending on how
13249 close we want to be, we might want to revisit those color choices.
13250 Among the new features added during the refactor were DropDownArrow
13251 pressed rendering, Disabled image rendering. Proper flat appearance
13252 boundary rendering. Removed the Divider and Wrapping dividers since I
13253 can't figure out any combination of themes and conditions to make the
13254 MS control draw a horizontal line on a toolbar despite what the
13255 Divider property docs indicate.
13256 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
13257 conditions and incorrect layout. Updated to coding standard.
13258 * ToolBarButton.cs: refactored layout and positioning code from
13259 ToolBar to here. Invalidate wherever possible instead of forcing
13260 redraws of the whole toolbar.
13261 (Known remaining issues: explicit ButtonSize smaller than provided
13264 2006-03-21 Mike Kestner <mkestner@novell.com>
13266 * ContextMenu.cs (Show): use the position parameter instead of just
13267 showing at the MousePosition.
13269 2006-03-21 Jackson Harper <jackson@ximian.com>
13271 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
13272 control handle this.
13273 * TreeNodeCollection.cs: If we are clearing the root node we need
13274 to reset top_node so calcs can still happen.
13275 * ThemeWin32Classic.cs: This is a Flags so we need to check
13278 2006-03-21 Jackson Harper <jackson@ximian.com>
13280 * DataGrid.cs: Create columns when the binding context has been
13282 * X11Structs.cs: Keysyms are uints.
13283 - Add size to fix build.
13285 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
13287 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13289 - Added ResetMouseHover method to allow controls to retrigger
13290 hovering if they need it more than once
13291 - Implemented MouseHoverTime and MouseHoverSize properties
13292 * Timer.cs: Start() must reset the interval
13293 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
13296 2006-03-21 Jackson Harper <jackson@ximian.com>
13298 * X11Keyboard.cs: improved layout detection. Move the nonchar
13299 tables into this file.
13300 * KeyboardLayouts.cs: Move the tables into resource files.
13302 2006-03-21 Mike Kestner <mkestner@novell.com>
13304 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
13306 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
13308 * Mime.cs: Various speed optimizations. Looking up mime types
13309 is now 2 times faster than before
13311 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
13313 * CreateParams.cs: Added internal menu field
13315 - Switched call order for UpdateBounds; now we always call
13316 the one that also takes ClientSize, and we're calculating the
13317 client size via driver method in the others. The previous
13318 method of tracking client size by difference wasn't working
13319 for forms where even the starting client size wouldn't match
13320 the overall form size (due to borders) (Part of fix for #77729)
13321 - CreateParams(): Do not use parent.Handle unless the handle is
13322 already created. Causes havoc with Nexxia and throws off our
13323 creation of controls
13325 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
13326 - Switched handling of ConfigureNotify over to new PerformNCCalc
13327 method (consolidates code)
13328 - Changed RequestNCRecalc to use new PerformNCCalc method
13329 - Added calls to RequestNCRecalc when menus and borders are changed
13330 to allow app to set NC size. (Part of fix for #77729) This matches
13331 when MS send a WM_NCRECALC on Win32 windows.
13332 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
13333 (Part of fix for #77729). This matches what MS does, they also
13334 send that message when the form is made visible.
13335 - XException.GetMessage: Improved usability of X errors by including
13336 a translation of the window into Hwnd and Control class
13337 - Improved debug info for window creation, reparenting and destruction
13338 - Created helper method WindowIsMapped() [Currently not used]
13339 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
13341 - CreateParams: Now setting our menu on the new internal menu field
13342 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
13343 avoid calculating the same property twice
13345 - Improved usability of ToString() for debugging purposes
13346 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
13347 determine the height of the menu, instead of just the font. This
13348 required to also create a graphics context and to keep a bmp
13349 around (for performance reasons)
13351 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
13353 * MenuAPI.cs: Added OnMouseUp method
13355 - Now remembering the requested client size, avoids size errors
13356 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
13357 instead of base if the menu is active. This is required due to
13358 control now capturing and releasing on down/up and it would
13359 prematurely release our menu capture
13361 2006-03-17 Jackson Harper <jackson@ximian.com>
13363 * KeyboardLayouts.cs: Add the czech layouts.
13365 2006-03-16 Jackson Harper <jackson@ximian.com>
13367 * Control.cs: Use the viewport space when sizing not the controls
13368 client size, so things like ScrollableControl that effect the
13369 viewport size (when scrollbars are added) are computed correctly.
13370 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
13372 - Handle creating BindingManagers for null data sources.
13373 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
13374 source, otherwise when rows are added they are added to the 'fake'
13375 datasource and we will crash when trying to set the position in
13377 - Use Implicit scrollbars on the datagrid so they arent
13380 2006-03-16 Jackson Harper <jackson@ximian.com>
13383 * InternalWindowManager.cs:
13384 * MdiWindowManager.cs:
13385 * X11Keyboard.cs: I really want Mike to love me again (fix
13386 compiler warnings).
13388 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
13391 - OnMouseDown: Switch to editing mode when clicking on the cell
13392 even if we're clicking on the cell that's currently
13394 - ProcessGridKey: Left/Right now wrap like MS.Net does
13395 - ProcessGridKey: Tab now knows to add a new row when tab is
13396 pressed in the cell of the last column of the
13398 - ProcessGridKey: Enter now adds another row if pressed in the last
13399 row and selectes the new row, same column cell
13400 - ProcessGridKey: Home/End navigate columns, not rows, like
13401 originally implemented
13402 - Broke ProcessKeyPreview code out into an extra Internal method
13403 so it can be called from the edit code
13404 * DataGridTextBox.cs (ProcessKeyMessage):
13405 - Switched to accept Tab keypresses
13406 - Added F2 handling to allow jumping to the end of the edited cell
13407 - Added logic to allow moving caret left/right inside edited cell
13408 and making the edited cell jump when the caret hits cell borders
13409 - Tab and Enter are now passed to the datagrid after being handled
13411 - Removed capture code now that Control handles it
13412 - set_SelectionStart now ensures caret is visible
13414 2006-03-16 Jackson Harper <jackson@ximian.com>
13416 * TrackBar.cs: Debackwards the increment/decrement for handling
13417 mouse clicks on the bar with vertical trackbars.
13418 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
13419 bottom to match MS.
13421 2006-03-16 Mike Kestner <mkestner@novell.com>
13423 * ListView.cs: make shift/ctrl keyboard and mouse selection
13424 consistent with the MS control. Fix a bug in
13425 SelectedListViewItemCollection.Clear that was pissing me off for the
13426 better part of a day because the collection was being altered
13427 underneath us as we walked the list.
13429 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
13431 * Control.cs: Not sure how we could miss this so long, but it seems
13432 that MS.Net has Capture set all the way from before calling
13433 OnMouseDown through sending the mouse events until after
13434 OnMouseUp. This will fix DataGrid's selection being set to end
13435 at the location of the MouseUp.
13437 2006-03-15 Jackson Harper <jackson@ximian.com>
13439 * BindingContext.cs: Check the binding after its added so that it
13440 can initialize the binding managers and hookup to events.
13441 * Binding.cs: Data members seem to sometimes include rows/cols in
13442 the format Row.Column we now take this into account.
13443 - Hookup to the position changed event so we can update the
13444 control when the position has changed in the data set.
13445 * CurrencyManager.cs: Take into account the row/col naming
13446 convention when creating dataset tables.
13447 * BindingContext.cs: Using a newer better way of storing
13448 datasource/datamember pairs. Hopefully this better matches MS for
13449 looking up binding managers.
13452 2006-03-15 Jackson Harper <jackson@ximian.com>
13454 * BindingContext.cs: The currency manager needs the data member
13455 name, if the member is a data set we use the name to find the
13457 * CurrencyManager.cs: When creating the list prefer an IList over
13459 - Attempt to create a DataTable from a DataSet (TODO: might need
13460 some better error checking here, although MS doesn't seem to have much)
13461 - If we have a DataTable create a view and use it as our list.
13463 2006-03-15 Mike Kestner <mkestner@novell.com>
13465 * ListView.cs: keep a matrix of the icon mode layout to facilitate
13466 keyboard navigation. Support Up/Down/Left/Right selection correctly
13467 for all 4 View modes.
13468 * ListViewItem.cs: add internal row/col fields for icon layouts.
13470 2006-03-15 Jackson Harper <jackson@ximian.com>
13472 * TabControl.cs: Redraw the tabs when we resize so their newly
13473 calculated sizes are drawn on screen.
13474 * X11Keyboard.cs: Begginnings of XIM support. We also now support
13475 composite characters.
13476 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
13477 - filter events so that composite characters can be created
13479 * X11Structs.cs: Add XIMProperties enum.
13481 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13483 * Control.cs (BringToFront, SendToBack): Don't use window or handle
13484 unless it's created
13486 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13488 * Control.cs (PerformLayout): We don't need to consider visiblity
13489 for anchoring, only for docking. This fixes 'whacky' alignment
13490 in listbox and other controls that use implicit scrollbars after
13491 the previous PerformLayout patch
13492 * ListBox.cs: Switched to use implicit scrollbars
13494 2006-03-14 Mike Kestner <mkestner@novell.com>
13498 - chain up the "new event" overrides to base and use
13499 OnEvent to raise them. Part of fix for bug #76509.
13501 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
13503 * FileDialog.cs: Do not select an item in the parent directory
13506 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13508 * Control.cs (PerformLayout): It would seem that we considered
13509 invisible windows for our layout. Not quite the right thing
13510 to do. Now we don't any longer, thereby fixing bug #76889.
13512 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
13514 * Control.cs (CanFocus): I goofed. A control can have focus
13515 even though it's not selectable. Made it match MS docs.
13517 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13519 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
13520 center by default (fixes #76895)
13521 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
13522 all uses of Border3DSides.All with the explicit ORd together
13523 Left|Right|Top|Bottom because I assume that nobody was aware
13524 that All also implies a center fill. Most places I checked had
13525 a fill right above.
13526 * ProgressBarStyle.cs: Added
13528 2006-03-13 Mike Kestner <mkestner@novell.com>
13530 * ListView.cs: fix breakage in drag shadow header positioning
13531 from Peter's csc compilation fix.
13533 2006-03-13 Mike Kestner <mkestner@novell.com>
13535 * ListView.cs: fix NRE produced by backspacing twice in a focused
13538 2006-03-13 Mike Kestner <mkestner@novell.com>
13540 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
13542 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13544 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
13546 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
13547 the allowed size before making programmatic size changes
13549 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13551 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
13552 set, metacity is broken and will still use the emty sizes in
13553 the struct. (Fix for #77089)
13555 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
13557 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
13558 WindowExStyles and marked both enums as Flags
13559 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
13560 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
13561 to match WindowStyles split
13563 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
13564 - Updated to match WindowStyles split
13566 - Fixed FosterParent creation, was using ExStyle on the Style field
13567 (This should help with Popup focus issues)
13568 - Updated to match WindowStyles split
13570 2006-03-13 Jackson Harper <jackson@ximian.com>
13572 * MdiWindowManager.cs: Use the system menu height. Fixes some
13573 strange sizing issues.
13575 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
13577 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
13579 - Scroll to caret after inserting text (#77672)
13580 - Make scroll range one pixel higher, fixes off-by-one error (and
13581 makes underlines visible on the last line)
13583 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
13585 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
13586 the keyboard state from being stuck with keys in 'pressed' state when
13587 focus is switched away via keyboard
13588 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
13589 reset the keyboard if no X11 KeyUp events are expected to come
13590 * X11Structs.cs: Switched type of Visible to bool to match driver
13592 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
13595 - Switched caret to be just 1 pixel wide, matches MS and looks less
13597 - Moved caret display 1 pixel down from the top of the control
13599 - InsertCharAtCharet: Update the selection start if moving the caret
13600 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
13601 - No longer always creating the caret when the caret methods are
13602 called. Only the actual ShowCaret/HideCaret will do that now
13603 - Only setting caret visible if the owner control has focus
13604 - UpdateView: Added invalidation-shortcut logic for center and right
13605 aligned text. Previously we'd update all according to the left
13606 logic which caused drawing errors. Also fixed height of invalidated
13607 areas, now properly invalidating the whole area (was off-by-one)
13608 - owner_HandleCreated: Always generate the document when the
13609 handle is created; this ensures that
13611 - Fixed situation where caret would disappear under the right
13612 window border, also improved scrolling behaviour on left-
13614 - Fixed right-aligned textboxes to have a border to the
13615 right instead of the caret being under the right border
13617 - Switched from 'nested' to simple visible/not visible tracking
13618 for caret (part of fix for #77671)
13619 - No longer passing through translated FocusIn/FocusOut messages
13620 since we were notifying too often and the wrong windows. Instead
13621 we just notify our focussed window of receiving or loosing focus
13622 * XplatUIWin32.cs: Switched from 'nested' show/hide
13623 counting for caret to simple visible yes/no behaviour (part of
13626 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
13628 * Mime.cs: Remove debug code...
13630 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
13632 * MimeGenerated.cs: Removed
13633 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
13634 and subclasses) from /usr/(local/)share/mime and
13635 $HOME/.local/share/mime.
13637 2006-03-10 Jackson Harper <jackson@ximian.com>
13639 * MdiWindowManager.cs: Recalc the NC area when a window is
13640 maximized/restored so that the menu area is drawn on forms that
13643 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13645 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13646 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
13647 us to force a WM_NCCALCRESIZE message being sent. This is needed
13648 for MDI maximizing.
13650 2006-03-10 Jackson Harper <jackson@ximian.com>
13652 * Form.cs: We need to use the ActiveMenu when calculating menu
13654 - Fix nullref when the window manager hasn't been created yet.
13655 * Control.cs: Fix nullref when we try to bring a control to the
13656 front that has no parent.
13657 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
13659 - Add a dummy item to the maximized menu so it always has the
13660 correct height. Otherwise when there are no menus we don't get our
13664 2006-03-10 Jackson Harper <jackson@ximian.com>
13666 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
13668 * Form.cs: Make the window_state internal so the window managers
13670 - When an MDI child is maximized let its window manager create the
13671 main menu (so it can add its icon).
13672 - Notify the window managers of state changes
13673 - Let the window manager paint its buttons and handle button
13674 clicks on the menu when it is maximized.
13675 * InternalWindowManager.cs: Move the prev_bounds into the mdi
13676 window manager, since tool windows don't use it, only mdi windows.
13677 - Tell the main form that we don't want it to handle NCPAINT
13678 itself to avoid extra painting.
13679 - Handle clicks on a maximized windows menu.
13680 - Handle window state changes
13681 - Handle minimize/maximize clicks correctly by setting the window state.
13682 * MdiWindowManager.cs: Add an icon menu that (the menu you get
13683 when clicking on the forms icon).
13684 - New method to create a forms maximized menu. This is its normal
13686 - Handle window state changes.
13687 - Handle sizing of maximized windows. Maximized windows are just
13688 drawn bigger then the parent visible area. All controls are still
13689 there, they are just outside the visible area (this matches windows).
13690 * MdiClient.cs: No scrollbars when a child window is maximized.
13691 - Let the children windows figure out how big they should be when
13692 sizing maximized windows.
13693 - Implement a version of ArrangeIconicWindows somewhat similar to
13694 Windows version. There are some little differences, but I don't
13695 think any app will rely on the layout of minimized mdi windows.
13697 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13699 * Padding.cs: Several fixes to allow compiling with csc 2.0
13701 2006-03-09 Jackson Harper <jackson@ximian.com>
13704 * MenuItem.cs: Cheap hack so we can add items to the list without
13705 the events being raised. This allows adding mdi items during
13706 drawing. TODO: Should probably find a better time to add the items.
13708 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13710 * ThemeWin32Classic.cs:
13711 - CheckBox_DrawText: Added logic to not wrap if not enough space
13712 is available (Fix for bug #77727)
13713 - RadioButton_DrawText: Added logic not to wrap if not enough
13714 space is available (Fix for bug #77727). Also removed some
13715 duplicate code, DrawString always drawing the regular text
13716 before hitting the if statement.
13718 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13720 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
13722 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
13724 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
13725 * ContainerControl.cs: Partial implementation of some 2.0 scaling
13726 methods. Moved the new 2.0 properties into alphabetical order with
13727 other properties and added MonoTODO tags
13729 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13731 * AutoScaleMode.cs: Added. Fix build.
13733 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13735 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13736 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
13737 and was requiring premature handle creation for calls from above
13738 * Form.cs, Control.cs: Removed handle arguments from calls to
13739 CalculateClientRect()
13741 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13743 * ListView.cs (HeaderMouseMove): Fix csc compilation.
13744 drag_column.column_rect is MarshalByRef and can't be used that way
13746 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13748 * AxHost.cs: Added deserialization constructor for
13749 AxHost+State (fixes 77743)
13751 2006-03-09 Mike Kestner <mkestner@novell.com>
13754 - Added column drag reordering for details view.
13755 - fixed behavior when mouse is dragged off column and
13756 AllowColumnReorder is false.
13757 * ColumnHeader.cs: clone the format too in Clone.
13758 * Theme.cs: add DrawListViewHeaderDragDetails method.
13759 * ThemeWin32Classic.cs:
13760 - impl new method for drawing drag column shadows and targets.
13761 - support column offset for details mode in DrawListViewItem.
13763 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13765 * TextControl.cs: Reset the char_count when the document is cleared
13766 (Fixes bug reported on mono-winforms mailing list)
13768 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13770 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
13771 of calling base we simply process the key ourselves, since both
13772 DefWindowProc and the handled method would set m.Result.
13775 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
13777 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
13778 method also moves the window; instead implemented a copy of
13779 Control.ScaleCore (Part of fix for #77456)
13781 - Created new CreateGraphicsInternal method to allow providing
13782 a graphics context when no handle is created without triggering
13783 handle creation. (Part of fix for #77456)
13784 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13786 - Switched Constructor to require TextBoxBase instead of Control (to
13787 allow uncast access to CreateGraphicsInternal)
13788 - Safeguarded use of owner.Handle property. No longer accessing it
13789 unless the handle is already created.
13790 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13791 - Now triggering a recalc when owning control becomes visible
13792 * TextBox.cs, RichTextBox.cs: Switched to use new internal
13793 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
13794 premature handle creation (Part of fix for #77456)
13796 - We now only destroy our double-buffering buffers when the
13797 control is resized or disposed, but not when visibility
13798 changes. (The code even re-created them twice every time)
13799 - Now requiring a redraw of the buffer on visibility changes
13800 (fixes bug 77654 part 2)
13801 - Not passing OnParentVisibleChanged up unless the control
13803 - CanFocus: Fixed to match MS documentation
13804 - Focus: Fixed to return actual focus state and to check if
13805 setting focus is legal before setting it
13807 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
13809 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
13810 when to draw focus rectangle by looking at parent focus and
13811 selected state instead. This fixes TabPages on Linux sometimes
13812 having none or multiple focus rectangles.
13813 * XplatUIX11.cs (SetFocus):
13814 - Don't set the focus if the same window already has focus
13815 - Use SendMessage instead of PostMessage (like it's Win32
13816 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
13817 to match MS behaviour
13818 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
13819 are not selectable.
13821 2006-03-07 Jackson Harper <jackson@ximian.com>
13823 * PictureBox.cs: Revert line I accidently committed last week.
13825 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
13828 - Added new IsRecreating and ParentIsRecreating properties to
13829 allow testing if RecreateHandle has been called on ourselves
13830 or one of our parents
13831 - WndProc(WM_DESTROY): If our control handle is being recreated
13832 we immediately need to create the handle when receiving the
13833 destroy, that way our child windows find a valid parent handle
13834 when they themselves are being recreated upon WM_DESTROY receipt
13835 (fix for bug #77654 part 1)
13837 - DestroyWindow: WM_DESTROY must be sent to our own window before
13838 notifying any child windows. MS documents that child windows
13839 are still valid when WM_DESTROY is received. (Control now relies on
13841 - Added some fine-grain debug options
13843 2006-03-06 Jackson Harper <jackson@ximian.com>
13845 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
13846 box and base calculations off this.
13847 * MdiChildContext.cs:
13848 * MdiWindowManager.cs: Don't need to ensure scrollbars here
13851 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
13853 * Splitter.cs: In situations where the affected control is added
13854 to the parent's control list after the splitter, we would not
13855 populate affected. Now we try populating it on mousedown, if
13856 it's not already set, and force it to be re-set whenever our
13859 2006-03-03 Matt Hargett <matt@use.net>
13861 * Control.cs: implement Control.Padding
13862 * Padding.cs: -Padding.All returns -1 when constructing with the
13863 implicit default ctor
13864 -Padding.ToString() matches MS.NET
13865 * ContainerControl.cs: implement
13866 ContainerControl.AutoScaleDimensions
13867 * ListControl.cs: implement ListControl.FormattingEnabled
13868 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
13870 * TabPage.cs: Implement UseVisualStyleBackColor.
13871 * PictureBox.cs: Implement PictureBox.InitialImage.
13873 2006-03-03 Mike Kestner <mkestner@novell.com>
13875 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
13876 event declarations to proxy to base event.
13877 * ListViewItem.cs: update to use ItemControl.
13878 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
13879 * ThemeWin32Classic.cs: update to new ListView theme API and fix
13880 column header label rendering for 0 width columns.
13882 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
13884 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
13885 that causes the control to be created. Fixes #77476.
13887 2006-03-02 Jackson Harper <jackson@ximian.com>
13889 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
13892 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
13894 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
13895 passed in for the EventArgs (fixes #77690)
13897 2006-03-01 Jackson Harper <jackson@ximian.com>
13899 * ScrollBar.cs: Refresh afterbeing resized.
13901 2006-02-28 Mike Kestner <mkestner@novell.com>
13903 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
13904 Clean up a tracker compile warning.
13905 * MenuItem.cs: add internal PerformPopup method.
13908 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
13910 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
13911 implicit expose) when the text is set to null
13913 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
13915 * RichTextBox.cs (FlushText): When newline is true, we always
13916 need to split the line, even if no text is on it and we may
13917 never eat newlines. (Fixes #77669)
13919 2006-02-28 Mike Kestner <mkestner@novell.com>
13921 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
13922 and set Selected instead.
13923 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
13926 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
13928 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
13930 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
13933 - Got rid of the panel. All controls are now directly added to
13935 - It is now possible to set a font with the Font property
13936 - MinSize and MaxSize property do now what they should
13937 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
13938 - Searching and selecting a font with the font textbox works now,
13939 the same applies to the style and size textbox
13940 - Draw the correct 3D border in the example panel
13941 - Fixed a little mem leak (unused fonts didn't get disposed)
13942 - Many other internal updates/rewrites...
13945 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
13948 - InsertRTFFromStream: Added 'number of characters inserted' argument
13949 - set_SelectedRTF: Now using the number of characters to calculate
13950 the new location for the selection and cursor (x/y cannot be used
13951 due to potentially already wrapped text)
13953 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
13955 * TextControl.cs: Added property and implemented means to allow
13956 disabling recalculation of a document (can be used to speed up
13957 multiple inserts and is needed to make RTF inserts predictable, see
13959 * RichTextBox.cs: Using the new NoRecalc property of Document to
13960 keep x/y insert locations predictable. Also makes it faster inserting
13961 large chunks of RTF
13963 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
13965 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
13966 it's easier for a child control to handle the other messages without
13967 having to duplicate the special functionality
13969 - WndProc: Removed calling base handler for WM_KEYDOWN and added
13970 code to handle processing the key ourselves, in order to get
13971 access to the result of KeyEventArgs.Handled. We now only call
13972 ProcessKey if they key hasn't been handled already. Fixes #77526.
13973 - set_Text: If null or empty string is given, just clear the
13974 document. Fixes part of #77526
13976 2006-02-27 Jackson Harper <jackson@ximian.com>
13978 * SizeGrip.cs: Paint the background color before painting the grip
13979 so things look right.
13980 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
13982 2006-02-27 Mike Kestner <mkestner@novell.com>
13985 - Restructure layout and invalidation model to remove a ton of
13986 flicker from the control and speed up performance in general.
13987 - Add manual column resize, flickers like crazy, but I already have
13988 some ideas on how I'll fix that. (#76822)
13989 - Merge the three Icon-based views into a single layout method.
13990 - Move item selection interaction logic from the item since
13991 interaction with the collections is more appropriate to the view.
13992 - Deselection on non-item clicks.
13994 - Encapsulate most of the layout. Add some internal props to trigger
13995 layout. Move to a model where Items invalidate themselves instead
13996 of just invalidating the whole control every time something changes.
13997 - Invalidate on Text/Caption changes.
13998 - switch to an offset based layout model to avoid having to absolute
13999 position every element on item moves.
14000 - correct checkbox layout to conform to MS layout.
14001 * ThemeWin32Classic.cs:
14002 - refactor some column header drawing code.
14003 - fix string justification for column headers (#76821)
14004 - make SmallIcon labels top justified for compat with MS impl.
14005 * ThemeClearlooks.cs:
14006 - adjust to new ListViewItem internal checkbox bounds api.
14008 2006-02-27 Jackson Harper <jackson@ximian.com>
14010 * Control.cs: Change where implicit controls fall in the zorder.
14011 They are now on top of all children.
14012 - Synced AddImplicit code with Add
14013 - Removed unused enumerator.
14014 * SizeGrip.cs: Remove the TODO as its been TODONE.
14016 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
14018 * TextControl.cs(Insert): Combine the last lines unless the insertion
14019 string ends with \n\n, otherwise we leave one line too many (Fixes
14020 something I noticed with the testapp for #77526; the bug itself was
14021 already fixed in the previous checkin)
14023 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
14026 - SelectionColor and SelectionFont methods no longer set absolute
14027 styles. Instead, the keep font or color respectively (This
14028 resolves a long-standing FIXME in the code)
14029 - When flushing RTF text, the insert code now considers text trailing
14030 behind the insertion point (Fixes the bug where when replacing
14031 the selected text via SelectedRTF the remainder of the line behind
14032 the selection would stay on the first insertion line)
14034 - AppendText now updates the selection points after inserting text
14035 - AppendText now ensures that the last tag (sometimes 0-length) of
14036 the document is used for the style information (Fixes part of
14039 - Created new FontDefiniton class to allow describing partial style
14041 - StreamLine() now takes a lines argument, to allow it to decide
14042 whether an encountered zero-length tag is the last in the document
14043 (which must be kept to not loose the font/color contained in it,
14045 - Created Combine() and Split() methods for Marker structs, to
14046 support marker updates due to reformatted documents (soft line
14048 - Implemented Document.CaretTag setter
14049 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
14050 of the last line (Not the cause, but also exposed by bug #77220)
14051 - Added LineTag argument to InsertString method, to allow callers
14052 to force a certain tag to be used (required to force use of the
14053 trailing zero-length tag of a document)
14054 - Now updating markers in Combine(), to avoid stale tag markers
14055 - Added some method descriptions to aid maintenance
14056 - Implemented new FormatText concept, allowing additive/subtractive
14057 formatting by only specifying the components that are to be
14058 changed. This was needed for resolving the RTB.SelectedColor/
14059 RTB.SelectedFont fixmes
14060 - Added Break() support method to allow breaking up linetags (used
14061 for partial formatting)
14062 - Added GenerateTextFormat() method. It is used for partial
14063 formatting and allows to generate a full font/color from given
14064 attributes and an existing tag.
14066 2006-02-26 Jackson Harper <jackson@ximian.com>
14068 * XplatUIX11.cs: Use the correct caption height.
14069 - Translate hittest coordinates to screen coords to match MS.
14070 * XplatUIWin32.cs: When we create MDI windows we need to reset
14071 some of the style flags, so we get a nice blank window, and can
14072 draw all the decorations ourselves.
14073 - Set a clipping rectangle on the non client paint event, the
14074 window manager drawing code needs one.
14075 * Form.cs: The window manager needs to know when the window state
14077 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
14078 don't need to factor in border and title sizes in these
14079 methods. TODO: Remove the args and fix the call points.
14080 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
14082 - Let the driver set the cursors.
14083 - Improve active window handling
14084 - Correct sizes for title bars and buttons.
14085 - Match MS drawing better
14086 * MdiWindowManager.cs: We don't need to handle border style
14087 updates specially anymore.
14088 - Check for scrollbars when windows are done moving
14089 - Handle Active properly.
14090 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
14091 correctly. I am spewing the exception though, so we don't hide the
14094 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
14096 * DataGridViewRowPostPaintEventArgs.cs,
14097 DataGridViewCellPaintingEventArgs.cs,
14098 DataGridViewRowCollection.cs,
14099 DataGridViewRowPrePaintEventArgs.cs,
14100 DataGridViewCell.cs: Clear a few warnings and implement a few
14101 exceptions that should be thrown.
14103 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
14105 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
14106 'inheriting' our parent's (non-default) cursor. (Part of
14107 the fix for #77479)
14109 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
14111 * XplatUIX11.cs: Fixed cast to make csc happy
14113 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
14115 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
14116 it's for the client area (part of fix for #77479 and needed
14117 for MDI window cursor handling)
14119 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
14120 the appropriate default cursors and also passing the message
14121 up the parent chain
14122 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
14123 for non-client areas
14125 2006-02-15 Jackson Harper <jackson@ximian.com>
14127 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
14128 is a real MDI window
14130 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
14132 * X11DesktopColors.cs: Instead of checking the desktop session
14133 string for "KDE" check if it starts with "KDE"
14135 2006-02-10 Jackson Harper <jackson@ximian.com>
14137 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
14140 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
14142 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
14145 - Got rid of the panel. All controls are now directly added to
14147 - Changed to mono coding style
14149 2006-02-10 Jackson Harper <jackson@ximian.com>
14151 * InternalWindowManager.cs: We don't need the set visibility to
14152 false hack anymore now that peter has written beautiful shutdown
14155 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
14157 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
14158 where already explicitly destroyed
14160 2006-02-10 Jackson Harper <jackson@ximian.com>
14162 * MdiClient.cs: Handle the case where windows are too high or to
14163 the left and we need scrollbars.
14165 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
14167 * MimeIcon.cs: Added some icons
14170 - Got rid of the panel. All controls are now directly added to
14172 - Changed to mono coding style
14173 - On Linux "My Computer" and "My Network" will now show some
14174 more usefull information. A new class, MasterMount, gathers
14175 this information from /proc/mount. Updated MWFFileView to make
14176 use of this information
14177 - Fixed a bug that caused FileDialog to crash when
14178 ".recently_used" file had a zero size
14179 - FilterIndex does now what it should
14181 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
14184 2006-02-09 Jackson Harper <jackson@ximian.com>
14186 * ComboBox.cs: Don't touch if null.
14188 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
14190 * Cursor.cs: 64bit safeness fix
14191 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
14193 2006-02-09 Jackson Harper <jackson@ximian.com>
14195 * Form.cs: If a form is made into an MDI form update the styles so
14196 all the props can get set correctly.
14197 - Kill the mdi_container when we dont need it anymore.
14198 * InternalWindowManager.cs: Add missing NOT
14200 2006-02-08 Jackson Harper <jackson@ximian.com>
14202 * InternalWindowManager.cs: Respek clipping when drawing MDi
14205 2006-02-08 Jackson Harper <jackson@ximian.com>
14207 * Hwnd.cs: Add bits to track non client expose events.
14208 * XplatUIX11.cs: Track non client expose events on the hwnd. This
14209 gives us a proper invalid rect and will allow for some nice
14210 optimizations with NC client drawing
14211 - MDI windows are children windows, so move their style handling
14212 into the child window block.
14213 * InternalWindowManager.cs: Remove a state reset that was
14214 getting invoked at the wrong time. Fixes managed windows getting
14215 into a 'stuck' captured state.
14217 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
14219 * TextControl.cs (Document.ctor): Now initializing
14220 selection_anchor. Fixes #77493
14222 2006-02-07 Jackson Harper <jackson@ximian.com>
14224 * TrackBar.cs: The increment/decrements were backwards.
14226 2006-02-07 Mike Kestner <mkestner@novell.com>
14228 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
14229 to the instance itself.
14231 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
14233 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
14234 on ulongs and pointers, the size differs between 32bit and 64bit
14237 2006-02-07 Mike Kestner <mkestner@novell.com>
14239 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
14240 for 64 bit platforms to work around a metacity bug.
14242 2006-02-07 Jackson Harper <jackson@ximian.com>
14244 * TrackBar.cs: Process the input keys we need, and hookup to
14245 KeyDown instead of using WndProc, so we get key messages.
14247 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
14249 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
14251 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
14252 we need to translate the XdndVersion atoms array before sending it
14254 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
14257 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
14258 number of bits for the property, not the number of bytes. The
14259 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
14260 but would not crash since it specified 8 bits instead of 4 bits)
14261 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
14262 defined as XID -> long in the C headers)
14263 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
14264 references since those are now IntPtr to begin with
14265 - Switched all Atom.XXX 'int' casts to IntPtr casts
14266 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
14267 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
14268 - Added XChangeActivePointerGrab DllImport (for X11DnD)
14270 - Changed 'int' type for Atoms in XEvent structures to IntPtr
14271 - Changed atom in HoverStruct to be IntPtr
14273 - Removed local DllImports, switched code to use those from XplatUIX11
14274 - Removed/fixed casts related to the switch of Atom to be a IntPtr
14276 2006-02-06 Mike Kestner <mkestner@novell.com>
14278 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
14279 method signatures in the import region. There may still be some
14280 lingering struct marshaling issues, as I didn't drill down into those.
14283 2006-02-06 Jackson Harper <jackson@ximian.com>
14285 * ComboBox.cs: Dont manually set the top_item, this is computed
14286 when the scrollbar position is set.
14288 2006-02-06 Mike Kestner <mkestner@novell.com>
14290 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
14291 startup crashes on amd64. There's other fixes needed. All pinvoke
14292 usage of Atom needs to be mapped to IntPtr for example. And there are
14293 likely other int/long issues to be addressed.
14295 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
14297 * FileDialog.cs: One more...
14299 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
14301 * FileDialog.cs: Next try
14303 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
14305 * FileDialog.cs: First part of fix for #77464
14307 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
14309 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
14310 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
14311 AcceptButton border drawing.
14313 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
14315 * Form.cs: Moved positioning of form after auto scaling is applied,
14316 otherwise it would possibly use wrong form size.
14318 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
14320 * Control.cs (RecreateHandle): No need to re-create any child
14321 controls, the child windows will get destroyed automatically by
14322 the windowing system or driver, and re-created when the handle
14323 is being accessed the first time. Fixes #77456
14324 * Form.cs: No longer setting the form to closing if the handle is
14325 being recreated. This seems like the right thing to do, don't
14326 have a bug or testcase for this, though.
14328 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
14330 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
14331 controls to avoid unwanted side effects
14333 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
14336 - ScaleCore needs to scale the bounds, not the ClientSize of the
14337 control. Fixes #77416.
14338 - DefaultSize is 0,0 for control
14340 - DefaultSize is 100, 20
14341 - SetBoundsCore: Now enforcing the height, no matter if the provided
14342 height is more or less than the preferred one, as long as AutoSize
14344 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
14346 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
14349 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
14350 call unless both performLayout is true *and* we have a pending
14352 - ResumeLayout: MS does not completely nest Suspend and Resume,
14353 they bottom out at 0, fixed our code to match that.
14354 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
14355 SetBoundsCore, we were updating even when we shouldn't. This fixes
14356 swf-anchors mis-anchoring when resizing the app fast and lots.
14357 - UpdateDistances: Now only setting the left and top distance if
14358 we have a parent and are not suspended, this is based on
14359 a suggestion by Don Edvaldson in bug #77355.
14360 - OnVisibleChanged: Fixed logic when to create the control. We may
14361 not create the control if we have no parent or if it's not visible;
14362 switched to using Visible property instead of is_visible field
14363 since the property also considers parent states. This fixes a bug
14364 when starting Paint.Net
14366 2006-02-02 Jackson Harper <jackson@ximian.com>
14368 * Form.cs: If the forms handle hasn't been created yet don't call
14369 into xplatui to make it top most, just set the topmost flag on the
14370 form in CreateParams
14371 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
14373 2006-02-01 Jackson Harper <jackson@ximian.com>
14375 * ScrollableControl.cs: Refactored the Recalculate method a
14376 little, this wasn't handling all the variants of bottom and right
14377 bars needed to be added and added/removed based on their
14378 counterparts being added/removed (which changes the drawable
14379 size). Also we special case client widths and heights of 0 and
14380 don't add the scrollbar for those.
14382 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
14385 - Added method to get AbsoluteGeometry(); currently unused, but might
14386 be used in the future, if we try again to figure out toplevel
14387 coordinates with some more crappy window managers
14388 - Added FrameExtents() method to retrieve the WM set decoration size
14389 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
14390 to deal with at least KDE, FVWM and metacity (Fixes #77092)
14392 - Added whacky_wm tracking var for metacity
14393 - Added logic to have default menu height if the actual menu height
14394 has not yet been calculated (part of fix for #77426)
14395 * Form.cs: Keep track whether client size has been set and re-set
14396 it if a menu is added/removed afterwards (Fixes #77426)
14398 2006-01-31 Jackson Harper <jackson@ximian.com>
14400 * Control.cs: When a new Site is set on the component attempt to
14401 pull the AmbientProperties from it.
14403 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
14405 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
14406 in the background of the owning form. Fixes #77332
14408 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
14410 * MimeIcon.cs: Fix for #77409
14412 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
14414 * XplatUIX11GTK.cs: Initial import
14416 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
14418 * FixedSizeTextBox: fixes class signature
14420 2006-01-30 Jackson Harper <jackson@ximian.com>
14422 * FixedSizeTextBox.cs: New internal class that represents a
14423 textBox that will not be scaled.
14426 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
14429 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
14431 * XplatUIX11.cs: Retrieve default screen number instead of
14432 assuming 0. Attempted fix for #77318
14434 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
14437 - GetWindowPos: When a window is parented by FosterParent, use
14438 the desktop instead of FosterParent as the base to get coordinates
14439 - CreateWindow: Don't make FosterParent the parent window for Popups
14440 if we don't want a taskbar entry, Popups automatically don't get one
14441 * Hwnd.cs: Need to call remove to actually remove the key from the
14444 2006-01-30 Mike Kestner <mkestner@novell.com>
14446 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
14448 2006-01-30 Jackson Harper <jackson@ximian.com>
14451 * TreeNode.cs: Raise events no matter how the treenode is
14452 checked. Patch by Don Edvalson.
14454 2006-01-30 Jackson Harper <jackson@ximian.com>
14456 * TreeNode.cs: Signature fix.
14458 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
14460 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
14462 2006-01-20 Mike Kestner <mkestner@novell.com>
14464 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
14465 event forwarding when menus are active.
14466 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
14467 Most of the patch is pdb's with a little rework.
14469 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14471 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
14472 Removed GetMenuDC and ReleaseMenuDC methods; replaced
14473 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
14474 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
14475 * InternalWindowManager.cs: Added use of PaintEventStart/End to
14476 handling of WM_NCPAINT message, now passing the PaintEventArgs to
14477 the PaintWindowDecorations method
14478 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
14479 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
14480 * MenuAPI.cs: Made tracker window invisible
14482 - Removed GetMenuDC and ReleaseMenuDC methods
14483 - Implemented the client=false path for PaintEventStart and
14486 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14488 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
14489 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
14492 - MaximizeBox, MinimizeBox: Recreate the handle when setting
14494 - CreateParams: Reworked the styles to match MS look'n'feel,
14495 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
14496 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
14498 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14500 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
14501 window is not mapped, since otherwise every form that's being
14502 created is considered minimized, which is wrong.
14503 * Form.cs: Catching the exception and returning our internal value
14506 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
14508 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
14509 SetWindowMinMax() to have means to tell the driver about the minimum,
14510 maximum and maximized state window sizes. (Part of the fix for #76485)
14512 - Implemented tracking of minimum and maximum window size, now calling
14513 new SetWindowMinMax() driver method to tell the driver (Part of the
14515 - Finished handling of WM_GETMINMAXINFO method, now setting all values
14516 (Completes fix for #76485)
14517 - Calling new SetWindowMinMax driver method when the handle for a
14518 form is created, to make sure the driver knows about it even if
14519 the values have been set before the window was created
14520 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
14521 to avoid messing up our anchoring calculations (partial fix
14523 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
14525 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
14526 - Improved GetWindowState() to detect 'Minimized' state on Metacity
14527 (and presumably other freedesktop.org compliant WMs). Left the
14528 assumption unmapped=minimized, needed for SetVisible to work.
14529 - Now setting the window state when creating windows
14530 - Fixed SetVisible to consider/set the window state when mapping
14531 a Form. We cannot set the state before it's mapped, and we cannot
14532 use Form.WindowState once it's mapped (since it would ask the
14533 driver and get 'normal'. Therefore, we grab the state before
14534 mapping, map, and then set state.
14535 - Implmemented SetWindowMinMax method; Metacity does not seem to
14536 honor the ZoomHints, though.
14538 - Removed MINMAXINFO (moved to XplatUIStructs)
14539 - Added SetWindowMinMax stub (on Win32 the only way to set that
14540 information is in response to the WM_GETMINMAXINFO message, which
14541 is handled in Form.cs)
14542 - Added logic to SetVisible to set the proper window state when a
14543 form is made visible (fixes #75720)
14545 2006-01-26 Jackson Harper <jackson@ximian.com>
14547 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
14548 same way we handle them with Invoke.
14550 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
14553 - Added tracking of window state so CreateParams can return
14554 the appropriate style
14555 - Moved setting of WS_CAPTION style in CreateParams to allow
14556 styles without caption
14557 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
14558 control if the TextBox property is accessed. Fixes #77345
14560 - get_Created: now uses is_disposed and is_created to determine
14561 return value (suggested by Jackson)
14562 - CreateHandle: No longer exits if the handle is being recreated
14563 - RecreateHandle: If the handle is not yet created call the
14564 appropriate method to create either control or handle. If the
14565 control is already created CreateHandle will simply exit instead
14566 of just creating the handle
14567 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
14568 now SendMessage WM_DESTROY directly to the control when DestroyWindow
14571 - When DestroyWindow is called, instead of waiting for the
14572 DestroyNotification from X11, we directly post it to the WndProc
14573 and immediately dispose the hwnd object.
14574 Same applies to DestroyChildWindows, and this obsoletes the
14575 expose_pending tracking. Contrary to Win32 behaviour we destroy our
14576 child windows before our own, to avoid X11 errors.
14577 - Removed the direct sending of WM_PAINT on UpdateWindow
14579 - Reworked DoEvents and GetMessage to allow access to internal queue
14580 even when trying non-blocking access to the queue. Fixes #77335.
14581 Based on a patch suggestion by Don Edvalson. The new private
14582 GetMessage can now also be used as a backend for a PeekMessage
14584 * XplatUI.cs: Improved debug output for CreateWindow
14586 2006-01-25 Jackson Harper <jackson@ximian.com>
14588 * Help.cs: Allow param to be null. Patch by Don Edvalson.
14590 2006-01-24 Jackson Harper <jackson@ximian.com>
14592 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
14593 when we have a MaxDropItems lower then the selected index.
14595 2006-01-24 Jackson Harper <jackson@ximian.com>
14597 * Control.cs: Don't allow selection of non visible controls, allow
14598 selection of controls without parents.
14600 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
14602 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
14603 * DataGridDrawingLogic.cs: Add editing row only when is necessary
14605 2006-01-23 Jackson Harper <jackson@ximian.com>
14607 * UpDownBase.cs: Make the textbox handle all the selection and
14608 tabbing. This fixes tabing to updown controls.
14610 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
14612 * TextBoxBase.cs: fixes exception thown the object was null
14614 2006-01-23 Jackson Harper <jackson@ximian.com>
14616 * ButtonBase.cs: Just use the base CreateParams. They set
14617 visibility and enabled correctly.
14620 * MonthCalendar.cs: Lets let the base set as much of the
14621 createparams as possible so we don't have duplicate code all over
14624 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
14626 * ThemeGtk.cs: Added TrackBar and some experimental code to
14627 get double buffering back
14629 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
14631 * DataGrid.cs: Allows row number set internally higher than the last
14632 when creating a new row. Restores the editing functionality.
14634 2006-01-20 Mike Kestner <mkestner@novell.com>
14636 * MimeIcon.cs: delay Image creation until the icons are accessed
14637 instead of creating 190 scaled images on GnomeHandler startup.
14639 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
14641 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
14642 first call base before processing the event. Fixes #77279
14644 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
14646 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
14647 that the stride for the GDI bitmap would match the stride of
14650 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
14652 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
14654 2006-01-19 Jackson Harper <jackson@ximian.com>
14656 * ComboBox.cs: Hookup the text controls keydown event so we get
14657 those when the text control has the focus.
14659 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14661 * Label.cs: Now using the base events instead of defining new ones;
14662 this allows us to just call the base properties without having to
14663 duplicate all base property logic
14665 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14667 * Label.cs: A label by default is not a tabstop (Fixes one of our
14668 failing nunit tests)
14670 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14672 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
14673 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
14675 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
14677 * Cursor.cs: Reimplemented creating cursor bitmaps without using
14678 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
14681 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
14682 constructor creates images that can't be saved. Part of the fix
14684 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
14685 - SetWindowState: Switched ShowWindow flags (part of an upcoming
14686 bug fix for handling window state in forms properly)
14688 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14690 * ThemeGtk.cs: Simplify ScrollBar drawing
14692 2006-01-18 Jackson Harper <jackson@ximian.com>
14694 * Splitter.cs: Set the default dock style for the splitter control
14695 in the constructor.
14697 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14699 * ThemeGtk.cs: Corrected StateType and ShadowType for
14702 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14704 * Control.cs: Make use of Theme.DoubleBufferingSupported
14706 - Added drawing for flat style buttons
14707 - Added ScrollBar drawing
14709 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
14711 * ThemeClearlooks.cs: Removed some unneeded code.
14712 * ThemeGtk.cs: First part of ThemeGtk enhancements.
14714 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
14716 * LinkLabel.cs: We need to update the hover drawing when
14717 leaving the control as well.
14719 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
14721 * DataGrid.cs: Clicking on non empty areas in the columns
14722 area was giving an exception
14724 2006-01-17 Jackson Harper <jackson@ximian.com>
14726 * ThemeWin32Classic.cs:
14727 * ListView.cs: Do not draw/clip the headers when the header style
14730 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
14732 * DataGrid.cs: Fixes 77260
14734 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
14736 * DataGrid.cs: Clicking on a column on a empty grid was giving
14739 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
14741 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
14742 or any keypress will crash the grid.
14744 2006-01-17 Mike Kestner <mkestner@novell.com>
14746 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
14747 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
14748 invisible/previously-visible items.
14751 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
14753 * ThemeClearlooks.cs:
14754 - Added CL_Draw_Button method; now other theme controls that are
14755 not derived from button or do not have a button can draw buttons
14757 - Updated ComboBox drawing
14758 - Beautified RadioButton drawing
14759 - Corrected drawing of bottom and left tabs
14760 - Beautified DateTimePicker and MonthCalendar
14761 - Added CPDrawButton and CPDrawRadioButton
14763 2006-01-16 Jackson Harper <jackson@ximian.com>
14765 * ComboBox.cs: Set the initial value of the scrollbar to the
14766 current index. Reduce the numbers of refreshs and IndexOfs called.
14768 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
14770 * FileDialog.cs: When the file listview is focused hitting the
14771 backspace key moves the fileview to the parent directory
14773 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14776 - Added RecreateHandle call when changing taskbar visibility to
14777 trigger reparenting in Win32 driver (Fixes #75719)
14778 - If a window has minimize or maximize buttons, it cannot have
14781 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
14782 the toplevel form with FosterParent (A toolwindow not on the
14783 taskbar) (Fixes #75719)
14784 - Made FosterParent a toolwindow
14786 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
14788 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
14790 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
14792 * ToolTip.cs: If SetToolTip is called from a control and the mouse
14793 is currently over that control, make sure that tooltip_window.Text
14796 2006-01-13 Mike Kestner <mkestner@novell.com>
14798 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
14800 2006-01-13 Jackson Harper <jackson@ximian.com>
14802 * TreeView.cs: On MS GetNodeAt never actually factors in the X
14803 value passed. Also redraw the selected node when we recieve
14804 focus, so tabbing between trees works correctly.
14806 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
14808 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
14809 ~/.gconf/%gconf-tree.xml, so use
14810 .gconf/desktop/gnome/interface/%gconf.xml
14812 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14814 * TextControl.cs: Draw text in gray if control is disabled
14816 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14818 * TreeView.cs: Draw the focus rectangle outside the highlight, to
14819 make sure it's always visible. Fixes #76680.
14821 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
14823 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
14825 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
14827 * PageSetupDialog.cs: Added.
14828 * PrintDialog.cs: Attributes.
14829 * PrintPreviewControl.cs: Updates.
14830 * PrintPreviewDialog.cs: Updates.
14832 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14834 * Control.cs: Undid my selection check fix, since it's not needed
14836 - Now considering the presence of hscroll/vscroll when sizing
14837 vscroll/hscroll respectively. Fixed bug #77077
14838 - Added Left/Up/Down/Right to IsInputKey list to prevent
14839 ContainerControl from stealing them. This fixes what I broke
14840 with my last checkin.
14842 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14844 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
14845 I finally understand how the property can be set without a setter :-)
14847 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14850 - Switched RunLoop to use static Message.Create to create a
14852 - Added PreProcessMessage call in runloop for keyboard events; this
14853 is part of the fix for #77219, I overlooked this originally in the
14854 MSDN doc for PreProcessMessage
14856 - Removed call to PreProcessMessage from handling of keyboard
14857 messages; it's supposed to be done in the message pump
14858 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
14859 per MSDN documentation.
14860 - IsInputChar: All chars are input chars by default; removed the
14861 parent calling chain, MS does not document that
14862 - PreProcessMessage: If IsInputChar is true, we want to return false
14863 to allow dispatching of the message
14864 - When selecting the next control, now also check that we're not
14865 selecting ourselves again and therefore return a false positive.
14867 - Tried to match return values for IsInputKey and ProcessDialogKey
14868 to what MS returns; moved processing of our special keys outside
14869 ProcessDialogKey since MS does not seem to return true on those.
14870 - Moved code that previously was in ProcessDialogKey into new private
14871 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
14872 - Reworked handling of WM_CHAR to not have to duplicate code from
14873 Control.cs anymore, instead we simply call down to base.
14875 2006-01-12 Jackson Harper <jackson@ximian.com>
14877 * ComboBox.cs: We always need to refresh the text area when
14878 EndUpdate is called. Fixes the combobox in the file dialog.
14879 * Control.cs: Don't create the creator_thread until the controls
14880 handle is created. Also in InvokeRequired we check if the
14881 creator_thread is null. This gives the effect of InvokeRequired
14882 returning true if the controls handle is not created yet, and
14885 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14888 - Added StartLoop() driver method. This is used to allow drivers to
14889 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
14890 loop for a particular thread
14891 - Added EndLoop() driver method. This is called once the message
14892 pump for the thread is shut down
14893 - Added SupportsTransparency method to allow the driver to indicate
14894 opacity support for windows
14896 - Removed TODO attribute, completed AllowTransparency property
14897 - Added documented logic to Opacity
14898 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
14899 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
14900 versions of CompatibleTextRendering
14901 * X11Structs.cs: Added opacity atom to our atom enumeration
14902 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
14903 of a form might be set before it's reparented by the WM, and we need
14904 the opacity value without calling up to Form)
14905 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
14906 SupportsTransparency() driver methods
14907 * Application.cs: Now calling StartLoop and EndLoop driver methods
14909 - Added opacity atom registration
14910 - Added StartLoop()/EndLoop() methods. They're empty right now but
14911 will need to get implemented when we switch to a per-thread queue
14912 - Implemented SupportsTransparency() method
14913 - Implemented SetWindowTransparency() method
14914 - Added support for setting the opacity value when a window is
14915 reparented (since the opacity needs to be set on the WM frame)
14916 * XplatUIOSX.cs, XplatUIWin32.cs:
14917 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
14919 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
14921 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
14923 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
14925 * FileDialog.cs: Added ToolTip for MWFFileView
14926 * MimeIcon.cs: Rewrote GnomeHandler.
14927 - Get currently used gnome icon theme from
14928 ($HOME)/.gconf/%gconf-tree.xml
14929 - Make use of inherited icon themes
14930 - Support SVG icon themes like Tango via librsvg
14932 2006-01-12 Miguel de Icaza <miguel@novell.com>
14934 Revert's Jackson's revert which broke 2.0 builds. Fix both
14937 * Application.cs: Move the use_compatible_text_rendering outside
14938 the NET_2_0 define. If we ever need to use the
14939 use_compatible_text_rendering on the individual controls they will
14940 access the variable from the common shared code paths.
14942 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
14945 - Added more granular debug options
14946 - Added method to print both window text and id
14947 - Switched debug output to use new Window() debug method
14948 - Added IsEnabled() driver method
14949 - Added EnableWindow() driver method
14951 - Removed end_modal; no longer needed, new loop handles termination
14952 via 'closing' variable
14953 - If form is modal, setting DialogResult will now initiate loop
14954 termination via 'closing' variable
14955 - Added support for is_enabled/WS_DISABLED to CreateParams
14956 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
14958 - Removed code that's now in RunLoop from ShowDialog()
14959 - Added various documented sanity checks to ShowDialog()
14960 - Added handling of WM_DESTROY message; we set 'closing' on getting
14961 the message to indicate the message pump to terminate
14962 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
14963 send by the Application.ExitThread method. (We send the message
14964 to destroy the window after all other events have been
14965 processed through the queue, instead of destroying the handle
14967 - Moved code from Close() method to WM_CLOSE handler; added logic
14968 to only send close-related events if the form is not displayed
14970 * Splitter.cs (..ctor): Fixed typo in resource name
14972 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
14974 - set_Cursor: Now only setting calling into XplatUI if the handle for
14975 the control is already created; this avoids implict handle creation
14976 or crashes if it's not created
14977 - set_Enabled: Now setting the enabled state via the new driver method
14978 instead of just tracking it
14979 - CreateParams: Added logic to set WS_DISABLED based on enabled state
14980 - CreateControl: Reordered event firing and method calls to more
14981 closely fire events in the order MS does. Now setting the
14982 enabled state in the driver when creating the control.
14983 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
14985 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
14986 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
14987 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
14989 - Added tracking of window enabled state (get_Enabled/set_Enabled)
14990 - Added EnabledHwnd property to easily allow a driver to find the
14991 handle of the first enabled window in the parent chain (this is
14992 used by drivers to pass up input events of disabled windows)
14993 * XplatUIDriver.cs: Added IsEnabled() method
14995 - Removed crude and obsolete exiting tracking variable
14996 - Removed internal ModalRun(); replaced by RunLoop()
14997 - Implemented private CloseForms() method to allow closing all
14998 windows owned by a particular (or all) threads
14999 - Exit() now properly closes all windows without forcing the message
15001 - Removed obsolete InternalExit() method
15002 - Changed Run() methods to use new RunLoop() message pump
15003 - Implemented new RunLoop() method for both modal and non-modal forms
15005 - get_CreateParams: Added setting of WS_DISABLED
15006 - Simplified ShowDialog(); now all the work is done in RunLoop(),
15007 invoked via Form.ShowDialog()
15008 * NativeWindow.cs: We don't remove the window from the collection when
15009 the handle is destroyed; there might still be messages for it in the
15010 queue (mainly the resulting WM_DESTROY); instead it will be removed
15011 when Control calls InvalidateHandle in the WM_DESTROY handler
15013 - CreateWindow: Added logic to handle the WS_DISABLED window style
15014 - EnableWindow: Implemented based on Hwnd.Enabled
15015 - GetMessage: Reset PostQuitState so the method can be called again
15016 - Implemented support for disabled windows (passing messages to the
15017 first enabled parent) in handling all input messages
15018 - Added optimizations for handling Expose events
15019 - Implemeted new driver method IsEnabled()
15020 - Now always resetting paint pending tracking vars when we start paint
15021 - Re-implemented UpdateWindow via just sending a WM_PAINT message
15022 * XplatUIOSX.cs: Added IsEnabled method stub
15023 * XplatUIWin32.cs: Implemented new IsEnabled() method
15025 2006-01-11 Jackson Harper <jackson@ximian.com>
15027 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
15028 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
15029 variables a little.
15030 * ColorDialog.cs: Clear out the old form before adding the new
15033 2006-01-11 Jackson Harper <jackson@ximian.com>
15035 * X11Dnd.cs: Make sure to add all the text formats when adding
15036 strings to the data object.
15037 * TreeNodeCollection.cs: When adding to a sorted tree we need to
15038 do some redrawing too. Also change the UpdateNode to an
15039 UpdateBelow so the newly added node gets painted.
15041 2006-01-11 Miguel de Icaza <miguel@novell.com>
15043 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
15044 LinkLabel.cs, PropertyGrid.cs: Implement the
15045 UseCompatibleTextRendering property for 2.x
15047 * Application.cs (SetCompatibleTextRenderingDefault): Add.
15049 2006-01-11 Jackson Harper <jackson@ximian.com>
15051 * TreeView.cs: Use the property for setting the selected node so
15052 the correct events get raised.
15053 * TreeNode.cs: Update the tree when the fore/back colours of a
15056 2006-01-10 Jackson Harper <jackson@ximian.com>
15058 * TreeView.cs: Allow setting SelectedNode to null.
15060 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15062 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
15064 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15066 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
15068 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15070 * PrintDialog.cs: Added attributes and set default property values.
15072 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15074 * PrintControllerWithStatusDialog.cs:
15075 Added PrintControllerWithStatusDialog.
15077 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15079 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
15080 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
15082 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
15084 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
15086 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
15088 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
15089 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
15091 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
15093 * MimeIcon.cs: Added internal class SVGUtil.
15095 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
15097 * FileDialog.cs: Don't crash if there are two files with the
15098 same name but different locations.
15100 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
15102 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
15103 dates across multiple month grids. Used to not highlight entire
15104 month, but does now.
15106 2006-01-06 Jackson Harper <jackson@ximian.com>
15108 * MonthCalendar.cs: Removed DoEvents call to prevent a running
15109 message loop. Change timer intervals to numbers that seem more
15112 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
15114 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
15115 object for location info since screen object is now implemented.
15117 2006-01-05 Jackson Harper <jackson@ximian.com>
15119 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
15120 * AsyncMethodResult.cs: We no longer use a WeakReference for the
15121 AsyncMethodResult, this is because we ALWAYS want the
15122 ManualResetEvent to get set.
15123 * Control.cs: When disposing use an async invoke to call shutdown
15124 code, so that thigns don't block on the finalizer thread. Also
15125 check if we even have a message loop before trying to send
15126 messages, if we don't then don't bother sending messages.
15127 - No more weak references for async methods
15128 * XplatUIDriver.cs: No more weak references for async methods.
15130 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
15132 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
15133 returns two FontFamily with the same name
15135 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
15137 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
15138 drawing disabled text. Instead using the ColorGrayText color
15140 2006-01-04 Jackson Harper <jackson@ximian.com>
15142 * TreeNode.cs: redraw the node when its image index is changed.
15144 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
15146 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
15147 time I checked there are no others like it.
15149 2006-01-04 Jackson Harper <jackson@ximian.com>
15151 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
15152 this gives the behavoir I was looking for.
15153 * Control.cs: Special case Invoking EventHandlers, this matches MS
15154 and fixes part of bug #76326.
15156 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
15158 * ThemeClearlooks.cs, FileDialog.cs:
15159 - Reflect the latest Theme class changes
15160 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
15163 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
15165 * Theme.cs: Cache UI resource images and resize them if needed
15167 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
15169 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
15170 is called. This fixes the crash in Nexxia when setting the font
15171 attributes in the chat. [However, RTF needs a look-over to make sure
15172 that all SelectionXXX methods handle the special case that selection
15173 is empty and therefore the change must be applied to all text starting
15174 at the cursor/selection start]
15176 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
15178 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15179 XplatUIOSX.cs: Added SendMessage and PostMessage methods
15180 * X11Keyboard.cs: Switched to new way of calling PostMessage
15182 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
15184 * Theme.cs: Added theme interface for images to allow the theme to
15185 control what images are used for things like FileDialog, MessageBox
15187 * MessageBox.cs: Now uses the new Theme icon/image interfaces
15189 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
15192 - Removed some dead code
15193 - Opening a recently used file does work now
15194 - Small UI enhancements
15197 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
15199 * FileDialog.cs: Forgot too add __MonoCS__
15201 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
15203 * FileDialog.cs: We are able to read recently used files now let's
15204 go on and write them.
15206 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
15208 * FileDialog.cs: Breathe some life into "last open"/"recently used"
15210 * MimeIcon.cs: Do a check for the top level media type also
15212 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
15214 * ThemeClearlooks.cs:
15215 - Added CPDrawStringDisabled
15216 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
15217 some chars if the text doesn't fit into text_rect
15218 - DrawListViewItem: If View = View.LargeIcon center the image;
15219 rewrote the drawing of ListViewItem.Text if View =
15222 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
15224 * MimeIcon.cs: Use default KDE icon theme if there is no
15225 "48x48" directory for the current icon theme, fixes #77114
15226 * Mime.cs: Disable not working and actually not used code.
15227 * ThemeWin32Classic.cs:
15228 - Replace "new SolidBrush" in GetControlBackBrush and
15229 GetControlForeBrush with ResPool.GetSolidBrush
15230 - Changed DrawListViewItem from private to protected virtual
15232 - Added form.MaximizeBox = true
15233 - Don't throw an exception if there is a broken symbolic link
15235 2005-12-23 Jackson Harper <jackson@ximian.com>
15237 * TabControl.cs: Give the panels focus, keyboard navigation is
15238 fixed so this works correctly now.
15239 - We need these key events also.
15240 * ToolBar.cs: Remove some of the poor mans double buffering.
15242 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
15244 * ComboBox.cs: The internal TextBox now returns the focus.
15246 2005-12-23 Jackson Harper <jackson@ximian.com>
15248 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
15250 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
15252 * Control.cs: Removed debug code
15253 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
15256 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
15258 * Control.cs: When creating the control, update the Z-order after
15259 all it's children are created, too. (Fixes nexxia not showing
15262 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
15264 * Control.cs: Do not update the anchoring distances if layout is
15265 suspended, instead do it once layout is resumed
15267 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
15270 - After many hours of debugging, for both Jackson and
15271 myself, it turns out that it helps to set the parent of a control
15272 if you want to actually see it onscreen. In the spirit of that
15273 discovery, we're now setting the parent of the control and
15274 it's children when the control's handle is created. This fix
15275 will make Lutz Roeder's Reflector run happily.
15276 - now just creating the handle instead of the whole control when
15277 getting a graphics context for the control.
15279 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
15281 * ScrollableControl.cs: When calculating the canvas, don't consider
15282 the scrollbar widths. Instead, predict if horizontal scrollbar
15283 will affect canvas when deciding on vertical display and vice versa.
15285 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
15287 * RichTextBox.cs: Set default RTF font for documents that don't
15288 have a font table (Fixes #77076)
15290 2005-12-22 Jackson Harper <jackson@ximian.com>
15292 * TextBoxBase.cs: It's difficult to do, but you can have an empty
15293 clipboard. This prevents a NullRef in that case.
15294 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
15295 clipboard. PRIMARY is for the currently selected text only. (We
15296 should implement PRIMARY at some point.
15298 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15300 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
15301 a Unicode function with a structure that was defined in Ansi way.
15304 2005-12-21 Jackson Harper <jackson@ximian.com>
15306 * StatusBar.cs: Statusbar handles its fore/back colours on it's
15307 on. Because thats how it rolls. (and this avoids it using ambient
15309 * ThemeWin32Classic.cs: Use the proper back color for filling.
15310 * Menu.cs: Use the system menu bar color for drawing menu
15311 bars. Using the window back color will bring ambient colours into
15314 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
15316 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
15317 Bitmaps were created and not disposed.
15319 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15321 * Control.cs (CreateControl): Don't do anything if the control is
15322 already created, otherwise we'd fire the OnCreated event more than
15325 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15327 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
15328 will always match. Instead return -1. Fixes #76464.
15330 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15332 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
15333 neither the beginning nor the end of the line (Fixes bug #76479)
15335 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
15338 - ControlNativeWindow.ControlFromHandle(): Now handling situation
15339 where handle is invalid
15340 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
15341 instead of slower linear search
15342 * NativeWindow.cs: Don't remove the window from the hashtable until
15343 after the driver has destroyed it (since the driver might use
15344 Control.FromHandle to lookup the control object
15345 * Hwnd.cs: Added DestroyPending property to track if a window is
15346 already destroyed as far as the driver is concerned and only hasn't
15347 yet notified the control
15349 - Activate(): Check if the window is still valid before using the
15351 - Implemented DestroyChildWindow() method to mark child windows as
15352 destroyed when a window is destroyed. This prevents situations
15353 where we might call an X method based on queued events for a
15354 window that already has been destroyed but we haven't yet pulled
15355 the destroy method from the queue.
15356 - Added a call to the new DestroyChildWindow() method to the drivers
15357 DestroyWindow code. Also now marking the destroyed window itself
15360 2005-12-20 Jackson Harper <jackson@ximian.com>
15363 * StatusBarPanel.cs: Don't calculate panel sizes on draw
15364 anymore. Just do them when needed, also track the rects of panels
15365 so that we can optimize refreshing more in the future.
15367 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
15369 * ColorDialog.cs: Fixed focus drawing in small color controls
15371 2005-12-19 Jackson Harper <jackson@ximian.com>
15373 * InternalWindowManager.cs:
15374 * MdiWindowManager.cs: Cleanup some coordinate system changes so
15375 moving windows works properly.
15377 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
15380 - Removed call to InitLayout() from SetBoundsCore(); doc says
15381 it's only called when a control is added to a container
15382 - Split InitLayout logic, moved to separate UpdateDistances() method
15383 since we need to perform those calculations more often than just
15384 when adding the control to a container. (Needed to fix #77022)
15385 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
15386 - Reduced the OnBindingContextChanged events count, don't send them
15387 unless the control is created, we still aren't totally matching
15388 MS, but I can't quite figure out some of their rules
15390 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
15392 * ThemeClearlooks.cs: Corrected distance between ProgressBar
15395 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
15397 * ThemeClearlooks.cs:
15398 - Updated ProgressBar drawing
15399 - Corrected drawing of ScrollBars and scroll buttons
15400 - Some temporary fixes for minor pixel artefacts
15402 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
15405 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
15406 cause events to be sent in the same order as MS does.
15407 - Added ChangeParent() method to trigger various OnXXXChanged events
15408 that need to be fired when a parent changes (This is a reworking
15409 of the patch from r54254, with the X11 errors fixed)
15410 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
15411 since on MS we get OnLayoutChanged events when calling Clear()
15412 - Changed Enabled property to consider parent state as well, if a
15413 parent is not enabled, the control will not be either
15414 - Changed Parent property to simply call Controls.Add() since that
15415 now does all the work required, this way we avoid code duplication
15416 - Threw in a few OnBindingsContextChanged calls to try and match
15417 when MS sends them. We seem to send a few too many, though.
15418 - Added call to CreateControl when adding the control to a parent.
15419 We were never calling CreateControl. Still needs some work, in
15420 some places we treat HandleCreated and ControlCreated as equal,
15422 - Removed obsolete commented out code from UpdateZOrder()
15424 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
15426 * ThemeClearlooks.cs: Updated TrackBar drawing.
15428 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
15430 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
15432 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
15434 * FileDialog.cs: Add the Help button and the open readonly
15435 checkbox only if needed
15437 2005-12-16 Jackson Harper <jackson@ximian.com>
15439 * Control.cs: Make sure we have an active menu before trying to
15440 process commands on it. Prevents menu-less forms from crashing
15441 when Alt is pressed.
15442 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
15444 * RichTextBox.cs: Expand statement to help out gmcs and fix the
15447 2005-12-16 Jackson Harper <jackson@ximian.com>
15449 * InternalWindowManager.cs: Don't translate tool windows screen
15450 coordinates. This fixes windows 'bouncing' around when being moved.
15452 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
15455 - MaxLength now treats 2^31-1 equal to unlimited length (this is
15456 not quite MS compatible, MS uses that number only for single line
15457 and 2^32-1 for multi-line, but I figure it won't hurt keeping
15459 - Now enforcing the MaxLength limit when entering characters
15460 - Added argument to internal Paste() method to track if it's called
15461 from programatically or via keyboard, since keyboard driven pastes
15462 need to enforce max-length
15463 - Added logic to Paste to only paste as many chars as MaxLength
15465 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
15467 - Added Length property to return number of characters in document
15468 - Added private CharCount property which only tracks actual chars
15469 in the document (no linefeeds) and fires event when CharCount
15471 - Added tracking of character count to all methods that alter it
15472 - Added LengthChanged event to allow applications to subscribe
15473 to any changes to the document
15475 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
15478 - Removed local password_char field (moved to TextBoxBase)
15479 - Now setting the document's password var when password is
15482 - Added password_char field (needed here so MultiLine can
15484 - Added logic to MultiLine property setter to set the document's
15485 variable when password display is allowed
15486 - Removed debug code and made some debug code conditional
15488 - Added RecalculatePasswordLine() method to handle special password
15490 - Added PasswordChar property, also added related tracking vars
15491 - Draw() method now uses local text var for grabbing text to draw,
15492 this var is set to line.text unless we're doing password display,
15493 then it is set to the pre-generated all-password-chars line
15494 - Added calling RecalculatePasswordLine() method for password lines
15496 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
15499 - Added Reparented property to allow tracking of Window Manager
15500 reparenting actions (which affect X/Y calculations of toplevel
15502 - Made ToString() print window handles in hex
15504 - AddConfigureNotify(): Now uses reparented state off Hwnd to
15505 determine if X/Y needs offsetting
15506 - AddConfigureNotify(): Fixed offset calculations
15507 - Now adds ReparentNotify messages into the queue
15508 - Now processes ReparentNotify messages and causes a
15509 WM_WINDOWPOSCHANGED message to be sent upstream if a window
15510 is reparented (as most likely it's X/Y coordinates are changed
15513 2005-12-14 Jackson Harper <jackson@ximian.com>
15515 * XplatUIX11.cs: Tool windows still need to respek focus.
15517 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
15519 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
15520 have a working release
15522 2005-12-13 Jackson Harper <jackson@ximian.com>
15524 * Form.cs: Update styles after setting the border style regardless
15525 of whether or not the window is using a window manager.
15527 2005-12-13 Jackson Harper <jackson@ximian.com>
15529 * Form.cs: We now hook into an internal window manager instead of just an
15530 MDI subsystem, this is so we can have properly behaving tool windows.
15531 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
15532 * InternalWindowManager.cs: New internal class that acts as a
15533 window manager for tool windows and as a base for mdi windows.
15534 * MdiWindowManager.cs: New class that acts as a window manager for
15537 2005-12-12 Jackson Harper <jackson@ximian.com>
15539 * Control.cs: Updates so we match behavoir for for implicit
15540 controls. Fixes explosions in MDI.
15542 2005-12-12 Jackson Harper <jackson@ximian.com>
15544 * Control.cs: Implement Invalidate (Region).
15546 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
15549 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
15550 the same events as MS does. MS fires events for each property
15551 except, for unknown reasons, Cursor, when the control is reparented.
15552 I can't seem to totally match add/remove since MS also fires some
15553 VisibleChanged events, which makes no sense. Consolidated the
15554 parenting code into a separate method so it can be called from
15555 both Add and Remove. set_Parent no longer needs any special logic
15556 as it calls the parent's add method which implicitly fires
15558 - Removed some obsolete code and debug output
15559 - Enabled state is inherited from parents, if this is enabled
15561 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
15563 * Form.cs: Removed commented out code
15565 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
15568 - Added internal version of Invoke, with additional argument
15569 indicating if we're calling it from a Dispose() handler. That
15570 way we can avoid BeginInvoke throwing an exception if we're
15571 calling for an already destroyed window.
15572 - Added a dispose argument to BeginInvokeInternal, and made the
15573 check if a valid window handle chain exists conditional on
15574 it not being a dispose call
15575 - Removed code in DestroyHandle to destroy our children. Since we
15576 now handle the WM_DESTROY message we will catch all our children
15578 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
15580 - Added a field to track the application context of the form.
15581 - No need to set closing variable as response to WM_CLOSE, instead
15582 we destroy the window. We also call PostQuitMessage if the form
15583 has an application context (which makes it the main app form,
15584 which, when closed terminates the app)
15586 - Dropped Exit() method, it's naming was confusing
15587 - Added PostQuitMessage() which causes GetMessage to return false
15588 once the message queue is empty
15589 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
15591 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
15592 no longer a valid XplatUI method, but left it in since it's used
15593 internally. Added empty PostQuitMessage() method.
15594 * MenuAPI.cs: Replaced call to Exit() with call to
15595 PostQuitMessage, even though this is probably no longer needed.
15596 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
15597 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
15599 - Replaced call to XplatUI.Exit() with PostQuitMessage()
15600 - Removed old debug code that would call XplatUI for exception
15601 display, enabled standard exception handling (Still not enabled
15602 though, until NativeWindow's ExternalExceptionHandler define
15605 - Added internal method to allow control to update NativeWindow
15606 after a window has been destroyed
15607 - Added handling of already destroyed windows when calling i
15609 - Added removal of handle from list on ReleaseHandle
15611 - Dropped GetMessageResult var and related code
15612 - Added PostQuitState to field to track if PostQuitMessage has been
15614 - Dropped Exit() method
15615 - Added PostQuitMessage() method
15616 - GetMessage now will return false if PostQuitState is set and no
15617 more messages are in the queue.
15618 - Expose handler will no longer generate WM_PAINT messages if we are
15619 in PostQuitState since it's very likely any windows have already
15620 been destroyed, and since Hwnd won't get updated until we have
15621 processed the DestroyNotify we'd be causing X errors.
15623 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15625 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
15626 Thanks to Mike for pointing out the err of my ways.
15628 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15630 * Control.cs(PreProcessMessage): Moved menu handling back, but
15631 after all other key handling, to match MS (who handles Menu in
15633 * Menu.cs (WndProc): Removed my brainfart
15635 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15637 * Control.cs(PreProcessMessage): Removed special menu handling
15638 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
15640 2005-12-07 Mike Kestner <mkestner@novell.com>
15642 * Control.cs : special case SYSKEYUP so that we can adjust keynav
15643 state according in tracker.
15644 * Menu.cs : promote tracker field to base class and provide a tracker
15645 lookup capability. Add/Remove shortcuts dynamically if the top menu
15646 has a tracker. Unparent items that are removed from the collection.
15647 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
15648 * Theme*.cs: add always_show_hotkeys field to support configurability
15649 of mnemonic display. win32 doesn't show mnemonics until Alt is
15652 2005-12-07 Jackson Harper <jackson@ximian.com>
15654 * MdiChildContext.cs: Use Control.ResetCursor.
15655 * Control.cs: ResetCursor needs to set the property so that the
15656 correct XplatUI call gets made.
15658 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15660 * Control.cs: More fixes to make our key events match MS. We
15661 were not setting the modifier state on KeyData, and we were
15662 not generating any events when Alt was pressed with a key
15663 since handling of WM_SYSxxx was missing for the OnKey methods.
15665 2005-12-07 Jackson Harper <jackson@ximian.com>
15667 * MdiChildContext.cs: reenable the sizing code.
15668 - When the mouse leaves a window reset its cursor.
15670 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
15672 * ThemeClearlooks.cs: Reflect latest Hwnd changes
15674 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
15676 * Hwnd.cs: Now using the theme 3d bordersize to calculate
15677 widths of Fixed3D borders
15679 2005-12-07 Jackson Harper <jackson@ximian.com>
15681 * MdiClient.cs: Fix warnings. Earn Mike's love.
15683 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
15685 * ThemeClearlooks.cs:
15686 - Adjusted mouse over button color
15687 - Added first parts of CheckBox drawing
15688 - Added correct color for selected text background
15689 - Fixed ComboBox drawing
15690 - Added CPDrawBorder3D and CPDrawBorder
15692 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
15694 * XplatUIX11.cs: Added call to XBell for AudibleAlert
15696 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
15698 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15699 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
15700 alert users via sound. We could add an enum arg with different
15701 types of alerts in the future
15703 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
15705 * Control.cs: Fix behaviour problems pointed out by Mike
15707 2005-12-05 Mike Kestner <mkestner@novell.com>
15709 * StatusBarPanel.cs: add Invalidate method and hook it into all the
15710 prop setters. Calls parent.Refresh for now, but could be maybe be
15711 optimized with an internal method on StatusBar at some point.
15714 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
15716 * RichTextBox.cs: Implemented get_SelectionColor
15718 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
15720 * ThemeClearlooks.cs:
15721 - Removed dead code
15722 - Draw black button border only if button is Form.AcceptButton
15723 - Draw correct button color for pressed RadioButton if the mouse
15724 has entered the button
15725 - Updated ProgressBar drawing!
15726 - Updated CPDrawSizeGrip drawing
15727 - Updated StatusBarPanel drawing
15729 2005-12-05 Mike Kestner <mkestner@novell.com>
15731 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
15732 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
15734 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
15736 * ThemeClearlooks.cs: Initial check-in, activate with
15737 export MONO_THEME=clearlooks
15738 * ThemeEngine.cs: Added ThemeClearlooks
15740 2005-12-03 Mike Kestner <mkestner@novell.com>
15742 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
15745 2005-12-02 Jackson Harper <jackson@ximian.com>
15747 * Form.cs: If the child form has no menu the default main menu is
15748 used as the active menu.
15750 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
15752 * ListBox.cs: Check if any items exist before trying to resolve
15753 coordinates into items
15755 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
15757 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
15758 as the second color for the background hatch
15760 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
15762 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
15763 * RichTextBox.cs: FormatText position arguments are 1-based, now making
15764 sure that what we pass to FormatText is always 1-based. Fixes #76885
15766 2005-11-29 Miguel de Icaza <miguel@novell.com>
15768 * NumericUpDown.cs (EndInit): When we are done initializing,
15769 reflect any updates on the UI.
15771 2005-12-02 Jackson Harper <jackson@ximian.com>
15773 * ImplicitHScrollBar.cs:
15774 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
15775 their container controls.
15776 * TreeView.cs: Use the new implicit scrollbars.
15778 2005-12-02 Jackson Harper <jackson@ximian.com>
15780 * TreeView.cs: Make top_node internal so the TreeNodeCollections
15782 * TreeNodeCollection.cs: If we remove the topnode we need to
15783 update topnode to the next node in line.
15784 - When clearing nodes go through the same process as removing
15785 them, so they get depareneted and checked if they are top node.
15787 2005-12-01 Jackson Harper <jackson@ximian.com>
15789 * TreeView.cs: When imagelists are used the image area is
15790 selectable as well as the text.
15791 - If there are no selected nodes select the first one.
15792 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
15793 so don't do it more then we need to.
15795 2005-12-01 Jackson Harper <jackson@ximian.com>
15797 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
15798 that arrows can be scaled.
15800 2005-12-01 Jackson Harper <jackson@ximian.com>
15802 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
15803 fail. Patch by Dieter Bremes
15805 2005-11-30 Jackson Harper <jackson@ximian.com>
15807 * Form.cs: Property is 2.0 only
15808 * PrintDialog.cs: Signature fix.
15810 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
15813 - No longer artificially moves text 2 pixels down (now that we have
15814 borders this is no longer needed)
15815 - Added calcs for left, hanging and right indent
15817 2005-11-23 Mike Kestner <mkestner@novell.com>
15819 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
15821 2005-11-30 Jackson Harper <jackson@ximian.com>
15823 * MdiChildContext.cs: Set the cloned menus forms, as these don't
15824 get cloned as part of CloneMenu ().
15825 * Menu.cs: Make sure the parent of the items get set correctly
15826 when they are added. And the owners are notified of the changes.
15827 * Form.cs: Create an ActiveMenu property, so that when MDI is used
15828 we can change the menu being displayed/handled by the form without
15829 changing the menu assosciated with the form.
15830 - Don't let Mdi children draw/handle menus.
15832 2005-11-30 Jackson Harper <jackson@ximian.com>
15834 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
15835 a MenuChanged event. Just to make the API a little more
15838 * MenuItem.cs: Use the new OnMenuChanged
15839 * MdiChildContext.cs: Handle menu merging.
15840 * Form.cs: Implement MergedMenu.
15842 2005-11-30 Jackson Harper <jackson@ximian.com>
15844 * Menu.cs: We were misusing Add. Add goes behind the specified
15845 index according to the docs, and does not replace the specified
15846 index. So I added an Insert method.
15848 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
15850 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
15851 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
15853 * RichTextBox.cs: Added calls to base for DnD events
15855 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
15858 - Fixed drag-selection related crash; style fixes
15859 - Implemented undo class
15860 o Implemented method to capture document state for specified
15861 range in document tree
15862 o Implemented method to restore captured document state
15863 o Implemented cursor tracking
15864 o Implemented basic undo stack
15865 - Added undo cursor tracking to methods altering cursor location
15866 - Added undo tracking to selection deletion (still missing
15867 other text-altering hookups)
15869 - Added SelectionLength property
15870 - Implemented CanPaste()
15871 - Implemented Paste()
15872 - Added missing protected methods
15873 - Fixed RTF->Document conversion; now uses font index 0 and color
15874 index 0 as the default font for the parsed text
15875 - Fixed RTF<->Document font size translation
15876 - Fixed RTF generation, now properly handles cross-tag boundaries
15877 for single line selection
15878 - No longer always appends blank line to generated RTF
15880 - Added missing attributes
15881 - Hooked up undo-related methods
15883 - Implemented Copy()
15884 - Implemented Paste()
15885 - Implemented Cut()
15886 - Fixed caret mis-behaviour on backspace across line-boundaries
15888 2005-11-29 Jackson Harper <jackson@ximian.com>
15890 * MdiClient.cs: Add a method for activating mdi children. Very
15891 basic right now. I imagine someday it might need more girth.
15892 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
15893 children windows names are added to the menu item.
15894 * ThemeWin32Classic.cs: Draw the arrow if the item is an
15895 mdilist. This happens regardless of whether or not there are any
15896 mdi windows to see in the list, and according to my tests happens
15897 before the items are even added. Also happens if there isn't even
15898 an mdi client to get windows from.
15900 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
15902 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
15903 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
15905 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
15907 * DataGridTableStyle.cs:
15908 - Create always the styles for the missing columns even if they are
15909 provided by the user (not default table style)
15912 - Fixes SetDataBinding (always re-attach source)
15913 - Fixes SetNewDataSource (only clear styles if they are not for
15915 - Expands OnTableStylesCollectionChanged to handle style refresh
15916 and remove properly
15918 2005-11-29 Jackson Harper <jackson@ximian.com>
15920 * FileDialog.cs: Implement missing bits, remove some dead
15922 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
15923 creation of the panel so that the options set on the dialog are
15924 seen when the panel is created.
15925 * TreeView.cs: raise a click when items are clicked.
15927 2005-11-29 Jackson Harper <jackson@ximian.com>
15929 * MdiClient.cs: Pass some signature methods through to base.
15931 2005-11-28 Jackson Harper <jackson@ximian.com>
15933 * ListView.cs: Raise the click event when items are clicked.
15935 2005-11-28 Jackson Harper <jackson@ximian.com>
15937 * MdiClient.cs: Make this algorithm even more beautiful. And fix
15940 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
15942 * ThemeNice.cs: - Removed 1 pixel bitmaps
15943 - Use SmoothingMode.AntiAlias where it makes sense
15944 (ScrollButton arrow for example)
15945 - Enhanced Button focus drawing
15946 - Fixed ComboBox drawing (no artefacts anymore, focus
15947 rectangle is back again, reduced size of ComboButton, etc.)
15948 - Fixed RadioButton focus drawing for Appearence.Button
15949 - Slight ScrollButton redesign
15950 - Some LinearGradientBrush size fixes
15951 - GroupBoxes have now rounded edges
15952 - Fixed StatusBar drawing
15954 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
15956 * ThemeNice.cs: - Remove dead code
15957 - use correct background colors for menus, etc.
15958 - Fake pixel drawing with 1 pixel bitmaps
15960 2005-11-24 Jackson Harper <jackson@ximian.com>
15962 * MdiClient.cs: Size the scrollbars when resizing the window.
15963 - Resize the maximized windows when the client is resized
15964 * Form.cs: Make the child context available
15966 2005-11-23 Jackson Harper <jackson@ximian.com>
15968 * MdiChildContext.cs: Don't size windows if they are maximized.
15970 2005-11-23 Mike Kestner <mkestner@novell.com>
15972 * ContextMenu.cs: use MenuTracker.
15973 * Control.cs: remove menu handle usage.
15974 * Form.cs: remove menu handle usage.
15975 * Hwnd.cs: remove menu handle usage.
15976 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
15977 motion and clicks to the new Tracker handlers.
15978 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
15980 * MenuAPI.cs: refactored to combine popup and menubar event handling.
15981 Killed the MENU and MENUITEM data types and associated collections
15982 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
15983 MenuTracker class that exposes the leftovers from the old MenuAPI
15984 static methods. Restructured Capture handling so that only one grab is
15985 done for the entire menu hierarchy instead of handing off grabs to
15986 submenus. Tracker now has an invisible control to Capture when active.
15987 * MenuItem.cs: add sizing accessors, kill Create
15989 * Theme.cs: remove menu handle and MENU(ITEM) usage.
15990 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
15991 MENU(ITEM). remove menu handle usage, use Menu directly.
15992 * XplatUIDriver.cs: remove menu handle usage.
15993 * XplatUIOSX.cs: remove menu handle usage.
15994 * XplatUIWin32.cs: remove menu handle usage.
15995 * XplatUIX11.cs: remove menu handle usage.
15997 2005-11-22 Jackson Harper <jackson@ximian.com>
15999 * Hwnd.cs: Don't compute the menu size for
16000 DefaultClientRectangle.
16001 - Reenable menu sizes being computed for GetClienRectangle.
16002 * Form.cs: Remove comment of trechery
16004 2005-11-22 Jackson Harper <jackson@ximian.com>
16006 * Hwnd.cs: The adjustments for the menu bar are made when it is
16007 attached to the form.
16009 2005-11-19 Jackson Harper <jackson@ximian.com>
16011 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
16012 (just like on windows).
16014 2005-11-19 Jackson Harper <jackson@ximian.com>
16016 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
16017 use real buttons anymore because they are in non client area. The
16018 one TODO here is that I need to somehow invalidate a section of
16019 the non client area.
16021 2005-11-18 Jackson Harper <jackson@ximian.com>
16023 * Control.cs: Put the enum check back in now that MDI doesnt have
16024 to use this to set border styles.
16025 * Form.cs: Only set mdi child windows borders if the handle has
16027 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
16028 this directly on to the driver.
16029 - Get the move start position before adjusting for the titlebar
16030 height, this fixes the windows "skipping" when they are first
16033 2005-11-18 Jackson Harper <jackson@ximian.com>
16035 * XplatUIX11.cs: Just compute the mdi borders separately as they
16036 don't totally match up with normal form borders.
16038 2005-11-18 Jackson Harper <jackson@ximian.com>
16040 * Control.cs: Set WS_ styles for borders, so that the driver does
16041 not have to retrieve the control instance to figure out what kind
16042 of borders it should have.
16043 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
16044 driver can know its an mdi child easily.
16045 * XplatUIX11.cs: Get the border styles and whether the window is
16046 MDI from the Styles and ExStyles params instead of having to get a
16047 control. This prevents a chicken and egg problem.
16049 2005-11-18 Jackson Harper <jackson@ximian.com>
16051 * MdiClient.cs: Fix typo so scrollbars show up correctly.
16053 2005-11-18 Jackson Harper <jackson@ximian.com>
16055 * MdiClient.cs: Calculate when to add and remove scrollbars
16057 * MdiChildContext.cs: Adjust the y position to take the titlebar
16059 - No height for FormBorderStyle.None
16061 2005-11-18 Jackson Harper <jackson@ximian.com>
16063 * Control.cs: Allow non enum values to be used for
16064 InternalBorderStyle. MDI does this to set a special border style.
16065 - New utility methods for converting points to/from client coords
16066 - Add the newly created control to the Controls collection before
16067 updating its style. This way UpdateStyle can walk the control
16068 heirarchy to find the control if needed.
16069 so I don't need to create a new Point object all the time.
16070 * Form.cs: Let MDI windows handle their border styles.
16071 - Set styles on MDI windows so the correct title style is derived.
16072 * MdiChildContext.cs: Move all the painting and window handling
16073 into the non client area.
16074 - Use correct sizing and put correct buttons on frames based on
16075 the FormBorderStyle.
16076 - Notify the mdi client about scrolling
16077 - Need to handle the buttons ourselves now, because they are all
16078 in non client areas and we can't add controls there.
16079 * MdiClient.cs: Halfway to scrolling, this implementation is
16080 somewhat broken though, we need to check to make sure other
16081 windows aren't causing scrolling before removing the bars. Also
16082 the bars need to be drawn on top, maybe I can switch implicit
16083 controls to be on top.
16084 * Hwnd.cs: caption_height and tool_caption_height are now
16085 properties of an hwnd, this way they can be set by the driver
16086 based on the type of window they are. In X11 the window manager
16087 handles the decorations so caption_height is zero unless its an
16089 - Add 3 pixel borders for MDI windows (0xFFFF).
16090 - Get rid of some code duplication, have DefaultClientRectanle
16091 just call GetClientRectangle.
16092 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
16094 - Set border styles differently for mdi windows.
16095 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
16098 2005-11-15 Mike Kestner <mkestner@novell.com>
16100 * Menu.cs: when adding an item to the collection, if item is already
16101 parented, remove it from the parent.
16103 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
16105 * X11DesktopColors.cs: Added KDE support
16107 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
16110 - Clipboard methods now can translate Rtf format
16111 - No longer removes clipboard contents whenever a new format is added
16112 to allow placing multiple formats on the clipboard
16113 * Clipboard.cs: Clipboard now supports getting a IDataObject and
16114 will place all formats contained in it onto the clipboard. Also
16115 now cleans the clipboard before placing a new object onto it
16117 - Implemented set_Rtf
16118 - Implemented set_SelectedRtf
16119 - Created InsertRTFFromStream() method to allow single code base
16120 for all properties and methods that insert RTF into document
16121 - Removed debug output
16123 - Fixed Delete(int) to fix up line numbers
16124 - Fixed ReplaceSelection to combine start and end line
16125 - Fixed serious DeleteChars bug that would leave the document tree
16127 - Improved DumpTree with several logic checks to detect broken
16129 - Removed debug lines
16130 - Fixed Caret.WordForward/WordBack moving code, now always also
16131 updates caret.tag (fixes crash when word-selecting across tag
16132 boundaries via keyboard)
16133 - Added Insert() method for inserting multiline text into documents
16134 - Fixed DeleteChars() calculation errors that would cause a broken
16135 tag chain with multiple tag lines
16136 - DeleteChars() no longer crashes on multi-tag lines if not all tags
16137 - Split() no longer moves caret if split is at caret location
16138 - ReplaceSelection() now updates the cursor and re-displays it
16139 - ReplaceSelection() now uses new Insert() method to avoid code
16141 - FormatText() can now handle formatting partial lines
16143 - Append now uses new TextControl.Insert() method (this avoids
16145 - Implemented Ctrl-X (Cut) (
16146 - Implemented Ctrl-C (Copy)
16147 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
16148 regeneration when pasting text; roundtripping Copy&Paste within
16149 edit control still fails due to some calculation bugs in GenerateRTF)
16150 - The Delete key will now remove the current selection if it is visible
16151 * TextBox.cs: Removed debug lines
16152 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
16153 driver to be initialized and can't therefore be done via a static ctor)
16155 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
16157 * TextControl.cs: Added backend code for finding char arrays and strings
16159 - Added mouse wheel scroll support
16160 - Added support for VScroll and HScroll events
16162 - Implemented all seven Find() variants
16163 - Implemented GetCharFromPosition()
16164 - Implemented GetCharIndexFromPosition()
16165 - Implemented GetLineFromIndex()
16166 - Implemented GetPositionFromCharIndex();
16167 - Implemented SaveFile for PlainText and UnicodeText
16168 - Fixed set_Font, now setting a new font applies that font to
16170 - Implemented generic Document to RTF converter
16171 - Implemented SaveFile for RichText format (still missing unicode
16172 conversion for non-ansi chars)
16173 - Implemented get_Rtf
16174 - Implemented get_SelectedRtf
16176 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
16178 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
16179 to allow any captures to be released before triggering OnClick. This
16180 way a click handler may capture the mouse without interference.
16181 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
16182 This way we send them even though X may not allow a grab (if the window
16183 isn't visible, for example)
16185 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
16187 * DataGridViewRowEventArgs.cs: DataGridView implementation
16188 * DataGridViewElement.cs: DataGridView implementation
16189 * DataGridViewComboBoxCell.cs: DataGridView implementation
16190 * DataGridViewDataErrorContexts.cs: DataGridView implementation
16191 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
16192 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
16193 * ImageLayout.cs: DataGridView implementation
16194 * DataGridViewComboBoxColumn.cs: DataGridView implementation
16195 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
16196 * DataGridViewSelectionMode.cs: DataGridView implementation
16197 * IDataGridViewEditingControl.cs: DataGridView implementation
16198 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
16199 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
16200 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
16201 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
16202 * DataGridViewColumnSortMode.cs: DataGridView implementation
16203 * DataGridView.cs: DataGridView implementation
16204 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
16205 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
16206 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
16207 * Padding.cs: DataGridView implementation
16208 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
16209 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
16210 * DataGridViewRowEventHandler.cs: DataGridView implementation
16211 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
16212 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
16213 * DataGridViewButtonCell.cs: DataGridView implementation
16214 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
16215 * DataGridViewEditMode.cs: DataGridView implementation
16216 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
16217 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
16218 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
16219 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
16220 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
16221 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
16222 * DataGridViewCellEventHandler.cs: DataGridView implementation
16223 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
16224 * DataGridViewCellStyleConverter.cs: DataGridView implementation
16225 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
16226 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
16227 * DataGridViewColumnEventArgs.cs: DataGridView implementation
16228 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
16229 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
16230 * QuestionEventArgs.cs: DataGridView implementation
16231 * IDataGridViewEditingCell.cs: DataGridView implementation
16232 * DataGridViewTriState.cs: DataGridView implementation
16233 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
16234 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
16235 * DataGridViewColumnCollection.cs: DataGridView implementation
16236 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
16237 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
16238 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
16239 * DataGridViewColumn.cs: DataGridView implementation
16240 * DataGridViewCellBorderStyle.cs: DataGridView implementation
16241 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
16242 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
16243 * DataGridViewRow.cs: DataGridView implementation
16244 * DataGridViewImageCellLayout.cs: DataGridView implementation
16245 * DataGridViewImageCell.cs: DataGridView implementation
16246 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
16247 * DataGridViewCheckBoxCell.cs: DataGridView implementation
16248 * DataGridViewHeaderCell.cs: DataGridView implementation
16249 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
16250 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
16251 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
16252 * DataGridViewTextBoxColumn.cs: DataGridView implementation
16253 * QuestionEventHandler.cs: DataGridView implementation
16254 * DataGridViewCellStyleScopes.cs: DataGridView implementation
16255 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
16256 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
16257 * DataGridViewCell.cs: DataGridView implementation
16258 * DataGridViewCellEventArgs.cs: DataGridView implementation
16259 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
16260 * DataGridViewCellStyle.cs: DataGridView implementation
16261 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
16262 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
16263 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
16264 * TextFormatFlags.cs: DataGridView implementation
16265 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
16266 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
16267 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
16268 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
16269 * DataGridViewButtonColumn.cs: DataGridView implementation
16270 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
16271 * HandledMouseEventArgs.cs: DataGridView implementation
16272 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
16273 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
16274 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
16275 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
16276 * DataGridViewRowCollection.cs: DataGridView implementation
16277 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
16278 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
16279 * DataGridViewHitTestType.cs: DataGridView implementation
16280 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
16281 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
16282 * DataGridViewColumnEventHandler.cs: DataGridView implementation
16283 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
16284 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
16285 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
16286 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
16287 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
16288 * DataGridViewContentAlignment.cs: DataGridView implementation
16289 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
16290 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
16291 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
16292 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
16293 * DataGridViewPaintParts.cs: DataGridView implementation
16294 * DataGridViewCellCollection.cs: DataGridView implementation
16295 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
16296 * DataGridViewImageColumn.cs: DataGridView implementation
16297 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
16298 * DataGridViewElementStates.cs: DataGridView implementation
16299 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
16300 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
16301 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
16302 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
16303 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
16304 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
16305 * DataGridViewRowHeaderCell.cs: DataGridView implementation
16306 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
16307 * DataGridViewTextBoxCell.cs: DataGridView implementation
16308 * DataGridViewBand.cs: DataGridView implementation
16309 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
16310 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
16311 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
16312 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
16313 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
16314 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
16315 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
16316 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
16317 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
16318 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
16319 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
16321 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
16323 * ThemeWin32Classic.cs:
16324 - Draw the outside focus rectangle around buttons
16325 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
16326 doesn't use end caps for every dash of a line anymore. This
16327 workaround ignores the forecolor.
16329 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
16331 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
16334 2005-11-07 Jackson Harper <jackson@ximian.com>
16336 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
16338 2005-11-07 Jackson Harper <jackson@ximian.com>
16340 * ScrollableControl.cs: Calculate the maximum and change vars
16341 (more) correctly so that scrollbars appear as a sensible size.
16343 2005-11-04 Jackson Harper <jackson@ximian.com>
16345 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
16347 * TreeView.cs: When the tree is sorted null out the top_node so
16348 that it is recalculated.
16349 - Use dotted lines instead of dashed lines to match MS better.
16351 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
16354 - Implements key search for items. Useful when browsing files with FileDialog
16355 - When changing view mode or when clear the items reset scrollbar positions
16357 2005-11-04 Jackson Harper <jackson@ximian.com>
16359 * CurrencyManager.cs: Implement the MetaDataChanged event, the
16360 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
16361 as to what the method may do as there is no real way of creating a
16362 derived CurrencyManager and calling the method.
16364 2005-11-03 Jackson Harper <jackson@ximian.com>
16366 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
16367 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
16368 method which seems to just be used internally to refresh the tabs.
16370 2005-11-03 Jackson Harper <jackson@ximian.com>
16372 * TabControl.cs: Implement the remove method. Fix some broken
16375 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
16377 * DateTimePicker.cs:
16378 - Added missing DateTimePickerAccessibleObject class
16379 - Added missing events
16380 - Added OnFontChanged method
16381 * Form.cs: Added missing attributes
16382 * TreeView.cs: Added missing attributes
16384 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
16386 * GridItemCollection.cs: Fix signatures
16388 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
16390 * XplatUI.cs: Updated build rev/date
16391 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
16392 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
16393 * Application.cs: Trigger context-specific ExitThread events
16395 2005-11-03 Jackson Harper <jackson@ximian.com>
16399 * GridTableStylesCollection.cs:
16404 * MonthCalendar.cs: Signature fixes
16406 2005-11-03 Jackson Harper <jackson@ximian.com>
16408 * TreeNodeCollection.cs: Remove should not be virtual.
16409 * TreeView.cs: Implement the last of the missing methods.
16411 2005-11-03 Jackson Harper <jackson@ximian.com>
16413 * TreeNodeConverter.cs: Implement to get off my class-status back.
16415 2005-11-03 Jackson Harper <jackson@ximian.com>
16417 * TreeView.cs: Hookup the bits for drag and drop.
16418 * TreeNode.cs: Don't cache the tree_view or index anymore, now
16419 that nodes can be moved from tree to tree easily this just causes
16420 all sorts of problems.
16421 * TreeNodeCollection: Don't need to give treenodes an index and
16422 treeview anymore when they are added, these are computed on the
16423 fly. Also make sure to remove a node before its added.
16425 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
16428 - Added CaretSelection enum
16429 - Added comparison methods to Marker struct, makes selection code
16431 - Added SelectionStart and SelectionEnd as 'moveable' location for
16432 the CaretDirection enum and handler
16433 - Added selection_prev variable to track optimized invalidation for
16434 word and line selection
16435 - Added SelectionVisible property (returns true if there is a valid
16437 - Switched CaretHasFocus to only display the caret if there is no
16439 - Avoiding StringBuilder.ToString to retrieve a single char, instead
16440 using the direct character index; should be much faster
16441 - Added various conditional debug statements
16442 - Fixed invalidation calculation for selection ranges
16443 - Added ExpandSelection() method to support word and line selection
16444 - Switched SetSelectionToCaret to use new Marker compare overloads
16445 - Added central IsWordSeparator() method to determine word
16446 separators/whitespace and FindWordSeparator() to streamline common
16447 usage of IsWordSeparator()
16449 - Removed unneeded grabbed variable, it was just mirroring
16451 - No longer firing OnTextChanged event when Text setter is called,
16452 since the base will fire the event for us
16453 - Added handling of Ctrl-Up/Down selection
16454 - Added handling of Shift-Cursorkey selection
16455 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
16457 - Added handling of Shift and Ctrl-Shift-Home/End selection
16458 - Removed some debug output
16459 - Added handling for single/double/tripple-click to place caret/
16460 select word/select line respectively (Fixes bug #76031)
16461 - Added support for drag expansion of word/line selection
16462 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
16465 2005-11-02 Jackson Harper <jackson@ximian.com>
16467 * X11Dnd.cs: If the drag is going to and from a MWF window just
16468 copy the data instead of sending it out through the X Selection
16471 2005-11-02 Jackson Harper <jackson@ximian.com>
16474 * XplatUIX11.cs: When in a drag we don't want motion notify
16475 messages to get passed on to the other controls. This prevents
16476 mouse move messages from showing up in the drag source.
16478 2005-11-02 Jackson Harper <jackson@ximian.com>
16480 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
16481 the correct button is release to end a drag.
16482 * XplatUIX11.cs: Make the button state internal so the drag system
16483 can access it. Dragging needs to know about all button releases,
16484 not just left button.
16486 2005-11-02 Miguel de Icaza <miguel@novell.com>
16488 * Form.cs (Icon): If the icon is null, reset the icon to the
16491 * Cursor.cs: When writing the AND-mask bitmap do not include the
16492 number of colors, but hardcode those to two (black and white),
16493 fixes the loading of color cursors (Paint Dot Net).
16495 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
16496 turn off autoscaling.
16498 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
16500 2005-11-02 Jackson Harper <jackson@ximian.com>
16502 * X11Dnd.cs: Make sure to send a status message if the pointer
16503 enters a control that can not accept a drop, otherwise the cursor
16504 isn't updated correctly. Also tried to compress the lines of code
16507 2005-11-02 Jackson Harper <jackson@ximian.com>
16509 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
16510 set actions correctly. This isn't perfect as XDND and win32 have
16511 some differences on how you allow actions. I'll clear this up by
16512 adding a path for drag from MWF to MWF windows.
16513 * XplatUIX11.cs: Hook into the dnd system.
16515 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
16517 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
16518 previously shown but they are no longer need it. Very obvious when
16519 browsing files with FileDialog.
16521 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
16523 * Control.cs: We always need to call OnPaintBackground. We pretty much
16524 ignore AllPaintingInWmPaint and always do the painting there, whether
16525 it's set or not, since we always ignore the WM_ERASEBKGND message
16526 (which we don't generate on X11). This fixes #76616.
16527 * Panel.cs: Removed unneeded background painting. This happens properly
16528 in Control.cs already
16530 2005-10-31 Mike Kestner <mkestner@novell.com>
16532 * Menu.cs: Add items to collection before setting their index.
16533 * MenuItem.cs : add range checking with ArgumentException like MS.
16536 2005-10-31 Jackson Harper <jackson@ximian.com>
16538 * ListBox.cs: Invalidate if the area is visible at all not just
16539 contained in the visible rect. Fixes unselection of semi visible
16542 2005-10-31 Jackson Harper <jackson@ximian.com>
16544 * Control.cs: Consistently name the dnd methods. Make them
16545 internal so we can override them to match some MS behavoir
16547 * Win32DnD.cs: Use the new consistent names.
16549 2005-10-31 Jackson Harper <jackson@ximian.com>
16551 * TreeView.cs: Don't draw the selected node when we lose focus.
16553 2005-10-31 Jackson Harper <jackson@ximian.com>
16555 * X11Dnd.cs: We still need to reset the state even though a full
16556 reset isn't being done, otherwise status's still get sent all over
16559 2005-10-31 Jackson Harper <jackson@ximian.com>
16561 * Control.cs: Make the dnd_aware flag internal so the dnd
16562 subsystem can check it. Catch exceptions thrown in dnd handlers to
16564 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
16565 * X11Dnd.cs: Handle null data in the converters. Set the XDND
16566 version when sending a XdndEnter. Use the control/hwnd dnd_aware
16567 flags to reduce the number of dnd enters/status's sent.
16569 2005-10-31 Jackson Harper <jackson@ximian.com>
16571 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
16573 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
16575 * PictureBox.cs: Fixes 76512
16577 2005-10-28 Jackson Harper <jackson@ximian.com>
16579 * X11Dnd.cs: Early implementation to support winforms being a drag
16580 source for data on X11. Also restructured the converters so they
16581 can go both ways now.
16582 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
16584 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
16586 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
16589 2005-10-27 Jackson Harper <jackson@ximian.com>
16591 * TreeNode.cs: Implement serialization so my DnD examples will work.
16593 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
16595 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
16596 TreeView.cs: Don't dispose objects that are not owned.
16598 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
16600 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
16601 should retrieve the current cursor and report that, but XplatUI
16602 doesn't (yet) have an interface for that (and I'm not sure I even
16604 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
16605 until any message loop processing is done (and the WM_SETCURSOR
16606 replaces the cursor to the proper one)
16608 - Fixed override behaviour, we can't set the cursor globally on X11,
16609 just for our windows.
16610 - Invalidating the System.Drawing X11 display handle when we are
16612 * Control.cs: Fix to make csc happy
16614 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
16617 - get_Text: Add last line (without trailing newline) to returned
16618 value (Fixes 76212)
16619 - get_TextLength: Count last line in returned length
16620 - ToString: Call Text property instead of duplicating code
16622 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
16624 * ImageList.cs: Dispose ImageAttributes objects.
16626 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
16628 * ImageList.cs: Use attribute constructors with less arguments where
16631 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
16633 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
16634 Use typeof instead of strings when assembly is referenced. Added
16635 some more comments.
16637 2005-10-21 Jackson Harper <jackson@ximian.com>
16639 * ListView.cs: Raise a double click event. Also tried to somewhat
16640 fix when the selectedindexchanged event is raised. Its still
16643 2005-10-21 Jackson Harper <jackson@ximian.com>
16645 * TreeView.cs: New method to invalidate the plus minus area of a
16646 node without invalidating the whole node (maybe this can be used
16647 in some more places).
16648 * TreeNodeCollection.cs: When adding to an empty node we need to
16649 invalidate its plus minus area so the little block shows up.
16651 2005-10-21 Jackson Harper <jackson@ximian.com>
16653 * TreeView.cs: Make sure that when we invalidate a node the bounds
16654 are big enough to cover the selected box and the focus
16655 rectangle. Use a different colour for the lines connecting nodes
16656 so they show up with all themes.
16658 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
16660 * NativeWindow.cs: Don't call anything that could call into the driver,
16661 we might be on a different thread.
16663 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
16665 * Control.cs(Dispose): Since Dispose might run on a different thread,
16666 make sure that we call methods that could call into the driver via
16667 invoke, to avoid thread issues
16669 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
16671 * XplatUI.cs: Removed finalizer
16672 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
16673 not allowing to be called on the finalizer thread.
16675 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
16678 - Reverted r51889 and r51891.
16679 - Added ImageListItem class that stores unmodified image items and image
16680 properties required to create list images until handle is created.
16681 - Added AddItem and moved image creation logic to AddItemInternal.
16682 - Added CreateHandle method that creates images based on unmodified items.
16683 - Added DestroyHandle that changes state to store unmodified items.
16684 - Add and AddStrip methods no more create handle.
16685 - ReduceColorDepth has no return value.
16686 - Dispose destroys handle.
16687 - Modified other methods to reflect the above changes.
16688 - Implemented key support.
16689 - Added profile 2.0 members and attributes.
16690 - Added private Reset and ShouldSerialize methods that provide the same
16691 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
16692 them as they are private.
16693 - Added some more comments about implementation details.
16695 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
16697 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
16699 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
16701 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
16703 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
16705 * DataGridDrawingLogic.cs: Fixes column hit calcultation
16706 * DataGridColumnStyle.cs: Remove debug message
16708 2005-10-20 Jackson Harper <jackson@ximian.com>
16710 * TreeView.cs: We can always get input keys regardless of whether
16711 or not editing is enabled. They are used for navigation.
16713 2005-10-20 Jackson Harper <jackson@ximian.com>
16715 * TreeNode.cs: Use the viewport rect for determining if a node
16716 needs to be moved for visibility. Don't use Begin/End edit. This
16717 calls a full refresh when its done.
16718 * TreeView.cs: New SetBottom works correctly. Make the viewport
16719 rect property internal so the treenodes can see it. When clicking
16720 on a node we need to ensure that its visible because it might just
16721 be partly visible when clicked.
16723 2005-10-20 Jackson Harper <jackson@ximian.com>
16725 * TreeNodeCollection.cs: Remove debug code.
16727 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
16729 * Datagrid.cs: Implements column sorting in Datagrid
16730 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
16732 2005-10-20 Jackson Harper <jackson@ximian.com>
16734 * TreeNodeCollection.cs: Remove items properly. Update the correct
16735 area after removing them.
16737 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
16739 * Datagrid.cs: Should not call base.OnPaintBackground
16741 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
16743 * XplatUIX11.cs (GetMessage):
16744 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
16745 window instead of client window
16746 - Now properly calculates NC_xBUTTONUP message coordinates
16747 - ScreenToMenu now properly calculates it's coordinates of whole
16748 window, since menus are in the whole window, not in the client
16750 - Added WholeToScreen coordinate translation method
16752 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
16754 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
16755 want to return a message, loop back to the beginning of the function
16756 and grab the next real message to process instead.
16758 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
16760 * Splitter.cs: Properly set limits if no filler control is used
16762 2005-10-19 Jackson Harper <jackson@ximian.com>
16764 * ColorDialog.cs: Don't show the help button if it is not enabled
16765 instead of disabling it (this is what MS does). Don't create the
16766 panel until the dialog is run, otherwise the vars (such as
16767 ShowHelp) are not set yet.
16769 2005-10-19 Jackson Harper <jackson@ximian.com>
16771 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
16772 are reduced when adding nodes.
16774 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
16777 2005-10-19 Jackson Harper <jackson@ximian.com>
16779 * FolderBrowserDialog.cs: End editing our treeview so the window
16780 actually gets refreshed.
16782 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
16784 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
16785 Obsoleted handling of WM_ERASEBKGND, now always draws our background
16788 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
16790 * MenuAPI.cs: Returns after Hidding window
16791 * XplatUIX11.cs: Added TODO found while debugging menu issues
16793 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
16795 * XplatUIX11.cs: Do not re-map the whole window when it's size
16796 becomes non-zero unless it's supposed to be actually visible
16798 2005-10-18 Jackson Harper <jackson@ximian.com>
16800 * TreeView.cs: We don't need to keep a count anymore.
16801 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
16802 use the Grow method.
16804 2005-10-18 Jackson Harper <jackson@ximian.com>
16806 * TreeNodeCollection.cs: Insert is not supported on arrays, so
16807 implement it manually here.
16809 2005-10-18 Jackson Harper <jackson@ximian.com>
16811 * ImageList.cs: Dont kill the list when the colour depth is
16812 changed, just change the colour depth of all the images.
16813 - Same goes for setting the image size. Just resize them all
16814 instead of killing the list softly.
16816 2005-10-18 Jackson Harper <jackson@ximian.com>
16818 * Control.cs: Don't invalidate empty rectangles.
16820 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
16823 - Adds checked item to the Checked/Item lists (where empty before)
16824 - Do not add items to the Selected lists if they are already present
16826 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
16827 - When deleting items make sure that we delete them for the Selected
16828 and Checked list also.
16830 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
16832 * Label.cs: Dispose objects no longer used
16833 * ThemeWin32Classic.cs: Dispose objects no longer used
16835 2005-10-18 Jackson Harper <jackson@ximian.com>
16837 * TabControl.cs: Don't refresh the whole control when the tabs are
16838 scrolled, we just need to refresh the tab area.
16840 2005-10-17 Jackson Harper <jackson@ximian.com>
16842 * XplatUIX11.cs: Compress code a little bit. Only calculate the
16843 after handle when we need it.
16845 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
16847 * Control.cs: When the parent size changes, recalculate anchor
16848 positions. Partial fix for #76462
16850 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
16852 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
16853 drawn. Fixes #76462
16855 2005-10-17 Jackson Harper <jackson@ximian.com>
16857 * MonthCalendar.cs: Don't create the numeric up down until our
16858 handle is created. Otherwise our handle is created in the
16859 constructor and we don't know if we are a WS_CHILD or WS_POPUP
16862 2005-10-17 Jackson Harper <jackson@ximian.com>
16864 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
16867 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
16868 * TreeNode.cs : small logical fix (was using local var instead of field)
16870 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
16872 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
16874 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
16876 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
16878 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
16881 - Re-implemented anchoring code. My first version was really broken.
16882 This fixes bug #76033. Unlike the previous implementation we will
16883 no longer have round errors since all numbers are calculated from
16884 scratch every time. Removed various anchor-related obsolete vars.
16885 - InitLayout no longer causes layout event firing and layout to be
16888 2005-10-16 Jackson Harper <jackson@ximian.com>
16890 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
16893 2005-10-16 Jackson Harper <jackson@ximian.com>
16895 * TabControl.cs: Remove debug code.
16897 2005-10-16 Jackson Harper <jackson@ximian.com>
16899 * XEventQueue.cs: Increase the default queue size (very simple
16900 apps needed to grow the queue).
16901 * Hwnd.cs: No finalizer so we don't need to suppress
16902 finalization. Compute the invalid area manually so a new rectangle
16903 does not newto be created.
16904 * ScrollableControl.cs: Don't set any params (otherwise visibility
16905 isn't set correctly).
16906 * MdiChildContext.cs: New constructor takes the mdi parent so it
16907 doesn't have to be computed and avoids a crash on windows. Draw
16908 the window icon properly, and allow the text to be seen.
16909 * Form.cs: Use new MdiChildContext constructor. Make sure the
16910 child context isn't null in wndproc.
16911 * TabControl.cs: Don't set focus, this is muddling keyboard
16912 behavoir. Expand the tab rows when a window size increase will
16913 allow extra tabs to be seen. Don't allow tabs smaller than the
16914 width of a window to be scrolled out of view.
16916 * TreeView.cs: Use measure string to calculate a nodes width, the
16917 width is cached and only updated when the text or the font is
16918 changed. Don't check for expand/collapse clicks on the first level
16919 nodes if root lines are disabled.
16921 2005-10-16 Ritvik Mayank <mritvik@novell.com>
16923 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
16925 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
16927 * DataGridBoolColumn.cs: fixes warning
16929 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
16931 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
16932 to match more to match more precisely the MS Net behavior
16934 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16936 * Hwnd.cs: Added field to track if window is mapped
16938 - Unmap windows if they become 0-size, re-map when
16939 they are >0 again; fixes #76035
16940 - Re-set our error handler after initializing X11Desktop
16941 to override any error handlers Gtk or whatever was called
16944 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16946 * CheckedListBox.cs: Removed unused vars
16947 * ListView.cs: Fixed signatures
16948 * RichTextBox.cs: Removed unused vars
16949 * TextBoxBase.cs: Removed unused vars
16950 * XplatUIWin32.cs: Removed unused vars
16951 * XplatUIX11.cs: Removed unused vars
16952 * XplatUI.cs: Updated version and date to latest published
16954 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16956 * Cursor.cs: Added private .ctor to work around a bug in
16957 resourceset (Thanks to Geoff Norton for the help on this)
16958 * SplitterEventArgs.cs: Made fields accessible so we don't
16959 waste boatloads of objects and can reuse the same one
16961 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
16962 any captions and borders when generating screen coordinates
16963 * Splitter.cs: Reimplemented control, now fully complete, uses
16964 rubberband drawing, supports and obeys all properties, has
16967 2005-10-13 Miguel de Icaza <miguel@novell.com>
16969 * Form.cs (Form): Setup default values for autoscale and
16970 autoscale_base_size; Make these instance variables, not static
16973 (OnLoad): on the first load, adjust the size of the form.
16975 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
16977 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
16978 width argument to DrawReversibleRectangle()
16979 * XplatUIWin32.cs, XplatUIX11.cs:
16980 - Implemented width for DrawReversibleRectangle()
16981 - Added logic to DrawReversibleRectangle that recognizes a zero
16982 width or height and only draws a line in that situation
16984 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
16986 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
16987 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
16988 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
16989 method (it uses our FosterParent window to get a graphics context)
16991 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
16993 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
16994 and SetWindowBackground methods
16996 - Setting proper ControlStyles
16997 - We no longer call XplatUI.SetWindowBackground and XplatUI.
16998 EraseWindowBackground, instead we draw the window background
16999 ourselves in PaintControlBackground. This behaviour is
17000 required to match MS, where, when OnPaintBackground is not
17001 called, the background is not drawn.
17002 - Removed unneeded Refresh() in set_Text
17003 * Hwnd.cs: Dropped the ErasePending support. No longer needed
17005 - Created DeriveStyles method to translate from CreateParams to
17006 FormBorderStyle and TitleStyle, also handles BorderStyle (which
17007 matches FormBorderStyle enum values)
17008 - Consolidated SetHwndStyles and CalculateWindowRect border/title
17009 style calculations into single DeriveStyles method
17010 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
17011 from redrawing the whole window on any resize or expose.
17012 - Fixed CreateWindow usage of SetWindowValuemask. Before not
17013 all styles were applied to our whole/client window appropriately
17014 - Removed EraseWindowBackground() and SetWindowBackground() methods
17015 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
17016 no longer clear/redraw the background through X
17017 - Removed handling of erase_pending bit, we have no use for it (or
17020 - Removed generation and handling of WM_ERASEBKGND message
17021 - Removed EraseWindowBackground() and SetWindowBackground() methods
17022 - Removed handling of hwnd.ErasePending flag
17024 - Removed EraseWindowBackground() and SetWindowBackground() methods
17025 - We no longer call EraseWindowBackground on PaintEventStart, we
17026 ignore the fErase flag, erasing is handled in Control in the
17028 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
17029 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
17030 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
17031 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
17032 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
17033 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
17034 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
17036 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
17038 * PropertyGrids.cs: Get sub properties
17039 * PropertyGridView.cs: Fix drawing code
17041 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
17043 * ListBox.cs: Fixes 76383
17045 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
17047 * DataGridTextBoxColumn.cs: Sets location and size before attachment
17048 * ThemeWin32Classic.cs: Fixes border drawing and calculations
17049 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
17052 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
17054 * ComboBox.cs: Fixes border drawing
17056 2005-10-10 Miguel de Icaza <miguel@novell.com>
17058 * MimeIcon.cs: Ignore errors if the file can not be read.
17060 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
17062 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
17063 - Fixed border calculations
17064 - Fixed horizontal scrolling in single column listboxes
17065 - Fixed drawing issues
17067 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
17069 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
17070 FormBorderStyle enum
17071 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
17072 code to determine FormBorderStyles from CreateParams
17074 - Fixed bug where we'd set the wrong window styles if we were
17075 not creating an MDI window
17076 - Added call to XplatUI.SetBorderStyle when form borders are set
17077 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
17079 - Removed obsolete edge style
17080 - Switched from BorderStyle to FormBorderStyle
17082 2005-10-10 Jackson Harper <jackson@ximian.com>
17084 * Form.cs: Use the property to get the window handle instead of
17085 accessing it directly. Prevents a null reference exception.
17087 2005-10-10 Jackson Harper <jackson@ximian.com>
17089 * TreeView.cs: Don't adjust the rect given to DrawString now that
17090 our libgdiplus draws correctly.
17092 2005-10-08 Jackson Harper <jackson@ximian.com>
17094 * TreeView.cs: Don't try to find the clicked on node if there are
17095 no nodes in the tree.
17097 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
17103 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
17105 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
17106 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
17108 Use ResPool for brushes and dispose System.Drawing objects that
17109 are not used anymore.
17111 2005-10-07 Jackson Harper <jackson@ximian.com>
17113 * MdiChildContext.cs: Use the new borders instead of drawing them
17116 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
17118 * Calling UpdateBounds after changing the window's BorderStyle
17119 since the style can change the ClientSize
17121 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17123 * Control.cs: Made PaintControlBackground virtual
17124 * Panel.cs: Overriding PaintControlBackground instead of using paint
17125 event; paint event method was interfering with 'real' users of the
17128 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
17130 * ThemeWin32Classic.cs: remove border drawing since it is handled
17131 by the base control class now and was causing double border drawing.
17133 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17135 * Panel.cs: Redraw our background on paint. Not a pretty solution,
17136 but it does seem to match MS behaviour. This fixes bug #75324
17138 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17140 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
17141 somewhat hackish looking
17143 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17146 - We now accept Enter even if AcceptEnter is false, if the containing
17147 form does not have an AcceptButton configured (fixes bug #76355)
17148 - Calculations are now fixed to no longer use Width/Height, but
17149 ClientSize.Width/Height, since we now support borders (this was
17150 a result of fixing borders and therefore bug #76166)
17151 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
17152 true (fixes bug #76354)
17154 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17157 - Defaulting BorderStyle and setting it in XplatUI when our window
17159 - Added enum check to InternalBorderStyle setter
17161 - Added drawing of window borders
17162 - Now properly calculates WM decorations offset for toplevel
17163 windows (fixes bug #74763)
17165 - Implemented BorderStyles for windows (we're letting win32 draw
17167 - Fixed the signature for SetWindowLong
17168 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
17169 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
17171 * UpDownBase.cs: Remove drawing of borders, this is handled by
17172 the driver, outside the client area
17173 * ListView.cs: Removed bogus border calculations. The control should
17174 be oblivious to borders, since those are not part of the client
17176 * X11DesktopColors.cs: Commented out (currently) unneeded variables
17177 * ThemeWin32Classic.cs: Removed border calculations from ListView
17180 2005-10-06 Jackson Harper <jackson@ximian.com>
17182 * MdiChildContext.cs: Clear out the old virtual position remove
17183 all the unneeded calls to CreateGraphics.
17185 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17187 * TextControl.cs: Use proper color for highlighted text; fixes #76350
17189 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17192 - Added loading and setting of our new default icon
17193 - Only set icon if window is already created
17195 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
17198 - Do not explicitly set the foreground and background colors, to
17199 allow inheriting from parents (fixes #76302)
17200 - Use Control's InternalBorderStyle property to deal with borders
17202 2005-10-06 Jackson Harper <jackson@ximian.com>
17204 * MdiChildContext.cs: Use the new xplatui function to draw a
17207 2005-10-06 Jackson Harper <jackson@ximian.com>
17209 * Form.cs: Add the parent before creating the child context cause
17210 we need the parent when setting up the child.
17212 2005-10-06 Jackson Harper <jackson@ximian.com>
17214 * FolderBrowserDialog.cs: redo the tree population code so a
17215 second thread isn't used. Should be a lot faster and more stable
17218 2005-10-05 Jackson Harper <jackson@ximian.com>
17220 * TreeView.cs: There are no expand/collapse boxes if the node has
17223 2005-10-05 Jackson Harper <jackson@ximian.com>
17225 * X11DesktopColors.cs: Get menu colours for the gtk theme.
17227 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
17229 * FileDialog.cs: Fix InitialDirectory
17231 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
17234 - Fixes changing between styles
17235 - Fixes simple mode
17236 - Fixes last item crashing when navigating with keyboard
17238 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
17240 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
17242 2005-10-05 Jackson Harper <jackson@ximian.com>
17244 * TreeView.cs: If updating the root node do a full refresh.
17245 * TreeNode.cs: The root node should be expanded by default. Also
17246 added a utility prop to tell if we are the root node.
17247 * TreeNodeCollection.cs: Only refresh if the node we are being
17248 added to is expanded. Also added a comment on a potential
17251 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
17253 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
17254 in dispose method. Fixes #76330
17256 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
17258 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
17260 - Implements vertical and horizontal scrolling using XplatUI
17261 - Fixes keyboard navagation
17262 - Fixes EnsureVisible
17264 - Handles and draws focus properly
17267 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
17269 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
17270 Create handle. NET_2_0: Destroy handle when value is null.
17272 2005-10-03 Jackson Harper <jackson@ximian.com>
17274 * ScrollBar.cs: My last scrollbar patch was broken. This is a
17275 revert and a new patch to prevent the thumb from refreshing so
17278 2005-10-02 Jackson Harper <jackson@ximian.com>
17280 * ScrollBar.cs: Don't update position if it hasn't actually
17281 changed. This occurs when you hold down the increment/decrement
17282 buttons and the thumb gets to the max/min.
17284 2005-10-01 Jackson Harper <jackson@ximian.com>
17287 * MdiChildContext.cs:
17288 * MdiClient.cs: Implement ActiveMdiChild in Form.
17290 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
17292 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
17294 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
17296 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
17299 2005-09-30 Jackson Harper <jackson@ximian.com>
17301 * ListBox.cs: Don't do a full refresh unless some data has
17304 2005-09-30 Jackson Harper <jackson@ximian.com>
17306 * TreeView.cs: Make sure that the checkboxes size is factored in
17307 even when not visible.
17309 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
17311 * FileDialog.cs: Fix Jordi's build break
17313 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
17316 - Use standard the Windows colours for the combobox as espected
17317 - Dispose objects that use resouces when no longer need them
17319 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
17321 * X11DesktopColors.cs: Initial incomplete implementation
17322 * XplatUIX11.cs: Added call to initialize X11DesktopColors
17324 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
17327 - Switched Theme color names to match the names defined in
17328 System.Drawing.KnownColors. Life's hard enough, no need to make
17330 - Added setters to all theme color properties so themes can set
17331 their color schemes. The setters also propagate the color changes
17332 to System.Drawing.KnownColors via reflection
17333 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
17334 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
17335 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
17336 use the new, more logical theme color names
17337 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
17339 * ThemeWin32Classic.cs:
17340 - Removed code to set the old classic Windows colors. Instead it
17341 now relies on the colors returned by System.Drawing.KnownColors
17342 which will be either modern static colors (Unix) or colors
17343 read from the user's configuration (Win32)
17344 - Updated to use the new, more logical theme color names
17345 - Switched DataGrid drawing code to use only Theme colors instead of
17346 a mix of System.Drawing.KnownColors and Theme colors
17347 - DrawFrameControl(): Removed code that fills the button area, the
17348 fill would overwrite any previous fill done by a control. This
17350 - Added DrawReversibleRectangle() stub
17351 * ScrollableControl.cs: Set visible state to false when scrollbars
17352 are removed (pdn fix)
17353 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
17354 DrawReversibleRectangle() method to allow drawing primitive
17356 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
17358 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17360 * ImageList.cs: Add(Icon): Create handle.
17362 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
17365 * ThemeWin32Classic.cs:
17366 - Fixes detail mode
17368 - Issues with drawing
17370 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17372 * ImageList.cs: Moved RecreateHandle back to ImageList as event
17373 source has to be the ImageList.
17375 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17377 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
17379 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17381 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
17383 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17385 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
17387 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
17388 * GridItem.cs: Fixed TODOs
17389 * GridItemCollection.cs: Added ICollection interface
17391 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
17393 * ImageList.cs: Resize icons when needed.
17395 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
17398 - Fixes GetBounds and returns on screen rects
17400 - Fixes vertical and horzintal scrolling of items
17401 * ThemeWin32Classic.cs:
17404 2005-09-29 Raja R Harinath <harinath@gmail.com>
17406 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
17408 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
17410 * ImageList.cs: Added comments about handle creation. Moved Handle,
17411 HandleCreated and OnRecreateHandle implementations to ImageCollection.
17412 Handle is created in Add methods.
17414 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
17416 * DataGridDrawingLogic.cs:
17417 - Takes rows into account on Colum calculations
17418 - Returns the column when clickig
17420 - Fixes default HitTestInfo values
17421 - Fixes HitTestInfo.ToString
17422 - Fixes ResetBackColor
17424 2005-09-28 Jackson Harper <jackson@ximian.com>
17426 * MdiChildContext.cs: Obey rules for fixed sized windows (no
17427 sizing or cursor changes). Also added some temp code to draw the
17428 titlebars text (Makes dev a little easier).
17430 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
17432 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
17434 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
17436 * ListBox.cs: Fixes bug 76253
17438 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
17440 * ImageList.cs: Added comments about the current implementation. Added
17441 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
17442 Format32bppArgb to preserve transparency and can use Graphics.FromImage
17443 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
17444 with Bitmap.LockBits for better performance. Revised the whole file to
17445 match MS.NET behaviour and provide better performance. Non-public
17446 interface members are calling public members even when they throw
17447 NotSupportedException for better maintainability. Moved ColorDepth,
17448 ImageSize, ImageStream and TransparentColor implementations to
17449 ImageCollection for better performance as these properties are not used
17451 * ImageListStreamer.cs: Added a new internal constructor that takes an
17452 ImageList.ImageCollection and serializes Images based on
17453 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
17454 match ImageList property name.
17456 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
17458 * ListBox.cs: Fixes IndexFromPoint for last item
17460 2005-09-27 Jackson Harper <jackson@ximian.com>
17462 * Form.cs: Set the position of new mdi children correctly.
17464 2005-09-27 Jackson Harper <jackson@ximian.com>
17466 * MdiClient.cs: New mdi children need to be added to the back of
17467 the controls collection so the zorder is set correctly. Also add a
17468 count of all the child windows that have been created.
17470 2005-09-27 Jackson Harper <jackson@ximian.com>
17472 * Form.cs (CreateParams): Setup MDI forms correctly.
17474 2005-09-27 Jackson Harper <jackson@ximian.com>
17476 * MdiChildContext.cs:
17477 * MonthCalendar.cs:
17483 * ScrollableControl.cs:
17484 * ComboBox.cs: Add implicit controls using the new implict control
17485 functionality in ControlCollection. Also try to block multiple
17486 control add in a suspend/resume layout to save some cycles.
17488 2005-09-27 Jackson Harper <jackson@ximian.com>
17490 * Control.cs: Add functionality to the controls collection to add
17491 'implicit controls' these are controls that are created by the
17492 containing control but should not be exposed to the user. Such as
17493 scrollbars in the treeview.
17494 * Form.cs: The list var of the ControlsCollection is no longer
17495 available because of the potential of implicit controls getting
17496 ignored by someone accessing the list directly.
17498 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
17500 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
17501 loose it's parent. (Fixed bug introduced in r49103 when we added
17502 setting the child parent to null on Remove)
17504 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
17506 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
17507 * Splitter.cs: Added missing attributes for BorderStyle property.
17508 * TextBoxBase.cs: Marked Calculate* methods internal.
17509 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
17512 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
17514 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
17516 2005-09-25 Jackson Harper <jackson@ximian.com>
17518 * TreeView.cs: Update the node bounds correctly regardless of
17519 whether the node is visible.
17521 2005-09-25 Jackson Harper <jackson@ximian.com>
17523 * ImageList.cs: Don't dispose the image after it is added to the
17524 image list. Only reformat images that need to be resized.
17526 2005-09-25 Jackson Harper <jackson@ximian.com>
17528 * ImageList.cs: Don't set the format when changing the image.
17530 2005-09-25 Jackson Harper <jackson@ximian.com>
17532 * TreeView.cs: We can't just assume the node has a font. Use the
17533 treeviews font if no node font is available.
17535 2005-09-25 Jackson Harper <jackson@ximian.com>
17537 * TreeView.cs: Allow the scrollbars to be reset with negative
17539 - Don't add scrollbars to negative sized windows.
17541 2005-09-23 Jackson Harper <jackson@ximian.com>
17543 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
17544 old Mono.Posix. Also remove some stray code that shouldn't have
17547 2005-09-23 Jackson Harper <jackson@ximian.com>
17549 * TreeView.cs: Attempt at proper sizing of the horizontal
17550 scrollbar. Also don't resize the scrollbars unless they are
17553 2005-09-23 Jackson Harper <jackson@ximian.com>
17555 * TreeView.cs: We don't need to expand the invalid area when the
17556 selection changes, as this is all drawn in the node's bounding
17557 box. The area needs to be expanded (previous typo was contracting
17558 it) when the focus rect moves.
17560 2005-09-23 Jackson Harper <jackson@ximian.com>
17562 * TreeView.cs: Display the selection box under the correct
17563 circumstances. We were rendering white text with no selection box
17566 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
17568 * TextControl.cs(Split): Now updates selection start/end if it points
17569 into a line that's being split. Fixes a FIXME and bug #75258
17571 2005-09-23 Jackson Harper <jackson@ximian.com>
17574 * ListControl.cs: Don't use the path when retrieving binding
17575 managers from the binding context. My bat sense tells me that the
17576 path is only used on insertion.
17578 2005-09-22 Jackson Harper <jackson@ximian.com>
17580 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
17582 2005-09-22 Jackson Harper <jackson@ximian.com>
17584 * Splitter.cs: There are special cursors used for splitting.
17585 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
17587 2005-09-22 Jackson Harper <jackson@ximian.com>
17589 * Splitter.cs: Change the cursor appropriately when the splitter
17590 is moused over, so the user actually knows there is a splitter
17593 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17595 * Label.cs : Fix ToString method to give same output as MS.NET
17597 2005-09-22 Jackson Harper <jackson@ximian.com>
17599 * TreeView.cs: Create the scrollbars when the handle is created
17600 and add them right away, just make them invisble. Also account for
17601 the window being shrunk vertically to the point that the vert
17602 scrollbar needs to be added.
17603 - Remove some 0.5 adjustments to get around anti aliasing issues.
17605 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
17607 * MainMenu.cs: Fixes default value
17608 * MenuItem.cs: Fixes default value
17610 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
17612 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
17614 2005-09-21 Jackson Harper <jackson@ximian.com>
17616 * Control.cs: Don't try to set the border style on the window if
17617 it hasn't been created. When the window is created the border
17618 style will be used.
17620 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17622 * Control.cs (Update): Don't call XplatUI if we don't have a
17625 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17627 * ContainerControl.cs: Instead of throwing an exception, print
17628 a one-time warning about Validate not being implemented
17629 * XplatUIWin32.cs: Removed debug output
17631 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17633 * Control.cs: Only set XplatUI background if we expect the windowing
17634 system to handle the background. This stops controls that draw their
17635 own background from flickering
17637 * XplatUIX11.cs: Support custom visuals and colormaps for window
17638 creation. This allows, amongst other things, using MWF X11 windows
17641 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
17643 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
17644 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
17645 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
17646 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
17647 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
17648 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
17649 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
17650 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
17651 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
17652 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
17653 GridColumnStylesCollection.cs,
17654 IDataGridColumnStyleEditingNotificationService.cs,
17655 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
17656 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
17657 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
17658 TreeNodeCollection.cs, AmbientProperties.cs,
17659 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
17660 DataObject.cs, ErrorProvider.cs, Splitter.cs,
17661 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
17662 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
17663 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
17664 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
17665 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
17666 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
17667 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
17668 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
17669 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
17670 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
17671 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
17672 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
17673 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
17674 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
17675 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
17676 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
17677 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
17678 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
17679 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
17680 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
17681 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
17682 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
17683 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
17684 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
17685 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
17686 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
17687 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
17688 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
17689 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
17690 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
17691 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
17692 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
17693 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
17694 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
17695 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
17697 2005-09-21 Jackson Harper <jackson@ximian.com>
17699 * TreeNode.cs: Call Before/After Expand not Collapse when
17702 2005-09-20 Jackson Harper <jackson@ximian.com>
17704 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
17706 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
17710 - Fixes proper storing of subitems
17711 - Fixes not updated items
17713 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
17715 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
17716 things if our window handle isn't created yet. Also disabled
17717 debug for TextBoxBase
17719 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
17721 * MenuAPI.cs: Remove filtering of events to allow menu usage
17723 2005-09-20 Miguel de Icaza <miguel@novell.com>
17725 * Cursor.cs: Allow null to be passed to Cursor.Current.
17727 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
17729 * ThemeWin32Classic.cs:
17730 - Change some private methods/fields to protected virtual so that
17731 they can be accessed and overriden in derived classes
17732 - First refactoring of some methods. Derived themes now don't
17733 need to duplicate the complete code from ThemeWin32Classic
17735 - Added nice StatusBar
17736 - Derive from ThemeWin32Classic and not Theme
17737 - Removed duplicate ThemeWin32Classic code
17739 2005-09-20 Miguel de Icaza <miguel@novell.com>
17741 * Control.cs (ControlCollection.Add): If the value null is passed
17742 the control is ignored.
17744 Optimize this loop.
17746 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
17748 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
17749 PostQuitMessage state.
17750 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
17752 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
17754 * Application.cs: Our constructor will never get called, move
17755 initialization to fields; fixes bug #75933
17757 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17760 - Allow files to be selected properly using file name
17762 - Add ability to change diretory (absolute / relative)
17763 using file name combo box.
17765 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
17768 - Fixes Multicolumn listboxes item wrong calculations
17769 - Allows to click when only one item is in the listbox
17770 - Fixes crash when no items using keyboard navigation
17772 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
17774 * ComboBox.cs: Reverted almost everything from the latest patch which
17777 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
17780 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
17782 - When DropDownStyle is Simple, it does not show scrollbar
17783 to the last item of the list.
17784 - When DropDownStyle is Simple, it crashed when the list was
17785 scrolled down with the down cursor key.
17786 - Fixed a bug that when DropDownStyle is DropDownList, the
17787 selected item was not shown.
17788 - The position of the selected item was not preserved when
17789 the next dropdown happened.
17790 * ThemeWin32Classic.cs:
17791 - Items were wrapped at the right end.
17792 * CheckedListBox.cs:
17795 - Items should be fully shown.
17796 - When resizing and vertical scrollbar disappeared, the item
17797 of index 0 should be on the top of the list.
17798 - GetItemRectangle should consider the size of ver. scrollbar
17800 - SizingGrip area should not be allocated when it is not
17802 - Now it reflects MinWidth of the containing panel and
17803 fixed a crash that happens when its width becomes so small.
17805 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
17807 * CheckedListBox.cs: Fixes bug 76028
17808 * ListBox.cs: Fixes bug 76028
17810 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
17812 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
17813 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
17815 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
17817 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
17819 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
17821 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
17823 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
17825 * IRootGridEntry.cs: Added
17826 * PropertyGridCommands.cs: Added
17827 * PropertiesTab.cs: Added missing methods and property
17828 * PropertyGridView.cs: Made class internal
17829 * PropertyGridTextBox.cs: Made class internal
17831 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
17833 * MimeIcon.cs: Try to check some other environment variables
17834 if "DESKTOP_SESSION" returns "default"
17836 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
17838 * ThemeNice.cs: Corrected background colors (e.g. menus)
17839 * ColorDialog.cs: Use correct background colors for controls
17841 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
17843 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
17845 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
17847 * RichTextBox.cs: Added initial implementation
17848 * lang.cs: Removed. Was accidentally checked in long time ago
17849 * TODO: Removed. Contents were obsolete
17851 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
17853 * PropertiesTab.cs : Added
17855 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
17857 * PropertyGrid.cs : Update
17858 * PropertyGridView.cs : Update
17859 * System.Windows.Forms.resx : Added images and strings
17861 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
17863 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
17865 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
17867 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
17868 a busy loop right after the Ungrab the X11 display is otherwise
17871 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
17873 * ThemeWin32Classic.cs: Optimise the use of clipping
17875 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
17877 * DataGrid.cs: fixes recursion bug
17879 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
17882 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
17885 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
17887 * ThemeNice.cs: Draw nice ProgressBars
17889 2005-09-01 Miguel de Icaza <miguel@novell.com>
17891 * VScrollBar.cs: Another buglet found by Aaron's tool.
17893 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
17896 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
17899 - Added nicer menu drawing
17903 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17905 * CreateParams.cs (ToString): Made output match MS
17906 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
17907 handle is already created (to avoid forcing window creation)
17908 * XplatUIX11.cs: Set window text to caption after creating window,
17909 in case Text was set before window was created
17910 * Form.cs: Use this.Text instead of a static string as caption
17912 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17914 * NotifyIcon.cs: Don't set the window to visible; this screws
17915 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
17916 OnPaint without a bitmap)
17917 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
17918 happen very often anyway; we could add the check to the WM_PAINT
17919 event generation code
17921 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17923 * NotifyIcon.cs: Fill the icon area with a background color, to
17924 avoid 'residue' when transparent icons are drawn
17926 - Handle whole_window == client_window when destroying windows
17927 - SystrayAdd(): Set client_window to whole_window value to
17928 get mouse and other events passed to NotifyIcon
17930 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
17932 * Form.cs: Set proper default for Opacity property
17934 - ShowSystray(): Don't bother creating telling the OS
17935 about the systray item if no icon is provided
17936 - Now handles WM_NCPAINT message to deal with whole/client window
17938 - Create window as visible to not get caught by Expose optimization
17939 * Hwnd.cs: Removed debug message
17940 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
17941 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
17942 PaintEventStart/End to use new client argument
17944 - Commented out debug messages
17945 - Switched PaintEventStart/End to use new client argument
17946 * XplatUI.cs: Added client window bool to PaintEventStart()/
17947 PaintEventEnd() calls, to support drawing in non-client areas
17948 * XplatUIDriver.cs:
17949 - Added client window bool to PaintEventStart()/PaintEventEnd()
17950 calls, to support drawing in non-client areas
17951 - Added conditional compile to allow using MWF BeginInvoke
17954 - Added some conditional debug output
17955 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
17956 whole/client window split
17957 - Implemented handling of client argument to PaintEventStart()/End()
17959 - Throw exception if BeginInvoke() is called and the window handle
17960 or one of the window's parent handles is not created
17961 - Added conditional compile to allow using MWF BeginInvoke on
17963 - get_Parent(): Only sets parent if handle is created. This avoids
17964 forcing window handle creation when parent is set.
17965 - Now fires Layout and Parent changed events in proper order
17966 - Switched to use Handle instead of window.Handle for Z-Order setting,
17967 the get_Parent() patch above causes us to possibly get null for 'window'
17968 - Implemented handling of client argument to PaintEventStart()/End()
17969 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
17971 - Now sends a Refresh() to all child windows when Refresh() is called
17973 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
17975 * Form.cs: Added (non-functional) Opacity property
17976 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
17978 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
17979 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
17980 use export MONO_THEME=nice to activate it.
17981 Currently supported controls:
17985 - TabControl (TabAlignment.Top only, other will follow)
17986 * ThemeEngine.cs: Add theme nice
17987 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
17990 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
17992 * Splitter.cs: Resize docked control and its neighbor.
17994 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
17995 -- Making Windows with Menus layout correctly --
17996 * Form.cs : The first leg of the fix
17997 Menu setter - adjust Client Size as needed to make space for the menu
17998 SetClientSizeCore - doesn't call base version to be able to pass the
17999 menu handle to XplatUI.CalculateWindowRect
18000 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
18001 * XplatUIX11.cs: The critical second leg of the fix
18002 GetWindowPos needs to use a recalculated client_rect
18003 so that resizing the window doesn't break layout of child controls.
18004 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
18005 Lots of \t\n killed
18007 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
18009 * Label.cs: Now properly recalculates width and height on Font and Text
18010 changes if AutoSize is set
18012 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
18013 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
18015 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
18017 * ImageList.cs: Makes ToString method compatible with MS
18019 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
18021 * MenuAPI.cs: fixes bug 75716
18023 2005-08-11 Umadevi S <sumadevi@novell.com>
18024 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
18026 2005-08-11 Umadevi S <sumadevi@novell.com>
18027 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
18029 2005-08-10 Umadevi S <sumadevi@novell.com>
18030 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
18032 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
18034 * Menu.cs: fixes bug 75700
18035 * MenuAPI.cs: fixes navigation issues
18037 2005-08-09 Umadevi S <sumadevi@novell.com>
18038 * CheckedListBox.cs - simple fix for GetItemChecked.
18040 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
18042 * ComboBox.cs: Serveral fixes
18043 * ListBox.cs: Serveral fixes
18045 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
18047 * ComboBox.cs: Fixes FindString methods and GetItemHeight
18048 * ListBox.cs: Fixes FindString methods
18050 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
18052 * DataGrid.cs: fixes bugs exposed by new tests
18054 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
18056 * Mime.cs: Compile Mono assembly references only if compiling
18057 with Mono (Allows to build with VS.Net again)
18059 2005-07-28 Marek Safar <marek.safar@seznam.cz>
18061 * Control.cs (PaintControlBackground): Draw background image
18063 (CheckForIllegalCrossThreadCalls): Stubbed.
18065 * Form.cs (OnCreateControl): Center when should be centered.
18067 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
18069 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
18071 * Binding.cs: Binding to properties should be case unsensitive
18073 2005-07-18 vlindos@nucleusys.com
18075 * DataGrid.cs: fixes setmember order
18077 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
18079 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
18080 * FileDialog.cs: FileDialog is now resizable and uses the new
18083 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
18085 * DataGridTextBoxColumn.cs: default value
18086 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
18087 * GridTableStylesCollection.cs: fixes checking MappingName
18088 * DataGridDrawingLogic.cs: fixes drawing logic issues
18089 * DataSourceHelper.cs: rewritten to make compatible with more data sources
18090 * DataGrid.cs: fixes
18092 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
18094 * MimeGenerated.cs: Use case sensitive comparer for
18095 NameValueCollections
18097 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
18099 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
18100 * ThemeWin32Classic.cs: bug fixes, code refactoring
18101 * DataGridDrawingLogic.cs: bug fixes, code refactoring
18102 * DataGrid.cs: bug fixes, code refactoring
18103 * DataGridTextBox.cs: bug fixes, code refactoring
18104 * DataGridColumnStyle.cs: bug fixes, code refactoring
18105 * Theme.cs: bug fixes, code refactoring
18107 2005-07-01 Peter Bartok <pbartok@novell.com>
18109 * TextControl.cs: Quick fix for the reported crash on ColorDialog
18110 and other text box usage
18112 2005-07-01 Jackson Harper <jackson@ximian.com>
18114 * TabControl.cs: Make sure the bottom of the tab covers the pages
18117 2005-06-30 Peter Bartok <pbartok@novell.com>
18119 * Form.cs (ShowDialog): Assign owner of the dialog
18120 * TextBoxBase.cs: Always refresh caret size when deleting, caret
18121 might have been moved to a tag with different height
18123 2005-06-30 Jackson Harper <jackson@ximian.com>
18125 * Form.cs: Don't create an infinite loop when setting focus
18126 * MenuItem.cs: Don't dirty the parents if we don't have any
18128 2005-06-29 Ben Maurer <bmaurer@ximian.com>
18130 * LibSupport.cs: Rename
18132 2005-06-29 Peter Bartok <pbartok@novell.com>
18134 * TextBoxBase.cs: Re-align caret after deleting a character
18136 - DeleteChars(): Ensure that tag covers the provided position
18137 - StreamLine(): Drop reference for dropped tag
18139 2005-06-29 Peter Bartok <pbartok@novell.com>
18142 - Selections now work properly, anchoring at the initial location
18143 and properly extending in either direction (SetSelectionToCaret(),
18144 SetSelectionStart() and SetSelectionEnd())
18145 - No longer redraws the whole control on selection change, now
18146 calculates delta between previous and new selection and only
18147 invalidates/redraws that area
18148 - Fixed FindPos() math off-by-one errors
18149 - Changed DeleteChars() to verify the provided tag covers the
18150 provided position, selections may have a tag that doesn't cover
18151 the position if the selection is at a tag border
18152 - Fixed off-by-one errors in DeleteChars()
18153 - Added missing streamlining check in DeleteChars() to remove
18155 - Implemented Invalidate() method, now properly calculates exposures
18156 between two given lines/positions
18157 - Implemented SetSelection()
18158 - Obsoleted and removed FixupSelection()
18159 - Improved RecalculateDocument() logic, removing code duplication
18161 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18163 * LibSupport.cs: changes to match different input/output arguments.
18165 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18167 * LibSupport.cs: added libsupport.so init routine.
18169 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
18171 * ControlBindingsCollection.cs
18172 - Throws an exception on null datasource when adding
18173 - Checks for duplicated bindings when adding
18175 2005-06-28 Jackson Harper <jackson@ximian.com>
18177 * TreeView.cs (OnKeyDown): Support left and right properly
18178 (navigates as well as expanding and collapsing.
18179 - Add support for Multiply, this expands all the selected nodes
18181 - Fix some tabbing.
18183 2005-06-28 Jackson Harper <jackson@ximian.com>
18185 * TreeView.cs: Implement keyboard navigation, currently supports,
18186 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
18187 support for toggling checkboxes with the space bar.
18189 2005-06-28 Jackson Harper <jackson@ximian.com>
18191 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
18194 2005-06-28 Jackson Harper <jackson@ximian.com>
18196 * TreeView.cs: Add missing event.
18198 2005-06-27 Peter Bartok <pbartok@novell.com>
18201 - Made line ending size configurable (now allows for counting
18202 lineendings as \n or \r\n)
18203 - Added margin to viewport to keep caret visible on right side
18204 - Fixed translation routines for line/pos to documentpos to consider
18205 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
18206 - Fixed some line-endings to be unix style
18207 - Fixed Document.FormatText to perform it's calculations 1-based
18208 - Added descriptions for a few methods that might otherwise get
18210 - Added NOTE section with some basic conventions to remember at
18211 the top of the file
18212 - Major fixup for RichTextBox selection drawing:
18213 * Fixed crashes when multiple tags on a single line were selected
18214 * fixed selection box drawing not overlaying text
18215 * fixed bogus offset calculation for tags not starting at index 1
18216 * Switched behaviour from using multiple Substrings of a
18217 StringBuilder.ToString() to using multiple
18218 StringBuilder.ToString(start, length) statements, hoping this is
18219 faster (kept original version commented out in the code, in case
18220 original version was faster)
18221 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
18223 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
18226 2005-06-27 Jackson Harper <jackson@ximian.com>
18228 * TabControl.cs: Move to the left and right with the arrow
18229 keys. These keys don't cycle beyond first and last like
18230 tab. Refresh all the tabs when scrolling them to the left or
18233 2005-06-27 Jackson Harper <jackson@ximian.com>
18236 - ToString: Added method
18237 - CreateParams: Remove TODO and comment
18238 - OnKeyDown: Cycle through bounds properly.
18239 - SelectedIndex: Scroll to the right or left if we need to
18240 display the newly selected tab.
18242 2005-06-23 Jackson Harper <jackson@ximian.com>
18244 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
18247 2005-06-23 Jackson Harper <jackson@ximian.com>
18249 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
18250 CTRL-SHIFT-TAB, and HOME, END are there any others?
18252 2005-06-23 Jackson Harper <jackson@ximian.com>
18254 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
18256 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
18258 * DataGridTextBoxColumn.cs: fixes and enhancements
18259 * ThemeWin32Classic.cs: fixes and enhancements
18260 * DataGridBoolColumn.cs: fixes and enhancements
18261 * DataGridDrawingLogic.cs: fixes and enhancements
18262 * CurrencyManager.cs: fixes and enhancements
18263 * DataGrid.cs: fixes and enhancements
18264 * DataGridColumnStyle.cs: fixes and enhancements
18266 2005-06-22 Jackson Harper <jackson@ximian.com>
18268 * TabControl.cs: Add some missing methods that just call into the
18269 base. Make the TabPageCollection's IList interface behave in the
18270 same manner as the MS implementation.
18272 2005-06-22 Peter Bartok <pbartok@novell.com>
18274 * TextControl.cs: Added sanity check
18276 - Fixed wrapping behaviour, don't set wrap on single line controls
18277 (this fixes the breakage of colordialog introduced in an earlier
18279 - Added rudimentary support for autoscrolling right-aligned controls
18280 (still needs fixing, also, center alignment scroll is missing)
18282 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
18284 * ScrollBar.cs: Fixes thumbpos on Maximum values
18286 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
18288 * PropertyGridView.cs: Pass context information to UITypeEditors
18290 2005-06-21 Peter Bartok <pbartok@novell.com>
18293 - Now calling PositionCaret with absolute space coordinates
18294 - Enabled vertical scrolling
18295 - Better tracking of scrollbar changes, tied into WidthChange
18297 - Improved cursor tracking
18298 - Removed debug output
18300 - PositionCaret coordinates are now works in absolute space, not
18302 - Improved tracking of document size
18303 - Added events for width and height changes
18305 2005-06-21 Peter Bartok <pbartok@novell.com>
18307 * Form.cs: Set focus to active control when form is activated
18309 - Added word-wrap functionality to RecalculateLine()
18310 - Added some short function descriptions for VS.Net to aid in
18311 writing dependent controls
18312 - Added Caret property, returning the current coords of the caret
18313 - Added ViewPortWidth and ViewPortHeight properties
18314 - Added Wrap property
18315 - Added CaretMoved event
18316 - Removed some old debug code
18317 - Split() can now create soft splits
18318 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
18319 - Added method to format existing text
18320 - Fixed size/alignment calculations to use viewport
18321 - RecalculateDocument now can handle changing line-numbers while
18325 - Added some wrap logic, we don't wrap if alignment is not left
18326 - Added casts for scrollbar var, base class switched types to
18327 also support RichTextBoxA
18328 - Implemented handling of scrollbar visibility flags
18331 - Switched scrollbars type to RichTextBoxScrollBars to support
18333 - Added tracking of canvas width/height
18334 - Switched scrollbars to be not selectable (to keep focus on text)
18335 - Added central CalculateDocument() method to handle all redraw
18337 - Added ReadOnly support
18338 - Added WordWrap support
18339 - Fixed handling of Enter key (we now treat it as a DialogKey)
18340 - Fixed caret positioning when h or v scroll is not zero
18341 - Fixed placing/generation of vertical scrollbar
18342 - Added CalculateScrollBars() method to allow updating scrollbar
18343 limits and visibility
18344 - Fixed handling of horizontal scroll
18345 - Added handling of vertical scroll
18346 - Implemented auto-'jump' when caret moves to close to a left or
18347 right border and there is text to be scrolled into view (currently
18348 there's the potential for a stack overflow, until a bug in
18349 scrollbar is fixed)
18351 2005-06-21 Geoff Norton <gnorton@customerdna.com>
18353 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
18355 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
18359 - return application/x-zerosize for files with size zero
18360 (if no extension pattern matches).
18361 - check matches collection for strings too.
18362 - return only the first mime type if the name value
18363 collection has more than one mime type.
18365 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
18367 * PropertyGrid.cs: Cleaned up some TODOs
18368 * PropertyGridView.cs: Added support for UITypeEditors
18370 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
18372 * DataGrid.cs: clears cached value
18374 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
18376 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
18377 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
18378 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
18379 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
18381 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
18383 * ThemeWin32Classic.cs: fixes colour
18385 2005-06-15 Peter Bartok <pbartok@novell.com>
18387 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
18388 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
18389 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
18390 * Control.cs: Added some MWFCategory and MWFDescription attributes
18391 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
18393 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
18395 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
18398 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
18400 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
18401 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
18402 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
18403 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
18404 * DataGrid.cs: default datagrid settings for Default Styles, fixes
18405 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
18407 2005-06-13 Jackson Harper <jackson@ximian.com>
18409 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
18410 isn't printed when the user enables dropping. (X11 does accept
18413 2005-06-13 Jackson Harper <jackson@ximian.com>
18415 * TreeView.cs: Remove some TODOS.
18417 2005-06-13 Jackson Harper <jackson@ximian.com>
18419 * Form.cs: Hook into the mdi framework.
18420 * MdiClient.cs: Use the base control collections add method so
18421 parents get setup correctly. Set the default back colour and dock
18423 * MdiChildContext.cs: New class, this bad actor handles an
18424 instance of an MDI window. Right now there is only basic
18425 support. You can drag, close, and resize windows. Minimize and
18426 Maximize are partially implemented.
18428 2005-06-13 Jackson Harper <jackson@ximian.com>
18430 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
18431 freaky when both vals are negative. NOTE: There are probably other
18432 places in XplatUIX11 that this needs to be done.
18434 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
18436 * DataGrid.cs: implement missing methods, move KeyboardNavigation
18437 * DataGridColumnStyle.cs: fixes signature
18439 2005-06-12 Jackson Harper <jackson@ximian.com>
18441 * XplatUIX11.cs: Use sizing cursors similar to the ones on
18444 2005-06-11 Jackson Harper <jackson@ximian.com>
18446 * StatusBarPanel.cs: Signature cleanups. Implement
18449 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
18451 * DataGridTextBoxColumn.cs: Honors aligment
18452 * GridColumnStylesCollection.cs: Contains is case unsensitive
18453 * GridTableStylesCollection.cs: several fixes
18454 * DataGridTableStyle.cs: default column creation
18455 * DataGridDrawingLogic.cs: fixes
18456 * CurrencyManager.cs: ListName property
18457 * DataGrid.cs: multiple styles support
18458 * DataGridColumnStyle.cs: fixes
18461 2005-06-10 Peter Bartok <pbartok@novell.com>
18463 * Control.cs(Select): Moved SetFocus call to avoid potential
18464 loops if controls change the active control when getting focus
18465 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
18466 the up/down buttons
18468 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
18470 * ImageListConverter.cs: Implemented
18472 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
18474 * MonthCalendar.cs: Wired in NumericUpDown control for year
18476 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
18478 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
18479 DoubleClick events, since they are not meant to be fired.
18481 2005-06-09 Peter Bartok <pbartok@novell.com>
18483 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
18484 Jonathan's standalone controls into MWF, implemented missing
18485 events, attributes and methods; added xxxAccessible classes
18486 * AccessibleObject.cs: Made fields internal so other classes
18487 can change them if needed
18489 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
18491 * UpDownBase.cs: Complete implementation
18492 * NumericUpDown.cs: Complete implementation
18493 * DomainUpDown.cs: Complete implementation
18495 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
18497 * DataGridTextBoxColumn.cs: drawing fixes
18498 * DataGridCell.cs: fixes ToString method to match MSNet
18499 * DataGridTableStyle.cs: fixes
18500 * DataGridBoolColumn.cs: fixes, drawing
18501 * DataGridDrawingLogic.cs: fixes, new methods
18502 * DataGridTextBox.cs: Keyboard and fixes
18504 - Keyboard navigation
18506 - Row selection (single, multiple, deletion, etc)
18509 2005-06-07 Jackson Harper <jackson@ximian.com>
18511 * ThemeWin32Classic.cs: Clear the background area when drawing
18514 2005-06-06 Peter Bartok <pbartok@novell.com>
18516 * ImageListStreamer.cs: Fixed signature for GetData
18517 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
18519 - Added missing ChildAccessibleObject class
18520 - Added missing OnXXXFocus overrides, switched to using those
18521 instead of the event handler
18523 - Added Parent property for ControlAccessibleObject
18526 - Added ResetBindings()
18527 * ListBindingConverter.cs: Implemented some methods
18528 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
18529 * ImageList.cs: Implemented basic handle scheme, removed TODOs
18530 * ContainerControl.cs: Fixed signature, now subscribing to the
18531 ControlRemoved event instead of overriding the handler, LAMESPEC
18532 * CurrencyManager.cs: Added missing attribute
18533 * MonthCalendar.cs: Added missing properties
18535 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
18537 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
18539 2005-06-06 Gaurav Vaish and Ankit Jain
18541 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
18542 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
18544 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
18546 * Control.cs: fixes CreateParams Width / Height.
18548 2005-06-05 Peter Bartok <pbartok@novell.com>
18550 * Win32DnD.cs: Removed compilation warnings
18552 2005-06-05 Peter Bartok <pbartok@novell.com>
18554 * Control.cs (CreateParams): Since we don't know if one of the
18555 properties we use is overridden, lets make sure if we fail accessing
18556 we continue with a backup plan
18558 2005-06-05 Peter Bartok <pbartok@novell.com>
18561 - Removed debug output
18562 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
18564 - Plugged resource leak
18565 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
18568 2005-06-05 Peter Bartok <pbartok@novell.com>
18570 * XplatUIWin32.cs: Removed DnD code
18571 * Win32DnD.cs: Implemented drop source and drop target functionality
18573 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18575 * UpDownBase.cs: remove duplicate addition of event, enable some code
18576 that was commented out.
18577 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
18578 Validate input when a key is pressed. It works fine now for every
18579 combination of Hexadecimal. Only missing some drawing love when sharing
18580 space with other controls.
18582 2005-06-04 Peter Bartok <pbartok@novell.com>
18585 - We need to pass a window for DragDrop, so enable callback events
18586 - Added DnD callback events when being a DragSource
18587 * XplatUI.cs (StartDrag): Added window handle argument
18588 * XplatUIDriver.cs (StartDrag): Added window handle argument
18589 * QueryContinueDragEventArgs: Made fields internally accessible so
18590 drivers can set them
18591 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
18594 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
18596 * DataGridTextBoxColumn.cs: column text editing
18597 * DataGridTableStyle.cs: Respect columns styles created by the user
18598 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
18599 * DataGridBoolColumn.cs: bool column editing
18600 * DataGrid.cs: fixes to scrolling, properties, etc
18601 * DataGridTextBox.cs: handle keyboard
18602 * DataGridColumnStyle.cs: fixes
18604 2005-06-02 Jackson Harper <jackson@ximian.com>
18606 * ImageListStreamer.cs: Somewhat broken implementation of
18607 GetObjectData. The RLE needs some work to match MS properly.
18609 2005-06-02 Jackson Harper <jackson@ximian.com>
18611 * X11Dnd.cs: Attempting to keep at least one file in MWF
18614 2005-06-02 Peter Bartok <pbartok@novell.com>
18616 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
18619 2005-06-02 Peter Bartok <pbartok@novell.com>
18621 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
18622 * XplatUI.cs: Added DoDragDrop() method
18623 * XplatUIDriver.cs: Added DoDragDrop() method
18625 2005-06-02 Jackson Harper <jackson@ximian.com>
18627 * Splitter.cs: Implement BorderStyle.
18629 2005-06-02 Jackson Harper <jackson@ximian.com>
18631 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
18632 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
18635 2005-06-02 Peter Bartok <pbartok@novell.com>
18638 - Added Data setter
18639 - Fixed broken insertion code for SetData, now also
18640 overwrites any existing entry of the same format name
18641 * Hwnd.cs: Added list of pointers that automatically gets
18642 freed when the window is disposed
18643 * XplatUI.cs: Call driver initialization method when loading
18646 - OnDragLeave takes EventArgs, not DragEventArgs
18647 - Added setting of WS_EX_ACCEPTFILES style when dropping is
18649 - Forces style update when drop state changes
18650 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
18651 not perfect since we cannot (yet) call the IDataObject.GetData()
18652 method, we keep getting 0x80004005 error, dunno why)
18654 2005-06-02 Peter Bartok <pbartok@novell.com>
18656 * DragEventArgs.cs: Make fields internal so we can cache the
18657 object and re-set the fields from XplatUI
18659 2005-06-02 Jackson Harper <jackson@ximian.com>
18661 * Control.cs: Add some internal methods so the DnD subsystem can
18662 raise DnD events. Also call into the driver when AllowDrop is set.
18664 * XplatUIDriver.cs: New method for setting whether or not a window
18665 is allowed to accept drag and drop messages.
18667 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
18669 * ScrollBar.cs: Make sure that values sent in Scroll events
18670 are always between Maximum and Minimum.
18672 2005-06-01 Marek Safar <marek.safar@seznam.cz>
18674 * Menu.cs: Call MenuChanged when menuitem visibility has been
18676 * MenuItem.cs: Rebuild menu when item is (not) visible.
18677 * MainMenu.cs: MainMenu has special MenuChanged.
18678 * Theme.cs: Caption and FrameBorderSize are not fixed.
18679 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
18680 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
18682 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
18683 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
18685 2005-05-30 Jackson Harper <jackson@ximian.com>
18687 * DataFormat.cs: We can't statically initialize this stuff because
18688 it calls into the xplatui and could create a loop. So we lazy init
18691 2005-05-28 Jackson Harper <jackson@ximian.com>
18693 * Control.cs: Proper implementation of Product(Name/Version).
18695 2005-05-27 Jackson Harper <jackson@ximian.com>
18697 * DataObject.cs: Dont crash if no data is found.
18699 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
18700 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
18701 as per status page, guessing it should be set to true
18703 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
18705 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
18706 * DataGridTableStyle.cs: set proper formatting text, def header text
18707 * ThemeWin32Classic.cs: new themable paramaters
18708 * DataGridBoolColumn.cs: paint check box, get data, fixes
18709 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
18710 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
18711 * DataGridColumnStyle.cs: fixes
18712 * Theme.cs: new themable paramaters
18714 2005-05-26 Peter Bartok <pbartok@novell.com>
18716 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
18718 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18719 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
18721 2005-05-24 Peter Bartok <pbartok@novell.com>
18723 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
18724 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
18725 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
18726 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
18727 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
18728 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
18729 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
18730 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
18731 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
18732 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
18733 missing attributes, etc
18734 * DataGridPreferredColumnWidthTypeConverter.cs: Added
18736 2005-05-24 Peter Bartok <pbartok@novell.com>
18738 * Help.cs: Added, implemented trivial functions, throws up MessageBox
18739 when user tries to get help
18740 * DataObject.cs, DataFormats.cs, LinkArea.cs,
18741 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
18742 to suppress warnings
18743 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
18744 avoid unreachable code warning
18746 2005-05-20 Peter Bartok <pbartok@novell.com>
18748 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
18750 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
18752 * DataGridTextBoxColumn.cs: Basic painting methods
18753 * DataGridTableStyle.cs: Set table style in the column
18754 * ThemeWin32Classic.cs: Use Theme for colors
18755 * DataGridDrawingLogic.cs: Implement more drawing
18756 * DataGrid.cs: drawing, theming, enhacements, fixes
18757 * DataGridColumnStyle.cs: fixes, drawing
18758 * Theme.cs: theming for Datagrid
18760 2005-05-20 Peter Bartok <pbartok@novell.com>
18762 * Cursor.cs: Implemented GetObjectData() method
18764 2005-05-20 Peter Bartok <pbartok@novell.com>
18766 * Cursors.cs: Added setting of cursor name
18768 - Implemented constructors
18769 - Implemented Draw and DrawStretched
18770 - Implemented Current property
18771 - Implemented == and != operators
18772 - Implemented Dispose()
18773 - Implemented ToString
18774 - Added missing attributes
18776 - Added missing reset for OverrideCursor when DoEvents is called
18777 - Fixed creation of cursor, logic was wrong
18779 - Added missing reset for OverrideCursor when DoEvents is called
18780 - Fixed creation of cursor, bit arrays were swapped
18781 * Clipboard.cs: Removed obsolete MonoTODO attribute
18783 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
18785 * ComboBox.cs: fixes OnSelectedItemChanged
18786 * ControlBindingsCollection.cs: fixes item range check
18788 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
18791 - Calc preferred height properly
18792 - Implement missing properties
18794 * NumericUpDown.cs: Implement missing events
18796 2005-05-19 Jackson Harper <jackson@ximian.com>
18798 * TabControl.cs: New method that resizes the tab pages before
18799 redrawing them. This as needed as the control is double buffered
18800 and sizing will not be recalculated unless ResizeTabPages is
18802 * TabPage.cs: Set base.Text instead of Text in the constructor so
18803 that UpdateOwner does not get called. Use the new Redraw method of
18804 TabControl instead of Refresh so the sizing is recalculated.
18805 * ThemeWin32Classic.cs: Draw the text for button tabs.
18807 2005-05-19 Jackson Harper <jackson@ximian.com>
18809 * Control.cs: Paint control background images. Fix typo where
18810 PaintControlBackground was not getting called correctly.
18812 2005-05-19 Peter Bartok <pbartok@novell.com>
18814 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
18815 I can investigate, apparently I broke FileDialog
18817 2005-05-19 Marek Safar <marek.safar@seznam.cz>
18819 * AxHost.cs: Some simple properties.
18820 * Control.cs: window must be accessible after ctor.
18821 * Form.cs: Added TransparencyKey property.
18822 * TextBoxBase.cs: Implemented Clear. Text property can be null.
18823 * XplatUIWin32.cs: SetBorderStyle implemented.
18825 2005-05-18 Peter Bartok <pbartok@novell.com>
18827 * DataObject.cs: Entries are not global but particular to the
18828 DataObject, now it behaves that way
18829 * XplatUIWin32.cs: Implemented Clipboard methods
18830 * Clipboard.cs: Implemented
18831 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
18832 * XplatUIOSX.cs: Updated to final clipboard prototypes
18833 * XplatUIX11.cs: Implemented Clipboard methods
18834 * XplatUIDriver.cs: Updated to final clipboard prototypes
18835 * XplatUIStructs.cs:
18836 - Added BITMAPINFOHEADER struct
18837 - Added ClipboardFormats enum
18839 - Added ClipboardStruct
18840 - Added Atom enum items for clipboard types
18841 - Fixed atom types for Selection event structures
18843 - Added internal properties and methods for drivers to enumerate
18845 - Switched initialization method to allow drivers to assign their
18846 own IDs even for the MS predefined clipboard IDs
18847 * XplatUI.cs: Updated to final clipboard interface
18849 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18850 * PropertyGridView.cs: Fixed compiler warnings.
18852 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18853 * PropertyGrid.cs: Added some event calls
18854 * PropertyGridView.cs: Change drawing code to use double buffering
18855 * PropertyGridTextBox.cs: Changed Text property name
18856 * GridItem.cs: Added Bounds property.
18857 * GridEntry.cs: Added Bounds property.
18859 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
18861 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
18862 since GetType() may not return the correct type if the object is
18865 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
18867 * TreeNodeCollection.cs: fixes get/set item ranges
18869 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
18871 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
18873 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
18875 * ComboBox.cs: Fix item range comparation
18876 * ListView.cs: Fix item range comparation
18878 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
18881 - Clear example panel when OnPaint is called
18882 - Better solution for displaying the example panel text
18883 - Select default indexes in the ListBoxes
18885 2005-05-11 Geoff Norton <gnorton@customerdna.com>
18887 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
18889 2005-05-11 Peter Bartok <pbartok@novell.com>
18891 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
18892 * SelectionRangeConverter.cs: Implemented
18893 * PropertyGrid.cs: Fixed attribute value
18895 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
18896 - Added Sebastien Pouliot's CAS Stack Propagation fixes
18897 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
18898 that's common to all drivers. First methods to go there are
18899 Sebastien Pouliot's CAS Stack Propagation helper methods
18900 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
18901 Sebastien Pouliot for CAS Stack Propagation
18903 2005-05-11 Geoff Norton <gnorton@customerdna.com>
18906 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
18908 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
18910 * DataGridTextBoxColumn.cs: fixed some members
18911 * GridColumnStylesCollection.cs: indexed column is case insensitive
18912 * DataGridTableStyle.cs: fixes
18913 * ThemeWin32Classic.cs: add new theme parameter
18914 * Theme.cs: add new theme parameter
18915 * DataGridDrawingLogic.cs: Datagrid's drawing logic
18916 * DataGrid.cs: fixes, new internal properties, etc.
18917 * DataGridColumnStyle.cs: allows to set grid value
18920 2005-05-10 Peter Bartok <pbartok@novell.com>
18922 * AccessibleObject.cs:
18923 - Removed MonoTODO attribute on help, method is correct
18924 - Fixed Bounds property
18925 * AxHost.cs: Moved MonoTODO
18926 * ButtonBase.cs: Now setting AccessibleObject properties
18927 * RadioButton.cs: Setting proper AccessibleObject role
18928 * CheckBox.cs: Setting proper AccessibleObject role
18929 * ControlBindingsCollection.cs: Added properties, methods and attributes
18930 * DataFormats.cs: Fixed awkward internal API, and changed to enable
18931 userdefined DataFormats.Format items as well
18932 * ListControl.cs: Removed data_member from the public eye
18933 * OpenFileDialog.cs:
18934 - Made class sealed
18935 - Added missing attributes
18936 * SaveFileDialog.cs: Added missing attributes
18937 * ImageListStreamer.cs: Fixed code that caused warnings
18938 * LinkLabel.cs: Removed unreachable code
18939 * TreeView.cs: Fixed code that caused warnings
18940 * PropertyGridView.cs: Fixed code that caused warnings
18941 * GridColumnStylesCollection.cs: Added missing attributes
18942 * GridTableStylesCollection: Added missing attribute
18943 * PropertyManager: Added .ctor
18944 * SecurityIDType: Added
18945 * DataObject.cs: Implemented class
18946 * LinkArea.cs: Added missing attribute
18948 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
18950 * RadioButton.cs: call base method to allow to fire OnClick event
18951 * UpDownBase.cs: OnMouseUp call base method
18952 * CheckedListBox.cs: call base method before returning
18953 * TrackBar.cs: call base method before returning
18956 2005-05-10 Peter Bartok <pbartok@novell.com>
18958 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
18961 2005-05-10 Peter Bartok <pbartok@novell.com>
18963 * DataFormats.cs: Implemented
18964 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
18965 XplatUIX11.cs: Added Clipboard APIs
18966 * XplatUIWin32.cs: Implemented Clipboard APIs
18967 * FolderBrowserDialog.cs: Added missing event, attributes
18969 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
18971 * CheckBox.cs: call base method to allow to fire OnClick event
18973 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
18975 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
18977 2005-05-06 Peter Bartok <pbartok@novell.com>
18979 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
18980 * Screen.cs: Implemented
18981 * HelpNavigator.cs: Added
18982 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
18984 * HelpProvider.cs: Implemented all we can do until we have a CHM
18985 help library (which means that "What's This" does work now)
18987 2005-05-06 Jackson Harper <jackson@ximian.com>
18989 * XplatUIX11.cs: Fix waking up the main loop.
18991 2005-05-05 Peter Bartok <pbartok@novell.com>
18993 * XplatUI.cs: Updated revision
18994 * Form.cs: Removed enless loop
18995 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
18996 * Label.cs (OnPaint): Added call to base.OnPaint()
18997 * ToolTip.cs: Made ToolTipWindow reusable for other controls
18998 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
18999 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
19001 * ButtonBase.cs: Moved base.OnPaint() call to end of method
19002 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
19003 to ToolTip.ToolTipWindow for drawing and size methods; this allows
19004 reuse of ToolTipWindow by other controls
19005 * SizeGrip.cs: Moved base.OnPaint() call to end of method
19006 * XplatUIX11.cs: Now clipping drawing area (experimental)
19007 * PictureBox.cs: Moved base.OnPaint() call to end of method
19008 * Theme.cs: Fixed ToolTip abstracts to match new format
19009 * ErrorProvider.cs: Implemented
19011 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
19013 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
19017 - Implements LinkBehavior
19018 - Fixes many issues
19020 2005-05-03 Jackson Harper <jackson@ximian.com>
19022 * ListView.cs: Calculate the scrollbar positioning on resize and
19023 paint, so they get put in the correct place.
19025 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
19027 * ColorDialogs.cs: The small color panels are now handled by
19028 SmallColorControl. This fixes drawing of the focus rectangle
19029 and adds a 3D border.
19031 2005-05-03 Peter Bartok <pbartok@novell.com>
19033 * Control.cs: Modified version of Jonathan Chamber's fix for
19036 2005-05-03 Jackson Harper <jackson@ximian.com>
19038 * ListView.cs: Remove redraw variable. Control now handles whether
19039 or not a redraw needs to be done, and will only raise the paint
19040 event if redrawing is needed.
19042 2005-05-03 Jackson Harper <jackson@ximian.com>
19044 * Splitter.cs: No decorations for the splitter form. Cache the
19047 2005-05-03 Jackson Harper <jackson@ximian.com>
19049 * TreeView.cs: Use dashed lines to connect nodes. Use the
19050 ControlPaint method for drawing the focus rect instead of doing
19053 2005-05-02 Peter Bartok <pbartok@novell.com>
19055 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
19057 2005-04-29 Jackson Harper <jackson@ximian.com>
19059 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
19060 entire image buffer. Just clear the clipping rectangle.
19062 2005-04-29 Jackson Harper <jackson@ximian.com>
19064 * ThemeWin32Classic.cs: Don't draw list view items that are
19065 outside the clipping rectangle.
19067 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
19069 * ListBox.cs: added horizontal item scroll
19071 2005-04-29 Jackson Harper <jackson@ximian.com>
19073 * ThemeWin32Classic.cs: Remove some old debug code that was
19074 causing flicker with the new double buffering code.
19076 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
19078 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
19079 behave like combobox and comboboxlist (still not sure if this is
19082 2005-04-28 Jackson Harper <jackson@ximian.com>
19084 * ThemeWin32Classic.cs: Don't fill the middle of progress
19085 bars. This fills areas outside of the clip bounds that don't need
19088 2005-04-28 Jackson Harper <jackson@ximian.com>
19090 * Control.cs: Don't expose functionality to touch the image buffers.
19092 * ListView.cs: We do not need to (and no longer can) manipulate
19093 the image buffers directly. All of this is handled by Control.
19095 2005-04-28 Peter Bartok <pbartok@novell.com>
19097 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19098 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
19099 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
19101 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
19104 - Adjust control's height for non-simple comboboxes (bug fix)
19106 * MenuAPI.cs: remove unused var
19107 * ScrollBar.cs: remove unsed var
19109 * ListBox.cs: unselect items when clearing
19111 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
19113 * ListControl.cs: honors OnPositionChanged and default Selected Item
19114 * ListBox.cs: unselect items when clearing
19116 2005-04-27 Jackson Harper <jackson@ximian.com>
19118 * X11Keyboard.cs: Initialize a default keyboard and give a warning
19119 if a "correct" keyboard is not found. This will make us not crash,
19120 but might give some users bad keyboard layouts...seems to be the
19121 same thing rewind does.
19123 2005-04-27 Jackson Harper <jackson@ximian.com>
19125 * BindingManagerBase.cs: Attach the current/position changed
19126 handlers to their respective events.
19128 2005-04-27 Jackson Harper <jackson@ximian.com>
19130 * Control.cs: Make sure that the first WM_PAINT does a full draw,
19132 * ThemeWin32Classic.cs: Don't fill the background for picture
19133 boxes. This could overright user drawing.
19134 * ComboBox.cs: Just fill the clipping rect not the entire client
19135 rect when drawing the background. This prevents pieces of the
19136 image buffer from getting overwritten and is theoretically faster.
19138 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
19140 * ComboBox.cs: Databinding support fixes, fire missing events
19141 * ListControl.cs: implement missing methods and properties, fixes
19142 * ThemeWin32Classic.cs: Databiding support on Drawing
19143 * CheckedListBox.cs: Databinding support fixes, fire missing events
19144 * ListBox.cs: Databinding support fixes, fire missing events
19146 2005-04-25 Peter Bartok <pbartok@novell.com>
19148 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
19150 2005-04-25 Jackson Harper <jackson@ximian.com>
19152 * TreeView.cs: Use the horizontal scrollbars height not width when
19153 determining how much of the client area is available.
19155 2005-04-25 Jackson Harper <jackson@ximian.com>
19157 * Control.cs: Double buffering is handled differently now. As per
19158 the spec, the extra buffer is created in the WM_PAINT message and
19159 passed down to the control's drawing code.
19167 * PropertyGridView.cs:
19179 * DateTimePicker.cs:
19181 * TreeView.cs: Update to new double buffering system.
19182 * MonthCalendar.cs: Uncomment block, as Capture is now
19183 working. Update to new double buffering
19184 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
19185 * PaintEventArgs.cs: New internal method allows us to set the
19186 graphics object. This is used for double buffering.
19187 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
19188 rectangle. The internal paint_area var has been removed from
19189 StatusBar. The clipping rect should be used instead.
19190 * Theme.cs: Give the PictureBox drawing method a clipping rect.
19191 * TabPage.cs: The RefreshTabs method was removed, so just call the
19192 tab controls Refresh method now.
19193 * TabControl.cs: Update to new double buffering. Make sure the
19194 handle is created before sizing the tab pages, otherwise we will
19195 get stuck in a loop.
19197 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
19199 * LinkLabel.cs: Fix typo, bug #74719; patch
19200 from Borja Sanchez Zamorano
19202 2005-04-22 Jackson Harper <jackson@ximian.com>
19204 * TreeNode.cs: Implement Handle stuff.
19205 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
19207 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
19209 * DataGridTextBoxColumn.cs: call base constructors, fixes
19210 * GridColumnStylesCollection.cs: missing events, methods, and functionality
19211 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
19212 * DataGridTableStyle.cs: implements create default column styles
19213 * DataGridBoolColumn.cs: which types can handle
19214 * DataGrid.cs: missing methods, fixes, new functionality
19215 * DataGridColumnStyle.cs: fixes
19217 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
19218 * FolderBrowserDialog.cs:
19219 - Use a thread to fill the TreeView
19220 - Adjusted some sizes
19222 2005-04-19 Peter Bartok <pbartok@novell.com>
19224 * LinkLabel.cs: (Re-)create the pieces when setting the Text
19225 property. Fixes #74360.
19227 2005-04-19 Jackson Harper <jackson@ximian.com>
19229 * XEventQueue.cs: Lock when getting the lockqueue size.
19230 * PictureBox.cs: Call base OnPaint
19232 2005-04-19 Peter Bartok <pbartok@novell.com>
19234 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
19235 messages were no longer being processed (this broke BeginInvoke)
19238 2005-04-18 Jackson Harper <jackson@ximian.com>
19240 * TreeView.cs: buglet that caused node images to get drawn
19241 regardless of whether or not they were in the clipping rectangle.
19243 2005-04-18 Jackson Harper <jackson@ximian.com>
19245 * CurrencyManager.cs: There are four rules for GetItemProperties:
19246 - If the type is an array use the element type of the array
19247 - If the type is a typed list, use the type
19248 - If the list contains an Item property that is not an object, use
19250 - use the first element of the list if there are any elements in
19253 2005-04-17 Jackson Harper <jackson@ximian.oom>
19255 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
19256 click. This handles offsets for scrolling properly and reduces
19257 memory. Also fixed GetNode to not offset now that TopNode works
19259 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
19261 2005-04-17 Jackson Harper <jackson@ximian.com>
19263 * CursorConverter.cs: Initial implementation.
19265 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
19267 * ListControl.cs: work towards complex data binding support on ListControl
19268 * CurrencyManager.cs: work towards complex data binding support on ListControl
19269 * ListBox.cs: work towards complex data binding support on ListControl
19272 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
19274 * GridTableStylesCollection.cs: fixes name and constructor
19275 * DataGridTableStyle.cs: fixes
19276 * DataGridBoolColumn.cs: fixes names and constructors
19277 * DataGrid.cs: define methods and properties. Some init implementations
19278 * DataGridCell.cs: define methods and properties. Some init implementations
19279 * GridTablesFactory.cs: Define methods and properties
19281 2005-04-15 Geoff Norton <gnorton@customerdna.com>
19283 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
19284 graphics port changes. We still want the coordinates in global screen
19287 2005-04-14 Jackson Harper <jackson@ximian.com>
19289 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
19290 check plus minus or checkbox clicks unless those features are enabled.
19292 2005-04-14 Jackson Harper <jackson@ximian.com>
19294 * TreeView.cs: Add methods for setting the top and bottom visible
19295 nodes. TreeNode::EnsureVisible uses these methods.
19296 * TreeNode.cs: Implement EnsureVisible
19298 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
19300 * Form.cs: Pospone menu assignation if the window has not been created yet
19301 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
19304 2005-04-12 Jackson Harper <jackson@ximian.com>
19306 * TreeView.cs: Set the TopNode properly when scrolling
19307 occurs. This has the added benifit of reducing the amount of
19308 walking that needs to be done when drawing. Also removed an old
19310 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
19312 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
19314 * Timer.cs: fixes interval setting when the timer is already enabled
19316 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
19318 * FolderBrowserDialog.cs: First approach
19320 2005-04-09 Peter Bartok <pbartok@novell.com>
19322 * FolderBrowserDialog: Added
19324 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
19326 * LinkLabel.cs: move drawing code into the theme
19327 * ThemeWin32Classic.cs: drawing code and painting background bugfix
19328 * Theme.cs: define DrawLinkLabel method
19330 2005-04-05 Jackson Harper <jackson@ximian.com>
19332 * BindingContext.cs: Use weak references so these bad actors don't
19333 stay alive longer then they need to.
19335 2005-04-05 Jackson Harper <jackson@ximian.com>
19337 * ListControl.cs: Basic implementation of complex databinding.
19339 * ListBox.cs: Add calls to ListControl databinding methods.
19341 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
19344 - Don't change PopupButtonState to Normal when the
19345 PopupButton gets pressed several times.
19346 - Renamed ButtonPanel to PopupButtonPanel
19348 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
19350 * ColorDialog.cs: Use cached objects instead of creating them
19351 * LinkLabel.cs: Use cached objects instead of creating them
19352 * Splitter.cs: Use cached objects instead of creating them
19353 * FontDialog.cs: Use cached objects instead of creating them
19354 * PropertyGridView.cs: Use cached objects instead of creating them
19355 * MessageBox.cs: Use cached objects instead of creating them
19356 * FileDialog.cs: Use cached objects instead of creating them
19357 * ThemeWin32Classic.cs: Use cached objects instead of creating them
19358 * TreeView.cs: Use cached objects instead of creating them
19360 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
19362 * Control.cs: use Equals to compare the font since no == op
19363 * ScrollBar.cs: use Equals to compare the font since no == op
19365 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
19367 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
19369 2005-04-01 Jackson Harper <jackson@ximian.com>
19371 * Binding.cs: Implement IsBinding.
19372 * BindingManagerBase.cs:
19373 * PropertyManager.cs:
19374 * CurrencyManager.cs: Add IsSuspended property.
19376 2005-04-01 Jackson Harper <jackson@ximian.com>
19378 * Binding.cs: Had some IsAssignableFrom calls backwards.
19380 2005-04-01 Jackson Harper <jackson@ximian.com>
19382 * Binding.cs: Handle null data members when pulling data.
19383 * PropertyManager.cs: Handle the data member being a property that
19386 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
19388 * DataGridTextBoxColumn.cs: fixes signature
19389 * DataGrid.cs: calls right constructor
19391 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
19393 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
19394 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
19395 * GridTableStylesCollection.cs: implements GridTableStylesCollection
19396 * DataGridTableStyle.cs: implements DataGridTableStyle
19397 * DataGridBoolColumn.cs: implements DataGridBoolColumn
19398 * DataGridTextBox.cs: implements DataGridTextBox
19399 * DataGridColumnStyle.cs: implements DataGridColumnStyle
19401 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
19403 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
19405 2005-03-29 Peter Bartok <pbartok@novell.com>
19408 - Properly implemented CompanyName property
19409 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
19410 returns a path that includes CompanyName, ProductName and
19411 Version (fixes bug #70330)
19413 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
19415 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
19418 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
19420 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
19422 - Added ReadOnly CheckBox
19423 - Further refactoring: moved some code from Open-/SaveFileDialog
19426 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
19428 * OpenFileDialog.cs: Fixed CheckFileExists
19430 Moved FileView and DirComboBox outside FileDialog class.
19431 They can now be used outside FileDialog
19433 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
19435 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
19436 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
19438 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
19440 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
19441 - Added missing CreatePrompt property in SaveDialog
19442 - Overall SaveDialog handling should be better now
19443 - Added non standard ShowHiddenFiles property
19444 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
19445 - Added InitialDirectory and RestoreDirectory support
19447 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
19449 * FileDialog.cs: Made dirComboBox usable
19451 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
19453 * FileDialog.cs: Added Filter support (case sensitiv)
19455 2005-03-24 Jackson Harper <jackson@ximian.com>
19457 * TabControl.cs: Need a couple more pixels for the lines.
19459 2005-03-23 Jackson Harper <jackson@ximian.com>
19461 * TabControl.cs: Give the tab page focus when it is selected.
19463 2005-03-23 Jackson Harper <jackson@ximian.com>
19465 * TabControl.cs: Account for the drawing of tabs borders when
19466 invalidating. If the slider was clicked dont do click detection on
19469 2005-03-23 Jackson Harper <jackson@ximian.com>
19471 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
19473 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
19475 * CategoryGridEntry.cs: Added
19476 * GridItem.cs: Added helper properties
19477 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
19478 * GridEntry.cs: Updated code for collection
19479 * PropertyGrid.cs: Cleaned up some formatting
19480 * PropertyGridView.cs: Added drop down functionality for enums.
19481 * GridItemCollection.cs: Added enumerator logic
19482 * PropertyGridEntry.cs: Added
19484 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
19487 - Removed unnecessary commented code
19488 - Fixed handling for entering the filename manually in the combobox
19490 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
19492 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
19494 2005-03-18 Peter Bartok <pbartok@novell.com>
19496 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
19497 them being touching the border
19499 2005-03-18 Peter Bartok <pbartok@novell.com>
19501 * TextControl.cs: Quick hack to center text better
19503 2005-03-18 Peter Bartok <pbartok@novell.com>
19506 - Don't throw NotImplemented exceptions, just print a notice once
19507 instead (requested by Miguel). This makes running existing SWF
19510 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
19511 - Added context menu trigger on right click
19512 * Panel.cs: Trigger invalidate on resize
19514 - Removed old double-buffer drawing
19515 - Added ResizeRedraw style to force proper update of statusbar
19517 - Removed debug output
19518 * ThemeWin32Classic.cs:
19519 - Fixed drawing of status bar, now draws Text property if there
19520 are no defined panels
19522 2005-03-18 Jackson Harper <jackson@ximian.com>
19524 * ImageList.cs: When the image stream is set pull all the images
19526 * ImageListStreamer.cs: Implement reading image list streams.
19528 2005-03-18 Peter Bartok <pbartok@novell.com>
19530 * ThemeWin32Classic.cs (DrawPictureBox):
19531 - Fixed calculations for centered drawing
19532 - Fixed drawing for normal mode, not scaling the image on normal
19534 2005-03-18 Peter Bartok <pbartok@novell.com>
19536 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
19539 - Made Open/Save button the accept button for FileDialog
19540 - Tied the cancel button to the IButtonControl cancel button
19541 - Save/Open now properly builds the pathname
19542 - Now handles user-entered text
19543 - Preventing crash on right-click if no item is selected
19544 - Fixed Text property, now uses contents of textbox
19545 - Fixed SelectedText property, now just returns the text part that
19546 is selected in the text box
19548 2005-03-18 Jackson Harper <jackson@ximian.com>
19550 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
19551 rect, make sure to de-adjust the interior rect after drawing the
19554 2005-03-18 Peter Bartok <pbartok@novell.com>
19556 * MenuAPI.cs: Remove menu *before* executing selected action to
19557 prevent the menu from 'hanging around'
19559 2005-03-17 Geoff Norton <gnorton@customerdna.com>
19561 * XplatUIOSX.cs: Implemented WorkingArea property
19563 2005-03-17 Peter Bartok <pbartok@novell.com>
19565 * XplatUIX11.cs: Fixed menu coord calculations
19566 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
19567 for calculating offsets
19569 2005-03-17 Peter Bartok <pbartok@novell.com>
19571 * Hwnd.cs: Do not consider menu presence for default client
19572 rectangle location/size
19573 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
19574 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
19575 translation functions
19576 * FileDialog.cs: Fixed (what I presume is a) typo
19578 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
19580 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
19581 X access (avoids X-Async errors)
19583 2005-03-16 Jackson Harper <jackson@ximian.com>
19585 * TabControl.cs: Raise the SelectedIndexChanged event.
19587 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
19589 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
19590 - Removed vertical ToolBar and replaced it with a custom panel
19591 (desktop and home button already work)
19592 - Added Help button (some controls get resized or relocated then)
19593 - Draw correct text depending on Open or Save.
19594 - Fixed some typos...
19596 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
19599 - Only change Maximum and Minimum when need it (bug fix)
19601 2005-03-15 Peter Bartok <pbartok@novell.com>
19603 * Form.cs: Use Handle for icon, to trigger creation if
19604 the window does not yet exist
19606 - CanSelect: Slight performance improvement
19607 - Focus(): Preventing possible recursion
19608 - Invalidate(): Removed ControlStyle based clear flag setting
19609 - WM_PAINT: fixed logic for calling OnPaintBackground
19610 - WM_ERASEBKGND: Fixed logic, added call to new driver method
19611 EraseWindowBackground if the control doesn't paint background
19613 - Moved EraseWindowBackground() method to internal methods
19614 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
19615 is sent via SendMessage on BeginPaint call on Win32
19617 - Added EraseWindowBackground() method
19618 - No longer sends WM_ERASEBKGND on .Expose, but on call to
19619 PaintEventStart, which more closely matches Win32 behaviour
19620 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
19621 - Fixed SetFocus() to properly deal with client and whole windows
19622 * Hwnd.cs: Added ErasePending property
19623 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
19624 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
19626 2005-03-12 Geoff Norton <gnorton@customerdna.com>
19629 - Fix hard loop when timers exist.
19630 - Fix bugs with middle and right click for 3 button mice.
19632 2005-03-11 Peter Bartok <pbartok@novell.com>
19635 - get_WorkingArea: Need to call X directly, GetWindowPos only
19636 returns cached data now
19637 - Added sanity check to GetWindowPos hwnd usage
19639 2005-03-11 Jackson Harper <jackson@ximian.com>
19641 * BindingManagerBase.cs: This method isn't used anymore as
19642 PullData now updates the data in the control.
19644 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
19646 * Form.cs: fixes menu drawing on X11
19647 * MenuAPI.cs: fixes menu drawing on X11
19649 2005-03-11 Peter Bartok <pbartok@novell.com>
19651 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
19652 from Jonathan Gilbert; should fix bug #73606
19653 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
19654 in Screen coordinates. Thanks, Jordi.
19655 * Form.cs: Added missing attribute
19657 2005-03-11 Peter Bartok <pbartok@novell.com>
19660 - Rudimentary Mdi support
19661 - Removed outdated FormParent code
19662 - Implemented lots of missing properties and methods, still missing
19663 transparency support
19664 - Added missing attributes
19665 - Implemented support for MaximumBounds
19666 - Added firing of various events
19667 * XplatUI.cs: Added SetIcon() method
19668 * XplatUIDriver.cs: Added SetIcon() abstract
19669 * XplatUIOSX.cs: Stubbed out SetIcon() method
19671 - Implemented SetIcon() support
19672 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
19673 - Switched to unix line endings
19675 - Made POINT internal so for can access it as part of MINMAX
19676 - Implemented SetIcon() support
19677 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
19678 native Mdi support again, might have to go managed)
19679 * Control.cs: Now fires the StyleChanged event
19680 * MdiClient.cs: Added; still mostly empty
19682 2005-03-10 Peter Bartok <pbartok@novell.com>
19684 * SaveFileDialog.cs: Added emtpy file
19686 2005-03-08 Peter Bartok <pbartok@novell.com>
19688 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
19689 in turn triggers OnCreateContro) when creating a handle for the
19691 * TextControl.cs: Fixed endless loop in certain cases when
19692 replacing the current selection
19694 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
19697 - Honors NewValue changes in Scroll events allowing apps to change it
19698 - Adds First and Last Scroll events
19699 - Fixes Thumb events
19701 2005-03-07 Peter Bartok <pbartok@novell.com>
19703 * Hwnd.cs: Added DefaultClientRectangle property
19704 * XplatUI.cs: Now using the X11 driver Where() method, which provides
19705 more detailed debug information
19707 - Fixed size-change feedback loop, where we would pull an old size
19708 off the queue and mistakenly change our window's size to an
19710 - Now compressing ConfigureNotify events, to reduce looping and
19712 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
19715 2005-03-07 Jackson Harper <jackson@ximian.com>
19717 * Binding.cs: Push data pushes from data -> property. Check if the
19718 property is readonly when attempting to set it.
19720 2005-03-07 Jackson Harper <jackson@ximian.com>
19722 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
19723 instead of IsSubclassOf. Pulling data now sets the value on the
19725 * PropertyManager.cs:
19726 * CurrencyManager.cs: Just need to pull data when updating now,
19727 because PullData will set the value on the control.
19729 2005-03-04 Jackson Harper <jackson@ximian.com>
19731 * Binding.cs: Implement data type parsing and converting on pulled
19732 data. TODO: Are there more ways the data can be converted?
19734 2005-03-04 Jackson Harper <jackson@ximian.com>
19736 * Binding.cs: Support <Property>IsNull checks. Also bind to the
19737 controls Validating method so we can repull the data when the
19738 control loses focus.
19740 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
19743 - Fixes null string format
19746 - Adds enum type checks
19747 - Fixes redrawing and recalc need after changing some properties
19748 - Fixes on focus_item set after the event
19749 - Fixes adding columns after the control has been created
19751 * ThemeWin32Classic.cs:
19752 - Fixes CheckBox focus rectangle
19753 - Fixes ColumnHeader drawing
19756 2005-03-03 Jackson Harper <jackson@ximian.com>
19758 * Binding.cs: Bind to <Property>Changed events so we can detect
19759 when properties are changed and update the data.
19761 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
19764 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
19765 - Fixes ImageList constructor with ImageList container
19766 - Fixes image scaling (wrong parameters at DrawImage)
19768 2005-02-02 Jackson Harper <jackson@ximian.com>
19770 * Binding.cs: Make property searches case-insensitive. Eliminate
19771 some duplicated code.
19773 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
19776 - Handle focus event
19777 - Fix scrollbar events
19778 - Discard highlighted item if remove it
19779 - Fixes SelectedItem with strings
19781 2005-03-01 Peter Bartok <pbartok@novell.com>
19784 - Fixed Visible property, now follows (once again) parent chain
19785 to return false if any control in the chain is visible=false
19786 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
19787 - Fixed several places where is_visible instead of Visible was used
19788 - Implemented FIXME related to focus selection when setting focused
19789 control to be invisible
19791 * XplatUIWin32.cs: Now using proper method to find out if window is
19792 visible. Thanks to Jordi for pointing it out
19794 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
19796 * ComboBox.cs: show/hide scrollbar instead of creating it
19798 2005-02-27 Jackson Harper <jackson@ximian.com>
19800 * CurrencyManager.cs: Add PositionChanged stuff.
19802 2005-02-27 Peter Bartok <pbartok@novell.com>
19804 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
19805 * XplatUIOSX.cs: Added GetMenuOrigin() stub
19806 * XplatUIWin32.cs: Implemented GetMenuOrigin()
19808 - Implemented GetMenuDC()
19809 - Implemented GetMenuOrigin()
19810 - Implemented ReleaseMenuDC()
19811 - Implemented generation of WM_NCPAINT message
19812 - Implemented generation and handling of WM_NCCALCSIZE message
19813 * Form.cs: Added debug helper message for Jordi's menu work
19815 - Modified ClientRect property; added setter, fixed getter to handle
19816 setting of ClientRect
19817 - Added MenuOrigin property
19819 2005-02-26 Peter Bartok <pbartok@novell.com>
19822 - Destroys the caret if a window that's being destroyed contains it
19823 - Ignores expose events coming from the X11 queue for windows that
19824 already are destroyed
19825 - Now uses the proper variable for handling DestroyNotify, before we
19826 marked the wrong window as destroyed
19827 - Improved/added some debug output
19829 2005-02-26 Peter Bartok <pbartok@novell.com>
19831 * X11Keyboard.cs: Fixes to work on 64bit systems
19833 2005-02-26 Peter Bartok <pbartok@novell.com>
19836 - Now calling OnHandleDestroyed from DestroyHandle()
19837 instead of Dispose()
19838 - Removed bogus call to controls.Remove() from DestroyHandle()
19840 2005-02-26 Peter Bartok <pbartok@novell.com>
19842 * Control.cs: Properly destroy child windows when our handle is
19845 2005-02-25 Peter Bartok <pbartok@novell.com>
19848 - Added 'DriverDebug' define to allow tracing XplatUI API calls
19849 - Alphabetized Static Methods and Subclasses
19852 - Added XException class to allow custom handling of X11 exceptions
19853 - Created custom X11 error handler, tied into XException class
19854 - Added support for MONO_XEXCEPTIONS env var to allow the user
19855 to either throw an exception on X errors or continue running
19856 after displaying the error
19857 - Added handling of DestroyNotify message
19858 - Added handler for CreateNotify message (still disabled)
19859 - Improved (tried to at least) Where method to provide file and lineno
19861 - Added XErrorHandler delegate
19862 - Added XRequest enumeration (to suppor translation of errors)
19864 2005-02-25 Jackson Harper <jackson@ximian.com>
19866 * PropertyManager.cs: Implement editing features
19867 * CurrencyManager.cs:
19868 * Binding.cs: First attempt at UpdateIsBinding
19869 * BindingManagerBase.cs: Call UpdateIsBinding before
19870 pushing/pulling data.
19872 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
19874 * MenuAPI.cs: Respect disabled items
19875 * ThemeWin32Classic.cs
19876 - Caches ImageAttributes creation for DrawImageDisabled
19877 - Fixes vertical menu line drawing
19878 - Draws disabled arrows in disable menu items
19880 2005-02-24 Peter Bartok <pbartok@novell.com>
19883 - Added UserData property to allow associating arbitrary objects
19885 - Fixed leak; now removing Hwnd references from static windows array
19887 - Fixed Graphics leak in PaintEventEnd
19888 - Removed usage of HandleData, switched over to Hwnd class
19889 * HandleData.cs: Removed, obsoleted by Hwnd.cs
19891 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
19893 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
19894 * ScrollBar.cs: Fixes bug
19895 * TrackBar.cs: removes death code, clipping, mimize refreshes,
19896 keyboard navigation enhancements
19898 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
19900 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
19901 * GroupBox.cs: Add control styles
19902 * Label.cs: Add control styles
19903 * UpDownBase.cs: Add control styles
19904 * ListBox.cs: Add control styles
19905 * XplatUIWin32.cs: Fixes wrong parameter order
19908 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
19910 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
19912 2005-02-23 Jackson Harper <jackson@ximian.com>
19914 * PropertyManager.cs: Implement property binding. This doesn't
19915 seem to work yet though as (I think) there are some bugs in
19916 System.ComponentModel.PropertyDescriptor.
19917 * BindingContext.cs: Use new PropertyManager constructor.
19919 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
19921 * ProgressBar.cs: use clip region in ProgressBar
19922 * ThemeWin32Classic.cs: use clip region in ProgressBar
19924 2004-02-22 Jackson Harper <jackson@ximian.com>
19926 * BindingsCollection.cs: Remove some debug code.
19928 2005-02-22 Jackson Harper <jackson@ximian.com>
19930 * BindingContext.cs:
19931 * ControlBindingsCollection.cs:
19932 * CurrencyManager.cs:
19934 * BindingManagerBase.cs: Initial implementation
19935 * BindingsCollection.cs: Add an internal contains method that the
19936 BindingManagerBase uses to ensure bindings aren't added twice to
19938 * PropertyManager.cs: Stubbed out.
19940 * ContainerControl.cs: Hook up databinding
19942 2005-02-22 Geoff Norton <gnorton@customerdna.com>
19945 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
19946 Fixed Invalidate/Update chain.
19947 Fixed tons of other minor bugs (this is almost a complete rewrite).
19949 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
19951 * ComboBox.cs: do subcontrol creation when the control is created
19953 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
19955 * Label.cs: fixes image drawing (image and imagelist)
19956 * ThemeWin32Classic.cs: cache brushes
19958 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
19960 * Form.cs: Move menu drawing code to Theme class
19961 * ComboBox.cs: Move ComboBox drawing code to Theme class
19962 * MenuItem.cs: Move menu drawing code to Theme class
19963 * MenuAPI.cs: Move menu drawing code to Theme class
19964 * ThemeWin32Classic.cs: New methods
19965 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
19966 * ListBox.cs: Move Listbox drawing code to Theme class
19967 * Theme.cs: New methods
19969 2005-02-20 Peter Bartok <pbartok@novell.com>
19972 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
19973 only process mnemonics on those)
19974 - Fixed event sequence for key handling; first calling
19975 ProcessKeyEventArgs now
19977 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
19978 for processing non-character keys
19979 - Fixed WM_CHAR to generate proper event sequence before processing
19980 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
19983 2005-02-19 Peter Bartok <pbartok@novell.com>
19985 * UserControl.cs: Added TextChanged event; added attributes
19986 * SizeGrip.cs: Implemented resizing and optional display of grip
19987 * Form.cs: Fixed attribute
19988 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
19989 Changed meaning of ScrollWindow bool argument; instead of the
19990 clear attribute (which will be true usually anyway), it gives the
19991 option of moving child controls as well.
19993 - Changed to match new ScrollWindow argument
19994 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
19995 now handles the implicit parent window a WM puts around us
19996 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
19998 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
19999 * TreeView.cs: Adjusted to new ScrollWindow arguments
20001 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
20003 * Form.cs: Menu integration with non-client area
20004 * MenuItem.cs: Menu integration with non-client area
20005 * MenuAPI.cs: Menu integration with non-client area
20007 2005-02-18 Peter Bartok <pbartok@novell.com>
20009 * MethodInvoker.cs: Added
20010 * MdiLayout.cs: Added
20011 * SendKeys.cs: Started implementation
20012 * ErrorIconAlignment.cs: Added
20014 2005-02-18 Peter Bartok <pbartok@novell.com>
20016 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
20017 * Form.cs: Added handling for Menu-related Non-client messages
20019 2005-02-17 Peter Bartok <pbartok@novell.com>
20021 * UpDownBase.cs: Fixed typo, compilation errors
20022 * DomainUpDown.cs: Fixed attribute value
20024 2005-02-16 Miguel de Icaza <miguel@novell.com>
20026 * UpDownBase.cs: Attach entry events.
20028 Add ForeColor property, Focused, InterceptArrowKeys (interception
20029 does not work yet).
20031 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
20034 - Redraw non client are on Setmenu
20035 - Calc proper menu starting point
20037 2005-02-17 Peter Bartok <pbartok@novell.com>
20039 * Application.cs: Fixed message_filter check
20041 2005-02-17 Peter Bartok <pbartok@novell.com>
20043 * Application.cs: Now calls registered message filters
20044 * DockStyle.cs: Fixed attribute
20045 * Form.cs: Fixed attribute
20046 * Menu.cs: Fixed attribute
20047 * ToolTip.cs: Fixed attribute
20048 * TreeNode.cs: Added missing attributes and arranged in regions
20049 * PropertyGrid.cs: Fixed signatures
20050 * TreeNodeCollection.cs: Added attributes
20051 * Splitter.cs: Added missing attributes; arranged into regions
20052 * TabPage.cs: Added missing attributes; arranged into regions
20053 * TextBoxBase.cs: Added missing attributes
20054 * TextBox.cs: Added missing attributes
20055 * ArrangeDirection.cs: Added missing attributes
20056 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
20057 * ToolBarButton.cs: Fixed attributes
20058 * AnchorStyles.cs: Fixed attribute
20059 * TrackBar.cs: Fixed attributes
20060 * TabControl.cs: Added missing attributes and arranged into regions
20061 * ToolBar.cs: Fixed attribute
20062 * StatusBar.cs: Fixed signature, organized into regions and added
20064 * StatusBarPanel.cs: Fixed attributes
20065 * ContentsResizedEventArgs.cs: Implemented
20066 * ContentsResizedEventHandler.cs: Implemented
20067 * DateBoldEventArgs.cs: Implemented
20068 * DateBoldEventHandler.cs: Implemented
20069 * UpDownEventArgs.cs: Implemented
20070 * UpDownEventHandler.cs: Implemented
20072 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
20074 * Form.cs: first Menu NC refactoring
20075 * MenuAPI.cs: first Menu NC refactoring
20077 2005-02-16 Peter Bartok <pbartok@novell.com>
20079 * ImeMode.cs: Added missing attributes
20080 * Menu.cs: Fixed attribute
20081 * GroupBox.cs: Fixed attribute
20082 * Label.cs: Fixed attribute
20083 * ColorDialog.cs (RunDialog): Removed TODO attribute
20084 * ComboBox.cs: Fixed attributes
20085 * ListControl.cs: Added missing attributes
20086 * PropertyGrid.cs: Fixed attributes
20087 * Control.cs: Fixed attributes
20088 * ListViewItem.cs: Added TypeConverter attribute
20089 * NotifyIcon.cs: Fixed attributes
20090 * ListView.cs: Fixed attributes
20091 * ButtonBase.cs: Fixed attribute
20092 * ImageList.cs: Added missing attributes
20093 * ContainerControl.cs: Fixed signature
20094 * CheckedListBox.cs: Fixed attribute; added missing attributes
20095 * Panel.cs: Fixed attributes
20096 * PropertyTabChangedEventArgs.cs: Added missing attribute
20097 * PropertyValueChangedEventArgs.cs: Added missing attribute
20098 * Binding.cs: Fixed attribute
20099 * ListViewItemConverter: Implemented ListViewSubItemConverter class
20100 * ListBox.cs: Fixed attribute; added missing attributes;
20101 * ScrollableControl.cs: Added missing attributes
20102 * PictureBox.cs: Added missing attributes; implemented missing property
20103 * DateTimePicker.cs: Added missing attributes
20104 * Theme.cs (ToolWindowCaptionHeight): Fixed type
20105 * MonthCalendar.cs: Fixed attributes
20106 * StatusBarPanel.cs: Added missing attributes
20107 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
20109 2005-02-16 Peter Bartok <pbartok@novell.com>
20111 * TextBoxBase.cs: The previous method to enforce height yet remember
20112 the requested high was less than ideal, this is an attempt to do
20114 * Control.cs: Added comment about possible problem
20115 * Copyright: Updated format
20116 * GridItemType.cs: Fixed swapped values
20118 2005-02-15 Jackson Harper <jackson@ximian.com>
20120 * BaseCollection.cs: Use property so we never access an
20121 uninitialized list. Also initialize the list in the property.
20123 2005-02-15 Peter Bartok <pbartok@novell.com>
20125 * GroupBox.cs (ProcessMnemonic): Implemented
20126 * Label.cs (ProcessMnemonic): Implemented
20127 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
20130 2005-02-15 Peter Bartok <pbartok@novell.com>
20132 * RadioButton.cs (ProcessMnemonic): Implemented
20133 * CheckBox.cs (ProcessMnemonic): Implemented
20135 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
20137 - Added internal method to allow calling ProcessMnemonic from other
20139 * ContainerControl.cs:
20140 - Started support for handling validation chain handling
20141 - Implemented ProcessMnemonic support
20142 - Added Select() call to Active, to make sure the active control
20144 * Form.cs: Setting toplevel flag for Forms (this was lost in the
20145 FormParent rewrite)
20146 * ThemeWin32Classic.cs:
20147 - DrawCheckBox(): Fixed stringformat to show hotkeys
20148 - DrawRadioButton(): Fixed stringformat to show hotkeys
20149 * CommonDialog.cs: Removed WndProc override, not needed
20151 2005-02-14 Peter Bartok <pbartok@novell.com>
20153 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
20154 missed those in the rewrite
20156 2005-02-14 Miguel de Icaza <miguel@novell.com>
20158 * NumericUpDown.cs (Increment, ToString): Add.
20159 (DecimalPlaces): implement.
20163 * UpDownBase.cs: Add the designer attributes.
20165 2005-02-13 Peter Bartok <pbartok@novell.com>
20167 * Panel.cs: Removed border_style, now in Control
20168 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
20169 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
20171 2005-02-13 Peter Bartok <pbartok@novell.com>
20173 * MouseButtons.cs: Added missing attributes
20174 * XplatUIStructs.cs: Added enumeration for title styles
20175 * LeftRightAlignment.cs: Added missing attributes
20176 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
20177 it compatible with Graphics.FromHwnd()
20178 * SelectedGridItemChangedEventArgs.cs: Fixed property type
20179 * Keys.cs: Added missing attributes
20180 * SelectionRange.cs: Added missing attributes
20181 * SelectionRangeConverter.cs: Added
20183 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
20184 ReleaseMenuDC methods
20185 - Renamed ReleaseWindow to UngrabWindow
20186 - Added proper startup notice to allow version identification
20188 - Added missing attributes
20189 - Removed FormParent concept
20190 * Label.cs: Removed border_style field, now in Control
20191 * RadioButton.cs: Now properly selects RadioButton when focus is
20193 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
20195 - Added missing attributes
20196 - Added borderstyle handling
20197 - Removed FormParent concept support
20198 - Fixed calls to XplatUI to match changed APIs
20199 - Fixed bug that would case us to use disposed Graphics objects
20200 - Removed unneeded internal methods
20201 - PerformLayout(): Fixed to handle DockStyle.Fill properly
20202 - SelectNextControl(): Fixed to properly check common parents
20203 * TextBoxBase.cs: Removed border_style field (now in Control)
20205 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
20206 fixed calculations for form size
20207 - Added support for localized strings and icons
20208 - Improved form size calculations, added border
20209 * ListView.cs: Removed border_style field (now in Control)
20210 * X11Structs.cs: Moved several structs from X11 driver here
20211 * X11Keyboard.cs: Changed debug message
20212 * Application.cs: Removed FormParent concept support
20214 - Resetting end_modal flag
20215 - Removed FormParent concept support
20216 * NativeWindow.cs: Removed FormParent concept support
20217 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
20218 Client area and Non-Client whole window to allow support for WM_NC
20220 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
20221 prevent using it until it supports Hwnd as per Geoff Norton's request
20222 * ToolBar.cs: Fixed drawing, was not doing proper drawing
20223 * PictureBox.cs: Removed border_style field, now in Control
20224 * XplatUIWin32.cs: Added new driver methods
20226 2005-02-12 Peter Bartok <pbartok@novell.com>
20228 * OpacityConverter.cs: Implemented
20229 * Hwnd.cs: Internal class to support drivers that need to emulate
20230 client area/non-client area window behaviour
20232 2005-02-11 Peter Bartok <pbartok@novell.com>
20234 * KeysConverter.cs: Implemented
20236 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
20238 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
20239 * LinkLabel: Added missing attributes
20240 * MainMenu.cs: fixes ToString
20241 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
20242 * ListBox.cs: fixes event position
20243 * TrackBar.cs: adds missing attributes and events
20245 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
20247 * MenuItem.cs: Use SystemInformation and bug fixes
20248 * MenuAPI.cs: Use SystemInformation and bug fixes
20250 2005-02-09 Jackson Harper <jackson@ximian.com>
20252 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
20253 their keystate otherwise things like VK_MENU get stuck "on".
20255 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
20257 * ListBox.cs: Fixes AddRange bug
20259 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
20262 - Add missing attributes
20263 - Add missing method
20265 * CheckedListBox.cs: Added missing attributes
20266 - Add missing attributes
20267 - Remove extra method
20269 * ComboBox.cs: Added missing attributes
20270 * VScrollBar.cs: Added missing attributes
20271 * ScrollBar.cs: Added missing attributes
20272 * ListBox.cs: Fixes signature, add missing consts
20273 * LinkArea.cs: Added missing attributes
20276 2005-02-08 Peter Bartok <pbartok@novell.com>
20278 * Menu.cs: Added missing attributes
20279 * MainMenu.cs: Added missing attributes
20280 * GroupBox.cs: Added missing attributes
20281 * Label.cs: Added missing attributes
20282 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
20284 - Added Instance and Options properties
20285 - Added missing attributes
20286 * Cursor.cs: Made Serializable
20287 * NotifyIcon: Added missing attributes
20288 * MenuItem.cs: Added missing attributes
20289 * TextBoxBase.cs: Implemented AppendText() and Select() methods
20290 * Panel.cs: Added Missing attributes
20291 * MonthCalendar.cs: Fixed CreateParams
20293 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
20297 - Fixes issues with links
20298 - Adds the class attributes
20300 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
20303 - Fixes button when no items available in dropdown
20304 - Fixes repainting problems
20305 - Adds the class attributes
20307 2005-02-07 Geoff Norton <gnorton@customerdna.com>
20309 * XplatUIOSX.cs: Detect the menu bar and title bar height from
20310 the current theme. Cache these on startup.
20312 2005-02-07 Jackson Harper <jackson@ximian.com>
20314 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
20315 the scrollbar buttons when they are depressed.
20317 2005-02-07 Geoff Norton <gnorton@customerdna.com>
20319 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
20320 Get the display size from the main displayid. We currently dont
20321 support multiple display configurations.
20323 2005-02-07 Geoff Norton <gnorton@customerdna.com>
20325 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
20327 2005-02-07 Miguel de Icaza <miguel@novell.com>
20329 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
20331 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
20333 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
20335 2005-02-04 Jackson Harper <jackson@ximian.com>
20337 * ThemeWin32Classic.cs: Respect the clipping rect when
20338 drawing. Only fill the intersection of clips and rects so there
20339 isn't a lot of large fills.
20340 * ScrollBar.cs: Pass the correct clipping rect to the theme
20341 engine. Remove some debug code.
20343 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
20345 * DateTimePicker.cs:
20346 - Fixed crash on DateTime.Parse, use Constructor instead
20348 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
20352 - Owner draw support (MeasureItem and DrawItem)
20354 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
20357 - Implements FindMergePosition and MergeMenu functions (very poor documented)
20358 - Fixes MenuItems.Add range
20360 - MergeMenu and Clone and CloneMenu functions
20362 2005-02-03 Jackson Harper <jackson@ximian.com>
20364 * ScrollBar.cs: Make abstract
20365 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
20368 2005-02-03 Jackson Harper <jackson@ximian.com>
20370 * ScrollBar.cs: First part of my scrollbar fixups. This removes
20371 all the unneeded refreshes and uses invalidates with properly
20374 2005-02-03 Peter Bartok <pbartok@novell.com>
20376 * ComponentModel.cs: Added
20377 * IDataGridEditingService.cs: Added
20378 * Timer.cs: Added missing attributes
20379 * ToolTip.cs: Added missing attributes
20381 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
20383 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
20385 2005-02-03 Peter Bartok <pbartok@novell.com>
20387 * ListBox.cs: Added missing attributes
20389 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
20392 - Fixes font height after font change
20393 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
20395 2005-02-02 Peter Bartok <pbartok@novell.com>
20397 * HandleData.cs: Introduced static methods to allow class
20398 to be more self-contained and track it's own HandleData objects
20399 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
20400 HandleData to use new static methods
20402 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
20405 - Fixes default size and PreferredHeight
20407 - ObjectCollection.Insert implementation
20413 - ObjectCollection.Insert implementation
20414 - No selection after clean
20417 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
20419 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
20421 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
20424 - Caches ItemHeight calculation for OwnerDrawVariable
20425 - Handles dropdown properly
20426 - Fixes several minor bugs
20428 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
20431 - Fixes 71946 and 71950
20432 - Fixes changing Multicolumn on the fly
20433 - Fixes keyboard navigation on Multicolumn listboxes
20435 2005-01-31 Geoff Norton <gnorton@customerdna.com>
20437 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
20438 crash reporter log.
20440 2005-01-31 Geoff Norton <gnorton@customerdna.com>
20442 * XplatUIOSX.cs: Allow applications to actually exit.
20444 2005-01-31 Geoff Norton <gnorton@customerdna.com>
20446 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
20447 their parent at creation time rather than lazily later. Fixes a major
20448 regression we were experiencing.
20450 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
20452 * ThemeWin32Classic.cs: more date time picker painting fixes
20453 * DateTimePicker.cs: more monthcalendar drop down fixes
20454 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
20456 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
20459 - When moving the thumb going outside the control should stop the moving
20460 - Adds the firing of missing events
20461 - Fixes no button show if Size is not specified
20462 - End / Home keys for keyboard navigation
20464 2005-01-30 Peter Bartok <pbartok@novell.com>
20466 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
20467 sanity check to prevent theoretical loop
20468 * XplatUIWin32.cs (SetVisible): Removed debug output
20469 * XplatUIX11.cs (SystrayChange): Added sanity check
20470 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
20471 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
20472 behaviour, valid until the X11 client window rewrite is done
20473 * TextBox.cs (ctor): Setting proper default foreground and background
20476 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
20478 * Theme: Added DrawDateTimePicker to interface
20479 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
20480 * DateTimePicker.cs: Created (still needs keys and painting code)
20481 * DateTimePickerFormat.cs: added
20482 * MonthCalendar.cs: fixed CreateParams for popup window mode
20484 2005-01-29 Peter Bartok <pbartok@novell.com>
20486 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
20487 this should also the calculations for ligher/darker
20488 * Theme.cs: Fixed defaults for ScrollBar widths/heights
20490 2005-01-29 Peter Bartok <pbartok@novell.com>
20492 * ArrangeDirection.cs: Added
20493 * ArrangeStartingPositon.cs: Added
20494 * SystemInformation.cs: Implemented
20495 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20496 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
20497 used by SystemInformation class
20498 * X11Strucs.cs: Added XSizeHints structure
20500 - Fixed CreateParams to make sure the menu window is always visible
20501 - TrackPopupMenu: Added check to make sure we don't draw the
20504 2005-01-29 Peter Bartok <pbartok@novell.com>
20506 * HandleData.cs: Added method for altering invalid area
20507 * TextBoxBase.cs: Implemented TextLength
20509 2005-01-28 Peter Bartok <pbartok@novell.com>
20511 * XplatUIX11.cs: Improvement over last patch, not sending
20512 the WM_PAINT directly anymore, instead we scroll any pending
20513 exposed areas and let the system pick out the WM_PAINT later
20515 2005-01-28 Peter Bartok <pbartok@novell.com>
20517 * SWF.csproj: Deleted, no longer used. Instead,
20518 Managed.Windows.Forms/SWF.csproj should be used
20519 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
20520 directly, to avoid a potential race condition with the next
20523 2005-01-28 Peter Bartok <pbartok@novell.com>
20525 * XplatUI.cs: Made class internal
20527 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
20529 * CheckedListBox.cs:
20532 - Missing methods and events
20534 2005-01-27 Peter Bartok <pbartok@novell.com>
20536 * Application.cs (Run): Don't use form if we don't have one
20538 2005-01-27 Peter Bartok <pbartok@novell.com>
20540 * TextBoxBase.cs (get_Lines): Fixed index off by one error
20542 2005-01-27 Peter Bartok <pbartok@novell.com>
20544 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
20545 * GridItem.cs: Added; Patch by Jonathan S. Chambers
20546 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
20547 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
20548 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
20549 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
20550 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20551 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20552 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20553 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20554 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20555 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20557 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
20560 - Draw focus on Simple Combobox
20561 - Fixes drawing issues
20564 2005-01-27 Peter Bartok <pbartok@novell.com>
20567 - Place window in default location, instead of hardcoded 0/0
20568 - Send initial LocationChanged event
20570 - UpdateBounds after creation to find out where the WM placed us
20571 - Make sure that if the ParentForm changes location the Form
20573 * XplatUIX11.cs: XGetGeometry will not return the coords relative
20574 to the root, but to whatever the WM placed around us.
20575 Translate to root coordinates before returning toplevel
20577 * XplatUIWin32.cs: Removed debug output
20578 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
20579 flag to GetWindowPos, to allow translation of coordinates on X11
20581 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
20583 * ListBox.cs: connect LostFocus Event
20585 2005-01-27 Peter Bartok <pbartok@novell.com>
20587 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20588 XplatUIX11.cs: Extended the Systray API
20589 * Form.cs: Removed debug output
20590 * Application.cs: Fixed focus assignment, always need to call
20591 XplatUI.Activate() since Form.Activate() has rules that may
20593 * NotifyIcon.cs: Should be complete now
20594 * ToolTip.cs: Worked around possible timer bug
20596 2005-01-27 Jackson Harper <jackson@ximian.com>
20599 - Only invalidate the effected tabs when the
20600 selected index changes. This reduces drawing and gets rid of some
20602 - Only refresh if the tabs need to be shifted, otherwise only
20603 invalidate the slider button.
20604 - On windows the tabs are not filled to right if the slider is
20607 2005-01-27 Jackson Harper <jackson@ximian.com>
20609 * TabControl.cs: Only refresh on mouseup if we are showing the
20610 slider. Also only invalidate the button whose state has changed.
20612 2005-01-26 Peter Bartok <pbartok@novell.com>
20614 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
20615 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
20616 and SystrayRemove() methods
20617 * XplatUIOSX.cs: Stubbed Systray methods
20619 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
20621 - Fixed broken XChangeProperty calls (marshalling messed up things)
20622 * X11Structs.cs: Added enums and structs required for Size hinting
20623 * NotifyIcon.cs: Added & implemented
20625 2005-01-26 Jackson Harper <jackson@ximian.com>
20627 * TabControl.cs: Space vertically layed out tabs properly.
20629 2005-01-26 Peter Bartok <pbartok@novell.com>
20631 * Form.cs (CreateClientParams): Always set the location to 0,0
20632 since we're a child window.
20634 * Control.cs (SetVisibleCore): Always explicitly setting the location
20635 of a toplevel window, apparently X11 doesn't like to move windows
20636 while they're not mapped.
20638 2005-01-26 Jackson Harper <jackson@ximian.com>
20640 * TabControl.cs: Implement FillToRight size mode with vertically
20643 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
20645 * ControlPaint.cs, ThemeWin32Classic.cs
20646 - Fixes DrawFocusRectangle
20648 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
20651 - MenuBar tracking only starts when item is first clicked
20652 - Fixes menu hidding for multiple subitems
20653 - Unselect item in MenuBar when item Executed
20656 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
20659 - IsInputKey for ListBox
20662 - Shift and Control item selection
20663 - Implement SelectionMode.MultiExtended
20664 - Fixes RightToLeft
20666 - IsInputKey implemented
20667 - Do not generate OnTextChangedEdit on internal txt changes
20669 2005-01-23 Peter Bartok <pbartok@novell.com>
20671 * AccessibleObject.cs: Partially implemented Select()
20672 * MonthCalendar.cs: Added missing attributes and events
20673 * Form.cs: Fixed CreateParams behaviour, now controls derived from
20674 form can properly override CreateParams.
20675 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20676 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
20677 Control performs Invalidate & Update
20678 * NativeWindow (CreateHandle): Added special handling for Form
20679 and Form.FormParent classes to allow overriding of From.CreateParams
20681 - ControlNativeWindow: Renamed 'control' variable to more intuitive
20683 - ControlNativeWindow: Added Owner property
20684 - Removed usage of Refresh() on property changes, changed into
20685 Invalidate(), we need to wait until the queue is processed for
20686 updates, direct calls might cause problems if not all vars for
20687 Paint are initialized
20688 - Added call to UpdateStyles() when creating the window, to set any
20689 styles that CreateWindow might have ignored.
20690 - Added support for Form CreateParent overrides to UpdateStyles()
20691 * MessageBox.cs: Removed no longer needed FormParent override stuff,
20692 CreateParams are now properly overridable
20693 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
20694 CreateParams are now properly overridable
20696 2005-01-23 Miguel de Icaza <miguel@ximian.com>
20698 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
20701 Capture LostFocus and OnTextBoxChanged. The later introduces a
20702 recursive invocation that I have not figured out yet.
20704 Reset the timer when not using (it was accumulating).
20707 (OnTextBoxChanged): Set UserEdit to true here to track whether the
20708 user has made changes that require validation.
20710 Reset changing to avoid loops.
20712 2005-01-22 Miguel de Icaza <miguel@ximian.com>
20714 * NumericUpDown.cs: Display value at startup.
20716 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
20719 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
20720 filled in. Added some basic parsing of text.
20722 Still missing the OnXXX method overrides, and figuring out the
20723 events that must be emitted.
20725 * UpDownBase.cs: Handle UserEdit on the Text property.
20727 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
20730 - Fixes IntegralHeight
20733 2005-01-21 Jackson Harper <jackson@ximian.com>
20735 * TabControl.cs: Set the SelectedIndex property when SelectedTab
20736 is set so that the page visibility is updated and the tabs are
20739 2005-01-21 Jackson Harper <jackson@ximian.com>
20741 * TabControl.cs: Use cliping rectangle for blitting. Give the
20742 theme the clipping rect so we can do clipping while
20743 drawing. Remove some debug code.
20745 2005-01-21 Jackson Harper <jackson@ximian.com>
20747 * TabPage.cs: Add a new method so tab pages can force the tab
20748 control to recalculate the tab page sizes.
20749 * TabControl.cs: UpdateOwner needs to make the tab control recalc
20752 2005-01-20 Jackson Harper <jackson@ximian.com>
20754 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
20756 2005-01-20 Jackson Harper <jackson@ximian.com>
20758 * TreeView.cs: Set the bounds for nodes properly. They were
20759 getting screwed up when checkboxes were not enabled, but images
20762 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
20765 - Owner draw support
20768 2005-01-20 Jackson Harper <jackson@ximian.com>
20770 * XplatUIStructs.cs: More misc keys
20771 * X11Keyboard.cs: Ignore some control keys.
20773 2005-01-20 Jackson Harper <jackson@ximian.com>
20775 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
20776 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
20778 2005-01-19 Peter Bartok <pbartok@novell.com>
20780 * Control.cs: Un-selecting the control when it is loosing focus
20782 2005-01-19 Jackson Harper <jackson@ximian.com>
20784 * TreeView.cs: Hook up to the text controls leave event so we can
20785 end editing when the users clicks outside the text box.
20787 2005-01-19 Jackson Harper <jackson@ximian.com>
20789 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
20790 get set in the conversion array.
20792 2005-01-19 Peter Bartok <pbartok@novell.com>
20794 * Application.cs (ModalRun): Added a call to CreateControl to ensure
20795 focus is properly set
20797 - Added missing attributes
20798 - removed styles, those are already set in the base class
20800 - Added missing attributes
20801 - Added clip window styles
20802 * CheckBox.cs: Added missing attributes
20804 - FormParentWindow.CreateParams: Added required clip styles
20805 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
20806 also filters modifier keys
20808 - Added assignment of Accept and Cancel button to enable Enter
20809 and Esc keys in MessageBox dialogs
20810 - FormParentWindow.CreateParams: Added required clip styles
20811 * RadioButton.cs: Added missing attributes
20812 * TextControl.cs: No longer draws selection if control does not
20815 - Now draws simple rectangle around test area to make it obvious
20816 there's a control. This is a hack until we properly support borders
20817 - A few simple fixes to support selections better, now erases selected
20818 text when typing, and resets selection when using movement keys
20820 2005-01-19 Miguel de Icaza <miguel@ximian.com>
20822 * UpDownBase.cs: Added some new properties.
20824 * DomainUpDown.cs: Implement a lot to get my test working.
20826 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20828 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
20830 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20832 * OSXStructs (WindowAttributes): Fixed csc complaints
20834 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20837 OSXStructs.cs: Initial refactor to move enums and consts into
20838 OSXStructs and use them in the driver for greater readability.
20840 2005-01-19 Geoff Norton <gnorton@customerdna.com>
20842 * XplatUIOSX.cs: Initial support for Standard Cursors.
20843 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
20845 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
20847 * ComboBox.cs: ability to change style when the ctrl is already
20848 created, missing methods and events, bug fixes, signature fixes
20850 2005-01-19 Peter Bartok <pbartok@novell.com>
20852 * Cursors.cs (ctor): Added ctor to fix signature
20854 2005-01-18 Peter Bartok <pbartok@novell.com>
20856 * Button.cs: Implemented DoubleClick event
20858 - Fixed keyboard handling to behave like MS, where the press of
20859 Spacebar is equivalent to a mousedown, and the key release is
20860 equivalent to mouseup. Now a spacebar push will give the same
20861 visual feedback like a mouse click.
20862 - Added missing attributes
20863 - Added ImeModeChanged event
20864 - Added support for generating DoubleClick event for derived classes
20866 - Implemented DoubleClick event
20867 - Added missing attributes
20868 * CommonDialog.cs: Added missing attribute
20869 * ContextMenu.cs: Added missing attributes
20871 - AutoChecked buttons do not allow to be unselected when clicked
20872 (otherwise we might end up with no selected buttons in a group)
20873 - Added missing attributes
20874 - Implemented DoubleClickEvent
20875 * ThreadExceptionDialog.cs: Enabled TextBox code
20877 2005-01-18 Peter Bartok <pbartok@novell.com>
20879 * Form.cs: Removed debug output
20880 * Button.cs: Added support for DoubleClick method
20882 2005-01-18 Peter Bartok <pbartok@novell.com>
20885 - Added method to parent window that allows triggering size
20886 calculations when a menu is added/removed
20887 - set_Menu: Cleaned up mess from early days of Form and Control,
20888 now properly triggers a recalc when a menu is added/removed
20889 - Added case to select form itself as focused form if no child
20891 - Added PerformLayout call when showing dialog, to ensure properly
20894 - Select(): Made internal so Form can access it
20895 - Focus(): Only call Xplat layer if required (avoids loop), and sets
20897 * Application.cs (Run): Removed hack and calls PerformLayout instead
20898 to trigger calculation when Form becomes visible
20900 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
20902 * ComboBox.cs: fixes for ownerdraw
20904 2005-01-18 Peter Bartok <pbartok@novell.com>
20907 - Sentinel is no longer static, each Document gets it's own, this
20908 avoids locking or alternatively overwrite problems when more
20909 than one text control is used simultaneously.
20910 - Switched to use Hilight and HilightText brushes for text selection
20912 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
20914 2005-01-18 Peter Bartok <pbartok@novell.com>
20917 - Hooked up the following events:
20925 o SystemColorsChanged
20926 o ParentFontChanged
20928 - Removed debug output
20929 - Added a call to the current theme's ResetDefaults when a color change
20931 * Form.cs: Now setting the proper ImeMode
20932 * Theme.cs: Defined a method to force recreation of cached resources
20933 and rereading of system defaults (ResetDefaults())
20934 * ThemeWin32Classic.cs: Added ResetDefaults() stub
20936 2005-01-17 Peter Bartok <pbartok@novell.com>
20938 * Control.cs: Added missing attributes
20940 2005-01-17 Jackson Harper <jackson@ximian.com>
20942 * TreeNode.cs: Implement editing. Add missing properties selected
20944 * TreeView.cs: Implement node editing. Also some fixes to use
20945 Invalidate (invalid area) instead of Refresh when selecting.
20947 2005-01-17 Peter Bartok <pbartok@novell.com>
20950 - Implemented InvokeGotFocus() method
20951 - Implemented InvokeLostFocus() method
20952 - Implemented InvokePaint() method
20953 - Implemented InvokePaintBackground() method
20954 - Implemented InvokeClick() method
20955 - Implemented FindForm() method
20956 - Implemented RectangleToClient() method
20957 - Implemented ClientToRectangle() method
20958 - Implemented ResetBackColor() method
20959 - Implemented ResetCursor() method
20960 - Implemented ResetFont() method
20961 - Implemented ResteForeColor() method
20962 - Implemented ResetImeMode() method
20963 - Implemented ResetLeftToRight() method
20964 - Implemented ResetText() method
20965 - Implemented Scale() methods
20966 - Implemented ScaleCore() method
20967 - Implemented Update() method
20968 - Removed unused variables
20969 - Stubbed AccessibilityNotifyClients and
20970 ControlAccessibleObject.NotifyClients() methods (dunno what to do
20972 - Now setting proper default for RightToLeft property
20973 - Fixed bug in SetClientSizeCore that would cause windows to get
20975 - Now sending Click/DoubleClick events
20976 - Now selecting controls when left mouse button is clicked on
20978 * AccessibleEvents.cs: Added
20979 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
20980 * XplatUIOSX.cs: Stubbed UpdateWindow() method
20981 * XplatUIWin32.cs: Implemented UpdateWindow() method
20982 * XplatUIX11.cs: Implemented UpdateWindow() method
20983 * Form.cs: Removed stray semicolon causing CS0162 warning
20984 * ThemeWin32Classic.cs: Fixed unused variable warnings
20985 * ScrollableControl.cs: Now calls base method for ScaleCore
20986 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
20987 style to avoid interference with internal click handler (which is
20988 different than standard Control click handling)
20990 - Now unchecks all sibling radio buttons when control is
20991 selected (Fixes #68756)
20992 - Removed internal tabstop variable, using the one inherited from
20995 2005-01-17 Jackson Harper <jackson@ximian.com>
20997 * NavigateEventArgs.cs: Fix base type.
20998 * LinkLabel.cs: Sig fix
21000 2005-01-17 Jackson Harper <jackson@ximian.com>
21002 * TreeView.cs: Only invalidate the effected nodes bounds when
21005 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
21007 * XplatUIWin32.cs: fixes Win32 marshaling
21008 * XplatUIX11.cs: fixes method signature
21010 2005-01-17 Peter Bartok <pbartok@novell.com>
21012 * XplatUIX11.cs: Clean up resources when we no longer need them
21014 2005-01-17 Peter Bartok <pbartok@novell.com>
21016 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
21017 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
21018 and DestroyCursor() methods.
21019 * Cursor.cs: Partially implemented, now supports standard cursors;
21020 still contains some debug code
21021 * Cursors.cs: Implemented class
21023 - WndProc(): Added handling of WM_SETCURSOR message, setting the
21025 - Implemented Cursor property
21026 - Replaced break; with return; more straightforwar and possibly
21028 - Now properly setting the result for WM_HELP
21029 * X11Structs.cs: Added CursorFontShape enum
21030 * XplatUIStructs.cs:
21031 - Added StdCursor enum (to support DefineStdCursor() method)
21032 - Added HitTest enum (to support sending WM_SETCURSOR message)
21034 - Now sends the WM_SETCURSOR message
21035 - Implemented new cursor methods
21036 * XplatUIOSX.cs: Stubbed new cursor methods
21038 - Implemented new cursor methods
21039 - Added GetSystemMetrics function and associated enumeration
21041 2005-01-15 Peter Bartok <pbartok@novell.com>
21044 - WndProc(): Now handles EnableNotifyMessage
21045 - SelectNextControl(): Fixed bug where if no child or sibling
21046 controls exist we looped endlessly
21048 2005-01-14 Jackson Harper <jackson@ximian.com>
21050 * TreeView.cs: Recalculate the tab pages when a new one is added
21051 so that the proper bounding rects are created.
21053 2005-01-14 Jackson Harper <jackson@ximian.com>
21055 * TreeView.cs: Draw a gray box instead of a grip in the lower
21056 right hand corner when there are both horizontal and vertical
21059 2005-01-14 Jackson Harper <jackson@ximian.com>
21061 * Control.cs: When erasing backgrounds use FromHwnd instead of
21062 FromHdc when there is a NULL wparam. This occurs on the X driver.
21063 * XplatUIX11.cs: Set the wparam to NULL.
21065 2005-01-13 Jackson Harper <jackson@ximian.com>
21067 * PictureBox.cs: Implement missing methods (except ToString, need
21068 to test that on windows) and events. When visibility is changed we
21069 need to redraw the image because the buffers are killed. When size
21070 is changed refresh if the sizemode needs it.
21072 2005-01-13 Peter Bartok <pbartok@novell.com>
21074 * Control.cs (SelectNextControl): Was using wrong method to select
21077 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
21079 * ComboBox.cs: fixes dropstyle
21081 2005-01-13 Peter Bartok <pbartok@novell.com>
21084 - Implemented Select() override
21085 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
21086 - Now sets keyboard focus on startup
21087 * Control.cs (SelectNextControl): Now properly handles directed=true
21089 - WndProc: Now passes tab key on to base if AcceptTabChar=false
21090 - Added (really bad) focus rectangle (mostly for testing)
21091 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
21092 to enforce redraw on focus changes
21093 * ContainerControl.cs:
21094 - Fixed detection of Shift-Tab key presses
21095 - Fixed traversal with arrow keys
21096 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
21097 gonna keep this or if it's complete yet
21099 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
21101 * ComboBox.cs: missing properties, fixes
21103 2005-01-13 Peter Bartok <pbartok@novell.com>
21105 * Panel.cs (ctor): Setting Selectable window style to off
21106 * Splitter.cs (ctor): Setting Selectable window style to off
21107 * GroupBox.cs (ctor): Setting Selectable window style to off
21108 * Label.cs (ctor): Setting Selectable window style to off
21110 2005-01-12 Miguel de Icaza <miguel@ximian.com>
21112 * UpDownBase.cs (InitTimer): If the timer has been already
21113 created, enable it.
21115 Use a TextBox instead of a Label.
21117 2005-01-12 Jackson Harper <jackson@ximian.com>
21119 * TreeView.cs: Refresh the tree after sorting the nodes. Always
21120 draw the connecting node lines (when ShowLines is true).
21121 * TreeNode.cs: The nodes index can now be updated. This is used
21122 when a node collection is sorted.
21123 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
21124 insert or an existing unsorted node collection can be sorted.
21126 2005-01-12 Peter Bartok <pbartok@novell.com>
21128 * ContainerControl.cs: Implemented ProcessDialogKeys()
21130 2005-01-12 Peter Bartok <pbartok@novell.com>
21133 - Implemented SelectNextControl() method
21134 - Several focus related bug fixes
21135 - Fixed Docking calculations to match MS documentation and
21138 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
21140 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
21143 2005-01-12 Peter Bartok <pbartok@novell.com>
21146 - Fixed broken Contains() method
21147 - Implemented GetNextControl() method. Finally. This is the pre-
21148 requisite for focus handling.
21150 2005-01-12 Peter Bartok <pbartok@novell.com>
21152 * OSXStrucs.cs: Added
21154 2005-01-12 Peter Bartok <pbartok@novell.com>
21157 - Removed PeekMessageFlags
21158 - Implemented SetWindowStyle() method
21159 * XplatUIStructs.cs: Added PeekMessageFlags
21160 * X11Structs: Added missing border_width field to XWindowChanges struct
21162 - PeekMessage: Now throws exception if flags which are not yet
21163 supported are passed
21164 - Implemented SetWindowStyle() method
21165 - Fixed SetZOrder to handle AfterHwnd properly
21166 * XplatUI.cs: Added SetWindowStyle() method
21167 * XplatUIDriver.cs: Added SetWindowStyle() abstract
21169 - Implemented UpdateStyles() method
21170 - Implemented UpdateZOrder() method
21171 * XplatUIOSX.cs: Added SetWindowStyle() stub
21173 2005-01-12 Geoff Norton <gnorton@customerdna.com>
21175 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
21179 2005-01-11 Jackson Harper <jackson@ximian.com>
21181 * TreeView.cs: Still need to draw lines to siblings even if out of
21182 the current node is out of the clip.
21184 2005-01-11 Jackson Harper <jackson@ximian.com>
21186 * TreeView.cs: When setting the hbar/vbar/grip position use
21187 SetBounds so that perform layout is only called once. Also suspend
21188 and resume layout so layout is only done once for all controls.
21189 - Removed some debug fluff
21190 * SizeGrip.cs: Call base implmentation in overriding methods.
21191 - When visibility is changed the drawing buffers are killed so we
21194 2005-01-11 Jackson Harper <jackson@ximian.com>
21196 * TreeView.cs: Calculate the open node count while drawing. This
21197 saves us an entire tree traversal for every paint operation. Use
21198 a member var for the open node count so less vars are passed around.
21200 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
21202 * MonthCalendar.cs:
21203 - fixed selection to use mousemove, not mouse polling on timer
21204 * ThemeWin32Classic.cs
21205 - removed redundant unused variable "no_more_content"
21207 2005-01-11 Peter Bartok <pbartok@novell.com>
21209 * XplatUIX11.cs (DoEvents): Needs to return when no more events
21210 are pending, so it now calls PeekMessage instead of GetMessage;
21211 implemented a incomplete version of PeekMessage
21213 2005-01-11 Peter Bartok <pbartok@novell.com>
21215 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
21217 * TextBoxBase.cs: Added sending of TextChanged event
21219 2005-01-10 Jackson Harper <jackson@ximian.com>
21221 * TreeView.cs: Try not to draw outside the clipping rectangle on
21224 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
21226 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
21228 2005-01-10 Jackson Harper <jackson@ximian.com>
21231 - Implement fast scrolling. Now only the newly
21232 exposed nodes are drawn and the old image is moved using the
21233 XplatUI::ScrollWindow method.
21234 - Factor in height of nodes when calculating whether or not the
21235 node is in the clipping rect.
21237 2005-01-10 Jackson Harper <jackson@ximian.com>
21239 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
21241 2005-01-10 Peter Bartok <pbartok@novell.com>
21243 * Application.cs: Added temporary hack to resolve all our resize
21244 required issues on startup. This will get fixed properly at
21245 some point in the future
21247 2005-01-10 Jackson Harper <jackson@ximian.com>
21249 * SizeGrip.cs: New internal class that is used as a sizing
21250 grip control...hence the name.
21252 2005-01-10 Peter Bartok <pbartok@novell.com>
21254 * Control.cs: Implemented proper TabIndex handling, now assigning
21255 a tabindex when a control is added to a container
21256 * GroupBox.cs (ctor): Now sets the Container style bit, required
21257 for Control.GetNextControl()
21259 2005-01-09 Jackson Harper <jackson@ximian.com>
21261 * TextBoxBase.cs: Clear window when scrolling (fixes build).
21263 2005-01-09 Peter Bartok <pbartok@novell.com>
21265 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21266 XplatUIX11.cs: Added ability to control ScrollWindow expose and
21267 an overload for ScrollWindow to allow only scrolling a rectangle
21269 2005-01-09 Peter Bartok <pbartok@novell.com>
21272 - Implemented SetDesktopBounds method
21273 - Implemented SetDesktopLocation method
21275 2005-01-08 Jackson Harper <jackson@ximian.com>
21277 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
21278 the node count has changed, this removes to VScroll::Refresh calls
21281 2005-01-08 Geoff Norton <gnorton@customerdna.com>
21283 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
21285 2005-01-07 Jackson Harper <jackson@ximian.com>
21287 * TreeNode.cs: Just update the single node when it is
21288 checked. Don't refresh after toggling, the Expand/Collapse already
21290 * TreeView.cs: Respect clipping a little more when drawing. Try
21291 not to redraw things that don't need to be redrawn. Just hide the
21292 scrollbars when they are no longer needed instead of removing
21293 them, so they don't have to be created again and again.
21295 2005-01-07 Geoff Norton <gnorton@customerdna.com>
21297 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
21298 coordinates to window space to place the caret properly, FIXED.
21299 Implement GetWindowState & SetWindowState
21301 2005-01-06 Peter Bartok <pbartok@novell.com>
21304 - Implemented ClientSize property
21305 - Implemented DesktopBounds property
21306 - Implemented DesktopLocation property
21307 - Implemented IsRestrictedWindow property
21308 - Implemented Size property
21309 - Implemented TopLevel property
21310 - Implemented FormWindowState property
21312 - Implemented GetTopLevel() method
21313 - Implemented SetTopLevel() method
21314 * X11Structs.cs (Atom):
21315 - Added AnyPropertyType definition
21316 - Added MapState definiton and updated XWindowAttribute struct
21317 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
21318 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
21319 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
21321 - Implemented GetWindowState() and SetWindowState() methods
21322 - Fixed Win32GetWindowLong return type
21324 - Introduced central function for sending NET_WM messages
21325 - Implemented GetWindowState() and SetWindowState() methods
21326 * TextBoxBase.cs (set_Lines):
21327 - Now uses Foreground color for text added via Text property (Duh!)
21328 - Added code to remember programmatically requested size (fixes
21329 behaviour when Multiline is set after Size)
21330 - Added AutoSize logic
21332 2005-01-06 Jackson Harper <jackson@ximian.com>
21334 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
21336 2005-01-06 Jackson Harper <jackson@ximian.com>
21338 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
21339 set to less then 0.
21341 2005-01-06 Jackson Harper <jackson@ximian.com>
21343 * ScrollableControl.cs: Lazy init the scrollbars.
21345 2005-01-06 Jackson Harper <jackson@ximian.com>
21347 * Theme.cs: Speed up getting pens and solid brushes, by using
21348 their ARGB as a hash instead of tostring and not calling Contains.
21350 2005-01-06 Peter Bartok <pbartok@novell.com>
21353 - Implemented OnActivated and OnDeactivate event trigger
21354 - Implemented Activate() method
21355 - Fixed ShowDialog() to activate the form that was active before
21356 the dialog was shown
21358 - Added global active_window var that tracks the currently active
21360 - Now always grabs Property changes from the root window to always
21361 catch changes on the active window property
21362 - Added code to PropertyNotify handler to send Active/Inactive
21363 messages when state changes. This puts X11 and Win32 en par on
21364 WM_ACTIVATE notifications (except for double notifications when
21365 the user clicks away from our modal window to another one of our
21368 2005-01-05 Jackson Harper <jackson@ximian.com>
21370 * ImageList.cs: Implment ctor
21372 2005-01-05 Geoff Norton <gnorton@customerdna.com>
21374 * XplatUIOSX.cs: Implement Activate/SetTopmost
21376 2005-01-05 Geoff Norton <gnorton@customerdna.com>
21378 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
21380 2005-01-05 Geoff Norton <gnorton@customerdna.com>
21382 * XplatUIOSX.cs: Implement GetActive/SetFocus.
21384 2005-01-05 Peter Bartok <pbartok@novell.com>
21386 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
21387 XplatUIOSX.cs: Added GetActive method to return the currently
21388 active window for the application (or null, if none is active)
21390 - Implemented ActiveForm
21391 - Commented out owner assignment for modal dialogs (causes problems
21392 on Win32, since the owner will be disabled)
21393 - Reworked some Active/Focus handling (still incomplete)
21394 * CommonDialog.cs: Commented out owner assignment for modal dialogs
21395 (causes problems on Win32, since the owner will be disabled)
21396 * IWin32Window: Added ComVisible attribute
21398 2005-01-05 Peter Bartok <pbartok@novell.com>
21400 * ToolTip.cs (WndProc): Enable setting focus now that we have the
21401 required XplatUI functions.
21403 2005-01-05 Peter Bartok <pbartok@novell.com>
21405 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
21406 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
21407 to implement focus and activation handling; still incomplete and
21410 2005-01-04 Peter Bartok <pbartok@novell.com>
21412 * TextBoxBase.cs: Changed access level for Document property to
21413 match switch to internal for TextControl
21415 2005-01-04 Peter Bartok <pbartok@novell.com>
21417 * AccessibleObject: Added ComVisible attribute
21419 2005-01-04 Jackson Harper <jackson@ximian.com>
21421 * X11Keyboard.cs: Remove unneeded var.
21423 2005-01-04 Jackson Harper <jackson@ximian.com>
21425 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
21427 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
21428 ClientMessage. This makes apps exit cleanly (more often).
21430 2005-01-04 Jackson Harper <jackson@ximian.com>
21432 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
21433 handling focus, return correct colors and fonts,
21434 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
21435 handle selection, horizontal scrolling, and mouse interaction.
21437 2005-01-04 Peter Bartok <pbartok@novell.com>
21439 * ICommandExecutor.cs: Added
21440 * IDataGridColumnStyleEditingNotificationService.cs: Added
21441 * IFeatureSupport.cs: Added
21442 * IFileReaderService.cs: Added
21443 * IDataObject.cs: Added ComVisible attribute
21444 * AmbientProperties.cs: Added
21445 * BaseCollection.cs: Added missing attributes
21446 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
21447 * BaseCollection.cs: Added missing attributes
21448 * Binding.cs: Added TypeConverter attribute
21449 * BindingContext.cs: Added DefaultEvent attribute
21450 * BindingsCollection.cs: Added DefaultEvent attribute
21451 * Button.cs: Added DefaultValue attribute
21452 * DragEventArgs.cs: Added ComVisible attribute
21453 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
21454 * KeyEventArgs.cs: Added ComVisible attribute
21455 * KeyPressEventArgs.cs: Added ComVisible attribute
21456 * MouseEventArgs.cs: Added ComVisible attribute
21457 * NavigateEventArgs.cs: Added
21458 * NavigateEventHandler.cs: Added
21459 * FeatureSupport.cs: Added
21460 * OSFeature.cs: Added
21461 * Theme.cs: Added abstract Version property to support OSFeature
21462 * ThemeWin32Classic.cs: Added Version property to
21463 support OSFeature.Themes
21464 * ProgressBar.cs: Removed OnPaintBackground override, not required since
21465 the proper styles to avoid background drawing are set, also doesn't
21467 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
21468 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
21469 * ScrollEventArgs.cs: Added ComVisible attribute
21470 * SplitterEventArgs.cs: Added ComVisible attribute
21471 * AccessibleSelection.cs: Added Flags attribute
21472 * Appearance.cs: Added ComVisible attribute
21473 * Border3DSide.cs: Added ComVisible attribute
21474 * Border3DStyle.cs: Added ComVisible attribute
21475 * BorderStyle.cs: Added ComVisible attribute
21476 * DragAction.cs: Added ComVisible attribute
21477 * ErrorBlinkStyle.cs: Added
21478 * ScrollEventType.cs: Added ComVisible attribute
21479 * AnchorStyles.cs: Added Editor attribute
21480 * DockStyle.cs: Added Editor attribute
21481 * HorizontalAlignment.cs: Added ComVisible attribute
21482 * HelpEventArgs.cs: Added ComVisible attribute
21483 * PaintEventArgs.cs: Added IDisposable
21485 2005-01-04 Peter Bartok <pbartok@novell.com>
21487 * TextControl.cs: Switched Line, LineTag and Document classes to
21490 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
21492 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
21493 Simple mode, fixes, IntegralHeight, etc.
21495 2005-01-04 Peter Bartok <pbartok@novell.com>
21497 * TextBoxBase.cs: Using proper font variable now
21499 2005-01-04 Peter Bartok <pbartok@novell.com>
21501 * Form.cs (ShowDialog): Set parent to owner, if provided
21502 * GroupBox.cs: Removed unused vars
21504 - Added GetHashCode() for Document and LineTag classes
21505 - Removed unused variables
21506 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
21507 to allow translation between continuous char position and line/pos
21508 * CheckBox.cs: Removed vars that are provided by base class
21509 * RadioButton.cs: Removed vars that are provided by base class, added
21510 new keyword where required
21511 * LinkLabel.cs: Added new keyword where required
21512 * Control.cs (WndProc): Removed unused variable
21514 - Finished SelectionLength property
21515 - Implemented SelectionStart property
21516 - Implemented Text property
21517 - Removed unused vars
21518 * MessageBox.cs: Added new keyword where required
21519 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
21521 * MenuAPI.cs: Added new keyword where required
21522 * ButtonBase.cs: Removed vars that are provided by base class, added
21523 new keyword where required
21524 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
21525 argument to double, to allow compiling with csc 2.0 (Atsushi ran
21527 * Application.cs (Run): Now triggers the ThreadExit event
21528 * CommonDialog.cs: Added new keyword where required; now properly sets
21529 parent (owner) for dialog
21530 * XplatUIX11.cs: Commented out unused vars
21531 * StatusBar.cs: Fixed signature for Text property
21532 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
21534 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
21536 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
21537 TrackBar.cs, MonthCalendar.cs: remove unused vars
21539 2005-01-03 Jackson Harper <jackson@ximian.com>
21541 * ThemeWin32Classic.cs:
21542 * X11Keyboard.cs: Remove unused vars.
21544 2005-01-03 Peter Bartok <pbartok@novell.com>
21547 - set_Text: Tied into TextControl
21548 - set_TextAlignment: Tied into TextControl
21550 - Added alignment properties and implemented alignment handling
21551 and drawing (still has a bug, not generating proper expose events)
21552 - Added new Line() constructor to allow passing the line alignment
21553 - Fixed selection setting, properly handling end<start now
21554 - Added aligment considerations to RecalculateDocument()
21556 - Now properly enforces control height for single line controls
21557 - Added support for CharacterCasing
21558 - Added IsInputKey override
21559 - Fixed Keys.Enter logic
21560 - Added SetBoundsCore override
21561 - Fixed mouse selection handling
21563 2005-01-03 Jackson Harper <jackson@ximian.com>
21566 - Collapse and uncheck all nodes when CheckBoxes is disabled.
21567 - Checkboxes are always aligned to the bottom of the node,
21568 regardless of item height.
21569 - Use the node bounds to draw the text so we can center it when
21570 the item height is greater then the font height.
21571 - Node::Bounds are only the text part of the node.
21572 * TreeNode.cs: New method to combine collapsing and unchecking all
21575 2005-01-02 Jackson Harper <jackson@ximian.com>
21577 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
21578 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
21579 tree when a check is changed. TODO: Only refresh the checked node.
21581 2004-12-30 Jackson Harper <jackson@ximian.com>
21583 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
21584 * TreeNode.cs: When collapsing make sure to never collapse the
21587 2004-12-29 Jackson Harper <jackson@ximian.com>
21589 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
21591 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
21593 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
21595 2004-12-28 Peter Bartok <pbartok@novell.com>
21597 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
21600 2004-12-28 Peter Bartok <pbartok@novell.com>
21602 * Control.cs (WndProc): Added WM_HELP handler, now generates
21603 HelpRequested event
21604 * Form.cs: Added HelpButton property and required support code
21605 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
21607 2004-12-28 Peter Bartok <pbartok@novell.com>
21610 - Made DialogForm.owner variable internal
21611 - Added check to ensure owner form is set before setting
21612 owner properties in CreateParams
21614 2004-12-28 Geoff Norton <gnorton@customerdna.com>
21616 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
21617 swizzling. Implement ClientToScreen and ScreenToClient. Implement
21618 GetCursorPos. Fix major visibility issues. Rework the windowing
21619 system to support borderless/titleless windows (implements menus).
21620 Fix GetWindowPos. Implement initial background color support for
21623 2004-12-28 Peter Bartok <pbartok@novell.com>
21625 * Form.cs (get_CreateParams): Make sure we have an owner before using
21626 the owner variable. Implement proper default if no owner exists
21628 2004-12-28 Peter Bartok <pbartok@novell.com>
21630 * In preparation for making Managed.Windows.Forms the default build target
21631 for System.Windows.Forms, the following stubbed files were added.
21632 Dialogs are currently being implemented by contributors and are only
21633 short-term place holders.
21634 * ColorDialog.cs: Initial check-in (minmal stub)
21635 * DataGrid.cs: Initial check-in (minimal stub)
21636 * DataGridLineStyle.cs: Initial check-in (minimal stub)
21637 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
21638 * DataGridTableStyle.cs: Initial check-in (minimal stub)
21639 * FontDialog.cs: Initial check-in (minimal stub)
21640 * FileDialog.cs: Initial check-in (minimal stub)
21641 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
21642 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
21643 * OpenFileDialog: Initial check-in (minimal stub)
21644 * IComponentEditorPageSite.cs: Initial check-in
21645 * Splitter.cs: Initial check-in (for Jackson)
21646 * SplitterEventArgs.cs: Initial check-in (for Jackson)
21647 * SplitterEventHandler.cs: Initial check-in (for Jackson)
21648 * TextBox.cs: Initial check-in; still needs some wiring to
21649 TextControl backend
21650 * Form.cs: Implemented ControlBox property
21651 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
21652 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
21653 * TextControl.cs: Added selection functionality; added todo header
21655 - Implemented Lines property
21656 - Implemented TextHeight property
21657 - Implemented SelectedText property
21658 - Implemented SelectionLength property
21659 - Implemented SelectAll method
21660 - Implemented ToString method
21661 - Removed and cleaned up some debug code
21662 - Implemented (still buggy) mouse text selection
21664 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
21666 * ComboBox.cs: Complete DropDownList implementation, fixes.
21668 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
21670 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
21671 * ComboBoxStyle.cs: ComboBoxStyle enum
21672 * ComboBox.cs: Initial work on ComboBox control
21674 2004-12-21 Peter Bartok <pbartok@novell.com>
21676 * Control.cs (ctor, CreateParams): Moved setting of is_visible
21677 forward so that anything that creates a window gets the default,
21678 also no longer uses Visible property in CreateParams to avoid
21679 walking up the parent chain and possibly get the wrong visible
21680 status. Fixed IsVisible to no longer walk up to the parent.
21682 2004-12-21 Peter Bartok <pbartok@novell.com>
21684 * Form.cs (ShowDialog): Unset modality for the proper window
21686 2004-12-20 Peter Bartok <pbartok@novell.com>
21688 * CommonDialog.cs: Initial check-in
21690 2004-12-20 Peter Bartok <pbartok@novell.com>
21692 * Control.cs (Visible): Now uses the parent window instead of the
21693 client area window for the property
21696 - ShowDialog(): Now uses the proper window for modality
21697 - The default visibility state for the form parent is now false. This
21698 will prevent the user from seeing all the changes to the form and
21699 its controls before the application hits Application.Run()
21700 - Removed some stale commented out code
21703 - Added FindWindow() method to have a method to check for existence
21705 - Added ability to override default exception handling (for example
21706 when debugging with VS.Net; to do this the ExternalExceptionHandler
21708 - Removed some useless debug output
21711 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
21712 not working as expected
21713 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
21714 property to allow switching back to the modal window if focus is
21715 given to another one of our windows (Application Modal)
21716 - Now only sets override_redirect if we create a window
21718 - Moved EventMask selection before mapping of newly created window
21719 so we can catch the map event as well
21720 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
21721 - Added various Atom related DllImports
21722 - Implemented Exit() method
21723 - .ctor() : No longer shows window if WS_VISIBLE is not defined
21724 in the CreateParams
21726 * MessageBox.cs: Now properly deals with the FormParent window by
21727 providing an override the FormParent CreateParams property to
21728 set as POPUP instead of OVERLAPPED window.
21730 2004-12-19 Geoff Norton <gnorton@customerdna.com>
21732 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
21733 Minor code cleanup.
21735 2004-12-19 Geoff Norton <gnorton@customerdna.com>
21737 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
21739 2004-12-18 Peter Bartok <pbartok@novell.com>
21741 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
21742 implementing SetModal() method
21744 2004-12-18 Peter Bartok <pbartok@novell.com>
21746 * X11Structs.cs (XGCValues): Fixed type of function element
21747 * XplatUI.cs: Added ScrollWindow() method
21748 * XplatUIDriver.cs: Added ScrollWindow() abstract
21749 * XplatUIWin32.cs: Implemented ScrollWindow() method
21750 * XplatUIX11.cs: Implemented ScrollWindow() method
21751 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
21753 2004-12-17 Geoff Norton <gnorton@customerdna.com>
21755 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
21756 Some more keyboard support (INCOMPLETE)
21758 2004-12-17 Peter Bartok <pbartok@novell.com>
21761 - Added color attribute to line tags.
21762 - Added color argument to all functions dealing with tags
21763 - Added color argument support to various functions
21764 - Fixed miss-calculation of baseline/shift in certain circumstances
21766 * TextBoxBase.cs: Added new color option to test code
21768 2004-12-17 Jackson Harper <jackson@ximian.com>
21771 * MonthCalendar.cs: Signature fixes
21773 2004-12-17 Geoff Norton <gnorton@customerdna.com>
21775 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
21776 keyboard event moved it. Create a new graphics context for each paint resolves this
21778 2004-12-17 Geoff Norton <gnorton@customerdna.com>
21780 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
21781 Make caret exist and go blink blink. Initial keyboard support.
21782 Fix exception handler, Add Invalidate support. Change way RefreshWindow
21785 2004-12-17 Jackson Harper <jackson@ximian.com>
21787 * XplatUIStructs.cs: Updated set of virtual keycodes.
21788 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
21790 2004-12-17 Jackson Harper <jackson@ximian.com>
21792 * XplatUIX11.cs: Prune old keyboard code.
21794 2004-12-17 Jackson Harper <jackson@ximian.com>
21796 * XplatUIX11.cs: When generating mouse wparams get the modifier
21797 keys from the ModifierKeys property.
21799 2004-12-17 Jackson Harper <jackson@ximian.com>
21801 * X11Keyboard.cs: Send up/down input when generating
21802 messages. Remove some unused vars.
21804 2004-12-17 Jackson Harper <jackson@ximian.com>
21807 * TreeView.cs: get rid of warnings.
21809 2004-12-17 Jackson Harper <jackson@ximian.com>
21811 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
21813 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
21815 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
21816 CheckedListBox.cs: Implementation
21818 2004-12-17 Peter Bartok <pbartok@novell.com>
21820 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
21822 2004-12-16 Peter Bartok <pbartok@novell.com>
21825 - InsertCharAtCaret(): Fixed start pos fixup
21826 - CaretLine_get: No longer derives the line from the tag, the tag
21827 could be stale if lines in the document have been added or deleted
21828 - RebalanceAfterDelete(): Fixed bug in balancing code
21829 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
21830 - Line.Streamline(): Now can also elminate leading empty tags
21831 - DumpTree(): Added a few more tests and prevented exception on
21833 - Added Debug section for Combining lines
21834 - Delete(): Now copies all remaining properties of a line
21837 - Left mousebutton now sets the caret (and middle button still acts
21838 as formatting tester, which must go away soon)
21839 - Added Debug section for Deleting/Combining lines
21840 - Fixed calculations for UpdateView after Combining lines
21842 2004-12-16 Peter Bartok <pbartok@novell.com>
21844 * TextControl.cs: Now properly aligns text on a baseline, using the
21845 new XplatUI.GetFontMetrics() method. Simplified several calculations
21846 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
21849 2004-12-16 Peter Bartok <pbartok@novell.com>
21851 * XplatUI.cs: Added GetFontMetrics() method
21852 * XplatUIDriver.cs: Added GetFontMetrics() abstract
21853 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
21854 into libgdiplus, our private GetFontMetrics function
21855 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
21856 * XplatUIWin32.cs: Implemented GetFontMetrics() method
21858 2004-12-16 Jackson Harper <jackson@ximain.com>
21860 * XplatUIStruct.cs: Add enum for dead keys
21861 * X11Keyboard.cs: Map and unmap dead keys.
21863 2004-12-16 Jackson Harper <jackson@ximian.com>
21865 * X11Keyboard.cs: Detect and use the num lock mask.
21867 2004-12-16 Peter Bartok <pbartok@novell.com>
21869 * Control.cs (CreateGraphics): Added check to make sure the
21870 handle of the window exists before calling Graphics.FromHwnd()
21872 2004-12-16 Peter Bartok <pbartok@novell.com>
21874 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
21875 contains a lot of code that's not supposed to be there for the
21876 real thing, but required for developing/testing the textbox
21879 2004-12-16 Peter Bartok <pbartok@novell.com>
21882 - Fixed Streamline method
21883 - Added FindTag method to Line
21884 - Added DumpTree method for debugging
21885 - Added DecrementLines() method for deleting lines
21886 - Fixed UpdateView to update the cursor to end-of-line on single-line
21888 - Added PositionCaret() method
21889 - Fixed MoveCaret(LineDown) to move into the last line, too
21890 - Added InsertChar overload
21891 - Fixed InsertChar tag offset calculations
21892 - Added DeleteChar() method
21893 - Added Combine() method for folding lines
21894 - Fixed Delete() method, no longer allocates wasted Line object and
21895 now copies all properties when swapping nodes
21896 - Delete() method now updates document line counter
21898 2004-12-15 Jackson Harper <jackson@ximian.com>
21900 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
21901 * X11Keyboard.cs: Expose the currently selected modifier keys
21902 through a property.
21904 2004-12-15 Peter Bartok <pbartok@novell.com>
21906 * TextControl.cs: Initial check-in. Still incomplete
21908 2004-12-15 Jackson Harper <jackson@ximian.com>
21911 * TreeView.cs: Fix build on csc (second time today ;-))
21913 2004-12-15 Jackson Harper <jackson@ximian.com>
21915 * TreeView.cs: Store the treenodes plus/minus box bounds when it
21916 is calculated and use this for click testing.
21917 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
21919 2004-12-15 Jackson Harper <jackson@ximian.com>
21921 * TreeView.cs: Pass the nodes image index to the image list when
21922 drawing that image.
21924 2004-12-15 Jackson Harper <jackson@ximian.com>
21926 * X11Keyboard.cs: Set messages hwnd.
21927 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
21928 post_message calls.
21930 2004-12-15 Jackson Harper <jackson@ximian.com>
21932 * X11Keyboard.cs: Fix to compile with csc.
21934 2004-12-15 Jackson Harper <jackson@ximian.com>
21936 * X11Structs.cs: Add key mask values
21937 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
21938 * X11Keyboard.cs: New file - Extrapolates and interpolates key
21939 down/up foo into WM_CHAR foo
21940 * KeyboardLayouts.cs: Common keyboard layouts
21941 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
21942 post messages into the main queue.
21944 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
21946 * Button.cs: implement ProcessMnemonic
21947 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
21949 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
21950 * ButtonBase.cs: Show HotkeyPrefix (not the &)
21952 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
21954 * MonthCalendar.cs: Implemented click-hold for next/previous month
21957 2004-12-11 Peter Bartok <pbartok@novell.com>
21960 - Added XKeyboardState (moved from XplatUIX11.cs)
21961 - Added XCreateGC related enums and structures
21962 - Added GXFunction for XSetFunction
21964 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
21966 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
21967 CaretVisible() calls
21969 * ToolTip.cs: Added code to prevent stealing focus from app windows
21971 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
21972 DestroyCaret, SetCaretPos and CaretVisible)
21975 - Added implementation for caret functions
21976 - Moved hover variables into a struct, to make it a bit easier
21977 on the eyes and to debug
21978 - Removed XKeyboardState (moved to XplatUIX11.cs)
21979 - Moved Keyboard properties into the properties region
21981 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
21982 call to get a graphics context for our control
21984 * XplatUIOSX.cs: Added empty overrides for the new caret functions
21986 * TreeView.cs: Fixed bug. No matter what color was set it would always
21987 return SystemColors.Window
21989 * XplatUIWin32.cs: Implemented caret overrides
21991 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
21993 * ListBox.cs: fire events, implement missing methods and properties,
21996 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
21998 * MonthCalendar.cs: invalidation bug fixing
21999 * ThemeWin32Classic.cs: paint fixing
22001 2004-12-09 Geoff Norton <gnorton@customerdna.com>
22003 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
22004 prepare the CGContextRef there now.
22006 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
22008 * MonthCalendar.cs:
22009 - optimisationL only invalidate areas that have changed
22010 * ThemeWin32Classic.cs:
22011 - only paint parts that intersect with clip_area
22013 2004-12-09 Peter Bartok <pbartok@novell.com>
22015 * Application.cs: Undid changes from r37004 which cause problems
22018 2004-12-09 Ravindra <rkumar@novell.com>
22020 * ToolBar.cs: Added support for displaying ContextMenu
22021 attached to a button on ToolBar.
22022 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
22025 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
22027 * Label.cs: autosize works in text change and removes unnecessary
22030 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
22032 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
22035 2004-12-08 Geoff Norton <gnorton@customerdna.com>
22037 * XplatUIOSX.cs: Added mouse move/click/grab support
22038 Remove some debugging WriteLines not needed anymore.
22039 Add window resizing/positioning.
22040 Fix visibility on reparenting.
22042 2004-12-08 Peter Bartok <pbartok@novell.com>
22044 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
22046 2004-12-07 Geoff Norton <gnorton@customerdna.com>
22048 * XplatUIOSX.cs: Initial checkin
22049 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
22051 2004-12-03 Ravindra <rkumar@novell.com>
22053 * ListView.cs: Added some keybindings and fixed scrolling.
22054 ScrollBars listen to ValueChanged event instead of Scroll
22055 Event. This would let us take care of all changes being
22056 done in the scrollbars' values programmatically or manually.
22057 * ListView.cs (CanMultiselect): Added a check for shift key.
22058 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
22059 * ListViewItem.cs (Clone): Fixed. We need to make a copy
22060 of ListViewSubItemCollection as well.
22062 2004-12-06 Peter Bartok <pbartok@novell.com>
22064 * Control.cs (Parent): Added check and exception to prevent
22067 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
22069 * ListBox.cs: implemented clipping, selection single and multiple,
22072 2004-12-03 Ravindra <rkumar@novell.com>
22074 * ListView.cs (ListView_KeyDown):
22075 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
22076 when CTRL key is pressed.
22077 * ListViewItem.cs (Selected): Fixed setting the property.
22079 2004-12-03 Marek Safar <marek.safar@seznam.cz>
22081 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
22083 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
22084 MinimizeBox, ShowInTaskbar, TopMost properties.
22086 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
22087 will be implemented).
22089 2004-12-03 Marek Safar <marek.safar@seznam.cz>
22091 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
22093 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
22096 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
22098 * TreeView.cs: BackColor is Colors.Window.
22100 2004-12-01 Jackson Harper <jackson@ximian.com>
22102 * TreeView.cs: When resizing the tree if the user is making it
22103 smaller we don't get expose events, so we need to handle adding
22104 the horizontal scrollbar in the size changed handler as well as
22105 the expose handler.
22107 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
22109 * DrawItemState.cs: fixes wrong enum values
22111 2004-12-01 Jackson Harper <jackson@ximian.com>
22113 * TreeView.cs: Resize the hbar as well as the vbar on resize.
22115 2004-12-01 Jackson Harper <jackson@ximian.com>
22117 * NodeLabelEditEventArgs.cs:
22118 * NodeLabelEditEventHandler.cs:
22119 * OpenTreeNodeEnumerator.cs:
22121 * TreeNodeCollection.cs:
22123 * TreeViewAction.cs:
22124 * TreeViewCancelEventArgs.cs:
22125 * TreeViewCancelEventHandler.cs:
22126 * TreeViewEventArgs.cs:
22127 * TreeViewEventHandler.cs: Initial implementation.
22129 2004-12-01 Ravindra <rkumar@novell.com>
22131 * ListView.cs (CalculateListView): Fixed scrolling related
22132 calculations. Also, removed some debug statements from other
22134 * ListViewItem.cs: Changed access to 'selected' instance variable
22135 from private to internal.
22136 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
22138 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
22140 * ThemeWin32Classic.cs: remove cache of brush and pens for
22141 specific controls and use the global system, fixes scrollbutton
22142 bugs (for small sizes, disabled, etc)
22144 * ScrollBar.cs: does not show the thumb for very small controls
22145 (as MS) and allow smaller buttons that the regular size
22147 2004-12-01 Miguel de Icaza <miguel@ximian.com>
22149 * UpDownBase.cs: Add abstract methods for the interface.
22150 Add new virtual methods (need to be hooked up to TextEntry when it
22152 Add override methods for most features.
22153 Computes the size, forces the height of the text entry.
22155 * NumericUpDown.cs: Put here the current testing code.
22157 * Set eol-style property on all files that do not have mixed line
22158 endings, to minimize the future problems. There are still a few
22159 files with mixed endings, and someone should choose whether they
22160 want to move it or not.
22162 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
22164 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
22167 2004-11-30 Ravindra <rkumar@novell.com>
22169 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
22170 drawing and replaced use of SystemColors by theme colors.
22171 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
22172 * ListView.cs (ListViewItemCollection.Add): Throw exception when
22173 same ListViewItem is being added more than once.
22175 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
22177 * MonthCalendar.cs:
22178 - ControlStyles love to make the control not flicker
22180 2004-11-30 Peter Bartok <pbartok@novell.com>
22182 * CharacterCasing.cs: Added
22184 2004-11-29 Peter Bartok <pbartok@novell.com>
22186 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
22187 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
22188 I am removing these files as they conflict with already completed
22189 work. While it is fantastic to get contributions to MWF, I
22190 respectfully ask that everyone please coordinate their contributions
22191 through mono-winforms-list or #mono-winforms at this time. We're
22192 explicitly avoiding stubbing and don't want controls that don't have
22193 their basic functionality implemented in svn. Please also see
22194 http://www.mono-project.com/contributing/winforms.html
22197 2004-11-29 Marek Safar <marek.safar@seznam.cz>
22199 * Application.cs (ModalRun): Don't hang after exit.
22201 * Theme.cs: New TreeViewDefaultSize property.
22203 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
22204 with less hardcoded SystemColors constant.
22205 Implemented TreeViewDefaultSize.
22207 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
22208 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
22211 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
22213 * MonthCalendar.cs:
22214 - Fix NextMonthDate and PrevMonthDate click moving calendar
22216 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
22218 * MonthCalendar.cs:
22219 - Fix usage of ScrollChange Property when scrolling months
22221 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
22223 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
22224 - Fixes menu destroying
22225 - Support adding and removing items on already created menus
22227 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
22229 * MonthCalendar.cs:
22230 - Re-worked all bolded dates handling to match win32
22231 * ThemeWin32Classic.cs:
22232 - Fixed rendering with bolded dates
22234 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
22236 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
22237 - Horizontal scroolbar
22242 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
22244 * MonthCalendar.cs:
22245 - Fix Usage of MaxSelectionCount from SelectionRange
22246 - Fixed Shift + Cursor Selection
22247 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
22248 - Fixed normal cursor selection to be compat with win32
22249 - Fixed Shift + Mouse Click selection
22251 2004-11-24 Peter Bartok <pbartok@novell.com>
22253 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
22254 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
22256 - CreatedKeyBoardMsg now updates keystate with Alt key
22257 - Added workaround for timer crash to CheckTimers, Jackson will
22258 develop a proper fix and check in later
22259 - Implemented DispatchMessage
22260 - Removed calling the native window proc from GetMessage (call
22261 now moved to DispatchMessage)
22263 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
22264 the keydata (Fixes bug #69831)
22267 - (DispatchMessage): Switched to return IntPtr
22268 - Added DllImport for SetFocus
22270 2004-11-24 Ravindra <rkumar@novell.com>
22272 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
22273 background drawing.
22274 * ListViewItem.cs: Fixed various properties, calculations
22275 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
22276 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
22277 and some internal properties. Fixed MouseDown handler and Paint
22280 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
22282 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
22284 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
22286 * ContainerControl.cs: correct accidental check in of local changes
22288 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
22290 * ThemeWin32Classic.cs:
22291 - Fixed Drawing Last month in grid (sometimes not showing)
22292 * MonthCalendar.cs:
22293 - Fixed title width calculation bug (makeing title small)
22295 2004-11-23 Peter Bartok <pbartok@novell.com>
22298 - Added generation of WM_MOUSEHOVER event
22299 - Added missing assignment of async_method atom
22300 - Fixed WM_ERASEBKGND; now only redraws the exposed area
22302 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
22304 * ThemeWin32Classic.cs:
22305 - Fixed Drawing of today circle when showtodaycircle not set
22306 - fixed drawing of first and last month in the grid (gay dates)
22307 * MonthCalendar.cs:
22308 - Fixed Drawing of today circle
22309 - Fixed drawing of grady dates
22310 - Fixed HitTest for today link when ShowToday set to false
22311 - Fixed DefaultSize to obey ShowToday
22313 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
22315 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
22316 * System.Windows.Forms/Theme.cs
22317 * MonthCalendar.cs: added for MonthCalendar
22318 * SelectionRange.cs: added for MonthCalendar
22319 * Day.cs: added for MonthCalendar: added for MonthCalendar
22320 * DateRangeEventArgs.cs: added for MonthCalendar
22321 * DateRangeEventHandler.cs: added for MonthCalendar
22323 2004-11-22 Ravindra <rkumar@novell.com>
22325 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
22328 2004-11-22 Miguel de Icaza <miguel@ximian.com>
22330 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
22333 * NumericUpDown.cs: Added new implementation.
22334 * UpDownBase.cs: Added new implementation.
22336 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
22339 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
22342 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
22345 2004-11-21 Miguel de Icaza <miguel@ximian.com>
22347 * Timer.cs (Dispose): Should call the base dispose when
22350 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
22352 * ScrollBar.cs: updates thumb position when max, min or increment
22355 2004-11-21 Ravindra <rkumar@novell.com>
22357 * ListView.cs: Implemented item selection, activation and
22358 column header style. Fixed properties to do a redraw, if
22359 required. Added support for MouseHover, DoubleClick, KeyDown
22360 and KeyUp event handling and some minor fixes.
22361 * ListViewItem.cs: Fixed constructor.
22362 * ThemeWin32Classic.cs: Improved drawing for ListView.
22364 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
22366 * ThemeWin32Classic.cs: initial listbox drawing code
22367 * DrawMode.cs: new enumerator
22368 * ListControl.cs: stubbed class
22369 * ListBox.cs: initial implementation
22370 * Theme.cs: new methods definitions
22371 * SelectionMode.cs: new enumerator
22373 2004-11-17 Peter Bartok <pbartok@novell.com>
22375 * XplatUIWin32.cs: Added double-click events to the class style
22376 * Control.cs (WndProc):
22377 - Added handling of click-count to MouseDown/ MouseUp events.
22378 - Added handling of middle and right mouse buttons
22379 - Removed old debug code
22381 2004-11-17 Jackson Harper <jackson@ximian.com>
22383 * XplatUIX11.cs: Use the new Mono.Unix namespace.
22385 2004-11-17 Ravindra <rkumar@novell.com>
22387 * ListView.cs: Added event handling for MouseMove/Up/Down.
22388 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
22389 * ThemeWin32Classic.cs: We need to clear the graphics context and
22390 draw column header in a proper state.
22393 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
22395 * Menu.cs: fixes signature
22397 2004-11-16 Peter Bartok <pbartok@novell.com>
22399 * XplatUIX11.cs (GetMessage): Implemented generation of
22400 double click mouse messages
22402 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
22404 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
22407 2004-11-11 Peter Bartok <pbartok@novell.com>
22409 * HandleData.cs: Added Visible property
22410 * XplatUIX11.cs (IsVisible): Now uses Visible property from
22412 * XplatUIX11.cs: Removed old debug leftovers
22413 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
22414 * Control.cs (WndProc): Removed old debug leftovers,
22415 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
22416 needed WM_SIZE handling
22418 2004-11-11 Jackson Harper <jackson@ximian.com>
22420 * OwnerDrawPropertyBag.cs:
22421 * TreeViewImageIndexConverter.cs: Initial implementation
22423 2004-11-10 Jackson Harper <jackson@ximian.com>
22425 * ThemeWin32Classic.cs:
22426 * TabControl.cs: instead of moving tabs by the slider pos just
22427 start drawing at the tab that is offset by the slider. This way
22428 scrolling always moves by exactly one tab.
22430 2004-11-10 Jackson Harper <jackson@ximian.com>
22432 * TabControl.cs: You can only scroll left when the slider has
22433 already ben moved right.
22435 2004-11-10 Jackson Harper <jackson@ximian.com>
22437 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
22440 2004-11-10 Jackson Harper <jackson@ximian.com>
22442 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
22445 2004-11-09 Jackson Harper <jackson@ximian.com>
22447 * TabControl.cs (CalcXPos): New helper method so we can determine
22448 the proper place to start drawing vertical tabs.
22449 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
22451 2004-11-09 Jackson Harper <jackson@ximian.com>
22453 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
22454 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
22455 and Bottom, left and right are illegal values for this and
22456 multiline is enabled when the alignment is set to left or right.
22457 (DrawTab): Each alignment block should draw the text itself now
22458 because Left requires special love. Also add rendering for Left
22461 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
22463 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
22464 does not destroy the windows, removes debugging messages
22466 2004-11-09 jba <jba-mono@optusnet.com.au>
22468 * ThemeWin32Classic.cs
22469 (DrawButtonBase): Fix verticle text rect clipping in windows
22470 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
22471 rendering and incorrect text rect clipping
22472 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
22473 rendering and incorrect text rect clipping
22475 2004-11-08 Jackson Harper <jackson@ximian.com>
22477 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
22478 bottom when they are bottom aligned so the bottoms of the tabs get
22480 * TabControl.cs (DropRow): Move rows up instead of down when the
22481 tab control is bottom aligned.
22483 2004-11-08 13:59 pbartok
22486 - Added handling for various window styles
22487 - Added handling for popup windows
22488 - Added SetTopmost handling
22490 2004-11-08 13:55 pbartok
22493 - Added argument to SetTopmost method
22494 - Fixed broken ClientToScreen function
22496 2004-11-08 13:53 pbartok
22498 * XplatUIStructs.cs:
22499 - Added missing WS_EX styles
22501 2004-11-08 13:53 pbartok
22503 * XplatUI.cs, XplatUIDriver.cs:
22504 - Added argument to SetTopmost
22506 2004-11-08 13:52 pbartok
22509 - Added XSetWindowAttributes structure
22510 - Improved XWindowAttributes structure
22511 - Added SetWindowValuemask enum
22512 - Added window creation arguments enum
22513 - Added gravity enum
22514 - Added Motif hints structure
22515 - Added various Motif flags and enums
22516 - Added PropertyMode enum for property functions
22518 2004-11-08 13:50 pbartok
22521 - Fixed arguments for updated SetTopmost method
22523 2004-11-08 13:49 pbartok
22526 - Fixed arguments for updated SetTopmost function
22527 - Fixed usage of PointToClient
22529 2004-11-08 13:44 pbartok
22532 - Added Clipping of children and siblings
22534 2004-11-08 13:41 pbartok
22537 - Removed SetMenuBarWindow call. We do this in Form.cs
22539 2004-11-08 13:40 jackson
22541 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
22542 scrolling jimmi in the correct location with bottom aligned tabs
22544 2004-11-08 13:36 pbartok
22546 * ContainerControl.cs:
22547 - Implemented BindingContext
22548 - Implemented ParentForm
22550 2004-11-08 12:46 jackson
22552 * TabControl.cs: Put bottom rendered tabs in the right location
22554 2004-11-08 07:15 jordi
22556 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
22559 2004-11-05 17:30 jackson
22561 * TabControl.cs: When selected tabs are expanded make sure they
22562 don't go beyond the edges of the tab control
22564 2004-11-05 14:57 jackson
22566 * TabControl.cs: Reset show_slider so if the control is resized to
22567 a size where it is no longer needed it's not displayed anymore
22569 2004-11-05 13:16 jackson
22571 * TabControl.cs: Make tab pages non visible when added to the
22574 2004-11-05 12:42 jackson
22576 * TabControl.cs: Implement SizeMode.FillToRight
22578 2004-11-05 12:16 jackson
22580 * Control.cs: Do not call CreateHandle if the handle is already
22583 2004-11-05 11:46 jackson
22585 * TabControl.cs: Remove superflous call to CalcTabRows
22587 2004-11-05 09:07 jackson
22589 * XplatUIX11.cs: Update for Mono.Posix changes
22591 2004-11-05 07:00 ravindra
22593 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
22596 2004-11-04 22:47 jba
22598 * ThemeWin32Classic.cs:
22599 - Fix Button rendering for FlatStyle = Flat or Popup
22600 - Fix RadioButton and CheckBox rendering when Appearance = Button
22601 (normal and flatstyle).
22602 - Correct outer rectangle color when drawing focus rectangle
22603 - Adjust button bounds to be 1 px smaller when focused
22604 - Make button not draw sunken 3d border when pushed (windows compat)
22605 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
22606 - Offset the text in RadioButton and Checkbox when being rendered as
22608 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
22610 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
22611 - Fixed disabled text rendering for normally rendered radiobuttons
22613 2004-11-04 10:26 jackson
22615 * TabControl.cs: Recalculate tab rows when resizing
22617 2004-11-04 07:47 jordi
22619 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
22620 collection completion, drawing issues, missing features
22622 2004-11-04 05:03 ravindra
22625 - We need to recalculate the Thumb area when
22626 LargeChange/maximum/minimum values are changed.
22627 - We set the 'pos' in UpdatePos() method to minimum, if it's less
22628 than minimum. This is required to handle the case if large_change is
22629 more than max, and use LargeChange property instead of large_change
22631 - We return max+1 when large_change is more than max, like MS does.
22633 2004-11-04 04:29 ravindra
22635 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
22636 - Changed default value signatures (prefixed all with ListView).
22637 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
22639 - Fixed calculations for ListViewItem and implemented Clone()
22642 2004-11-04 04:26 ravindra
22644 * Theme.cs, ThemeWin32Classic.cs:
22645 - Changed default ListView values signatures (prefixed all with
22647 - Fixed default size values for VScrollBar and HScrollBar.
22648 - Fixed DrawListViewItem method.
22650 2004-11-04 04:05 ravindra
22652 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
22654 2004-11-04 04:04 ravindra
22656 * ImageList.cs: Implemented the missing overload for Draw method.
22658 2004-11-03 19:29 jackson
22660 * TabControl.cs: Handle dropping rows on selection properly
22662 2004-11-03 11:59 jackson
22664 * TabControl.cs: remove debug code
22666 2004-11-03 11:52 jackson
22668 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
22669 the scrolly widgerywoo
22671 2004-11-02 13:52 jackson
22673 * TabControl.cs: Resize the tab pages and tabs when the tab control
22676 2004-11-02 13:40 jackson
22678 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
22679 selected tab to the bottom
22681 2004-11-02 13:39 jackson
22683 * TabPage.cs: Store the tab pages row
22685 2004-11-02 12:33 jordi
22687 * MenuItem.cs: fixes handle creation
22689 2004-11-02 11:42 jackson
22691 * TabControl.cs: signature fix
22693 2004-11-02 08:56 jackson
22695 * TabControl.cs: Calculate whether the tab is on an edge properly.
22696 Remove top secret debugging code
22698 2004-11-01 19:57 jackson
22700 * TabControl.cs: Add click handling, and proper sizing
22702 2004-11-01 19:47 jackson
22704 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
22707 2004-11-01 19:39 jackson
22709 * TabPage.cs: add internal property to store the bounds of a tab
22712 2004-10-30 04:23 ravindra
22714 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
22717 2004-10-30 04:21 ravindra
22719 * ListView.cs, ListViewItem.cs: Added support for scrolling and
22720 fixed calculations.
22722 2004-10-30 03:06 pbartok
22725 - Removed extension of DllImported libs
22727 2004-10-29 09:55 jordi
22729 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
22730 navigation, itemcollection completion, menu fixes
22732 2004-10-27 22:58 pbartok
22735 - Now throws a nice error message when no X display could be opened
22737 2004-10-26 13:51 jordi
22739 * ListView.cs: removes warning
22741 2004-10-26 03:55 ravindra
22743 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
22744 ThemeWin32Classic.cs: Some formatting for my last checkins.
22746 2004-10-26 03:36 ravindra
22748 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
22749 control and default values.
22751 2004-10-26 03:35 ravindra
22753 * Theme.cs: Added some default values for ListView control.
22755 2004-10-26 03:33 ravindra
22757 * ToolBar.cs: ToolBar should use the user specified button size, if
22758 there is any. Added a size_specified flag for the same.
22760 2004-10-26 03:33 ravindra
22762 * ColumnHeader.cs: Added some internal members and calculations for
22765 2004-10-26 03:32 ravindra
22767 * ListViewItem.cs: Calculations for ListViewItem.
22769 2004-10-26 03:31 ravindra
22771 * ListView.cs: Added some internal members and calculations for
22774 2004-10-22 13:31 jordi
22776 * MenuAPI.cs: speedup menus drawing
22778 2004-10-22 13:16 jackson
22780 * XplatUIX11.cs: Make sure to update exposed regions when adding an
22783 2004-10-22 11:49 jackson
22787 2004-10-22 11:41 jackson
22789 * Control.cs: Check to see if the window should have its background
22790 repainted by X when drawing.
22792 2004-10-22 11:31 jackson
22794 * XplatUIX11.cs: When invalidating areas only use XClearArea if
22795 clear is true, this way we do not get flicker from X repainting the
22798 2004-10-22 11:28 jackson
22800 * XEventQueue.cs: Queue properly
22802 2004-10-21 09:38 jackson
22804 * XEventQueue.cs: Fix access modifier
22806 2004-10-21 09:36 jackson
22808 * XEventQueue.cs: Don't loose messages
22810 2004-10-21 09:22 jackson
22812 * XEventQueue.cs: Don't loose messages
22814 2004-10-20 04:15 jordi
22816 * BootMode.cs: enum need it by SystemInfo
22818 2004-10-19 21:58 pbartok
22821 - Small sanity check
22823 2004-10-19 21:56 pbartok
22826 - Added private FormParentWindow class which acts as the container
22827 for our form and as the non-client area where menus are drawn
22828 - Added/Moved required tie-ins to Jordi's menus
22829 - Fixed/Implemented the FormStartPosition functionality
22831 2004-10-19 21:52 pbartok
22834 - Removed unneeded locals
22835 - Added code to all size and location properties to understand and
22836 deal with the parent container of Form
22838 2004-10-19 21:33 pbartok
22841 - Fixed to deal with new Form subclasses for menus
22843 2004-10-19 17:48 jackson
22845 * XEventQueue.cs: commit correct version of file
22847 2004-10-19 16:50 jackson
22849 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
22851 2004-10-19 16:15 jordi
22853 * MenuAPI.cs: MenuBarCalcSize returns the height
22855 2004-10-19 08:31 pbartok
22858 - Added missing call to PreProcessMessage before calling OnXXXKey
22861 2004-10-19 00:04 ravindra
22863 * ToolTip.cs: Fixed constructor.
22865 2004-10-18 09:31 jordi
22867 * MenuAPI.cs: menuitems in menubars do not have shortcuts
22869 2004-10-18 09:26 jordi
22871 * MenuItem.cs: fixes MenuItem class signature
22873 2004-10-18 08:56 jordi
22875 * MenuAPI.cs: prevents windows from showing in the taskbar
22877 2004-10-18 00:28 ravindra
22879 * ToolTip.cs: Suppressed a warning message.
22881 2004-10-18 00:27 ravindra
22883 * Control.cs: Default value of visible property must be true.
22885 2004-10-17 23:19 pbartok
22888 - Complete implementation
22890 2004-10-17 23:19 pbartok
22893 - Added EnableWindow method
22894 - Added SetModal stub
22895 - Added generation of WM_ACTIVATE message (still needs testing)
22896 - Added SetTopMost stub
22897 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
22899 2004-10-17 23:17 pbartok
22902 - Removed VirtualKeys to XplatUIStructs
22903 - Implemented SetTopMost method
22904 - Implemented EnableWindow method
22905 - Bugfix in ScreenToClient()
22906 - Bugfixes in ClientToScreen()
22908 2004-10-17 22:51 pbartok
22910 * XplatUIStructs.cs:
22911 - Added WS_EX styles to WindowStyles enumeration
22913 2004-10-17 22:50 pbartok
22915 * XplatUI.cs, XplatUIDriver.cs:
22916 - Added method for enabling/disabling windows
22917 - Added method for setting window modality
22918 - Added method for setting topmost window
22920 2004-10-17 22:49 pbartok
22922 * ThemeWin32Classic.cs:
22923 - Added ToolTip drawing code
22925 2004-10-17 22:49 pbartok
22928 - Added ToolTip abstracts
22930 2004-10-17 22:47 pbartok
22933 - Fixed Form.ControlCollection to handle owner relations
22934 - Added Owner/OwnedForms handling
22935 - Implemented Z-Ordering for owned forms
22936 - Removed unneeded private overload of ShowDialog
22937 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
22939 - Fixed Close(), had wrong default
22940 - Added firing of OnLoad event
22941 - Added some commented out debug code for Ownership handling
22943 2004-10-17 22:16 pbartok
22946 - Fixed/implemented flat list of controls
22948 2004-10-17 22:14 pbartok
22951 - Added code to simulate modal dialogs on Win32
22953 2004-10-17 16:11 jordi
22955 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
22958 2004-10-17 13:39 jordi
22960 * MenuAPI.cs: menu drawing fixes
22962 2004-10-15 09:10 ravindra
22964 * StructFormat.cs: General Enum.
22966 2004-10-15 09:09 ravindra
22968 * SizeGripStyle.cs: Enum for Form.
22970 2004-10-15 09:08 ravindra
22972 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
22973 in Theme for ListView.
22975 2004-10-15 09:06 ravindra
22977 * ColumnHeader.cs: Flushing some formatting changes.
22979 2004-10-15 09:05 ravindra
22981 * ListViewItem.cs: Implemented GetBounds method and fixed coding
22984 2004-10-15 09:03 ravindra
22986 * ListView.cs: Implemented Paint method and fixed coding style.
22988 2004-10-15 07:34 jordi
22990 * MenuAPI.cs: fix for X11
22992 2004-10-15 07:32 ravindra
22994 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
22995 - Renamed Paint() method to Draw() for clarity. Also, moved
22996 DrawImage() to OnPaint().
22998 2004-10-15 07:25 ravindra
23000 * CheckBox.cs, RadioButton.cs:
23001 - Removed Redraw (), we get it from ButtonBase.
23002 - Implemented Paint (), to do class specific painting.
23004 2004-10-15 07:16 ravindra
23007 - Redraw () is not virtual now.
23008 - Added an internal virtual method Paint (), so that
23009 derived classes can do their painting on their own.
23010 - Modified OnPaint () to call Paint ().
23012 2004-10-15 06:43 jordi
23014 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
23015 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
23017 2004-10-15 00:30 ravindra
23020 - MessageBox on windows does not have min/max buttons.
23021 This change in CreateParams fixes this on Windows. We
23022 still need to implement this windowstyle behavior in
23025 2004-10-14 05:14 ravindra
23028 - Changed Redraw () to do a Refresh () always.
23029 - Fixed the MouseMove event handling when mouse is pressed,
23030 ie drag event handling.
23031 - Replaced the usage of ToolBarButton.Pressed property to
23032 ToolBarButton.pressed internal variable.
23034 2004-10-14 05:10 ravindra
23036 * ToolBarButton.cs:
23037 - Added an internal member 'inside' to handle mouse move
23038 with mouse pressed ie mouse drag event.
23039 - Changed 'Pressed' property to return true only when
23040 'inside' and 'pressed' are both true.
23041 - Some coding style love.
23043 2004-10-14 00:17 ravindra
23045 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
23048 2004-10-14 00:15 ravindra
23050 * ButtonBase.cs: Redraw () related improvements.
23052 2004-10-14 00:14 ravindra
23054 * MessageBox.cs: Moved InitFormSize () out of Paint method and
23055 removed unnecessary calls to Button.Show () method.
23057 2004-10-13 17:50 pbartok
23061 - Removed destroying of window until we solve the problem of X
23062 destroying the window before us on shutdown
23064 2004-10-13 16:32 pbartok
23067 - Now Redraws on MouseUp for FlatStyle Flat and Popup
23069 2004-10-13 14:18 pbartok
23072 - Added code to destroy the X window
23074 2004-10-13 14:18 pbartok
23077 - Added code to destroy a window
23079 2004-10-13 14:12 pbartok
23082 - Added the Redraw on Resize that got dropped in the last rev
23084 2004-10-13 09:06 pbartok
23086 * ThemeWin32Classic.cs:
23087 - Path from John BouAntoun:
23088 * Fix check rendering (centre correctly for normal style, offset
23089 correctly for FlatStyle).
23090 * Fix border color usage (use backcolor) for FlatStyle.Popup
23091 * Use checkbox.Capture instead of checkbox.is_pressed when
23092 rendering flatstyle states.
23094 2004-10-12 21:48 pbartok
23096 * ThemeWin32Classic.cs:
23097 - Removed all occurences of SystemColors and replaced them with the
23098 matching theme color
23100 2004-10-12 21:41 pbartok
23102 * ThemeWin32Classic.cs:
23103 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
23104 him using the function for flatstyle drawing
23105 - Changed functions to use the new version of CPDrawBorder3D
23107 2004-10-12 21:15 pbartok
23110 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
23111 match MS documentation. They need to return defined colors if the
23112 passed color matches the configured control color. Thanks to John
23113 BouAntoun for pointing this out.
23115 2004-10-12 20:57 pbartok
23118 - Fix from John BouAntoun: Raise ForeColorChanged event when text
23121 2004-10-12 20:46 pbartok
23124 - Fix from John BouAntoun: Now properly sets the Appearance property
23126 2004-10-12 20:45 pbartok
23128 * ThemeWin32Classic.cs:
23129 - Fixes from John BouAntoun: now handles forecolors and backcolors
23130 for flatstyle rendered controls much better; It also fixes normal
23131 checkbox rendering when pushed or disabled.
23133 2004-10-08 02:50 jordi
23135 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
23138 2004-10-07 08:56 jordi
23140 * ThemeWin32Classic.cs: Removes deletion of cached brushes
23142 2004-10-06 03:59 jordi
23144 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
23145 XplatUIWin32.cs: removes warnings from compilation
23147 2004-10-05 12:23 jackson
23149 * RadioButton.cs: Fix ctor
23151 2004-10-05 11:10 pbartok
23154 - Partial implementation by Benjamin Dasnois
23156 2004-10-05 10:15 jackson
23158 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
23161 2004-10-05 03:07 ravindra
23164 - Removed a private method, Draw ().
23165 - Fixed the ButtonDropDown event handling.
23166 - Fixed MouseMove event handling.
23168 2004-10-05 03:04 ravindra
23170 * ThemeWin32Classic.cs:
23171 - Added DrawListView method and ListViewDefaultSize property.
23172 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
23173 - Changed DOS style CRLF to Unix format (dos2unix).
23175 2004-10-05 03:03 ravindra
23178 - Added DrawListView method and ListViewDefaultSize property.
23180 2004-10-05 02:42 ravindra
23182 * ToolBarButton.cs: Added an internal member dd_pressed to handle
23183 clicks on DropDown arrow.
23185 2004-10-04 22:56 jackson
23187 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
23188 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
23189 Control handle the buffers, derived classes should not have to
23190 CreateBuffers themselves.
23192 2004-10-04 21:20 jackson
23194 * StatusBar.cs: The control handles resizing the buffers now.
23196 2004-10-04 21:18 jackson
23198 * Control.cs: When resizing the buffers should be invalidated. This
23199 should be handled in Control not in derived classes.
23201 2004-10-04 14:45 jackson
23205 2004-10-04 02:14 pbartok
23207 * LeftRightAlignment.cs:
23210 2004-10-04 01:09 jordi
23212 * ThemeWin32Classic.cs: fixes right button position causing right
23213 button not showing on horizontal scrollbars
23215 2004-10-02 13:12 pbartok
23218 - Simplified the Invalidate method by using an X call instead of
23219 generating the expose ourselves
23220 - Added an expose when the window background is changed
23221 - Implemented ClientToScreen method
23223 2004-10-02 13:08 pbartok
23226 - Added Win32EnableWindow method (test for implementing modal
23228 - Added ClientToScreen method and imports
23230 2004-10-02 13:07 pbartok
23232 * XplatUI.cs, XplatUIDriver.cs:
23233 - Added ClientToScreen coordinate translation method
23235 2004-10-02 13:06 pbartok
23237 * KeyPressEventArgs.cs:
23238 - Fixed access level for constructor
23240 2004-10-02 13:06 pbartok
23243 - Changed access level for the window_collection hash table
23245 2004-10-02 13:05 pbartok
23248 - Added KeyPreview property
23249 - Added Menu property (still incomplete, pending Jordi's menu work)
23250 - Implemented ProcessCmdKey
23251 - Implemented ProcessDialogKey
23252 - Implemented ProcessKeyPreview
23254 2004-10-02 13:02 pbartok
23257 - Added private method to get the Control object from the window
23259 - Implemented ContextMenu property
23260 - Implemented PointToScreen
23261 - Implemented PreProcessMessage
23262 - Implemented IsInputChar
23263 - Implemented IsInputKey
23264 - Implemented ProcessCmdKey
23265 - Completed ProcessKeyEventArgs
23266 - Fixed message loop to call the proper chain of functions on key
23268 - Implemented ProcessDialogChar
23269 - Implemented ProcessDialogKey
23270 - Implemented ProcessKeyMessage
23271 - Implemented ProcessKeyPreview
23272 - Added RaiseDragEvent stub (MS internal method)
23273 - Added RaiseKeyEvent stub (MS internal method)
23274 - Added RaiseMouseEvent stub (MS Internal method)
23275 - Added RaisePaintEvent stub (MS Internal method)
23276 - Added ResetMouseEventArgs stub (MS Internal method)
23277 - Implemented RtlTranslateAlignment
23278 - Implemented RtlTranslateContent
23279 - Implemented RtlTranslateHorizontal
23280 - Implemented RtlTranslateLeftRight
23281 - Added generation of KeyPress event
23283 2004-10-02 05:57 ravindra
23285 * ListViewItem.cs: Added attributes.
23287 2004-10-02 05:32 ravindra
23289 * ListView.cs: Added attributes.
23291 2004-10-01 11:53 jackson
23293 * Form.cs: Implement the Close method so work on MessageBox can
23296 2004-09-30 14:06 pbartok
23301 2004-09-30 11:34 jackson
23303 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
23305 2004-09-30 07:26 ravindra
23307 * ListViewItemConverter.cs: Converter for ListViewItem.
23309 2004-09-30 07:26 ravindra
23311 * SortOrder.cs: Enum for ListView control.
23313 2004-09-30 07:25 ravindra
23315 * ColumnHeader.cs: Supporting class for ListView control.
23317 2004-09-30 07:24 ravindra
23319 * ListView.cs, ListViewItem.cs: Initial implementation.
23321 2004-09-30 07:20 ravindra
23323 * ItemActivation.cs: Enum for ListView Control.
23325 2004-09-29 20:29 pbartok
23328 - Added lookup of pixel value for background color; tries to get a
23329 color 'close' to the requested color, it avoids having to create a
23330 colormap. Depending on the display this could mean the used color
23331 is slightly off the desired color. Might have to change it to a more
23332 resource intensive colormap approach, but it will work as a
23333 workaround to avoid red screens.
23335 2004-09-29 14:27 jackson
23337 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
23339 2004-09-28 12:44 pbartok
23341 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
23342 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
23343 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
23344 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
23345 TrackBar.cs, VScrollBar.cs:
23346 - Streamlined Theme interfaces:
23347 * Each DrawXXX method for a control now is passed the object for
23348 the control to be drawn in order to allow accessing any state the
23349 theme might require
23351 * ControlPaint methods for the theme now have a CP prefix to avoid
23352 name clashes with the Draw methods for controls
23354 * Every control now retrieves it's DefaultSize from the current
23357 2004-09-28 12:17 jackson
23359 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
23362 2004-09-24 14:57 jackson
23364 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
23365 Gives us a nice little performance boost.
23367 2004-09-24 12:02 jackson
23369 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
23370 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
23371 Control and supporting classes. Initial checkin
23373 2004-09-23 13:08 jackson
23375 * Form.cs: Temp build fixage
23377 2004-09-23 01:39 ravindra
23379 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
23380 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
23381 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
23382 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
23383 EventHandlers needed by ListView Control.
23385 2004-09-22 14:12 pbartok
23387 * ScrollableControl.cs:
23388 - Implemented DockPadding property
23389 - Implemented AutoScroll property
23390 - Implemented AutoScrollMargin property
23391 - Implemented AutoScrollMinSize property
23392 - Implemented AutoScrollPosition property
23393 - Implemented DisplayRectangle property (still incomplete)
23394 - Implemented CreateParams property
23395 - Implemented HScroll property
23396 - Implemented VScroll property
23397 - Implemented OnVisibleChanged property
23399 2004-09-22 14:09 pbartok
23402 - Added Form.ControllCollection class
23403 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
23404 RemoveOwnedForm (still incomplete, missing on-top and common
23405 minimize/maximize behaviour)
23406 - Added StartPosition property (still incomplete, does not use when
23408 - Added ShowDialog() methods (still incomplete, missing forcing the
23411 2004-09-22 14:05 pbartok
23414 - Added message loop for modal dialogs
23416 2004-09-22 14:02 pbartok
23419 - Fixed wrong types for events
23421 2004-09-22 14:00 pbartok
23423 * Shortcut.cs, FormWindowState.cs:
23424 - Fixed wrong values
23426 2004-09-22 12:01 jackson
23428 * Control.cs: Text is never null
23430 2004-09-20 22:14 pbartok
23433 - Fixed accessibility level for Idle handler
23435 2004-09-20 18:54 jackson
23437 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23438 XplatUIX11.cs: New message loop that uses poll so we don't get a
23441 2004-09-17 10:43 pbartok
23444 - Fixed behaviour of arrow buttons. Now properly behaves like
23445 Buttons (and like Microsoft's scrollbar arrow buttons)
23447 2004-09-17 10:14 pbartok
23450 - Added missing release of keyboard/mouse capture
23452 2004-09-17 06:18 jordi
23454 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
23455 Theme.cs: Very early menu support
23457 2004-09-16 17:45 pbartok
23460 - Fixed sending a window to the front
23461 - Added overload for SetWindowPos to avoid casting
23463 2004-09-16 17:44 pbartok
23466 - Added SendToBack and BringToFront methods
23468 2004-09-16 07:00 ravindra
23470 * Copyright: Added Novell URL.
23472 2004-09-16 07:00 ravindra
23474 * ToolBar.cs: Invalidate should be done before redrawing.
23476 2004-09-15 21:19 ravindra
23478 * ColumnHeaderStyle.cs: Enum for ListView Control.
23480 2004-09-15 21:18 ravindra
23482 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
23485 2004-09-13 18:26 jackson
23487 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
23490 2004-09-13 18:13 jackson
23492 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
23493 a second thread and post messages into the main threads message
23494 queue. This makes timing much more consistent. Both win2K and XP
23495 have a minimum timer value of 15 milliseconds, so we now do this
23498 2004-09-13 15:18 pbartok
23500 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23502 - Added Z-Ordering methods
23504 2004-09-13 10:56 pbartok
23507 - Fixed #region names
23508 - Moved properties and methods into their proper #regions
23510 2004-09-13 10:51 pbartok
23513 - Added Accept and CancelButton properties
23514 - Added ProcessDialogKey() method
23516 2004-09-13 08:18 pbartok
23518 * IWindowTarget.cs:
23521 2004-09-10 21:50 pbartok
23524 - Added DoDragDrop() [incomplete]
23525 - Properly implemented 'Visible' handling
23526 - Added SetVisibleCore()
23527 - Implemented FindChildAtPoint()
23528 - Implemented GetContainerControl()
23529 - Implemented Hide()
23531 2004-09-10 19:28 pbartok
23534 - Moved methods into their appropriate #regions
23535 - Reordered methods within regions alphabetically
23537 2004-09-10 18:57 pbartok
23539 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23540 - Added method to retrieve text from window
23542 2004-09-10 18:56 pbartok
23545 - Moved some internal functions into the internal region
23546 - Implemented FontHeight
23547 - Implemented RenderRightToLeft
23548 - Implemented ResizeRedraw
23549 - Implemented ShowFocusCues
23550 - Implemented ShowKeyboardCues
23551 - Implemented FromChildHandle
23552 - Implemented FromHandle
23553 - Implemented IsMnemonic
23554 - Implemented ReflectMessage
23555 - All public and protected Static Methods are now complete
23557 2004-09-10 16:54 pbartok
23560 - Implemented remaining missing public instance properties
23561 - Alphabetized some out of order properties
23563 2004-09-10 05:51 ravindra
23565 * PictureBox.cs: Added a check for null image.
23567 2004-09-10 00:59 jordi
23569 * GroupBox.cs: remove cvs tag
23571 2004-09-09 05:25 ravindra
23573 * ToolBar.cs: Make redraw accessible from ToolBarButton.
23575 2004-09-09 05:23 ravindra
23577 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
23580 2004-09-09 02:28 pbartok
23582 * ThemeWin32Classic.cs:
23583 - Improve disabled string look
23585 2004-09-09 01:15 jordi
23587 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
23590 2004-09-08 23:56 ravindra
23592 * ItemBoundsPortion.cs: It's enum, not a class!
23594 2004-09-08 23:47 ravindra
23596 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
23599 2004-09-08 21:13 ravindra
23601 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
23604 2004-09-08 21:03 ravindra
23606 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
23609 2004-09-08 21:01 ravindra
23611 * ScrollableControl.cs: Removed unreachable code.
23613 2004-09-08 06:45 jordi
23615 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
23617 2004-09-08 01:00 jackson
23619 * XplatUIX11.cs: Only run the timers when updating the message
23620 queue. This effectively gives X messages a higher priority then
23621 timer messages. Timers still need love though
23623 2004-09-07 14:01 jackson
23625 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
23626 this for us and the handle is no longer valid.
23628 2004-09-07 13:59 jackson
23630 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
23631 loop that manages to not crash. TODO: Add poll and cleanup timers
23633 2004-09-07 11:12 jordi
23635 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
23637 2004-09-07 03:40 jordi
23639 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
23640 fixes, methods, multiple links
23642 2004-09-06 06:55 jordi
23644 * Control.cs: Caches ClientRectangle rectangle value
23646 2004-09-05 02:03 jordi
23648 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
23651 2004-09-04 11:10 jordi
23653 * Label.cs: Refresh when font changed
23655 2004-09-02 16:24 pbartok
23658 - Added sanity check to creation of double buffer bitmap
23660 2004-09-02 16:24 pbartok
23663 - Fixed selection of text color
23664 - Fixed handling of resize event; now properly recreates double
23666 - Added missing assignment of TextAlignment
23667 - Added proper default for TextAlignment
23669 2004-09-02 14:26 pbartok
23672 - Added missing RadioButton.RadioButtonAccessibleObject class
23674 2004-09-02 14:26 pbartok
23677 - Added missing Control.ControlAccessibleObject class
23678 - Started to implement Select()ion mechanisms, still very incomplete
23680 2004-09-02 14:25 pbartok
23682 * AccessibleObject.cs:
23683 - Added missing methods
23685 2004-09-02 14:23 pbartok
23687 * AccessibleNavigation.cs, AccessibleSelection.cs:
23690 2004-09-02 10:32 jordi
23692 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
23693 pool for pens, brushes, and hatchbruses
23695 2004-09-01 15:30 jackson
23697 * StatusBar.cs: Fix typo
23699 2004-09-01 14:44 pbartok
23704 2004-09-01 14:39 pbartok
23706 * Button.cs, RadioButton.cs:
23707 - Functional initial check-in
23709 2004-09-01 14:01 pbartok
23712 - Added missing default
23713 - Added missing region mark
23715 2004-09-01 09:10 jordi
23717 * Label.cs: fixes method signatures, new methods, events, fixes
23720 2004-09-01 07:19 jordi
23722 * Control.cs: Init string variables with an empty object
23724 2004-09-01 04:20 jordi
23726 * Control.cs: fires OnFontChanged event
23728 2004-08-31 20:07 pbartok
23731 - Enabled display of strings
23733 2004-08-31 20:05 pbartok
23736 - Added (partial) implementation of DialogResult; rest needs to be
23737 implemented when the modal loop code is done
23739 2004-08-31 19:55 pbartok
23742 - Fixed to match the removal of the needs_redraw concept
23744 2004-08-31 19:55 pbartok
23747 - Removed the rather odd split between 'needs redraw' and redrawing
23748 - Now handles the events that require regeneration (ambient
23749 properties and size)
23751 2004-08-31 19:41 pbartok
23754 - Added firing of BackColorChanged event
23755 - Added TopLevelControl property
23756 - Fixed handling of WM_ERASEBKGRND message
23758 2004-08-31 12:49 pbartok
23764 2004-08-31 12:48 pbartok
23767 - Finished (famous last words)
23769 2004-08-31 04:35 jordi
23771 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
23772 scrolling bugs, adds new methods
23774 2004-08-30 14:42 pbartok
23777 - Implemented CheckBox drawing code
23779 2004-08-30 14:42 pbartok
23782 - Made Redraw() and CheckRedraw() virtual
23783 - Improved mouse up/down/move logic to properly track buttons
23785 2004-08-30 09:44 pbartok
23788 - Updated to fix broken build. Not complete yet.
23790 2004-08-30 09:28 pbartok
23795 2004-08-30 09:17 pbartok
23800 2004-08-27 16:12 ravindra
23802 * ToolBarButton.cs: Added TypeConverter attribute.
23804 2004-08-27 16:07 ravindra
23806 * ImageIndexConverter.cs: Implemented.
23808 2004-08-27 14:17 pbartok
23811 - Removed unneeded stack vars
23812 - First attempt to fix sizing issues when layout is suspended
23814 2004-08-25 15:35 jordi
23816 * ScrollBar.cs: more fixes to scrollbar
23818 2004-08-25 14:04 ravindra
23820 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
23821 Added the missing divider code and grip for ToolBar Control.
23823 2004-08-25 13:20 pbartok
23826 - Control now properly passes the ambient background color to child
23829 2004-08-25 13:20 jordi
23831 * ScrollBar.cs: small bug fix regarding bar position
23833 2004-08-25 12:33 pbartok
23836 - Now only calls SetTimer or KillTimer if the enabled state has
23839 2004-08-25 12:33 pbartok
23842 - Fixed timer handling, now seems to work
23843 - Improved error message for window creation
23845 2004-08-25 12:32 pbartok
23848 - Fixed generation of MouseUp message
23850 2004-08-25 12:29 jordi
23852 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
23853 and fixes for progressbar
23855 2004-08-24 18:43 ravindra
23857 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
23858 in ToolBar control.
23860 2004-08-24 17:15 pbartok
23864 - Added missing events
23867 2004-08-24 17:14 pbartok
23869 * StatusBar.cs, PictureBox.cs:
23870 - Now uses Control's CreateParams
23872 2004-08-24 16:36 pbartok
23875 - Fixed background color handling
23876 - Fixed sending of enter/leave events on a grab
23878 2004-08-24 16:35 pbartok
23881 - Refined definitions for CrossingEvent
23883 2004-08-24 12:37 jordi
23885 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
23886 formmating, methods signature, and adds missing events
23888 2004-08-24 12:24 jordi
23890 * Control.cs: fire OnEnabledChanged event
23892 2004-08-24 11:17 pbartok
23895 - Implemented SetTimer() and KillTimer()
23897 2004-08-24 11:16 pbartok
23900 - Now uses Remove instead of Add to kill the timer
23902 2004-08-24 10:16 jackson
23904 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
23905 picture boxes in the theme now. Draw picture box borders and obey
23908 2004-08-24 05:49 jackson
23910 * Timer.cs: Remove top secret debugging code
23912 2004-08-24 05:34 jackson
23914 * PictureBox.cs: Temp hack to make picture boxes draw their full
23917 2004-08-24 05:29 jackson
23919 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23920 XplatUIX11.cs: Move timers to the driver level. On X they are
23921 queued by the driver and checked on idle.
23923 2004-08-24 01:07 jackson
23925 * XplatUIX11.cs: Use a queue for async messages instead of passing
23926 them as ClientMessages since that was totally broken. Also simply
23927 check for events and return an idle message if none are found. This
23928 gives us an idle handler, and prevents deadlocking when no messages
23931 2004-08-23 18:19 ravindra
23933 * XplatUIWin32.cs: Removed the unwanted destructor.
23935 2004-08-23 17:27 pbartok
23938 - Finishing touches. Works now, just needs some optimizations.
23940 2004-08-23 16:53 jordi
23942 * ScrollBar.cs: small fix
23944 2004-08-23 16:45 pbartok
23947 - Removed debug output
23950 2004-08-23 16:43 jordi
23952 * ScrollBar.cs: [no log message]
23954 2004-08-23 16:10 pbartok
23957 - Fixed handling of WM_CLOSE message
23958 - Removed debug output
23960 2004-08-23 16:09 pbartok
23963 - Added handling of Idle event
23964 - Added handling of form closing
23965 - Fixed reporting of MessageLoop property
23966 - Removed some unneeded code, should provide a bit of a speedup
23968 2004-08-23 15:22 pbartok
23971 - Added InitLayout() method
23972 - Added code to properly perform layout when Anchor or Dock property
23974 - Changed 'interpretation' of ResumeLayout. MS seems to have a
23975 LAMESPEC, tried to do it in a way that makes sense
23977 2004-08-23 14:10 jordi
23979 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
23980 properties and methods
23982 2004-08-23 13:55 pbartok
23985 - Properly fixed Jordi's last fix
23986 - Now uses Cursor's Position property instead of calling XplatUI
23989 2004-08-23 13:44 jordi
23991 * PaintEventHandler.cs: Adding missing attribute
23993 2004-08-23 13:39 pbartok
23996 - Implemented Position property
23998 2004-08-23 13:39 pbartok
24000 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
24001 - Added method to move mouse cursor
24003 2004-08-23 13:39 pbartok
24006 - Fixed setting of background color
24007 - Added method to move mouse cursor
24009 2004-08-23 13:16 jordi
24011 * Control.cs: avoids null exception
24013 2004-08-22 17:46 jackson
24015 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
24018 2004-08-22 17:40 jackson
24020 * XplatUIX11.cs: Add some missing locks
24022 2004-08-22 15:10 pbartok
24024 * Control.cs, Form.cs:
24025 - Removed OverlappedWindow style from Control, instead it's default
24027 - Made form windows OverlappedWindow by default
24029 2004-08-22 13:34 jackson
24031 * ScrollBar.cs: Update the position through the Value property so
24032 the OnValueChanged event is raised.
24034 2004-08-22 12:04 pbartok
24037 - Added Cursor.cs and UserControl.cs
24039 2004-08-22 12:03 pbartok
24042 - Started implementation, not usable yet
24044 2004-08-22 12:00 pbartok
24047 - Implemented UserControl (complete)
24049 2004-08-21 19:20 ravindra
24051 * ToolBar.cs: Correcting the formatting mess of VS.NET.
24053 2004-08-21 18:49 ravindra
24055 * ToolBar.cs: Probably this completes the missing attributes in
24058 2004-08-21 18:03 ravindra
24060 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
24061 Fixed toolbar control signatures.
24063 2004-08-21 16:32 pbartok
24068 2004-08-21 16:30 pbartok
24073 2004-08-21 16:19 pbartok
24075 * Control.cs, Label.cs:
24078 2004-08-21 15:57 pbartok
24081 - Added loads of debug output for development
24082 - Fixed typo in method name
24084 2004-08-21 15:52 pbartok
24086 * ToolBarButtonClickEventArgs.cs:
24087 - Added missing base class
24089 2004-08-21 14:53 pbartok
24092 - Updated to match new GrabWindow signature
24094 2004-08-21 14:51 pbartok
24096 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24097 - Added method to get default display size
24099 2004-08-21 14:23 pbartok
24101 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24102 - Added method to query current grab state
24103 - Added argument to allow confining a grab to a window
24105 2004-08-21 14:22 pbartok
24108 - Added [Flags] attribute so that modifiers can be used in bitwise
24111 2004-08-21 14:21 pbartok
24113 * TrackBar.cs, ScrollBar.cs:
24114 - Replaced direct XplatUI calls with their Control counterpart
24116 2004-08-21 13:32 pbartok
24119 - Implemented Created property
24121 2004-08-21 13:28 pbartok
24124 - Implemented ContainsFocus
24126 2004-08-21 13:26 pbartok
24129 - Implemented CausesValidation
24131 2004-08-21 13:21 pbartok
24134 - Implemented CanFocus
24135 - Implemented CanSelect
24136 - Implemented Capture
24138 2004-08-21 12:35 pbartok
24141 - Fixed bug with Async message handling
24142 - Implemented getting the ModifierKeys
24144 2004-08-21 12:32 jackson
24146 * AsyncMethodResult.cs: Make sure we have the mutex before we
24147 release it. Fixes BeginInvoke on windows
24149 2004-08-21 11:31 pbartok
24151 * XplatUIWin32.cs, XplatUIX11.cs:
24152 - Drivers now return proper mouse state
24154 2004-08-21 10:54 jackson
24156 * Control.cs: Implement EndInvoke
24158 2004-08-21 10:48 jackson
24160 * Timer.cs: Remove unneeded finalizer
24162 2004-08-20 19:52 ravindra
24164 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
24165 in mouse event handling in the ToolBar control.
24167 2004-08-20 19:50 ravindra
24169 * ImageList.cs: Changed draw method to use the arguments passed in
24172 2004-08-20 18:58 pbartok
24174 * XplatUIStructs.cs:
24175 - Added private message for async communication
24177 2004-08-20 17:38 ravindra
24179 * Control.cs: Made RightToLeft property virtual and removed a
24182 2004-08-20 14:39 jordi
24184 * ThemeGtk.cs: use style_attach
24186 2004-08-20 14:39 pbartok
24189 - Added jackson's Async code from X11 to Win32
24191 2004-08-20 14:09 pbartok
24194 - Added all new files
24196 2004-08-20 14:09 pbartok
24199 - Added call to set window background color
24201 2004-08-20 14:03 pbartok
24203 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24204 - Added method for setting the window background
24206 2004-08-20 14:02 pbartok
24209 - Added method for setting the background color
24210 - Added handling for erasing the window background
24212 2004-08-20 13:45 jordi
24214 * TrackBar.cs: fixes timer, new properties and methods
24216 2004-08-20 13:34 jackson
24218 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
24221 2004-08-20 13:22 jackson
24223 * Timer.cs: Timer Tick events are now handed through Controls Async
24224 mechanism so the callbacks are executed in the same thread as X
24226 2004-08-20 13:19 jackson
24228 * XplatUIDriver.cs: Expose functionality to send async messages
24231 2004-08-20 13:18 jackson
24233 * Control.cs: Implement Begininvoke
24235 2004-08-20 13:14 jackson
24237 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
24238 messages through the driver
24240 2004-08-20 13:12 jackson
24242 * XplatUIX11.cs: Lock before all X operations. Also added Async
24243 method functionality through XSendEvent
24245 2004-08-20 13:11 jackson
24247 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
24248 This will screw up on 64 bit systems)
24250 2004-08-20 13:10 jackson
24252 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
24253 Async messages through X/Win32
24255 2004-08-19 19:39 pbartok
24258 - Updated code to match new HandleData.DeviceContext type
24260 2004-08-19 19:38 pbartok
24263 - Made DeviceContext a generic object to allow usage from various
24265 - Added support for queueing Windows messages
24267 2004-08-19 19:37 pbartok
24270 - Added generation of MouseEnter, MouseLeave and MouseHover events
24271 - Added cleanup on EndPaint
24273 2004-08-19 19:17 pbartok
24276 - Added handling of WM_MOUSEHOVER
24277 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
24280 2004-08-19 18:55 jordi
24282 * ThemeGtk.cs: fixes button order
24284 2004-08-19 18:12 jordi
24286 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
24288 2004-08-19 17:09 pbartok
24291 - Added Right property
24292 - Added RightToLeft property
24294 2004-08-19 16:27 jordi
24296 * ThemeGtk.cs: experimental GTK theme support
24298 2004-08-19 16:26 jordi
24300 * ITheme.cs, Theme.cs: move themes from an interface to a class
24302 2004-08-19 16:25 jordi
24304 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
24307 2004-08-19 16:04 pbartok
24310 - Added colormap basics
24311 - Added a way to re-initialize with a different display handle
24312 - Fixed setting of the window background color
24313 - Added various X11 imports related to colors and colormaps
24315 2004-08-19 15:51 pbartok
24318 - Removed packing hints (Paolo suggested this a while back)
24319 - fixed colormap type
24320 - Added default Atom types
24321 - Added Screen and color structs and enums
24323 2004-08-19 15:39 pbartok
24326 - Added missing Draw() method
24327 - Added missing RecreateHandle event
24329 2004-08-19 15:30 pbartok
24332 - Added handling of WM_CLOSE
24334 2004-08-18 13:16 jordi
24336 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
24339 2004-08-18 09:56 jordi
24341 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
24343 2004-08-17 15:31 ravindra
24345 * SWF.csproj: Updated project.
24347 2004-08-17 15:25 pbartok
24350 - Drawing improvement; don't call UpdateBounds if we are not visible
24351 (or have been minimized)
24353 2004-08-17 15:24 pbartok
24356 - Finished IsVisible
24357 - Added Win32GetWindowPlacement
24359 2004-08-17 15:08 jackson
24361 * Panel.cs: Initial checkin of the Panel
24363 2004-08-17 14:25 pbartok
24366 - Fixed broken handling of default window sizes
24368 2004-08-17 13:29 jackson
24370 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
24371 has a large startup time.
24373 2004-08-17 10:25 jackson
24375 * HandleData.cs: union areas properly
24377 2004-08-17 10:12 jackson
24379 * HandleData.cs: union areas properly
24381 2004-08-16 20:00 ravindra
24383 * ToolBar.cs, ToolBarButton.cs: Added attributes.
24385 2004-08-16 18:48 ravindra
24387 * ToolBar.cs: Added attributes.
24389 2004-08-16 17:17 ravindra
24391 * SWF.csproj: Updated project.
24393 2004-08-16 17:16 jackson
24395 * XplatUIX11.cs: Check for more expose events before sending a
24396 WM_PAINT so they can all be grouped together. This makes dragging a
24397 window across another window redraw in a sane way.
24399 2004-08-16 15:47 pbartok
24402 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
24403 support OnMouseEnter/Leave()
24404 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
24407 2004-08-16 15:46 pbartok
24409 * XplatUIStructs.cs, XplatUIX11.cs:
24410 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
24411 OnMouseEnter/Leave()
24413 2004-08-16 15:34 jackson
24415 * XplatUIX11.cs: Group multiple expose events in HandleData, make
24416 sure messages get the message field set to WM_NULL if they are not
24419 2004-08-16 15:24 jackson
24421 * HandleData.cs: HandleData is used for storing message information
24424 2004-08-15 17:23 ravindra
24426 * ColorDepth.cs: Added attribute.
24428 2004-08-15 17:23 ravindra
24430 * SWF.csproj: Updated project for ToolBar Control.
24432 2004-08-15 17:20 ravindra
24434 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
24435 control and also dos2unix format.
24437 2004-08-15 17:13 ravindra
24439 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
24440 ToolBarButtonClickEventArgs.cs,
24441 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
24442 ToolBarTextAlign.cs: First Implementation of ToolBar control.
24444 2004-08-15 15:31 pbartok
24447 - First (mostly) working version
24449 2004-08-13 16:15 pbartok
24452 - Fixed Anchor default
24454 2004-08-13 15:43 pbartok
24457 - Changed GetCursorPos signature
24459 2004-08-13 15:42 pbartok
24461 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
24462 - Changed signature for GetCursorPos
24464 2004-08-13 15:25 pbartok
24468 - Fixed resizing/exposure handling
24470 2004-08-13 15:22 jordi
24472 * ThemeWin32Classic.cs: removes redundant code and fixes issues
24475 2004-08-13 14:55 jordi
24477 * TrackBar.cs: change from wndproc to events
24479 2004-08-13 13:00 jordi
24481 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24482 XplatUIX11.cs: implements PointToClient (ScreenToClient)
24484 2004-08-13 12:53 pbartok
24487 - Changed GetWindowPos to also provide client area size
24488 - Fixed broken prototypes for several win32 functions
24490 2004-08-13 12:53 pbartok
24492 * XplatUI.cs, XplatUIDriver.cs:
24493 - Changed GetWindowPos to also provide client area size
24495 2004-08-13 12:52 pbartok
24498 - Added generation of WM_POSCHANGED
24499 - Changed GetWindowPos to also provide client area size
24501 2004-08-13 12:52 pbartok
24504 - Added Dispose() and destructor
24505 - Fixed resizing and bounds calculation
24507 - Added memory savings for invisible windows
24509 2004-08-13 12:46 jordi
24511 * TrackBar.cs: adds timer and grap window
24513 2004-08-13 10:25 jackson
24515 * Timer.cs: SWF Timer
24517 2004-08-12 16:59 pbartok
24519 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24520 - Implemented method to get current mouse position
24522 2004-08-12 14:29 jordi
24524 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
24525 enhancement, fix mouse problems, highli thumb, etc
24527 2004-08-12 13:31 pbartok
24530 - Fixed Anchoring bugs
24532 2004-08-12 13:01 jackson
24534 * StatusBar.cs: Don't forget things
24536 2004-08-12 12:54 jackson
24538 * ThemeWin32Classic.cs: Handle owner draw status bars
24540 2004-08-12 12:54 jackson
24542 * StatusBar.cs: Implement missing properties, events, and methods.
24543 Handle mouse clicking
24545 2004-08-12 10:19 jackson
24547 * StatusBarPanelClickEventArgs.cs,
24548 StatusBarPanelClickEventHandler.cs: Classes for handling status
24549 bar panel click events
24551 2004-08-12 10:10 jackson
24553 * Control.cs: Add missing properties
24555 2004-08-12 09:46 pbartok
24557 * BindingsManagerBase.cs:
24558 - Name changed to BindingManagerBase.cs
24560 2004-08-12 09:25 jordi
24562 * ScrollableControl.cs: calls ctrlbase instead of exeception
24564 2004-08-11 16:28 pbartok
24566 * InputLanguageChangingEventArgs.cs:
24567 - Never check in before compiling. Fixes the last check-in
24569 2004-08-11 16:26 pbartok
24571 * InputLanguageChangingEventArgs.cs:
24572 - More signature fixes
24574 2004-08-11 16:20 pbartok
24576 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
24577 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
24578 ImageListStreamer.cs, InputLanguage.cs,
24579 InputLanguageChangedEventArgs.cs,
24580 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
24581 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
24582 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
24583 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24586 2004-08-11 16:16 pbartok
24590 - Added .Net 1.1 method
24592 2004-08-11 15:25 pbartok
24595 - Fixed BindingManagerBase.cs filename
24597 2004-08-11 15:22 pbartok
24599 * BindingManagerBase.cs:
24600 - Was checked in with wrong filename
24602 2004-08-11 14:50 pbartok
24607 2004-08-11 13:41 jordi
24609 * XplatUIWin32.cs: Fixes ClientRect
24611 2004-08-11 13:19 pbartok
24613 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24615 - We had SetWindowPos and MoveWindow to set window positions and
24616 size, removed MoveWindow. We have GetWindowPos, so it made sense to
24617 keep SetWindowPos as matching counterpart
24618 - Added some X11 sanity checking
24620 2004-08-11 12:59 pbartok
24623 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
24624 (It seems that SetBounds is just a front for SetBoundsCore and
24625 SetBoundsCore updates the underlying window system and
24626 UpdateBounds is responsible for updating the variables associated
24627 with the Control and sending the events)
24628 - Major cleanup of Size handling; we now have two sizes, client_size
24629 and bounds. Bounds defines the window with decorations, client_size
24632 2004-08-11 12:55 pbartok
24634 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24635 - Added method to calculate difference between decorated window and
24638 2004-08-11 12:54 pbartok
24641 - Forcing redraw on resize
24643 2004-08-11 11:43 pbartok
24646 - Removed disposing of the actual images when the list is disposed
24648 2004-08-11 09:13 pbartok
24651 - Now properly reparents windows
24653 2004-08-11 08:37 pbartok
24658 2004-08-11 07:47 pbartok
24661 - Rewrote the collection stuff. Might not be as fast now, not
24662 keeping the number of children around and accessible directly, but
24663 it's more straightforward
24665 2004-08-11 07:44 pbartok
24667 * AccessibleObject.cs:
24668 - Fixed to match ControlCollection rewrite
24670 2004-08-11 07:43 pbartok
24673 - Added missing creation of the collection list
24675 2004-08-10 20:08 jackson
24677 * StatusBar.cs: Get the paint message from WndProc
24679 2004-08-10 19:31 jackson
24681 * ThemeWin32Classic.cs: Create Brushes as little as possible
24683 2004-08-10 19:20 jackson
24685 * UICues.cs: Add Flags attribute
24687 2004-08-10 19:19 jackson
24689 * StatusBarPanel.cs: Signature cleanup
24691 2004-08-10 19:10 jackson
24693 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
24694 Initial implementation of status bar item drawing
24696 2004-08-10 17:27 jordi
24698 * TrackBar.cs: add missing methods, properties, and restructure to
24701 2004-08-10 16:24 jackson
24703 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
24704 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
24707 2004-08-10 13:21 jordi
24709 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
24710 enhancements and standarize on win colors defaults
24712 2004-08-10 12:52 jackson
24714 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
24715 ThemeWin32Classic.cs: Implement DrawItem functionality
24717 2004-08-10 12:47 jordi
24719 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
24721 2004-08-10 12:32 jordi
24723 * Control.cs: throw ontextchange event
24725 2004-08-10 11:43 pbartok
24728 - Added more to the still unfinished Dock/Anchor layout code
24730 2004-08-10 11:39 pbartok
24732 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24733 - Added GetWindowPos method
24735 2004-08-10 11:36 pbartok
24738 - Implemented several methods
24740 2004-08-10 09:47 jackson
24742 * TrackBar.cs: Allow control to handle buffering
24744 2004-08-10 09:41 jackson
24746 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
24748 2004-08-10 09:24 jackson
24750 * Label.cs, LinkLabel.cs: Let Control handle buffering.
24752 2004-08-10 09:09 jackson
24754 * StatusBar.cs: Let Control handle all the buffering.
24756 2004-08-10 09:08 jackson
24758 * Control.cs: Control will now handle the buffering code, so each
24759 control does not have to implement this.
24761 2004-08-10 08:34 jackson
24763 * XplatUIDriver.cs: Use default colors from the theme
24765 2004-08-09 17:12 pbartok
24768 - Fixed several bugs Ravindra pointed out
24770 2004-08-09 16:11 pbartok
24773 - Added incomplete dock layout code
24774 - Added support for mouse wheel
24776 2004-08-09 16:09 pbartok
24779 - Added handling for middle and right mousebutton
24780 - Added handling for mouse wheel
24781 - Added handling for key state and mouse state and position
24782 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
24785 2004-08-09 15:40 jackson
24787 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
24788 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
24791 2004-08-09 15:37 jackson
24793 * StatusBar.cs: Initial implementation of StatusBar
24795 2004-08-09 15:36 jackson
24797 * ITheme.cs: Add support for drawing status bar and getting status
24800 2004-08-09 15:35 pbartok
24805 2004-08-09 15:34 jackson
24807 * ThemeWin32Classic.cs: Add support for drawing status bar and get
24808 status bar item sizes
24810 2004-08-09 15:21 jackson
24812 * ThemeWin32Classic.cs: Use known colors for default control
24815 2004-08-09 15:12 jackson
24817 * ThemeWin32Classic.cs: Make the default font static, it is static
24818 in control so this doesn't change functionality and creating fonts
24821 2004-08-09 14:56 pbartok
24824 - Added GrabMode enum
24826 2004-08-09 14:55 pbartok
24828 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24829 - Removed Run method, was only required for initial development
24831 2004-08-09 14:51 pbartok
24833 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24834 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
24837 2004-08-09 13:48 pbartok
24840 - Fixed default sizing for child windows
24842 2004-08-09 12:56 pbartok
24845 - Added generation of WM_DESTROY message
24846 - Added handling of window manager induced shutdown
24848 2004-08-09 11:31 jackson
24850 * ThemeWin32Classic.cs: New names for control properties
24852 2004-08-09 11:25 jackson
24854 * Control.cs: Use new color names
24856 2004-08-09 11:02 jackson
24858 * XplatUI.cs: Get default window properties from the theme
24860 2004-08-09 11:01 jackson
24862 * ITheme.cs: The theme engine now controls default window
24865 2004-08-09 11:00 jackson
24867 * ThemeWin32Classic.cs: Add default window color properties
24869 2004-08-09 10:17 jackson
24871 * ThemeWin32Classic.cs: Use correct default back color
24873 2004-08-09 10:05 jackson
24875 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
24878 2004-08-09 09:56 jackson
24880 * XplatUI.cs: Remove defaults, these are handled by the theme now.
24882 2004-08-09 09:54 jackson
24884 * Control.cs: Get default properties from the theme.
24886 2004-08-09 09:53 jackson
24888 * ITheme.cs: Themes now handle default control properties
24890 2004-08-09 09:53 jackson
24892 * ThemeWin32Classic.cs: Themes now handle default control
24893 properties so coloring will be consistent
24895 2004-08-08 16:54 jordi
24897 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
24899 2004-08-08 15:08 jordi
24901 * XplatUIX11.cs: fixes keyboard crash
24903 2004-08-08 13:47 jordi
24905 * Label.cs: add cvs header info
24907 2004-08-08 12:09 jackson
24909 * ThemeWin32Classic.cs: Add pen_buttonface
24911 2004-08-08 11:52 jordi
24913 * Label.cs, LinkLabel.cs: [no log message]
24915 2004-08-08 11:34 jordi
24917 * ThemeWin32Classic.cs: Use Windows Standard Colours
24919 2004-08-07 17:32 jordi
24921 * TrackBar.cs: throw exceptions of invalid enums values
24923 2004-08-07 17:31 jordi
24925 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
24928 2004-08-07 16:56 jackson
24930 * HorizontalAlignment.cs: Initial checkin
24932 2004-08-07 13:16 jordi
24934 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
24937 2004-08-07 13:05 jordi
24939 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
24940 GetSysColor defines
24942 2004-08-06 18:01 pbartok
24944 * ThemeWin32Classic.cs:
24945 - Fixed some rounding issues with float/int
24947 2004-08-06 18:00 jackson
24949 * DockStyle.cs, AnchorStyles.cs:
24951 Add flags and serializable attributes.
24953 2004-08-06 17:46 pbartok
24956 - Implemented GetParent
24958 2004-08-06 17:18 pbartok
24961 - Fixed some rounding issues with float/int
24963 2004-08-06 17:17 pbartok
24965 * X11Structs.cs, XplatUIX11.cs:
24966 - Fixed Refresh and Invalidate
24968 2004-08-06 15:30 pbartok
24970 * Control.cs, X11Structs.cs, XplatUIX11.cs:
24971 - Fixed recursive loop when resizing
24972 - Improved/fixed redrawing on expose messages
24974 2004-08-06 09:53 jordi
24976 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
24977 keyboard navigation
24979 2004-08-06 08:02 pbartok
24981 * X11Structs.cs, XplatUIX11.cs:
24982 - Fixed reparenting
24983 - Fixed window border creation
24985 2004-08-05 15:38 pbartok
24988 - Attempted fix for reparenting problems
24990 2004-08-04 15:14 pbartok
24993 - Fixed Invalidation bug (calculated wrong client area)
24994 - Added ClientSize setter
24996 2004-08-04 15:13 pbartok
24999 - Added AutoScale properties
25001 2004-08-04 15:13 pbartok
25004 - Added latest files
25006 2004-08-04 14:11 pbartok
25008 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25010 - Added Invalidate handling
25012 2004-08-03 17:09 jordi
25014 * XplatUIDriver.cs: fixes spelling mistake
25016 2004-07-27 09:53 jordi
25018 * TrackBar.cs: fixes trackbar events, def classname, methods
25021 2004-07-27 09:29 jordi
25023 * ScrollBar.cs: fixes scrollbar events
25025 2004-07-27 04:38 jordi
25027 * Control.cs: changes to be able to run winforms samples
25029 2004-07-26 11:42 jordi
25031 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
25032 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
25034 2004-07-26 05:41 jordi
25036 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
25037 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
25040 2004-07-22 09:22 jordi
25042 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
25043 check link overlapping, implement events, and fixes
25045 2004-07-21 10:28 jordi
25047 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
25049 2004-07-21 10:19 jordi
25051 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
25052 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
25053 LinkLabelLinkClickedEventArgs.cs,
25054 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
25055 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
25058 2004-07-19 13:09 jordi
25060 * Control.cs, Label.cs: label control re-written: added missing
25061 functionlity, events, and properties
25063 2004-07-19 10:49 jordi
25065 * Control.cs: fixes SetBounds logic
25067 2004-07-19 01:29 jordi
25069 * Control.cs: Call RefreshWindow only if the window has created
25071 2004-07-15 14:05 pbartok
25073 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
25074 - Implemented ImageList and ImageList.ImageCollection classes
25075 - Added ColorDepth enumeration
25076 - Updated SWF VS.Net project
25078 2004-07-15 11:06 jordi
25080 * XplatUIStructs.cs: added MsgButons enum
25082 2004-07-15 11:03 jordi
25084 * Control.cs: added basic mouse handeling events
25086 2004-07-15 03:38 jordi
25088 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
25089 Vertical TrackBar control implementation
25091 2004-07-13 09:33 jordi
25093 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
25095 2004-07-13 09:31 jordi
25097 * Control.cs, Form.cs: commit: new properties and fixes form size
25100 2004-07-09 14:13 miguel
25102 * ProgressBar.cs: Spelling
25104 2004-07-09 11:25 pbartok
25107 - Removed usage of Rectangle for drawing. Miguel pointed out it's
25110 2004-07-09 11:17 miguel
25112 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
25114 * ProgressBar.cs: Fixed spelling for `block'
25116 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
25119 Avoid using the += on rect.X, that exposed a bug in the compiler.
25121 2004-07-08 23:21 pbartok
25123 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
25124 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
25125 BaseCollection.cs, Binding.cs, BindingContext.cs,
25126 BindingMemberInfo.cs, BindingsCollection.cs,
25127 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
25128 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
25129 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
25130 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
25131 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
25132 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
25133 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
25134 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
25135 FrameStyle.cs, GiveFeedbackEventArgs.cs,
25136 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
25137 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
25138 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
25139 InputLanguageChangedEventArgs.cs,
25140 InputLanguageChangedEventHandler.cs,
25141 InputLanguageChangingEventArgs.cs,
25142 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
25143 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
25144 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
25145 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
25146 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
25147 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
25148 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
25149 QueryAccessibilityHelpEventArgs.cs,
25150 QueryAccessibilityHelpEventHandler.cs,
25151 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
25152 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
25153 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
25154 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
25155 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
25156 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
25157 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
25158 XplatUIX11.cs, lang.cs: