1 2007-02-01 Chris Toshok <toshok@ximian.com>
3 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
6 2007-02-01 Chris Toshok <toshok@ximian.com>
8 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
9 here, since the most recent focus fixes keep us from generating
10 the Leave event when our textbox gets focus.
11 (Edit): we should be passing null for the column style's
12 instantText parameter.
14 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
16 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
17 raised. Fixes menu text/icons not showing up in PDN.
19 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
21 * Control.cs: Remove code in constructor that makes every
22 control with WS_CHILD set have initial location -1, -1.
24 2007-01-31 Jackson Harper <jackson@ximian.com>
26 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
28 * XplatUIX11.cs: Give teh keyboard to teh dnd.
30 2007-01-31 Jackson Harper <jackson@ximian.com>
32 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
33 - Remove some debug code.
35 2007-01-31 Jackson Harper <jackson@ximian.com>
37 * XplatUIX11.cs: If you set the override cursor during a grab, it
38 should actually override the grab cursor. This comes into play
39 when you are setting custom cursors in a DND feedback method.
41 2007-01-31 Jackson Harper <jackson@ximian.com>
43 * X11Dnd.cs: Add support for handling the QueryContinue and
45 - Cancel drag and drop actions when the escape key is clicked.
46 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
47 can handle the ESCAPE key.
48 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
49 done when dnd events are continued after the button is released.
50 - Add a new helper method so that dnd can translate key events.
52 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
54 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
55 make it more obvious what is happening.
57 2007-01-30 Jackson Harper <jackson@ximian.com>
59 * XplatUIX11.cs: Don't break when handling button release in drag
60 and drop operations. We need that BUTTONUP message to get through
61 so capture is released.
62 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
63 this is handled automatically when the mouse is down.
65 2007-01-30 Jackson Harper <jackson@ximian.com>
67 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
68 is closed, so we need to make sure that we aren't changing the
69 dialog result when the OK (Open or Save) button has been clicked
70 and we are closing the window ourselves. Note we don't need to
71 worry about the cache being written in this case, because it was
72 already done in the previous FilOk call.
74 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
76 * DateTimePicker.cs: Remove a warning.
77 * ComboBox.cs: Remove a couple of warnings.
79 2007-01-29 Chris Toshok <toshok@ximian.com>
81 * XplatUIX11.cs: don't crash, and remove the icon if the user has
82 set one, if SetIcon is passed a null icon.
84 2007-01-29 Andreia Gaita <avidigal@novell.com>
86 * TextBox.cs: Redraw when the password characters changes
87 * TextControl.cs: Check if textbox has a password char and draw
88 a line of password chars instead of the text in the line. LineTag gets
89 an extra Draw() method which allows document.Draw to override the text
90 that will be drawn. Removes 1024 char limitation on length of passworded
93 2007-01-29 Jackson Harper <jackson@ximian.com>
95 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
98 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
100 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
101 one pixel. Fix a StackOverflowException caused by an overload wrongly
104 2007-01-26 Everaldo Canuto <everaldo@simios.org>
106 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
107 also remove ProcessArrowKey and put the code inside ProcessKeys.
109 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
111 * PaddingConverter.cs: Added.
113 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
115 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
116 ShowPanels is false (fixes #80600). Only draw up to 127 characters
117 of text (fixes #80601). For panels clip the text to draw to the
118 panel (fixes #80603).
120 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
122 * ComboBox.cs: Fixed implementation of ResetText.
124 2007-01-25 Jackson Harper <jackson@ximian.com>
126 * TextControl.cs: For the last char of a line we need to use the
127 line size, not that chars width, since it won't actually be
128 computed since the right side of a char is based on the start of
129 the left side of the next char, and the next char does not exist.
131 2007-01-25 Chris Toshok <toshok@ximian.com>
133 * Splitter.cs: fix the new unit tests, and reindent some switch
136 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
138 * ComboBox.cs: Implemented 2.0 methods and events.
139 * TextBoxBase.cs: Added OnTextUpdate, so that
140 ComboBox.ComboTextBox can inform ComboBox of it.
142 2007-01-25 Jackson Harper <jackson@ximian.com>
144 * TextControl.cs: Respect ShowSelection when deciding whether or
145 not to display the caret, this allows comboboxes to have carets
146 when the combotextbox does not have focus.
148 2007-01-25 Jackson Harper <jackson@ximian.com>
150 * TextControl.cs: Add a Suspend/Resume for updating, basically the
151 same as the Suspend/Resume for recalc, except this will do actual
153 - New Undo manager, works much like the MS version.
155 * TextBoxBase.cs: The Cut operation is undoable.
157 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
159 * TextBoxBase.cs: Don't antialias text. Makes it look way better
160 on Windows (no difference on Linux).
162 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
164 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
165 we don't want to activate any windows. Fixes #79433.
167 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
169 - ButtonBase.cs: Fix capitalization of parameter: disposing.
172 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
175 - Move to using System.ComponentModel.EventHandlerList
176 - Replace Refresh with Invalidate
177 - Clear the mime filecache on closing
178 - Some other memory reducing work. After beeing closed FD now uses
179 only about 300 KB for the fdo mime stuff plus the memory of the
181 * Mime.cs: Changed coding style and removed unnecessary commented
182 code. Some more memory memory reducing work.
184 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
186 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
187 a few other missing 2.0 properties.
188 * Theme.cs: Added DrawFlatStyleComboBox.
189 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
191 2007-01-24 Chris Toshok <toshok@ximian.com>
193 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
194 wake_waiting flag, not just when there's data to be read. if we
195 don't, then future wakeup's won't reach us and we'll be doomed to
196 wait for the entire 1 second timeout forever (unless there are X
199 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
201 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
202 until you pass Items.Count, not Items.Count - 1 like 1.1.
204 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
206 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
208 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
210 * ToolStripContainer.cs: The recent Dock fix exposed that I was
211 adding the panels in the wrong order.
213 2007-01-24 Jackson Harper <jackson@ximian.com>
215 * TextBoxBase.cs: When we move the caret we also need to move the
216 selection, this fixes some random crashing after doing select
217 text, unselect, delete a char, paste.
219 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
221 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
223 2007-01-23 Everaldo Canuto <everaldo@simios.org>
225 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
226 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
227 * ToolBar.cs: Force redraw in BackgroundImageChanged.
229 2007-01-23 Everaldo Canuto <everaldo@simios.org>
232 - Implement support for vertical toolbars. Fixes #80539;
233 - Call LayoutToolBar when resize, it fix some other problems in layout.
234 - Rename requested_height to requested_size, as we can have width on it
235 when toolbar is vertical.
236 - Create a private property "Vertical" that uses Dock to verify when
237 toolbar is vertical or not.
238 - Set ControlStyles when change Dock property.
239 - Refactory in LayoutToolBar to have better variables names and to support
241 - Fixes default value for ButtonSize when button count is equal zero, size
242 must be (39, 36) test case writed.
244 2007-01-23 Chris Toshok <toshok@ximian.com>
246 * Control.cs: fix the checks so that they work correctly for mdi
249 2007-01-23 Chris Toshok <toshok@ximian.com>
251 * Control.cs: ControlCollection seems to have super-secret
252 abstraction breaking knowledge of Mdi containers. allow MdiClient
253 to add toplevel controls.
255 2007-01-23 Chris Toshok <toshok@ximian.com>
257 * Control.cs: throw an ArgumentException if a toplevel control is
258 added to our control collection from ControlCollection.Add, as
259 well as from ControlCollection.IList.Add. This fixes the
260 ControlSetTopLevelTest.TestTopLevelAdd unit test.
262 Also, in ControlCollection.IList.Add, don't through an
263 ArgumentNullException, throw an ArgumentException, when value ==
264 null. This matches MS.
266 2007-01-23 Chris Toshok <toshok@ximian.com>
268 * BindingSource.cs: initial, incomplete, implementation of
271 2007-01-23 Jackson Harper <jackson@ximian.com>
274 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
275 that I can fix a broken unit test (TextBoxTest::ClearUndo)
277 2007-01-23 Everaldo Canuto <everaldo@simios.org>
279 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
281 2007-01-23 Andreia Gaita <avidigal@novell.com>
283 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
284 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
287 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
289 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
290 to prevent it from changing z-order.
291 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
292 leave UI updates in MdiWindowManager.
293 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
294 1 sized (NC handling goes weird on Linux otherwise).
295 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
296 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
297 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
298 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
299 and SetWindowState(s) to allow for changing the size of an activated child
300 before activating it (reduces a lot of flicker).
302 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
304 * Form.cs: Changing FormBorderStyle has different semantics based
305 on whether the Form is visible or not. If not visible, don't change
306 the Size. But InvalidateNC needs to be called to force the window
307 to pick up the changes and redraw itself. [Fixes bug #80574]
309 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
312 * ContainerControl.cs: ProcessCmdKey.
313 * ErrorProvider.cs: new constructor.
314 * Form.cs: fix AutoValidateEvent compiler warning.
315 * Label.cs: fix OnAutoSizeChanged compiler warning.
316 * MenuStrip.cs: fix CanOverflow compiler warning.
317 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
318 * TextBox.cs: Dispose.
319 * ToolStrip.cs: CanOverflow, re-enable double buffering.
320 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
321 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
322 * ToolStripItem.cs: Overflow, RightToLeft properties.
324 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
326 * Form.cs: Move the layout of the main form to MdiWindowManager.
327 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
328 do a layout of the main window to update MdiClient's client area to
329 the right area. Fixes #80533. Remove the calculation of nc size,
330 it was just wrong and the correct one is the same as for
331 InternalWindowManager.
333 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
335 * Control.cs: Setting Anchor or Dock needs to reset the other
336 to its default. [Fixes bug #80556]
338 2007-01-20 Chris Toshok <toshok@ximian.com>
340 * CheckedListBox.cs: class status changes.
342 * ScrollableControl.cs: same.
344 * RichTextBox.cs: same.
346 * ContainerControl.cs: same.
350 * NotifyIcon.cs: same.
352 * MenuStrip.cs: same.
354 * RadioButton.cs: same.
358 * PrintPreviewDialog.cs: same.
362 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
364 * TreeNode.cs: Apply Alan's patch for Name property.
366 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
368 * Form.cs: Implemented SizeGripStyle.
369 * SizeGrip.cs: Check for minimum and maximum size for the
370 control being resized and only resize if size has actually
373 2007-01-19 Chris Toshok <toshok@ximian.com>
375 * DataGridColumnStyle.cs: stop setting _readonly in the
376 PropertyDescriptor setter. fixes a unit test failure.
378 also, rename ParentReadOnly to TableStyleReadOnly, and have it
379 just consult our table style (if we have one). We don't need to
380 consult the datagrid readonly attribute because that's passed in
381 as the _ro arg to Edit. this simplifies things a little.
383 * DataGrid.cs: use CurrentColumn instead of
384 current_cell.ColumnNumber just to simplify some of the code.
386 switch the order of some things in the CurrentCell setter to keep
387 the previous cell from getting a textbox again -
388 EnsureCellVisibility causes scrolling to happen, which calls Edit.
389 So we need to set the new cell before calling it.
391 call Edit in OnEnter, as does Microsoft.
393 also, make sure the current table style isn't the one we create
394 initially when checking to see if it's different than the one
395 we're setting it to in BindColumns (this fixes #80421).
397 * GridTableStylesCollection.cs: table styles can have "" for a
398 mapping name. part of the fix for #80421.
400 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
403 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
405 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
406 and less GDI object leaky-er.
408 2007-01-18 Andreia Gaita <avidigal@novell.com>
410 * LinkLabel.cs: Add opaque control style
412 2007-01-18 Jackson Harper <jackson@ximian.com>
414 * TextControl.cs: Calculate width properly.
415 - Don't store the tag's X offset, this can be figured out very
417 - When getting the caret tag make sure to get the last empty tag.
419 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
421 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
424 * Control.cs: Color.Empty shouldn't count for previous transparent
427 2007-01-18 Jackson Harper <jackson@ximian.com>
431 * TextControl.cs: Starting to merge in some pieces of my older
432 undo work. Basically just some slight cleanup of the undo API.
434 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
436 * TrackBar.cs: Fix signature of RightToLeftLayout.
437 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
438 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
439 * Application.cs: Implemented UseWaitCursor.
441 2007-01-18 Jackson Harper <jackson@ximian.com>
443 * TextControl.cs: We can't skip tags if any part of the tag is
446 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
448 * ContainerControl.cs: Override OnLayout.
450 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
452 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
454 * ContextMenuStrip.cs: Make sure context menu is shown on top of
457 2007-01-18 Chris Toshok <toshok@ximian.com>
459 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
460 (leftover from the container_selected days, I'd wager). fixes bug
463 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
465 * Control.cs: Apply patch from George to fix the new testcase on
466 bug #80451. We can't just check for Color.Transparent, we need
467 to check if the back color's alpha channel is < 255.
469 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
471 * Form.cs: Move setting show_icon = true to before the constructor
472 so that the base constructor has that information when it calculates
473 the form's size. Was causing forms to be (6, 6) bigger than they
474 were supposed to be. Thanks for catching this Rolf!
476 2007-01-18 Jackson Harper <jackson@ximian.com>
478 * TextControl.cs: When replacing a selection we need to invalidate
479 from the initial selection start, because selection start is moved
480 to the end of the replacement.
482 2007-01-18 Andreia Gaita <avidigal@novell.com>
484 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
486 2007-01-18 Chris Toshok <toshok@ximian.com>
488 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
491 2007-01-17 Everaldo Canuto <everaldo@simios.org>
493 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
494 layout methods and properties from ToolBarButton must be available
495 into ToolBarButtonInfo.
497 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
499 * Control.cs: If the control has a transparent background, we
500 need to refresh it when it moves and when it's parent's background
501 image changes. [Fixes bug #80451]
503 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
505 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
507 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
509 * XplatUIWin32.cs: Implement proper double buffering for Windows.
510 [Fixes bug #80447, and probably speeds up things as well]
512 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
514 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
515 * XplatUIWin32.cs: We need to recalculate NC size after changing
516 window style to toolwindow (otherwise the client rectangle will be
517 3 pixels to small for some reason).
518 * MdiWindowManager.cs: Revert NC size calculations to match how
519 they are calculated only based on window styles (to match
520 Win32AdjustWindowRectEx, since otherwise when setting size or
521 location, Control will call Win32AdjustWindowRectEx to update client
522 size, which would provoke a paint, then we'd get a NCCALCSIZE and
523 calculate a different value of client size causing another paint
525 * InternalWindowManager.cs: When moving or resizing a window only
526 update size or location if they actually changed.
527 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
528 (seems to match Windows behaviour better). Cleaned up
529 ManagedWindowDecorations to draw what's needed and nothing else
530 (was drawing borders and lines where they shouldn't be)
531 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
532 (style = 0xFFFF) and takes into account caption height when
533 calculating window rectangle.
535 2007-01-16 Everaldo Canuto <everaldo@simios.org>
537 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
538 can be added to toolbar multiple times, we need to maintain a list of
539 button information for each positions.
541 2007-01-16 Everaldo Canuto <everaldo@simios.org>
543 * ToolBar.cs: Some small stetic changes.
545 2007-01-16 Jackson Harper <jackson@ximian.com>
547 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
548 that allow us to have nested recalc = false blocks.
549 - Add paste support for images in the RichTextBox
550 * RichTextBox.cs: flush the text after the color is changed, so
551 the change takes effect.
553 - Some extra debugging info
554 * TextControl.cs: Tags no longer track their length, it is just
555 computed from the next tags length, this makes things a little
556 simpler and reduces places that we have to track length changes.
557 - Refactored the linetag class a little so we could make it
558 a base class for different kinds of tags
559 - Created a image tag, a tag that can have a single image inserted
561 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
562 that we can call suspend multiple times.
563 - Add some debugging methods
565 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
567 * MdiClient.cs: Add ActivatePreviousChild for
568 mdi child window navigation.
569 * Form.cs: Use MdiClient.ActivateNextChild/
570 ActivatePreviousChild instead of Form.SelectNextControl
571 to select the next/previous child since
572 SelectNextControl doesn't do it in the same order
573 as mdi children should do it.
575 2007-01-16 Chris Toshok <toshok@ximian.com>
577 * Control.cs: remove container_selected field.
579 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
581 * MdiClient.cs: Update main form's ActiveChild when
582 updating keyboard focus for the mdi child.
584 2007-01-16 Jonathan Pobst <jpobst@novell.com>
586 * Control.cs: PreferredSize fix.
588 * Form.cs: Add several 2.0 events, properties, and methods.
590 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
592 * Form.cs: Provide meaningful message when MdiParent is assigned a
593 Form that is not an MdiContainer.
595 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
597 * MdiClient.cs: Update main form's ActiveChild when
598 activating a mdi child.
600 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
602 * MdiWindowManager.cs: Fix NRE when merging menus and main form
605 * Form.cs: Request NCRecalc after creating a mdi child window.
606 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
607 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
609 * MdiClient.cs: Add new method SendFocusToActiveChild that either
610 sends keyboard focus to the active child, or to the MdiClient
611 if there are no child forms.
613 2007-01-15 Chris Toshok <toshok@ximian.com>
615 * ListView.cs: drop the *Internal overrides, just do our work in
616 ItemControl's WndProc instead.
618 * UpDownBase.cs: a few large changes. Fix up the Selectable state
619 of the various controls, and forward the events properly (in the
620 same manner as MS) from the textbox to the UpDown. Also the
621 ActiveControl of the UpDownBase gets set properly now. Finally,
622 we don't call UpdateEditText from the ctor. Fixes bug #79957.
624 * NumericUpDown.cs: set Text in the ctor.
626 * DomainUpDown.cs: call UpdateEditText in the ctor.
628 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
629 so even a Selectable = false textbox can be focused if you click
632 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
633 just add their handling in their respective WndProc's. Also add
634 an explicit FocusInternal method that doesn't consult CanFocus
635 before calling Select(this).
637 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
638 do our work in WndProc instead.
640 * TabControl.cs: same.
644 2007-01-15 Everaldo Canuto <everaldo@simios.org>
646 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
649 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
652 * ThemeWin32Classic.cs: Don't draw the item text outside
653 item bounds in Details view, as well as use trimming.
656 2007-01-15 Jonathan Pobst <jpobst@novell.com>
658 * Form.cs: Implement Form.ShowIcon.
660 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
661 null, which when combined with the DlgModalFrame window style removes
662 the icon from the title bar.
664 2007-01-15 Jonathan Pobst <jpobst@novell.com>
666 * Control.cs: Call OnMouseClick after OnClick. (2.0)
668 2007-01-15 Everaldo Canuto <everaldo@simios.org>
670 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
671 menu when mdi child windows theres a menu, uses insert to get icon
672 at first position. Partially fix #80006.
674 2007-01-15 Jonathan Pobst <jpobst@novell.com>
676 * Clipboard.cs: Implement 2.0 methods.
678 2007-01-15 Everaldo Canuto <everaldo@simios.org>
680 * Menu.cs: Implement Insert method of MenuItemCollection class
683 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
685 * ListView.cs: Implement 2.0 FindItemWithText method.
687 2007-01-11 Everaldo Canuto <everaldo@simios.org>
689 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
690 to calculate menu bar size. Fixes #80290.
692 2007-01-11 Everaldo Canuto <everaldo@simios.org>
694 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
696 2007-01-11 Chris Toshok <toshok@ximian.com>
698 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
701 2007-01-11 Chris Toshok <toshok@ximian.com>
703 * LinkLabel.cs: make sure to call base.Select in our Select method
704 if it turns out we're going to be selected (i.e. if we have a link
705 that is going to receive focus). That way our container's
706 ActiveControl is updated properly.
708 2007-01-11 Chris Toshok <toshok@ximian.com>
710 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
711 they have 1 or more links. this fixes the crash gert reported.
713 2007-01-11 Andreia Gaita <avidigal@novell.com>
715 * ContainerControl.cs: Remove ContainerSelected flag, not needed
718 * Control.cs (Controls.Add): Check if control to be added to the collection
719 is a top level control, and throw an ArgumentException if it is.
720 Remove ContainerSelectedFlag, not needed anymore.
722 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
723 top most control doesn't activate the form. This fixes a problem in the
724 MessageBox, where the default button wouldn't get focus because the form
725 was activated before being Loaded - when the Owner is set, SetTopMost is
726 called, and it would activate it.
728 2007-01-11 Jonathan Pobst <jpobst@novell.com>
730 * Button.cs: When clicked and setting the parent form's DialogResult,
731 use FindForm instead of Parent, since parent could be a container
732 control and not the Form. Fixes bug #80495.
734 2007-01-10 Chris Toshok <toshok@ximian.com>
736 * Form.cs: move the call to SendControlFocus into the same
739 2007-01-10 Chris Toshok <toshok@ximian.com>
741 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
742 It breaks in the face of the new ActiveControl stuff, and should
745 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
746 activecontrol's focus if it's not already set, after we set
747 ActiveControl, but before we call OnActivated. Re-fixes #79667
748 after the previous focus/active control fixes regressed it.
750 * Control.cs: reindent some code.
752 2007-01-10 Chris Toshok <toshok@ximian.com>
754 * Splitter.cs: clearing some outstanding changes from my tree.
755 Replace all accesses (not writes) to the internal dock_style field
756 with the Dock property.
758 2007-01-10 Chris Toshok <toshok@ximian.com>
760 * Control.cs: make FireEnter, FireLeave, FireValidating, and
761 FireValidated virtual.
763 * Form.cs: override and don't chain up calls to FireEnter and
766 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
768 * ListView.cs: Add more text padding space when using
769 auto resize for columns (the previous value didn't work fine).
771 * ThemeWin32Classic.cs: Update text position inside columns,
772 to match the appeareance of .Net.
774 * ColumnHeader.cs: When using auto resize, only the Width should
775 depend on the sub items, not the Height. Also, set width after
776 auto resizing (the value of Width should never remain as -1 or -2).
778 2007-01-10 Chris Toshok <toshok@ximian.com>
780 * Application.cs: fix compilation errors when debug is enabled.
782 2007-01-10 Chris Toshok <toshok@ximian.com>
784 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
785 add some nice ascii art pictures and explanation of the process).
786 (GetMostDeeplyNestedActiveControl): new utility function we need
787 because our ActiveControl can refer to a child container with its
790 * Form.cs (OnActivated): remove the call to SelectActiveControl
791 from here, since you can override this method and not chain up,
792 and winforms still sets the active control.
793 (OnCreateControl): also remove the unnecessary SelectActiveControl
795 (WndProc): it's actually called from the WM_ACTIVATE block, just
796 before calling OnActivated.
798 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
799 inside the else. the ActiveControl setter will end up setting
800 focus on @control. This keeps us from setting it again (and
801 generating an extra LostFocus/GotFocus pair).
802 (Select (bool, bool)): reindent.
804 2007-01-10 Jonathan Pobst <jpobst@novell.com>
806 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
807 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
808 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
809 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
810 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
811 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
812 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
813 ToolStripTextBox.cs: Another wave of corcompare work.
815 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
817 * ColumnHeader.cs: Implement 2.0 AutoResize method using
820 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
821 methods by callling Column.AutoResize method on columns.
823 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
825 * Control.cs: Provide proper implementations of PreferredSize
826 and GetPreferredSize (2.0).
828 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
830 * Form.cs: Remove one character (!) to make my previous OnClosing
831 stuff work for modal windows like MessageBox.
833 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
836 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
837 ListView.Columns to get the last displayed column. Fixes #80452.
839 2007-01-09 Everaldo Canuto <everaldo@simios.org>
841 * Label.cs, LinkLabel.cs: Source code identation fixes.
843 2007-01-08 Everaldo Canuto <everaldo@simios.org>
845 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
846 we dont need to invalidate only borders because when we invalidate four
847 border lines the invalidate's generates a complete redraw of button,
848 because it now invalidate a complete rect some other redraws operations
849 are fixed. Fixes #80196.
851 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
852 Remove ToolBarInvalidateEntireButton as it is not used.
854 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
856 * Form.cs: Make sure that both OnClosing and OnFormClosing are
857 called for 2.0 profile.
858 * CloseReason.cs: Make class internal for 1.1.
860 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
862 * ToolStripManager.cs: Implement FindToolStrip functionality.
863 * ToolStrip.cs: Register and unregister with ToolStripManager.
865 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
867 * Control.cs: This was messy. 2.0 moves much of ControlCollection
868 to ArrangedElementCollection. Implemented this with as few #if's as
869 possible (which is still too many).
871 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
873 * Control.cs: Implement SizeFromClientSize() [2.0].
875 2007-01-07 Everaldo Canuto <everaldo@simios.org>
877 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
878 use Theme.BorderSize to calculate area instead of static value 1,
879 by the way use new BorderStaticSize instead Border3DSize when
880 border_static is true. Fixes #79537.
882 * XplatUIOSX.cs: Fix call to GetClientRectangle.
884 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
887 2007-01-06 Everaldo Canuto <everaldo@simios.org>
889 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
891 2007-01-06 Everaldo Canuto <everaldo@simios.org>
893 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
894 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
897 - border_static field added, it will used to define when a control
898 theres 3D border but it must be static (thin).
899 - In GetWindowRectangle use Theme.BorderSize to calculate area
900 instead of static value 1, by the way use new BorderStaticSize instead
901 Border3DSize when border_static is true.
903 * XplatUIX11.cs, XplatUIOSX.cs:
904 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
906 * Theme.cs: BorderStaticSize field added.
908 2007-01-05 Everaldo Canuto <everaldo@simios.org>
910 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
912 2007-01-05 Everaldo Canuto <everaldo@simios.org>
914 * Control.cs: Under InternalBorderStyle call RecreateHangle to
915 mimic same behavior than win32 that set border only in CreateParams,
916 it fix problems under CreateParams overrides. Fix #79442 and partial
919 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
920 of thi control you must call recreate handle.
922 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
923 need to do anything as RecreateHangle will take care about borders.
925 2007-01-05 Mike Kestner <mkestner@novell.com>
927 * ListView.cs: hack to eliminate Lost/Got focus notifications on
928 cycles between the ItemControl and parent. Fixes #80388.
930 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
932 * Control.cs: Lazy init layout engine. Do not directly use
933 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
935 2007-01-05 Chris Toshok <toshok@ximian.com>
937 * DataGrid.cs: don't forceably rebind columns in SetDataSource
938 unless our list manager has changed (i.e. unless we have reason to
939 believe our columns have changed). Fixes #80422.
941 also, disable the call do BindColumns in
942 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
943 1.1 the event isn't raised in response to a column addition on a
946 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
948 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
949 that inheritors can not call it if they choose. Fixes bug #80456.
951 2007-01-05 Andreia Gaita <avidigal@novell.com>
953 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
954 doesn't blow up with a null exception on marshalling.
956 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
958 * Control.cs: Implement several 2.0 protected properties and methods.
959 Ensure that all necessary events are being called when properties
962 2007-01-05 Mike Kestner <mkestner@novell.com>
964 * ListView.cs: implement PgUp/PgDn for Details view. Also
965 fixes First/LastVisibleIndex to use the item_control.ClientRect
966 instead of the parent control. Fixes #80378.
968 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
970 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
971 determine whether to use yard-pound or not (bug #78399).
973 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
975 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
976 problems. So it is time to bring back the old popupbutton colors.
978 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
981 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
982 property by using the internal information of the
983 columns order in ListView.
985 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
987 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
988 Add 2.0 Tag properties.
990 * LinkArea.cs: Add 2.0 ToString method.
992 2007-01-03 Chris Toshok <toshok@ximian.com>
994 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
995 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
996 when we're editing, which fixes #80047.
998 2007-01-03 Chris Toshok <toshok@ximian.com>
1000 * Form.cs: apply patch contributed by Dominik Seichter. fixes
1003 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
1005 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
1006 property and implementation.
1008 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
1009 for MdiWindowListItem property.
1011 * ToolStripDropDown.cs: Don't consider hidden menu items while
1012 laying out the menu.
1014 2007-01-03 Andreia Gaita <avidigal@novell.com>
1016 * SendKeys.cs: window handle is not needed in win32, so just
1017 get the active window for X after parsing keys and don't use
1018 it when building the message; it is passed by parameter to the
1019 Xplat method and used there to build the message instead. Also,
1020 wait for events to be processed on SendWait, as opposed to Send,
1021 which doesn't wait :) Playing with threads and Send() completely
1022 hangs on ms.net, only SendWait() works.
1025 X11Display.cs: Check for valid window handle.
1027 2007-01-03 Jackson Harper <jackson@ximian.com>
1029 * TextControl.cs: Need to prevent wrap calculations when replacing
1030 text (this was there before i removed it accidently).
1031 - Don't update the cursor during the positioning, just set it to
1032 selection_start at the end of the operaion.
1034 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1037 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
1039 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1041 * MonthCalendar.cs: Added Click and DoubleClick events again,
1042 but this time they only hide Control's Click and DoubleClick.
1044 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
1046 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
1047 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
1049 2007-01-02 Jackson Harper <jackson@ximian.com>
1051 * TextBoxBase.cs: We move the caret with the split now, so we
1052 don't need to explicitly move the caret after splitting. This
1053 fixes the caret bumping down an extra line on Enter.
1055 2007-01-02 Miguel de Icaza <miguel@novell.com>
1057 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
1060 * ScrollableControl.cs: Add Scroll event.
1062 2007-01-02 Mike Kestner <mkestner@novell.com>
1064 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
1065 to fix all hdr height padding codepaths. Fixes #80207.
1067 2007-01-02 Chris Toshok <toshok@ximian.com>
1069 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
1070 setting it to the Control defaults anyway, and it being after the
1071 Dock set was screwing up layout.
1072 (set_Dock): don't short circuit out of setting base.Dock. Also,
1073 no need to call UpdateStatusBar here, as it'll be re-layed out if
1076 2007-01-02 Mike Kestner <mkestner@novell.com>
1078 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
1079 to header height for width == -1. Fixes the rest of #80207.
1081 2007-01-02 Mike Kestner <mkestner@novell.com>
1083 * ListView.cs: rework the mouse event forwarding everaldo added
1084 to translate the coordinates to the parent control not
1085 raise the parent events until after we've done our work. Hover
1086 needs more work, in the case where HoverSelection is on, because
1087 the item control receives more than one MouseHover per Enter
1088 event, so we need to ensure only the "first" hover gets forwarded.
1089 Opening a minor bug for that.
1091 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
1093 * CheckedListBox.cs: Fixed SelectionMode to match MS.
1094 * ListControl.cs: Implemented AllowSelection property. Removed extra
1096 * ListBox.cs: Implemented AllowSelection property.
1098 2007-01-02 Everaldo Canuto <everaldo@simios.org>
1100 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
1101 SelectedItem, it prevent for errors when you must disable item
1102 before perform click. Fixes #80409.
1104 2007-01-02 Everaldo Canuto <everaldo@simios.org>
1106 * MenuAPI.cs: Prevent second level and beyond submenus to close
1107 until first level when move out side of popup.
1109 2007-01-02 Everaldo Canuto <everaldo@simios.org>
1112 - Down submenu positin in three pixels.
1113 - Closes sub menu when mouse leaves from menu. Fixes #80402.
1115 2007-01-02 Everaldo Canuto <everaldo@simios.org>
1117 * ThemeWin32Classic.cs:
1118 - Fix popup menu size adding one pixel on the top.
1119 - Down menu item border from two to one to mimic Win32.
1120 - Some source identation fixes.
1122 2007-01-01 Everaldo Canuto <everaldo@simios.org>
1124 * ThemeWin32Classic.cs: Use float numbers to calculate size and
1125 position of menu arrows, it fix wrong arrow size.
1127 2007-01-01 Everaldo Canuto <everaldo@simios.org>
1129 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
1130 instead of line, it simplify draw operation and fix it using 3D
1131 borders to mimic Win32.
1133 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
1135 * StatusStrip.cs: Add implementation of the sizing grip.
1137 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
1138 StatusStrip rendering.
1140 2006-12-31 Chris Toshok <toshok@ximian.com>
1142 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
1143 override the layout style (anchor/dock) of the control. assign to
1144 Dock instead. Fixes bug #80416.
1146 * ToolStrip.cs: same.
1148 2006-12-31 Andreia Gaita <avidigal@novell.com>
1150 * ContainerControl.cs: Use ContainerSelected flag to check if
1151 a Container is directly selected, or if Select is called on a
1152 non-container. If a container is directly selected, focus events
1153 should not be raised.
1154 Apply #80411 patch to throw exception on set_ActiveControl if
1155 control is the same as the current one.
1157 * Control.cs: Use ContainerSelected flag (see above).
1158 Add invalidation check to raise event but not invalidate if
1163 2006-12-31 Everaldo Canuto <everaldo@simios.org>
1165 * MenuAPI.cs: After click, dont close popup menu when menu is
1166 ContextMenu. Fixes #80399.
1168 2006-12-30 Chris Toshok <toshok@ximian.com>
1170 * ContainerControl.cs: make sure we throw the exception if the
1171 container control doesn't contain the control we're setting
1174 2006-12-30 Chris Toshok <toshok@ximian.com>
1176 * Control.cs (SetTopLevel): fix the exception raised by
1177 SetTopLevel for child controls.
1178 (set_Anchor): call UpdateDistances when setting the anchor type.
1179 This fixes bug #80336.
1181 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
1183 * Theme.cs: For now, revert back to 8pt font.
1185 2006-12-29 Everaldo Canuto <everaldo@simios.org>
1187 * MenuAPI.cs: Set popup as active when open a ContextMenu.
1190 2006-12-29 Chris Toshok <toshok@ximian.com>
1192 * Control.cs: reorder the code in OnResize to give the same event
1195 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1197 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
1198 TileHorizontally and TileVertically.
1200 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
1202 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
1203 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
1204 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
1205 Corrected copyright and email adress.
1207 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
1209 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
1210 of Exception in FullPath property if no TreeView is associated with
1213 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
1215 * Theme.cs: Marked default_font as private, and initialize it in ctor
1216 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
1218 * ThemeGtk.cs: Removed default_font intialization.
1219 * ThemeWin32Classic.cs: Removed default_font initialization.
1221 2006-12-28 Chris Toshok <toshok@ximian.com>
1223 * Control.cs: fix a couple of place where we were creating handles
1224 more aggressively than we should be. Fixes ControlRefresh unit
1227 2006-12-28 Chris Toshok <toshok@ximian.com>
1229 * Control.cs: contrary to what the comment said, Control.Dock does
1230 not supercede Control.Anchor - the last one you assign to decides
1231 the layout behavior. so we need to keep track of which was the
1232 last set. Also, fix some of the affected property arguments in
1233 PerformLayout calls, and remove an redundant parent.PerformLayout
1236 Add a VisibleInternal property, which returns is_visible. We
1237 can/should get rid of all the usage of this field elsewhere.
1239 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
1241 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
1242 control style, not DoubleBuffer. Added UseDoubleBuffering property
1243 that indicates whether doublebuffering is enabled and supported.
1244 (comment from and code based on Gert Driesen's patch in #80324).
1247 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
1249 * Control.cs: Fixed a NRE.
1251 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
1253 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
1256 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
1258 * Control.cs: Rewrote double buffering, now a seperate
1259 class handles all the buffering, no Graphics is disposed of
1260 until the painting is finished (earlier implementation
1261 would crash if the control was resized in the OnPaint,
1262 since it would cause the double buffer to be recreated
1263 and the old one disposed), a separate Graphics is
1264 created for every paint (MS behaviour and anyways the state
1265 of the Graphics would have to be saved and restored otherwise)
1269 * XplatUI.cs: Added and implemented GetOffscreenGraphics
1270 so that we can get the graphics for the back buffer without
1271 having to create a new one and remove the offscreen_dc parameter
1272 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
1274 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1276 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
1277 Also make virtual all the key-related methods.
1279 * ListViewItem.cs: Make virtual the key related methods for
1280 ListViewSubItemCollection.
1282 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1286 * ThemeWin32Classic.cs:
1287 * Theme.cs: Initial support for Tile view in ListView,
1288 as well as the implementation of the required bits for it (Item
1291 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
1293 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
1294 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
1295 Provide useful exception messages.
1297 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
1299 * TrackBar.cs: Remove a warning.
1300 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
1301 when used by DateTimePicker, fixes #80287. This also requires that
1302 MonthCalendar implements it's own drawing for the yearly updown control,
1303 otherwise the Capture tracking would be too complicated. Removed the Click
1304 and DoubleClick events (according to comments they were hiding the base class
1305 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
1306 raise these events, not that they cannot be raised. It is possible to raise
1307 them by calling OnClick and OnDoubleClick). Added two internal fields in
1308 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
1309 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
1310 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
1311 event, no longer needed.
1313 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
1315 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
1316 true if new value differs from current value.
1318 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
1320 * Control.cs: ControlCollection.Count must be public. Fixed build of
1323 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
1325 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
1327 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
1329 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
1331 2006-12-26 Everaldo Canuto <everaldo@simios.org>
1333 * Control.cs: Invalidates control including when Width and Height is
1334 equal zero or is not visible, only Paint event must be care about
1337 2006-12-26 Chris Toshok <toshok@ximian.com>
1339 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
1340 more corcompare work.
1342 * DataGridView.cs: fix compiler warning.
1344 * ColumnHeader.cs: some corcompare work, and also take the
1345 opportunity to make the internal fields private.
1347 * ListView.cs: fix the fallout from the above field change.
1349 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
1351 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
1352 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
1353 ToolStripTextBox.cs: Fixes to events and corcompare.
1355 2006-12-26 Everaldo Canuto <everaldo@simios.org>
1357 * ListView.cs: Call owner.OnMousexx event to propagate events from
1358 item to ListView. Fixes #80367.
1360 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
1362 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
1363 if value is less than one. ItemHeight should not be set to a value
1364 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
1367 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
1369 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
1370 * ToolStripStatusLabel.cs: Add Spring for Moma.
1372 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
1374 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
1375 Fixed code formatting. Removed debug code.
1376 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
1378 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
1380 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
1381 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
1382 ArgumentOutOfRangeException if ColumnCount is negative. In
1383 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
1384 less than 4 or higher than 32768.
1385 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
1386 Fixed FormatProvider to return CurrentCulture unless explicitly set.
1387 Fixed IsFormatProviderDefault to return true if FormatProvider has
1388 not been explicitly set.
1390 2006-12-25 Chris Toshok <toshok@ximian.com>
1392 * Application.cs: add a couple of 2.0 events.
1394 2006-12-25 Chris Toshok <toshok@ximian.com>
1396 * Control.cs: fix compiler warning.
1398 * AxHost.cs: corcompare fixes.
1400 * ApplicationContext.cs: corcompare fixes.
1402 2006-12-25 Chris Toshok <toshok@ximian.com>
1404 * Control.cs: only update dist_right/dist_bottom if the
1405 width/height is > 0. this fixes anchored controls being resized
1406 smaller until they disappear and then resized larger again.
1408 2006-12-25 Chris Toshok <toshok@ximian.com>
1410 * Control.cs: a couple of changes. Remove dist_left and dist_top,
1411 since they're nothing more than X/Left and Y/Top, respectively.
1413 Also, move back to a per-control Bitmap/Graphics for
1414 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
1415 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
1418 2006-12-25 Miguel de Icaza <miguel@novell.com>
1420 * MessageBox.cs: Implemented overload that takes a new "bool
1421 displayHelpButton" by adding a new internal field "show_help".
1422 When clicked this will raise the HelpRequested on the owner or the
1425 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
1426 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
1428 * ListView.cs: Add support ColumnWidthChanged and
1429 ColumnWidthChanging.
1431 Add support for ColumnReordered event.
1432 (ReorderColumn): Add NET_2_0 specific support for cancelling the
1437 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
1439 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
1441 2006-12-24 Chris Toshok <toshok@ximian.com>
1443 * GridTablesFactory.cs: 2.0 corcompare work.
1445 * ToolStripContainer.cs: add "override" to
1446 ContextMenuStripChanged, and remove the local event object.
1448 * ToolStripDropDown.cs: same with a couple properties.
1450 * ToolStripPanel.cs: same with AutoSizeChanged event.
1452 * TextBoxBase.cs: add "override" to AutoSizeChanged.
1454 * Form.cs: add the remaining 2.0 events, and do some corcompare
1457 * DateTimePicker.cs: add "new" to padding.
1459 * ButtonBase.cs: use Control's use_compatible_text_rendering.
1461 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
1463 * DataGridView.cs: PaddingChanged is overridden.
1465 2006-12-24 Chris Toshok <toshok@ximian.com>
1467 * Control.cs: corecompare work here too.
1469 * DataGridViewElement.cs, DataGridView.cs,
1470 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
1471 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
1472 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
1473 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
1476 2006-12-24 Miguel de Icaza <miguel@novell.com>
1478 * Control.cs: Switched the error message on the console for a
1479 todo. A review of the code will have to cope with this anyways
1480 (since its a large feature, it is in our radar) and it was
1481 producing too much output when running PDN.
1483 * ToolStripComboBox.cs: Set the text when the SelectedIndex
1484 changes. Applications depend on this (PDN 2.72)
1486 2006-12-23 Chris Toshok <toshok@ximian.com>
1488 * TableLayoutSettings.cs: finish up the corcompare work for this
1491 2006-12-23 Chris Toshok <toshok@ximian.com>
1493 * Control.cs: make SetImplicitBounds internal, do some futzing
1494 with LayoutEngine so that it's available in 1.1, and remove the
1495 entire duplicated code mess from PerformLayout. Use
1496 System.Windows.Forms.Layout.DefaultLayout instead.
1498 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
1500 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
1502 * Form.cs: Add MainMenuStrip property.
1504 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
1506 * Control.cs: Add ContextMenuStrip property and implementation.
1507 Fix ContextMenu implementation to show menu centered on control when
1508 activated using the keyboard instead of showing at screen (0,0).
1510 * ToolStripDropDown.cs: Fix needed overload of Show ().
1512 2006-12-23 Everaldo Canuto <everaldo@simios.org>
1514 * Menu.cs: Name property added for 2.0 profile.
1516 2006-12-23 Everaldo Canuto <everaldo@simios.org>
1518 * Menu.cs: Update information about FindMenuItem, method to be
1521 2006-12-23 Everaldo Canuto <everaldo@simios.org>
1523 * MenuAPI.cs: When deselect items deselect also selected subitems.
1525 2006-12-23 Everaldo Canuto <everaldo@simios.org>
1527 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
1528 FindSubItemByCoord to found itens that is not active, also an
1529 cheking added to FindSubItemByCoord to search for items only
1530 in visible popup windows. Fixes #80274.
1532 2006-12-22 Everaldo Canuto <everaldo@simios.org>
1534 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
1535 internal property, it be care about change ExStyle.
1537 2006-12-22 Andreia Gaita <avidigal@novell.com>
1539 * ContainerControl.cs: set activeControl for parent forms up the
1540 tree when the new activecontrol is a container.
1541 When validating the active control, if it is a container, also
1542 raise up the validation for it's active control. Fixes #80280
1544 * Control.cs: Add internal property flag and check to prevent
1545 Focus events from getting raised when Select() is called for
1546 a ContainerControl. There are still too many focus events being
1547 raised at the moment though.
1548 Cleaned up the code a bit.
1550 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
1552 * Control.cs: Added all missing 2.0 events.and
1553 fixed a couple of corcompare issues.
1554 * TrackBar.cs: Implemented missing 2.0 bits.
1556 * DateTimePicker.cs,
1557 * MdiClient.cs: Fixed some corcompare issues.
1559 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
1561 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
1562 SplitterPanel.cs: corecompare work.
1564 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
1566 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
1567 Clean up warnings for BackgroundImageChanged and PaddingChanged
1568 events now that they are implemented in Control.cs.
1570 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
1572 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
1574 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
1575 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
1576 of TableLayoutPanel and supporting cast.
1578 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
1581 - GrabWindow now confines the mouse pointer to the confine window.
1582 - Added Win32ClipCursor and Win32GetClipCursor.
1585 - Added CaptureWithConfine to be able to capture and confine
1588 * InternalWindowManager.cs:
1589 - Call CaptureWithConfine instead of Capture if we're an
1590 MdiChild (fixes #79982).
1592 2006-12-21 Chris Toshok <toshok@ximian.com>
1594 * DataGrid.cs: guard against the initial state of selection, where
1595 selection_start == -1. make sure we only select from index >= 0.
1598 2006-12-21 Chris Toshok <toshok@ximian.com>
1600 * Control.cs: we don't need to be so draconian with
1601 UpdateDistances, and we thusly don't need to call it before
1602 calling PerformLayout in ResumeLayout. Fixes bug #80289.
1604 2006-12-21 Daniel Nauck <dna@mono-project.de>
1607 TextBox.cs: Implemented AutoComplete properties.
1609 2006-12-20 Chris Toshok <toshok@ximian.com>
1611 * DataGridView*.cs: some corecompare work.
1613 2006-12-20 Jackson Harper <jackson@ximian.com>
1615 * XplatUIX11.cs: We need to hide the caret when deleting it,
1616 otherwise you get carets left lying around everywhere.
1617 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
1618 prevents getting some weird half drawn caret tracers when
1620 * TextControl.cs: Attempt to reduce the number of times we need to
1623 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
1625 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
1627 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1629 * DateTimePicker.cs:
1630 - Implemented missing 2.0 bits.
1631 - Changed some default values to match MS.
1633 2006-12-20 Jackson Harper <jackson@ximian.com>
1635 * TextBoxBase.cs: When changing the font across the document we
1636 can't recalculate after changing each line, since that will cahnge
1638 - PreferredHeight is a little different than i thought.
1639 - When backspacing, move the caret before we do the actual char
1640 delete, because when that delete crosses a wrap boundary the
1641 positional information will change.
1643 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1645 * Control.cs: Added some missing 2.0 bits:
1646 BackgroundImageLayout, BackgroundImageLayoutChanged,
1647 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
1648 add IBindableComponent and IDropTarget implementation.
1651 - Added all missing 2.0 features:
1652 BackgroundImageLayout, RightToLeftLayout,
1653 OnHandleDestroyed, RightToLeftLayoutChanged,
1654 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
1656 - Rewrote all the BoldDate code, it was completely broken.
1657 - Fixed all the tests (the tests can now be re-enabled, the
1658 problems were not with the tests, but with the control, it was
1661 * DateTimePicker.cs: Changed the location where the
1662 MonthCalendar is shown.
1664 2006-12-19 Chris Toshok <toshok@ximian.com>
1666 * DataGridView.cs: add IDropTarget implementation.
1668 * ToolStripPanel.cs: add IDropTarget implementation.
1670 2006-12-19 Jackson Harper <jackson@ximian.com>
1672 * TextControl.cs: soft now means something different than what it
1673 used to mean, we want to move the caret regardless of whether or
1674 not this break was soft (would we really have wanted the caret
1675 to not move with the break in the old context?)
1676 * TreeView.cs: Make sure we factor in the vert scrollbar when
1677 calculating the horizontal scrollbar's maximum.
1679 2006-12-19 Andreia Gaita <avidigal@novell.org>
1681 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
1682 check for keywords in alternate casing, close bug #80049.
1684 2006-12-19 Chris Toshok <toshok@ximian.com>
1686 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
1687 methods (which all do nothing).
1689 * IDropTarget.cs: add the 4 missing methods.
1691 2006-12-19 Chris Toshok <toshok@ximian.com>
1693 * TableLayoutRowStyleCollection.cs: corcompare work.
1695 * TableLayoutSettings.cs: same.
1697 * TableLayoutStyle.cs: same.
1699 * TableLayoutColumnStyleCollection.cs: same.
1701 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
1703 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
1704 TableLayoutPanel I've had in my local tree for way too long.
1706 2006-12-19 Miguel de Icaza <miguel@novell.com>
1708 * TableLayoutSettings.cs: Finish the public API (still needs all
1709 the logic to update on changes).
1711 * TableLayoutPanelCellPosition.cs: new file.
1713 * TableLayoutRowStyleCollection.cs,
1714 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
1715 TableLayoutSettings.cs: Track the final 2.0 table api.
1717 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1719 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
1720 and Image List 2.0 members for ColummnHeader.
1721 * ListView.cs: Add key-related 2.0 methods for
1722 ColumnHeaderCollection.
1724 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
1726 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
1727 ArgumentNullException if items argument is null. Ignore null item in
1728 arrays. Removed extra tabs.
1730 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
1732 * MonthCalendar.cs: Fixed InvalidCastException.
1734 2006-12-19 Jackson Harper <jackson@ximian.com>
1736 * TextControl.cs: Don't increment the position here.
1737 - When calculating char positions only add in the line break size
1738 for hard line breaks.
1740 2006-12-19 Andreia Gaita <avidigal@novell.org>
1742 * SendKeys.cs: Changed some things to match ms.net behaviour
1743 when parsing shifted capital letters.
1745 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
1746 Add window handle as parameter to SendInput. X11 needs the
1747 window handle, and the handle being passed to it in the keys
1748 queue is the active control handle (which windows needs), not
1751 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
1752 to support SendKeys on X.
1754 * X11Keyboard: Implement helper method to lookup a linux keycode
1755 given the virtual keycode. Added table of keycode-2-virtualkey
1756 values to support this.
1758 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1760 * ListView.cs: Add support for SelectedIndexCollection
1761 and SelectedItemCollection 2.0 methods. Implement support
1763 * ListViewItem.cs: Add support for ListViewSubItemCollection
1764 2.0 methods. Also, fix an incorrect behavior of AddRange method
1765 (it shouldn't call Clear).
1766 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
1768 2006-12-19 Jackson Harper <jackson@ximian.com>
1771 * TextBoxBase.cs: New args for FormatText
1772 * TextControl.cs: Rewrote the main drawing method, this version
1773 feels a little easier to understand and debug to me. Hopefully it
1775 - Fix FormatText to OR in the new formating values. Added
1776 FormatSpecified param, basically this works in the same way as
1777 BoundsSpecified in Control.
1778 - Set the caret properties when the caret is positioned.
1779 - When wrapping text make sure that we calculate the width of the
1781 - when calculating alignments we might have wrapped down to the
1782 next line, so don't search for an individual tag, search for the
1784 - We need to invalidate the selection area when we replace the
1787 2006-12-19 Daniel Nauck <dna@mono-project.de>
1789 * Application.cs: add Restart () 2.0 support
1791 2006-12-18 Everaldo Canuto <everaldo@simios.org>
1793 * MenuItem.cs: Invalidate menu item rectangle after change Enable
1794 property. Fixes #80268.
1796 2006-12-18 Everaldo Canuto <everaldo@simios.org>
1798 * MenuAPI.cs: Dont trigger select event when closes top menu
1801 2006-12-18 Everaldo Canuto <everaldo@simios.org>
1803 * MenuAPI.cs: When you click on menuitem only trigger onselect
1804 event for top menu itens. Fixes #80271.
1806 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
1808 * MdiWindowManager.cs: Make IconicBounds depend on
1809 the bottom of MdiClient, not the top (fixes #80267)
1811 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
1813 * MdiClient.cs: Added missing 2.0 attribute
1815 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1817 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
1818 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
1820 2006-12-18 Everaldo Canuto <everaldo@simios.org>
1822 * MenuAPI.cs: Fix click when menuitem is not popup,
1823 this regression was caused by last commit (#80272).
1825 2006-12-17 Everaldo Canuto <everaldo@simios.org>
1827 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
1828 fire click event or close menu. Fixes #80272.
1830 2006-12-17 Daniel Nauck <dna@mono-project.de>
1832 * ListViewHitTestInfo.cs: add
1834 2006-12-17 Daniel Nauck <dna@mono-project.de>
1836 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
1837 * FlatButtonAppearance.cs: add
1838 * DockingAttribute.cs: add
1840 2006-12-17 Chris Toshok <toshok@ximian.com>
1842 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
1843 and rebind our columns when it does - this way, if you make
1844 changes to the DataTable (or set the Table attribute on a DataView
1845 after setting it as the DataGrid's DataSource, the changes are
1846 made visible.) Fixes bug #80107.
1848 2006-12-17 Daniel Nauck <dna@mono-project.de>
1850 * ListViewGroup.cs: add internal Location property for layouting.
1851 * Theme.cs: add abstract ListViewGroupHeight function.
1852 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
1854 2006-12-16 Andreia Gaita <avidigal@novell.com>
1856 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
1857 Added reset of selected index to 0 when adding first tab page.
1860 * NumericUpDown.cs: Fix NET_2_0 check
1862 2006-12-16 Daniel Nauck <dna@mono-project.de>
1864 * ListViewGroup.cs: fixed DefaultValueAttribute value
1866 2006-12-16 Daniel Nauck <dna@mono-project.de>
1868 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
1870 2006-12-15 Miguel de Icaza <miguel@novell.com>
1872 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
1873 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
1874 ScrollableControl.cs: Add a handful of methods that are
1877 2006-12-15 Chris Toshok <toshok@ximian.com>
1879 * XplatUIWin32.cs: initial implementation of the Reversible
1880 drawing functions. there are some problems. DrawReversibleFrame
1881 doesn't seem to work at all for Dashed FrameStyle, and in the
1882 Thick case there are drawing errors at the corners (we probably
1883 need to bind Rectangle instead of doing moveto/lineto's.)
1885 2006-12-16 Andreia Gaita <avidigal@novell.com>
1887 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
1888 to send blocks of key messages. Send accumulates keys to send with Flush,
1889 while SendWait sends all keys immediately.
1891 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1892 XplatUIX11.cs, XplatUIX11-new.cs:
1893 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
1895 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
1897 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
1898 testing for ms.net on this class is very tricky, as the tests run too fast
1899 to allow the hook to release, essentially freezing the keyboard and the
1900 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
1903 2006-12-16 Daniel Nauck <dna@mono-project.de>
1905 * Padding.cs: fixed serialization compability to MS ("_var" field names),
1906 added missing attributes.
1908 2006-12-15 Daniel Nauck <dna@mono-project.de>
1910 * ListViewGroup.cs: Added missing attributes.
1911 * ListViewGroupCollection.cs: Added missing attributes.
1913 2006-12-15 Daniel Nauck <dna@mono-project.de>
1915 * ListViewItem.cs: fixed ListViewSubItem text property.
1917 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1919 * Control.cs: Added missing 2.0 attributes
1921 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1923 * MdiClient.cs: Added missing 2.0 attribute.
1924 * MonthCalendar.cs: Added some missing 2.0 attributes
1927 2006-12-15 Daniel Nauck <dna@mono-project.de>
1929 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
1931 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
1933 * MainMenu.cs: Add the new 2.0 constructor to help out people
1934 using the MainMenu in VS2005.
1936 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1938 * MdiChildContext.cs: Removed it, no longer used.
1939 * MdiClient.cs: Added missing 2.0 attributes.
1941 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1943 * InternalWindowManager.cs: Fix a NullRef with previous
1944 changes for toolwindows.
1946 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1949 - Added AfterTopMostControl to allow for certain controls
1950 to always stay on top when normal controls are brought to
1954 - (DrawInversibleRectangle): Get window rectangle from Win32
1955 in stead of from control, since Win32 doesn't calculate
1956 screen coords correctly from control's Location if it
1957 have docked siblings.
1959 * MdiWindowManager.cs:
1960 - Correct the control menu popup location when clicked on
1961 the maximized form icon. (fixes #80223.1)
1962 - Don't show moving rectangle if mouse hasn't moved from
1963 the original clicked point.
1964 - Removed FormGotFocus handler (not used).
1965 - Calculate the control buttons location from the main
1966 window's size and not client size (fixes #79770).
1967 - Form is now closed when the form icon is double-clicked
1969 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
1971 * InternalWindowManager.cs:
1972 - Moved some MDI-only methods to MdiWindowManager.
1973 - Removed unused properties and methods.
1974 - Unified method naming for methods handling wm messages.
1975 - Moved all message handling to seperate methods for
1978 * ThemeWin32Classic.cs:
1979 - DrawManagedWindowDecorations now draws the title bar
1980 with a gradient brush.
1981 - Add a CPDrawButtonInternal that allows us to specify
1982 light, normal and dark colors for the buttons (control
1983 buttons for MDI children were drawn with the same light
1984 color as the background, therefore loosing the 3D effect).
1987 - Add a CapturedControl property that is used to
1988 determine the control to resize (defaults to parent).
1989 Needed for MdiClient, since its SizeGrip's parent is
1990 MdiClient, but the control to resize is the main form.
1993 - Set SizeGrip's CapturedControl to the main form in order
1994 to resize the main form and not the MdiClient.
1995 - Override AfterTopMostControl to leave the scrollbars
1998 2006-12-15 Daniel Nauck <dna@mono-project.de>
2000 * ListView.cs: fixed ListViewItemCollection AddRange and
2001 implemented ListViewItemCollection AddRange 2.0 support.
2003 2006-12-15 Daniel Nauck <dna@mono-project.de>
2005 * ListViewGroup.cs: Add.
2006 * ListViewGroupCollection.cs: Add
2007 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
2008 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
2009 stub for ImageKey 2.0 support.
2011 2006-12-14 Mike Kestner <mkestner@novell.com>
2013 * ListView.cs: add text padding to the autocalculation for columns
2014 of width -2. Fixes #80207.
2016 2006-12-14 Mike Kestner <mkestner@novell.com>
2018 * ListView.cs: add some index guarding for partial row navigation
2019 logic. Fixes #80250.
2021 2006-12-14 Mike Kestner <mkestner@novell.com>
2023 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
2024 are added or inserted to the collection. Fixes #81099.
2026 2006-12-13 Everaldo Canuto <everaldo@simios.org>
2028 * MenuAPI.cs: Closes menu when right click out side of popup
2029 it fix problem in ContextMenu and MainMenu. Fixes #80252.
2031 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2033 * ListViewItem.cs: Fix dumb error.
2035 * ListView.cs: Add Find and ContainsKey methods in
2036 ListViewItemCollection, and also return true for IsReadOnly
2037 and IsFixedSize (changes for 2.0).
2039 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
2041 * Control.cs: Allow Region to be set to null.
2043 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2045 * MdiWindowManager.cs: Remove unused (commented out) code.
2046 * Form.cs: When the MdiChild is maximized, the form needs
2047 WM_NCMOUSELEAVE, so request it.
2048 * InternalWindowManager.cs:
2049 - Added tooltips to control buttons.
2050 - Removed duplicated control button handling code.
2051 - Removed unused (commented out) code.
2053 2006-12-12 Everaldo Canuto <everaldo@simios.org>
2055 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
2056 was used because we must set cursor without trigger ChangeCursor event
2057 and without change Cursor control property. Fixes #79963.
2059 2006-12-12 Andreia Gaita <avidigal@novell.com>
2061 * Control.cs: Check if Region setter value is null, and ignore
2063 2006-12-12 Jackson Harper <jackson@ximian.com>
2065 * TextControl.cs: We were almost always drawing one more line then
2066 needed, since the GetLineByPixel will return the last line found
2067 at that pixel. In most cases though, we were invalidating up to
2068 the junction between two lines.
2069 - Improve debug code.
2071 2006-12-12 Chris Toshok <toshok@ximian.com>
2073 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
2074 and FillReversibleRectangle.
2076 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
2077 and FillReversibleRectangle.
2079 * XplatUIWin32.cs: add stubs which do nothing for
2080 DrawReversibleFrame, DrawReversibleLine, and
2081 FillReversibleRectangle.
2083 * XplatUIOSX.cs: add stubs which raise NIE for
2084 DrawReversibleFrame, DrawReversibleLine, and
2085 FillReversibleRectangle.
2087 * XplatUIX11.cs: add working implementation for
2088 DrawReversibleFrame, DrawReversibleLine, and
2089 FillReversibleRectangle.
2091 * ControlPaint.cs: implement DrawReversibleFrame,
2092 DrawReversibleLine, and FillReversibleRectangle, by calling into
2093 the appropriate XplatUI method.
2095 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
2097 * Form.cs: Make MdiClient have the focus even if it's
2098 not selectable, since it should receive WM_KEY* and WM_MOUSE
2099 messages. Fixes #79907.
2101 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
2103 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
2104 queried after the window is created.
2106 * XplatUIX11.cs: Added SendParentNotify to implement
2107 WM_PARENTNOTIFY logic. Fixes #79965.
2109 * Control.cs: Added MakeParam.
2111 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
2113 * MdiClient.cs: Resume Layout before setting window
2114 states (fixes #80201).
2116 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
2118 * MenuAPI.cs: Deselect a menu item after performing
2119 the click (fixes #80197).
2121 2006-12-11 Jackson Harper <jackson@ximian.com>
2123 * TextBoxBase.cs: We need to cap this value, since Maximum -
2124 ViewPortHeight can be less than zero.
2125 - Only do selection with the left mouse button.
2126 * TextBox.cs: Don't tell the world that we have a context menu.
2127 * Control.cs: New method so that we can control whether or not the
2128 context menu is visible outside MWF.
2130 2006-12-11 Everaldo Canuto <everaldo@simios.org>
2132 * ToolBarButton.cs: Fix text positon.
2134 2006-12-11 Miguel de Icaza <miguel@novell.com>
2136 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
2138 * Control.cs (DoubleBuffered): Add implementation.
2140 * Application.cs (OpenForms): Add.
2142 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
2144 * Form.cs: Use opacity instead of Opactiy to determine if we need
2145 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
2147 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
2149 * Control.cs: Fix NRE if Control.Site was set to null.
2151 2006-12-11 Chris Toshok <toshok@ximian.com>
2153 * Control.cs: ControlCollection.Remove should return if the arg is
2154 null, and ControlCollection.SetChildIndex should raise a ANE.
2156 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
2158 * Control.cs: Verify value set for Dock property. Code formatting
2161 2006-12-11 Jackson Harper <jackson@ximian.com>
2163 * TextControl.cs: Draw the caret and the selection when a flag is
2165 * TextBoxBase.cs: We want to draw the caret and the selection for
2166 TextBox but not for TextBoxBase.
2167 - If the window is resized and scrolling is no longer needed (the
2168 whole doc is visible) set the scroll position to zero.
2169 - The default SelectWord (the one TextBox uses) should move the
2170 caret to the end of the word.
2171 - SelectAll moves the caret to the end of the selection.
2172 * TextBox.cs: We don't selectall on focus, we just do it when the
2175 2006-12-11 Mike Kestner <mkestner@novell.com>
2177 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
2179 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2181 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
2183 * ListViewItem.cs: Add Name 2.0 property.
2185 2006-12-11 Andreia Gaita <avidigal@novell.com>
2187 * TabControl.cs: Set visibility on selected or default tab
2188 when tabcontrol handle is created, so that it's contents
2189 actually show up (duh). Fixes #80193
2190 Don't redraw the control if there is no handle created, as
2191 the selected index might be completely invalid. Added some tests
2194 2006-12-11 Everaldo Canuto <everaldo@simios.org>
2196 * ToolBar.cs: Uses maximun width and height of all buttons as
2197 button rectangle when ButtonSize specified, it looks strange but
2198 is what happens in Win32. Fixes #80189.
2200 2006-12-11 Jackson Harper <jackson@ximian.com>
2202 * TextControl.cs: Need to track undo levels ourself, since
2203 compound actions will mess them up.
2205 2006-12-10 Andreia Gaita <avidigal@novell.com>
2207 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
2208 SelectedIndex value is changed (even if it's not valid).
2209 Reset SelectedIndex to 0 when the handle is created and if
2210 the current index is invalid.
2211 Fixes SelectdeIndex unit tests and #80128
2213 2006-12-08 Chris Toshok <toshok@ximian.com>
2215 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
2216 calls EndEdit, it needs to be called before we set current_cell to
2217 its new value. Otherwise, we end up committing the value in the
2218 textbox to the new cell as well. Fixes bug #80160.
2220 2006-12-08 Chris Toshok <toshok@ximian.com>
2222 * Form.cs (set_CancelButton): if the button's DialogResult is
2223 None, set it to Cancel. Fixes bug 80180.
2225 2006-12-08 Jackson Harper <jackson@ximian.com>
2227 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
2228 to watch ourselves when setting the canvas size and setting the
2231 2006-12-08 Chris Toshok <toshok@ximian.com>
2233 * DataGrid.cs: comment out the two MakeTransparent calls for the
2234 time being so people using trunk (and not 1.2.2) on windows can
2235 actually use the datagrid. This deals with bug #80151.
2237 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
2239 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
2240 Graphics.DrawImage (image, int, int, int, int) overload instead
2241 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
2242 the dpi difference and was blurring images it drew.
2245 2006-12-08 Chris Toshok <toshok@ximian.com>
2247 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
2248 rowcnt is 0 (such as with an empty datasource), and make sure we
2249 initialize not_usedarea.Y to cells.Y, so we don't draw over the
2250 other areas (caption, parent row, etc, etc). Fixes bug #80095.
2252 2006-12-08 Chris Toshok <toshok@ximian.com>
2254 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
2257 2006-12-08 Chris Toshok <toshok@ximian.com>
2259 [ Fixes bug #80167 ]
2261 * ThemeWin32Classic.cs: don't draw the image if the button's flat
2262 style is FlatStyle.System.
2264 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
2265 ButtonBase.flat_style private, and switch uses of it to the public
2268 2006-12-08 Chris Toshok <toshok@ximian.com>
2270 [ Fixes bug #80121 ]
2272 * ThemeWin32Classic.cs: center the caption text in the datagrid
2275 * DataGrid.cs: lessen the amount we add to the caption height from
2276 6 to 2. 6 was making it huge.
2278 2006-12-08 Andreia Gaita <avidigal@novell.com>
2280 * UpDownBase: Handle MouseWheel call directly instead of capturing
2281 the inner textbox's OnMouseWheel. Fixes #80166
2283 2006-12-08 Jackson Harper <jackson@ximian.com>
2285 * TextControl.cs: We need to invalidate the textbox when we empty
2286 it (how had this not been discovered before?)
2288 2006-12-08 Jackson Harper <jackson@ximian.com>
2290 * TextBoxBase.cs: Reworked the mouse down code so I could get it
2291 to behave like MS, we now ignore the eventargs.Click and just
2292 track state ourself, which we were already doing anyways.
2293 - Constrain the double click handler to the double click size.
2295 2006-12-08 Chris Toshok <toshok@ximian.com>
2297 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
2298 direction if that scrollbar isn't shown. fixes bug #80158.
2300 2006-12-08 Andreia Gaita <avidigal@novell.com>
2302 * NumericUpDown.cs: Update value on getter. Fixes #79950
2304 2006-12-08 Chris Toshok <toshok@ximian.com>
2306 * MenuItem.cs: add back in the event cloning code. I didn't know
2307 how to do it in the face of the EventHandlerList work i'd done
2308 last week. Fixes bug #80183.
2310 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
2312 * Control.cs: Add an invalidate to the BackgroundImage setter.
2315 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
2317 * ToolStrip*: Add some small properties reported by MoMA, fix event
2318 firing and default properties based off of unit tests, and add some
2319 attributes based off of the class status page.
2321 2006-12-07 Jackson Harper <jackson@ximian.com>
2323 * TextBoxBase.cs: Take HideSelection into account when determining
2324 whether or not to show the selection.
2325 * RichTextBox.cs: After inserting the RTF into the document move
2326 the cursor to the beginning of the document.
2328 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
2330 * Control.cs: Remove static ArrayList "controls" which maintained
2331 a reference to every control created.
2332 * Application.cs: Create a static FormCollection to maintain a reference
2333 to every form created. Use it in places that formerly enumerated through
2334 the controls one looking for forms.
2335 * Form.cs: Add and remove self from above FormCollection.
2337 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
2339 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
2340 not libgdk (though it makes me wonder why I didn't have any
2343 2006-12-07 Chris Toshok <toshok@ximian.com>
2345 [ you had to know this was coming after that last commit...]
2347 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
2348 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
2349 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
2352 2006-12-07 Chris Toshok <toshok@ximian.com>
2354 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
2355 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
2356 all the behavior we need for double buffering.
2358 * XplatUIDriver.cs: implement the 3 double buffer methods using a
2359 client side Bitmap, just like the old Control-based double buffer
2360 code did. The methods are virtual, so each XplatUI driver
2361 subclass can replace the implementation to use a faster, platform
2364 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
2365 double buffer code, and clean things up a bit in the process.
2367 2006-12-06 Chris Toshok <toshok@ximian.com>
2369 * Control.cs: reindent WndProc.
2371 2006-12-06 Chris Toshok <toshok@ximian.com>
2373 [ I wanna be like BenM when I grow up ]
2375 * Hwnd.cs: create a single static Graphics object on the static
2376 Bitmap we create. use this for our text measurements.
2378 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
2379 This was causing us to allocate a backbuffer for every control,
2380 even when it wasn't flagged as double buffered. Instead use the
2381 single graphics instance. This might have implications for
2382 multithreaded applications. If we run into problems we can switch
2383 to creating 1 Graphics per control, on the static Hwnd bitmap.
2385 this change nets us a 7M savings in private dirty mappings when
2386 running FormsTest.exe.
2388 2006-12-06 Chris Toshok <toshok@ximian.com>
2390 * ListView.cs: the BackgroundImage override is just to set
2391 attributes. chain up to base.BackgroundImage.
2393 * RichTextBox.cs: same.
2395 * ToolBar.cs: same, but we need to also redraw the toolbar when it
2396 changes, so instead a handler for BackgroundImageChanged.
2398 * Control.cs: make background_image private.
2400 2006-12-06 Chris Toshok <toshok@ximian.com>
2402 * ScrollBar.cs: change the assignment of cursor to Cursor. not
2403 sure we even need this assignment, but roll with it for now.
2405 * Control.cs: make the cursor field private.
2407 2006-12-06 Chris Toshok <toshok@ximian.com>
2409 * Form.cs: we don't need to explicitly set ImeMode to
2410 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
2411 behavior in the face of ImeMode.Inherit.
2413 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
2414 change the ctor's assignment to use ImeMode instead of ime_mode.
2416 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
2417 ImeModeInherit. Only check for the parent's imemode (and return
2418 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
2419 This fixes the button unit test, which sets both ImeMode and
2420 DefaultImeMode to ImeMode.Disable.
2422 also make the ime_mode field private.
2424 2006-12-06 Chris Toshok <toshok@ximian.com>
2426 * Control.cs: make control_style private.
2428 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
2429 setting the styles to true, then setting them to false instead of
2430 reverting to their previous values.
2432 also, call SetStyle on the scrollbars instead of using
2433 control_style directly.
2435 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
2437 * FormCollection.cs: Implement. [2.0]
2439 2006-12-06 Chris Toshok <toshok@ximian.com>
2441 * Control.cs: make tab_stop private.
2443 * Label.cs: set TabStop, not tab_stop. reformat some event
2444 add/remove methods to make them more compact.
2446 2006-12-06 Chris Toshok <toshok@ximian.com>
2448 * RadioButton.cs: fix TabStop handling.
2450 2006-12-06 Chris Toshok <toshok@ximian.com>
2452 * TextBox.cs: remove the explicit assignments to has_focus.
2455 * ButtonBase.cs: remove the assignment to has_focus. Control will
2458 2006-12-06 Chris Toshok <toshok@ximian.com>
2460 * ButtonBase.cs: remove all uses of is_enabled from this code.
2461 it's always true when any of the code containing the checks is
2464 2006-12-06 Chris Toshok <toshok@ximian.com>
2466 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
2467 with different semantics (some are present in both 1.1 and 2.0
2468 profiles) so that we match MS's behavior in our unit tests.
2470 2006-12-06 Jackson Harper <jackson@ximian.com>
2472 * TextControl.cs: Make this operation undoable.
2473 * TextBoxBase.cs: Factor the border width into the preferred
2475 - implement Modified as per the spec.
2477 2006-12-06 Chris Toshok <toshok@ximian.com>
2479 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
2481 2006-12-06 Chris Toshok <toshok@ximian.com>
2483 * Control.cs: make right_to_left and context_menu fields private.
2485 2006-12-06 Chris Toshok <toshok@ximian.com>
2487 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
2488 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
2489 Control.child_controls private. switch all uses over to
2492 2006-12-06 Chris Toshok <toshok@ximian.com>
2494 * System.Windows.Forms/GroupBox.cs,
2495 System.Windows.Forms/AccessibleObject.cs,
2496 System.Windows.Forms/ErrorProvider.cs,
2497 System.Windows.Forms/Control.cs,
2498 System.Windows.Forms/UpDownBase.cs,
2499 System.Windows.Forms/ScrollBar.cs,
2500 System.Windows.Forms/DateTimePicker.cs,
2501 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
2502 System.Windows.Forms/ToolTip.cs,
2503 System.Windows.Forms/RadioButton.cs,
2504 System.Windows.Forms/LinkLabel.cs,
2505 System.Windows.Forms/Splitter.cs,
2506 System.Windows.Forms/TextBoxBase.cs,
2507 System.Windows.Forms/ToolStripTextBox.cs,
2508 System.Windows.Forms/ContainerControl.cs,
2509 System.Windows.Forms/ThemeWin32Classic.cs,
2510 System.Windows.Forms/SizeGrip.cs,
2511 System.Windows.Forms/ToolStripDropDown.cs,
2512 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
2513 private. switch all uses over to Control.Parent.
2515 2006-12-06 Chris Toshok <toshok@ximian.com>
2517 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
2518 Control does this before calling emitting these events.
2520 * TabControl.cs: same.
2522 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
2523 Control.client_rect.
2525 * ButtonBase.cs: use the ClientSize property instead of the
2528 * ScrollableControl.cs: same.
2530 * Control.cs: another pass at making properties private. also,
2531 move the initialization of tab_stop to the ctor.
2533 2006-12-05 Andreia Gaita <avidigal@novell.com>
2535 * TabControl.cs: Let the selected index be set freely if the
2536 control handle is not yet created.
2538 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
2540 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
2541 internal until I can rewrite DefaultLayout.
2542 * ToolStrip.cs: Fix build error and some general cleaning.
2543 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
2544 Fix build errors caused by making some of Control's fields private.
2546 2006-12-05 Jackson Harper <jackson@ximian.com>
2548 * TextControl.cs: Redo Insert a little so that it use IndexOf
2549 instead of Split, this prevents it from messing up on things like
2550 \n\n\n. Also more effecient since the split array doesn't need to
2552 * TextBoxBase.cs: AppendText doesnt handle multiline and non
2553 multiline text differently, this is the first of many fixes that
2554 will make multiline/non-multiline the same thing as far as the
2555 TextBoxBase is concerned.
2556 - Don't split the text and insert lines, this can lose some line
2557 endings (like is the last line a soft or hard break). Instead use
2559 - Fix an off by one when combining all the lines in the Text
2561 - Remove separate multiline handling from the Text getter/setter.
2563 2006-12-05 Chris Toshok <toshok@ximian.com>
2565 * ButtonBase.cs: a few changes:
2567 - don't reinitialize internal Control fields in the ctor when they
2568 have the same values as Control sets them.
2570 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
2571 this before calling those methods.
2573 - we don't need to call Refresh for anything. use Invalidate
2576 - OnEnabledChanged doesn't need to redraw at all - Control.cs
2577 calls Refresh in its OnEnabledChanged.
2579 - several of the events we were registered for in the ctor to
2580 redraw ourselves already include calls to Invalidate in the
2581 property setters that raise the events. remove the extra
2584 - reformat a switch statement that was 83274658 columns wide.
2586 2006-12-05 Mike Kestner <mkestner@novell.com>
2588 * ComboBox.cs: fix a unit test regression from a TextBox
2589 SelectionLength return of -1 when there's no selection.
2591 2006-12-05 Chris Toshok <toshok@ximian.com>
2593 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
2594 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
2595 cleaning up some of the internal Control fields being used by
2598 2006-12-05 Mike Kestner <mkestner@novell.com>
2600 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
2601 listbox after AddImplicit calls since it defaults to hidden. Add a
2602 hack to preserve requested heights across DropDownStyle changes.
2604 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
2606 * PropertyGrid.cs: Hide FindFirstItem method from public API.
2608 2006-12-05 Chris Toshok <toshok@ximian.com>
2610 * DataGridView.cs: fix compiler warnings.
2612 * PrintControllerWithStatusDialog.cs: same.
2616 * FolderBrowserDialog.cs: same.
2618 * Splitter.cs: same.
2620 * DataGridViewComboBoxCell.cs: same.
2622 * XplatUIWin32.cs: same.
2624 * PictureBox.cs: same.
2626 * Win32DnD.cs: same.
2628 * PageSetupDialog.cs: same.
2630 * FileDialog.cs: same.
2632 * PrintDialog.cs: same.
2634 * DataGridTextBoxColumn.cs: same.
2636 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
2638 2006-12-05 Chris Toshok <toshok@ximian.com>
2640 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
2641 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
2642 System.ComponentModel.EventHandlerList work.
2644 2006-12-05 Jonathan Chambers <joncham@gmail.com>
2646 * DrawTreeNodeEventArgs.cs: Added.
2648 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2650 * InternalWindowManager.cs: Remove an unused field.
2652 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2654 * InternalWindowManager.cs:
2655 - Save the point where the title bar is clicked.
2657 * MdiWindowManager.cs:
2658 - Only allow moving of the window as long as the
2659 clicked point on the title bar does not get out of
2660 MdiClient's rectangle. Fixes #79982.
2663 - Added Horizontal/VerticalScrollbarVisible.
2664 - Simplified the scrollbar sizing algorithm.
2665 - Cache the difference in scrolled value in
2666 H/VBarValueChanged and move the calculation out
2669 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2671 * Control.cs: Make the Console.WriteLine in WndProc
2674 2006-12-05 Chris Toshok <toshok@ximian.com>
2676 * ToolStripManager.cs, ToolStripButton.cs,
2677 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
2678 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
2679 ToolStripSplitButton.cs, ToolStripSeparator.cs,
2680 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
2681 ToolStripProgressBar.cs, ToolStripContainer.cs,
2682 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
2683 to using System.ComponentModel.EventHandlerList.
2685 2006-12-04 Chris Toshok <toshok@ximian.com>
2687 * LinkLabel.cs: fix up compiler warnings.
2689 * TableLayoutSettings.cs: same.
2691 * TreeView.cs: same.
2695 * TabControl.cs: same.
2697 * RichTextBox.cs: same.
2699 * ListViewItem.cs: same.
2701 * PropertyGrid.cs: same.
2703 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
2707 * TextRenderer.cs: fix up compiler warnings.
2711 * Form.cs: corcompare fixes.
2713 * PictureBox.cs: fix up compiler warnings.
2715 * ImageListStreamer.cs: same.
2717 * TrackBar.cs: corcompare fix.
2719 * Control.cs: fix up compiler warnings.
2721 * SplitterPanel.cs: same.
2723 * NumericTextBox.cs: same.
2725 * ImageList.cs: same.
2727 * StatusStrip.cs: same.
2729 * ProgressBar.cs: corcompare fix.
2731 * ToolStripButton.cs: fix up compiler warnings.
2733 * ToolStripStatusLabel.cs: same.
2735 * ToolStripSplitButton.cs: same.
2737 * ToolStripSeparator.cs: same.
2739 * ToolStripProgressBar.cs: same.
2741 * ToolStripDropDownMenu.cs: same
2743 * ToolStripDropDown.cs: same.
2745 * ToolStripDropDownButton.cs: same.
2747 * ToolStrip.cs: same.
2749 * ToolStripControlHost.cs: same.
2751 * ToolStripContentPanel.cs: same.
2753 * ToolStripDropDown.cs: same.
2755 * ToolStripContainer.cs: same.
2757 * ToolStripPanel.cs: same, and add "new" where we need it to work
2758 with the new ArrangedElementCollection.
2760 * ToolStripItemCollection.cs: add "new" where we need it to work
2761 with the new ArrangedElementCollection.
2763 2006-12-04 Andreia Gaita <avidigal@novell.com>
2765 * TabControl.cs: Fix default tab selection to after TabControl
2766 gets focus and not before. Fixes #80128
2768 2006-12-04 Chris Toshok <toshok@ximian.com>
2770 * DataGridTableStyle.cs: remove the gross calling of
2771 datagrid.Refresh from here. It's a broken idea and it doesn't
2774 * DataGrid.cs: instead, just register/unregister from the
2775 DataGridTableStyle events in CurrentTableStyle. we play it
2776 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
2777 even though some would most likely not require it. Fixes bug
2778 #80115 (and one portion of #80117 as a side effect).
2780 2006-12-04 Chris Toshok <toshok@ximian.com>
2782 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
2783 so the textbox (if any) goes away. Fixes bug #80117.
2785 2006-12-04 Chris Toshok <toshok@ximian.com>
2787 * DataGridColumnStyle.cs: set the column's readonly property
2788 initially based on the property descriptor's IsReadOnly. Fixes
2791 2006-12-04 Chris Toshok <toshok@ximian.com>
2793 * ComboBox.cs: wrap the dropdown style changing work in
2794 SuspendLayout/ResumeLayout. Fixes bug #79968.
2796 2006-12-04 Jackson Harper <jackson@ximian.com>
2798 * TextBoxBase.cs: Fix off by one, since these are one-based.
2799 * TextBox.cs: Select all the text when we get focus. The TextBox
2800 does this but the RTB does not.
2802 2006-12-04 Chris Toshok <toshok@ximian.com>
2804 * DataGridTextBoxColumn.cs: remove some spew.
2806 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
2807 but some part of me is saying "it shouldn't be here.." At any
2808 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
2811 2006-12-04 Chris Toshok <toshok@ximian.com>
2813 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
2814 to reassign the propertydescriptor.
2816 2006-12-04 Jackson Harper <jackson@ximian.com>
2819 * TextControl.cs: Remove some unused variables. Maybe this will
2820 patch things up between mike and I.
2821 - don't split lines less then one char wide, if the viewport is
2822 that small text won't be visible anyways.
2824 2006-12-04 Jackson Harper <jackson@ximian.com>
2826 * TextBoxBase.cs: Default selection length is -1, need to do some
2827 more testing on windows to see when this is used for the property.
2828 - Redid the Lines [] property to that we properly remove soft line
2830 - added support for preserving carriage returns
2831 - CanUndo is not a variable like 'is undo enabled' it just returns
2832 true if there is undo operations available.
2833 - AppendText doesn't need to grab the last tag itself anymore,
2834 this happens automatically when we move the cursor.
2835 * TextControl.cs: Add CompoundActions to the undo class. This
2836 allows combining the other operations into one big option. ie a
2837 paste will combine { delete old, insert new, move cursor }
2838 - Add InsertString undo operation
2839 - New method for deleting multiline text
2840 - Add carriage returns to lines. So we can preserve carriage
2841 returns when text is 'roundtripped'
2843 2006-12-04 Chris Toshok <toshok@ximian.com>
2845 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
2846 minimum 0. Fixes the scrollbar exception in bug #80136.
2848 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
2851 * MdiWindowManager: Removed unused fields and methods.
2853 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
2855 * StatusBar.cs: Update all panels when a AutoSize=Contents
2856 panel needs updating.
2858 * StatusBarPanel.cs: Remove twidth and only use initialize.
2861 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
2863 * Form.cs: When a form's MdiParent is set add it directly
2864 on top of the z-order in stead of relying on MdiClient's
2865 ActivateChild to do it. Fixes #80135.
2868 - Remove original_order, mdi_child_list is already doing
2870 - Create mdi_child_list on construction in
2871 stead of first use (avoids a few null checks).
2873 * MenuItem.cs: Use an already existing list of mdi children
2874 to get the correct order of children and remove the other
2877 2006-12-04 Chris Toshok <toshok@ximian.com>
2879 * PropertyGridView.cs: cached_splitter_location is only used in
2882 * PropertyGrid.cs: implement the ComComponentNameChanged event
2883 using Events, hoping that would fix the warning. Looks like a
2884 compiler bug instead (#80144).
2886 * PropertyManager.cs: remove unused method.
2888 2006-11-04 Everaldo Canuto <everaldo@simios.org>
2890 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
2891 include parentesis to fix expression evaluation. Fixes #79634.
2893 2006-11-02 Everaldo Canuto <everaldo@simios.org>
2896 - Changes to fix behavior in Menu control, some reported in #80097
2897 and other detected during behavior refactory like a select event
2899 - Remove unneded "if's" conditions.
2900 - Created an internal to flag when popup is active in control, we need
2901 it because in .NET you can have menu active but without popup active
2902 when you active menu using popup without visible items.
2903 - Mimic win32 behavior for Select and Popup events.
2904 - Dont open popup menu when you dont have visible subitems.
2905 - Do nothing when click on disabled menu item.
2906 - Some small changes to follow the coding style guidelines.
2907 - Unselect menu only when another control gives focus. Fixes #80097.
2908 - Remove unused code.
2910 * MenuItem.cs: internal VisibleItems method to check if menu
2911 theres visible subitems, it will be usefull to fix some
2912 behavior in Menu control.
2914 2006-11-01 Everaldo Canuto <everaldo@simios.org>
2916 * Timer.cs: Tag property for 2.0 profile.
2918 2006-12-01 Chris Toshok <toshok@ximian.com>
2920 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
2922 * Win32DnD.cs: comment out some unused fields.
2924 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
2925 some unused properties/methods.
2927 * XplatUIX11.cs: fix MousePosition so we override the base class's
2928 property instead of conflicting with it.
2930 * PictureBox.cs: comment out some unused fields
2932 * OSXStructs.cs: make some struct fields public.
2934 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
2935 MousePosition so we override the base class's property instead of
2936 conflicting with it.
2938 * X11Dnd.cs: comment out some unused fields
2940 * X11DesktopColors.cs: fix some struct field visibility to quiet
2943 * X11Dnd.cs: remove some debug code.
2945 * ThemeClearlooks.cs: comment out unused field.
2947 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
2949 * ThemeGtk.cs: comment out some unused pinvokes.
2951 * Timer.cs: remove some unused fields.
2953 * ThemeClearlooks.cs: comment out unused field.
2955 * UpDownBase.cs: comment out unused field.
2957 * DataObject.cs: comment out unused field.
2959 * DataGridBoolColumn.cs: reomve unused field.
2961 * DataGrid.cs: remove unused field.
2963 * Cursor.cs: remove old ToBitmap code.
2965 * ControlPaint.cs: remove unused method.
2967 * ScrollBar.cs: remove unused fields.
2969 * ComboBox.cs: remove unused field, and chain up to
2970 AccessibleObject ctor.
2972 * ListBox.cs: remove unused field.
2974 * ButtonBase.cs: wrap a couple fields in NET_2_0.
2976 * GridEntry.cs: remove unused fields.
2978 * Binding.cs: remove unused fields.
2980 * AxHost.cs: remove unused method.
2982 * ContainerControl.cs: remove unused field.
2984 * ScrollableControl.cs: remove unused fields.
2986 2006-12-01 Chris Toshok <toshok@ximian.com>
2988 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
2989 the Where/WhereString stuff. it's easy enough to CWL
2990 Environment.StackTrace.
2992 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
2993 unused private fields.
2995 2006-12-01 Jackson Harper <jackson@ximian.com>
2997 * TextControl.cs: Do not update the view while inserting multiline
2998 text. If we update the view we might wrap lines, before entering
2999 the new lines, which causes the new line insertion calculations to
3001 - Remove an old TODO
3002 - Make debug output a little nicer
3004 2006-12-01 Chris Toshok <toshok@ximian.com>
3006 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
3008 2006-12-01 Chris Toshok <toshok@ximian.com>
3010 [ fix the majority of the CS0108 warnings we've been suppressing ]
3012 * TreeView.cs: mark BackgroundImageChanged as 'new'.
3014 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
3015 to "LayoutToolBar" to quiet mcs.
3017 * TabControl.cs: mark our ControlCollection class as 'new'.
3019 * TextBoxBase.cs: mark some events as 'new'.
3021 * Splitter.cs: TabStop is 'new'.
3023 * ControlBindingsCollection.cs: mark a few methods as new since
3024 they change the visibility from protected to public.
3026 * RadioButton.cs: DoubleClick -> base class, and remove unused
3029 * MonthCalendar.cs: ImeMode property -> base class, and mark many
3032 * NumericUpDown.cs: TextChanged -> base class.
3034 * CheckedListBox.cs: mark our ObjectCollection class as new to
3037 * FolderBrowserDialog.cs: make HelpRequest event new and have it
3038 muck with the base class.
3040 * StatusBar.cs: fix some mcs warnings about Update being the same
3041 name as a base class method.
3043 * RichTextBox.cs: mark some events as new, and make them do things
3044 to the base class impl.
3046 * UserControl.cs: mark TextChanged as new, and have it manipulate
3049 * UpDownBase.cs: mark some things new.
3051 * CheckBox.cs: mark DoubleClick "new", and add some text about
3052 what we need to look at.
3054 * Panel.cs: make the events "new", and manipulate the base
3055 version. these are just here for attributes.
3057 * AccessibleObject.cs: make owner private.
3059 * Control.cs: deal with AccessibleObject.owner being private.
3060 cache our own copy if we need it.
3062 * Button.cs: add "new" to the DoubleClickEvent.
3064 * ListBox.cs: no need to track our own has_focus here. let
3065 Control.has_focus do it for us. Also some other work to clear up
3066 warnings about not overriding base class methods of the same name.
3068 * ComboBox.cs: clear up some warnings about not override base
3069 class methods of the same name.
3071 2006-12-01 Chris Toshok <toshok@ximian.com>
3073 * Form.cs: flag a few things as "new" to quiet some of the mcs
3078 * PrintPreviewDialog.cs: same.
3080 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
3081 now DGV isn't so horrible on the class status page. also, move
3082 all events to using System.ComponentModel.EventHandlerList. my
3085 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3087 * MdiWindowManager.cs:
3088 - Set form to active mdi child if shown,
3089 and update the active mdi child to the next
3090 remaining child in the z-order if the form is hidden.
3093 - Track if the form has been visible and if its
3094 visibility is beeing changed, so that the MdiClient
3095 can properly decide the ActiveMdiChild. The MdiClient
3096 cannot track this since the form can change visibility
3097 before MdiClient is created.
3100 - Don't activate anything of the parent form is changing
3102 - Rework ActiveMdiChild to only return visible mdi
3103 children and take into account several other corner
3106 2006-12-01 Chris Toshok <toshok@ximian.com>
3108 * IBindableComponent.cs: new 2.0 interface.
3110 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
3112 * DataGrid.cs: Font for caption area is bold by default.
3114 2006-12-01 Everaldo Canuto <everaldo@simios.org>
3116 * Menu.cs: Tag property for 2.0.
3118 2006-11-01 Everaldo Canuto <everaldo@simios.org>
3120 * ThemeWin32Classic.cs: Adjust menu separator drawing.
3122 2006-12-01 Chris Toshok <toshok@ximian.com>
3124 * TreeView.cs: doh, the Begin* events should be
3125 TreeViewCancelEventHandler.
3127 2006-12-01 Chris Toshok <toshok@ximian.com>
3129 * Form.cs: Form.ControlCollection already stores off the
3130 form_owner field. don't access the base class's internal "owner"
3133 * Control.cs: make all the fields in Control.ControlCollection
3134 private. there's no need for any internal fields here.
3136 2006-12-01 Chris Toshok <toshok@ximian.com>
3138 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
3139 OnHandleCreated. Fixes bug #80109.
3141 2006-12-01 Chris Toshok <toshok@ximian.com>
3143 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
3144 SplitContainer.cs, Control.cs, StatusStrip.cs,
3145 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
3146 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
3147 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
3148 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
3149 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
3150 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
3151 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
3152 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
3153 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
3154 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
3156 do most of the work to convert our code over to use
3157 System.ComponentModel.Component.Events for
3158 adding/removing/dispatching events.
3161 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
3163 * DataGridView.cs: Fix an ArgumentNullException reported
3166 2006-11-30 Mike Kestner <mkestner@novell.com>
3168 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
3169 grabbed listbox. Fixes #80036 and #80101.
3171 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
3173 * Message.cs: Changed ToString() to match MS.
3175 2006-11-30 Jackson Harper <jackson@ximian.com>
3177 * TextBoxBase.cs: You can still change the selected text on a read
3179 * TextControl.cs: Lower magic number for wrap calculations. This
3180 lets text get closer to the right (far) edge.
3182 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
3184 * Control.cs: Tweak 2.0 layout properties.
3185 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
3186 * TextRenderer.cs: Add a new overload.
3187 * ToolStrip*: Huge amount of changes and new features.
3189 2006-11-30 Mike Kestner <mkestner@novell.com>
3191 * ComboBox.cs: fixes for LargeChange and Maximum to get the
3192 scroll range correct. Fixes #79994.
3194 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
3196 * MdiWindowManager.cs: Update main form's text when
3197 a form is closed. (fixes #80038)
3199 2006-11-30 Everaldo Canuto <everaldo@simios.org>
3202 - Fix an regression in ButtonSize.
3203 - Get ImeMode default value change to "Disable".
3204 - Get ShowTooltips default value change to true, default value is
3205 "false" but after make a test in .NET we get "true" result as default.
3207 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
3209 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
3211 2006-11-29 Chris Toshok <toshok@ximian.com>
3213 * XplatUIWin32.cs (GetWindowTransparency): check return value of
3214 GetLayeredWindowAttributes. if it's 0, return 1.0, as
3215 SetWindowTransparency hasn't been called.
3217 2006-11-29 Chris Toshok <toshok@ximian.com>
3219 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
3221 (set_AllowTransparency): reorder things a little so that the
3222 WS_EX_LAYERED style is removed properly.
3224 2006-11-29 Chris Toshok <toshok@ximian.com>
3226 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
3228 * Form.cs: only call the XplatUI transparency method (get/set) if
3229 SupportsTransparency says it's supported. Otherwise fallback to
3230 doing nothing (in the set case) or returning the instance field we
3231 cache (in the get case).
3233 * XplatUIStructs.cs: add TransparencySupport flag enum.
3235 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
3236 change to SupportsTransparency.
3238 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
3239 TransparencySupport.None from SupportsTransparency.
3241 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
3242 TransparencySupport.Set from SupportsTransparency.
3244 * XplatUIWin32.cs: implement GetWindowTransparency calling
3245 GetLayeredWindowAttributes, and implement SupportsTransparency by
3246 checking whether or not both
3247 GetWindowTransparency/SetWindowTransparency are available
3248 entrypoints. We need to do this since SetWindowTransparency is
3249 available as of win2k, but GetWindowTransparency requires winxp.
3252 * XplatUI.cs: Add GetWindowTransparency, and change
3253 SupportsTransparency to allow for either/both Get/Set.
3255 2006-11-29 Chris Toshok <toshok@ximian.com>
3257 * DataGrid.cs: keep from going into an infinite loop redrawing a
3258 datagrid that has no datasource. Fixes bug #80033.
3260 2006-11-29 Chris Toshok <toshok@ximian.com>
3262 * MenuItem.cs: fix the NRE when we assign text (and therefore call
3263 Invalidate) before the mainmenu has been assigned to a control.
3265 2006-11-29 Chris Toshok <toshok@ximian.com>
3267 * DataGrid.cs: detect when we should be double the double click
3268 row/column autosize stuff, although that codepath has yet to be
3269 written. part of the work for bug #79891.
3271 2006-11-29 Chris Toshok <toshok@ximian.com>
3273 * Binding.cs (SetControl): fix unit test.
3275 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3277 * PageSetupDialog.cs: Validate the margins and set them in
3279 * NumericTextBox.cs: New class to mimic the behavior of the
3280 textboxes used in the printing dialogs.
3282 2006-11-29 Andreia Gaita <avidigal@novell.com>
3284 * Form.cs: Revert previous change (remove call UpdateBounds
3285 from form constructor), because it messes with the handle creation
3286 order, and that one needs lots and lots of love.
3287 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
3288 for valid printer and throw InvalidPrinterException if document
3289 is set but printer not valid), adding a MonoTODO. Once
3290 handle creation is done properly, we can put this back in.
3292 2006-11-28 Everaldo Canuto <everaldo@simios.org>
3294 * MenuItem.cs: Create a invalidate method for menu item, to be
3295 calling from set text, it make text changes to imadiate update
3296 on screen. Fixes #80013.
3298 2006-11-28 Everaldo Canuto <everaldo@simios.org>
3300 * ToolBar.cs: Fixes and simplify toolbar button layout, it
3301 fixes bug #80070 and some other problem on toolbar buttons
3304 2006-11-28 Everaldo Canuto <everaldo@simios.org>
3306 * ThemeWin32Classic.cs: Paint toolbar toggle button background
3307 with dotted brush. Fixes #79564
3309 2006-11-28 Andreia Gaita <avidigal@novell.com>
3311 * Form.cs: Removed call to UpdateBounds on Form
3312 constructor, it was causing a call to CreateHandle
3313 before it was supposed to.
3314 * PrintControllerWithStatusDialog: Applied patch
3315 by Chris Toshok to hide controller when there are
3316 no printers available.
3317 PrintDialog.cs: initialize printer settings to
3318 null - correct DefaultValues test #5
3319 * PrintPreviewControl.cs: Move PrintController
3320 initialization to GeneratePreview
3321 * PrintPreviewDialog.cs:
3322 - Remove Preview generation from Document_set(). It is
3324 - Throw InvalidPrinterException on CreateHandle if
3325 a Document is set but there are no printers or
3326 printer is not valid.
3327 * ThemeWin32Classic: don't paint PrintPreviewControl
3328 if there is nothing to paint
3330 2006-11-28 Miguel de Icaza <miguel@novell.com>
3332 * Form.cs: Add another popular method.
3334 * TabPage.cs: ditto.
3336 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3338 * MenuItem.cs: Fixed a warning.
3339 * InternalWindowManager: Fixed a warning.
3341 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3344 - When cloning a menu also clone MdiList and clone the
3345 window menu items properly (as the forms and menuitems
3346 are kept in an internal hashtable, these need updating
3348 - Rewrote the window menu code, menu items are added in the
3349 order the forms were added to their parent, and they are
3350 updated every time the window menu is shown (before the
3351 list was only generated once, in the current order of the
3352 forms, and would never be updated). A checkmark is shown
3353 next to the item corresponding to the active mdi child.
3355 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3357 * XplatUIStructs.cs:
3358 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
3361 - Added TME_NONCLIENT to TMEFlags.
3362 - Handles WM_NCMOUSEMOVE in GetMessage to
3363 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
3366 - Now merges mdi child menu to parent menu when maximized.
3367 - Recalculate NC areas of both mdi child and mdi parent.
3369 on window state and size changes.Fixes #79844 (3).
3370 - Handle WM_NCCALCSIZE to properly calculate borders.
3373 - Add/remove to the mdi containers list of mdi children
3374 in the order they are added.
3375 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
3376 to the maximized mdi child.
3378 * InternalWindowManager.cs:
3379 - Only execute a click on the control buttons on the mouse up,
3380 not on the mouse down. Show the state of the button
3381 (was only showing Normal state, never Pressed state). The
3382 pressed button now follows the mouse (if you click the Close
3383 button and move the mouse over the Maximize button, the
3384 Maximize button will be shown as pressed). Since Win32 does
3385 not generate WM_NCLBUTTONUP if you release the button outside
3386 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
3389 * ThemeWin32Classic.cs:
3390 - Draw a missing border around mdi child forms. Fixes #79844 (2).
3393 - Added a list of forms which contains the order the forms are
3394 added to the mdi parent.
3395 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
3396 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
3397 - If the active form changes set the scrollbars to the top
3398 of the Z order, otherwise the form could hide them.
3399 - Scrollbars are now sized according to ClientSize, not
3400 to Size, and they take into account the other scrollbar
3401 to determine maximum.
3403 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3410 - Added RequestAdditionalWM_NCMessages for windows to
3411 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
3412 Currently only implemented in XplatUIWin32.
3414 2006-11-27 Chris Toshok <toshok@ximian.com>
3416 * Hwnd.cs: only add the hwnd to the windows hash in
3417 set_WholeWindow and set_ClientWindow if whole_window/client_window
3418 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
3420 2006-11-27 Mike Kestner <mkestner@novell.com>
3422 * ComboBox.cs: remove redundant OnDropDown call. It is called
3423 from the ComboListBox.ShowWindow code. Fixes #79969.
3425 2006-11-27 Chris Toshok <toshok@ximian.com>
3427 * Hwnd.cs: remove the setters for ExposePending and
3428 NCExposePending - noone uses them.
3430 2006-11-27 Jackson Harper <jackson@ximian.com>
3432 * TextControl.cs: new param for ReplaceSelection which determines
3433 whether we select the new selection, or set the cursor to the end
3434 of the new selection.
3435 * TextBoxBase.cs: Use new param for ReplaceSelection. When
3436 pasting, select the new text.
3437 * RichTextBox.cs: Use new param for ReplaceSelection.
3439 2006-11-27 Jackson Harper <jackson@ximian.com>
3441 * TextBoxBase.cs: Set the selection to the caret after the caret
3442 is moved, otherwise they get out of sync.
3444 2006-11-26 Everaldo Canuto <everaldo@simios.org>
3446 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
3449 2006-11-26 Everaldo Canuto <everaldo@simios.org>
3451 * ThemeWin32Classic.cs:
3452 - Fix toolbar drop down arrow position.
3453 - Fix drop down appearance when ToolBar.Appearance is normal,
3456 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
3458 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
3460 * UpDownBase.cs: Same.
3461 * ButtonBase.cs: Same.
3462 * ScrollBar.cs: Same.
3463 * TrackBar.cs: Same.
3464 * PictureBox.cs: Same.
3465 * UserControl.cs: Same.
3467 * ListControl.cs: Same.
3468 * TextBoxBase.cs: Same.
3469 * ListView.cs: Same.
3470 * RichTextBox.cs: Same.
3471 * TreeView.cs: Same.
3473 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
3476 - Text label for where
3477 - Text label comment was not shown
3479 2006-11-23 Everaldo Canuto <everaldo@simios.org>
3481 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
3483 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
3485 * InternalWindowManager.cs:
3486 - Handle WM_PARENTNOTIFY to activate the form
3487 if any child control is clicked.
3488 - The form is only sizable if not minimized.
3490 * MdiWindowManager.cs:
3491 - Save the IconicBounds if the form is moved.
3492 - Rework SetWindowState, now the window bounds
3493 are stored only if the old window state is Normal.
3496 - In SetWindowStates store the old window state if
3497 the window is maximized and restore window state if
3498 the window looses focus.
3499 - Don't handle any scrollbar value changes if
3500 initializing the scroll bars. Fixes #79771.
3501 - Reworked ArrangeIconicWindows. Current algorithm
3502 tests bounds agains all other minimized windows, if
3503 any intersections create new bounds (going left to
3504 right, bottom to top) and then test again. When
3505 successful the bounds are saved and never computed
3506 again. Fixes #79774.
3508 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
3510 * InternalWindowManager.cs: Added HandleTitleBarUp.
3512 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
3514 * NumericUpDown.cs: In .NET 1.1, user entered text is still
3515 hexadecimal in ParseUserEdit.
3518 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
3520 * MdiWindowManager.cs:
3521 - Handle a click on the form's icon to show the
3522 system menu (when maximized). Fixes #79775.
3523 - Change the existing click handler for the form's
3524 icon when not maximized to show on MouseUp.
3527 * Form.cs: In OnResize only layout the mdi child's
3528 parent if it actually has a parent. Might not if
3529 the window is closing.
3532 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
3534 * MdiClient.cs: Ignore active MDI client for text of parent, if
3535 child has no text set.
3537 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
3539 * ToolBar.cs: Fixed ToString to match MS.
3541 2006-11-22 Andreia Gaita <avidigal@novell.com>
3544 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
3545 update inner values on set. Fixes #79966.
3546 - Override OnLostFocus to update value on NET 2. Fixes #79950.
3547 - Fix hexadecimal parsing.
3549 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
3550 parent. Fixes #79957
3552 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
3554 * Control.cs: After calling SetWindowsPos in SetBoundsCore
3555 the actual size has to be queried, since if height /
3556 width is negative Win32 changes it to 0.
3557 Fixes #79999 on Windows.
3559 * XplatUIX11.cs: Set height / width to 0 if negative
3560 in SetWindowPos. Fixes #79999 on Linux.
3562 2006-11-22 Everaldo Canuto <everaldo@simios.org>
3564 * ThemeWin32Classic.cs: Fix text redenring when button is
3567 2006-11-22 Everaldo Canuto <everaldo@simios.org>
3569 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
3570 and later navigate by mouse. Fixes #79528.
3572 2006-11-21 Everaldo Canuto <everaldo@simios.org>
3574 * ToolBar.cs: Set default value for TabStop to false in
3575 constructor, it fixes remaining behavior of bug #79863.
3577 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
3579 * MdiWindowManager.cs:
3580 * InternalWindowManager.cs:
3581 - Moved a few methods specific to Mdi from
3582 InternalWindowManager to MdiWindowManager.
3585 2006-11-21 Chris Toshok <toshok@ximian.com>
3587 * XplatUIOSX.cs: stub out InvalidateNC.
3589 * XplatUIWin32.cs: implement InvalidateNC using the call I found
3590 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
3592 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
3594 * XplatUIDriver.cs: add InvalidateNC abstract method.
3596 * XplatUI.cs: add InvalidateNC.
3598 2006-11-21 Everaldo Canuto <everaldo@simios.org>
3600 * ToolBar.cs: Invalidate complete button area when pressed status
3602 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
3603 * ThemeWin32Classic.cs: Increase vertical and horizontal position
3604 by 1 when button is pressed.
3606 2006-11-20 Everaldo Canuto <everaldo@simios.org>
3608 * ToolButton.cs: Invalidate middle of DropDown button when
3609 ToolBar theres DropDownArrows.
3610 * ThemeWin32Classic.cs: Change position of DropDown arrow and
3611 fix DropDown drawing operations.
3613 2006-11-20 Chris Toshok <toshok@ximian.com>
3615 * NativeWindow.cs: fix the formatting of functions ('{' on the
3616 following line), and enable the thread exception dialog.
3618 * Application.cs: remove the duplicate exception catching from
3621 2006-11-20 Everaldo Canuto <everaldo@simios.org>
3623 * Toolbar.cs: Triggers button click event when click on icon
3624 of dropdown ToolBarButton. Fixes #79912.
3626 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3629 * ThemeWin32Classic.cs:
3630 - Added a property WindowBorderFont to enable themeing
3631 of mdi child windows' Text.
3633 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3635 * InternalWindowManager.cs:
3638 * MdiWindowManager.cs:
3639 - If mdi child is maximized, set mdi parent's
3640 text to "Parent - [Child]". Fixes #79770.
3641 - If there is any maximized mdi child windows, only the active
3642 window (and any new windows) is maximized, the rest are normal.
3643 - On a WindowState change only save mdi child's window bounds
3644 if the old window state was normal. Fixes #79774.
3645 - The scroll bars are now calculated on hopefully all
3646 necessary events. Fixed #79771 / #79844->6 / #79906.
3647 - MdiClient.SizeScrollBars() now takes into account docked
3648 controls in the parent when calculating available space.
3649 - InternalWindowManager now always repaints the entire title
3650 area. Fixes #79844->1/4/5.
3651 - Added RequestNCRecalc on mdi child windowstate changes.
3654 2006-11-20 Mike Kestner <mkestner@novell.com>
3656 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
3657 in the MouseUp handler of the listbox and move the return handling
3658 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
3660 2006-11-20 Everaldo Canuto <everaldo@simios.org>
3662 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
3664 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
3666 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
3667 working in 1.2.x anymore. So, updated.
3669 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
3671 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
3672 NumberGroupSeparator of current culture instead of assuming en-US.
3675 2006-11-17 Mike Kestner <mkestner@novell.com>
3677 * Control.cs: Add the concept of implicit bounds setting so that
3678 dock/undock round trips preserve explicitly set size/locations.
3681 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
3683 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
3684 can't handle those filters. (Fixes bug #79961)
3686 2006-11-17 Chris Toshok <toshok@ximian.com>
3688 [ fixes the exit/crashes associated with #79835. it's clearly
3689 suboptimal though, we need to figure out a better way to solve
3692 * PrintPreviewControl.cs: deal with the new invalid printer
3695 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
3696 and return false (so CommonDialog.ShowDialog doesn't actually show
3699 * PrintDialog.cs: enable/disable the Ok button depending on
3700 whether or not the printer is valid.
3702 * CommonDialog.cs (ShowDialog): only actually show the form if
3703 RunDialog returns true.
3705 2006-11-17 Jackson Harper <jackson@ximian.com>
3707 * TextControl.cs: When soft splitting a line, mark it as a soft
3708 split line. Also carry over the current line break to the next
3711 2006-11-17 Chris Toshok <toshok@ximian.com>
3713 * XplatUIX11.cs: when scrolling a window with an invalid area, we
3714 only want to shift the part of the invalid area that overlaps the
3715 area we're scrolling. we also don't want to clear the invalid
3716 area unless the invalid area was entirely contained within the
3719 2006-11-16 Chris Toshok <toshok@ximian.com>
3721 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
3722 also make sure to free the memory returned by XGetWindowProperty
3725 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
3727 2006-11-16 Chris Toshok <toshok@ximian.com>
3729 * XplatUI.cs: add a new super secret way to get at the totally
3730 unsupported X11 backend.
3732 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
3734 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
3736 2006-11-16 Jackson Harper <jackson@ximian.com>
3738 * TreeView.cs: Allow more explicit setting of top node position
3739 for scrollbars. Slower algo, but more accurate.
3740 - CollapseAll should maintain the current top node.
3741 * TextBoxBase.cs: When positioning the caret, use the line, pos
3742 method, since the x, y method does not grab the correct tag, and
3743 the caret height never gets set correctly. (Maybe I should just do
3744 away with the caret having its own height, and always use the
3745 carets current tag for height).
3747 2006-11-16 Jonathan Pobst <monkey@jpobst.com
3749 [Fixes 79778, 79923]
3751 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
3752 Parent to the FosterParent instead.
3754 2006-11-16 Jackson Harper <jackson@ximian.com>
3756 * TreeView.cs: Need to recalc the topnode when we expand or
3757 collapse. The scrolling methods can't handle this on their own,
3758 since they use differences between the last scroll position, and
3759 those difference get completely messed up since we are expanding
3760 nodes. This problem should probably be fixed in the scrolling
3761 methods, so they can figure out exactly where they are, but this
3762 will slow things down a little.
3763 * ThemeWin32Classic.cs: Special case for groupboxes with empty
3764 strings, makes nunit-gui look a lot nicer.
3766 2006-11-16 Chris Toshok <toshok@ximian.com>
3768 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
3769 the broken multithreaded event handling we have in here. File
3770 this entry under "Why we should move to the new X11 backend".
3772 Any thread can make it into UpdateMessageQueue, which gets events
3773 from the X socket - some of which could belong to hwnds being
3774 managed by a different thread. We can also have multiple threads
3775 in UpdateMessageQueue at the same time, with each one reading from
3776 the X socket. This leads to many problems, with the following
3779 We can't use hwnd.Queue.Enqueue anywhere in here and must use
3782 The MotionNotify compression we do can't work across threads
3783 (without locking the entire queue, perhaps) since we call
3784 hwnd.Queue.Peek, so we just punt and don't compress motion events
3785 unless the owning thread is the one which got the X event.
3787 ConfigureNotify is another fun one, since it modifies the hwnd's
3788 bounds and then enqueues the event. We add a lock to Hwnd which
3789 is held when setting configure_pending to true (and enqueuing the
3792 There is a race wrt the wake socket. we need to make sure that
3793 only 1 thread is waiting on that socket, or else a thread could
3794 sleep waiting for data that never comes. It's difficult (but not
3795 impossible) to make happen, because it seems to require something
3798 1. Thread 1 polls on wake_receive
3800 2. poll returns saying there's data to be read on
3803 3. Thread 2 polls on wake_receive and immediately returns
3804 saying there's data to be read.
3806 4. Thread 2 reads the wakeup byte from wake_receive
3808 5. Thread 1 attempts to read the wakeup byte from
3811 6. Thread 2 exits (due to a form closing, perhaps).
3813 7. Thread 1 blocks forever.
3817 Fixing the Expose handling isn't done yet, and the races inherent
3818 in that piece of code are responsible for the drawing mistakes you
3819 see when generating expose events in a MT app (like NPlot). This
3820 one is the likely to be the hardest to bandaid, and it doesn't
3821 appear to cause anything but drawing problems. The other issues
3822 caused apps to exit or hang.
3824 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
3825 called from a different thread than the one that should be calling
3828 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
3830 2006-11-15 Chris Toshok <toshok@ximian.com>
3832 * Application.cs: null out the context's MainForm when we exit
3833 RunLoop. Fixes a newly checked in unit test as well as the last
3834 ODE from bug #79933.
3836 2006-11-15 Chris Toshok <toshok@ximian.com>
3838 * Form.cs (set_Owner): allow a null value so we can clear the
3840 (Dispose): set all our owned_form's Owner properties to null, and
3841 clear the owned_forms collection.
3842 (WM_CLOSE): clean up this a little bit.. still not right though.
3844 * ApplicationContext.cs: OnMainFormClosed should only call
3845 ExitThreadCore if the main form isn't recreating. Fixes unit
3848 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
3852 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
3854 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
3858 * Hwnd.cs: Add a flag to show a window, but not activate it, to
3859 keep popup window types from stealing focus from the main form
3862 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
3864 * MenuAPI.cs: Set above flag to true.
3866 2006-11-15 Chris Toshok <toshok@ximian.com>
3868 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
3869 the button being released is not in wParam.
3871 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
3873 * Form.cs: Add the released button to MouseEventArgs.Button
3874 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
3877 2006-11-15 Chris Toshok <toshok@ximian.com>
3879 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
3880 GetText(). untested because it's unused in our implementation.
3881 Control.Text always caches the text, even if
3882 ControlStyles.CacheText is not set.
3886 2006-11-15 Chris Toshok <toshok@ximian.com>
3890 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
3891 message. no hiding, no disposing.
3893 in the WM_CLOSE handler, hide the form if it's modal.
3895 2006-11-15 Chris Toshok <toshok@ximian.com>
3897 * XplatUIX11.cs: use AddExpose instead of sending a message.
3898 fixes textbox border drawing.
3900 2006-11-15 Chris Toshok <toshok@ximian.com>
3902 * PropertyGridView.cs: keep from crashing on mouse move/down when
3903 the property grid is empty.
3905 2006-11-14 Jackson Harper <jackson@ximian.com>
3907 * TextControl.cs: Make PageUp and PageDown more like the MS
3909 * TextBoxBase.cs: When we set the text property position the
3910 cursor at the beginning of the document.
3912 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3914 * Form.cs: if a mdi child's WindowState has changed
3915 before it's creation, it would display wrong control
3918 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
3920 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
3923 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
3925 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
3926 the window gets to paint its borders even if the window is
3929 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
3930 otherwise the old control buttons would still be painted
3931 if the window gets bigger.
3933 * PaintEventArgs.cs: add an internal method so that the clip
3934 rectangle can be changed.
3936 2006-11-13 Chris Toshok <toshok@ximian.com>
3938 [ fixes bug #79745 ]
3940 * NotifyIcon.cs: lots of cleanup.
3942 * X11Structs.cs: add an enum for XEMBED messages.
3944 * XplatUIX11.cs: reindent one of the giant switch statements, it
3945 was taking up an additional tab stop, and this file is already way
3946 too wide for my laptop's screen.
3948 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
3949 we get it, resize the hwnd to the WMNormalHints max_width/height.
3951 2006-11-13 Jackson Harper <jackson@ximian.com>
3953 * TextBoxBase.cs: Compute the value changes for the mouse wheel
3956 2006-11-13 Chris Toshok <toshok@ximian.com>
3958 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
3959 #79898. force a reference to the Region to stick around so the
3960 unmanaged object isn't collected (rendering our handle in the MSG
3963 2006-11-13 Chris Toshok <toshok@ximian.com>
3965 * XplatUIX11.cs: fix #79917 for window managers which support
3967 using XStoreName on the raw utf8, and we need to convert to
3968 COMPOUND_TEXT if it's non-latin1.
3970 2006-11-13 Chris Toshok <toshok@ximian.com>
3972 * Form.cs (set_DialogResult): we need to set closing to false if
3973 we're setting our result to None. fixes bug #79908.
3975 2006-11-13 Jackson Harper <jackson@ximian.com>
3977 * TextControl.cs: When formatting text, compute the adjusted tag
3978 lengths correctly, using FindTag for the end tag instead of trying
3979 to figure it out outselves.
3980 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
3981 the item, ItemHeight doesn't work, because trees with large
3982 imagelists use those for their height
3983 * TreeView.cs: ActualItemHeight factors in the image height
3984 - compute left edge of checkboxes correctly
3985 - when expanding/collapsing move the bottom down one pixel, so we
3986 aren't moving part of the node
3988 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
3990 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
3991 stack in PaintEventStart so that it won't get disposed by the gc
3992 before reaching PaintEventEnd.
3994 2006-11-13 Jackson Harper <jackson@ximian.com>
3996 * TextBoxBase.cs: Don't select the word if we are on a line with
3998 - We don't need to position the caret on mouse up, since the mouse
3999 move handler should be doing this
4000 - When double clicking a blank line, the caret is advanced to the
4003 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
4005 * TreeNodeCollection.cs: Avoid duplicating indexer code.
4007 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
4009 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
4010 Fixes part of bug #79910.
4012 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
4014 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
4015 (bug #79903). Some minor string updates to match ms.
4017 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
4019 * FileDialog.cs: Don't add an extension if the filename
4020 already ends with that extension.
4022 2006-11-10 Jackson Harper <jackson@ximian.com>
4024 * TreeView.cs: Use the currently highlighted node for the
4026 * TextBoxBase.cs: There is no need to expand selection on
4028 - CanUndo means 'is there any undo operations', not 'is undo
4029 allowed on this textcontrol. Fixed ClearUndo unit test.
4031 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
4033 * Button.cs: only perform click when button is Selectable (so as
4034 not to activate default buttons when they're disabled)
4036 * Control.cs: Rewrite of the SelectNextControl and related
4037 methods. HandleClick now selects next control if the current one
4040 * Form.cs: OnActivated selects next active control only if Load
4041 has already occurred. If Load hasn't run, there's no point in
4042 selecting here, Load might change the state of controls.
4044 * FocusTest.cs: Tests marked as working again for these fixes
4046 2006-11-10 Chris Toshok <toshok@ximian.com>
4048 * XplatUIX11.cs: a couple of fixes.
4050 - use XInternAtoms with almost all the atoms we need to register,
4051 instead of many, many calls to XInternAtom. should help a bit on
4052 startup time, at the expense of making the code look a little
4055 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
4056 isn't reparented (which seems to be a clue that we're running fon
4057 compiz) and they have an Owner form. This fixes the tool windows
4058 in paint.net when running under compiz.
4060 - when setting the opacity of a window, support both the case
4061 where the window has been reparented and also when it hasn't been.
4062 Since compiz/beryl doesn't seem to reparent windows, and these are
4063 the only window managers which support translucency, I'm not sure
4064 why we need the hwnd.reparented case at all.. but leave it in.
4065 now we get translucent windows in paint.net under compiz/beryl.
4067 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
4069 * FileDialog.cs: Always return the value for FilterIndex that
4070 was set. Internally convert it to values that make sense.
4072 2006-11-10 Everaldo Canuto <everaldo@simios.org>
4074 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
4076 2006-11-10 Everaldo Canuto <everaldo@simios.org>
4078 * Toolbar.cs: Change default value of DropDownArrows to true, the
4079 signature still using false to make it compatible with MS but the
4080 initial value is true. Fixes #79855.
4082 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
4084 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
4085 only available on Linux.
4087 2006-11-09 Everaldo Canuto <everaldo@simios.org>
4089 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
4090 reduce number of calls to redraw method during toolbar creation.
4092 2006-11-09 Mike Kestner <mkestner@novell.com>
4094 * ListView.cs : raise SelectedIndexChanged when an item is selected
4095 programmatically via the Item.Selected property. Gert's nice
4096 ListViewSelectedIndexChanged test fixture now runs clean.
4098 2006-11-09 Mike Kestner <mkestner@novell.com>
4100 * ListView.cs : raise SelectedIndexChanged when a selected item is
4101 removed from the item collection using Remove or RemoveAt.
4103 2006-11-09 Mike Kestner <mkestner@novell.com>
4105 * ListView.cs : raise SelectedIndexChanged once per selected item
4106 for compat with MS. Fixes #79849+.
4108 2006-11-09 Chris Toshok <toshok@ximian.com>
4110 * TabControl.cs: initialize row_count to 0, and set it to 1 when
4111 we need to (if we have any tab pages). Fixes unit test.
4113 2006-11-09 Chris Toshok <toshok@ximian.com>
4115 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
4116 width is 0, not 3. Fixes a unit test.
4118 2006-11-09 Mike Kestner <mkestner@novell.com>
4120 * ListView.cs : use Implicit scrollbars so that focus isn't
4121 stolen from the listview when they are clicked. Fixes #79850.
4123 2006-11-09 Chris Toshok <toshok@ximian.com>
4125 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
4126 have a root item. Fixes #79879.
4128 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
4132 - An ArgumentException is now thrown if a wrong filter
4133 is applied (matches ms). The previous filter doesn't change
4134 anymore if an exception is thrown.
4135 - Changing the FileName property also affects FileNames
4136 * ColorDialog.cs: The length of the CustomColors array is always
4137 16. It doesn't matter if we use a smaller array or null to update
4138 or change the custom colors property.
4139 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
4140 for RootFolder if we get a undefined value.
4142 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
4144 * StatusBarPanel.cs:
4145 - Width is set to MinWidth if Width is smaller than
4146 MinWidth. Fixes #79842.
4147 - MinWidth now always overrides Width (MSDN says MinWidth
4148 is set to Width when AutoSize = None, but they do not
4150 - Style has now the the correct default value.
4152 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
4155 - The control is completely invalidated on
4156 Got/LostFocus to draw the focus rectangle correctly.
4157 - When AutoSize then height is always 45 (width for
4160 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
4161 on the mouse when moved and it doesn't move when grabbed
4162 until the mouse moves as well. Also fixed some wrong
4163 calculations when clicking on the thumb (control thought
4164 click was outside of thumb and didn't grab it).
4165 Fixes some of the issues in #79718.
4167 2006-11-08 Everaldo Canuto <everaldo@simios.org>
4169 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
4171 2006-11-08 Chris Toshok <toshok@ximian.com>
4173 * PropertyGridView.cs: only call ToggleValue if the item is not
4176 2006-11-08 Jackson Harper <jackson@ximian.com>
4178 * TextBoxBase.cs: The RichTextBox and textbox have very different
4179 word selection methods. Implement the textbox's simple word
4180 selection here, and let the RichTextBox override and provide it's
4182 - Don't do extra selection on mouseup
4183 * RichTextBox.cs: Use the documents word selection algorithm, I
4184 think ideally, this function will be pulled into the
4185 RichTextBox.cs code someday.
4187 2006-11-08 Chris Toshok <toshok@ximian.com>
4189 * RootGridEntry.cs: new class to represent GridItemType.Root.
4191 * CategoryGridEntry.cs: reformat, and add boilerplate.
4193 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
4194 returns the UI parent anyway, and we need special handling to
4195 implement the GetTarget method in the face of it. Also, implement
4198 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
4199 a root grid item, and use that instead of PropertyGrid.grid_items.
4200 Also, make use of TypeConverters (and add limitted support for
4201 ICustomTypeDescriptors) when initially populating the grid.
4202 Arrays now show up more or less properly.
4204 2006-11-08 Chris Toshok <toshok@ximian.com>
4206 * Application.cs: set the modal dialog to non modal after we close
4207 it. Fixes bug #79866.
4209 2006-11-08 Jackson Harper <jackson@ximian.com>
4211 * TextControl.cs: When combining lines carry over the line end
4212 style from the end line.
4213 - Invalidate the selected area when setting it, if it is visible.
4214 * TextBoxBase.cs: Only rich text box can do full line selects.
4215 - Make sure to set the cursor position when there is a click,
4216 otherwise two clicks in separate areas could cause a large chunk
4219 2006-11-07 Everaldo Canuto <everaldo@simios.org>
4221 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
4224 2006-11-07 Everaldo Canuto <everaldo@simios.org>
4226 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
4227 time. Remove tooltips when ToolButton click events. Fixes #79856.
4229 2006-11-07 Everaldo Canuto <everaldo@simios.org>
4231 * MenuAPI.cs: Ignore right click for menu actions and fixes
4232 menu border when clicked. Fixes #79846.
4234 2006-11-07 Everaldo Canuto <everaldo@simios.org>
4236 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
4237 MouseState after create wParam for message, this fixes mouse button
4238 equal none in mouse up events.
4240 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
4242 * Control.cs : Focus() now calls Select to set the Container's
4243 Active Control and to give it focus. To avoid infinite recursion
4244 (because ActiveControl also calls Focus at one point), a check
4245 is made in Focus with the help of a new internal variable
4248 2006-11-07 Mike Kestner <mkestner@novell.com>
4250 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
4251 if there's a selection. Fixes #79849.
4253 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
4255 * PropertyGrid.cs: Avoid fixed height of help description label.
4256 Fixes part of bug #79829.
4258 2006-11-07 Chris Toshok <toshok@ximian.com>
4260 * XplatUIX11.cs: fix #79790 again, by using the
4261 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
4263 2006-11-07 Everaldo Canuto <everaldo@simios.org>
4265 * ToolBar.cs: Fix left click checking.
4267 2006-11-07 Chris Toshok <toshok@ximian.com>
4269 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
4271 2006-11-07 Chris Toshok <toshok@ximian.com>
4273 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
4274 PropertyManager unit tests.
4276 * PropertyManager.cs: make property_name internal.
4278 2006-11-07 Chris Toshok <toshok@ximian.com>
4280 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
4281 pass a unit test. Also, don't set image_index to anything in
4282 response to setting the ImageList property.
4284 2006-11-07 Everaldo Canuto <everaldo@simios.org>
4286 * ToolBar.cs: Ignore click events when mouse button is not a
4287 left button, only accepts other button for dropdown menus.
4290 2006-11-07 Chris Toshok <toshok@ximian.com>
4292 * DataGrid.cs: make the back and parent row buttons a little less
4295 2006-11-07 Jackson Harper <jackson@ximian.com>
4297 * TextBoxBase.cs: When converting to Text don't put line breaks in
4298 for soft line breaks.
4299 * TextControl.cs: There is an initial "fake" line in the document,
4300 this is now a soft break line, so that an extra line feed doesn't
4301 get added to the end of documents.
4303 2006-11-07 Chris Toshok <toshok@ximian.com>
4307 * CurrencyManager.cs: if the list is readonly, don't bother
4308 checking if IBindingList.AllowNew is true.
4310 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
4311 for non-DataRowView datasources.. or rather, make it not crash.
4312 (DataGridPaintRelationRow): make sure we limit the row painting to
4313 the area not covered by the row header, and make our cell width at
4314 least large enough to cover the relation area. This allows grids
4315 that have relations but no rows to render correctly.
4316 (DataGridPaintRowContents): same type of changes here.
4317 (SetDataSource): move back to always calling
4318 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
4319 navigating back through relations.
4320 (HitTest): handle the case where we have no cells but have
4321 relations. Right now we generate a hit in cell 0 of whatever the
4322 row is, not sure if this is strictly correct, but it works for our
4325 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
4326 bother doing anything.
4328 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
4330 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
4331 early version of StatusStrip. Not responsible for eaten
4332 application or firstborn children.
4334 2006-11-06 Chris Toshok <toshok@ximian.com>
4336 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
4337 call GetTabRect with a -1 index. Fixes #79847.
4339 2006-11-06 Jackson Harper <jackson@ximian.com>
4341 * TreeNodeCollection.cs: Update scrollbars after clearing.
4343 2006-11-06 Chris Toshok <toshok@ximian.com>
4345 * NumericUpDown.cs: fix the ToString method for some unit test
4348 2006-11-06 Chris Toshok <toshok@ximian.com>
4351 - set the initial SelectedGridItem if we can.
4353 - Exclude non-mergable properties only if we're merging > 1
4354 object. Merging 1 object isn't really merging, obviously.
4356 - Handle PropertySort.NoSort just like Alphabetical, which is
4357 wrong of course, but at least gets things on the screen.
4359 * PropertyGridView.cs:
4360 - Add method "FindFirstItem" which finds the first property grid
4361 item, so we can select it by default.
4363 - make use of GridEntry.CanResetValue.
4365 - Don't call RedrawBelowItemOnExpansion here anymore, the
4366 individual GridEntry's will do that.
4368 - Remove the ITypeDescriptorContextImpl internal class.
4371 - this class needs to implement ITypeDescriptorContext, as it's
4372 what MS's PropertyDescriptorGridEntry does, which means we can
4373 remove the ITypeDescriptorContextImpl internal class from
4374 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
4376 - keep a reference to our PropertyGridView, and move the call to
4377 RedrawBelowItemOnExpansion here from PGV. This means
4378 programmaticly setting Expanded actually does something visible.
4380 - add a CanResetValue() function which takes into account our
4381 possibly multiple "selected_objects" in the merged case. Shifting
4382 PropertyGridView to use this method fixes another unreported
4383 crasher found running the test for #79829.
4385 - when Top or Bounds is updated, make sure the PropertyGridTextBox
4386 is updated to reflect this.
4388 * CategoryGridEntry.cs: the ctor takes the PGV now.
4390 2006-11-06 Jackson Harper <jackson@ximian.com>
4392 * TextControl.cs: These are 1 based.
4393 * TextBoxBase.cs: When setting the selected text, don't change the
4394 selected text tags, this is done by ReplaceText, just position the
4395 cursor at the end of the new text.
4397 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
4399 * ListView.cs: Allow label edit only when, when LabelEdit is
4402 2006-11-06 Jackson Harper <jackson@ximian.com>
4404 * TextControl.cs: If a suitable wrapping position isn't found,
4405 just wrap right in the middle of a word.
4407 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
4409 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
4412 2006-11-06 Jackson Harper <jackson@ximian.com>
4414 * TreeView.cs: Can't use the VisibleCount property when setting
4415 scrollbar heights, because this doesn't take into account whether
4416 or not the horz scrollbar just came visible.
4418 2006-11-05 Everaldo Canuto <everaldo@simios.org>
4420 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
4421 activated. Fixes #79369, #79832.
4423 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
4425 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
4426 had to remove support for links that point to a directory. FileInfo
4427 returns no usefull information (means, the directory they point to)
4428 for such links. Replaced some empty string ("") with String.Empty.
4430 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
4432 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
4433 NullReferenceException when attempting to remove node that is not in
4434 collection. Throw NullReferenceException when null is passed to
4435 Remove. Allow first element of the collection to be removed. Fixes
4436 bug #79831. In GetEnumerator ().Current return null if positioned
4437 before the first element of the collection. In GetEnumerator ().Reset,
4438 position before first element of the collection.
4440 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
4442 * PropertyGrid.cs: To match MS, remove default title and description
4443 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
4446 2006-11-04 Chris Toshok <toshok@ximian.com>
4448 * Theme.cs: add a Clamp method, just for kicks.
4450 * ThemeWin32Classic.cs: clamp all color components to [0..255].
4452 2006-11-04 Chris Toshok <toshok@ximian.com>
4454 * Form.cs: if the form isn't visible, Close() does nothing.
4456 2006-11-03 Chris Toshok <toshok@ximian.com>
4458 * Form.cs (Close): if the form is modal, don't Dispose of it, only
4460 (WndProc): don't Dispose after handling the WM_CLOSE message.
4462 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
4463 them as such, instead of using casts from Control to Form. Also,
4464 don't Dispose of the modal dialog when we fall out of the loop -
4469 2006-11-03 Chris Toshok <toshok@ximian.com>
4471 * Control.cs (Dispose): only go through the dispose thing if we're
4472 @disposing, and we haven't already been disposed. Fixes bug
4475 * Form.cs: no reason to call "base.Dispose()" here instead of
4478 2006-11-03 Mike Kestner <mkestner@novell.com>
4480 * ComboBox.cs : use ToString instead of casts in AddItem for
4481 sorting functionality. Fixes #79812.
4483 2006-11-03 Chris Toshok <toshok@ximian.com>
4485 * Application.cs: pave the way for actually using the thread
4486 exception dialog. it's ifdefed out at the moment.
4488 2006-11-03 Chris Toshok <toshok@ximian.com>
4490 * ThreadExceptionDialog.cs: until we get a better layout, actually
4491 hide the details textbox and label when we shouldn't see them.
4493 2006-11-03 Jackson Harper <jackson@ximian.com>
4495 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
4496 multiline textboxes anymore. This method also determines the
4497 width/height of a textboxes canvas area.
4498 - Sorta a revert of the last patch. For multiline just position
4499 the controls, then bail. This way the scrollbar width won't be
4502 2006-11-03 Everaldo Canuto <everaldo@simios.org>
4504 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
4505 it dont need. Fixes #79537.
4507 2006-11-02 Jackson Harper <jackson@ximian.com>
4509 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
4510 send the status after firing the DndOver event.
4512 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
4514 * TrackBar.cs: Now orientation only switches height / width if
4515 the control's handle is created (Win32 does it like this). Also
4516 fixed a typo in ToString() for a test to pass, changed the
4517 exception thrown in set_LargeChange and set_SmallChange to
4518 match Win32 behaviour, and added TrackBar tests to the unit
4521 2006-11-02 Chris Toshok <toshok@ximian.com>
4523 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
4524 not _NET_WM_STATE_NO_TASKBAR.
4526 2006-11-02 Jackson Harper <jackson@ximian.com>
4528 * TextControl.cs: Increment count by one, since in the update view
4531 2006-11-02 Jackson Harper <jackson@ximian.com>
4533 * TextBoxBase.cs: Use client rectangle not bounds for checking if
4534 the mouse is in the client rectangle (duh).
4536 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
4538 * TrackBar.cs: Fixed trackbar jumping around when clicking
4539 on it - the trackbar was not detecting correctly at which
4540 side of the thumb the click was done. (fixes #79718)
4542 2006-11-02 Everaldo Canuto <everaldo@simios.org>
4544 * ListBox.cs: scroll visible area when change SelectedIndex to
4545 a non visible area. Fixes #79481.
4547 2006-11-01 Jackson Harper <jackson@ximian.com>
4549 * TextControl.cs: When replacing the selection move the selection
4550 start/end/anchor to the end of the new text.
4552 2006-11-01 Jackson Harper <jackson@ximian.com>
4554 * XplatUIWin32.cs: When setting the parent change the controls
4555 visibility to it's visibility flag, not to it's old parents
4556 visibility (.Visible walks the parent chain).
4558 2006-11-01 Chris Toshok <toshok@ximian.com>
4560 * XplatUIX11.cs: revert the #79790 fix, as the simple.
4561 XSetTransientForHint fix breaks paint .net's tool windows. more
4562 work needed for that one.
4564 2006-11-01 Chris Toshok <toshok@ximian.com>
4566 * ScrollBar.cs: throw ArgumentException instead of Exception in
4567 LargeChange/SmallChange setters. fixes unit tests.
4569 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
4571 * ContainerControl.cs: reverted rev.67183 (which was itself
4572 a reversion of rev.66853... eh).
4574 * Control.cs: Fixes Reflector hang by changing Focus() call
4575 to what it was before rev.66643 (calling Select() here sets
4576 ActiveControl, which in some situations calls back Focus and
4577 eventually does a stack overflow). Temp fix.
4578 Changes to GetNextControl() to not look for children to select when
4579 parent cannot be selectable (so it looks for siblings instead)
4581 2006-10-31 Mike Kestner <mkestner@novell.com>
4583 * CheckedListBox.cs : off by one error in returned index from
4584 ObjectCollection.Add. Fixes #79758.
4586 2006-10-31 Chris Toshok <toshok@ximian.com>
4588 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
4589 calls for the textbox/spinner, to keep from recursing to the point
4590 where we crash. Fixes #79760.
4592 2006-10-31 Chris Toshok <toshok@ximian.com>
4594 * ListControl.cs (set_SelectedValue): don't throw exceptions on
4595 null/"" value, just return. matches ms's behavior and fixes some
4598 2006-10-31 Chris Toshok <toshok@ximian.com>
4600 * Control.cs (set_Capture): make a logic a little easier to
4603 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
4604 if it's being destroyed. A necessary fix surely, but a bandaid
4605 also, to fix the stuck capture problem in bug #78413.
4607 2006-10-31 Chris Toshok <toshok@ximian.com>
4609 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
4610 convention of clearing hwnd.ClientRect when we set the
4611 width/height (so it'll be recalculated by Hwnd).
4613 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
4615 * ContainerControl.cs: reversed Contains check from
4616 ActiveControl due to hanging problems. This fix
4617 partly regresses #79667 (button does not have
4618 initial focus), so this might be a symptom for
4619 a larger parenting problem (set_ActiveControl
4620 is being called but the child control does
4621 not have the parent set yet?)
4623 2006-10-31 Mike Kestner <mkestner@novell.com>
4625 * MenuAPI.cs : fix keynav when menu is click activated.
4627 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
4629 * ToolStrip*: Version 0.2.
4631 * MenuStrip.cs: Version 0.1.
4633 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
4635 2006-10-30 Chris Toshok <toshok@ximian.com>
4637 [ fixes the oversized notify icon issue in bug #79745 ]
4639 * NotifyIcon.cs: scale the icon down to the size we're given by
4640 the XplatUI layer (this would be faster if we did it once instead
4641 of whenever we paint..) Also, remove the WM_NCPAINT handling,
4642 since it's never invoked.
4644 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
4645 pixels high by default, so let's hardcode our systray icon to that
4646 size. The SYSTEM_TRAY protocol should really have a way for
4647 client apps to query for the correct icon size.. but oh well. A
4648 couple of patches to deal with the screwy client_window ==
4649 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
4650 instance, and also make sure we don't XSelectInput twice).
4652 2006-10-30 Chris Toshok <toshok@ximian.com>
4654 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
4655 recreating forms. Control recreation is the bane of my existence.
4656 Fix it in a way that keeps everyone happy.
4658 2006-10-30 Chris Toshok <toshok@ximian.com>
4660 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
4661 just non-CHILD ones. otherwise sometimes scrollbars end up with
4662 client_windows not being resized to the proper size (ReportBuilder
4663 shows this extremely well).
4665 2006-10-30 Chris Toshok <toshok@ximian.com>
4667 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
4668 for non-WS_EX_APPWINDOW windows. This is what keeps them from
4669 showing up in the gnome taskbar. Fixes bug #79790.
4671 2006-10-30 Chris Toshok <toshok@ximian.com>
4673 * ApplicationContext.cs: guard against a NRE.
4675 * Application.cs: null out the old MainForm for the context, so we
4676 don't try to use it again once it's disposed. Fixes bug #79783.
4678 2006-10-30 Chris Toshok <toshok@ximian.com>
4680 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
4681 BindingContext, set the data source directly, otherwise do the
4682 lazy approach - the actual ListManager will be created when we get
4683 a BindingContext. Fixes bug #79700.
4685 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
4687 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
4688 XplatUIX11.cs: Remove old 2 parameter SetVisible.
4690 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
4692 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
4694 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
4695 of SetVisible that allows a window to be shown, but not activated.
4696 This is needed on Windows for MenuStrip, and can probably be used
4697 with MainMenu and ComboBox to fix the focus stealing issues on
4700 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
4702 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
4704 * PictureBox.cs: Fix the output of the ToString method.
4706 2006-10-29 Chris Toshok <toshok@ximian.com>
4708 * Control.cs (get_TopLevelControl): fix bug #79781.
4710 2006-10-29 Chris Toshok <toshok@ximian.com>
4712 * ListControl.cs (set_DataSource): throw Exception here, not
4713 ArgumentException, to match MS behavior.
4715 2006-10-29 Chris Toshok <toshok@ximian.com>
4717 * Form.cs: remove the try-catch's around calls to GetWindowState.
4718 We can just check the return value.
4720 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
4723 * XplatUI.cs: Add note about additional return value for
4726 2006-10-29 Chris Toshok <toshok@ximian.com>
4728 * Control.cs (CreateHandle): when we create our handle, we also
4729 create the handles of our child controls. Fixes one of the
4730 Control unit tests (CH11).
4732 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
4734 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
4736 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
4738 * ThemeClearlooks.cs: A little speedup.
4740 2006-10-27 Chris Toshok <toshok@ximian.com>
4742 * Control.cs: implement Control.FromChildHandle in a way that
4743 matches the docs (and fixes the failed test.)
4745 2006-10-27 Chris Toshok <toshok@ximian.com>
4747 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
4750 * DataGrid.cs: implement ResetForeColor such that the tests
4753 2006-10-27 Chris Toshok <toshok@ximian.com>
4755 * ToolBarButton.cs: setting text/tooltiptext to null results in it
4756 being set to "". Fixes bug #79759.
4758 2006-10-27 Jackson Harper <jackson@ximian.com>
4760 * TextControl.cs: We need to clear the entire selection area when
4761 setting the start, otherwise multiline selections are still
4764 2006-10-26 Chris Toshok <toshok@ximian.com>
4766 * PropertyGridView.cs:
4768 - ifdef all the code specific to the double
4769 buffer case, and provide some alternatives in the non-doublebuffer
4770 code, which makes heavy use of XplatUI.ScrollWindow to move things
4771 around without having to invalidate (and cause flicker). There
4772 are still some drawing problems in the non-doublebuffered case, so
4773 DOUBLEBUFFER is defined by default.
4775 - Fix the way dropdowns are handled. now we explicitly watch for
4776 the events which might cause the dropdown to close, and break out
4777 of the nested event loop there. This gets rid of all Capture
4778 code, at the expense of the Msg special casing. Seems to work,
4779 though, and fixes bug #79743.
4781 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
4782 * Control.cs: SetIsRecreating now recreates implicitly added
4783 child controls as well. Finally fixes #79629. The flag passed to
4784 SetIsRecreating has also been removed since it wasn't used.
4786 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4788 * PageSetupDialog.cs: Clean some code, fix some bits,
4789 add some checks, and add a printer sub-dialog.
4791 2006-10-26 Chris Toshok <toshok@ximian.com>
4793 * PropertyGrid.cs: make set_SelectedObject call
4794 set_SelectedObjects, and move the duplicate logic to the
4795 SelectedObjects setter. Also, raise SelectedObjectsChanged.
4797 * PropertyGridView.cs: hide the textbox when we get a
4798 SelectedObjectsChanged event.
4802 2006-10-26 Chris Toshok <toshok@ximian.com>
4804 * PropertyGridView.cs: deal with the type converter not supporting
4805 GetStandardValues() or GetStandardValues() returning null, which
4806 is does in the default case. Fixes #79742.
4808 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
4810 * CheckedListBox.cs: nunit no longer crashes when selecting
4811 Project/Edit menu option
4813 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
4815 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
4816 is no menu selected. fixes #79739
4818 2006-10-25 Chris Toshok <toshok@ximian.com>
4820 * PropertyGridView.cs: factor out the splitter invalidation code
4821 into the SplitterPercent setter, and for kicks implement the
4822 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
4823 amount in either direction.
4825 2006-10-25 Chris Toshok <toshok@ximian.com>
4827 * PropertyGridView.cs: do some cleanup of the brush used to draw
4828 text - read only fields should be grayed out. not sure how to do
4829 this with the textbox, though. but the textbox's should also be
4830 readonly now at least. Also, hide/show the textbox when resizing
4833 * CursorConverter.cs: use System.Reflection when getting the
4834 properties of Cursors, as TypeDescriptor.GetProperties isn't
4835 returning static properties.
4837 2006-10-25 Chris Toshok <toshok@ximian.com>
4839 * PropertyGridView.cs: factor out the up/down handling, and reuse
4840 it for page up/down. also add End/Home support.
4842 2006-10-25 Chris Toshok <toshok@ximian.com>
4844 * PropertyGridView.cs:
4846 - ensure the selected grid item is visible in the scrolled area,
4849 - fix Keys.Down handling when you're on the last item in the
4852 2006-10-25 Mike Kestner <mkestner@novell.com>
4854 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
4855 clicks too. Fixes #79725.
4857 2006-10-24 Chris Toshok <toshok@ximian.com>
4859 * PropertyGrid.cs: use property.Converter instead of
4860 TypeDescriptor.GetConverter(property.PropertyType), so we catch
4861 TypeConverters declared on the property as well as on the
4862 PropertyType. Fixes bug #79678.
4864 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
4866 * MimeIcon.cs, Mime.cs:
4867 Fallback to the default platform handler if no shared mime info
4868 stuff exists (fixes #79693).
4870 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
4871 * ContainerControl.cs: Incorrect contains check in ActiveControl
4872 from previous fix (duh).
4874 2006-10-20 Chris Toshok <toshok@ximian.com>
4876 * PropertyGridView.cs: the dropdown should be MIN(number of items
4877 in list, 15). Fixes #79551.
4879 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
4880 Fixes #79384, #79394, #79652, #79667
4883 - Modal windows are now destroyed in the proper order for windows
4885 * ContainerControl.cs:
4887 - ActiveControl setter has more conditions on when to return:
4888 - if we're reselecting the active control, but it actually
4889 didn't have focus (window hidden or some such), it runs
4890 - if the active control being selected doesn't actually
4891 exist in the container, it returns
4895 - The ShowDialog now gets the current form as the owner when
4896 invoking without parameters, and correctly activates the owner
4901 - MessageBox now catches the Escape key to exit
4903 2006-10-20 Chris Toshok <toshok@ximian.com>
4905 * PropertyGridView.cs: fix a number of issues (bug #78565, and
4906 most of bug #79676):
4908 - you can navigate around the property grid with the arrow keys.
4910 - the dropdown is sized properly when the pg has a vertical
4913 - fix the indentation for subentries, and properly select the
4916 - fix the gray bar's drawing (only draw it to the last element,
4917 not for the height of the control. Also make sure we draw that
4918 last horizontal grid line.
4920 - use the same mechanism the datagrid uses wrt the editing textbox
4921 when scrolling/resizing/etc. Namely, we hide it first, do the
4922 operation, then show it again (if it's still visible).
4924 - aggressively remove a lot of unnecessary refreshes (and also
4925 calls to Invalidate(). call more limited variants, and only redraw
4930 - when we're populating the merged collection, fill in the UI
4931 parent with either the passed in item, or the category item we
4934 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
4936 * GridItem.cs: drop some fully qualified names.
4938 * GridEntry.cs: add a "UIParent", which is basically the parent
4941 * GridItemCollection.cs: add an IndexOf method.
4943 2006-10-20 Mike Kestner <mkestner@novell.com>
4945 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
4946 a working win32 NC invalidation mechanism, we can't invalidate
4947 menus. [Fixes #79705]
4949 2006-10-20 Mike Kestner <mkestner@novell.com>
4951 * ListBox.cs : don't update the VScrollbar if the list is empty,
4952 just hide it. [Fixes #79692]
4954 2006-10-20 Jackson Harper <jackson@ximian.com>
4956 * RichTextBox.cs: Handle some special chars better, and don't skip
4957 the entire group when we encounter a special char that we don't
4960 2006-10-18 Chris Toshok <toshok@ximian.com>
4962 * PropertyGridView.cs: address a number of issues from bug #79676,
4963 mostly of the cosmetic variety.
4965 - The highlight rectangle for indented items not extends all the
4968 - Indented items aren't indented so much.
4970 - the dropdown is properly sized width-wise if the pg has a
4973 2006-10-18 Chris Toshok <toshok@ximian.com>
4975 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
4976 systray stuff is rather convoluted to begin with.
4978 systray icons are a single window for some reason (that I haven't
4979 figured out yet), and for them, client_window == whole_window.
4980 Given the way the tests are structured elsewhere to determine
4981 which paints are pending (client vs. nc), that situation will
4982 always yield PAINT, not NCPAINT. So, if we have a pending
4983 nc_expose and no pending expose, remove the hwnd from the paint
4984 queue, and also set nc_expose_pending to false, to keep us from
4985 blocking further expose's adding the hwnd to the paint queue.
4987 phew. like i said, a rather convoluted change. Fixes the
4988 notifyicon repaint issues in bug #79645.
4990 2006-10-18 Chris Toshok <toshok@ximian.com>
4992 * Form.cs: when getting the backcolor of the form, don't get
4993 base.BackColor, as this allows parents to influence the background
4994 color. This breaks mdi forms. Instead, if the background_color
4995 is empty, return the default.
4997 2006-10-18 Chris Toshok <toshok@ximian.com>
4999 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
5000 to being private instead of internal static.
5002 * Control.cs: remove all the stupid ParentWaitingOnRecreation
5003 crap, it wasn't working for more deeply nested controls anyway,
5004 and we already have the is_recreating flag - use that instead.
5005 Before calling DestroyHandle in RecreateHandle, recurse through
5006 the control tree setting it to true. this returns the recreate
5007 code to much of its original simplicity, while now guaranteeing we
5008 actually recreate everything we're supposed to. This change gets
5009 fyireporting actually showing mdi children.
5011 2006-10-17 Chris Toshok <toshok@ximian.com>
5013 * Form.cs: remove some debug spew, and collapse some duplicate
5014 code at the end of SetClientSizeCore.
5017 - add some more debug spew here too wrt Destroy handling.
5018 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
5019 in Control's handling of WM_DESTROY.
5020 - Remove the handling of zombie window DestroyNotifies from the
5021 event loop - we don't need it. Now the only DestroyNotifies we
5022 actually handle are ones generated by X.
5023 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
5024 match gtk's (functioning) handling of this. This keep metacity
5025 from leaving droppings in the form of wm borders with no window
5026 contents all over the place.
5029 - add a bunch of debug spew wrt control recreation.
5030 - fix a bug where we weren't tracking Visible properly on
5032 - fixed the WM_PAINT double buffer handling to support re-entrant
5033 calls (yes, i know it's gross, but it's happening to us).
5035 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
5036 * ThemeWin32Classic.cs: changed drawing of selected days
5037 to make them look better.
5039 2006-10-16 Chris Toshok <toshok@ximian.com>
5041 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
5042 drawing_stack. Nuke the ClientDC/NonClientDC properties.
5044 * XplatUIX11.cs: move away from using hwnd.client_dc and
5045 hwnd.non_client_dc and on to a stack of dc's (and in window's
5046 case, PAINTSTRUCT's), so we can deal with nested Paint calls
5047 without puking or not disposing of Graphics objects.
5049 * XplatUIOSX.cs: same.
5051 * XplatUIWin32.cs: same.
5053 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
5055 * FileDialog.cs: Don't call on_directory_changed inside
5056 OnSelectedIndexChanged (it changes the SelectedIndex too).
5057 Instead move it to OnSelectionChangeCommitted.
5059 2006-10-13 Chris Toshok <toshok@ximian.com>
5061 * XplatUIX11.cs: more Destroy work. the current code does the
5062 following things, in order:
5064 1. Enumerates all handles of all controls at or below the one
5065 being destroyed, in pre-order. As it is doing this, it marks the
5066 handles as zombie and clears all references to them.
5068 2. calls XDestroyWindow on the window passed in.
5070 3. SendMessage's WM_DESTROY to all he handles in the accumulated
5073 2006-10-13 Chris Toshok <toshok@ximian.com>
5075 * XplatUIX11.cs: set hwnd.zombie to true before calling
5076 SendMessage (WM_DESTROY). this keeps us from marking the new
5077 window a zombie, and also keeps us from calling sendmessage at
5080 2006-10-13 Jackson Harper <jackson@ximian.com>
5082 * TextControl.cs: Do not show the caret and selection at the same
5083 time. Reduces ugliness by 35%.
5085 2006-10-13 Chris Toshok <toshok@ximian.com>
5087 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
5088 zombie after we do the recursive call, so we actually do call
5089 SendMessage on the children controls.
5090 (GetMessage): if we find a pending paint event for a zombie hwnd,
5091 remove the hwnd from the paint queue, or else it will always be
5092 there (and we'll effectively loop infinitely)
5094 2006-10-13 Mike Kestner <mkestner@novell.com>
5096 * MenuItem.cs : add Selected format under keynav too.
5099 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5101 * PropertyGrid.cs: Fixed some NRE's and small difference between our
5102 implementation and that of MS.
5104 2006-10-13 Chris Toshok <toshok@ximian.com>
5106 * Control.cs (OnInvalidated) only futz with the invalid_region if
5107 the control is double buffered. this fixes the apparent hang in
5108 the ListView unit tests. Someone needs to make the
5109 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
5111 2006-10-13 Chris Toshok <toshok@ximian.com>
5113 * PropertyGridView.cs:
5115 - do a little refactoring so that only one place calls
5116 dropdown_form.Hide, and that is CloseDropDown. make everywhere
5117 else call that. Also make it Refresh, since there are redraw bugs
5118 otherwise (we should take a look at that...)
5120 - do a little more refactoring work to share the body of code
5121 involved with the drop down. it was duplicated in the code
5122 dealing with the listbox handling and in the code dealing with the
5125 - add a Capture to the dropdown form's control once it's
5126 displayed, and add a MouseDown handler that checks to make sure
5127 the position is inside the control. If it's not, close the
5128 dropdown. This fixes #78190.
5130 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
5131 if the value is different than the initial value.
5133 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
5135 * Control.cs: see #78650
5136 - Fixed GetNextControl for several cases:
5137 - Changed FindFlatForward to return
5138 correct sibling control when more than one
5139 control has same TabIndex as the currently
5141 - Changed FindFlatBackward to loop children
5142 from last to first and apply same logic as in
5144 - Changed FindControlForward to search for
5145 children when control is not a container
5146 but has children, or search for siblings if
5147 control is a container...
5148 - Changed FindControlBackward to continue
5149 searching for child controls when hitting
5152 - Fixed Focus method to update ActiveControl
5153 (FocusTest.FocusSetsActive failure)
5156 - Focus rectangle now refreshes when gaining
5158 - Removed grab for Tab key on IsInputKey that
5159 was keeping tab navigation from working (#78650)
5161 2006-10-13 Chris Toshok <toshok@ximian.com>
5163 * PropertyGridView.cs:
5164 - Rewrite SetPropertyValue to loop over SelectedGridItem's
5167 - Deal with GridItem.Value == null a few places.
5170 - replace the PopulateGridItemCollection with a pair of methods
5171 which compute the intersection of all the properties in the
5172 SelectedObjects array. Fixes #79615.
5174 - Throw ArgumentException from set_SelectedObjects if there's a
5177 - Add GetTarget method which can be used to traverse up the
5178 GridItem.Parent chain. It depends on the assumption that
5179 selected_objects for different GridEntries are always in the same
5180 order (a safe assumption). Use this method and loop over all the
5181 selected objects in the entry when calling RemoveValueChanged and
5184 * GridEntry.cs: Make this handle multiple selected objects.
5185 .Value returns null if not all the selected objects share the same
5188 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
5189 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
5190 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
5191 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
5192 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
5193 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
5194 add additional functionality.
5196 2006-10-12 Mike Kestner <mkestner@novell.com>
5198 * ErrorProvider.cs : new ToolTipWindow ctor sig.
5199 * HelpProvider.cs : new ToolTipWindow ctor sig.
5200 * ToolTip.cs : remove ToolTip param from Window sig since it is
5202 * ToolBar.cs : add tooltip support. Fixes #79565.
5204 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
5206 * ComboBox.cs: move the events in set_SelectedIndex to
5207 after the call to HighlightIndex in order to avoid
5208 possible recursion and subsequent problems with the call
5209 to HighlightIndex and include a range check in
5210 set_HighlightIndex. Fixes #79588
5212 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
5214 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
5215 to ui thread's settings instead of sunday.
5216 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
5218 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
5222 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
5223 and implement missing functionality (selecting different parts
5224 of the date and edit them individually with the keyboard).
5226 2006-10-11 Chris Toshok <toshok@ximian.com>
5228 * Control.cs (OnInvalidated): fix NRE relating to last change.
5230 2006-10-11 Chris Toshok <toshok@ximian.com>
5232 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
5233 atoms in _NET_WM_STATE here if the window is maximized. We need
5234 to do this because we're *replacing* the existing _NET_WM_STATE
5235 property, so those atoms will be lost otherwise, and any further
5236 call to GetWindowState will return Normal for a window which is
5237 actually maximized. Fixes #79338.
5239 2006-10-11 Jackson Harper <jackson@ximian.com>
5241 * TextControl.cs: Special case for setting selection end to
5242 selection start, we basically kill the anchor.
5243 - some todo comments.
5245 2006-10-11 Chris Toshok <toshok@ximian.com>
5247 * Control.cs: switch to using an "invalid_region" to track which
5248 parts of the image buffer need updating. This is more code than
5249 the simple fix from r66532. That version just attempted to always
5250 fill the entire buffer on redraw, which turns out to be
5251 inefficient when invalidating small rectangles. This version
5252 simply adds the invalid rectangle to the invalid region. When we
5253 get any WM_PAINT message we see if it can be filled using the
5254 image buffer, and if it can't (if the paint event's clip rectangle
5255 is visible in the invalid region) we first fill the image buffer.
5256 So, the image buffer is still a cache, we just fill it lazily.
5258 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
5261 2006-10-11 Chris Toshok <toshok@ximian.com>
5263 * XplatUIX11.cs (SetWindowPos): we need to update both position as
5264 well as size after calling XMoveResizeWindow. This keeps us from
5265 ignoring future SetWindowPos calls. Fixes the disappearing
5266 DateTimePicker in the ToolBarDockExample from bug #72499.
5268 2006-10-11 Chris Toshok <toshok@ximian.com>
5270 * TextBoxBase.cs: reorder things a bit when it comes to
5271 resizing-causing-recalculation. we were recalculating the
5272 document when our position was changed, which shouldn't happen.
5273 We only care about size changes. Clear up some more redundant
5274 recalculation calls while I'm at it. This makes the toolbar dock
5275 example snappy when you're just dragging toolbars around (since it
5276 causes a relayout whenever you move one.)
5278 2006-10-11 Chris Toshok <toshok@ximian.com>
5280 * ToolBarButton.cs (get_Rectangle): this only returns
5281 Rectangle.Empty if Visible == false, or Parent == null.
5282 Parent.Visible doesn't matter.
5284 2006-10-10 Chris Toshok <toshok@ximian.com>
5286 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
5287 by .net 1.1, so switch to an internal method instead.
5289 2006-10-10 Chris Toshok <toshok@ximian.com>
5291 * Control.cs (WM_PAINT): when a control is double buffered we draw
5292 initially to the ImageBuffer and then copy from there. But when a
5293 parent control which has child controls is double buffered, the
5294 initial drawing doesn't encompass the entire ClientRectangle of
5295 the parent control, so we end up with uninitialized bits (this is
5296 easily seen by dragging the top toolbar in
5297 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
5298 manually set the ClipRectangle of the paint_event (only the one we
5299 use to populate the ImageBuffer) to ClientRectangle. Fixes more
5300 of the nastiness in bug #72499.
5302 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
5303 which we use in Control.cs's WM_PAINT handling.
5305 2006-10-10 Jackson Harper <jackson@ximian.com>
5307 * TextBoxBase.cs: Finish off the autoscrolling stuff.
5309 2006-10-10 Chris Toshok <toshok@ximian.com>
5311 * Cursor.cs: Apply a slightly different patch to the one suggested
5314 2006-10-10 Jackson Harper <jackson@ximian.com>
5316 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
5317 not the parent form.
5318 * TextControl.cs: use difference in old line count vs new count to
5319 calculate how many lines were added, this takes into account soft
5320 line breaks properly.
5322 2006-10-10 Chris Toshok <toshok@ximian.com>
5324 * LinkLabel.cs: don't call MeasureCharacterRanges against a
5325 rectangle located at 0,0 and the size of the text. Use
5326 ClientRectangle instead. This fixes rendering of non-left aligned
5329 2006-10-10 Jackson Harper <jackson@ximian.com>
5331 * TextBoxBase.cs: When we set the selection start position the
5333 * TextControl.cs: Need to update the caret when we decrement it to
5335 - Make sure that the selection_visible flag gets reset to false if
5336 the selection isn't visible. Before this you could get it set to
5337 visible by changing the selection start, then changing the end to
5340 2006-10-09 Jackson Harper <jackson@ximian.com>
5342 * TreeView.cs: Don't update scrollbars when we aren't visible.
5343 * TreeNodeCollection.cs: Only need to update scrollbars if being
5344 added to an expanded visible node or the root node.
5346 2006-10-09 Chris Toshok <toshok@ximian.com>
5348 * XplatUIX11.cs (SendMessage): fix NRE.
5350 2006-10-09 Jackson Harper <jackson@ximian.com>
5352 * TextBoxBase.cs: Implement horizontal autoscrolling.
5353 * TextControl.cs: Add a movement types that allows moving forward
5354 and backwards without wrapping.
5356 2006-10-09 Mike Kestner <mkestner@novell.com>
5358 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
5359 with focus "expansion" of labels. Fixes #79532 and then some.
5360 * ThemeWin32Classic.cs : add LineLimit to ListView label format
5363 2006-10-09 Jackson Harper <jackson@ximian.com>
5365 * TextBoxBase.cs: Set the default max values to MaxValue since
5366 we use the scrollbar for autoscrolling and the default value is
5367 100. If we don't do this the caret won't keep up with typing
5368 after about 18 characters.
5369 * TextControl.cs: Make sure the selection is offset by the
5370 viewport x. This fixes selection when using auto scrolling.
5372 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
5374 * Form.cs: The active control should be selected after the
5375 OnLoad so that any child control initialization that affects
5376 the selection is done. Fixes #79406
5378 2006-10-06 Chris Toshok <toshok@ximian.com>
5380 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
5381 to have no evil effects.
5383 - Stop selecting StructureNotifyMask on non-toplevel windows.
5385 The only way children should be resized is by using the SWF api,
5386 and we already send WM_WINDOWPOSCHANGED messages in those cases.
5387 Toplevel windows can be interacted with via the window manager,
5388 and so we keep the input mask there.
5390 The other event StructureNotifyMask gives us (that we care
5391 about) is DestroyNotify. The code is already structured such
5392 that it assumes we won't be getting a DestroyNotify event for
5393 the window we pass to XDestroyWindow (which is what
5394 StructureNotifyMask is supposed to guarantee.) So, that code
5395 shouldn't be affected by this either.
5397 - Stop selecting VisibilityChangeMask altogether.
5399 We weren't doing anything with the resulting events anyway.
5401 This vastly reduces the number of X requests and events we see
5402 when resizing/laying out a large ui.
5404 2006-10-06 Chris Toshok <toshok@ximian.com>
5406 * ScrollableControl.cs (DisplayRectangle): we need to take into
5407 account the DockPadding regardless of whether or not auto_scroll
5408 == true. rework this slightly to this effect, and fix bug #79606,
5409 and part of #72499 (you can now see the drag handles and drag
5412 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
5414 * ListViewItem.cs: Collections of selected and checked items are now
5415 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
5416 we mark the collection "dirty".
5417 * ListView.cs: Marked collections readonly. Modified UpdateSelection
5418 to only clear SelectedItems when a new item is selected and MultiSelect
5419 is enabled. CheckedItems and SelectedItems now subscribe to Changed
5420 event of ListViewItemCollection, and mark its list dirty whenever
5421 that event is fire. This allows us to return selected/checked items
5422 in the same order as they are in the Items collection. This matches
5425 2006-10-06 Chris Toshok <toshok@ximian.com>
5427 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
5428 right mouse clicks. Fixes bug #79593.
5430 2006-10-06 Chris Toshok <toshok@ximian.com>
5432 * Splitter.cs: doh, fix splitters that don't want to cancel the
5433 movement when you drag them. Also, impose the limits on the
5434 values we send to the SplitterMovingEvent. Fixes #79598.
5436 2006-10-06 Jackson Harper <jackson@ximian.com>
5438 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
5439 since we use this for auto scrolling also.
5441 2006-10-05 Chris Toshok <toshok@ximian.com>
5443 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
5444 beginning to think that most datagrid column types don't need this
5445 method. Fixes bug #79392.
5447 2006-10-05 Chris Toshok <toshok@ximian.com>
5449 * DataGrid.cs: move back to a more lazy scheme for creating the
5450 CurrencyManager, so we aren't updating it every time you set
5451 either DataSource or DataMember. Also, don't call
5452 RecreateDataGridRows if the currency manager hasn't changed.
5454 2006-10-05 Chris Toshok <toshok@ximian.com>
5456 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
5457 emitted, SelectedIndex should already be updated. Fixes bug
5460 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
5462 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
5463 ToolStripTextBox.cs: Initial commit.
5464 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
5466 2006-10-05 Jackson Harper <jackson@ximian.com>
5468 * TabControl.cs: We need to invalidate the tab control area when
5469 new ones are added (duh).
5471 2006-10-03 Chris Toshok <toshok@ximian.com>
5473 * Form.cs (ProcessDialogKey): if the focused control is in this
5474 form and is a button, call its PerformClick method here. Fixes
5477 2006-10-04 Jackson Harper <jackson@ximian.com>
5479 * TabPage.cs: Ignore setting of Visible, and add an internal
5480 method for setting the controls visibility. TabPage's Visible
5481 property is a little strange on MS, this seems to make us
5482 compatible, and fixes cases where people set all the tab pages to
5484 * TabControl.cs: Use the new internal setting on tab pages
5487 2006-10-03 Mike Kestner <mkestner@novell.com>
5489 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
5491 2006-10-03 Mike Kestner <mkestner@novell.com>
5493 * ListView.cs : use is_visible instead of Visible to check if
5494 scrollbars should be placed/sized. Also some max_wrap_width
5495 love for LargeIcon view. [Fixes #79533]
5497 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
5500 Make set_TextAlign() do actually update the align. Fixed #78403.
5502 2006-10-03 Chris Toshok <toshok@ximian.com>
5504 * DataGrid.cs: fix a crash when switching datasources if the
5505 vertical scrollbar is at someplace other than Value = 0. Also,
5506 reduce the number of recalculation passes we do in SetDataSource
5509 2006-10-03 Jackson Harper <jackson@ximian.com>
5511 * TextBoxBase.cs: Move the if value the same bail check up, we
5512 don't want to empty the document if it is already empty, this
5513 seems to severly mess up the caret. TODO: I should probably fix
5514 the empty statement to update teh caret somehow.
5516 2006-10-03 Chris Toshok <toshok@ximian.com>
5518 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
5519 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
5520 reflection, an internal row type, properties on said type, etc.)
5521 will work with our datagrid. Fixes #79531.
5523 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
5525 * FileDialog.cs: Don't crash if a path is not accessible
5526 (System.UnauthorizedAccessException). Fixes #79569.
5527 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
5528 a ':' too. Return unknown icon for those paths/files.
5530 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
5532 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
5533 GetContainerControl returns null.
5535 2006-10-02 Chris Toshok <toshok@ximian.com>
5537 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
5538 call to XGetWindowAttributes instead of "handle". fixes an X
5539 error using notifyicon after the NotifyIconWindow to Form base
5542 2006-10-02 Chris Toshok <toshok@ximian.com>
5544 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
5545 server grab and looping we need to do to get down to the most
5546 deeply nested child window.
5547 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
5548 QueryPointer again after the WarpPointer so we can generate a
5549 proper (fake) MotionNotify event to be enqueued in the destination
5551 (GetCursorPos): call QueryPointer.
5555 2006-10-02 Jackson Harper <jackson@ximian.com>
5557 * NotifyIcon.cs: Derive the notify icon from a form, so things
5558 like FindForm work on it.
5559 - Swallow the WM_CONTEXTMENU message, since that is generated on
5560 mouse down, and context menu is a mouse up kinda guy. I believe
5561 the correct fix here is probably to make the notify icon entirely
5562 NC area, but this seems to work fine for anyone not manipulating
5565 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
5567 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
5568 ToolStripItemCollection.cs, ToolStripLabel.cs,
5569 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
5570 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
5571 Initial implementation.
5572 * TextRenderer.cs: Provide padding to MeasureText.
5574 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
5576 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
5577 of ButtonBaseAccessibleObject. Fix bug #79552.
5579 2006-10-02 Jackson Harper <jackson@ximian.com>
5581 * MdiWindowManager.cs: When maximizing use the containers client
5582 rect, not it's bounds, so nc area is accounted correctly.
5583 - Use the parent form's size for the menu position, since the
5584 client isn't always the full form size.
5586 2006-10-01 Chris Toshok <toshok@ximian.com>
5588 * ScrollableControl.cs: make sure neither right_edge or
5589 bottom_edge are < 0, since they're used as LargeChange for the
5590 horiz/vert scrollbars respectively. Fixes #79539.
5592 2006-10-01 Chris Toshok <toshok@ximian.com>
5594 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
5595 the xplatuix11 code can cause us to destroy/recreate our handle.
5599 - this code can be invoked many times for the same Hwnd. Make
5600 sure we only destroy the client window once (the first time this
5601 method is called). This fixes bug #79544.
5602 - Remove the call to the improperly bound XSync. why we had two
5603 bindings to this, I will never know, but this call resulted in
5604 events being discarded from the queue(!).
5605 - correct a misunderstanding of _XEMBED_INFO - the second atom is
5606 not our current state but the state we wish to be in. So, 0 if
5607 we don't want to be mapped. Change it to 1.
5608 (SystrayRemove): The XEMBED spec makes mention of the fact that
5609 gtk doesn't support the reparent of client windows away from the
5610 embedder. Looking at gtksocket-x11.c seems to agree with this.
5611 The only avenue we have for removing systray icons is to destroy
5612 them. We don't want the handle to go away for good, though, so
5613 call InternalRecreateHandle on the NotifyIconWindow. Fixes
5616 2006-10-01 Chris Toshok <toshok@ximian.com>
5618 * Form.cs (WndProc): inline the native_enabled variable usage into
5619 the cases in which it's used. Fixes #79536.
5621 2006-09-29 Mike Kestner <mkestner@novell.com>
5623 * ListView.cs : toggle the selection state for ctrl clicks in
5624 multiselect mode. [Fixes #79417]
5626 2006-09-29 Mike Kestner <mkestner@novell.com>
5628 * ListView.cs : kill CanMultiSelect and refactor the selection
5629 code to support multiselection in the absence of mod keys. Steal
5630 arrow/home/end keys by overriding InternalPreProcessMessage to
5631 restore regressed keynav behavior.
5634 2006-09-29 Jackson Harper <jackson@ximian.com>
5636 * MdiClient.cs: Repaint the titlebars when the active window is
5639 2006-09-29 Chris Toshok <toshok@ximian.com>
5641 * Application.cs: when entering a runloop with a modal, make sure
5642 the hwnd is enabled. Fixes #79480.
5644 2006-09-29 Chris Toshok <toshok@ximian.com>
5646 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
5647 when ListManager.CanAddRows == false, bump us back one.
5649 * DataGridColumnStyle.cs (ParentReadOnly): remove the
5650 listmanager.CanAddRows check. This makes ArrayLists uneditable
5651 using a datagrid, which is not right.
5652 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
5653 is an IEditable, but call property_descriptor.SetValue regardless.
5656 2006-09-29 Chris Toshok <toshok@ximian.com>
5658 * DataGridBoolColumn.cs: we need to test equality in the face of
5659 possible null values (as is the case with the default NullValue).
5660 This patch keeps us from crashing in that case.
5662 2006-09-29 Jackson Harper <jackson@ximian.com>
5664 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
5665 here, since it will get called for every node collection in the
5666 tree. This is now done in the treeview once the sorting is
5668 * TreeView.cs: Recalculate the visible order, and update the
5669 scrollbars after sorting, set the top nope to the root so that the
5670 recalc actually works.
5672 2006-09-29 Chris Toshok <toshok@ximian.com>
5674 * LinkLabel.cs: more handling of the default link collection in
5675 the face of LinkArea manipulation. The default link collection
5676 contains 1 element (start=0,length=-1). If the user sets LinkArea
5677 to anything and the links collection is the default, clear it.
5678 Then only add the link if its nonempty. Fixes #79518.
5680 2006-09-29 Chris Toshok <toshok@ximian.com>
5682 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
5683 piece correctly when we hit a '\n'. Fixes #79517.
5685 2006-09-29 Chris Toshok <toshok@ximian.com>
5687 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
5688 change the binding of gdk_init_check to take two IntPtr's, and
5689 pass IntPtr.Zero for both of them. Fixes #79520.
5691 2006-09-29 Mike Kestner <mkestner@novell.com>
5693 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
5696 2006-09-28 Jackson Harper <jackson@ximian.com>
5698 * XplatUIX11.cs: When translating NC messages make sure we go from
5699 whole window to screen, not client window to screen.
5700 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
5701 method doesn't exist
5702 - Skip over controls that aren't forms when arranging.
5704 2006-09-28 Jackson Harper <jackson@ximian.com>
5706 * XplatUIWin32.cs: Clip the rect to the parent window.
5707 * XplatUIStructs.cs: Add clipping modes struct.
5708 * InternalWindowManager.cs: New private method that factors title
5709 bar heights in when calculating the pos of an NC mouse message.
5710 - Use SendMessage to force a paint when the form's size is changed
5711 instead of painting the decorations immediately.
5712 - Don't let the NC button click messages get to DefWndProc,
5713 because they will attempt to handle windowing themself, and this
5714 messes up z-order (it will put them in front of the scrollbars).
5715 * XplatUIX11.cs: Make sure that we don't reset window managers if
5716 we already have one (ie the window is an MDI window).
5718 2006-09-28 Chris Toshok <toshok@ximian.com>
5720 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
5721 menu code really needs going over.
5723 2006-09-27 Chris Toshok <toshok@ximian.com>
5725 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
5726 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
5727 window is maximizable. So, we need to make sure that even if we
5728 clear the border/wm frame of those functions, they're still
5729 available (basically, we remove the decoration without removing
5730 the function). Half the fix for #79338.
5732 2006-09-27 Chris Toshok <toshok@ximian.com>
5734 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
5737 2006-09-27 Chris Toshok <toshok@ximian.com>
5739 * Splitter.cs: reorder things a bit so that we don't actually
5740 draw/move the splitter until after calling OnSplitterMoving. This
5741 lets users cancel/disallow the movement by explicitly setting
5742 event.SplitX/SplitY. Fixes #79372.
5744 2006-09-27 Jackson Harper <jackson@ximian.com>
5746 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
5747 because it is most likely on a window being destroyed, and that
5748 will give us an X11 error.
5750 2006-09-27 Chris Toshok <toshok@ximian.com>
5752 * PropertyGridView.cs: half of the fix for #78190. Clicking on
5753 the dropdown button now toggles between showing and hiding the
5754 dropdown. Also, get rid of dropdown_form_showing and just use
5755 dropdown_form.Visible. We still don't do a grab, but I'll leave
5756 that part to someone who has handled Capture-fu before.
5758 2006-09-27 Chris Toshok <toshok@ximian.com>
5760 * DataGrid.cs: return false if alt isn't pressed when '0' is
5761 pressed. this keeps the '0' key from being swallowed, and fixes
5764 2006-09-27 Chris Toshok <toshok@ximian.com>
5766 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
5767 Calling Refresh (in response to a scrollbar event) screws up the
5768 scrollbar painting. Fixes bug #78923.
5770 2006-09-27 Chris Toshok <toshok@ximian.com>
5772 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
5773 then insert into hashtable" blocks threadsafe.
5775 2006-09-27 Chris Toshok <toshok@ximian.com>
5777 * MessageBox.cs (CreateParams): the styles should be |'ed with our
5778 baseclass's, since otherwise the
5779 ControlBox/MinimizeBox/MaximizeBox assignments above have no
5780 effect. This gets the close button back in messageboxes.
5782 2006-09-27 Chris Toshok <toshok@ximian.com>
5784 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
5785 flag, not just != 0. this makes flags that are actually multiple
5786 bits (like WS_CAPTION) work. fixes bug #79508.
5788 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
5790 * PageSetupDialog.cs: add support for getting and settings the
5791 paper size, source and orientation.
5793 2006-09-26 Chris Toshok <toshok@ximian.com>
5795 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
5796 and caption == "", we need to remove the resize handles as well as
5799 * Control.cs (set_Text): turns out that setting Text on a form
5800 should change the WM styles on the window, since if ControlBox ==
5801 false, the only way to get a window border is to have a non-""
5802 Text property. check winforms/forms/text.cs for an example. so,
5803 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
5804 update both window styles and title. This fixes a lot of dialogs
5805 (including the preferences dialog in MonoCalendar.)
5807 2006-09-26 Chris Toshok <toshok@ximian.com>
5809 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
5810 control isn't a Form), call Win32ShowWindow to hide the window,
5811 but don't update the control Visible property. When we reparent
5812 back to a parent control, call SetVisible in order for the
5813 window's visibility to be reinstated.
5815 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
5818 * Control.cs (ControlCollection.Remove): remove that value.Hide()
5819 call for good, since it breaks MonoCalendar (and other things I'm
5820 sure.) Also, set all_controls to null *after* the owner calls,
5821 which end up regenerating it.
5822 (ChangeParent): allow new_parent to be == null, passing
5823 IntPtr.Zero down to XplatUI.
5825 this fixes #79294 the right way.
5827 2006-09-26 Mike Kestner <mkestner@novell.com>
5829 * GridEntry.cs : internal SetParent method.
5830 * PropertyGrid.cs : attach to property changed on the proper
5831 target if we have a hierarchical grid with subobjects. Setup
5832 GridItem.Parent for hierarchical items.
5833 * PropertyGridView.cs : Set value on the correct target for
5834 hierarchical grids. [Fixes #78903]
5836 2006-09-26 Chris Toshok <toshok@ximian.com>
5838 * Control.cs (ChildNeedsRecreating): this should return true if
5839 either we're being recreated and the child is in our list, or our
5840 parent is waiting for our recreation.
5842 2006-09-26 Chris Toshok <toshok@ximian.com>
5844 * Control.cs (ControlCollection.Remove): reinstate the
5845 value.Hide() call as suggested in bug #79294.
5847 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
5849 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
5850 coordinates (versus a relative move).
5852 2006-09-26 Chris Toshok <toshok@ximian.com>
5854 * Control.cs: rework child recreation a little bit. It turns out
5855 that we race between the DestroyNotify the WM_DESTROY message. If
5856 the parent gets its DestroyNotify before the child gets the
5857 WM_DESTROY message, the child ends up not recreating (since the
5858 parent finishes its recreation on DestroyNotify, and the child
5859 checks ParentIsRecreating.)
5861 So, instead we store off a list of all the child controls which
5862 need to be recreated when the parent control starts to recreate
5863 itself. Then, when child controls get their WM_DESTROY message we
5864 check to see if they're in the parent's pending recreation list,
5865 and if so, we recreate. This removes all dependency on ordering
5866 from the code and fixes the initial MonoCalendar upgrade dialog.
5868 2006-09-26 Jackson Harper <jackson@ximian.com>
5870 * TextControl.cs: Use the Line to get the length of the line,
5871 since soft line breaks can change the end line.
5873 2006-09-26 Chris Toshok <toshok@ximian.com>
5875 * Control.cs (ControlCollection.AddImplicit): don't add the
5876 control again if it's already in one of our lists. This keeps us
5877 from adding controls over and over again for comboboxes when their
5878 handle gets recreated (as the combobox adds implicit controls in
5879 OnHandleCreated). Fixes the X11 errors in bug #79480.
5881 2006-09-26 Jackson Harper <jackson@ximian.com>
5883 * TextControl.cs: When deleting characters make sure that any
5884 orphaned zero lengthed tags get deleted.
5885 - Fix ToString for zero lengthed tags.
5887 2006-09-25 Jackson Harper <jackson@ximian.com>
5889 * TextControl.cs: When getting a tag at the location there can be
5890 multiple tags at the same spot, these are 0-lengthed tags that
5891 appear when extra formatting has been stuck in a location. We
5892 need to pull out the last of these 0 lengthed tags.
5894 2006-09-25 Jackson Harper <jackson@ximian.com>
5896 * TextControl.cs: Fix print out in debug method.
5897 * TextBoxBase.cs: When text is set bail if we are setting to the
5900 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
5902 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
5903 It is now possible to change the selected index in a FontXXXListBox
5904 with the up and down arrow keys from the FontXXXTextBoxes.
5905 Also, send the FontXXXTextBox mouse wheel event to the corresponding
5906 FontXXXListBoxes to match ms.
5908 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
5910 * SystemInformation.cs: Return a clone of the theme's MenuFont because
5911 anyone can dispose it, anytime. All other properties returns enums,
5912 structs or basic types so they don't need such tricks.
5914 2006-09-22 Jackson Harper <jackson@ximian.com>
5921 * XplatUIDriver.cs: Update interface to add a primary selection
5922 flag, so the driver can use the primary selection buffer if
5924 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
5926 * RichTextBox.cs: We need to supply the data object to paste now
5927 (so we can choose to supply CLIPBOARD or PRIMARY).
5928 * TextBoxBase.cs: Supply data object to paste (see above).
5929 - Middle click uses the primary selection data object.
5931 2006-09-21 Chris Toshok <toshok@ximian.com>
5933 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
5934 of SetWMStyles. It's still a rat's nest and is largely
5935 order-dependent which I dislike immensely. This also fixes the X
5936 button disappearing from toplevel forms.
5938 2006-09-21 Mike Kestner <mkestner@novell.com>
5940 * ListBox.cs: move Jordi's click/dblclick raising code to the
5943 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
5945 * ListBox.cs: Fixes 79450
5947 2006-09-21 Mike Kestner <mkestner@novell.com>
5949 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
5950 to deal with people updating the TreeNodeCollection after the tree
5951 is disposed. "Fixes" 79330.
5953 2006-09-20 Jackson Harper <jackson@ximian.com>
5955 * TextControl.cs: Push the cursor record onto the undo stack
5956 before the delete action. This fixes 78651.
5958 2006-09-20 Jonathan Chambers <joncham@gmail.com>
5960 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
5961 CreateParams. Fixes 79329.
5963 2006-09-19 Chris Toshok <toshok@ximian.com>
5965 * XplatUIX11.cs: a couple of blanket code massage passes to clean
5966 things up a bit. First, get rid of the NetAtoms array (and the NA
5967 enum), and just embed the atoms as static fields. Also, add a
5968 couple of functions (StyleSet and ExStyleSet) to clean up all the
5969 bitmask testing of styles.
5971 * X11Structs.cs: remove the NA enum, not needed anymore.
5973 2006-09-19 Chris Toshok <toshok@ximian.com>
5975 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
5976 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
5977 added cleanup to get MessageBox titles appearing again, which were
5978 broken by my earlier fix for caption-less/ControlBox-less windows.
5980 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
5982 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
5983 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
5984 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
5985 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
5986 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
5987 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
5988 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
5989 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
5990 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
5991 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
5992 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
5994 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
5995 ToolStripButton.cs: Stubs needed for above.
5996 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
5998 2006-09-15 Chris Toshok <toshok@ximian.com>
6001 - make the MessageQueues hashtable Synchronized.
6003 - SendMessage: if the Hwnd is owned by a different thread, use the
6004 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
6005 thread. Fixes bug #79201.
6007 2006-09-15 Chris Toshok <toshok@ximian.com>
6009 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
6010 ControlBox == false, we disallow maximize/minimize/close. If the
6011 form Caption is "" we also disallow move (and get rid of the Title
6012 decoration). Unfortunately, regardless of how things are set,
6013 we're stuck with the Title and WM menu.
6015 2006-09-15 Chris Toshok <toshok@ximian.com>
6017 * Application.cs: add locking around the static message_filters
6018 ArrayList, part of #79196.
6020 2006-09-15 Chris Toshok <toshok@ximian.com>
6022 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
6023 Form.ControlBox == false, the window has no titlebar nor resize
6024 handles. fixes bug #79368.
6026 2006-09-15 Chris Toshok <toshok@ximian.com>
6028 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
6029 >= 0. Fixes bug #79370.
6031 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
6032 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
6034 Add properties: LayoutEngine, Margin, DefaultMargin.
6035 Add method: GetPreferredSize.
6036 Move layout logic from PerformLayout to layout engines.
6038 2006-09-13 Chris Toshok <toshok@ximian.com>
6040 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
6041 fix for #79326 broke #78718, so this change addresses that.
6043 - in SendWMDestroyMessages remove the call to
6044 CleanupCachedWindows, since we might be recreating the control and
6045 need to maintain the references to right Hwnd handles. Also, set
6046 the zombie flag to true for each of the children in the hierarchy
6047 instead of calling hwnd.Dispose. This will cause GetMessage to
6048 ignore all events for the window except for DestroyNotify.
6050 - In GetMessage, ignore messages except for DestroyNotify for
6053 * Control.cs: revert the is_recreating fix from the last
6054 ChangeLog. It's definitely "right", but it breaks switching from
6055 an MDI form to a non-MDI form. Will need to revisit that.
6057 * Hwnd.cs: add a zombie flag, which means "the
6058 client_window/whole_window handles are invalid, but we're waiting
6059 for the DestroyNotify event to come in for them". Set the flag to
6060 false explicitly if setting WholeWindow/ClientWindow, and also
6063 2006-09-13 Chris Toshok <toshok@ximian.com>
6065 * XplatUIX11.cs: rework window destruction slightly.
6067 - when destroying the windows associated with a control, we don't
6068 need 2 separate XDestroyWindow calls. Just the one for the
6069 whole_window (or for client_window if whole_window is somehow
6070 IntPtr.Zero -- can this happen?) is enough.
6072 - reworked SendWMDestroyMessages slightly, so we always dispose
6073 the child control hwnd's after sending the messages.
6075 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
6076 the two places it was used (one was even using hwnd.Handle and the
6077 other hwnd.client_window. ugh), adding another call in
6078 SendWMDestroyMessages. We need this new call because now the
6079 DestroyNotify events in the queue will be ignored for the child
6080 controls (as their hwnd's were disposed, and the window id's
6081 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
6083 - this fixes bug #79326.
6085 2006-09-13 Chris Toshok <toshok@ximian.com>
6087 * Control.cs: don't always set is_recreating to false at the end
6088 of RecreateHandle, since sometimes we're not done (and won't be
6089 until WndProc handles the WM_DESTROY message). Also, set
6090 is_recreating to false in the WM_DESTROY handling code. Part of
6091 the fix for bug #79326.
6093 2006-09-13 Miguel de Icaza <miguel@novell.com>
6095 * X11DesktopColors.cs: Start the droppage of debugging messages.
6097 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
6099 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
6101 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
6103 2006-09-12 Chris Toshok <toshok@ximian.com>
6105 * DataGrid.cs (get_ListManager): if the list_manager is null, try
6106 to create it using SetDataSource. Fixes bug #79151.
6108 2006-09-11 Chris Toshok <toshok@ximian.com>
6110 * XEventQueue.cs: add a DispatchIdle property.
6112 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
6113 either the queue is null, or the queue has DispatchIdle set to
6115 (DoEvents): set queue.DispatchIdle to false around the
6116 peek/translate/dispatch message loop in this method. This keeps
6117 Application.Doevents from emitting idle events. Part of the fix
6120 2006-09-11 Chris Toshok <toshok@ximian.com>
6122 * DataGrid.cs (set_DataSource): make this work for both the
6123 winforms/datagrid test and ReportBuilder. It seems as though when
6124 we've created a ListManager (or maybe it's if we have a
6125 BindingContext?), when we set the DataSource it clears the
6126 DataMember to "". otherwise we reuse the datamember. Fixes bug
6129 2006-09-11 Chris Toshok <toshok@ximian.com>
6131 * XplatUIX11.cs: deal with queue being null, which happens in all
6132 the Clipboard functions. Fixes one of the two problems mentioned
6135 2006-09-11 Chris Toshok <toshok@ximian.com>
6137 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
6138 button on various spots (including outside the menu) works closer
6139 to MS, and doesn't crash. Fixes #79343.
6141 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
6143 * ListView.cs: Do not initialize item_sorter in init. To match MS,
6144 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
6145 and the internal comparer is set. When a new ListViewItemSorter is set,
6146 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
6147 was specified. No further processing is necessary if SortOrder is set
6148 to it's current value. If Sorting is modified to None, and View is
6149 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
6150 (either custom or our internal ItemComparer) to null, on 1.0 profile
6151 only set item_sorter to null if its our internal IComparer. If Sorting
6152 is modified to Ascending or Descending, then use our internal IComparer
6153 if none is set, and if the current IComparer is our internal one then:
6154 on 2.0 profile always replace it with one for new Sorting, and on 1.0
6155 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
6156 Enum.IsDefined to verify whether a valid View value is specified in
6157 its setter. Automatically sort listview items when listview is
6158 created. In Sort, do nothing if ListView is not yet created, or if
6159 no item_sorter is set (no Sorting was set, Sorting was explicitly set
6160 to None or ListViewItemSorter was set to null). Added Sort overload
6161 taking a bool to indicate whether the ListView should be redrawn when
6162 items are sorted (we use this in ListViewItemCollection to avoid double
6163 redraws). Modified our internal IComparer to take the sort order into
6164 account. In Add and AddRange methods of ListViewItemCollection, also
6165 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
6166 view), but use overload with noredraw option to avoid double redraw.
6167 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
6168 true when View is Tile, and do the same when attempting to set View to
6169 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
6170 for selected/checked indices, as it involves overhead when sorting is
6171 done while these collections are not used all that often. Instead
6172 we'll build the indices on demand. Modified IList implementation of
6173 CheckedIndexCollection to use public methods if object is int.
6174 Modified CheckedListViewItemCollection to hide checked items if
6175 ListView.CheckBoxes is false. Removed LAMESPEC remark in
6176 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
6177 IList implementation in SelectedIndexCollection to use public methods
6178 if object is int. Modified SelectedListViewItemCollection to hide
6179 selected items if listview is not yet created.
6180 * ListViewItem.cs: CheckedIndices list no longer needs to be
6181 maintained separately (see ListView changes). Also clone font, fixes
6184 2006-09-11 Mike Kestner <mkestner@novell.com>
6186 * ComboBox.cs: if we are updating the contents of the currently
6187 selected index, refresh the control or the textbox selection.
6190 2006-09-11 Mike Kestner <mkestner@novell.com>
6192 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
6193 the 'specified' logic has been moved there. This seems like a bug
6194 in Control.cs, since our current SetBoundsCore completely ignores
6195 the specified parameter. Peter's commit seems to indicate that is
6196 the way the MS control implementation works. [Fixes #79325]
6198 2006-09-10 Jonathan Chambers <joncham@gmail.com>
6200 * XplatUI.cs: Set default_class_name to be composed
6201 of current domain id. This allows MWF to be loaded in multiple
6204 2006-09-09 Miguel de Icaza <miguel@novell.com>
6206 * X11Keyboard.cs: If we are unable to obtain the input method, do
6207 not call CreateXic to create the input context. Should fix
6210 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
6212 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
6213 Simplified gnome support by adding more pinvokes to get the
6214 icon for a file or mime type.
6216 2006-09-08 Jackson Harper <jackson@ximian.com>
6218 * MenuAPI.cs: Deslect popup context menu items before closing the
6219 window, so that you don't see the previously selected item
6220 selected when you reopen the menu.
6221 * TextControl.cs: Update the cursor position even if we don't have
6222 focus. This fixes typing in things like the ComboBox. I'm not
6223 totally sure we should always set the visibility if we don't have
6224 focus, but couldn't find any corner cases where the cursor showed
6225 up when it shouldn't.
6227 2006-09-08 Chris Toshok <toshok@ximian.com>
6229 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
6230 our arrays are length 256. & 0xff before indexing. Fixes the
6231 crash in bug #78077.
6233 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6235 * ThemeWin32Classic.cs:
6236 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
6237 is true. Handle that check box too.
6239 2006-09-07 Chris Toshok <toshok@ximian.com>
6241 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
6244 2006-09-07 Chris Toshok <toshok@ximian.com>
6246 * Control.cs: in set_BackColor only do the work if
6247 background_color != value.
6249 * XplatUIX11.cs: move the clearing of invalid areas (both client
6250 and nc) to the same block of code where we set (nc_)expose_pending
6251 to false. That is, move it from PaintEventEnd to PaintEventStart,
6252 so things that cause invalidates from within OnPaint will trigger
6253 another call to OnPaint. Fixes bug #79262.
6255 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
6257 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
6258 * FileDialog.cs: Fix typo
6260 2006-09-07 Jackson Harper <jackson@ximian.com>
6262 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
6263 for tab pages if they have any.
6265 2006-09-06 Mike Kestner <mkestner@novell.com>
6267 * Splitter.cs: use the "current" rect when finishing drag handle
6268 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
6270 2006-09-06 Mike Kestner <mkestner@novell.com>
6272 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
6273 support offset splitters. [Fixes #79298]
6275 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
6277 * Mime.cs: Fixed a bug that could override the global mime type
6280 2006-09-05 Jackson Harper <jackson@ximian.com>
6282 * TabControl.cs: Better calculation method for setting the slider
6283 pos. Prevents crashes on really wide tabs.
6284 - Draw Image on tab pages if an image list is used.
6286 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6288 * MonthCalendar.cs: When Font changes, the Size should be
6289 updated to fit the new font's space requirements.
6291 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
6293 * ListBox.cs: If the items are cleared with Items.Clear set
6296 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6298 * MonthCalendar.cs: Handle arrow keys as input keys. Also
6299 fire DateChanged event instead of DateSelected event when
6300 the date was changed by keyboard interaction.
6302 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6304 * DateTimePicker.cs: Handle DateChanged for the associated
6305 month_calendar control, and set month_calendar.Font from
6306 OnFontChanged method, as well as resize the height of the
6307 control when needed. Make PreferredHeight proportional.
6309 2006-09-01 Chris Toshok <toshok@ximian.com>
6311 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
6314 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
6316 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
6318 * FileDialog.cs: Set ClientSize instead of window size, to allow space
6319 for decorations (Fixes #79219)
6321 2006-09-01 Mike Kestner <mkestner@novell.com>
6323 * ComboBox.cs: first stab at sorting plus some selection handling
6324 fixes to bring us more in line with MS behavior. Also switches back
6325 to index based selection. Alternative patches for index-based
6326 selection were provided by Jackson Harper, Carlos Alberto Cortez,
6327 and latency@gmx.de on bug 78848. I assume they were similar to this
6328 code I've had simmering in my tree forever.
6331 2006-09-01 Chris Toshok <toshok@ximian.com>
6333 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
6334 when setting list position guard against ending up with a -1 index
6335 (the other part of the fix for #78812). Should probably make sure
6336 we don't need the analogous fix in the ItemDeleted case.
6339 - in SetDataSource, work around the fact that the way
6340 OnBindingContextChanged is invoked will cause us to re-enter this
6341 method. I'll remove the hack once I investigate
6342 OnBindingContextChanged.
6344 - fix the logic in set_DataSource and set_DataMember (basically
6345 what to do if the other of the two is null.)
6347 - in OnListManagerItemChanged, we need to take into account the
6348 edit row when deciding whether or not to call RecreateDataGridRows
6349 (part of the fix for #78812).
6351 2006-09-01 Jackson Harper <jackson@ximian.com>
6353 * Splitter.cs: Don't do anything if there is no control to affect
6354 (prevents us from crashing in weird tet cases).
6355 * TreeView.cs: Bounding box for the mouse movement reverting
6356 focus/selection back to previously selected node. This matches
6357 MS, and makes the tree a lot more useable.
6358 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
6359 use clipping so they are not drawn. This fixes when the control
6360 is set to have a transparent background, or if it was over an
6363 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
6365 * MimeIcon.cs: Improved handling for reading default icons when
6366 using gnome (2.16 made it necessary). Check and read svg icons
6367 first, then 48x48 and then 32x32 icons.
6369 2006-08-31 Chris Toshok <toshok@ximian.com>
6371 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
6374 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
6375 ProcessKeyPreview. Fixes part of #77806.
6377 * DataGrid.cs: big patch.
6379 - revert the queueing up of DataSource/DataMember if inside
6380 BeginInit/EndInit calls. That's not the way the datagrid achieves
6381 its delayed databinding. Instead, call SetDataSource in
6382 OnBindingContextChanged. This mimic's MS's behavior, and fixes
6385 - Also, it wasn't mentioned in #78811, but the test case exhibits
6386 behavior that was lacking in our datagrid implementation - Columns
6387 that have mapping names that don't exist in the datasource's
6388 properties aren't shown. Yuck. To fix this I added the bound
6389 field to the column style, and basically any calculation to figure
6390 out anything about columns uses a loop to find the bound columns.
6391 still need to investigate if I can cache an array of the bound
6392 columns or if the indices must be the same.
6394 - When setting CurrentCell, we no longer abort if the cell being
6395 edited was in the add row. This fixes the other part of #77806.
6397 - The new code also fixes #78807.
6399 * ThemeWin32Classic.cs: perpetrate the same disgusting
6400 column.bound field hack, and only render bound fields.
6402 2006-08-31 Chris Toshok <toshok@ximian.com>
6404 * DataGridColumnStyle.cs: add bound field. this field is true if
6405 the datasource has a property corresponding to the mapping name.
6407 * DataGridTableStyle.cs: set the bound field on the column styles
6408 depending on whether or not we have a column for that property.
6410 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
6412 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
6413 splitter control (fixes #79228)
6415 2006-08-31 Chris Toshok <toshok@ximian.com>
6417 * DataGridColumnStyle.cs: we need to delay the assignment of
6418 property descriptor until the last possible moment due to the lazy
6419 databinding stuff in the datagrid. Also, fix the exceptions
6420 thrown by CheckValidDataSource to match MS.
6422 2006-08-31 Jackson Harper <jackson@ximian.com>
6424 * Form.cs: When activated select the active control, if there is
6425 no active control, we select the first control.
6426 * XplatUIX11.cs: If there is no focus control when we get a
6427 FocusIn event, find the toplevel form and activate it. This
6428 occurs when you popup a window, it becomes the focus window, then
6429 you close that window, giving focus back to the main window.
6431 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6434 * ThemeWin32Classic.cs: Cache Font in bold style, as well
6435 as StringFormat with Center alignments in MonthCalendar,
6436 instead of creating new ones when drawing the control.
6437 Also, draw the month name in bold style.
6439 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
6442 - PerformLayout(): It would seem MS performs the fill even if the
6443 control is not visible (part of #79218 fix)
6444 - ResetBackColor(): Use the setter to reset the color, to allow
6445 overriders to catch the change.
6447 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
6448 - CreateHandle(): dito (part of $79218 fix)
6449 - Don't set an icon if we have a dialog
6450 * ScrollableControl.cs:
6451 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
6452 - ScrollIntoView(): No need to scroll if control is already visible
6453 (resolves fixme and fixes #79218)
6455 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6457 * MonthCalendar.cs: Change proportions in SingleMonthSize
6458 to match the aspect of the original control.
6460 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
6462 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
6463 get updated when they get maximized.
6465 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
6467 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
6469 2006-08-29 Chris Toshok <toshok@ximian.com>
6471 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
6473 2006-08-29 Jackson Harper <jackson@ximian.com>
6475 * TreeView.cs: Need to track selected node and highlighted node,
6476 they aren't always the same thing, when the mouse is down on a
6477 node it is hilighted, but not selected yet.
6478 - Do the HideSelection stuff right
6479 - Need to focus on rbutton mouse down. And redraw selection when
6480 right click is mouse upped.
6482 2006-08-29 Mike Kestner <mkestner@novell.com>
6484 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
6485 when SubItems.Count < Columns.Count. [Fixes #79167]
6487 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
6489 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
6491 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
6493 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
6494 from X. Only send based on ConfigureNotify if we don't have the
6495 correct location in hwnd (if the window manager moved us)
6497 2006-08-28 Mike Kestner <mkestner@novell.com>
6499 * ListView.cs: remove a TODO.
6500 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
6501 [Fixes ListView part of #79166]
6503 2006-08-28 Mike Kestner <mkestner@novell.com>
6505 * ListView.cs: move wheel handler to parent since it is focused
6506 instead of the item_control now. [Fixes #79177]
6508 2006-08-28 Mike Kestner <mkestner@novell.com>
6510 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
6511 when the control is focused. [Fixes #79171]
6513 2006-08-28 Mike Kestner <mkestner@novell.com>
6515 * ListView.cs: size the item and header controls for empty and
6517 * ThemeWin32Classic.cs: draw disabled backgrounds.
6520 2006-08-28 Chris Toshok <toshok@ximian.com>
6522 * Form.cs: remove unused "active_form" static field.
6524 * Hwnd.cs: lock around accesses to static windows collection.
6526 * Application.cs: lock threads in Exit ().
6528 2006-08-28 Chris Toshok <toshok@ximian.com>
6530 * NativeWindow.cs: lock around accesses to window_collection.
6532 2006-08-28 Chris Toshok <toshok@ximian.com>
6534 * Control.cs: err, fix this the right way, by locking on controls
6535 when using it. not by making it synchronized.
6537 2006-08-28 Chris Toshok <toshok@ximian.com>
6539 * Control.cs: make the static "controls" field synchronized, as it
6540 gets updated from multiple threads.
6542 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
6544 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
6545 Prevent other threads from exiting when calling thread sets quit state.
6546 * XEventQueue.cs: Added PostQuitState property
6548 2006-08-27 Chris Toshok <toshok@ximian.com>
6550 * AsyncMethodData.cs: add a slot for the window handle.
6552 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
6553 window (the destination control's window, not the foster window).
6555 * Control.cs (BeginInvokeInternal): store the window's handle in
6556 the AsyncMethodData.
6559 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
6562 - PostQuitMessage: Removed resetting S.D display handle, we might have
6563 another loop started after calling PostQuitMessage (Fixes #79119)
6564 - Created destructor to reset S.D handle
6566 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
6568 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
6570 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6572 * TextControl.cs (Insert): Update the caret position even if we don't
6573 have a handle yet, just don't call the driver in that case.
6574 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
6575 to the end of the new selection text (Fixes #79184)
6577 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6579 * Form.cs (Activate): Only activate if the handle is created)
6581 - Mark window as invisible when it's disposed
6582 - Check if window handle is created when setting window visible,
6583 instead of relying just on the is_created variable
6584 - Check if object is disposed when creating the control (Fixes #79155)
6586 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6588 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
6589 when allowing layout again. Otherwise we re-generate the anchoring
6590 distance to the border again and actually alter what the user wanted
6591 This is ugly, it'd be better if we used DisplayRectangle instead of
6592 ClientRectangle for Control.UpdateDistances, but that causes us to
6593 have other problems (initial anchoring positons would be wrong)
6596 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6599 - The size and location setters shouldn't go directly to
6600 SetBoundsCore, but to SetBounds, which triggers layout on the
6601 parent, then calls SetBoundsCore. (Related to fix for #78835)
6602 - SetBounds: Moved actual location update code into this function
6603 from SetBoundsCore, to match MS. Added call to PerformLayout if
6604 we have a parent (to trigger resizing of anchored parents if the
6605 child size has changed (see testcase for #78835)
6606 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
6608 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
6610 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6612 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
6613 System.Drawing when a toplevel window gets closed; there might
6614 be other toplevel windows belonging to the same app (Fixes #78052)
6616 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
6618 * FileDialog.cs: After reading FileDialog settings from mwf_config
6619 use Desktop prefix only if a real folder doesn't exist anymore.
6620 * FontDialog.cs: Added char sets.
6621 It is now possible to select the font, size or style with the
6624 2006-08-25 Kornél Pál <kornelpal@gmail.com>
6626 * PrintPreviewDialog.cs: Use assembly name constants.
6628 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6630 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
6631 scrollbar from whacking it's buttons)
6633 2006-08-24 Chris Toshok <toshok@ximian.com>
6635 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
6636 in this patch (aggregating setting Left/Top/Width/Height to
6637 setting Bounds on the scrollbars), but the crux of the fix is in
6638 Recalculate, where we scroll by the remaining scroll_position if
6639 we're hiding a scrollbar. The 2*$5 reward in the comment is
6642 2006-08-24 Jackson Harper <jackson@ximian.com>
6645 * MdiWindowManager.cs: If the form is made a non-mdi window we
6646 need to remove the form closed event so that closing forms works
6649 2006-08-24 Jackson Harper <jackson@ximian.com>
6651 * Control.cs: Make IsRecreating internal so that the driver can
6653 - Temporarily remove the Hide when controls are removed, its
6654 making a whole bunch of things not work because visibility isn't
6655 getting reset elsewhere correctly
6656 * Form.cs: Need to do a full handle recreation when the mdi parent
6658 * XplatUIX11.cs: If we are recreating handles don't dispose the
6659 HWNDs. What was happening is the handles were being recreated in
6660 SendWMDestroyMessages, but then flow continued on in that method
6661 and destroyed the new handles.
6663 2006-08-23 Jackson Harper <jackson@ximian.com>
6665 * Form.cs: MdiClient is always at the back of the bus
6666 * Control.cs: When the order of items in the collection is changed
6667 we need to reset the all_controls array
6668 - do the same sorta setup thats done when adding a control when a
6669 control is set on the collection.
6671 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6673 * TextBoxBase.cs (get_Text): Return an empty array if our document
6674 is empty (fixes #79052)
6676 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6678 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
6679 on WM_SYSCHAR messages (fixes #79053)
6681 2006-08-23 Chris Toshok <toshok@ximian.com>
6683 * DataGrid.cs: fix flickering when scrolling vertically.
6685 2006-08-23 Chris Toshok <toshok@ximian.com>
6687 * DataGrid.cs (EndEdit): only invalidate the row header when we
6690 2006-08-23 Chris Toshok <toshok@ximian.com>
6692 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
6693 methods. fixes the flicker when scrolling around.
6695 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6697 * FileDialog.cs: Making sure the control is created before we get a
6698 chance to use it with BeginInvoke (Fixes #79096)
6700 2006-08-23 Chris Toshok <toshok@ximian.com>
6702 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
6703 width to use when painting the rows.
6705 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
6708 - Throw ArgumentException if a negative value is passed to SelectionLength
6709 - Update the selection end if start is moved. end needs to be always
6710 after start. (Fixes #79095)
6711 - Track selection length; MS keeps the selection length even if start
6712 is changed; reset on all other operations affection selection
6714 2006-08-22 Jackson Harper <jackson@ximian.com>
6716 * TreeView.cs: Make sure both scrollbars get displayed and sized
6717 correctly when the other bar is visible.
6718 - Use the original clip rectangle for checking if the area between
6719 the two scrollbars is visible, not the viewport adjusted clipping
6722 2006-08-22 Jackson Harper <jackson@ximian.com>
6724 * Binding.cs: We don't use IsBinding because it requires the
6725 control to be created, which really shouldn't be necessary just to
6726 set a property on the control.
6728 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6730 * ComboBox.cs: Some CB.ObjectCollection methods must throw
6731 ArgumentNullReferenceException when the argument is null.
6733 2006-08-21 Jackson Harper <jackson@ximian.com>
6735 * Timer.cs: Track the thread that the timer is started in (NOT
6736 CREATED), this way messages for it will only be triggered on its
6738 * XEventQueue.cs: Track the timers here, this makes timers per
6740 * XplatUIX11.cs: The timers are moved to the XEventQueue.
6742 2006-08-19 Chris Toshok <toshok@ximian.com>
6744 * XplatUIX11.cs: after further communication with pdb, we get the
6745 best of both worlds. SetZOrder working for un-Mapped windows, and
6746 no X errors for un-mapped windows.
6748 2006-08-19 Chris Toshok <toshok@ximian.com>
6750 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
6751 as it was causing pdn toolbars to not have the correct stacking.
6753 2006-08-18 Mike Kestner <mkestner@novell.com>
6755 * ListView.cs : guard against negative ClientArea.Width in scrollbar
6756 calculation. Not sure why control should ever be setting a negative
6757 width though. Fixes #78931.
6759 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6761 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
6762 null items in ObjectCollection class.
6763 * ListBox.cs.: Likewise.
6765 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
6767 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
6768 as the base method in ThemeWin32Classic should work fine.
6771 2006-08-18 Jackson Harper <jackson@ximian.com>
6773 * Binding.cs: When validating if the value entered doesn't convert
6774 properly reset to the old value.
6775 * RadioButton.cs: Don't fire click when we get focus.
6777 2006-08-18 Jackson Harper <jackson@ximian.com>
6779 * FileDialog.cs: Paint the selection on the directory combobox the
6782 2006-08-17 Jackson Harper <jackson@ximian.com>
6784 * ErrorProvider.cs: Don't allow the error control to be selected.
6785 * Control.cs: Don't send the SetFocus messages, the control
6786 activation will do this, and if we do it blindly here validation
6789 2006-08-17 Jackson Harper <jackson@ximian.com>
6792 * ContainerControl.cs: Make validation events fire in the correct
6793 order. TODO: For some reason the first validation event is not
6796 2006-08-17 Mike Kestner <mkestner@novell.com>
6798 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
6800 2006-08-17 Mike Kestner <mkestner@novell.com>
6802 * ComboBox.cs : implement scroll wheel support for popped-down
6803 state. Fixes #78945.
6805 2006-08-17 Jackson Harper <jackson@ximian.com>
6807 * TreeView.cs: Specify treeview actions (old patch that didn't get
6808 committed for some reason).
6809 - Don't let the mouse wheel scroll us too far. Just want to make
6810 the bottom node visible, not scroll it all the ways to the top.
6812 2006-08-17 Jackson Harper <jackson@ximian.com>
6814 * XplatUIX11.cs: Mouse wheel events go to the focused window.
6816 2006-08-17 Mike Kestner <mkestner@novell.com>
6818 * ComboBox.cs : don't do mouseover selection in simple mode.
6820 2006-08-16 Jackson Harper <jackson@ximian.com>
6822 * Form.cs: Fire the closing events for all the mdi child windows
6823 when a window is closed. If the cancel args are set to true, the
6824 main window still gets the event fired, but it doesn't not close.
6825 * MdiWindowManager.cs: Do this closing cleanup in a Closed
6826 handler, instead of when the button is clicked, so cancelling the
6827 close works correctly.
6828 * ComboBox.cs: Send the mouse down to the scrollbar.
6830 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6832 * ListBox.cs: When passing 'null' to SelectedItem,
6833 set SelectedIndex to -1, to unselect items. This is the
6834 observed behaviour in .Net.
6836 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
6838 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
6839 MS flags saying there won't be any. (fixes #78800)
6840 * Control.cs (HandleClick): Made virtual
6842 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
6844 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
6845 cultures. Fixed bug #78399.
6847 2006-08-16 Jackson Harper <jackson@ximian.com>
6849 * Form.cs: Use the MdiClients MdiChildren property to access
6850 MdiChildren instead of creating the array from the child controls.
6851 * MdiClient.cs: Maintain a separate array of the mdi children, so
6852 that insertion order is maintained when the Z-order is changed.
6854 2006-08-16 Mike Kestner <mkestner@novell.com>
6856 * ListView.cs : add an ItemComparer and default to it for sorting.
6857 Fixes #79076, but sorting needs a complete overhaul to be compat with
6860 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
6862 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
6864 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
6866 * Hwnd.cs (Mapped): Properly traverse the tree
6868 2006-08-15 Chris Toshok <toshok@ximian.com>
6870 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
6871 pass manager.Current.GetType() to ParseData. It has to be the
6872 property type. So, hold off doing the ParseData until we're in
6873 SetPropertyValue where we know the type. This fixes the crash in
6874 #78821 but the textbox is still empty.
6876 2006-08-15 Chris Toshok <toshok@ximian.com>
6879 - when we're scrolling, only call Edit() again if the
6880 current cell is still unobscured. Fixes bug #78927.
6881 - when handling mousedown on a cell, ensure the cell is visible
6882 before calling Edit.
6883 - remove the properties from DataGridRow, and remove the
6884 DataGridParentRow class altogether.
6887 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
6889 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
6890 fire OnTextChanged by ourselves. There's no point calling base,
6891 we don't set the base value anywhere else. Fixes #78773.
6893 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6895 * ListBox.cs: Call CollectionChanged when modifying
6896 an item from Items indexer, to update the actual items
6899 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6901 * PrintDialog.cs: Small fixes for focus and a pair of checks,
6902 to match .Net behaviour.
6904 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
6906 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
6908 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
6910 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
6912 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
6914 * MessageBox.cs: Prevent potential NRE exception.
6915 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
6917 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
6919 * MessageBox.cs: Calculate the owner of a messagebox, also make
6920 it topmost. Fixes #78753
6922 2006-08-14 Chris Toshok <toshok@ximian.com>
6924 * XplatUIX11.cs: A couple of fixes so that metacity will let us
6925 programmatically move windows. first, set the PPosition hint as
6926 well as the USPosition hint. Second include some code from pdb
6927 that sets the window type to NORMAL when we set the transient for
6928 hint. This is because, in the absence of a window type, metacity
6929 thinks any window with TransientFor set is a dialog, and refuses
6930 to let us move it programmatically. fascists.
6932 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
6934 * XplatUIX11.cs: When setting normal hints, take into consideration
6935 an different hints previously set so we don't delete them (fixes #78866)
6937 2006-08-12 Chris Toshok <toshok@ximian.com>
6939 * ToolBarButton.cs: make Layout return a boolean, if something to
6940 do with the button's layout changed.
6943 - add another parameter to Redraw, @force, which all existing
6945 - make the Layout function return a boolean which is true if the
6946 layout has actually changed. Redraw now uses this (and @force)
6947 to determine when to invalidate. At present the only place
6948 where @force can be false is the call from OnResize, when
6949 background_image == null. So, resizing a toolbar when the
6950 layout doesn't change results in no drawing.
6952 2006-08-12 Chris Toshok <toshok@ximian.com>
6954 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
6955 the VScrollBar and HScrollbar reversed. oops.
6957 * DataGrid.cs: fix the logic that assigns sizes to the implicit
6958 scrollbars. we were assigning them twice (once in
6959 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
6960 therefore causing two scrollbar resizes (and redraws?) to happen
6963 2006-08-12 Chris Toshok <toshok@ximian.com>
6965 * ToolBarButton.cs: redraw the entire button if the theme tells us
6968 * Theme.cs: add ToolBarInvalidateEntireButton.
6970 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
6971 buttons, just the border.
6973 * ThemeNice.cs: redraw the entire toolbar button since we need to
6974 draw the highlight image.
6976 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
6977 we need to redraw the entire button (not just the border).
6979 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
6981 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
6982 for vertical bars. Fixes the mismatches shown by #78513
6984 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
6986 * FileDialog.cs: If a saved/remembered path doesn't exist
6987 anymore, fall back to "Desktop".
6989 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
6991 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
6992 parent. It's apparently legal to not have one
6994 - SetZOrder: Don't try to set Z-Order on an unmapped window
6995 - CreateWindow: 0,0 are legal coordinates for a window. don't move
6996 it unless the coordinates are negative
6998 2006-08-10 Mike Kestner <mkestner@novell.com>
7000 * ListControl.cs: allow null for DataSource. Clear DisplayMember
7001 when setting to null per msdn docs. Fixes #78854.
7003 2006-08-10 Chris Toshok <toshok@ximian.com>
7005 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
7006 flickering by setting a clip rectangle on the Graphics when we
7007 need to redraw just a particular menuitem. Also, rename "OnClick"
7008 to "OnMouseDown" to reflect what it actually is.
7010 * Form.cs: track the OnMouseDown change.
7012 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
7014 * CommonDialog.cs: Properly inherit the CreateParams from the form
7015 and only change what we need. Fixes #78865
7017 2006-08-10 Chris Toshok <toshok@ximian.com>
7019 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
7020 flickering in flat mode (and most of the flickering in general) by
7021 only invalidating the button border (and not the entire rectangle)
7022 when the state changes. A couple of cases still flicker:
7023 ToggleButtons, and the dropdown arrow case when the user mouse
7026 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
7028 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
7029 for german keyboards. Numlock state shouldn't affect the behaviour
7030 of the Del key. Fixes bug #78291.
7032 2006-08-10 Chris Toshok <toshok@ximian.com>
7034 * ListControl.cs: remove the items.Clear line from BindDataItems,
7035 as this is the first thing done by both subclasses in their
7036 SetItemsCore overrides. Also, add a ItemChanged handler, and when
7037 passed -1, refresh the list. This gets databinding working when
7038 the datasource is set on the list before the datasource is
7039 populated (as in wf-apps/ReportBuilder.)
7041 * ComboBox.cs: remove the argument to BindDataItems. This call
7042 should really go away, and be initiated by the ListControl code.
7046 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
7048 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
7049 if no data is in the document when the control is displayed
7051 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
7053 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
7056 - PositionCaret: Allow positioning of caret but don't call methods
7057 requiring a handle if the window isn't created yet
7058 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
7059 - owner_HandleCreated: Don't position the caret, just update it's
7060 location. User might have already set a different position
7062 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
7064 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
7065 windows. Screws up the returned coordinates for child windows.
7066 Fixes #78825. I'm hoping this doesn't break something, since the
7067 code was explicitly put in 8 months ago, but no bug was attached.
7068 Menus still seem to work properly.
7070 2006-08-08 Chris Toshok <toshok@ximian.com>
7072 * DataGrid.cs: make BeginInit/EndInit actually do what they're
7073 supposed to do - delay data binding until the EndInit call. Also,
7074 make the table style collection's CollectionChangeAction.Refresh
7077 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
7078 (with action = Refresh) when a consituent table's MappingName is
7081 2006-08-08 Chris Toshok <toshok@ximian.com>
7083 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
7084 Invalidate, since changing the text can change the size of the all
7087 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
7089 * Form.cs (AddOwnedForm): Still need to add the form to our listif
7090 we don't have it yet
7092 2006-08-08 Chris Toshok <toshok@ximian.com>
7094 * PrintControllerWithStatusDialog.cs: don't .Close() the status
7095 dialog, as this causes X errors later on, since we actually
7096 destroy the window. Instead, .Hide() it.
7098 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
7100 * ComboBox.cs: Added focus reflection for popup window
7102 - Removed transient setting for non-app windows for now, not sure it
7104 - Fixed logic checking if we have captions when deciding
7105 override_redirect, WS_CAPTION is two bits and a 0 check was not
7107 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
7110 - AddOwnedForm: Don't just add the form to the list, call the property
7111 to ensure the driver is informed about the ownership as well
7112 - CreateHandle: Set the TopMost status in the driver if we have an owner
7113 * XplatUI.cs: Fixed debug statement
7115 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
7116 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
7117 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
7118 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
7119 TrackBarRenderer.cs: Make constructor private.
7120 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
7121 * ProfessionalColorTable.cs: Make properties virtual.
7123 2006-08-06 Duncan Mak <duncan@novell.com>
7125 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
7128 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
7129 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
7130 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
7131 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
7132 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
7133 Initial import of new 2.0 classes.
7135 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
7136 * Application.cs: Add 2.0 VisualStyles properties.
7138 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
7139 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
7140 XplatUIX11.cs: Create property to allow access to existing private
7141 variable "themes_enabled"
7143 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7145 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
7146 file size, as otherwise our class libraries fail using windows. Fixes
7149 2006-08-04 Jackson Harper <jackson@ximian.com>
7152 * XplatUIX11.cs: Move the toolwindow window manager creation into
7153 the X11 driver, this way on win32 we can let windows create/handle
7156 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7158 * PrintDialog.cs: Remove some redundant checks, add some others,
7159 clean some code, and move the focus to the text boxes when the
7160 values are incorrect.
7162 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
7164 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
7166 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
7168 * NumericUpDown.cs: Setting the Minimum and Maximum is now
7169 handled correctly. Fixes bug #79001.
7171 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7173 * PrintDialog.cs: The "Copies" numeric up down must have
7174 set the Minimum property to 1; only if the value is bigger
7175 than 1, activate "Collate" check box. This is the behaviour of .Net.
7176 Also modify the Document elements only if it is not null.
7178 2006-08-03 Jackson Harper <jackson@ximian.com>
7180 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
7181 length. (We have a larger array then actual node count).
7183 2006-08-03 Jackson Harper <jackson@ximian.com>
7185 * ComboBox.cs: Don't show selection by default.
7186 - The SelectAll isn't needed here, since the focus code should do
7188 - DDL style lists to manual selection drawing, so when they
7189 get/lose focus they have to invalidate.
7191 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
7193 * TextBoxBase.cs: Don't always show all selections by default.
7195 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
7196 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
7197 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
7198 Fixed various typos.
7200 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
7202 * Control.cs: Removing the controls in a ControlCollection with
7203 Clear now hides the controls as expected. Fixes bug #78804.
7205 2006-08-03 Jackson Harper <jackson@ximian.com>
7207 * Control.cs: Revert previous focus patch, it breaks reflector.
7209 2006-08-03 Jackson Harper <jackson@ximian.com>
7211 * ComboBox.cs: Cleanup selection and focus with the combobox.
7212 This also eliminates some duplicated keyboard code, since now
7213 everything is handled by the main class.
7214 - Make list selection work on mouse up instead of down, to match
7217 2006-08-02 Jackson Harper <jackson@ximian.com>
7219 * Control.cs: Setting focus needs to go through the whole
7220 selection mechanism.
7222 2006-08-02 Chris Toshok <toshok@ximian.com>
7224 * PrintPreviewDialog.cs: change MinimumSize to use
7225 base.MinimumSize so it works.
7227 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
7230 - UpdateCaret: Added sanity check in case caret isn't defined yet
7231 - Line.Delete: Now updating selection and caret markers if we're
7232 transfering a node (Properly fixes #78323)
7233 - SetSelectionEnd: Added sanity check
7234 * TextBoxBase.cs: Removed broken attempt to fix #78323
7236 2006-08-01 Chris Toshok <toshok@ximian.com>
7238 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
7239 Close() call is handled in Form, not here.
7241 2006-08-01 Chris Toshok <toshok@ximian.com>
7243 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
7246 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
7247 for sizes < 100% zoom. The code now aggressively attempts to keep
7248 from calling document.Print (), and tries not to use the scaling
7249 g.DrawImage whenever possible (it still does if you scale to >
7250 100%, since usually that involves huge images).
7252 * PrintPreviewControl.cs: hook up the close button.
7254 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
7255 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
7256 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
7257 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
7258 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
7259 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
7260 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
7261 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
7262 Removed [Serializable] for 2.0 Event Handlers.
7264 2006-07-31 Jackson Harper <jackson@ximian.com>
7266 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
7267 * TextControl.cs: Uncomment out the body of this method.
7269 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
7271 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
7274 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
7276 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
7277 that embed TextBox and need selections visible even if textbox is not
7278 focused to enforce that behaviour.
7279 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
7282 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
7285 - Added new SetSelectionStart/SetSelectionEnd overloads
7286 - Fixed viewport width assignment to be accurate
7287 - Adjusted alignment line shift calculations to allow cursor on right
7288 aligned lines to be always visible at the right border (like MS)
7290 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
7291 - TextBoxBase_SizeChanged: recalculating canvas on size changes
7292 - CalculateScrollBars: Use ViewPort size instead of window size, to
7293 properly consider space occupied by the border and scrollbars
7295 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
7296 calculations; no longer leaves artifacts
7297 - CaretMoved: Adjusted window scrolling to match MS and fixed several
7298 calculation bugs (Still missing right/center align calculations)
7300 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
7302 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
7303 use of both scroll rect and clip rect, as they do the same.
7305 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
7307 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
7308 in the event handler (fixes #78912)
7310 2006-07-31 Chris Toshok <toshok@ximian.com>
7312 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
7313 grid.ListManager.Count, since grid.ListManager might be null.
7314 This of course begs the question "why are we drawing rows for a
7315 grid with no list manager (and therefor no rows)?" Fixes the
7316 crash in bug #78929.
7318 2006-07-31 Chris Toshok <toshok@ximian.com>
7320 * RelatedPropertyManager.cs: Don't always chain up to the parent
7321 ctor. instead, call SetDataSource if the parent's position is !=
7322 -1. Fixes the crash in #78822.
7324 2006-07-31 Chris Toshok <toshok@ximian.com>
7326 * DataGrid.cs (get_ListManager): use field instead of property
7327 accessors for datasource and datamember.
7328 (RowsCount): make internal again.
7329 (OnMouseDown): end edits before resizing columns/rows.
7330 (OnMouseUp): restart edits after resizing columns/rows.
7332 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
7334 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
7335 This fixes the situation where the last set cursor is displayed
7336 whenever the mouse is over scrollbars.
7338 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7340 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
7341 Document properties, as well as initial values.
7343 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
7345 * XplatUIWin32.cs (SetBorderStyle): Setting both border
7346 and ClientEdge results in a 3-pixel border, which is
7349 2006-07-28 Jackson Harper <jackson@ximian.com>
7351 * TreeNodeCollection.cs: Fix the clear method.
7352 - Fix the Shrink also
7354 2006-07-27 Jackson Harper <jackson@ximian.com>
7356 * TreeView.cs: Make sure the visible order is computed when we
7357 attempt to size the scrollbars (for trees that mess with the
7358 scrolling when they shouldn't.
7359 - Make sure to give the scrollbars valid values.
7361 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
7363 * XplatUIX11.cs: Move motion compression code to where it
7364 has less performance impact
7366 2006-07-26 Jackson Harper <jackson@ximian.com>
7368 * UpDownBase.cs: When the control is selected make the child
7369 controls non selectable, so that a click on them won't do a
7370 focus/unfocus cycle.
7371 - Don't give focus to the text box when the spinner is selected.
7372 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
7374 2006-07-26 Chris Toshok <toshok@ximian.com>
7376 * ThemeWin32Classic.cs: add print preview rendering. I'm not
7377 satisfied with this solution. If the bitmaps are small, we should
7378 just cache them in the PrintPreviewDialog and draw them here.
7379 Also, the layout is broken for the 2-up and 3-up cases.
7381 * Theme.cs: add PrintPReviewControlPaint.
7383 * PrintPreviewDialog.cs: first pass implementation.
7385 * PrintPreviewControl.cs: first pass implementation. No
7388 * PrintDialog.cs: only validate fields if that particular portion
7389 of the UI is enabled. Also, set the document's controller to a
7390 PrintControllerWithStatusDialog wrapping the document's print
7393 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
7394 bring up a SaveFileDialog (i hope we don't want to match the
7395 behavior of the crappy windows file entry) and set the
7396 PrinterSettings.PrintFileName accordingly.
7398 2006-07-26 Jackson Harper <jackson@ximian.com>
7400 * ContainerControl.cs: Add a field that disables auto selecting
7401 the next control in a container when the container is activated.
7402 * UpDownBase.cs: Don't select the text box when the up down is
7405 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
7407 * XEventQueue.cs: Added methods for peeking (used for compression
7408 of successive events)
7409 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
7410 mouse move events (fixes #78732)
7412 2006-07-25 Jackson Harper <jackson@ximian.com>
7414 * UpDownBase.cs: Use an internal class for the textbox so that we
7415 can control focus. the updown control should always have focus,
7416 if either the text area or the buttons are clicked.
7417 - Send the key messages to the textbox, since it never actually
7419 - Activate and decativate the textbox caret.
7421 2006-07-24 Jackson Harper <jackson@ximian.com>
7423 * Control.cs: Use the directed select when selecting a control,
7424 this way the container controls override will get called and the
7425 whole ActiveControl chain will get triggered. TODO: probably need
7426 to make sure this gets done everywhere instead of the old
7428 * ContainerControl.cs: Implement the directed Select method to
7429 find and activate the correct child control.
7431 2006-07-22 Mike Kestner <mkestner@novell.com>
7433 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
7434 menu handling code so that clicks without a grab work too.
7437 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
7439 * FileDialog.cs: Enable the BackButton when dirstack has one element.
7440 Added some small optimizations.
7442 2006-07-21 Matt Hargett <matt@use.net>
7444 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
7446 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
7448 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
7449 tests pass and match MS in some strange border cases.
7451 2006-07-21 Chris Toshok <toshok@ximian.com>
7453 * ThemeWin32Classic.cs: handle drawing of the relation links and
7456 * Theme.cs: change args to DataGridPaintParentRow.
7458 * DataGrid.cs: Don't use controls for the relation links and
7459 parent buttons, so we have to handle all their interactions in
7460 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
7461 when we're navigating through child tables, so we can reinstate
7462 selection, expanded state, current cell, etc.
7464 2006-07-20 Chris Toshok <toshok@ximian.com>
7466 * ToolBar.cs: When we redraw a button, for whatever reason,
7467 there's no reason to redraw the entire toolbar. Also, don't call
7468 Control.Refresh from within Redraw, as it's much heavier than
7469 Invalidate (which is really what we want).
7471 2006-07-20 Chris Toshok <toshok@ximian.com>
7473 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
7474 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
7475 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
7476 traces from within a debug IBindingList datasource
7477 (in mono/winforms/datagrid) for *days*, I've finally gotten things
7478 to work in a similar fashion.
7480 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7482 * ListBox.cs: Don't call Sort () when setting
7483 the Sorted property to false (avoid an unnecessary sort).
7485 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7487 * ListControl.cs: DataSource should throw an ArgumentException
7488 instead of a normal exception when the argument is not of the
7491 2006-07-20 Mike Kestner <mkestner@novell.com>
7493 * Control.cs: add InternalPreProcessMessage to allow us to steal
7494 key events before MWF gets its paws on them. Adapted from a
7496 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
7497 up/down/left/right navigation. Override the new internal control
7498 method to steal the events since they never make it to WndProc.
7499 * ToolBarButton.cs: don't worry about pushed when setting hilight
7500 since the drawing code prefers pushed to hilight. Invalidate on
7501 Hilight changes. Fixes #78547 and #78525.
7503 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
7505 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
7506 the canvas size. Fixes #78868
7508 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
7510 * Splitter.cs: Track requested split position until first layout
7511 is performed. Fixes #78871
7513 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
7515 * Application.cs: Removed code that forces 1.x for the version
7516 number if the version started with 0. Not sure why that code was
7517 there and I couldn't find any bugs that indicated we needed it.
7520 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
7522 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
7523 ResetDefaults(), just write some output to the console until it's
7524 implemented. Fixes bug #78907 for now. Eliminated two warnings.
7526 2006-07-19 Jonathan Chambers <joncham@gmail.com>
7528 * PropertyGridView.cs: set StartPosition of drop down forms
7529 so they appear in correct initial spot. Fixes #78190.
7531 2006-07-19 Mike Kestner <mkestner@novell.com>
7533 * ThemeWin32Classic.cs: use parent background color when drawing
7534 flat toolbars. Restructure the conditionals to make sure non-flat
7535 non-Divider toolbars are filled too. Fixes #78837.
7537 2006-07-19 Mike Kestner <mkestner@novell.com>
7539 * ListBox.cs: Sort on collection changes even if the handle
7540 isn't created yet. Fixes #78813.
7542 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7544 * ListControl.cs: DisplayMember should never be null,
7545 and now we assign String.Empty when null is passed to it (this
7548 2006-07-17 Mike Kestner <mkestner@novell.com>
7550 * ListViewItem.cs: restructure Font and subitem Font handling
7551 to hold a specific font and refer back to owner on null.
7554 2006-07-17 Mike Kestner <mkestner@novell.com>
7556 * ToolBar.cs: bandaid for side-effect of previous patch which was
7557 discarding explicit heights for non-AutoSize toolbars. Need to
7558 extend my format tester to deal with AutoSize=false. Fixes #78864.
7560 2006-07-15 Jackson Harper <jackson@ximian.com>
7562 * LabelEditTextBox.cs:
7563 * TreeView.cs: Use a new LabelEdit class for node editing, this
7564 class automatically 'closes' itself when it gets the enter key or
7566 - Use the client rectangle when setting the trees scrollbars, so
7567 border style is taken into account.
7569 2006-07-14 Jackson Harper <jackson@ximian.com>
7572 * TreeView.cs: Make the editing work similar to MSs, firing the
7573 events correctly and ending edits correctly.
7575 2006-07-14 Mike Kestner <mkestner@novell.com>
7578 * ToolBar.cs: layout restructuring and redraw enhancements to support
7579 formatting changes gracefully, like setting TextAlign, ImageList,
7580 ButtonSize, and Appearance. Handles explicit button sizing quirks
7581 of the MS controls. Things like flat toolbars ignoring button size
7582 but becoming constant sized at the largest button's size. Normal
7583 toolbars with an image set cannot be shrunk smaller than the image,
7584 but text can be clipped/ignored.
7585 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
7586 is zero. Seems like DrawString should be smart enough to not put
7587 anything on screen though. Also trim labels and ellipsize at the char
7589 Fixes #78711 and #78483.
7591 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
7593 * FolderBrowserDialog.cs: Disable "New Folder" button and
7594 "New Folder" contextmenu menuitem if a folder like "My Computer"
7597 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
7599 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
7600 * FolderBrowserDialog.cs:
7601 - Use MWFConfig to store and read size and position settings
7602 - Added code to create a new folder (button or context menu).
7603 Use TreeView labeledit to change the name of the new folder.
7605 2006-07-14 Jackson Harper <jackson@ximian.com>
7607 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
7608 when the tree is scrolled we end editing.
7610 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
7612 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
7615 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
7617 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
7618 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
7619 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
7620 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
7621 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
7622 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
7623 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
7624 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
7625 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
7626 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
7627 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
7628 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
7629 ListViewItemSelectionChangedEventHandler.cs,
7630 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
7631 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
7632 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
7633 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
7634 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
7635 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
7636 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
7637 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
7638 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
7639 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
7640 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
7641 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
7642 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
7643 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
7644 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
7645 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
7646 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
7647 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
7648 WebBrowserNavigatingEventHandler.cs,
7649 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
7651 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
7653 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
7654 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
7655 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
7656 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
7657 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
7658 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
7659 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
7660 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
7661 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
7662 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
7663 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
7664 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
7665 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
7666 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
7667 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
7668 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
7669 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
7670 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
7671 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
7672 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
7673 ListViewItemStates.cs, MaskFormat.cs: Added
7675 2006-07-13 Jonathan Chambers <joncham@gmail.com>
7677 * PropertyGridView.cs: Fix keyboard navigation of drop down.
7678 Patch from eno for bug 78558.
7680 2006-07-13 Jackson Harper <jackson@ximian.com>
7682 * TreeView.cs: When an edit is finished make sure that the
7683 selected node is visible.
7684 - When setting the top/bottom use the scrollbars is_visible, so
7685 everything will be set correctly even if the tree isn't visible
7688 2006-07-13 Jackson Harper <jackson@ximian.com>
7690 * ComboBox.cs: Revert the item->index part of my previous patch.
7691 * TreeView.cs: Use LostFocus instead of Leave for detecting when
7692 the edit box has lost focus (duh).
7693 - Just make the edit box not visible when we get return, that will
7694 take the focus, which will call EndEdit
7695 * TreeNode.cs When we start editing, notify the treeview.
7697 2006-07-12 Jackson Harper <jackson@ximian.com>
7699 * ComboBox.cs: Clear out old items before setting the item list.
7700 This prevents databound controls from having their items added
7702 - Switch the combobox to use indices whereever possible instead of
7703 using Item's. This allows usto navigate through lists that have
7704 more then one item with the same string value (ie a, b, b, a).
7705 - Scroll the listboxes scrollbar when a non visible item is
7707 - Allow keypress to cycle through all the possible values. For
7708 example if you have b1, b2, b3 and hold down the B key all the
7709 values will be cycled through.
7711 2006-07-12 Jackson Harper <jackson@ximian.com>
7714 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
7715 this using the internal methods.
7716 * Control.cs: Add OnGotFocusInternal. A new method that allows
7717 controls to "override" OnGotFocus and change focus behavior if
7719 - Same thing for LostFocus
7720 * ComboBox.cs: Pass off focus to the text control properly.
7722 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
7724 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
7725 * FolderBrowserDialog.cs: Almost a complete rewrite.
7726 - Better support for Environment.Specialfolders
7727 - Added support for MWFVFS
7728 - Made setting SelectedPath work
7730 2006-07-12 Jackson Harper <jackson@ximian.com>
7732 * Control.cs: Optimze getting all the controls.
7734 2006-07-11 Jackson Harper <jackson@ximian.com>
7736 * ContainerControl.cs: Override SETFOCUS in the container control,
7737 so that it is not selected on mouse click.
7739 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
7741 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
7742 Hopefully we will have a better way once all of focus is complete.
7744 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
7746 * ThemeWin32Classic.cs: Commented out some debug code and fixed
7747 a compile error with csc.
7749 2006-07-11 Jackson Harper <jackson@ximian.com>
7751 * Control.cs: When hiding a control only select the next control
7752 if the current control was focused.
7753 - Don't handle enter/leave when setting/killing focus, this is
7754 done by the container control.
7755 - Remove is_selected, it's not needed anymore.
7756 - Add utility methods for selecting a child control, and for
7757 firing the Enter/Leave events.
7758 * ContainerControl.cs: When a control is activated fire the
7760 - Don't wrap when processing the tab key, so that focus can be
7761 moved outside of the container.
7762 - Use the correct active control
7764 2006-07-11 Jackson Harper <jackson@ximian.com>
7766 * ComboBox.cs: Remove some debug code that was blinding me.
7767 * UpDownBase.cs: These controls actually aren't implicit, they are
7768 visible to the user.
7770 2006-07-10 Chris Toshok <toshok@ximian.com>
7772 * DataGrid.cs: move back to the is_adding boolean field. god i
7773 hate this is_editing/is_adding/is_changing stuff.
7775 2006-07-10 Chris Toshok <toshok@ximian.com>
7777 * DataGridTableStyle.cs: just check if the property type is bool.
7778 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
7779 Don't use CanRenderType.
7781 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
7782 if our text == NullText. Remove CanRenderType.
7784 * DataGridBoolColumn.cs: nuke CanRenderType.
7786 * DataGrid.cs: reenable some code to end the current edit inside
7787 of set_CurrentCell. This fixes the other 1.1.16 regression.
7788 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
7789 Also, remove the visible_row_count arg from CalcRowHeaders, since
7790 we don't need to worry about the actual height of the area.
7792 2006-07-10 Chris Toshok <toshok@ximian.com>
7794 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
7797 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
7798 the real sense of the IsInEditOrNavigateMode property (true =
7799 navigate, false = edit). Also, update OnKeyPress to reflect this.
7801 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
7802 column style exists, we still need to set its property descriptor
7803 to match up with our list manager.
7805 2006-07-10 Chris Toshok <toshok@ximian.com>
7807 * ThemeWin32Classic.cs: implement the new row/header painting
7808 approach. The parent row painting will likely go away and
7809 replaced with label controls, but the rest seems to work ok (and
7812 * Theme.cs: change the way we draw datagrid rows. we don't draw
7813 the row headers as a block now. Instead we draw them in the
7814 normal draw-row loop. Add some calls for drawing parent rows and
7817 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
7818 a default table style. Set the defaults from ThemeEngine.Current,
7819 not SystemColors. Fix lots of misc issues with property setters.
7821 * DataGrid.cs: move loads of style information out of this class
7822 as it's being duplicated with DataGridTableStyle. keep track of a
7823 special DataGridTableStyle for the properties we used to mirror
7824 here. Switch all the style properties to access this table style
7825 instead of instance fields of this class. Also add a internal
7826 class to represent parent rows (more needs to be stored here, like
7827 the selection state from the parent table, as well as the
7828 expansion state.) Also, for datasources with relations, do the
7829 right thing for collapse/expand, and add support for the
7830 navigation/parent row buttons.
7832 Lastly, fix the crash in the 1.1.16 build.
7834 * GridTableStylesCollection.cs: make the explicit interface
7835 implementations call the class's methods as opposed to duplicating
7838 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
7839 0 so the text doesn't jump around when we move the cursor.
7841 2006-07-10 Jackson Harper <jackson@ximian.com>
7844 * ListBox.cs: Match MS's ToString (this makes debugging focus
7845 stuff infinitely easier).
7847 2006-07-10 Jackson Harper <jackson@ximian.com>
7849 * Control.cs (SelectNextControl): When checking the control's
7850 parent use this instead of ctrl.parent so that null can be passed
7851 to SelectNextControl. (I have unit tests for this).
7852 - Remove unused var.
7854 2006-07-10 Chris Toshok <toshok@ximian.com>
7856 * CurrencyManager.cs: correct one regression, the removal of the
7857 finalType field. Also, add a MonoTODO on CanAddRows, implement
7858 Refresh() correctly, and fix some event emission in
7861 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
7863 * FileDialog.cs: Don't use brackets for new folders if they exist
7864 under *nix. Instead use -(number of existing folders +1).
7866 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
7869 - Fixed really nasty bug #78771
7870 - Don't block the whole GUI when reading directories with a lot of
7871 entries. Use an other thread instead and call BeginInvoke to
7872 update the ListView in MWFFileView
7874 2006-07-07 Chris Toshok <toshok@ximian.com>
7876 * Control.cs (Dispose): release any Capture when disposing.
7878 2006-07-07 Chris Toshok <toshok@ximian.com>
7880 * LinkLabel.cs (Select): if we chain up to the parent, set
7881 focused_index to -1 so we'll search for the first available link
7882 the next time the user tabs into us. Also, if the direction is
7883 backward and focused_index == -1, start the search from the last
7886 2006-07-07 Chris Toshok <toshok@ximian.com>
7888 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
7889 is beyond the end of the text, don't do anything.
7890 (CreateLinkPieces): set our ControlStyles.Selectable based on
7891 whether or not we have any links.
7892 (Link.Invalidate): use a loop instead of foreach.
7893 (Link.set_Start): null out owner.sorted_links so it'll be
7894 recreated by CreateLinkPieces.
7896 2006-07-06 Chris Toshok <toshok@ximian.com>
7898 * LinkLabel.cs: revert the SetStyle change.
7900 2006-07-06 Chris Toshok <toshok@ximian.com>
7902 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
7903 (OnEnableChanged): s/Refresh/Invalidate
7904 (OnGotFocus): if we have a focused index already, refocus it (so
7905 if we mouse out/in to the window it'll focus the right link).
7906 (OnKeyDown): move the tab handling out of here.
7907 (OnLostFocus): don't set focused_index to -1, so we can refocus it
7909 (OnMouseDown): don't Capture here - Control handles it. Also,
7910 focus the active link.
7911 (OnMouseUp): don't deal with Capture.
7912 (OnPaintBackgroundInternal): remove.
7913 (OnTextAlignChanged): CreateLinkPieces before calling the
7914 superclass's method.
7915 (OnTextChanged): call CreateLinkPieces before calling superclass's
7917 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
7919 (Select): implement this, moving the selection between different
7920 links, and call parent.SelectNextControl if we don't have another
7921 link to focus in the given direction.
7922 (CreateLinkPieces): call Invalidate instead of Refresh.
7924 2006-07-06 Chris Toshok <toshok@ximian.com>
7926 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
7927 new LinkLabel internals.
7929 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
7930 over pieces looking for active/focused/etc links. also, deal with
7931 runs of text (and links) with embedded \n's in them, and use
7932 MeasureCharacterRanges instead of MeasureString to figure out the
7933 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
7936 2006-07-04 Jackson Harper <jackson@ximian.com>
7938 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
7939 XKB or key auto repeat, do it manually. Without key auto repeat,
7940 when a key is held down we get key press, key release, key press,
7941 key release, ... with auto repeat we get key press, key press, key
7942 press ..., and then a release when the key is actually released.
7944 2006-07-03 Jackson Harper <jackson@ximian.com>
7947 * ThemeWin32Classic.cs: Tabs do not obey normal background color
7948 rules, they are always control color regardless of the background
7951 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
7953 * FileDialog.cs: Added internal class MWFConfig.
7954 Removed Registry support and replaced it with support for the new
7955 MWFConfig class. See MWFConfig comments for more information.
7957 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
7959 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
7960 rectangle. Added some patches from eno from bug #78490 and fixed
7961 the arrow position for small up and down CPDrawScrollButtons.
7963 2006-06-30 Jackson Harper <jackson@ximian.com>
7965 * InternalWindowManager.cs: Remove some debug code.
7966 * Form.cs: When an MdiParent is set to null, the window is
7967 "detatched" and becomes a normal window.
7968 * MdiClient.cs: Don't bring the new child form to the front until
7969 it is activated (setting it as active does this), this makes the
7970 previously active forms titlebar get redrawn as inactive.
7972 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
7974 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
7977 2006-06-29 Mike Kestner <mkestner@novell.com>
7979 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
7980 arrow in keynav state. Fixes #78682.
7982 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
7984 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
7985 order (fixes #78393)
7987 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
7989 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
7990 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
7991 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
7992 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
7993 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
7994 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
7995 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
7996 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
7997 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
7998 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
7999 enumerations (FlagsAttribute, SerializableAttribute, added/removed
8002 2006-06-28 Mike Kestner <mkestner@novell.com>
8004 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
8006 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
8009 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
8010 item lines from other area (It also makes BackColor consistent and
8011 compatible with .NET). Fixed bug #78564.
8013 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
8015 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
8016 Patch from Eno for #78555.
8018 2006-06-27 Chris Toshok <toshok@ximian.com>
8020 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
8022 * DataGridColumnStyle.cs: same.
8024 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
8026 * DataGridDrawingLogic.cs: nuke.
8028 2006-06-27 Chris Toshok <toshok@ximian.com>
8030 * DataGridTableStyle.cs: clean up the constructors, and build the
8031 list of child relations for this table. I have no idea if this is
8032 where we should be doing it (it probably isn't), but since we're
8033 already iterating over the properties..
8035 * DataGrid.cs: add row resizing. for now we add a DataGridRow
8036 struct and array for keeping track of row information, similar to
8037 what's shown in a hack on
8038 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
8040 * Theme.cs: be consistent about the naming of DataGrid methods,
8041 prefering ColumnWidths and RowHeights over columnsWidths and
8044 * ThemeWin32Classic.cs: same, and also add support for variable
8045 sized rows (and the +/- expansion icons for related rows).
8047 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
8049 * TextBoxBase.cs: Applied Eno's patch from #78660
8051 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
8053 * Form.cs (ScaleCore): We don't want to scale our form if it's
8054 state is minimized or maximized, but we still need to scale our
8055 child windows. Also, added try/finally block to ensure layout
8056 gets reset (Fixes #78697)
8058 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
8060 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
8062 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
8064 * Form.cs: Fixed c+p error and added check to resize form if minimum
8065 size is bigger than current size (Fixes #78709)
8067 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
8069 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
8071 2006-06-26 Mike Kestner <mkestner@novell.com>
8073 * ComboBox.cs: only do Keypress handling in the combo when there
8074 are items in the collection. Fixes #78710.
8076 2006-06-26 Chris Toshok <toshok@ximian.com>
8078 * Binding.cs: make this work bi-directionally. also, clear up
8079 other mixups between Push/Pull Data (e.g. we're supposed to pull
8080 data when validating).
8082 * BindingManagerBase.cs: trim some fully qualified collection
8085 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
8087 2006-06-23 Chris Toshok <toshok@ximian.com>
8089 * PropertyManager.cs: It appears (according to the unit tests)
8090 that PropertyManager doesn't use
8091 PropertyDescriptor.AddValueChanged to track propery value changes
8092 in its datasource, but uses the same scheme as Binding, where it
8093 looks for a <Property>Changed event and binds to it.
8095 Also, according to the docs, IsSuspended always returns false for
8096 a property manager with a non-null datasource.
8098 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
8100 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
8101 need to update the actual DialogResult. (Fixes #78613)
8103 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
8105 * Form.cs (ShowDialog): Release any captures before running the
8106 new message pump (fixes #78680)
8108 2006-06-22 Mike Kestner <mkestner@novell.com>
8110 * ListView.cs: Layout column widths properly in details mode even
8111 if HeaderStyle.None is set. Fixes #78691.
8113 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
8115 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
8117 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
8119 * Control.cs (ContainsFocus): Using new driver method to get focused
8120 window, instead of trying to use internal tracking var, which can
8121 recursion issues (Fixes #78685)
8122 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8123 XplatUIWin32.cs: Added GetFocus method to return focused window
8125 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8127 * ColorDialog.cs: when the mouse button is pressed inside the color
8128 matrix, don't let the cursor move out of it until the button is
8129 released, which is the behavior on windows. Changed 'colours' by
8130 'colors' to use the same word consistently.
8132 2006-06-21 Chris Toshok <toshok@ximian.com>
8134 * DataGrid.cs: add in some basic navigation stuff (navigating to a
8135 child relation and back, using a stack). Also, remove
8136 GetDataSource and the code that calls it - it's not needed. Also,
8137 track CurrencyManager.ListName's removal.
8139 2006-06-21 Chris Toshok <toshok@ximian.com>
8141 * CurrencyManager.cs: push some of the original type checking from
8142 BindingContext.CreateBindingManager to here, and remove some of
8143 the finalType stuff. Need more tests to make sure I've got the
8144 ListName part right, and we might need more in SetDataSource.
8146 * PropertyManager.cs: add a ctor that takes just the datasource,
8147 and no property name. Make SetDataSource work with a null
8148 property_name, and make Current return the data_source if the
8149 property descriptor is null. this makes 'string foo = "hi";
8150 BindingContext[foo].Current' return "hi" as it should.
8152 * RelatedCurrencyManager.cs: make this code more generic - there's
8153 no reason the parent manager has to be CurrencyManager, and
8154 there's no reason to pass the DataRelation. It suffices to use a
8155 BindingManagerBase and PropetyDescriptor.
8157 * RelatedPropertyManager.cs: make a similar change here.
8159 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
8160 flower I knew it could be.
8162 2006-06-20 Chris Toshok <toshok@ximian.com>
8164 * PropertyManager.cs: the PropertyChangedHandler is invoked when
8165 data in the source has changed and we need to update the control,
8166 so s/PullData/PushData.
8168 * CurrencyManager.cs: Refresh is meant to update the control from
8169 data in the datasource. So, s/PullData/PushData.
8171 * BindingContext.cs: add more ugliness (we weren't handling the
8172 case where data_source = DataTable and data_member = column_name).
8174 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
8175 from the perspective of the datasource. PullData pulls from the
8176 control, PushData pushes to the control.
8178 2006-06-20 Chris Toshok <toshok@ximian.com>
8180 * BindingContext.cs: rewrite the CreateBindingManager code to
8181 handle navigation paths more or less properly. This could
8182 definitely stand some more work, in particular to push the
8183 recursion up to the toplevel. But that relies on fixes in other
8184 places (System.Data comes to mind).
8186 Also, move to a flat hashtable (and encode the twolevel nature of
8187 the dictionary into the hash key). This lets us implement the
8188 IEnumerable.GetEnumerator method.
8190 * RelatedCurrencyManager.cs: new class. Update our view based on
8191 our relation and our parent CurrencyManager's position.
8193 * CurrencyManager.cs: split out some logic from the ctor into
8194 SetView, so it can be called from the new RelatedCurrencyManager
8197 * RelatedPropertyManager.cs: new class. Update our datasource
8198 based on the position of our parent CurrencyManager.
8200 * PropertyManager.cs: split out some logic from the ctor into
8201 SetDataSource, so it can be called from the new RelatedDataSource
8202 subclass. Also, make the Current getter return the value
8203 of the PropertyDescriptor, not the data_source.
8205 * Binding.cs: no need to duplicate the string splitting code here.
8207 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
8210 - set_Enabled: OnEnabledChanged is not called if the inherited state
8211 of the control is not altered, even though we might be changing the
8212 internal state of the control (#78458)
8213 - set_Enabled: (Re)Moved the enabling/disabling of the window to
8214 OnEnabledChanged, to allow easy altering of any child window state
8215 - OnEnabledChanged: Added code to enable/disable driver window state
8216 - OnParentEnabledChanged: Instead of firing the event, call
8217 OnEnabledChanged, which will fire the event and also a) set driver
8218 window state and pass the enabled state to any grandchildren (#78458)
8220 2006-06-19 Jackson Harper <jackson@ximian.com>
8222 * InternalWindowManager.cs: We don't set the cursor explicitly
8223 thats done via the response to NCHITTESTs.
8224 - Don't need to adjust for titlebar heights anymore, the
8225 coordinates are coming in the correct coordinates now (see peters
8229 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
8231 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
8232 being translated relative to whole window, instead of client window.
8233 That caused broken offsets on mouseclick (and caused gas for our
8234 InternalWindowManager)
8236 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
8239 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
8240 - Undo(): Added replay of cursor move on DeleteChars action; added
8241 calling Undo() again if a recorded cursor move is invalid (to
8242 ensure that some action is performed on Undo)
8243 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
8245 2006-06-16 Jackson Harper <jackson@ximian.com>
8247 * MdiClient.cs: Instead of just sizing maximized windows when
8248 there is a resize we also have to adjust the Y of minimized
8249 windows, so they stay pinned to the bottom of the mdi container.
8250 - Eliminate separate tracking of the active control, we can just
8251 get this from the controls collection.
8252 - Paint the decorations for the newly activated titlebar so we get
8254 * InternalWindowManager.cs:
8255 * ThemeWin32Classic.cs: Minimized windows get all three buttons
8256 even if they are a tool window.
8258 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
8260 * TextControl.cs (Undo): Handle non-existent cursor locations in the
8261 undo buffer, these can happen when text was deleted and the cursor
8262 was recorded first. Since we will also have a recorded cursor
8263 after the delete this is not an issue. (Fixes #78651)
8265 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
8267 * AccessibleObject.cs: Remove dependence on Control.is_selected;
8268 instead properly track control states internally (allows us to
8269 remove is_selected from Control)
8271 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8273 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
8274 whose width is not a multiple of 8.
8276 2006-06-13 Jackson Harper <jackson@ximian.com>
8278 * MdiClient.cs: Only maximize the next child if the current one
8281 2006-06-13 Chris Toshok <toshok@ximian.com>
8283 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
8284 modified. Also, guard against grid or grid_drawing being null in
8287 * DataGrid.cs: Reformat tons of getters/setters. In the
8288 DataMember setter, just call SetNewDataSource instead of
8289 duplicating some of its functionality. In SetNewDataSource, don't
8290 check ListManager for null, since the property getter creates the
8293 * DataGridTableStyle.cs: don't set TableStyle or call
8294 SetDataGridInternal on the column here, it's done in
8295 GridColumnStylesCollection.Add.
8297 * GridColumnStylesCollection.cs: fix all the explicit interface
8298 implementations to just call our methods. Nuke AddInternal() and
8299 move the body of it to Add(). Also, add a call to
8300 column.SetDataGridInternal to Add().
8302 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
8303 base()+duplicate code. Also, use the Format property instead of
8304 format to generate an Invalidate ala MS. Lastly, create the
8305 textbox here, unconditionally.
8306 (set_Format): call Invalidate.
8307 (get_TextBox): no need to call EnsureTextBox.
8308 (Commit): remove the message box.
8309 (Edit) remove the call to EnsureTextBox.
8310 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
8311 (EnterNullValue): no need to check textbox for null.
8312 (HideEditBox): no need to check textbox for null.
8313 (SetDataGridInColumn): add the textbox to the grid's controls.
8314 (EnsureTextBox): nuke.
8316 2006-06-13 Jackson Harper <jackson@ximian.com>
8318 * MdiWindowManager.cs: Hook up to the maximized menus paint event
8319 and redraw the buttons when needed. Unhook when the window is
8321 * MainMenu.cs: Add an internal Paint event, the mdi window manager
8322 needs this so that it can redraw its buttons when the menu is
8324 * InternalWindowManager.cs:
8325 * Form.cs: The method order has changed for DrawMaximizedButtons,
8326 so that it can be a PaintEventHandler.
8328 2006-06-13 Jackson Harper <jackson@ximian.com>
8330 * MdiClient.cs: When we close a maximized mdi window, the next mdi
8331 window is activated and maximized, even if it wasn't before.
8332 - When a new window is activated repaint the decorations of the
8333 old one, so that it no longer has the Active "look" (the blue
8335 * InternalWindowManager.cs: Open up CreateButtons to base classes
8336 so they can recreate the buttons on state changes.
8337 - If a window is maximized give it all three buttons
8338 * MdiWindowManager.cs: Create the titlebar buttons when the state
8339 is changed, this is needed because a toolwindow will not have all
8340 three buttons until it is maximized.
8342 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
8344 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
8347 2006-06-12 Jackson Harper <jackson@ximian.com>
8349 * KeysConverter.cs: Make sure we handle the Ctrl special case
8350 if its the only key.
8352 2006-06-12 Jackson Harper <jackson@ximian.com>
8354 * Theme.cs: Add a method to get the size of a managed window
8356 * InternalWindowManager.cs: Remove the ButtonSize property, this
8357 should be retrieved from the theme.
8358 * MdiWindowManager.cs: Get the button size from the theme
8359 * ThemeWin32Classic.cs: Make the method to get the managed window
8360 titlebar button size public.
8361 - Handle the different button sizes of maximized toolwindows
8362 (should match any maximized window).
8363 - Get the titlebar height from the theme, not the WM (which gets
8366 2006-06-12 Jackson Harper <jackson@ximian.com>
8368 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
8369 event down to the mdi window manager.
8370 - Expose some extra stuff to base classes
8371 - Make sure to end the Capture on an NC Mouse up, so that we can
8372 get double clicks properly, and the sizing doens't stick.
8373 - When doing PointToClient contain it in the workable desktop
8374 area, this prevents windows from changing size when the cursor is
8375 pulled outside of the working area while sizing.
8376 * MdiWindowManager.cs: When we get a double click maximize the
8378 - Reset the cursor after handling mode changes.
8380 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
8382 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
8383 current desktop, instead of just assuming a 0, 0 origin. This
8384 is needed for our internal window manager, to know the top
8385 margin of the desktop
8387 2006-06-12 Chris Toshok <toshok@ximian.com>
8389 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
8390 we need this to get rid of the selected background in the bool
8392 (CancelEditing): move the ConcedeFocus call to above the Abort
8393 call. Also, set is_changing to false and invalidate the row
8394 header if we were changing before.
8395 (ProcessKeyPreviewInternal): remove, since noone outside this
8396 class calls it anymore. Roll the code into ProcessKeyPreview.
8397 (EndEdit): remove the internal version.
8398 (InvalidateCurrentRowHeader): make private.
8400 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
8401 Keys.Escape handling (and with it the last call to
8402 DataGrid.EndEdit from outside the class.)
8405 2006-06-12 Chris Toshok <toshok@ximian.com>
8407 * DataGridTextBox.cs (.ctor): isedit defaults to false.
8408 (OnKeyPress): set isedit to true.
8409 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
8410 already handled by the grid.
8412 * DataGrid.cs (set_CurrentCell): more work here. it's still not
8414 (set_DataSource): SetDataSource always returns true, so stop
8415 putting it in an if statement.
8416 (EndEdit): get rid of some {}'s
8417 (ProcessGridKey): return true in case Keys.Escape.
8418 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
8419 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
8420 PositionChanged, stopped connecting to CurrentChanged.
8421 (GetDataSource): simplify this a bunch.
8422 (SetDataSource): change return type from bool to void.
8423 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
8424 to this, and make sure we don't set ListManager.Position inside
8426 (OnListManagerItemChanged): if we're passed an actual index,
8429 * CurrencyManager.cs (set_Position): don't call PullData here.
8431 2006-06-09 Jackson Harper <jackson@ximian.com>
8433 * TreeNode.cs: Recalculate the visible order before doing the
8434 Expand/Collapse Below calls, because those calls generate an
8436 - Reduce calls to the TreeView property, which is mildly expensive
8437 by using a local var.
8438 * Form.cs: Layout the MDI child windows when creating the parent
8440 - Don't use the internal constructor anymore
8441 * MdiClient.cs: use the parent form width/height (if available)
8442 when laying out the child windows, we do this because the
8443 mdiclient isn't docked yet when the initial layout is done.
8444 - Don't need an internal constructor anymore.
8446 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8448 * FileDialog.cs: handle access errors when trying to create a folder
8449 or changing to a directory. No need to initialize out parameters.
8451 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
8453 * FileDialog.cs: Append a number when creating a new folder if the
8454 folder already exists (use parenthesis instead of square brackets)
8456 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
8459 - Disabled registry support for windows and added better registry
8460 error checking for other systems (need to investigate why it
8461 works perfectly on my system)
8462 - If a folder already exist show an error MessageBox instead of
8463 trying to create an indexed name.
8464 - Fixed a non intentional typo.
8466 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8468 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
8470 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
8472 * FileDialog.cs: When creating a new folder don't crash if the
8473 folder already exists.
8475 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
8477 * FileDialog.cs: Allmost a complete rewrite.
8478 - added a "virtual" file system that handles the differences
8479 between unix and windows file systems (especially the directory
8480 structure). Moved most of the directory and file handling code
8482 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
8483 UnixFileSystem and FSEntry.
8484 - Recently used folder/directory, size, location and used file names
8485 (file name ComboBox) are now stored in the registry and get read
8486 before the dialog shows up (fixes part 6 of bug #78446).
8487 - Creation of new folders/directories is now possible (context menu
8488 or ToolBar). Added TextEntryDialog for this that fills in the gap
8489 until ListView.LabelEdit works.
8490 - Fixed cursor handling (bug #78527) and focus handling for
8492 - Various "Search in" ComboBox enhancements. The content of the
8493 dropdown listbox now almost matches ms.
8494 - Changed the behaviour when the user switches to SpecialFolder
8495 Recent to show the ListView in View.Details.
8496 - Beside using the ToolBar to change the View property of the
8497 file ListView it is now possible to use the context menu too.
8499 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
8501 * ComboBox.cs: Don't create a new ObjectCollection when an item
8502 gets inserted. Just insert the item in the existing object_items
8505 2006-06-08 Jackson Harper <jackson@ximian.com>
8507 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
8508 that the treeview and root node checks are done also, this fixes a
8509 regression i caused in the unit tests.
8511 2006-06-07 Wade Berrier <wberrier@novell.com>
8513 * RichTextBox.cs: More ISO8859-1 -> unicode
8515 2006-06-07 Mike Kestner <mkestner@novell.com>
8517 * ComboBox.cs : use items to hold highlight/selection so that
8518 collection insertions don't require synchronization.
8520 2006-06-07 Jackson Harper <jackson@ximian.com>
8522 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
8523 routine. We now always keep the sized edge at the cursor instead
8524 of computing movement and adjusting rects. There is one buglet
8525 with this method though when the cursor is moved over area that
8526 the window can not expand too (such as the toolbars on the desktop).
8528 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8530 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
8531 here. Fixes crash on startup in AlbumSurfer.
8533 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
8535 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
8538 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8540 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
8541 statement to avoid calling XNextEvent which will block if another thread
8542 took the event that we were expecting. Fixes bug #78605.
8544 2006-06-07 Mike Kestner <mkestner@novell.com>
8546 * ListView.cs : isolated checkbox clicking from the selection logic.
8547 Toggle check state on item doubleclicks. Really fixes #78454 part2.
8549 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8551 * Form.cs: Check that the value passed to Form.DialogResult
8552 is a valid enum value.
8554 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8556 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
8557 Computer'. Clicking it in the network view goes to 'My Computer'.
8558 Added CIFS filesystem type. Display the mount point of filesystems.
8559 Avoid duplicate mount points (happens for me with CIFS);
8561 2006-06-06 Jackson Harper <jackson@ximian.com>
8563 * InternalWindowManager.cs: Draw the maximized windows buttons
8566 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8568 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
8569 all other dialogs. Fixes bug #78585.
8571 2006-06-06 Mike Kestner <mkestner@novell.com>
8573 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
8574 Only invalidate checkbox on checkstate changes to avoid flicker.
8575 * ListBox.cs : avoid unselect/select when clicking selected item.
8576 avoid reselection flicker for already multiselected items.
8579 2006-06-06 Jackson Harper <jackson@ximian.com>
8581 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
8582 the parent form so that the menu is removed if needed.
8584 2006-06-06 Mike Kestner <mkestner@novell.com>
8586 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
8587 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
8589 2006-06-06 Mike Kestner <mkestner@novell.com>
8591 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
8594 2006-06-06 Jackson Harper <jackson@ximian.com>
8596 * Control.cs: Use the property (instead of the field) to get the
8597 default cursor so it is instantiated correctly.
8598 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
8599 resizes so we need to manually repaint the window decorations here.
8600 - Set the titlebar button locations as soon as they are created,
8601 otherwise they are not set correctly on win32.
8603 2006-06-06 Chris Toshok <toshok@ximian.com>
8605 * CurrencyManager.cs (set_Position): call PullData before
8607 (AddNew): after calling IBindingList.AddNew, update our
8608 listposition, and call OnCurrentChanged/OnPositionChanged (without
8610 (OnCurrentChanged): remove the call to PullData from here.
8611 (OnItemChanged): remove the call to PushData from here.
8612 (OnPositionChanged): change the test from == null to != null to
8613 match the other methods.
8614 (ListChangedHandler): the grossest part of the patch. Implement
8615 this such that it passes the unit tests in CurrencyManagerTest and
8616 the output more or less matches that of MS's implementation.
8618 2006-06-06 Mike Kestner <mkestner@novell.com>
8620 * ListView.cs : only update check state on single click.
8621 * ThemeWin32Classic.cs : fix focus drawing for details view without
8622 fullrowselect. Fixes #78454.
8623 * XplatUIX11.cs : fix for double click emission.
8625 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
8627 * PropertyGridView.cs : Applied Atsushi's patch to fix
8628 font dialog bug (#78197).
8630 2006-06-05 Jackson Harper <jackson@ximian.com>
8632 * TreeNode.cs: Compute the next node for expanding/collapsing
8633 correctly. We now factor in nodes without a NextNode
8634 correctly. (Fixes somes cases in nunit-gui).
8635 * InternalWindowManager.cs: Set the bounds when updating the
8636 virtual position of a tool window.
8638 2006-06-05 Chris Toshok <toshok@ximian.com>
8640 * DataGrid.cs: rename cached_currencymgr to list_manager.
8641 (set_CurrentCell): move SetCurrentCell code here, and clean it up
8643 (CurrentRow, CurrentColumn): single accessors so we can make the
8644 cursor movement code a lot easier to understand.
8645 (CurrentRowIndex): implement this in terms of CurrentRow.
8646 (BeginEdit): clean this up a bit.
8647 (CancelEditing): sort out the is_editing/is_changing/is_adding
8649 (EndEdit): minor changes.
8650 (OnKeyDown): add a comment about a (most likely) unnecessary
8652 (OnMouseDown): cancel editing when we click on a row header. And
8653 use the CurrentRow setter, not CurrentCell.
8654 (ProcessDialogKey): directly call ProcessGridKey.
8655 (UpdateSelectionAfterCursorMove): factor out this common block of
8656 code (it's used everywhere that we move the cursor by updating row
8658 (ProcessGridKey): pretty substantial overhaul. Use the
8659 CurrentRow/CurrentColumn properties to make the code a lot more
8660 readable. Only use the CurrentCell property when we have to
8661 modify both row and column at once. Tab behavior is still broken,
8662 and Delete is untested.
8663 (Select): if we have no selected rows, set selection_start to
8665 (EditCurrentCell): rename EditCell this. It was only ever invoked
8666 with CurrentCell as the arg, so drop the arg and rename it.
8668 * DataGridColumnStyle.cs: clean up the constructors a little, and
8669 drop CommonConstructor().
8671 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
8672 actually get notified when the user hits it.
8673 (ProcessKeyMessage): *substantially* simplify this method.
8674 There's no reason (that I can see) for the textbox to be making
8675 calls into the datagrid at all. Remove all of them but the ones
8676 for Enter handling. those will take some more work.
8678 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
8679 calling HideEditBox.
8680 (HideEditBox): if we have an active textbox, render it invisible
8681 without causing a re-layout of the datagrid.
8683 2006-06-05 Mike Kestner <mkestner@novell.com>
8685 * ListView.cs : fix NRE crasher when focuseditem is cleared by
8686 collection changes by resetting it to Items[0]. Fixes #78587.
8688 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8690 * MessageBox.cs: if the height of the text is larger than the icon_size,
8691 use that. Fixes bug #78575.
8693 2006-06-05 Jackson Harper <jackson@ximian.com>
8695 * TreeView.cs: Fix line drawing when scrolling. To do this each
8696 node is basically responsible for drawing its entire horizontal
8697 area. When drawing a node it draws its parent node lines if
8699 - Adjust the clip area to the viewport rectangle
8700 - Fix Left/Right key handling to match MS. (It expand/collapses
8701 and moves to parents/first child but does not move selection to
8703 - Fix SetTop to work with new bound calculation code
8704 - When scrollbars are no longer needed we need to reset scrolling
8705 vars and recalculate the visible order so the redraw is correct
8706 * TreeNode.cs: We can't expand/collapse nodes with no children.
8708 2006-06-03 John Luke <john.luke@gmail.com>
8710 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
8711 so the colors work without dev packages
8713 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
8716 - Select: Implemented to just use activate. Seems to match MS
8717 behaviour closest. Documented to only do actual control walking
8718 based on it's parameters if in a container control so I moved
8720 - Removed selection check logic from our internal Select() method
8721 * ContainerControl.cs:
8722 - Select: Moved selection logic from Control here, since MS documents
8723 that containers obey the bool arguments. No longer calling base
8725 2006-06-02 Jackson Harper <jackson@ximian.com>
8727 * TreeView.cs: If the selected node isn't changed when we get
8728 focus update the previously selected node so that we see the
8731 2006-06-02 Mike Kestner <mkestner@novell.com>
8733 * ComboBox.cs: restructure grab and general mouse event handling.
8734 Make the composite control raise mouse events like it was a single
8735 control for leaves/enters/motion/up/down events. fix dropdown list
8736 coordinate mangling and refactor it into the scrollbar subclass to
8737 reduce code duplication. Fixes #78282 #78361 and #78457.
8739 2006-06-02 Mike Kestner <mkestner@novell.com>
8741 * ScrollBar.cs: remove Capture setting/clearing, as it happens
8742 automatically in the Control.WndProc.
8744 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8746 * FileDialog.cs: fix crash when running SharpChess, which sets the
8747 FilterIndex to 2 with only one Filter.
8749 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8751 * ToolBar.cs: add SizeSpecified property.
8752 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
8753 try to figure out our real size, otherwise fallback to what the
8756 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
8758 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
8759 * Control.cs (WndProc): MS always calls the DefWndProc to pass
8762 2006-06-01 Mike Kestner <mkestner@novell.com>
8764 * ListView.cs: revamp the focus management in ListView. It still
8765 causes churn of LostFocus/GotFocus emissions on clicks, but it's
8766 better than not handling focus at all. Will revisit when pdb feels
8767 the general focus handling is solid. Fixes #78526.
8769 2006-06-01 Jackson Harper <jackson@ximian.com>
8771 * TreeView.cs: Set the default border style in the constructor.
8772 - Move painting to use OnPaintInternal instead of capturing
8773 WM_PAINT, this is the correct way of doing things
8774 - UpdateBelow shouldn't invalidate the scrollbar area
8775 - Cap the top on update below in case the node was above the top
8776 of the viewport rectangle.
8777 - ExpandBelow and Collapse below need to obey Begin/End Update.
8778 * TreeNode.cs: Make is_expanded internal so the treenode
8779 collection can change it without firing the whole event chain.
8780 * TreeNodeCollection.cs: When clearing all the child nodes make
8781 sure to recalc the visible order.
8782 - Improve algo for remove the top node
8784 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
8786 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
8787 SendMessage directly calling window procedures, which in turn might
8790 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
8792 * Control.cs: Don't handle WM_SETFOCUS if the same window already
8793 has focus (works around X11 sending a FocusIn after our SetFocus)
8794 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
8796 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
8798 * Mime.cs: Fix for the NET_2_0 build.
8799 NameValueCollection needs StringComparer now.
8801 2006-05-31 Chris Toshok <toshok@ximian.com>
8803 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
8804 return (via an out parameter) the starting X of the column.
8805 (UpdateVisibleColumn): track change to FromPixelToColumn.
8806 (HitTest): add a ColumnResize case here.
8807 (DrawResizeLine): new function, probably poorly named.
8809 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
8810 only need to keep one reference.
8811 (set_ListManager): same.
8812 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
8813 Also, add support for HitTestType.ColumnResize.
8814 (OnMouseMove): add column resize behavior here, and change the
8815 cursor to the correct one as we move around the datagrid.
8816 (OnMouseUp): terminate the column resize if we're resizing.
8817 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
8818 for the current cell.
8819 (ConnectListManagerEvents): use cached_currencymgr.
8820 (DisconnectListManagerEvents): fill this in, using
8822 (SetCurrentCell): remove cached_currencymgr_events handling.
8823 (SetDataMember): only call DisconnectListManagerEvents if
8824 cached_currencymgr is != null.
8825 (SetDataSource): same.
8826 (OnListManagerCurrentChanged): cached_currencymgr_events ->
8829 2006-05-31 Jackson Harper <jackson@ximian.com>
8831 * BindingManagerBase.cs: Remove somedebug code that creeped into
8833 * TreeNode.cs: We get the indent level dynamically right now, so
8834 don't track it as a member.
8835 * TreeNodeCollection.cs: Make sure all nodes added to the list
8836 have parents, treeviews/topnodes setup properly.
8837 - Don't attempt to track indent level.
8839 2006-05-30 Jackson Harper <jackson@ximian.com>
8841 * BindingContext.cs: Create the currency manager tables here.
8842 This allows us to more easily create null tables (when bad data
8843 members are used), and more easily create related currency
8845 * CurrencyManager.cs: All the table creation stuff is done by the
8846 binding context now.
8847 - Current should throw an exception if listposition is -1.
8848 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
8851 2006-05-30 Mike Kestner <mkestner@novell.com>
8853 * ListView.cs: allow reexpansion of zero-width column headers.
8856 2006-05-28 Chris Toshok <toshok@ximian.com>
8858 * CurrencyManager.cs (get_Current): after the late binding
8859 listposition = -1 fix, we need to guard against it here and return
8860 null, otherwise we raise an exception (which is swallowed
8861 elsewhere, and breaks datagrid databinding.)
8863 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
8865 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
8866 than WM_SYSKEY, don't throw if get something unexpected (#78507)
8868 2006-05-26 Jackson Harper <jackson@ximian.com>
8871 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
8872 values, it's faster and it's all we care about (we don't care if
8873 the names aren't equal).
8874 * KeyboardLayouts.cs: Eliminate some dead code.
8876 * X11Keyboard.cs: Lazy init keyboard detection.
8877 - Cleanup access modifiers a little.
8879 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
8881 * XplatUIX11.cs: Once again, attempting to get layout just right.
8883 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
8885 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
8886 the sizes of each link section, that will result in sizes that
8887 match DrawString's layout (Fixes #78391)
8889 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
8891 * FileDialog.cs: If AddExtension property is true autocomplete the
8892 extensions in SaveFileDialog correctly. Fixes bug #78453.
8893 Set MyNetwork and MyComputer to "C:\" for windows. This should
8894 fix part 8 of bug #78446 for now.
8896 2006-05-26 Chris Toshok <toshok@ximian.com>
8898 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
8899 invalidate the current row header if we need to, but presumably
8900 we'll invalidate the row corrsponding to the bounds or
8902 (GridHScrolled): switch back to this method, as it's part of the
8904 (GridVScrolled): same.
8905 (OnMouseWheel): hack up something that more or less works. Call
8906 GridHScrolled/GridVScrolled directly, instead of duplicating much
8908 (EnsureCellVisibility): reinstate a bunch of this code, since we
8909 can't just set the scrollbar Value and expect to do all the work
8910 in the ValueChanged handler. Also, Call Update() after scrolling
8911 in one direction so the other XplatX11.ScrollWindow call has the
8912 proper stuff in the proper places.
8913 (EditCell): set is_editing to true before calling .Edit.
8915 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
8916 don't bother comparing first.
8917 (OnKeyPress): call grid.ColumnStartedEditing before calling
8918 base.OnKeyPress. this will set is_changing and invalidate the row
8919 header if necessary.
8920 (ProcessKeyMessage): for WM_CHAR messages, call
8921 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
8924 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
8925 it's done in the DataGrid.
8926 (NextState): call grid.ColumnStartedEditing, which takes care of
8927 invalidating the row header (and setting is_changing).
8929 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
8930 here. it's done in the DataGrid.
8932 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8934 * Control.cs: allow changing the cursor when the mouse position is
8935 out of bounds but Capture is set.
8936 * LinkLabel.cs: handle the case when the mouse button is pressed on the
8937 linklabel but released somewhere else.
8939 2006-05-25 Jackson Harper <jackson@ximian.com>
8941 * TreeView.cs: When we get focus if there is no selected node make
8943 - Remove some uneeded setup code from Draw.
8944 * TreeNodeCollection.cs: If the tree doesn't have a top node when
8945 a new node is inserted make the new node the top.
8947 * Timer.cs: Use Utc time so that no local time zone stuff needs to
8948 be used (should be faster).
8950 2006-05-25 Chris Toshok <toshok@ximian.com>
8952 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
8953 problem with the last commit.
8955 2006-05-25 Chris Toshok <toshok@ximian.com>
8957 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
8958 need the invalidate call here, while scrolling right-to-left via
8959 the left arrow key (i.e. moving the editing cell while scrolling).
8961 * DataGrid.cs (.ctor): remove the initialization of
8962 ctrl_pressed/shift_pressed. We no longer track them using key
8963 up/down handlers, but by using Control.ModifierKeys. Also, switch
8964 to using ValueChanged handlers on the scrollbars instead of
8965 Scrolled event handlers. This simplifies a bunch of the scrolling
8967 (GridHValueChanged): rename from GridHScrolled, and change it to
8968 work with the new event args.
8969 (GridVValueChanged): same.
8970 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
8971 (OnMouseWheel): actually scroll the datagrid. Don't change the
8973 (ProcessGridKey): correct all the keyboard navigation stuff I
8974 could find. Ctrl up/down/left/right/home/end work now.
8975 (EnsureCellVisibility): correct method name spelling. Also,
8976 simplify this a touch by not explicitly calling the
8977 ScrollToRow/ScrollToColumnInPixels methods. We just set the
8979 (OnKeyUpDG): no need for this method now.
8981 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8983 * LinkLabel.cs: display the OverrideCursor when hovering the label.
8986 2006-05-25 Chris Toshok <toshok@ximian.com>
8988 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
8991 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
8993 * Application.cs: Moved setting of is_modal and closing to before
8994 we create the control, to allow the event handlers called as a
8995 result of creation affect closing. Also removed Gonzalo's previous
8996 change to setting DialogResult, the behaviour has been moved to
8999 - ShowDialog(): Removed explicit creation of the form, let RunLoop
9001 - ShowDialog(): If no dialog result is set, we need to return Cancel
9002 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
9003 the close is cancelled
9005 2006-05-25 Jackson Harper <jackson@ximian.com>
9007 * StatusBar.cs: We only need to update the sizes of the other
9008 panels when we have auto size contents. Also we are only updating
9009 the contents of the panel, not the borders, so compensate for the
9010 border width (TODO: get this width from the theme somehow).
9011 * TreeView.cs: Scrollable is true by default
9012 - Use invalidate instead of refresh where needed
9013 - Factor the scrollable value into scrollbar updating
9014 - Update the scrollbars if the Scrollable property is altered
9015 - Update the selected node if its ImageIndex is changed
9016 - Handle null nodes in UpdateNode (mainly so we don't have to
9017 check if selected is null when updating it
9018 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
9019 are factored into the visible count
9020 - Use VisibleCount for clarity in the code
9021 - When the font is changed we need to recurse through all the
9022 nodes and invalidate their sizes
9024 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9026 * Application.cs: set the DialogResult to fixed when the main form is
9027 hidden or destroyed while being modal.
9029 2006-05-25 Miguel de Icaza <miguel@novell.com>
9031 * Theme.cs: Use Tangoified messagebox icons.
9033 (GetSizedResourceImage): Also cope with width = 0 and do not
9034 trigger a warning in that case (0 means "give me your icon from
9035 the resouce, no special size needed).
9037 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
9039 * Application.cs: Leave runloop if the the main modal form is
9040 hidden (fixes #78484)
9042 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
9044 * BindingContext.cs : reject null datasource in Contains() and
9046 * CurrencyManager.cs : check data_member validity when data_source
9047 is dataset. When it is late binding, the initial position is -1.
9049 2006-05-24 Jackson Harper <jackson@ximian.com>
9051 * TreeNodeCollection.cs: Dont't recalculate the visible order on
9052 inserted nodes that aren't visible. This changes the
9053 max_visible_order which confuses scrollbar settings.
9054 - Use the enumerator to get the prev node instead of duplicating
9056 * TreeView.cs: Use new method for setting scrollbar values
9057 - Don't set the bounds every time the scrollbar is updated
9058 - When updating below the root node use an invalidate instead of a
9059 refresh to prevent the child controls (scrollbars) from being
9060 refreshed. (UpdateBelow still needs to be reworked anyways).
9061 - Reenable SetBottom now that visible orders are set correctly,
9062 added some debug code incase we ever get bad values there again.
9063 - Set the scrollbar max to 2 less then the max value, this
9064 compensates for the max value being one above the node count, and
9065 for scrollbars adding one extra "notch".
9066 - When drawing image nodes if there is an imagelist we draw the
9067 first image in the list if the supplied image index is out of the
9068 image list's bounds.
9070 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
9072 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
9073 we receive a size change from the WM (Fixes #78503)
9075 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
9077 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
9078 rectangle (Fixes #78501)
9080 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
9083 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
9085 - Fixed MouseMove to no longer switch pressed state unless the left
9086 mouse button is pressed. Atsushi provided the original patch (#78485)
9088 2006-05-24 Jackson Harper <jackson@ximian.com>
9090 * ScrollBar.cs: New internal methods that allow us to change a
9091 couple values on the scrollbar (the most common case is maximum
9092 and large change) without getting multiple invalidates.
9094 2006-05-24 Chris Toshok <toshok@ximian.com>
9096 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
9097 (Edit): save off the original state in oldState, and set
9098 grid.is_editing to true.
9099 (OnKeyDown): abort editing if escape is pressed. also, call
9100 NextState if space is pressed.
9101 (OnMouseDown): call NextState.
9102 (NextState): factor out shared code from OnKeyDown and OnMouseDown
9103 here. Also, only invalidate the row header once (on the initial
9104 is_changing switch) to save on redraws.
9106 2006-05-24 Chris Toshok <toshok@ximian.com>
9108 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
9109 if the value in the cell is different than it was before. This
9110 keeps us from triggering a layout when we move around a datarid
9111 with a highlighted cell.
9112 (Edit): suspend layout when creating/positining the text box, and
9113 resume passing false so we don't ever actually re-layout.
9114 (ReleaseHostedControl): same.
9115 (EnsureTextBox): reformat slightly, and set WordWrap to false.
9117 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
9118 control-key sequences should go to the datagrid - remove that
9119 lock. Also, modify the conditions under which we move between
9120 cells when moving the cursor within a cell, and remove the "this"
9121 and "base" from field accesses. We weren't even consistent, given
9122 they all were in the base class.
9124 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
9126 * Binding.cs : (.ctor)
9127 An obvious NRE fix for BindingTest.CtorNullTest().
9129 2006-05-23 Chris Toshok <toshok@ximian.com>
9131 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
9132 them between lines. This fixes some quirks editing cells in the
9135 2006-05-23 Jackson Harper <jackson@ximian.com>
9137 * TreeView.cs: Use begin/end update when doing expand/collapse all
9138 so that we don't get flicker on the scrollbar.
9140 2006-05-23 Jackson Harper <jackson@ximian.com>
9142 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
9143 treenode calculations to be independant of the painting code. To
9144 do this nodes track a visible order which is calculated by the
9146 - Call new methods for expanding/collapsing nodes. These methods
9147 use scrollwindow so we don't have to update everything below the
9149 * TreeView.cs: Refactored drawing and scrolling code. We don't
9150 need to update nodes when drawing anymore or calculate scrollbar
9152 - Added new methods for expanding/collapsing nodes. These methods
9153 use ScrollWindow so as to not have to redraw all the nodes below.
9154 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
9155 we add/remove nodes or sort.
9156 - Handle removing the selected and the top node properly.
9158 2006-05-23 Chris Toshok <toshok@ximian.com>
9160 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
9161 maybe this should actually happen in the datagrid code?
9162 (EndEdit): no need to invalidate anything, given that
9163 ReleaseHostedControl causes the datagrid to relayout, which
9164 invalidates everything anyway.
9166 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
9168 (set_SelectionBackColor): call InvalidateSelection instead of
9170 (set_SelectionForeColor): same.
9171 (BeginEdit): Flesh this out a bit.
9172 (CancelEditing): only do any of this if we're editing/adding.
9174 (OnMouseDown): there's no need to cancel editing here, it's done
9176 (SetCurrentCell): only invalidate the current row header if it's a
9177 different row than the new one.
9178 (ShiftSelection): fix this to work like MS does.
9179 (ResetSelection): factor out the invalidation of selected_rows to
9180 InvalidateSelection.
9181 (SetDataSource): cancel any editing that's going on.
9183 * DataGridColumnStyle.cs
9184 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
9185 call the non-interface version.
9187 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
9188 header rectangle with the clip rectangle so we don't redraw the
9189 entire header for just a small area. Gets rid of the last flicker
9190 when horizontally scrolling.
9191 (DataGridPaintRow): same.
9193 2006-05-23 Mike Kestner <mkestner@novell.com>
9195 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
9196 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
9197 poorly placed checkbox on the MS control. Fixes Alex's unfiled
9198 Critical bug report.
9200 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
9202 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
9203 and this fixes #78493
9205 2006-05-23 Miguel de Icaza <miguel@novell.com>
9207 * Theme.cs (GetSizedResourceImage): Scale images if the proper
9210 * FileDialog.cs: Do not change the background for the side bar as
9211 it wont work nicely with the theme, and also reduces the artifacts
9212 in rendering the icons (which I want to fix too).
9214 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
9215 resources, not resgen resources.
9217 (PlatformDefaultHandler): Pull images using the new API.
9219 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
9221 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
9222 a reference to the hwnd and will not remove it unless there are
9223 no pending exposures (fixes #78341)
9224 * XplatUI.cs: Improved debug
9226 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
9228 * MenuAPI.cs : don't handle OnClick event when it was not the left
9229 button. Fixed bug #78487.
9231 2006-05-23 Mike Kestner <mkestner@novell.com>
9233 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
9234 prefer submenus to the top menu for item lookup, to avoid popping down
9237 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
9239 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
9240 Graphics.FillRectangle as the visual results are really bad (even
9241 on win). We now draw perfect arrows (and perfect shadows when the
9242 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
9243 Pen.DashPattern to draw the dots of each line.
9245 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
9247 * FileDialog.cs: Update the filename combobox when navigating through
9248 the ListView with the cursor keys. Fixes part 7 of bug #78446.
9250 2006-05-22 Mike Kestner <mkestner@novell.com>
9252 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
9255 2006-05-22 Mike Kestner <mkestner@novell.com>
9257 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
9258 requests. Fix a misspelled parameter and a copy paste exception error
9261 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
9263 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
9264 to get the same width/height (5/13) on X11 as the default font has on
9265 win32. This means that our DefaultFont emSize is smaller than the
9266 the MS SWF equivalent (even thought the width/height stays the same)
9268 2006-05-20 Jackson Harper <jackson@ximian.com>
9271 * MdiWindowManager.cs:
9272 * InternalWindowManager.cs: Make sure to use the border width from
9275 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
9277 * PrintDialog.cs: Implements printer details
9279 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
9281 * FileDialog.cs: Added focus handling for PopupButtonPanel.
9282 Fixes part 1 and 2 of bug #78446
9284 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
9286 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
9287 instead of sticking to the first ever calculated value
9289 2006-05-19 Mike Kestner <mkestner@novell.com>
9291 * ComboBox.cs: fix mouse motion selection to use MousePosition and
9292 PointToClient, since Capture is set. Fixes #78344.
9294 2006-05-19 Mike Kestner <mkestner@novell.com>
9296 * ListView.cs: match MS behavior in Details view where items are not
9297 drawn if Columns.Count == 0.
9298 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
9299 Use a separate pen to draw the check, since changing the width affects
9300 the box as well. Fixes #78454.
9302 2006-05-18 Miguel de Icaza <miguel@novell.com>
9304 * ListView.cs: ArgumentOutOfRangeException, single versions of the
9305 exception should throw the name of the invalid argument.
9307 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
9308 there are no files listed.
9310 2006-05-18 Jackson Harper <jackson@ximian.com>
9312 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
9315 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
9317 * Control.cs: Brought back our old UpdateZOrder method as a private
9318 function and switched our calls from UpdateZOrder to the new one.
9319 This fixes the Paint.Net canvas disappearing bug.
9321 2006-05-18 Jackson Harper <jackson@ximian.com>
9324 * ThemeWin32Classic.cs:
9325 * InternalWindowManager.cs: Move the drawing into the theme,
9326 expose everything the theme should need from the window manager.
9328 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
9330 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
9331 from the call to NativeWindow to avoid walking up the parent chain
9332 further than needed (speeds up setting cursors and avoids setting
9333 the wrong cursor if a parent has another cursor defined)
9334 * Cursor.cs: When loading an icon as cursor, MS uses the center of
9335 the icon as hotspot, not what's contained as hotspot in the icon
9336 file. This fixes the perceived drawing offset seen with Paint.Net
9338 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
9341 - Store the calculated rectangle in Hwnd object and use it when
9342 setting the client size
9343 - Force Toolwindows to always be type Dock, to ensure they're on top
9345 2006-05-18 Mike Kestner <mkestner@novell.com>
9347 * ComboBox.cs: first pass at ComboBox rework. Layout is more
9348 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
9349 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
9350 Substantial refactoring to remove confusing nested classes. Coding
9351 standard and Get+Set->property refactorings. Shift to index based
9352 highlighting in ComboListBox instead of constantly using IndexOf and
9353 Items[]. Add invalidations on resize for DropDownList to fix ugliness
9354 in FileDialog growth. Draw borders manually since Simple mode needs
9355 to look like two independent controls. Make listbox border
9356 conditional to DropDownStyle. Improved OwnerDraw support.
9358 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
9360 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
9361 Don't set the disposed graphics to null, so we can throw the "right"
9362 exception if the graphics is reused later (added a flag to avoid
9363 double disposing). Some behaviours are different under 2.0 and are
9364 filled under bug #78448.
9366 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
9368 * Control.cs: When double-buffering is enabled, we need to reset
9369 our graphics context between paint calls. Otherwise, any
9370 transformations and other alterations on the context will
9371 become cumulative (#77734)
9373 2006-05-18 Mike Kestner <mkestner@novell.com>
9375 * ListView.cs: do focused item selection like MS on clicks.
9376 Rework focus handling for ItemControl so LostFocus invalidates as
9378 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
9379 the ListView ItemControl has focus.
9381 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
9383 * XplatUIX11.cs: If client_window ends up being width or height zero
9384 due to border settings, move it off window inside whole_window (#78433)
9386 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
9388 * Mime.cs: Shrink the mime file cache correctly.
9390 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
9392 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
9394 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
9396 * XplatUIX11.cs (AddExpose): More sanity checks
9398 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
9401 - AddExpose: Don't add expose ranges outside the size of our
9403 - Cast opacity values to Int32 to avoid crashes with certain
9405 - Added disabled code paths that protect against illegal cross-
9406 thread painting (Developers.exe)
9408 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
9410 * ProgressBar.cs: Invalidate the control when it's resized
9411 since block size is based on control size. (#78388)
9413 2006-05-16 Miguel de Icaza <miguel@novell.com>
9415 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
9416 of setting the incoming argument to the "reset" value, we set the
9417 this.datamember to string.empty (before we were invalidating the
9422 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
9424 * Form.cs: Only apply transparency settings after the form
9425 is created. (Fixes #77800)
9427 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
9429 * ApplicationContext.cs: Grab the HandleDestroyed event so
9430 we know when to fire OnMainFormClosed
9432 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
9434 * Application.cs: Introduced sub-class to allow tracking of
9435 threads and centralized triggering of the event mess for
9436 ThreadExit, AppExit, etc.. (#76156)
9438 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
9441 - Do not return a null icon index value for a mime subclass.
9442 Instead try the main mime type class too.
9443 - Seems that some newer distributions don't have a link to some
9444 gnome default icons anymore. So check the default gnome dir too.
9447 2006-05-16 Jackson Harper <jackson@ximian.com>
9449 * MdiClient.cs: Don't paint the parent background image if we have
9450 our own background image.
9452 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
9455 - PerformLayout: Do not shrink space filled by DockStyle.Fill
9456 controls, all filled controls are supposed to overlap (#78080)
9457 - UpdateZOrder is supposed to update the control's z-order in the
9458 parent's z-order chain. Fixed to behave like that
9459 - BringToFront: Removed obsolete code
9460 - SendToBack: Simplyfied
9461 - SetChildIndex: Trigger layout calculations when Z-order changes
9462 since layout is done by z-order
9464 2006-05-16 Chris Toshok <toshok@ximian.com>
9466 [ fixes bug #78410 ]
9467 * DataGrid.cs (set_AlternatingBackColor): use
9468 grid_drawing.InvalidateCells instead of Refresh().
9469 (set_BackColor): call grid_drawing.InvalidateCells.
9470 (set_BackgroundColor): use Invalidate instead of Refresh.
9472 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
9473 invalidate the cell area.
9475 2006-05-15 Chris Toshok <toshok@ximian.com>
9477 [ fixes bug #78011 ]
9478 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
9479 on to DataGridPaintRow.
9480 (DataGridPaintRow): take a clip argument, and only draw the cells
9481 which intersect it. same with the not_usedarea.
9483 * Theme.cs (DataGridPaintRow) add @clip parameter.
9485 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
9486 XplatUI.ScrollWindow.
9487 (ScrollToRow): same.
9489 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
9490 with last column which was causing a gray swath to appear with the
9491 XplatUI.ScrollWindow code.
9493 2006-05-15 Chris Toshok <toshok@ximian.com>
9495 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
9496 use XplatUI.ScrollWindow.
9497 (VerticalScrollEvent): use XplatUI.ScrollWindow.
9499 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
9501 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
9503 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
9505 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
9506 file since there are no equivalent X11 cursors
9508 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
9510 * MonthCalendar.cs : DateTimePicker should reflect selected date
9511 on mouse*up*, not mouse*down*. Fixed originally reported part of
9514 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
9516 * TabControl.cs : When argument index is equal or more than tab
9517 count, just ignore. Fixed bug #78395.
9519 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
9521 * Control.cs: Dispose all child controls when control is diposed (#78394)
9523 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
9525 * ColorDialog.cs: Finally it is possible to select the color with
9528 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
9530 * PrintDialog.cs: Fix typo
9532 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
9534 * PrintDialog.cs: PrintDialog is not resizable
9535 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
9536 color. Made some ToolBar drawing methods protected virtual.
9538 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
9540 * PrintDialog.cs: Implementation of the PrintDialog
9542 2006-05-12 Chris Toshok <toshok@ximian.com>
9544 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
9545 thumb, instead use MoveThumb. This has the side effect of making
9546 most of the other thumb moving machinery use MoveThumb as well.
9547 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
9548 need to actually invalidate the rectangle where the new thumb will
9550 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
9551 We force an Update() after, so it's not as fast as it could be,
9552 but at least there's zero flicker and no droppings.
9553 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
9554 (UpdateThumbPos): add another argument (dirty), which says whether
9555 or not to calculate/add dirty regions which we later invalidate.
9556 For cases where we know we're going to use MoveThumb, we pass
9557 false for this. Otherwise, pass true.
9559 2006-05-12 Jackson Harper <jackson@ximian.com>
9561 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
9564 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
9566 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
9567 and GetClipRegion methods and UserClipWontExposeParent property.
9568 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
9569 overriding UserClipWontExposeParent property, setting to false, since
9570 Win32 handles the required expose messages to draw our clipped parent
9572 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
9573 PaintEventStart to set the user clip region if set.
9575 - Now internally tracking the Region for the control since we need to
9576 store it if the handle is not yet created and only set it when it
9577 becomes created. Before setting the region forced handle creation
9578 - Added code to draw the parents underneath a user-clipped region
9579 * Hwnd.cs: Added UserClip property
9581 2006-05-12 Chris Toshok <toshok@ximian.com>
9583 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
9584 (set_Maximum): same.
9585 (set_Minimum): same.
9586 (set_SmallChange): same.
9587 (OnMouseUpSB): remove the call to refresh when releasing the
9588 thumb. We shouldn't need it.
9590 2006-05-12 Miguel de Icaza <miguel@novell.com>
9592 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
9593 AutoSize set to None, we do not need to relayout everything, we
9594 just need to invalidate the current region.
9596 (Draw): Do not draw the entire ClientArea, just redraw the
9597 clip area being passed.
9599 * MdiClient.cs: Make MdiClient constructor with the Form argument
9602 2006-05-12 Jackson Harper <jackson@ximian.com>
9604 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
9605 parents background image, but strangely not their own.
9606 - (DrawStatusBarPanel): Take into account horizontal alignment
9607 when drawing the strings and icons.
9609 2006-05-12 Mike Kestner <mkestner@novell.com>
9611 * ListBox.cs: avoid invalidations for focus when the collection is
9614 2006-05-12 Chris Toshok <toshok@ximian.com>
9616 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
9617 invalidate the entire thumb area. Call InvalidateDirty which
9618 limits the redraw to the thumb itself and surrounding pixels.
9620 * XplatUIX11.cs (ScrollWindow): optimize copying.
9622 2006-05-12 Chris Toshok <toshok@ximian.com>
9624 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
9625 Figure out the positioning/layout in a single pass instead of
9626 multiple recursive invocations. Speeds up the initial display of
9627 the data grid. Also, make many things private that were
9628 originally public but unused outside this class.
9630 2006-05-11 Jackson Harper <jackson@ximian.com>
9632 * MdiClient.cs: Improved layout code.
9634 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
9636 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
9639 2006-05-11 Chris Toshok <toshok@ximian.com>
9641 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
9642 union of that will always be {0,0,width,height}.
9644 2006-05-11 Jackson Harper <jackson@ximian.com>
9646 * Form.cs: Match MS's DefaultSize for forms (they must have
9647 changed the size in sp2).
9649 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
9651 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
9653 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
9655 * TextControl.cs : Fixed bug #78109. This incorrect position
9656 comparison caused crash on automatic line split.
9657 * TextBoxBase.cs : reduce duplicate code.
9659 2006-05-10 Jackson Harper <jackson@ximian.com>
9661 * MdiClient.cs: Active form is only sent to the back when using
9662 the Next form functionality, when a form is clicked the current
9663 active shouldn't be sent to the back.
9664 - Layout the mdi windows when the container is first made visible.
9665 * Form.cs: Give the MdiClient a ref to the containing form when we
9668 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
9670 * LinkLabel.cs : link_font could be uninitialized, so populate one
9671 before actual use. Fixed bug #78340.
9673 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
9675 * XplatUIX11.cs : clipboard format native value is IntPtr.
9678 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
9681 - Instead of showing context menus directly we send WM_CONTEXTMENU,
9682 which is passed up the parent chain by DefWndProc
9683 - We now handle WM_CONTEXTMENU to display any menu, or pass it
9684 to DefWndProc (#77956)
9685 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
9687 2006-05-10 Jackson Harper <jackson@ximian.com>
9689 * MdiClient.cs: We need to remove the controls from the mdi
9690 collection, when we close the window.
9691 * MdiWindowManager.cs: Special handling of closing mdi windows.
9692 * InternalWindowManager.cs: Make the close method virtual so the
9693 mdi window manager can handle it specially.
9695 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
9698 - Recalculate grid when the data source has changed
9699 - Matches styles provided by user from all data sources types
9700 * DataGridTableStyle.cs: For columns that provided by the user set the
9701 with the preferred value is there was unassigned.
9702 * CurrencyManager.cs: throw OnItemChanged event
9704 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
9706 * PictureBox.cs: Don't animate until handle is created. Start animation
9707 when handle is created.
9709 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
9711 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
9713 * XEventQueue.cs: We don't need to provide the extra info
9715 2006-05-10 Jackson Harper <jackson@ximian.com>
9717 * MdiClient.cs: If the mdi clients parent form has a background
9718 image set, we draw that background image for the mdi area's
9721 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
9723 * TextBoxBase.cs: Set IBeam cursor (#78347)
9725 2006-05-10 Mike Kestner <mkestner@novell.com>
9727 * ToolBar.cs: fix some text padding issues with ButtonSize
9728 calculation. Update the default size to match MS documentation.
9729 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
9730 button size. Fixes #78296.
9732 2006-05-10 Mike Kestner <mkestner@novell.com>
9734 * ListBox.cs: use is_visible for scrollbar positioning in case the
9735 control isn't on screen yet. Fix off by one with Right vs Width
9736 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
9738 2006-05-10 Jackson Harper <jackson@ximian.com>
9740 * X11Dnd.cs: Drop to a control with another control on top of it.
9741 * ToolBar.cs: Work on a copy of the buttons list, so that it can
9742 be modified in click handlers. TODO: Look for similar problems in
9745 2006-05-09 Jackson Harper <jackson@ximian.com>
9747 * Form.cs: Window managers need the old window state when setting
9749 * InternalWindowManager.cs: Allow the base mdi window manager to
9750 handle more of the MDI only stuff (like maximize buttons).
9751 * MdiWindowManager.cs: Fix some snafus in changing the window
9752 state. Add all the menu functionality, for both popup and
9754 * MdiClient.cs: When a new form is selected the currently
9755 activated form is sent to the back, this matches MS.
9756 - Implement a new method to activate the next mdi child window.
9758 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
9761 - Added new InternalCapture method to allow controls to prevent
9762 the capture behaviour on the click handlers
9763 - Switched to use InternalCapture
9765 - Using InternalCapture to prevent mouse captures from being released
9766 on mouse button release (Fixes #78100)
9767 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
9768 returns Form borders if a caption is present. (Fixes #78310)
9770 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
9772 * TreeNode.cs: Changed serialization .ctor to not require every field
9773 to be present. (#78265)
9774 * OwnerDrawPropertyBag.cs: Added serialization .ctor
9776 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
9778 * MimeIcon.cs: for is faster than foreach for strings.
9780 2006-05-05 Mike Kestner <mkestner@novell.com>
9782 * CheckedListBox.cs: update check handling code to not use selected.
9783 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
9784 behavior for visual feedback, motion response, shift/ctrl handling,
9785 and properly deal with all 4 selection modes. Updates to bounds
9786 handling logic. Add scroll wheel support. [Fixes #77842]
9788 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
9791 - Moved adding of Implicit controls into .ctor. That way, subsequent
9792 creation of the controls will not cause them to think they are
9793 toplevel windows (fixes #78200 header problem)
9794 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
9795 - Switched visibility setting of header control to use internal field
9796 to avoid triggering handle creation
9797 - Now checking if handle is created before causing a refresh when items
9798 are added (This makes us now match handle creation time with MS)
9799 * Splitter.cs: Removed loading of private splitter cursor, switched to
9800 Cursors version now that that is loading the right ones
9801 * Cursors.cs: Load proper splitter cursors from resources
9802 * Cursor.cs: Added second method of loading resource cursors for the
9803 VS.Net users amongst us
9805 2006-05-05 Mike Kestner <mkestner@novell.com>
9807 * ListView.cs: give header_control a minimum size based on the
9810 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
9812 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
9813 window seems to do that with metacity, so set that type. (#78120)
9815 2006-05-05 Mike Kestner <mkestner@novell.com>
9817 * ListViewItem.cs: fix Details mode checkbox layout bug.
9818 * ThemeWin32Classic.cs: draw a ListView column header for unused space
9819 at the end of the header, if it exists. [Fixes for #78200]
9821 2006-05-04 Jackson Harper <jackson@ximian.com>
9823 * MdiClient.cs: Add a helper property to get the container form.
9824 * MdiWindowManager.cs: We have to make sure to use the menu origin
9825 when drawing the icons and buttons, this fixes maximized window
9826 icons/buttons on win32.
9827 * InternalWindowManager.cs: Reset the restore captions when a
9828 window goes from Maximized to Minimized and vice versa. Move the
9829 DrawMaximizedButtons into the MdiWindowManager source, tool
9830 windows can't be maximized. NOTE: This could use a little
9831 refactoring if time ever permits.
9833 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
9835 * TextBox.cs: Add MWFCategoryAttributes
9836 * TextBoxBase.cs: Add MWFCategoryAttributes
9837 * Form.cs: Add MWFCategoryAttributes
9839 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
9841 * Control.cs: Add MWFCategoryAttributes
9842 * ScrollableControl.cs: Add MWFCategoryAttributes
9844 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
9846 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
9847 Divider is true. Fix a little glitch in PropertyToolBar
9850 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
9853 - Dispose: Call base.Dispose, this causes the disposed event
9854 to be fired (and probably other, more important stuff)
9855 - SetVisibleCore: Set is_visible to true after creating the
9856 window so that the window still gets created invisible (if
9857 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
9858 to generate a WM_ACTIVE message
9859 * Form.cs: Call Dispose when we want to destroy the window, instead of
9860 just destroying the handle (Dispose will do that for us)
9862 - RootWindow also needs a queue, so we can properly process the
9863 property change events from RootWindow (like Activate)
9864 - Generatic synthetic WM_ACTIVE message when the active window is
9867 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
9869 * LinkLabel.cs: Trigger a recalc of our label dimensions when
9872 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
9874 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
9875 for determining width and height (image might not be assigned if
9876 we're drawing an imagelist)
9878 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
9880 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
9881 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
9883 * Theme.cs: No longer returns hardcoded menu height, instead calls
9885 * Form.cs (OnLoad): Scaling happens before triggering Load events
9888 2006-05-01 Mike Kestner <mkestner@novell.com>
9890 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
9892 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
9894 * TextBoxBase.cs: Removed Fixme
9895 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
9897 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
9900 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
9901 the rectangle relative to the parent, considering borders. We
9902 don't really want that.
9903 - ScrollWindow: Fixed warning to be more understandable
9904 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
9905 scrollbars and scroll only the visible area
9906 * RichTextBox.cs: Removed debug output
9908 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
9910 * NumericUpDown.cs (Text): Just use base
9911 * UpDownBase.cs: Ensure txtView is created before using it
9913 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
9915 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
9916 casting to IntPtr to avoid 64bit overflow errors
9918 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
9921 - AllowDrop: Don't force handle creation.
9922 - CreateHandle: Added call to tell driver if we're allowed to drop
9924 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
9926 * FileDialog.cs: Remember the last directory not only for the
9927 current instance but also for new FileDialog instances.
9929 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
9931 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
9932 broke sending async messages
9934 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
9937 - ScrollWindow: Fixed method. We finally generate expose events again
9938 for scrolled areas. This was causing 'garbage' when scrolling
9939 textbox and other controls that used ScrollWindow
9940 - Switched from using the regular queue for paint events to the MS
9941 model of 'generating' paint events when the queue is empty.
9942 We use the new XQueueEvent.Paint subclass to store which windows
9944 - AddExpose now takes the x/y/width/height of the exposed area
9945 and inserts the window into the paint queue if not already there
9946 - InvalidateWholeWindow: Switched to use new AddExpose method
9947 - UpdateMessageQueue: Added which queue to monitor for paint events
9948 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
9949 the unlikely case nothing above handles it. We reset the expose
9950 pending states to get them off the queue.
9951 - GetMessage: Now pulls a paint event if no other events are in the
9953 - Invalidate: Switched to new AddExpose method
9954 - PeekMessage: Updated to understand pending paint events
9955 - UpdateWindow: Fixed logic bug. We were only updating if the window
9956 didn't need updating. Also switched to sending WM_PAINT directly,
9958 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
9959 and random access Remove(). The random access is needed to handle
9960 UpdateWindow() where a WM_PAINT is sent directly without accessing
9962 * ScrollBar.cs: Added Update() calls to cause immediate updates to
9963 allow for better feedback when scrolling. Scrollbars are small and
9964 the immediate update should make it 'feel' more responsive without
9965 slowing things down. ScrollBar still needs it's invaliate logic
9966 updated to not always invalidate the whole bar on certain changes.
9968 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9971 (BackColor): if the control does not support a transparent background,
9972 return the default backcolor when the parent backcolor is transparent.
9974 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
9976 * Application.cs: Updated to new StartLoop/GetMessage API
9977 * RichTextBox.cs: Provide some output on RTF parsing errors
9978 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
9979 new queue_id argument to GetMessage and PeekMessage to allow faster
9980 handling of per-thread queues in drivers.
9981 * Hwnd.cs: Added Queue tracking and property
9982 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
9983 * XEventQueue.cs: Added thread trackingA
9984 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
9986 - Implemented new per-thread queue
9987 - GetMessage: Fixed return/break behaviour on several cases. We were
9988 returning stale messages in some cases, instead of just processing
9991 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
9993 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
9995 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
9997 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
9998 fixed off-by-one comparisons between Width/Height and Right/Bottom.
10000 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
10002 * PropertyGridView.cs: Fix drop down width.
10004 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
10006 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
10007 a mess in DrawToolBar, so I removed one of them.
10009 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
10011 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
10012 needed (clip). Otherwise we get artifacts.
10014 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
10016 * FixedSizeTextBox.cs: Added constructor to allow specifying which
10018 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
10019 and switched FixedSizeTextBox to only be fixed vertical (#78116)
10020 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
10021 if it matches the scale base font (avoids unneeded scaling)
10023 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
10025 * X11DesktopColors.cs: One gtk_init_check should be enough
10027 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
10029 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
10032 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
10035 - Generate OnTextChanged for Backspace even if we're only deleting
10036 the current selection
10037 - When setting the Text property, only select all text if the
10038 control does not have focus when it is being set. Otherwise
10039 just place the cursor at the beginning of the control
10041 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
10043 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
10044 Added a little helper to draw PropertyGrid ToolBar with a different
10045 border and a different BackColor.
10046 * PropertyGrid.cs: Some background parts didn't get painted with the
10047 correct background color. Added a class that helps us to draw the
10048 correct border for PropertyGridView and a class that helps us to
10049 draw ToolBars with a different backcolor
10050 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
10052 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
10054 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
10055 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
10057 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
10059 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
10060 into the palette entries. Also, since we're working on a copy
10061 we needed to copy the palette back onto the bitmap.
10062 * Cursor.cs: Same fix as XplatUIWin32.cs.
10064 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
10066 * ImageListStreamer.cs: Need to read the var (or we're off)
10068 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
10070 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
10071 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
10072 TextBoxBase.cs: Unused var fixes
10073 * AxHost.cs: Small 2.0 fix
10074 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
10075 as it seems that is what at least Metacity expects. This will make
10076 icons show up on 64bit platforms. We still have some 64bit size
10077 issues, though, since the startup app window size still won't match.
10079 2006-04-25 Mike Kestner <mkestner@novell.com>
10081 * *.cs: cleanup newly reported exception var unused warnings.
10083 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
10085 * ThemeWin32Classic.cs: Button image alignment now matches exactly
10088 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
10090 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
10091 image. The image position is always the same, no matter if the
10092 button is pressed or not.
10094 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
10096 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
10097 selection and set the correct filename for SaveFileDialog.
10098 Patch by Emery Conrad.
10100 2006-04-24 Mike Kestner <mkestner@novell.com>
10102 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
10103 check for item.X outside the ClientRect instead of item.Y. Fixes
10106 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10108 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
10109 trust that value blindly and do some sanity check. Fixes bug #77814.
10111 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10113 * ImageListStreamer.cs: save the mask as a 1bpp image.
10115 2006-04-21 Mike Kestner <mkestner@novell.com>
10117 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
10118 pass Checked and Indeterminate to the Theme Engine. Improve
10119 encapsulation with ListBox.
10120 * ListBox.cs: Keep a StringFormat instead of calculating it every item
10121 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
10122 nested types. Move all CheckState functionality to CheckedListBox.
10123 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
10124 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
10125 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
10126 single base list. Fix scrollbar sizing and placement to mirror MS.
10127 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
10129 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
10130 for CheckedListBox by using new DrawItemState info. Center the
10131 checkboxes on the items. Use new StringFormat property.
10133 2006-04-18 Jackson Harper <jackson@ximian.com>
10135 * Form.cs: MdiChildren don't do default locations the same way as
10136 regular forms. This prevents a crash when trying to position the
10139 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
10141 * PropertyGridTextBox.cs: Formatting, copyright
10142 * PropertiesTab.cs: Formatting
10143 * PropertyGrid.cs: Formatting
10144 * PropertyGridView.cs: Formatting, fix drop down, enabled double
10145 click toggling of values
10147 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
10149 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
10150 * Control.cs (.ctor): verify_thread_handle is static, don't reset
10151 every time a control is created
10152 * Application.cs: Removed obsolete EnableRTLMirroring method
10154 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
10156 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
10157 SelectedIndex to -1. Fixes bug #78121.
10159 2006-04-17 Jackson Harper <jackson@ximian.com>
10161 * Binding.cs: Handle null values for Current and BindingContext.
10162 This occurs when binding is a little delayed.
10163 * CurrencyManager.cs: return null for Current when there are no
10165 - Hookup to the listchanged event on the DataView and update
10166 bindings when the list is changed. This fixes late binding of
10169 2006-04-17 Jackson Harper <jackson@ximian.com>
10172 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
10175 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
10177 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
10179 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
10180 with the correct ButtonState
10182 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
10184 * XplatUIX11.cs: Improved distinguishing between window types to
10185 tell the WM a type closer to what the app wants (Fixes #78107)
10187 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
10189 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
10192 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
10194 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
10195 drawing code to reflect the size grip changes
10197 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10199 * ImageListStreamer.cs: fix handling of the mask that follows the main
10200 bitmap when deserializing and serialize it properly. The generated mask
10201 should better be a 1bpp image, but I'll do that later.
10203 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
10205 * FileDialog.cs: Show something in the DirComboBox on *nix if the
10206 path doesn't fit into some of our Current.Places
10208 2006-04-13 Jackson Harper <jackson@ximian.com>
10210 * ComboBox.cs: Use borders instead of drawing our own decorations,
10211 try to obey correct rules for heights.
10214 * ThemeClearLooks.cs:
10215 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
10216 this is now handled by borders.
10217 - Remove unused DrawListBoxDecorationSize method.
10219 2006-04-13 Mike Kestner <mkestner@novell.com>
10221 * MenuAPI.cs: null guarding for the disbled click check fixes crash
10224 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
10226 * ThemeWin32Classic.cs:
10227 - Fixed CPDrawStringDisabled
10228 - Corrected drawing of disabled menu items
10229 - Fixed drawing of disabled radio buttons (bug #78095)
10230 - Draw check in a disabled CheckBox with color ControlDark
10232 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
10234 * Form.cs: Use the provided width when calculating the menu size;
10235 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
10236 and ClientSize.Width won't be updated yet
10237 * Application.cs: Use Visible instead of Show() to make form visible,
10238 this way we create the handle later and menusize is considered
10240 2006-04-12 Mike Kestner <mkestner@novell.com>
10242 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
10245 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
10247 * TextBox.cs: Implemented context menu
10249 2006-04-12 Mike Kestner <mkestner@novell.com>
10251 * ListView.cs: implement box selection. fixes #77838.
10252 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
10254 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
10256 * XplatUIX11.cs: Added setting of window type when transient window
10257 is created (metacity would move it otherwise)
10258 * X11Structs.cs: Added WINDOW_TYPE atoms
10259 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
10260 background (the control is Opaque but still wants transparent
10263 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
10265 * Control.cs: Added OnPaintBackgroundInternal to allow controls
10266 that set Opaque but don't mean it (like all ButtonBase-derived
10267 controls) to still draw their background
10268 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
10271 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
10273 * Control.cs (PaintControlBackground): Set the graphics object
10274 on our PaintEvent to null to prevent it from being disposed
10275 when the PaintEvent gets disposed
10277 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
10279 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
10280 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
10282 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
10285 - Added transparency check to BackColor property. Transparent
10286 backgrounds are only allowed if the control styles permit it
10287 - Added recursive painting of parent control background and
10288 foreground if a control with a transparent backcolor is drawn
10289 (Thanks to Tim Ringenback for providing his 'hack' as a base
10290 for this patch) Fixes #77985 and #78026.
10291 - Added Opaque style check before calling OnPaintBackground, no
10292 need to draw the background if the control is opaque
10293 - Removed ControlAccessibleObject owner variable (inherited from
10294 base, no need to define again)
10295 - Added some documentation links explaining the drawing events
10298 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
10300 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
10301 that the affected control is the located at the left border of our
10302 parent (Fixes #77936)
10304 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
10306 * TextBoxBase.cs: When rendering disabled or readonly controls,
10307 draw the background with 'Control' instead of 'Window' color as
10308 long as the user hasn't specifically set a color
10310 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
10312 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
10313 since that won't be updated if the user types text (only if it's
10314 programatically set)
10316 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
10318 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
10319 layout changes do to app-triggered resizes will have the proper
10320 display rectangle for layout
10322 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
10324 * ThemeWin32Classic.cs:
10325 - Make use of the SystemBrushes and SystemPens wherever possible
10326 - Corrected some highlight colors
10327 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
10329 * Theme.cs: Added Empty field to CPColor struct
10331 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
10333 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
10334 is displayed when calculating the display rectangle. Thanks to Mike
10335 for teaching me the err of my ways.
10337 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
10339 * ScrollableControl.cs:
10340 - Rewrote DisplayRectangle code, now returning the proper x/y coords
10341 (instead of 0,0) and we now return the real width/height instead of
10342 just the clientrectangle, adjusted for padding. The rectangle is
10343 now cached and created by the new CalculateDisplayRectangle method.
10344 - Created new CalculateDisplayRectange method, which basically does
10345 what get_DisplayRectangle() did originally, but now using the
10346 right edge instead of DisplayRectangle to determine the size of
10348 - get_Canvas(): Fixed it to properly calculate canvas for
10349 right/bottom controls which seem to be placed to the right/bottom
10350 of any controls that have a fixed location
10351 - Removed TODO that's taken care of
10352 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
10353 and SetDisplayRectLocation according to new MSDN2 docs
10354 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
10355 event when that is called, this is added for compatibility
10356 - ScrollControlIntoView(): Implemented.
10357 - Switched scrollbars to be implicit, they shouldn't be selectable
10358 * ContainerControl: Now that ScrollControlIntoView is implemented, we
10359 call it when the active control is set/changed
10360 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
10361 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
10362 implicit_control variable (used for native Win32 message generation)
10363 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
10364 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
10365 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
10366 * XplatUIStructs.cs: Added ScrollBarCommands enum
10368 2006-04-10 Jackson Harper <jackson@ximian.com>
10371 * CheckedListBox.cs:
10378 * PrintPreviewControl.cs:
10384 * UpDownBase.cs: Fixup base event overrides.
10386 2006-04-06 Mike Kestner <mkestner@novell.com>
10388 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
10389 all user-initiated value changes to min <= value <= max-thumbsz+1.
10390 (set_Value): check for vert/horiz when calculating new thumb position.
10391 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
10393 (OnMouseMoveSB): refactor the thumb dragging code and refine
10394 invalidation logic to reduce flicker.
10395 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
10396 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
10397 (UpdateThumbPosition): small code readability cleanup
10399 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
10401 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
10404 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
10406 * ThemeNice.cs: Use a better graphics effect when a button is pressed
10408 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
10410 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
10411 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
10412 This dramatically reduces the number of Pen.Dispose calls.
10413 Where possible call ResPool methods only once instead of calling it
10414 over and over again (for example for the same color).
10416 2006-04-06 Mike Kestner <mkestner@novell.com>
10418 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
10419 Also remove an unused private field on the collection. Fixes #77972.
10421 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
10423 * ThemeNice.cs: Added ToolBar drawing code
10425 2006-04-06 Mike Kestner <mkestner@novell.com>
10427 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
10428 I'm assuming that means we need to look up the toplevel for the
10429 provided control. Fixes the crash trace in #77911 but exposes another
10430 crash in some strange reflection usage in NDocGui.
10432 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
10434 * ThemeNice.cs: Gave it a little silver touch and added Images
10436 * FontDialog.cs: FontDialog is not resizable
10437 * FileDialg.cs: Added SizeGripStyle.Show
10439 2006-04-05 Jackson Harper <jackson@ximian.com>
10441 * KeyboardLayouts.cs: Remove warning.
10443 2006-04-05 Jackson Harper <jackson@ximian.com>
10445 * Control.cs: Enable OnPaintInternal so we can use it for drawing
10446 all of our controls instead of Paint +=.
10461 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
10462 use OnPaintInternal. Remove Width/Height and Visible checks in
10463 paint handler, this is done at a higher level now.
10464 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
10465 * PaintEventArgs.cs: Add a handled flag so controls that don't
10466 want anymore painting after OnPaintInternal can make sure OnPaint
10469 2006-04-05 Mike Kestner <mkestner@novell.com>
10471 * Form.cs: fix the menu WndProc hacks to respect the native enabled
10472 state of the form, so that we don't process events when Modal dialogs
10473 are up. Fixes #77922.
10475 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
10477 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
10480 2006-04-05 Mike Kestner <mkestner@novell.com>
10482 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
10484 2006-04-05 Mike Kestner <mkestner@novell.com>
10486 * ListView.cs (HeaderMouseMove): null guarding for the over column
10487 when setting up the drag_to_index. Fixes #78015.
10489 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
10491 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
10492 in the taskbar. Transient windows seem to accomplish that.
10494 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
10497 - Re-enabled CreateParams.X/Y code for FormStartPosition
10498 - Added code for manual placement when creating the Control
10499 - Incomplete patch to treat MDI forms differently when
10500 setting the ClientSizeCore. (Still need to figure out handling
10503 - When we're explicitly setting the X/Y position of a non-Child
10504 window, let the WM know. Metacity really wants this.
10506 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
10508 * ThemeNice.cs: Added CPDrawButton
10510 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
10512 * ThemeNice.cs: Changed the color for focused buttons and activated
10513 the arrows for small scroll buttons.
10515 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
10517 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
10518 anymore. Changed some method modifiers to protected (virtual)
10519 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
10521 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
10522 Updated drawing of menus, buttons and progressbars; added
10525 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10527 * ImageListStreamer.cs: implemented serialization/deserialization
10530 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
10532 * ThemeWin32Classic.cs:
10533 - Removed all the DrawFrameControl stuff; CPDrawButton,
10534 CPDrawCheckBox and CPDrawRadioButton are now handled directly
10536 - Updated and corrected the drawing code of CPDrawButton,
10537 CPDrawCheckBox and CPDrawRadioButton to better match ms
10538 - Updated theme checkbox and radiobutton code to use the CP*
10541 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
10543 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
10546 2006-03-31 Jackson Harper <jackson@ximian.com>
10548 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
10550 * UpDownBase.cs: Don't CreateGraphics manually, use a
10551 Refresh. Ideally we would invalidate the correct areas here.
10553 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
10556 - We now track the mapping state of windows. If a window (or
10557 one of it's parents) is not mapped we no longer permit
10558 WM_PAINT messages to be generated since we'd otherwise get
10559 lots of BadMatch X errors. Jackson did all the work figuring
10561 - Destroying the caret if the window it's contained in is
10562 destroyed. Can't use regular DestroyCaret method since it
10563 might fall into a drawing function (trying to remove the
10564 caret) and with that generate new BadMatch errors. Again,
10565 Jackson tracked this down.
10566 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
10567 make sure we send the messages to all windows. (The old code
10568 would send the WM_DESTROY to the window, and then all child
10569 windows would be 'gone' because the WM_DESTROY handle lookup
10570 would no longer find the destroyed window)
10571 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
10572 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
10574 2006-03-31 Jackson Harper <jackson@ximian.com>
10576 * ScrollableControl.cs: Dont recalc if we are not visible.
10578 2006-03-31 Mike Kestner <mkestner@novell.com>
10580 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
10581 the visibility branch.
10583 2006-03-31 Jackson Harper <jackson@ximian.com>
10585 * ScrollBar.cs: Cap values when incrementing/decrementing.
10587 2006-03-31 Mike Kestner <mkestner@novell.com>
10589 * MenuAPI.cs: setup menu.tracker for popup/context menus.
10590 * ToolTip.cs: guard against timer expirations with no active control.
10591 Not sure why it happened.
10593 2006-03-31 Mike Kestner <mkestner@novell.com>
10595 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
10597 * ToolTip.cs: Position the tooltip based on where the cursor is at
10598 popup time, not at MouseEnter time. Add a Down state so that we don't
10599 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
10600 positioning offset. Lookup DisplaySize at positioning time, since it
10601 can theoretically change during invocation.
10602 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
10603 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
10605 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
10607 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
10608 Fixes behaviour when the Text property of the box is String.Empty
10610 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
10612 * XplatUIX11.cs: Only send mouseleave for our client windows, not
10613 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
10616 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
10618 * FileDialog.cs: Visual enhancement for the popup buttons in
10621 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
10623 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
10626 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
10628 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
10629 highlighted menu items to match ms
10631 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
10633 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
10635 2006-03-30 Mike Kestner <mkestner@novell.com>
10637 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
10638 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
10639 go active to account for HotLight to Selected transition.
10640 * MenuItem.cs: add internal Selected prop. Fill out the Status
10641 property by calculating it from item info. Add HotLight,
10642 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
10644 2006-03-30 Mike Kestner <mkestner@novell.com>
10646 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
10648 2006-03-29 Jackson Harper <jackson@ximian.com>
10650 * Form.cs: Implement TODO.
10652 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
10654 * PrintPreviewDialog.cs: Implemented missing methods and events; still
10655 missing proper dialog setup in the constructor
10657 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
10659 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
10661 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
10662 - Fixed ResetBindings and removed TODO
10663 - Added check for cross-thread calls to get_Handle()
10664 - Added Marshaller attribute for set_Font to satisfy class status
10665 * FontDialog.cs: Removed TODOs that seemed implemented
10666 * UpDownBase.cs: Removed unneeded TODO and Fixme
10667 * MessageBox.cs: Implemented support for Default button and removed TODO
10668 * FileDialog.cs: Removed obsolete TODO
10669 * DomainUpDown.cs: Removed obsolete TODO
10670 * ButtonBase.cs: Removed obsolete TODO
10671 * XplatUIWin32.cs: Removed obsolete TODO
10673 - Removed obsolete TODO
10674 - Calling CheckAcceptButton when the acceptbutton is changed to allow
10675 internal status updates
10676 - Making sure the active control is selected when the control is created
10677 * CurrencyManager.cs: Removed obsolete TODO
10679 2006-03-29 Mike Kestner <mkestner@novell.com>
10681 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
10682 of PrintPreviewDialog and RichTextBox.
10684 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
10686 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
10687 DarkDark, Light and LightLight colors for a specific color
10688 * ThemeWin32Classic.cs:
10689 - Use Button drawing code to draw RadioButtons and CheckBoxes with
10690 Appearance = Button
10691 - Make use of the new ResPool helper CPColor
10692 - Draw ProgressBar and StatusBar with correct 3D borders
10694 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
10696 * ColorDialog.cs: Return selected color. Fixes bug #77940.
10698 2006-03-28 Mike Kestner <mkestner@novell.com>
10700 * ListView.cs: fix Icon layout to plan for scrollbar widths when
10701 calculating col/row counts.
10703 2006-03-28 Mike Kestner <mkestner@novell.com>
10709 switch to explicit interface method implementation for some methods
10710 corcompare identifies as inconsistent with MS.
10712 2006-03-28 Mike Kestner <mkestner@novell.com>
10716 add a few missing methods from the class status output.
10718 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
10720 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
10723 2006-03-28 Mike Kestner <mkestner@novell.com>
10725 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
10727 2006-03-27 Mike Kestner <mkestner@novell.com>
10729 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
10730 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
10732 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
10734 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
10736 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
10738 * ThemeWin32Classic.cs:
10739 - GroupBox: Inserted a little gap between the text and the lines
10741 - Made the code in CPDrawBorder3D more readable
10742 - Corrected the drawing location of the up and down arrows in
10745 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
10747 * ControlPaint.cs: Corrected line widths in DrawBorder for
10748 ButtonBorderStyle Inset and Outset
10750 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
10752 * ThemeWin32Classic.cs:
10753 - Rewrote the totally broken CPDrawBorder3D method. That was
10754 one of the main problems for the terrific ThemeWin32Classic
10756 - Updated and corrected Button drawing
10757 - Correct the dimensions of the SizeGrip to match ms ones
10758 - Removed a small drawing glitch in DrawComboBoxEditDecorations
10759 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
10760 Border3DStyle.Sunken to match ms.
10762 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
10764 * ThemeWin32Classic.cs: First small part of the "de-uglify
10765 ThemeWin32Classic" effort, SizeGrip
10767 2006-03-24 Jackson Harper <jackson@ximian.com>
10769 * XplatUIX11.cs: Give a max idle time of one second, this matches
10770 MS and forces an Idle event every second when there are no other
10771 events in the queue.
10773 2006-03-24 Mike Kestner <mkestner@novell.com>
10775 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
10776 * ListView.Item.cs: fix layout issues with null image lists and images
10777 smaller than checkbox size.
10778 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
10779 mode like MS does. It's weird, but consistent. ;-)
10782 2006-03-24 Mike Kestner <mkestner@novell.com>
10784 * ListView.cs: Scroll wheel support for the item control. Fixes
10787 2006-03-23 Jackson Harper <jackson@ximian.com>
10789 * ScrollableControl.cs: Special case negative sized areas, not
10791 * MonthCalendar.cs: Save the rect of the clicked date so we can
10792 use it for invalidation.
10793 - Try to cut down on the number of invalidates
10794 - Invalidate the rect the mouse is over and was over when moving
10795 the mouse, so we get the focus box following the cursor.
10797 2006-03-23 Mike Kestner <mkestner@novell.com>
10799 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
10800 focus rectangle drawing. Fixes #77835.
10802 2006-03-23 Mike Kestner <mkestner@novell.com>
10804 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
10805 the if and else if and reverting back to the original == check on the
10808 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
10810 * FontDialog.cs: Update the example panel if the selected index of
10811 the fontListBox changes.
10813 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
10815 * FileDialog.cs: Make FileDialog remember which directory it was in
10816 last in the same execution.
10818 2006-03-22 Mike Kestner <mkestner@novell.com>
10820 * FileDialog.cs: make the DropDownMenu on the toolbar display
10821 RadioChecks since they are mutually exclusive and that's what MS does.
10823 2006-03-22 Mike Kestner <mkestner@novell.com>
10825 * Theme.cs: add Color param to CPDrawMenuGlyph.
10826 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
10827 checks and radio marks and arrows are visible on highlighted items.
10828 * ControlPaint.cs: update to use new Theme signature.
10830 2006-03-22 Mike Kestner <mkestner@novell.com>
10832 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
10833 is active. Fixes #77870.
10835 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
10837 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
10838 to be focused/selected after startup
10840 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
10843 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
10844 CustomColors and ShowHelp properties
10845 - Some internal rewrites to get better results when using the
10848 2006-03-22 Mike Kestner <mkestner@novell.com>
10850 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
10851 HoverSelection. Fixes #77836.
10853 2006-03-22 Mike Kestner <mkestner@novell.com>
10855 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
10856 ToggleButtons. (De)Sensitize the Back button around a stack count of
10857 1, not 0. Update ButtonSize based on a pixel count of the win32
10858 control. Adjust the toolbar size/location for new button size.
10860 2006-03-22 Jackson Harper <jackson@ximian.com>
10862 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
10864 * ScrollBar.cs: When doing increments and decrements we need to
10865 set the Value property so that ValueChanged gets raised. A
10866 possible optimization here would be to make an internal SetValue
10867 that doesn't invalidate immediately.
10868 * ToolTip.cs: Tooltips get added to their container (when
10869 supplied) so they get disposed when the container is disposed.
10870 - Don't create tooltips for String.Empty. This prevents all these
10871 little 2-3 pixel windows from showing up when running nunit-gui
10872 and driving me mad.
10873 * Form.cs: Don't set topmost when setting the owner if the handles
10874 haven't been created yet. The topmost set will happen when the
10875 handles are created.
10877 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
10880 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
10881 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
10882 visible (to allow them to recalculate their sizes)
10884 2006-03-21 Mike Kestner <mkestner@novell.com>
10886 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
10887 methods. Removed a ton of redundant code. Still not really happy with
10888 the border rendering, but I think that's mainly because of the
10889 ControlDarkDark being black instead of a dark grey. Depending on how
10890 close we want to be, we might want to revisit those color choices.
10891 Among the new features added during the refactor were DropDownArrow
10892 pressed rendering, Disabled image rendering. Proper flat appearance
10893 boundary rendering. Removed the Divider and Wrapping dividers since I
10894 can't figure out any combination of themes and conditions to make the
10895 MS control draw a horizontal line on a toolbar despite what the
10896 Divider property docs indicate.
10897 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
10898 conditions and incorrect layout. Updated to coding standard.
10899 * ToolBarButton.cs: refactored layout and positioning code from
10900 ToolBar to here. Invalidate wherever possible instead of forcing
10901 redraws of the whole toolbar.
10902 (Known remaining issues: explicit ButtonSize smaller than provided
10905 2006-03-21 Mike Kestner <mkestner@novell.com>
10907 * ContextMenu.cs (Show): use the position parameter instead of just
10908 showing at the MousePosition.
10910 2006-03-21 Jackson Harper <jackson@ximian.com>
10912 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
10913 control handle this.
10914 * TreeNodeCollection.cs: If we are clearing the root node we need
10915 to reset top_node so calcs can still happen.
10916 * ThemeWin32Classic.cs: This is a Flags so we need to check
10919 2006-03-21 Jackson Harper <jackson@ximian.com>
10921 * DataGrid.cs: Create columns when the binding context has been
10923 * X11Structs.cs: Keysyms are uints.
10924 - Add size to fix build.
10926 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
10928 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10930 - Added ResetMouseHover method to allow controls to retrigger
10931 hovering if they need it more than once
10932 - Implemented MouseHoverTime and MouseHoverSize properties
10933 * Timer.cs: Start() must reset the interval
10934 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
10937 2006-03-21 Jackson Harper <jackson@ximian.com>
10939 * X11Keyboard.cs: improved layout detection. Move the nonchar
10940 tables into this file.
10941 * KeyboardLayouts.cs: Move the tables into resource files.
10943 2006-03-21 Mike Kestner <mkestner@novell.com>
10945 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
10947 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
10949 * Mime.cs: Various speed optimizations. Looking up mime types
10950 is now 2 times faster than before
10952 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
10954 * CreateParams.cs: Added internal menu field
10956 - Switched call order for UpdateBounds; now we always call
10957 the one that also takes ClientSize, and we're calculating the
10958 client size via driver method in the others. The previous
10959 method of tracking client size by difference wasn't working
10960 for forms where even the starting client size wouldn't match
10961 the overall form size (due to borders) (Part of fix for #77729)
10962 - CreateParams(): Do not use parent.Handle unless the handle is
10963 already created. Causes havoc with Nexxia and throws off our
10964 creation of controls
10966 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
10967 - Switched handling of ConfigureNotify over to new PerformNCCalc
10968 method (consolidates code)
10969 - Changed RequestNCRecalc to use new PerformNCCalc method
10970 - Added calls to RequestNCRecalc when menus and borders are changed
10971 to allow app to set NC size. (Part of fix for #77729) This matches
10972 when MS send a WM_NCRECALC on Win32 windows.
10973 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
10974 (Part of fix for #77729). This matches what MS does, they also
10975 send that message when the form is made visible.
10976 - XException.GetMessage: Improved usability of X errors by including
10977 a translation of the window into Hwnd and Control class
10978 - Improved debug info for window creation, reparenting and destruction
10979 - Created helper method WindowIsMapped() [Currently not used]
10980 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
10982 - CreateParams: Now setting our menu on the new internal menu field
10983 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
10984 avoid calculating the same property twice
10986 - Improved usability of ToString() for debugging purposes
10987 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
10988 determine the height of the menu, instead of just the font. This
10989 required to also create a graphics context and to keep a bmp
10990 around (for performance reasons)
10992 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
10994 * MenuAPI.cs: Added OnMouseUp method
10996 - Now remembering the requested client size, avoids size errors
10997 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
10998 instead of base if the menu is active. This is required due to
10999 control now capturing and releasing on down/up and it would
11000 prematurely release our menu capture
11002 2006-03-17 Jackson Harper <jackson@ximian.com>
11004 * KeyboardLayouts.cs: Add the czech layouts.
11006 2006-03-16 Jackson Harper <jackson@ximian.com>
11008 * Control.cs: Use the viewport space when sizing not the controls
11009 client size, so things like ScrollableControl that effect the
11010 viewport size (when scrollbars are added) are computed correctly.
11011 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
11013 - Handle creating BindingManagers for null data sources.
11014 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
11015 source, otherwise when rows are added they are added to the 'fake'
11016 datasource and we will crash when trying to set the position in
11018 - Use Implicit scrollbars on the datagrid so they arent
11021 2006-03-16 Jackson Harper <jackson@ximian.com>
11024 * InternalWindowManager.cs:
11025 * MdiWindowManager.cs:
11026 * X11Keyboard.cs: I really want Mike to love me again (fix
11027 compiler warnings).
11029 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
11032 - OnMouseDown: Switch to editing mode when clicking on the cell
11033 even if we're clicking on the cell that's currently
11035 - ProcessGridKey: Left/Right now wrap like MS.Net does
11036 - ProcessGridKey: Tab now knows to add a new row when tab is
11037 pressed in the cell of the last column of the
11039 - ProcessGridKey: Enter now adds another row if pressed in the last
11040 row and selectes the new row, same column cell
11041 - ProcessGridKey: Home/End navigate columns, not rows, like
11042 originally implemented
11043 - Broke ProcessKeyPreview code out into an extra Internal method
11044 so it can be called from the edit code
11045 * DataGridTextBox.cs (ProcessKeyMessage):
11046 - Switched to accept Tab keypresses
11047 - Added F2 handling to allow jumping to the end of the edited cell
11048 - Added logic to allow moving caret left/right inside edited cell
11049 and making the edited cell jump when the caret hits cell borders
11050 - Tab and Enter are now passed to the datagrid after being handled
11052 - Removed capture code now that Control handles it
11053 - set_SelectionStart now ensures caret is visible
11055 2006-03-16 Jackson Harper <jackson@ximian.com>
11057 * TrackBar.cs: Debackwards the increment/decrement for handling
11058 mouse clicks on the bar with vertical trackbars.
11059 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
11060 bottom to match MS.
11062 2006-03-16 Mike Kestner <mkestner@novell.com>
11064 * ListView.cs: make shift/ctrl keyboard and mouse selection
11065 consistent with the MS control. Fix a bug in
11066 SelectedListViewItemCollection.Clear that was pissing me off for the
11067 better part of a day because the collection was being altered
11068 underneath us as we walked the list.
11070 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
11072 * Control.cs: Not sure how we could miss this so long, but it seems
11073 that MS.Net has Capture set all the way from before calling
11074 OnMouseDown through sending the mouse events until after
11075 OnMouseUp. This will fix DataGrid's selection being set to end
11076 at the location of the MouseUp.
11078 2006-03-15 Jackson Harper <jackson@ximian.com>
11080 * BindingContext.cs: Check the binding after its added so that it
11081 can initialize the binding managers and hookup to events.
11082 * Binding.cs: Data members seem to sometimes include rows/cols in
11083 the format Row.Column we now take this into account.
11084 - Hookup to the position changed event so we can update the
11085 control when the position has changed in the data set.
11086 * CurrencyManager.cs: Take into account the row/col naming
11087 convention when creating dataset tables.
11088 * BindingContext.cs: Using a newer better way of storing
11089 datasource/datamember pairs. Hopefully this better matches MS for
11090 looking up binding managers.
11093 2006-03-15 Jackson Harper <jackson@ximian.com>
11095 * BindingContext.cs: The currency manager needs the data member
11096 name, if the member is a data set we use the name to find the
11098 * CurrencyManager.cs: When creating the list prefer an IList over
11100 - Attempt to create a DataTable from a DataSet (TODO: might need
11101 some better error checking here, although MS doesn't seem to have much)
11102 - If we have a DataTable create a view and use it as our list.
11104 2006-03-15 Mike Kestner <mkestner@novell.com>
11106 * ListView.cs: keep a matrix of the icon mode layout to facilitate
11107 keyboard navigation. Support Up/Down/Left/Right selection correctly
11108 for all 4 View modes.
11109 * ListViewItem.cs: add internal row/col fields for icon layouts.
11111 2006-03-15 Jackson Harper <jackson@ximian.com>
11113 * TabControl.cs: Redraw the tabs when we resize so their newly
11114 calculated sizes are drawn on screen.
11115 * X11Keyboard.cs: Begginnings of XIM support. We also now support
11116 composite characters.
11117 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
11118 - filter events so that composite characters can be created
11120 * X11Structs.cs: Add XIMProperties enum.
11122 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
11124 * Control.cs (BringToFront, SendToBack): Don't use window or handle
11125 unless it's created
11127 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
11129 * Control.cs (PerformLayout): We don't need to consider visiblity
11130 for anchoring, only for docking. This fixes 'whacky' alignment
11131 in listbox and other controls that use implicit scrollbars after
11132 the previous PerformLayout patch
11133 * ListBox.cs: Switched to use implicit scrollbars
11135 2006-03-14 Mike Kestner <mkestner@novell.com>
11139 - chain up the "new event" overrides to base and use
11140 OnEvent to raise them. Part of fix for bug #76509.
11142 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
11144 * FileDialog.cs: Do not select an item in the parent directory
11147 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
11149 * Control.cs (PerformLayout): It would seem that we considered
11150 invisible windows for our layout. Not quite the right thing
11151 to do. Now we don't any longer, thereby fixing bug #76889.
11153 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
11155 * Control.cs (CanFocus): I goofed. A control can have focus
11156 even though it's not selectable. Made it match MS docs.
11158 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
11160 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
11161 center by default (fixes #76895)
11162 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
11163 all uses of Border3DSides.All with the explicit ORd together
11164 Left|Right|Top|Bottom because I assume that nobody was aware
11165 that All also implies a center fill. Most places I checked had
11166 a fill right above.
11167 * ProgressBarStyle.cs: Added
11169 2006-03-13 Mike Kestner <mkestner@novell.com>
11171 * ListView.cs: fix breakage in drag shadow header positioning
11172 from Peter's csc compilation fix.
11174 2006-03-13 Mike Kestner <mkestner@novell.com>
11176 * ListView.cs: fix NRE produced by backspacing twice in a focused
11179 2006-03-13 Mike Kestner <mkestner@novell.com>
11181 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
11183 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
11185 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
11187 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
11188 the allowed size before making programmatic size changes
11190 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
11192 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
11193 set, metacity is broken and will still use the emty sizes in
11194 the struct. (Fix for #77089)
11196 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
11198 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
11199 WindowExStyles and marked both enums as Flags
11200 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
11201 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
11202 to match WindowStyles split
11204 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
11205 - Updated to match WindowStyles split
11207 - Fixed FosterParent creation, was using ExStyle on the Style field
11208 (This should help with Popup focus issues)
11209 - Updated to match WindowStyles split
11211 2006-03-13 Jackson Harper <jackson@ximian.com>
11213 * MdiWindowManager.cs: Use the system menu height. Fixes some
11214 strange sizing issues.
11216 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
11218 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
11220 - Scroll to caret after inserting text (#77672)
11221 - Make scroll range one pixel higher, fixes off-by-one error (and
11222 makes underlines visible on the last line)
11224 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
11226 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
11227 the keyboard state from being stuck with keys in 'pressed' state when
11228 focus is switched away via keyboard
11229 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
11230 reset the keyboard if no X11 KeyUp events are expected to come
11231 * X11Structs.cs: Switched type of Visible to bool to match driver
11233 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
11236 - Switched caret to be just 1 pixel wide, matches MS and looks less
11238 - Moved caret display 1 pixel down from the top of the control
11240 - InsertCharAtCharet: Update the selection start if moving the caret
11241 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
11242 - No longer always creating the caret when the caret methods are
11243 called. Only the actual ShowCaret/HideCaret will do that now
11244 - Only setting caret visible if the owner control has focus
11245 - UpdateView: Added invalidation-shortcut logic for center and right
11246 aligned text. Previously we'd update all according to the left
11247 logic which caused drawing errors. Also fixed height of invalidated
11248 areas, now properly invalidating the whole area (was off-by-one)
11249 - owner_HandleCreated: Always generate the document when the
11250 handle is created; this ensures that
11252 - Fixed situation where caret would disappear under the right
11253 window border, also improved scrolling behaviour on left-
11255 - Fixed right-aligned textboxes to have a border to the
11256 right instead of the caret being under the right border
11258 - Switched from 'nested' to simple visible/not visible tracking
11259 for caret (part of fix for #77671)
11260 - No longer passing through translated FocusIn/FocusOut messages
11261 since we were notifying too often and the wrong windows. Instead
11262 we just notify our focussed window of receiving or loosing focus
11263 * XplatUIWin32.cs: Switched from 'nested' show/hide
11264 counting for caret to simple visible yes/no behaviour (part of
11267 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
11269 * Mime.cs: Remove debug code...
11271 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
11273 * MimeGenerated.cs: Removed
11274 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
11275 and subclasses) from /usr/(local/)share/mime and
11276 $HOME/.local/share/mime.
11278 2006-03-10 Jackson Harper <jackson@ximian.com>
11280 * MdiWindowManager.cs: Recalc the NC area when a window is
11281 maximized/restored so that the menu area is drawn on forms that
11284 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
11286 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11287 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
11288 us to force a WM_NCCALCRESIZE message being sent. This is needed
11289 for MDI maximizing.
11291 2006-03-10 Jackson Harper <jackson@ximian.com>
11293 * Form.cs: We need to use the ActiveMenu when calculating menu
11295 - Fix nullref when the window manager hasn't been created yet.
11296 * Control.cs: Fix nullref when we try to bring a control to the
11297 front that has no parent.
11298 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
11300 - Add a dummy item to the maximized menu so it always has the
11301 correct height. Otherwise when there are no menus we don't get our
11305 2006-03-10 Jackson Harper <jackson@ximian.com>
11307 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
11309 * Form.cs: Make the window_state internal so the window managers
11311 - When an MDI child is maximized let its window manager create the
11312 main menu (so it can add its icon).
11313 - Notify the window managers of state changes
11314 - Let the window manager paint its buttons and handle button
11315 clicks on the menu when it is maximized.
11316 * InternalWindowManager.cs: Move the prev_bounds into the mdi
11317 window manager, since tool windows don't use it, only mdi windows.
11318 - Tell the main form that we don't want it to handle NCPAINT
11319 itself to avoid extra painting.
11320 - Handle clicks on a maximized windows menu.
11321 - Handle window state changes
11322 - Handle minimize/maximize clicks correctly by setting the window state.
11323 * MdiWindowManager.cs: Add an icon menu that (the menu you get
11324 when clicking on the forms icon).
11325 - New method to create a forms maximized menu. This is its normal
11327 - Handle window state changes.
11328 - Handle sizing of maximized windows. Maximized windows are just
11329 drawn bigger then the parent visible area. All controls are still
11330 there, they are just outside the visible area (this matches windows).
11331 * MdiClient.cs: No scrollbars when a child window is maximized.
11332 - Let the children windows figure out how big they should be when
11333 sizing maximized windows.
11334 - Implement a version of ArrangeIconicWindows somewhat similar to
11335 Windows version. There are some little differences, but I don't
11336 think any app will rely on the layout of minimized mdi windows.
11338 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
11340 * Padding.cs: Several fixes to allow compiling with csc 2.0
11342 2006-03-09 Jackson Harper <jackson@ximian.com>
11345 * MenuItem.cs: Cheap hack so we can add items to the list without
11346 the events being raised. This allows adding mdi items during
11347 drawing. TODO: Should probably find a better time to add the items.
11349 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
11351 * ThemeWin32Classic.cs:
11352 - CheckBox_DrawText: Added logic to not wrap if not enough space
11353 is available (Fix for bug #77727)
11354 - RadioButton_DrawText: Added logic not to wrap if not enough
11355 space is available (Fix for bug #77727). Also removed some
11356 duplicate code, DrawString always drawing the regular text
11357 before hitting the if statement.
11359 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
11361 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
11363 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
11365 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
11366 * ContainerControl.cs: Partial implementation of some 2.0 scaling
11367 methods. Moved the new 2.0 properties into alphabetical order with
11368 other properties and added MonoTODO tags
11370 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
11372 * AutoScaleMode.cs: Added. Fix build.
11374 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
11376 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11377 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
11378 and was requiring premature handle creation for calls from above
11379 * Form.cs, Control.cs: Removed handle arguments from calls to
11380 CalculateClientRect()
11382 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
11384 * ListView.cs (HeaderMouseMove): Fix csc compilation.
11385 drag_column.column_rect is MarshalByRef and can't be used that way
11387 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
11389 * AxHost.cs: Added deserialization constructor for
11390 AxHost+State (fixes 77743)
11392 2006-03-09 Mike Kestner <mkestner@novell.com>
11395 - Added column drag reordering for details view.
11396 - fixed behavior when mouse is dragged off column and
11397 AllowColumnReorder is false.
11398 * ColumnHeader.cs: clone the format too in Clone.
11399 * Theme.cs: add DrawListViewHeaderDragDetails method.
11400 * ThemeWin32Classic.cs:
11401 - impl new method for drawing drag column shadows and targets.
11402 - support column offset for details mode in DrawListViewItem.
11404 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
11406 * TextControl.cs: Reset the char_count when the document is cleared
11407 (Fixes bug reported on mono-winforms mailing list)
11409 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
11411 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
11412 of calling base we simply process the key ourselves, since both
11413 DefWindowProc and the handled method would set m.Result.
11416 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
11418 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
11419 method also moves the window; instead implemented a copy of
11420 Control.ScaleCore (Part of fix for #77456)
11422 - Created new CreateGraphicsInternal method to allow providing
11423 a graphics context when no handle is created without triggering
11424 handle creation. (Part of fix for #77456)
11425 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
11427 - Switched Constructor to require TextBoxBase instead of Control (to
11428 allow uncast access to CreateGraphicsInternal)
11429 - Safeguarded use of owner.Handle property. No longer accessing it
11430 unless the handle is already created.
11431 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
11432 - Now triggering a recalc when owning control becomes visible
11433 * TextBox.cs, RichTextBox.cs: Switched to use new internal
11434 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
11435 premature handle creation (Part of fix for #77456)
11437 - We now only destroy our double-buffering buffers when the
11438 control is resized or disposed, but not when visibility
11439 changes. (The code even re-created them twice every time)
11440 - Now requiring a redraw of the buffer on visibility changes
11441 (fixes bug 77654 part 2)
11442 - Not passing OnParentVisibleChanged up unless the control
11444 - CanFocus: Fixed to match MS documentation
11445 - Focus: Fixed to return actual focus state and to check if
11446 setting focus is legal before setting it
11448 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
11450 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
11451 when to draw focus rectangle by looking at parent focus and
11452 selected state instead. This fixes TabPages on Linux sometimes
11453 having none or multiple focus rectangles.
11454 * XplatUIX11.cs (SetFocus):
11455 - Don't set the focus if the same window already has focus
11456 - Use SendMessage instead of PostMessage (like it's Win32
11457 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
11458 to match MS behaviour
11459 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
11460 are not selectable.
11462 2006-03-07 Jackson Harper <jackson@ximian.com>
11464 * PictureBox.cs: Revert line I accidently committed last week.
11466 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
11469 - Added new IsRecreating and ParentIsRecreating properties to
11470 allow testing if RecreateHandle has been called on ourselves
11471 or one of our parents
11472 - WndProc(WM_DESTROY): If our control handle is being recreated
11473 we immediately need to create the handle when receiving the
11474 destroy, that way our child windows find a valid parent handle
11475 when they themselves are being recreated upon WM_DESTROY receipt
11476 (fix for bug #77654 part 1)
11478 - DestroyWindow: WM_DESTROY must be sent to our own window before
11479 notifying any child windows. MS documents that child windows
11480 are still valid when WM_DESTROY is received. (Control now relies on
11482 - Added some fine-grain debug options
11484 2006-03-06 Jackson Harper <jackson@ximian.com>
11486 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
11487 box and base calculations off this.
11488 * MdiChildContext.cs:
11489 * MdiWindowManager.cs: Don't need to ensure scrollbars here
11492 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
11494 * Splitter.cs: In situations where the affected control is added
11495 to the parent's control list after the splitter, we would not
11496 populate affected. Now we try populating it on mousedown, if
11497 it's not already set, and force it to be re-set whenever our
11500 2006-03-03 Matt Hargett <matt@use.net>
11502 * Control.cs: implement Control.Padding
11503 * Padding.cs: -Padding.All returns -1 when constructing with the
11504 implicit default ctor
11505 -Padding.ToString() matches MS.NET
11506 * ContainerControl.cs: implement
11507 ContainerControl.AutoScaleDimensions
11508 * ListControl.cs: implement ListControl.FormattingEnabled
11509 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
11511 * TabPage.cs: Implement UseVisualStyleBackColor.
11512 * PictureBox.cs: Implement PictureBox.InitialImage.
11514 2006-03-03 Mike Kestner <mkestner@novell.com>
11516 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
11517 event declarations to proxy to base event.
11518 * ListViewItem.cs: update to use ItemControl.
11519 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
11520 * ThemeWin32Classic.cs: update to new ListView theme API and fix
11521 column header label rendering for 0 width columns.
11523 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
11525 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
11526 that causes the control to be created. Fixes #77476.
11528 2006-03-02 Jackson Harper <jackson@ximian.com>
11530 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
11533 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
11535 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
11536 passed in for the EventArgs (fixes #77690)
11538 2006-03-01 Jackson Harper <jackson@ximian.com>
11540 * ScrollBar.cs: Refresh afterbeing resized.
11542 2006-02-28 Mike Kestner <mkestner@novell.com>
11544 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
11545 Clean up a tracker compile warning.
11546 * MenuItem.cs: add internal PerformPopup method.
11549 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
11551 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
11552 implicit expose) when the text is set to null
11554 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
11556 * RichTextBox.cs (FlushText): When newline is true, we always
11557 need to split the line, even if no text is on it and we may
11558 never eat newlines. (Fixes #77669)
11560 2006-02-28 Mike Kestner <mkestner@novell.com>
11562 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
11563 and set Selected instead.
11564 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
11567 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
11569 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
11571 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
11574 - Got rid of the panel. All controls are now directly added to
11576 - It is now possible to set a font with the Font property
11577 - MinSize and MaxSize property do now what they should
11578 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
11579 - Searching and selecting a font with the font textbox works now,
11580 the same applies to the style and size textbox
11581 - Draw the correct 3D border in the example panel
11582 - Fixed a little mem leak (unused fonts didn't get disposed)
11583 - Many other internal updates/rewrites...
11586 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
11589 - InsertRTFFromStream: Added 'number of characters inserted' argument
11590 - set_SelectedRTF: Now using the number of characters to calculate
11591 the new location for the selection and cursor (x/y cannot be used
11592 due to potentially already wrapped text)
11594 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
11596 * TextControl.cs: Added property and implemented means to allow
11597 disabling recalculation of a document (can be used to speed up
11598 multiple inserts and is needed to make RTF inserts predictable, see
11600 * RichTextBox.cs: Using the new NoRecalc property of Document to
11601 keep x/y insert locations predictable. Also makes it faster inserting
11602 large chunks of RTF
11604 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
11606 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
11607 it's easier for a child control to handle the other messages without
11608 having to duplicate the special functionality
11610 - WndProc: Removed calling base handler for WM_KEYDOWN and added
11611 code to handle processing the key ourselves, in order to get
11612 access to the result of KeyEventArgs.Handled. We now only call
11613 ProcessKey if they key hasn't been handled already. Fixes #77526.
11614 - set_Text: If null or empty string is given, just clear the
11615 document. Fixes part of #77526
11617 2006-02-27 Jackson Harper <jackson@ximian.com>
11619 * SizeGrip.cs: Paint the background color before painting the grip
11620 so things look right.
11621 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
11623 2006-02-27 Mike Kestner <mkestner@novell.com>
11626 - Restructure layout and invalidation model to remove a ton of
11627 flicker from the control and speed up performance in general.
11628 - Add manual column resize, flickers like crazy, but I already have
11629 some ideas on how I'll fix that. (#76822)
11630 - Merge the three Icon-based views into a single layout method.
11631 - Move item selection interaction logic from the item since
11632 interaction with the collections is more appropriate to the view.
11633 - Deselection on non-item clicks.
11635 - Encapsulate most of the layout. Add some internal props to trigger
11636 layout. Move to a model where Items invalidate themselves instead
11637 of just invalidating the whole control every time something changes.
11638 - Invalidate on Text/Caption changes.
11639 - switch to an offset based layout model to avoid having to absolute
11640 position every element on item moves.
11641 - correct checkbox layout to conform to MS layout.
11642 * ThemeWin32Classic.cs:
11643 - refactor some column header drawing code.
11644 - fix string justification for column headers (#76821)
11645 - make SmallIcon labels top justified for compat with MS impl.
11646 * ThemeClearlooks.cs:
11647 - adjust to new ListViewItem internal checkbox bounds api.
11649 2006-02-27 Jackson Harper <jackson@ximian.com>
11651 * Control.cs: Change where implicit controls fall in the zorder.
11652 They are now on top of all children.
11653 - Synced AddImplicit code with Add
11654 - Removed unused enumerator.
11655 * SizeGrip.cs: Remove the TODO as its been TODONE.
11657 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
11659 * TextControl.cs(Insert): Combine the last lines unless the insertion
11660 string ends with \n\n, otherwise we leave one line too many (Fixes
11661 something I noticed with the testapp for #77526; the bug itself was
11662 already fixed in the previous checkin)
11664 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
11667 - SelectionColor and SelectionFont methods no longer set absolute
11668 styles. Instead, the keep font or color respectively (This
11669 resolves a long-standing FIXME in the code)
11670 - When flushing RTF text, the insert code now considers text trailing
11671 behind the insertion point (Fixes the bug where when replacing
11672 the selected text via SelectedRTF the remainder of the line behind
11673 the selection would stay on the first insertion line)
11675 - AppendText now updates the selection points after inserting text
11676 - AppendText now ensures that the last tag (sometimes 0-length) of
11677 the document is used for the style information (Fixes part of
11680 - Created new FontDefiniton class to allow describing partial style
11682 - StreamLine() now takes a lines argument, to allow it to decide
11683 whether an encountered zero-length tag is the last in the document
11684 (which must be kept to not loose the font/color contained in it,
11686 - Created Combine() and Split() methods for Marker structs, to
11687 support marker updates due to reformatted documents (soft line
11689 - Implemented Document.CaretTag setter
11690 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
11691 of the last line (Not the cause, but also exposed by bug #77220)
11692 - Added LineTag argument to InsertString method, to allow callers
11693 to force a certain tag to be used (required to force use of the
11694 trailing zero-length tag of a document)
11695 - Now updating markers in Combine(), to avoid stale tag markers
11696 - Added some method descriptions to aid maintenance
11697 - Implemented new FormatText concept, allowing additive/subtractive
11698 formatting by only specifying the components that are to be
11699 changed. This was needed for resolving the RTB.SelectedColor/
11700 RTB.SelectedFont fixmes
11701 - Added Break() support method to allow breaking up linetags (used
11702 for partial formatting)
11703 - Added GenerateTextFormat() method. It is used for partial
11704 formatting and allows to generate a full font/color from given
11705 attributes and an existing tag.
11707 2006-02-26 Jackson Harper <jackson@ximian.com>
11709 * XplatUIX11.cs: Use the correct caption height.
11710 - Translate hittest coordinates to screen coords to match MS.
11711 * XplatUIWin32.cs: When we create MDI windows we need to reset
11712 some of the style flags, so we get a nice blank window, and can
11713 draw all the decorations ourselves.
11714 - Set a clipping rectangle on the non client paint event, the
11715 window manager drawing code needs one.
11716 * Form.cs: The window manager needs to know when the window state
11718 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
11719 don't need to factor in border and title sizes in these
11720 methods. TODO: Remove the args and fix the call points.
11721 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
11723 - Let the driver set the cursors.
11724 - Improve active window handling
11725 - Correct sizes for title bars and buttons.
11726 - Match MS drawing better
11727 * MdiWindowManager.cs: We don't need to handle border style
11728 updates specially anymore.
11729 - Check for scrollbars when windows are done moving
11730 - Handle Active properly.
11731 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
11732 correctly. I am spewing the exception though, so we don't hide the
11735 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
11737 * DataGridViewRowPostPaintEventArgs.cs,
11738 DataGridViewCellPaintingEventArgs.cs,
11739 DataGridViewRowCollection.cs,
11740 DataGridViewRowPrePaintEventArgs.cs,
11741 DataGridViewCell.cs: Clear a few warnings and implement a few
11742 exceptions that should be thrown.
11744 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
11746 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
11747 'inheriting' our parent's (non-default) cursor. (Part of
11748 the fix for #77479)
11750 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
11752 * XplatUIX11.cs: Fixed cast to make csc happy
11754 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
11756 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
11757 it's for the client area (part of fix for #77479 and needed
11758 for MDI window cursor handling)
11760 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
11761 the appropriate default cursors and also passing the message
11762 up the parent chain
11763 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
11764 for non-client areas
11766 2006-02-15 Jackson Harper <jackson@ximian.com>
11768 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
11769 is a real MDI window
11771 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
11773 * X11DesktopColors.cs: Instead of checking the desktop session
11774 string for "KDE" check if it starts with "KDE"
11776 2006-02-10 Jackson Harper <jackson@ximian.com>
11778 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
11781 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
11783 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
11786 - Got rid of the panel. All controls are now directly added to
11788 - Changed to mono coding style
11790 2006-02-10 Jackson Harper <jackson@ximian.com>
11792 * InternalWindowManager.cs: We don't need the set visibility to
11793 false hack anymore now that peter has written beautiful shutdown
11796 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
11798 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
11799 where already explicitly destroyed
11801 2006-02-10 Jackson Harper <jackson@ximian.com>
11803 * MdiClient.cs: Handle the case where windows are too high or to
11804 the left and we need scrollbars.
11806 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
11808 * MimeIcon.cs: Added some icons
11811 - Got rid of the panel. All controls are now directly added to
11813 - Changed to mono coding style
11814 - On Linux "My Computer" and "My Network" will now show some
11815 more usefull information. A new class, MasterMount, gathers
11816 this information from /proc/mount. Updated MWFFileView to make
11817 use of this information
11818 - Fixed a bug that caused FileDialog to crash when
11819 ".recently_used" file had a zero size
11820 - FilterIndex does now what it should
11822 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
11825 2006-02-09 Jackson Harper <jackson@ximian.com>
11827 * ComboBox.cs: Don't touch if null.
11829 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
11831 * Cursor.cs: 64bit safeness fix
11832 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
11834 2006-02-09 Jackson Harper <jackson@ximian.com>
11836 * Form.cs: If a form is made into an MDI form update the styles so
11837 all the props can get set correctly.
11838 - Kill the mdi_container when we dont need it anymore.
11839 * InternalWindowManager.cs: Add missing NOT
11841 2006-02-08 Jackson Harper <jackson@ximian.com>
11843 * InternalWindowManager.cs: Respek clipping when drawing MDi
11846 2006-02-08 Jackson Harper <jackson@ximian.com>
11848 * Hwnd.cs: Add bits to track non client expose events.
11849 * XplatUIX11.cs: Track non client expose events on the hwnd. This
11850 gives us a proper invalid rect and will allow for some nice
11851 optimizations with NC client drawing
11852 - MDI windows are children windows, so move their style handling
11853 into the child window block.
11854 * InternalWindowManager.cs: Remove a state reset that was
11855 getting invoked at the wrong time. Fixes managed windows getting
11856 into a 'stuck' captured state.
11858 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
11860 * TextControl.cs (Document.ctor): Now initializing
11861 selection_anchor. Fixes #77493
11863 2006-02-07 Jackson Harper <jackson@ximian.com>
11865 * TrackBar.cs: The increment/decrements were backwards.
11867 2006-02-07 Mike Kestner <mkestner@novell.com>
11869 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
11870 to the instance itself.
11872 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
11874 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
11875 on ulongs and pointers, the size differs between 32bit and 64bit
11878 2006-02-07 Mike Kestner <mkestner@novell.com>
11880 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
11881 for 64 bit platforms to work around a metacity bug.
11883 2006-02-07 Jackson Harper <jackson@ximian.com>
11885 * TrackBar.cs: Process the input keys we need, and hookup to
11886 KeyDown instead of using WndProc, so we get key messages.
11888 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
11890 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
11892 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
11893 we need to translate the XdndVersion atoms array before sending it
11895 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
11898 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
11899 number of bits for the property, not the number of bytes. The
11900 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
11901 but would not crash since it specified 8 bits instead of 4 bits)
11902 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
11903 defined as XID -> long in the C headers)
11904 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
11905 references since those are now IntPtr to begin with
11906 - Switched all Atom.XXX 'int' casts to IntPtr casts
11907 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
11908 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
11909 - Added XChangeActivePointerGrab DllImport (for X11DnD)
11911 - Changed 'int' type for Atoms in XEvent structures to IntPtr
11912 - Changed atom in HoverStruct to be IntPtr
11914 - Removed local DllImports, switched code to use those from XplatUIX11
11915 - Removed/fixed casts related to the switch of Atom to be a IntPtr
11917 2006-02-06 Mike Kestner <mkestner@novell.com>
11919 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
11920 method signatures in the import region. There may still be some
11921 lingering struct marshaling issues, as I didn't drill down into those.
11924 2006-02-06 Jackson Harper <jackson@ximian.com>
11926 * ComboBox.cs: Dont manually set the top_item, this is computed
11927 when the scrollbar position is set.
11929 2006-02-06 Mike Kestner <mkestner@novell.com>
11931 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
11932 startup crashes on amd64. There's other fixes needed. All pinvoke
11933 usage of Atom needs to be mapped to IntPtr for example. And there are
11934 likely other int/long issues to be addressed.
11936 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
11938 * FileDialog.cs: One more...
11940 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
11942 * FileDialog.cs: Next try
11944 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
11946 * FileDialog.cs: First part of fix for #77464
11948 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
11950 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
11951 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
11952 AcceptButton border drawing.
11954 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
11956 * Form.cs: Moved positioning of form after auto scaling is applied,
11957 otherwise it would possibly use wrong form size.
11959 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
11961 * Control.cs (RecreateHandle): No need to re-create any child
11962 controls, the child windows will get destroyed automatically by
11963 the windowing system or driver, and re-created when the handle
11964 is being accessed the first time. Fixes #77456
11965 * Form.cs: No longer setting the form to closing if the handle is
11966 being recreated. This seems like the right thing to do, don't
11967 have a bug or testcase for this, though.
11969 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
11971 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
11972 controls to avoid unwanted side effects
11974 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
11977 - ScaleCore needs to scale the bounds, not the ClientSize of the
11978 control. Fixes #77416.
11979 - DefaultSize is 0,0 for control
11981 - DefaultSize is 100, 20
11982 - SetBoundsCore: Now enforcing the height, no matter if the provided
11983 height is more or less than the preferred one, as long as AutoSize
11985 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
11987 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
11990 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
11991 call unless both performLayout is true *and* we have a pending
11993 - ResumeLayout: MS does not completely nest Suspend and Resume,
11994 they bottom out at 0, fixed our code to match that.
11995 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
11996 SetBoundsCore, we were updating even when we shouldn't. This fixes
11997 swf-anchors mis-anchoring when resizing the app fast and lots.
11998 - UpdateDistances: Now only setting the left and top distance if
11999 we have a parent and are not suspended, this is based on
12000 a suggestion by Don Edvaldson in bug #77355.
12001 - OnVisibleChanged: Fixed logic when to create the control. We may
12002 not create the control if we have no parent or if it's not visible;
12003 switched to using Visible property instead of is_visible field
12004 since the property also considers parent states. This fixes a bug
12005 when starting Paint.Net
12007 2006-02-02 Jackson Harper <jackson@ximian.com>
12009 * Form.cs: If the forms handle hasn't been created yet don't call
12010 into xplatui to make it top most, just set the topmost flag on the
12011 form in CreateParams
12012 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
12014 2006-02-01 Jackson Harper <jackson@ximian.com>
12016 * ScrollableControl.cs: Refactored the Recalculate method a
12017 little, this wasn't handling all the variants of bottom and right
12018 bars needed to be added and added/removed based on their
12019 counterparts being added/removed (which changes the drawable
12020 size). Also we special case client widths and heights of 0 and
12021 don't add the scrollbar for those.
12023 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
12026 - Added method to get AbsoluteGeometry(); currently unused, but might
12027 be used in the future, if we try again to figure out toplevel
12028 coordinates with some more crappy window managers
12029 - Added FrameExtents() method to retrieve the WM set decoration size
12030 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
12031 to deal with at least KDE, FVWM and metacity (Fixes #77092)
12033 - Added whacky_wm tracking var for metacity
12034 - Added logic to have default menu height if the actual menu height
12035 has not yet been calculated (part of fix for #77426)
12036 * Form.cs: Keep track whether client size has been set and re-set
12037 it if a menu is added/removed afterwards (Fixes #77426)
12039 2006-01-31 Jackson Harper <jackson@ximian.com>
12041 * Control.cs: When a new Site is set on the component attempt to
12042 pull the AmbientProperties from it.
12044 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
12046 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
12047 in the background of the owning form. Fixes #77332
12049 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
12051 * MimeIcon.cs: Fix for #77409
12053 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
12055 * XplatUIX11GTK.cs: Initial import
12057 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
12059 * FixedSizeTextBox: fixes class signature
12061 2006-01-30 Jackson Harper <jackson@ximian.com>
12063 * FixedSizeTextBox.cs: New internal class that represents a
12064 textBox that will not be scaled.
12067 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
12070 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
12072 * XplatUIX11.cs: Retrieve default screen number instead of
12073 assuming 0. Attempted fix for #77318
12075 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
12078 - GetWindowPos: When a window is parented by FosterParent, use
12079 the desktop instead of FosterParent as the base to get coordinates
12080 - CreateWindow: Don't make FosterParent the parent window for Popups
12081 if we don't want a taskbar entry, Popups automatically don't get one
12082 * Hwnd.cs: Need to call remove to actually remove the key from the
12085 2006-01-30 Mike Kestner <mkestner@novell.com>
12087 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
12089 2006-01-30 Jackson Harper <jackson@ximian.com>
12092 * TreeNode.cs: Raise events no matter how the treenode is
12093 checked. Patch by Don Edvalson.
12095 2006-01-30 Jackson Harper <jackson@ximian.com>
12097 * TreeNode.cs: Signature fix.
12099 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
12101 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
12103 2006-01-20 Mike Kestner <mkestner@novell.com>
12105 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
12106 event forwarding when menus are active.
12107 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
12108 Most of the patch is pdb's with a little rework.
12110 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
12112 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
12113 Removed GetMenuDC and ReleaseMenuDC methods; replaced
12114 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
12115 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
12116 * InternalWindowManager.cs: Added use of PaintEventStart/End to
12117 handling of WM_NCPAINT message, now passing the PaintEventArgs to
12118 the PaintWindowDecorations method
12119 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
12120 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
12121 * MenuAPI.cs: Made tracker window invisible
12123 - Removed GetMenuDC and ReleaseMenuDC methods
12124 - Implemented the client=false path for PaintEventStart and
12127 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
12129 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
12130 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
12133 - MaximizeBox, MinimizeBox: Recreate the handle when setting
12135 - CreateParams: Reworked the styles to match MS look'n'feel,
12136 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
12137 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
12139 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
12141 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
12142 window is not mapped, since otherwise every form that's being
12143 created is considered minimized, which is wrong.
12144 * Form.cs: Catching the exception and returning our internal value
12147 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
12149 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
12150 SetWindowMinMax() to have means to tell the driver about the minimum,
12151 maximum and maximized state window sizes. (Part of the fix for #76485)
12153 - Implemented tracking of minimum and maximum window size, now calling
12154 new SetWindowMinMax() driver method to tell the driver (Part of the
12156 - Finished handling of WM_GETMINMAXINFO method, now setting all values
12157 (Completes fix for #76485)
12158 - Calling new SetWindowMinMax driver method when the handle for a
12159 form is created, to make sure the driver knows about it even if
12160 the values have been set before the window was created
12161 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
12162 to avoid messing up our anchoring calculations (partial fix
12164 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
12166 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
12167 - Improved GetWindowState() to detect 'Minimized' state on Metacity
12168 (and presumably other freedesktop.org compliant WMs). Left the
12169 assumption unmapped=minimized, needed for SetVisible to work.
12170 - Now setting the window state when creating windows
12171 - Fixed SetVisible to consider/set the window state when mapping
12172 a Form. We cannot set the state before it's mapped, and we cannot
12173 use Form.WindowState once it's mapped (since it would ask the
12174 driver and get 'normal'. Therefore, we grab the state before
12175 mapping, map, and then set state.
12176 - Implmemented SetWindowMinMax method; Metacity does not seem to
12177 honor the ZoomHints, though.
12179 - Removed MINMAXINFO (moved to XplatUIStructs)
12180 - Added SetWindowMinMax stub (on Win32 the only way to set that
12181 information is in response to the WM_GETMINMAXINFO message, which
12182 is handled in Form.cs)
12183 - Added logic to SetVisible to set the proper window state when a
12184 form is made visible (fixes #75720)
12186 2006-01-26 Jackson Harper <jackson@ximian.com>
12188 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
12189 same way we handle them with Invoke.
12191 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
12194 - Added tracking of window state so CreateParams can return
12195 the appropriate style
12196 - Moved setting of WS_CAPTION style in CreateParams to allow
12197 styles without caption
12198 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
12199 control if the TextBox property is accessed. Fixes #77345
12201 - get_Created: now uses is_disposed and is_created to determine
12202 return value (suggested by Jackson)
12203 - CreateHandle: No longer exits if the handle is being recreated
12204 - RecreateHandle: If the handle is not yet created call the
12205 appropriate method to create either control or handle. If the
12206 control is already created CreateHandle will simply exit instead
12207 of just creating the handle
12208 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
12209 now SendMessage WM_DESTROY directly to the control when DestroyWindow
12212 - When DestroyWindow is called, instead of waiting for the
12213 DestroyNotification from X11, we directly post it to the WndProc
12214 and immediately dispose the hwnd object.
12215 Same applies to DestroyChildWindows, and this obsoletes the
12216 expose_pending tracking. Contrary to Win32 behaviour we destroy our
12217 child windows before our own, to avoid X11 errors.
12218 - Removed the direct sending of WM_PAINT on UpdateWindow
12220 - Reworked DoEvents and GetMessage to allow access to internal queue
12221 even when trying non-blocking access to the queue. Fixes #77335.
12222 Based on a patch suggestion by Don Edvalson. The new private
12223 GetMessage can now also be used as a backend for a PeekMessage
12225 * XplatUI.cs: Improved debug output for CreateWindow
12227 2006-01-25 Jackson Harper <jackson@ximian.com>
12229 * Help.cs: Allow param to be null. Patch by Don Edvalson.
12231 2006-01-24 Jackson Harper <jackson@ximian.com>
12233 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
12234 when we have a MaxDropItems lower then the selected index.
12236 2006-01-24 Jackson Harper <jackson@ximian.com>
12238 * Control.cs: Don't allow selection of non visible controls, allow
12239 selection of controls without parents.
12241 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
12243 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
12244 * DataGridDrawingLogic.cs: Add editing row only when is necessary
12246 2006-01-23 Jackson Harper <jackson@ximian.com>
12248 * UpDownBase.cs: Make the textbox handle all the selection and
12249 tabbing. This fixes tabing to updown controls.
12251 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
12253 * TextBoxBase.cs: fixes exception thown the object was null
12255 2006-01-23 Jackson Harper <jackson@ximian.com>
12257 * ButtonBase.cs: Just use the base CreateParams. They set
12258 visibility and enabled correctly.
12261 * MonthCalendar.cs: Lets let the base set as much of the
12262 createparams as possible so we don't have duplicate code all over
12265 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
12267 * ThemeGtk.cs: Added TrackBar and some experimental code to
12268 get double buffering back
12270 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
12272 * DataGrid.cs: Allows row number set internally higher than the last
12273 when creating a new row. Restores the editing functionality.
12275 2006-01-20 Mike Kestner <mkestner@novell.com>
12277 * MimeIcon.cs: delay Image creation until the icons are accessed
12278 instead of creating 190 scaled images on GnomeHandler startup.
12280 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
12282 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
12283 first call base before processing the event. Fixes #77279
12285 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
12287 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
12288 that the stride for the GDI bitmap would match the stride of
12291 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
12293 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
12295 2006-01-19 Jackson Harper <jackson@ximian.com>
12297 * ComboBox.cs: Hookup the text controls keydown event so we get
12298 those when the text control has the focus.
12300 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
12302 * Label.cs: Now using the base events instead of defining new ones;
12303 this allows us to just call the base properties without having to
12304 duplicate all base property logic
12306 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
12308 * Label.cs: A label by default is not a tabstop (Fixes one of our
12309 failing nunit tests)
12311 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
12313 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
12314 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
12316 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
12318 * Cursor.cs: Reimplemented creating cursor bitmaps without using
12319 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
12322 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
12323 constructor creates images that can't be saved. Part of the fix
12325 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
12326 - SetWindowState: Switched ShowWindow flags (part of an upcoming
12327 bug fix for handling window state in forms properly)
12329 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
12331 * ThemeGtk.cs: Simplify ScrollBar drawing
12333 2006-01-18 Jackson Harper <jackson@ximian.com>
12335 * Splitter.cs: Set the default dock style for the splitter control
12336 in the constructor.
12338 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
12340 * ThemeGtk.cs: Corrected StateType and ShadowType for
12343 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
12345 * Control.cs: Make use of Theme.DoubleBufferingSupported
12347 - Added drawing for flat style buttons
12348 - Added ScrollBar drawing
12350 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
12352 * ThemeClearlooks.cs: Removed some unneeded code.
12353 * ThemeGtk.cs: First part of ThemeGtk enhancements.
12355 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
12357 * LinkLabel.cs: We need to update the hover drawing when
12358 leaving the control as well.
12360 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
12362 * DataGrid.cs: Clicking on non empty areas in the columns
12363 area was giving an exception
12365 2006-01-17 Jackson Harper <jackson@ximian.com>
12367 * ThemeWin32Classic.cs:
12368 * ListView.cs: Do not draw/clip the headers when the header style
12371 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
12373 * DataGrid.cs: Fixes 77260
12375 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
12377 * DataGrid.cs: Clicking on a column on a empty grid was giving
12380 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
12382 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
12383 or any keypress will crash the grid.
12385 2006-01-17 Mike Kestner <mkestner@novell.com>
12387 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
12388 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
12389 invisible/previously-visible items.
12392 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
12394 * ThemeClearlooks.cs:
12395 - Added CL_Draw_Button method; now other theme controls that are
12396 not derived from button or do not have a button can draw buttons
12398 - Updated ComboBox drawing
12399 - Beautified RadioButton drawing
12400 - Corrected drawing of bottom and left tabs
12401 - Beautified DateTimePicker and MonthCalendar
12402 - Added CPDrawButton and CPDrawRadioButton
12404 2006-01-16 Jackson Harper <jackson@ximian.com>
12406 * ComboBox.cs: Set the initial value of the scrollbar to the
12407 current index. Reduce the numbers of refreshs and IndexOfs called.
12409 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
12411 * FileDialog.cs: When the file listview is focused hitting the
12412 backspace key moves the fileview to the parent directory
12414 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
12417 - Added RecreateHandle call when changing taskbar visibility to
12418 trigger reparenting in Win32 driver (Fixes #75719)
12419 - If a window has minimize or maximize buttons, it cannot have
12422 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
12423 the toplevel form with FosterParent (A toolwindow not on the
12424 taskbar) (Fixes #75719)
12425 - Made FosterParent a toolwindow
12427 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
12429 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
12431 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
12433 * ToolTip.cs: If SetToolTip is called from a control and the mouse
12434 is currently over that control, make sure that tooltip_window.Text
12437 2006-01-13 Mike Kestner <mkestner@novell.com>
12439 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
12441 2006-01-13 Jackson Harper <jackson@ximian.com>
12443 * TreeView.cs: On MS GetNodeAt never actually factors in the X
12444 value passed. Also redraw the selected node when we recieve
12445 focus, so tabbing between trees works correctly.
12447 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
12449 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
12450 ~/.gconf/%gconf-tree.xml, so use
12451 .gconf/desktop/gnome/interface/%gconf.xml
12453 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
12455 * TextControl.cs: Draw text in gray if control is disabled
12457 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
12459 * TreeView.cs: Draw the focus rectangle outside the highlight, to
12460 make sure it's always visible. Fixes #76680.
12462 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
12464 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
12466 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
12468 * PageSetupDialog.cs: Added.
12469 * PrintDialog.cs: Attributes.
12470 * PrintPreviewControl.cs: Updates.
12471 * PrintPreviewDialog.cs: Updates.
12473 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
12475 * Control.cs: Undid my selection check fix, since it's not needed
12477 - Now considering the presence of hscroll/vscroll when sizing
12478 vscroll/hscroll respectively. Fixed bug #77077
12479 - Added Left/Up/Down/Right to IsInputKey list to prevent
12480 ContainerControl from stealing them. This fixes what I broke
12481 with my last checkin.
12483 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
12485 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
12486 I finally understand how the property can be set without a setter :-)
12488 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
12491 - Switched RunLoop to use static Message.Create to create a
12493 - Added PreProcessMessage call in runloop for keyboard events; this
12494 is part of the fix for #77219, I overlooked this originally in the
12495 MSDN doc for PreProcessMessage
12497 - Removed call to PreProcessMessage from handling of keyboard
12498 messages; it's supposed to be done in the message pump
12499 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
12500 per MSDN documentation.
12501 - IsInputChar: All chars are input chars by default; removed the
12502 parent calling chain, MS does not document that
12503 - PreProcessMessage: If IsInputChar is true, we want to return false
12504 to allow dispatching of the message
12505 - When selecting the next control, now also check that we're not
12506 selecting ourselves again and therefore return a false positive.
12508 - Tried to match return values for IsInputKey and ProcessDialogKey
12509 to what MS returns; moved processing of our special keys outside
12510 ProcessDialogKey since MS does not seem to return true on those.
12511 - Moved code that previously was in ProcessDialogKey into new private
12512 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
12513 - Reworked handling of WM_CHAR to not have to duplicate code from
12514 Control.cs anymore, instead we simply call down to base.
12516 2006-01-12 Jackson Harper <jackson@ximian.com>
12518 * ComboBox.cs: We always need to refresh the text area when
12519 EndUpdate is called. Fixes the combobox in the file dialog.
12520 * Control.cs: Don't create the creator_thread until the controls
12521 handle is created. Also in InvokeRequired we check if the
12522 creator_thread is null. This gives the effect of InvokeRequired
12523 returning true if the controls handle is not created yet, and
12526 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
12529 - Added StartLoop() driver method. This is used to allow drivers to
12530 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
12531 loop for a particular thread
12532 - Added EndLoop() driver method. This is called once the message
12533 pump for the thread is shut down
12534 - Added SupportsTransparency method to allow the driver to indicate
12535 opacity support for windows
12537 - Removed TODO attribute, completed AllowTransparency property
12538 - Added documented logic to Opacity
12539 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
12540 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
12541 versions of CompatibleTextRendering
12542 * X11Structs.cs: Added opacity atom to our atom enumeration
12543 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
12544 of a form might be set before it's reparented by the WM, and we need
12545 the opacity value without calling up to Form)
12546 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
12547 SupportsTransparency() driver methods
12548 * Application.cs: Now calling StartLoop and EndLoop driver methods
12550 - Added opacity atom registration
12551 - Added StartLoop()/EndLoop() methods. They're empty right now but
12552 will need to get implemented when we switch to a per-thread queue
12553 - Implemented SupportsTransparency() method
12554 - Implemented SetWindowTransparency() method
12555 - Added support for setting the opacity value when a window is
12556 reparented (since the opacity needs to be set on the WM frame)
12557 * XplatUIOSX.cs, XplatUIWin32.cs:
12558 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
12560 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
12562 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
12564 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
12566 * FileDialog.cs: Added ToolTip for MWFFileView
12567 * MimeIcon.cs: Rewrote GnomeHandler.
12568 - Get currently used gnome icon theme from
12569 ($HOME)/.gconf/%gconf-tree.xml
12570 - Make use of inherited icon themes
12571 - Support SVG icon themes like Tango via librsvg
12573 2006-01-12 Miguel de Icaza <miguel@novell.com>
12575 Revert's Jackson's revert which broke 2.0 builds. Fix both
12578 * Application.cs: Move the use_compatible_text_rendering outside
12579 the NET_2_0 define. If we ever need to use the
12580 use_compatible_text_rendering on the individual controls they will
12581 access the variable from the common shared code paths.
12583 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
12586 - Added more granular debug options
12587 - Added method to print both window text and id
12588 - Switched debug output to use new Window() debug method
12589 - Added IsEnabled() driver method
12590 - Added EnableWindow() driver method
12592 - Removed end_modal; no longer needed, new loop handles termination
12593 via 'closing' variable
12594 - If form is modal, setting DialogResult will now initiate loop
12595 termination via 'closing' variable
12596 - Added support for is_enabled/WS_DISABLED to CreateParams
12597 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
12599 - Removed code that's now in RunLoop from ShowDialog()
12600 - Added various documented sanity checks to ShowDialog()
12601 - Added handling of WM_DESTROY message; we set 'closing' on getting
12602 the message to indicate the message pump to terminate
12603 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
12604 send by the Application.ExitThread method. (We send the message
12605 to destroy the window after all other events have been
12606 processed through the queue, instead of destroying the handle
12608 - Moved code from Close() method to WM_CLOSE handler; added logic
12609 to only send close-related events if the form is not displayed
12611 * Splitter.cs (..ctor): Fixed typo in resource name
12613 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
12615 - set_Cursor: Now only setting calling into XplatUI if the handle for
12616 the control is already created; this avoids implict handle creation
12617 or crashes if it's not created
12618 - set_Enabled: Now setting the enabled state via the new driver method
12619 instead of just tracking it
12620 - CreateParams: Added logic to set WS_DISABLED based on enabled state
12621 - CreateControl: Reordered event firing and method calls to more
12622 closely fire events in the order MS does. Now setting the
12623 enabled state in the driver when creating the control.
12624 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
12626 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
12627 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
12628 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
12630 - Added tracking of window enabled state (get_Enabled/set_Enabled)
12631 - Added EnabledHwnd property to easily allow a driver to find the
12632 handle of the first enabled window in the parent chain (this is
12633 used by drivers to pass up input events of disabled windows)
12634 * XplatUIDriver.cs: Added IsEnabled() method
12636 - Removed crude and obsolete exiting tracking variable
12637 - Removed internal ModalRun(); replaced by RunLoop()
12638 - Implemented private CloseForms() method to allow closing all
12639 windows owned by a particular (or all) threads
12640 - Exit() now properly closes all windows without forcing the message
12642 - Removed obsolete InternalExit() method
12643 - Changed Run() methods to use new RunLoop() message pump
12644 - Implemented new RunLoop() method for both modal and non-modal forms
12646 - get_CreateParams: Added setting of WS_DISABLED
12647 - Simplified ShowDialog(); now all the work is done in RunLoop(),
12648 invoked via Form.ShowDialog()
12649 * NativeWindow.cs: We don't remove the window from the collection when
12650 the handle is destroyed; there might still be messages for it in the
12651 queue (mainly the resulting WM_DESTROY); instead it will be removed
12652 when Control calls InvalidateHandle in the WM_DESTROY handler
12654 - CreateWindow: Added logic to handle the WS_DISABLED window style
12655 - EnableWindow: Implemented based on Hwnd.Enabled
12656 - GetMessage: Reset PostQuitState so the method can be called again
12657 - Implemented support for disabled windows (passing messages to the
12658 first enabled parent) in handling all input messages
12659 - Added optimizations for handling Expose events
12660 - Implemeted new driver method IsEnabled()
12661 - Now always resetting paint pending tracking vars when we start paint
12662 - Re-implemented UpdateWindow via just sending a WM_PAINT message
12663 * XplatUIOSX.cs: Added IsEnabled method stub
12664 * XplatUIWin32.cs: Implemented new IsEnabled() method
12666 2006-01-11 Jackson Harper <jackson@ximian.com>
12668 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
12669 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
12670 variables a little.
12671 * ColorDialog.cs: Clear out the old form before adding the new
12674 2006-01-11 Jackson Harper <jackson@ximian.com>
12676 * X11Dnd.cs: Make sure to add all the text formats when adding
12677 strings to the data object.
12678 * TreeNodeCollection.cs: When adding to a sorted tree we need to
12679 do some redrawing too. Also change the UpdateNode to an
12680 UpdateBelow so the newly added node gets painted.
12682 2006-01-11 Miguel de Icaza <miguel@novell.com>
12684 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
12685 LinkLabel.cs, PropertyGrid.cs: Implement the
12686 UseCompatibleTextRendering property for 2.x
12688 * Application.cs (SetCompatibleTextRenderingDefault): Add.
12690 2006-01-11 Jackson Harper <jackson@ximian.com>
12692 * TreeView.cs: Use the property for setting the selected node so
12693 the correct events get raised.
12694 * TreeNode.cs: Update the tree when the fore/back colours of a
12697 2006-01-10 Jackson Harper <jackson@ximian.com>
12699 * TreeView.cs: Allow setting SelectedNode to null.
12701 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
12703 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
12705 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
12707 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
12709 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
12711 * PrintDialog.cs: Added attributes and set default property values.
12713 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
12715 * PrintControllerWithStatusDialog.cs:
12716 Added PrintControllerWithStatusDialog.
12718 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
12720 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
12721 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
12723 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
12725 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
12727 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
12729 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
12730 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
12732 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
12734 * MimeIcon.cs: Added internal class SVGUtil.
12736 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
12738 * FileDialog.cs: Don't crash if there are two files with the
12739 same name but different locations.
12741 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
12743 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
12744 dates across multiple month grids. Used to not highlight entire
12745 month, but does now.
12747 2006-01-06 Jackson Harper <jackson@ximian.com>
12749 * MonthCalendar.cs: Removed DoEvents call to prevent a running
12750 message loop. Change timer intervals to numbers that seem more
12753 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
12755 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
12756 object for location info since screen object is now implemented.
12758 2006-01-05 Jackson Harper <jackson@ximian.com>
12760 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
12761 * AsyncMethodResult.cs: We no longer use a WeakReference for the
12762 AsyncMethodResult, this is because we ALWAYS want the
12763 ManualResetEvent to get set.
12764 * Control.cs: When disposing use an async invoke to call shutdown
12765 code, so that thigns don't block on the finalizer thread. Also
12766 check if we even have a message loop before trying to send
12767 messages, if we don't then don't bother sending messages.
12768 - No more weak references for async methods
12769 * XplatUIDriver.cs: No more weak references for async methods.
12771 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
12773 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
12774 returns two FontFamily with the same name
12776 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
12778 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
12779 drawing disabled text. Instead using the ColorGrayText color
12781 2006-01-04 Jackson Harper <jackson@ximian.com>
12783 * TreeNode.cs: redraw the node when its image index is changed.
12785 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
12787 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
12788 time I checked there are no others like it.
12790 2006-01-04 Jackson Harper <jackson@ximian.com>
12792 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
12793 this gives the behavoir I was looking for.
12794 * Control.cs: Special case Invoking EventHandlers, this matches MS
12795 and fixes part of bug #76326.
12797 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
12799 * ThemeClearlooks.cs, FileDialog.cs:
12800 - Reflect the latest Theme class changes
12801 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
12804 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
12806 * Theme.cs: Cache UI resource images and resize them if needed
12808 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
12810 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
12811 is called. This fixes the crash in Nexxia when setting the font
12812 attributes in the chat. [However, RTF needs a look-over to make sure
12813 that all SelectionXXX methods handle the special case that selection
12814 is empty and therefore the change must be applied to all text starting
12815 at the cursor/selection start]
12817 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
12819 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12820 XplatUIOSX.cs: Added SendMessage and PostMessage methods
12821 * X11Keyboard.cs: Switched to new way of calling PostMessage
12823 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
12825 * Theme.cs: Added theme interface for images to allow the theme to
12826 control what images are used for things like FileDialog, MessageBox
12828 * MessageBox.cs: Now uses the new Theme icon/image interfaces
12830 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
12833 - Removed some dead code
12834 - Opening a recently used file does work now
12835 - Small UI enhancements
12838 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
12840 * FileDialog.cs: Forgot too add __MonoCS__
12842 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
12844 * FileDialog.cs: We are able to read recently used files now let's
12845 go on and write them.
12847 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
12849 * FileDialog.cs: Breathe some life into "last open"/"recently used"
12851 * MimeIcon.cs: Do a check for the top level media type also
12853 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
12855 * ThemeClearlooks.cs:
12856 - Added CPDrawStringDisabled
12857 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
12858 some chars if the text doesn't fit into text_rect
12859 - DrawListViewItem: If View = View.LargeIcon center the image;
12860 rewrote the drawing of ListViewItem.Text if View =
12863 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
12865 * MimeIcon.cs: Use default KDE icon theme if there is no
12866 "48x48" directory for the current icon theme, fixes #77114
12867 * Mime.cs: Disable not working and actually not used code.
12868 * ThemeWin32Classic.cs:
12869 - Replace "new SolidBrush" in GetControlBackBrush and
12870 GetControlForeBrush with ResPool.GetSolidBrush
12871 - Changed DrawListViewItem from private to protected virtual
12873 - Added form.MaximizeBox = true
12874 - Don't throw an exception if there is a broken symbolic link
12876 2005-12-23 Jackson Harper <jackson@ximian.com>
12878 * TabControl.cs: Give the panels focus, keyboard navigation is
12879 fixed so this works correctly now.
12880 - We need these key events also.
12881 * ToolBar.cs: Remove some of the poor mans double buffering.
12883 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
12885 * ComboBox.cs: The internal TextBox now returns the focus.
12887 2005-12-23 Jackson Harper <jackson@ximian.com>
12889 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
12891 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
12893 * Control.cs: Removed debug code
12894 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
12897 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
12899 * Control.cs: When creating the control, update the Z-order after
12900 all it's children are created, too. (Fixes nexxia not showing
12903 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
12905 * Control.cs: Do not update the anchoring distances if layout is
12906 suspended, instead do it once layout is resumed
12908 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
12911 - After many hours of debugging, for both Jackson and
12912 myself, it turns out that it helps to set the parent of a control
12913 if you want to actually see it onscreen. In the spirit of that
12914 discovery, we're now setting the parent of the control and
12915 it's children when the control's handle is created. This fix
12916 will make Lutz Roeder's Reflector run happily.
12917 - now just creating the handle instead of the whole control when
12918 getting a graphics context for the control.
12920 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
12922 * ScrollableControl.cs: When calculating the canvas, don't consider
12923 the scrollbar widths. Instead, predict if horizontal scrollbar
12924 will affect canvas when deciding on vertical display and vice versa.
12926 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
12928 * RichTextBox.cs: Set default RTF font for documents that don't
12929 have a font table (Fixes #77076)
12931 2005-12-22 Jackson Harper <jackson@ximian.com>
12933 * TextBoxBase.cs: It's difficult to do, but you can have an empty
12934 clipboard. This prevents a NullRef in that case.
12935 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
12936 clipboard. PRIMARY is for the currently selected text only. (We
12937 should implement PRIMARY at some point.
12939 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
12941 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
12942 a Unicode function with a structure that was defined in Ansi way.
12945 2005-12-21 Jackson Harper <jackson@ximian.com>
12947 * StatusBar.cs: Statusbar handles its fore/back colours on it's
12948 on. Because thats how it rolls. (and this avoids it using ambient
12950 * ThemeWin32Classic.cs: Use the proper back color for filling.
12951 * Menu.cs: Use the system menu bar color for drawing menu
12952 bars. Using the window back color will bring ambient colours into
12955 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
12957 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
12958 Bitmaps were created and not disposed.
12960 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
12962 * Control.cs (CreateControl): Don't do anything if the control is
12963 already created, otherwise we'd fire the OnCreated event more than
12966 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
12968 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
12969 will always match. Instead return -1. Fixes #76464.
12971 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
12973 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
12974 neither the beginning nor the end of the line (Fixes bug #76479)
12976 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
12979 - ControlNativeWindow.ControlFromHandle(): Now handling situation
12980 where handle is invalid
12981 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
12982 instead of slower linear search
12983 * NativeWindow.cs: Don't remove the window from the hashtable until
12984 after the driver has destroyed it (since the driver might use
12985 Control.FromHandle to lookup the control object
12986 * Hwnd.cs: Added DestroyPending property to track if a window is
12987 already destroyed as far as the driver is concerned and only hasn't
12988 yet notified the control
12990 - Activate(): Check if the window is still valid before using the
12992 - Implemented DestroyChildWindow() method to mark child windows as
12993 destroyed when a window is destroyed. This prevents situations
12994 where we might call an X method based on queued events for a
12995 window that already has been destroyed but we haven't yet pulled
12996 the destroy method from the queue.
12997 - Added a call to the new DestroyChildWindow() method to the drivers
12998 DestroyWindow code. Also now marking the destroyed window itself
13001 2005-12-20 Jackson Harper <jackson@ximian.com>
13004 * StatusBarPanel.cs: Don't calculate panel sizes on draw
13005 anymore. Just do them when needed, also track the rects of panels
13006 so that we can optimize refreshing more in the future.
13008 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
13010 * ColorDialog.cs: Fixed focus drawing in small color controls
13012 2005-12-19 Jackson Harper <jackson@ximian.com>
13014 * InternalWindowManager.cs:
13015 * MdiWindowManager.cs: Cleanup some coordinate system changes so
13016 moving windows works properly.
13018 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
13021 - Removed call to InitLayout() from SetBoundsCore(); doc says
13022 it's only called when a control is added to a container
13023 - Split InitLayout logic, moved to separate UpdateDistances() method
13024 since we need to perform those calculations more often than just
13025 when adding the control to a container. (Needed to fix #77022)
13026 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
13027 - Reduced the OnBindingContextChanged events count, don't send them
13028 unless the control is created, we still aren't totally matching
13029 MS, but I can't quite figure out some of their rules
13031 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
13033 * ThemeClearlooks.cs: Corrected distance between ProgressBar
13036 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
13038 * ThemeClearlooks.cs:
13039 - Updated ProgressBar drawing
13040 - Corrected drawing of ScrollBars and scroll buttons
13041 - Some temporary fixes for minor pixel artefacts
13043 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
13046 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
13047 cause events to be sent in the same order as MS does.
13048 - Added ChangeParent() method to trigger various OnXXXChanged events
13049 that need to be fired when a parent changes (This is a reworking
13050 of the patch from r54254, with the X11 errors fixed)
13051 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
13052 since on MS we get OnLayoutChanged events when calling Clear()
13053 - Changed Enabled property to consider parent state as well, if a
13054 parent is not enabled, the control will not be either
13055 - Changed Parent property to simply call Controls.Add() since that
13056 now does all the work required, this way we avoid code duplication
13057 - Threw in a few OnBindingsContextChanged calls to try and match
13058 when MS sends them. We seem to send a few too many, though.
13059 - Added call to CreateControl when adding the control to a parent.
13060 We were never calling CreateControl. Still needs some work, in
13061 some places we treat HandleCreated and ControlCreated as equal,
13063 - Removed obsolete commented out code from UpdateZOrder()
13065 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
13067 * ThemeClearlooks.cs: Updated TrackBar drawing.
13069 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
13071 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
13073 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
13075 * FileDialog.cs: Add the Help button and the open readonly
13076 checkbox only if needed
13078 2005-12-16 Jackson Harper <jackson@ximian.com>
13080 * Control.cs: Make sure we have an active menu before trying to
13081 process commands on it. Prevents menu-less forms from crashing
13082 when Alt is pressed.
13083 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
13085 * RichTextBox.cs: Expand statement to help out gmcs and fix the
13088 2005-12-16 Jackson Harper <jackson@ximian.com>
13090 * InternalWindowManager.cs: Don't translate tool windows screen
13091 coordinates. This fixes windows 'bouncing' around when being moved.
13093 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
13096 - MaxLength now treats 2^31-1 equal to unlimited length (this is
13097 not quite MS compatible, MS uses that number only for single line
13098 and 2^32-1 for multi-line, but I figure it won't hurt keeping
13100 - Now enforcing the MaxLength limit when entering characters
13101 - Added argument to internal Paste() method to track if it's called
13102 from programatically or via keyboard, since keyboard driven pastes
13103 need to enforce max-length
13104 - Added logic to Paste to only paste as many chars as MaxLength
13106 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
13108 - Added Length property to return number of characters in document
13109 - Added private CharCount property which only tracks actual chars
13110 in the document (no linefeeds) and fires event when CharCount
13112 - Added tracking of character count to all methods that alter it
13113 - Added LengthChanged event to allow applications to subscribe
13114 to any changes to the document
13116 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
13119 - Removed local password_char field (moved to TextBoxBase)
13120 - Now setting the document's password var when password is
13123 - Added password_char field (needed here so MultiLine can
13125 - Added logic to MultiLine property setter to set the document's
13126 variable when password display is allowed
13127 - Removed debug code and made some debug code conditional
13129 - Added RecalculatePasswordLine() method to handle special password
13131 - Added PasswordChar property, also added related tracking vars
13132 - Draw() method now uses local text var for grabbing text to draw,
13133 this var is set to line.text unless we're doing password display,
13134 then it is set to the pre-generated all-password-chars line
13135 - Added calling RecalculatePasswordLine() method for password lines
13137 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
13140 - Added Reparented property to allow tracking of Window Manager
13141 reparenting actions (which affect X/Y calculations of toplevel
13143 - Made ToString() print window handles in hex
13145 - AddConfigureNotify(): Now uses reparented state off Hwnd to
13146 determine if X/Y needs offsetting
13147 - AddConfigureNotify(): Fixed offset calculations
13148 - Now adds ReparentNotify messages into the queue
13149 - Now processes ReparentNotify messages and causes a
13150 WM_WINDOWPOSCHANGED message to be sent upstream if a window
13151 is reparented (as most likely it's X/Y coordinates are changed
13154 2005-12-14 Jackson Harper <jackson@ximian.com>
13156 * XplatUIX11.cs: Tool windows still need to respek focus.
13158 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
13160 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
13161 have a working release
13163 2005-12-13 Jackson Harper <jackson@ximian.com>
13165 * Form.cs: Update styles after setting the border style regardless
13166 of whether or not the window is using a window manager.
13168 2005-12-13 Jackson Harper <jackson@ximian.com>
13170 * Form.cs: We now hook into an internal window manager instead of just an
13171 MDI subsystem, this is so we can have properly behaving tool windows.
13172 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
13173 * InternalWindowManager.cs: New internal class that acts as a
13174 window manager for tool windows and as a base for mdi windows.
13175 * MdiWindowManager.cs: New class that acts as a window manager for
13178 2005-12-12 Jackson Harper <jackson@ximian.com>
13180 * Control.cs: Updates so we match behavoir for for implicit
13181 controls. Fixes explosions in MDI.
13183 2005-12-12 Jackson Harper <jackson@ximian.com>
13185 * Control.cs: Implement Invalidate (Region).
13187 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
13190 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
13191 the same events as MS does. MS fires events for each property
13192 except, for unknown reasons, Cursor, when the control is reparented.
13193 I can't seem to totally match add/remove since MS also fires some
13194 VisibleChanged events, which makes no sense. Consolidated the
13195 parenting code into a separate method so it can be called from
13196 both Add and Remove. set_Parent no longer needs any special logic
13197 as it calls the parent's add method which implicitly fires
13199 - Removed some obsolete code and debug output
13200 - Enabled state is inherited from parents, if this is enabled
13202 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
13204 * Form.cs: Removed commented out code
13206 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
13209 - Added internal version of Invoke, with additional argument
13210 indicating if we're calling it from a Dispose() handler. That
13211 way we can avoid BeginInvoke throwing an exception if we're
13212 calling for an already destroyed window.
13213 - Added a dispose argument to BeginInvokeInternal, and made the
13214 check if a valid window handle chain exists conditional on
13215 it not being a dispose call
13216 - Removed code in DestroyHandle to destroy our children. Since we
13217 now handle the WM_DESTROY message we will catch all our children
13219 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
13221 - Added a field to track the application context of the form.
13222 - No need to set closing variable as response to WM_CLOSE, instead
13223 we destroy the window. We also call PostQuitMessage if the form
13224 has an application context (which makes it the main app form,
13225 which, when closed terminates the app)
13227 - Dropped Exit() method, it's naming was confusing
13228 - Added PostQuitMessage() which causes GetMessage to return false
13229 once the message queue is empty
13230 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
13232 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
13233 no longer a valid XplatUI method, but left it in since it's used
13234 internally. Added empty PostQuitMessage() method.
13235 * MenuAPI.cs: Replaced call to Exit() with call to
13236 PostQuitMessage, even though this is probably no longer needed.
13237 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
13238 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
13240 - Replaced call to XplatUI.Exit() with PostQuitMessage()
13241 - Removed old debug code that would call XplatUI for exception
13242 display, enabled standard exception handling (Still not enabled
13243 though, until NativeWindow's ExternalExceptionHandler define
13246 - Added internal method to allow control to update NativeWindow
13247 after a window has been destroyed
13248 - Added handling of already destroyed windows when calling i
13250 - Added removal of handle from list on ReleaseHandle
13252 - Dropped GetMessageResult var and related code
13253 - Added PostQuitState to field to track if PostQuitMessage has been
13255 - Dropped Exit() method
13256 - Added PostQuitMessage() method
13257 - GetMessage now will return false if PostQuitState is set and no
13258 more messages are in the queue.
13259 - Expose handler will no longer generate WM_PAINT messages if we are
13260 in PostQuitState since it's very likely any windows have already
13261 been destroyed, and since Hwnd won't get updated until we have
13262 processed the DestroyNotify we'd be causing X errors.
13264 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
13266 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
13267 Thanks to Mike for pointing out the err of my ways.
13269 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
13271 * Control.cs(PreProcessMessage): Moved menu handling back, but
13272 after all other key handling, to match MS (who handles Menu in
13274 * Menu.cs (WndProc): Removed my brainfart
13276 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
13278 * Control.cs(PreProcessMessage): Removed special menu handling
13279 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
13281 2005-12-07 Mike Kestner <mkestner@novell.com>
13283 * Control.cs : special case SYSKEYUP so that we can adjust keynav
13284 state according in tracker.
13285 * Menu.cs : promote tracker field to base class and provide a tracker
13286 lookup capability. Add/Remove shortcuts dynamically if the top menu
13287 has a tracker. Unparent items that are removed from the collection.
13288 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
13289 * Theme*.cs: add always_show_hotkeys field to support configurability
13290 of mnemonic display. win32 doesn't show mnemonics until Alt is
13293 2005-12-07 Jackson Harper <jackson@ximian.com>
13295 * MdiChildContext.cs: Use Control.ResetCursor.
13296 * Control.cs: ResetCursor needs to set the property so that the
13297 correct XplatUI call gets made.
13299 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
13301 * Control.cs: More fixes to make our key events match MS. We
13302 were not setting the modifier state on KeyData, and we were
13303 not generating any events when Alt was pressed with a key
13304 since handling of WM_SYSxxx was missing for the OnKey methods.
13306 2005-12-07 Jackson Harper <jackson@ximian.com>
13308 * MdiChildContext.cs: reenable the sizing code.
13309 - When the mouse leaves a window reset its cursor.
13311 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
13313 * ThemeClearlooks.cs: Reflect latest Hwnd changes
13315 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
13317 * Hwnd.cs: Now using the theme 3d bordersize to calculate
13318 widths of Fixed3D borders
13320 2005-12-07 Jackson Harper <jackson@ximian.com>
13322 * MdiClient.cs: Fix warnings. Earn Mike's love.
13324 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
13326 * ThemeClearlooks.cs:
13327 - Adjusted mouse over button color
13328 - Added first parts of CheckBox drawing
13329 - Added correct color for selected text background
13330 - Fixed ComboBox drawing
13331 - Added CPDrawBorder3D and CPDrawBorder
13333 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
13335 * XplatUIX11.cs: Added call to XBell for AudibleAlert
13337 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
13339 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
13340 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
13341 alert users via sound. We could add an enum arg with different
13342 types of alerts in the future
13344 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
13346 * Control.cs: Fix behaviour problems pointed out by Mike
13348 2005-12-05 Mike Kestner <mkestner@novell.com>
13350 * StatusBarPanel.cs: add Invalidate method and hook it into all the
13351 prop setters. Calls parent.Refresh for now, but could be maybe be
13352 optimized with an internal method on StatusBar at some point.
13355 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
13357 * RichTextBox.cs: Implemented get_SelectionColor
13359 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
13361 * ThemeClearlooks.cs:
13362 - Removed dead code
13363 - Draw black button border only if button is Form.AcceptButton
13364 - Draw correct button color for pressed RadioButton if the mouse
13365 has entered the button
13366 - Updated ProgressBar drawing!
13367 - Updated CPDrawSizeGrip drawing
13368 - Updated StatusBarPanel drawing
13370 2005-12-05 Mike Kestner <mkestner@novell.com>
13372 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
13373 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
13375 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
13377 * ThemeClearlooks.cs: Initial check-in, activate with
13378 export MONO_THEME=clearlooks
13379 * ThemeEngine.cs: Added ThemeClearlooks
13381 2005-12-03 Mike Kestner <mkestner@novell.com>
13383 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
13386 2005-12-02 Jackson Harper <jackson@ximian.com>
13388 * Form.cs: If the child form has no menu the default main menu is
13389 used as the active menu.
13391 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
13393 * ListBox.cs: Check if any items exist before trying to resolve
13394 coordinates into items
13396 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
13398 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
13399 as the second color for the background hatch
13401 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
13403 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
13404 * RichTextBox.cs: FormatText position arguments are 1-based, now making
13405 sure that what we pass to FormatText is always 1-based. Fixes #76885
13407 2005-11-29 Miguel de Icaza <miguel@novell.com>
13409 * NumericUpDown.cs (EndInit): When we are done initializing,
13410 reflect any updates on the UI.
13412 2005-12-02 Jackson Harper <jackson@ximian.com>
13414 * ImplicitHScrollBar.cs:
13415 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
13416 their container controls.
13417 * TreeView.cs: Use the new implicit scrollbars.
13419 2005-12-02 Jackson Harper <jackson@ximian.com>
13421 * TreeView.cs: Make top_node internal so the TreeNodeCollections
13423 * TreeNodeCollection.cs: If we remove the topnode we need to
13424 update topnode to the next node in line.
13425 - When clearing nodes go through the same process as removing
13426 them, so they get depareneted and checked if they are top node.
13428 2005-12-01 Jackson Harper <jackson@ximian.com>
13430 * TreeView.cs: When imagelists are used the image area is
13431 selectable as well as the text.
13432 - If there are no selected nodes select the first one.
13433 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
13434 so don't do it more then we need to.
13436 2005-12-01 Jackson Harper <jackson@ximian.com>
13438 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
13439 that arrows can be scaled.
13441 2005-12-01 Jackson Harper <jackson@ximian.com>
13443 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
13444 fail. Patch by Dieter Bremes
13446 2005-11-30 Jackson Harper <jackson@ximian.com>
13448 * Form.cs: Property is 2.0 only
13449 * PrintDialog.cs: Signature fix.
13451 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
13454 - No longer artificially moves text 2 pixels down (now that we have
13455 borders this is no longer needed)
13456 - Added calcs for left, hanging and right indent
13458 2005-11-23 Mike Kestner <mkestner@novell.com>
13460 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
13462 2005-11-30 Jackson Harper <jackson@ximian.com>
13464 * MdiChildContext.cs: Set the cloned menus forms, as these don't
13465 get cloned as part of CloneMenu ().
13466 * Menu.cs: Make sure the parent of the items get set correctly
13467 when they are added. And the owners are notified of the changes.
13468 * Form.cs: Create an ActiveMenu property, so that when MDI is used
13469 we can change the menu being displayed/handled by the form without
13470 changing the menu assosciated with the form.
13471 - Don't let Mdi children draw/handle menus.
13473 2005-11-30 Jackson Harper <jackson@ximian.com>
13475 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
13476 a MenuChanged event. Just to make the API a little more
13479 * MenuItem.cs: Use the new OnMenuChanged
13480 * MdiChildContext.cs: Handle menu merging.
13481 * Form.cs: Implement MergedMenu.
13483 2005-11-30 Jackson Harper <jackson@ximian.com>
13485 * Menu.cs: We were misusing Add. Add goes behind the specified
13486 index according to the docs, and does not replace the specified
13487 index. So I added an Insert method.
13489 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
13491 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
13492 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
13494 * RichTextBox.cs: Added calls to base for DnD events
13496 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
13499 - Fixed drag-selection related crash; style fixes
13500 - Implemented undo class
13501 o Implemented method to capture document state for specified
13502 range in document tree
13503 o Implemented method to restore captured document state
13504 o Implemented cursor tracking
13505 o Implemented basic undo stack
13506 - Added undo cursor tracking to methods altering cursor location
13507 - Added undo tracking to selection deletion (still missing
13508 other text-altering hookups)
13510 - Added SelectionLength property
13511 - Implemented CanPaste()
13512 - Implemented Paste()
13513 - Added missing protected methods
13514 - Fixed RTF->Document conversion; now uses font index 0 and color
13515 index 0 as the default font for the parsed text
13516 - Fixed RTF<->Document font size translation
13517 - Fixed RTF generation, now properly handles cross-tag boundaries
13518 for single line selection
13519 - No longer always appends blank line to generated RTF
13521 - Added missing attributes
13522 - Hooked up undo-related methods
13524 - Implemented Copy()
13525 - Implemented Paste()
13526 - Implemented Cut()
13527 - Fixed caret mis-behaviour on backspace across line-boundaries
13529 2005-11-29 Jackson Harper <jackson@ximian.com>
13531 * MdiClient.cs: Add a method for activating mdi children. Very
13532 basic right now. I imagine someday it might need more girth.
13533 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
13534 children windows names are added to the menu item.
13535 * ThemeWin32Classic.cs: Draw the arrow if the item is an
13536 mdilist. This happens regardless of whether or not there are any
13537 mdi windows to see in the list, and according to my tests happens
13538 before the items are even added. Also happens if there isn't even
13539 an mdi client to get windows from.
13541 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
13543 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
13544 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
13546 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
13548 * DataGridTableStyle.cs:
13549 - Create always the styles for the missing columns even if they are
13550 provided by the user (not default table style)
13553 - Fixes SetDataBinding (always re-attach source)
13554 - Fixes SetNewDataSource (only clear styles if they are not for
13556 - Expands OnTableStylesCollectionChanged to handle style refresh
13557 and remove properly
13559 2005-11-29 Jackson Harper <jackson@ximian.com>
13561 * FileDialog.cs: Implement missing bits, remove some dead
13563 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
13564 creation of the panel so that the options set on the dialog are
13565 seen when the panel is created.
13566 * TreeView.cs: raise a click when items are clicked.
13568 2005-11-29 Jackson Harper <jackson@ximian.com>
13570 * MdiClient.cs: Pass some signature methods through to base.
13572 2005-11-28 Jackson Harper <jackson@ximian.com>
13574 * ListView.cs: Raise the click event when items are clicked.
13576 2005-11-28 Jackson Harper <jackson@ximian.com>
13578 * MdiClient.cs: Make this algorithm even more beautiful. And fix
13581 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
13583 * ThemeNice.cs: - Removed 1 pixel bitmaps
13584 - Use SmoothingMode.AntiAlias where it makes sense
13585 (ScrollButton arrow for example)
13586 - Enhanced Button focus drawing
13587 - Fixed ComboBox drawing (no artefacts anymore, focus
13588 rectangle is back again, reduced size of ComboButton, etc.)
13589 - Fixed RadioButton focus drawing for Appearence.Button
13590 - Slight ScrollButton redesign
13591 - Some LinearGradientBrush size fixes
13592 - GroupBoxes have now rounded edges
13593 - Fixed StatusBar drawing
13595 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
13597 * ThemeNice.cs: - Remove dead code
13598 - use correct background colors for menus, etc.
13599 - Fake pixel drawing with 1 pixel bitmaps
13601 2005-11-24 Jackson Harper <jackson@ximian.com>
13603 * MdiClient.cs: Size the scrollbars when resizing the window.
13604 - Resize the maximized windows when the client is resized
13605 * Form.cs: Make the child context available
13607 2005-11-23 Jackson Harper <jackson@ximian.com>
13609 * MdiChildContext.cs: Don't size windows if they are maximized.
13611 2005-11-23 Mike Kestner <mkestner@novell.com>
13613 * ContextMenu.cs: use MenuTracker.
13614 * Control.cs: remove menu handle usage.
13615 * Form.cs: remove menu handle usage.
13616 * Hwnd.cs: remove menu handle usage.
13617 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
13618 motion and clicks to the new Tracker handlers.
13619 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
13621 * MenuAPI.cs: refactored to combine popup and menubar event handling.
13622 Killed the MENU and MENUITEM data types and associated collections
13623 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
13624 MenuTracker class that exposes the leftovers from the old MenuAPI
13625 static methods. Restructured Capture handling so that only one grab is
13626 done for the entire menu hierarchy instead of handing off grabs to
13627 submenus. Tracker now has an invisible control to Capture when active.
13628 * MenuItem.cs: add sizing accessors, kill Create
13630 * Theme.cs: remove menu handle and MENU(ITEM) usage.
13631 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
13632 MENU(ITEM). remove menu handle usage, use Menu directly.
13633 * XplatUIDriver.cs: remove menu handle usage.
13634 * XplatUIOSX.cs: remove menu handle usage.
13635 * XplatUIWin32.cs: remove menu handle usage.
13636 * XplatUIX11.cs: remove menu handle usage.
13638 2005-11-22 Jackson Harper <jackson@ximian.com>
13640 * Hwnd.cs: Don't compute the menu size for
13641 DefaultClientRectangle.
13642 - Reenable menu sizes being computed for GetClienRectangle.
13643 * Form.cs: Remove comment of trechery
13645 2005-11-22 Jackson Harper <jackson@ximian.com>
13647 * Hwnd.cs: The adjustments for the menu bar are made when it is
13648 attached to the form.
13650 2005-11-19 Jackson Harper <jackson@ximian.com>
13652 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
13653 (just like on windows).
13655 2005-11-19 Jackson Harper <jackson@ximian.com>
13657 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
13658 use real buttons anymore because they are in non client area. The
13659 one TODO here is that I need to somehow invalidate a section of
13660 the non client area.
13662 2005-11-18 Jackson Harper <jackson@ximian.com>
13664 * Control.cs: Put the enum check back in now that MDI doesnt have
13665 to use this to set border styles.
13666 * Form.cs: Only set mdi child windows borders if the handle has
13668 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
13669 this directly on to the driver.
13670 - Get the move start position before adjusting for the titlebar
13671 height, this fixes the windows "skipping" when they are first
13674 2005-11-18 Jackson Harper <jackson@ximian.com>
13676 * XplatUIX11.cs: Just compute the mdi borders separately as they
13677 don't totally match up with normal form borders.
13679 2005-11-18 Jackson Harper <jackson@ximian.com>
13681 * Control.cs: Set WS_ styles for borders, so that the driver does
13682 not have to retrieve the control instance to figure out what kind
13683 of borders it should have.
13684 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
13685 driver can know its an mdi child easily.
13686 * XplatUIX11.cs: Get the border styles and whether the window is
13687 MDI from the Styles and ExStyles params instead of having to get a
13688 control. This prevents a chicken and egg problem.
13690 2005-11-18 Jackson Harper <jackson@ximian.com>
13692 * MdiClient.cs: Fix typo so scrollbars show up correctly.
13694 2005-11-18 Jackson Harper <jackson@ximian.com>
13696 * MdiClient.cs: Calculate when to add and remove scrollbars
13698 * MdiChildContext.cs: Adjust the y position to take the titlebar
13700 - No height for FormBorderStyle.None
13702 2005-11-18 Jackson Harper <jackson@ximian.com>
13704 * Control.cs: Allow non enum values to be used for
13705 InternalBorderStyle. MDI does this to set a special border style.
13706 - New utility methods for converting points to/from client coords
13707 - Add the newly created control to the Controls collection before
13708 updating its style. This way UpdateStyle can walk the control
13709 heirarchy to find the control if needed.
13710 so I don't need to create a new Point object all the time.
13711 * Form.cs: Let MDI windows handle their border styles.
13712 - Set styles on MDI windows so the correct title style is derived.
13713 * MdiChildContext.cs: Move all the painting and window handling
13714 into the non client area.
13715 - Use correct sizing and put correct buttons on frames based on
13716 the FormBorderStyle.
13717 - Notify the mdi client about scrolling
13718 - Need to handle the buttons ourselves now, because they are all
13719 in non client areas and we can't add controls there.
13720 * MdiClient.cs: Halfway to scrolling, this implementation is
13721 somewhat broken though, we need to check to make sure other
13722 windows aren't causing scrolling before removing the bars. Also
13723 the bars need to be drawn on top, maybe I can switch implicit
13724 controls to be on top.
13725 * Hwnd.cs: caption_height and tool_caption_height are now
13726 properties of an hwnd, this way they can be set by the driver
13727 based on the type of window they are. In X11 the window manager
13728 handles the decorations so caption_height is zero unless its an
13730 - Add 3 pixel borders for MDI windows (0xFFFF).
13731 - Get rid of some code duplication, have DefaultClientRectanle
13732 just call GetClientRectangle.
13733 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
13735 - Set border styles differently for mdi windows.
13736 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
13739 2005-11-15 Mike Kestner <mkestner@novell.com>
13741 * Menu.cs: when adding an item to the collection, if item is already
13742 parented, remove it from the parent.
13744 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
13746 * X11DesktopColors.cs: Added KDE support
13748 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
13751 - Clipboard methods now can translate Rtf format
13752 - No longer removes clipboard contents whenever a new format is added
13753 to allow placing multiple formats on the clipboard
13754 * Clipboard.cs: Clipboard now supports getting a IDataObject and
13755 will place all formats contained in it onto the clipboard. Also
13756 now cleans the clipboard before placing a new object onto it
13758 - Implemented set_Rtf
13759 - Implemented set_SelectedRtf
13760 - Created InsertRTFFromStream() method to allow single code base
13761 for all properties and methods that insert RTF into document
13762 - Removed debug output
13764 - Fixed Delete(int) to fix up line numbers
13765 - Fixed ReplaceSelection to combine start and end line
13766 - Fixed serious DeleteChars bug that would leave the document tree
13768 - Improved DumpTree with several logic checks to detect broken
13770 - Removed debug lines
13771 - Fixed Caret.WordForward/WordBack moving code, now always also
13772 updates caret.tag (fixes crash when word-selecting across tag
13773 boundaries via keyboard)
13774 - Added Insert() method for inserting multiline text into documents
13775 - Fixed DeleteChars() calculation errors that would cause a broken
13776 tag chain with multiple tag lines
13777 - DeleteChars() no longer crashes on multi-tag lines if not all tags
13778 - Split() no longer moves caret if split is at caret location
13779 - ReplaceSelection() now updates the cursor and re-displays it
13780 - ReplaceSelection() now uses new Insert() method to avoid code
13782 - FormatText() can now handle formatting partial lines
13784 - Append now uses new TextControl.Insert() method (this avoids
13786 - Implemented Ctrl-X (Cut) (
13787 - Implemented Ctrl-C (Copy)
13788 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
13789 regeneration when pasting text; roundtripping Copy&Paste within
13790 edit control still fails due to some calculation bugs in GenerateRTF)
13791 - The Delete key will now remove the current selection if it is visible
13792 * TextBox.cs: Removed debug lines
13793 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
13794 driver to be initialized and can't therefore be done via a static ctor)
13796 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
13798 * TextControl.cs: Added backend code for finding char arrays and strings
13800 - Added mouse wheel scroll support
13801 - Added support for VScroll and HScroll events
13803 - Implemented all seven Find() variants
13804 - Implemented GetCharFromPosition()
13805 - Implemented GetCharIndexFromPosition()
13806 - Implemented GetLineFromIndex()
13807 - Implemented GetPositionFromCharIndex();
13808 - Implemented SaveFile for PlainText and UnicodeText
13809 - Fixed set_Font, now setting a new font applies that font to
13811 - Implemented generic Document to RTF converter
13812 - Implemented SaveFile for RichText format (still missing unicode
13813 conversion for non-ansi chars)
13814 - Implemented get_Rtf
13815 - Implemented get_SelectedRtf
13817 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
13819 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
13820 to allow any captures to be released before triggering OnClick. This
13821 way a click handler may capture the mouse without interference.
13822 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
13823 This way we send them even though X may not allow a grab (if the window
13824 isn't visible, for example)
13826 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
13828 * DataGridViewRowEventArgs.cs: DataGridView implementation
13829 * DataGridViewElement.cs: DataGridView implementation
13830 * DataGridViewComboBoxCell.cs: DataGridView implementation
13831 * DataGridViewDataErrorContexts.cs: DataGridView implementation
13832 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
13833 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
13834 * ImageLayout.cs: DataGridView implementation
13835 * DataGridViewComboBoxColumn.cs: DataGridView implementation
13836 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
13837 * DataGridViewSelectionMode.cs: DataGridView implementation
13838 * IDataGridViewEditingControl.cs: DataGridView implementation
13839 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
13840 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
13841 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
13842 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
13843 * DataGridViewColumnSortMode.cs: DataGridView implementation
13844 * DataGridView.cs: DataGridView implementation
13845 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
13846 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
13847 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
13848 * Padding.cs: DataGridView implementation
13849 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
13850 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
13851 * DataGridViewRowEventHandler.cs: DataGridView implementation
13852 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
13853 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
13854 * DataGridViewButtonCell.cs: DataGridView implementation
13855 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
13856 * DataGridViewEditMode.cs: DataGridView implementation
13857 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
13858 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
13859 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
13860 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
13861 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
13862 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
13863 * DataGridViewCellEventHandler.cs: DataGridView implementation
13864 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
13865 * DataGridViewCellStyleConverter.cs: DataGridView implementation
13866 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
13867 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
13868 * DataGridViewColumnEventArgs.cs: DataGridView implementation
13869 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
13870 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
13871 * QuestionEventArgs.cs: DataGridView implementation
13872 * IDataGridViewEditingCell.cs: DataGridView implementation
13873 * DataGridViewTriState.cs: DataGridView implementation
13874 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
13875 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
13876 * DataGridViewColumnCollection.cs: DataGridView implementation
13877 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
13878 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
13879 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
13880 * DataGridViewColumn.cs: DataGridView implementation
13881 * DataGridViewCellBorderStyle.cs: DataGridView implementation
13882 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
13883 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
13884 * DataGridViewRow.cs: DataGridView implementation
13885 * DataGridViewImageCellLayout.cs: DataGridView implementation
13886 * DataGridViewImageCell.cs: DataGridView implementation
13887 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
13888 * DataGridViewCheckBoxCell.cs: DataGridView implementation
13889 * DataGridViewHeaderCell.cs: DataGridView implementation
13890 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
13891 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
13892 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
13893 * DataGridViewTextBoxColumn.cs: DataGridView implementation
13894 * QuestionEventHandler.cs: DataGridView implementation
13895 * DataGridViewCellStyleScopes.cs: DataGridView implementation
13896 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
13897 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
13898 * DataGridViewCell.cs: DataGridView implementation
13899 * DataGridViewCellEventArgs.cs: DataGridView implementation
13900 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
13901 * DataGridViewCellStyle.cs: DataGridView implementation
13902 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
13903 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
13904 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
13905 * TextFormatFlags.cs: DataGridView implementation
13906 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
13907 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
13908 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
13909 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
13910 * DataGridViewButtonColumn.cs: DataGridView implementation
13911 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
13912 * HandledMouseEventArgs.cs: DataGridView implementation
13913 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
13914 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
13915 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
13916 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
13917 * DataGridViewRowCollection.cs: DataGridView implementation
13918 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
13919 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
13920 * DataGridViewHitTestType.cs: DataGridView implementation
13921 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
13922 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
13923 * DataGridViewColumnEventHandler.cs: DataGridView implementation
13924 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
13925 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
13926 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
13927 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
13928 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
13929 * DataGridViewContentAlignment.cs: DataGridView implementation
13930 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
13931 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
13932 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
13933 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
13934 * DataGridViewPaintParts.cs: DataGridView implementation
13935 * DataGridViewCellCollection.cs: DataGridView implementation
13936 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
13937 * DataGridViewImageColumn.cs: DataGridView implementation
13938 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
13939 * DataGridViewElementStates.cs: DataGridView implementation
13940 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
13941 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
13942 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
13943 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
13944 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
13945 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
13946 * DataGridViewRowHeaderCell.cs: DataGridView implementation
13947 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
13948 * DataGridViewTextBoxCell.cs: DataGridView implementation
13949 * DataGridViewBand.cs: DataGridView implementation
13950 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
13951 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
13952 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
13953 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
13954 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
13955 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
13956 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
13957 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
13958 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
13959 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
13960 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
13962 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
13964 * ThemeWin32Classic.cs:
13965 - Draw the outside focus rectangle around buttons
13966 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
13967 doesn't use end caps for every dash of a line anymore. This
13968 workaround ignores the forecolor.
13970 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
13972 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
13975 2005-11-07 Jackson Harper <jackson@ximian.com>
13977 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
13979 2005-11-07 Jackson Harper <jackson@ximian.com>
13981 * ScrollableControl.cs: Calculate the maximum and change vars
13982 (more) correctly so that scrollbars appear as a sensible size.
13984 2005-11-04 Jackson Harper <jackson@ximian.com>
13986 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
13988 * TreeView.cs: When the tree is sorted null out the top_node so
13989 that it is recalculated.
13990 - Use dotted lines instead of dashed lines to match MS better.
13992 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
13995 - Implements key search for items. Useful when browsing files with FileDialog
13996 - When changing view mode or when clear the items reset scrollbar positions
13998 2005-11-04 Jackson Harper <jackson@ximian.com>
14000 * CurrencyManager.cs: Implement the MetaDataChanged event, the
14001 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
14002 as to what the method may do as there is no real way of creating a
14003 derived CurrencyManager and calling the method.
14005 2005-11-03 Jackson Harper <jackson@ximian.com>
14007 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
14008 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
14009 method which seems to just be used internally to refresh the tabs.
14011 2005-11-03 Jackson Harper <jackson@ximian.com>
14013 * TabControl.cs: Implement the remove method. Fix some broken
14016 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
14018 * DateTimePicker.cs:
14019 - Added missing DateTimePickerAccessibleObject class
14020 - Added missing events
14021 - Added OnFontChanged method
14022 * Form.cs: Added missing attributes
14023 * TreeView.cs: Added missing attributes
14025 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
14027 * GridItemCollection.cs: Fix signatures
14029 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
14031 * XplatUI.cs: Updated build rev/date
14032 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
14033 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
14034 * Application.cs: Trigger context-specific ExitThread events
14036 2005-11-03 Jackson Harper <jackson@ximian.com>
14040 * GridTableStylesCollection.cs:
14045 * MonthCalendar.cs: Signature fixes
14047 2005-11-03 Jackson Harper <jackson@ximian.com>
14049 * TreeNodeCollection.cs: Remove should not be virtual.
14050 * TreeView.cs: Implement the last of the missing methods.
14052 2005-11-03 Jackson Harper <jackson@ximian.com>
14054 * TreeNodeConverter.cs: Implement to get off my class-status back.
14056 2005-11-03 Jackson Harper <jackson@ximian.com>
14058 * TreeView.cs: Hookup the bits for drag and drop.
14059 * TreeNode.cs: Don't cache the tree_view or index anymore, now
14060 that nodes can be moved from tree to tree easily this just causes
14061 all sorts of problems.
14062 * TreeNodeCollection: Don't need to give treenodes an index and
14063 treeview anymore when they are added, these are computed on the
14064 fly. Also make sure to remove a node before its added.
14066 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
14069 - Added CaretSelection enum
14070 - Added comparison methods to Marker struct, makes selection code
14072 - Added SelectionStart and SelectionEnd as 'moveable' location for
14073 the CaretDirection enum and handler
14074 - Added selection_prev variable to track optimized invalidation for
14075 word and line selection
14076 - Added SelectionVisible property (returns true if there is a valid
14078 - Switched CaretHasFocus to only display the caret if there is no
14080 - Avoiding StringBuilder.ToString to retrieve a single char, instead
14081 using the direct character index; should be much faster
14082 - Added various conditional debug statements
14083 - Fixed invalidation calculation for selection ranges
14084 - Added ExpandSelection() method to support word and line selection
14085 - Switched SetSelectionToCaret to use new Marker compare overloads
14086 - Added central IsWordSeparator() method to determine word
14087 separators/whitespace and FindWordSeparator() to streamline common
14088 usage of IsWordSeparator()
14090 - Removed unneeded grabbed variable, it was just mirroring
14092 - No longer firing OnTextChanged event when Text setter is called,
14093 since the base will fire the event for us
14094 - Added handling of Ctrl-Up/Down selection
14095 - Added handling of Shift-Cursorkey selection
14096 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
14098 - Added handling of Shift and Ctrl-Shift-Home/End selection
14099 - Removed some debug output
14100 - Added handling for single/double/tripple-click to place caret/
14101 select word/select line respectively (Fixes bug #76031)
14102 - Added support for drag expansion of word/line selection
14103 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
14106 2005-11-02 Jackson Harper <jackson@ximian.com>
14108 * X11Dnd.cs: If the drag is going to and from a MWF window just
14109 copy the data instead of sending it out through the X Selection
14112 2005-11-02 Jackson Harper <jackson@ximian.com>
14115 * XplatUIX11.cs: When in a drag we don't want motion notify
14116 messages to get passed on to the other controls. This prevents
14117 mouse move messages from showing up in the drag source.
14119 2005-11-02 Jackson Harper <jackson@ximian.com>
14121 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
14122 the correct button is release to end a drag.
14123 * XplatUIX11.cs: Make the button state internal so the drag system
14124 can access it. Dragging needs to know about all button releases,
14125 not just left button.
14127 2005-11-02 Miguel de Icaza <miguel@novell.com>
14129 * Form.cs (Icon): If the icon is null, reset the icon to the
14132 * Cursor.cs: When writing the AND-mask bitmap do not include the
14133 number of colors, but hardcode those to two (black and white),
14134 fixes the loading of color cursors (Paint Dot Net).
14136 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
14137 turn off autoscaling.
14139 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
14141 2005-11-02 Jackson Harper <jackson@ximian.com>
14143 * X11Dnd.cs: Make sure to send a status message if the pointer
14144 enters a control that can not accept a drop, otherwise the cursor
14145 isn't updated correctly. Also tried to compress the lines of code
14148 2005-11-02 Jackson Harper <jackson@ximian.com>
14150 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
14151 set actions correctly. This isn't perfect as XDND and win32 have
14152 some differences on how you allow actions. I'll clear this up by
14153 adding a path for drag from MWF to MWF windows.
14154 * XplatUIX11.cs: Hook into the dnd system.
14156 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
14158 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
14159 previously shown but they are no longer need it. Very obvious when
14160 browsing files with FileDialog.
14162 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
14164 * Control.cs: We always need to call OnPaintBackground. We pretty much
14165 ignore AllPaintingInWmPaint and always do the painting there, whether
14166 it's set or not, since we always ignore the WM_ERASEBKGND message
14167 (which we don't generate on X11). This fixes #76616.
14168 * Panel.cs: Removed unneeded background painting. This happens properly
14169 in Control.cs already
14171 2005-10-31 Mike Kestner <mkestner@novell.com>
14173 * Menu.cs: Add items to collection before setting their index.
14174 * MenuItem.cs : add range checking with ArgumentException like MS.
14177 2005-10-31 Jackson Harper <jackson@ximian.com>
14179 * ListBox.cs: Invalidate if the area is visible at all not just
14180 contained in the visible rect. Fixes unselection of semi visible
14183 2005-10-31 Jackson Harper <jackson@ximian.com>
14185 * Control.cs: Consistently name the dnd methods. Make them
14186 internal so we can override them to match some MS behavoir
14188 * Win32DnD.cs: Use the new consistent names.
14190 2005-10-31 Jackson Harper <jackson@ximian.com>
14192 * TreeView.cs: Don't draw the selected node when we lose focus.
14194 2005-10-31 Jackson Harper <jackson@ximian.com>
14196 * X11Dnd.cs: We still need to reset the state even though a full
14197 reset isn't being done, otherwise status's still get sent all over
14200 2005-10-31 Jackson Harper <jackson@ximian.com>
14202 * Control.cs: Make the dnd_aware flag internal so the dnd
14203 subsystem can check it. Catch exceptions thrown in dnd handlers to
14205 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
14206 * X11Dnd.cs: Handle null data in the converters. Set the XDND
14207 version when sending a XdndEnter. Use the control/hwnd dnd_aware
14208 flags to reduce the number of dnd enters/status's sent.
14210 2005-10-31 Jackson Harper <jackson@ximian.com>
14212 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
14214 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
14216 * PictureBox.cs: Fixes 76512
14218 2005-10-28 Jackson Harper <jackson@ximian.com>
14220 * X11Dnd.cs: Early implementation to support winforms being a drag
14221 source for data on X11. Also restructured the converters so they
14222 can go both ways now.
14223 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
14225 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
14227 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
14230 2005-10-27 Jackson Harper <jackson@ximian.com>
14232 * TreeNode.cs: Implement serialization so my DnD examples will work.
14234 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
14236 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
14237 TreeView.cs: Don't dispose objects that are not owned.
14239 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
14241 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
14242 should retrieve the current cursor and report that, but XplatUI
14243 doesn't (yet) have an interface for that (and I'm not sure I even
14245 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
14246 until any message loop processing is done (and the WM_SETCURSOR
14247 replaces the cursor to the proper one)
14249 - Fixed override behaviour, we can't set the cursor globally on X11,
14250 just for our windows.
14251 - Invalidating the System.Drawing X11 display handle when we are
14253 * Control.cs: Fix to make csc happy
14255 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
14258 - get_Text: Add last line (without trailing newline) to returned
14259 value (Fixes 76212)
14260 - get_TextLength: Count last line in returned length
14261 - ToString: Call Text property instead of duplicating code
14263 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
14265 * ImageList.cs: Dispose ImageAttributes objects.
14267 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
14269 * ImageList.cs: Use attribute constructors with less arguments where
14272 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
14274 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
14275 Use typeof instead of strings when assembly is referenced. Added
14276 some more comments.
14278 2005-10-21 Jackson Harper <jackson@ximian.com>
14280 * ListView.cs: Raise a double click event. Also tried to somewhat
14281 fix when the selectedindexchanged event is raised. Its still
14284 2005-10-21 Jackson Harper <jackson@ximian.com>
14286 * TreeView.cs: New method to invalidate the plus minus area of a
14287 node without invalidating the whole node (maybe this can be used
14288 in some more places).
14289 * TreeNodeCollection.cs: When adding to an empty node we need to
14290 invalidate its plus minus area so the little block shows up.
14292 2005-10-21 Jackson Harper <jackson@ximian.com>
14294 * TreeView.cs: Make sure that when we invalidate a node the bounds
14295 are big enough to cover the selected box and the focus
14296 rectangle. Use a different colour for the lines connecting nodes
14297 so they show up with all themes.
14299 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
14301 * NativeWindow.cs: Don't call anything that could call into the driver,
14302 we might be on a different thread.
14304 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
14306 * Control.cs(Dispose): Since Dispose might run on a different thread,
14307 make sure that we call methods that could call into the driver via
14308 invoke, to avoid thread issues
14310 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
14312 * XplatUI.cs: Removed finalizer
14313 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
14314 not allowing to be called on the finalizer thread.
14316 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
14319 - Reverted r51889 and r51891.
14320 - Added ImageListItem class that stores unmodified image items and image
14321 properties required to create list images until handle is created.
14322 - Added AddItem and moved image creation logic to AddItemInternal.
14323 - Added CreateHandle method that creates images based on unmodified items.
14324 - Added DestroyHandle that changes state to store unmodified items.
14325 - Add and AddStrip methods no more create handle.
14326 - ReduceColorDepth has no return value.
14327 - Dispose destroys handle.
14328 - Modified other methods to reflect the above changes.
14329 - Implemented key support.
14330 - Added profile 2.0 members and attributes.
14331 - Added private Reset and ShouldSerialize methods that provide the same
14332 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
14333 them as they are private.
14334 - Added some more comments about implementation details.
14336 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
14338 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
14340 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
14342 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
14344 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
14346 * DataGridDrawingLogic.cs: Fixes column hit calcultation
14347 * DataGridColumnStyle.cs: Remove debug message
14349 2005-10-20 Jackson Harper <jackson@ximian.com>
14351 * TreeView.cs: We can always get input keys regardless of whether
14352 or not editing is enabled. They are used for navigation.
14354 2005-10-20 Jackson Harper <jackson@ximian.com>
14356 * TreeNode.cs: Use the viewport rect for determining if a node
14357 needs to be moved for visibility. Don't use Begin/End edit. This
14358 calls a full refresh when its done.
14359 * TreeView.cs: New SetBottom works correctly. Make the viewport
14360 rect property internal so the treenodes can see it. When clicking
14361 on a node we need to ensure that its visible because it might just
14362 be partly visible when clicked.
14364 2005-10-20 Jackson Harper <jackson@ximian.com>
14366 * TreeNodeCollection.cs: Remove debug code.
14368 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
14370 * Datagrid.cs: Implements column sorting in Datagrid
14371 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
14373 2005-10-20 Jackson Harper <jackson@ximian.com>
14375 * TreeNodeCollection.cs: Remove items properly. Update the correct
14376 area after removing them.
14378 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
14380 * Datagrid.cs: Should not call base.OnPaintBackground
14382 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
14384 * XplatUIX11.cs (GetMessage):
14385 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
14386 window instead of client window
14387 - Now properly calculates NC_xBUTTONUP message coordinates
14388 - ScreenToMenu now properly calculates it's coordinates of whole
14389 window, since menus are in the whole window, not in the client
14391 - Added WholeToScreen coordinate translation method
14393 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
14395 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
14396 want to return a message, loop back to the beginning of the function
14397 and grab the next real message to process instead.
14399 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
14401 * Splitter.cs: Properly set limits if no filler control is used
14403 2005-10-19 Jackson Harper <jackson@ximian.com>
14405 * ColorDialog.cs: Don't show the help button if it is not enabled
14406 instead of disabling it (this is what MS does). Don't create the
14407 panel until the dialog is run, otherwise the vars (such as
14408 ShowHelp) are not set yet.
14410 2005-10-19 Jackson Harper <jackson@ximian.com>
14412 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
14413 are reduced when adding nodes.
14415 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
14418 2005-10-19 Jackson Harper <jackson@ximian.com>
14420 * FolderBrowserDialog.cs: End editing our treeview so the window
14421 actually gets refreshed.
14423 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
14425 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
14426 Obsoleted handling of WM_ERASEBKGND, now always draws our background
14429 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
14431 * MenuAPI.cs: Returns after Hidding window
14432 * XplatUIX11.cs: Added TODO found while debugging menu issues
14434 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
14436 * XplatUIX11.cs: Do not re-map the whole window when it's size
14437 becomes non-zero unless it's supposed to be actually visible
14439 2005-10-18 Jackson Harper <jackson@ximian.com>
14441 * TreeView.cs: We don't need to keep a count anymore.
14442 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
14443 use the Grow method.
14445 2005-10-18 Jackson Harper <jackson@ximian.com>
14447 * TreeNodeCollection.cs: Insert is not supported on arrays, so
14448 implement it manually here.
14450 2005-10-18 Jackson Harper <jackson@ximian.com>
14452 * ImageList.cs: Dont kill the list when the colour depth is
14453 changed, just change the colour depth of all the images.
14454 - Same goes for setting the image size. Just resize them all
14455 instead of killing the list softly.
14457 2005-10-18 Jackson Harper <jackson@ximian.com>
14459 * Control.cs: Don't invalidate empty rectangles.
14461 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
14464 - Adds checked item to the Checked/Item lists (where empty before)
14465 - Do not add items to the Selected lists if they are already present
14467 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
14468 - When deleting items make sure that we delete them for the Selected
14469 and Checked list also.
14471 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
14473 * Label.cs: Dispose objects no longer used
14474 * ThemeWin32Classic.cs: Dispose objects no longer used
14476 2005-10-18 Jackson Harper <jackson@ximian.com>
14478 * TabControl.cs: Don't refresh the whole control when the tabs are
14479 scrolled, we just need to refresh the tab area.
14481 2005-10-17 Jackson Harper <jackson@ximian.com>
14483 * XplatUIX11.cs: Compress code a little bit. Only calculate the
14484 after handle when we need it.
14486 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
14488 * Control.cs: When the parent size changes, recalculate anchor
14489 positions. Partial fix for #76462
14491 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
14493 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
14494 drawn. Fixes #76462
14496 2005-10-17 Jackson Harper <jackson@ximian.com>
14498 * MonthCalendar.cs: Don't create the numeric up down until our
14499 handle is created. Otherwise our handle is created in the
14500 constructor and we don't know if we are a WS_CHILD or WS_POPUP
14503 2005-10-17 Jackson Harper <jackson@ximian.com>
14505 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
14508 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
14509 * TreeNode.cs : small logical fix (was using local var instead of field)
14511 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
14513 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
14515 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
14517 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
14519 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
14522 - Re-implemented anchoring code. My first version was really broken.
14523 This fixes bug #76033. Unlike the previous implementation we will
14524 no longer have round errors since all numbers are calculated from
14525 scratch every time. Removed various anchor-related obsolete vars.
14526 - InitLayout no longer causes layout event firing and layout to be
14529 2005-10-16 Jackson Harper <jackson@ximian.com>
14531 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
14534 2005-10-16 Jackson Harper <jackson@ximian.com>
14536 * TabControl.cs: Remove debug code.
14538 2005-10-16 Jackson Harper <jackson@ximian.com>
14540 * XEventQueue.cs: Increase the default queue size (very simple
14541 apps needed to grow the queue).
14542 * Hwnd.cs: No finalizer so we don't need to suppress
14543 finalization. Compute the invalid area manually so a new rectangle
14544 does not newto be created.
14545 * ScrollableControl.cs: Don't set any params (otherwise visibility
14546 isn't set correctly).
14547 * MdiChildContext.cs: New constructor takes the mdi parent so it
14548 doesn't have to be computed and avoids a crash on windows. Draw
14549 the window icon properly, and allow the text to be seen.
14550 * Form.cs: Use new MdiChildContext constructor. Make sure the
14551 child context isn't null in wndproc.
14552 * TabControl.cs: Don't set focus, this is muddling keyboard
14553 behavoir. Expand the tab rows when a window size increase will
14554 allow extra tabs to be seen. Don't allow tabs smaller than the
14555 width of a window to be scrolled out of view.
14557 * TreeView.cs: Use measure string to calculate a nodes width, the
14558 width is cached and only updated when the text or the font is
14559 changed. Don't check for expand/collapse clicks on the first level
14560 nodes if root lines are disabled.
14562 2005-10-16 Ritvik Mayank <mritvik@novell.com>
14564 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
14566 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
14568 * DataGridBoolColumn.cs: fixes warning
14570 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
14572 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
14573 to match more to match more precisely the MS Net behavior
14575 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
14577 * Hwnd.cs: Added field to track if window is mapped
14579 - Unmap windows if they become 0-size, re-map when
14580 they are >0 again; fixes #76035
14581 - Re-set our error handler after initializing X11Desktop
14582 to override any error handlers Gtk or whatever was called
14585 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
14587 * CheckedListBox.cs: Removed unused vars
14588 * ListView.cs: Fixed signatures
14589 * RichTextBox.cs: Removed unused vars
14590 * TextBoxBase.cs: Removed unused vars
14591 * XplatUIWin32.cs: Removed unused vars
14592 * XplatUIX11.cs: Removed unused vars
14593 * XplatUI.cs: Updated version and date to latest published
14595 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
14597 * Cursor.cs: Added private .ctor to work around a bug in
14598 resourceset (Thanks to Geoff Norton for the help on this)
14599 * SplitterEventArgs.cs: Made fields accessible so we don't
14600 waste boatloads of objects and can reuse the same one
14602 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
14603 any captions and borders when generating screen coordinates
14604 * Splitter.cs: Reimplemented control, now fully complete, uses
14605 rubberband drawing, supports and obeys all properties, has
14608 2005-10-13 Miguel de Icaza <miguel@novell.com>
14610 * Form.cs (Form): Setup default values for autoscale and
14611 autoscale_base_size; Make these instance variables, not static
14614 (OnLoad): on the first load, adjust the size of the form.
14616 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
14618 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
14619 width argument to DrawReversibleRectangle()
14620 * XplatUIWin32.cs, XplatUIX11.cs:
14621 - Implemented width for DrawReversibleRectangle()
14622 - Added logic to DrawReversibleRectangle that recognizes a zero
14623 width or height and only draws a line in that situation
14625 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
14627 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
14628 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
14629 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
14630 method (it uses our FosterParent window to get a graphics context)
14632 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
14634 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
14635 and SetWindowBackground methods
14637 - Setting proper ControlStyles
14638 - We no longer call XplatUI.SetWindowBackground and XplatUI.
14639 EraseWindowBackground, instead we draw the window background
14640 ourselves in PaintControlBackground. This behaviour is
14641 required to match MS, where, when OnPaintBackground is not
14642 called, the background is not drawn.
14643 - Removed unneeded Refresh() in set_Text
14644 * Hwnd.cs: Dropped the ErasePending support. No longer needed
14646 - Created DeriveStyles method to translate from CreateParams to
14647 FormBorderStyle and TitleStyle, also handles BorderStyle (which
14648 matches FormBorderStyle enum values)
14649 - Consolidated SetHwndStyles and CalculateWindowRect border/title
14650 style calculations into single DeriveStyles method
14651 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
14652 from redrawing the whole window on any resize or expose.
14653 - Fixed CreateWindow usage of SetWindowValuemask. Before not
14654 all styles were applied to our whole/client window appropriately
14655 - Removed EraseWindowBackground() and SetWindowBackground() methods
14656 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
14657 no longer clear/redraw the background through X
14658 - Removed handling of erase_pending bit, we have no use for it (or
14661 - Removed generation and handling of WM_ERASEBKGND message
14662 - Removed EraseWindowBackground() and SetWindowBackground() methods
14663 - Removed handling of hwnd.ErasePending flag
14665 - Removed EraseWindowBackground() and SetWindowBackground() methods
14666 - We no longer call EraseWindowBackground on PaintEventStart, we
14667 ignore the fErase flag, erasing is handled in Control in the
14669 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
14670 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
14671 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
14672 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
14673 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
14674 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
14675 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
14677 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
14679 * PropertyGrids.cs: Get sub properties
14680 * PropertyGridView.cs: Fix drawing code
14682 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
14684 * ListBox.cs: Fixes 76383
14686 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
14688 * DataGridTextBoxColumn.cs: Sets location and size before attachment
14689 * ThemeWin32Classic.cs: Fixes border drawing and calculations
14690 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
14693 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
14695 * ComboBox.cs: Fixes border drawing
14697 2005-10-10 Miguel de Icaza <miguel@novell.com>
14699 * MimeIcon.cs: Ignore errors if the file can not be read.
14701 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
14703 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
14704 - Fixed border calculations
14705 - Fixed horizontal scrolling in single column listboxes
14706 - Fixed drawing issues
14708 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
14710 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
14711 FormBorderStyle enum
14712 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
14713 code to determine FormBorderStyles from CreateParams
14715 - Fixed bug where we'd set the wrong window styles if we were
14716 not creating an MDI window
14717 - Added call to XplatUI.SetBorderStyle when form borders are set
14718 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
14720 - Removed obsolete edge style
14721 - Switched from BorderStyle to FormBorderStyle
14723 2005-10-10 Jackson Harper <jackson@ximian.com>
14725 * Form.cs: Use the property to get the window handle instead of
14726 accessing it directly. Prevents a null reference exception.
14728 2005-10-10 Jackson Harper <jackson@ximian.com>
14730 * TreeView.cs: Don't adjust the rect given to DrawString now that
14731 our libgdiplus draws correctly.
14733 2005-10-08 Jackson Harper <jackson@ximian.com>
14735 * TreeView.cs: Don't try to find the clicked on node if there are
14736 no nodes in the tree.
14738 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
14744 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
14746 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
14747 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
14749 Use ResPool for brushes and dispose System.Drawing objects that
14750 are not used anymore.
14752 2005-10-07 Jackson Harper <jackson@ximian.com>
14754 * MdiChildContext.cs: Use the new borders instead of drawing them
14757 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
14759 * Calling UpdateBounds after changing the window's BorderStyle
14760 since the style can change the ClientSize
14762 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
14764 * Control.cs: Made PaintControlBackground virtual
14765 * Panel.cs: Overriding PaintControlBackground instead of using paint
14766 event; paint event method was interfering with 'real' users of the
14769 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
14771 * ThemeWin32Classic.cs: remove border drawing since it is handled
14772 by the base control class now and was causing double border drawing.
14774 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
14776 * Panel.cs: Redraw our background on paint. Not a pretty solution,
14777 but it does seem to match MS behaviour. This fixes bug #75324
14779 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
14781 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
14782 somewhat hackish looking
14784 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
14787 - We now accept Enter even if AcceptEnter is false, if the containing
14788 form does not have an AcceptButton configured (fixes bug #76355)
14789 - Calculations are now fixed to no longer use Width/Height, but
14790 ClientSize.Width/Height, since we now support borders (this was
14791 a result of fixing borders and therefore bug #76166)
14792 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
14793 true (fixes bug #76354)
14795 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
14798 - Defaulting BorderStyle and setting it in XplatUI when our window
14800 - Added enum check to InternalBorderStyle setter
14802 - Added drawing of window borders
14803 - Now properly calculates WM decorations offset for toplevel
14804 windows (fixes bug #74763)
14806 - Implemented BorderStyles for windows (we're letting win32 draw
14808 - Fixed the signature for SetWindowLong
14809 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
14810 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
14812 * UpDownBase.cs: Remove drawing of borders, this is handled by
14813 the driver, outside the client area
14814 * ListView.cs: Removed bogus border calculations. The control should
14815 be oblivious to borders, since those are not part of the client
14817 * X11DesktopColors.cs: Commented out (currently) unneeded variables
14818 * ThemeWin32Classic.cs: Removed border calculations from ListView
14821 2005-10-06 Jackson Harper <jackson@ximian.com>
14823 * MdiChildContext.cs: Clear out the old virtual position remove
14824 all the unneeded calls to CreateGraphics.
14826 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
14828 * TextControl.cs: Use proper color for highlighted text; fixes #76350
14830 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
14833 - Added loading and setting of our new default icon
14834 - Only set icon if window is already created
14836 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
14839 - Do not explicitly set the foreground and background colors, to
14840 allow inheriting from parents (fixes #76302)
14841 - Use Control's InternalBorderStyle property to deal with borders
14843 2005-10-06 Jackson Harper <jackson@ximian.com>
14845 * MdiChildContext.cs: Use the new xplatui function to draw a
14848 2005-10-06 Jackson Harper <jackson@ximian.com>
14850 * Form.cs: Add the parent before creating the child context cause
14851 we need the parent when setting up the child.
14853 2005-10-06 Jackson Harper <jackson@ximian.com>
14855 * FolderBrowserDialog.cs: redo the tree population code so a
14856 second thread isn't used. Should be a lot faster and more stable
14859 2005-10-05 Jackson Harper <jackson@ximian.com>
14861 * TreeView.cs: There are no expand/collapse boxes if the node has
14864 2005-10-05 Jackson Harper <jackson@ximian.com>
14866 * X11DesktopColors.cs: Get menu colours for the gtk theme.
14868 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
14870 * FileDialog.cs: Fix InitialDirectory
14872 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
14875 - Fixes changing between styles
14876 - Fixes simple mode
14877 - Fixes last item crashing when navigating with keyboard
14879 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
14881 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
14883 2005-10-05 Jackson Harper <jackson@ximian.com>
14885 * TreeView.cs: If updating the root node do a full refresh.
14886 * TreeNode.cs: The root node should be expanded by default. Also
14887 added a utility prop to tell if we are the root node.
14888 * TreeNodeCollection.cs: Only refresh if the node we are being
14889 added to is expanded. Also added a comment on a potential
14892 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
14894 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
14895 in dispose method. Fixes #76330
14897 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
14899 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
14901 - Implements vertical and horizontal scrolling using XplatUI
14902 - Fixes keyboard navagation
14903 - Fixes EnsureVisible
14905 - Handles and draws focus properly
14908 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
14910 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
14911 Create handle. NET_2_0: Destroy handle when value is null.
14913 2005-10-03 Jackson Harper <jackson@ximian.com>
14915 * ScrollBar.cs: My last scrollbar patch was broken. This is a
14916 revert and a new patch to prevent the thumb from refreshing so
14919 2005-10-02 Jackson Harper <jackson@ximian.com>
14921 * ScrollBar.cs: Don't update position if it hasn't actually
14922 changed. This occurs when you hold down the increment/decrement
14923 buttons and the thumb gets to the max/min.
14925 2005-10-01 Jackson Harper <jackson@ximian.com>
14928 * MdiChildContext.cs:
14929 * MdiClient.cs: Implement ActiveMdiChild in Form.
14931 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
14933 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
14935 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
14937 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
14940 2005-09-30 Jackson Harper <jackson@ximian.com>
14942 * ListBox.cs: Don't do a full refresh unless some data has
14945 2005-09-30 Jackson Harper <jackson@ximian.com>
14947 * TreeView.cs: Make sure that the checkboxes size is factored in
14948 even when not visible.
14950 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
14952 * FileDialog.cs: Fix Jordi's build break
14954 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
14957 - Use standard the Windows colours for the combobox as espected
14958 - Dispose objects that use resouces when no longer need them
14960 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
14962 * X11DesktopColors.cs: Initial incomplete implementation
14963 * XplatUIX11.cs: Added call to initialize X11DesktopColors
14965 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
14968 - Switched Theme color names to match the names defined in
14969 System.Drawing.KnownColors. Life's hard enough, no need to make
14971 - Added setters to all theme color properties so themes can set
14972 their color schemes. The setters also propagate the color changes
14973 to System.Drawing.KnownColors via reflection
14974 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
14975 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
14976 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
14977 use the new, more logical theme color names
14978 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
14980 * ThemeWin32Classic.cs:
14981 - Removed code to set the old classic Windows colors. Instead it
14982 now relies on the colors returned by System.Drawing.KnownColors
14983 which will be either modern static colors (Unix) or colors
14984 read from the user's configuration (Win32)
14985 - Updated to use the new, more logical theme color names
14986 - Switched DataGrid drawing code to use only Theme colors instead of
14987 a mix of System.Drawing.KnownColors and Theme colors
14988 - DrawFrameControl(): Removed code that fills the button area, the
14989 fill would overwrite any previous fill done by a control. This
14991 - Added DrawReversibleRectangle() stub
14992 * ScrollableControl.cs: Set visible state to false when scrollbars
14993 are removed (pdn fix)
14994 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
14995 DrawReversibleRectangle() method to allow drawing primitive
14997 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
14999 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
15001 * ImageList.cs: Add(Icon): Create handle.
15003 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
15006 * ThemeWin32Classic.cs:
15007 - Fixes detail mode
15009 - Issues with drawing
15011 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
15013 * ImageList.cs: Moved RecreateHandle back to ImageList as event
15014 source has to be the ImageList.
15016 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
15018 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
15020 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
15022 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
15024 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
15026 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
15028 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
15029 * GridItem.cs: Fixed TODOs
15030 * GridItemCollection.cs: Added ICollection interface
15032 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
15034 * ImageList.cs: Resize icons when needed.
15036 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
15039 - Fixes GetBounds and returns on screen rects
15041 - Fixes vertical and horzintal scrolling of items
15042 * ThemeWin32Classic.cs:
15045 2005-09-29 Raja R Harinath <harinath@gmail.com>
15047 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
15049 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
15051 * ImageList.cs: Added comments about handle creation. Moved Handle,
15052 HandleCreated and OnRecreateHandle implementations to ImageCollection.
15053 Handle is created in Add methods.
15055 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
15057 * DataGridDrawingLogic.cs:
15058 - Takes rows into account on Colum calculations
15059 - Returns the column when clickig
15061 - Fixes default HitTestInfo values
15062 - Fixes HitTestInfo.ToString
15063 - Fixes ResetBackColor
15065 2005-09-28 Jackson Harper <jackson@ximian.com>
15067 * MdiChildContext.cs: Obey rules for fixed sized windows (no
15068 sizing or cursor changes). Also added some temp code to draw the
15069 titlebars text (Makes dev a little easier).
15071 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
15073 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
15075 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
15077 * ListBox.cs: Fixes bug 76253
15079 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
15081 * ImageList.cs: Added comments about the current implementation. Added
15082 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
15083 Format32bppArgb to preserve transparency and can use Graphics.FromImage
15084 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
15085 with Bitmap.LockBits for better performance. Revised the whole file to
15086 match MS.NET behaviour and provide better performance. Non-public
15087 interface members are calling public members even when they throw
15088 NotSupportedException for better maintainability. Moved ColorDepth,
15089 ImageSize, ImageStream and TransparentColor implementations to
15090 ImageCollection for better performance as these properties are not used
15092 * ImageListStreamer.cs: Added a new internal constructor that takes an
15093 ImageList.ImageCollection and serializes Images based on
15094 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
15095 match ImageList property name.
15097 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
15099 * ListBox.cs: Fixes IndexFromPoint for last item
15101 2005-09-27 Jackson Harper <jackson@ximian.com>
15103 * Form.cs: Set the position of new mdi children correctly.
15105 2005-09-27 Jackson Harper <jackson@ximian.com>
15107 * MdiClient.cs: New mdi children need to be added to the back of
15108 the controls collection so the zorder is set correctly. Also add a
15109 count of all the child windows that have been created.
15111 2005-09-27 Jackson Harper <jackson@ximian.com>
15113 * Form.cs (CreateParams): Setup MDI forms correctly.
15115 2005-09-27 Jackson Harper <jackson@ximian.com>
15117 * MdiChildContext.cs:
15118 * MonthCalendar.cs:
15124 * ScrollableControl.cs:
15125 * ComboBox.cs: Add implicit controls using the new implict control
15126 functionality in ControlCollection. Also try to block multiple
15127 control add in a suspend/resume layout to save some cycles.
15129 2005-09-27 Jackson Harper <jackson@ximian.com>
15131 * Control.cs: Add functionality to the controls collection to add
15132 'implicit controls' these are controls that are created by the
15133 containing control but should not be exposed to the user. Such as
15134 scrollbars in the treeview.
15135 * Form.cs: The list var of the ControlsCollection is no longer
15136 available because of the potential of implicit controls getting
15137 ignored by someone accessing the list directly.
15139 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
15141 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
15142 loose it's parent. (Fixed bug introduced in r49103 when we added
15143 setting the child parent to null on Remove)
15145 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
15147 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
15148 * Splitter.cs: Added missing attributes for BorderStyle property.
15149 * TextBoxBase.cs: Marked Calculate* methods internal.
15150 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
15153 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
15155 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
15157 2005-09-25 Jackson Harper <jackson@ximian.com>
15159 * TreeView.cs: Update the node bounds correctly regardless of
15160 whether the node is visible.
15162 2005-09-25 Jackson Harper <jackson@ximian.com>
15164 * ImageList.cs: Don't dispose the image after it is added to the
15165 image list. Only reformat images that need to be resized.
15167 2005-09-25 Jackson Harper <jackson@ximian.com>
15169 * ImageList.cs: Don't set the format when changing the image.
15171 2005-09-25 Jackson Harper <jackson@ximian.com>
15173 * TreeView.cs: We can't just assume the node has a font. Use the
15174 treeviews font if no node font is available.
15176 2005-09-25 Jackson Harper <jackson@ximian.com>
15178 * TreeView.cs: Allow the scrollbars to be reset with negative
15180 - Don't add scrollbars to negative sized windows.
15182 2005-09-23 Jackson Harper <jackson@ximian.com>
15184 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
15185 old Mono.Posix. Also remove some stray code that shouldn't have
15188 2005-09-23 Jackson Harper <jackson@ximian.com>
15190 * TreeView.cs: Attempt at proper sizing of the horizontal
15191 scrollbar. Also don't resize the scrollbars unless they are
15194 2005-09-23 Jackson Harper <jackson@ximian.com>
15196 * TreeView.cs: We don't need to expand the invalid area when the
15197 selection changes, as this is all drawn in the node's bounding
15198 box. The area needs to be expanded (previous typo was contracting
15199 it) when the focus rect moves.
15201 2005-09-23 Jackson Harper <jackson@ximian.com>
15203 * TreeView.cs: Display the selection box under the correct
15204 circumstances. We were rendering white text with no selection box
15207 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
15209 * TextControl.cs(Split): Now updates selection start/end if it points
15210 into a line that's being split. Fixes a FIXME and bug #75258
15212 2005-09-23 Jackson Harper <jackson@ximian.com>
15215 * ListControl.cs: Don't use the path when retrieving binding
15216 managers from the binding context. My bat sense tells me that the
15217 path is only used on insertion.
15219 2005-09-22 Jackson Harper <jackson@ximian.com>
15221 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
15223 2005-09-22 Jackson Harper <jackson@ximian.com>
15225 * Splitter.cs: There are special cursors used for splitting.
15226 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
15228 2005-09-22 Jackson Harper <jackson@ximian.com>
15230 * Splitter.cs: Change the cursor appropriately when the splitter
15231 is moused over, so the user actually knows there is a splitter
15234 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
15236 * Label.cs : Fix ToString method to give same output as MS.NET
15238 2005-09-22 Jackson Harper <jackson@ximian.com>
15240 * TreeView.cs: Create the scrollbars when the handle is created
15241 and add them right away, just make them invisble. Also account for
15242 the window being shrunk vertically to the point that the vert
15243 scrollbar needs to be added.
15244 - Remove some 0.5 adjustments to get around anti aliasing issues.
15246 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
15248 * MainMenu.cs: Fixes default value
15249 * MenuItem.cs: Fixes default value
15251 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
15253 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
15255 2005-09-21 Jackson Harper <jackson@ximian.com>
15257 * Control.cs: Don't try to set the border style on the window if
15258 it hasn't been created. When the window is created the border
15259 style will be used.
15261 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
15263 * Control.cs (Update): Don't call XplatUI if we don't have a
15266 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
15268 * ContainerControl.cs: Instead of throwing an exception, print
15269 a one-time warning about Validate not being implemented
15270 * XplatUIWin32.cs: Removed debug output
15272 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
15274 * Control.cs: Only set XplatUI background if we expect the windowing
15275 system to handle the background. This stops controls that draw their
15276 own background from flickering
15278 * XplatUIX11.cs: Support custom visuals and colormaps for window
15279 creation. This allows, amongst other things, using MWF X11 windows
15282 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
15284 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
15285 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
15286 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
15287 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
15288 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
15289 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
15290 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
15291 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
15292 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
15293 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
15294 GridColumnStylesCollection.cs,
15295 IDataGridColumnStyleEditingNotificationService.cs,
15296 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
15297 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
15298 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
15299 TreeNodeCollection.cs, AmbientProperties.cs,
15300 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
15301 DataObject.cs, ErrorProvider.cs, Splitter.cs,
15302 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
15303 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
15304 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
15305 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
15306 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
15307 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
15308 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
15309 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
15310 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
15311 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
15312 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
15313 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
15314 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
15315 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
15316 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
15317 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
15318 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
15319 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
15320 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
15321 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
15322 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
15323 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
15324 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
15325 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
15326 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
15327 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
15328 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
15329 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
15330 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
15331 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
15332 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
15333 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
15334 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
15335 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
15336 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
15338 2005-09-21 Jackson Harper <jackson@ximian.com>
15340 * TreeNode.cs: Call Before/After Expand not Collapse when
15343 2005-09-20 Jackson Harper <jackson@ximian.com>
15345 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
15347 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
15351 - Fixes proper storing of subitems
15352 - Fixes not updated items
15354 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
15356 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
15357 things if our window handle isn't created yet. Also disabled
15358 debug for TextBoxBase
15360 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
15362 * MenuAPI.cs: Remove filtering of events to allow menu usage
15364 2005-09-20 Miguel de Icaza <miguel@novell.com>
15366 * Cursor.cs: Allow null to be passed to Cursor.Current.
15368 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
15370 * ThemeWin32Classic.cs:
15371 - Change some private methods/fields to protected virtual so that
15372 they can be accessed and overriden in derived classes
15373 - First refactoring of some methods. Derived themes now don't
15374 need to duplicate the complete code from ThemeWin32Classic
15376 - Added nice StatusBar
15377 - Derive from ThemeWin32Classic and not Theme
15378 - Removed duplicate ThemeWin32Classic code
15380 2005-09-20 Miguel de Icaza <miguel@novell.com>
15382 * Control.cs (ControlCollection.Add): If the value null is passed
15383 the control is ignored.
15385 Optimize this loop.
15387 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
15389 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
15390 PostQuitMessage state.
15391 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
15393 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
15395 * Application.cs: Our constructor will never get called, move
15396 initialization to fields; fixes bug #75933
15398 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
15401 - Allow files to be selected properly using file name
15403 - Add ability to change diretory (absolute / relative)
15404 using file name combo box.
15406 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
15409 - Fixes Multicolumn listboxes item wrong calculations
15410 - Allows to click when only one item is in the listbox
15411 - Fixes crash when no items using keyboard navigation
15413 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
15415 * ComboBox.cs: Reverted almost everything from the latest patch which
15418 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
15421 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
15423 - When DropDownStyle is Simple, it does not show scrollbar
15424 to the last item of the list.
15425 - When DropDownStyle is Simple, it crashed when the list was
15426 scrolled down with the down cursor key.
15427 - Fixed a bug that when DropDownStyle is DropDownList, the
15428 selected item was not shown.
15429 - The position of the selected item was not preserved when
15430 the next dropdown happened.
15431 * ThemeWin32Classic.cs:
15432 - Items were wrapped at the right end.
15433 * CheckedListBox.cs:
15436 - Items should be fully shown.
15437 - When resizing and vertical scrollbar disappeared, the item
15438 of index 0 should be on the top of the list.
15439 - GetItemRectangle should consider the size of ver. scrollbar
15441 - SizingGrip area should not be allocated when it is not
15443 - Now it reflects MinWidth of the containing panel and
15444 fixed a crash that happens when its width becomes so small.
15446 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
15448 * CheckedListBox.cs: Fixes bug 76028
15449 * ListBox.cs: Fixes bug 76028
15451 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
15453 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
15454 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
15456 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
15458 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
15460 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
15462 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
15464 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
15466 * IRootGridEntry.cs: Added
15467 * PropertyGridCommands.cs: Added
15468 * PropertiesTab.cs: Added missing methods and property
15469 * PropertyGridView.cs: Made class internal
15470 * PropertyGridTextBox.cs: Made class internal
15472 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
15474 * MimeIcon.cs: Try to check some other environment variables
15475 if "DESKTOP_SESSION" returns "default"
15477 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
15479 * ThemeNice.cs: Corrected background colors (e.g. menus)
15480 * ColorDialog.cs: Use correct background colors for controls
15482 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
15484 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
15486 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
15488 * RichTextBox.cs: Added initial implementation
15489 * lang.cs: Removed. Was accidentally checked in long time ago
15490 * TODO: Removed. Contents were obsolete
15492 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
15494 * PropertiesTab.cs : Added
15496 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
15498 * PropertyGrid.cs : Update
15499 * PropertyGridView.cs : Update
15500 * System.Windows.Forms.resx : Added images and strings
15502 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
15504 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
15506 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
15508 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
15509 a busy loop right after the Ungrab the X11 display is otherwise
15512 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
15514 * ThemeWin32Classic.cs: Optimise the use of clipping
15516 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
15518 * DataGrid.cs: fixes recursion bug
15520 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
15523 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
15526 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
15528 * ThemeNice.cs: Draw nice ProgressBars
15530 2005-09-01 Miguel de Icaza <miguel@novell.com>
15532 * VScrollBar.cs: Another buglet found by Aaron's tool.
15534 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
15537 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
15540 - Added nicer menu drawing
15544 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
15546 * CreateParams.cs (ToString): Made output match MS
15547 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
15548 handle is already created (to avoid forcing window creation)
15549 * XplatUIX11.cs: Set window text to caption after creating window,
15550 in case Text was set before window was created
15551 * Form.cs: Use this.Text instead of a static string as caption
15553 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
15555 * NotifyIcon.cs: Don't set the window to visible; this screws
15556 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
15557 OnPaint without a bitmap)
15558 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
15559 happen very often anyway; we could add the check to the WM_PAINT
15560 event generation code
15562 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
15564 * NotifyIcon.cs: Fill the icon area with a background color, to
15565 avoid 'residue' when transparent icons are drawn
15567 - Handle whole_window == client_window when destroying windows
15568 - SystrayAdd(): Set client_window to whole_window value to
15569 get mouse and other events passed to NotifyIcon
15571 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
15573 * Form.cs: Set proper default for Opacity property
15575 - ShowSystray(): Don't bother creating telling the OS
15576 about the systray item if no icon is provided
15577 - Now handles WM_NCPAINT message to deal with whole/client window
15579 - Create window as visible to not get caught by Expose optimization
15580 * Hwnd.cs: Removed debug message
15581 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
15582 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
15583 PaintEventStart/End to use new client argument
15585 - Commented out debug messages
15586 - Switched PaintEventStart/End to use new client argument
15587 * XplatUI.cs: Added client window bool to PaintEventStart()/
15588 PaintEventEnd() calls, to support drawing in non-client areas
15589 * XplatUIDriver.cs:
15590 - Added client window bool to PaintEventStart()/PaintEventEnd()
15591 calls, to support drawing in non-client areas
15592 - Added conditional compile to allow using MWF BeginInvoke
15595 - Added some conditional debug output
15596 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
15597 whole/client window split
15598 - Implemented handling of client argument to PaintEventStart()/End()
15600 - Throw exception if BeginInvoke() is called and the window handle
15601 or one of the window's parent handles is not created
15602 - Added conditional compile to allow using MWF BeginInvoke on
15604 - get_Parent(): Only sets parent if handle is created. This avoids
15605 forcing window handle creation when parent is set.
15606 - Now fires Layout and Parent changed events in proper order
15607 - Switched to use Handle instead of window.Handle for Z-Order setting,
15608 the get_Parent() patch above causes us to possibly get null for 'window'
15609 - Implemented handling of client argument to PaintEventStart()/End()
15610 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
15612 - Now sends a Refresh() to all child windows when Refresh() is called
15614 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
15616 * Form.cs: Added (non-functional) Opacity property
15617 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
15619 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
15620 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
15621 use export MONO_THEME=nice to activate it.
15622 Currently supported controls:
15626 - TabControl (TabAlignment.Top only, other will follow)
15627 * ThemeEngine.cs: Add theme nice
15628 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
15631 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
15633 * Splitter.cs: Resize docked control and its neighbor.
15635 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
15636 -- Making Windows with Menus layout correctly --
15637 * Form.cs : The first leg of the fix
15638 Menu setter - adjust Client Size as needed to make space for the menu
15639 SetClientSizeCore - doesn't call base version to be able to pass the
15640 menu handle to XplatUI.CalculateWindowRect
15641 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
15642 * XplatUIX11.cs: The critical second leg of the fix
15643 GetWindowPos needs to use a recalculated client_rect
15644 so that resizing the window doesn't break layout of child controls.
15645 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
15646 Lots of \t\n killed
15648 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
15650 * Label.cs: Now properly recalculates width and height on Font and Text
15651 changes if AutoSize is set
15653 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
15654 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
15656 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
15658 * ImageList.cs: Makes ToString method compatible with MS
15660 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
15662 * MenuAPI.cs: fixes bug 75716
15664 2005-08-11 Umadevi S <sumadevi@novell.com>
15665 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
15667 2005-08-11 Umadevi S <sumadevi@novell.com>
15668 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
15670 2005-08-10 Umadevi S <sumadevi@novell.com>
15671 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
15673 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
15675 * Menu.cs: fixes bug 75700
15676 * MenuAPI.cs: fixes navigation issues
15678 2005-08-09 Umadevi S <sumadevi@novell.com>
15679 * CheckedListBox.cs - simple fix for GetItemChecked.
15681 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
15683 * ComboBox.cs: Serveral fixes
15684 * ListBox.cs: Serveral fixes
15686 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
15688 * ComboBox.cs: Fixes FindString methods and GetItemHeight
15689 * ListBox.cs: Fixes FindString methods
15691 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
15693 * DataGrid.cs: fixes bugs exposed by new tests
15695 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
15697 * Mime.cs: Compile Mono assembly references only if compiling
15698 with Mono (Allows to build with VS.Net again)
15700 2005-07-28 Marek Safar <marek.safar@seznam.cz>
15702 * Control.cs (PaintControlBackground): Draw background image
15704 (CheckForIllegalCrossThreadCalls): Stubbed.
15706 * Form.cs (OnCreateControl): Center when should be centered.
15708 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
15710 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
15712 * Binding.cs: Binding to properties should be case unsensitive
15714 2005-07-18 vlindos@nucleusys.com
15716 * DataGrid.cs: fixes setmember order
15718 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
15720 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
15721 * FileDialog.cs: FileDialog is now resizable and uses the new
15724 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
15726 * DataGridTextBoxColumn.cs: default value
15727 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
15728 * GridTableStylesCollection.cs: fixes checking MappingName
15729 * DataGridDrawingLogic.cs: fixes drawing logic issues
15730 * DataSourceHelper.cs: rewritten to make compatible with more data sources
15731 * DataGrid.cs: fixes
15733 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
15735 * MimeGenerated.cs: Use case sensitive comparer for
15736 NameValueCollections
15738 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
15740 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
15741 * ThemeWin32Classic.cs: bug fixes, code refactoring
15742 * DataGridDrawingLogic.cs: bug fixes, code refactoring
15743 * DataGrid.cs: bug fixes, code refactoring
15744 * DataGridTextBox.cs: bug fixes, code refactoring
15745 * DataGridColumnStyle.cs: bug fixes, code refactoring
15746 * Theme.cs: bug fixes, code refactoring
15748 2005-07-01 Peter Bartok <pbartok@novell.com>
15750 * TextControl.cs: Quick fix for the reported crash on ColorDialog
15751 and other text box usage
15753 2005-07-01 Jackson Harper <jackson@ximian.com>
15755 * TabControl.cs: Make sure the bottom of the tab covers the pages
15758 2005-06-30 Peter Bartok <pbartok@novell.com>
15760 * Form.cs (ShowDialog): Assign owner of the dialog
15761 * TextBoxBase.cs: Always refresh caret size when deleting, caret
15762 might have been moved to a tag with different height
15764 2005-06-30 Jackson Harper <jackson@ximian.com>
15766 * Form.cs: Don't create an infinite loop when setting focus
15767 * MenuItem.cs: Don't dirty the parents if we don't have any
15769 2005-06-29 Ben Maurer <bmaurer@ximian.com>
15771 * LibSupport.cs: Rename
15773 2005-06-29 Peter Bartok <pbartok@novell.com>
15775 * TextBoxBase.cs: Re-align caret after deleting a character
15777 - DeleteChars(): Ensure that tag covers the provided position
15778 - StreamLine(): Drop reference for dropped tag
15780 2005-06-29 Peter Bartok <pbartok@novell.com>
15783 - Selections now work properly, anchoring at the initial location
15784 and properly extending in either direction (SetSelectionToCaret(),
15785 SetSelectionStart() and SetSelectionEnd())
15786 - No longer redraws the whole control on selection change, now
15787 calculates delta between previous and new selection and only
15788 invalidates/redraws that area
15789 - Fixed FindPos() math off-by-one errors
15790 - Changed DeleteChars() to verify the provided tag covers the
15791 provided position, selections may have a tag that doesn't cover
15792 the position if the selection is at a tag border
15793 - Fixed off-by-one errors in DeleteChars()
15794 - Added missing streamlining check in DeleteChars() to remove
15796 - Implemented Invalidate() method, now properly calculates exposures
15797 between two given lines/positions
15798 - Implemented SetSelection()
15799 - Obsoleted and removed FixupSelection()
15800 - Improved RecalculateDocument() logic, removing code duplication
15802 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15804 * LibSupport.cs: changes to match different input/output arguments.
15806 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15808 * LibSupport.cs: added libsupport.so init routine.
15810 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
15812 * ControlBindingsCollection.cs
15813 - Throws an exception on null datasource when adding
15814 - Checks for duplicated bindings when adding
15816 2005-06-28 Jackson Harper <jackson@ximian.com>
15818 * TreeView.cs (OnKeyDown): Support left and right properly
15819 (navigates as well as expanding and collapsing.
15820 - Add support for Multiply, this expands all the selected nodes
15822 - Fix some tabbing.
15824 2005-06-28 Jackson Harper <jackson@ximian.com>
15826 * TreeView.cs: Implement keyboard navigation, currently supports,
15827 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
15828 support for toggling checkboxes with the space bar.
15830 2005-06-28 Jackson Harper <jackson@ximian.com>
15832 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
15835 2005-06-28 Jackson Harper <jackson@ximian.com>
15837 * TreeView.cs: Add missing event.
15839 2005-06-27 Peter Bartok <pbartok@novell.com>
15842 - Made line ending size configurable (now allows for counting
15843 lineendings as \n or \r\n)
15844 - Added margin to viewport to keep caret visible on right side
15845 - Fixed translation routines for line/pos to documentpos to consider
15846 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
15847 - Fixed some line-endings to be unix style
15848 - Fixed Document.FormatText to perform it's calculations 1-based
15849 - Added descriptions for a few methods that might otherwise get
15851 - Added NOTE section with some basic conventions to remember at
15852 the top of the file
15853 - Major fixup for RichTextBox selection drawing:
15854 * Fixed crashes when multiple tags on a single line were selected
15855 * fixed selection box drawing not overlaying text
15856 * fixed bogus offset calculation for tags not starting at index 1
15857 * Switched behaviour from using multiple Substrings of a
15858 StringBuilder.ToString() to using multiple
15859 StringBuilder.ToString(start, length) statements, hoping this is
15860 faster (kept original version commented out in the code, in case
15861 original version was faster)
15862 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
15864 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
15867 2005-06-27 Jackson Harper <jackson@ximian.com>
15869 * TabControl.cs: Move to the left and right with the arrow
15870 keys. These keys don't cycle beyond first and last like
15871 tab. Refresh all the tabs when scrolling them to the left or
15874 2005-06-27 Jackson Harper <jackson@ximian.com>
15877 - ToString: Added method
15878 - CreateParams: Remove TODO and comment
15879 - OnKeyDown: Cycle through bounds properly.
15880 - SelectedIndex: Scroll to the right or left if we need to
15881 display the newly selected tab.
15883 2005-06-23 Jackson Harper <jackson@ximian.com>
15885 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
15888 2005-06-23 Jackson Harper <jackson@ximian.com>
15890 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
15891 CTRL-SHIFT-TAB, and HOME, END are there any others?
15893 2005-06-23 Jackson Harper <jackson@ximian.com>
15895 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
15897 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
15899 * DataGridTextBoxColumn.cs: fixes and enhancements
15900 * ThemeWin32Classic.cs: fixes and enhancements
15901 * DataGridBoolColumn.cs: fixes and enhancements
15902 * DataGridDrawingLogic.cs: fixes and enhancements
15903 * CurrencyManager.cs: fixes and enhancements
15904 * DataGrid.cs: fixes and enhancements
15905 * DataGridColumnStyle.cs: fixes and enhancements
15907 2005-06-22 Jackson Harper <jackson@ximian.com>
15909 * TabControl.cs: Add some missing methods that just call into the
15910 base. Make the TabPageCollection's IList interface behave in the
15911 same manner as the MS implementation.
15913 2005-06-22 Peter Bartok <pbartok@novell.com>
15915 * TextControl.cs: Added sanity check
15917 - Fixed wrapping behaviour, don't set wrap on single line controls
15918 (this fixes the breakage of colordialog introduced in an earlier
15920 - Added rudimentary support for autoscrolling right-aligned controls
15921 (still needs fixing, also, center alignment scroll is missing)
15923 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
15925 * ScrollBar.cs: Fixes thumbpos on Maximum values
15927 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
15929 * PropertyGridView.cs: Pass context information to UITypeEditors
15931 2005-06-21 Peter Bartok <pbartok@novell.com>
15934 - Now calling PositionCaret with absolute space coordinates
15935 - Enabled vertical scrolling
15936 - Better tracking of scrollbar changes, tied into WidthChange
15938 - Improved cursor tracking
15939 - Removed debug output
15941 - PositionCaret coordinates are now works in absolute space, not
15943 - Improved tracking of document size
15944 - Added events for width and height changes
15946 2005-06-21 Peter Bartok <pbartok@novell.com>
15948 * Form.cs: Set focus to active control when form is activated
15950 - Added word-wrap functionality to RecalculateLine()
15951 - Added some short function descriptions for VS.Net to aid in
15952 writing dependent controls
15953 - Added Caret property, returning the current coords of the caret
15954 - Added ViewPortWidth and ViewPortHeight properties
15955 - Added Wrap property
15956 - Added CaretMoved event
15957 - Removed some old debug code
15958 - Split() can now create soft splits
15959 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
15960 - Added method to format existing text
15961 - Fixed size/alignment calculations to use viewport
15962 - RecalculateDocument now can handle changing line-numbers while
15966 - Added some wrap logic, we don't wrap if alignment is not left
15967 - Added casts for scrollbar var, base class switched types to
15968 also support RichTextBoxA
15969 - Implemented handling of scrollbar visibility flags
15972 - Switched scrollbars type to RichTextBoxScrollBars to support
15974 - Added tracking of canvas width/height
15975 - Switched scrollbars to be not selectable (to keep focus on text)
15976 - Added central CalculateDocument() method to handle all redraw
15978 - Added ReadOnly support
15979 - Added WordWrap support
15980 - Fixed handling of Enter key (we now treat it as a DialogKey)
15981 - Fixed caret positioning when h or v scroll is not zero
15982 - Fixed placing/generation of vertical scrollbar
15983 - Added CalculateScrollBars() method to allow updating scrollbar
15984 limits and visibility
15985 - Fixed handling of horizontal scroll
15986 - Added handling of vertical scroll
15987 - Implemented auto-'jump' when caret moves to close to a left or
15988 right border and there is text to be scrolled into view (currently
15989 there's the potential for a stack overflow, until a bug in
15990 scrollbar is fixed)
15992 2005-06-21 Geoff Norton <gnorton@customerdna.com>
15994 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
15996 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
16000 - return application/x-zerosize for files with size zero
16001 (if no extension pattern matches).
16002 - check matches collection for strings too.
16003 - return only the first mime type if the name value
16004 collection has more than one mime type.
16006 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
16008 * PropertyGrid.cs: Cleaned up some TODOs
16009 * PropertyGridView.cs: Added support for UITypeEditors
16011 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
16013 * DataGrid.cs: clears cached value
16015 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
16017 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
16018 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
16019 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
16020 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
16022 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
16024 * ThemeWin32Classic.cs: fixes colour
16026 2005-06-15 Peter Bartok <pbartok@novell.com>
16028 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
16029 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
16030 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
16031 * Control.cs: Added some MWFCategory and MWFDescription attributes
16032 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
16034 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
16036 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
16039 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
16041 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
16042 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
16043 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
16044 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
16045 * DataGrid.cs: default datagrid settings for Default Styles, fixes
16046 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
16048 2005-06-13 Jackson Harper <jackson@ximian.com>
16050 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
16051 isn't printed when the user enables dropping. (X11 does accept
16054 2005-06-13 Jackson Harper <jackson@ximian.com>
16056 * TreeView.cs: Remove some TODOS.
16058 2005-06-13 Jackson Harper <jackson@ximian.com>
16060 * Form.cs: Hook into the mdi framework.
16061 * MdiClient.cs: Use the base control collections add method so
16062 parents get setup correctly. Set the default back colour and dock
16064 * MdiChildContext.cs: New class, this bad actor handles an
16065 instance of an MDI window. Right now there is only basic
16066 support. You can drag, close, and resize windows. Minimize and
16067 Maximize are partially implemented.
16069 2005-06-13 Jackson Harper <jackson@ximian.com>
16071 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
16072 freaky when both vals are negative. NOTE: There are probably other
16073 places in XplatUIX11 that this needs to be done.
16075 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
16077 * DataGrid.cs: implement missing methods, move KeyboardNavigation
16078 * DataGridColumnStyle.cs: fixes signature
16080 2005-06-12 Jackson Harper <jackson@ximian.com>
16082 * XplatUIX11.cs: Use sizing cursors similar to the ones on
16085 2005-06-11 Jackson Harper <jackson@ximian.com>
16087 * StatusBarPanel.cs: Signature cleanups. Implement
16090 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
16092 * DataGridTextBoxColumn.cs: Honors aligment
16093 * GridColumnStylesCollection.cs: Contains is case unsensitive
16094 * GridTableStylesCollection.cs: several fixes
16095 * DataGridTableStyle.cs: default column creation
16096 * DataGridDrawingLogic.cs: fixes
16097 * CurrencyManager.cs: ListName property
16098 * DataGrid.cs: multiple styles support
16099 * DataGridColumnStyle.cs: fixes
16102 2005-06-10 Peter Bartok <pbartok@novell.com>
16104 * Control.cs(Select): Moved SetFocus call to avoid potential
16105 loops if controls change the active control when getting focus
16106 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
16107 the up/down buttons
16109 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
16111 * ImageListConverter.cs: Implemented
16113 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
16115 * MonthCalendar.cs: Wired in NumericUpDown control for year
16117 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
16119 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
16120 DoubleClick events, since they are not meant to be fired.
16122 2005-06-09 Peter Bartok <pbartok@novell.com>
16124 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
16125 Jonathan's standalone controls into MWF, implemented missing
16126 events, attributes and methods; added xxxAccessible classes
16127 * AccessibleObject.cs: Made fields internal so other classes
16128 can change them if needed
16130 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
16132 * UpDownBase.cs: Complete implementation
16133 * NumericUpDown.cs: Complete implementation
16134 * DomainUpDown.cs: Complete implementation
16136 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
16138 * DataGridTextBoxColumn.cs: drawing fixes
16139 * DataGridCell.cs: fixes ToString method to match MSNet
16140 * DataGridTableStyle.cs: fixes
16141 * DataGridBoolColumn.cs: fixes, drawing
16142 * DataGridDrawingLogic.cs: fixes, new methods
16143 * DataGridTextBox.cs: Keyboard and fixes
16145 - Keyboard navigation
16147 - Row selection (single, multiple, deletion, etc)
16150 2005-06-07 Jackson Harper <jackson@ximian.com>
16152 * ThemeWin32Classic.cs: Clear the background area when drawing
16155 2005-06-06 Peter Bartok <pbartok@novell.com>
16157 * ImageListStreamer.cs: Fixed signature for GetData
16158 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
16160 - Added missing ChildAccessibleObject class
16161 - Added missing OnXXXFocus overrides, switched to using those
16162 instead of the event handler
16164 - Added Parent property for ControlAccessibleObject
16167 - Added ResetBindings()
16168 * ListBindingConverter.cs: Implemented some methods
16169 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
16170 * ImageList.cs: Implemented basic handle scheme, removed TODOs
16171 * ContainerControl.cs: Fixed signature, now subscribing to the
16172 ControlRemoved event instead of overriding the handler, LAMESPEC
16173 * CurrencyManager.cs: Added missing attribute
16174 * MonthCalendar.cs: Added missing properties
16176 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
16178 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
16180 2005-06-06 Gaurav Vaish and Ankit Jain
16182 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
16183 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
16185 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
16187 * Control.cs: fixes CreateParams Width / Height.
16189 2005-06-05 Peter Bartok <pbartok@novell.com>
16191 * Win32DnD.cs: Removed compilation warnings
16193 2005-06-05 Peter Bartok <pbartok@novell.com>
16195 * Control.cs (CreateParams): Since we don't know if one of the
16196 properties we use is overridden, lets make sure if we fail accessing
16197 we continue with a backup plan
16199 2005-06-05 Peter Bartok <pbartok@novell.com>
16202 - Removed debug output
16203 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
16205 - Plugged resource leak
16206 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
16209 2005-06-05 Peter Bartok <pbartok@novell.com>
16211 * XplatUIWin32.cs: Removed DnD code
16212 * Win32DnD.cs: Implemented drop source and drop target functionality
16214 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16216 * UpDownBase.cs: remove duplicate addition of event, enable some code
16217 that was commented out.
16218 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
16219 Validate input when a key is pressed. It works fine now for every
16220 combination of Hexadecimal. Only missing some drawing love when sharing
16221 space with other controls.
16223 2005-06-04 Peter Bartok <pbartok@novell.com>
16226 - We need to pass a window for DragDrop, so enable callback events
16227 - Added DnD callback events when being a DragSource
16228 * XplatUI.cs (StartDrag): Added window handle argument
16229 * XplatUIDriver.cs (StartDrag): Added window handle argument
16230 * QueryContinueDragEventArgs: Made fields internally accessible so
16231 drivers can set them
16232 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
16235 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
16237 * DataGridTextBoxColumn.cs: column text editing
16238 * DataGridTableStyle.cs: Respect columns styles created by the user
16239 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
16240 * DataGridBoolColumn.cs: bool column editing
16241 * DataGrid.cs: fixes to scrolling, properties, etc
16242 * DataGridTextBox.cs: handle keyboard
16243 * DataGridColumnStyle.cs: fixes
16245 2005-06-02 Jackson Harper <jackson@ximian.com>
16247 * ImageListStreamer.cs: Somewhat broken implementation of
16248 GetObjectData. The RLE needs some work to match MS properly.
16250 2005-06-02 Jackson Harper <jackson@ximian.com>
16252 * X11Dnd.cs: Attempting to keep at least one file in MWF
16255 2005-06-02 Peter Bartok <pbartok@novell.com>
16257 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
16260 2005-06-02 Peter Bartok <pbartok@novell.com>
16262 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
16263 * XplatUI.cs: Added DoDragDrop() method
16264 * XplatUIDriver.cs: Added DoDragDrop() method
16266 2005-06-02 Jackson Harper <jackson@ximian.com>
16268 * Splitter.cs: Implement BorderStyle.
16270 2005-06-02 Jackson Harper <jackson@ximian.com>
16272 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
16273 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
16276 2005-06-02 Peter Bartok <pbartok@novell.com>
16279 - Added Data setter
16280 - Fixed broken insertion code for SetData, now also
16281 overwrites any existing entry of the same format name
16282 * Hwnd.cs: Added list of pointers that automatically gets
16283 freed when the window is disposed
16284 * XplatUI.cs: Call driver initialization method when loading
16287 - OnDragLeave takes EventArgs, not DragEventArgs
16288 - Added setting of WS_EX_ACCEPTFILES style when dropping is
16290 - Forces style update when drop state changes
16291 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
16292 not perfect since we cannot (yet) call the IDataObject.GetData()
16293 method, we keep getting 0x80004005 error, dunno why)
16295 2005-06-02 Peter Bartok <pbartok@novell.com>
16297 * DragEventArgs.cs: Make fields internal so we can cache the
16298 object and re-set the fields from XplatUI
16300 2005-06-02 Jackson Harper <jackson@ximian.com>
16302 * Control.cs: Add some internal methods so the DnD subsystem can
16303 raise DnD events. Also call into the driver when AllowDrop is set.
16305 * XplatUIDriver.cs: New method for setting whether or not a window
16306 is allowed to accept drag and drop messages.
16308 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
16310 * ScrollBar.cs: Make sure that values sent in Scroll events
16311 are always between Maximum and Minimum.
16313 2005-06-01 Marek Safar <marek.safar@seznam.cz>
16315 * Menu.cs: Call MenuChanged when menuitem visibility has been
16317 * MenuItem.cs: Rebuild menu when item is (not) visible.
16318 * MainMenu.cs: MainMenu has special MenuChanged.
16319 * Theme.cs: Caption and FrameBorderSize are not fixed.
16320 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
16321 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
16323 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
16324 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
16326 2005-05-30 Jackson Harper <jackson@ximian.com>
16328 * DataFormat.cs: We can't statically initialize this stuff because
16329 it calls into the xplatui and could create a loop. So we lazy init
16332 2005-05-28 Jackson Harper <jackson@ximian.com>
16334 * Control.cs: Proper implementation of Product(Name/Version).
16336 2005-05-27 Jackson Harper <jackson@ximian.com>
16338 * DataObject.cs: Dont crash if no data is found.
16340 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
16341 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
16342 as per status page, guessing it should be set to true
16344 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
16346 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
16347 * DataGridTableStyle.cs: set proper formatting text, def header text
16348 * ThemeWin32Classic.cs: new themable paramaters
16349 * DataGridBoolColumn.cs: paint check box, get data, fixes
16350 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
16351 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
16352 * DataGridColumnStyle.cs: fixes
16353 * Theme.cs: new themable paramaters
16355 2005-05-26 Peter Bartok <pbartok@novell.com>
16357 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
16359 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
16360 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
16362 2005-05-24 Peter Bartok <pbartok@novell.com>
16364 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
16365 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
16366 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
16367 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
16368 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
16369 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
16370 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
16371 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
16372 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
16373 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
16374 missing attributes, etc
16375 * DataGridPreferredColumnWidthTypeConverter.cs: Added
16377 2005-05-24 Peter Bartok <pbartok@novell.com>
16379 * Help.cs: Added, implemented trivial functions, throws up MessageBox
16380 when user tries to get help
16381 * DataObject.cs, DataFormats.cs, LinkArea.cs,
16382 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
16383 to suppress warnings
16384 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
16385 avoid unreachable code warning
16387 2005-05-20 Peter Bartok <pbartok@novell.com>
16389 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
16391 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
16393 * DataGridTextBoxColumn.cs: Basic painting methods
16394 * DataGridTableStyle.cs: Set table style in the column
16395 * ThemeWin32Classic.cs: Use Theme for colors
16396 * DataGridDrawingLogic.cs: Implement more drawing
16397 * DataGrid.cs: drawing, theming, enhacements, fixes
16398 * DataGridColumnStyle.cs: fixes, drawing
16399 * Theme.cs: theming for Datagrid
16401 2005-05-20 Peter Bartok <pbartok@novell.com>
16403 * Cursor.cs: Implemented GetObjectData() method
16405 2005-05-20 Peter Bartok <pbartok@novell.com>
16407 * Cursors.cs: Added setting of cursor name
16409 - Implemented constructors
16410 - Implemented Draw and DrawStretched
16411 - Implemented Current property
16412 - Implemented == and != operators
16413 - Implemented Dispose()
16414 - Implemented ToString
16415 - Added missing attributes
16417 - Added missing reset for OverrideCursor when DoEvents is called
16418 - Fixed creation of cursor, logic was wrong
16420 - Added missing reset for OverrideCursor when DoEvents is called
16421 - Fixed creation of cursor, bit arrays were swapped
16422 * Clipboard.cs: Removed obsolete MonoTODO attribute
16424 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
16426 * ComboBox.cs: fixes OnSelectedItemChanged
16427 * ControlBindingsCollection.cs: fixes item range check
16429 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
16432 - Calc preferred height properly
16433 - Implement missing properties
16435 * NumericUpDown.cs: Implement missing events
16437 2005-05-19 Jackson Harper <jackson@ximian.com>
16439 * TabControl.cs: New method that resizes the tab pages before
16440 redrawing them. This as needed as the control is double buffered
16441 and sizing will not be recalculated unless ResizeTabPages is
16443 * TabPage.cs: Set base.Text instead of Text in the constructor so
16444 that UpdateOwner does not get called. Use the new Redraw method of
16445 TabControl instead of Refresh so the sizing is recalculated.
16446 * ThemeWin32Classic.cs: Draw the text for button tabs.
16448 2005-05-19 Jackson Harper <jackson@ximian.com>
16450 * Control.cs: Paint control background images. Fix typo where
16451 PaintControlBackground was not getting called correctly.
16453 2005-05-19 Peter Bartok <pbartok@novell.com>
16455 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
16456 I can investigate, apparently I broke FileDialog
16458 2005-05-19 Marek Safar <marek.safar@seznam.cz>
16460 * AxHost.cs: Some simple properties.
16461 * Control.cs: window must be accessible after ctor.
16462 * Form.cs: Added TransparencyKey property.
16463 * TextBoxBase.cs: Implemented Clear. Text property can be null.
16464 * XplatUIWin32.cs: SetBorderStyle implemented.
16466 2005-05-18 Peter Bartok <pbartok@novell.com>
16468 * DataObject.cs: Entries are not global but particular to the
16469 DataObject, now it behaves that way
16470 * XplatUIWin32.cs: Implemented Clipboard methods
16471 * Clipboard.cs: Implemented
16472 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
16473 * XplatUIOSX.cs: Updated to final clipboard prototypes
16474 * XplatUIX11.cs: Implemented Clipboard methods
16475 * XplatUIDriver.cs: Updated to final clipboard prototypes
16476 * XplatUIStructs.cs:
16477 - Added BITMAPINFOHEADER struct
16478 - Added ClipboardFormats enum
16480 - Added ClipboardStruct
16481 - Added Atom enum items for clipboard types
16482 - Fixed atom types for Selection event structures
16484 - Added internal properties and methods for drivers to enumerate
16486 - Switched initialization method to allow drivers to assign their
16487 own IDs even for the MS predefined clipboard IDs
16488 * XplatUI.cs: Updated to final clipboard interface
16490 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
16491 * PropertyGridView.cs: Fixed compiler warnings.
16493 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
16494 * PropertyGrid.cs: Added some event calls
16495 * PropertyGridView.cs: Change drawing code to use double buffering
16496 * PropertyGridTextBox.cs: Changed Text property name
16497 * GridItem.cs: Added Bounds property.
16498 * GridEntry.cs: Added Bounds property.
16500 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
16502 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
16503 since GetType() may not return the correct type if the object is
16506 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
16508 * TreeNodeCollection.cs: fixes get/set item ranges
16510 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
16512 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
16514 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
16516 * ComboBox.cs: Fix item range comparation
16517 * ListView.cs: Fix item range comparation
16519 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
16522 - Clear example panel when OnPaint is called
16523 - Better solution for displaying the example panel text
16524 - Select default indexes in the ListBoxes
16526 2005-05-11 Geoff Norton <gnorton@customerdna.com>
16528 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
16530 2005-05-11 Peter Bartok <pbartok@novell.com>
16532 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
16533 * SelectionRangeConverter.cs: Implemented
16534 * PropertyGrid.cs: Fixed attribute value
16536 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
16537 - Added Sebastien Pouliot's CAS Stack Propagation fixes
16538 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
16539 that's common to all drivers. First methods to go there are
16540 Sebastien Pouliot's CAS Stack Propagation helper methods
16541 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
16542 Sebastien Pouliot for CAS Stack Propagation
16544 2005-05-11 Geoff Norton <gnorton@customerdna.com>
16547 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
16549 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
16551 * DataGridTextBoxColumn.cs: fixed some members
16552 * GridColumnStylesCollection.cs: indexed column is case insensitive
16553 * DataGridTableStyle.cs: fixes
16554 * ThemeWin32Classic.cs: add new theme parameter
16555 * Theme.cs: add new theme parameter
16556 * DataGridDrawingLogic.cs: Datagrid's drawing logic
16557 * DataGrid.cs: fixes, new internal properties, etc.
16558 * DataGridColumnStyle.cs: allows to set grid value
16561 2005-05-10 Peter Bartok <pbartok@novell.com>
16563 * AccessibleObject.cs:
16564 - Removed MonoTODO attribute on help, method is correct
16565 - Fixed Bounds property
16566 * AxHost.cs: Moved MonoTODO
16567 * ButtonBase.cs: Now setting AccessibleObject properties
16568 * RadioButton.cs: Setting proper AccessibleObject role
16569 * CheckBox.cs: Setting proper AccessibleObject role
16570 * ControlBindingsCollection.cs: Added properties, methods and attributes
16571 * DataFormats.cs: Fixed awkward internal API, and changed to enable
16572 userdefined DataFormats.Format items as well
16573 * ListControl.cs: Removed data_member from the public eye
16574 * OpenFileDialog.cs:
16575 - Made class sealed
16576 - Added missing attributes
16577 * SaveFileDialog.cs: Added missing attributes
16578 * ImageListStreamer.cs: Fixed code that caused warnings
16579 * LinkLabel.cs: Removed unreachable code
16580 * TreeView.cs: Fixed code that caused warnings
16581 * PropertyGridView.cs: Fixed code that caused warnings
16582 * GridColumnStylesCollection.cs: Added missing attributes
16583 * GridTableStylesCollection: Added missing attribute
16584 * PropertyManager: Added .ctor
16585 * SecurityIDType: Added
16586 * DataObject.cs: Implemented class
16587 * LinkArea.cs: Added missing attribute
16589 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
16591 * RadioButton.cs: call base method to allow to fire OnClick event
16592 * UpDownBase.cs: OnMouseUp call base method
16593 * CheckedListBox.cs: call base method before returning
16594 * TrackBar.cs: call base method before returning
16597 2005-05-10 Peter Bartok <pbartok@novell.com>
16599 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
16602 2005-05-10 Peter Bartok <pbartok@novell.com>
16604 * DataFormats.cs: Implemented
16605 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
16606 XplatUIX11.cs: Added Clipboard APIs
16607 * XplatUIWin32.cs: Implemented Clipboard APIs
16608 * FolderBrowserDialog.cs: Added missing event, attributes
16610 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
16612 * CheckBox.cs: call base method to allow to fire OnClick event
16614 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
16616 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
16618 2005-05-06 Peter Bartok <pbartok@novell.com>
16620 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
16621 * Screen.cs: Implemented
16622 * HelpNavigator.cs: Added
16623 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
16625 * HelpProvider.cs: Implemented all we can do until we have a CHM
16626 help library (which means that "What's This" does work now)
16628 2005-05-06 Jackson Harper <jackson@ximian.com>
16630 * XplatUIX11.cs: Fix waking up the main loop.
16632 2005-05-05 Peter Bartok <pbartok@novell.com>
16634 * XplatUI.cs: Updated revision
16635 * Form.cs: Removed enless loop
16636 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
16637 * Label.cs (OnPaint): Added call to base.OnPaint()
16638 * ToolTip.cs: Made ToolTipWindow reusable for other controls
16639 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
16640 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
16642 * ButtonBase.cs: Moved base.OnPaint() call to end of method
16643 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
16644 to ToolTip.ToolTipWindow for drawing and size methods; this allows
16645 reuse of ToolTipWindow by other controls
16646 * SizeGrip.cs: Moved base.OnPaint() call to end of method
16647 * XplatUIX11.cs: Now clipping drawing area (experimental)
16648 * PictureBox.cs: Moved base.OnPaint() call to end of method
16649 * Theme.cs: Fixed ToolTip abstracts to match new format
16650 * ErrorProvider.cs: Implemented
16652 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
16654 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
16658 - Implements LinkBehavior
16659 - Fixes many issues
16661 2005-05-03 Jackson Harper <jackson@ximian.com>
16663 * ListView.cs: Calculate the scrollbar positioning on resize and
16664 paint, so they get put in the correct place.
16666 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
16668 * ColorDialogs.cs: The small color panels are now handled by
16669 SmallColorControl. This fixes drawing of the focus rectangle
16670 and adds a 3D border.
16672 2005-05-03 Peter Bartok <pbartok@novell.com>
16674 * Control.cs: Modified version of Jonathan Chamber's fix for
16677 2005-05-03 Jackson Harper <jackson@ximian.com>
16679 * ListView.cs: Remove redraw variable. Control now handles whether
16680 or not a redraw needs to be done, and will only raise the paint
16681 event if redrawing is needed.
16683 2005-05-03 Jackson Harper <jackson@ximian.com>
16685 * Splitter.cs: No decorations for the splitter form. Cache the
16688 2005-05-03 Jackson Harper <jackson@ximian.com>
16690 * TreeView.cs: Use dashed lines to connect nodes. Use the
16691 ControlPaint method for drawing the focus rect instead of doing
16694 2005-05-02 Peter Bartok <pbartok@novell.com>
16696 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
16698 2005-04-29 Jackson Harper <jackson@ximian.com>
16700 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
16701 entire image buffer. Just clear the clipping rectangle.
16703 2005-04-29 Jackson Harper <jackson@ximian.com>
16705 * ThemeWin32Classic.cs: Don't draw list view items that are
16706 outside the clipping rectangle.
16708 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
16710 * ListBox.cs: added horizontal item scroll
16712 2005-04-29 Jackson Harper <jackson@ximian.com>
16714 * ThemeWin32Classic.cs: Remove some old debug code that was
16715 causing flicker with the new double buffering code.
16717 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
16719 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
16720 behave like combobox and comboboxlist (still not sure if this is
16723 2005-04-28 Jackson Harper <jackson@ximian.com>
16725 * ThemeWin32Classic.cs: Don't fill the middle of progress
16726 bars. This fills areas outside of the clip bounds that don't need
16729 2005-04-28 Jackson Harper <jackson@ximian.com>
16731 * Control.cs: Don't expose functionality to touch the image buffers.
16733 * ListView.cs: We do not need to (and no longer can) manipulate
16734 the image buffers directly. All of this is handled by Control.
16736 2005-04-28 Peter Bartok <pbartok@novell.com>
16738 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
16739 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
16740 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
16742 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
16745 - Adjust control's height for non-simple comboboxes (bug fix)
16747 * MenuAPI.cs: remove unused var
16748 * ScrollBar.cs: remove unsed var
16750 * ListBox.cs: unselect items when clearing
16752 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
16754 * ListControl.cs: honors OnPositionChanged and default Selected Item
16755 * ListBox.cs: unselect items when clearing
16757 2005-04-27 Jackson Harper <jackson@ximian.com>
16759 * X11Keyboard.cs: Initialize a default keyboard and give a warning
16760 if a "correct" keyboard is not found. This will make us not crash,
16761 but might give some users bad keyboard layouts...seems to be the
16762 same thing rewind does.
16764 2005-04-27 Jackson Harper <jackson@ximian.com>
16766 * BindingManagerBase.cs: Attach the current/position changed
16767 handlers to their respective events.
16769 2005-04-27 Jackson Harper <jackson@ximian.com>
16771 * Control.cs: Make sure that the first WM_PAINT does a full draw,
16773 * ThemeWin32Classic.cs: Don't fill the background for picture
16774 boxes. This could overright user drawing.
16775 * ComboBox.cs: Just fill the clipping rect not the entire client
16776 rect when drawing the background. This prevents pieces of the
16777 image buffer from getting overwritten and is theoretically faster.
16779 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
16781 * ComboBox.cs: Databinding support fixes, fire missing events
16782 * ListControl.cs: implement missing methods and properties, fixes
16783 * ThemeWin32Classic.cs: Databiding support on Drawing
16784 * CheckedListBox.cs: Databinding support fixes, fire missing events
16785 * ListBox.cs: Databinding support fixes, fire missing events
16787 2005-04-25 Peter Bartok <pbartok@novell.com>
16789 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
16791 2005-04-25 Jackson Harper <jackson@ximian.com>
16793 * TreeView.cs: Use the horizontal scrollbars height not width when
16794 determining how much of the client area is available.
16796 2005-04-25 Jackson Harper <jackson@ximian.com>
16798 * Control.cs: Double buffering is handled differently now. As per
16799 the spec, the extra buffer is created in the WM_PAINT message and
16800 passed down to the control's drawing code.
16808 * PropertyGridView.cs:
16820 * DateTimePicker.cs:
16822 * TreeView.cs: Update to new double buffering system.
16823 * MonthCalendar.cs: Uncomment block, as Capture is now
16824 working. Update to new double buffering
16825 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
16826 * PaintEventArgs.cs: New internal method allows us to set the
16827 graphics object. This is used for double buffering.
16828 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
16829 rectangle. The internal paint_area var has been removed from
16830 StatusBar. The clipping rect should be used instead.
16831 * Theme.cs: Give the PictureBox drawing method a clipping rect.
16832 * TabPage.cs: The RefreshTabs method was removed, so just call the
16833 tab controls Refresh method now.
16834 * TabControl.cs: Update to new double buffering. Make sure the
16835 handle is created before sizing the tab pages, otherwise we will
16836 get stuck in a loop.
16838 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
16840 * LinkLabel.cs: Fix typo, bug #74719; patch
16841 from Borja Sanchez Zamorano
16843 2005-04-22 Jackson Harper <jackson@ximian.com>
16845 * TreeNode.cs: Implement Handle stuff.
16846 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
16848 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
16850 * DataGridTextBoxColumn.cs: call base constructors, fixes
16851 * GridColumnStylesCollection.cs: missing events, methods, and functionality
16852 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
16853 * DataGridTableStyle.cs: implements create default column styles
16854 * DataGridBoolColumn.cs: which types can handle
16855 * DataGrid.cs: missing methods, fixes, new functionality
16856 * DataGridColumnStyle.cs: fixes
16858 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
16859 * FolderBrowserDialog.cs:
16860 - Use a thread to fill the TreeView
16861 - Adjusted some sizes
16863 2005-04-19 Peter Bartok <pbartok@novell.com>
16865 * LinkLabel.cs: (Re-)create the pieces when setting the Text
16866 property. Fixes #74360.
16868 2005-04-19 Jackson Harper <jackson@ximian.com>
16870 * XEventQueue.cs: Lock when getting the lockqueue size.
16871 * PictureBox.cs: Call base OnPaint
16873 2005-04-19 Peter Bartok <pbartok@novell.com>
16875 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
16876 messages were no longer being processed (this broke BeginInvoke)
16879 2005-04-18 Jackson Harper <jackson@ximian.com>
16881 * TreeView.cs: buglet that caused node images to get drawn
16882 regardless of whether or not they were in the clipping rectangle.
16884 2005-04-18 Jackson Harper <jackson@ximian.com>
16886 * CurrencyManager.cs: There are four rules for GetItemProperties:
16887 - If the type is an array use the element type of the array
16888 - If the type is a typed list, use the type
16889 - If the list contains an Item property that is not an object, use
16891 - use the first element of the list if there are any elements in
16894 2005-04-17 Jackson Harper <jackson@ximian.oom>
16896 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
16897 click. This handles offsets for scrolling properly and reduces
16898 memory. Also fixed GetNode to not offset now that TopNode works
16900 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
16902 2005-04-17 Jackson Harper <jackson@ximian.com>
16904 * CursorConverter.cs: Initial implementation.
16906 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
16908 * ListControl.cs: work towards complex data binding support on ListControl
16909 * CurrencyManager.cs: work towards complex data binding support on ListControl
16910 * ListBox.cs: work towards complex data binding support on ListControl
16913 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
16915 * GridTableStylesCollection.cs: fixes name and constructor
16916 * DataGridTableStyle.cs: fixes
16917 * DataGridBoolColumn.cs: fixes names and constructors
16918 * DataGrid.cs: define methods and properties. Some init implementations
16919 * DataGridCell.cs: define methods and properties. Some init implementations
16920 * GridTablesFactory.cs: Define methods and properties
16922 2005-04-15 Geoff Norton <gnorton@customerdna.com>
16924 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
16925 graphics port changes. We still want the coordinates in global screen
16928 2005-04-14 Jackson Harper <jackson@ximian.com>
16930 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
16931 check plus minus or checkbox clicks unless those features are enabled.
16933 2005-04-14 Jackson Harper <jackson@ximian.com>
16935 * TreeView.cs: Add methods for setting the top and bottom visible
16936 nodes. TreeNode::EnsureVisible uses these methods.
16937 * TreeNode.cs: Implement EnsureVisible
16939 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
16941 * Form.cs: Pospone menu assignation if the window has not been created yet
16942 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
16945 2005-04-12 Jackson Harper <jackson@ximian.com>
16947 * TreeView.cs: Set the TopNode properly when scrolling
16948 occurs. This has the added benifit of reducing the amount of
16949 walking that needs to be done when drawing. Also removed an old
16951 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
16953 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
16955 * Timer.cs: fixes interval setting when the timer is already enabled
16957 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
16959 * FolderBrowserDialog.cs: First approach
16961 2005-04-09 Peter Bartok <pbartok@novell.com>
16963 * FolderBrowserDialog: Added
16965 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
16967 * LinkLabel.cs: move drawing code into the theme
16968 * ThemeWin32Classic.cs: drawing code and painting background bugfix
16969 * Theme.cs: define DrawLinkLabel method
16971 2005-04-05 Jackson Harper <jackson@ximian.com>
16973 * BindingContext.cs: Use weak references so these bad actors don't
16974 stay alive longer then they need to.
16976 2005-04-05 Jackson Harper <jackson@ximian.com>
16978 * ListControl.cs: Basic implementation of complex databinding.
16980 * ListBox.cs: Add calls to ListControl databinding methods.
16982 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
16985 - Don't change PopupButtonState to Normal when the
16986 PopupButton gets pressed several times.
16987 - Renamed ButtonPanel to PopupButtonPanel
16989 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
16991 * ColorDialog.cs: Use cached objects instead of creating them
16992 * LinkLabel.cs: Use cached objects instead of creating them
16993 * Splitter.cs: Use cached objects instead of creating them
16994 * FontDialog.cs: Use cached objects instead of creating them
16995 * PropertyGridView.cs: Use cached objects instead of creating them
16996 * MessageBox.cs: Use cached objects instead of creating them
16997 * FileDialog.cs: Use cached objects instead of creating them
16998 * ThemeWin32Classic.cs: Use cached objects instead of creating them
16999 * TreeView.cs: Use cached objects instead of creating them
17001 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
17003 * Control.cs: use Equals to compare the font since no == op
17004 * ScrollBar.cs: use Equals to compare the font since no == op
17006 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
17008 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
17010 2005-04-01 Jackson Harper <jackson@ximian.com>
17012 * Binding.cs: Implement IsBinding.
17013 * BindingManagerBase.cs:
17014 * PropertyManager.cs:
17015 * CurrencyManager.cs: Add IsSuspended property.
17017 2005-04-01 Jackson Harper <jackson@ximian.com>
17019 * Binding.cs: Had some IsAssignableFrom calls backwards.
17021 2005-04-01 Jackson Harper <jackson@ximian.com>
17023 * Binding.cs: Handle null data members when pulling data.
17024 * PropertyManager.cs: Handle the data member being a property that
17027 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
17029 * DataGridTextBoxColumn.cs: fixes signature
17030 * DataGrid.cs: calls right constructor
17032 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
17034 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
17035 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
17036 * GridTableStylesCollection.cs: implements GridTableStylesCollection
17037 * DataGridTableStyle.cs: implements DataGridTableStyle
17038 * DataGridBoolColumn.cs: implements DataGridBoolColumn
17039 * DataGridTextBox.cs: implements DataGridTextBox
17040 * DataGridColumnStyle.cs: implements DataGridColumnStyle
17042 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
17044 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
17046 2005-03-29 Peter Bartok <pbartok@novell.com>
17049 - Properly implemented CompanyName property
17050 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
17051 returns a path that includes CompanyName, ProductName and
17052 Version (fixes bug #70330)
17054 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
17056 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
17059 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
17061 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
17063 - Added ReadOnly CheckBox
17064 - Further refactoring: moved some code from Open-/SaveFileDialog
17067 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
17069 * OpenFileDialog.cs: Fixed CheckFileExists
17071 Moved FileView and DirComboBox outside FileDialog class.
17072 They can now be used outside FileDialog
17074 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
17076 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
17077 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
17079 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
17081 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
17082 - Added missing CreatePrompt property in SaveDialog
17083 - Overall SaveDialog handling should be better now
17084 - Added non standard ShowHiddenFiles property
17085 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
17086 - Added InitialDirectory and RestoreDirectory support
17088 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
17090 * FileDialog.cs: Made dirComboBox usable
17092 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
17094 * FileDialog.cs: Added Filter support (case sensitiv)
17096 2005-03-24 Jackson Harper <jackson@ximian.com>
17098 * TabControl.cs: Need a couple more pixels for the lines.
17100 2005-03-23 Jackson Harper <jackson@ximian.com>
17102 * TabControl.cs: Give the tab page focus when it is selected.
17104 2005-03-23 Jackson Harper <jackson@ximian.com>
17106 * TabControl.cs: Account for the drawing of tabs borders when
17107 invalidating. If the slider was clicked dont do click detection on
17110 2005-03-23 Jackson Harper <jackson@ximian.com>
17112 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
17114 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
17116 * CategoryGridEntry.cs: Added
17117 * GridItem.cs: Added helper properties
17118 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
17119 * GridEntry.cs: Updated code for collection
17120 * PropertyGrid.cs: Cleaned up some formatting
17121 * PropertyGridView.cs: Added drop down functionality for enums.
17122 * GridItemCollection.cs: Added enumerator logic
17123 * PropertyGridEntry.cs: Added
17125 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
17128 - Removed unnecessary commented code
17129 - Fixed handling for entering the filename manually in the combobox
17131 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
17133 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
17135 2005-03-18 Peter Bartok <pbartok@novell.com>
17137 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
17138 them being touching the border
17140 2005-03-18 Peter Bartok <pbartok@novell.com>
17142 * TextControl.cs: Quick hack to center text better
17144 2005-03-18 Peter Bartok <pbartok@novell.com>
17147 - Don't throw NotImplemented exceptions, just print a notice once
17148 instead (requested by Miguel). This makes running existing SWF
17151 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
17152 - Added context menu trigger on right click
17153 * Panel.cs: Trigger invalidate on resize
17155 - Removed old double-buffer drawing
17156 - Added ResizeRedraw style to force proper update of statusbar
17158 - Removed debug output
17159 * ThemeWin32Classic.cs:
17160 - Fixed drawing of status bar, now draws Text property if there
17161 are no defined panels
17163 2005-03-18 Jackson Harper <jackson@ximian.com>
17165 * ImageList.cs: When the image stream is set pull all the images
17167 * ImageListStreamer.cs: Implement reading image list streams.
17169 2005-03-18 Peter Bartok <pbartok@novell.com>
17171 * ThemeWin32Classic.cs (DrawPictureBox):
17172 - Fixed calculations for centered drawing
17173 - Fixed drawing for normal mode, not scaling the image on normal
17175 2005-03-18 Peter Bartok <pbartok@novell.com>
17177 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
17180 - Made Open/Save button the accept button for FileDialog
17181 - Tied the cancel button to the IButtonControl cancel button
17182 - Save/Open now properly builds the pathname
17183 - Now handles user-entered text
17184 - Preventing crash on right-click if no item is selected
17185 - Fixed Text property, now uses contents of textbox
17186 - Fixed SelectedText property, now just returns the text part that
17187 is selected in the text box
17189 2005-03-18 Jackson Harper <jackson@ximian.com>
17191 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
17192 rect, make sure to de-adjust the interior rect after drawing the
17195 2005-03-18 Peter Bartok <pbartok@novell.com>
17197 * MenuAPI.cs: Remove menu *before* executing selected action to
17198 prevent the menu from 'hanging around'
17200 2005-03-17 Geoff Norton <gnorton@customerdna.com>
17202 * XplatUIOSX.cs: Implemented WorkingArea property
17204 2005-03-17 Peter Bartok <pbartok@novell.com>
17206 * XplatUIX11.cs: Fixed menu coord calculations
17207 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
17208 for calculating offsets
17210 2005-03-17 Peter Bartok <pbartok@novell.com>
17212 * Hwnd.cs: Do not consider menu presence for default client
17213 rectangle location/size
17214 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
17215 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
17216 translation functions
17217 * FileDialog.cs: Fixed (what I presume is a) typo
17219 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
17221 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
17222 X access (avoids X-Async errors)
17224 2005-03-16 Jackson Harper <jackson@ximian.com>
17226 * TabControl.cs: Raise the SelectedIndexChanged event.
17228 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
17230 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
17231 - Removed vertical ToolBar and replaced it with a custom panel
17232 (desktop and home button already work)
17233 - Added Help button (some controls get resized or relocated then)
17234 - Draw correct text depending on Open or Save.
17235 - Fixed some typos...
17237 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
17240 - Only change Maximum and Minimum when need it (bug fix)
17242 2005-03-15 Peter Bartok <pbartok@novell.com>
17244 * Form.cs: Use Handle for icon, to trigger creation if
17245 the window does not yet exist
17247 - CanSelect: Slight performance improvement
17248 - Focus(): Preventing possible recursion
17249 - Invalidate(): Removed ControlStyle based clear flag setting
17250 - WM_PAINT: fixed logic for calling OnPaintBackground
17251 - WM_ERASEBKGND: Fixed logic, added call to new driver method
17252 EraseWindowBackground if the control doesn't paint background
17254 - Moved EraseWindowBackground() method to internal methods
17255 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
17256 is sent via SendMessage on BeginPaint call on Win32
17258 - Added EraseWindowBackground() method
17259 - No longer sends WM_ERASEBKGND on .Expose, but on call to
17260 PaintEventStart, which more closely matches Win32 behaviour
17261 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
17262 - Fixed SetFocus() to properly deal with client and whole windows
17263 * Hwnd.cs: Added ErasePending property
17264 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
17265 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
17267 2005-03-12 Geoff Norton <gnorton@customerdna.com>
17270 - Fix hard loop when timers exist.
17271 - Fix bugs with middle and right click for 3 button mice.
17273 2005-03-11 Peter Bartok <pbartok@novell.com>
17276 - get_WorkingArea: Need to call X directly, GetWindowPos only
17277 returns cached data now
17278 - Added sanity check to GetWindowPos hwnd usage
17280 2005-03-11 Jackson Harper <jackson@ximian.com>
17282 * BindingManagerBase.cs: This method isn't used anymore as
17283 PullData now updates the data in the control.
17285 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
17287 * Form.cs: fixes menu drawing on X11
17288 * MenuAPI.cs: fixes menu drawing on X11
17290 2005-03-11 Peter Bartok <pbartok@novell.com>
17292 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
17293 from Jonathan Gilbert; should fix bug #73606
17294 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
17295 in Screen coordinates. Thanks, Jordi.
17296 * Form.cs: Added missing attribute
17298 2005-03-11 Peter Bartok <pbartok@novell.com>
17301 - Rudimentary Mdi support
17302 - Removed outdated FormParent code
17303 - Implemented lots of missing properties and methods, still missing
17304 transparency support
17305 - Added missing attributes
17306 - Implemented support for MaximumBounds
17307 - Added firing of various events
17308 * XplatUI.cs: Added SetIcon() method
17309 * XplatUIDriver.cs: Added SetIcon() abstract
17310 * XplatUIOSX.cs: Stubbed out SetIcon() method
17312 - Implemented SetIcon() support
17313 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
17314 - Switched to unix line endings
17316 - Made POINT internal so for can access it as part of MINMAX
17317 - Implemented SetIcon() support
17318 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
17319 native Mdi support again, might have to go managed)
17320 * Control.cs: Now fires the StyleChanged event
17321 * MdiClient.cs: Added; still mostly empty
17323 2005-03-10 Peter Bartok <pbartok@novell.com>
17325 * SaveFileDialog.cs: Added emtpy file
17327 2005-03-08 Peter Bartok <pbartok@novell.com>
17329 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
17330 in turn triggers OnCreateContro) when creating a handle for the
17332 * TextControl.cs: Fixed endless loop in certain cases when
17333 replacing the current selection
17335 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
17338 - Honors NewValue changes in Scroll events allowing apps to change it
17339 - Adds First and Last Scroll events
17340 - Fixes Thumb events
17342 2005-03-07 Peter Bartok <pbartok@novell.com>
17344 * Hwnd.cs: Added DefaultClientRectangle property
17345 * XplatUI.cs: Now using the X11 driver Where() method, which provides
17346 more detailed debug information
17348 - Fixed size-change feedback loop, where we would pull an old size
17349 off the queue and mistakenly change our window's size to an
17351 - Now compressing ConfigureNotify events, to reduce looping and
17353 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
17356 2005-03-07 Jackson Harper <jackson@ximian.com>
17358 * Binding.cs: Push data pushes from data -> property. Check if the
17359 property is readonly when attempting to set it.
17361 2005-03-07 Jackson Harper <jackson@ximian.com>
17363 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
17364 instead of IsSubclassOf. Pulling data now sets the value on the
17366 * PropertyManager.cs:
17367 * CurrencyManager.cs: Just need to pull data when updating now,
17368 because PullData will set the value on the control.
17370 2005-03-04 Jackson Harper <jackson@ximian.com>
17372 * Binding.cs: Implement data type parsing and converting on pulled
17373 data. TODO: Are there more ways the data can be converted?
17375 2005-03-04 Jackson Harper <jackson@ximian.com>
17377 * Binding.cs: Support <Property>IsNull checks. Also bind to the
17378 controls Validating method so we can repull the data when the
17379 control loses focus.
17381 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
17384 - Fixes null string format
17387 - Adds enum type checks
17388 - Fixes redrawing and recalc need after changing some properties
17389 - Fixes on focus_item set after the event
17390 - Fixes adding columns after the control has been created
17392 * ThemeWin32Classic.cs:
17393 - Fixes CheckBox focus rectangle
17394 - Fixes ColumnHeader drawing
17397 2005-03-03 Jackson Harper <jackson@ximian.com>
17399 * Binding.cs: Bind to <Property>Changed events so we can detect
17400 when properties are changed and update the data.
17402 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
17405 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
17406 - Fixes ImageList constructor with ImageList container
17407 - Fixes image scaling (wrong parameters at DrawImage)
17409 2005-02-02 Jackson Harper <jackson@ximian.com>
17411 * Binding.cs: Make property searches case-insensitive. Eliminate
17412 some duplicated code.
17414 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
17417 - Handle focus event
17418 - Fix scrollbar events
17419 - Discard highlighted item if remove it
17420 - Fixes SelectedItem with strings
17422 2005-03-01 Peter Bartok <pbartok@novell.com>
17425 - Fixed Visible property, now follows (once again) parent chain
17426 to return false if any control in the chain is visible=false
17427 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
17428 - Fixed several places where is_visible instead of Visible was used
17429 - Implemented FIXME related to focus selection when setting focused
17430 control to be invisible
17432 * XplatUIWin32.cs: Now using proper method to find out if window is
17433 visible. Thanks to Jordi for pointing it out
17435 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
17437 * ComboBox.cs: show/hide scrollbar instead of creating it
17439 2005-02-27 Jackson Harper <jackson@ximian.com>
17441 * CurrencyManager.cs: Add PositionChanged stuff.
17443 2005-02-27 Peter Bartok <pbartok@novell.com>
17445 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
17446 * XplatUIOSX.cs: Added GetMenuOrigin() stub
17447 * XplatUIWin32.cs: Implemented GetMenuOrigin()
17449 - Implemented GetMenuDC()
17450 - Implemented GetMenuOrigin()
17451 - Implemented ReleaseMenuDC()
17452 - Implemented generation of WM_NCPAINT message
17453 - Implemented generation and handling of WM_NCCALCSIZE message
17454 * Form.cs: Added debug helper message for Jordi's menu work
17456 - Modified ClientRect property; added setter, fixed getter to handle
17457 setting of ClientRect
17458 - Added MenuOrigin property
17460 2005-02-26 Peter Bartok <pbartok@novell.com>
17463 - Destroys the caret if a window that's being destroyed contains it
17464 - Ignores expose events coming from the X11 queue for windows that
17465 already are destroyed
17466 - Now uses the proper variable for handling DestroyNotify, before we
17467 marked the wrong window as destroyed
17468 - Improved/added some debug output
17470 2005-02-26 Peter Bartok <pbartok@novell.com>
17472 * X11Keyboard.cs: Fixes to work on 64bit systems
17474 2005-02-26 Peter Bartok <pbartok@novell.com>
17477 - Now calling OnHandleDestroyed from DestroyHandle()
17478 instead of Dispose()
17479 - Removed bogus call to controls.Remove() from DestroyHandle()
17481 2005-02-26 Peter Bartok <pbartok@novell.com>
17483 * Control.cs: Properly destroy child windows when our handle is
17486 2005-02-25 Peter Bartok <pbartok@novell.com>
17489 - Added 'DriverDebug' define to allow tracing XplatUI API calls
17490 - Alphabetized Static Methods and Subclasses
17493 - Added XException class to allow custom handling of X11 exceptions
17494 - Created custom X11 error handler, tied into XException class
17495 - Added support for MONO_XEXCEPTIONS env var to allow the user
17496 to either throw an exception on X errors or continue running
17497 after displaying the error
17498 - Added handling of DestroyNotify message
17499 - Added handler for CreateNotify message (still disabled)
17500 - Improved (tried to at least) Where method to provide file and lineno
17502 - Added XErrorHandler delegate
17503 - Added XRequest enumeration (to suppor translation of errors)
17505 2005-02-25 Jackson Harper <jackson@ximian.com>
17507 * PropertyManager.cs: Implement editing features
17508 * CurrencyManager.cs:
17509 * Binding.cs: First attempt at UpdateIsBinding
17510 * BindingManagerBase.cs: Call UpdateIsBinding before
17511 pushing/pulling data.
17513 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
17515 * MenuAPI.cs: Respect disabled items
17516 * ThemeWin32Classic.cs
17517 - Caches ImageAttributes creation for DrawImageDisabled
17518 - Fixes vertical menu line drawing
17519 - Draws disabled arrows in disable menu items
17521 2005-02-24 Peter Bartok <pbartok@novell.com>
17524 - Added UserData property to allow associating arbitrary objects
17526 - Fixed leak; now removing Hwnd references from static windows array
17528 - Fixed Graphics leak in PaintEventEnd
17529 - Removed usage of HandleData, switched over to Hwnd class
17530 * HandleData.cs: Removed, obsoleted by Hwnd.cs
17532 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
17534 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
17535 * ScrollBar.cs: Fixes bug
17536 * TrackBar.cs: removes death code, clipping, mimize refreshes,
17537 keyboard navigation enhancements
17539 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
17541 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
17542 * GroupBox.cs: Add control styles
17543 * Label.cs: Add control styles
17544 * UpDownBase.cs: Add control styles
17545 * ListBox.cs: Add control styles
17546 * XplatUIWin32.cs: Fixes wrong parameter order
17549 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
17551 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
17553 2005-02-23 Jackson Harper <jackson@ximian.com>
17555 * PropertyManager.cs: Implement property binding. This doesn't
17556 seem to work yet though as (I think) there are some bugs in
17557 System.ComponentModel.PropertyDescriptor.
17558 * BindingContext.cs: Use new PropertyManager constructor.
17560 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
17562 * ProgressBar.cs: use clip region in ProgressBar
17563 * ThemeWin32Classic.cs: use clip region in ProgressBar
17565 2004-02-22 Jackson Harper <jackson@ximian.com>
17567 * BindingsCollection.cs: Remove some debug code.
17569 2005-02-22 Jackson Harper <jackson@ximian.com>
17571 * BindingContext.cs:
17572 * ControlBindingsCollection.cs:
17573 * CurrencyManager.cs:
17575 * BindingManagerBase.cs: Initial implementation
17576 * BindingsCollection.cs: Add an internal contains method that the
17577 BindingManagerBase uses to ensure bindings aren't added twice to
17579 * PropertyManager.cs: Stubbed out.
17581 * ContainerControl.cs: Hook up databinding
17583 2005-02-22 Geoff Norton <gnorton@customerdna.com>
17586 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
17587 Fixed Invalidate/Update chain.
17588 Fixed tons of other minor bugs (this is almost a complete rewrite).
17590 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
17592 * ComboBox.cs: do subcontrol creation when the control is created
17594 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
17596 * Label.cs: fixes image drawing (image and imagelist)
17597 * ThemeWin32Classic.cs: cache brushes
17599 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
17601 * Form.cs: Move menu drawing code to Theme class
17602 * ComboBox.cs: Move ComboBox drawing code to Theme class
17603 * MenuItem.cs: Move menu drawing code to Theme class
17604 * MenuAPI.cs: Move menu drawing code to Theme class
17605 * ThemeWin32Classic.cs: New methods
17606 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
17607 * ListBox.cs: Move Listbox drawing code to Theme class
17608 * Theme.cs: New methods
17610 2005-02-20 Peter Bartok <pbartok@novell.com>
17613 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
17614 only process mnemonics on those)
17615 - Fixed event sequence for key handling; first calling
17616 ProcessKeyEventArgs now
17618 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
17619 for processing non-character keys
17620 - Fixed WM_CHAR to generate proper event sequence before processing
17621 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
17624 2005-02-19 Peter Bartok <pbartok@novell.com>
17626 * UserControl.cs: Added TextChanged event; added attributes
17627 * SizeGrip.cs: Implemented resizing and optional display of grip
17628 * Form.cs: Fixed attribute
17629 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
17630 Changed meaning of ScrollWindow bool argument; instead of the
17631 clear attribute (which will be true usually anyway), it gives the
17632 option of moving child controls as well.
17634 - Changed to match new ScrollWindow argument
17635 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
17636 now handles the implicit parent window a WM puts around us
17637 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
17639 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
17640 * TreeView.cs: Adjusted to new ScrollWindow arguments
17642 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
17644 * Form.cs: Menu integration with non-client area
17645 * MenuItem.cs: Menu integration with non-client area
17646 * MenuAPI.cs: Menu integration with non-client area
17648 2005-02-18 Peter Bartok <pbartok@novell.com>
17650 * MethodInvoker.cs: Added
17651 * MdiLayout.cs: Added
17652 * SendKeys.cs: Started implementation
17653 * ErrorIconAlignment.cs: Added
17655 2005-02-18 Peter Bartok <pbartok@novell.com>
17657 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
17658 * Form.cs: Added handling for Menu-related Non-client messages
17660 2005-02-17 Peter Bartok <pbartok@novell.com>
17662 * UpDownBase.cs: Fixed typo, compilation errors
17663 * DomainUpDown.cs: Fixed attribute value
17665 2005-02-16 Miguel de Icaza <miguel@novell.com>
17667 * UpDownBase.cs: Attach entry events.
17669 Add ForeColor property, Focused, InterceptArrowKeys (interception
17670 does not work yet).
17672 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
17675 - Redraw non client are on Setmenu
17676 - Calc proper menu starting point
17678 2005-02-17 Peter Bartok <pbartok@novell.com>
17680 * Application.cs: Fixed message_filter check
17682 2005-02-17 Peter Bartok <pbartok@novell.com>
17684 * Application.cs: Now calls registered message filters
17685 * DockStyle.cs: Fixed attribute
17686 * Form.cs: Fixed attribute
17687 * Menu.cs: Fixed attribute
17688 * ToolTip.cs: Fixed attribute
17689 * TreeNode.cs: Added missing attributes and arranged in regions
17690 * PropertyGrid.cs: Fixed signatures
17691 * TreeNodeCollection.cs: Added attributes
17692 * Splitter.cs: Added missing attributes; arranged into regions
17693 * TabPage.cs: Added missing attributes; arranged into regions
17694 * TextBoxBase.cs: Added missing attributes
17695 * TextBox.cs: Added missing attributes
17696 * ArrangeDirection.cs: Added missing attributes
17697 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
17698 * ToolBarButton.cs: Fixed attributes
17699 * AnchorStyles.cs: Fixed attribute
17700 * TrackBar.cs: Fixed attributes
17701 * TabControl.cs: Added missing attributes and arranged into regions
17702 * ToolBar.cs: Fixed attribute
17703 * StatusBar.cs: Fixed signature, organized into regions and added
17705 * StatusBarPanel.cs: Fixed attributes
17706 * ContentsResizedEventArgs.cs: Implemented
17707 * ContentsResizedEventHandler.cs: Implemented
17708 * DateBoldEventArgs.cs: Implemented
17709 * DateBoldEventHandler.cs: Implemented
17710 * UpDownEventArgs.cs: Implemented
17711 * UpDownEventHandler.cs: Implemented
17713 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
17715 * Form.cs: first Menu NC refactoring
17716 * MenuAPI.cs: first Menu NC refactoring
17718 2005-02-16 Peter Bartok <pbartok@novell.com>
17720 * ImeMode.cs: Added missing attributes
17721 * Menu.cs: Fixed attribute
17722 * GroupBox.cs: Fixed attribute
17723 * Label.cs: Fixed attribute
17724 * ColorDialog.cs (RunDialog): Removed TODO attribute
17725 * ComboBox.cs: Fixed attributes
17726 * ListControl.cs: Added missing attributes
17727 * PropertyGrid.cs: Fixed attributes
17728 * Control.cs: Fixed attributes
17729 * ListViewItem.cs: Added TypeConverter attribute
17730 * NotifyIcon.cs: Fixed attributes
17731 * ListView.cs: Fixed attributes
17732 * ButtonBase.cs: Fixed attribute
17733 * ImageList.cs: Added missing attributes
17734 * ContainerControl.cs: Fixed signature
17735 * CheckedListBox.cs: Fixed attribute; added missing attributes
17736 * Panel.cs: Fixed attributes
17737 * PropertyTabChangedEventArgs.cs: Added missing attribute
17738 * PropertyValueChangedEventArgs.cs: Added missing attribute
17739 * Binding.cs: Fixed attribute
17740 * ListViewItemConverter: Implemented ListViewSubItemConverter class
17741 * ListBox.cs: Fixed attribute; added missing attributes;
17742 * ScrollableControl.cs: Added missing attributes
17743 * PictureBox.cs: Added missing attributes; implemented missing property
17744 * DateTimePicker.cs: Added missing attributes
17745 * Theme.cs (ToolWindowCaptionHeight): Fixed type
17746 * MonthCalendar.cs: Fixed attributes
17747 * StatusBarPanel.cs: Added missing attributes
17748 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
17750 2005-02-16 Peter Bartok <pbartok@novell.com>
17752 * TextBoxBase.cs: The previous method to enforce height yet remember
17753 the requested high was less than ideal, this is an attempt to do
17755 * Control.cs: Added comment about possible problem
17756 * Copyright: Updated format
17757 * GridItemType.cs: Fixed swapped values
17759 2005-02-15 Jackson Harper <jackson@ximian.com>
17761 * BaseCollection.cs: Use property so we never access an
17762 uninitialized list. Also initialize the list in the property.
17764 2005-02-15 Peter Bartok <pbartok@novell.com>
17766 * GroupBox.cs (ProcessMnemonic): Implemented
17767 * Label.cs (ProcessMnemonic): Implemented
17768 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
17771 2005-02-15 Peter Bartok <pbartok@novell.com>
17773 * RadioButton.cs (ProcessMnemonic): Implemented
17774 * CheckBox.cs (ProcessMnemonic): Implemented
17776 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
17778 - Added internal method to allow calling ProcessMnemonic from other
17780 * ContainerControl.cs:
17781 - Started support for handling validation chain handling
17782 - Implemented ProcessMnemonic support
17783 - Added Select() call to Active, to make sure the active control
17785 * Form.cs: Setting toplevel flag for Forms (this was lost in the
17786 FormParent rewrite)
17787 * ThemeWin32Classic.cs:
17788 - DrawCheckBox(): Fixed stringformat to show hotkeys
17789 - DrawRadioButton(): Fixed stringformat to show hotkeys
17790 * CommonDialog.cs: Removed WndProc override, not needed
17792 2005-02-14 Peter Bartok <pbartok@novell.com>
17794 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
17795 missed those in the rewrite
17797 2005-02-14 Miguel de Icaza <miguel@novell.com>
17799 * NumericUpDown.cs (Increment, ToString): Add.
17800 (DecimalPlaces): implement.
17804 * UpDownBase.cs: Add the designer attributes.
17806 2005-02-13 Peter Bartok <pbartok@novell.com>
17808 * Panel.cs: Removed border_style, now in Control
17809 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
17810 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
17812 2005-02-13 Peter Bartok <pbartok@novell.com>
17814 * MouseButtons.cs: Added missing attributes
17815 * XplatUIStructs.cs: Added enumeration for title styles
17816 * LeftRightAlignment.cs: Added missing attributes
17817 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
17818 it compatible with Graphics.FromHwnd()
17819 * SelectedGridItemChangedEventArgs.cs: Fixed property type
17820 * Keys.cs: Added missing attributes
17821 * SelectionRange.cs: Added missing attributes
17822 * SelectionRangeConverter.cs: Added
17824 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
17825 ReleaseMenuDC methods
17826 - Renamed ReleaseWindow to UngrabWindow
17827 - Added proper startup notice to allow version identification
17829 - Added missing attributes
17830 - Removed FormParent concept
17831 * Label.cs: Removed border_style field, now in Control
17832 * RadioButton.cs: Now properly selects RadioButton when focus is
17834 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
17836 - Added missing attributes
17837 - Added borderstyle handling
17838 - Removed FormParent concept support
17839 - Fixed calls to XplatUI to match changed APIs
17840 - Fixed bug that would case us to use disposed Graphics objects
17841 - Removed unneeded internal methods
17842 - PerformLayout(): Fixed to handle DockStyle.Fill properly
17843 - SelectNextControl(): Fixed to properly check common parents
17844 * TextBoxBase.cs: Removed border_style field (now in Control)
17846 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
17847 fixed calculations for form size
17848 - Added support for localized strings and icons
17849 - Improved form size calculations, added border
17850 * ListView.cs: Removed border_style field (now in Control)
17851 * X11Structs.cs: Moved several structs from X11 driver here
17852 * X11Keyboard.cs: Changed debug message
17853 * Application.cs: Removed FormParent concept support
17855 - Resetting end_modal flag
17856 - Removed FormParent concept support
17857 * NativeWindow.cs: Removed FormParent concept support
17858 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
17859 Client area and Non-Client whole window to allow support for WM_NC
17861 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
17862 prevent using it until it supports Hwnd as per Geoff Norton's request
17863 * ToolBar.cs: Fixed drawing, was not doing proper drawing
17864 * PictureBox.cs: Removed border_style field, now in Control
17865 * XplatUIWin32.cs: Added new driver methods
17867 2005-02-12 Peter Bartok <pbartok@novell.com>
17869 * OpacityConverter.cs: Implemented
17870 * Hwnd.cs: Internal class to support drivers that need to emulate
17871 client area/non-client area window behaviour
17873 2005-02-11 Peter Bartok <pbartok@novell.com>
17875 * KeysConverter.cs: Implemented
17877 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
17879 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
17880 * LinkLabel: Added missing attributes
17881 * MainMenu.cs: fixes ToString
17882 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
17883 * ListBox.cs: fixes event position
17884 * TrackBar.cs: adds missing attributes and events
17886 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
17888 * MenuItem.cs: Use SystemInformation and bug fixes
17889 * MenuAPI.cs: Use SystemInformation and bug fixes
17891 2005-02-09 Jackson Harper <jackson@ximian.com>
17893 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
17894 their keystate otherwise things like VK_MENU get stuck "on".
17896 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
17898 * ListBox.cs: Fixes AddRange bug
17900 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
17903 - Add missing attributes
17904 - Add missing method
17906 * CheckedListBox.cs: Added missing attributes
17907 - Add missing attributes
17908 - Remove extra method
17910 * ComboBox.cs: Added missing attributes
17911 * VScrollBar.cs: Added missing attributes
17912 * ScrollBar.cs: Added missing attributes
17913 * ListBox.cs: Fixes signature, add missing consts
17914 * LinkArea.cs: Added missing attributes
17917 2005-02-08 Peter Bartok <pbartok@novell.com>
17919 * Menu.cs: Added missing attributes
17920 * MainMenu.cs: Added missing attributes
17921 * GroupBox.cs: Added missing attributes
17922 * Label.cs: Added missing attributes
17923 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
17925 - Added Instance and Options properties
17926 - Added missing attributes
17927 * Cursor.cs: Made Serializable
17928 * NotifyIcon: Added missing attributes
17929 * MenuItem.cs: Added missing attributes
17930 * TextBoxBase.cs: Implemented AppendText() and Select() methods
17931 * Panel.cs: Added Missing attributes
17932 * MonthCalendar.cs: Fixed CreateParams
17934 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
17938 - Fixes issues with links
17939 - Adds the class attributes
17941 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
17944 - Fixes button when no items available in dropdown
17945 - Fixes repainting problems
17946 - Adds the class attributes
17948 2005-02-07 Geoff Norton <gnorton@customerdna.com>
17950 * XplatUIOSX.cs: Detect the menu bar and title bar height from
17951 the current theme. Cache these on startup.
17953 2005-02-07 Jackson Harper <jackson@ximian.com>
17955 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
17956 the scrollbar buttons when they are depressed.
17958 2005-02-07 Geoff Norton <gnorton@customerdna.com>
17960 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
17961 Get the display size from the main displayid. We currently dont
17962 support multiple display configurations.
17964 2005-02-07 Geoff Norton <gnorton@customerdna.com>
17966 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
17968 2005-02-07 Miguel de Icaza <miguel@novell.com>
17970 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
17972 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
17974 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
17976 2005-02-04 Jackson Harper <jackson@ximian.com>
17978 * ThemeWin32Classic.cs: Respect the clipping rect when
17979 drawing. Only fill the intersection of clips and rects so there
17980 isn't a lot of large fills.
17981 * ScrollBar.cs: Pass the correct clipping rect to the theme
17982 engine. Remove some debug code.
17984 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
17986 * DateTimePicker.cs:
17987 - Fixed crash on DateTime.Parse, use Constructor instead
17989 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
17993 - Owner draw support (MeasureItem and DrawItem)
17995 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
17998 - Implements FindMergePosition and MergeMenu functions (very poor documented)
17999 - Fixes MenuItems.Add range
18001 - MergeMenu and Clone and CloneMenu functions
18003 2005-02-03 Jackson Harper <jackson@ximian.com>
18005 * ScrollBar.cs: Make abstract
18006 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
18009 2005-02-03 Jackson Harper <jackson@ximian.com>
18011 * ScrollBar.cs: First part of my scrollbar fixups. This removes
18012 all the unneeded refreshes and uses invalidates with properly
18015 2005-02-03 Peter Bartok <pbartok@novell.com>
18017 * ComponentModel.cs: Added
18018 * IDataGridEditingService.cs: Added
18019 * Timer.cs: Added missing attributes
18020 * ToolTip.cs: Added missing attributes
18022 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
18024 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
18026 2005-02-03 Peter Bartok <pbartok@novell.com>
18028 * ListBox.cs: Added missing attributes
18030 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
18033 - Fixes font height after font change
18034 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
18036 2005-02-02 Peter Bartok <pbartok@novell.com>
18038 * HandleData.cs: Introduced static methods to allow class
18039 to be more self-contained and track it's own HandleData objects
18040 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
18041 HandleData to use new static methods
18043 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
18046 - Fixes default size and PreferredHeight
18048 - ObjectCollection.Insert implementation
18054 - ObjectCollection.Insert implementation
18055 - No selection after clean
18058 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
18060 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
18062 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
18065 - Caches ItemHeight calculation for OwnerDrawVariable
18066 - Handles dropdown properly
18067 - Fixes several minor bugs
18069 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
18072 - Fixes 71946 and 71950
18073 - Fixes changing Multicolumn on the fly
18074 - Fixes keyboard navigation on Multicolumn listboxes
18076 2005-01-31 Geoff Norton <gnorton@customerdna.com>
18078 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
18079 crash reporter log.
18081 2005-01-31 Geoff Norton <gnorton@customerdna.com>
18083 * XplatUIOSX.cs: Allow applications to actually exit.
18085 2005-01-31 Geoff Norton <gnorton@customerdna.com>
18087 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
18088 their parent at creation time rather than lazily later. Fixes a major
18089 regression we were experiencing.
18091 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
18093 * ThemeWin32Classic.cs: more date time picker painting fixes
18094 * DateTimePicker.cs: more monthcalendar drop down fixes
18095 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
18097 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
18100 - When moving the thumb going outside the control should stop the moving
18101 - Adds the firing of missing events
18102 - Fixes no button show if Size is not specified
18103 - End / Home keys for keyboard navigation
18105 2005-01-30 Peter Bartok <pbartok@novell.com>
18107 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
18108 sanity check to prevent theoretical loop
18109 * XplatUIWin32.cs (SetVisible): Removed debug output
18110 * XplatUIX11.cs (SystrayChange): Added sanity check
18111 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
18112 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
18113 behaviour, valid until the X11 client window rewrite is done
18114 * TextBox.cs (ctor): Setting proper default foreground and background
18117 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
18119 * Theme: Added DrawDateTimePicker to interface
18120 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
18121 * DateTimePicker.cs: Created (still needs keys and painting code)
18122 * DateTimePickerFormat.cs: added
18123 * MonthCalendar.cs: fixed CreateParams for popup window mode
18125 2005-01-29 Peter Bartok <pbartok@novell.com>
18127 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
18128 this should also the calculations for ligher/darker
18129 * Theme.cs: Fixed defaults for ScrollBar widths/heights
18131 2005-01-29 Peter Bartok <pbartok@novell.com>
18133 * ArrangeDirection.cs: Added
18134 * ArrangeStartingPositon.cs: Added
18135 * SystemInformation.cs: Implemented
18136 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18137 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
18138 used by SystemInformation class
18139 * X11Strucs.cs: Added XSizeHints structure
18141 - Fixed CreateParams to make sure the menu window is always visible
18142 - TrackPopupMenu: Added check to make sure we don't draw the
18145 2005-01-29 Peter Bartok <pbartok@novell.com>
18147 * HandleData.cs: Added method for altering invalid area
18148 * TextBoxBase.cs: Implemented TextLength
18150 2005-01-28 Peter Bartok <pbartok@novell.com>
18152 * XplatUIX11.cs: Improvement over last patch, not sending
18153 the WM_PAINT directly anymore, instead we scroll any pending
18154 exposed areas and let the system pick out the WM_PAINT later
18156 2005-01-28 Peter Bartok <pbartok@novell.com>
18158 * SWF.csproj: Deleted, no longer used. Instead,
18159 Managed.Windows.Forms/SWF.csproj should be used
18160 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
18161 directly, to avoid a potential race condition with the next
18164 2005-01-28 Peter Bartok <pbartok@novell.com>
18166 * XplatUI.cs: Made class internal
18168 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
18170 * CheckedListBox.cs:
18173 - Missing methods and events
18175 2005-01-27 Peter Bartok <pbartok@novell.com>
18177 * Application.cs (Run): Don't use form if we don't have one
18179 2005-01-27 Peter Bartok <pbartok@novell.com>
18181 * TextBoxBase.cs (get_Lines): Fixed index off by one error
18183 2005-01-27 Peter Bartok <pbartok@novell.com>
18185 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
18186 * GridItem.cs: Added; Patch by Jonathan S. Chambers
18187 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
18188 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
18189 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
18190 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
18191 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
18192 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
18193 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
18194 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
18195 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
18196 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
18198 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
18201 - Draw focus on Simple Combobox
18202 - Fixes drawing issues
18205 2005-01-27 Peter Bartok <pbartok@novell.com>
18208 - Place window in default location, instead of hardcoded 0/0
18209 - Send initial LocationChanged event
18211 - UpdateBounds after creation to find out where the WM placed us
18212 - Make sure that if the ParentForm changes location the Form
18214 * XplatUIX11.cs: XGetGeometry will not return the coords relative
18215 to the root, but to whatever the WM placed around us.
18216 Translate to root coordinates before returning toplevel
18218 * XplatUIWin32.cs: Removed debug output
18219 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
18220 flag to GetWindowPos, to allow translation of coordinates on X11
18222 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
18224 * ListBox.cs: connect LostFocus Event
18226 2005-01-27 Peter Bartok <pbartok@novell.com>
18228 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
18229 XplatUIX11.cs: Extended the Systray API
18230 * Form.cs: Removed debug output
18231 * Application.cs: Fixed focus assignment, always need to call
18232 XplatUI.Activate() since Form.Activate() has rules that may
18234 * NotifyIcon.cs: Should be complete now
18235 * ToolTip.cs: Worked around possible timer bug
18237 2005-01-27 Jackson Harper <jackson@ximian.com>
18240 - Only invalidate the effected tabs when the
18241 selected index changes. This reduces drawing and gets rid of some
18243 - Only refresh if the tabs need to be shifted, otherwise only
18244 invalidate the slider button.
18245 - On windows the tabs are not filled to right if the slider is
18248 2005-01-27 Jackson Harper <jackson@ximian.com>
18250 * TabControl.cs: Only refresh on mouseup if we are showing the
18251 slider. Also only invalidate the button whose state has changed.
18253 2005-01-26 Peter Bartok <pbartok@novell.com>
18255 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
18256 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
18257 and SystrayRemove() methods
18258 * XplatUIOSX.cs: Stubbed Systray methods
18260 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
18262 - Fixed broken XChangeProperty calls (marshalling messed up things)
18263 * X11Structs.cs: Added enums and structs required for Size hinting
18264 * NotifyIcon.cs: Added & implemented
18266 2005-01-26 Jackson Harper <jackson@ximian.com>
18268 * TabControl.cs: Space vertically layed out tabs properly.
18270 2005-01-26 Peter Bartok <pbartok@novell.com>
18272 * Form.cs (CreateClientParams): Always set the location to 0,0
18273 since we're a child window.
18275 * Control.cs (SetVisibleCore): Always explicitly setting the location
18276 of a toplevel window, apparently X11 doesn't like to move windows
18277 while they're not mapped.
18279 2005-01-26 Jackson Harper <jackson@ximian.com>
18281 * TabControl.cs: Implement FillToRight size mode with vertically
18284 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
18286 * ControlPaint.cs, ThemeWin32Classic.cs
18287 - Fixes DrawFocusRectangle
18289 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
18292 - MenuBar tracking only starts when item is first clicked
18293 - Fixes menu hidding for multiple subitems
18294 - Unselect item in MenuBar when item Executed
18297 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
18300 - IsInputKey for ListBox
18303 - Shift and Control item selection
18304 - Implement SelectionMode.MultiExtended
18305 - Fixes RightToLeft
18307 - IsInputKey implemented
18308 - Do not generate OnTextChangedEdit on internal txt changes
18310 2005-01-23 Peter Bartok <pbartok@novell.com>
18312 * AccessibleObject.cs: Partially implemented Select()
18313 * MonthCalendar.cs: Added missing attributes and events
18314 * Form.cs: Fixed CreateParams behaviour, now controls derived from
18315 form can properly override CreateParams.
18316 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18317 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
18318 Control performs Invalidate & Update
18319 * NativeWindow (CreateHandle): Added special handling for Form
18320 and Form.FormParent classes to allow overriding of From.CreateParams
18322 - ControlNativeWindow: Renamed 'control' variable to more intuitive
18324 - ControlNativeWindow: Added Owner property
18325 - Removed usage of Refresh() on property changes, changed into
18326 Invalidate(), we need to wait until the queue is processed for
18327 updates, direct calls might cause problems if not all vars for
18328 Paint are initialized
18329 - Added call to UpdateStyles() when creating the window, to set any
18330 styles that CreateWindow might have ignored.
18331 - Added support for Form CreateParent overrides to UpdateStyles()
18332 * MessageBox.cs: Removed no longer needed FormParent override stuff,
18333 CreateParams are now properly overridable
18334 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
18335 CreateParams are now properly overridable
18337 2005-01-23 Miguel de Icaza <miguel@ximian.com>
18339 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
18342 Capture LostFocus and OnTextBoxChanged. The later introduces a
18343 recursive invocation that I have not figured out yet.
18345 Reset the timer when not using (it was accumulating).
18348 (OnTextBoxChanged): Set UserEdit to true here to track whether the
18349 user has made changes that require validation.
18351 Reset changing to avoid loops.
18353 2005-01-22 Miguel de Icaza <miguel@ximian.com>
18355 * NumericUpDown.cs: Display value at startup.
18357 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
18360 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
18361 filled in. Added some basic parsing of text.
18363 Still missing the OnXXX method overrides, and figuring out the
18364 events that must be emitted.
18366 * UpDownBase.cs: Handle UserEdit on the Text property.
18368 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
18371 - Fixes IntegralHeight
18374 2005-01-21 Jackson Harper <jackson@ximian.com>
18376 * TabControl.cs: Set the SelectedIndex property when SelectedTab
18377 is set so that the page visibility is updated and the tabs are
18380 2005-01-21 Jackson Harper <jackson@ximian.com>
18382 * TabControl.cs: Use cliping rectangle for blitting. Give the
18383 theme the clipping rect so we can do clipping while
18384 drawing. Remove some debug code.
18386 2005-01-21 Jackson Harper <jackson@ximian.com>
18388 * TabPage.cs: Add a new method so tab pages can force the tab
18389 control to recalculate the tab page sizes.
18390 * TabControl.cs: UpdateOwner needs to make the tab control recalc
18393 2005-01-20 Jackson Harper <jackson@ximian.com>
18395 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
18397 2005-01-20 Jackson Harper <jackson@ximian.com>
18399 * TreeView.cs: Set the bounds for nodes properly. They were
18400 getting screwed up when checkboxes were not enabled, but images
18403 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
18406 - Owner draw support
18409 2005-01-20 Jackson Harper <jackson@ximian.com>
18411 * XplatUIStructs.cs: More misc keys
18412 * X11Keyboard.cs: Ignore some control keys.
18414 2005-01-20 Jackson Harper <jackson@ximian.com>
18416 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
18417 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
18419 2005-01-19 Peter Bartok <pbartok@novell.com>
18421 * Control.cs: Un-selecting the control when it is loosing focus
18423 2005-01-19 Jackson Harper <jackson@ximian.com>
18425 * TreeView.cs: Hook up to the text controls leave event so we can
18426 end editing when the users clicks outside the text box.
18428 2005-01-19 Jackson Harper <jackson@ximian.com>
18430 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
18431 get set in the conversion array.
18433 2005-01-19 Peter Bartok <pbartok@novell.com>
18435 * Application.cs (ModalRun): Added a call to CreateControl to ensure
18436 focus is properly set
18438 - Added missing attributes
18439 - removed styles, those are already set in the base class
18441 - Added missing attributes
18442 - Added clip window styles
18443 * CheckBox.cs: Added missing attributes
18445 - FormParentWindow.CreateParams: Added required clip styles
18446 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
18447 also filters modifier keys
18449 - Added assignment of Accept and Cancel button to enable Enter
18450 and Esc keys in MessageBox dialogs
18451 - FormParentWindow.CreateParams: Added required clip styles
18452 * RadioButton.cs: Added missing attributes
18453 * TextControl.cs: No longer draws selection if control does not
18456 - Now draws simple rectangle around test area to make it obvious
18457 there's a control. This is a hack until we properly support borders
18458 - A few simple fixes to support selections better, now erases selected
18459 text when typing, and resets selection when using movement keys
18461 2005-01-19 Miguel de Icaza <miguel@ximian.com>
18463 * UpDownBase.cs: Added some new properties.
18465 * DomainUpDown.cs: Implement a lot to get my test working.
18467 2005-01-19 Geoff Norton <gnorton@customerdna.com>
18469 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
18471 2005-01-19 Geoff Norton <gnorton@customerdna.com>
18473 * OSXStructs (WindowAttributes): Fixed csc complaints
18475 2005-01-19 Geoff Norton <gnorton@customerdna.com>
18478 OSXStructs.cs: Initial refactor to move enums and consts into
18479 OSXStructs and use them in the driver for greater readability.
18481 2005-01-19 Geoff Norton <gnorton@customerdna.com>
18483 * XplatUIOSX.cs: Initial support for Standard Cursors.
18484 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
18486 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
18488 * ComboBox.cs: ability to change style when the ctrl is already
18489 created, missing methods and events, bug fixes, signature fixes
18491 2005-01-19 Peter Bartok <pbartok@novell.com>
18493 * Cursors.cs (ctor): Added ctor to fix signature
18495 2005-01-18 Peter Bartok <pbartok@novell.com>
18497 * Button.cs: Implemented DoubleClick event
18499 - Fixed keyboard handling to behave like MS, where the press of
18500 Spacebar is equivalent to a mousedown, and the key release is
18501 equivalent to mouseup. Now a spacebar push will give the same
18502 visual feedback like a mouse click.
18503 - Added missing attributes
18504 - Added ImeModeChanged event
18505 - Added support for generating DoubleClick event for derived classes
18507 - Implemented DoubleClick event
18508 - Added missing attributes
18509 * CommonDialog.cs: Added missing attribute
18510 * ContextMenu.cs: Added missing attributes
18512 - AutoChecked buttons do not allow to be unselected when clicked
18513 (otherwise we might end up with no selected buttons in a group)
18514 - Added missing attributes
18515 - Implemented DoubleClickEvent
18516 * ThreadExceptionDialog.cs: Enabled TextBox code
18518 2005-01-18 Peter Bartok <pbartok@novell.com>
18520 * Form.cs: Removed debug output
18521 * Button.cs: Added support for DoubleClick method
18523 2005-01-18 Peter Bartok <pbartok@novell.com>
18526 - Added method to parent window that allows triggering size
18527 calculations when a menu is added/removed
18528 - set_Menu: Cleaned up mess from early days of Form and Control,
18529 now properly triggers a recalc when a menu is added/removed
18530 - Added case to select form itself as focused form if no child
18532 - Added PerformLayout call when showing dialog, to ensure properly
18535 - Select(): Made internal so Form can access it
18536 - Focus(): Only call Xplat layer if required (avoids loop), and sets
18538 * Application.cs (Run): Removed hack and calls PerformLayout instead
18539 to trigger calculation when Form becomes visible
18541 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
18543 * ComboBox.cs: fixes for ownerdraw
18545 2005-01-18 Peter Bartok <pbartok@novell.com>
18548 - Sentinel is no longer static, each Document gets it's own, this
18549 avoids locking or alternatively overwrite problems when more
18550 than one text control is used simultaneously.
18551 - Switched to use Hilight and HilightText brushes for text selection
18553 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
18555 2005-01-18 Peter Bartok <pbartok@novell.com>
18558 - Hooked up the following events:
18566 o SystemColorsChanged
18567 o ParentFontChanged
18569 - Removed debug output
18570 - Added a call to the current theme's ResetDefaults when a color change
18572 * Form.cs: Now setting the proper ImeMode
18573 * Theme.cs: Defined a method to force recreation of cached resources
18574 and rereading of system defaults (ResetDefaults())
18575 * ThemeWin32Classic.cs: Added ResetDefaults() stub
18577 2005-01-17 Peter Bartok <pbartok@novell.com>
18579 * Control.cs: Added missing attributes
18581 2005-01-17 Jackson Harper <jackson@ximian.com>
18583 * TreeNode.cs: Implement editing. Add missing properties selected
18585 * TreeView.cs: Implement node editing. Also some fixes to use
18586 Invalidate (invalid area) instead of Refresh when selecting.
18588 2005-01-17 Peter Bartok <pbartok@novell.com>
18591 - Implemented InvokeGotFocus() method
18592 - Implemented InvokeLostFocus() method
18593 - Implemented InvokePaint() method
18594 - Implemented InvokePaintBackground() method
18595 - Implemented InvokeClick() method
18596 - Implemented FindForm() method
18597 - Implemented RectangleToClient() method
18598 - Implemented ClientToRectangle() method
18599 - Implemented ResetBackColor() method
18600 - Implemented ResetCursor() method
18601 - Implemented ResetFont() method
18602 - Implemented ResteForeColor() method
18603 - Implemented ResetImeMode() method
18604 - Implemented ResetLeftToRight() method
18605 - Implemented ResetText() method
18606 - Implemented Scale() methods
18607 - Implemented ScaleCore() method
18608 - Implemented Update() method
18609 - Removed unused variables
18610 - Stubbed AccessibilityNotifyClients and
18611 ControlAccessibleObject.NotifyClients() methods (dunno what to do
18613 - Now setting proper default for RightToLeft property
18614 - Fixed bug in SetClientSizeCore that would cause windows to get
18616 - Now sending Click/DoubleClick events
18617 - Now selecting controls when left mouse button is clicked on
18619 * AccessibleEvents.cs: Added
18620 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
18621 * XplatUIOSX.cs: Stubbed UpdateWindow() method
18622 * XplatUIWin32.cs: Implemented UpdateWindow() method
18623 * XplatUIX11.cs: Implemented UpdateWindow() method
18624 * Form.cs: Removed stray semicolon causing CS0162 warning
18625 * ThemeWin32Classic.cs: Fixed unused variable warnings
18626 * ScrollableControl.cs: Now calls base method for ScaleCore
18627 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
18628 style to avoid interference with internal click handler (which is
18629 different than standard Control click handling)
18631 - Now unchecks all sibling radio buttons when control is
18632 selected (Fixes #68756)
18633 - Removed internal tabstop variable, using the one inherited from
18636 2005-01-17 Jackson Harper <jackson@ximian.com>
18638 * NavigateEventArgs.cs: Fix base type.
18639 * LinkLabel.cs: Sig fix
18641 2005-01-17 Jackson Harper <jackson@ximian.com>
18643 * TreeView.cs: Only invalidate the effected nodes bounds when
18646 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
18648 * XplatUIWin32.cs: fixes Win32 marshaling
18649 * XplatUIX11.cs: fixes method signature
18651 2005-01-17 Peter Bartok <pbartok@novell.com>
18653 * XplatUIX11.cs: Clean up resources when we no longer need them
18655 2005-01-17 Peter Bartok <pbartok@novell.com>
18657 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
18658 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
18659 and DestroyCursor() methods.
18660 * Cursor.cs: Partially implemented, now supports standard cursors;
18661 still contains some debug code
18662 * Cursors.cs: Implemented class
18664 - WndProc(): Added handling of WM_SETCURSOR message, setting the
18666 - Implemented Cursor property
18667 - Replaced break; with return; more straightforwar and possibly
18669 - Now properly setting the result for WM_HELP
18670 * X11Structs.cs: Added CursorFontShape enum
18671 * XplatUIStructs.cs:
18672 - Added StdCursor enum (to support DefineStdCursor() method)
18673 - Added HitTest enum (to support sending WM_SETCURSOR message)
18675 - Now sends the WM_SETCURSOR message
18676 - Implemented new cursor methods
18677 * XplatUIOSX.cs: Stubbed new cursor methods
18679 - Implemented new cursor methods
18680 - Added GetSystemMetrics function and associated enumeration
18682 2005-01-15 Peter Bartok <pbartok@novell.com>
18685 - WndProc(): Now handles EnableNotifyMessage
18686 - SelectNextControl(): Fixed bug where if no child or sibling
18687 controls exist we looped endlessly
18689 2005-01-14 Jackson Harper <jackson@ximian.com>
18691 * TreeView.cs: Recalculate the tab pages when a new one is added
18692 so that the proper bounding rects are created.
18694 2005-01-14 Jackson Harper <jackson@ximian.com>
18696 * TreeView.cs: Draw a gray box instead of a grip in the lower
18697 right hand corner when there are both horizontal and vertical
18700 2005-01-14 Jackson Harper <jackson@ximian.com>
18702 * Control.cs: When erasing backgrounds use FromHwnd instead of
18703 FromHdc when there is a NULL wparam. This occurs on the X driver.
18704 * XplatUIX11.cs: Set the wparam to NULL.
18706 2005-01-13 Jackson Harper <jackson@ximian.com>
18708 * PictureBox.cs: Implement missing methods (except ToString, need
18709 to test that on windows) and events. When visibility is changed we
18710 need to redraw the image because the buffers are killed. When size
18711 is changed refresh if the sizemode needs it.
18713 2005-01-13 Peter Bartok <pbartok@novell.com>
18715 * Control.cs (SelectNextControl): Was using wrong method to select
18718 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
18720 * ComboBox.cs: fixes dropstyle
18722 2005-01-13 Peter Bartok <pbartok@novell.com>
18725 - Implemented Select() override
18726 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
18727 - Now sets keyboard focus on startup
18728 * Control.cs (SelectNextControl): Now properly handles directed=true
18730 - WndProc: Now passes tab key on to base if AcceptTabChar=false
18731 - Added (really bad) focus rectangle (mostly for testing)
18732 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
18733 to enforce redraw on focus changes
18734 * ContainerControl.cs:
18735 - Fixed detection of Shift-Tab key presses
18736 - Fixed traversal with arrow keys
18737 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
18738 gonna keep this or if it's complete yet
18740 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
18742 * ComboBox.cs: missing properties, fixes
18744 2005-01-13 Peter Bartok <pbartok@novell.com>
18746 * Panel.cs (ctor): Setting Selectable window style to off
18747 * Splitter.cs (ctor): Setting Selectable window style to off
18748 * GroupBox.cs (ctor): Setting Selectable window style to off
18749 * Label.cs (ctor): Setting Selectable window style to off
18751 2005-01-12 Miguel de Icaza <miguel@ximian.com>
18753 * UpDownBase.cs (InitTimer): If the timer has been already
18754 created, enable it.
18756 Use a TextBox instead of a Label.
18758 2005-01-12 Jackson Harper <jackson@ximian.com>
18760 * TreeView.cs: Refresh the tree after sorting the nodes. Always
18761 draw the connecting node lines (when ShowLines is true).
18762 * TreeNode.cs: The nodes index can now be updated. This is used
18763 when a node collection is sorted.
18764 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
18765 insert or an existing unsorted node collection can be sorted.
18767 2005-01-12 Peter Bartok <pbartok@novell.com>
18769 * ContainerControl.cs: Implemented ProcessDialogKeys()
18771 2005-01-12 Peter Bartok <pbartok@novell.com>
18774 - Implemented SelectNextControl() method
18775 - Several focus related bug fixes
18776 - Fixed Docking calculations to match MS documentation and
18779 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
18781 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
18784 2005-01-12 Peter Bartok <pbartok@novell.com>
18787 - Fixed broken Contains() method
18788 - Implemented GetNextControl() method. Finally. This is the pre-
18789 requisite for focus handling.
18791 2005-01-12 Peter Bartok <pbartok@novell.com>
18793 * OSXStrucs.cs: Added
18795 2005-01-12 Peter Bartok <pbartok@novell.com>
18798 - Removed PeekMessageFlags
18799 - Implemented SetWindowStyle() method
18800 * XplatUIStructs.cs: Added PeekMessageFlags
18801 * X11Structs: Added missing border_width field to XWindowChanges struct
18803 - PeekMessage: Now throws exception if flags which are not yet
18804 supported are passed
18805 - Implemented SetWindowStyle() method
18806 - Fixed SetZOrder to handle AfterHwnd properly
18807 * XplatUI.cs: Added SetWindowStyle() method
18808 * XplatUIDriver.cs: Added SetWindowStyle() abstract
18810 - Implemented UpdateStyles() method
18811 - Implemented UpdateZOrder() method
18812 * XplatUIOSX.cs: Added SetWindowStyle() stub
18814 2005-01-12 Geoff Norton <gnorton@customerdna.com>
18816 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
18820 2005-01-11 Jackson Harper <jackson@ximian.com>
18822 * TreeView.cs: Still need to draw lines to siblings even if out of
18823 the current node is out of the clip.
18825 2005-01-11 Jackson Harper <jackson@ximian.com>
18827 * TreeView.cs: When setting the hbar/vbar/grip position use
18828 SetBounds so that perform layout is only called once. Also suspend
18829 and resume layout so layout is only done once for all controls.
18830 - Removed some debug fluff
18831 * SizeGrip.cs: Call base implmentation in overriding methods.
18832 - When visibility is changed the drawing buffers are killed so we
18835 2005-01-11 Jackson Harper <jackson@ximian.com>
18837 * TreeView.cs: Calculate the open node count while drawing. This
18838 saves us an entire tree traversal for every paint operation. Use
18839 a member var for the open node count so less vars are passed around.
18841 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
18843 * MonthCalendar.cs:
18844 - fixed selection to use mousemove, not mouse polling on timer
18845 * ThemeWin32Classic.cs
18846 - removed redundant unused variable "no_more_content"
18848 2005-01-11 Peter Bartok <pbartok@novell.com>
18850 * XplatUIX11.cs (DoEvents): Needs to return when no more events
18851 are pending, so it now calls PeekMessage instead of GetMessage;
18852 implemented a incomplete version of PeekMessage
18854 2005-01-11 Peter Bartok <pbartok@novell.com>
18856 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
18858 * TextBoxBase.cs: Added sending of TextChanged event
18860 2005-01-10 Jackson Harper <jackson@ximian.com>
18862 * TreeView.cs: Try not to draw outside the clipping rectangle on
18865 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
18867 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
18869 2005-01-10 Jackson Harper <jackson@ximian.com>
18872 - Implement fast scrolling. Now only the newly
18873 exposed nodes are drawn and the old image is moved using the
18874 XplatUI::ScrollWindow method.
18875 - Factor in height of nodes when calculating whether or not the
18876 node is in the clipping rect.
18878 2005-01-10 Jackson Harper <jackson@ximian.com>
18880 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
18882 2005-01-10 Peter Bartok <pbartok@novell.com>
18884 * Application.cs: Added temporary hack to resolve all our resize
18885 required issues on startup. This will get fixed properly at
18886 some point in the future
18888 2005-01-10 Jackson Harper <jackson@ximian.com>
18890 * SizeGrip.cs: New internal class that is used as a sizing
18891 grip control...hence the name.
18893 2005-01-10 Peter Bartok <pbartok@novell.com>
18895 * Control.cs: Implemented proper TabIndex handling, now assigning
18896 a tabindex when a control is added to a container
18897 * GroupBox.cs (ctor): Now sets the Container style bit, required
18898 for Control.GetNextControl()
18900 2005-01-09 Jackson Harper <jackson@ximian.com>
18902 * TextBoxBase.cs: Clear window when scrolling (fixes build).
18904 2005-01-09 Peter Bartok <pbartok@novell.com>
18906 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
18907 XplatUIX11.cs: Added ability to control ScrollWindow expose and
18908 an overload for ScrollWindow to allow only scrolling a rectangle
18910 2005-01-09 Peter Bartok <pbartok@novell.com>
18913 - Implemented SetDesktopBounds method
18914 - Implemented SetDesktopLocation method
18916 2005-01-08 Jackson Harper <jackson@ximian.com>
18918 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
18919 the node count has changed, this removes to VScroll::Refresh calls
18922 2005-01-08 Geoff Norton <gnorton@customerdna.com>
18924 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
18926 2005-01-07 Jackson Harper <jackson@ximian.com>
18928 * TreeNode.cs: Just update the single node when it is
18929 checked. Don't refresh after toggling, the Expand/Collapse already
18931 * TreeView.cs: Respect clipping a little more when drawing. Try
18932 not to redraw things that don't need to be redrawn. Just hide the
18933 scrollbars when they are no longer needed instead of removing
18934 them, so they don't have to be created again and again.
18936 2005-01-07 Geoff Norton <gnorton@customerdna.com>
18938 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
18939 coordinates to window space to place the caret properly, FIXED.
18940 Implement GetWindowState & SetWindowState
18942 2005-01-06 Peter Bartok <pbartok@novell.com>
18945 - Implemented ClientSize property
18946 - Implemented DesktopBounds property
18947 - Implemented DesktopLocation property
18948 - Implemented IsRestrictedWindow property
18949 - Implemented Size property
18950 - Implemented TopLevel property
18951 - Implemented FormWindowState property
18953 - Implemented GetTopLevel() method
18954 - Implemented SetTopLevel() method
18955 * X11Structs.cs (Atom):
18956 - Added AnyPropertyType definition
18957 - Added MapState definiton and updated XWindowAttribute struct
18958 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
18959 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
18960 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
18962 - Implemented GetWindowState() and SetWindowState() methods
18963 - Fixed Win32GetWindowLong return type
18965 - Introduced central function for sending NET_WM messages
18966 - Implemented GetWindowState() and SetWindowState() methods
18967 * TextBoxBase.cs (set_Lines):
18968 - Now uses Foreground color for text added via Text property (Duh!)
18969 - Added code to remember programmatically requested size (fixes
18970 behaviour when Multiline is set after Size)
18971 - Added AutoSize logic
18973 2005-01-06 Jackson Harper <jackson@ximian.com>
18975 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
18977 2005-01-06 Jackson Harper <jackson@ximian.com>
18979 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
18980 set to less then 0.
18982 2005-01-06 Jackson Harper <jackson@ximian.com>
18984 * ScrollableControl.cs: Lazy init the scrollbars.
18986 2005-01-06 Jackson Harper <jackson@ximian.com>
18988 * Theme.cs: Speed up getting pens and solid brushes, by using
18989 their ARGB as a hash instead of tostring and not calling Contains.
18991 2005-01-06 Peter Bartok <pbartok@novell.com>
18994 - Implemented OnActivated and OnDeactivate event trigger
18995 - Implemented Activate() method
18996 - Fixed ShowDialog() to activate the form that was active before
18997 the dialog was shown
18999 - Added global active_window var that tracks the currently active
19001 - Now always grabs Property changes from the root window to always
19002 catch changes on the active window property
19003 - Added code to PropertyNotify handler to send Active/Inactive
19004 messages when state changes. This puts X11 and Win32 en par on
19005 WM_ACTIVATE notifications (except for double notifications when
19006 the user clicks away from our modal window to another one of our
19009 2005-01-05 Jackson Harper <jackson@ximian.com>
19011 * ImageList.cs: Implment ctor
19013 2005-01-05 Geoff Norton <gnorton@customerdna.com>
19015 * XplatUIOSX.cs: Implement Activate/SetTopmost
19017 2005-01-05 Geoff Norton <gnorton@customerdna.com>
19019 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
19021 2005-01-05 Geoff Norton <gnorton@customerdna.com>
19023 * XplatUIOSX.cs: Implement GetActive/SetFocus.
19025 2005-01-05 Peter Bartok <pbartok@novell.com>
19027 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
19028 XplatUIOSX.cs: Added GetActive method to return the currently
19029 active window for the application (or null, if none is active)
19031 - Implemented ActiveForm
19032 - Commented out owner assignment for modal dialogs (causes problems
19033 on Win32, since the owner will be disabled)
19034 - Reworked some Active/Focus handling (still incomplete)
19035 * CommonDialog.cs: Commented out owner assignment for modal dialogs
19036 (causes problems on Win32, since the owner will be disabled)
19037 * IWin32Window: Added ComVisible attribute
19039 2005-01-05 Peter Bartok <pbartok@novell.com>
19041 * ToolTip.cs (WndProc): Enable setting focus now that we have the
19042 required XplatUI functions.
19044 2005-01-05 Peter Bartok <pbartok@novell.com>
19046 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
19047 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
19048 to implement focus and activation handling; still incomplete and
19051 2005-01-04 Peter Bartok <pbartok@novell.com>
19053 * TextBoxBase.cs: Changed access level for Document property to
19054 match switch to internal for TextControl
19056 2005-01-04 Peter Bartok <pbartok@novell.com>
19058 * AccessibleObject: Added ComVisible attribute
19060 2005-01-04 Jackson Harper <jackson@ximian.com>
19062 * X11Keyboard.cs: Remove unneeded var.
19064 2005-01-04 Jackson Harper <jackson@ximian.com>
19066 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
19068 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
19069 ClientMessage. This makes apps exit cleanly (more often).
19071 2005-01-04 Jackson Harper <jackson@ximian.com>
19073 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
19074 handling focus, return correct colors and fonts,
19075 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
19076 handle selection, horizontal scrolling, and mouse interaction.
19078 2005-01-04 Peter Bartok <pbartok@novell.com>
19080 * ICommandExecutor.cs: Added
19081 * IDataGridColumnStyleEditingNotificationService.cs: Added
19082 * IFeatureSupport.cs: Added
19083 * IFileReaderService.cs: Added
19084 * IDataObject.cs: Added ComVisible attribute
19085 * AmbientProperties.cs: Added
19086 * BaseCollection.cs: Added missing attributes
19087 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
19088 * BaseCollection.cs: Added missing attributes
19089 * Binding.cs: Added TypeConverter attribute
19090 * BindingContext.cs: Added DefaultEvent attribute
19091 * BindingsCollection.cs: Added DefaultEvent attribute
19092 * Button.cs: Added DefaultValue attribute
19093 * DragEventArgs.cs: Added ComVisible attribute
19094 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
19095 * KeyEventArgs.cs: Added ComVisible attribute
19096 * KeyPressEventArgs.cs: Added ComVisible attribute
19097 * MouseEventArgs.cs: Added ComVisible attribute
19098 * NavigateEventArgs.cs: Added
19099 * NavigateEventHandler.cs: Added
19100 * FeatureSupport.cs: Added
19101 * OSFeature.cs: Added
19102 * Theme.cs: Added abstract Version property to support OSFeature
19103 * ThemeWin32Classic.cs: Added Version property to
19104 support OSFeature.Themes
19105 * ProgressBar.cs: Removed OnPaintBackground override, not required since
19106 the proper styles to avoid background drawing are set, also doesn't
19108 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
19109 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
19110 * ScrollEventArgs.cs: Added ComVisible attribute
19111 * SplitterEventArgs.cs: Added ComVisible attribute
19112 * AccessibleSelection.cs: Added Flags attribute
19113 * Appearance.cs: Added ComVisible attribute
19114 * Border3DSide.cs: Added ComVisible attribute
19115 * Border3DStyle.cs: Added ComVisible attribute
19116 * BorderStyle.cs: Added ComVisible attribute
19117 * DragAction.cs: Added ComVisible attribute
19118 * ErrorBlinkStyle.cs: Added
19119 * ScrollEventType.cs: Added ComVisible attribute
19120 * AnchorStyles.cs: Added Editor attribute
19121 * DockStyle.cs: Added Editor attribute
19122 * HorizontalAlignment.cs: Added ComVisible attribute
19123 * HelpEventArgs.cs: Added ComVisible attribute
19124 * PaintEventArgs.cs: Added IDisposable
19126 2005-01-04 Peter Bartok <pbartok@novell.com>
19128 * TextControl.cs: Switched Line, LineTag and Document classes to
19131 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
19133 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
19134 Simple mode, fixes, IntegralHeight, etc.
19136 2005-01-04 Peter Bartok <pbartok@novell.com>
19138 * TextBoxBase.cs: Using proper font variable now
19140 2005-01-04 Peter Bartok <pbartok@novell.com>
19142 * Form.cs (ShowDialog): Set parent to owner, if provided
19143 * GroupBox.cs: Removed unused vars
19145 - Added GetHashCode() for Document and LineTag classes
19146 - Removed unused variables
19147 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
19148 to allow translation between continuous char position and line/pos
19149 * CheckBox.cs: Removed vars that are provided by base class
19150 * RadioButton.cs: Removed vars that are provided by base class, added
19151 new keyword where required
19152 * LinkLabel.cs: Added new keyword where required
19153 * Control.cs (WndProc): Removed unused variable
19155 - Finished SelectionLength property
19156 - Implemented SelectionStart property
19157 - Implemented Text property
19158 - Removed unused vars
19159 * MessageBox.cs: Added new keyword where required
19160 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
19162 * MenuAPI.cs: Added new keyword where required
19163 * ButtonBase.cs: Removed vars that are provided by base class, added
19164 new keyword where required
19165 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
19166 argument to double, to allow compiling with csc 2.0 (Atsushi ran
19168 * Application.cs (Run): Now triggers the ThreadExit event
19169 * CommonDialog.cs: Added new keyword where required; now properly sets
19170 parent (owner) for dialog
19171 * XplatUIX11.cs: Commented out unused vars
19172 * StatusBar.cs: Fixed signature for Text property
19173 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
19175 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
19177 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
19178 TrackBar.cs, MonthCalendar.cs: remove unused vars
19180 2005-01-03 Jackson Harper <jackson@ximian.com>
19182 * ThemeWin32Classic.cs:
19183 * X11Keyboard.cs: Remove unused vars.
19185 2005-01-03 Peter Bartok <pbartok@novell.com>
19188 - set_Text: Tied into TextControl
19189 - set_TextAlignment: Tied into TextControl
19191 - Added alignment properties and implemented alignment handling
19192 and drawing (still has a bug, not generating proper expose events)
19193 - Added new Line() constructor to allow passing the line alignment
19194 - Fixed selection setting, properly handling end<start now
19195 - Added aligment considerations to RecalculateDocument()
19197 - Now properly enforces control height for single line controls
19198 - Added support for CharacterCasing
19199 - Added IsInputKey override
19200 - Fixed Keys.Enter logic
19201 - Added SetBoundsCore override
19202 - Fixed mouse selection handling
19204 2005-01-03 Jackson Harper <jackson@ximian.com>
19207 - Collapse and uncheck all nodes when CheckBoxes is disabled.
19208 - Checkboxes are always aligned to the bottom of the node,
19209 regardless of item height.
19210 - Use the node bounds to draw the text so we can center it when
19211 the item height is greater then the font height.
19212 - Node::Bounds are only the text part of the node.
19213 * TreeNode.cs: New method to combine collapsing and unchecking all
19216 2005-01-02 Jackson Harper <jackson@ximian.com>
19218 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
19219 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
19220 tree when a check is changed. TODO: Only refresh the checked node.
19222 2004-12-30 Jackson Harper <jackson@ximian.com>
19224 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
19225 * TreeNode.cs: When collapsing make sure to never collapse the
19228 2004-12-29 Jackson Harper <jackson@ximian.com>
19230 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
19232 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
19234 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
19236 2004-12-28 Peter Bartok <pbartok@novell.com>
19238 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
19241 2004-12-28 Peter Bartok <pbartok@novell.com>
19243 * Control.cs (WndProc): Added WM_HELP handler, now generates
19244 HelpRequested event
19245 * Form.cs: Added HelpButton property and required support code
19246 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
19248 2004-12-28 Peter Bartok <pbartok@novell.com>
19251 - Made DialogForm.owner variable internal
19252 - Added check to ensure owner form is set before setting
19253 owner properties in CreateParams
19255 2004-12-28 Geoff Norton <gnorton@customerdna.com>
19257 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
19258 swizzling. Implement ClientToScreen and ScreenToClient. Implement
19259 GetCursorPos. Fix major visibility issues. Rework the windowing
19260 system to support borderless/titleless windows (implements menus).
19261 Fix GetWindowPos. Implement initial background color support for
19264 2004-12-28 Peter Bartok <pbartok@novell.com>
19266 * Form.cs (get_CreateParams): Make sure we have an owner before using
19267 the owner variable. Implement proper default if no owner exists
19269 2004-12-28 Peter Bartok <pbartok@novell.com>
19271 * In preparation for making Managed.Windows.Forms the default build target
19272 for System.Windows.Forms, the following stubbed files were added.
19273 Dialogs are currently being implemented by contributors and are only
19274 short-term place holders.
19275 * ColorDialog.cs: Initial check-in (minmal stub)
19276 * DataGrid.cs: Initial check-in (minimal stub)
19277 * DataGridLineStyle.cs: Initial check-in (minimal stub)
19278 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
19279 * DataGridTableStyle.cs: Initial check-in (minimal stub)
19280 * FontDialog.cs: Initial check-in (minimal stub)
19281 * FileDialog.cs: Initial check-in (minimal stub)
19282 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
19283 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
19284 * OpenFileDialog: Initial check-in (minimal stub)
19285 * IComponentEditorPageSite.cs: Initial check-in
19286 * Splitter.cs: Initial check-in (for Jackson)
19287 * SplitterEventArgs.cs: Initial check-in (for Jackson)
19288 * SplitterEventHandler.cs: Initial check-in (for Jackson)
19289 * TextBox.cs: Initial check-in; still needs some wiring to
19290 TextControl backend
19291 * Form.cs: Implemented ControlBox property
19292 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
19293 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
19294 * TextControl.cs: Added selection functionality; added todo header
19296 - Implemented Lines property
19297 - Implemented TextHeight property
19298 - Implemented SelectedText property
19299 - Implemented SelectionLength property
19300 - Implemented SelectAll method
19301 - Implemented ToString method
19302 - Removed and cleaned up some debug code
19303 - Implemented (still buggy) mouse text selection
19305 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
19307 * ComboBox.cs: Complete DropDownList implementation, fixes.
19309 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
19311 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
19312 * ComboBoxStyle.cs: ComboBoxStyle enum
19313 * ComboBox.cs: Initial work on ComboBox control
19315 2004-12-21 Peter Bartok <pbartok@novell.com>
19317 * Control.cs (ctor, CreateParams): Moved setting of is_visible
19318 forward so that anything that creates a window gets the default,
19319 also no longer uses Visible property in CreateParams to avoid
19320 walking up the parent chain and possibly get the wrong visible
19321 status. Fixed IsVisible to no longer walk up to the parent.
19323 2004-12-21 Peter Bartok <pbartok@novell.com>
19325 * Form.cs (ShowDialog): Unset modality for the proper window
19327 2004-12-20 Peter Bartok <pbartok@novell.com>
19329 * CommonDialog.cs: Initial check-in
19331 2004-12-20 Peter Bartok <pbartok@novell.com>
19333 * Control.cs (Visible): Now uses the parent window instead of the
19334 client area window for the property
19337 - ShowDialog(): Now uses the proper window for modality
19338 - The default visibility state for the form parent is now false. This
19339 will prevent the user from seeing all the changes to the form and
19340 its controls before the application hits Application.Run()
19341 - Removed some stale commented out code
19344 - Added FindWindow() method to have a method to check for existence
19346 - Added ability to override default exception handling (for example
19347 when debugging with VS.Net; to do this the ExternalExceptionHandler
19349 - Removed some useless debug output
19352 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
19353 not working as expected
19354 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
19355 property to allow switching back to the modal window if focus is
19356 given to another one of our windows (Application Modal)
19357 - Now only sets override_redirect if we create a window
19359 - Moved EventMask selection before mapping of newly created window
19360 so we can catch the map event as well
19361 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
19362 - Added various Atom related DllImports
19363 - Implemented Exit() method
19364 - .ctor() : No longer shows window if WS_VISIBLE is not defined
19365 in the CreateParams
19367 * MessageBox.cs: Now properly deals with the FormParent window by
19368 providing an override the FormParent CreateParams property to
19369 set as POPUP instead of OVERLAPPED window.
19371 2004-12-19 Geoff Norton <gnorton@customerdna.com>
19373 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
19374 Minor code cleanup.
19376 2004-12-19 Geoff Norton <gnorton@customerdna.com>
19378 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
19380 2004-12-18 Peter Bartok <pbartok@novell.com>
19382 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
19383 implementing SetModal() method
19385 2004-12-18 Peter Bartok <pbartok@novell.com>
19387 * X11Structs.cs (XGCValues): Fixed type of function element
19388 * XplatUI.cs: Added ScrollWindow() method
19389 * XplatUIDriver.cs: Added ScrollWindow() abstract
19390 * XplatUIWin32.cs: Implemented ScrollWindow() method
19391 * XplatUIX11.cs: Implemented ScrollWindow() method
19392 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
19394 2004-12-17 Geoff Norton <gnorton@customerdna.com>
19396 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
19397 Some more keyboard support (INCOMPLETE)
19399 2004-12-17 Peter Bartok <pbartok@novell.com>
19402 - Added color attribute to line tags.
19403 - Added color argument to all functions dealing with tags
19404 - Added color argument support to various functions
19405 - Fixed miss-calculation of baseline/shift in certain circumstances
19407 * TextBoxBase.cs: Added new color option to test code
19409 2004-12-17 Jackson Harper <jackson@ximian.com>
19412 * MonthCalendar.cs: Signature fixes
19414 2004-12-17 Geoff Norton <gnorton@customerdna.com>
19416 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
19417 keyboard event moved it. Create a new graphics context for each paint resolves this
19419 2004-12-17 Geoff Norton <gnorton@customerdna.com>
19421 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
19422 Make caret exist and go blink blink. Initial keyboard support.
19423 Fix exception handler, Add Invalidate support. Change way RefreshWindow
19426 2004-12-17 Jackson Harper <jackson@ximian.com>
19428 * XplatUIStructs.cs: Updated set of virtual keycodes.
19429 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
19431 2004-12-17 Jackson Harper <jackson@ximian.com>
19433 * XplatUIX11.cs: Prune old keyboard code.
19435 2004-12-17 Jackson Harper <jackson@ximian.com>
19437 * XplatUIX11.cs: When generating mouse wparams get the modifier
19438 keys from the ModifierKeys property.
19440 2004-12-17 Jackson Harper <jackson@ximian.com>
19442 * X11Keyboard.cs: Send up/down input when generating
19443 messages. Remove some unused vars.
19445 2004-12-17 Jackson Harper <jackson@ximian.com>
19448 * TreeView.cs: get rid of warnings.
19450 2004-12-17 Jackson Harper <jackson@ximian.com>
19452 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
19454 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
19456 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
19457 CheckedListBox.cs: Implementation
19459 2004-12-17 Peter Bartok <pbartok@novell.com>
19461 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
19463 2004-12-16 Peter Bartok <pbartok@novell.com>
19466 - InsertCharAtCaret(): Fixed start pos fixup
19467 - CaretLine_get: No longer derives the line from the tag, the tag
19468 could be stale if lines in the document have been added or deleted
19469 - RebalanceAfterDelete(): Fixed bug in balancing code
19470 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
19471 - Line.Streamline(): Now can also elminate leading empty tags
19472 - DumpTree(): Added a few more tests and prevented exception on
19474 - Added Debug section for Combining lines
19475 - Delete(): Now copies all remaining properties of a line
19478 - Left mousebutton now sets the caret (and middle button still acts
19479 as formatting tester, which must go away soon)
19480 - Added Debug section for Deleting/Combining lines
19481 - Fixed calculations for UpdateView after Combining lines
19483 2004-12-16 Peter Bartok <pbartok@novell.com>
19485 * TextControl.cs: Now properly aligns text on a baseline, using the
19486 new XplatUI.GetFontMetrics() method. Simplified several calculations
19487 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
19490 2004-12-16 Peter Bartok <pbartok@novell.com>
19492 * XplatUI.cs: Added GetFontMetrics() method
19493 * XplatUIDriver.cs: Added GetFontMetrics() abstract
19494 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
19495 into libgdiplus, our private GetFontMetrics function
19496 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
19497 * XplatUIWin32.cs: Implemented GetFontMetrics() method
19499 2004-12-16 Jackson Harper <jackson@ximain.com>
19501 * XplatUIStruct.cs: Add enum for dead keys
19502 * X11Keyboard.cs: Map and unmap dead keys.
19504 2004-12-16 Jackson Harper <jackson@ximian.com>
19506 * X11Keyboard.cs: Detect and use the num lock mask.
19508 2004-12-16 Peter Bartok <pbartok@novell.com>
19510 * Control.cs (CreateGraphics): Added check to make sure the
19511 handle of the window exists before calling Graphics.FromHwnd()
19513 2004-12-16 Peter Bartok <pbartok@novell.com>
19515 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
19516 contains a lot of code that's not supposed to be there for the
19517 real thing, but required for developing/testing the textbox
19520 2004-12-16 Peter Bartok <pbartok@novell.com>
19523 - Fixed Streamline method
19524 - Added FindTag method to Line
19525 - Added DumpTree method for debugging
19526 - Added DecrementLines() method for deleting lines
19527 - Fixed UpdateView to update the cursor to end-of-line on single-line
19529 - Added PositionCaret() method
19530 - Fixed MoveCaret(LineDown) to move into the last line, too
19531 - Added InsertChar overload
19532 - Fixed InsertChar tag offset calculations
19533 - Added DeleteChar() method
19534 - Added Combine() method for folding lines
19535 - Fixed Delete() method, no longer allocates wasted Line object and
19536 now copies all properties when swapping nodes
19537 - Delete() method now updates document line counter
19539 2004-12-15 Jackson Harper <jackson@ximian.com>
19541 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
19542 * X11Keyboard.cs: Expose the currently selected modifier keys
19543 through a property.
19545 2004-12-15 Peter Bartok <pbartok@novell.com>
19547 * TextControl.cs: Initial check-in. Still incomplete
19549 2004-12-15 Jackson Harper <jackson@ximian.com>
19552 * TreeView.cs: Fix build on csc (second time today ;-))
19554 2004-12-15 Jackson Harper <jackson@ximian.com>
19556 * TreeView.cs: Store the treenodes plus/minus box bounds when it
19557 is calculated and use this for click testing.
19558 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
19560 2004-12-15 Jackson Harper <jackson@ximian.com>
19562 * TreeView.cs: Pass the nodes image index to the image list when
19563 drawing that image.
19565 2004-12-15 Jackson Harper <jackson@ximian.com>
19567 * X11Keyboard.cs: Set messages hwnd.
19568 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
19569 post_message calls.
19571 2004-12-15 Jackson Harper <jackson@ximian.com>
19573 * X11Keyboard.cs: Fix to compile with csc.
19575 2004-12-15 Jackson Harper <jackson@ximian.com>
19577 * X11Structs.cs: Add key mask values
19578 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
19579 * X11Keyboard.cs: New file - Extrapolates and interpolates key
19580 down/up foo into WM_CHAR foo
19581 * KeyboardLayouts.cs: Common keyboard layouts
19582 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
19583 post messages into the main queue.
19585 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
19587 * Button.cs: implement ProcessMnemonic
19588 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
19590 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
19591 * ButtonBase.cs: Show HotkeyPrefix (not the &)
19593 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
19595 * MonthCalendar.cs: Implemented click-hold for next/previous month
19598 2004-12-11 Peter Bartok <pbartok@novell.com>
19601 - Added XKeyboardState (moved from XplatUIX11.cs)
19602 - Added XCreateGC related enums and structures
19603 - Added GXFunction for XSetFunction
19605 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
19607 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
19608 CaretVisible() calls
19610 * ToolTip.cs: Added code to prevent stealing focus from app windows
19612 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
19613 DestroyCaret, SetCaretPos and CaretVisible)
19616 - Added implementation for caret functions
19617 - Moved hover variables into a struct, to make it a bit easier
19618 on the eyes and to debug
19619 - Removed XKeyboardState (moved to XplatUIX11.cs)
19620 - Moved Keyboard properties into the properties region
19622 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
19623 call to get a graphics context for our control
19625 * XplatUIOSX.cs: Added empty overrides for the new caret functions
19627 * TreeView.cs: Fixed bug. No matter what color was set it would always
19628 return SystemColors.Window
19630 * XplatUIWin32.cs: Implemented caret overrides
19632 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
19634 * ListBox.cs: fire events, implement missing methods and properties,
19637 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
19639 * MonthCalendar.cs: invalidation bug fixing
19640 * ThemeWin32Classic.cs: paint fixing
19642 2004-12-09 Geoff Norton <gnorton@customerdna.com>
19644 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
19645 prepare the CGContextRef there now.
19647 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
19649 * MonthCalendar.cs:
19650 - optimisationL only invalidate areas that have changed
19651 * ThemeWin32Classic.cs:
19652 - only paint parts that intersect with clip_area
19654 2004-12-09 Peter Bartok <pbartok@novell.com>
19656 * Application.cs: Undid changes from r37004 which cause problems
19659 2004-12-09 Ravindra <rkumar@novell.com>
19661 * ToolBar.cs: Added support for displaying ContextMenu
19662 attached to a button on ToolBar.
19663 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
19666 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
19668 * Label.cs: autosize works in text change and removes unnecessary
19671 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
19673 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
19676 2004-12-08 Geoff Norton <gnorton@customerdna.com>
19678 * XplatUIOSX.cs: Added mouse move/click/grab support
19679 Remove some debugging WriteLines not needed anymore.
19680 Add window resizing/positioning.
19681 Fix visibility on reparenting.
19683 2004-12-08 Peter Bartok <pbartok@novell.com>
19685 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
19687 2004-12-07 Geoff Norton <gnorton@customerdna.com>
19689 * XplatUIOSX.cs: Initial checkin
19690 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
19692 2004-12-03 Ravindra <rkumar@novell.com>
19694 * ListView.cs: Added some keybindings and fixed scrolling.
19695 ScrollBars listen to ValueChanged event instead of Scroll
19696 Event. This would let us take care of all changes being
19697 done in the scrollbars' values programmatically or manually.
19698 * ListView.cs (CanMultiselect): Added a check for shift key.
19699 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
19700 * ListViewItem.cs (Clone): Fixed. We need to make a copy
19701 of ListViewSubItemCollection as well.
19703 2004-12-06 Peter Bartok <pbartok@novell.com>
19705 * Control.cs (Parent): Added check and exception to prevent
19708 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
19710 * ListBox.cs: implemented clipping, selection single and multiple,
19713 2004-12-03 Ravindra <rkumar@novell.com>
19715 * ListView.cs (ListView_KeyDown):
19716 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
19717 when CTRL key is pressed.
19718 * ListViewItem.cs (Selected): Fixed setting the property.
19720 2004-12-03 Marek Safar <marek.safar@seznam.cz>
19722 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
19724 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
19725 MinimizeBox, ShowInTaskbar, TopMost properties.
19727 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
19728 will be implemented).
19730 2004-12-03 Marek Safar <marek.safar@seznam.cz>
19732 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
19734 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
19737 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
19739 * TreeView.cs: BackColor is Colors.Window.
19741 2004-12-01 Jackson Harper <jackson@ximian.com>
19743 * TreeView.cs: When resizing the tree if the user is making it
19744 smaller we don't get expose events, so we need to handle adding
19745 the horizontal scrollbar in the size changed handler as well as
19746 the expose handler.
19748 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
19750 * DrawItemState.cs: fixes wrong enum values
19752 2004-12-01 Jackson Harper <jackson@ximian.com>
19754 * TreeView.cs: Resize the hbar as well as the vbar on resize.
19756 2004-12-01 Jackson Harper <jackson@ximian.com>
19758 * NodeLabelEditEventArgs.cs:
19759 * NodeLabelEditEventHandler.cs:
19760 * OpenTreeNodeEnumerator.cs:
19762 * TreeNodeCollection.cs:
19764 * TreeViewAction.cs:
19765 * TreeViewCancelEventArgs.cs:
19766 * TreeViewCancelEventHandler.cs:
19767 * TreeViewEventArgs.cs:
19768 * TreeViewEventHandler.cs: Initial implementation.
19770 2004-12-01 Ravindra <rkumar@novell.com>
19772 * ListView.cs (CalculateListView): Fixed scrolling related
19773 calculations. Also, removed some debug statements from other
19775 * ListViewItem.cs: Changed access to 'selected' instance variable
19776 from private to internal.
19777 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
19779 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
19781 * ThemeWin32Classic.cs: remove cache of brush and pens for
19782 specific controls and use the global system, fixes scrollbutton
19783 bugs (for small sizes, disabled, etc)
19785 * ScrollBar.cs: does not show the thumb for very small controls
19786 (as MS) and allow smaller buttons that the regular size
19788 2004-12-01 Miguel de Icaza <miguel@ximian.com>
19790 * UpDownBase.cs: Add abstract methods for the interface.
19791 Add new virtual methods (need to be hooked up to TextEntry when it
19793 Add override methods for most features.
19794 Computes the size, forces the height of the text entry.
19796 * NumericUpDown.cs: Put here the current testing code.
19798 * Set eol-style property on all files that do not have mixed line
19799 endings, to minimize the future problems. There are still a few
19800 files with mixed endings, and someone should choose whether they
19801 want to move it or not.
19803 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
19805 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
19808 2004-11-30 Ravindra <rkumar@novell.com>
19810 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
19811 drawing and replaced use of SystemColors by theme colors.
19812 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
19813 * ListView.cs (ListViewItemCollection.Add): Throw exception when
19814 same ListViewItem is being added more than once.
19816 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
19818 * MonthCalendar.cs:
19819 - ControlStyles love to make the control not flicker
19821 2004-11-30 Peter Bartok <pbartok@novell.com>
19823 * CharacterCasing.cs: Added
19825 2004-11-29 Peter Bartok <pbartok@novell.com>
19827 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
19828 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
19829 I am removing these files as they conflict with already completed
19830 work. While it is fantastic to get contributions to MWF, I
19831 respectfully ask that everyone please coordinate their contributions
19832 through mono-winforms-list or #mono-winforms at this time. We're
19833 explicitly avoiding stubbing and don't want controls that don't have
19834 their basic functionality implemented in svn. Please also see
19835 http://www.mono-project.com/contributing/winforms.html
19838 2004-11-29 Marek Safar <marek.safar@seznam.cz>
19840 * Application.cs (ModalRun): Don't hang after exit.
19842 * Theme.cs: New TreeViewDefaultSize property.
19844 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
19845 with less hardcoded SystemColors constant.
19846 Implemented TreeViewDefaultSize.
19848 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
19849 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
19852 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
19854 * MonthCalendar.cs:
19855 - Fix NextMonthDate and PrevMonthDate click moving calendar
19857 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
19859 * MonthCalendar.cs:
19860 - Fix usage of ScrollChange Property when scrolling months
19862 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
19864 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
19865 - Fixes menu destroying
19866 - Support adding and removing items on already created menus
19868 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
19870 * MonthCalendar.cs:
19871 - Re-worked all bolded dates handling to match win32
19872 * ThemeWin32Classic.cs:
19873 - Fixed rendering with bolded dates
19875 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
19877 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
19878 - Horizontal scroolbar
19883 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
19885 * MonthCalendar.cs:
19886 - Fix Usage of MaxSelectionCount from SelectionRange
19887 - Fixed Shift + Cursor Selection
19888 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
19889 - Fixed normal cursor selection to be compat with win32
19890 - Fixed Shift + Mouse Click selection
19892 2004-11-24 Peter Bartok <pbartok@novell.com>
19894 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
19895 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
19897 - CreatedKeyBoardMsg now updates keystate with Alt key
19898 - Added workaround for timer crash to CheckTimers, Jackson will
19899 develop a proper fix and check in later
19900 - Implemented DispatchMessage
19901 - Removed calling the native window proc from GetMessage (call
19902 now moved to DispatchMessage)
19904 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
19905 the keydata (Fixes bug #69831)
19908 - (DispatchMessage): Switched to return IntPtr
19909 - Added DllImport for SetFocus
19911 2004-11-24 Ravindra <rkumar@novell.com>
19913 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
19914 background drawing.
19915 * ListViewItem.cs: Fixed various properties, calculations
19916 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
19917 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
19918 and some internal properties. Fixed MouseDown handler and Paint
19921 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
19923 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
19925 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
19927 * ContainerControl.cs: correct accidental check in of local changes
19929 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
19931 * ThemeWin32Classic.cs:
19932 - Fixed Drawing Last month in grid (sometimes not showing)
19933 * MonthCalendar.cs:
19934 - Fixed title width calculation bug (makeing title small)
19936 2004-11-23 Peter Bartok <pbartok@novell.com>
19939 - Added generation of WM_MOUSEHOVER event
19940 - Added missing assignment of async_method atom
19941 - Fixed WM_ERASEBKGND; now only redraws the exposed area
19943 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
19945 * ThemeWin32Classic.cs:
19946 - Fixed Drawing of today circle when showtodaycircle not set
19947 - fixed drawing of first and last month in the grid (gay dates)
19948 * MonthCalendar.cs:
19949 - Fixed Drawing of today circle
19950 - Fixed drawing of grady dates
19951 - Fixed HitTest for today link when ShowToday set to false
19952 - Fixed DefaultSize to obey ShowToday
19954 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
19956 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
19957 * System.Windows.Forms/Theme.cs
19958 * MonthCalendar.cs: added for MonthCalendar
19959 * SelectionRange.cs: added for MonthCalendar
19960 * Day.cs: added for MonthCalendar: added for MonthCalendar
19961 * DateRangeEventArgs.cs: added for MonthCalendar
19962 * DateRangeEventHandler.cs: added for MonthCalendar
19964 2004-11-22 Ravindra <rkumar@novell.com>
19966 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
19969 2004-11-22 Miguel de Icaza <miguel@ximian.com>
19971 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
19974 * NumericUpDown.cs: Added new implementation.
19975 * UpDownBase.cs: Added new implementation.
19977 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
19980 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
19983 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
19986 2004-11-21 Miguel de Icaza <miguel@ximian.com>
19988 * Timer.cs (Dispose): Should call the base dispose when
19991 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
19993 * ScrollBar.cs: updates thumb position when max, min or increment
19996 2004-11-21 Ravindra <rkumar@novell.com>
19998 * ListView.cs: Implemented item selection, activation and
19999 column header style. Fixed properties to do a redraw, if
20000 required. Added support for MouseHover, DoubleClick, KeyDown
20001 and KeyUp event handling and some minor fixes.
20002 * ListViewItem.cs: Fixed constructor.
20003 * ThemeWin32Classic.cs: Improved drawing for ListView.
20005 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
20007 * ThemeWin32Classic.cs: initial listbox drawing code
20008 * DrawMode.cs: new enumerator
20009 * ListControl.cs: stubbed class
20010 * ListBox.cs: initial implementation
20011 * Theme.cs: new methods definitions
20012 * SelectionMode.cs: new enumerator
20014 2004-11-17 Peter Bartok <pbartok@novell.com>
20016 * XplatUIWin32.cs: Added double-click events to the class style
20017 * Control.cs (WndProc):
20018 - Added handling of click-count to MouseDown/ MouseUp events.
20019 - Added handling of middle and right mouse buttons
20020 - Removed old debug code
20022 2004-11-17 Jackson Harper <jackson@ximian.com>
20024 * XplatUIX11.cs: Use the new Mono.Unix namespace.
20026 2004-11-17 Ravindra <rkumar@novell.com>
20028 * ListView.cs: Added event handling for MouseMove/Up/Down.
20029 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
20030 * ThemeWin32Classic.cs: We need to clear the graphics context and
20031 draw column header in a proper state.
20034 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
20036 * Menu.cs: fixes signature
20038 2004-11-16 Peter Bartok <pbartok@novell.com>
20040 * XplatUIX11.cs (GetMessage): Implemented generation of
20041 double click mouse messages
20043 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
20045 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
20048 2004-11-11 Peter Bartok <pbartok@novell.com>
20050 * HandleData.cs: Added Visible property
20051 * XplatUIX11.cs (IsVisible): Now uses Visible property from
20053 * XplatUIX11.cs: Removed old debug leftovers
20054 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
20055 * Control.cs (WndProc): Removed old debug leftovers,
20056 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
20057 needed WM_SIZE handling
20059 2004-11-11 Jackson Harper <jackson@ximian.com>
20061 * OwnerDrawPropertyBag.cs:
20062 * TreeViewImageIndexConverter.cs: Initial implementation
20064 2004-11-10 Jackson Harper <jackson@ximian.com>
20066 * ThemeWin32Classic.cs:
20067 * TabControl.cs: instead of moving tabs by the slider pos just
20068 start drawing at the tab that is offset by the slider. This way
20069 scrolling always moves by exactly one tab.
20071 2004-11-10 Jackson Harper <jackson@ximian.com>
20073 * TabControl.cs: You can only scroll left when the slider has
20074 already ben moved right.
20076 2004-11-10 Jackson Harper <jackson@ximian.com>
20078 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
20081 2004-11-10 Jackson Harper <jackson@ximian.com>
20083 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
20086 2004-11-09 Jackson Harper <jackson@ximian.com>
20088 * TabControl.cs (CalcXPos): New helper method so we can determine
20089 the proper place to start drawing vertical tabs.
20090 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
20092 2004-11-09 Jackson Harper <jackson@ximian.com>
20094 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
20095 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
20096 and Bottom, left and right are illegal values for this and
20097 multiline is enabled when the alignment is set to left or right.
20098 (DrawTab): Each alignment block should draw the text itself now
20099 because Left requires special love. Also add rendering for Left
20102 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
20104 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
20105 does not destroy the windows, removes debugging messages
20107 2004-11-09 jba <jba-mono@optusnet.com.au>
20109 * ThemeWin32Classic.cs
20110 (DrawButtonBase): Fix verticle text rect clipping in windows
20111 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
20112 rendering and incorrect text rect clipping
20113 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
20114 rendering and incorrect text rect clipping
20116 2004-11-08 Jackson Harper <jackson@ximian.com>
20118 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
20119 bottom when they are bottom aligned so the bottoms of the tabs get
20121 * TabControl.cs (DropRow): Move rows up instead of down when the
20122 tab control is bottom aligned.
20124 2004-11-08 13:59 pbartok
20127 - Added handling for various window styles
20128 - Added handling for popup windows
20129 - Added SetTopmost handling
20131 2004-11-08 13:55 pbartok
20134 - Added argument to SetTopmost method
20135 - Fixed broken ClientToScreen function
20137 2004-11-08 13:53 pbartok
20139 * XplatUIStructs.cs:
20140 - Added missing WS_EX styles
20142 2004-11-08 13:53 pbartok
20144 * XplatUI.cs, XplatUIDriver.cs:
20145 - Added argument to SetTopmost
20147 2004-11-08 13:52 pbartok
20150 - Added XSetWindowAttributes structure
20151 - Improved XWindowAttributes structure
20152 - Added SetWindowValuemask enum
20153 - Added window creation arguments enum
20154 - Added gravity enum
20155 - Added Motif hints structure
20156 - Added various Motif flags and enums
20157 - Added PropertyMode enum for property functions
20159 2004-11-08 13:50 pbartok
20162 - Fixed arguments for updated SetTopmost method
20164 2004-11-08 13:49 pbartok
20167 - Fixed arguments for updated SetTopmost function
20168 - Fixed usage of PointToClient
20170 2004-11-08 13:44 pbartok
20173 - Added Clipping of children and siblings
20175 2004-11-08 13:41 pbartok
20178 - Removed SetMenuBarWindow call. We do this in Form.cs
20180 2004-11-08 13:40 jackson
20182 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
20183 scrolling jimmi in the correct location with bottom aligned tabs
20185 2004-11-08 13:36 pbartok
20187 * ContainerControl.cs:
20188 - Implemented BindingContext
20189 - Implemented ParentForm
20191 2004-11-08 12:46 jackson
20193 * TabControl.cs: Put bottom rendered tabs in the right location
20195 2004-11-08 07:15 jordi
20197 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
20200 2004-11-05 17:30 jackson
20202 * TabControl.cs: When selected tabs are expanded make sure they
20203 don't go beyond the edges of the tab control
20205 2004-11-05 14:57 jackson
20207 * TabControl.cs: Reset show_slider so if the control is resized to
20208 a size where it is no longer needed it's not displayed anymore
20210 2004-11-05 13:16 jackson
20212 * TabControl.cs: Make tab pages non visible when added to the
20215 2004-11-05 12:42 jackson
20217 * TabControl.cs: Implement SizeMode.FillToRight
20219 2004-11-05 12:16 jackson
20221 * Control.cs: Do not call CreateHandle if the handle is already
20224 2004-11-05 11:46 jackson
20226 * TabControl.cs: Remove superflous call to CalcTabRows
20228 2004-11-05 09:07 jackson
20230 * XplatUIX11.cs: Update for Mono.Posix changes
20232 2004-11-05 07:00 ravindra
20234 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
20237 2004-11-04 22:47 jba
20239 * ThemeWin32Classic.cs:
20240 - Fix Button rendering for FlatStyle = Flat or Popup
20241 - Fix RadioButton and CheckBox rendering when Appearance = Button
20242 (normal and flatstyle).
20243 - Correct outer rectangle color when drawing focus rectangle
20244 - Adjust button bounds to be 1 px smaller when focused
20245 - Make button not draw sunken 3d border when pushed (windows compat)
20246 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
20247 - Offset the text in RadioButton and Checkbox when being rendered as
20249 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
20251 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
20252 - Fixed disabled text rendering for normally rendered radiobuttons
20254 2004-11-04 10:26 jackson
20256 * TabControl.cs: Recalculate tab rows when resizing
20258 2004-11-04 07:47 jordi
20260 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
20261 collection completion, drawing issues, missing features
20263 2004-11-04 05:03 ravindra
20266 - We need to recalculate the Thumb area when
20267 LargeChange/maximum/minimum values are changed.
20268 - We set the 'pos' in UpdatePos() method to minimum, if it's less
20269 than minimum. This is required to handle the case if large_change is
20270 more than max, and use LargeChange property instead of large_change
20272 - We return max+1 when large_change is more than max, like MS does.
20274 2004-11-04 04:29 ravindra
20276 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
20277 - Changed default value signatures (prefixed all with ListView).
20278 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
20280 - Fixed calculations for ListViewItem and implemented Clone()
20283 2004-11-04 04:26 ravindra
20285 * Theme.cs, ThemeWin32Classic.cs:
20286 - Changed default ListView values signatures (prefixed all with
20288 - Fixed default size values for VScrollBar and HScrollBar.
20289 - Fixed DrawListViewItem method.
20291 2004-11-04 04:05 ravindra
20293 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
20295 2004-11-04 04:04 ravindra
20297 * ImageList.cs: Implemented the missing overload for Draw method.
20299 2004-11-03 19:29 jackson
20301 * TabControl.cs: Handle dropping rows on selection properly
20303 2004-11-03 11:59 jackson
20305 * TabControl.cs: remove debug code
20307 2004-11-03 11:52 jackson
20309 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
20310 the scrolly widgerywoo
20312 2004-11-02 13:52 jackson
20314 * TabControl.cs: Resize the tab pages and tabs when the tab control
20317 2004-11-02 13:40 jackson
20319 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
20320 selected tab to the bottom
20322 2004-11-02 13:39 jackson
20324 * TabPage.cs: Store the tab pages row
20326 2004-11-02 12:33 jordi
20328 * MenuItem.cs: fixes handle creation
20330 2004-11-02 11:42 jackson
20332 * TabControl.cs: signature fix
20334 2004-11-02 08:56 jackson
20336 * TabControl.cs: Calculate whether the tab is on an edge properly.
20337 Remove top secret debugging code
20339 2004-11-01 19:57 jackson
20341 * TabControl.cs: Add click handling, and proper sizing
20343 2004-11-01 19:47 jackson
20345 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
20348 2004-11-01 19:39 jackson
20350 * TabPage.cs: add internal property to store the bounds of a tab
20353 2004-10-30 04:23 ravindra
20355 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
20358 2004-10-30 04:21 ravindra
20360 * ListView.cs, ListViewItem.cs: Added support for scrolling and
20361 fixed calculations.
20363 2004-10-30 03:06 pbartok
20366 - Removed extension of DllImported libs
20368 2004-10-29 09:55 jordi
20370 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
20371 navigation, itemcollection completion, menu fixes
20373 2004-10-27 22:58 pbartok
20376 - Now throws a nice error message when no X display could be opened
20378 2004-10-26 13:51 jordi
20380 * ListView.cs: removes warning
20382 2004-10-26 03:55 ravindra
20384 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
20385 ThemeWin32Classic.cs: Some formatting for my last checkins.
20387 2004-10-26 03:36 ravindra
20389 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
20390 control and default values.
20392 2004-10-26 03:35 ravindra
20394 * Theme.cs: Added some default values for ListView control.
20396 2004-10-26 03:33 ravindra
20398 * ToolBar.cs: ToolBar should use the user specified button size, if
20399 there is any. Added a size_specified flag for the same.
20401 2004-10-26 03:33 ravindra
20403 * ColumnHeader.cs: Added some internal members and calculations for
20406 2004-10-26 03:32 ravindra
20408 * ListViewItem.cs: Calculations for ListViewItem.
20410 2004-10-26 03:31 ravindra
20412 * ListView.cs: Added some internal members and calculations for
20415 2004-10-22 13:31 jordi
20417 * MenuAPI.cs: speedup menus drawing
20419 2004-10-22 13:16 jackson
20421 * XplatUIX11.cs: Make sure to update exposed regions when adding an
20424 2004-10-22 11:49 jackson
20428 2004-10-22 11:41 jackson
20430 * Control.cs: Check to see if the window should have its background
20431 repainted by X when drawing.
20433 2004-10-22 11:31 jackson
20435 * XplatUIX11.cs: When invalidating areas only use XClearArea if
20436 clear is true, this way we do not get flicker from X repainting the
20439 2004-10-22 11:28 jackson
20441 * XEventQueue.cs: Queue properly
20443 2004-10-21 09:38 jackson
20445 * XEventQueue.cs: Fix access modifier
20447 2004-10-21 09:36 jackson
20449 * XEventQueue.cs: Don't loose messages
20451 2004-10-21 09:22 jackson
20453 * XEventQueue.cs: Don't loose messages
20455 2004-10-20 04:15 jordi
20457 * BootMode.cs: enum need it by SystemInfo
20459 2004-10-19 21:58 pbartok
20462 - Small sanity check
20464 2004-10-19 21:56 pbartok
20467 - Added private FormParentWindow class which acts as the container
20468 for our form and as the non-client area where menus are drawn
20469 - Added/Moved required tie-ins to Jordi's menus
20470 - Fixed/Implemented the FormStartPosition functionality
20472 2004-10-19 21:52 pbartok
20475 - Removed unneeded locals
20476 - Added code to all size and location properties to understand and
20477 deal with the parent container of Form
20479 2004-10-19 21:33 pbartok
20482 - Fixed to deal with new Form subclasses for menus
20484 2004-10-19 17:48 jackson
20486 * XEventQueue.cs: commit correct version of file
20488 2004-10-19 16:50 jackson
20490 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
20492 2004-10-19 16:15 jordi
20494 * MenuAPI.cs: MenuBarCalcSize returns the height
20496 2004-10-19 08:31 pbartok
20499 - Added missing call to PreProcessMessage before calling OnXXXKey
20502 2004-10-19 00:04 ravindra
20504 * ToolTip.cs: Fixed constructor.
20506 2004-10-18 09:31 jordi
20508 * MenuAPI.cs: menuitems in menubars do not have shortcuts
20510 2004-10-18 09:26 jordi
20512 * MenuItem.cs: fixes MenuItem class signature
20514 2004-10-18 08:56 jordi
20516 * MenuAPI.cs: prevents windows from showing in the taskbar
20518 2004-10-18 00:28 ravindra
20520 * ToolTip.cs: Suppressed a warning message.
20522 2004-10-18 00:27 ravindra
20524 * Control.cs: Default value of visible property must be true.
20526 2004-10-17 23:19 pbartok
20529 - Complete implementation
20531 2004-10-17 23:19 pbartok
20534 - Added EnableWindow method
20535 - Added SetModal stub
20536 - Added generation of WM_ACTIVATE message (still needs testing)
20537 - Added SetTopMost stub
20538 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
20540 2004-10-17 23:17 pbartok
20543 - Removed VirtualKeys to XplatUIStructs
20544 - Implemented SetTopMost method
20545 - Implemented EnableWindow method
20546 - Bugfix in ScreenToClient()
20547 - Bugfixes in ClientToScreen()
20549 2004-10-17 22:51 pbartok
20551 * XplatUIStructs.cs:
20552 - Added WS_EX styles to WindowStyles enumeration
20554 2004-10-17 22:50 pbartok
20556 * XplatUI.cs, XplatUIDriver.cs:
20557 - Added method for enabling/disabling windows
20558 - Added method for setting window modality
20559 - Added method for setting topmost window
20561 2004-10-17 22:49 pbartok
20563 * ThemeWin32Classic.cs:
20564 - Added ToolTip drawing code
20566 2004-10-17 22:49 pbartok
20569 - Added ToolTip abstracts
20571 2004-10-17 22:47 pbartok
20574 - Fixed Form.ControlCollection to handle owner relations
20575 - Added Owner/OwnedForms handling
20576 - Implemented Z-Ordering for owned forms
20577 - Removed unneeded private overload of ShowDialog
20578 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
20580 - Fixed Close(), had wrong default
20581 - Added firing of OnLoad event
20582 - Added some commented out debug code for Ownership handling
20584 2004-10-17 22:16 pbartok
20587 - Fixed/implemented flat list of controls
20589 2004-10-17 22:14 pbartok
20592 - Added code to simulate modal dialogs on Win32
20594 2004-10-17 16:11 jordi
20596 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
20599 2004-10-17 13:39 jordi
20601 * MenuAPI.cs: menu drawing fixes
20603 2004-10-15 09:10 ravindra
20605 * StructFormat.cs: General Enum.
20607 2004-10-15 09:09 ravindra
20609 * SizeGripStyle.cs: Enum for Form.
20611 2004-10-15 09:08 ravindra
20613 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
20614 in Theme for ListView.
20616 2004-10-15 09:06 ravindra
20618 * ColumnHeader.cs: Flushing some formatting changes.
20620 2004-10-15 09:05 ravindra
20622 * ListViewItem.cs: Implemented GetBounds method and fixed coding
20625 2004-10-15 09:03 ravindra
20627 * ListView.cs: Implemented Paint method and fixed coding style.
20629 2004-10-15 07:34 jordi
20631 * MenuAPI.cs: fix for X11
20633 2004-10-15 07:32 ravindra
20635 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
20636 - Renamed Paint() method to Draw() for clarity. Also, moved
20637 DrawImage() to OnPaint().
20639 2004-10-15 07:25 ravindra
20641 * CheckBox.cs, RadioButton.cs:
20642 - Removed Redraw (), we get it from ButtonBase.
20643 - Implemented Paint (), to do class specific painting.
20645 2004-10-15 07:16 ravindra
20648 - Redraw () is not virtual now.
20649 - Added an internal virtual method Paint (), so that
20650 derived classes can do their painting on their own.
20651 - Modified OnPaint () to call Paint ().
20653 2004-10-15 06:43 jordi
20655 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
20656 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
20658 2004-10-15 00:30 ravindra
20661 - MessageBox on windows does not have min/max buttons.
20662 This change in CreateParams fixes this on Windows. We
20663 still need to implement this windowstyle behavior in
20666 2004-10-14 05:14 ravindra
20669 - Changed Redraw () to do a Refresh () always.
20670 - Fixed the MouseMove event handling when mouse is pressed,
20671 ie drag event handling.
20672 - Replaced the usage of ToolBarButton.Pressed property to
20673 ToolBarButton.pressed internal variable.
20675 2004-10-14 05:10 ravindra
20677 * ToolBarButton.cs:
20678 - Added an internal member 'inside' to handle mouse move
20679 with mouse pressed ie mouse drag event.
20680 - Changed 'Pressed' property to return true only when
20681 'inside' and 'pressed' are both true.
20682 - Some coding style love.
20684 2004-10-14 00:17 ravindra
20686 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
20689 2004-10-14 00:15 ravindra
20691 * ButtonBase.cs: Redraw () related improvements.
20693 2004-10-14 00:14 ravindra
20695 * MessageBox.cs: Moved InitFormSize () out of Paint method and
20696 removed unnecessary calls to Button.Show () method.
20698 2004-10-13 17:50 pbartok
20702 - Removed destroying of window until we solve the problem of X
20703 destroying the window before us on shutdown
20705 2004-10-13 16:32 pbartok
20708 - Now Redraws on MouseUp for FlatStyle Flat and Popup
20710 2004-10-13 14:18 pbartok
20713 - Added code to destroy the X window
20715 2004-10-13 14:18 pbartok
20718 - Added code to destroy a window
20720 2004-10-13 14:12 pbartok
20723 - Added the Redraw on Resize that got dropped in the last rev
20725 2004-10-13 09:06 pbartok
20727 * ThemeWin32Classic.cs:
20728 - Path from John BouAntoun:
20729 * Fix check rendering (centre correctly for normal style, offset
20730 correctly for FlatStyle).
20731 * Fix border color usage (use backcolor) for FlatStyle.Popup
20732 * Use checkbox.Capture instead of checkbox.is_pressed when
20733 rendering flatstyle states.
20735 2004-10-12 21:48 pbartok
20737 * ThemeWin32Classic.cs:
20738 - Removed all occurences of SystemColors and replaced them with the
20739 matching theme color
20741 2004-10-12 21:41 pbartok
20743 * ThemeWin32Classic.cs:
20744 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
20745 him using the function for flatstyle drawing
20746 - Changed functions to use the new version of CPDrawBorder3D
20748 2004-10-12 21:15 pbartok
20751 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
20752 match MS documentation. They need to return defined colors if the
20753 passed color matches the configured control color. Thanks to John
20754 BouAntoun for pointing this out.
20756 2004-10-12 20:57 pbartok
20759 - Fix from John BouAntoun: Raise ForeColorChanged event when text
20762 2004-10-12 20:46 pbartok
20765 - Fix from John BouAntoun: Now properly sets the Appearance property
20767 2004-10-12 20:45 pbartok
20769 * ThemeWin32Classic.cs:
20770 - Fixes from John BouAntoun: now handles forecolors and backcolors
20771 for flatstyle rendered controls much better; It also fixes normal
20772 checkbox rendering when pushed or disabled.
20774 2004-10-08 02:50 jordi
20776 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
20779 2004-10-07 08:56 jordi
20781 * ThemeWin32Classic.cs: Removes deletion of cached brushes
20783 2004-10-06 03:59 jordi
20785 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
20786 XplatUIWin32.cs: removes warnings from compilation
20788 2004-10-05 12:23 jackson
20790 * RadioButton.cs: Fix ctor
20792 2004-10-05 11:10 pbartok
20795 - Partial implementation by Benjamin Dasnois
20797 2004-10-05 10:15 jackson
20799 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
20802 2004-10-05 03:07 ravindra
20805 - Removed a private method, Draw ().
20806 - Fixed the ButtonDropDown event handling.
20807 - Fixed MouseMove event handling.
20809 2004-10-05 03:04 ravindra
20811 * ThemeWin32Classic.cs:
20812 - Added DrawListView method and ListViewDefaultSize property.
20813 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
20814 - Changed DOS style CRLF to Unix format (dos2unix).
20816 2004-10-05 03:03 ravindra
20819 - Added DrawListView method and ListViewDefaultSize property.
20821 2004-10-05 02:42 ravindra
20823 * ToolBarButton.cs: Added an internal member dd_pressed to handle
20824 clicks on DropDown arrow.
20826 2004-10-04 22:56 jackson
20828 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
20829 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
20830 Control handle the buffers, derived classes should not have to
20831 CreateBuffers themselves.
20833 2004-10-04 21:20 jackson
20835 * StatusBar.cs: The control handles resizing the buffers now.
20837 2004-10-04 21:18 jackson
20839 * Control.cs: When resizing the buffers should be invalidated. This
20840 should be handled in Control not in derived classes.
20842 2004-10-04 14:45 jackson
20846 2004-10-04 02:14 pbartok
20848 * LeftRightAlignment.cs:
20851 2004-10-04 01:09 jordi
20853 * ThemeWin32Classic.cs: fixes right button position causing right
20854 button not showing on horizontal scrollbars
20856 2004-10-02 13:12 pbartok
20859 - Simplified the Invalidate method by using an X call instead of
20860 generating the expose ourselves
20861 - Added an expose when the window background is changed
20862 - Implemented ClientToScreen method
20864 2004-10-02 13:08 pbartok
20867 - Added Win32EnableWindow method (test for implementing modal
20869 - Added ClientToScreen method and imports
20871 2004-10-02 13:07 pbartok
20873 * XplatUI.cs, XplatUIDriver.cs:
20874 - Added ClientToScreen coordinate translation method
20876 2004-10-02 13:06 pbartok
20878 * KeyPressEventArgs.cs:
20879 - Fixed access level for constructor
20881 2004-10-02 13:06 pbartok
20884 - Changed access level for the window_collection hash table
20886 2004-10-02 13:05 pbartok
20889 - Added KeyPreview property
20890 - Added Menu property (still incomplete, pending Jordi's menu work)
20891 - Implemented ProcessCmdKey
20892 - Implemented ProcessDialogKey
20893 - Implemented ProcessKeyPreview
20895 2004-10-02 13:02 pbartok
20898 - Added private method to get the Control object from the window
20900 - Implemented ContextMenu property
20901 - Implemented PointToScreen
20902 - Implemented PreProcessMessage
20903 - Implemented IsInputChar
20904 - Implemented IsInputKey
20905 - Implemented ProcessCmdKey
20906 - Completed ProcessKeyEventArgs
20907 - Fixed message loop to call the proper chain of functions on key
20909 - Implemented ProcessDialogChar
20910 - Implemented ProcessDialogKey
20911 - Implemented ProcessKeyMessage
20912 - Implemented ProcessKeyPreview
20913 - Added RaiseDragEvent stub (MS internal method)
20914 - Added RaiseKeyEvent stub (MS internal method)
20915 - Added RaiseMouseEvent stub (MS Internal method)
20916 - Added RaisePaintEvent stub (MS Internal method)
20917 - Added ResetMouseEventArgs stub (MS Internal method)
20918 - Implemented RtlTranslateAlignment
20919 - Implemented RtlTranslateContent
20920 - Implemented RtlTranslateHorizontal
20921 - Implemented RtlTranslateLeftRight
20922 - Added generation of KeyPress event
20924 2004-10-02 05:57 ravindra
20926 * ListViewItem.cs: Added attributes.
20928 2004-10-02 05:32 ravindra
20930 * ListView.cs: Added attributes.
20932 2004-10-01 11:53 jackson
20934 * Form.cs: Implement the Close method so work on MessageBox can
20937 2004-09-30 14:06 pbartok
20942 2004-09-30 11:34 jackson
20944 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
20946 2004-09-30 07:26 ravindra
20948 * ListViewItemConverter.cs: Converter for ListViewItem.
20950 2004-09-30 07:26 ravindra
20952 * SortOrder.cs: Enum for ListView control.
20954 2004-09-30 07:25 ravindra
20956 * ColumnHeader.cs: Supporting class for ListView control.
20958 2004-09-30 07:24 ravindra
20960 * ListView.cs, ListViewItem.cs: Initial implementation.
20962 2004-09-30 07:20 ravindra
20964 * ItemActivation.cs: Enum for ListView Control.
20966 2004-09-29 20:29 pbartok
20969 - Added lookup of pixel value for background color; tries to get a
20970 color 'close' to the requested color, it avoids having to create a
20971 colormap. Depending on the display this could mean the used color
20972 is slightly off the desired color. Might have to change it to a more
20973 resource intensive colormap approach, but it will work as a
20974 workaround to avoid red screens.
20976 2004-09-29 14:27 jackson
20978 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
20980 2004-09-28 12:44 pbartok
20982 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
20983 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
20984 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
20985 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
20986 TrackBar.cs, VScrollBar.cs:
20987 - Streamlined Theme interfaces:
20988 * Each DrawXXX method for a control now is passed the object for
20989 the control to be drawn in order to allow accessing any state the
20990 theme might require
20992 * ControlPaint methods for the theme now have a CP prefix to avoid
20993 name clashes with the Draw methods for controls
20995 * Every control now retrieves it's DefaultSize from the current
20998 2004-09-28 12:17 jackson
21000 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
21003 2004-09-24 14:57 jackson
21005 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
21006 Gives us a nice little performance boost.
21008 2004-09-24 12:02 jackson
21010 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
21011 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
21012 Control and supporting classes. Initial checkin
21014 2004-09-23 13:08 jackson
21016 * Form.cs: Temp build fixage
21018 2004-09-23 01:39 ravindra
21020 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
21021 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
21022 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
21023 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
21024 EventHandlers needed by ListView Control.
21026 2004-09-22 14:12 pbartok
21028 * ScrollableControl.cs:
21029 - Implemented DockPadding property
21030 - Implemented AutoScroll property
21031 - Implemented AutoScrollMargin property
21032 - Implemented AutoScrollMinSize property
21033 - Implemented AutoScrollPosition property
21034 - Implemented DisplayRectangle property (still incomplete)
21035 - Implemented CreateParams property
21036 - Implemented HScroll property
21037 - Implemented VScroll property
21038 - Implemented OnVisibleChanged property
21040 2004-09-22 14:09 pbartok
21043 - Added Form.ControllCollection class
21044 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
21045 RemoveOwnedForm (still incomplete, missing on-top and common
21046 minimize/maximize behaviour)
21047 - Added StartPosition property (still incomplete, does not use when
21049 - Added ShowDialog() methods (still incomplete, missing forcing the
21052 2004-09-22 14:05 pbartok
21055 - Added message loop for modal dialogs
21057 2004-09-22 14:02 pbartok
21060 - Fixed wrong types for events
21062 2004-09-22 14:00 pbartok
21064 * Shortcut.cs, FormWindowState.cs:
21065 - Fixed wrong values
21067 2004-09-22 12:01 jackson
21069 * Control.cs: Text is never null
21071 2004-09-20 22:14 pbartok
21074 - Fixed accessibility level for Idle handler
21076 2004-09-20 18:54 jackson
21078 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21079 XplatUIX11.cs: New message loop that uses poll so we don't get a
21082 2004-09-17 10:43 pbartok
21085 - Fixed behaviour of arrow buttons. Now properly behaves like
21086 Buttons (and like Microsoft's scrollbar arrow buttons)
21088 2004-09-17 10:14 pbartok
21091 - Added missing release of keyboard/mouse capture
21093 2004-09-17 06:18 jordi
21095 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
21096 Theme.cs: Very early menu support
21098 2004-09-16 17:45 pbartok
21101 - Fixed sending a window to the front
21102 - Added overload for SetWindowPos to avoid casting
21104 2004-09-16 17:44 pbartok
21107 - Added SendToBack and BringToFront methods
21109 2004-09-16 07:00 ravindra
21111 * Copyright: Added Novell URL.
21113 2004-09-16 07:00 ravindra
21115 * ToolBar.cs: Invalidate should be done before redrawing.
21117 2004-09-15 21:19 ravindra
21119 * ColumnHeaderStyle.cs: Enum for ListView Control.
21121 2004-09-15 21:18 ravindra
21123 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
21126 2004-09-13 18:26 jackson
21128 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
21131 2004-09-13 18:13 jackson
21133 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
21134 a second thread and post messages into the main threads message
21135 queue. This makes timing much more consistent. Both win2K and XP
21136 have a minimum timer value of 15 milliseconds, so we now do this
21139 2004-09-13 15:18 pbartok
21141 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21143 - Added Z-Ordering methods
21145 2004-09-13 10:56 pbartok
21148 - Fixed #region names
21149 - Moved properties and methods into their proper #regions
21151 2004-09-13 10:51 pbartok
21154 - Added Accept and CancelButton properties
21155 - Added ProcessDialogKey() method
21157 2004-09-13 08:18 pbartok
21159 * IWindowTarget.cs:
21162 2004-09-10 21:50 pbartok
21165 - Added DoDragDrop() [incomplete]
21166 - Properly implemented 'Visible' handling
21167 - Added SetVisibleCore()
21168 - Implemented FindChildAtPoint()
21169 - Implemented GetContainerControl()
21170 - Implemented Hide()
21172 2004-09-10 19:28 pbartok
21175 - Moved methods into their appropriate #regions
21176 - Reordered methods within regions alphabetically
21178 2004-09-10 18:57 pbartok
21180 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
21181 - Added method to retrieve text from window
21183 2004-09-10 18:56 pbartok
21186 - Moved some internal functions into the internal region
21187 - Implemented FontHeight
21188 - Implemented RenderRightToLeft
21189 - Implemented ResizeRedraw
21190 - Implemented ShowFocusCues
21191 - Implemented ShowKeyboardCues
21192 - Implemented FromChildHandle
21193 - Implemented FromHandle
21194 - Implemented IsMnemonic
21195 - Implemented ReflectMessage
21196 - All public and protected Static Methods are now complete
21198 2004-09-10 16:54 pbartok
21201 - Implemented remaining missing public instance properties
21202 - Alphabetized some out of order properties
21204 2004-09-10 05:51 ravindra
21206 * PictureBox.cs: Added a check for null image.
21208 2004-09-10 00:59 jordi
21210 * GroupBox.cs: remove cvs tag
21212 2004-09-09 05:25 ravindra
21214 * ToolBar.cs: Make redraw accessible from ToolBarButton.
21216 2004-09-09 05:23 ravindra
21218 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
21221 2004-09-09 02:28 pbartok
21223 * ThemeWin32Classic.cs:
21224 - Improve disabled string look
21226 2004-09-09 01:15 jordi
21228 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
21231 2004-09-08 23:56 ravindra
21233 * ItemBoundsPortion.cs: It's enum, not a class!
21235 2004-09-08 23:47 ravindra
21237 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
21240 2004-09-08 21:13 ravindra
21242 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
21245 2004-09-08 21:03 ravindra
21247 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
21250 2004-09-08 21:01 ravindra
21252 * ScrollableControl.cs: Removed unreachable code.
21254 2004-09-08 06:45 jordi
21256 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
21258 2004-09-08 01:00 jackson
21260 * XplatUIX11.cs: Only run the timers when updating the message
21261 queue. This effectively gives X messages a higher priority then
21262 timer messages. Timers still need love though
21264 2004-09-07 14:01 jackson
21266 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
21267 this for us and the handle is no longer valid.
21269 2004-09-07 13:59 jackson
21271 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
21272 loop that manages to not crash. TODO: Add poll and cleanup timers
21274 2004-09-07 11:12 jordi
21276 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
21278 2004-09-07 03:40 jordi
21280 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
21281 fixes, methods, multiple links
21283 2004-09-06 06:55 jordi
21285 * Control.cs: Caches ClientRectangle rectangle value
21287 2004-09-05 02:03 jordi
21289 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
21292 2004-09-04 11:10 jordi
21294 * Label.cs: Refresh when font changed
21296 2004-09-02 16:24 pbartok
21299 - Added sanity check to creation of double buffer bitmap
21301 2004-09-02 16:24 pbartok
21304 - Fixed selection of text color
21305 - Fixed handling of resize event; now properly recreates double
21307 - Added missing assignment of TextAlignment
21308 - Added proper default for TextAlignment
21310 2004-09-02 14:26 pbartok
21313 - Added missing RadioButton.RadioButtonAccessibleObject class
21315 2004-09-02 14:26 pbartok
21318 - Added missing Control.ControlAccessibleObject class
21319 - Started to implement Select()ion mechanisms, still very incomplete
21321 2004-09-02 14:25 pbartok
21323 * AccessibleObject.cs:
21324 - Added missing methods
21326 2004-09-02 14:23 pbartok
21328 * AccessibleNavigation.cs, AccessibleSelection.cs:
21331 2004-09-02 10:32 jordi
21333 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
21334 pool for pens, brushes, and hatchbruses
21336 2004-09-01 15:30 jackson
21338 * StatusBar.cs: Fix typo
21340 2004-09-01 14:44 pbartok
21345 2004-09-01 14:39 pbartok
21347 * Button.cs, RadioButton.cs:
21348 - Functional initial check-in
21350 2004-09-01 14:01 pbartok
21353 - Added missing default
21354 - Added missing region mark
21356 2004-09-01 09:10 jordi
21358 * Label.cs: fixes method signatures, new methods, events, fixes
21361 2004-09-01 07:19 jordi
21363 * Control.cs: Init string variables with an empty object
21365 2004-09-01 04:20 jordi
21367 * Control.cs: fires OnFontChanged event
21369 2004-08-31 20:07 pbartok
21372 - Enabled display of strings
21374 2004-08-31 20:05 pbartok
21377 - Added (partial) implementation of DialogResult; rest needs to be
21378 implemented when the modal loop code is done
21380 2004-08-31 19:55 pbartok
21383 - Fixed to match the removal of the needs_redraw concept
21385 2004-08-31 19:55 pbartok
21388 - Removed the rather odd split between 'needs redraw' and redrawing
21389 - Now handles the events that require regeneration (ambient
21390 properties and size)
21392 2004-08-31 19:41 pbartok
21395 - Added firing of BackColorChanged event
21396 - Added TopLevelControl property
21397 - Fixed handling of WM_ERASEBKGRND message
21399 2004-08-31 12:49 pbartok
21405 2004-08-31 12:48 pbartok
21408 - Finished (famous last words)
21410 2004-08-31 04:35 jordi
21412 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
21413 scrolling bugs, adds new methods
21415 2004-08-30 14:42 pbartok
21418 - Implemented CheckBox drawing code
21420 2004-08-30 14:42 pbartok
21423 - Made Redraw() and CheckRedraw() virtual
21424 - Improved mouse up/down/move logic to properly track buttons
21426 2004-08-30 09:44 pbartok
21429 - Updated to fix broken build. Not complete yet.
21431 2004-08-30 09:28 pbartok
21436 2004-08-30 09:17 pbartok
21441 2004-08-27 16:12 ravindra
21443 * ToolBarButton.cs: Added TypeConverter attribute.
21445 2004-08-27 16:07 ravindra
21447 * ImageIndexConverter.cs: Implemented.
21449 2004-08-27 14:17 pbartok
21452 - Removed unneeded stack vars
21453 - First attempt to fix sizing issues when layout is suspended
21455 2004-08-25 15:35 jordi
21457 * ScrollBar.cs: more fixes to scrollbar
21459 2004-08-25 14:04 ravindra
21461 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
21462 Added the missing divider code and grip for ToolBar Control.
21464 2004-08-25 13:20 pbartok
21467 - Control now properly passes the ambient background color to child
21470 2004-08-25 13:20 jordi
21472 * ScrollBar.cs: small bug fix regarding bar position
21474 2004-08-25 12:33 pbartok
21477 - Now only calls SetTimer or KillTimer if the enabled state has
21480 2004-08-25 12:33 pbartok
21483 - Fixed timer handling, now seems to work
21484 - Improved error message for window creation
21486 2004-08-25 12:32 pbartok
21489 - Fixed generation of MouseUp message
21491 2004-08-25 12:29 jordi
21493 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
21494 and fixes for progressbar
21496 2004-08-24 18:43 ravindra
21498 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
21499 in ToolBar control.
21501 2004-08-24 17:15 pbartok
21505 - Added missing events
21508 2004-08-24 17:14 pbartok
21510 * StatusBar.cs, PictureBox.cs:
21511 - Now uses Control's CreateParams
21513 2004-08-24 16:36 pbartok
21516 - Fixed background color handling
21517 - Fixed sending of enter/leave events on a grab
21519 2004-08-24 16:35 pbartok
21522 - Refined definitions for CrossingEvent
21524 2004-08-24 12:37 jordi
21526 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
21527 formmating, methods signature, and adds missing events
21529 2004-08-24 12:24 jordi
21531 * Control.cs: fire OnEnabledChanged event
21533 2004-08-24 11:17 pbartok
21536 - Implemented SetTimer() and KillTimer()
21538 2004-08-24 11:16 pbartok
21541 - Now uses Remove instead of Add to kill the timer
21543 2004-08-24 10:16 jackson
21545 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
21546 picture boxes in the theme now. Draw picture box borders and obey
21549 2004-08-24 05:49 jackson
21551 * Timer.cs: Remove top secret debugging code
21553 2004-08-24 05:34 jackson
21555 * PictureBox.cs: Temp hack to make picture boxes draw their full
21558 2004-08-24 05:29 jackson
21560 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21561 XplatUIX11.cs: Move timers to the driver level. On X they are
21562 queued by the driver and checked on idle.
21564 2004-08-24 01:07 jackson
21566 * XplatUIX11.cs: Use a queue for async messages instead of passing
21567 them as ClientMessages since that was totally broken. Also simply
21568 check for events and return an idle message if none are found. This
21569 gives us an idle handler, and prevents deadlocking when no messages
21572 2004-08-23 18:19 ravindra
21574 * XplatUIWin32.cs: Removed the unwanted destructor.
21576 2004-08-23 17:27 pbartok
21579 - Finishing touches. Works now, just needs some optimizations.
21581 2004-08-23 16:53 jordi
21583 * ScrollBar.cs: small fix
21585 2004-08-23 16:45 pbartok
21588 - Removed debug output
21591 2004-08-23 16:43 jordi
21593 * ScrollBar.cs: [no log message]
21595 2004-08-23 16:10 pbartok
21598 - Fixed handling of WM_CLOSE message
21599 - Removed debug output
21601 2004-08-23 16:09 pbartok
21604 - Added handling of Idle event
21605 - Added handling of form closing
21606 - Fixed reporting of MessageLoop property
21607 - Removed some unneeded code, should provide a bit of a speedup
21609 2004-08-23 15:22 pbartok
21612 - Added InitLayout() method
21613 - Added code to properly perform layout when Anchor or Dock property
21615 - Changed 'interpretation' of ResumeLayout. MS seems to have a
21616 LAMESPEC, tried to do it in a way that makes sense
21618 2004-08-23 14:10 jordi
21620 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
21621 properties and methods
21623 2004-08-23 13:55 pbartok
21626 - Properly fixed Jordi's last fix
21627 - Now uses Cursor's Position property instead of calling XplatUI
21630 2004-08-23 13:44 jordi
21632 * PaintEventHandler.cs: Adding missing attribute
21634 2004-08-23 13:39 pbartok
21637 - Implemented Position property
21639 2004-08-23 13:39 pbartok
21641 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
21642 - Added method to move mouse cursor
21644 2004-08-23 13:39 pbartok
21647 - Fixed setting of background color
21648 - Added method to move mouse cursor
21650 2004-08-23 13:16 jordi
21652 * Control.cs: avoids null exception
21654 2004-08-22 17:46 jackson
21656 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
21659 2004-08-22 17:40 jackson
21661 * XplatUIX11.cs: Add some missing locks
21663 2004-08-22 15:10 pbartok
21665 * Control.cs, Form.cs:
21666 - Removed OverlappedWindow style from Control, instead it's default
21668 - Made form windows OverlappedWindow by default
21670 2004-08-22 13:34 jackson
21672 * ScrollBar.cs: Update the position through the Value property so
21673 the OnValueChanged event is raised.
21675 2004-08-22 12:04 pbartok
21678 - Added Cursor.cs and UserControl.cs
21680 2004-08-22 12:03 pbartok
21683 - Started implementation, not usable yet
21685 2004-08-22 12:00 pbartok
21688 - Implemented UserControl (complete)
21690 2004-08-21 19:20 ravindra
21692 * ToolBar.cs: Correcting the formatting mess of VS.NET.
21694 2004-08-21 18:49 ravindra
21696 * ToolBar.cs: Probably this completes the missing attributes in
21699 2004-08-21 18:03 ravindra
21701 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
21702 Fixed toolbar control signatures.
21704 2004-08-21 16:32 pbartok
21709 2004-08-21 16:30 pbartok
21714 2004-08-21 16:19 pbartok
21716 * Control.cs, Label.cs:
21719 2004-08-21 15:57 pbartok
21722 - Added loads of debug output for development
21723 - Fixed typo in method name
21725 2004-08-21 15:52 pbartok
21727 * ToolBarButtonClickEventArgs.cs:
21728 - Added missing base class
21730 2004-08-21 14:53 pbartok
21733 - Updated to match new GrabWindow signature
21735 2004-08-21 14:51 pbartok
21737 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21738 - Added method to get default display size
21740 2004-08-21 14:23 pbartok
21742 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21743 - Added method to query current grab state
21744 - Added argument to allow confining a grab to a window
21746 2004-08-21 14:22 pbartok
21749 - Added [Flags] attribute so that modifiers can be used in bitwise
21752 2004-08-21 14:21 pbartok
21754 * TrackBar.cs, ScrollBar.cs:
21755 - Replaced direct XplatUI calls with their Control counterpart
21757 2004-08-21 13:32 pbartok
21760 - Implemented Created property
21762 2004-08-21 13:28 pbartok
21765 - Implemented ContainsFocus
21767 2004-08-21 13:26 pbartok
21770 - Implemented CausesValidation
21772 2004-08-21 13:21 pbartok
21775 - Implemented CanFocus
21776 - Implemented CanSelect
21777 - Implemented Capture
21779 2004-08-21 12:35 pbartok
21782 - Fixed bug with Async message handling
21783 - Implemented getting the ModifierKeys
21785 2004-08-21 12:32 jackson
21787 * AsyncMethodResult.cs: Make sure we have the mutex before we
21788 release it. Fixes BeginInvoke on windows
21790 2004-08-21 11:31 pbartok
21792 * XplatUIWin32.cs, XplatUIX11.cs:
21793 - Drivers now return proper mouse state
21795 2004-08-21 10:54 jackson
21797 * Control.cs: Implement EndInvoke
21799 2004-08-21 10:48 jackson
21801 * Timer.cs: Remove unneeded finalizer
21803 2004-08-20 19:52 ravindra
21805 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
21806 in mouse event handling in the ToolBar control.
21808 2004-08-20 19:50 ravindra
21810 * ImageList.cs: Changed draw method to use the arguments passed in
21813 2004-08-20 18:58 pbartok
21815 * XplatUIStructs.cs:
21816 - Added private message for async communication
21818 2004-08-20 17:38 ravindra
21820 * Control.cs: Made RightToLeft property virtual and removed a
21823 2004-08-20 14:39 jordi
21825 * ThemeGtk.cs: use style_attach
21827 2004-08-20 14:39 pbartok
21830 - Added jackson's Async code from X11 to Win32
21832 2004-08-20 14:09 pbartok
21835 - Added all new files
21837 2004-08-20 14:09 pbartok
21840 - Added call to set window background color
21842 2004-08-20 14:03 pbartok
21844 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
21845 - Added method for setting the window background
21847 2004-08-20 14:02 pbartok
21850 - Added method for setting the background color
21851 - Added handling for erasing the window background
21853 2004-08-20 13:45 jordi
21855 * TrackBar.cs: fixes timer, new properties and methods
21857 2004-08-20 13:34 jackson
21859 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
21862 2004-08-20 13:22 jackson
21864 * Timer.cs: Timer Tick events are now handed through Controls Async
21865 mechanism so the callbacks are executed in the same thread as X
21867 2004-08-20 13:19 jackson
21869 * XplatUIDriver.cs: Expose functionality to send async messages
21872 2004-08-20 13:18 jackson
21874 * Control.cs: Implement Begininvoke
21876 2004-08-20 13:14 jackson
21878 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
21879 messages through the driver
21881 2004-08-20 13:12 jackson
21883 * XplatUIX11.cs: Lock before all X operations. Also added Async
21884 method functionality through XSendEvent
21886 2004-08-20 13:11 jackson
21888 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
21889 This will screw up on 64 bit systems)
21891 2004-08-20 13:10 jackson
21893 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
21894 Async messages through X/Win32
21896 2004-08-19 19:39 pbartok
21899 - Updated code to match new HandleData.DeviceContext type
21901 2004-08-19 19:38 pbartok
21904 - Made DeviceContext a generic object to allow usage from various
21906 - Added support for queueing Windows messages
21908 2004-08-19 19:37 pbartok
21911 - Added generation of MouseEnter, MouseLeave and MouseHover events
21912 - Added cleanup on EndPaint
21914 2004-08-19 19:17 pbartok
21917 - Added handling of WM_MOUSEHOVER
21918 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
21921 2004-08-19 18:55 jordi
21923 * ThemeGtk.cs: fixes button order
21925 2004-08-19 18:12 jordi
21927 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
21929 2004-08-19 17:09 pbartok
21932 - Added Right property
21933 - Added RightToLeft property
21935 2004-08-19 16:27 jordi
21937 * ThemeGtk.cs: experimental GTK theme support
21939 2004-08-19 16:26 jordi
21941 * ITheme.cs, Theme.cs: move themes from an interface to a class
21943 2004-08-19 16:25 jordi
21945 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
21948 2004-08-19 16:04 pbartok
21951 - Added colormap basics
21952 - Added a way to re-initialize with a different display handle
21953 - Fixed setting of the window background color
21954 - Added various X11 imports related to colors and colormaps
21956 2004-08-19 15:51 pbartok
21959 - Removed packing hints (Paolo suggested this a while back)
21960 - fixed colormap type
21961 - Added default Atom types
21962 - Added Screen and color structs and enums
21964 2004-08-19 15:39 pbartok
21967 - Added missing Draw() method
21968 - Added missing RecreateHandle event
21970 2004-08-19 15:30 pbartok
21973 - Added handling of WM_CLOSE
21975 2004-08-18 13:16 jordi
21977 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
21980 2004-08-18 09:56 jordi
21982 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
21984 2004-08-17 15:31 ravindra
21986 * SWF.csproj: Updated project.
21988 2004-08-17 15:25 pbartok
21991 - Drawing improvement; don't call UpdateBounds if we are not visible
21992 (or have been minimized)
21994 2004-08-17 15:24 pbartok
21997 - Finished IsVisible
21998 - Added Win32GetWindowPlacement
22000 2004-08-17 15:08 jackson
22002 * Panel.cs: Initial checkin of the Panel
22004 2004-08-17 14:25 pbartok
22007 - Fixed broken handling of default window sizes
22009 2004-08-17 13:29 jackson
22011 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
22012 has a large startup time.
22014 2004-08-17 10:25 jackson
22016 * HandleData.cs: union areas properly
22018 2004-08-17 10:12 jackson
22020 * HandleData.cs: union areas properly
22022 2004-08-16 20:00 ravindra
22024 * ToolBar.cs, ToolBarButton.cs: Added attributes.
22026 2004-08-16 18:48 ravindra
22028 * ToolBar.cs: Added attributes.
22030 2004-08-16 17:17 ravindra
22032 * SWF.csproj: Updated project.
22034 2004-08-16 17:16 jackson
22036 * XplatUIX11.cs: Check for more expose events before sending a
22037 WM_PAINT so they can all be grouped together. This makes dragging a
22038 window across another window redraw in a sane way.
22040 2004-08-16 15:47 pbartok
22043 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
22044 support OnMouseEnter/Leave()
22045 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
22048 2004-08-16 15:46 pbartok
22050 * XplatUIStructs.cs, XplatUIX11.cs:
22051 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
22052 OnMouseEnter/Leave()
22054 2004-08-16 15:34 jackson
22056 * XplatUIX11.cs: Group multiple expose events in HandleData, make
22057 sure messages get the message field set to WM_NULL if they are not
22060 2004-08-16 15:24 jackson
22062 * HandleData.cs: HandleData is used for storing message information
22065 2004-08-15 17:23 ravindra
22067 * ColorDepth.cs: Added attribute.
22069 2004-08-15 17:23 ravindra
22071 * SWF.csproj: Updated project for ToolBar Control.
22073 2004-08-15 17:20 ravindra
22075 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
22076 control and also dos2unix format.
22078 2004-08-15 17:13 ravindra
22080 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
22081 ToolBarButtonClickEventArgs.cs,
22082 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
22083 ToolBarTextAlign.cs: First Implementation of ToolBar control.
22085 2004-08-15 15:31 pbartok
22088 - First (mostly) working version
22090 2004-08-13 16:15 pbartok
22093 - Fixed Anchor default
22095 2004-08-13 15:43 pbartok
22098 - Changed GetCursorPos signature
22100 2004-08-13 15:42 pbartok
22102 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
22103 - Changed signature for GetCursorPos
22105 2004-08-13 15:25 pbartok
22109 - Fixed resizing/exposure handling
22111 2004-08-13 15:22 jordi
22113 * ThemeWin32Classic.cs: removes redundant code and fixes issues
22116 2004-08-13 14:55 jordi
22118 * TrackBar.cs: change from wndproc to events
22120 2004-08-13 13:00 jordi
22122 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
22123 XplatUIX11.cs: implements PointToClient (ScreenToClient)
22125 2004-08-13 12:53 pbartok
22128 - Changed GetWindowPos to also provide client area size
22129 - Fixed broken prototypes for several win32 functions
22131 2004-08-13 12:53 pbartok
22133 * XplatUI.cs, XplatUIDriver.cs:
22134 - Changed GetWindowPos to also provide client area size
22136 2004-08-13 12:52 pbartok
22139 - Added generation of WM_POSCHANGED
22140 - Changed GetWindowPos to also provide client area size
22142 2004-08-13 12:52 pbartok
22145 - Added Dispose() and destructor
22146 - Fixed resizing and bounds calculation
22148 - Added memory savings for invisible windows
22150 2004-08-13 12:46 jordi
22152 * TrackBar.cs: adds timer and grap window
22154 2004-08-13 10:25 jackson
22156 * Timer.cs: SWF Timer
22158 2004-08-12 16:59 pbartok
22160 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
22161 - Implemented method to get current mouse position
22163 2004-08-12 14:29 jordi
22165 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
22166 enhancement, fix mouse problems, highli thumb, etc
22168 2004-08-12 13:31 pbartok
22171 - Fixed Anchoring bugs
22173 2004-08-12 13:01 jackson
22175 * StatusBar.cs: Don't forget things
22177 2004-08-12 12:54 jackson
22179 * ThemeWin32Classic.cs: Handle owner draw status bars
22181 2004-08-12 12:54 jackson
22183 * StatusBar.cs: Implement missing properties, events, and methods.
22184 Handle mouse clicking
22186 2004-08-12 10:19 jackson
22188 * StatusBarPanelClickEventArgs.cs,
22189 StatusBarPanelClickEventHandler.cs: Classes for handling status
22190 bar panel click events
22192 2004-08-12 10:10 jackson
22194 * Control.cs: Add missing properties
22196 2004-08-12 09:46 pbartok
22198 * BindingsManagerBase.cs:
22199 - Name changed to BindingManagerBase.cs
22201 2004-08-12 09:25 jordi
22203 * ScrollableControl.cs: calls ctrlbase instead of exeception
22205 2004-08-11 16:28 pbartok
22207 * InputLanguageChangingEventArgs.cs:
22208 - Never check in before compiling. Fixes the last check-in
22210 2004-08-11 16:26 pbartok
22212 * InputLanguageChangingEventArgs.cs:
22213 - More signature fixes
22215 2004-08-11 16:20 pbartok
22217 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
22218 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
22219 ImageListStreamer.cs, InputLanguage.cs,
22220 InputLanguageChangedEventArgs.cs,
22221 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
22222 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
22223 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
22224 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
22227 2004-08-11 16:16 pbartok
22231 - Added .Net 1.1 method
22233 2004-08-11 15:25 pbartok
22236 - Fixed BindingManagerBase.cs filename
22238 2004-08-11 15:22 pbartok
22240 * BindingManagerBase.cs:
22241 - Was checked in with wrong filename
22243 2004-08-11 14:50 pbartok
22248 2004-08-11 13:41 jordi
22250 * XplatUIWin32.cs: Fixes ClientRect
22252 2004-08-11 13:19 pbartok
22254 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
22256 - We had SetWindowPos and MoveWindow to set window positions and
22257 size, removed MoveWindow. We have GetWindowPos, so it made sense to
22258 keep SetWindowPos as matching counterpart
22259 - Added some X11 sanity checking
22261 2004-08-11 12:59 pbartok
22264 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
22265 (It seems that SetBounds is just a front for SetBoundsCore and
22266 SetBoundsCore updates the underlying window system and
22267 UpdateBounds is responsible for updating the variables associated
22268 with the Control and sending the events)
22269 - Major cleanup of Size handling; we now have two sizes, client_size
22270 and bounds. Bounds defines the window with decorations, client_size
22273 2004-08-11 12:55 pbartok
22275 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
22276 - Added method to calculate difference between decorated window and
22279 2004-08-11 12:54 pbartok
22282 - Forcing redraw on resize
22284 2004-08-11 11:43 pbartok
22287 - Removed disposing of the actual images when the list is disposed
22289 2004-08-11 09:13 pbartok
22292 - Now properly reparents windows
22294 2004-08-11 08:37 pbartok
22299 2004-08-11 07:47 pbartok
22302 - Rewrote the collection stuff. Might not be as fast now, not
22303 keeping the number of children around and accessible directly, but
22304 it's more straightforward
22306 2004-08-11 07:44 pbartok
22308 * AccessibleObject.cs:
22309 - Fixed to match ControlCollection rewrite
22311 2004-08-11 07:43 pbartok
22314 - Added missing creation of the collection list
22316 2004-08-10 20:08 jackson
22318 * StatusBar.cs: Get the paint message from WndProc
22320 2004-08-10 19:31 jackson
22322 * ThemeWin32Classic.cs: Create Brushes as little as possible
22324 2004-08-10 19:20 jackson
22326 * UICues.cs: Add Flags attribute
22328 2004-08-10 19:19 jackson
22330 * StatusBarPanel.cs: Signature cleanup
22332 2004-08-10 19:10 jackson
22334 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
22335 Initial implementation of status bar item drawing
22337 2004-08-10 17:27 jordi
22339 * TrackBar.cs: add missing methods, properties, and restructure to
22342 2004-08-10 16:24 jackson
22344 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
22345 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
22348 2004-08-10 13:21 jordi
22350 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
22351 enhancements and standarize on win colors defaults
22353 2004-08-10 12:52 jackson
22355 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
22356 ThemeWin32Classic.cs: Implement DrawItem functionality
22358 2004-08-10 12:47 jordi
22360 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
22362 2004-08-10 12:32 jordi
22364 * Control.cs: throw ontextchange event
22366 2004-08-10 11:43 pbartok
22369 - Added more to the still unfinished Dock/Anchor layout code
22371 2004-08-10 11:39 pbartok
22373 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
22374 - Added GetWindowPos method
22376 2004-08-10 11:36 pbartok
22379 - Implemented several methods
22381 2004-08-10 09:47 jackson
22383 * TrackBar.cs: Allow control to handle buffering
22385 2004-08-10 09:41 jackson
22387 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
22389 2004-08-10 09:24 jackson
22391 * Label.cs, LinkLabel.cs: Let Control handle buffering.
22393 2004-08-10 09:09 jackson
22395 * StatusBar.cs: Let Control handle all the buffering.
22397 2004-08-10 09:08 jackson
22399 * Control.cs: Control will now handle the buffering code, so each
22400 control does not have to implement this.
22402 2004-08-10 08:34 jackson
22404 * XplatUIDriver.cs: Use default colors from the theme
22406 2004-08-09 17:12 pbartok
22409 - Fixed several bugs Ravindra pointed out
22411 2004-08-09 16:11 pbartok
22414 - Added incomplete dock layout code
22415 - Added support for mouse wheel
22417 2004-08-09 16:09 pbartok
22420 - Added handling for middle and right mousebutton
22421 - Added handling for mouse wheel
22422 - Added handling for key state and mouse state and position
22423 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
22426 2004-08-09 15:40 jackson
22428 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
22429 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
22432 2004-08-09 15:37 jackson
22434 * StatusBar.cs: Initial implementation of StatusBar
22436 2004-08-09 15:36 jackson
22438 * ITheme.cs: Add support for drawing status bar and getting status
22441 2004-08-09 15:35 pbartok
22446 2004-08-09 15:34 jackson
22448 * ThemeWin32Classic.cs: Add support for drawing status bar and get
22449 status bar item sizes
22451 2004-08-09 15:21 jackson
22453 * ThemeWin32Classic.cs: Use known colors for default control
22456 2004-08-09 15:12 jackson
22458 * ThemeWin32Classic.cs: Make the default font static, it is static
22459 in control so this doesn't change functionality and creating fonts
22462 2004-08-09 14:56 pbartok
22465 - Added GrabMode enum
22467 2004-08-09 14:55 pbartok
22469 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
22470 - Removed Run method, was only required for initial development
22472 2004-08-09 14:51 pbartok
22474 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
22475 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
22478 2004-08-09 13:48 pbartok
22481 - Fixed default sizing for child windows
22483 2004-08-09 12:56 pbartok
22486 - Added generation of WM_DESTROY message
22487 - Added handling of window manager induced shutdown
22489 2004-08-09 11:31 jackson
22491 * ThemeWin32Classic.cs: New names for control properties
22493 2004-08-09 11:25 jackson
22495 * Control.cs: Use new color names
22497 2004-08-09 11:02 jackson
22499 * XplatUI.cs: Get default window properties from the theme
22501 2004-08-09 11:01 jackson
22503 * ITheme.cs: The theme engine now controls default window
22506 2004-08-09 11:00 jackson
22508 * ThemeWin32Classic.cs: Add default window color properties
22510 2004-08-09 10:17 jackson
22512 * ThemeWin32Classic.cs: Use correct default back color
22514 2004-08-09 10:05 jackson
22516 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
22519 2004-08-09 09:56 jackson
22521 * XplatUI.cs: Remove defaults, these are handled by the theme now.
22523 2004-08-09 09:54 jackson
22525 * Control.cs: Get default properties from the theme.
22527 2004-08-09 09:53 jackson
22529 * ITheme.cs: Themes now handle default control properties
22531 2004-08-09 09:53 jackson
22533 * ThemeWin32Classic.cs: Themes now handle default control
22534 properties so coloring will be consistent
22536 2004-08-08 16:54 jordi
22538 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
22540 2004-08-08 15:08 jordi
22542 * XplatUIX11.cs: fixes keyboard crash
22544 2004-08-08 13:47 jordi
22546 * Label.cs: add cvs header info
22548 2004-08-08 12:09 jackson
22550 * ThemeWin32Classic.cs: Add pen_buttonface
22552 2004-08-08 11:52 jordi
22554 * Label.cs, LinkLabel.cs: [no log message]
22556 2004-08-08 11:34 jordi
22558 * ThemeWin32Classic.cs: Use Windows Standard Colours
22560 2004-08-07 17:32 jordi
22562 * TrackBar.cs: throw exceptions of invalid enums values
22564 2004-08-07 17:31 jordi
22566 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
22569 2004-08-07 16:56 jackson
22571 * HorizontalAlignment.cs: Initial checkin
22573 2004-08-07 13:16 jordi
22575 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
22578 2004-08-07 13:05 jordi
22580 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
22581 GetSysColor defines
22583 2004-08-06 18:01 pbartok
22585 * ThemeWin32Classic.cs:
22586 - Fixed some rounding issues with float/int
22588 2004-08-06 18:00 jackson
22590 * DockStyle.cs, AnchorStyles.cs:
22592 Add flags and serializable attributes.
22594 2004-08-06 17:46 pbartok
22597 - Implemented GetParent
22599 2004-08-06 17:18 pbartok
22602 - Fixed some rounding issues with float/int
22604 2004-08-06 17:17 pbartok
22606 * X11Structs.cs, XplatUIX11.cs:
22607 - Fixed Refresh and Invalidate
22609 2004-08-06 15:30 pbartok
22611 * Control.cs, X11Structs.cs, XplatUIX11.cs:
22612 - Fixed recursive loop when resizing
22613 - Improved/fixed redrawing on expose messages
22615 2004-08-06 09:53 jordi
22617 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
22618 keyboard navigation
22620 2004-08-06 08:02 pbartok
22622 * X11Structs.cs, XplatUIX11.cs:
22623 - Fixed reparenting
22624 - Fixed window border creation
22626 2004-08-05 15:38 pbartok
22629 - Attempted fix for reparenting problems
22631 2004-08-04 15:14 pbartok
22634 - Fixed Invalidation bug (calculated wrong client area)
22635 - Added ClientSize setter
22637 2004-08-04 15:13 pbartok
22640 - Added AutoScale properties
22642 2004-08-04 15:13 pbartok
22645 - Added latest files
22647 2004-08-04 14:11 pbartok
22649 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
22651 - Added Invalidate handling
22653 2004-08-03 17:09 jordi
22655 * XplatUIDriver.cs: fixes spelling mistake
22657 2004-07-27 09:53 jordi
22659 * TrackBar.cs: fixes trackbar events, def classname, methods
22662 2004-07-27 09:29 jordi
22664 * ScrollBar.cs: fixes scrollbar events
22666 2004-07-27 04:38 jordi
22668 * Control.cs: changes to be able to run winforms samples
22670 2004-07-26 11:42 jordi
22672 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
22673 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
22675 2004-07-26 05:41 jordi
22677 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
22678 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
22681 2004-07-22 09:22 jordi
22683 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
22684 check link overlapping, implement events, and fixes
22686 2004-07-21 10:28 jordi
22688 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
22690 2004-07-21 10:19 jordi
22692 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
22693 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
22694 LinkLabelLinkClickedEventArgs.cs,
22695 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
22696 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
22699 2004-07-19 13:09 jordi
22701 * Control.cs, Label.cs: label control re-written: added missing
22702 functionlity, events, and properties
22704 2004-07-19 10:49 jordi
22706 * Control.cs: fixes SetBounds logic
22708 2004-07-19 01:29 jordi
22710 * Control.cs: Call RefreshWindow only if the window has created
22712 2004-07-15 14:05 pbartok
22714 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
22715 - Implemented ImageList and ImageList.ImageCollection classes
22716 - Added ColorDepth enumeration
22717 - Updated SWF VS.Net project
22719 2004-07-15 11:06 jordi
22721 * XplatUIStructs.cs: added MsgButons enum
22723 2004-07-15 11:03 jordi
22725 * Control.cs: added basic mouse handeling events
22727 2004-07-15 03:38 jordi
22729 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
22730 Vertical TrackBar control implementation
22732 2004-07-13 09:33 jordi
22734 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
22736 2004-07-13 09:31 jordi
22738 * Control.cs, Form.cs: commit: new properties and fixes form size
22741 2004-07-09 14:13 miguel
22743 * ProgressBar.cs: Spelling
22745 2004-07-09 11:25 pbartok
22748 - Removed usage of Rectangle for drawing. Miguel pointed out it's
22751 2004-07-09 11:17 miguel
22753 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
22755 * ProgressBar.cs: Fixed spelling for `block'
22757 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
22760 Avoid using the += on rect.X, that exposed a bug in the compiler.
22762 2004-07-08 23:21 pbartok
22764 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
22765 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
22766 BaseCollection.cs, Binding.cs, BindingContext.cs,
22767 BindingMemberInfo.cs, BindingsCollection.cs,
22768 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
22769 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
22770 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
22771 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
22772 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
22773 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
22774 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
22775 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
22776 FrameStyle.cs, GiveFeedbackEventArgs.cs,
22777 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
22778 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
22779 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
22780 InputLanguageChangedEventArgs.cs,
22781 InputLanguageChangedEventHandler.cs,
22782 InputLanguageChangingEventArgs.cs,
22783 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
22784 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
22785 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
22786 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
22787 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
22788 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
22789 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
22790 QueryAccessibilityHelpEventArgs.cs,
22791 QueryAccessibilityHelpEventHandler.cs,
22792 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
22793 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
22794 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
22795 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
22796 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
22797 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
22798 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
22799 XplatUIX11.cs, lang.cs: