1 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * BindingSource.cs: Some corrections to Filter property, as well as
4 setting it for our list when resetting it.
6 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
8 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
9 than the maximum. Fixes reopened bug #384182.
11 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
13 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
14 Fixes remaining issues of #367490.
16 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
18 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
19 SystemInformation.WorkingArea to get max_screen value.
21 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
23 * BindingSource.cs: Implement Filter and RemoveFilter.
25 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
27 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
29 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
31 * X11Dnd.cs: When trying to convert data and we know we started the
32 dnd loop, don't try to use the cached data if the loop is not running,
33 which means that the data has been resetted.
36 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
38 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
41 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
43 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
44 it to drawn off screen edge. Fixes bug #367490.
46 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
48 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
49 menu position to have only one assignment of Location var.
51 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
53 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
54 for this patch. Fixes bug #384115.
56 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
58 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
59 the same. If LargeChange is zero, set a minimum size for the scroll
60 thumb grip. [Fixes bug #384182]
62 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
64 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
67 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
69 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
71 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
73 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
76 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
78 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
80 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
82 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
84 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
86 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
88 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
90 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
92 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
94 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
96 2008-04-27 Andreia Gaita <avidigal@novell.com>
98 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
99 supposed to return a reference to an mshtml interface, which we
101 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
102 reference to an mshtml interface, which we don't support). Code
104 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
105 DomDocument getter (it's supposed to return a reference to an
106 mshtml interface, which we don't support). Code formatting cleanup.
108 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
110 * ListView.cs: Ouch, forgot to commit.
112 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
115 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
117 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
119 * ListView.cs: When calculating box selection for virtual mode, don't
120 look for intersection with item's text, but item bounds, since that
121 would mean read ListViewItem's text for _every_ item, and that's
122 something we just can't do in virtual mode (items are only requested
125 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
127 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
128 partial support for managed windows (based on the patch from Ernesto).
130 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
132 * ListView.cs: When doing a key search use FindItemWithText method
133 instead of doing the search by ourselves, this way we avoid
134 duplicating the code and also we handle the special case for virtual
135 mode. To achieve that make our private overload of FindItemWithText
136 internal and also have a 'roundtrip' parameter.
138 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
140 * ListView.cs: When doing the layout don't request the
141 ListViewItem instance if we are in virtual mode (since we can't request it
142 until the item is actully drawn).
144 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
146 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
149 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
151 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
152 the patch from Ernesto).
154 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
156 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
157 * ThemeVisualStyles.cs: Added.
159 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
161 * IDeviceContext.cs: Added a missing using.
163 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
165 * ButtonBase.cs: Made IsDefault protected internal.
166 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
168 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
170 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
171 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
172 RadioButtonRenderer.cs: Included in the 1.1 profile.
173 * IDeviceContext.cs: Added.
174 * TextRenderer.cs: Included a member in the 1.1 profile.
176 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
178 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
180 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
182 * ErrorProvider.cs: Make the error icons come after the control
183 they refer to. It isn't the way the MS does it, but its better
184 than what we were doing. See bug #368587.
186 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
188 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
189 from Eric Albright that lazy loads the input language as ensures
190 everything gets properly initialized. Fixes bug #373871.
192 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
194 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
195 implicit mnemonics. [Fixes bug #383000]
197 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
199 * X11Dnd.cs: When canceling the operation, automatically restore the
200 default cursor - normally the default cursor is restored when the
201 mouse buttons are released, but we should be able to restore it even
202 if the buttons are still pressed (for example, when pressing ESC to
206 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
208 * X11Dnd.cs: When starting a new drad and drop operation, set control
209 field to null, just as the other fields, to avoid calling any
210 operation on a previous control. Also, when calling DndLeave on a
211 control, set it to null, thus we don't fire that event multiple times
215 2008-04-23 Geoff Norton <gnorton@novell.com>
217 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
218 the whole_window object. Fixes #377084.
220 2008-04-23 Andreia Gaita <avidigal@novell.com>
222 * HtmlElement.cs: Implement RaiseEvent (event injection into the
225 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
227 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
229 2008-04-23 Andreia Gaita <avidigal@novell.com>
231 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
234 2008-04-23 Andreia Gaita <avidigal@novell.com>
236 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
239 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
241 * X11Dnd.cs: When the drop was cancelled, or could just not be
242 performed, return DragDropEffect.None always (match .net).
244 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
246 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
248 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
250 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
252 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
254 * DataGridView.cs: Add support for error icon tool tips.
255 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
256 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
258 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
260 * X11Structs.cs: Add mouse button masks enum.
261 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
262 WM_EXITSIZEMOVE only once at the beginning and at the end of the
263 form resize/move operation instead of for each step of it.
264 [Fixes bug #346529 for the x11 backend]
266 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
268 * DataGridView*: Implement support for drawing error icons.
270 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
272 * TreeView.cs: Make vbar and hbar internal.
273 * TreeNode.cs: If collapsing the node removes one of the TreeView's
274 scrollbars, invalidate the whole thing.
277 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
279 * TreeView.cs: Calling Sort() sets Sorted = true.
280 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
281 if the nodes need to be sorted.
284 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
286 * Form.cs: Fire SizeChanged for both when the form is minimized and
288 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
289 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
291 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
293 * ComboBox.cs: If the combobox is disabled, draw a disabled
294 background before painting anything else.
297 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
299 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
300 forget to send a Leave event to the target window - just as .net does
301 when cancelling dnd operations.
303 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
305 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
306 soon as possible - this happens when we send the drop message to the
307 target window. This way we avoid firing any DragOver _after_ drop finished.
310 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
312 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
313 * Form.cs: Handle form minimization as a special state, where size doesn't
314 change, but we have to fire SizeChanged.
315 [Fixes bug #325122 for the win32 and x11 backends]
317 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
319 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
320 if the handle is disabled.
323 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
325 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
326 for forms with FormBorderStyle.None.
329 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
331 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
333 [Fixes bug #346529 for the X11 backend]
335 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
338 - Send a mouse Enter message after say dragging the mouse with a
339 button down and then release it in another client.
340 - Reset the cursor to prevent X11 from remembering it and setting it
341 before the control gets WM_SETCURSOR.
342 - Qeueue a mouse move after a mouse enter like win32.
345 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
347 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
348 It's sent when the form gets moved, resized, closed.
349 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
350 [Fixes bug #359193 for X11]
352 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
354 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
357 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
359 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
360 group. Fixes the 1.1 build.
362 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
364 * ListView.cs: Use display indexes for selection in Details view, as
365 well as do the proper layout based on display indexes for that view
368 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
370 * ListView.cs: Focused item information is now stored as a display
371 index, and display indexes are used all over the place for selection,
372 instead of ListViewItem.Index values, which doesn't give us enough
373 information to modify the selection in groups mode, and was broken.
375 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
377 * Control.cs: Do not fire MouseDown if validation of the control has
379 * Form.cs: Validate the form before closing.
380 [Fixes bugs #330501 and #353310]
382 2008-04-18 Andreia Gaita <avidigal@novell.com>
384 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
385 CreateWebBrowserSiteBase implementations
386 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
387 Style and TabIndex setters
389 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
391 * ListViewGroup.cs: When returning the actual item count, return the
392 proper count for default group.
395 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
398 * ListViewGroup.cs: When calculating groups layout, get the actual
399 number of items per group, since groups added to the group BUT not
400 added to the ListView are just ignored, and can cause some nasty
401 exceptions because of the lack of synchronization. Also for
402 ListViewGroup don't use lazy initialization for items, since we
403 the common scenario is to use it always - and it helps us to refactor
404 and clean the .ctor overloads.
406 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
408 * ListView.cs: When adding an item to a ListViewItemCollection
409 belonging to a group (ListViewGroup.Items), don't generate a redraw if
410 the added item hasn't beeen previously added to the ListView instance
411 refered by the group, since it will be ignored. This should avoid some
412 really nasty flickering.
414 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
416 * ListView.cs: When accessing an item in a specific display
417 position, use the helper method GetItemAtDisplayIndex, instead of
418 direct access to the reordered_items_indices array. When doing layout
419 for groups set the correct Items index for the display position (since
420 in groups mode items don't have the same position as in Items
422 * ListViewGroup.cs: Add a field to store the starting item number,
423 which is later used when calculating the layout.
427 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
429 * Application.cs: Fixed ProductVersion to fallback to the assembly
430 version. Fixes regression for bug #325413.
432 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
434 * ListView.cs: New helper method to retrieve an item in a _specific
435 display_ position (the items can be displayed in a different order
436 than one of Items collection).
437 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
438 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
439 specific display position (again remember that items can be sorted
440 different than Items).
442 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
444 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
445 list and update it when the collection changes. We were recreating
446 this several times per row paint and for every pixel the mouse moved
448 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
451 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
453 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
454 list to use generics.
455 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
456 and remove unneccessay casts.
458 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
460 * DataGridViewBand.cs: Add internal way to set displayed variable.
461 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
462 * DataGridView.cs: Make sure we always keep track of Displayed
463 rows and columns, and only draw things that are displayed.
465 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
467 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
468 whether the key events are filtered or not. Introduced
469 PreFilter() process for this purpose. This fixes atokx3/iiimx
472 2008-04-16 Andreia Gaita <avidigal@novell.com>
474 * HtmlHistory.cs: Implement Length property
476 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
478 * DataGridView.cs: Call EndEdit when a sort is performed so we take
479 away the edit textbox. Refactor to reuse column sort code.
481 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
483 * MenuAPI.cs: Remove the code that save and restore capture status of
484 grab_control, this fixes some Menu and Context menu bugs but maybe it can
485 cause some others, I cant figure the possible problems of this patch but
486 right now remove the code looks to be better than keep it. This patch fixes
487 bugs #357638, #378721 and #379570.
489 2008-04-12 Andreia Gaita <avidigal@novell.com>
491 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
492 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
493 add missing properties and event handlers.
495 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
497 * ListBox.cs: Make sure the LargeChange we are setting is at least
498 zero, to prevent an IOORE. [Fixes bug #379531]
500 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
502 * ComboBox.cs: Support item navigation by entering text. Firstly,
503 in DropDownList mode, for each key-press select the next item
504 starting with that letter.
505 For other modes, when no item selected, on arrow-up/-down and open
506 drop-down select the first item matching the text in the textbox.
508 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
510 * X11Keyboard.cs : Control.FromHandle() could return null
511 in MoveCurrentCaretPos().
513 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
515 * ListView.cs: When changing the size in VirtualMode, also Reset the
517 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
518 changing selection info for VirtualMode.
521 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
523 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
524 view, don't use LineLimit for the first item - use NoWrap *always*
525 instead, since ListView.LabelWrap is not used for this view.
528 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
530 * Binding.cs: Call UpdateIsBinding when setting control - probably
531 Binding is already usable and we don't need to wait to check the
532 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
533 Created, just like 2.0 does.
534 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
536 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
538 * Binding.cs: Just realized we don't need to have a handler for
539 BindingContextChanged, since this info should be now consumed directly
540 in the BindingManagerBase. And also, the manager.IsBindingSuspended
541 state info is checked directly, instead of caching it.
543 * CurrencyManager.cs: IsSuspended should return always false if Count
546 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
548 * Binding.cs: When calling PushData, return if manager.Count == 0,
549 since we just don't have data to be read. Also, when setting the
550 Control for binding, hook up some events to refresh the IsBinding
551 state when BindingContext change or control gets created; use
552 Control.IsHandleCreated instead of Control.Created check to set
553 IsBinding state - we *actually* need to modify IsBinding when control
554 is created, but we don't have any Created event, only HandleCreated.
555 Fixes part of #349364.
557 2008-04-11 Geoff Norton <gnorton@novell.com>
559 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
560 warping a null Caret.
562 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
564 * DataGridView.cs: Implement row/column autosizing methods. Implement
566 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
567 * DataGridViewRowCollection.cs: Add an internal sorting method.
569 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
571 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
572 value in ListView drawing code.
574 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
576 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
577 is clicked. Respect the user setting Cancel in FileOk.
579 2008-04-11 Geoff Norton <gnorton@novell.com>
581 * ListView.cs: Avoid setting and resetting control Width/Heights and
582 calculate the final value and set it once. Prevents a feedback loop
585 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
587 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
590 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
592 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
593 Add some on-the-spot code, but it seems we don't need it.
595 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
597 * Form.cs: Add method for DataGridView to trigger focus cues
598 even when it handles the tab keypress.
600 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
602 * DataGridView.cs: More keyboard handling, tab, esc.
603 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
604 when at the beginning or end of the text in the text box.
606 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
608 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
610 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
612 * DataGridView.cs: Some fixups for showing and adding the edit control.
613 * DataGridViewButtonColumn.cs: Implement ToString.
614 * DataGridViewCell.cs: Size and position the control simultaneously.
615 * DataGridViewTextBoxCell.cs: Use base to position control.
617 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
619 * DataGridViewCell.cs: Fix up some formatting and painting code.
620 * DataGridViewImageCell.cs: Implement some NIEX methods.
622 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
624 * ToolStripItemCollection.cs: What moving an item from one owner
625 to another, remove from source owner before adding to destination.
628 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
630 * PictureBox.cs: Call Load when ImageLocation is set.
633 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
635 * X11Keyboard.cs, XplatUIX11.cs :
636 Implement over-the-spot mode (with some odd offsets).
637 - set preedit position when caret is set.
638 - Wrap XMoveResizeWindow() to move preedit position.
640 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
642 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
645 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
647 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
648 and ScanTableIndex public, it fix compilations errors when compiling
649 WinForms to generate keyboard layout resources.
651 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
653 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
654 different element count than scan table. It prevents some errors in non
657 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
659 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
661 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
663 * DataGridView.cs: Call OnContentClick.
664 * DataGridViewCell.cs: Do a null check on ValueType instead
666 * DataGridViewCheckBoxCell.cs: Implement.
668 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
670 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
672 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
674 * X11Keyboard.cs : Check XGetIMValues() return value in
675 case it does not return input styles in some environment.
677 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
679 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
681 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
683 * BindingContext.cs: Stub UpdateBinding method.
685 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
687 * X11Structs.cs : added couple of structs for XIM support.
689 Release XIM in case it failed to create XIC.
690 Use consts for XNblah string.
691 Add support for IM style customization and XIC creation
692 for preedit-position and preedit-callback.
693 Right now use MONO_WINFORMS_XIM_STYLE environment variable
694 (list of: over-the-spot | on-the-spot | root). Only root
697 (redoing r99172 with fix.)
699 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
701 * TreeView.cs: Center the checkbox a little better.
703 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
705 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
706 Apply very nice patch from Ernesto Carrea that simplifies our
707 scrollbar drawing. [From bug #376146]
709 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
711 * TreeView.cs: Correct the location of the root node checkbox when
712 ShowRootLines = false. Don't draw the root lines for the root node
713 when ShowRootLines = false. [Fixes bug #377535]
715 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
717 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
719 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
721 * MaskedTextBox.cs: Added missing attribute. Code formatting.
722 * PageSetupDialog.cs: Added missing attribute. Code formatting.
723 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
724 * ImeMode.cs: Added missing field.
725 * HtmlWindow.cs: Code formatting. Fixed line endings.
726 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
728 * HtmlHistory.cs: Code formatting. Fixed line endings.
729 * HtmlDocument.cs: Code formatting. Fixed line endings.
730 * ToolStripPanel.cs: Added missing IList implementation.
731 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
733 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
735 * BindingContext.cs: Changed argument names to fix corcompare errors.
736 * DataGridView.cs: Removed extra explicit interface implementation
737 of IDropTarget. Code formatting.
738 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
739 * ComboBox.cs: Changed argument names to fix corcompare errors.
740 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
742 * GridColumnStylesCollection.cs: Changed argument names to fix
743 corcompare errors. Removed extra tabs.
744 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
746 * Control.cs: Changed argument names to fix corcompare errors. Code
747 formatting. Removed extra explicit IList implementation.
748 * TextBox.cs: Changed argument names to fix corcompare errors. Code
749 formatting. Use string.Empty instead of "".
750 * GridItemCollection.cs: Changed argument names to fix corcompare
751 errors. Code formatting.
752 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
753 corcompare errors. Code formatting.
754 * ImageList.cs: Changed argument names to fix corcompare errors.
755 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
756 * DataGridViewRowCollection.cs: Changed argument names to fix
757 corcompare errors. Code formatting.
758 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
759 * DataGridViewSelectedCellCollection.cs: Changed argument names to
760 fix corcompare errors. Code formatting.
761 * DataGridViewComboBoxCell.cs: Changed argument names to fix
762 corcompare errors. Code formatting.
763 * LinkLabel.cs: Changed argument names to fix corcompare errors.
764 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
766 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
768 * BindingSource.cs: Changed argument names to fix corcompare errors.
769 Removed extra explicit interface implementations.
770 * DataGridViewSelectedRowCollection.cs: Changed argument names to
771 fix corcompare errors. Code formatting.
772 * ToolStripItemCollection.cs: Removed extra explicit interface
773 implementation of IList.ReadOnly.
774 * DataGridViewColumnCollection.cs: Changed argument names to fix
775 corcompare errors. Code formatting.
776 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
777 * ListView.cs: Changed argument names to fix corcompare errors.
778 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
780 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
782 * ListBindingHelper.cs: Changed argument names to fix corcompare
784 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
785 fix corcompare errors. Code formatting.
786 * ToolStripPanel.cs: Removed extra explicit implementation of
787 IDropTarget interface.
788 * ListBox.cs: Changed argument names to fix corcompare errors. Code
789 formatting. Removed extra tabs and spaces.
790 * DataGridViewCellCollection.cs: Changed argument names to fix
792 * Help.cs: Changed argument names to fix corcompare errors. Code
794 * TabControl.cs: Changed argument names to fix corcompare errors.
795 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
797 * TableLayoutSettings.cs: Changed argument names to fix corcompare
800 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
802 * ListBindingHelper.cs: When returning properties, only return those
803 that are browsable. Also, don't do a linear search of the properties,
804 but use the indexer of the PropertyDescriptorCollection class.
806 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
808 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
809 Dictionary containing the related (child) currency managers. Also,
810 when setting DataSource, add datasource to our List if it is not a list.
812 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
814 * PropertyGridTextBox.cs: Fix background color of the buttons.
815 * PropertyGridView.cs: Make the entry less jumpy.
817 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
819 * PropertyGrid.cs: Fix unused variable warnings.
821 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
823 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
824 double-click. It expanded it once in the mouse down and then
825 again in the double-click handler.
827 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
829 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
830 TypeConverter and UITypeEditors.
832 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
834 * Control.cs: Visibility should be set synchronously,
835 so we must also redraw once it is and not rely on layouting or
836 other code to repaint.
839 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
841 * DataGridViewCell.cs: Respect DataGridView.GridColor.
843 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
845 * Control.cs: Invalidate when the alpha channel is less than 255,
846 not only when control is transparent.
848 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
850 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
851 Implement some painting convenience methods that threw NIEX.
853 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
855 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
856 * DataGridViewLinkCell.cs: Implement.
858 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
860 * GridEntry.cs: Report the conversion exception error description.
863 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
865 * PropertyGridView.cs: Do not scroll to item on resize.
868 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
870 * BindingContext.cs: When retrieving a BindingManagerBase, if the
871 dataSource parameter is ICurrencyManagerProvider, then return
872 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
873 instead of creating a new one.
875 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
877 * BindingSource.cs: Implement support for Type instances as
880 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
882 * DataGridView.cs: Minor cleanups and call CellMouseUp.
883 * DataGridViewCell.cs: Make some painting routines internally virtual.
884 * DataGridViewButtonCell.cs: Implement.
886 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
888 * Control.cs: We always need to invalidate our children with
889 transparent backgrounds when we are invalidated.
892 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
894 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
895 and CancelCurrentEdit on CurrencyManager respectively. Implement
896 support for ICancelAddNew too.
898 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
900 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
901 call EndNew/CancelNew if list is ICancelAddNew.
903 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
905 * DataGridView.cs: Guard against an exception while painting
906 if there are no rows.
908 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
910 * DataGridView.cs: Implement a bunch of keyboard commands.
912 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
914 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
915 isn't set, don't call OnPaint. [Fixes bug #375300]
917 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
919 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
920 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
921 hookup the remaining events related to CurrencyManager, and fire
922 OnListChanged also for the Clear () method.
924 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
926 * BindingSource.cs: Use Current and Position implementations in
927 CurrencyManager instead of using our own routines, since we need
928 to be in synch with it. Count should NEVER return a -1 value, and
929 also report ListChanged events for both simple IList data
930 sources (manually) as well for IBindingList ones (by hooking up an
931 event handler for it).
933 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
935 * BindingSource.cs: Make one .ctor call the another, to avoid
936 duplicate code. Add the CurrencyManager property, and also for AddNew
937 throw the proper exceptions and show better error messages.
939 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
941 * ComboBox.cs: Only adjust selectedindex if Handle has been
942 created. Fixes failing test.
944 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
946 * ComboBox.cs: Adjust selectedindex if we insert a new item
947 above the current selectedindex in a sorted ComboBox.
950 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
952 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
955 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
957 * DataGridViewTextBoxCell.cs: Implement stuffs.
959 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
961 * TreeView.cs: Create the scrollbars even earlier to be
962 double dog certain they are created before they are accessed.
964 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
966 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
968 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
970 * ScrollBar.cs: Create an internal safe Value setter so we
971 won't crash if we try to set a value outside the min and max.
972 * TextBoxBase.cs: Use safe value setter to guard against a
973 potential NRE that is being reported by Reflector.
975 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
977 * TreeView.cs: Create the scrollbars earlier in the constructor
978 to attempt to guard against an NRE in SetTop in Reflector.
980 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
982 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
983 DataGridViewRowCollection.cs: Do not scroll column and row headers,
984 show messagebox on data format error, use column display index
985 correctly, make sure HitTest supports new layout stuff,
986 make sure scrollbars support new layout stuff.
988 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
990 * XplatUIX11.cs : Patch by Doug Rintoul.
991 For some IM engines, keypress events need to delay call
992 to XPending() and XNextEvent() in the loop so that it
993 does not mess the orders in XIM commit callback.
994 Some KeyRelease events such as shift keys need to be
995 processed both in the IM engine and winforms driver
996 itself since winforms holds its own state check.
998 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
1000 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
1002 * X11Keyboard.cs, XplatUIX11.cs :
1003 add primitive support for XIM input support (preedit-
1004 nothing and status-nothing). It requires precise event
1005 capturing (XSelectInput/"filterEvents") and different
1006 call to XFilterEvent against root window.
1007 Get composed string and send dummy WM_IME_COMPOSITION.
1008 Free XIM and XIC instances in finalizer.
1010 (This first patch does not include suggested changes
1011 by Doug Rintoul. It will follow.)
1013 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1015 * DataGridView.cs: When binding to a property, if the property
1016 doesn't have a setter, set the column to readonly.
1019 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1021 * ComboBox.cs: Guard against NRE if an arrow key is hit while
1022 we aren't dropped down. Support Home/End in DropDownList mode.
1025 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
1027 * TreeNodeCollection.cs: Don't increment count until we've
1028 saved our index to return.
1031 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1033 * Label.cs: Add padding to the label's AutoSize calculation.
1036 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1038 * ListBindingHelper.cs: Actually implement GetListName method.
1040 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1042 * BindingSource.cs: Throw the propert expceptions for some methods, as
1043 well as detect the list item type for Add method if DataSource is null.
1045 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1047 * DataGridViewCell.cs: I don't know why I commented this out,
1048 putting it back for now.
1050 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1052 * DataGridViewCell.cs: Remove storage for owning column, just
1054 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
1055 * DataGridViewColumnHeaderCell.cs: If the header text has been
1056 explicitly set, return it.
1059 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
1061 * DataGridViewRowCollection.cs: Disable row sharing when
1062 using data binding. Its a great feature, but lets work on
1063 getting DGV usable first before we worry about optimizations.
1065 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1067 * BindingSource.cs: When resetting our internal list, compute list
1068 item type information to be used for indirect list access. Also
1069 implement/tune some properties and methods related to the list access
1071 * ListBindingHelper.cs: Add a stub for GetListName method, used from
1074 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1076 * DataGridView.cs: If RowCount is increased while ColumnCount
1077 is zero, add a column. [Fixes bug #331649]
1079 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1081 * DataGridViewRowCollection.cs: When adding new rows for
1082 databinding, make sure they are place before the add row.
1085 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1087 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
1088 instead of Index order.
1090 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1092 * DataGridView.cs: If columns are added by increasing ColumnCount,
1093 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
1096 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1098 * DataGridView.cs: Turn off and on the "new row" when
1099 AllowUserToAddRows is toggled. When the handle is created,
1100 set current cell and selected cell/row/col.
1102 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
1104 * ComboBox.cs: When navigating the drop down by keyboard, we
1105 need to scroll the list box if our selection moves out of the
1106 currently shown items. [Fixes bug #371990]
1108 2008-03-24 Luke Page <luke.a.page@gmail.com>
1110 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
1111 on the control. Also now handles unicode compatibility characters and
1112 stores the unicode compatibility length on the stack. Fixes Bugs
1113 #355198 and #366436.
1115 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1117 * BindingSource..cs: Take into account DataMember when re-creating the
1118 List property, and also create a specific kind of list as needed.
1120 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1122 * ListBindingHelper.cs: Add a new case for GetList () method - when we
1123 get an empty IEnumerable, try to detect whether the datamember is
1124 valid or not for that type, if true, return null, and throw exception
1127 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
1129 * ComboBox.cs: Alt-Down should drop down the list, Esc should
1130 retract it. [Fixes bug #371989]
1132 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
1134 * PropertyGrid.cs: Initialize the sorting button as pushed.
1136 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
1139 - Visually select the PropertyTab.
1140 - Filter Properties by Attributes properly.
1142 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1144 * MenuItem.cs: Remove menu item from parent when disposed.
1147 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1149 * ToolBar.cs: Don't reset layout_type if Dock = None.
1151 2008-03-21 Andreia Gaita <avidigal@novell.com>
1153 * UserControl.cs: Select the first available control when we get focus.
1156 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1158 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
1159 the content if we are in edit mode. [Fixes bug #343964]
1161 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
1163 * DataGridViewCell.cs: Fix border painting for column headers.
1165 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1167 * BindingSource.cs: When setting or resetting data source,
1168 use ListBindingHelper.GetList () method, since it will get the list in
1169 case datasource is IListSource.
1171 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
1173 * DataGridViewCell.cs: Implement lots more stuffs.
1175 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
1177 * PropertyGridView.cs, GridEntry.cs: Implement support for
1178 UITypeEditor.IsDropDownResizable.
1180 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
1182 * DataGridViewCell.cs: Remove unused variables, improve how
1183 several of the property getters work.
1184 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
1185 get its size from the parent row/col.
1187 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
1189 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
1190 user alters manually the PropertyTabs collection via the
1191 PropertyTabs property.
1193 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1195 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
1196 new tests for them to be sure to be compatible with .net.
1198 2008-03-20 Andreia Gaita <avidigal@novell.com>
1200 * WebBrowserBase.cs: Fix attributes, add events
1201 * WebBrowser.cs: Fix Padding signature
1203 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
1205 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
1207 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
1209 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
1210 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1211 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
1212 passes the new suite of tests for it.
1214 2008-03-18 Andreia Gaita <avidigal@novell.com>
1216 * WebBrowser.cs: Add missing attributes, missing Padding and
1217 DefaultSize properties, remove extraneous getters
1219 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1221 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
1224 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
1226 * ComboBox.cs: Move resetting the selected index to keypress
1227 instead of textchanged. Changing the text programmatically
1228 should not trigger resetting the selected index. Fixes test.
1230 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
1232 * ComboBox.cs: When the user types into the textbox, reset
1233 the selected index to -1. [Fixes bug #371672]
1235 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
1237 * FileDialog.cs: Support Control-A for selecting everything
1238 in an OpenFileDialog. [Fixes bug #371564]
1240 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
1242 * DataGridView.cs: When row/column visible/height properties
1243 change, invalidate. Take the NIEX out of InvalidateRow/Column
1244 etc. We don't support them yet, but we can just invalidate
1245 everything until we do support them. (Added MonoTODO). Set
1246 proper control styles.
1247 * DataGridViewRow.cs: Don't call PaintHeader if row headers
1250 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1252 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
1254 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
1256 * DataGridViewRow.cs: Only paint the white background in
1257 cell bounds, the row bounds extends past the cells if the
1258 grid width isn't as wide as the DGV.
1260 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
1262 * DataGridView*: Completely revamp the drawing to match the
1263 public API. Our grids now look better, and call all the
1264 appropriate methods and event to allow users to override
1265 the painting and do their own.
1267 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1269 * ListBindingHelper.cs: Implement 2.0 GetList methods.
1271 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
1273 * DataGridView.cs: Implement BorderStyle.
1275 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
1277 * FileDialog.cs: Apply patch from Andy Hume: Any time we
1278 are comparing attributes, make sure we only look at the
1279 one we are interested. These calls were failing if there
1280 were more than one attribute.
1283 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
1285 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
1287 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
1289 * PageSetupDialog.cs: Stub EnableMetric.
1290 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
1291 * PrintPreviewDialog.cs: Add ProcessDialogKey,
1294 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
1296 * MonthCalendar.cs: Remove unused variable.
1298 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
1300 * DataGridView*.cs: corcompare stuffs.
1302 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
1304 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
1305 The savings aren't worth the extra code to fix the optimization.
1308 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
1310 * ToolBar.cs: Always call base.Dock in the Dock override so that
1311 Control's layout_type gets reset correctly.
1314 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
1316 * X11Dnd.cs: End DnD operation also for the middle mouse button.
1318 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
1320 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
1321 at the same time we do explicit ones, because we have to give all
1322 other controls on the container a chance to handle explicit ones
1323 first. If no one has an explicit mnemonic, then we can let the
1324 MenuStrip have a shot at implicit mnemonics.
1325 * MenuStrip.cs: Create an implicit mnemonic function.
1326 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
1327 mnemonics for MenuStrips.
1330 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
1332 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
1333 DataGridColumnStyle.cs: corcompare stuffs.
1335 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1337 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
1338 Details - This is needed after we added the bits to use any available
1339 column also for List and SmallIcon view.
1341 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1343 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
1344 at the proper place, not only when changing SelectedIndex and changing
1345 the selection using keys/mouse, as .net does.
1347 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1349 * ControlBindingsCollection.cs: Implement last 2.0
1350 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
1351 in the new 2.0 Add methods.
1353 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1355 * ListBox.cs: When calling SelectedIndexCollection.Clear,
1356 return if no items are previously selected - this is done to avoid
1357 firing OnSelectedIndexChanged without need to do so. Also,
1358 when creating handle ensure that the focused item is visible (as
1361 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1363 * ListBox.cs: Rewrote/refactored most of selection code. We require
1364 the following things in selection: a) keep selection sorted (both
1365 indices and items), b) SelectedIndices automatically detect the
1366 selection mode, c) SelectedIndex should be the first selected item
1367 index, d) Need to Focus/adjust scroll bar when selecting a new item,
1368 not only for SelectedIndex, which is specially important in Multi*
1369 selection modes. To achieve this we are moving the selection core to
1370 SelectedIndexCollection and make depend all selection modifications on
1374 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1376 * ToolStrip.cs: Enable implicit mnemonics for drop down
1377 menu strips. [Fixes part of bug #367692]
1379 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1381 corcompare - fix parameter names [stragglers].
1382 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
1383 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
1386 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1388 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
1389 was a mnemonic pressed as well as Alt. Also, if nothing handles a
1390 mnemonic, let the ToolStripManager have it even if it doesn't
1391 have a matching mnemonic.
1394 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1396 corcompare - fix warning about implicit implementation
1397 * ToolStrip.cs: Add IToolStripData interface.
1398 * IToolStripData.cs: Add.
1400 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
1402 corcompare - fix warning about implicit implementation
1403 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
1406 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
1408 corcompare - fix parameter names [N-Z].
1409 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
1410 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
1411 PropertyManager.cs, RichTextBox.cs,
1412 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
1413 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
1414 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
1415 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
1416 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
1417 ToolStripContentPanel.cs, ToolStripDropDown.cs,
1418 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
1419 ToolStripPanel.cs, ToolStripSeparator.cs,
1420 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
1421 UICuesEventHandler.cs, UpDownBase.cs.
1423 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
1425 corcompare - fix parameter names [G-M].
1426 GridColumnStylesCollection.cs, GridItemCollection.cs,
1427 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
1428 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
1429 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
1430 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
1431 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
1433 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
1435 corcompare - fix parameter names [A-F].
1436 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
1437 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
1438 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
1439 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
1440 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
1441 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
1442 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
1444 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
1446 * GridEntry.cs: Do not convert not only if the types match,
1447 but also if the property type is assigneable from the value's
1451 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
1453 * PropertyGridView.cs:
1454 - Subscribe to the listbox only once and not everytime.
1455 - Update the textbox even if SetValue fails.
1456 - Close the listbox before calling TrySetValue just in case.
1459 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
1461 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
1463 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1465 * ListView.cs: Implement support for custom column width based on
1466 Columns collection (we were previously using this collection only
1470 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1472 * ListViewItem.cs: For Tile view, always set bounds for the first
1473 subitem (which is the main one), and also don't let Width be larger
1474 than ListView.TileSize.Width. Improve code readibility also.
1475 * ThemeWin32Classic.cs: When painting the ListViewItem instances
1476 in Tile view, _always_ use the NoWrap flag.
1479 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
1481 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
1483 * GridEntry.cs: For MS compitability make all child properties
1484 readonly if the parent is readonly. Ugh.
1485 [Fixes bug #365945 and #365944]
1487 2008-02-29 Andreia Gaita <avidigal@novell.com>
1489 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
1490 relative to the history
1492 2008-02-29 Andreia Gaita <avidigal@novell.com>
1494 * HtmlElement.cs: More handlers for mouse and key events
1496 2008-02-28 Andreia Gaita <avidigal@novell.com>
1498 * WebBrowserBase.cs: MouseClick sig changed.
1499 * HtmlHistory.cs: Implement history navigation
1500 * HtmlElement.cs: Add event handlers, and connect them.
1502 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
1505 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
1506 so that DisplayNameAttribute doesn't get ignored.
1507 - Check for ParenthesizeNameAttribute and parenthesize the Label.
1508 - Add support for PasswordPropertyTextAttribute
1509 * PropertyGridView.cs: Check if an entry is a password.
1510 [Fixes bugs #365589, #365586, #365588]
1512 2008-02-28 Andreia Gaita <avidigal@novell.com>
1514 * PropertyGridView.cs: Revert the message filtering change, as we
1515 need it to block after all. Remove block parameter, unnecessary.
1517 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
1519 * UserControl.cs: Better implementation of GetPreferredSize.
1520 First step to fixing bug #361441.
1522 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1524 * Binding.cs: Actually implement data binding support for
1525 classes implementing IBindableComponent.
1526 * ControlBindingsCollection.cs: Likewise.
1528 2008-02-26 Andreia Gaita <avidigal@novell.com>
1530 * PropertyGridView.cs: Use a message filter to check when to
1533 2008-02-26 Andreia Gaita <avidigal@novell.com>
1535 * Application.cs: Change the message_filters loop so a filter
1536 can be removed while looping.
1538 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
1540 * GridEntry.cs: Optimization in ToggleValue so that it caches
1542 * PropertyGridView.cs: An optimization so that the property isn't
1543 re-read twice for each StandardValue added to the drop-down menu.
1544 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
1548 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
1550 * Application.cs: Apply patch from Justin Cherniak to match
1551 MS better for ProductName, ProductVersion, and CompanyName.
1554 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1556 * Binding.cs: Actually implement 2.0 NullValue property. Also
1557 when changing the formatting related properties, only update the state
1558 if formatting_enabled is true (we don't mind otherwise).
1560 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
1562 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
1565 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
1567 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
1568 of GetType on the current value as it uses reflection to
1569 determine the type. This fixes the case where the new value is
1572 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
1574 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
1577 2008-02-24 Luke Page <luke.a.page@gmail.com>
1579 * Line.cs, TextControl.cs: Implement offset x and y so that a
1580 document doesn't have to begin at (0,0) on the viewpoint.
1581 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
1582 bars and switches the text alignment (and therefore is now
1583 implemented for textbox). Fixes #321383.
1585 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1587 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
1588 properties. Also when changing FormattingEnabled update the control
1589 property -as .Net does-.
1591 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
1593 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
1594 * Binding.cs: Add stubs for the overloads of the Add method in
1597 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1599 * Binding.cs: PullData () returns a false value if we got an exception.
1600 Also when validating the control and we get an error, instead of
1601 setting the value of the previous one, cancel the event (tested in 1.1
1604 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
1606 * TreeView.cs: Make selected_node and highlighted_node internal.
1607 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
1608 to null when Nodes.Clear is called.
1611 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1613 * FontDialog.cs: Ensure that when the Font is set in code,
1614 all the gui pieces are updated accordingly.
1617 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1619 * TextRenderer.cs: Respect proposed size for MeasureString.
1620 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
1621 autosize, use a proposed width to force wrapping for long text.
1624 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1626 * TreeView.cs: Factor in checkboxes = false and state images in
1627 to HitTest. [Fixes bug #363360]
1629 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1631 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
1632 when drawing the selected range.
1635 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
1637 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
1638 ResizeRedraw control styles.
1641 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1643 * TreeView.cs: StateImages are basically custom checkboxes, so
1644 factor their size the same as real checkboxes when determining
1648 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1650 * MessageBox.cs: Make the message box wider if the form caption
1651 is longer than the text in the form.
1654 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
1656 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
1658 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1660 * TreeNode.cs: Guard against an NRE when the parent's
1661 StateImageList hasn't been set.
1664 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1666 * SplitContainer.cs: Add SupportsTransparentBackColor and
1667 OptimizedDoubleBuffering control styles.
1670 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1672 * Application.cs: For the app data paths and the registry key paths,
1673 ensure they are created before returning them to the user.
1676 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1678 * Application.cs: Guard against an NRE in CompanyName and
1681 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
1683 * Application.cs: For CompanyName, ProductName, and ProductVersion,
1684 make sure we handle all three cases correctly: attribute is present,
1685 attribute is present but is an empty string, and attribute is not
1688 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
1690 * PropertyGridView.cs:
1691 - Fix a NRE that caused a test failure
1692 - Another performance improvement - cache the standard values
1695 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
1697 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
1700 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
1702 * PropertyGridView.cs: Fix a big performance bug.
1704 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
1706 * SelectionRange.cs: Apply patch from Andy Hume to make
1707 constructor behavior more accurate. [Fixes bug #362117]
1709 2008-02-19 Andreia Gaita <avidigal@novell.com>
1711 * Control.cs: Added a new flag is_disposing to track if the
1712 window is currently in the process of being disposed of.
1713 This is used so that, when firing visibility changes triggered
1714 by unparenting controls during Dispose, the control doesn't
1717 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
1719 * ComboBox.cs: Set height to preferred height when the handle
1720 is created. [Fixes bug #360862]
1722 2008-02-18 Andreia Gaita <avidigal@novell.com>
1724 * XplatUIX11.cs: Create FosterParent with border width at 0.
1725 With the previous value of 4, everytime a control got reparented
1726 from parent = null, it's location would be shifted right and
1727 down by 4, since these coordinates would be offset by the
1728 FosterParent's border width.
1730 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
1732 * Control.cs: During diposing firstly remove ourselfes from
1733 the parent and *then* destroy our handle, because removing
1734 ourselfes from the parent controls collection causes
1735 VisibilityChange, etc events, which require a handle and end
1736 up recreating the control.
1738 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
1740 * GridEntry.cs: Set expanded state before notifying that the
1741 expansion has taken place.
1742 * PropertyGridView.cs:
1743 - Set the propertygridtextbox text to the selected
1744 StandardValue before proceeding to setting it.
1745 - Scrolling bugfixes.
1747 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
1750 - Fix ValueText to not return null.
1751 - Fix conversion error reporting to actually happen.
1752 * PropertyGridView.cs: Set entry only if the text has changed.
1755 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
1758 - Fix handling of a null current value.
1759 - Swallow editor exceptions.
1762 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
1764 * PropertyGrid.cs: Clear current items first thing before
1765 repopulating subitems.
1767 - Handle null StandardValuesCollection.
1768 - Mark as not editable if there is no PropertyDescriptor and
1769 if the Converter cannot convert from string.
1770 [Part of fix for bugs #360666 and #358332]
1772 2008-02-15 Luke Page <luke.a.page@gmail.com>
1773 * MaskedTextBox.cs: Now skips non editable characters after a
1774 character has been entered and we are progressing to the next
1775 position in the MaskedTextBox.
1777 2008-02-15 Luke Page <luke.a.page@gmail.com>
1778 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
1779 that it changes the selection rather than just repositioning the
1780 cursor. Fixes Bug #360873.
1782 2008-02-15 Luke Page <luke.a.page@gmail.com>
1783 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
1784 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
1785 correctly. See #359330
1787 2008-02-15 Andreia Gaita <avidigal@novell.com>
1789 * XplatUIX11.cs: If the handle is null when posting a message, use the
1790 current thread queue to post instead. Fixes #332409
1792 * SendKeys.cs: Slight optimization
1794 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
1796 * PropertyGrid.cs, PropertyGridView.cs:
1797 Fix multiple scrolling and sizing issues.
1800 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
1802 * PropertyGridView.cs: Ensure that drop down editors are shown
1803 in the WorkingArea of the screen.
1806 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
1808 * GridEntry.cs: Fail silently when UITypeEditor is missing.
1811 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1813 * Binding.cs: Implement 2.0 DataSourceNullValue property.
1815 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
1817 * PropertyGridView.cs:
1818 - Clear the controls in the drop down form after it is hidden.
1819 - Fix Width sizing of the dropdown editors to match MSFT.
1821 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
1823 * PropertyGridView.cs:
1824 - Fix height for drawing the grid entry
1825 text value, so that it clips multiline text properly.
1826 - Fix unfocusing to match MSFT.
1828 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
1830 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
1831 Fixes a bug where on repopulation after value changed items become
1834 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1836 * Binding.cs: For the 2.0 profile, look for a
1837 'PropertyChanged' event in the target control, and add checks for
1838 DataSourceUpdateMode property to change -or not- the data source
1839 from validation/control property change.
1841 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
1843 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
1844 not compare struct with null in 2.0).
1846 2008-02-10 Luke Page <luke.a.page@gmail.com>
1848 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
1849 updates the provider and if not using a provider, uses the internal document
1850 class implementation of password char. Also when showing text, uses display string
1851 from the provider, instead of the actual text.
1853 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1855 * Binding.cs: Ooooops, forgot to take into account the data_source
1856 and binding_member_info null case (it was breaking the Binding tests).
1858 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1860 * Binding.cs: Implement support for data source changes exposed by
1861 'PropertyNameChanged' events, and update the control property as
1864 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1866 * Binding.cs: Implement 2.0 WriteValue method.
1868 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
1870 Commit patch from James Purcell for better AutoScale implementation:
1872 * ScaleControl should call GetScaledBounds with the control's total size rather
1873 than client size. GetScaledBounds should handle ignoring the borders in its
1874 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
1875 (for the most part they just call the base code now since that is fixed).
1876 * Added ScaleChildrenInternal to allow controls to disable scaling of children
1877 without having to override ScaleChildren (since none of .NET's controls do).
1878 This is required for most controls in Mono that have scrollbars to prevent the
1879 scrollbars from being moved/resized.
1880 * Nested ContainerControls can have a different scale mode than their parent.
1881 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
1882 designer produce different results both of which look incorrect).
1883 * Default AutoScaleMode for ContainerControl should be Inherit.
1884 * Simplified workaround for ComboBox scaling issue.
1885 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
1886 1.0 style auto scaling should scale the whole control's size instead of
1887 ignoring the borders (except for Form) and the rounding is done differently to
1888 preserve control alignment.
1889 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
1891 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
1892 * CurrentAutoScaleDimensions should round the estimated character width instead
1894 * ListBox's GetScaledBounds should always use the height it was set to instead
1895 of the height that was passed in. This prevents rounding errors from
1896 accumulating quickly with IntegralHeight.
1899 2008-02-08 Andreia Gaita <avidigal@novell.com>
1901 * Form.cs: Add a null check (darn it).
1903 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
1905 * MdiClient.cs: Make sure the requesting form actually owns the
1906 control menu items before removing them. Also, use
1907 Suspend/ResumeLayout when adding or removing items so we only
1911 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
1913 * Control.cs: Guard against an NRE in ShowFocusCues.
1916 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1918 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
1919 property, as well as stubbing DataSourceUpdateMode.
1921 2008-02-08 Andreia Gaita <avidigal@novell.com>
1923 * Form.cs: When closing forms, get focus back to the active control of the
1924 active form. [Fixes #341314, corner case]
1926 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1928 * MdiClient.cs: After we move the scrollbars, invalidate the NC
1929 area, so any old scrollbar artifacts are cleaned up.
1932 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1934 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
1935 for our menus, display that control box menu instead of the 1.1
1938 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1940 * MdiControlStrip.cs: Add property to access the mdi form tied to
1942 * MdiClient.cs: Be smarter about removing and adding toolstripitems
1943 to the implicitly merged menu. Every time we clicked the form, items
1944 were getting removed and the re-added, causing the form to jump around
1945 as the menu resized.
1947 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1949 * MdiClient.cs: Make sure the NormalBounds always gets set. It
1950 was being reset by the implicit menu merge for menustrips.
1953 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1955 * Form.cs: Don't do the previous change when WindowState = Normal,
1956 or it messes up where the window is placed. Fixes test failure.
1958 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
1960 * Form.cs: When becoming visible, if we are an MDI child, call
1961 SetWindowState with a dummy old_state so that changes will actually
1963 [Fixes the 2nd part of bug #325473]
1965 2008-02-07 Andreia Gaita <avidigal@novell.com>
1967 * Control.cs: Reset properties to their pre parent-change values in case
1968 the new parent == null (in which case we're basically removing the control,
1969 and don't want any events fired due to fake property changes)
1972 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
1974 * PropertyGridView.cs:
1975 - Refactor SetValue to allow setting the value
1976 when a custom editor is used, but the entry is not editable.
1977 - Remove the custom editor control on CloseDropDown.
1980 2008-02-06 Andreia Gaita <avidigal@novell.com>
1982 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
1983 reflection only on 1.1, this property is public on system.drawing on 2.0.
1986 2008-02-06 Andreia Gaita <avidigal@novell.com>
1988 * WebBrowser.cs: Do a normal page refresh by default.
1990 2008-02-05 Andreia Gaita <avidigal@novell.com>
1992 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
1993 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
1994 platforms. Fixes #359036
1996 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
1997 platform-specific flags.
1999 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2001 * Binding.cs: Add 2.0 BindableComponent property - just return control
2004 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
2006 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
2007 Jonathan for this patch. Fixes #358442.
2009 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
2011 * Form.cs: If we change the active MDI child form, let the others
2012 know they need to repaint their title bar so it will appear inactive.
2013 [Fixes part 1 of bug #325473]
2015 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
2017 * PropertyGridView.cs: Do not trucate custom editors' width
2018 and align them to the left.
2019 [Fixes #358353 and #358349]
2021 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2023 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
2024 Also fix the arguments passed to CollectionChangeEventArgs in the
2027 2008-02-04 Geoff Norton <gnorton@novell.com>
2029 * Hwnd.cs: The conversion to Quartz coordinates happens in
2030 System.Drawing. Removing this translation from here.
2032 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
2034 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
2035 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
2036 GridItemCollection.cs:
2037 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
2039 2008-02-04 Geoff Norton <gnorton@novell.com>
2041 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
2042 SYSKEYUP if any other key has been pressed in the mean time.
2045 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2047 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
2048 when the item in current position is different than 0. Also, save the
2049 item index in the beginning of the operation, instead of getting the
2050 index of the item when the event is actually performed. Lastly clean
2051 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
2055 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2057 * Form.cs: Alt-Minus for MDI children system menu should work
2058 with both the minus keys on the keyboard.
2061 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2063 * Control.cs: Don't invalidate on region change. The WM should
2064 take care of this automagically. Keeps us out of an infinite
2065 paint loop if someone changes the Region in the OnPaint.
2068 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
2070 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
2072 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2074 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
2075 down the MonthCalendar only on F4, not Alt+F4.
2076 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
2079 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2081 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
2082 if its part of a DateTimePicker, else, use the back color.
2085 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
2087 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
2090 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2092 * CurrencyManager.cs: When we get a ListChanged event from our source,
2093 always fire our own ListChanged event, as .Net does.
2095 2008-02-03 Luke Page <luke.a.page@gmail.com>
2097 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
2100 2008-02-03 Luke Page <luke.a.page@gmail.com>
2102 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
2103 property. Removed if for richtext property that was always true.
2104 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
2106 2008-02-03 Luke Page <luke.a.page@gmail.com>
2108 * TextBoxBase.cs - commited patch from James Purcell that
2109 correctly sets the FixedHeight control style when the MultiLine
2110 property is changed on a TextBox control. Fixes bug 358229.
2112 2008-02-02 Luke Page <luke.a.page@gmail.com>
2114 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
2115 Fixes bug 351938 - caret is positioned correctly when drawn
2116 and when calculating textual position of caret, no longer
2117 has a NRE in certain situations.
2119 2008-02-01 Geoff Norton <gnorton@novell.com>
2121 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
2122 get that region removed from the paint event.
2123 * XplatUICarbon.cs: Remove the window mapping after disposing of
2124 window. Prevents a crash with handle reuse. Optimize exposes
2125 only onto visible windows (rare; but possible).
2127 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2129 * UpDownBase.cs: Make sure the internal textbox calls the base's
2130 OnMouseDown and OnMouseUp so the textbox will function correctly.
2131 There were notes saying it doesn't chain up, but its an internal
2132 class, so our implementation may differ.
2135 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2137 * ListBox.cs: Fix a logic error and don't process MouseDown
2138 for mouse buttons other than Left.
2140 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2142 * Control.cs: Remove HeightInternal.
2143 * ListBox.cs: Commit patch from James Purcell that correctly
2144 calculates heights for ListBoxen.
2147 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2149 * Label.cs: Apply patch from James Purcell that corrects the
2150 signature of the AutoSize property.
2153 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
2155 * ListBox.cs: Don't throw [Mouse]Click events for buttons
2156 other than the left mouse button.
2158 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
2160 * Control.cs: Remove my awesome optimization as it caused some
2161 regressions with control ordering. :(
2164 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
2166 * PropertyGridView.cs: Fix a NRE on double click when there is no
2169 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2171 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
2173 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
2175 * ListBox.cs: Call MouseClick and MouseDoubleClick.
2178 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2180 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
2181 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
2182 instead of Hwnd.bmp_g.
2184 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2186 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
2187 Use the Hwnd one instead.
2189 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2191 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
2193 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2195 * Form.cs: corcompare for RestoreBounds.
2197 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2199 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
2201 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
2203 * Form.cs: Handle Alt-Minus for MDI children forms.
2204 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
2205 Add mnemonics to the control menu.
2208 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2210 * Binding.cs: Initial implementation bits of FormattingEnabled
2211 property and BindingComplete event (2.0).
2212 * BindingCompleteEventArgs.cs: Internal methods for setting error text
2215 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
2217 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
2218 table.Location. [Fixes bug #354672]
2220 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
2222 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
2223 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
2225 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2227 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
2228 of doing all the re-bound work, just invalidate and call SetControlText
2229 to set the updated text of selected item to our textbox.
2232 2008-01-28 Andreia Gaita <avidigal@novell.com>
2234 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
2235 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
2236 missing properties and methods. Add Load, Unload, Error, GotFocus,
2237 LostFocus, Resize, Scroll events (only load and unload are connected)
2239 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
2241 * AccessibleObject.cs: Modified argument names to match MS.
2242 * Button.cs: Modified argument names to match MS.
2243 * BindingContext.cs: Modified argument names to match MS.
2244 * BindingMemberInfo.cs: Modified argument names to match MS.
2245 * ButtonBase.cs: Modified argument names to match MS.
2246 * ComboBox.cs: Modified argument names to match MS.
2247 * Control.cs: Modified argument names to match MS.
2248 * CheckedListBox.cs: Modified argument names to match MS.
2249 * CommonDialog.cs: Modified argument names to match MS.
2250 * DataGrid.cs: Modified argument names to match MS.
2251 * CursorConverter.cs: Modified argument names to match MS.
2252 * ControlPaint.cs: Modified argument names to match MS.
2253 * CheckBox.cs: Modified argument names to match MS.
2254 * ControlBindingsCollection.cs: Modified argument names to match MS.
2255 * BindingSource.cs: Modified argument names to match MS.
2256 * DataFormats.cs: Modified argument names to match MS.
2257 * ContainerControl.cs: Modified argument names to match MS.
2258 * CurrencyManager.cs: Modified argument names to match MS.
2259 * Application.cs: Modified argument names to match MS.
2260 * ContextMenuStrip.cs: Modified argument names to match MS.
2261 * ContextMenu.cs: Modified argument names to match MS.
2262 * BindingManagerBase.cs: Modified argument names to match MS.
2263 * WindowsFormsSection.cs: Fixed line ending.
2265 2008-01-27 Andreia Gaita <avidigal@novell.com>
2267 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
2268 detecting that the dropdown toolwindow is hidden. EndLoop outside the
2271 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
2273 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
2274 MS. Code formatting.
2276 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2278 * Binding.cs: Don't avoid the Format event if the control
2279 property type is object. Also, if the value retrieved by
2280 the data source is null _and_ the control proeprty type
2281 is object, return Convert.DBNull (match .Net).
2282 Fixes part of #324286.
2284 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2286 * ListControl.cs: Since we are getting two BinginContextChanged events
2287 for the same binding context instance (when the control is added to
2288 form, and when the form is actually shown), take it into account only the
2289 first time for a given binding context instance.
2290 Fixes part of #324286.
2292 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
2294 * PropertryGridView.cs: Ops.
2296 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
2298 * PropertyGridView.cs: Close dropdown form if the owner form is
2302 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
2304 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
2305 RootGridEntry.cs, CategoryGridEntry.cs:
2306 PropertyGrid rewrite.
2307 - Rewrite all of the control logic in PropertyGrid.
2308 - Rewrite all of the ComponentModel logic in GridEntry.
2309 - Rewrite all UI work in PropertyGridView.
2310 - Many bugfixes, etc.
2312 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
2314 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
2315 when all contained controls are autosize or dock-fill. Also take into
2316 account when the total percentage of column/row sizes is not 100%.
2319 2008-01-24 Andreia Gaita <avidigal@novell.com>
2322 - Save a reference to the IDocument in the instance and
2323 use that one instead of going to WebHost.Document; the document that the
2324 WebHost returns might not be the right one (in case of frames).
2325 - Use the hashcode returned from the IDocument interface.
2326 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
2327 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
2328 LinkColor, Url, VisitedColor, Window
2331 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
2332 set_Attribute, NextSibling, Parent, TagName, AppendChild,
2333 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
2334 SetAttribute, Equals, equality operators.
2335 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
2336 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
2338 * HtmlElementCollection.cs: Change implementation to use a generic
2339 collection. Implemented Enumerator and CopyTo
2341 * HtmlHistory.cs: Add constructor, no implementation yet.
2343 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
2344 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
2345 Equals, equality operators.
2347 * HtmlWindowCollection.cs: Implemented.
2349 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
2350 has been deprecated).
2352 * WebBrowserBase.cs: Use Completed event to track document loading
2353 (Navigated has been deprecated)
2355 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
2357 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
2358 level MenuItems do not respect tabs.
2361 2008-01-23 Geoff Norton <gnorton@novell.com>
2363 * XplatUICarbon.cs: Ensure that windows are created in their initial
2364 FormWindowState. Finished fixing Fullscreen windows on Carbon
2366 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2368 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
2369 be used as grab_control. Also save status of capture before show ContextMenu
2370 and restore it after close.
2372 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2374 * Control.cs: Internal FindRootParent method added to return high control
2377 2008-01-23 Geoff Norton <gnorton@novell.com>
2379 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
2380 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
2381 it work again. Handle HITTEST events.
2383 2008-01-23 Geoff Norton <gnorton@novell.com>
2385 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
2386 a crash in certain cases. Support for fullscreen windows in certain cases.
2388 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
2390 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
2393 2008-01-23 Geoff Norton <gnorton@novell.com>
2395 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
2397 2008-01-23 Geoff Norton <gnorton@novell.com>
2399 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
2401 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2403 * SplitContainer.cs: Remove unused declarations.
2404 * Binding.cs: Remove unused declarations.
2406 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2408 * Form.cs: Remove unused declaration of 'active' in Activate method.
2409 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
2410 prevent compilation warnings.
2411 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
2412 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
2413 * Bindings.cs: Remove unused formatting_enabled declaration.
2414 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
2416 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
2418 * PropertyGridView.cs: Remove usused 'ex' declaration.
2419 * DataGridView.cs: Remove unused declarations.
2421 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2423 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
2425 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
2426 to Control class, it makes possible to grab menu to controls that can't
2427 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
2428 WmMouseMove removed since it was used only to track menu events.
2431 - Moved all active_tracker stuff from Form.
2432 - ProcessActiveTracker added to prevent code duplicity, now mouse events
2433 can call this method instead of reimplement all necessary code handle for
2435 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
2439 - Remove special handle to ToolStripOverflow, now we can grab menu to
2440 controls that can't reach Form using parent tree.
2441 - Change type of grab_control from Form to Control.
2443 2008-01-22 Geoff Norton <gnorton@novell.com>
2445 * TextBoxBase.cs: Split up the sizing of controls and placing of
2446 controls. Fixes a bug where scrollbars in Reflector could be sized
2447 wrong and have non-working thumbers.
2449 2008-01-23 Geoff Norton <gnorton@novell.com>
2451 * XplatUI.cs: Refactor environment variables to default support to the
2452 Carbon driver on the Mac.
2454 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
2456 * Label.cs: Uses new LabelPainter for drawing operations.
2457 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
2458 * Theme.cs: DrawLabel and LabelDefaultSize removed.
2460 2008-01-22 Geoff Norton <gnorton@novell.com>
2462 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
2464 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
2466 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
2467 through the normal flat button code and don't draw the checkbox glyph.
2468 * Theme.cs: Button->ButtonBase signature change.
2471 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
2473 * LinkLabel.cs: Uses new class LinkLabelPainter.
2475 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
2477 * MessageBox.cs: Adjust right border space, we don't need to add
2478 "space_border*2" two times.
2480 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
2482 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
2483 becomes a wrapper around Padding.
2484 [Fixes a part of bug #354676]
2486 2008-01-22 Geoff Norton <gnorton@novell.com>
2488 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
2489 acquired. Also ensure the buffer is large enough to grab the header
2490 we need on linux boxes.
2492 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
2494 * Control.cs: Implement a custom enumerator so people can delete
2495 from the Controls collection while in a foreach.
2498 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
2500 * PropertyGridView.cs: Fix focusing behavior:
2501 - Tab should focus the grid text box.
2502 - Clicking on the labels shouldn't focus the grid text box.
2504 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
2506 * PropertyGridView.cs: IsValueTypeGridItem should return true
2509 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
2511 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
2512 - Renamed GridEntry.SelectedObjects to TargetObjects to better
2513 reflect the property name role.
2514 - PropertyGrid.GetTarget is not required as the target is known
2516 - Setting values will handle value types as a special case now and
2517 populate them up in the chain.
2520 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
2522 * Hwnd.cs: Create a public property for the Graphics we keep around.
2524 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
2526 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
2527 when the current object selection changes.
2528 Fixes failing test SelectedObject_Null2.B5.
2530 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
2532 * PropertyGrid.cs: Process Browsable properties with
2533 DesignerSerializationVisibilityAttribute.Content as being expandable.
2534 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
2535 will not be expandable. We should be nested components-friendly now.
2537 2008-01-21 Andreia Gaita <avidigal@novell.com>
2539 * WebBrowserBase.cs: Check if control was loaded properly,
2540 don't bind if it wasn't.
2542 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
2543 GetElementFromPoint, equality operators, OpenNew, Write.
2544 Remove extra set_Body
2546 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
2548 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
2549 that makes our AutoScale* stuff more tolerant to different orders
2550 of being set. [Fixes bug #354669]
2552 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
2554 * PropertyGridView.cs, PropertyGridTextBox.cs:
2555 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
2556 [Fixes #339005 and #348209]
2558 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
2560 * PropertyGridView.cs: Hide the grid text box before adjusting it
2561 for the newly selected GridItem.
2564 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
2566 * Form.cs: Give MDI children the opportunity to cancel the parent form
2567 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
2568 properly for both the parent and child.
2569 * Application.cs: Signature of internal method changed, pass the previous
2573 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
2575 * PropertyGridView.cs: Set the property value only if it has changed.
2578 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
2580 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
2581 If the mouse hasn't actually moved, ignore these messages so the currently
2582 highlighted menuitem isn't reset to the one under the mouse.
2585 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
2587 * PropertyGridView.cs: When the property changes Invalidate the GridItem
2588 in order for the properties with UITypeEditor.GetPaintValueSupported == true
2589 to reflect the change visually.
2592 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
2594 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
2595 to 2.0 button drawing.
2596 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
2597 the button text is tall enough for one line. LineLimit says it will
2598 always draw at least one line, but it is a lie.
2601 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
2603 * XplatUIStructs.cs, X11Keyboard.cs :
2604 added some more VK_* keys to be handled.
2606 2008-01-16 Andreia Gaita <avidigal@novell.com>
2608 * Control.cs: Check if there is a container before setting or getting
2609 the validation flag.
2611 2008-01-16 Andreia Gaita <avidigal@novell.com>
2613 * ContainerControl.cs: Add flag to track if a control cancels validation,
2614 so we don't fire click events.
2617 - (HandleClick) Check if validation was cancelled before firing the click
2618 events (doubleclicks are fired, but not clicks)
2619 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
2620 ContainerControl.set_ActiveControl, but in the case of non-selectable
2621 controls, like a Label, activecontrol is not set.
2623 * ButtonBase.cs: Only fire clicks if validation passes.
2627 2008-01-16 Geoff Norton <gnorton@novell.com>
2629 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
2632 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
2634 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
2635 SelectedPath, just display the default dialog instead of crashing.
2638 2008-01-16 Geoff Norton <gnorton@novell.com>
2640 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
2641 AddExpose instead of trusting apples compositing manager which doesn't
2642 work for our use case. Remove some dead code causing warnings and
2643 redecorate some other code to prevent warnings.
2645 2008-01-16 Geoff Norton <gnorton@novell.com>
2647 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
2648 carbon signals us to redraw. Fixes another portion of the flickering bug
2650 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
2652 * Form.cs: Prevent the MdiParent property to be set when value is the same
2653 as value already set. Fixes bug #328019.
2655 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
2657 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
2658 it prevents NRE when closing mdi child windows. Fixes bug #325211.
2660 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
2662 * InternalWindowManager.cs: Invalidade close button after mouse up when
2663 mdi form is prevented to close.
2665 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
2667 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
2668 thanks to Andy Hume. Fixes bug #325433.
2670 2008-01-16 Andreia Gaita <avidigal@novell.com>
2672 * LinkLabel.cs: Reset focused_index when resellecting the control.
2675 2008-01-15 Geoff Norton <gnorton@novell.com>
2677 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
2680 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
2682 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
2685 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
2687 * ContainerControl.cs: Setting AutoScaleMode to anything should set
2688 Form.AutoScale to false.
2689 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
2690 AutoScaleBaseSize should be changed on Font change unless it has been
2694 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
2696 * MenuAPI.cs: On instance of MenuTracker check if source control is
2697 ToolStripOverflow and use properly method to find form.
2700 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
2702 [Fixes bug #323241 Transparent toolbar support]
2704 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
2707 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
2708 defined in control style to mimic win32 behavior.
2710 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
2711 it will be transparent.
2713 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
2715 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
2716 CreateParams for ToolBar controls.
2718 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
2720 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
2721 FixedToolWindow, SizeableToolWindow, or None for border styles have
2722 different minimum sizes than regular forms. Implemented to fix
2723 regression in PDN with toolbox being too wide.
2725 2008-01-14 Andreia Gaita <avidigal@novell.com>
2727 * HtmlElementCollection.cs: Implemented
2729 * HtmlElement.cs: Implemented:
2737 * HtmlDocument.cs: Implemented GetElementsByTagName.
2739 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
2741 * Screen.cs: Stub BitsPerPixel to always return 32.
2743 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
2745 * Form.cs: Implement RestoreBounds.
2747 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
2749 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
2750 Sebastien and his fabulous magical problem-finding machine:
2751 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
2752 respect the value set.
2754 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
2756 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
2757 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
2759 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2761 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
2762 messages (to match .Net), we need to remove the capture ourselves.
2764 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
2766 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
2767 will process the message and close our window.
2770 2008-01-10 Geoff Norton <gnorton@novell.com>
2772 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
2773 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
2776 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
2778 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
2781 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
2783 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
2784 Linux doesn't care, having a minimum matches MS and keeps the window
2785 from becoming too small to use window decorations.
2788 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
2790 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
2791 ShowFocusCues. Make focus rectangles fit the text instead of the whole
2792 control. [Fixes bug #325419]
2794 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
2796 * ComboBox.cs: Guard against an NRE if the user open a new form from a
2797 SelectedIndexChanged event. This closes the combobox dropdown, and we
2798 were trying to dispose it. [Fixes bug #352830]
2800 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
2802 * Control.cs, Form.cs: Implement the necessary semantics for
2803 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
2804 to determine if a focus rectangle should be drawn.
2805 * PropertyGrid.cs: Fix property visibility to match override.
2806 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
2808 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
2810 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
2813 2008-01-09 Geoff Norton <gnorton@novell.com>
2815 * XplatUICarbon.cs: Scroll windows in the correct direction.
2817 2008-01-09 Geoff Norton <gnorton@novell.com>
2819 * XplatUICarbon.cs: Track all created utility windows so we can hide them
2820 when the app is deactivated or spaces is enabled.
2822 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2824 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
2825 extra separation pixel for the label rect origin if SmallImageList is
2826 null, and thus we don't need that separation between icon and label
2828 Patch by Ernesto Carrea.
2831 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
2833 * StatusStrip.cs: Invalidate after completing a layout. The base
2834 OnLayout does this, but we don't call the base.
2835 * ToolStripItem.cs: Revert the previous change to invalidate after
2837 [Fixes bug #351341 better.]
2839 2008-01-07 Geoff Norton <gnorton@novell.com>
2841 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
2842 not a notification to exit the application. Listen for WM_QUIT
2845 2008-01-07 Andreia Gaita <avidigal@novell.com>
2847 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
2849 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
2851 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
2852 so it can repaint at the correct location.
2855 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2857 * ListControl.cs: SelectedValue should return a null value if
2858 SelectedIndex is -1. Also, when setting it, it should throw an
2859 ArgumentNullException if the value is null, as well as taking
2860 into account the String.Empty value, instead of ignoring it (we have
2861 tests for that now).
2862 Fixes part of #324286.
2864 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
2866 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
2867 SelectionStart is updated after pressing enter. Fixes bug #351918.
2869 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2871 * TextControl.cs: Revert a piece r92316 that prevented the fix
2872 from working when there were multiple tags in the text box.
2875 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2877 * TextControl.cs: Apply patch from Luke Page that prevents an
2878 NRE when determining the beginning of a paragraph.
2881 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2883 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
2884 caret gets moved with clicking away from a selected block of
2885 text. Fixes bug #351885.
2887 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2889 * TextControl.cs: Apply patch from Luke Page that takes line
2890 alignment into account for mouse selection, so that center and
2891 right aligned text can be selected.
2894 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2896 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
2897 issues after loading an RTF file by using the correct line feeds.
2900 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
2902 * TextControl.cs: When deleting multiple line selections, we need
2903 to invalidate every line beginning at the first line of the selection.
2904 Patch from Luke Page fixes bug #351791.
2906 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2908 * ListControl.cs: When getting a CurrencyManager.PositionChanged
2909 event, don't set SelectedIndex if the number of items is 1. This is
2910 because, for the first item, PositionChanged is fired _before_
2911 ItemChanged (the place where we actually populate the items), and
2912 leave us in a temporary invalid state (since items collection is
2916 2008-01-04 Geoff Norton <gnorton@novell.com>
2918 * XplatUICarbon.cs: Create native toolwindows instead of
2919 the managed drawing ones.
2921 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
2923 * LineTag.cs: If the line doesn't have any characters, return
2924 0 for GetCharIndex. Fixes an AOORE exception after certain
2925 caret movements. Fixes bug #351683. Patch by Luke Page.
2927 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
2929 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
2930 is hit when there is selected text, only the selected text gets
2931 deleted, not the character in front of the selection as well.
2934 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2936 * ComboBox.cs: When the values are displayed, calculate the
2937 ComboListBox scrollbar's LargeChange based on the visible area's
2938 height and the actuall ItemHeight, instead of calculating it
2939 based on MaxDropItems value, since it's not used by our _current_
2943 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
2945 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
2946 Patch from Luke Page that fixes issues with font colors and styles
2947 not showing up in a readonly RichTextBox. Fixes bug #324354.
2949 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
2951 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
2952 from Luke Page. This one fixes bug #349926.
2954 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2956 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
2957 an item in the IBindingList source changes with
2958 ListChangedType.ItemAdded. Ignore for now firing the event for other
2959 changes, since we want to have tests for those cases as well.
2961 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
2963 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
2966 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
2968 * TextBoxTextRenderer.cs: Implement a cache for measuring each
2969 character. This is effective because the typical usage of a
2970 TextBox is with a limited amount of fonts and characters, and
2971 the current implementation of TextBox measures everything one
2972 character at a time. Another second or two speedup for bug #347238.
2974 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
2976 * Control.cs: Rewrite the Font getter to only query the parent's
2977 Font property once instead of twice. Since this operation is
2978 recursive, the queries were growing exponentially as the control
2979 tree got deeper. Another second or two speedup for bug #347238.
2981 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
2983 * Control.cs: Avoid setting a parent (and more importantly, updating
2984 the zorder of all its children) if the parent is already correct in
2985 WmShowWindow. Decreases the startup time of the test case on bug
2986 #347238 from 35 seconds to 11 seconds.
2988 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2990 * X11Dnd.cs: When the dnd operation has started and we are
2991 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
2992 This is done to match .Net, which doesn't send those messages after
2993 dnd operation was completed/cancelled.
2996 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
2998 * ToolStrip.cs: Previous change should be != null, not == null.
3001 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
3003 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
3004 user may have moved the mouse off the current item during the event.
3006 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3008 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
3009 calling GetItemAt for every MouseMove event by also taking into
3010 account whether any mouse button is pressed (probably dragging);
3011 if so, we can call GetItemAt, and if not, try to not call it
3012 (GetItemAt can be quite expensive when used with a large number of items).
3014 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3016 * ListView.cs: Implement -finally- support for dnd, by calling
3017 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
3019 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
3020 simple calculation of distances for all the items in the owner
3023 2007-12-21 Geoff Norton <gnorton@novell.com>
3025 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
3026 for windows that are originally created as invisible. Fixes missing
3027 main window in paint-mono.
3029 2007-12-21 Geoff Norton <gnorton@novell.com>
3031 * XplatUICarbon.cs: Register our D&D handler. Register our custom
3032 subclass handler for com.novell.mwfview subclassing HIView. Implement
3033 Pasteboard and Dnd methods.
3035 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3037 * ListBox.cs: When we got focus, give focus to first item if there
3038 wasn't any pervious focused item. Also update navigation to depend on
3039 SelectedIndex rather than FocusedItem, just as .Net does.
3042 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3044 * ListBox.cs: Both FindString and FindStringExact methods must do an
3045 case insensitive search, should allow the last valid index to be
3046 passed in the overload taking an initial index, and should also
3047 continue searching from the top back to the specified index when it
3050 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3052 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
3053 redraw issue, and allows RichTextBox to draw colored text even while
3054 disabled or readonly.
3056 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3058 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
3059 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
3060 and doesn't grey text in a disabled RichTextBox.
3062 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3064 * RichTextBox.cs: Apply patch from Luke Page that adds better support
3065 for many RTF commands: quad alignment, separate formatting for blocks
3066 inside groups, and ParDef support. Makes the test case from bug #324589
3069 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3071 * LineTag.cs: Fix an error in the new Draw method that caused
3072 a crash when rendering the document on bug #324589.
3074 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
3076 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
3077 TextControl.cs: Apply patch from Luke Page that adds support
3078 for URL links in RichTextBox.
3079 [Fixes enhancement #342516]
3081 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
3083 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
3084 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
3086 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3088 * ListBox.cs: When a key gets pressed, try to find a string
3089 if the key is a character or a digit.
3092 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3094 * TableLayoutPanel.cs: Remove some unused variables.
3096 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3098 * DateTimePicker.cs: Commit patch from Luke Page that ensures
3099 we don't end up at an invalid date when we click the up/down
3100 spinner to change the month or year. Fixes bug #348682.
3102 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
3104 * Application.cs: Calling Exit in 2.0 should chain to the
3105 Exit (CancelEventArgs) version so it can be cancelled.
3106 * Form.cs: Create a flag to allow raising the Closing
3107 events to be skipped. We raise them once in Application.Exit
3108 and don't want to raise them again when the Form is actually
3109 closed. [Fixes bug #349073]
3111 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
3113 * ToolStripDropDown.cs: Guard against an NRE when there
3114 hasn't been a mainform set in the application context.
3117 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3119 * ListBox.cs: When SetBoundsCore gets called, besides
3120 calling UpdateScrollBars, update the value of
3121 last_visible_index, since we could need to show more items
3122 than before, and we need to let the paint routines know that.
3125 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3127 * ListView.cs: Add DesignerSerializationVisibility attribute to
3128 InsertionMark property.
3129 * ListViewItem.cs: Add same attribute to Position property.
3131 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3133 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
3136 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
3138 * ThemeWin32Classic.cs: Don't draw the background on a
3139 flat button if there is a background image.
3142 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3144 * ListBox.cs: If we remove the item currently selected,
3145 remove it not only from SelectedItems, but also
3146 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
3147 the items count decreased and focused_item has bigger value than that.
3149 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
3151 * Control.cs: Perform our layout after we resize ourselves
3152 if we had to adjust our AutoSize. Missed commit for bug
3155 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
3157 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
3158 we can provide an implementation of AutoSize.
3161 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3163 * ListBox.cs: Add the internal overload Sort (bool paint),
3164 to indicate whether we actually need a paint or we will
3165 call Refresh ourselves. This way we don't request a paint
3166 _before_ having an updated and valid layout.
3169 2007-12-12 Andreia Gaita <avidigal@novell.com>
3171 * XPlatUIX11.cs: Send paint messages when updating a systray icon
3172 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
3173 properly invalidated.
3176 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3178 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
3179 don't simply assign it to our internal group field, but instead
3180 use our Group property, which should do all the neccessary work
3181 required to support groups. Fixes an issue reported to me (mail) by a
3182 guy using this new feature.
3184 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
3186 * Control.cs: Use Scale instead of ScaleControl to ensure the
3187 whole hierarchy gets scaled.
3190 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
3192 * DateTimePicker.cs: Don't set the internal MonthCalendar's
3193 Parent property. Doing this causes the control to be hosted by
3194 the Form instead of being a popup window.
3197 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
3199 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
3200 at an index higher than Count, just use Add instead of Insert.
3203 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
3205 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
3206 DrawPictureBox, this is handled by Control.PaintBackground.
3209 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
3211 * MenuAPI.cs: When process menu keys return true by default only if menu is
3212 active. Fixes bug #342892.
3214 2007-12-09 Andreia Gaita <avidigal@novell.com>
3216 * Control.cs: check if windows are actually mapped before
3217 trying to zorder. Fixes #342509, #346955
3219 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3222 * ListViewInsertionMark.cs:
3223 * ThemeWin32Classic.cs: Implement the drawing side of the
3224 new 2.0 ListView.InsertionMark property.
3226 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
3228 * CurrencyManager.cs: Silence some debug spew.
3230 2007-12-07 Geoff Norton <gnorton@novell.com>
3232 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
3233 masks for our children as well as siblings to avoid having to query
3234 Quartz for this information.
3235 * XplatUICarbon.cs: Implement a delegate based system to pass
3236 information to System.Drawing. Implement Async methods. Remove
3237 the hack for the resize thumb and imlpement a transparent Grow Box.
3238 Rework the messaging system to proplery create window's and messages,
3241 2007-12-06 Andreia Gaita <avidigal@novell.com>
3243 * X11Keyboard.cs: Use Xutf8LookupString to support international
3244 characters under alternate codepages. Patch from #340878
3246 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3248 * ListView.cs: When doing layout computations, set position in the
3249 ListView instances (we cache the position just as .Net does).
3250 * ListViewItem.cs: New internal setter method for Position. Also set
3251 position field as also available in 1.1, since we are going to use it
3252 now in the common case.
3254 2007-12-06 Andreia Gaita <avidigal@novell.com>
3256 * Control.cs: When removing controls, get the actual container
3257 to notify about active control changes. Fixes 341314.
3259 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3261 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
3263 2007-12-05 Andreia Gaita <avidigal@novell.com>
3265 * Control.cs: When updating the zorder, ignore windows that are not
3266 mapped. Fixes #342509
3268 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3270 * ListViewItem.cs: Actually implement serialization on this class.
3272 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
3274 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
3275 LinkCollection. Spaces to tabs, and removed extra tabs.
3277 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
3279 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
3280 tests to fail (hopefully).
3282 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
3284 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
3285 the image margin so custom renderers can correctly place it.
3287 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
3289 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
3290 so custom renderers can correctly place it.
3292 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
3294 * Application.cs: Let WM_CHAR messages flow through to controls
3295 hosted in Strips. [Fixes bug #343972]
3297 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
3299 * ToolStripManager.cs: Guard against an NRE I ran into.
3301 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
3303 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
3304 a Link is manually added to the Links collection, we need to set
3305 its owner, so it can invalidate properly.
3308 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3310 * ListView.cs: When changing ListViewItem.Position (which calls
3311 ListView.ChangeItemLocation), invalidate not only the area
3312 corresponding to the main item, but also to the area occupied
3313 by the items being moved.
3315 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3317 * ListView.cs: When changing the position of a given item,
3318 don't use item bounds, but item areas (which includes the item spacing
3319 between them). Also, use first/last position if the requested
3320 position is outside bounds (as .Net does). Invalidate the previous and
3321 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
3322 in a specific position, instead of directly accessing Items collection
3323 (this is done to get the right item - remember an Item can have a
3324 different position in the grid than in the Items collection).
3326 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
3328 * MessageBox.cs: Calculate text area instead of just top left, this rect
3329 area will be used in DrawString. Fixes bug #343364.
3331 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
3333 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
3334 screen width. Partially fixes bug #343364.
3336 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
3338 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
3339 code inside recalculate, it makes code more simple.
3341 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
3343 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
3344 between update or add icon. Fixes bug #324344.
3346 2007-11-21 Andreia Gaita <avidigal@novell.com>
3348 * XPlatUIX11.cs: Do not treat tool windows as if they have no
3349 window manager, since that stretches the drawing area to include
3350 the window decorations, and they get hidden. Reverts r84444 and fixes
3351 #335849 and #342790 (mdi and pdn3 regression)
3353 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3355 * ListView.cs: When setting focused item, try to give focus to the
3356 previous one _only_ if the previous one remains valid.
3359 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
3361 * Application.cs: Revert r89650, as it broke a common case to fix
3362 an obscure case. Fixes bug #342606.
3364 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
3366 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
3368 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
3370 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
3371 alignment. [Fixes #324228]
3373 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
3375 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
3378 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
3380 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
3381 it prevent problems when empty captions. [Fixes #342141]
3383 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
3385 * Label.cs: Use Size instead of None. Fixes bug #342077.
3387 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3389 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
3391 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
3393 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
3394 but there isn't a MdiContainer.
3397 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
3399 * TextControl.cs: Don't recalculate document if the recalc_start and
3400 recalc_end hasn't changed.
3403 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
3405 * DataGridViewTextBoxCell.cs: Removed CWL.
3407 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3409 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
3411 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
3413 * TextControl.cs: Missed some code for bug 341534 to trigger a
3414 recalculation when the font changes.
3416 2007-11-16 Andreia Gaita <avidigal@novell.com>
3418 * Control.cs: When updating the zorder, check if the child to update is
3419 the same control that is set to always be on top (i.e., scrollbars), and
3420 just put it on top directly. Fixes BadMatch error on pdn3
3422 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3424 * ListView.cs: Throw the needed exceptions for FindNearestItem.
3426 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
3428 * Control.cs: Don't perform a new layout when a label changes its text,
3429 cause label handles its own autosizing.
3432 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3434 * ListView.cs: Implement 2.0 FindNearestItem methods.
3436 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
3438 * ToolStripPanel.cs: Make Join at least add the control to the panel,
3439 even if the rest of what Join does isn't supported. Add some more
3440 support for vertical toolbars.
3441 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
3442 [Fixes the application breaking parts of bug #341998]
3444 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
3446 * ToolStripItem.cs: When determining if we have a check/image margin,
3447 we need to look at ShowCheckMargin as well as ShowImageMargin.
3449 2007-11-15 Geoff Norton <gnorton@novell.com>
3451 * XplatUIOSX.cs: Rename to...
3452 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
3453 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
3455 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
3457 * KeysConverter.cs: The default values should be an array of Keys, not
3458 strings. Also, the array has more values for 2.0.
3461 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
3463 * Application.cs: Change ExecutablePath to use
3464 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
3467 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
3469 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
3470 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
3471 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
3472 be ignored. Create a new GetLineEnding that can specify which types of
3473 line endings to look for. On Insert, only create new lines for \n and \r\n.
3476 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
3478 * TextBoxBase.cs: As we loop through each line changing the font, tell
3479 the document that the line needs to be recalculated. Fixes bug #341534.
3481 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
3482 [Another round of refactoring]
3483 * Line.cs: Add DeleteCharacters.
3484 * LineTag.cs: Add Delete.
3485 * TextBoxBase.cs: Update to use new methods.
3486 * TextControl.cs: Refactor the Delete* methods.
3488 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
3490 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
3491 the patch. [Fixes #324856]
3493 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3496 * ListViewItem.cs: Add an initial implementation of
3497 2.0 ListViewItem.Position getter.
3499 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3501 * ListView.cs: Add a reordered_items_indices array, to allow us
3502 to have a different sorting than that of Items (the sorting in Items
3503 could not match the actual sorting in screen). This is needed to
3504 implement a pair of 2.0 features.
3505 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
3506 actual position in the ListView grid, since it could have a position
3507 different than its Index (position in ListViewItemCollection).
3509 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
3511 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
3512 not draw partial lines.
3513 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
3514 LineLimit flag from the base is preserved.
3515 Fixes the windows part of bug #338965.
3517 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
3519 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
3520 so that it can be canceled in KeyPress.
3523 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3525 * ListView.cs: In ItemControl, reset mouse-handling related
3526 fields even if we dont' have items (we still should reset them when
3527 we had items but then called Items.Clear). Partially based in a patch
3531 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
3533 * Application.cs: In ProductVersion first try AssemblyFileVersion
3534 before falling back to assembly version. Fixes bug #339787.
3536 2007-11-08 Andreia Gaita <avidigal@novell.com>
3538 * HtmlElement.cs: Implement InnerText setter.
3539 * WebBrowserBase.cs: Implement Navigated event support.
3540 Add flag to track when the browser "document" is ready to be retrieved.
3541 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
3542 Make sure browser document is ready before retrieving it.
3543 Clean up cached objects (document) when moving to a new page through
3544 any of the navigation methods.
3545 Use the new Mono.WebBrowser.INavigation interface to control navigation.
3546 Implement OnNavigated event.
3548 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
3550 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
3551 DrawLinkLabel, this is handled by OnPaintBackground.
3552 Fixes bug #339565, part II.
3554 2007-11-07 Andreia Gaita <avidigal@novell.com>
3556 * Control.cs: Revert r88915. Selecting text on a textbox depends on
3557 getting a Select call on click, so this call needs to be here for now.
3560 2007-11-07 Geoff Norton <gnorton@novell.com>
3562 * OSXStructs.cs: Add the kEventClassApplication constants.
3563 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
3564 application is deactivated otherwise Menu overlays linger on top of
3565 other application windows.
3567 2007-11-07 Geoff Norton <gnorton@novell.com>
3569 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
3570 dont support cursors yet anyways. This allows Reflector to run.
3572 2007-11-07 Geoff Norton <gnorton@novell.com>
3574 * XplatUIOSX.cs: Implement DragSize.
3576 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3578 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
3579 ItemControl, request the focus, as .Net does. This is needed after
3580 Control does not request focus anymore when it receives a
3583 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
3585 * Label.cs: Make DrawImage internal so it can be called from Theme code.
3586 Remove the DrawImage call from OnPaint.
3587 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
3588 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
3589 but before we draw the text for DrawLabel and DrawLinkLabel.
3592 2007-11-05 Andreia Gaita <avidigal@novell.com>
3594 * Control.cs: Remove select call on click. Fixes #325809
3596 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3598 * ListViewItem.cs: Add 2.0 Position property getter.
3600 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3602 * ListView.cs: Add 2.0 BackgroundImageTiled property.
3603 Also, to make it work properly, change item's BackColor and
3604 BackgroundImageLayout as needed.
3605 * ThemeWin32Classic.cs: Don't fill any background rectangle
3606 in ListView.ItemControl when drawing items; just let the Control
3607 base implementation fill it.
3609 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3611 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
3612 as well as adding a custom 'dummy' Converter, as .net does.
3614 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3616 * PropertyGridView.cs: When clicking drop-down button,
3617 select an index in the listbox only if our standard values collection
3618 has one or more items.
3620 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3622 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
3625 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
3627 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
3628 the value is not changed. This ensure a pushed button remains in that
3629 state when clicked again. When switching the value of PropertySort
3630 between Categorized and CategorizedAlphabetical, do not update the
3631 grid items and do not fire a PropertyChangedEvent. When clicking the
3632 sorting buttons, do not modify the PropertySort value when switching
3633 between Categorized and CategorizedAlphabetical but only update the
3636 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
3638 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
3640 * PropertyGrid.cs: Also put Categorized button in pushed state when
3641 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
3642 for help description label.
3644 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3646 * ListView.cs: When calculating the biggest item for a given column,
3647 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
3650 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
3652 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
3653 value for PropertySort on 1.0 profile. PropertySortChanged event
3654 should only be fired on 2.0 profile. Fixed NullReferenceException
3655 in UpdateSortLayout when PropertyGrid contains no items.
3657 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
3659 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
3662 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3664 * ListViewItem.cs: Implement 2.0 IndentCount property.
3666 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3668 * X11Dnd.cs: When sending status in a dnd operation, compare current
3669 effect with the 'allowed' field instead of 'drag_data.Allowed', since
3670 the later is only created when a Winforms application is both the
3671 source and the target, but not when we are the target only.
3672 Fixes part of #324251.
3674 2007-11-01 Geoff Norton <gnorton@novell.com>
3676 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
3678 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
3679 children out of the drawing view on mac.
3680 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
3681 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
3683 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
3685 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
3686 on the non-hosted-control part of it shouldn't do anything.
3687 Fixes part of bug #327498.
3689 2007-11-01 Andreia Gaita <avidigal@novell.com>
3691 * WebBrowserBase.cs: revert previous change, resize can be called anytime
3693 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
3695 * Application.cs: When a toolstrip has the keyboard input loop, let messages
3696 it does not use flow through to controls that are hosted in menus.
3697 Same with mouse clicks.
3698 * Form.cs: Don't close all menus on click if the click is on a
3699 control hosted in a menu.
3700 Fixes part of bug #327498, and part of bug #325969.
3702 2007-10-31 Andreia Gaita <avidigal@novell.com>
3704 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
3706 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
3708 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
3709 Addresses an issue raised in bug #336218.
3711 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
3713 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
3714 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
3716 2007-10-30 Andreia Gaita <avidigal@novell.com>
3718 * ContainerControl.cs: Check if the active control is a
3719 child of a removed control and update active_control accordingly.
3722 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
3724 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
3725 or the MaxDate. Fixed bug #337693.
3727 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
3729 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
3730 after calling SetWindowLong for a form, to force an immediate NC refresh.
3731 Fixes first part of bug #325150.
3733 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
3735 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
3736 simple. Fixes the last part of bug #322668.
3738 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
3740 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
3741 needs to be TopMost as well, or else the MessageBox is under the form.
3742 Patch by George fixes bug #325300.
3744 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3746 * X11Dnd.cs: When starting a new drag operation, reset the static
3747 'dropped' field to false (previously the implementation didn't reset
3748 it and got confused after the first drag).
3751 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3753 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
3754 items instead of re-creating them all. For this purpose we now cache
3755 both CategoryGridEntry items and the GridEntries for the main object's
3757 * GridItem.cs: Make SetParent method abstract.
3758 * GridEntry.cs: Override the SetParent method (already there, but now
3762 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3764 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
3765 depending on its depth (as .Net does). Update the needed values in
3766 MouseDown handler. Also draw the plus/minus rect after the label,
3767 so we don't draw on top of it.
3769 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
3771 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
3772 processed by forms or controls when menu is active. [Fixes #333548]
3774 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
3776 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
3777 parent doesn't have focus. This was causing ToolStripTextBoxes to take
3778 focus on mouse over.
3780 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
3782 * TextControl.cs: Code cleaning, simplifying.
3784 2007-10-24 Geoff Norton <gnorton@novell.com>
3786 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
3787 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
3789 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
3791 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
3792 the cap is maxvalue, not actually 0. [Fixes bug #336218]
3794 2007-10-24 Andreia Gaita <avidigal@novell.com>
3796 * SendKeys.cs: apply jpobst's patch to bug #332409
3798 2007-10-23 Andreia Gaita <avidigal@novell.com>
3800 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
3801 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
3804 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3806 * PropertyGridView.cs: If a property has an UIEditor available,
3807 make the drop-down/editor button available only if the property
3810 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3812 * PropertyGridView.cs: Don't make the grid item textbox
3813 editable when a drop-down control is available, but
3814 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
3815 true. The same bur the color of the grid item value's label.
3817 2007-10-22 Geoff Norton <gnorton@novell.com>
3819 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
3820 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
3821 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
3822 driver. Padd the bottom of all real windows so the resize thumb doesn't
3823 obscure scroll/status bars.
3825 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
3827 * WindowsFormsSection.cs: Implement.
3829 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
3831 * MdiClient.cs: Maximize new active mdi child when a maximized child is
3832 closed see #325434 patch.
3834 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
3836 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
3839 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3841 * PropertyGridView.cs: When showing the textbox for a grid item,
3842 have two local variables to store the read-only and non-editable
3843 status of a grid item (we were previously using just one variable
3844 to do this, when actually they are slightly different).
3845 Fixes part of #325023.
3847 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3849 * PropertyGridView.cs: When showing a drop-down list, try to get the
3850 values using TypeConverter.ConvertTo (to convert to a string). Fixes
3853 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3855 * PropertyGrid.cs: When updating a property and populating sub grid
3856 items, remove the previous ones, and invalidate the specific area.
3857 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
3858 area behind a grid item.
3859 * GridItemCollection.cs: Add an internal Clear method, to allow us to
3860 clean the items if needed (specially for controls implementing
3861 ICustomTypeDescriptor and returning a variable number of properties).
3864 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
3866 * TextControl.cs: Clean up and document the Insert function.
3868 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
3870 * TextControl.cs: Make sure we know our start point for updating the view
3871 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
3874 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
3876 * ListView: Couple of corcompare fixes.
3878 2007-10-17 Geoff Norton <gnorton@novell.com>
3880 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
3881 the title caption of real window.
3883 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
3885 * ErrorProvider.cs: Add the error provider's internal window to a
3886 containercontrol when the parent changes. [Fixes bug #329714]
3888 2007-10-17 Geoff Norton <gnorton@novell.com>
3890 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
3891 When we make a new window; restore the old active window - fixes dialogs.
3893 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3895 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
3896 when modifying a property, and if found then invalidate as
3898 Fixes part of #324865.
3900 2007-10-17 Geoff Norton <gnorton@novell.com>
3902 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
3903 highly experimental. Fixed coordinate translation. Fixed window locations.
3904 Initial support for clipping. Implemented NC areas and menus. Support for
3905 launching from command line from Will Johansson (wjohansson@atacomm.com).
3906 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
3907 wjohansson@atacomm.com)
3908 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
3909 Hwnds now track the existence of all of their children for Mac clipping.
3910 * XplatUI.cs: Re-enabled the native driver on the Mac.
3912 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
3914 * Line.cs: Move the InsertString function to here.
3915 * TextControl.cs: Cleanup some duplicate code, move some InsertString
3916 functionality to Line.
3918 2007-10-17 Geoff Norton <gnorton@novell.com>
3920 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
3922 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
3924 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
3925 always setting value to true.
3926 * Form.cs: When changing AcceptButton, notify new and original button.
3928 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
3930 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
3931 a custom control that implements IButtonControl instead of an actual
3932 button. [Fixes bug #334244]
3934 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
3936 * Form.cs: Change SelectActiveControl to internal, we need to call it in
3939 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
3940 active control when activate a new mdi window.
3944 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
3946 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
3950 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
3952 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
3953 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
3954 so we always recalculate the whole document instead of just the new part.
3957 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
3959 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
3960 when the mouse was to the left of the first character in the line.
3962 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
3964 * TextBox.cs, TextBoxBase.cs: When setting the document's password
3965 character, use the property instead of the variable so that the
3966 UseSystemPasswordChar property is taken into account.
3969 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3971 * FolderBrowserDialog.cs: When a node is right clicked and the "New
3972 folder" contex menu appears, actually add the new folder to it, even
3973 if the node is not currently selected. Still use SelectedNode in case
3974 there wasn't found a node under the pointer.
3977 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3979 * ListViewItem.cs: When retrieving the focused state, the index check
3980 should be done only when ListView is in virtualmode, as it is an
3981 expensive check for normal mode.
3983 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3985 * ListViewItem.cs: Make the focus state information be stored
3986 in the ListView, not in the items. This is done to match the MS
3987 behaviour for items that are not yet part of a ListView control;
3988 besides that, since just one item can be focused at the same time,
3989 we save a little space in our items.
3990 Fixes part of #331643.
3992 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
3994 * ComboBox.cs: When focus is lost, deselect the text. When setting
3995 text of control, select all text. Do not hide selection when control
3996 does not have focus. Fixes bug #333663.
3998 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4000 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
4001 instead of ArgumentException when SelectionLength is set to negative
4002 value. Added same check to SelectionStart. Code formatting.
4004 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
4006 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
4007 or SelectionStart. Code formatting.
4009 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4011 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
4012 indicating that there was not a previous drag-and-drop operation going
4014 Fixes part of #325071.
4016 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4018 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
4019 AllowedEffect, don't let the drop operation happen.
4022 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4024 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
4026 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4028 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
4031 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
4033 * Line.cs: Add a method that finds the tag that contains an x-coord.
4034 * LineTag.cs: Add a method that finds the character at an x-coord using
4035 a binary search, the old way was a linear search.
4036 * TextControl.cs: Change FindCursor to use the above new methods.
4038 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4040 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
4041 value different than AllowedEffect). This should be possible to
4042 indicate that dragging is not possible in some control/area.
4044 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
4046 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
4047 descent internally when font changes instead of outside code being responsible
4049 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
4050 instead of accessing internal variables.
4052 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
4054 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
4055 remove special treatment for ArrangeIcons since it is already arranged.
4057 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4059 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
4060 the Win32 backend uses Color.
4061 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4062 Refactor to store a Color instead of a Brush for Color.
4064 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4066 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
4067 away. I didn't realize I needed this when I refactored these earlier.
4069 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4071 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
4072 store a Color structure and use the ResPool for back color instead of
4073 holding onto brushes.
4075 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
4077 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
4080 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4082 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
4083 to recalculate its size. Fixes a part of bug #331052.
4085 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4087 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
4088 button. Fixes a part of bug #331052.
4090 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4092 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
4094 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
4098 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4100 * TextBoxTextRenderer.cs: Don't make this a static class, as static
4101 doesn't exist in 1.1. (Thanks jb!)
4103 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
4105 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
4106 class to allow us to use different backends on different platforms.
4107 Linux uses the current [Draw|Measure]String backend. Windows uses
4108 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
4109 of GDI+. This leads to better looking text and more accurate measurements
4110 on Windows, fixing many of the reported issues.
4111 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
4113 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4115 * FolderBrowserDialog.cs: When running on Windows,
4116 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
4117 since we must match both "C:" and "C:\" forms. A little hackish, but
4121 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4123 * ListView.cs: When calling EndEdit (after editing an item),
4124 create a new instance of LabelEditEventArgs to keep clean the fields
4125 in case we get a new call to BeginEdit; also do Application.DoEvents
4126 to have focus in synch. This is a fix similar to TreeView's #325244.
4128 2007-10-07 Andreia Gaita <avidigal@novell.com>
4130 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
4131 * WebBrowserBase.cs: Added dialog support, calling the
4132 WebBrowserDialogs classes for each specific dialog type.
4134 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4136 * ListView.cs: When the last item is focused and is removed,
4137 move the focus to the previous item (in Items order). This is what MS
4141 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4143 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
4144 instead of the opposite (RemoveAt call Remove). This is a better
4145 approach since we don't need to to a pair of traversals when using
4148 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4150 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
4151 check that the node actually has nodes, and if not, move to the
4152 parent node instead.
4155 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4157 * TreeView.cs: Move the previous change to the general case (to
4158 call Application.DoEvents in cases where the method was called by
4161 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4163 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
4164 call Application.DoEvents. This is neccessary when we get a call to
4165 BeginEdit from an AfterLabelEdit handler, because the focus always
4166 goes to the TreeView, even if we try to give it to our
4167 LabelEditTextBox. The call do Application.DoEvents seems to
4168 synchronize the focus, basically.
4171 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4173 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
4174 should be false. This also removes some nasty recursive paths. Fixes
4177 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
4179 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
4180 state to normal. Also resize window when cascading. Fixes #325433.
4182 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
4184 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
4185 DefaultForeColor, as drawing empty colored lines isn't very useful.
4186 [Fixes the not drawn lines part of bug #324358]
4188 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
4190 * TextControl.cs: Move Line and LineTag classes into separate files to
4191 make things easier to find.
4192 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
4193 * RichTextBox.cs: Capitalize LineTag.Length property access.
4194 - This is purely an organizational/formatting change, no logic changed. -
4196 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
4198 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
4201 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
4203 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
4206 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
4208 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
4209 prevent calling of OnBackColorChanged. Fixes #325321.
4211 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
4213 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
4214 because control can be disabled because owner is disabled.
4216 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
4218 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
4219 string.Empty, test failed from previous change.
4221 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
4223 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
4224 is null, not String.Empty. See bug #323038.
4226 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
4228 * TextControl.cs: Change the margins to match MS a little better.
4229 Still not perfect for X11 due to some DrawString differences, but
4230 is still an improvement over the old stuff.
4231 Partially fixes #324467.
4233 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4235 * FolderBrowserDialog.cs: When using MyComputer as
4236 RootFolder, let absolute paths be considered as valid ones. Also, use
4237 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
4238 for Windows compatibility.
4239 Partially fixes #325247.
4241 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4243 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
4244 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
4245 method, since it causes the dialog to not select folders directly
4246 under the root path (when setting SelectedPath property).
4248 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4250 * TreeNode.cs: When calling Expand/Collapse and need to call
4251 ExpandBelow/CollapseBelow respectively, take into account
4252 partially visible nodes (previously Expanding/Collapsing
4253 a partially visible node in the bottom was not updating its +- sign).
4255 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4257 * TreeView.cs: When calling Expand on a TreeNode, and we need to
4258 expand nodes below (ExpandBelow), scroll the entire Viewport
4259 area if the node is above it and not visible (instead of scrolling
4260 the area from node's Bottom, which applies only when the node is
4264 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4266 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
4267 node in the bottom area (as .Net does). This is done to preserve the
4268 scroll position when ExpandAll is called before handle is created for
4269 the 1.1 profile (bottom area, as opposed to top area in 2.0).
4272 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4274 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
4275 bottom area if we are in fact not using the vertical scroll bar.
4278 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
4280 * Control.cs: Comment out a double buffering optimization that doesn't
4281 take into account invalidates created in OnPaint, causing the control
4282 to never be redrawn. It would take quite a bit of work to work around
4283 this, but I left it commented with an explanation for later possible
4287 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
4289 * Control.cs: Ask parent to perform a layout if control is AutoSize and
4291 * RadioButton.cs: Implement GetPreferredSizeCore.
4294 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
4296 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
4299 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
4301 * Application.cs: Move the sync context stuff to Run instead of RunLoop
4302 so that it doesn't get uninstalled on modal forms.
4303 * Control.cs: Install a sync context when a control is created.
4304 * WindowsFormsSyncronizationContext.cs: Create a private static control
4305 to invoke on. This is easier than trying to find a created control we
4309 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
4311 * Application.cs: Install a WindowsFormsSynchronizationContext in the
4312 run loop, and uninstall it when done.
4313 * WindowsFormsSynchronizationContext.cs: Implement.
4314 [Fixes the common case in bug #327608]
4316 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
4318 * DataGridViewCellCollection.cs: Added argument checks for indexers.
4319 Use case-insensitive lookup of column name in indexer. Code
4322 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4324 * TreeNode.cs: When collapsing or expanding a node, check whether its
4325 change will affect the visible area (we were previously doing a
4326 IsVisible check, but that check is not enough since children nodes
4327 could be still visible). Fixes part of #325266.
4329 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
4331 * TreeView.cs: Always select the first node when the TreeView gets
4332 focus if there is no currently selected node.
4335 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
4337 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
4338 node being selected is null.
4339 [Patch from Yves Bastide fixes bug #326858]
4341 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4343 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
4344 whether all the parent nodes are expanded.
4345 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
4346 call RecalculateVisibleOrder if all previous nodes are expanded.
4347 Before that we were doing a IsVisible check, but sometimes the node
4348 is not in the visible area, but _should_already be ready, because of
4349 all previous nodes are expanded. Fixes #325259.
4351 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
4353 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
4354 portion of the item is clicked.
4356 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
4358 * TextControl.cs: Do not tell the system to move the cursor if the
4359 textbox isn't focused. Fixes part of bug #322668.
4361 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
4363 * ComboBox.cs: When there are no items, do not show the dropdown if
4364 the down arrow is clicked. Fixes part of bug #322668.
4366 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
4368 * ToolStripComboBox.cs: Manually set the size of this control in the
4369 constructor, as it doesn't seem to be the same as DefaultSize.
4370 Fixes a failing monobuild test.
4372 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
4374 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
4375 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
4377 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
4379 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
4380 Desktop. This lets it work for people who have moved their desktops
4381 from the default location on windows. For people who have not, both
4382 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
4384 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4386 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
4387 but when the base constructor sets this, the control is null. Set it
4388 again in the constructor. Fixes a failing monobuild test.
4390 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4392 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
4394 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
4397 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4399 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
4400 will handle it themselves.
4401 * ToolStripItem.cs: When deciding what the text of a tooltip should
4402 be, use the Text property instead of the text field.
4403 * ToolStripTextBox.cs: Handle tooltips.
4404 [Fixes bugs #325417 and #325973]
4406 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4408 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
4409 left click. Fixes the easy part of bug #325969.
4411 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
4413 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
4414 bug #325406, but set a minimum for StatusStrip to 22 to keep
4415 bug #325390 fixed. I think this minimum would have been figured
4416 up automatically if the grip was actually a ToolStripItem, but it
4419 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4421 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
4422 as this is apparently the actual value used by .Net. Also apply
4423 ItemPadding in Details view only, and decrease the general width padding,
4424 to have only the needed. This should fix #324340 in Windows too.
4426 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4428 * ListViewItem.cs: Don't Invalidate item if parent is inside
4429 a BeginUpdate/EndUpdate block. This prevents to have differences
4430 between the ListView and items state, as well as avoid some exceptions
4432 * ListView.cs: Make 'updating' field internal.
4434 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4436 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
4437 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
4438 size if appropriate.
4439 Fixes reopened bug #325414.
4441 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4443 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
4444 * ToolStripItem.cs: Invalidate before and after our new autosize when
4446 Fixes reopened bug #325390.
4448 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4450 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
4451 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
4454 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
4456 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
4458 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4460 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
4461 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
4464 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
4466 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
4467 item to select when the ToolStrip is selected.
4468 * ToolStripControlHost: Realign the control when the bounds or visibility
4470 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
4471 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
4473 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
4474 base.OnPaint. Was causing text not to be drawn.
4476 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
4478 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
4480 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4482 * TreeView.cs: When creating the label edit text box,
4483 set is initially to Visible = false. This is done to
4484 prevent a confusion in the layout which makes it to lose
4485 focus when shown the first time. Fixes part of #82592.
4487 2007-09-13 Andreia Gaita <avidigal@novell.com>
4489 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
4491 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4493 * ToolStrip.cs: Take Margin into account when calculating preferred
4494 size. Also, allow preferred size to get smaller than the explicit
4496 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
4497 First step towards fixing bug #82747.
4499 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4501 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
4502 full row select background over the plus/minus glyph. Also, turn
4503 off the focus rectangle for full row select since MS doesn't seem
4504 to ever paint it. [Fixes bug #81839]
4506 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4508 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
4509 This was causing keyboard opened dropdowns to lose focus.
4512 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4514 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
4515 ClientRectangle instead. [Fixes bug #82838]
4517 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
4519 * SplitContainer.cs: We can't reset Visible on every layout because
4520 someone may have set Visible = false explicitly on a SplitterPanel.
4521 Make sure when we switch orientation the SplitterDistance does not
4522 change. Fixes two failing tests.
4524 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4526 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
4527 TextRenderer, since the latter is only available in 2.0.
4529 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
4531 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
4532 * SplitContainer.cs: Implement FixedPanel layouting.
4534 2007-09-12 Andreia Gaita <avidigal@novell.com>
4536 * WebBrowserBase.cs: setup shutdown routine
4538 2007-09-12 Andreia Gaita <avidigal@novell.com>
4540 * Application.cs: Let keyboard events that are targetted
4541 to non-mwf windows hosted inside mwf (as in, webbrowser),
4542 propagate properly. Fixes keyboard handling on the webbrowser.
4544 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4546 * ListView.cs: When handling MouseUp event and we are
4547 highligting a node with the mouse right button, don't trigger
4548 Before/AfterSelecting event, since we are not actually selecting
4551 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4553 * TreeView.cs: When editing a node, modify the edit text box
4554 depending on the text length (as you are typing), like MS does.
4556 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
4558 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
4559 Override GetPreferredSizeCore to perform calculations. Remove custom
4560 autosize logic. [Fixes bug #82739]
4562 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
4564 * TextBoxBase.cs: Modified should default to false.
4566 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4568 * Control.cs: Update the anchoring distances even when layout is supspended.
4569 Patch provided by George fixes bug #82805.
4571 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4573 * Control.cs: Provide a setter for ExplicitHeight.
4574 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
4575 remove the hacks in here for requested_height.
4578 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4580 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
4581 Maximum to lower that its current Value caused an ArgumentException by setting
4582 the Value to the new Maximum.
4584 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4586 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
4587 handle moves to the closest tick when it is being dragged.
4590 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
4592 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
4593 can't let them count as real items when calculating where to merge in the
4594 user's items. [Fixed bug #82786]
4596 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
4598 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
4599 who want to add a menu item directly onto a toolstrip.
4600 [Fixes bug #82775, part II]
4602 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
4604 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
4605 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
4606 don't set it to available.
4607 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
4608 [Fixes bug #82727, part II]
4610 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
4612 * StatusStrip.cs: Change item placement to None if not visible.
4613 * ToolStripItem.cs: Invalidate when InternalVisible changes.
4614 These should have been committed to fix 82723, but I missed them.
4616 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
4618 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
4619 Click, and that it is only called once.
4620 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
4621 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
4625 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4627 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
4629 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
4630 instead of 8, just like above. Partially fixes #82734.
4632 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4634 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
4637 * ListView.cs: Remove extra space between rows in Details view (match
4639 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
4642 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
4644 * Application.cs: Modified ProductVersion to return value of
4645 AssemblyInformationVersion if available, and fallback to assembly
4646 version. Fixes bug #82746. Code formatting.
4647 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
4650 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4652 * Control.cs: When updating ZOrder for a child control,
4653 take into account the implicit ones (we need it in our controls
4654 using them). Fixes #82642.
4656 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
4658 * ToolStripItem.cs: Add support for animated images.
4661 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
4663 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
4664 visible. [Fixes bug #82727]
4666 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4668 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
4669 so we repaint using the new size. [Fixes bug #82723]
4671 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4673 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
4674 option. [Fixes bug #81779]
4676 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4678 * TreeView.cs: Override HandleClick because the StandardClick style is
4679 set to false. According to MSDN (and testing), the click events should
4680 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
4682 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4684 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
4685 the border will disappear. Fixes reopened #82653.
4687 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4689 * Control.cs: If the control is autosize, and its preferred size changes
4690 when it lays out its children, tell its parent so it can be re-layed out.
4691 Fixing some of the fallout from r85433.
4693 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4695 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
4696 and CheckBox share some code.
4698 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4700 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
4701 the TrackBar, not every mouse move. [Fixed bug #82718]
4703 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4705 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
4706 under 2.0 rendering. [Fixes bug #82657]
4708 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4710 * TreeView.cs: If we found a TreeNode to display a context menu, but
4711 it doesn't have one to show, let the TreeView display its menu
4712 instead. [Fixes bug #82680]
4714 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
4716 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
4717 OnPaintInternal instead. Give the internal TextBox a Border property
4718 so it can draw itself more correctly. [Fixes bug #82653]
4720 2007-09-06 Zoltan Varga <vargaz@gmail.com>
4722 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
4724 2007-09-05 Everaldo Canuto <everaldo@simios.org>
4726 * ComboBox.cs: Adjust combobox button state to reflect current state when
4727 back to enabled = true. Fixes first issue of #82654.
4729 2007-09-05 Everaldo Canuto <everaldo@simios.org>
4731 * Control.cs: Fix last patch regression, prevent forms to update zorder when
4732 setting visible property.
4734 2007-09-05 Everaldo Canuto <everaldo@simios.org>
4736 * Control.cs: Update zorder after control creation in SetVisibleCore, it
4737 fix zorder for controls initially created as non visible. Fixes #82667.
4739 2007-09-04 Everaldo Canuto <everaldo@simios.org>
4741 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
4742 mimic win32 look. Fixes #82656.
4744 2007-09-01 Zoltan Varga <vargaz@gmail.com>
4746 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
4747 Stubs for new net 3.5 classes.
4749 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4751 * ListViewItem.cs: In ListViewItemCollection operations calculate
4752 Layout for owner as well as invalidate it. Fixes part of #82642.
4754 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
4756 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
4757 when returning Enabled. [Fixes bug #82651]
4759 2007-08-30 Everaldo Canuto <everaldo@simios.org>
4761 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
4763 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4765 * ListView.cs: Put item padding info in a single place
4766 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
4768 * ThemeWin32Classic.cs:
4769 * Theme.cs: Likewise.
4771 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4773 * ListView.cs: When a ListViewSubItem instance is invalidated,
4774 invoke Invalidate on parent ListViewItem, not parent ListView.
4777 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
4779 * ListView.cs, ListViewItem.cs: corcompare stuffs.
4781 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
4783 * BindingMemberInfo.cs: Implement == and != operators.
4785 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
4787 * HtmlElementEventArgs.cs: Implement properties.
4789 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
4791 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
4793 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
4795 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
4796 Add (string,string,string) to implement the imagekey. It turns out, we
4797 use the requested imagekey whereas .Net does not. So I broke ours to match
4800 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
4802 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
4804 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
4806 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
4808 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
4810 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
4811 up-to-date. Fixes bug #82618.
4813 2007-08-29 Everaldo Canuto <everaldo@simios.org>
4815 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
4816 reflect document changes. Fixes #82367.
4818 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4820 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
4821 as well as add new ones. This should make work the BackgroundImage
4822 property for ListView again.
4824 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
4826 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
4827 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
4828 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
4830 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
4832 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
4835 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
4837 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
4838 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
4840 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
4842 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
4843 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
4845 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
4847 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
4849 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
4851 * GridEntry.cs: Implement GetService.
4853 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
4855 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
4856 for label editting, make sure we focus back on the TreeView.
4859 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4861 * ListView.cs: Add some 2.0 overrides.
4863 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
4865 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
4866 because getter dont returns right value before handle creation. Thanks
4867 to George. Fixes #82569.
4869 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
4871 * Theme.cs: Revert last patch, it causes error under win32.
4873 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
4875 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
4876 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
4877 logical Desktop rather than the physical file system location. Fixes #82603.
4879 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
4881 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
4882 for the patch. Fixes #82568.
4884 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4886 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
4889 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4891 * ListViewInsertionMark.cs: New stubbed class.
4893 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
4895 * FolderBrowserDialog.cs: When adding folder, immediately create the
4896 directory with temporary name and rename the directory when editing
4897 finishes. This matches MS. Ensure the node for the new folder is
4898 selected and LabelEdit is disabled, when editing is either finished
4901 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
4903 * TreeView.cs: When editing label of node, ensure node is visible.
4905 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
4907 * PropertyGridView.cs: Set the value only if it has changed.
4909 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4911 * ListView.cs: Some more code refactoring to add support sorting
4912 with groups (now for Details view). Remove unused code also.
4914 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
4916 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
4917 Not a big fan of reacting immediately to a field in an EventArg, but that's
4918 the way it's done. (This is part of the previous commit that got left out.)
4920 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
4922 * FolderBrowserDialog.cs: Removed need for separate description field.
4923 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
4924 has focus when dialog box is displayed again, regardless of what
4925 button was pressed the previous time. Set RootFolder and SelectedPath
4926 each time dialog box is displayed. This ensures the treeview is
4927 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
4928 when it does not have focus. Added support for more special folders.
4930 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
4932 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
4933 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
4934 it resets the edit_args.
4935 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
4938 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
4940 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
4941 button to match MS. Provide more meaningful exception message for
4942 invalid RootFolder value. Use zero-length string when SelectedPath
4943 is set to null. Allow non-rooted paths in SelectedPath, but ignore
4944 them in FolderBrowserTreeView. Allow folders to be created in
4945 RootFolder. Fixes bug #82576.
4947 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4949 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
4950 since we need to take into account the group headers and the margin
4952 * ListViewGroup.cs: Add a rows field to store the number of rows per
4955 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
4957 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
4958 Anyways, let's just follow the lead.
4960 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
4962 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
4963 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
4964 controls in GetPreferredSizeCore.
4965 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
4968 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
4970 * PrintDialog.cs: Need to instantiate the form variable here too.
4972 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4974 * ListView.cs: Do some reorganization to support sorting in groups,
4975 by doing the layout sequentially in ListView.Items. Also add support
4976 for the Default Group, which should be available for items with no
4978 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
4979 for storing layout info also.
4980 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
4981 collection, as well as providing internal members to do a traversal
4982 including the default group (needed when doing layout/drawing).
4983 * ThemeWin32Classic.cs: When drawing group headers use internal
4984 ListViewGroupCollection members to take into account the default
4987 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
4989 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
4991 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
4993 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
4994 been created. If handle is created, we want arror keys. If we are editing
4995 a node, we want things like enter, esc, home, end, page up, page down.
4996 Allows Esc to work for FolderBrowserDialog.
4998 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5000 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
5001 they close when ESC is pressed. Thanks Andy!
5003 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5005 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
5006 This way we can tell if this is a CommonDialog provided with mono, or one
5007 that is being implemented outside by a developer. If it is an external one,
5008 the developer is responsible for showing their own form. We were showing
5009 our blank form after the developer showed his.
5010 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
5011 PageSetupDialog.cs: Instantiate form variable in our constructor.
5014 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5016 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
5017 and always return true. [Fixes bug #81616]
5019 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
5021 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
5022 TextBox. [Fixes bug #82549]
5024 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
5026 * FileDialog.cs: When Save/Open is clicked and no filename is selected
5027 or entered then do not close the dialog. Fixes bug #82539. Removed
5030 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
5032 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
5033 code to this method. It is calling every time filter changes. This method
5034 will help to fix the bug #80887.
5036 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
5038 * CheckBox.cs: Implement AutoSize calculation.
5040 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
5042 * CheckBox.cs: Use new 2.0 rendering for 2.0.
5043 * Theme.cs: Method declarations for 2.0 rendering path.
5044 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
5046 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5048 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
5050 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5052 * ListViewGroupCollection.cs: Implement AddRange the right way, to
5053 only call Redraw on the parent one time.
5055 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5057 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
5058 GetClipboardContent.
5059 * DataGridViewCell.cs: Implemented GetClipboardContent,
5060 GetEditedFormattedValue, GetFormattedValue.
5061 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
5063 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
5065 * TableLayoutStyleCollection.cs: corcompare fix.
5067 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5069 * DataObject.cs: Implemented retrieval of convertible / not convertible
5072 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
5074 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
5075 ourselves. This ensures the entire old bounds are repainted, in case our new
5076 size is smaller. [Fixes bug #82518]
5078 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
5080 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
5081 flag to make fast handle of mouse events, without this the mouse move is
5082 handled in some manner, whether it is a mouse move or not. Fixes #81588.
5084 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5086 * ListView.cs: When doing layout calculations don't use a ref
5087 param to keep the current item; instead use its Index value (this
5088 is specially important when doing the layout with Groups
5089 and Items being sparse). Also don't take into account items added to
5090 the Group but not yet added to the main ListView.Items collection.
5092 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5094 * ListViewGroupCollection.cs: Forgot to mimic an issue
5095 in the indexer (don't assign the ListView owner for new values).
5097 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5099 * ListViewGroupCollection.cs: Make the string indexer use
5100 the int based indexer to re-use code, instead of duplicate the code.
5101 Also Redraw as needed and take into account null values.
5103 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
5105 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
5108 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
5110 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
5111 when other buttons are clicked or navigated to.
5113 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5115 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
5116 it's XplatUIX11 that attaches them.
5118 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5120 * DataGridView.cs: If a column has been added, recreate the editing row.
5123 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5125 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
5126 of the tag to draw. Makes disappearing text show up again.
5128 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5130 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
5131 Contents. Fixes #82487.
5133 2007-08-19 Andreia Gaita <avidigal@novell.com>
5135 * Added HtmlElement.cs, HtmlElementCollection.cs,
5136 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
5138 2007-08-19 Andreia Gaita <avidigal@novell.com>
5140 * BindingSource.cs: Implement this, dispose and getenumerator.
5141 * DataGridViewRowCollection.cs: Move the InvalidOperationException
5142 out of AddInternal, throw it only on public Add calls. The
5143 UsingWebBrowser sample was blowing up with this when setting the
5144 DataSource after adding DataBindings, so it's likely that .net
5145 only throws this exception when Add is called directly.
5147 * ToolStripControlHost.cs: Return the hosted control's text
5148 property, and not the ToolStripItem one (it would always return
5151 * HtmlDocument.cs: Implement GetElementById and All
5152 * WebBrowser.cs: Remove exception on set_DocumentStream.
5154 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5156 * Form.cs: Fix the max and min value for opacity (0~1).
5158 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5161 * DataGridTableStyle.cs: Default header font is now null, on getter it
5162 returns datagrid font when is null. On setter permits null.
5165 - When ResetHeaderFont set header font to null.
5166 - On EndInit set grid_style.DataGrid.
5168 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5170 * TabControl.cs: Fix regression in default padding x.
5172 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5174 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
5176 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
5178 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
5179 not 2. Fixes #82229.
5181 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5183 * TabControl.cs: Fix tab size when image height is less than text height.
5184 Partially fixes #81837.
5186 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5188 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
5189 "alt + tab". It works only for Win32, for X11 theres no way to remove window
5190 from taskbar and keep it on "alt_tab". Fixes #81722.
5192 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5194 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
5195 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
5196 Fixes #80877 and #79418.
5198 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5200 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
5201 between position and one of the screen borders. Fixes #82349.
5203 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5205 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
5206 the MessageBox in the taskbar. Fixes #82457.
5208 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
5210 * MessageBox.cs: Fix form size when icon is set and text height is bigger
5211 than icon. Fixes #82468.
5213 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
5215 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
5216 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
5217 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
5218 Refactored HandleNCCalcSize somewhat to avoid code duplication.
5219 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
5220 FormBorderStyle to decide if we're calculating a new size from the
5221 client size or not. CreateParams: Don't fake tool windows, only the X11
5222 backend manages toolwindows manually.
5224 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5226 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
5227 ObjectDisposedException.
5229 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5231 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
5232 in OnLoad should not have any effect. [Fixes bug #82470]
5234 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5236 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
5237 paint for controls that create their own ToolTipWindow instead of
5238 going through ToolTip.
5240 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5242 * ToolTip.cs: Make Hide internal instead of public to match MS API.
5244 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5246 * ListViewGroupCollection.cs: Use generic List instead of an
5247 ArrayList, since this collection is 2.0 only.
5249 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
5251 * ToolTip.cs (Hide): Made public to make the build work (should
5252 this not be public?).
5254 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5256 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
5258 * ToolTip.cs: Add an internal Visible property to facilitate transition.
5260 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
5262 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
5263 PopupEventHandler.cs: Make these internal for 1.1.
5264 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
5265 use ToolTipWindow internals.
5266 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
5267 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
5269 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5271 * X11Dnd.cs: Add a null check.
5273 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5275 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
5276 nothing else succeeds. Fixes #82453.
5278 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5280 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
5281 rectangle if we're painting to another window than the one the paint
5282 message was generated on. Simplify the code somewhat, which makes
5283 PaintEventEnd also simpler.
5285 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5287 * Control.cs: When changing parent of a form, let the form decide whether
5288 XplatUI.SetParent should be called or not.
5289 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
5290 recreating the handle. If the new parent's handle isn't created, don't
5291 recreate our handle, just destroy it. CreateParams: Check if the
5292 parent's handle is created before fetching it.
5294 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5296 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
5297 Update calls to PaintEventStart/End to take a Message argument.
5298 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
5299 take a Message argument.
5300 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
5301 Message argument, and handle the case where we don't paint to the window
5302 for which the paint message was generated.
5304 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
5306 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
5307 Marshal.GetLastWin32Error. Plug nasty memory leak in
5308 PaintEventStart/End, we were creating a DC we weren't releasing.
5310 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5312 * ListView.cs: Add Groups support in Details view. Also have a small
5313 method to do the layout of the group header. Don't use a separate
5314 method to do the groups calculation in Icons view, since our methods
5315 are now a little simpler.
5316 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
5318 * ThemeWin32Classic.cs: Likewise.
5320 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
5322 * Application.cs: Add FilterMessage method and rework our message loop
5325 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
5327 * Application.cs: Add some methods and stub a few methods that are
5328 pretty much never used.
5330 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
5332 * TreeNode.cs: Add some serialization methods.
5334 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5336 * ListView.cs: In ListViewItemCollection have a
5337 'is_main_collection' field to not modify ListViewItem.ListView
5338 when using it as ListViewGroup.Items (and not ListView.Items)
5339 and also don't modify selection state (.Net behaviour).
5340 Instead, set group for items contained in a ListViewGroup.Items collection.
5341 * ListViewItem.cs: Simplify some code in Group setter.
5342 * ListViewGroup.cs: use the new .ctor to pass the current instance
5343 to the ItemsCollection.
5344 * ListViewGroup.cs: Set the ListView property for ListViewGroup
5345 instances when adding/removing. Also make Remove use RemoveAt, which
5346 should perform better.
5348 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
5350 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
5351 that crept into the 1.1 profile.
5353 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
5355 * ToolBarButton.cs: Implement ImageKey.
5357 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
5359 * ToolBar.cs: Implement ScaleControl/ScaleCore.
5361 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
5363 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
5364 created, it might have gotten destroyed since we last checked. Fixes
5367 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
5369 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
5370 tooltip will hide when mouse is moved off the control.
5373 2007-08-11 Andreia Gaita <avidigal@novell.com>
5375 * WebBrowserBase.cs, WebBrowser.cs: add implementation
5376 using Mono.Mozilla for loading and navigating webcontrol
5378 The initial implementation was done on
5379 /trunk/mozembed/tests/browser , and copied here.
5381 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
5383 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
5384 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
5386 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
5388 * DataGridView.cs: Add support for an editing row. Fixes #82226.
5389 RowTemplateFull: throw an exception if a column doesn't have a template.
5390 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
5391 add the row just before it.
5392 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
5394 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
5395 DataGridView field to be able to reach the grid's editing row.
5397 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
5399 * ToolTip.cs: If the control's handle hasn't been created when it has a
5400 tooltip set on it, don't check to see if we need to show the tooltip. This
5401 check was causing the control's handle to be created.
5404 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
5406 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
5408 Handle Not Created -1 0
5412 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
5414 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
5417 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
5419 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
5420 * ToolTip.cs: Implement some properties and owner draw.
5422 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5424 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
5425 show them again, since setting visibility causes a paint, causing an
5426 endless loop (instead use a temporary and set it all when it's known if
5427 they should be shown or not). Fixes #79265.
5429 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5431 * DataGridView.cs: Only do a full column/row selection if a header was
5432 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
5433 isn't pressed, deselect everything before selecting something.
5435 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5437 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
5438 behaviour according to bug #81075 - they are returned in the order they
5439 are selected. Fix HitTest to check if the point is within any of the
5440 headers. Allow for row/column selection when in ColumnHeader or
5441 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
5442 the row and column to call when their selected state changes, and
5443 updated selected_[rows|columns] whenever SetSelected* is called.
5444 * DataGridViewBand.cs: Initialize isRow correctly. Call
5445 SetSelected[Row|Column]CoreInternal when the selected state changes, and
5446 add a SelectedInternal to avoid StackOverflows.
5447 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
5448 ReadOnly no matter what.
5449 * DataGridViewSelectedColumnCollection.cs,
5450 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
5451 the items in reverse order (just as MS does...)
5453 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
5455 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
5456 itself, not part of a mnemonic. [Fixes bug #82378]
5458 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5460 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
5461 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
5462 the DGV, the column, the row, or the cell itself is readonly.
5464 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
5466 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
5468 * FileDialog.cs: Same.
5469 * TextRendered.cs: Same.
5470 * FolderBrowserDialog.cs: Same.
5471 * TextBoxBase.cs: Same.
5472 * Application.cs: Same.
5474 * ThemeClearLooks.cs: Same.
5476 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
5478 * XplatUI.cs: Added RunningOnUnix property to be used by controls
5479 instead of duplicating these checks everywhere.
5480 * FileDialog.cs: Use case-insensitive comparison for populating the
5481 DirComboBox when not running on unix. Fixes bug #82385.
5482 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
5485 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5487 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
5488 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
5489 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
5490 cell and column selection with ctrl and shift pressed. Call the correct
5491 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
5492 the corresponding virtual method (PaintBackground to paint background,
5494 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
5495 either the column, row or the cell itself is selected.
5496 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
5498 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
5499 here. When the row is selected, don't select all cells. Each cell now
5500 queries the row to see if the row is selected.
5502 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
5504 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
5507 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5509 * ListView.cs: In ListViewItemsCollection check that owner is
5510 not null before trying to access it (this happens quite often
5511 using Groups). Also don't duplicate calls by calling CollectionChanged
5514 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
5516 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
5517 when we are dismissed to clear keyboard mnemonics.
5518 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
5519 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
5520 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
5521 was activated by keyboard or the OS tells us to always draw them.
5522 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
5523 [Fixes bugs #82376, #82377]
5525 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
5527 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
5528 shot at having it because Alt was pressed.
5529 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
5530 the first real menu item.
5531 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
5532 a mnemonic if Text is null.
5535 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5537 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
5538 search do check whether the item is already contained in the
5539 collection or not; instead check if the owner of the item is the same
5540 as ours. Also, remove a redundant check in the same method.
5542 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
5544 * Control.cs: Allow the clip region to be set back to null.
5545 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
5546 [Fixes button still showing up in bug #82370 when Show Through is turned off]
5548 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
5550 * GridEntry.cs: Add a null check.
5551 * PropertyGrid.cs: When checking for existing grid entries, ignore category
5552 entries. Fixes #82297.
5554 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
5556 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
5559 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
5561 * ListBox.cs: Implement ScaleControl.
5563 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5565 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
5567 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
5568 parent has a menu strip. Fixes #81689.
5570 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5572 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
5573 moments, so apply some fuzzy logic to determine if the mouse is still
5574 inside a control or not. Fixes #82288 (for the third time).
5576 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5578 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
5579 Don't create the child if it has been disposed already (may happen if
5580 the user closes the form the Load event).
5582 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5584 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
5587 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
5589 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
5590 might call us after we've been destroyed, in which case our own private
5591 parent field is null. Fixes #82326.
5593 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
5595 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
5596 check for setting the dropdown's owner.
5598 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
5600 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
5601 before removing system menu items.
5603 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
5605 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
5607 * MdiControlStrip.cs: Added. These are the menu items used in mdi
5609 * ToolStrip.cs: Add a null check to mnemonics.
5610 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
5612 [Fixes most of bug #81689]
5614 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5616 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
5618 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
5620 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
5622 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
5624 * DataGridViewCell.cs: EditType: returns
5625 DataGridViewTextBoxEditingControl always.
5627 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
5629 * TextRenderer.cs: Remove the LineLimit string format flag from the
5630 DrawString fallback method so that things like buttons that aren't
5631 tall enough to draw a full line will still draw part of the text.
5632 [Fixes part of bug #82272]
5634 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
5636 * DataGridView.cs: Implemented AutoResizeColumn(s).
5637 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
5638 according to the Alignment.
5639 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
5640 Implement alignment and padding when painting.
5641 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
5643 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
5645 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
5648 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
5650 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
5653 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
5655 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
5656 hide GetPreferredSize from public API.
5657 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
5658 * ToolStripItem.cs: Stub out drag and drop methods and events.
5659 * ToolStripManager.cs: Stub out Save/LoadSettings.
5660 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
5661 * ToolStripPanel.cs: Fix corcompare error.
5662 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
5663 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
5664 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
5666 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
5668 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
5669 bounds height instead of PreferredHeight. Puts things back the way
5670 they were for height while still fixing the width. Fixes broken unit
5673 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
5675 * Binding.cs: Implement 2.0 constructors and add a null check.
5677 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
5679 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
5680 and fix row index (off by one).
5682 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
5684 * PropertyGridView.cs: Remove debug output.
5686 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
5688 * Control.cs: We need to reset the is_created flags when the handle is
5689 destroyed. Fixes #82187.
5690 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
5691 client coordinates if the window doesn't have a parent.
5692 Win32GetParent returns the parent or the owner, and for top-level
5693 windows with no parent (but with an owner) we were calculating the
5694 location from the location of the owner.
5695 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
5696 form has been disposed.
5697 * MdiClient.cs: Add a null-check.
5699 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
5701 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
5702 actually do auto-sizing. Override the internal GetPreferredSizeCore
5703 so we can provide an implementation that returns the current width
5704 and preferred height. Allows anchor = right to work with TextBox 2.0.
5707 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5709 * ListView.cs: Add support for navigating items in Groups mode, by
5710 creating a big matrix containing all rows and cols of all groups. When
5711 are in other mode than Details, pressing Up should have a similar
5712 behaviour as that one of Down (moving to the next available column if
5713 current one doesn't have an item in the requested row). Also, don't
5714 proceed to use groups if ShowGroups is false.
5715 * ListViewGroup.cs: Add an internal int field to store the starting
5716 row of the group (used by the big matrix used for navigating the
5718 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
5721 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
5723 * ToolStripDropDown.cs: When we do Show, start with the
5724 DefaultDropDownDirection, but if our popup menu is going to off-screen,
5725 modify the direction to keep it on screen. [Fixes bug #82210]
5727 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
5729 * FileDialog.cs: Accept any FilterIndex value, and store it
5730 unmodified. When FilterIndex is less than 1, or greater than number
5731 of filters, then default to first filter. Only add filter extension to
5732 file if user did not specifiy an extension. When type of dialog is
5733 OpenFileDialog and DefaultExt is set, then only use filter extension
5734 if: CheckFileExists is true and no file wih the default extension
5735 exists, or CheckFileExists is false, and user specified file does not
5736 exist. When CheckFileExists is true, then add first extension of
5737 selected filter that matches existing file. Perform checks for
5738 existing file, overwrite and create after extension has been added to
5739 file name. When CheckFileExists is true and type is SaveFileDialog,
5740 then only consider first filter extension if DefaultExt is set.
5741 When CheckFileExists is true, then ignore DefaultExt if file with that
5742 extension does not exist. Also perform check for existing file when
5743 type is SaveFileDialog. Changed some field to constants.
5745 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5747 * ListView.cs: Take into account the region used by header
5748 control when doing the vertical scroll (this way we invalidate
5749 the precise area, and don't get any dirty one).
5751 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
5753 * FileDialog.cs: Check for valid filterIndex on button open/save.
5756 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5758 * ListView.cs: Update some layout calculations in details view
5759 and clean the code in a pair of assignations.
5761 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
5763 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
5764 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
5765 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
5766 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
5768 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
5770 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
5771 performance of thread-safe Graphic methods. (Thanks rolf!)
5773 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5775 * ListView.cs: When doing the layout calculations, don't calculate
5776 scroll bars before handle is created. This is unnecessary and also
5777 calculating them before handle creation item causes a number of random
5778 bugs (which begin to appear after Chris' big patch for handle creation
5781 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
5783 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
5784 for things that don't have a Graphics object. Currently, things just use
5785 the static Hwnd.bmp_g which is not thread safe.
5787 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
5789 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
5790 dialog. Fixes #82187.
5792 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
5794 * DataGridViewElement.cs: Initialize state.
5795 * DataGridView.cs: Forward a few Mouse events to cells. Add
5796 GetRowInternal and GetCellInternal that doesn't unshare rows.
5797 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
5798 don't use the index, but look it up. Add
5799 DataGridViewControlCollection.RemoveInternal to remove controls
5800 that Remove won't remove (scrollbars, edit control).
5801 * DataGridViewColumn.cs: Initialize State correctly.
5802 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
5803 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
5805 * DataGridViewRowCollection.cs: Implemented shared rows.
5806 * DataGridViewRow.cs: Throw exceptions as MS do.
5807 * DataGridViewCell.cs: A few properties are implemented by a
5808 Get<Property> method, so move implementation there and remove the
5809 NIEX in the method. Add a bunch of OnXInternal that DataGridView
5810 calls when necessary.
5811 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
5812 complicates matters.
5813 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
5816 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
5818 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
5819 the children controls. Instead, we will just set up the proper docking for the
5820 children controls so we don't have to worry about it. [Fixes bug #82188]
5822 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
5824 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
5825 canceling and correct Before/AfterLabelEdit properties as layed out in bug
5826 81847. [Fixes bug #81847]
5828 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
5830 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
5831 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
5832 an explicit size based on the design-time size of the text. Since our fonts
5833 may not match this explicit size, we tend to cut off the ends of people's labels.
5835 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
5837 * Menu.cs: Add some missing methods to MenuItemCollection.
5839 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5841 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
5842 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
5843 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
5844 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
5845 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
5846 * DataGridViewElement.cs: State defaults to Visible.
5847 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
5848 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
5850 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
5852 * Control.cs: Minor 1.1 corcompare fix.
5854 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
5856 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
5857 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
5859 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5861 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
5862 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
5863 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
5864 DataGridViewSelectedColumnCollection.cs,
5865 DataGridViewSelectedRowCollection.cs: Corcompare work.
5867 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
5869 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
5870 it is autoset by VS2005 designer and the effect is barely noticeable.
5872 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
5874 * TreeView.cs: Implement HitTest.
5876 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5878 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
5879 manually adding and removing the control from the Controls
5881 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
5882 EditingControlInternal property that tracks the editing control.
5883 Always keeping the scrollbars in the Controls collection, as MS
5884 testing confirms is the right behaviour.
5886 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
5888 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
5889 according to MSDN and new test.
5891 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
5893 * TreeNode.cs: Implement ToolTipText.
5894 * TreeView.cs: Implement tooltips, NodeMouse* events.
5896 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
5898 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
5900 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
5902 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
5903 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
5905 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
5907 * Control.cs, Form.cs, ContainerControl.cs,
5908 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
5909 for misc properties.
5911 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
5913 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
5914 * TreeView.cs: Implement StateImageList.
5916 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5918 * Form.cs: Don't check if the current form is the active form before
5919 activating it. Fixes #81904.
5921 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5923 * Form.cs: Don't check if the current form is the active form before
5924 activating it. Fixes #81904.
5926 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5928 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
5930 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5932 * Form.cs: Don't try to position the form after loading if the form was
5933 disposed. Fixes #81969.
5935 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5937 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
5938 properties. Had to change ToolBar into ToolStrip, which required a
5941 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
5943 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
5944 resized, fixes part of #79829 (vertical lines in toolbar).
5945 PropertyGrid: Refactored Populate* to something that's easier to
5946 follow at least for me, as well as splitting it up into several new
5947 methods, required to update only subitems when something has
5948 changed by a popup editor or listbox. Don't use events to check
5949 when any values are changed, since the events are unreliable (we're
5950 changing the objects the events are registered with, and if the
5951 event handling requires the objects to be immutable (objects stored
5952 in hashtables for instance), the events will never be raised).
5953 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
5954 everytime we change a value, since events are unreliable.
5955 DropDownButtonClicked: For the same reason don't compare objects to
5956 check if it has changed or not, it would require all objects to
5957 derive Equals. Fix dialog location on windows, MS is doing weird
5958 things when creating parented forms.
5959 * GridEntry.cs: Add a SelectedObject setter.
5961 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
5963 * TreeNode.cs: Add some corcompare attributes.
5964 * TreeNodeCollection.cs: Implement 2.0 stuffs.
5965 * TreeView.cs: Implement some 2.0 stuffs.
5967 2007-07-18 Andreia Gaita <avidigal@novell.com>
5969 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
5972 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
5974 * ListBox.cs: Implement custom tab offsets.
5976 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5978 * ToolStripContentPanel.cs: Support System renderer.
5979 * ToolStripControlHost.cs: Set RightToLeft to default to No.
5981 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5983 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
5985 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5987 * CheckBox.cs: Chain TextAlign to base implementation instead of
5988 maintaining another one.
5990 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5992 * ButtonBase.cs: Fix an incorrect string constant.
5994 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
5996 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
5997 of creating one for measuring strings.
5999 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
6001 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
6002 Implement MaxItemSize.
6004 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
6006 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
6007 for DeviceContext. Instead, use the static one available in Hwnd.
6008 Informal tests show this saves about 500k on formtest.exe.
6010 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
6012 * ContainerControl.cs: Implement 2.0 AutoScaling.
6014 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
6016 * ComboBox.cs: Work around bug #82120 (bug in mcs).
6018 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
6020 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
6021 Darken the focus color.
6023 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
6025 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
6027 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
6028 X, Y instead of a rect for drawing text.
6029 - For ControlPaint.DrawCheckBox, center the check a little better when the
6030 checkbox is odd width. When drawing a flat checkbox, use a white background
6031 when state != inactive.
6032 [Fixes bugs #82097, 82100]
6034 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
6036 * ListControl.cs: When changing CurrencyManager, disconnect event
6037 handlers from previous one. Fixes bug #81771. Code formatting.
6039 2007-07-15 Andreia Gaita <avidigal@novell.com>
6041 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
6042 full preview invalidation from layout invalidation, and only invalidate
6043 the layout when setting zoom or other properties. Invalidation should
6044 always be done even when resetting properties with the same values as
6045 what is there. Fixes #81744 and #79830.
6047 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6049 * ListView.cs: Implement initial support for Groups. Split some of the
6050 LayoutIcons code to render a partial list of the items (needed by
6051 items contained in ListViewGroup instances). Let the
6052 ListViewItemsCollection.ListView property be modifiable (needed when
6054 * ListViewGroup.cs: Use a Bounds property rather than a Location
6055 one. Also invalidate the bounds when they get changed.
6056 * ThemeWin32Classic.cs: When drawing items, also draw the group header
6057 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
6060 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6062 * ListView.cs: When space gets pressed and CheckBoxes is true,
6063 don't invoke the Begin and EndUpdate methods. We are generating
6064 a redraw of the entire control without need to do so.
6066 2007-07-13 William Holmes <billholmes54@gmail.com>
6068 * Control.cs: Changing logic in FindFlatForward and
6069 FindFlatBackward to handle multiple Controls with
6071 This fixes bug 81687.
6073 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
6075 * OSFeature.cs: Enable IsPresent.
6077 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6079 * Control.cs: Don't do anything in WmShowWindow if the control has been
6080 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
6081 control is created, put on a form, the control is disposed (the
6082 form is never shown), and then we get a MapNotify, triggering a
6084 * Form.cs: Exclude the current form when sending Deactivate to all
6086 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
6087 there was a race condition because assigning the handle raises
6088 events, we can get more messages, therefore trying to assign the
6089 handle again, which would fail if any of those event handlers
6090 closed/disposed the control.
6092 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6094 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
6096 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
6098 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
6099 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
6101 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
6103 * DateTimePicker.cs: If there's no part format specifier, return an
6106 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
6108 * FlatButtonAppearance.cs: Throw NotSupportedException for a
6109 Transparent BorderColor.
6111 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
6113 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
6114 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
6115 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
6116 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
6117 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
6118 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
6119 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
6121 * X11Structs.cs: Remove warnings, add ToString implementations.
6123 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6125 * XplatUIX11.cs: Translate min/max size according to the actual min/max
6126 size, and not the current size. Fixes #81798.
6128 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6130 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
6131 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
6132 to the control yet).
6134 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6136 * PropertyGridTextBox.cs: Add a method that sends any forwarded
6137 mousedowns to the contained textbox.
6138 * X11Structs.cs: More ToString implementation.
6139 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
6142 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6144 * PropertyGridView.cs: Add a null-check, fixes a few tests.
6146 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
6148 * TableLayoutPanelCellPosition.cs: TypeConverter.
6150 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
6154 * PropertyGridTextBox.cs: Propagate any color changes to all contained
6156 * PropertyGridView.cs: A few color fixes.
6158 2007-07-10 Jackson Harper <jackson@ximian.com>
6160 * TextControl.cs: Remove some old unused text formatting stuff.
6162 2007-07-10 Jackson Harper <jackson@ximian.com>
6164 * TreeView.cs: Update full row select invalidation to match the
6165 newer DrawSelection... method.
6166 - Make sure to invalidate the entire width when selecting a new
6167 node, if we have full row selection enabled.
6169 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
6171 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
6172 display of properties again.
6174 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
6176 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
6177 to existing collections.
6179 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6181 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
6182 that changed between 1.1 and 2.0.
6184 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6186 * PowerStatus.cs: Added. This is just a data class, it is filled
6187 in by SystemInformation.
6189 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6191 * Message.cs: Add op_Equality and op_Inequality.
6193 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6195 * MenuStrip.cs: Finish corcompare work.
6197 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6199 * LinkArea.cs: Add op_Equality and op_Inequality.
6201 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6203 * Application.cs: Add MessageLoopCallback delegate.
6205 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6207 * ListBox.cs: First set of 2.0 stuffs.
6209 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
6211 * Control.cs: Make an internal Height property we can override
6212 without messing up the public API.
6213 * ListBox.cs: Override HeightInternal to always return the size
6214 the user set. [Fixes bug #80466]
6216 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
6218 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
6219 paint cell borders if we haven't calculated where they go yet.
6220 [Fixes bugs #82040 and #82041]
6222 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6224 * ListView.cs: In Details view, set the location of item_control
6225 in the (0,0) position (and the header_control is thus on the
6226 item_control). This way the Bounds of the Items are relative to the
6227 ListView control (before this, they had a Bounds value without the
6228 header_control offset, which wasn't matching .Net). Fixes #82004.
6230 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6232 * ListControl.cs: When DataSource is set to null, pass an empty
6233 array of object to SetItemsCore. This is done to clean the items
6234 in the ListContol children. Fixes #81788.
6236 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6238 * ListControl.cs: Add 2.0 stuffs.
6240 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6242 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
6243 Refresh is overkill for just about every repaint request.
6245 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6247 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
6248 so remove my custom Get method and fix the property getter.
6250 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6252 * Label.cs: DefaultMargin for 2.0.
6254 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6256 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
6257 reported issue where other controls with mnemonics would steal strokes
6258 from a selected ComboBox.
6260 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
6262 * ScrollOrientation.cs: Make internal for 1.1.
6263 * ScrollEventArgs.cs: Add 2.0 stuffs.
6265 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
6267 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
6268 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
6269 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
6271 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6273 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
6275 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6277 * ListView.cs: Implement the so-incredibly broken 2.0
6278 VirtualItemsSelectionRangeChanged event.
6280 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6282 * ListView.cs: When enter is pressed and selection is non empty,
6283 an OnItemActivate event must be fired.
6285 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6287 * ListView.cs: Store the FocusedItem information as an
6288 int instead of a ListViewItem (needed by VirtualMode).
6289 Update the calls to SetFocusedItem to pass an index instead of
6291 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
6292 the Focused state from the owner ListView.
6294 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6296 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
6297 property. Also, invalidate previous focused item in the mentioned
6298 property (match .Net).
6300 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6302 * ListView.cs: Implement 2.0 FocusedItem property setter.
6304 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6306 * ListView.cs: Implement 2.0 TopItem property setter.
6308 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
6310 * StatusStrip.cs: The default renderer is System.
6311 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
6312 if the user specifies it.
6313 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
6314 if we are ManagerRenderMode.
6315 * ToolStripMenuItem.cs: Calculate our text color better.
6316 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
6317 from Professional to the base class based off working with the System renderer.
6318 * ToolStripSystemRenderer.cs: Added.
6320 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6322 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
6324 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
6326 * ToolTip.cs: Implement 2.0 Tag property.
6328 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6330 * ListView.cs: Implement 2.0 HitTest methods.
6332 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6334 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
6335 item is under the pointer or not (sugar). Also remove the TODO
6336 regarding to the cursor changes in OneClick activation.
6337 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
6338 the subitems use the parent's HotFont if UseItemStyleForSubItems is
6339 true; otherwise don't show the underline style.
6341 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6343 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
6344 the code to retrieve the item at position only one time. Also
6345 change cursor when Activation is ItemActivation.OneClick as well
6346 as invalidate the item if HotTracking is true (to show/hide the
6347 underline style). Add an internal HotItemIndex property to retrieve
6348 the current hot item's index.
6349 * ListViewItem.cs: Add an internal HotFont property to cache the
6350 font used when HotTracking is true and the pointer moves within the
6352 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
6353 HotFont depending on the hot state of the item.
6355 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6357 * ListView.cs: Implement 2.0 HotTracking property.
6359 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
6361 * ToolStripControlHost.cs: If our hosted control never got created,
6362 don't try to dispose it. [Fixes bug #81909]
6364 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
6366 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
6368 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
6370 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
6372 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6374 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
6376 * DrawListViewColumnHeaderEventArgs.cs:
6377 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
6378 using the DrawText () methods.
6380 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
6382 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
6383 background which got erased in my changes yesterday.
6385 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6387 * ListViewItem.cs: Actually set bounds for subitems in Details view
6389 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
6390 can invoke from the owner draw routines if we need it. Also, add
6391 support for Owner draw in Details view.
6393 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
6395 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
6396 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
6397 ShowImageMargin setting, properly align text in a ToolStripLabel
6398 hosted on a ToolStripDropDown.
6400 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
6402 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
6403 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
6405 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6407 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
6409 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
6411 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
6412 location to match ToolStripMenuItems.
6414 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6416 * DrawListViewColumnHeaderEventArgs.cs:
6417 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
6418 column headers in ListView.
6420 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
6422 * UserControl.cs: Implement AutoSize.
6424 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6426 * DrawListViewItemEventArgs.cs:
6428 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
6431 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
6433 * ToolStripDropDownItemAccessibleObject.cs: Added.
6434 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6435 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
6436 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
6437 ToolStripTextBox.cs: corcompare work.
6439 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
6441 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
6442 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
6443 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
6446 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
6448 * OSFeature.cs: Add IsPresent.
6449 * PrintPreviewControl.cs: Add RightToLeft.
6450 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
6451 * SplitterPanel.cs: Add AutoSizeMode.
6453 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6455 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
6456 * MdiClient.cs: Add 2.0 ScaleControl.
6457 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
6458 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
6460 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6462 * Form.cs: Implement some scaling methods, stub some RTL methods,
6465 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6467 * Control.cs: corcompare work.
6468 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
6470 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
6472 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
6473 ControlPaint 2.0 stuffs.
6475 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6477 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
6479 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6481 * UpDownBase.cs: Add 2.0 stuffs.
6483 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6485 * NumericUpDown.cs: Add 2.0 stuffs.
6487 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6489 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
6491 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6493 * ErrorProvider.cs: Implement 2.0 stuffs.
6495 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6497 * DomainUpDown.cs: Implement 2.0 stuffs.
6499 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6501 * CheckedListBox.cs: Fix RefreshItems signature.
6503 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
6505 * PictureBox.cs: Implement 2.0 stuffs.
6507 2007-06-12 Andreia Gaita <avidigal@novell.com>
6509 * TabControl.cs: Check if there are tabpages before checking
6510 the selected index - fix #81802 (font changes raise a ResizeTabs
6511 call on controls.add, which blew up nicely with no tabpages)
6513 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6516 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
6518 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6521 * ListViewItem.cs: In VirtualMode the selection information
6522 resides in the ListView, rather than in the Items. Also, throw
6523 InvalidOperationExceptions when VirtualMode is being used and
6524 CheckedItemCollection is accessed.
6526 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6528 * ComboBox.cs: Add ScaleControl.
6530 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6532 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
6534 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6536 * GroupBox.cs: Add 2.0 stuffs.
6538 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
6540 * Panel.cs: Add autosize properties/event.
6542 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
6545 - When we remove a control, remove it from the collection before performing the layout.
6546 - Setup an internal property for explicit_bounds.
6547 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
6548 - Perform a layout when we set a new AutoSizeMode.
6550 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
6552 * ScrollableControl.cs: Add 2.0 stuffs.
6554 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6556 * ScrollBar.cs: Add 2.0 stuffs.
6558 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6560 * Splitter.cs: Add 2.0 stuffs.
6562 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6564 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
6565 to have BindingContext simply use base implementation.
6567 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6569 * ColumnHeader.cs: corcompare fix.
6571 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6573 * Button.cs: corcompare fixes.
6574 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
6576 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
6578 * Button.cs: Override GetPreferredSizeCore.
6579 * ButtonBase.cs: PerformLayout after changing properties that can affect
6580 AutoSize. Simplify some mouse/keyboard code.
6581 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
6582 * MouseEventArgs.cs: Make Location internal for 1.1.
6583 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
6584 * Theme.cs: Add CalculateButtonAutoSize.
6585 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
6587 2007-06-05 Miguel de Icaza <miguel@novell.com>
6589 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
6591 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6593 * ListViewItem.cs: We can't cache Bounds in VirtualMode
6594 since we can get different item instances every time we retrieve it.
6596 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6598 * ListView.cs: Work around for #81602, since an unkown an pretty
6599 infrequent condition appears only in some systems (old linux boxes, it
6602 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
6604 * Button.cs: Completely reformat and a little refactor to bring
6605 this closer to Mono circa 2007.
6607 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
6609 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
6610 to be ButtonBase.Invalidate.
6612 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
6614 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
6616 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
6618 * ButtonBase.cs: Completely reformat and a little refactor to bring
6619 this closer to Mono circa 2007.
6621 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
6623 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
6624 values for autosize. Fixes #80137.
6626 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
6628 * Control.cs: Don't perform layout when AutoSize changes.
6629 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
6630 directly when autosizing, use SetBounds with BoundsSpecified.None.
6631 Fixes unit tests my last commit broke.
6633 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
6635 * Control.cs: Perform layout when AutoSize changes.
6636 * Form.cs: Implement AutoSizing.
6638 2007-06-01 Chris Toshok <toshok@ximian.com>
6640 * DataGrid.cs: remove the XXX'ed check at the top of
6641 ProcessGridKey. fixes #80464.
6643 2007-06-01 Chris Toshok <toshok@ximian.com>
6645 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
6646 adding idempotent (add/remove in Edit()), and also make sure we
6647 don't add it until after we set the text, so it's not tripped in
6648 Edit(). Fixes unit test regression.
6650 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
6652 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
6653 change is user explicit, not when the layout engine moves stuff. Fixes
6654 anchoring to bottom and right. [Fixes bug #81790]
6656 2007-06-01 Andreia Gaita <avidigal@novell.com>
6658 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
6660 2007-06-01 Andreia Gaita <avidigal@novell.com>
6662 * ContainerControl.cs:
6663 Fire enter event for common ancestor if it is not a ContainerControl.
6664 Send focus to the active_control and not the 'value', the active
6665 control might have been changed in one of the events fired.
6666 Definitely fixes #80159.
6668 2007-06-01 Andreia Gaita <avidigal@novell.com>
6670 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
6672 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
6674 * PropertyGrid.cs: Anchor the help description to the bottom of the
6675 help panel and refactor SelectGridItem into a
6676 SelectGridItemInternal that can be set to null (and update it to
6677 clear the help texts when it is set to null). Set root item to null
6678 when there's no SelectedObject. Fixes #80438.
6679 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
6680 when we're recalculating after a resize (only).
6682 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6684 * ListView.cs: Implement 2.0 RedrawItems method.
6686 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6688 * ListControl.cs: Disconnect PositionChanged and ItemChanged
6689 handlers from previous data manager when DataSource is set to
6692 2007-05-31 Jackson Harper <jackson@ximian.com>
6694 * TextBoxBase.cs: These seem to be the correct values.
6696 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
6698 * FileDialog.cs: When close dialog with ok set filterindex using combobox
6699 value. Fixes #81784.
6701 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
6703 * Control.cs: Implement 2.0 scaling methods.
6705 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6707 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
6708 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
6711 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6713 * ProgressBar.cs: Implemented missing 2.0 members.
6715 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6717 * Control.cs: Corcompare issues.
6718 * MessageBox.cs: Implemented missing 2.0 functions.
6720 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6722 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
6723 Implemented more 2.0 members.
6725 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
6727 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
6728 null (strange, but it seems to happen when running unit tests).
6730 2007-05-30 Andreia Gaita <avidigal@novell.com>
6732 * ContainerControl.cs: Set active_control even earlier, before
6733 firing any events, and undo it if validation returns false.
6735 2007-05-30 Andreia Gaita <avidigal@novell.com>
6737 * ContainerControl.cs: Raise Validation and Enter/Leave events
6738 even if there is no Form and set active_control earlier, just
6739 before firing Enter events (toshok's patches). Fixes #80647.
6741 2007-05-30 Jackson Harper <jackson@ximian.com>
6743 * TextControl.cs: Redid the pageup/pagedown a little to simplify
6744 things and fix bug #81311.
6746 2007-05-30 Jackson Harper <jackson@ximian.com>
6748 * X11Dnd.cs: Now that we have our own event loop, we need to
6749 cancel when we get a mouseup but it won't be accepted.
6751 2007-05-30 Chris Toshok <toshok@ximian.com>
6753 * DataGrid.cs (set_CurrentCell): guard against negative
6756 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
6757 array index syntax instead of looping over the property names.
6759 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
6760 and set IsInEditOrNavigateMode to false there.
6762 2007-05-30 Jackson Harper <jackson@ximian.com>
6764 * TreeView.cs: Make sure we don't get a bad visible order when
6765 setting to the top node. Fixes some misc crashing in
6768 2007-05-30 Andreia Gaita <avidigal@novell.com>
6770 * UserControl.cs: Add 2.0 AutoSizeMode
6772 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
6774 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
6776 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
6778 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
6779 lines. Fixes #80285.
6781 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
6783 * DataGridColumnStyle.cs: Add char trimming column header text format.
6785 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
6787 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
6790 2007-05-29 Jackson Harper <jackson@ximian.com>
6792 * TreeNode.cs: Fix off by one on calculating whether or not a node
6795 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
6797 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
6798 * ScrollableControl.cs: Force an UpdateDistances when we move the
6802 2007-05-29 Andreia Gaita <avidigal@novell.com>
6804 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
6805 update the page setup screen.
6807 2007-05-29 Andreia Gaita <avidigal@novell.com>
6809 * PageSetupDialog.cs: Fix landscape mode.
6811 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6813 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
6814 IconSizeHorizontalSpacing.
6816 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6818 * ListView.cs: The declaration of prev_tooltip_item should be inside
6819 a NET_2_0 conditional (avoid a warning).
6821 2007-05-28 Andreia Gaita <avidigal@novell.com>
6823 * PageSetupDialog.cs: Implement PrintPreview control to display
6824 the preview thumbnail. Change unit conversion to use
6825 PrinterUnitConvert methods.
6827 Note: there is a huge bug in ms.net where the default margins are
6828 interpreted as centimeters (?), when in fact they are set in inches. When
6829 loading the page setup dialog initially (ms.net), the default margins
6830 are set to 1 inch, and the dialog shows them with value 10, when in fact
6831 it should be 25 (properly converted). Our dialog doesn't have this bug.
6833 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
6835 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
6837 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6840 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
6843 2007-05-28 Andreia Gaita <avidigal@novell.com>
6845 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
6846 an IntPtr on csc (it builds fine on mcs, could it be a compiler
6847 bug?), convert the ptr to Int32 first.
6849 2007-05-28 Jackson Harper <jackson@ximian.com>
6851 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
6852 recieved, we will exit the dnd tracking loop.
6854 2007-05-28 Jackson Harper <jackson@ximian.com>
6856 * X11Dnd.cs: Keep tracking until the xdnd finished event is
6857 recieved. TODO: I should probably stick a timer on the dropped
6858 event, and finish the drag if the XDND Finished event never shows
6859 (because some apps don't seem to send it).
6861 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
6863 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
6866 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
6868 * MonthCalendar.cs: Only mark the keypresses we actually handle as
6871 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
6873 * MonthCalendar.cs: Set the size after initializing all the relevant
6874 variables. Fixes #81742.
6876 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
6878 * KeyEventArgs.cs: Fix typo.
6880 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
6882 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
6883 to match MS. Fixed MinDate to only accept value less than or equal
6884 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
6885 Removed TODO's that are now verified by unit tests.
6887 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
6889 * TreeNodeCollection.cs: Minor corrections to exceptions to match
6892 2007-05-25 Jackson Harper <jackson@ximian.com>
6894 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
6895 it's own message loop.
6896 * XplatUIX11.cs: Remove some of the dnd hooks
6898 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
6900 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
6901 instead of MinimizedWindowSize.
6903 2007-05-25 Jackson Harper <jackson@ximian.com>
6905 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
6907 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
6909 * KeyEventArgs.cs: Added SuppressKeyPress.
6910 * Control.cs: Added support for SuppressKeyPress.
6912 2007-05-24 Andreia Gaita <avidigal@novell.com>
6914 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
6915 problems with PieChart. suppress_validation should not be a counter,
6916 if there are several BeginInit calls, the first EndInit will
6917 activate validation. Fix exceptions thrown by set_Value.
6918 * UpDownBase.cs: ValidateText only if it's the user editing it.
6920 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6922 * ListControl.cs: FilterItemOnProperty should return the filtered
6923 item proeprty even if DataSource is null. The same applies for
6924 GetItemText. Fixes #80427.
6926 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
6928 * Control.cs: If a control doesn't have a parent when it's Dock is
6929 set, but it has children, it needs to do a layout. Fixes some nested
6930 controls issues. [Fixes bug #81199]
6932 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6934 * ComboBox.cs: If there are few items in the drop down list, make it
6935 the exact size the items need, no bigger. Fixes #81612.
6937 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
6939 * Application.cs: When we have captured the keyboard for a menu,
6940 check for mouse down events in case we need to close the menu.
6941 * Control.cs, Form.cs: Remove mouse down checks for menus.
6943 2007-05-24 Jackson Harper <jackson@ximian.com>
6945 * TextControl.cs: Handle tabs in non multiline mode a little
6948 2007-05-24 Jackson Harper <jackson@ximian.com>
6950 * TextControl.cs: We need to manually break apart tabbed text and
6951 move the tabs, since the system.drawing tabbing mechanism relies
6953 * TextBoxBase.cs: Move the caret properly when the user enters a
6956 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
6958 * ContainerControl.cs: Don't check CanSelect before calling
6960 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
6961 release a KeyboardActive on click if it's not ours.
6963 2007-05-23 Andreia Gaita <avidigal@novell.com>
6965 * ColumnHeader.cs: Add TypeConverter
6967 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6969 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
6971 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6973 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
6975 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6977 * LinkLabel.cs: Implement public Padding property.
6979 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6981 * LinkLabel.cs: Implement public FlatStyle.
6983 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
6985 * Control.cs: Apply patch from George to call parent.PerformLayout
6986 when Visible is changed. [Fixes bugs #81118, 81718]
6988 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6990 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
6992 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6994 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
6996 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
6998 * ContextMenu.cs: Implement Collapse.
7000 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7002 * ToolBarButton.cs: Implement Name.
7004 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
7006 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
7007 use current_item, it prevents some NRE. Fixes #81675.
7009 2007-05-22 Andreia Gaita <avidigal@novell.com>
7011 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
7012 without updating the text.
7014 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
7016 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
7017 without calling DeleteObject. [Should fix bug #81709]
7019 2007-05-22 Jackson Harper <jackson@ximian.com>
7021 * RichTextBox.cs: Set the line endings correctly, when flushing
7024 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
7026 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
7029 2007-05-22 Jackson Harper <jackson@ximian.com>
7031 * TreeView.cs: Setting top with a null node should set to the very
7034 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7036 * Form.cs: ShowDialog: destroy the handle when message loop is
7037 finished, matches MS behaviour. Refactor parts of WmClose into
7038 RaiseCloseEvents, that only raises events if they haven't already
7039 been raised. Fixes #81688 and #81521.
7040 * Application.cs: Don't call close on the form when exiting a modal
7041 loop, it will raise all the (Form)Closed/Closing events again if
7042 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
7043 which doesn'r raise any events it they have been raised before.
7045 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
7047 * Control.cs: Add OnPrint.
7048 * ToolStrip.cs: Add GetChildAtPoint.
7049 * ToolStripContainer.cs: Add OnRightToLeftChanged.
7050 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
7052 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
7054 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
7056 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7058 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
7059 isn't visible anymore. Fixes #81651.
7061 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7063 * Control.cs: WmShowWindow: Update children's z-order after setting
7064 their parent. SetParent may show the window, thereby corrupting
7065 z-order, since the window will be shown on top.
7066 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
7067 multiple (and redundant) WM_SHOWWINDOW messages.
7068 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
7069 event has already been raised.
7070 * Form.cs: Change is_changing_visible_state to a counter, since
7071 SetVisibleCore can be called recursively. CreateHandle: when
7072 creating mdi children, send (De)Activated events.
7073 * MdiClient.cs: Update use of is_changing_visible_state.
7074 * Application.cs: OnThreadException: Surround exception handling with
7075 try/finally to ensure we always reset the error-handling state
7078 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7080 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
7083 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7085 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
7086 SmallIcon views, now that we have a standarized horizontal spacing.
7088 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
7089 4, just like the other views (Match .Net).
7091 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
7093 * Control.cs: Delay calculating anchor distances until we actually layout.
7094 Always query the WM for the actual size and location it put us at instead of
7095 only when we send negative values.
7096 [Fixes bugs #81694, 81695]
7098 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7100 * Application.cs: Avoid a possible stack overflow when trying to exit
7103 2007-05-19 Marek Safar <marek.safar@gmail.com>
7105 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
7108 2007-05-19 Andreia Gaita <avidigal@novell.com>
7110 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
7111 * NumericUpDownAcceleration.cs,
7112 NumericUpDownAccelerationCollection.cs: Added 2.0
7115 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
7117 * RichTextBox.cs: Recalculate the document after the ScrollBars
7118 property is changed. Fixes bug #81681.
7120 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
7122 * DataObject.cs: Implement 2.0 methods.
7124 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7126 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
7127 in the center of the checkbox, not in the left-top corner.
7130 2007-05-18 Jackson Harper <jackson@ximian.com>
7132 * RichTextBox.cs: Recalculate the document after the scrollbars
7133 property is changed.
7134 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
7137 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7139 * CreateParams.cs: Make HasWindowManager marginally faster.
7140 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
7141 into Hwnd so that other drivers can use it as well.
7142 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
7143 the default location from Hwnd. Fixes MDI client windows always
7144 showing up at (0,0) in Windows (Win32 won't set the default
7145 location since the window styles aren't correct).
7147 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
7149 * TreeView.cs: Modified DoubleBuffered to just use the base
7152 2007-05-18 Jackson Harper <jackson@ximian.com>
7154 * TreeView.cs: Set the top node to the last child node when
7156 - When we get focus, if there is no selected node, use the top
7159 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
7161 * KeysConverter.cs: Add CanConvertTo.
7162 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
7163 * LinkConverter.cs: Added.
7165 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7167 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
7168 it prevents error when file dont have write access. Fixes #81669 and #81667.
7170 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7172 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
7173 button text. Fixes #79640.
7175 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7177 * Control.cs: According to MSDN controls created in the designer theres
7178 keyboard accelerators visible by default. So included check for design
7179 in ShowKeyboardCuesInternal.
7181 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7183 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
7186 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
7188 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
7189 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
7191 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
7193 * Control.cs: Finish implementation of UI State using WmChangeUIState
7194 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
7195 in some controls to check for show_keyboard_cues to draw accell keys "_".
7197 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7199 * ListBox.cs: When calculating the horizontal scrollbar
7200 in single column mode, don't use values less than 0 for
7201 Maximum. Fixes #81474.
7203 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7205 * ListBox.cs: Throw the some missing exceptions in
7206 ListBox.ObjectCollection methods.
7208 2007-05-17 Jackson Harper <jackson@ximian.com>
7210 * TextBoxBase.cs: Recalculate the document when the word wrap
7211 value has changed. This fixes 81488.
7213 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
7215 * Clipboard.cs: Implement missing GetText overload.
7217 2007-05-17 Chris Toshok <toshok@ximian.com>
7219 * Control.cs (CheckDataBindings): remove the binding_context arg
7222 * CurrencyManager.cs (OnItemChanged): fix this now that
7223 BindingManagerBase is fixed. also remove the comment telling where
7224 the fix should go. We set transfering_data to true/false around
7225 the call to PushData to keep UpdateIsBinding from being called.
7226 (ListChangedHandler): remove the extra OnMetaDataChanged call for
7227 PropertyDescriptorAdded in the 1.1 case. The extra call is
7228 actually generated by System.Data generating 2 metadata changed
7229 events of its own per column add. The fix should go there. Add a
7230 comment to that affect in our test's Assert.Ignore.
7232 * BindingManagerBase.cs: Rework PullData and PushData slightly.
7233 we keep a boolean flag (transfering_data) that keeps us from
7234 calling UpdateIsBinding multiple times if we re-enter either of
7237 * ControlBindingsCollection.cs (AddCore): remove the
7238 binding_context arg to binding.Check.
7240 * Binding.cs (IsBinding): don't check if we're binding here, just
7241 return our cached value. we update it in UpdateIsBinding.
7242 (Check): don't take the binding_context arg, we'll just use our
7243 control's. Also, for some reason MS doesn't use the data member
7244 field when getting the bindingmanager for this binding. it just
7245 uses the datasource. Make this method callable multiple times,
7246 and only do the is_null_desc stuff if manager.Position != -1 (so
7247 we don't get an exception accessing manager.Current).
7248 (UpdateIsBinding): move the code from IsBinding here.
7249 (PositionChangedHandler): call Check here to we can initialize
7250 things that require a non- -1 position.
7252 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
7254 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
7257 2007-05-17 Andreia Gaita <avidigal@novell.com>
7259 * TabControl.cs: Add 2.0 methods and events, including
7260 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
7261 * TabPage.cs: Add 2.0 methods
7263 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
7265 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
7266 keyboard_cues is properly handled by message method.
7268 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
7270 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
7272 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
7274 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
7276 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
7279 - WmUpdateUIState added to handle state changes, it make call to
7280 OnChangeUICues event.
7281 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
7284 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
7286 * ImageKeyConverter.cs: Added.
7287 * TreeViewImageKeyConverter.cs: Added.
7289 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7291 * ToolTips.cs: Update Text if SetToolTip is called for a control
7292 already showing the tooltip, as well as restarting its timer; show
7293 tooltip if we are inside the control bounds by the time of calling
7294 SetToolTip. Inside ShowTooltip remove the check to not show the
7295 tooltip again for the active control (it is allowed by .Net to
7296 show the tooltip on the same control multiple times).
7298 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
7300 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
7302 2007-05-16 Andreia Gaita <avidigal@novell.com>
7304 * ContainerControl.cs: only process tab key if there are no
7305 modifier keys present, otherwise the control does the
7306 tab processing, if it needs to. Fixes #81622
7307 * TabControl.cs: Fixes calculation for which tab to select on
7310 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
7312 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
7314 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
7316 * Control.cs: Make IsInputCharInternal to allow controls to
7317 override it and still match MS API.
7318 * TextBoxBase.cs: Override IsInputCharInternal and always
7322 2007-05-15 Jackson Harper <jackson@ximian.com>
7324 * TextBox.cs: Disable some of the menu options when using a
7327 2007-05-15 Jackson Harper <jackson@ximian.com>
7331 * RichTextBox.cs: Some new 2.0 methods
7333 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
7335 * FileDialog.cs: On 1.0 profile, do not support multidotted
7338 2007-05-14 Jackson Harper <jackson@ximian.com>
7340 * TextBoxBase.cs: Implement some of the new 2.0 methods.
7341 * RichTextBox.cs: We need to override these methods on 2.0.
7342 * MaskedTextBox.cs: These are implemented now
7343 * TextControl.cs: This was off by one.
7345 2007-05-14 Jackson Harper <jackson@ximian.com>
7347 * TextControl.cs: Because the line endings are including in the
7348 text, we don't need to add them in anymore.
7350 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7352 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
7353 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
7355 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7357 * ToolBar.cs: Adjust size to default size when button theres no text and
7358 image, it fixes remaining issues from #81524.
7360 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7363 - When not flat call redraw to recalculate sizes on creare handle to match
7365 - Revert 77220 because it causes some regressions in toobar
7368 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7370 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
7371 now actually enters a usable state.
7373 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7375 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
7376 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
7379 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7381 * ToolBar.cs: Save default_size on create handle to use later for buttons
7382 without text, needed to mimic win32 behavior.
7384 2007-05-11 Everaldo Canuto <everaldo@simios.org>
7386 * ToolBar.cs: Fix button layour to best fit width or height according to
7387 vertical or not. Fixes #81524.
7389 2007-05-10 Everaldo Canuto <everaldo@simios.org>
7391 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
7392 toolbar size info because different styles theres different sizes.
7395 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7397 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
7398 if we are using checkboxes, checked is true, and we have less
7399 than two images in StateImageList; for the 1.1 in the same scenario
7400 draw the first image if we have at least one image in StateImageList.
7401 Fixes part of #81191.
7403 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
7405 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
7406 the owner's Items collection on merge.
7408 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
7410 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
7411 * ToolStripItemCollection.cs: Lots of fixes to when events get called
7412 and parent/owner gets changed based on gert's unit tests.
7414 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7416 * MaskedTextBox.cs: Started implementing parts of it.
7418 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7420 * ListView.cs: When clicking the checkbox on the items
7421 take into account the double clicks even if we have only
7422 one image in StateImageList (only for 1.0/1.1). Also
7423 generate an extra change of checked state when we receive
7424 the second click on checkbox (match .Net behaviour).
7425 Fixes part of #81191.
7427 2007-05-10 Everaldo Canuto <everaldo@simios.org>
7429 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
7431 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
7433 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
7434 even if OnLoad is overriden and base.OnLoad is not called.
7437 2007-05-10 Andreia Gaita <avidigal@novell.com>
7439 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
7440 shame. (I blame my ever-persisting and annoying cold)
7442 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7444 * ListView.cs: Don't eat navigation keys. Let them flow through to
7445 KeyDown/KeyPress routines. [Fixes bug #81569]
7447 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7449 * ListView.cs: When handling keys for selecting the item based off
7450 keyboard input, do not consider keys pressed with Alt or Control. Also,
7451 correctly handle keys when the Shift key is down. [Fixes bug #81578]
7453 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7455 * Control.cs: When using UseWaitCursor, we have to store the requested
7456 Cursor to use when UseWaitCursor is turned off.
7458 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
7460 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
7462 * Application.cs: Use PreProcessControlMessage instead of
7464 * PreProcessControlMessage.cs: Make internal for 1.1.
7466 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7468 * Control.cs: Add InternalContains focus property, which hast the same
7469 functionality of ContainsFocus, but also including implicit controls.
7470 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
7471 since we need to know if the focus is contained in our implicit
7472 ItemControl when calculating Layout. Fixes part of #80888.
7474 2007-05-08 Everaldo Canuto <everaldo@simios.org>
7476 * ToolTip.cs: Remove center form string alignment as it must be align to
7479 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
7481 * ToolStripItemCollection.cs: Set the new item's parent and owner
7482 in Insert like we do in Add. [Fixes bug #81568]
7484 2007-05-08 Jackson Harper <jackson@ximian.com>
7486 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
7487 - Off by one error in SetTop
7488 - Disable DoubeBuffering
7490 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
7492 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
7493 control as much as necessary in order to make it entirely visible,
7494 instead of centering the control in the container (matches MS
7495 behaviour). CalculateCanvasSize: we need to take the current scroll
7496 position into account when calculating the maximum canvas,
7497 otherwise the following scenario will fail: resize so that the
7498 scrollbars appear, use the scrollbars to scroll, resize again
7499 smaller, and now the canvas size is too small. Recalculate: when
7500 showing scrollbars make sure they start off at 0, and try to scroll
7501 the active control into view. Fixes #79540. HandleScrollBar: don't
7502 scroll anywhere if the scrollbar isn't visible.
7504 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7506 * ListView.cs: When focus changed, call Layout/Invalidate
7507 in the focused item to update the selected state (should show
7508 entire label when ListView is focused, and a part of it if is not).
7509 * ListViewItem.cs: When doing layout for LargeIcon, take into account
7510 for displaying the entire label not only the Focused state of the
7511 item, but also the Focused state of the ListView (match .Net
7514 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7516 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
7517 Implement UseWaitCursor.
7519 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7520 Applying contributed patch from Sergey Volk.
7522 * Clipboard.cs: Implement SetDataObject retry logic and new overload
7524 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
7526 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7528 * Control.cs: Implement DrawToBitmap.
7530 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7531 Applying contributed patch from Stefan Noack.
7533 * Control.cs: Add [Get|Set]AutoSizeMode.
7535 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7537 * MdiClient.cs: Unmerge menus when the last child is closed.
7539 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
7541 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
7542 * ToolStripManager.cs: Call Merge on DropDowns.
7545 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7547 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
7549 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
7550 visibility. We can't create forms visible, since we have to set the
7551 owner before making the form visible (otherwise Win32 will do
7552 strange things with task bar icons). The problem is that we set the
7553 internal is_visible to true before creating the control, so
7554 is_changing_visible_state is the only way of determining if we're
7555 in the process of creating the form due to setting Visible=true -
7556 this works because SetVisibleCore explicitly makes the form
7557 visibile afterwards anyways. Fixes #80775.
7559 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7561 * ThemeWin32Classic.cs: When drawing ListViewItems,
7562 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
7563 or LargeIcon _and_ item is not focused (match .Net behaviour).
7565 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
7567 * Control.cs, Form.cs: Fix some obsolete method warnings.
7569 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
7571 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
7572 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
7574 2007-05-04 Andreia Gaita <avidigal@novell.com>
7576 * ContainerControl.cs: Fix active_control attribution when going
7577 up the parent chain so that the first parent container gets the control
7578 and the rest of the parent containers get the child containers (skips
7579 non-containers). Fixes #80729
7581 2007-05-04 Randolph Chung <tausq@debian.org>
7583 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
7586 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7588 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
7589 takes a size parameter, since the CreateParam's size isn't true for
7590 minimized forms. Fixes #81518,
7592 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7594 * Form.cs: Add OnDeactivateInternal.
7595 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
7597 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7599 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
7600 accessing the parent. Fixes #81508.
7602 2007-05-03 Chris Toshok <toshok@ximian.com>
7604 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
7605 2.0 block, pass listposition + 1 to ChangeRecordState when a row
7606 was added before the current listposition. Fixes the
7607 TestInsertRowBeforeCurrent unit test.
7609 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
7611 * Application.cs: Add RaiseIdle.
7612 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
7613 XplatUIX11.cs: Implement RaiseIdle.
7615 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
7616 corcompare work: N - Z
7620 * ScrollableControl.cs
7624 * SystemInformation.cs
7626 * TableLayoutControlCollection.cs
7627 * TableLayoutPanel.cs
7632 * ToolStripComboBox.cs
7633 * ToolStripContainer.cs
7634 * ToolStripContentPanel.cs
7635 * ToolStripDropDown.cs
7636 * ToolStripDropDownItem.cs
7637 * ToolStripDropDownMenu.cs
7639 * ToolStripItemCollection.cs
7640 * ToolStripMenuItem.cs
7642 * ToolStripSplitButton.cs
7645 * TreeNodeCollection.cs
7646 * TreeNodeMouseHoverEventArgs.cs
7649 2007-05-01 Everaldo Canuto <everaldo@simios.org>
7651 * ContextMenu.cs: Add public method Show with alignment property to 2.0
7652 stuff. Thanks aatdark for the patch.
7654 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
7656 * GridItem.cs: Implement 2.0 Tag property.
7658 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
7660 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
7661 count instead of Nodes.Length. [Fixes bug #81448]
7663 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
7665 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
7668 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
7669 corcompare work: A - M
7670 * BindingNavigator.cs
7675 * FlowLayoutPanel.cs
7681 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
7683 * Application.cs: Give toolstrips a chance to process mnemonics.
7684 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
7685 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
7686 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
7688 2007-05-01 Jackson Harper <jackson@ximian.com>
7690 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
7692 - Don't set the BoundsSpecified
7694 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
7696 * Application.cs: When using the toolstrip shortcut mechanism, allow the
7697 message to pass through to a regular control if it hosted by a toolstrip.
7698 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
7699 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
7701 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
7703 * TextRenderer.cs: Use the flags argument when using the MeasureString
7706 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
7708 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
7709 the MDI menu item. [Fixes bug #81483]
7711 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
7713 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
7714 string. When setting Name to null, use zero-length string instead.
7716 2007-04-29 Andreia Gaita <avidigal@novell.com>
7718 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
7719 DeselectTab). Implement missing 2.0 TabPageCollection methods
7720 (Add, ContainsKey, RemoveByKey, IndexOfKey)
7722 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
7724 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
7726 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
7728 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
7729 Fixes bug #81479. Include details of exception when LoadFile fails.
7731 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
7733 * DrawListViewSubItemEventArgs.cs: Added missing setter
7735 2007-04-27 Andreia Gaita <avidigal@novell.com>
7737 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
7738 Hide methods (not complete). Implement missing 2.0 OnPopup event.
7740 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7742 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
7743 removed in ly last commit (it was breaking the Label edit feature).
7745 * ThemeWin32Classic.cs: When drawing a ListViewItem use
7746 StringAlignment.Near for LineAlignment (match .Net).
7748 2007-04-27 Andreia Gaita <avidigal@novell.com>
7750 * TabControl.cs: Change SetTab so it adds the tabpage to the list
7751 of controls if it isn't already there - was blowing up when doing
7752 tabcontrol.TabPages[i]=new TabPage().
7753 SetTab now does a replace by removing the page at the index.
7754 Add a new InsertTab method that inserts a page in a given index
7755 instead of replacing.
7756 Implements TabPageCollection.Insert(int, TabPage).
7758 2007-04-27 Chris Toshok <toshok@ximian.com>
7760 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
7761 internal handler that can be invoked from our subclasses.) Also,
7762 add a comment to PushData about how we need to fix it.
7764 * CurrencyManager.cs: tons of changes here. trying to get things
7765 matching the behavior of .net wrt event orders (ItemChanged,
7766 CurrentChanged, PositionChanged.) I've implemented a private .net
7767 symbol (ChangeRecordState) that appears in stack traces because
7768 it's actually easier to do this than to effective inline all its
7769 various behaviors at every call site.
7771 * RelatedPropertyManager.cs: guard against an exception here by
7772 not using parent.Current if the position is set to -1 (if the
7773 parent datasource is cleared, for instance).
7775 * Binding.cs: don't parse data in PushData (this might be wrong,
7776 but it jives with MS's behavior.) Also, don't call PushData when
7777 we get a CurrentChanged event.
7779 2007-04-27 Andreia Gaita <avidigal@novell.com>
7783 WebBrowserSiteBase.cs,
7784 HtmlDocument.cs: Added stubbed out classes, no real implementations
7787 2007-04-27 Everaldo Canuto <everaldo@simios.org>
7789 * MainMenu.cs: In draw method without parameters call draw method with
7790 PaintEvent, another one (just rect) adjust rectangle and we dont need it
7791 as Rect property is already adjusted. Fixes #80694.
7793 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
7795 * Application.cs: Need to handle keyboard menu deselection here.
7796 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
7797 navigation, allowing keyboard to work on X11.
7798 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
7800 2007-04-27 Everaldo Canuto <everaldo@simios.org>
7802 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
7803 menu bar. It fixes some drawing issues in menu bar.
7805 2007-04-27 Everaldo Canuto <everaldo@simios.org>
7807 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
7808 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
7809 when <alt> key is pressed.
7811 2007-04-26 Everaldo Canuto <everaldo@simios.org>
7813 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
7814 example just set visible to false and make this prevent from other problems.
7815 In SystrayAdd always remove pending expose. Fixes #81072.
7817 2007-04-26 Marek Safar <marek.safar@gmail.com>
7819 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
7822 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
7824 * ListView.cs: Added three missing 2.0 events and corresponding
7825 EventHandlers. Added the OwnerDraw property.
7826 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
7828 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
7830 * DrawListViewItemEventArgs.cs
7831 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
7833 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
7835 * TextControl.cs: Fixed typo in constructor
7837 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
7839 * Application.cs: Create a shortcut path so that currently selected
7840 MenuStrips can intercept keyboard events without having focus.
7841 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
7842 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
7843 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
7844 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
7845 generate WM_SYSCOMMAND message in X11 for other platforms.
7846 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
7847 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
7848 * ToolStripSplitButton.cs: Add DefaultItem property.
7850 2007-04-26 Everaldo Canuto <everaldo@simios.org>
7852 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
7853 fixes some menu draw problem on Windows with border diferent from default
7854 it also fixes #81403.
7856 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7858 * Form.cs: Refactor WndProc into separate methods, just like Control is
7861 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7863 * Control.cs: set_Text: move the call to the driver into a seperate
7864 virtual method so that Form can override it.
7865 * MaskedTextBox.cs: Corcompare fixes.
7866 * Form.cs: Override UpdateWindowText and only update the styles if the
7867 form has been shown (fixes #81405).
7869 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
7871 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
7872 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
7873 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
7874 the form lost focus or another control was clicked.
7876 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
7878 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
7881 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
7883 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
7884 DrawListViewItemEventHandler.cs,
7885 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
7887 * X11Structs.cs: More ToString implementation.
7889 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
7891 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
7892 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
7894 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
7896 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
7898 * FormCollection.cs: Don't add a form if it's already in the
7900 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
7901 according to behaviour and MSDN. The ownerWin32 is the active
7902 window at the moment when we call ShowDialog, not the context's
7903 main form (the context's main form may open another form that opens
7904 a form with ShowDialog, the win32 owner is the second form). Add
7905 and remove forms to the Application.OpenForms in other places to
7906 better match MS behaviour. Add an IsActive property that raises
7907 On(de)Activated only if the active state has changed (we were
7908 raising OnDeactivated before OnActivated while creating forms).
7909 * Application.cs: Refactor Enabling/Disabling of windows for modal
7910 dialog loops out to separate methods, and restore the thread
7911 context when we quit the method. Fixes #81407.
7913 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7915 * ListView.cs: In ItemControl.HandleClicks, also fire
7916 2.0 MouseClick or MouseDoubleClick events on the parent,
7917 not only the Click/DoubleClick events.
7919 2007-04-24 Andreia Gaita <avidigal@novell.com>
7921 * TableLayoutSettings.cs:
7922 - Added a GetControls method and a support structure to help the
7923 TypeConverter to enumerate the controls for serialization.
7924 - Added a new serialization constructor.
7925 - Added a isSerialized flag initialized to true on the
7926 serialization constructor so that the TableLayoutPanel.LayoutSettings
7927 setter does not throw the designed NotSupportedOperation exception
7928 when the object is built through deserialization.
7929 - Implemented GetObjectData
7931 * TableLayoutPanel.cs: Added check on LayoutSettings.
7933 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7935 * ListView.cs: Report Click and DoubleClick events to the parent
7936 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
7937 from breaking the click count state when using dialog forms (Control
7938 reports the clicks in a similar fashion). In the previous behaviour
7939 the last WM_LBUTTONUP message in a double click was sent to the
7940 ListView's form, instead of the ListView, which was breaking the click
7941 count for it. Fixes #80387.
7943 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
7945 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
7947 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
7949 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
7950 us from created dropdowns for menu items that do not have subitems.
7951 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
7952 Check HasDropDownItems before calling DropDown so a dropdown will not be
7953 created if it isn't needed.
7955 2007-04-24 Jackson Harper <jackson@ximian.com>
7957 * TreeView.cs: Set the first node to the selected node when we get
7958 focus if there is no selected node.
7960 2007-04-24 Andreia Gaita <avidigal@novell.com>
7962 * MimeIcon.cs: remove using blocks so that image streams are
7963 not disposed of. Fixes #80151
7965 2007-04-24 Jackson Harper <jackson@ximian.com>
7967 * TextBoxBase.cs: Fixup the height of textboxes when the control
7970 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
7972 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
7973 for each ToolStripItem when the parent's RightToLeftChanged is called.
7975 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7977 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
7979 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
7980 property, so that the setter can be overriden too.
7981 * TextBox.cs: Change GetContextMenuInternal() to use
7982 ContextMenuInternal.
7984 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7986 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
7989 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7991 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
7994 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7996 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
7997 avoid duplicate work. Mostily skeleton code, it's not working at
8000 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
8002 * NotifyIcon.cs : stub for MouseClick event
8003 * Application.cs: stub for SetUnhandledExceptionMode
8005 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
8007 * BindingNavigator.cs : Initial (partial) implementation
8009 2007-04-23 Jackson Harper <jackson@ximian.com>
8011 * TreeView.cs: Do not create the treeview's handle when setting
8012 the scroll position.
8013 - ExpandAll needs to compute the scrollbars so it knows which
8014 position to set the bar too.
8016 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
8018 2007-04-23 Jackson Harper <jackson@ximian.com>
8020 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
8023 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
8025 * ToolStripItem.cs: Make GetImageSize internal.
8026 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
8027 need to draw an item. Fixes a reported issue where images on menus
8028 that were not 16x16 were drawing incorrectly.
8030 2007-04-21 Miguel de Icaza <miguel@novell.com>
8032 * Padding.cs: Use the converter, fixes the resgen2 issue with
8035 2007-04-21 Jackson Harper <jackson@ximian.com>
8037 * TreeView.cs: Dont try to unhighlight the selected node if there
8038 isn't a selected node.
8040 2007-04-21 Jackson Harper <jackson@ximian.com>
8046 * TreeView.cs: Use the InternalBorderStyle property to set the
8047 initial border style, this forces the client rectangle to be sized
8050 2007-04-20 Jackson Harper <jackson@ximian.com>
8052 * TreeView.cs: Simplify scrolling to the last node after expanding
8054 - Fix some off by ones with setting the bottom.
8056 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
8058 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
8059 that. We were incorrectly doing it the other way around. Also,
8060 update ClientSize if we change the BorderStyle before the control
8063 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
8065 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8066 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8067 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
8068 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8069 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8070 Caption to CaptionHeight.
8071 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
8072 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
8073 and FixedFrameBorderSize to return value from current XplatUI driver.
8074 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
8075 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
8076 and FixedFrameBorderSize using win32 API. Renamed Caption to
8078 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
8079 * SystemInformation.cs: Fixed typo in BorderSize.
8081 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
8083 * XplatUI.cs: Added MenuAccessKeysUnderlined.
8084 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
8085 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
8087 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
8088 value from XplatUI driver.
8089 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
8090 SystemParametersInfo.
8091 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
8093 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
8096 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8098 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
8100 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8102 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
8104 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
8106 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
8107 MenuStrips that contain ToolStripSeparators.
8109 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8111 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
8112 DefineStdCursorBitmap.
8113 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
8114 has been created off a standard cursor. This is used to get a
8115 bitmap of the standard cursor when Draw or DrawStretched is called
8116 in order to draw the cursor.
8117 * X11Structs.cs: Added XcursorImage and XcursorImages.
8118 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
8119 DefineStdCursorBitmap.
8120 * Cursors.cs: Update all relevant creations of Cursor to use the new
8121 internal constructor.
8123 2007-04-19 Jackson Harper <jackson@ximian.com>
8125 * TextBox.cs: Move the has_been_focused into the base control, so
8126 some of the text adding methods can manipulate it (probably time
8127 for a better name for this flag too).
8128 - Call a new version of selectall that doesn't scroll
8129 * TextBoxBase.cs: When we append text, if the document is empty,
8130 don't scroll. If the document has text already, we scroll to the
8131 end of the appended text.
8132 - When the text is changed, we reset the has_been_focused, so the
8133 next time the control gets focused, all the text is selected.
8135 2007-04-19 Jackson Harper <jackson@ximian.com>
8137 * TextControl.cs: Move the margins to the document, add a method
8138 so the margin sizes can be updated.
8139 * TextBoxBase.cs: When the border style is changed, update the
8142 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
8144 * Control.cs: Respect DefaultPadding.
8145 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
8146 padding into account.
8147 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
8149 2007-04-19 Jackson Harper <jackson@ximian.com>
8151 * TextControl.cs: Oops, we need to use the ClientRect not the
8154 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8156 * ListView.cs: In ItemControl.ItemsMouseDown, take into
8157 account the double clicks when CheckBoxes are used and
8158 the pointer is inside the checkbox. Fixes part of #81191.
8160 2007-04-18 Jackson Harper <jackson@ximian.com>
8162 * TextControl.cs: Pressing the end key shouldn't move the caret
8163 past the line ending.
8164 * TextBoxBase.cs: We can still delete if we are in the line
8165 ending and the combine will just kill the existing line ending.
8167 2007-04-18 Jackson Harper <jackson@ximian.com>
8169 * TextControl.cs: We can't move lines, then invalidate their
8170 bounds, we need to get the old bounds and combine that with the
8172 * TextBoxBase.cs: Before combining two lines for a delete, we need
8173 to invalidate the area of the old line, since that will be moved
8174 in the combine operation.
8176 2007-04-18 Everaldo Canuto <everaldo@simios.org>
8178 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
8179 with transparent background. Fixes #80482.
8181 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
8183 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
8184 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
8187 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8189 * CreateParams.cs: Add a couple of helper methods and do a less string
8190 concatenation in ToString.
8191 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
8192 overload that takes a Control parameter, since this method may be
8193 called before a control is assigned to the hwnd (from
8194 CreateWindow), and update CreateWindow to use the new overload. In
8195 GetMenuOrigin subtract the title bar from the y position if the
8196 form has a window manager (since we're painting it and not X).
8197 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
8198 CreateParams to calculate the origin (since border sizes may vary).
8199 In ScreenToMenu only subtract the title height if we actually have
8201 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
8202 mdi children never have menus of themselves.
8203 * InternalWindowManager.cs: Implement menu handling like form does.
8204 Added GetMenuOrigin to calculate the menu origin, can't use the
8205 CreateParams from the form like normally since it's lying.
8206 * Hwnd.cs: Implement GetBorderSize better (in the sense more
8207 windows-like) and add Inflate and comparison operators to the
8208 Borders type. When calculating MenuOrigin and it's a form with a
8209 window manager, use the window manager to calculate it.
8211 2007-04-17 Chris Toshok <toshok@ximian.com>
8213 * Control.cs (CreateControl): turns out in 2.0 we don't need this
8214 OnBindingContextChanged thing here. It's only generated from
8215 ContainerControl.OnCreateControl. Fixes a newly written unit test
8216 - BindingTest.BindingContextChangedTest4.
8218 2007-04-17 Jackson Harper <jackson@ximian.com>
8220 * ScrollBar.cs: When setting values, make sure the current
8221 position stays within the new values range.
8223 2007-04-17 Chris Toshok <toshok@ximian.com>
8225 * Control.cs (CreateControl): talk about a bizarre corner case.
8226 Don't emit OnBindingContextChanged here if we're a parentless
8227 control (i.e. if we're a form.). Fixes
8228 BindingTest.BindingContextChangedTest2.
8230 2007-04-17 Everaldo Canuto <everaldo@simios.org>
8232 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
8233 from win32. Fixes #81255.
8235 2007-04-17 Everaldo Canuto <everaldo@simios.org>
8237 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
8238 already present in CalculateButtonTextAndImageLayout.
8240 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8242 * XplatUIX11.cs: When setting min/max size for a window we need to
8243 translate the coordinates to x coordinates. Create an overload of
8244 SetWindowMinMax that takes a CreateParams handling this, and change
8245 SetWMStyles to call this function (can't use Control.FromHandle in
8246 the SetWindowMinMax to get the control/CreateParams from the handle
8247 because the handle might not have been assigned to the control
8250 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8252 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
8253 if StateImageList is non-null and it has less than two items (match MS
8254 behaviour). Also, in HandleNavKeys handle the Space key, calling
8255 the new ToggleItemsCheckState method, which tries to change the
8256 checked state of the selected items. Fixes part of #81191.
8258 2007-04-16 Jackson Harper <jackson@ximian.com>
8260 * RichTextBox.cs: namespace cleanup.
8262 2007-04-16 Everaldo Canuto <everaldo@simios.org>
8264 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
8266 2007-04-16 Everaldo Canuto <everaldo@simios.org>
8269 * Control.cs: Call invalidate in set_Region.
8271 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
8274 2007-04-16 Jackson Harper <jackson@ximian.com>
8276 * TextBoxBase.cs: When enter is pressed, we need to update all
8277 lines below the current.
8279 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
8281 * MdiClient.cs: Implement implicit menu merging for MDI
8282 children. When a child form is active, if it has a menustrip
8283 and the parent form has a MainMenuStrip, automatically merge
8286 2007-04-15 Andreia Gaita <avidigal@novell.com>
8288 * TabControl.cs: Refactored sizing methods to not repeat
8289 code all over the place. Tab bounds are now calculated
8290 as if alignment is top and single line, and only when
8291 setting the bounds are the positions adjusted according
8292 to alignment. Replaced hardcoded positions, spacings and
8293 paddings by getting the values the ThemeEngine.
8296 * Theme.cs: Change TabControl properties and methods so
8297 that all start with TabControl*. Added more properties
8298 to help remove hardcoded values on tabcontrol.
8299 Add CPDrawBorder3D declaration so the Theming classes
8302 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
8304 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
8305 on the Theming namespace, and call the appropriate methods here.
8306 Change CPDrawBorder3D to public.
8308 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8310 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
8311 the control after firing the OnMouseUp event, instead of sending
8312 the message before the mentioned event. This is so we can match the
8313 MS behaviour. Fixes part of #80385.
8315 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
8317 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
8318 RightToLeft property.
8320 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
8322 * ToolStrip.cs: Add properties and internal methods to support merging.
8323 * ToolStripItem.cs: Add MergeAction and MergeIndex.
8324 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
8325 not trigger reparenting or layouts.
8326 * ToolStripManager.cs: Add Merge and RevertMerge methods.
8327 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
8328 is hosting the overflow menu.
8330 2007-04-13 Jackson Harper <jackson@ximian.com>
8332 * TextControl.cs: Set the line ending correctly for the first
8335 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
8337 * Theme.cs: Update GetMethod to get the new definition for
8338 KnownColors.Update (and fix theme color updates).
8340 2007-04-12 Everaldo Canuto <everaldo@simios.org>
8342 * MessageBox.cs: Fix some test and button position.
8344 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8346 * Form.cs: Consider the implicit controls in
8347 GetRealChildAtPoint. We need it since this method
8348 is called on Form when handling the some messages in
8349 WndProc, and need to consider those implicit ones too.
8352 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
8354 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
8355 if there are no ShortcutKeys set.
8356 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
8357 set, use it when painting.
8359 2007-04-12 Jackson Harper <jackson@ximian.com>
8361 * TextControl.cs: Fix some off-by-one issues in line duplication
8362 and insertion in the undo manager. Also, overwrite the first tag
8363 of a line on insert, if it is just a zero lengthed tag. This
8364 prevents us from getting an extra stranded tag at the beginning of
8367 2007-04-11 Everaldo Canuto <everaldo@simios.org>
8369 * Label.cs: Remove check for handle created in CalcAutoSize, we need
8370 to calculated proper size including when handle was not created yet.
8372 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8374 * MdiWindowManager.cs: When moving a form, allow the form to be moved
8375 when the mouse is outside of it's parent's client rectangle. Fixes
8376 #79982 (take 3, part 2).
8378 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8380 * X11Structs.cs: Add a few ToString() overrides.
8381 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
8382 the window location in a window-manager independent way. Reworked
8383 FrameExtents, it now actually works. Reworked AddConfigureNotify
8384 and ReparentNotify handling to use GetTopLevelWindowLocation
8385 instead of the earlier, more hacky solution. Reworked SetWMStyles,
8386 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
8387 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
8388 for all other windows (fixes #81281 part 1), a toolwindow is hidden
8389 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
8390 and generally refactored to do as few calculations as possible
8393 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
8395 * Theme.cs: Change "reflective-contract" between MWF and SD to
8396 minimize # of calls, avoid Color serialization and avoid updating
8397 every "known colors" each time a single one is updated.
8399 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
8401 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
8402 when not readonly and the text is explicitly set. Code style updates.
8403 * DataGridTableStyle.cs: Removed extra line.
8404 * DataGrid.cs: Code style updates. Removed extra whitespace.
8405 * DataGridColumnStyle.cs: Code style updates. Removed extra
8408 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8410 * XplatUIX11.cs: Added comment that "fixes" #80021.
8412 2007-04-09 Jackson Harper <jackson@ximian.com>
8414 * TextControl.cs: We don't need this -1 on the line count anymore.
8416 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
8418 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
8419 entered value to underlying type, and convert it back to a string to
8420 apply formatting. Modified GetFormattedValue to use TypeConverter
8423 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
8425 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
8426 Use SubItems property when we want to ensure there's at least one
8427 subitem. Modified SubItems property to ensure there's always at least
8428 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
8429 the NRE's reported by MS.
8431 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
8433 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
8434 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
8435 Spaces to tabs. Removed extra tabs.
8437 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
8439 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
8440 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
8442 2007-04-06 Jackson Harper <jackson@ximian.com>
8444 * TextBoxBase.cs: When a delete removes a line, recalculate all
8445 lines below that line (they need to get offsets setup correctly)
8448 2007-04-05 Jackson Harper <jackson@ximian.com>
8450 * TextControl.cs: We need to invalidate across the width of the
8451 document when we are invalidating multiple lines.
8452 * TextBoxBase.cs: Don't delete into the line ending.
8454 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8456 * ListView.cs: Restore the check for the MouseHover event
8457 in ListView. It looks like the ListView fires more than one MouseHover
8458 event when HoverSelection is true _only_ in weird-corner scenarios, but
8459 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
8462 2007-04-05 Mike Kestner <mkestner@novell.com>
8464 * ListView.cs : raise MouseDown before updating selection.
8465 [Fixes #80373 tab 1&3]
8467 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
8469 * ToolStripRenderer.cs: Add static method to mirror image.
8470 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
8471 and RightToLeftAutoMirrorImage.
8472 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
8474 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
8476 * ToolStripSplitStackLayout.cs: Support Alignment property.
8477 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
8479 2007-04-05 Jackson Harper <jackson@ximian.com>
8481 * TextControl.cs: Move around the line endings when crossing line
8483 - When combining lines, strip the ending text off the first line.
8485 2007-04-05 Jackson Harper <jackson@ximian.com>
8488 * TextBoxBase.cs: Try to never move the cursor into the line
8491 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
8493 * ToolStripItem.cs: Make sure we aren't firing mouse events when
8494 the item is disabled. Also add a few missing methods.
8496 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8498 * ListView.cs: We don't need the MouseEnter/MouseLeave check
8499 to fire just one MouseHover event when HoverSelection is true, since
8500 .Net does fire more than one MouseHover event in that scenario. Also,
8501 fix the selection in HoverSelection, by invoking UpdateMultiSelect
8502 if MultiSelect is true, instead of only setting ListViewItem.Selected.
8503 Finally, we need to reset the Hover logic in MouseMove, even when we
8504 don't have a selected item.
8506 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
8508 * ToolStrip.cs: Add several missing methods, properties, and events.
8510 2007-04-04 Chris Toshok <toshok@ximian.com>
8512 * DataGridTextBoxColumn.cs: set the bounds of the text box to
8513 (0,0,0,0) in Commit, as MS does.
8515 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
8516 make sure we set CurrentRow on a row header click *before* calling
8517 Select. This moves the current cell (and the textbox) to the new
8518 row. The call to Select then hides the textbox, giving us the
8519 correct behavior. Fixes #80362.
8521 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
8522 (ListChangedHandler): reorder the position/current changed events,
8523 and call UpdateIsBinding in the ItemAdded case.
8525 * GridColumnStylesCollection.cs: add some columns events, one of
8526 which raises the CollectionChanged event.
8528 2007-04-04 Jackson Harper <jackson@ximian.com>
8530 * TextControl.cs: When we delete multiple selection lines
8531 invalidate the selection area, don't need to do that for single
8532 lines because the final update view will handle it.
8534 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
8536 * Control.cs: When we CreateControl, we need to also create all of the
8537 control's children. The child's OnLoad must also fire before the parent's
8538 OnLoad. Fixes the toolbox size in PDN.
8540 2007-04-04 Jackson Harper <jackson@ximian.com>
8542 * TextBoxBase.cs: When the user presses enter, insert a line
8543 ending into the text. (Maybe this would be a good spot for
8544 Environment.NewLine).
8545 * TextControl.cs: Remove undo manager hack, line endings get
8546 inserted properly now.
8548 2007-04-04 Everaldo Canuto <everaldo@simios.org>
8551 - Remove unneeded parameters in UpdateCursor.
8552 - Fix UpdateCursor to check if menu is active.
8553 - Call UpdateCursor when menu deactivate my click.
8554 [Fixes remaining issues from #80410]
8556 2007-04-04 Everaldo Canuto <everaldo@simios.org>
8558 * Control.cs: GetRealChildAtPoint method added, it make an
8559 recursive child control search for the point.
8561 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
8564 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
8566 2007-04-03 Everaldo Canuto <everaldo@simios.org>
8568 * Form.cs: Fix mouse position when send back mouse event after closes
8571 2007-04-03 Everaldo Canuto <everaldo@simios.org>
8573 * Form.cs: Simplify the BUTTONDOWN for active tracker.
8575 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
8577 * Control.cs: Fix an issue where if a user resized a control inside
8578 a sizing method like OnResize, we would overwrite their explicit
8579 value. Also, only call DefaultSize once in the constructor instead
8580 of 4 times. Also, do not call SetBoundsCore from SetBounds if
8581 nothing actually changed.
8583 2007-04-03 Jackson Harper <jackson@ximian.com>
8585 * TextControl.cs: Don't attempt to copy text for lines with no
8586 text in them (technically this shouldn't happen, but we aren't
8587 always inserting line endings when we should be).
8589 2007-04-03 Jackson Harper <jackson@ximian.com>
8591 * TextBoxBase.cs: Calculate the scrollbars before calculating the
8592 document, because this sets some of the document size properties
8595 2007-04-03 Jackson Harper <jackson@ximian.com>
8597 * TextBoxBase.cs: We need to calculate maximums even if this is
8598 not a multiline control, because the maxs are used for scrolling.
8599 - Display the caret after doing a page up/down, we need to
8600 manually display it because a proper CaretMoved event isn't
8601 triggered (this is because of the way the math is done to
8602 determine how far to scroll).
8604 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
8606 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
8607 (ToolBar was relying on SetBoundsCore to default the values sent
8608 base off of BoundsSpecified.)
8610 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
8612 * DateTimePicker.cs: Change Text so that when a null value or empty
8613 string is assigned to the test we always raise ValueChanged and
8614 TextChanged (earlier implementation would only raise ValueChanged
8615 if the current date value was different from DateTime.Now).
8617 2007-04-03 Andreia Gaita <avidigal@novell.com>
8619 * ButtonBase: Call update after invalidation, fixes #80194
8621 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
8623 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
8626 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
8628 * XplatUIX11.cs: SetWMStyles: If the control is a form with
8629 FormBorderStyle = None, don't give the window any decorations.
8632 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
8634 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
8635 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
8636 to check for is a mix of several styles (such as WS_CAPTION for
8638 * Control.cs: Don't paint an area bigger than the client area when
8639 painting the background colour. Add an internal GetCreateParams.
8640 Update calls to XplatUI.CalculateWindowRect due to API change.
8641 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
8642 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
8643 the size if it hasn't been handled by any windows. When creating
8644 and moving windows, X wants the location of the entire window, but
8645 the size of the client window, so add
8646 TranslateClientRectangleToXClientRectangle,
8647 TranslateWindowSizeToXWindowSIze and
8648 TranslatedXWindowSizeToWindowSize to cope with this, and call them
8649 before every window creation and move. Update CalculateWIndowRect
8650 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
8651 In AddConfigureNotify don't do anything if the hwnd is a zombie
8652 (fixes the BadWindow we were getting while running the tests),
8653 always calculate the offsets when it's a parentless window, not
8654 only when reparented, and translate the window size, since we're
8655 getting the client size of the whole window, excluding entire
8657 * Theme.cs: Added BorderSizableSize.
8658 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
8659 anymore. Update calls to XplatUI.CalculateWindowRect due to API
8661 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
8662 change. Fake the window styles here instead of in XplatUIWin32 so
8663 that all back-ends get the same window styles (and it's Form that's
8664 deciding when to use wm, not the Win32 backend anyways)
8665 * Hwnd.cs: Completely reworked GetWindowRectangle and
8666 GetClientRectangle - they are now passed a CreateParams and they
8667 only use Style and ExStyle to determine the rectangles (they should
8668 now work just like Win32AdjustWindowRectEx - though quite a few
8669 special cases are probably missing). They should also be 100%
8670 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
8671 == rect), and all numbers (borders, menu sizes) are taken from the
8672 current theme. Added a GetBorders helper function that will return
8673 the borders for any given CreateParams (including captions and
8674 menus), and GetBorderSize that returns the given border size only.
8675 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
8676 Hwnd.GetClientRectangle.
8678 2007-04-02 Chris Toshok <toshok@ximian.com>
8680 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
8681 logic between the values we present to the user and the values
8682 which are stored in the column's property. Also, don't call
8683 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
8685 2007-04-02 Jackson Harper <jackson@ximian.com>
8687 * TextBoxBase.cs: Scroll faster!
8689 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
8691 * StatusStrip.cs: Layout fixes for PDN.
8692 * ToolStrip.cs: Set item's available to true, and placement to main when
8694 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
8695 changing in setter before doing any work, add InternalVisible.
8696 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
8697 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
8700 2007-04-02 Jackson Harper <jackson@ximian.com>
8702 * TextBox.cs: LBUTTON does not make the textbox select all of it's
8705 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8707 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
8708 Makes ToolStripComboBoxes show up again.
8710 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8712 * ListView.cs: Add a hover_pending field in ListView
8713 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
8714 cycle (we are resetting the MouseHover logic in XplatUI
8715 to handle HoverSelection). Fixes #80429.
8717 2007-04-02 Jackson Harper <jackson@ximian.com>
8719 * TextControl.cs: Make sure the attributes get set on the last
8721 - Still have to do the end tag if we have stepped all the ways to
8724 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
8726 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
8727 on an internal libgdiplus call when the information is already
8728 available via the public API.
8730 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8732 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
8733 control is removed from a control collecftion.
8734 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
8735 Fixes FormPropertyTest (failed on rare occasions).
8736 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
8737 of Win32SetParent (when changing from no parent to a parent it
8738 might add the new parent's location in screen coordinates to this
8740 * Form.cs: Rework ChangingParent once again, now the handle is
8741 recreated whenever a FormWindowManager is added or removed (that is
8742 whenever a normal form is parented or abandoned). Also change
8743 CreateParams so that all non-toplevel windows always get the
8744 specified sice (StartupPosition is never considered for
8745 non-TopLevel forms).
8746 * ContainerControl.cs: Add ChildControlRemoved, the container control
8747 needs to be notified when a control is removed from it's
8748 collection, in the case the removed control is the active control.
8750 2007-04-02 Jackson Harper <jackson@ximian.com>
8752 * RichTextBox.cs: Use the new methods for setting the font and
8753 color, these methods set the specified attribute without
8754 overriding the other attributes.
8756 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
8758 * ToolStripPanel.cs: Fixes for better layouts in PDN.
8760 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
8762 * TextBox.cs: Added internal ChangeBackColor method to special-case
8763 Color.Empty. Added check for invalid ScrollBars value.
8764 * TextBoxBase.cs: Added internal ChangeBackColor method.
8765 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
8766 internal ChangeBackColor method to special-case Color.Empty. Added
8767 check for invalid ScrollBars value.
8769 2007-03-30 Everaldo Canuto <everaldo@simios.org>
8771 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
8773 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
8775 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
8776 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
8777 [Based on submitted patch from Olivier Duff.]
8779 2007-03-30 Jackson Harper <jackson@ximian.com>
8781 * TextBox.cs: Only select all on initial focus if the user has not
8782 specified a selection area.
8784 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
8786 * UserControl.cs: Override CreateParams.
8788 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
8792 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
8793 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
8794 check for is a mix of several styles (such as WS_CAPTION for instance).
8795 * Control.cs: Don't paint an area bigger than the client area when painting
8796 the background colour. Add an internal GetCreateParams. Update calls to
8797 XplatUI.CalculateWindowRect due to API change.
8798 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
8799 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
8800 hasn't been handled by any windows. When creating and moving windows, X
8801 wants the location of the entire window, but the size of the client
8802 window, so add TranslateClientRectangleToXClientRectangle,
8803 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
8804 to cope with this, and call them before every window creation and move.
8805 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
8806 removing DeriveStyles). In AddConfigureNotify don't do anything if the
8807 hwnd is a zombie (fixes the BadWindow we were getting while running the
8808 tests), always calculate the offsets when it's a parentless window, not
8809 only when reparented, and translate the window size, since we're getting
8810 the client size of the whole window, excluding entire window.
8811 * Theme.cs: Added BorderSizableSize.
8812 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
8813 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
8814 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
8815 Fake the window styles here instead of in XplatUIWin32 so that all
8816 back-ends get the same window styles (and it's Form that's deciding when
8817 to use wm, not the Win32 backend anyways)
8818 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
8819 they are now passed a CreateParams and they only use Style and ExStyle
8820 to determine the rectangles (they should now work just like
8821 Win32AdjustWindowRectEx - though quite a few special cases are probably
8822 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
8823 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
8824 sizes) are taken from the current theme. Added a GetBorders helper
8825 function that will return the borders for any given CreateParams
8826 (including captions and menus), and GetBorderSize that returns the given
8828 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
8829 Hwnd.GetClientRectangle.
8831 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
8833 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
8834 layout of the mdi children is handled by CreateParams. Fixes
8837 2007-03-29 Everaldo Canuto <everaldo@simios.org>
8839 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
8842 * Form.cs: When active tracker mouse down is not processed, send event
8843 back to control inside mouse position. [Fixes #81227]
8845 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
8847 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
8848 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
8849 stealing focus from the active form on Windows. (Control will be made
8850 visible in ShowWindow.)
8852 2007-03-29 Mike Kestner <mkestner@novell.com>
8854 * ImageList.cs : add internal Changed event.
8855 * ListView.cs : hook up to StateImageList.Changed to perform
8856 invalidations when the the state icon list changes. [Fixes #81191]
8858 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
8860 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
8861 to prevent tooltips from stealing focus from the active form on Windows.
8863 2007-03-29 Everaldo Canuto <everaldo@simios.org>
8865 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
8867 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
8869 2007-03-29 Everaldo Canuto <everaldo@simios.org>
8871 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
8874 2007-03-29 Jackson Harper <jackson@ximian.com>
8876 * TextControl.cs: When deleting text from non multiline textboxes,
8877 we need to update the entire document, because line offsets will
8880 2007-03-29 Everaldo Canuto <everaldo@simios.org>
8882 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
8883 added to theme, now we can create themes that uses diferent notify engines
8884 like notification-daemon from galago project or growl for Mac OS.
8886 2007-03-28 Everaldo Canuto <everaldo@simios.org>
8888 * NotifyIcon.cs: Prevent Balloon to show in task bar.
8890 2007-03-28 Everaldo Canuto <everaldo@simios.org>
8892 * XplatUIX11.cs: Prevent system to open more than one balloon.
8894 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
8895 some compiler warning messages.
8897 2007-03-28 Everaldo Canuto <everaldo@simios.org>
8901 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
8903 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
8904 implemented, this methods is used by NotifyIcon.BalloonWindow class.
8906 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
8909 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8911 * ListViewItem.cs: Forgot to make Invalidate internal.
8913 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8915 * ListView.cs: Add a InvalidateSelection method to
8916 invalidate methods which are currently selected, and call
8917 it when setting FullRowSelect and HideSelection, instead of
8920 2007-03-28 Chris Toshok <toshok@ximian.com>
8922 * XplatUIX11.cs (UnmapWindow): reindent this block.
8924 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
8925 the selection_start if we're moving the selection (that is, not
8926 extending it). Fixes bug #80461.
8928 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
8930 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
8931 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
8932 create private ControlCollection.
8934 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
8936 * Control.cs: We need to call OnVisibleChanged for our implicit
8937 children as well as our normal children. Fixes scrollbars in
8938 comboboxes not showing up.
8940 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
8942 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
8943 the check for IsHandleCreated first. The check in CreateHandle is not
8944 good enough because CreateHandle can be overriden, and the override
8945 should not be called if the handle is already created.
8947 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
8949 * ToolStrip.cs: Remove MonoTODO for tooltips.
8950 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
8951 * ToolStripContainer.cs: Add custom ControlCollection class.
8952 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
8953 * ToolStripDropDown.cs: Add some missing properties/methods.
8954 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
8955 * ToolStripItem.cs: Remove MonoTODO for tooltips.
8956 * ToolStripManager.cs: Add IsShortcutDefined.
8957 * ToolStripOverflow.cs: Override LayoutEngine.
8958 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
8959 * ToolStripSeparator.cs: Add ImageKey.
8961 2007-03-28 Jackson Harper <jackson@ximian.com>
8963 * TextControl.cs: If a char delete removes a line ending, we need
8964 to update the ending style.
8965 - Make sure the line ending calcs get called.
8967 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8969 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
8970 it was making the new code not work. Fixed a typo in the new code
8971 as well. Fixes #79826.
8973 2007-03-27 Everaldo Canuto <everaldo@simios.org>
8976 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
8977 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
8978 - SystrayBalloon method implemented.
8979 [Add support for notifyicon balloon on win32, #79149]
8981 2007-03-27 Mike Kestner <mkestner@novell.com>
8983 * ThemeWin32Classic.cs : update StateImageList selection to mirror
8984 the ms behavior when only one image is added to the list.
8987 2007-03-27 Jackson Harper <jackson@ximian.com>
8989 * TextControl.cs: Improvements to non multiline line ending
8992 2007-03-27 Everaldo Canuto <everaldo@simios.org>
8994 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
8996 2007-03-27 Everaldo Canuto <everaldo@simios.org>
8999 - Balloon message handling added.
9000 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
9002 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9003 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
9004 to SystrayBalloon to me like other Systray method, also a
9005 handle parameter added.
9007 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9009 * ListView.cs: Show scrollbars even when items.Count == 0
9010 but the columns Width is bigger than the ListView.Width.
9011 Also, when columns.Count == 0 set layout_wd and layout_ht
9012 to the ClientRectangle values, so we don't show any scrollbar
9015 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9017 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
9019 2007-03-27 Jackson Harper <jackson@ximian.com>
9021 * RichTextBox.cs: The RTF library decodes the text properly for us
9024 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9026 * ListView.cs: Display HeaderControl even when columns.Count == 0.
9027 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
9028 ListView header (HeaderControl), instead of Control.BackColor.
9030 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
9032 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
9033 Fixes tab control issues where controls would not show up because they
9034 never received their OnVisibleChanged call.
9036 2007-03-27 Everaldo Canuto <everaldo@simios.org>
9038 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
9041 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
9043 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
9044 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
9045 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
9046 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
9047 the handle. Fix WindowState by using the internal variable until we are
9048 sure that we've been shown.
9049 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
9053 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
9055 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
9056 (at least borders). Fixes #79386 on Linux (with a small difference
9057 in behaviour: when trying to resize a caption-less window metacity
9058 shows the sysmenu. Resizing is still possible though).
9059 * XplatUIWin32.cs: When setting window styles send request an extra
9060 WM_NCCALCSIZE when it's a form without title (due to no text and no
9061 caption), since Win32 seems to calculate it wrong the first time we
9062 get the message, though the second time things work as they should.
9063 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
9064 newly reparented window might show up unparented. Update
9065 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
9066 there's no title text. Fixes #79386.
9068 2007-03-27 Mike Kestner <mkestner@novell.com>
9070 * ListBox.cs : don't perform invalidations if the handle hasn't been
9071 created. [Fixes #80753]
9073 2007-03-27 Mike Kestner <mkestner@novell.com>
9075 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
9078 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9080 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
9081 needed to implement Balloon.
9083 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9085 * ListViewItem.cs: In the constructors that take
9086 an array of strings, don't use ListViewSubItemCollection.AddRange
9087 method to add items, since we need to have a different behaviour (in
9088 the constructors we add an item for each null string, opposed to
9089 the behaviour of AddRange, which adds nothing).
9091 2007-03-26 Andreia Gaita <avidigal@novell.com>
9093 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
9095 2007-03-26 Jackson Harper <jackson@ximian.com>
9097 * TextControl.cs: Draw and measure line endings when in non
9099 - When searching the text, count the end of the last line as a
9102 2007-03-26 Jackson Harper <jackson@ximian.com>
9104 * RichTextBox.cs: The selection_start and selection_end don't
9105 really track the correct tags for the selection. So we'll manually
9106 compute the correct tag here.
9108 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9110 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
9111 and Continuous styles. Fixes #79469.
9113 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
9115 * ToolStrip.cs: Implement Tooltips.
9116 * ToolStripItem.cs: Create internal method for determining tooltip.
9118 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
9120 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
9122 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9124 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
9125 it prevents a problem thak keeps icon visible after application
9128 2007-03-26 Everaldo Canuto <everaldo@simios.org>
9130 * NotifyIcon.cs: Balloon properties and methods created.
9132 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9133 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
9135 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
9137 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
9139 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
9141 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
9142 parameter indicates which aspects were explicit/user-set.
9143 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
9145 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
9147 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
9148 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
9149 SmallChange, and Value (2.0).
9150 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
9152 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9154 * ListView.cs: Always set item_control.Width in LayoutDetails
9155 if View is Details. Setting it later in CalculateScrollBars
9156 in a not-so-corner scenario (the sum of columns width is
9157 not bigger than the ListView width when handle is created, and then
9158 that sum gets bigger by increasing the width of the columns)
9159 causes a very weird recursion path (which shouldn't be happening,
9160 since header_control sets it in CalculateScrollBars too). This bug
9161 appeared after Chris' fixes for handle created issues, so probably
9162 it's related to some handle-creation time.
9164 2007-03-23 Chris Toshok <toshok@ximian.com>
9166 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
9167 case where there's an add row, just so we don't end up in a case
9168 where it's not displayed (this happens when the row is partially
9169 obscured). Fixes bug #79574.
9171 2007-03-23 Jackson Harper <jackson@ximian.com>
9175 * RichTextBox.cs: Preserve line endings in the lines text buffer,
9176 also added an enum that represents the line ending type.
9178 2007-03-23 Andreia Gaita <avidigal@novell.com>
9180 * NumericUpDown.cs: Fix logic so Text and Value properties are not
9181 messed with in every method call, but only from DownButton,
9182 UpButton, UpdateEditText() and ValidateText. Fixes #80346
9184 2007-03-23 Chris Toshok <toshok@ximian.com>
9186 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
9187 format objects if the format spec is "". Fixes bug #80889.
9189 2007-03-22 Miguel de Icaza <miguel@novell.com>
9191 * ToolStripPanel.cs (Join): added stubs to build PDN3
9193 * Control.cs (AutoScrollOffset): Add.
9195 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
9196 property, its only implemented for Win32, on X11 it defaults to
9197 some hardcoded value.
9199 * ToolStripItem.cs (AllowDrop): Add property
9201 2007-03-22 Mike Kestner <mkestner@novell.com>
9203 * ListView.cs : in FullRowSelect Details mode, only enable box
9204 selection if the user clicks over the "item" column outside of the
9205 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
9207 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9209 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
9210 handle is not created yet.
9211 * Form.cs: Select: Don't call CreateHandle if the handle is already
9212 created, avoids a stack overflow on Windows when we are recreating
9214 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
9215 they are made visible, and override AfterTopMostControl to keep
9216 them on top when other controls are brought to front.
9217 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
9218 or force_*scroll_visible is true (old implementation always shows
9219 scrollbars when needed, no matter what auto_scroll was set to).
9220 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
9221 IsHandleCreated check.
9223 2007-03-22 Andreia Gaita <avidigal@novell.com>
9225 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
9226 row or col separator.
9227 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
9229 2007-03-22 Everaldo Canuto <everaldo@simios.org>
9231 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
9233 2007-03-22 Everaldo Canuto <everaldo@simios.org>
9235 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
9236 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
9237 every time. Fixes #80410.
9239 2007-03-22 Chris Toshok <toshok@ximian.com>
9241 * BindingSource.cs (AddNew): partially implement.
9243 remove a couple of NotImplementedException's
9244 to get bug #81148 closed.
9246 2007-03-22 Everaldo Canuto <everaldo@simios.org>
9251 - UpdateCursor method added to update the screen cursor.
9252 - GetAvailableCursor method added to return cursor for enabled tree,
9253 it searches for cursor on control and it's parent's for enabled control.
9254 - Call UpdateCursor method on setter of Cursor property.
9255 - On setter of Enabled call UpdateCursor when it is false, we need to
9256 change cursor to normal (or to this parent cursor) because cursor
9257 setting theres no effect to disabled controls.
9258 - Some minor source changes to follow the coding style guidelines.
9260 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
9263 2007-03-22 Chris Toshok <toshok@ximian.com>
9265 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
9268 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9270 * XplatUIX11.cs: Implement default locations for forms.
9271 * Form.cs: Completely rework startup location for forms. Fixes #79964.
9272 * Hwnd.cs: Add previous_child_startup_location (to track the current
9273 startup location for any child forms of the current form) and
9274 previous_main_startup_location (to track the startup location for
9275 the current toplevel form).
9277 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
9279 * Control.cs: Don't trigger a layout if an implicit control is added
9280 that isn't visible. Also, don't notify the owner when an implicit control
9281 is added. (Owners shouldn't even know about their implicit controls.)
9283 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
9285 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
9286 to save some re-layouts.
9288 2007-03-21 Everaldo Canuto <everaldo@simios.org>
9290 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
9293 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
9295 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
9296 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
9298 2007-03-21 Mike Kestner <mkestner@novell.com>
9300 * ListView.cs : disable selection update for non-left button clicks
9301 with mods and over selected items. [Fixes #80524]
9303 2007-03-20 Jackson Harper <jackson@ximian.com>
9306 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
9309 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9311 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
9312 very probably a more complicated calculation there. Update the
9313 textbox' ForeColor and BackColor when the ComboBox' colors are
9314 changed. Change the border change in LayoutComboBox to only affect
9315 the textbox, not all the calculations there. Seems to fix most of
9318 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9320 * ComboBox.cs: Handle Home and End keys as well as all combinations of
9321 modifiers + navigation keys as input keys, enables advanced text
9322 selection in the combobox (like Shift+Left Arrow for instance).
9323 ComboTextBox now overrides Focused and returns whatever
9324 ComboBox.Focused returns, since it really should be focused
9325 whenever the ComboBox is. Fixes #80795. Also make the border around
9326 the text box one pixel bigger, as mentioned in #79436.
9328 2007-03-20 Jackson Harper <jackson@ximian.com>
9330 * TreeView.cs: Don't offset the images, this was causing some
9331 artifacts when expanding/collapsing with images that were the
9332 exact height of the treenode.
9334 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9336 * TrackBar.cs: Query the theme for the correct value when the mouse
9337 moves and the thumb is pressed.
9338 * Theme.cs: Added TrackBarValueFromMousePosition
9339 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
9340 implementation was updating the trackbar value when drawing, now
9341 the drawing methods only draw. Fixes #80900. Refactored the
9342 calculations out to TrackBarValueFromMousePosition and
9343 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
9344 according to the mouse position whenever it wants to. Changed the
9345 light coloured pen when drawing the thumb from ControlLight to
9346 ControlLightLight, because the ControlLight is the same colour as
9347 the background so the 3D effect is lost.
9349 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9351 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
9352 defined. Fixes #80784.
9354 2007-03-20 Marek Habersack <mhabersack@novell.com>
9356 * ContextMenuStrip.cs: align with the change introduced in
9359 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9361 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
9362 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
9365 2007-03-19 Chris Toshok <toshok@ximian.com>
9367 * Control.cs (WmPaint): don't make use of the Handle property
9368 after an event is emitted, as the user could have closed the
9369 form/destroyed the control. Store the Handle in a local variable
9370 and make use of that. Fixes bug #80768.
9372 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9374 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
9375 behavior in X11 environments.
9377 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9379 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
9380 because on setter of topmost we dont call SetTopmost when handle is not
9383 2007-03-20 Jackson Harper <jackson@ximian.com>
9385 * TextControl.cs: Need to use SelectionLength () not
9386 selection_length, since that var is reset to -1.
9387 - Draw the caret when we don't have focus.
9388 * TextBox.cs: The selectall actually doesn't occur until the first
9390 * TextBoxBase.cs: Need to update the caret position after a
9393 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9395 * ListView.cs: Enable scrolling when using Tile view.
9397 2007-03-20 Everaldo Canuto <everaldo@simios.org>
9401 * XplatUIDriver.cs: Abstract SetOwner method created.
9403 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
9404 must be implemented and was masked as todo.
9406 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
9409 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
9410 cheking for null owner to remove transient. The SetTopmost will be change
9413 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
9414 SetTopmost. Now owned forms will work properly in win32 and X11.
9416 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9418 * MdiWindowManager.cs: Update function name.
9419 * Form.cs: After closing a form MdiParent is always null.
9420 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
9421 better what it should do: necessary book-keeping when the form is
9422 closed, it should not close the form itself.
9424 2007-03-19 Andreia Gaita <avidigal@novell.com>
9426 * ListViewItem.cs: Fix back and fore color. The subitems only
9427 use their own colors if they are set, otherwise use the listview's
9428 colors. Don't set default colors on constructor for subitem.
9431 2007-03-19 Mike Kestner <mkestner@novell.com>
9433 * ListView.cs : make box selection for Details views with
9434 FullRowSelect conform to MS behavior when clicking in the "item"
9435 column and clicking outside the defined columns.
9436 [Fixes case 5-6 of #80374]
9438 2007-03-19 Chris Toshok <toshok@ximian.com>
9440 * ScrollableControl.cs: create the controls from within the ctor,
9441 but don't actually add them until our handle is created. this
9442 fixes a NRE possibility jpobst found (if you override OnLayout in
9443 a subclass, it's called before your ctor). Also, add a
9444 IsHandleCreated guard to UpdateSizeGripVisibility as well.
9446 2007-03-19 Jackson Harper <jackson@ximian.com>
9448 * TextBox.cs: Reduce the amount of invalidation we do.
9449 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
9450 some of them are true by default on MS.
9451 - Add some functions to reduce the amount of invalidates we do.
9452 * TextControl.cs: Less invalidation.
9454 2007-03-19 Chris Toshok <toshok@ximian.com>
9456 [ Fixes #81773, and *seems* to fix #81553 as well ]
9458 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
9459 AccumulateDestroyedHandles. We need to do it *after* we send
9460 WM_DESTROY, as the user's code can access Control.Handle in
9461 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
9462 move the WM_DESTROY/zombie handling to before the call to
9463 XDestroyWindow. For some reason without this ordering
9464 FormTest.RecreateHandle hangs. This ordering is semantically
9465 equivalent, however, as XDestroyWindow is async anyway.
9467 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
9469 * RichTextBox.cs: Reset backcolor_set after setting default.
9471 2007-03-19 Chris Toshok <toshok@ximian.com>
9473 * ScrollableControl.cs: the scroll position should not effect the
9474 canvas size. commit patch from georgegiolfan@yahoo.com, which
9475 fixes some really bizarre behavior on resizing. Fixes bug #80778.
9477 2007-03-19 Chris Toshok <toshok@ximian.com>
9479 * ScrollableControl.cs: clean this up a bit. create the
9480 scrollbars in the ctor and just show/hide them as needed. Also,
9481 make hscroll_visible/vscroll_visible internal to Recalculate, and
9482 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
9483 everywhere else. This seems to fix the scrollbars appearing
9484 beneath the content for me (i have *no* idea why that is,
9487 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
9489 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
9490 some redundacy for stuff in Anchor and Dock that base will take care of.
9493 2007-03-19 Mike Kestner <mkestner@novell.com>
9495 * ListView.cs : make box selection for Details views without
9496 FullRowSelect dependent on the text bounds, not item bounds.
9497 * ListViewItem.cs : add an internal property to obtain the TextBounds
9498 in Details view. [Fixes case 1-4 of #80374]
9500 2007-03-19 Andreia Gaita <avidigal@novell.com>
9502 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
9503 we're < 2.0. #78448 && #80316
9505 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
9507 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
9508 have the same style available as the previously selected one. Also,
9509 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
9511 2007-03-19 Jackson Harper <jackson@ximian.com>
9513 * TextControl.cs: Add an alignment property that all new lines
9515 - Make sure to use the align shift when calculating the line's X
9517 * TextBox.cs: Set the alignment on the document as well as on all
9520 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
9522 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
9523 throw if setting the parent of an mdichild that already has an
9524 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
9525 AssemblyProductAttribute in the assembly, use the type's namespace (as
9526 MS seems to do). CreateControl: don't create the handle if the control
9527 is not visible (according to MS behaviour and spec). SetTopLevel: Only
9528 create handle if the control is not a form. Change FocusInternal to
9529 virtual so that it can be overriden by Form.
9530 * TextBox.cs: Update call to FocusInternal.
9531 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
9532 form is not a toplevel form when it's a mdi child, so update is_toplevel
9533 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
9534 hasn't been created. Show (IWin32Window): Don't allow this overload for
9535 toplevel windows. CenterToParent/CenterToScreen/Select: create the
9536 handle as MS does. SetVisibleCore: if called on a MdiChild and the
9537 parent isn't visible yet, save the visibility and restore it when the
9538 parent is made visible.
9539 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
9540 methods, since the visibility of the scrollbars can be changed from
9541 several places, not only from AutoScroll.
9544 2007-03-19 Jackson Harper <jackson@ximian.com>
9546 * RichTextBox.cs: Enable shortcuts by default.
9547 * TextBoxBase.cs: Add conditional shortcuts.
9549 2007-03-19 Everaldo Canuto <everaldo@simios.org>
9551 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
9553 2007-03-19 Chris Toshok <toshok@ximian.com>
9557 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
9558 swallow the message we're waiting on, instead of delivering it, as
9559 this is only used for the WM_SHOWWINDOW raised from
9560 MapWindow/UnmapWindow, and the message needs to be generated
9561 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
9562 before doing the Map/Unmap. Also make sure that the Hwnd is still
9563 alive after the message has been handled.
9565 *before* the window is shown.
9567 * Control.cs (CreateControl): guard a few more things inside the
9568 if (!is_created) block, as we might end up being called again -
9570 (WmShowWindow): call CreateControl if we're showing the control.
9572 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
9574 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
9575 controls without a handle if they have any parent with a handle. In
9576 Dispose add a check whether the handle is created or not before
9577 calling BeginInvoke, this removes the need of the extra disposing
9578 parameter (which was bogus anyway since it didn't prevent the
9579 invoke from happening, it only skipped the check for an existing
9580 handle, meaning that the invoke would call on an inexistent
9583 2007-03-19 Everaldo Canuto <everaldo@simios.org>
9585 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
9588 2007-03-18 Everaldo Canuto <everaldo@simios.org>
9591 - Fixed a problem that dont show help button for messages with 3 buttons.
9592 - Refactory button size and position calculations, now dont use fixed
9593 values, also fixed button sizes (#80043) and form's border space.
9594 - AddButton method created, now all other AddButton methods call this one.
9595 - Some other source code cosmetic changes.
9597 2007-03-18 Jackson Harper <jackson@ximian.com>
9599 * RichTextBox.cs: Don't do this all fonts must match check if
9600 there is only one char selected.
9602 2007-03-18 Jackson Harper <jackson@ximian.com>
9604 * TreeView.cs: ScrollWindow works properly now, so we don't need
9605 to screw around with the scroll area. This fixes some artifacts
9606 when expanding and collapsing.
9608 2007-03-18 Jackson Harper <jackson@ximian.com>
9610 * TextBoxBase.cs: Allow updating the selection position when the
9611 cursor is outside the textarea, but we have a capture.
9612 * TextControl.cs: A special case for when the cursor is outside
9613 the bounds of the TB.
9615 2007-03-18 Jackson Harper <jackson@ximian.com>
9617 * TextBoxBase.cs: Remove image pasting code for now. There is no
9618 way to get an image on the clipboard right now anyways.
9620 * RichTextBox.cs: Use the new RTF Picture class for pictures.
9622 2007-03-18 Everaldo Canuto <everaldo@simios.org>
9625 - Set window properties in constructor intead of on CreateParams.
9626 - Remove topmost from Window ExStyle.
9627 - Set ShowInTaskbar to false.
9628 - Set form border to FixedDialog.
9629 - Some cosmetic changes and remove unneeded comments.
9630 - It fixes itens 2,3 and 4 of bug #80043.
9632 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
9634 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
9635 none was explicitly set. Fixes part of bug #79949.
9637 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
9639 * ToolStripComboBox.cs: Add AutoComplete*.
9641 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
9643 * ToolStripComboBox.cs: Add FlatStyle.
9645 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
9647 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
9648 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
9650 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9652 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
9653 CheckBox.cs, RadioButton.cs, BindingSource.cs,
9654 DataGridColumnStyle.cs: Remove warnings.
9656 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9658 * Menu.cs: MergeMenu: Check menu argument for null before looping over
9660 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
9661 visibility of mdi child forms. FormSizeChangedHandler: update the
9662 maximized size if size has changed while maximized.
9663 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
9664 creating the handle.
9665 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
9666 avoid creating the handle if not created.
9667 * XplatUI.cs: Update debug output.
9668 * XplatUIStructs.cs: Added ToString's for a couple of structs.
9670 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
9672 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
9674 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
9675 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
9676 Implement keyboard shortcuts.
9678 2007-03-15 Everaldo Canuto <everaldo@simios.org>
9680 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
9681 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
9682 ColorDialog and all derived classes.
9684 2007-03-15 Everaldo Canuto <everaldo@simios.org>
9686 [ Fixes bug #79828 ]
9689 - Rename ToolBarButtonInfor to ToolBarItem.
9690 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
9691 - Maintain an array of ToolBarItem, used instead of ToolBarButton
9692 collection to be able add same button more than one time on a toolbar.
9693 - Refactory all properties and methods to use ToolBarItem.
9696 - Remove all propeties and methods that is now in ToolBarItem.
9697 - Rectangle propery now gets the rectangle from first ToolBarItem to
9698 mimic win32 behavior.
9699 - Size calculation and layout methods also removed.
9701 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
9702 ToolBarItem instead of ToolBarButton to right drawing buttons when
9703 same button/separator was added more than one time to ToolBar.
9705 * ThemeNice.cs: Same as above.
9707 2007-03-15 Andreia Gaita <avidigal@novell.com>
9709 * XplatUIX11.cs: Fire extra MouseMove events right after
9710 MouseDown and MouseUp, emulating win32's <censored> behaviour
9711 for apps that rely on it.
9713 2007-03-15 Jackson Harper <jackson@ximian.com>
9716 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
9717 it is drawn on the controls client window and there is no NC
9719 - Set the background color to gray on 2.0 when we are readonly.
9721 2007-03-15 Chris Toshok <toshok@ximian.com>
9723 [ Fixes bug #81144 ]
9725 * XplatUIX11.cs: implement VirtualScreen independently of
9726 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
9729 2007-03-15 Chris Toshok <toshok@ximian.com>
9731 * Hwnd.cs: add an internal field for the cached_window_state.
9733 * XplatUIX11.cs: cache the window state, invalidating the cache
9734 (and thus re-querying the X server) only when we see an update to
9735 the _NET_WM_STATE property.
9737 2007-03-15 Chris Toshok <toshok@ximian.com>
9739 * BindingSource.cs: get a lot of the unit tests working.
9741 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
9743 * Control.cs: Modify UpdateStyles to store distances when bounds >=
9744 0 instead of just bounds > 0. [Fixes bug #80912]
9746 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
9748 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
9751 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
9753 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
9754 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
9755 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
9756 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
9758 2007-03-15 Chris Toshok <toshok@ximian.com>
9762 * Control.cs: add Ivan's fix for 81101, with a slight modification
9763 - you can set control.Target to null.
9765 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
9767 * ToolStripItem.cs: If our OwnerItem is null, we can't use
9768 HideDropDown, use Hide instead to prevent an NRE.
9771 2007-03-14 Jackson Harper <jackson@ximian.com>
9773 * TextBoxBase.cs: Mess with the creation stuff a little. We need
9774 to calculate the document before the handle is created, in some
9775 cases. (Actually just one case).
9777 2007-03-14 Jackson Harper <jackson@ximian.com>
9779 * TextBoxBase.cs: Need to display the caret after letting the base
9780 wndproc handle the focus methods, because the caret display
9781 methods check the focus state.
9782 - Try to display the caret after updating it's position with SelectWord.
9783 - Don't need to do an immediate update on this recalc, since there
9784 will be an invalidate anyways.
9786 2007-03-14 Jackson Harper <jackson@ximian.com>
9788 * TreeView.cs: Some workarounds so that we can match event order a
9791 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
9793 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
9794 #80803. Avoid NullReferenceException when Control does not have
9795 parent. Fixed different blinkstyle issues. Only subscribe to Tick
9796 event a single time. Only draw error icon when control is created and
9797 visible. Fixes failing unit tests.
9799 2007-03-14 Andreia Gaita <avidigal@novell.com>
9801 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
9802 Selecting events. Fire Leave and Enter events when changing tabs.
9804 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
9806 * TreeView.cs: Add TreeViewNodeSorter.
9807 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
9809 2007-03-14 Chris Toshok <toshok@ximian.com>
9811 * Form.cs: go ahead and remove the RecreateHandles that jpobst
9812 removed earlier and I had him add back it. It turns out metacity
9813 *does* in fact handle the MOTIF_WM_HINTS property changing, it
9814 just doesn't redraw the window titlebar until you resize the
9815 window. This also means we aren't recreating the entire window
9816 hierarchy on X when you change this property. And it looks better
9819 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9822 * ListView.cs: Collecting selection information
9823 is now done in SelectedIndexCollection rather than in
9824 SelectedListViewItemCollection. This is done so we can
9825 have the selection information code in one single place
9826 (virtual mode selection information entirely depends on
9827 SelectedIndexCollection).
9829 2007-03-13 Miguel de Icaza <miguel@novell.com>
9831 * ErrorProvider.cs: Add stubs for ISupportInitialize
9833 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9835 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
9836 in the right order with the right values, from the Checked property,
9837 just as MS does (instead of triggering them from ListView).
9839 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
9841 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9843 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
9844 the correct handler in OnItemCheck method (ItemCheckEventHandler
9845 instead of EventHandler). This used to throw an InvalidCastException.
9847 2007-03-13 Jackson Harper <jackson@ximian.com>
9849 * TextBoxBase.cs: Calculate the document before the handle is
9850 created, so there isn't an extra invalidate called.
9852 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
9854 * Form.cs: Don't set owner in ShowDialog until we are sure
9855 that we aren't going to throw an exception. [Fixes bug #80773]
9857 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
9859 * TreeView.cs: Make it compile.
9861 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9863 * Control.cs: Another place we don't call SizeFromClientSize.
9864 * Form.cs: Another place we don't call SizeFromClientSize.
9867 2007-03-12 Jackson Harper <jackson@ximian.com>
9869 * TreeView.cs: Basically emulating some strangness here with
9870 exanding nodes and setting node positions when windows aren't
9872 - Also attempting to walk the node tree less than previously, and
9873 just use visible order calculations for determining offsets.
9874 - oops made scrolling backwards.
9875 * TreeNode.cs: We need to start nodes with a zero visible order,
9876 because the order calcs are based on the first nodes order.
9878 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9880 * Form.cs: Don't exit the program if RecreateHandle is called on
9883 2007-03-12 Chris Toshok <toshok@ximian.com>
9885 * XEventQueue.cs: remove the use of PostQuitState.
9887 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
9888 WM_QUIT message in GetMessage, return false (and if we're in the
9889 nested WaitForHwndMessage, repost the WM_QUIT message).
9891 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9893 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
9894 or the MaximizeBox properties. [Part of bug #80640]
9896 2007-03-12 Everaldo Canuto <everaldo@simios.org>
9898 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
9901 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9903 * ToolStripItem.cs: Fix some tests I broke by checking Visible
9906 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
9908 * FileDialog.cs: Use text of File name combobox to determine what
9909 files the user selected. Added tokenizer to parse the file names.
9912 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
9914 * Control.cs: We can't call SizeFromClientSize in the constructor,
9915 but we still need to do the same work, so make an internal version.
9918 2007-03-12 Jackson Harper <jackson@ximian.com>
9922 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
9925 2007-03-12 Jackson Harper <jackson@ximian.com>
9927 * TextBoxBase.cs: Now that the handles are being created a little
9928 later, we need to make sure that the document is recalculated when
9929 the handle is created.
9931 2007-03-11 Everaldo Canuto <everaldo@simios.org>
9933 * Theme.cs: GetLinkFont abstract method added.
9936 - Remove CalcTrimRectangle, no longer needed.
9937 - Factor also remove, position issues must be fixed in libgdiplus.
9938 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
9939 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
9940 care about font used to draw links.
9941 - Set TabStop to true when control is "Selectable", control is selectable
9942 when have one or more links. Fixes #80501 (test case is also added).
9943 - Set the LinkArea values after links change, LinkArea values must be
9944 based in first link position and size, a test case was created.
9945 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
9946 the attribute must be true LinkArea.Length > 0. The same was applied to
9949 * ThemeWin32Classic.cs:
9950 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
9952 - Use CPDrawStringDisabled to draw disabled text instead of hard code
9954 - Draw focus rectangle for every parts focused, including parts that
9955 is on another line, its because regions returns various rectangles
9956 and not only one. Needed to mimic W32 look.
9957 - Uses Graphics.Clip to delimite region painted, it mean that now
9958 complete text is passed to DrawString, with this we solve layout
9959 issues without create another text renderer.
9960 - Uses Region.Intersect to fix some flickers problems, now only needed
9961 parts will redrawed.
9962 - This changes fixes #79614 and some other unreported issues, on Linux
9963 some layout problems still remain, the problem is under
9964 MeasureCharacterRanges but it is an libgdiplus bug.
9966 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
9968 * TextBox.cs: Set for foreground color.
9969 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
9970 this is already done in Control.
9972 2007-03-10 Jackson Harper <jackson@ximian.com>
9974 * TextBox.cs: Set the background color, but reset the
9975 backcolor_set flag which is just for the user setting the
9978 2007-03-09 Chris Toshok <toshok@ximian.com>
9980 * Control.cs: really remove the call to XplatUI.SetVisible from
9981 CreateHandle(), like I said I did when I merged the branch.
9983 * BindingSource.cs: implement some more of this stuff.
9985 2007-03-09 Jackson Harper <jackson@ximian.com>
9987 * TextBox.cs: Don't explicitly set our background colors.
9989 * TextBoxBase.cs: Draw readonly text.
9990 - Need to invalidate when backcolor or readonly are changed.
9992 2007-03-09 Jackson Harper <jackson@ximian.com>
9994 * TextBoxBase.cs: Don't set the forecolor until the handle is
9996 - Do not raise OnPaint, and removed some old debug code.
9998 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
10000 * ScrollableControl.cs: Fix mouse wheel scrolling.
10002 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
10004 * Control.cs: Wire up MouseDoubleClick event.
10006 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
10008 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
10010 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
10011 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
10012 item is added. This logic was moved to ToolStrip.OnItemAdded.
10015 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10017 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
10019 2007-03-08 Jackson Harper <jackson@ximian.com>
10021 * TreeView.cs: Show the correct image for selected node (this used
10022 to work, not sure how the code got deleted). Also implemented 2.0 feature
10025 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10028 * ListViewItem.cs: Cache index in items when retrieving them
10031 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10033 * ToolStripItem.cs: Don't return the explicit_size if we are using
10034 AutoSize. Fixes invalidation issue when user has explicitly set a
10035 size and has AutoSize = true.
10037 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10039 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
10041 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10043 * DataGridView.cs: Remove event handler from DataView when a
10044 DataTable is used as DataSource.
10046 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
10048 * Control.cs: Create internal setter for client_size to allow it to be
10049 set without triggering resizing code.
10050 * Form.cs: Calculate client_size in constructor, only change client_size
10051 in FormBorderStyle property if Handle has been created.
10052 [Fixes #80574, #80791]
10054 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
10056 * SystemInformation.cs: Add TerminalServerSession.
10058 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10060 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
10063 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10065 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
10066 Handle before we were supposed to. Now checks ActivateOnShow property
10068 * Control.cs: Add internal ActivateOnShow property.
10069 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
10070 for ActivateOnShow.
10071 * Hwnd.cs Remove no longer needed no_activate field.
10073 2007-03-07 Jackson Harper <jackson@ximian.com>
10075 * TreeView.cs: Implement owner draw tree nodes. And a couple more
10077 * DrawTreeNodeEventHandler.cs: Add
10078 * DrawTreeNodeEventArgs.cs: Correct default value.
10080 2007-03-07 Chris Toshok <toshok@ximian.com>
10082 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
10083 to be called before NativeWindow.WndProc. Put the HwndCreating
10084 magic there to hook up our Hwnd's to handles.
10086 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
10088 * DataGridView.cs: Comment out debug code.
10090 2007-03-07 Chris Toshok <toshok@ximian.com>
10092 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
10093 to make the rest of the world happy]
10095 * Control.cs (CreateHandle): there's no need to call
10096 XplatUI.SetVisible here, it's effectively done by
10097 XplatUI.CreateWindow on X now, and always was on windows.
10099 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
10100 shortcircuit out of the loop if we have a message loop running on
10103 [Changelog from merge]
10105 2007-03-05 Chris Toshok <toshok@ximian.com>
10107 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
10108 causes handle creation.
10110 2007-02-28 Chris Toshok <toshok@ximian.com>
10112 * ApplicationContext.cs: Add a flag to make sure we only raise the
10113 ThreadExit event once (ExitThreadCore can be indirectly called
10114 from a few places.) I don't like the additional flag, but it
10115 makes the event ordering/count correct.
10117 * Application.cs (MWFThread.LoopCount): don't use an enumerator
10118 without locking the collection. An enumerator doesn't give us any
10119 protection from modification anyway. Lock the thread hash and
10120 replace the complicated enumerator loop with a foreach.
10121 (Application.CloseForms): make internal so it can be called from
10122 ApplicationContext. This should probably be moved to MWFThread.
10123 (Application.ExitThread): don't call MWFThread.Current.Exit()
10124 here. just call XplatUI.PostQuitMessage. We'll exit the thread
10125 when the runloop exits (in response to WM_QUIT.)
10126 (Application.RunLoop): add a comment (and check) for
10127 context.MainForm being null after setting context.MainForm.Visible
10128 = true. This is because you're perfectly free to dispose of a
10129 form in VisibilityChanged. Chalk this up to another case where we
10130 need to synchronously generate WM_ACTIVATE from Control.Show.
10131 Also, add handling for WM_QUIT here so we'll exit the loop.
10133 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
10134 fact that we don't wait if we're only unmapping the whole_window
10135 makes me a bit nervous, but it doesn't seem to cause any problems
10138 also, add a comment about the stupid, broken and wrong resetting
10139 of PostQuitState to false in GetMessage().
10141 In PostQuitMessage, we need to add a WM_QUIT message to the
10142 thread's queue. We use the FosterParent to get the right
10145 Lastly, in SetVisible, we need to unmap both windows, since the
10146 waiting only happens when we're unmapping the client window. So
10147 now, the *only* time we unmap just the whole_window is in the hack
10148 for resizing a control to 0,0.
10150 2007-02-21 Chris Toshok <toshok@ximian.com>
10152 * Application.cs (CloseForms): rewrite this so that we don't
10153 modify the list while we're traversing it.
10155 2007-02-20 Chris Toshok <toshok@ximian.com>
10157 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
10158 of OnHandleCreated.
10159 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
10160 handle is created. otherwise we'll create it here.
10161 (VerticalScrollEvent): same here.
10163 * Application.cs (CloseForms): call Form.Dispose, don't post
10166 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
10167 here. Application should Dispose() of the Form's.
10169 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
10170 WM_DESTROY as well.
10171 (MapWindow,UnmapWindow): only actually do the waiting for
10172 SHOWWINDOW if the control we're dealing with is a Form.
10173 (CreateWindow): if the control isn't a form, SendMessage
10174 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
10176 * Control.cs (SetVisibleCore): always use is_visible here, not
10177 value. If we use value, we can end up re-setting something
10178 visible if, for instance, you do Control.Hide() in a delegate
10179 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
10181 2007-02-20 Chris Toshok <toshok@ximian.com>
10183 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
10184 the message we need. PeekMessage returning false should not be a
10185 condition under which we exit the loop.
10187 2007-02-15 Chris Toshok <toshok@ximian.com>
10189 * Control.cs (Refresh): only refresh if we've got a handle and are
10191 (CreateAccessibilityInstance): CreateControl() here.
10192 (UpdateChildrenZOrder): complicate the code loop even more by
10193 taking into account controls that haven't had their handle
10194 created, and those that aren't visible. But on the flip side,
10195 simplify the code by splitting it into two loops. one which
10196 builds up the list of child controls we're interested in, and the
10197 other that sets the z order of those children.
10199 2007-02-14 Chris Toshok <toshok@ximian.com>
10201 * Control.cs: Control.AccessibilityObject causes the control to be
10202 created, not just the handle.
10204 2007-02-14 Chris Toshok <toshok@ximian.com>
10206 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
10207 problem on X where a window might have its handle created (and be
10208 visible) while the window is unmapped. calling XConfigureWindow
10209 on an unmapped window is bad, and generates X errors.
10211 2007-02-13 Chris Toshok <toshok@ximian.com>
10213 * Control.cs (CreateHandle): don't loop over our children setting
10214 their parent here. do it when in WndProc when we're shown.
10215 (UpdateChildrenZOrder): make this internal so we can call it from
10217 (WndProc): for WM_SHOWWINDOW, reparent the child control after
10218 creating its handle. Also, remove the calls to PerformLayout from
10219 here. they're done in ScrollableControl.OnVisibleChanged. Also,
10220 OnVisibleChanged only seems to be called directly here for the
10221 toplevel control. It's propagated down the window hierarchy by
10222 calls to child.OnParentVisibleChanged.
10223 (OnVisibleChanged): don't do layout here - it's done (oddly
10224 enough, according to a glance at stack traces on ms.net..) in
10227 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
10228 z order of our children before calling PerformLayout.
10230 2007-02-12 Chris Toshok <toshok@ximian.com>
10232 [big change, fixes #80020]
10234 * AccessibleObject.cs: we need to make owner internal again to fix
10235 some of ControlAccessibleObject.
10237 * Control.cs: lots of changes here. add support for WM_CREATE,
10238 for which we generate OnHandleCreated. Remove the OnHandleCreated
10239 call from CreateHandle. Also add support for WM_SHOWWINDOW where
10240 we create child controls. leave the MonoTODO's for the
10241 accessibility calls, but fix the exceptions so the tests pass.
10243 Add the InvalidOperationExceptions to Invoke methods, and remove a
10244 couple of InvokeInternal methods we aren't using.
10246 Also, add a couple of CreateHandle calls in places where we know
10247 the handles are being created but our code doesn't reference
10250 Make SetVisibleCore call OnVisibleChange if the handle isn't
10251 created. If the handle is created, we rely on XplatUI.SetVisible
10252 generating the event synchronously.
10254 Lastly, make sure we don't use this.Handle inside CreateHandle,
10255 because we can call back into client (and that code can dispose of
10258 * XplatUIStructs.cs: misc/cleanup.
10260 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
10261 although we don't populate the wParam properly.
10262 (CreateWindow): generate WM_CREATE.
10263 (MapWindow,UnmapWindow): make these calls synchronous, at great
10264 performance expense (particularly in the unmap case), to match
10267 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
10269 (set_MdiParent): don't recreate the handle unless it's been
10272 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
10275 * NativeWindow.cs: this is probably the weirdest part of the
10276 patch. We need a way to link up the window being created to the
10277 WM_CREATE message. Since we can only be creating one window at a
10278 time on a given thread, we keep track of a per-thread reference so
10279 we can dispatch it properly. We also need to keep track of the
10280 Hwnd currently being created so that the win32 backend doesn't
10283 * XplatUIWin32.cs: a similar change to the one we made in
10286 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
10288 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
10289 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
10290 to draw the menu shortcut string.
10292 2007-03-07 Jackson Harper <jackson@ximian.com>
10294 * TreeNode.cs: Add the 2.0 collapse method.
10296 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10298 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
10300 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10302 * DataGridView.cs: Change DataSource will clear column and row
10303 lists. Call Invalidate() to reflect DataSource change.
10305 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10307 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
10308 and a new row is added to it.
10310 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
10312 * DataGridView.cs: Add columns when DataSource is en empty list but
10313 is a System.Data.DataView (from a System.Data.DataTable).
10315 2007-03-06 Andreia Gaita <avidigal@novell.com>
10317 * Label.cs: Implement AutoEllipsis (2.0)
10319 2007-03-06 Jackson Harper <jackson@ximian.com>
10321 * TreeView.cs: Implement 2.0 TopNode setter property.
10322 - Use a local var instead of the skipped_nodes field for computing
10323 how many nodes to skip. Otherwise we won't scroll because the
10324 valuechanged handler checks if skipped_nodes is equal to the new
10326 - Implement 2.0 Sort method.
10327 - Add useless 2.0 DoubleBuffer property
10328 - Implement 2.0 LineColors property. Lets you change the color of
10329 the lines in the tree. Terribly useful for creating non cohesive
10331 - Implement 2.0 image key feature.
10333 2007-03-06 Jackson Harper <jackson@ximian.com>
10335 * TreeView.cs: We can't get the bounds of the nodes before raising
10336 the AfterSelect event, because that event could change the node's
10337 bounds (scrolling, font change, etc).
10339 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
10341 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
10342 * Form.cs: Don't recreate handle when creating FormWindowManager, just
10343 update window styles. In CreateParams us VisibleInternal instead of
10344 VIsible to get the actual visible flag set for this form.
10345 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
10346 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
10347 handle the case when the form is already maximized, in which case
10348 it should be restored. Fixes #81043.
10350 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
10352 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
10354 2007-03-05 Jackson Harper <jackson@ximian.com>
10356 * TreeViewHitTestInfo.cs: implement.
10358 2007-03-05 Jackson Harper <jackson@ximian.com>
10360 * InternalWindowManager.cs: class status fix.
10362 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
10364 * InternalWindowManager.cs: All windows that have a parent
10365 are confined to their parent when they're being moved.
10368 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
10370 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
10371 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
10373 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10375 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
10376 buttons invisible before deciding which ones should be visible
10377 (fixes minimize/maximize buttons showing up in toolwindows). Remove
10378 an unused variable.
10379 * InternalWindowManager.cs: Remove warning.
10381 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10383 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
10384 to throw an InvalidOperationException is virtual mode is being used.
10386 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
10388 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
10389 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
10390 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
10391 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10392 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
10393 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
10395 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10397 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
10398 driver.KeyboardDelay from XplatUI.KeyboardDelay
10399 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
10400 (patch by Sergey Volk)
10402 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10404 * ToolWindowManager.cs: Added, contains logic for
10406 * CreateParams.cs: Add a few helper methods and an
10407 internal variable to know which control the CreateParams belongs
10409 * Control.cs: Call Form.ChangingParent when the
10410 parent is about to be changed.
10411 * XplatUIX11.cs: DeriveStyles (): Set
10412 caption_height for all windows that have captions and are children.
10413 Update to use ToolWindowManager instead of InternalWindowManager
10415 * XplatUIWin32.cs: Set fake window styles for all
10416 windows that have window managers.
10417 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
10418 now duplicated for mdi windows when they are
10419 maximized, first for the buttons the window itself has, then for
10420 the buttons that appear in the menu bar. Makes things a little
10421 easier). Updated UpdateWindowDecorations, SetWindowState and the
10422 mouse eventhandlers accordingly.
10423 * Form.cs: Add ChangingParent (), contains the
10424 logic of what should happen when the parent changes. In MdiParent
10425 don't set things that ChangingParent () is doing. When handling
10426 WM_CLOSE, we can close the form if there are any other modal forms
10427 and the current form is a descendent of the modal form.
10428 * InternalWindowManager.cs: A lot of refactoring,
10429 the title buttons are now extracted to a separate container class
10430 that takes care of all button code (clicks, tooltips, etc). Moved
10431 Iconic|Maximized|Normal Bounds properties to this class from
10432 MdiWindowManager, so that the window state logic can succeed for
10433 other than mdi wm's. Implemented general window state change logic.
10434 Moved CreateButtons to ThemeWin32Classic, since the theme might
10435 override which buttons are available when as well as the exact
10437 * FormWindowManager.cs: Added, contains logic for
10439 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
10440 which buttons go where (and if they are at all visible).
10441 Removed special handling of maximized windows, since they aren't special.
10442 In DrawManagedWindowDecorations don't try to draw the text if it is
10444 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
10445 use whatever the wm gives us.
10447 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
10449 * ButtonBase.cs: Add 2.0 properties.
10450 * Button.cs: Override Draw for 2.0.
10451 * Control.cs: Add Entered and Selected properties.
10452 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
10453 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
10454 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
10456 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
10458 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
10460 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
10462 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
10464 * XplatUIWin32.cs: Register a new class with Windows each time we get
10465 a new ClassStyle. [Fixes bugs #79432, #80817]
10466 * Controls.cs: Set the correct ClassStyle in CreateParams.
10467 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
10469 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
10471 * ListView.cs: Add fireEvent argument to ReorderColumn since the
10472 ColumnReordered event must not be signaled when modifying DisplayIndex
10473 of a ColumnHeader. Added internal ReorderColumns method which takes
10474 care of drawing, and updating the internal DisplayIndex of the
10475 ColumnHeader. Added AddColumn method which is invoked from
10476 ColumnHeaderCollection when adding or inserting columns, and which
10477 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
10478 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
10479 Recalculated dispay indices after removing a ColumnHeader.
10480 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
10481 match MS. Allows last display index to be returned after ListView
10482 is disposed. Update actual location of ColumnHeader when DisplayIndex
10485 2007-03-01 Everaldo Canuto <everaldo@simios.org>
10487 * LinkLabel.cs: Improve CalcTrimRectangle.
10489 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
10491 2007-02-28 Everaldo Canuto <everaldo@simios.org>
10493 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
10494 get rectangle as a result value.
10496 2007-02-28 Everaldo Canuto <everaldo@simios.org>
10498 * LinkLabel.cs: Theres some diferences between rectangle return from
10499 MeasureCharacterRanges and the area used for DrawString to fix this
10500 CalcMeasurementFactor method was created, it calcules the diferences
10501 to be use later to adjust rectangle in draw operations. Fixes #80473.
10503 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
10504 to adjust draw rectangle.
10506 2007-02-27 Everaldo Canuto <everaldo@simios.org>
10508 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
10509 text and some other changes to reduce and optimize source code.
10511 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
10513 * RadioButton.cs: Implement 2.0 event.
10514 * RelatedImageListAttribute.cs: Implement new class.
10516 2007-02-27 Everaldo Canuto <everaldo@simios.org>
10518 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
10520 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
10522 * CheckBox.cs: Implement 2.0 functionality.
10524 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10526 * ListView.cs: Refactor Add and AddRange methods of
10527 ListViewItemCollection, to not update the ListView
10528 everytime an item is added in AddRange. Also move the update
10529 code to a new CollectionChanged method, and call it
10530 from other methods that need it as well (this should also fix some
10531 bugs when Sorting is used).
10533 2007-02-27 Jackson Harper <jackson@ximian.com>
10535 * TextControl.cs: Try to never let the caret stay in a non-text
10537 * TextBoxBase.cs: Update the caret.
10539 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
10541 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
10542 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
10543 delete POINT structure, duplicate of one in XplatUIStructs.
10544 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
10546 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
10548 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
10549 edit box since otherwise the Label would immediately be set (even if
10550 the user did not modify the label). In OnKeyDown set Handled to true
10551 if Return or Escape was pressed. In ColumnHeaderCollection unlink
10552 columns that are to be removed. In ListViewItemCollection unlink items
10553 that are to be removed.
10555 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
10557 * TextRenderer.cs: If we set a GDI clip region, we need to clear
10558 it when we are done. [Fixes bug #80949]
10560 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10562 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
10564 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10566 * ListView.cs: I forgot to commit the changes for ListView
10567 in my previous patch.
10569 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10571 * Clipboard.cs: Partially implement an overload of SetDataObject.
10572 * Form.cs: Implement ShowWithoutActivation.
10573 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
10575 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10577 This is a first set of changes to make the Virtual mode works,
10578 by avoiding the retrieval of ListViewItem instances until
10581 * ListView.cs: Store item position in the ListView instead of the
10582 ListViewItem, this way we don't request the Bounds property of
10583 ListViewItem inside the ListView calculations, as well as cache the item
10584 size in item_size field. Store indexes instead of ListViewItem
10585 instances in the matrix used by icon view. Add a ItemMatrixLocation
10586 struct to hold the row and col info of the matrix info.
10588 * ListViewItem.cs: Don't store the location anymore, and only cache
10589 the rectangles for GetBounds. Use the ListView.GetItemLocation
10590 method to retrieve the actual location.
10592 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10594 * TextRenderer.cs: Add clipping support, thanks to George.
10597 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
10599 * ListViewItem.cs: Cancel label edit when item is removed from
10601 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
10602 event before the edit textbox is displayed. Added CancelEdit method
10603 which is used end to editing while ignoring the value set by the
10604 user. In EndEdit, set focus to ListView to avoid losing focus to
10605 other controls. In ListViewItemCollection.Clear, cancel editing of
10606 any of the items. In Remove, cancel editing of item being removed.
10607 Avoid udplicate code by modifing RemoveAt to invoke Remove.
10609 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
10611 * FileDialog.cs: Update FSEntry when move is successful. Fixes
10614 2007-02-23 Everaldo Canuto <everaldo@simios.org>
10616 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
10617 compatible with non X11 systems. Fixes #80901.
10619 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
10621 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
10622 whether the item should be unselected and reselect. We do no want this
10623 when we're starting to edit the label. Do not fire the
10624 SelectedIndexChanged event from ListView when its already been fired
10625 by modifying ListViewItem.Selected. Fixes bug #80943.
10627 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10629 * TextRenderer.cs: Previos commit logic was backwards.
10631 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
10633 * TextRenderer.cs: Don't add padding on MeasureText if we were
10634 sent the NoPadding flag.
10636 2007-02-23 Everaldo Canuto <everaldo@simios.org>
10638 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
10639 after DrawButton. To prevent image overlaps button borders SetClip and
10640 ResetClip added before and after draw image. Fixes #79129.
10642 2007-02-23 Everaldo Canuto <everaldo@simios.org>
10644 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
10645 window size, it fix problem when you run under win32 that theres
10646 Size diferent than ClientSize. Also fix controls size and positions
10647 to mimic Win32. Fixes #80837.
10649 2007-02-22 Everaldo Canuto <everaldo@simios.org>
10651 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
10652 menu area to fix some problems for non X11 systems. Fixes #80613.
10654 2007-02-22 Jackson Harper <jackson@ximian.com>
10656 * TreeNode.cs: When a node is expanded, set its is_expanded flag
10657 even if it doesn't have any children.
10659 2007-02-22 Jackson Harper <jackson@ximian.com>
10661 * TreeView.cs: Calculate the top node 'on the fly', this
10662 eliminates issues where you need to click on the tree before
10663 scrolling it to get the top node computed correctly.
10664 * TreeNodeCollection.cs: We don't need to mess with the top node
10667 2007-02-22 Jackson Harper <jackson@ximian.com>
10669 * DataGridViewRow.cs: Fix typo so height can actually be set.
10670 Patch by Peter Grimm.
10672 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
10674 * FileDialog.cs: Fixed support for renaming files and directories.
10675 * ListView.cs: Do not lose focus when edit is canceled. Process
10676 Escape as regular key (to prevent closing of dialogs).
10678 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
10680 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
10681 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
10683 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
10685 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
10686 did not modify label.
10687 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
10688 modified the text. Reset Label when user presses Escape in edit mode.
10689 Move focus to ListView after having cancelled or finished editing the
10692 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
10694 * ComboBox.cs: Removed unnecessary initializations. Marked items field
10695 private. Clear textbox when Text is set to null and SelectedIndex is
10697 * FileDialog.cs: Removed unnecessary initializations. Removed
10698 workarounds for ComboBox bugs that are now fixed. Modified
10699 DefaultExt, InitialDirectory and Title property to change null to
10700 zero-length string in getters. Avoid directly accessing fields.
10702 2007-02-20 Jackson Harper <jackson@ximian.com>
10704 * TextControl.cs: Remove RecalAlignments call, that was some
10705 debugging leftovers.
10706 - Don't use the line indent when we shouldn't.
10707 * RichTextBox.cs: Add support for paragraph left indents.
10709 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10711 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
10712 Seems like the class status pages doesn't catch params differences.
10714 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
10716 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
10718 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
10720 * ComboBox.cs: Setting Text should have no effect if item text of
10721 selected item exactly matches value. First lookup text using
10722 case-sensitive comparison, and fallback to case-insensitive comparison.
10723 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
10724 allow startIndex to be last index. Changed ArgumentOutOfRangeException
10725 paramname to match MS. Restart from first item if string is not found
10726 after startIndex. Fixed paramname of ArgumentNullException that is
10727 thrown for null value in ObjectCollection.Contains.
10729 2007-02-19 Everaldo Canuto <everaldo@simios.org>
10731 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
10733 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10735 * ListControl.cs: In SelectedValue use value.Equals to compare for
10736 equality instead of ==, otherwise it will fail for strings.
10739 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10741 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
10742 since the caret won't show up unless ShowSelection is true.
10745 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
10747 * Application.cs: When disabling all forms but the main form, do not
10748 disable any descendants of the main form (such as mdi children or
10749 other parented forms). Fixes #80822 on Windows.
10750 * Form.cs: If we have a parent, set the WS_CHILD style.
10751 * Control.cs: Update the window styles if the control whose parent has
10752 changed is a form (the WS_CHILD style has to be switched).
10754 2007-02-19 Everaldo Canuto <everaldo@simios.org>
10756 * XplatUIStructs.cs: MsgUIState structure added.
10758 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
10760 * FileDialog.cs: Removed need for separate fileName field. On 2.0
10761 profile, do not check filename(s) for illegal character if filename(s)
10762 were set non-interactively but always check on 1.0 profile. Fixed NRE
10763 in DefaultExt and only strip off first leading dot. Improve exception
10764 message when invalid Filter is set. Do not ignore InitialDirectory if
10765 it does no exist. Store specified Title, and if empty use default
10766 title (depending on type of dialog). Added an internal DialogTitle
10767 property for retrieving dialog title. Fixed logic of displayed dir to
10768 more closely match MS. Avoid setting ComboBox.Text to a zero-length
10769 string as its buggy.
10770 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
10771 FileName is a zero-length string (it can never be null). Override
10772 DialogTitle property to set default title of dialog box.
10773 * SaveFileDialog.cs: Override DialogTitle property to set default
10774 title of dialog box.
10776 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
10778 * FileDialog.cs: Modify default text of filename and filetype labels
10779 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
10780 after we've updated the SelectedIndex. Fixes part of bug #80887.
10781 * SaveFileDialog.cs: Set text of filetype label.
10783 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10785 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
10786 label field. Needed by latest Jackson's fixes for ListView.
10788 2007-02-16 Andreia Gaita <avidigal@novell.com>
10790 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
10791 print preview images.
10793 2007-02-16 Jackson Harper <jackson@ximian.com>
10795 * ListView.cs: Make AfterLabelEdit work correctly.
10796 * FileDialog.cs: After changing the name of the folder, we have to
10797 make sure that it is created, or that we pop up an error because
10800 2007-02-16 Jackson Harper <jackson@ximian.com>
10802 * X11Dnd.cs: Implement aliases on mime handlers, so things like
10803 System.String are mapped to text.
10804 - Handle dataobjects, getting all the possible formats out of them
10805 - We dont need the drag event args before we give feedback. This
10806 allows feedback cursors to be immediate before selections have
10809 2007-02-16 Jackson Harper <jackson@ximian.com>
10811 * TextBoxBase.cs: Modified the method for inserting images to
10812 taking a line and position instead of tag and position.
10813 * RichTextBox.cs: Handle PngBlip data by inserting the png image
10815 * TextControl.cs: Allow images to be inserted as the first tag of
10817 - Fix some off by one issues when we assume the first tag is a
10818 text tag, not an image tag.
10820 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10822 * ListView.cs: Set focus to ListView when ItemControl gets a
10823 WM_RBUTTONDOWN message, to mimic .Net behaviour.
10824 Fixes part of #80467.
10826 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
10828 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
10829 validate Text input (if null or empty string reset Value to default
10830 value). Fixes #80830.
10832 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10834 * ListView.cs: Set owner as null for columns and items when
10835 Dispose is invoked. Fixes #80607.
10837 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
10839 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
10840 showing DropDowns, don't show a Grip when doing Flow layout.
10841 [This fixes the toolbox in PDN 2.72.]
10842 * ToolStripItem.cs: Add Anchor property and some internal properties to
10843 reduces needed changes to FlowLayout.
10844 * ToolStripOverflow.cs: Remove unused variable.
10845 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
10846 use it in the layout calculations.
10848 2007-02-13 Everaldo Canuto <everaldo@simios.org>
10850 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
10851 reported in #79640.
10853 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
10856 2007-02-13 Everaldo Canuto <everaldo@simios.org>
10858 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
10859 MeasureString format, it can make button very large in some cases, it is
10860 strange but is what win32 do.
10862 2007-02-13 Everaldo Canuto <everaldo@simios.org>
10864 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
10867 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
10868 rendering, the value is based on MenuAccessKeysUnderlined.
10870 2007-02-13 Everaldo Canuto <everaldo@simios.org>
10872 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
10875 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
10877 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
10878 and use MenuAccessKeysUnderlined instead.
10880 2007-02-13 Andreia Gaita <avidigal@novell.com>
10882 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
10883 A selected control would not get a Focus call if:
10884 - the default active control of the container is the same as
10885 the one that was selected
10886 - we are switching from one container to another
10887 Under these conditions, the container being selected already has
10888 an active_control, which is the same as the one being activated,
10889 so set_ActiveControl would always return and not send the Focus
10890 call. Fix to check if the currently active control of the container
10891 is actually focused.
10893 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
10895 * StatusStrip.cs: Implement the spring layout.
10896 * ToolStripControlHost.cs: Make sure the hosted control's visibility
10897 always matches the host.
10898 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
10899 and TextAfterImage.
10901 2007-02-13 Andreia Gaita <avidigal@novell.com>
10903 * Control.cs: Code reorganization only.
10904 - Reorganize the WndProc cases so that each case has it's own handling method,
10905 to help with the no-line-numbering stack traces.
10906 - Formatting changes (it's vstudio's fault, really :p)
10908 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
10910 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
10911 Thread.CurrentUICulture to match DateTimePicker's (and MS)
10914 2007-02-12 Jackson Harper <jackson@ximian.com>
10917 * TextBox.cs: By default we have a non multiline document
10918 - use the multiline property instead of the internal variable
10919 * TextBoxBase.cs: Treat multiline and non multiline the same in
10921 - Use the documents multiline flag instead of tracking it ourself
10922 * TextControl.cs: Attempt at getting multiline to match MS
10923 behavior. Lines now track an offset, which is either their X or Y
10924 offset depending on whether or not we are in multiline mode.
10925 - Update all the methods to understand that lines have an X value.
10926 - Fix crash in Undo::Duplicate when empty lines are deleted.
10928 2007-02-12 Everaldo Canuto <everaldo@simios.org>
10930 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
10931 code moved to properties PreferredHeight and PreferredWidth. It solve the
10932 all problems when preferred sizes must be recalculated. Fixes #80801.
10934 2007-02-12 Everaldo Canuto <everaldo@simios.org>
10936 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
10937 font height when compatible_text_rendering is false. Partially fix #80801.
10939 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
10941 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
10943 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
10945 * Form.cs: Improved exception messages in ShowDialog.
10947 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
10949 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
10950 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
10951 if not set. Fixes bug #80764. Avoid accessing current_settings field
10954 2007-02-08 Everaldo Canuto <everaldo@simios.org>
10956 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
10959 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
10960 public in 2.0 and for easy maintenance and dont break compatibility it is
10963 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
10965 * ToolStripItem.cs: Implement using images from ImageList.
10967 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10969 * DateTimePicker.cs: Change default date-formatting culture from
10970 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
10971 seems to be the way MS does it.
10973 2007-02-08 Andreia Gaita <avidigal@novell.com>
10975 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
10976 (the 6 was cut off on the right side)
10978 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
10980 * Form.cs: Tell MenuStrips to close when the form is clicked.
10981 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
10982 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
10983 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
10984 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
10985 support for Overflow, where items that do not fit are automatically
10986 reparented to a drop down menu.
10987 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
10988 Also: fixes bug #80747.
10990 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10992 * ComboBox.cs: Remove warning (unused code).
10993 * ScrollableControl.cs: Remove warning for 1.1 profile.
10995 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10997 * Form.cs: Remove a warning.
10999 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
11001 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
11002 'g' specifier, not documented anywhere, but seems to always show up
11003 as a single space (might have something to do with the DateTime 'g'
11004 specifier, which is the era format, but since DateTimePicker can't
11005 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
11006 won't crash if the format has an unmatched quote. Now shows
11007 single-character formats correctly. Fixes #80744.
11009 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
11011 * StatusStrip.cs: Stretch property needs to call base.Stretch,
11012 not this.Stretch to fix stack overflow. [Fixes bug #80760]
11014 2007-02-07 Chris Toshok <toshok@ximian.com>
11016 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
11017 background color. it overwrites the background image we've
11018 already painted. Fixes #80599.
11020 2007-02-07 Chris Toshok <toshok@ximian.com>
11022 * DataGrid.cs: return immediately from Edit() when there are no
11023 columns. Fixes #80662.
11025 2007-02-07 Chris Toshok <toshok@ximian.com>
11027 * MessageBox.cs: fix #80625. don't always show the Help button in
11028 2.0. use the displayHelpButton parameter to determine if we
11029 should show it. Also, make the internal show_help field private.
11031 2007-02-07 Chris Toshok <toshok@ximian.com>
11033 * Control.cs (SetVisibleCore): check in the proposed patch for
11034 80604, and set is_visible before calling CreateControl.
11036 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
11038 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
11039 MonoInternalNote. This is added automagically by VS2005, so let's not crash
11042 2007-02-06 Everaldo Canuto <everaldo@simios.org>
11044 * MenuAPI.cs: hotkey_active internal field added, it is required because
11045 we need to know when hotkeys must be draw, before this change a keystate
11046 Navigating was used but we can have menu in navigating state without
11047 hotkeys. Fixes #80694.
11049 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
11051 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11053 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
11054 corresponding events and methods to be internal for 1.1 profile and
11055 public for 2.0 profile (required by SizeGrip).
11056 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
11057 implicit control list). Don't set the size nor the location of the
11058 SizeGrip anymore as it's not needed.
11059 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
11060 draw directly on the captured control (fixes #80656). Removed
11061 ShowGrip (it wasn't used anywhere), redraw (always true), added
11062 GetDefaultSize and GetDefaultRectangle to calculate defaults.
11063 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
11064 be called from SizeGrip.
11066 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
11068 * Timer.cs: Throw ArgumentException if Interval <= 0.
11070 2007-02-05 Jackson Harper <jackson@ximian.com>
11072 * TreeView.cs: We need to check scrollbar visibility when window
11073 visibility is updated, because non visible trees don't ever add
11075 * Cursor.cs: We want the override cursor to be reset to NULL when
11076 we set current cursor to the default cursor.
11078 2007-02-05 Jackson Harper <jackson@ximian.com>
11080 * TextControl.cs: Don't have crlfs when we are non multiline.
11081 - Consolidate the line position.
11083 2007-02-05 Jackson Harper <jackson@ximian.com>
11085 * X11Keyboard.cs: BACK+CTRL gets a special char code.
11087 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11089 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
11090 handling LeaveNotify->NotifyUngrab in order to send
11091 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
11092 after calling XUngrabPointer, so we call WindowUngrabbed directly
11093 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
11094 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
11095 MouseCaptureChanged correctly. Also create handles if changing
11096 Capture (matches MS behaviour).
11098 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11100 * SizeGrip.cs: Make the last change 2.0 only.
11102 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11104 * SizeGrip.cs: If resizing and the capture is lost, revert any size
11105 changes to initial size (fixes #80597).
11107 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11109 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
11111 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11113 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
11114 background) and only allow dragging if enabled. This way the
11115 sizegrip can be used to fill the open square that otherwise would
11116 have been shown in the bottom right corner of ScrollableControl
11117 when ScrollableControl is not suppose to support sizing.
11118 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
11119 sizegrip is shown and enabled, and hook up with necessary events.
11121 2007-02-01 Chris Toshok <toshok@ximian.com>
11123 * DataGridTextBoxColumn.cs: clean up the
11124 GetFormattedString/GetColumnValueAtRow combination of functions.
11125 Also fix UpdateUI, and the initial state of
11126 IsInEditOrNavigateMode.
11128 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
11129 aren't supposed to scroll the textbox here, we're supposed to
11130 scroll the datagrid.
11132 2007-02-01 Chris Toshok <toshok@ximian.com>
11134 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
11135 setting the position.
11137 2007-02-01 Chris Toshok <toshok@ximian.com>
11139 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
11140 here, since the most recent focus fixes keep us from generating
11141 the Leave event when our textbox gets focus.
11142 (Edit): we should be passing null for the column style's
11143 instantText parameter.
11145 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
11147 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
11148 raised. Fixes menu text/icons not showing up in PDN.
11150 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
11152 * Control.cs: Remove code in constructor that makes every
11153 control with WS_CHILD set have initial location -1, -1.
11155 2007-01-31 Jackson Harper <jackson@ximian.com>
11157 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
11159 * XplatUIX11.cs: Give teh keyboard to teh dnd.
11161 2007-01-31 Jackson Harper <jackson@ximian.com>
11163 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
11164 - Remove some debug code.
11166 2007-01-31 Jackson Harper <jackson@ximian.com>
11168 * XplatUIX11.cs: If you set the override cursor during a grab, it
11169 should actually override the grab cursor. This comes into play
11170 when you are setting custom cursors in a DND feedback method.
11172 2007-01-31 Jackson Harper <jackson@ximian.com>
11174 * X11Dnd.cs: Add support for handling the QueryContinue and
11175 GiveFeedback events.
11176 - Cancel drag and drop actions when the escape key is clicked.
11177 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
11178 can handle the ESCAPE key.
11179 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
11180 done when dnd events are continued after the button is released.
11181 - Add a new helper method so that dnd can translate key events.
11183 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
11185 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
11186 make it more obvious what is happening.
11188 2007-01-30 Jackson Harper <jackson@ximian.com>
11190 * XplatUIX11.cs: Don't break when handling button release in drag
11191 and drop operations. We need that BUTTONUP message to get through
11192 so capture is released.
11193 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
11194 this is handled automatically when the mouse is down.
11196 2007-01-30 Jackson Harper <jackson@ximian.com>
11198 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
11199 is closed, so we need to make sure that we aren't changing the
11200 dialog result when the OK (Open or Save) button has been clicked
11201 and we are closing the window ourselves. Note we don't need to
11202 worry about the cache being written in this case, because it was
11203 already done in the previous FilOk call.
11205 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11207 * DateTimePicker.cs: Remove a warning.
11208 * ComboBox.cs: Remove a couple of warnings.
11210 2007-01-29 Chris Toshok <toshok@ximian.com>
11212 * XplatUIX11.cs: don't crash, and remove the icon if the user has
11213 set one, if SetIcon is passed a null icon.
11215 2007-01-29 Andreia Gaita <avidigal@novell.com>
11217 * TextBox.cs: Redraw when the password characters changes
11218 * TextControl.cs: Check if textbox has a password char and draw
11219 a line of password chars instead of the text in the line. LineTag gets
11220 an extra Draw() method which allows document.Draw to override the text
11221 that will be drawn. Removes 1024 char limitation on length of passworded
11224 2007-01-29 Jackson Harper <jackson@ximian.com>
11226 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
11227 single chars is not.
11229 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
11231 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
11232 one pixel. Fix a StackOverflowException caused by an overload wrongly
11235 2007-01-26 Everaldo Canuto <everaldo@simios.org>
11237 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
11238 also remove ProcessArrowKey and put the code inside ProcessKeys.
11240 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
11242 * PaddingConverter.cs: Added.
11244 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11246 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
11247 ShowPanels is false (fixes #80600). Only draw up to 127 characters
11248 of text (fixes #80601). For panels clip the text to draw to the
11249 panel (fixes #80603).
11251 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11253 * ComboBox.cs: Fixed implementation of ResetText.
11255 2007-01-25 Jackson Harper <jackson@ximian.com>
11257 * TextControl.cs: For the last char of a line we need to use the
11258 line size, not that chars width, since it won't actually be
11259 computed since the right side of a char is based on the start of
11260 the left side of the next char, and the next char does not exist.
11262 2007-01-25 Chris Toshok <toshok@ximian.com>
11264 * Splitter.cs: fix the new unit tests, and reindent some switch
11267 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11269 * ComboBox.cs: Implemented 2.0 methods and events.
11270 * TextBoxBase.cs: Added OnTextUpdate, so that
11271 ComboBox.ComboTextBox can inform ComboBox of it.
11273 2007-01-25 Jackson Harper <jackson@ximian.com>
11275 * TextControl.cs: Respect ShowSelection when deciding whether or
11276 not to display the caret, this allows comboboxes to have carets
11277 when the combotextbox does not have focus.
11279 2007-01-25 Jackson Harper <jackson@ximian.com>
11281 * TextControl.cs: Add a Suspend/Resume for updating, basically the
11282 same as the Suspend/Resume for recalc, except this will do actual
11284 - New Undo manager, works much like the MS version.
11286 * TextBoxBase.cs: The Cut operation is undoable.
11288 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11290 * TextBoxBase.cs: Don't antialias text. Makes it look way better
11291 on Windows (no difference on Linux).
11293 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11295 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
11296 we don't want to activate any windows. Fixes #79433.
11298 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
11300 - ButtonBase.cs: Fix capitalization of parameter: disposing.
11303 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
11306 - Move to using System.ComponentModel.EventHandlerList
11307 - Replace Refresh with Invalidate
11308 - Clear the mime filecache on closing
11309 - Some other memory reducing work. After beeing closed FD now uses
11310 only about 300 KB for the fdo mime stuff plus the memory of the
11312 * Mime.cs: Changed coding style and removed unnecessary commented
11313 code. Some more memory memory reducing work.
11315 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11317 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
11318 a few other missing 2.0 properties.
11319 * Theme.cs: Added DrawFlatStyleComboBox.
11320 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
11322 2007-01-24 Chris Toshok <toshok@ximian.com>
11324 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
11325 wake_waiting flag, not just when there's data to be read. if we
11326 don't, then future wakeup's won't reach us and we'll be doomed to
11327 wait for the entire 1 second timeout forever (unless there are X
11330 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
11332 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
11333 until you pass Items.Count, not Items.Count - 1 like 1.1.
11335 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
11337 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
11339 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
11341 * ToolStripContainer.cs: The recent Dock fix exposed that I was
11342 adding the panels in the wrong order.
11344 2007-01-24 Jackson Harper <jackson@ximian.com>
11346 * TextBoxBase.cs: When we move the caret we also need to move the
11347 selection, this fixes some random crashing after doing select
11348 text, unselect, delete a char, paste.
11350 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11352 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
11354 2007-01-23 Everaldo Canuto <everaldo@simios.org>
11356 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
11357 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
11358 * ToolBar.cs: Force redraw in BackgroundImageChanged.
11360 2007-01-23 Everaldo Canuto <everaldo@simios.org>
11363 - Implement support for vertical toolbars. Fixes #80539;
11364 - Call LayoutToolBar when resize, it fix some other problems in layout.
11365 - Rename requested_height to requested_size, as we can have width on it
11366 when toolbar is vertical.
11367 - Create a private property "Vertical" that uses Dock to verify when
11368 toolbar is vertical or not.
11369 - Set ControlStyles when change Dock property.
11370 - Refactory in LayoutToolBar to have better variables names and to support
11372 - Fixes default value for ButtonSize when button count is equal zero, size
11373 must be (39, 36) test case writed.
11375 2007-01-23 Chris Toshok <toshok@ximian.com>
11377 * Control.cs: fix the checks so that they work correctly for mdi
11380 2007-01-23 Chris Toshok <toshok@ximian.com>
11382 * Control.cs: ControlCollection seems to have super-secret
11383 abstraction breaking knowledge of Mdi containers. allow MdiClient
11384 to add toplevel controls.
11386 2007-01-23 Chris Toshok <toshok@ximian.com>
11388 * Control.cs: throw an ArgumentException if a toplevel control is
11389 added to our control collection from ControlCollection.Add, as
11390 well as from ControlCollection.IList.Add. This fixes the
11391 ControlSetTopLevelTest.TestTopLevelAdd unit test.
11393 Also, in ControlCollection.IList.Add, don't through an
11394 ArgumentNullException, throw an ArgumentException, when value ==
11395 null. This matches MS.
11397 2007-01-23 Chris Toshok <toshok@ximian.com>
11399 * BindingSource.cs: initial, incomplete, implementation of
11402 2007-01-23 Jackson Harper <jackson@ximian.com>
11405 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
11406 that I can fix a broken unit test (TextBoxTest::ClearUndo)
11408 2007-01-23 Everaldo Canuto <everaldo@simios.org>
11410 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
11412 2007-01-23 Andreia Gaita <avidigal@novell.com>
11414 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
11415 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
11416 IndexOfKey() for 2.0
11418 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
11420 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
11421 to prevent it from changing z-order.
11422 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
11423 leave UI updates in MdiWindowManager.
11424 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
11425 1 sized (NC handling goes weird on Linux otherwise).
11426 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
11427 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
11428 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
11429 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
11430 and SetWindowState(s) to allow for changing the size of an activated child
11431 before activating it (reduces a lot of flicker).
11433 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
11435 * Form.cs: Changing FormBorderStyle has different semantics based
11436 on whether the Form is visible or not. If not visible, don't change
11437 the Size. But InvalidateNC needs to be called to force the window
11438 to pick up the changes and redraw itself. [Fixes bug #80574]
11440 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
11443 * ContainerControl.cs: ProcessCmdKey.
11444 * ErrorProvider.cs: new constructor.
11445 * Form.cs: fix AutoValidateEvent compiler warning.
11446 * Label.cs: fix OnAutoSizeChanged compiler warning.
11447 * MenuStrip.cs: fix CanOverflow compiler warning.
11448 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
11449 * TextBox.cs: Dispose.
11450 * ToolStrip.cs: CanOverflow, re-enable double buffering.
11451 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
11452 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
11453 * ToolStripItem.cs: Overflow, RightToLeft properties.
11455 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11457 * Form.cs: Move the layout of the main form to MdiWindowManager.
11458 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
11459 do a layout of the main window to update MdiClient's client area to
11460 the right area. Fixes #80533. Remove the calculation of nc size,
11461 it was just wrong and the correct one is the same as for
11462 InternalWindowManager.
11464 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
11466 * Control.cs: Setting Anchor or Dock needs to reset the other
11467 to its default. [Fixes bug #80556]
11469 2007-01-20 Chris Toshok <toshok@ximian.com>
11471 * CheckedListBox.cs: class status changes.
11473 * ScrollableControl.cs: same.
11475 * RichTextBox.cs: same.
11477 * ContainerControl.cs: same.
11479 * ListView.cs: same.
11481 * NotifyIcon.cs: same.
11483 * MenuStrip.cs: same.
11485 * RadioButton.cs: same.
11487 * CheckBox.cs: same.
11489 * PrintPreviewDialog.cs: same.
11493 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
11495 * TreeNode.cs: Apply Alan's patch for Name property.
11497 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11499 * Form.cs: Implemented SizeGripStyle.
11500 * SizeGrip.cs: Check for minimum and maximum size for the
11501 control being resized and only resize if size has actually
11504 2007-01-19 Chris Toshok <toshok@ximian.com>
11506 * DataGridColumnStyle.cs: stop setting _readonly in the
11507 PropertyDescriptor setter. fixes a unit test failure.
11509 also, rename ParentReadOnly to TableStyleReadOnly, and have it
11510 just consult our table style (if we have one). We don't need to
11511 consult the datagrid readonly attribute because that's passed in
11512 as the _ro arg to Edit. this simplifies things a little.
11514 * DataGrid.cs: use CurrentColumn instead of
11515 current_cell.ColumnNumber just to simplify some of the code.
11517 switch the order of some things in the CurrentCell setter to keep
11518 the previous cell from getting a textbox again -
11519 EnsureCellVisibility causes scrolling to happen, which calls Edit.
11520 So we need to set the new cell before calling it.
11522 call Edit in OnEnter, as does Microsoft.
11524 also, make sure the current table style isn't the one we create
11525 initially when checking to see if it's different than the one
11526 we're setting it to in BindColumns (this fixes #80421).
11528 * GridTableStylesCollection.cs: table styles can have "" for a
11529 mapping name. part of the fix for #80421.
11531 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
11532 Edit significantly.
11534 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11536 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
11537 and less GDI object leaky-er.
11539 2007-01-18 Andreia Gaita <avidigal@novell.com>
11541 * LinkLabel.cs: Add opaque control style
11543 2007-01-18 Jackson Harper <jackson@ximian.com>
11545 * TextControl.cs: Calculate width properly.
11546 - Don't store the tag's X offset, this can be figured out very
11548 - When getting the caret tag make sure to get the last empty tag.
11550 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11552 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
11555 * Control.cs: Color.Empty shouldn't count for previous transparent
11558 2007-01-18 Jackson Harper <jackson@ximian.com>
11562 * TextControl.cs: Starting to merge in some pieces of my older
11563 undo work. Basically just some slight cleanup of the undo API.
11565 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11567 * TrackBar.cs: Fix signature of RightToLeftLayout.
11568 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
11569 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
11570 * Application.cs: Implemented UseWaitCursor.
11572 2007-01-18 Jackson Harper <jackson@ximian.com>
11574 * TextControl.cs: We can't skip tags if any part of the tag is
11577 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11579 * ContainerControl.cs: Override OnLayout.
11581 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11583 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
11585 * ContextMenuStrip.cs: Make sure context menu is shown on top of
11588 2007-01-18 Chris Toshok <toshok@ximian.com>
11590 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
11591 (leftover from the container_selected days, I'd wager). fixes bug
11594 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11596 * Control.cs: Apply patch from George to fix the new testcase on
11597 bug #80451. We can't just check for Color.Transparent, we need
11598 to check if the back color's alpha channel is < 255.
11600 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
11602 * Form.cs: Move setting show_icon = true to before the constructor
11603 so that the base constructor has that information when it calculates
11604 the form's size. Was causing forms to be (6, 6) bigger than they
11605 were supposed to be. Thanks for catching this Rolf!
11607 2007-01-18 Jackson Harper <jackson@ximian.com>
11609 * TextControl.cs: When replacing a selection we need to invalidate
11610 from the initial selection start, because selection start is moved
11611 to the end of the replacement.
11613 2007-01-18 Andreia Gaita <avidigal@novell.com>
11615 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
11617 2007-01-18 Chris Toshok <toshok@ximian.com>
11619 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
11622 2007-01-17 Everaldo Canuto <everaldo@simios.org>
11624 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
11625 layout methods and properties from ToolBarButton must be available
11626 into ToolBarButtonInfo.
11628 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
11630 * Control.cs: If the control has a transparent background, we
11631 need to refresh it when it moves and when it's parent's background
11632 image changes. [Fixes bug #80451]
11634 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
11636 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
11638 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
11640 * XplatUIWin32.cs: Implement proper double buffering for Windows.
11641 [Fixes bug #80447, and probably speeds up things as well]
11643 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11645 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
11646 * XplatUIWin32.cs: We need to recalculate NC size after changing
11647 window style to toolwindow (otherwise the client rectangle will be
11648 3 pixels to small for some reason).
11649 * MdiWindowManager.cs: Revert NC size calculations to match how
11650 they are calculated only based on window styles (to match
11651 Win32AdjustWindowRectEx, since otherwise when setting size or
11652 location, Control will call Win32AdjustWindowRectEx to update client
11653 size, which would provoke a paint, then we'd get a NCCALCSIZE and
11654 calculate a different value of client size causing another paint
11656 * InternalWindowManager.cs: When moving or resizing a window only
11657 update size or location if they actually changed.
11658 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
11659 (seems to match Windows behaviour better). Cleaned up
11660 ManagedWindowDecorations to draw what's needed and nothing else
11661 (was drawing borders and lines where they shouldn't be)
11662 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
11663 (style = 0xFFFF) and takes into account caption height when
11664 calculating window rectangle.
11666 2007-01-16 Everaldo Canuto <everaldo@simios.org>
11668 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
11669 can be added to toolbar multiple times, we need to maintain a list of
11670 button information for each positions.
11672 2007-01-16 Everaldo Canuto <everaldo@simios.org>
11674 * ToolBar.cs: Some small stetic changes.
11676 2007-01-16 Jackson Harper <jackson@ximian.com>
11678 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
11679 that allow us to have nested recalc = false blocks.
11680 - Add paste support for images in the RichTextBox
11681 * RichTextBox.cs: flush the text after the color is changed, so
11682 the change takes effect.
11683 - Use SuspendRecalc
11684 - Some extra debugging info
11685 * TextControl.cs: Tags no longer track their length, it is just
11686 computed from the next tags length, this makes things a little
11687 simpler and reduces places that we have to track length changes.
11688 - Refactored the linetag class a little so we could make it
11689 a base class for different kinds of tags
11690 - Created a image tag, a tag that can have a single image inserted
11692 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
11693 that we can call suspend multiple times.
11694 - Add some debugging methods
11696 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11698 * MdiClient.cs: Add ActivatePreviousChild for
11699 mdi child window navigation.
11700 * Form.cs: Use MdiClient.ActivateNextChild/
11701 ActivatePreviousChild instead of Form.SelectNextControl
11702 to select the next/previous child since
11703 SelectNextControl doesn't do it in the same order
11704 as mdi children should do it.
11706 2007-01-16 Chris Toshok <toshok@ximian.com>
11708 * Control.cs: remove container_selected field.
11710 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11712 * MdiClient.cs: Update main form's ActiveChild when
11713 updating keyboard focus for the mdi child.
11715 2007-01-16 Jonathan Pobst <jpobst@novell.com>
11717 * Control.cs: PreferredSize fix.
11719 * Form.cs: Add several 2.0 events, properties, and methods.
11721 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
11723 * Form.cs: Provide meaningful message when MdiParent is assigned a
11724 Form that is not an MdiContainer.
11726 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11728 * MdiClient.cs: Update main form's ActiveChild when
11729 activating a mdi child.
11731 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11733 * MdiWindowManager.cs: Fix NRE when merging menus and main form
11734 doesn't have a menu.
11736 * Form.cs: Request NCRecalc after creating a mdi child window.
11737 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
11738 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
11740 * MdiClient.cs: Add new method SendFocusToActiveChild that either
11741 sends keyboard focus to the active child, or to the MdiClient
11742 if there are no child forms.
11744 2007-01-15 Chris Toshok <toshok@ximian.com>
11746 * ListView.cs: drop the *Internal overrides, just do our work in
11747 ItemControl's WndProc instead.
11749 * UpDownBase.cs: a few large changes. Fix up the Selectable state
11750 of the various controls, and forward the events properly (in the
11751 same manner as MS) from the textbox to the UpDown. Also the
11752 ActiveControl of the UpDownBase gets set properly now. Finally,
11753 we don't call UpdateEditText from the ctor. Fixes bug #79957.
11755 * NumericUpDown.cs: set Text in the ctor.
11757 * DomainUpDown.cs: call UpdateEditText in the ctor.
11759 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
11760 so even a Selectable = false textbox can be focused if you click
11763 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
11764 just add their handling in their respective WndProc's. Also add
11765 an explicit FocusInternal method that doesn't consult CanFocus
11766 before calling Select(this).
11768 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
11769 do our work in WndProc instead.
11771 * TabControl.cs: same.
11773 * ComboBox.cs: same.
11775 2007-01-15 Everaldo Canuto <everaldo@simios.org>
11777 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
11780 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11783 * ThemeWin32Classic.cs: Don't draw the item text outside
11784 item bounds in Details view, as well as use trimming.
11787 2007-01-15 Jonathan Pobst <jpobst@novell.com>
11789 * Form.cs: Implement Form.ShowIcon.
11791 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
11792 null, which when combined with the DlgModalFrame window style removes
11793 the icon from the title bar.
11795 2007-01-15 Jonathan Pobst <jpobst@novell.com>
11797 * Control.cs: Call OnMouseClick after OnClick. (2.0)
11799 2007-01-15 Everaldo Canuto <everaldo@simios.org>
11801 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
11802 menu when mdi child windows theres a menu, uses insert to get icon
11803 at first position. Partially fix #80006.
11805 2007-01-15 Jonathan Pobst <jpobst@novell.com>
11807 * Clipboard.cs: Implement 2.0 methods.
11809 2007-01-15 Everaldo Canuto <everaldo@simios.org>
11811 * Menu.cs: Implement Insert method of MenuItemCollection class
11814 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11816 * ListView.cs: Implement 2.0 FindItemWithText method.
11818 2007-01-11 Everaldo Canuto <everaldo@simios.org>
11820 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
11821 to calculate menu bar size. Fixes #80290.
11823 2007-01-11 Everaldo Canuto <everaldo@simios.org>
11825 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
11827 2007-01-11 Chris Toshok <toshok@ximian.com>
11829 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
11832 2007-01-11 Chris Toshok <toshok@ximian.com>
11834 * LinkLabel.cs: make sure to call base.Select in our Select method
11835 if it turns out we're going to be selected (i.e. if we have a link
11836 that is going to receive focus). That way our container's
11837 ActiveControl is updated properly.
11839 2007-01-11 Chris Toshok <toshok@ximian.com>
11841 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
11842 they have 1 or more links. this fixes the crash gert reported.
11844 2007-01-11 Andreia Gaita <avidigal@novell.com>
11846 * ContainerControl.cs: Remove ContainerSelected flag, not needed
11849 * Control.cs (Controls.Add): Check if control to be added to the collection
11850 is a top level control, and throw an ArgumentException if it is.
11851 Remove ContainerSelectedFlag, not needed anymore.
11853 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
11854 top most control doesn't activate the form. This fixes a problem in the
11855 MessageBox, where the default button wouldn't get focus because the form
11856 was activated before being Loaded - when the Owner is set, SetTopMost is
11857 called, and it would activate it.
11859 2007-01-11 Jonathan Pobst <jpobst@novell.com>
11861 * Button.cs: When clicked and setting the parent form's DialogResult,
11862 use FindForm instead of Parent, since parent could be a container
11863 control and not the Form. Fixes bug #80495.
11865 2007-01-10 Chris Toshok <toshok@ximian.com>
11867 * Form.cs: move the call to SendControlFocus into the same
11870 2007-01-10 Chris Toshok <toshok@ximian.com>
11872 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
11873 It breaks in the face of the new ActiveControl stuff, and should
11876 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
11877 activecontrol's focus if it's not already set, after we set
11878 ActiveControl, but before we call OnActivated. Re-fixes #79667
11879 after the previous focus/active control fixes regressed it.
11881 * Control.cs: reindent some code.
11883 2007-01-10 Chris Toshok <toshok@ximian.com>
11885 * Splitter.cs: clearing some outstanding changes from my tree.
11886 Replace all accesses (not writes) to the internal dock_style field
11887 with the Dock property.
11889 2007-01-10 Chris Toshok <toshok@ximian.com>
11891 * Control.cs: make FireEnter, FireLeave, FireValidating, and
11892 FireValidated virtual.
11894 * Form.cs: override and don't chain up calls to FireEnter and
11897 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11899 * ListView.cs: Add more text padding space when using
11900 auto resize for columns (the previous value didn't work fine).
11902 * ThemeWin32Classic.cs: Update text position inside columns,
11903 to match the appeareance of .Net.
11905 * ColumnHeader.cs: When using auto resize, only the Width should
11906 depend on the sub items, not the Height. Also, set width after
11907 auto resizing (the value of Width should never remain as -1 or -2).
11909 2007-01-10 Chris Toshok <toshok@ximian.com>
11911 * Application.cs: fix compilation errors when debug is enabled.
11913 2007-01-10 Chris Toshok <toshok@ximian.com>
11915 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
11916 add some nice ascii art pictures and explanation of the process).
11917 (GetMostDeeplyNestedActiveControl): new utility function we need
11918 because our ActiveControl can refer to a child container with its
11921 * Form.cs (OnActivated): remove the call to SelectActiveControl
11922 from here, since you can override this method and not chain up,
11923 and winforms still sets the active control.
11924 (OnCreateControl): also remove the unnecessary SelectActiveControl
11926 (WndProc): it's actually called from the WM_ACTIVATE block, just
11927 before calling OnActivated.
11929 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
11930 inside the else. the ActiveControl setter will end up setting
11931 focus on @control. This keeps us from setting it again (and
11932 generating an extra LostFocus/GotFocus pair).
11933 (Select (bool, bool)): reindent.
11935 2007-01-10 Jonathan Pobst <jpobst@novell.com>
11937 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
11938 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
11939 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
11940 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11941 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
11942 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
11943 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
11944 ToolStripTextBox.cs: Another wave of corcompare work.
11946 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11948 * ColumnHeader.cs: Implement 2.0 AutoResize method using
11949 the Width property.
11951 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
11952 methods by callling Column.AutoResize method on columns.
11954 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
11956 * Control.cs: Provide proper implementations of PreferredSize
11957 and GetPreferredSize (2.0).
11959 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
11961 * Form.cs: Remove one character (!) to make my previous OnClosing
11962 stuff work for modal windows like MessageBox.
11964 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11967 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
11968 ListView.Columns to get the last displayed column. Fixes #80452.
11970 2007-01-09 Everaldo Canuto <everaldo@simios.org>
11972 * Label.cs, LinkLabel.cs: Source code identation fixes.
11974 2007-01-08 Everaldo Canuto <everaldo@simios.org>
11976 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
11977 we dont need to invalidate only borders because when we invalidate four
11978 border lines the invalidate's generates a complete redraw of button,
11979 because it now invalidate a complete rect some other redraws operations
11980 are fixed. Fixes #80196.
11982 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
11983 Remove ToolBarInvalidateEntireButton as it is not used.
11985 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
11987 * Form.cs: Make sure that both OnClosing and OnFormClosing are
11988 called for 2.0 profile.
11989 * CloseReason.cs: Make class internal for 1.1.
11991 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
11993 * ToolStripManager.cs: Implement FindToolStrip functionality.
11994 * ToolStrip.cs: Register and unregister with ToolStripManager.
11996 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
11998 * Control.cs: This was messy. 2.0 moves much of ControlCollection
11999 to ArrangedElementCollection. Implemented this with as few #if's as
12000 possible (which is still too many).
12002 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
12004 * Control.cs: Implement SizeFromClientSize() [2.0].
12006 2007-01-07 Everaldo Canuto <everaldo@simios.org>
12008 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
12009 use Theme.BorderSize to calculate area instead of static value 1,
12010 by the way use new BorderStaticSize instead Border3DSize when
12011 border_static is true. Fixes #79537.
12013 * XplatUIOSX.cs: Fix call to GetClientRectangle.
12015 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
12018 2007-01-06 Everaldo Canuto <everaldo@simios.org>
12020 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
12022 2007-01-06 Everaldo Canuto <everaldo@simios.org>
12024 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
12025 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
12028 - border_static field added, it will used to define when a control
12029 theres 3D border but it must be static (thin).
12030 - In GetWindowRectangle use Theme.BorderSize to calculate area
12031 instead of static value 1, by the way use new BorderStaticSize instead
12032 Border3DSize when border_static is true.
12034 * XplatUIX11.cs, XplatUIOSX.cs:
12035 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
12037 * Theme.cs: BorderStaticSize field added.
12039 2007-01-05 Everaldo Canuto <everaldo@simios.org>
12041 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
12043 2007-01-05 Everaldo Canuto <everaldo@simios.org>
12045 * Control.cs: Under InternalBorderStyle call RecreateHangle to
12046 mimic same behavior than win32 that set border only in CreateParams,
12047 it fix problems under CreateParams overrides. Fix #79442 and partial
12050 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
12051 of thi control you must call recreate handle.
12053 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
12054 need to do anything as RecreateHangle will take care about borders.
12056 2007-01-05 Mike Kestner <mkestner@novell.com>
12058 * ListView.cs: hack to eliminate Lost/Got focus notifications on
12059 cycles between the ItemControl and parent. Fixes #80388.
12061 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
12063 * Control.cs: Lazy init layout engine. Do not directly use
12064 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
12066 2007-01-05 Chris Toshok <toshok@ximian.com>
12068 * DataGrid.cs: don't forceably rebind columns in SetDataSource
12069 unless our list manager has changed (i.e. unless we have reason to
12070 believe our columns have changed). Fixes #80422.
12072 also, disable the call do BindColumns in
12073 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
12074 1.1 the event isn't raised in response to a column addition on a
12077 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
12079 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
12080 that inheritors can not call it if they choose. Fixes bug #80456.
12082 2007-01-05 Andreia Gaita <avidigal@novell.com>
12084 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
12085 doesn't blow up with a null exception on marshalling.
12087 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
12089 * Control.cs: Implement several 2.0 protected properties and methods.
12090 Ensure that all necessary events are being called when properties
12093 2007-01-05 Mike Kestner <mkestner@novell.com>
12095 * ListView.cs: implement PgUp/PgDn for Details view. Also
12096 fixes First/LastVisibleIndex to use the item_control.ClientRect
12097 instead of the parent control. Fixes #80378.
12099 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
12101 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
12102 determine whether to use yard-pound or not (bug #78399).
12104 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
12106 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
12107 problems. So it is time to bring back the old popupbutton colors.
12109 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12112 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
12113 property by using the internal information of the
12114 columns order in ListView.
12116 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
12118 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
12119 Add 2.0 Tag properties.
12121 * LinkArea.cs: Add 2.0 ToString method.
12123 2007-01-03 Chris Toshok <toshok@ximian.com>
12125 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
12126 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
12127 when we're editing, which fixes #80047.
12129 2007-01-03 Chris Toshok <toshok@ximian.com>
12131 * Form.cs: apply patch contributed by Dominik Seichter. fixes
12134 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
12136 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
12137 property and implementation.
12139 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
12140 for MdiWindowListItem property.
12142 * ToolStripDropDown.cs: Don't consider hidden menu items while
12143 laying out the menu.
12145 2007-01-03 Andreia Gaita <avidigal@novell.com>
12147 * SendKeys.cs: window handle is not needed in win32, so just
12148 get the active window for X after parsing keys and don't use
12149 it when building the message; it is passed by parameter to the
12150 Xplat method and used there to build the message instead. Also,
12151 wait for events to be processed on SendWait, as opposed to Send,
12152 which doesn't wait :) Playing with threads and Send() completely
12153 hangs on ms.net, only SendWait() works.
12156 X11Display.cs: Check for valid window handle.
12158 2007-01-03 Jackson Harper <jackson@ximian.com>
12160 * TextControl.cs: Need to prevent wrap calculations when replacing
12161 text (this was there before i removed it accidently).
12162 - Don't update the cursor during the positioning, just set it to
12163 selection_start at the end of the operaion.
12165 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12168 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
12170 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12172 * MonthCalendar.cs: Added Click and DoubleClick events again,
12173 but this time they only hide Control's Click and DoubleClick.
12175 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
12177 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
12178 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
12180 2007-01-02 Jackson Harper <jackson@ximian.com>
12182 * TextBoxBase.cs: We move the caret with the split now, so we
12183 don't need to explicitly move the caret after splitting. This
12184 fixes the caret bumping down an extra line on Enter.
12186 2007-01-02 Miguel de Icaza <miguel@novell.com>
12188 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
12191 * ScrollableControl.cs: Add Scroll event.
12193 2007-01-02 Mike Kestner <mkestner@novell.com>
12195 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
12196 to fix all hdr height padding codepaths. Fixes #80207.
12198 2007-01-02 Chris Toshok <toshok@ximian.com>
12200 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
12201 setting it to the Control defaults anyway, and it being after the
12202 Dock set was screwing up layout.
12203 (set_Dock): don't short circuit out of setting base.Dock. Also,
12204 no need to call UpdateStatusBar here, as it'll be re-layed out if
12207 2007-01-02 Mike Kestner <mkestner@novell.com>
12209 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
12210 to header height for width == -1. Fixes the rest of #80207.
12212 2007-01-02 Mike Kestner <mkestner@novell.com>
12214 * ListView.cs: rework the mouse event forwarding everaldo added
12215 to translate the coordinates to the parent control not
12216 raise the parent events until after we've done our work. Hover
12217 needs more work, in the case where HoverSelection is on, because
12218 the item control receives more than one MouseHover per Enter
12219 event, so we need to ensure only the "first" hover gets forwarded.
12220 Opening a minor bug for that.
12222 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
12224 * CheckedListBox.cs: Fixed SelectionMode to match MS.
12225 * ListControl.cs: Implemented AllowSelection property. Removed extra
12227 * ListBox.cs: Implemented AllowSelection property.
12229 2007-01-02 Everaldo Canuto <everaldo@simios.org>
12231 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
12232 SelectedItem, it prevent for errors when you must disable item
12233 before perform click. Fixes #80409.
12235 2007-01-02 Everaldo Canuto <everaldo@simios.org>
12237 * MenuAPI.cs: Prevent second level and beyond submenus to close
12238 until first level when move out side of popup.
12240 2007-01-02 Everaldo Canuto <everaldo@simios.org>
12243 - Down submenu positin in three pixels.
12244 - Closes sub menu when mouse leaves from menu. Fixes #80402.
12246 2007-01-02 Everaldo Canuto <everaldo@simios.org>
12248 * ThemeWin32Classic.cs:
12249 - Fix popup menu size adding one pixel on the top.
12250 - Down menu item border from two to one to mimic Win32.
12251 - Some source identation fixes.
12253 2007-01-01 Everaldo Canuto <everaldo@simios.org>
12255 * ThemeWin32Classic.cs: Use float numbers to calculate size and
12256 position of menu arrows, it fix wrong arrow size.
12258 2007-01-01 Everaldo Canuto <everaldo@simios.org>
12260 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
12261 instead of line, it simplify draw operation and fix it using 3D
12262 borders to mimic Win32.
12264 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
12266 * StatusStrip.cs: Add implementation of the sizing grip.
12268 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
12269 StatusStrip rendering.
12271 2006-12-31 Chris Toshok <toshok@ximian.com>
12273 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
12274 override the layout style (anchor/dock) of the control. assign to
12275 Dock instead. Fixes bug #80416.
12277 * ToolStrip.cs: same.
12279 2006-12-31 Andreia Gaita <avidigal@novell.com>
12281 * ContainerControl.cs: Use ContainerSelected flag to check if
12282 a Container is directly selected, or if Select is called on a
12283 non-container. If a container is directly selected, focus events
12284 should not be raised.
12285 Apply #80411 patch to throw exception on set_ActiveControl if
12286 control is the same as the current one.
12288 * Control.cs: Use ContainerSelected flag (see above).
12289 Add invalidation check to raise event but not invalidate if
12291 Apply #80411 patch.
12294 2006-12-31 Everaldo Canuto <everaldo@simios.org>
12296 * MenuAPI.cs: After click, dont close popup menu when menu is
12297 ContextMenu. Fixes #80399.
12299 2006-12-30 Chris Toshok <toshok@ximian.com>
12301 * ContainerControl.cs: make sure we throw the exception if the
12302 container control doesn't contain the control we're setting
12305 2006-12-30 Chris Toshok <toshok@ximian.com>
12307 * Control.cs (SetTopLevel): fix the exception raised by
12308 SetTopLevel for child controls.
12309 (set_Anchor): call UpdateDistances when setting the anchor type.
12310 This fixes bug #80336.
12312 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
12314 * Theme.cs: For now, revert back to 8pt font.
12316 2006-12-29 Everaldo Canuto <everaldo@simios.org>
12318 * MenuAPI.cs: Set popup as active when open a ContextMenu.
12321 2006-12-29 Chris Toshok <toshok@ximian.com>
12323 * Control.cs: reorder the code in OnResize to give the same event
12326 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
12328 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
12329 TileHorizontally and TileVertically.
12331 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
12333 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
12334 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
12335 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
12336 Corrected copyright and email adress.
12338 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
12340 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
12341 of Exception in FullPath property if no TreeView is associated with
12344 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
12346 * Theme.cs: Marked default_font as private, and initialize it in ctor
12347 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
12349 * ThemeGtk.cs: Removed default_font intialization.
12350 * ThemeWin32Classic.cs: Removed default_font initialization.
12352 2006-12-28 Chris Toshok <toshok@ximian.com>
12354 * Control.cs: fix a couple of place where we were creating handles
12355 more aggressively than we should be. Fixes ControlRefresh unit
12358 2006-12-28 Chris Toshok <toshok@ximian.com>
12360 * Control.cs: contrary to what the comment said, Control.Dock does
12361 not supercede Control.Anchor - the last one you assign to decides
12362 the layout behavior. so we need to keep track of which was the
12363 last set. Also, fix some of the affected property arguments in
12364 PerformLayout calls, and remove an redundant parent.PerformLayout
12367 Add a VisibleInternal property, which returns is_visible. We
12368 can/should get rid of all the usage of this field elsewhere.
12370 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12372 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
12373 control style, not DoubleBuffer. Added UseDoubleBuffering property
12374 that indicates whether doublebuffering is enabled and supported.
12375 (comment from and code based on Gert Driesen's patch in #80324).
12378 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12380 * Control.cs: Fixed a NRE.
12382 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12384 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
12387 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12389 * Control.cs: Rewrote double buffering, now a seperate
12390 class handles all the buffering, no Graphics is disposed of
12391 until the painting is finished (earlier implementation
12392 would crash if the control was resized in the OnPaint,
12393 since it would cause the double buffer to be recreated
12394 and the old one disposed), a separate Graphics is
12395 created for every paint (MS behaviour and anyways the state
12396 of the Graphics would have to be saved and restored otherwise)
12398 * XplatUIDriver.cs:
12400 * XplatUI.cs: Added and implemented GetOffscreenGraphics
12401 so that we can get the graphics for the back buffer without
12402 having to create a new one and remove the offscreen_dc parameter
12403 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
12405 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12407 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
12408 Also make virtual all the key-related methods.
12410 * ListViewItem.cs: Make virtual the key related methods for
12411 ListViewSubItemCollection.
12413 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12417 * ThemeWin32Classic.cs:
12418 * Theme.cs: Initial support for Tile view in ListView,
12419 as well as the implementation of the required bits for it (Item
12422 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12424 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
12425 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
12426 Provide useful exception messages.
12428 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
12430 * TrackBar.cs: Remove a warning.
12431 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
12432 when used by DateTimePicker, fixes #80287. This also requires that
12433 MonthCalendar implements it's own drawing for the yearly updown control,
12434 otherwise the Capture tracking would be too complicated. Removed the Click
12435 and DoubleClick events (according to comments they were hiding the base class
12436 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
12437 raise these events, not that they cannot be raised. It is possible to raise
12438 them by calling OnClick and OnDoubleClick). Added two internal fields in
12439 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
12440 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
12441 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
12442 event, no longer needed.
12444 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12446 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
12447 true if new value differs from current value.
12449 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12451 * Control.cs: ControlCollection.Count must be public. Fixed build of
12454 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12456 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
12458 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
12460 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
12462 2006-12-26 Everaldo Canuto <everaldo@simios.org>
12464 * Control.cs: Invalidates control including when Width and Height is
12465 equal zero or is not visible, only Paint event must be care about
12466 this. Fixes #79913.
12468 2006-12-26 Chris Toshok <toshok@ximian.com>
12470 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
12471 more corcompare work.
12473 * DataGridView.cs: fix compiler warning.
12475 * ColumnHeader.cs: some corcompare work, and also take the
12476 opportunity to make the internal fields private.
12478 * ListView.cs: fix the fallout from the above field change.
12480 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
12482 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
12483 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
12484 ToolStripTextBox.cs: Fixes to events and corcompare.
12486 2006-12-26 Everaldo Canuto <everaldo@simios.org>
12488 * ListView.cs: Call owner.OnMousexx event to propagate events from
12489 item to ListView. Fixes #80367.
12491 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
12493 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
12494 if value is less than one. ItemHeight should not be set to a value
12495 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
12496 Removed extra tabs.
12498 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
12500 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
12501 * ToolStripStatusLabel.cs: Add Spring for Moma.
12503 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
12505 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
12506 Fixed code formatting. Removed debug code.
12507 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
12509 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
12511 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
12512 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
12513 ArgumentOutOfRangeException if ColumnCount is negative. In
12514 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
12515 less than 4 or higher than 32768.
12516 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
12517 Fixed FormatProvider to return CurrentCulture unless explicitly set.
12518 Fixed IsFormatProviderDefault to return true if FormatProvider has
12519 not been explicitly set.
12521 2006-12-25 Chris Toshok <toshok@ximian.com>
12523 * Application.cs: add a couple of 2.0 events.
12525 2006-12-25 Chris Toshok <toshok@ximian.com>
12527 * Control.cs: fix compiler warning.
12529 * AxHost.cs: corcompare fixes.
12531 * ApplicationContext.cs: corcompare fixes.
12533 2006-12-25 Chris Toshok <toshok@ximian.com>
12535 * Control.cs: only update dist_right/dist_bottom if the
12536 width/height is > 0. this fixes anchored controls being resized
12537 smaller until they disappear and then resized larger again.
12539 2006-12-25 Chris Toshok <toshok@ximian.com>
12541 * Control.cs: a couple of changes. Remove dist_left and dist_top,
12542 since they're nothing more than X/Left and Y/Top, respectively.
12544 Also, move back to a per-control Bitmap/Graphics for
12545 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
12546 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
12549 2006-12-25 Miguel de Icaza <miguel@novell.com>
12551 * MessageBox.cs: Implemented overload that takes a new "bool
12552 displayHelpButton" by adding a new internal field "show_help".
12553 When clicked this will raise the HelpRequested on the owner or the
12556 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
12557 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
12559 * ListView.cs: Add support ColumnWidthChanged and
12560 ColumnWidthChanging.
12562 Add support for ColumnReordered event.
12563 (ReorderColumn): Add NET_2_0 specific support for cancelling the
12566 Very nice codebase!
12568 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
12570 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
12572 2006-12-24 Chris Toshok <toshok@ximian.com>
12574 * GridTablesFactory.cs: 2.0 corcompare work.
12576 * ToolStripContainer.cs: add "override" to
12577 ContextMenuStripChanged, and remove the local event object.
12579 * ToolStripDropDown.cs: same with a couple properties.
12581 * ToolStripPanel.cs: same with AutoSizeChanged event.
12583 * TextBoxBase.cs: add "override" to AutoSizeChanged.
12585 * Form.cs: add the remaining 2.0 events, and do some corcompare
12588 * DateTimePicker.cs: add "new" to padding.
12590 * ButtonBase.cs: use Control's use_compatible_text_rendering.
12592 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
12594 * DataGridView.cs: PaddingChanged is overridden.
12596 2006-12-24 Chris Toshok <toshok@ximian.com>
12598 * Control.cs: corecompare work here too.
12600 * DataGridViewElement.cs, DataGridView.cs,
12601 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
12602 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
12603 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
12604 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
12607 2006-12-24 Miguel de Icaza <miguel@novell.com>
12609 * Control.cs: Switched the error message on the console for a
12610 todo. A review of the code will have to cope with this anyways
12611 (since its a large feature, it is in our radar) and it was
12612 producing too much output when running PDN.
12614 * ToolStripComboBox.cs: Set the text when the SelectedIndex
12615 changes. Applications depend on this (PDN 2.72)
12617 2006-12-23 Chris Toshok <toshok@ximian.com>
12619 * TableLayoutSettings.cs: finish up the corcompare work for this
12622 2006-12-23 Chris Toshok <toshok@ximian.com>
12624 * Control.cs: make SetImplicitBounds internal, do some futzing
12625 with LayoutEngine so that it's available in 1.1, and remove the
12626 entire duplicated code mess from PerformLayout. Use
12627 System.Windows.Forms.Layout.DefaultLayout instead.
12629 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
12631 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
12633 * Form.cs: Add MainMenuStrip property.
12635 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
12637 * Control.cs: Add ContextMenuStrip property and implementation.
12638 Fix ContextMenu implementation to show menu centered on control when
12639 activated using the keyboard instead of showing at screen (0,0).
12641 * ToolStripDropDown.cs: Fix needed overload of Show ().
12643 2006-12-23 Everaldo Canuto <everaldo@simios.org>
12645 * Menu.cs: Name property added for 2.0 profile.
12647 2006-12-23 Everaldo Canuto <everaldo@simios.org>
12649 * Menu.cs: Update information about FindMenuItem, method to be
12652 2006-12-23 Everaldo Canuto <everaldo@simios.org>
12654 * MenuAPI.cs: When deselect items deselect also selected subitems.
12656 2006-12-23 Everaldo Canuto <everaldo@simios.org>
12658 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
12659 FindSubItemByCoord to found itens that is not active, also an
12660 cheking added to FindSubItemByCoord to search for items only
12661 in visible popup windows. Fixes #80274.
12663 2006-12-22 Everaldo Canuto <everaldo@simios.org>
12665 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
12666 internal property, it be care about change ExStyle.
12668 2006-12-22 Andreia Gaita <avidigal@novell.com>
12670 * ContainerControl.cs: set activeControl for parent forms up the
12671 tree when the new activecontrol is a container.
12672 When validating the active control, if it is a container, also
12673 raise up the validation for it's active control. Fixes #80280
12675 * Control.cs: Add internal property flag and check to prevent
12676 Focus events from getting raised when Select() is called for
12677 a ContainerControl. There are still too many focus events being
12678 raised at the moment though.
12679 Cleaned up the code a bit.
12681 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12683 * Control.cs: Added all missing 2.0 events.and
12684 fixed a couple of corcompare issues.
12685 * TrackBar.cs: Implemented missing 2.0 bits.
12686 * MonthCalendar.cs,
12687 * DateTimePicker.cs,
12688 * MdiClient.cs: Fixed some corcompare issues.
12690 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
12692 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
12693 SplitterPanel.cs: corecompare work.
12695 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
12697 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
12698 Clean up warnings for BackgroundImageChanged and PaddingChanged
12699 events now that they are implemented in Control.cs.
12701 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
12703 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
12705 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
12706 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
12707 of TableLayoutPanel and supporting cast.
12709 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
12712 - GrabWindow now confines the mouse pointer to the confine window.
12713 - Added Win32ClipCursor and Win32GetClipCursor.
12716 - Added CaptureWithConfine to be able to capture and confine
12719 * InternalWindowManager.cs:
12720 - Call CaptureWithConfine instead of Capture if we're an
12721 MdiChild (fixes #79982).
12723 2006-12-21 Chris Toshok <toshok@ximian.com>
12725 * DataGrid.cs: guard against the initial state of selection, where
12726 selection_start == -1. make sure we only select from index >= 0.
12729 2006-12-21 Chris Toshok <toshok@ximian.com>
12731 * Control.cs: we don't need to be so draconian with
12732 UpdateDistances, and we thusly don't need to call it before
12733 calling PerformLayout in ResumeLayout. Fixes bug #80289.
12735 2006-12-21 Daniel Nauck <dna@mono-project.de>
12738 TextBox.cs: Implemented AutoComplete properties.
12740 2006-12-20 Chris Toshok <toshok@ximian.com>
12742 * DataGridView*.cs: some corecompare work.
12744 2006-12-20 Jackson Harper <jackson@ximian.com>
12746 * XplatUIX11.cs: We need to hide the caret when deleting it,
12747 otherwise you get carets left lying around everywhere.
12748 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
12749 prevents getting some weird half drawn caret tracers when
12751 * TextControl.cs: Attempt to reduce the number of times we need to
12752 recreate the caret.
12754 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
12756 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
12758 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12760 * DateTimePicker.cs:
12761 - Implemented missing 2.0 bits.
12762 - Changed some default values to match MS.
12764 2006-12-20 Jackson Harper <jackson@ximian.com>
12766 * TextBoxBase.cs: When changing the font across the document we
12767 can't recalculate after changing each line, since that will cahnge
12769 - PreferredHeight is a little different than i thought.
12770 - When backspacing, move the caret before we do the actual char
12771 delete, because when that delete crosses a wrap boundary the
12772 positional information will change.
12774 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12776 * Control.cs: Added some missing 2.0 bits:
12777 BackgroundImageLayout, BackgroundImageLayoutChanged,
12778 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
12779 add IBindableComponent and IDropTarget implementation.
12781 * MonthCalendar.cs:
12782 - Added all missing 2.0 features:
12783 BackgroundImageLayout, RightToLeftLayout,
12784 OnHandleDestroyed, RightToLeftLayoutChanged,
12785 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
12787 - Rewrote all the BoldDate code, it was completely broken.
12788 - Fixed all the tests (the tests can now be re-enabled, the
12789 problems were not with the tests, but with the control, it was
12792 * DateTimePicker.cs: Changed the location where the
12793 MonthCalendar is shown.
12795 2006-12-19 Chris Toshok <toshok@ximian.com>
12797 * DataGridView.cs: add IDropTarget implementation.
12799 * ToolStripPanel.cs: add IDropTarget implementation.
12801 2006-12-19 Jackson Harper <jackson@ximian.com>
12803 * TextControl.cs: soft now means something different than what it
12804 used to mean, we want to move the caret regardless of whether or
12805 not this break was soft (would we really have wanted the caret
12806 to not move with the break in the old context?)
12807 * TreeView.cs: Make sure we factor in the vert scrollbar when
12808 calculating the horizontal scrollbar's maximum.
12810 2006-12-19 Andreia Gaita <avidigal@novell.org>
12812 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
12813 check for keywords in alternate casing, close bug #80049.
12815 2006-12-19 Chris Toshok <toshok@ximian.com>
12817 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
12818 methods (which all do nothing).
12820 * IDropTarget.cs: add the 4 missing methods.
12822 2006-12-19 Chris Toshok <toshok@ximian.com>
12824 * TableLayoutRowStyleCollection.cs: corcompare work.
12826 * TableLayoutSettings.cs: same.
12828 * TableLayoutStyle.cs: same.
12830 * TableLayoutColumnStyleCollection.cs: same.
12832 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
12834 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
12835 TableLayoutPanel I've had in my local tree for way too long.
12837 2006-12-19 Miguel de Icaza <miguel@novell.com>
12839 * TableLayoutSettings.cs: Finish the public API (still needs all
12840 the logic to update on changes).
12842 * TableLayoutPanelCellPosition.cs: new file.
12844 * TableLayoutRowStyleCollection.cs,
12845 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
12846 TableLayoutSettings.cs: Track the final 2.0 table api.
12848 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12850 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
12851 and Image List 2.0 members for ColummnHeader.
12852 * ListView.cs: Add key-related 2.0 methods for
12853 ColumnHeaderCollection.
12855 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
12857 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
12858 ArgumentNullException if items argument is null. Ignore null item in
12859 arrays. Removed extra tabs.
12861 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
12863 * MonthCalendar.cs: Fixed InvalidCastException.
12865 2006-12-19 Jackson Harper <jackson@ximian.com>
12867 * TextControl.cs: Don't increment the position here.
12868 - When calculating char positions only add in the line break size
12869 for hard line breaks.
12871 2006-12-19 Andreia Gaita <avidigal@novell.org>
12873 * SendKeys.cs: Changed some things to match ms.net behaviour
12874 when parsing shifted capital letters.
12876 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
12877 Add window handle as parameter to SendInput. X11 needs the
12878 window handle, and the handle being passed to it in the keys
12879 queue is the active control handle (which windows needs), not
12882 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
12883 to support SendKeys on X.
12885 * X11Keyboard: Implement helper method to lookup a linux keycode
12886 given the virtual keycode. Added table of keycode-2-virtualkey
12887 values to support this.
12889 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12891 * ListView.cs: Add support for SelectedIndexCollection
12892 and SelectedItemCollection 2.0 methods. Implement support
12894 * ListViewItem.cs: Add support for ListViewSubItemCollection
12895 2.0 methods. Also, fix an incorrect behavior of AddRange method
12896 (it shouldn't call Clear).
12897 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
12899 2006-12-19 Jackson Harper <jackson@ximian.com>
12902 * TextBoxBase.cs: New args for FormatText
12903 * TextControl.cs: Rewrote the main drawing method, this version
12904 feels a little easier to understand and debug to me. Hopefully it
12905 does to others also
12906 - Fix FormatText to OR in the new formating values. Added
12907 FormatSpecified param, basically this works in the same way as
12908 BoundsSpecified in Control.
12909 - Set the caret properties when the caret is positioned.
12910 - When wrapping text make sure that we calculate the width of the
12912 - when calculating alignments we might have wrapped down to the
12913 next line, so don't search for an individual tag, search for the
12915 - We need to invalidate the selection area when we replace the
12918 2006-12-19 Daniel Nauck <dna@mono-project.de>
12920 * Application.cs: add Restart () 2.0 support
12922 2006-12-18 Everaldo Canuto <everaldo@simios.org>
12924 * MenuItem.cs: Invalidate menu item rectangle after change Enable
12925 property. Fixes #80268.
12927 2006-12-18 Everaldo Canuto <everaldo@simios.org>
12929 * MenuAPI.cs: Dont trigger select event when closes top menu
12930 item. Fixes #80270.
12932 2006-12-18 Everaldo Canuto <everaldo@simios.org>
12934 * MenuAPI.cs: When you click on menuitem only trigger onselect
12935 event for top menu itens. Fixes #80271.
12937 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12939 * MdiWindowManager.cs: Make IconicBounds depend on
12940 the bottom of MdiClient, not the top (fixes #80267)
12942 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
12944 * MdiClient.cs: Added missing 2.0 attribute
12946 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12948 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
12949 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
12951 2006-12-18 Everaldo Canuto <everaldo@simios.org>
12953 * MenuAPI.cs: Fix click when menuitem is not popup,
12954 this regression was caused by last commit (#80272).
12956 2006-12-17 Everaldo Canuto <everaldo@simios.org>
12958 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
12959 fire click event or close menu. Fixes #80272.
12961 2006-12-17 Daniel Nauck <dna@mono-project.de>
12963 * ListViewHitTestInfo.cs: add
12965 2006-12-17 Daniel Nauck <dna@mono-project.de>
12967 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
12968 * FlatButtonAppearance.cs: add
12969 * DockingAttribute.cs: add
12971 2006-12-17 Chris Toshok <toshok@ximian.com>
12973 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
12974 and rebind our columns when it does - this way, if you make
12975 changes to the DataTable (or set the Table attribute on a DataView
12976 after setting it as the DataGrid's DataSource, the changes are
12977 made visible.) Fixes bug #80107.
12979 2006-12-17 Daniel Nauck <dna@mono-project.de>
12981 * ListViewGroup.cs: add internal Location property for layouting.
12982 * Theme.cs: add abstract ListViewGroupHeight function.
12983 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
12985 2006-12-16 Andreia Gaita <avidigal@novell.com>
12987 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
12988 Added reset of selected index to 0 when adding first tab page.
12991 * NumericUpDown.cs: Fix NET_2_0 check
12993 2006-12-16 Daniel Nauck <dna@mono-project.de>
12995 * ListViewGroup.cs: fixed DefaultValueAttribute value
12997 2006-12-16 Daniel Nauck <dna@mono-project.de>
12999 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
13001 2006-12-15 Miguel de Icaza <miguel@novell.com>
13003 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
13004 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
13005 ScrollableControl.cs: Add a handful of methods that are
13008 2006-12-15 Chris Toshok <toshok@ximian.com>
13010 * XplatUIWin32.cs: initial implementation of the Reversible
13011 drawing functions. there are some problems. DrawReversibleFrame
13012 doesn't seem to work at all for Dashed FrameStyle, and in the
13013 Thick case there are drawing errors at the corners (we probably
13014 need to bind Rectangle instead of doing moveto/lineto's.)
13016 2006-12-16 Andreia Gaita <avidigal@novell.com>
13018 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
13019 to send blocks of key messages. Send accumulates keys to send with Flush,
13020 while SendWait sends all keys immediately.
13022 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13023 XplatUIX11.cs, XplatUIX11-new.cs:
13024 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
13025 to Win32 SendInput.
13026 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
13028 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
13029 testing for ms.net on this class is very tricky, as the tests run too fast
13030 to allow the hook to release, essentially freezing the keyboard and the
13031 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
13034 2006-12-16 Daniel Nauck <dna@mono-project.de>
13036 * Padding.cs: fixed serialization compability to MS ("_var" field names),
13037 added missing attributes.
13039 2006-12-15 Daniel Nauck <dna@mono-project.de>
13041 * ListViewGroup.cs: Added missing attributes.
13042 * ListViewGroupCollection.cs: Added missing attributes.
13044 2006-12-15 Daniel Nauck <dna@mono-project.de>
13046 * ListViewItem.cs: fixed ListViewSubItem text property.
13048 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13050 * Control.cs: Added missing 2.0 attributes
13052 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13054 * MdiClient.cs: Added missing 2.0 attribute.
13055 * MonthCalendar.cs: Added some missing 2.0 attributes
13058 2006-12-15 Daniel Nauck <dna@mono-project.de>
13060 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
13062 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
13064 * MainMenu.cs: Add the new 2.0 constructor to help out people
13065 using the MainMenu in VS2005.
13067 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13069 * MdiChildContext.cs: Removed it, no longer used.
13070 * MdiClient.cs: Added missing 2.0 attributes.
13072 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13074 * InternalWindowManager.cs: Fix a NullRef with previous
13075 changes for toolwindows.
13077 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13080 - Added AfterTopMostControl to allow for certain controls
13081 to always stay on top when normal controls are brought to
13085 - (DrawInversibleRectangle): Get window rectangle from Win32
13086 in stead of from control, since Win32 doesn't calculate
13087 screen coords correctly from control's Location if it
13088 have docked siblings.
13090 * MdiWindowManager.cs:
13091 - Correct the control menu popup location when clicked on
13092 the maximized form icon. (fixes #80223.1)
13093 - Don't show moving rectangle if mouse hasn't moved from
13094 the original clicked point.
13095 - Removed FormGotFocus handler (not used).
13096 - Calculate the control buttons location from the main
13097 window's size and not client size (fixes #79770).
13098 - Form is now closed when the form icon is double-clicked
13100 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
13102 * InternalWindowManager.cs:
13103 - Moved some MDI-only methods to MdiWindowManager.
13104 - Removed unused properties and methods.
13105 - Unified method naming for methods handling wm messages.
13106 - Moved all message handling to seperate methods for
13109 * ThemeWin32Classic.cs:
13110 - DrawManagedWindowDecorations now draws the title bar
13111 with a gradient brush.
13112 - Add a CPDrawButtonInternal that allows us to specify
13113 light, normal and dark colors for the buttons (control
13114 buttons for MDI children were drawn with the same light
13115 color as the background, therefore loosing the 3D effect).
13118 - Add a CapturedControl property that is used to
13119 determine the control to resize (defaults to parent).
13120 Needed for MdiClient, since its SizeGrip's parent is
13121 MdiClient, but the control to resize is the main form.
13124 - Set SizeGrip's CapturedControl to the main form in order
13125 to resize the main form and not the MdiClient.
13126 - Override AfterTopMostControl to leave the scrollbars
13129 2006-12-15 Daniel Nauck <dna@mono-project.de>
13131 * ListView.cs: fixed ListViewItemCollection AddRange and
13132 implemented ListViewItemCollection AddRange 2.0 support.
13134 2006-12-15 Daniel Nauck <dna@mono-project.de>
13136 * ListViewGroup.cs: Add.
13137 * ListViewGroupCollection.cs: Add
13138 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
13139 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
13140 stub for ImageKey 2.0 support.
13142 2006-12-14 Mike Kestner <mkestner@novell.com>
13144 * ListView.cs: add text padding to the autocalculation for columns
13145 of width -2. Fixes #80207.
13147 2006-12-14 Mike Kestner <mkestner@novell.com>
13149 * ListView.cs: add some index guarding for partial row navigation
13150 logic. Fixes #80250.
13152 2006-12-14 Mike Kestner <mkestner@novell.com>
13154 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
13155 are added or inserted to the collection. Fixes #81099.
13157 2006-12-13 Everaldo Canuto <everaldo@simios.org>
13159 * MenuAPI.cs: Closes menu when right click out side of popup
13160 it fix problem in ContextMenu and MainMenu. Fixes #80252.
13162 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13164 * ListViewItem.cs: Fix dumb error.
13166 * ListView.cs: Add Find and ContainsKey methods in
13167 ListViewItemCollection, and also return true for IsReadOnly
13168 and IsFixedSize (changes for 2.0).
13170 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
13172 * Control.cs: Allow Region to be set to null.
13174 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
13176 * MdiWindowManager.cs: Remove unused (commented out) code.
13177 * Form.cs: When the MdiChild is maximized, the form needs
13178 WM_NCMOUSELEAVE, so request it.
13179 * InternalWindowManager.cs:
13180 - Added tooltips to control buttons.
13181 - Removed duplicated control button handling code.
13182 - Removed unused (commented out) code.
13184 2006-12-12 Everaldo Canuto <everaldo@simios.org>
13186 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
13187 was used because we must set cursor without trigger ChangeCursor event
13188 and without change Cursor control property. Fixes #79963.
13190 2006-12-12 Andreia Gaita <avidigal@novell.com>
13192 * Control.cs: Check if Region setter value is null, and ignore
13194 2006-12-12 Jackson Harper <jackson@ximian.com>
13196 * TextControl.cs: We were almost always drawing one more line then
13197 needed, since the GetLineByPixel will return the last line found
13198 at that pixel. In most cases though, we were invalidating up to
13199 the junction between two lines.
13200 - Improve debug code.
13202 2006-12-12 Chris Toshok <toshok@ximian.com>
13204 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
13205 and FillReversibleRectangle.
13207 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
13208 and FillReversibleRectangle.
13210 * XplatUIWin32.cs: add stubs which do nothing for
13211 DrawReversibleFrame, DrawReversibleLine, and
13212 FillReversibleRectangle.
13214 * XplatUIOSX.cs: add stubs which raise NIE for
13215 DrawReversibleFrame, DrawReversibleLine, and
13216 FillReversibleRectangle.
13218 * XplatUIX11.cs: add working implementation for
13219 DrawReversibleFrame, DrawReversibleLine, and
13220 FillReversibleRectangle.
13222 * ControlPaint.cs: implement DrawReversibleFrame,
13223 DrawReversibleLine, and FillReversibleRectangle, by calling into
13224 the appropriate XplatUI method.
13226 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13228 * Form.cs: Make MdiClient have the focus even if it's
13229 not selectable, since it should receive WM_KEY* and WM_MOUSE
13230 messages. Fixes #79907.
13232 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13234 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
13235 queried after the window is created.
13237 * XplatUIX11.cs: Added SendParentNotify to implement
13238 WM_PARENTNOTIFY logic. Fixes #79965.
13240 * Control.cs: Added MakeParam.
13242 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13244 * MdiClient.cs: Resume Layout before setting window
13245 states (fixes #80201).
13247 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
13249 * MenuAPI.cs: Deselect a menu item after performing
13250 the click (fixes #80197).
13252 2006-12-11 Jackson Harper <jackson@ximian.com>
13254 * TextBoxBase.cs: We need to cap this value, since Maximum -
13255 ViewPortHeight can be less than zero.
13256 - Only do selection with the left mouse button.
13257 * TextBox.cs: Don't tell the world that we have a context menu.
13258 * Control.cs: New method so that we can control whether or not the
13259 context menu is visible outside MWF.
13261 2006-12-11 Everaldo Canuto <everaldo@simios.org>
13263 * ToolBarButton.cs: Fix text positon.
13265 2006-12-11 Miguel de Icaza <miguel@novell.com>
13267 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
13269 * Control.cs (DoubleBuffered): Add implementation.
13271 * Application.cs (OpenForms): Add.
13273 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
13275 * Form.cs: Use opacity instead of Opactiy to determine if we need
13276 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
13278 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
13280 * Control.cs: Fix NRE if Control.Site was set to null.
13282 2006-12-11 Chris Toshok <toshok@ximian.com>
13284 * Control.cs: ControlCollection.Remove should return if the arg is
13285 null, and ControlCollection.SetChildIndex should raise a ANE.
13287 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
13289 * Control.cs: Verify value set for Dock property. Code formatting
13292 2006-12-11 Jackson Harper <jackson@ximian.com>
13294 * TextControl.cs: Draw the caret and the selection when a flag is
13296 * TextBoxBase.cs: We want to draw the caret and the selection for
13297 TextBox but not for TextBoxBase.
13298 - If the window is resized and scrolling is no longer needed (the
13299 whole doc is visible) set the scroll position to zero.
13300 - The default SelectWord (the one TextBox uses) should move the
13301 caret to the end of the word.
13302 - SelectAll moves the caret to the end of the selection.
13303 * TextBox.cs: We don't selectall on focus, we just do it when the
13304 control is created.
13306 2006-12-11 Mike Kestner <mkestner@novell.com>
13308 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
13310 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13312 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
13314 * ListViewItem.cs: Add Name 2.0 property.
13316 2006-12-11 Andreia Gaita <avidigal@novell.com>
13318 * TabControl.cs: Set visibility on selected or default tab
13319 when tabcontrol handle is created, so that it's contents
13320 actually show up (duh). Fixes #80193
13321 Don't redraw the control if there is no handle created, as
13322 the selected index might be completely invalid. Added some tests
13325 2006-12-11 Everaldo Canuto <everaldo@simios.org>
13327 * ToolBar.cs: Uses maximun width and height of all buttons as
13328 button rectangle when ButtonSize specified, it looks strange but
13329 is what happens in Win32. Fixes #80189.
13331 2006-12-11 Jackson Harper <jackson@ximian.com>
13333 * TextControl.cs: Need to track undo levels ourself, since
13334 compound actions will mess them up.
13336 2006-12-10 Andreia Gaita <avidigal@novell.com>
13338 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
13339 SelectedIndex value is changed (even if it's not valid).
13340 Reset SelectedIndex to 0 when the handle is created and if
13341 the current index is invalid.
13342 Fixes SelectdeIndex unit tests and #80128
13344 2006-12-08 Chris Toshok <toshok@ximian.com>
13346 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
13347 calls EndEdit, it needs to be called before we set current_cell to
13348 its new value. Otherwise, we end up committing the value in the
13349 textbox to the new cell as well. Fixes bug #80160.
13351 2006-12-08 Chris Toshok <toshok@ximian.com>
13353 * Form.cs (set_CancelButton): if the button's DialogResult is
13354 None, set it to Cancel. Fixes bug 80180.
13356 2006-12-08 Jackson Harper <jackson@ximian.com>
13358 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
13359 to watch ourselves when setting the canvas size and setting the
13362 2006-12-08 Chris Toshok <toshok@ximian.com>
13364 * DataGrid.cs: comment out the two MakeTransparent calls for the
13365 time being so people using trunk (and not 1.2.2) on windows can
13366 actually use the datagrid. This deals with bug #80151.
13368 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
13370 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
13371 Graphics.DrawImage (image, int, int, int, int) overload instead
13372 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
13373 the dpi difference and was blurring images it drew.
13376 2006-12-08 Chris Toshok <toshok@ximian.com>
13378 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
13379 rowcnt is 0 (such as with an empty datasource), and make sure we
13380 initialize not_usedarea.Y to cells.Y, so we don't draw over the
13381 other areas (caption, parent row, etc, etc). Fixes bug #80095.
13383 2006-12-08 Chris Toshok <toshok@ximian.com>
13385 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
13388 2006-12-08 Chris Toshok <toshok@ximian.com>
13390 [ Fixes bug #80167 ]
13392 * ThemeWin32Classic.cs: don't draw the image if the button's flat
13393 style is FlatStyle.System.
13395 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
13396 ButtonBase.flat_style private, and switch uses of it to the public
13399 2006-12-08 Chris Toshok <toshok@ximian.com>
13401 [ Fixes bug #80121 ]
13403 * ThemeWin32Classic.cs: center the caption text in the datagrid
13406 * DataGrid.cs: lessen the amount we add to the caption height from
13407 6 to 2. 6 was making it huge.
13409 2006-12-08 Andreia Gaita <avidigal@novell.com>
13411 * UpDownBase: Handle MouseWheel call directly instead of capturing
13412 the inner textbox's OnMouseWheel. Fixes #80166
13414 2006-12-08 Jackson Harper <jackson@ximian.com>
13416 * TextControl.cs: We need to invalidate the textbox when we empty
13417 it (how had this not been discovered before?)
13419 2006-12-08 Jackson Harper <jackson@ximian.com>
13421 * TextBoxBase.cs: Reworked the mouse down code so I could get it
13422 to behave like MS, we now ignore the eventargs.Click and just
13423 track state ourself, which we were already doing anyways.
13424 - Constrain the double click handler to the double click size.
13426 2006-12-08 Chris Toshok <toshok@ximian.com>
13428 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
13429 direction if that scrollbar isn't shown. fixes bug #80158.
13431 2006-12-08 Andreia Gaita <avidigal@novell.com>
13433 * NumericUpDown.cs: Update value on getter. Fixes #79950
13435 2006-12-08 Chris Toshok <toshok@ximian.com>
13437 * MenuItem.cs: add back in the event cloning code. I didn't know
13438 how to do it in the face of the EventHandlerList work i'd done
13439 last week. Fixes bug #80183.
13441 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
13443 * Control.cs: Add an invalidate to the BackgroundImage setter.
13446 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
13448 * ToolStrip*: Add some small properties reported by MoMA, fix event
13449 firing and default properties based off of unit tests, and add some
13450 attributes based off of the class status page.
13452 2006-12-07 Jackson Harper <jackson@ximian.com>
13454 * TextBoxBase.cs: Take HideSelection into account when determining
13455 whether or not to show the selection.
13456 * RichTextBox.cs: After inserting the RTF into the document move
13457 the cursor to the beginning of the document.
13459 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
13461 * Control.cs: Remove static ArrayList "controls" which maintained
13462 a reference to every control created.
13463 * Application.cs: Create a static FormCollection to maintain a reference
13464 to every form created. Use it in places that formerly enumerated through
13465 the controls one looking for forms.
13466 * Form.cs: Add and remove self from above FormCollection.
13468 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
13470 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
13471 not libgdk (though it makes me wonder why I didn't have any
13474 2006-12-07 Chris Toshok <toshok@ximian.com>
13476 [ you had to know this was coming after that last commit...]
13478 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
13479 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
13480 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
13483 2006-12-07 Chris Toshok <toshok@ximian.com>
13485 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
13486 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
13487 all the behavior we need for double buffering.
13489 * XplatUIDriver.cs: implement the 3 double buffer methods using a
13490 client side Bitmap, just like the old Control-based double buffer
13491 code did. The methods are virtual, so each XplatUI driver
13492 subclass can replace the implementation to use a faster, platform
13495 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
13496 double buffer code, and clean things up a bit in the process.
13498 2006-12-06 Chris Toshok <toshok@ximian.com>
13500 * Control.cs: reindent WndProc.
13502 2006-12-06 Chris Toshok <toshok@ximian.com>
13504 [ I wanna be like BenM when I grow up ]
13506 * Hwnd.cs: create a single static Graphics object on the static
13507 Bitmap we create. use this for our text measurements.
13509 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
13510 This was causing us to allocate a backbuffer for every control,
13511 even when it wasn't flagged as double buffered. Instead use the
13512 single graphics instance. This might have implications for
13513 multithreaded applications. If we run into problems we can switch
13514 to creating 1 Graphics per control, on the static Hwnd bitmap.
13516 this change nets us a 7M savings in private dirty mappings when
13517 running FormsTest.exe.
13519 2006-12-06 Chris Toshok <toshok@ximian.com>
13521 * ListView.cs: the BackgroundImage override is just to set
13522 attributes. chain up to base.BackgroundImage.
13524 * RichTextBox.cs: same.
13526 * ToolBar.cs: same, but we need to also redraw the toolbar when it
13527 changes, so instead a handler for BackgroundImageChanged.
13529 * Control.cs: make background_image private.
13531 2006-12-06 Chris Toshok <toshok@ximian.com>
13533 * ScrollBar.cs: change the assignment of cursor to Cursor. not
13534 sure we even need this assignment, but roll with it for now.
13536 * Control.cs: make the cursor field private.
13538 2006-12-06 Chris Toshok <toshok@ximian.com>
13540 * Form.cs: we don't need to explicitly set ImeMode to
13541 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
13542 behavior in the face of ImeMode.Inherit.
13544 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
13545 change the ctor's assignment to use ImeMode instead of ime_mode.
13547 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
13548 ImeModeInherit. Only check for the parent's imemode (and return
13549 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
13550 This fixes the button unit test, which sets both ImeMode and
13551 DefaultImeMode to ImeMode.Disable.
13553 also make the ime_mode field private.
13555 2006-12-06 Chris Toshok <toshok@ximian.com>
13557 * Control.cs: make control_style private.
13559 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
13560 setting the styles to true, then setting them to false instead of
13561 reverting to their previous values.
13563 also, call SetStyle on the scrollbars instead of using
13564 control_style directly.
13566 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
13568 * FormCollection.cs: Implement. [2.0]
13570 2006-12-06 Chris Toshok <toshok@ximian.com>
13572 * Control.cs: make tab_stop private.
13574 * Label.cs: set TabStop, not tab_stop. reformat some event
13575 add/remove methods to make them more compact.
13577 2006-12-06 Chris Toshok <toshok@ximian.com>
13579 * RadioButton.cs: fix TabStop handling.
13581 2006-12-06 Chris Toshok <toshok@ximian.com>
13583 * TextBox.cs: remove the explicit assignments to has_focus.
13586 * ButtonBase.cs: remove the assignment to has_focus. Control will
13589 2006-12-06 Chris Toshok <toshok@ximian.com>
13591 * ButtonBase.cs: remove all uses of is_enabled from this code.
13592 it's always true when any of the code containing the checks is
13595 2006-12-06 Chris Toshok <toshok@ximian.com>
13597 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
13598 with different semantics (some are present in both 1.1 and 2.0
13599 profiles) so that we match MS's behavior in our unit tests.
13601 2006-12-06 Jackson Harper <jackson@ximian.com>
13603 * TextControl.cs: Make this operation undoable.
13604 * TextBoxBase.cs: Factor the border width into the preferred
13606 - implement Modified as per the spec.
13608 2006-12-06 Chris Toshok <toshok@ximian.com>
13610 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
13612 2006-12-06 Chris Toshok <toshok@ximian.com>
13614 * Control.cs: make right_to_left and context_menu fields private.
13616 2006-12-06 Chris Toshok <toshok@ximian.com>
13618 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
13619 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
13620 Control.child_controls private. switch all uses over to
13623 2006-12-06 Chris Toshok <toshok@ximian.com>
13625 * System.Windows.Forms/GroupBox.cs,
13626 System.Windows.Forms/AccessibleObject.cs,
13627 System.Windows.Forms/ErrorProvider.cs,
13628 System.Windows.Forms/Control.cs,
13629 System.Windows.Forms/UpDownBase.cs,
13630 System.Windows.Forms/ScrollBar.cs,
13631 System.Windows.Forms/DateTimePicker.cs,
13632 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
13633 System.Windows.Forms/ToolTip.cs,
13634 System.Windows.Forms/RadioButton.cs,
13635 System.Windows.Forms/LinkLabel.cs,
13636 System.Windows.Forms/Splitter.cs,
13637 System.Windows.Forms/TextBoxBase.cs,
13638 System.Windows.Forms/ToolStripTextBox.cs,
13639 System.Windows.Forms/ContainerControl.cs,
13640 System.Windows.Forms/ThemeWin32Classic.cs,
13641 System.Windows.Forms/SizeGrip.cs,
13642 System.Windows.Forms/ToolStripDropDown.cs,
13643 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
13644 private. switch all uses over to Control.Parent.
13646 2006-12-06 Chris Toshok <toshok@ximian.com>
13648 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
13649 Control does this before calling emitting these events.
13651 * TabControl.cs: same.
13653 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
13654 Control.client_rect.
13656 * ButtonBase.cs: use the ClientSize property instead of the
13659 * ScrollableControl.cs: same.
13661 * Control.cs: another pass at making properties private. also,
13662 move the initialization of tab_stop to the ctor.
13664 2006-12-05 Andreia Gaita <avidigal@novell.com>
13666 * TabControl.cs: Let the selected index be set freely if the
13667 control handle is not yet created.
13669 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
13671 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
13672 internal until I can rewrite DefaultLayout.
13673 * ToolStrip.cs: Fix build error and some general cleaning.
13674 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
13675 Fix build errors caused by making some of Control's fields private.
13677 2006-12-05 Jackson Harper <jackson@ximian.com>
13679 * TextControl.cs: Redo Insert a little so that it use IndexOf
13680 instead of Split, this prevents it from messing up on things like
13681 \n\n\n. Also more effecient since the split array doesn't need to
13683 * TextBoxBase.cs: AppendText doesnt handle multiline and non
13684 multiline text differently, this is the first of many fixes that
13685 will make multiline/non-multiline the same thing as far as the
13686 TextBoxBase is concerned.
13687 - Don't split the text and insert lines, this can lose some line
13688 endings (like is the last line a soft or hard break). Instead use
13690 - Fix an off by one when combining all the lines in the Text
13692 - Remove separate multiline handling from the Text getter/setter.
13694 2006-12-05 Chris Toshok <toshok@ximian.com>
13696 * ButtonBase.cs: a few changes:
13698 - don't reinitialize internal Control fields in the ctor when they
13699 have the same values as Control sets them.
13701 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
13702 this before calling those methods.
13704 - we don't need to call Refresh for anything. use Invalidate
13707 - OnEnabledChanged doesn't need to redraw at all - Control.cs
13708 calls Refresh in its OnEnabledChanged.
13710 - several of the events we were registered for in the ctor to
13711 redraw ourselves already include calls to Invalidate in the
13712 property setters that raise the events. remove the extra
13715 - reformat a switch statement that was 83274658 columns wide.
13717 2006-12-05 Mike Kestner <mkestner@novell.com>
13719 * ComboBox.cs: fix a unit test regression from a TextBox
13720 SelectionLength return of -1 when there's no selection.
13722 2006-12-05 Chris Toshok <toshok@ximian.com>
13724 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
13725 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
13726 cleaning up some of the internal Control fields being used by
13729 2006-12-05 Mike Kestner <mkestner@novell.com>
13731 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
13732 listbox after AddImplicit calls since it defaults to hidden. Add a
13733 hack to preserve requested heights across DropDownStyle changes.
13735 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
13737 * PropertyGrid.cs: Hide FindFirstItem method from public API.
13739 2006-12-05 Chris Toshok <toshok@ximian.com>
13741 * DataGridView.cs: fix compiler warnings.
13743 * PrintControllerWithStatusDialog.cs: same.
13745 * ToolBar.cs: same.
13747 * FolderBrowserDialog.cs: same.
13749 * Splitter.cs: same.
13751 * DataGridViewComboBoxCell.cs: same.
13753 * XplatUIWin32.cs: same.
13755 * PictureBox.cs: same.
13757 * Win32DnD.cs: same.
13759 * PageSetupDialog.cs: same.
13761 * FileDialog.cs: same.
13763 * PrintDialog.cs: same.
13765 * DataGridTextBoxColumn.cs: same.
13767 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
13769 2006-12-05 Chris Toshok <toshok@ximian.com>
13771 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
13772 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
13773 System.ComponentModel.EventHandlerList work.
13775 2006-12-05 Jonathan Chambers <joncham@gmail.com>
13777 * DrawTreeNodeEventArgs.cs: Added.
13779 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13781 * InternalWindowManager.cs: Remove an unused field.
13783 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13785 * InternalWindowManager.cs:
13786 - Save the point where the title bar is clicked.
13788 * MdiWindowManager.cs:
13789 - Only allow moving of the window as long as the
13790 clicked point on the title bar does not get out of
13791 MdiClient's rectangle. Fixes #79982.
13794 - Added Horizontal/VerticalScrollbarVisible.
13795 - Simplified the scrollbar sizing algorithm.
13796 - Cache the difference in scrolled value in
13797 H/VBarValueChanged and move the calculation out
13800 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13802 * Control.cs: Make the Console.WriteLine in WndProc
13805 2006-12-05 Chris Toshok <toshok@ximian.com>
13807 * ToolStripManager.cs, ToolStripButton.cs,
13808 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
13809 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
13810 ToolStripSplitButton.cs, ToolStripSeparator.cs,
13811 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
13812 ToolStripProgressBar.cs, ToolStripContainer.cs,
13813 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
13814 to using System.ComponentModel.EventHandlerList.
13816 2006-12-04 Chris Toshok <toshok@ximian.com>
13818 * LinkLabel.cs: fix up compiler warnings.
13820 * TableLayoutSettings.cs: same.
13822 * TreeView.cs: same.
13824 * ToolBar.cs: same.
13826 * TabControl.cs: same.
13828 * RichTextBox.cs: same.
13830 * ListViewItem.cs: same.
13832 * PropertyGrid.cs: same.
13834 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
13838 * TextRenderer.cs: fix up compiler warnings.
13842 * Form.cs: corcompare fixes.
13844 * PictureBox.cs: fix up compiler warnings.
13846 * ImageListStreamer.cs: same.
13848 * TrackBar.cs: corcompare fix.
13850 * Control.cs: fix up compiler warnings.
13852 * SplitterPanel.cs: same.
13854 * NumericTextBox.cs: same.
13856 * ImageList.cs: same.
13858 * StatusStrip.cs: same.
13860 * ProgressBar.cs: corcompare fix.
13862 * ToolStripButton.cs: fix up compiler warnings.
13864 * ToolStripStatusLabel.cs: same.
13866 * ToolStripSplitButton.cs: same.
13868 * ToolStripSeparator.cs: same.
13870 * ToolStripProgressBar.cs: same.
13872 * ToolStripDropDownMenu.cs: same
13874 * ToolStripDropDown.cs: same.
13876 * ToolStripDropDownButton.cs: same.
13878 * ToolStrip.cs: same.
13880 * ToolStripControlHost.cs: same.
13882 * ToolStripContentPanel.cs: same.
13884 * ToolStripDropDown.cs: same.
13886 * ToolStripContainer.cs: same.
13888 * ToolStripPanel.cs: same, and add "new" where we need it to work
13889 with the new ArrangedElementCollection.
13891 * ToolStripItemCollection.cs: add "new" where we need it to work
13892 with the new ArrangedElementCollection.
13894 2006-12-04 Andreia Gaita <avidigal@novell.com>
13896 * TabControl.cs: Fix default tab selection to after TabControl
13897 gets focus and not before. Fixes #80128
13899 2006-12-04 Chris Toshok <toshok@ximian.com>
13901 * DataGridTableStyle.cs: remove the gross calling of
13902 datagrid.Refresh from here. It's a broken idea and it doesn't
13905 * DataGrid.cs: instead, just register/unregister from the
13906 DataGridTableStyle events in CurrentTableStyle. we play it
13907 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
13908 even though some would most likely not require it. Fixes bug
13909 #80115 (and one portion of #80117 as a side effect).
13911 2006-12-04 Chris Toshok <toshok@ximian.com>
13913 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
13914 so the textbox (if any) goes away. Fixes bug #80117.
13916 2006-12-04 Chris Toshok <toshok@ximian.com>
13918 * DataGridColumnStyle.cs: set the column's readonly property
13919 initially based on the property descriptor's IsReadOnly. Fixes
13922 2006-12-04 Chris Toshok <toshok@ximian.com>
13924 * ComboBox.cs: wrap the dropdown style changing work in
13925 SuspendLayout/ResumeLayout. Fixes bug #79968.
13927 2006-12-04 Jackson Harper <jackson@ximian.com>
13929 * TextBoxBase.cs: Fix off by one, since these are one-based.
13930 * TextBox.cs: Select all the text when we get focus. The TextBox
13931 does this but the RTB does not.
13933 2006-12-04 Chris Toshok <toshok@ximian.com>
13935 * DataGridTextBoxColumn.cs: remove some spew.
13937 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
13938 but some part of me is saying "it shouldn't be here.." At any
13939 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
13942 2006-12-04 Chris Toshok <toshok@ximian.com>
13944 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
13945 to reassign the propertydescriptor.
13947 2006-12-04 Jackson Harper <jackson@ximian.com>
13950 * TextControl.cs: Remove some unused variables. Maybe this will
13951 patch things up between mike and I.
13952 - don't split lines less then one char wide, if the viewport is
13953 that small text won't be visible anyways.
13955 2006-12-04 Jackson Harper <jackson@ximian.com>
13957 * TextBoxBase.cs: Default selection length is -1, need to do some
13958 more testing on windows to see when this is used for the property.
13959 - Redid the Lines [] property to that we properly remove soft line
13961 - added support for preserving carriage returns
13962 - CanUndo is not a variable like 'is undo enabled' it just returns
13963 true if there is undo operations available.
13964 - AppendText doesn't need to grab the last tag itself anymore,
13965 this happens automatically when we move the cursor.
13966 * TextControl.cs: Add CompoundActions to the undo class. This
13967 allows combining the other operations into one big option. ie a
13968 paste will combine { delete old, insert new, move cursor }
13969 - Add InsertString undo operation
13970 - New method for deleting multiline text
13971 - Add carriage returns to lines. So we can preserve carriage
13972 returns when text is 'roundtripped'
13974 2006-12-04 Chris Toshok <toshok@ximian.com>
13976 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
13977 minimum 0. Fixes the scrollbar exception in bug #80136.
13979 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13982 * MdiWindowManager: Removed unused fields and methods.
13984 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13986 * StatusBar.cs: Update all panels when a AutoSize=Contents
13987 panel needs updating.
13989 * StatusBarPanel.cs: Remove twidth and only use initialize.
13992 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
13994 * Form.cs: When a form's MdiParent is set add it directly
13995 on top of the z-order in stead of relying on MdiClient's
13996 ActivateChild to do it. Fixes #80135.
13999 - Remove original_order, mdi_child_list is already doing
14001 - Create mdi_child_list on construction in
14002 stead of first use (avoids a few null checks).
14004 * MenuItem.cs: Use an already existing list of mdi children
14005 to get the correct order of children and remove the other
14008 2006-12-04 Chris Toshok <toshok@ximian.com>
14010 * PropertyGridView.cs: cached_splitter_location is only used in
14011 !DOUBLEBUFFER code.
14013 * PropertyGrid.cs: implement the ComComponentNameChanged event
14014 using Events, hoping that would fix the warning. Looks like a
14015 compiler bug instead (#80144).
14017 * PropertyManager.cs: remove unused method.
14019 2006-11-04 Everaldo Canuto <everaldo@simios.org>
14021 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
14022 include parentesis to fix expression evaluation. Fixes #79634.
14024 2006-11-02 Everaldo Canuto <everaldo@simios.org>
14027 - Changes to fix behavior in Menu control, some reported in #80097
14028 and other detected during behavior refactory like a select event
14030 - Remove unneded "if's" conditions.
14031 - Created an internal to flag when popup is active in control, we need
14032 it because in .NET you can have menu active but without popup active
14033 when you active menu using popup without visible items.
14034 - Mimic win32 behavior for Select and Popup events.
14035 - Dont open popup menu when you dont have visible subitems.
14036 - Do nothing when click on disabled menu item.
14037 - Some small changes to follow the coding style guidelines.
14038 - Unselect menu only when another control gives focus. Fixes #80097.
14039 - Remove unused code.
14041 * MenuItem.cs: internal VisibleItems method to check if menu
14042 theres visible subitems, it will be usefull to fix some
14043 behavior in Menu control.
14045 2006-11-01 Everaldo Canuto <everaldo@simios.org>
14047 * Timer.cs: Tag property for 2.0 profile.
14049 2006-12-01 Chris Toshok <toshok@ximian.com>
14051 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
14053 * Win32DnD.cs: comment out some unused fields.
14055 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
14056 some unused properties/methods.
14058 * XplatUIX11.cs: fix MousePosition so we override the base class's
14059 property instead of conflicting with it.
14061 * PictureBox.cs: comment out some unused fields
14063 * OSXStructs.cs: make some struct fields public.
14065 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
14066 MousePosition so we override the base class's property instead of
14067 conflicting with it.
14069 * X11Dnd.cs: comment out some unused fields
14071 * X11DesktopColors.cs: fix some struct field visibility to quiet
14074 * X11Dnd.cs: remove some debug code.
14076 * ThemeClearlooks.cs: comment out unused field.
14078 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
14080 * ThemeGtk.cs: comment out some unused pinvokes.
14082 * Timer.cs: remove some unused fields.
14084 * ThemeClearlooks.cs: comment out unused field.
14086 * UpDownBase.cs: comment out unused field.
14088 * DataObject.cs: comment out unused field.
14090 * DataGridBoolColumn.cs: reomve unused field.
14092 * DataGrid.cs: remove unused field.
14094 * Cursor.cs: remove old ToBitmap code.
14096 * ControlPaint.cs: remove unused method.
14098 * ScrollBar.cs: remove unused fields.
14100 * ComboBox.cs: remove unused field, and chain up to
14101 AccessibleObject ctor.
14103 * ListBox.cs: remove unused field.
14105 * ButtonBase.cs: wrap a couple fields in NET_2_0.
14107 * GridEntry.cs: remove unused fields.
14109 * Binding.cs: remove unused fields.
14111 * AxHost.cs: remove unused method.
14113 * ContainerControl.cs: remove unused field.
14115 * ScrollableControl.cs: remove unused fields.
14117 2006-12-01 Chris Toshok <toshok@ximian.com>
14119 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
14120 the Where/WhereString stuff. it's easy enough to CWL
14121 Environment.StackTrace.
14123 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
14124 unused private fields.
14126 2006-12-01 Jackson Harper <jackson@ximian.com>
14128 * TextControl.cs: Do not update the view while inserting multiline
14129 text. If we update the view we might wrap lines, before entering
14130 the new lines, which causes the new line insertion calculations to
14131 be totally fubared.
14132 - Remove an old TODO
14133 - Make debug output a little nicer
14135 2006-12-01 Chris Toshok <toshok@ximian.com>
14137 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
14139 2006-12-01 Chris Toshok <toshok@ximian.com>
14141 [ fix the majority of the CS0108 warnings we've been suppressing ]
14143 * TreeView.cs: mark BackgroundImageChanged as 'new'.
14145 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
14146 to "LayoutToolBar" to quiet mcs.
14148 * TabControl.cs: mark our ControlCollection class as 'new'.
14150 * TextBoxBase.cs: mark some events as 'new'.
14152 * Splitter.cs: TabStop is 'new'.
14154 * ControlBindingsCollection.cs: mark a few methods as new since
14155 they change the visibility from protected to public.
14157 * RadioButton.cs: DoubleClick -> base class, and remove unused
14160 * MonthCalendar.cs: ImeMode property -> base class, and mark many
14163 * NumericUpDown.cs: TextChanged -> base class.
14165 * CheckedListBox.cs: mark our ObjectCollection class as new to
14168 * FolderBrowserDialog.cs: make HelpRequest event new and have it
14169 muck with the base class.
14171 * StatusBar.cs: fix some mcs warnings about Update being the same
14172 name as a base class method.
14174 * RichTextBox.cs: mark some events as new, and make them do things
14175 to the base class impl.
14177 * UserControl.cs: mark TextChanged as new, and have it manipulate
14180 * UpDownBase.cs: mark some things new.
14182 * CheckBox.cs: mark DoubleClick "new", and add some text about
14183 what we need to look at.
14185 * Panel.cs: make the events "new", and manipulate the base
14186 version. these are just here for attributes.
14188 * AccessibleObject.cs: make owner private.
14190 * Control.cs: deal with AccessibleObject.owner being private.
14191 cache our own copy if we need it.
14193 * Button.cs: add "new" to the DoubleClickEvent.
14195 * ListBox.cs: no need to track our own has_focus here. let
14196 Control.has_focus do it for us. Also some other work to clear up
14197 warnings about not overriding base class methods of the same name.
14199 * ComboBox.cs: clear up some warnings about not override base
14200 class methods of the same name.
14202 2006-12-01 Chris Toshok <toshok@ximian.com>
14204 * Form.cs: flag a few things as "new" to quiet some of the mcs
14209 * PrintPreviewDialog.cs: same.
14211 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
14212 now DGV isn't so horrible on the class status page. also, move
14213 all events to using System.ComponentModel.EventHandlerList. my
14216 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
14218 * MdiWindowManager.cs:
14219 - Set form to active mdi child if shown,
14220 and update the active mdi child to the next
14221 remaining child in the z-order if the form is hidden.
14224 - Track if the form has been visible and if its
14225 visibility is beeing changed, so that the MdiClient
14226 can properly decide the ActiveMdiChild. The MdiClient
14227 cannot track this since the form can change visibility
14228 before MdiClient is created.
14231 - Don't activate anything of the parent form is changing
14233 - Rework ActiveMdiChild to only return visible mdi
14234 children and take into account several other corner
14237 2006-12-01 Chris Toshok <toshok@ximian.com>
14239 * IBindableComponent.cs: new 2.0 interface.
14241 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
14243 * DataGrid.cs: Font for caption area is bold by default.
14245 2006-12-01 Everaldo Canuto <everaldo@simios.org>
14247 * Menu.cs: Tag property for 2.0.
14249 2006-11-01 Everaldo Canuto <everaldo@simios.org>
14251 * ThemeWin32Classic.cs: Adjust menu separator drawing.
14253 2006-12-01 Chris Toshok <toshok@ximian.com>
14255 * TreeView.cs: doh, the Begin* events should be
14256 TreeViewCancelEventHandler.
14258 2006-12-01 Chris Toshok <toshok@ximian.com>
14260 * Form.cs: Form.ControlCollection already stores off the
14261 form_owner field. don't access the base class's internal "owner"
14264 * Control.cs: make all the fields in Control.ControlCollection
14265 private. there's no need for any internal fields here.
14267 2006-12-01 Chris Toshok <toshok@ximian.com>
14269 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
14270 OnHandleCreated. Fixes bug #80109.
14272 2006-12-01 Chris Toshok <toshok@ximian.com>
14274 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
14275 SplitContainer.cs, Control.cs, StatusStrip.cs,
14276 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
14277 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
14278 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
14279 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
14280 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
14281 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
14282 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
14283 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
14284 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
14285 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
14287 do most of the work to convert our code over to use
14288 System.ComponentModel.Component.Events for
14289 adding/removing/dispatching events.
14292 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
14294 * DataGridView.cs: Fix an ArgumentNullException reported
14295 twice today in IRC.
14297 2006-11-30 Mike Kestner <mkestner@novell.com>
14299 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
14300 grabbed listbox. Fixes #80036 and #80101.
14302 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14304 * Message.cs: Changed ToString() to match MS.
14306 2006-11-30 Jackson Harper <jackson@ximian.com>
14308 * TextBoxBase.cs: You can still change the selected text on a read
14310 * TextControl.cs: Lower magic number for wrap calculations. This
14311 lets text get closer to the right (far) edge.
14313 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
14315 * Control.cs: Tweak 2.0 layout properties.
14316 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
14317 * TextRenderer.cs: Add a new overload.
14318 * ToolStrip*: Huge amount of changes and new features.
14320 2006-11-30 Mike Kestner <mkestner@novell.com>
14322 * ComboBox.cs: fixes for LargeChange and Maximum to get the
14323 scroll range correct. Fixes #79994.
14325 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14327 * MdiWindowManager.cs: Update main form's text when
14328 a form is closed. (fixes #80038)
14330 2006-11-30 Everaldo Canuto <everaldo@simios.org>
14333 - Fix an regression in ButtonSize.
14334 - Get ImeMode default value change to "Disable".
14335 - Get ShowTooltips default value change to true, default value is
14336 "false" but after make a test in .NET we get "true" result as default.
14338 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
14340 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
14342 2006-11-29 Chris Toshok <toshok@ximian.com>
14344 * XplatUIWin32.cs (GetWindowTransparency): check return value of
14345 GetLayeredWindowAttributes. if it's 0, return 1.0, as
14346 SetWindowTransparency hasn't been called.
14348 2006-11-29 Chris Toshok <toshok@ximian.com>
14350 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
14352 (set_AllowTransparency): reorder things a little so that the
14353 WS_EX_LAYERED style is removed properly.
14355 2006-11-29 Chris Toshok <toshok@ximian.com>
14357 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
14359 * Form.cs: only call the XplatUI transparency method (get/set) if
14360 SupportsTransparency says it's supported. Otherwise fallback to
14361 doing nothing (in the set case) or returning the instance field we
14362 cache (in the get case).
14364 * XplatUIStructs.cs: add TransparencySupport flag enum.
14366 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
14367 change to SupportsTransparency.
14369 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
14370 TransparencySupport.None from SupportsTransparency.
14372 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
14373 TransparencySupport.Set from SupportsTransparency.
14375 * XplatUIWin32.cs: implement GetWindowTransparency calling
14376 GetLayeredWindowAttributes, and implement SupportsTransparency by
14377 checking whether or not both
14378 GetWindowTransparency/SetWindowTransparency are available
14379 entrypoints. We need to do this since SetWindowTransparency is
14380 available as of win2k, but GetWindowTransparency requires winxp.
14383 * XplatUI.cs: Add GetWindowTransparency, and change
14384 SupportsTransparency to allow for either/both Get/Set.
14386 2006-11-29 Chris Toshok <toshok@ximian.com>
14388 * DataGrid.cs: keep from going into an infinite loop redrawing a
14389 datagrid that has no datasource. Fixes bug #80033.
14391 2006-11-29 Chris Toshok <toshok@ximian.com>
14393 * MenuItem.cs: fix the NRE when we assign text (and therefore call
14394 Invalidate) before the mainmenu has been assigned to a control.
14396 2006-11-29 Chris Toshok <toshok@ximian.com>
14398 * DataGrid.cs: detect when we should be double the double click
14399 row/column autosize stuff, although that codepath has yet to be
14400 written. part of the work for bug #79891.
14402 2006-11-29 Chris Toshok <toshok@ximian.com>
14404 * Binding.cs (SetControl): fix unit test.
14406 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14408 * PageSetupDialog.cs: Validate the margins and set them in
14410 * NumericTextBox.cs: New class to mimic the behavior of the
14411 textboxes used in the printing dialogs.
14413 2006-11-29 Andreia Gaita <avidigal@novell.com>
14415 * Form.cs: Revert previous change (remove call UpdateBounds
14416 from form constructor), because it messes with the handle creation
14417 order, and that one needs lots and lots of love.
14418 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
14419 for valid printer and throw InvalidPrinterException if document
14420 is set but printer not valid), adding a MonoTODO. Once
14421 handle creation is done properly, we can put this back in.
14423 2006-11-28 Everaldo Canuto <everaldo@simios.org>
14425 * MenuItem.cs: Create a invalidate method for menu item, to be
14426 calling from set text, it make text changes to imadiate update
14427 on screen. Fixes #80013.
14429 2006-11-28 Everaldo Canuto <everaldo@simios.org>
14431 * ToolBar.cs: Fixes and simplify toolbar button layout, it
14432 fixes bug #80070 and some other problem on toolbar buttons
14435 2006-11-28 Everaldo Canuto <everaldo@simios.org>
14437 * ThemeWin32Classic.cs: Paint toolbar toggle button background
14438 with dotted brush. Fixes #79564
14440 2006-11-28 Andreia Gaita <avidigal@novell.com>
14442 * Form.cs: Removed call to UpdateBounds on Form
14443 constructor, it was causing a call to CreateHandle
14444 before it was supposed to.
14445 * PrintControllerWithStatusDialog: Applied patch
14446 by Chris Toshok to hide controller when there are
14447 no printers available.
14448 PrintDialog.cs: initialize printer settings to
14449 null - correct DefaultValues test #5
14450 * PrintPreviewControl.cs: Move PrintController
14451 initialization to GeneratePreview
14452 * PrintPreviewDialog.cs:
14453 - Remove Preview generation from Document_set(). It is
14455 - Throw InvalidPrinterException on CreateHandle if
14456 a Document is set but there are no printers or
14457 printer is not valid.
14458 * ThemeWin32Classic: don't paint PrintPreviewControl
14459 if there is nothing to paint
14461 2006-11-28 Miguel de Icaza <miguel@novell.com>
14463 * Form.cs: Add another popular method.
14465 * TabPage.cs: ditto.
14467 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14469 * MenuItem.cs: Fixed a warning.
14470 * InternalWindowManager: Fixed a warning.
14472 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14475 - When cloning a menu also clone MdiList and clone the
14476 window menu items properly (as the forms and menuitems
14477 are kept in an internal hashtable, these need updating
14479 - Rewrote the window menu code, menu items are added in the
14480 order the forms were added to their parent, and they are
14481 updated every time the window menu is shown (before the
14482 list was only generated once, in the current order of the
14483 forms, and would never be updated). A checkmark is shown
14484 next to the item corresponding to the active mdi child.
14486 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14488 * XplatUIStructs.cs:
14489 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
14492 - Added TME_NONCLIENT to TMEFlags.
14493 - Handles WM_NCMOUSEMOVE in GetMessage to
14494 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
14496 * MdiWindowManager:
14497 - Now merges mdi child menu to parent menu when maximized.
14498 - Recalculate NC areas of both mdi child and mdi parent.
14500 on window state and size changes.Fixes #79844 (3).
14501 - Handle WM_NCCALCSIZE to properly calculate borders.
14504 - Add/remove to the mdi containers list of mdi children
14505 in the order they are added.
14506 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
14507 to the maximized mdi child.
14509 * InternalWindowManager.cs:
14510 - Only execute a click on the control buttons on the mouse up,
14511 not on the mouse down. Show the state of the button
14512 (was only showing Normal state, never Pressed state). The
14513 pressed button now follows the mouse (if you click the Close
14514 button and move the mouse over the Maximize button, the
14515 Maximize button will be shown as pressed). Since Win32 does
14516 not generate WM_NCLBUTTONUP if you release the button outside
14517 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
14520 * ThemeWin32Classic.cs:
14521 - Draw a missing border around mdi child forms. Fixes #79844 (2).
14524 - Added a list of forms which contains the order the forms are
14525 added to the mdi parent.
14526 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
14527 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
14528 - If the active form changes set the scrollbars to the top
14529 of the Z order, otherwise the form could hide them.
14530 - Scrollbars are now sized according to ClientSize, not
14531 to Size, and they take into account the other scrollbar
14532 to determine maximum.
14534 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14537 * XplatUIDriver.cs:
14541 - Added RequestAdditionalWM_NCMessages for windows to
14542 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
14543 Currently only implemented in XplatUIWin32.
14545 2006-11-27 Chris Toshok <toshok@ximian.com>
14547 * Hwnd.cs: only add the hwnd to the windows hash in
14548 set_WholeWindow and set_ClientWindow if whole_window/client_window
14549 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
14551 2006-11-27 Mike Kestner <mkestner@novell.com>
14553 * ComboBox.cs: remove redundant OnDropDown call. It is called
14554 from the ComboListBox.ShowWindow code. Fixes #79969.
14556 2006-11-27 Chris Toshok <toshok@ximian.com>
14558 * Hwnd.cs: remove the setters for ExposePending and
14559 NCExposePending - noone uses them.
14561 2006-11-27 Jackson Harper <jackson@ximian.com>
14563 * TextControl.cs: new param for ReplaceSelection which determines
14564 whether we select the new selection, or set the cursor to the end
14565 of the new selection.
14566 * TextBoxBase.cs: Use new param for ReplaceSelection. When
14567 pasting, select the new text.
14568 * RichTextBox.cs: Use new param for ReplaceSelection.
14570 2006-11-27 Jackson Harper <jackson@ximian.com>
14572 * TextBoxBase.cs: Set the selection to the caret after the caret
14573 is moved, otherwise they get out of sync.
14575 2006-11-26 Everaldo Canuto <everaldo@simios.org>
14577 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
14580 2006-11-26 Everaldo Canuto <everaldo@simios.org>
14582 * ThemeWin32Classic.cs:
14583 - Fix toolbar drop down arrow position.
14584 - Fix drop down appearance when ToolBar.Appearance is normal,
14587 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
14589 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
14590 * Control.cs: Same.
14591 * UpDownBase.cs: Same.
14592 * ButtonBase.cs: Same.
14593 * ScrollBar.cs: Same.
14594 * TrackBar.cs: Same.
14595 * PictureBox.cs: Same.
14596 * UserControl.cs: Same.
14598 * ListControl.cs: Same.
14599 * TextBoxBase.cs: Same.
14600 * ListView.cs: Same.
14601 * RichTextBox.cs: Same.
14602 * TreeView.cs: Same.
14604 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
14607 - Text label for where
14608 - Text label comment was not shown
14610 2006-11-23 Everaldo Canuto <everaldo@simios.org>
14612 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
14614 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14616 * InternalWindowManager.cs:
14617 - Handle WM_PARENTNOTIFY to activate the form
14618 if any child control is clicked.
14619 - The form is only sizable if not minimized.
14621 * MdiWindowManager.cs:
14622 - Save the IconicBounds if the form is moved.
14623 - Rework SetWindowState, now the window bounds
14624 are stored only if the old window state is Normal.
14627 - In SetWindowStates store the old window state if
14628 the window is maximized and restore window state if
14629 the window looses focus.
14630 - Don't handle any scrollbar value changes if
14631 initializing the scroll bars. Fixes #79771.
14632 - Reworked ArrangeIconicWindows. Current algorithm
14633 tests bounds agains all other minimized windows, if
14634 any intersections create new bounds (going left to
14635 right, bottom to top) and then test again. When
14636 successful the bounds are saved and never computed
14637 again. Fixes #79774.
14639 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14641 * InternalWindowManager.cs: Added HandleTitleBarUp.
14643 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
14645 * NumericUpDown.cs: In .NET 1.1, user entered text is still
14646 hexadecimal in ParseUserEdit.
14649 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14651 * MdiWindowManager.cs:
14652 - Handle a click on the form's icon to show the
14653 system menu (when maximized). Fixes #79775.
14654 - Change the existing click handler for the form's
14655 icon when not maximized to show on MouseUp.
14658 * Form.cs: In OnResize only layout the mdi child's
14659 parent if it actually has a parent. Might not if
14660 the window is closing.
14663 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
14665 * MdiClient.cs: Ignore active MDI client for text of parent, if
14666 child has no text set.
14668 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
14670 * ToolBar.cs: Fixed ToString to match MS.
14672 2006-11-22 Andreia Gaita <avidigal@novell.com>
14675 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
14676 update inner values on set. Fixes #79966.
14677 - Override OnLostFocus to update value on NET 2. Fixes #79950.
14678 - Fix hexadecimal parsing.
14680 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
14681 parent. Fixes #79957
14683 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14685 * Control.cs: After calling SetWindowsPos in SetBoundsCore
14686 the actual size has to be queried, since if height /
14687 width is negative Win32 changes it to 0.
14688 Fixes #79999 on Windows.
14690 * XplatUIX11.cs: Set height / width to 0 if negative
14691 in SetWindowPos. Fixes #79999 on Linux.
14693 2006-11-22 Everaldo Canuto <everaldo@simios.org>
14695 * ThemeWin32Classic.cs: Fix text redenring when button is
14698 2006-11-22 Everaldo Canuto <everaldo@simios.org>
14700 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
14701 and later navigate by mouse. Fixes #79528.
14703 2006-11-21 Everaldo Canuto <everaldo@simios.org>
14705 * ToolBar.cs: Set default value for TabStop to false in
14706 constructor, it fixes remaining behavior of bug #79863.
14708 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
14710 * MdiWindowManager.cs:
14711 * InternalWindowManager.cs:
14712 - Moved a few methods specific to Mdi from
14713 InternalWindowManager to MdiWindowManager.
14716 2006-11-21 Chris Toshok <toshok@ximian.com>
14718 * XplatUIOSX.cs: stub out InvalidateNC.
14720 * XplatUIWin32.cs: implement InvalidateNC using the call I found
14721 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
14723 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
14725 * XplatUIDriver.cs: add InvalidateNC abstract method.
14727 * XplatUI.cs: add InvalidateNC.
14729 2006-11-21 Everaldo Canuto <everaldo@simios.org>
14731 * ToolBar.cs: Invalidate complete button area when pressed status
14733 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
14734 * ThemeWin32Classic.cs: Increase vertical and horizontal position
14735 by 1 when button is pressed.
14737 2006-11-20 Everaldo Canuto <everaldo@simios.org>
14739 * ToolButton.cs: Invalidate middle of DropDown button when
14740 ToolBar theres DropDownArrows.
14741 * ThemeWin32Classic.cs: Change position of DropDown arrow and
14742 fix DropDown drawing operations.
14744 2006-11-20 Chris Toshok <toshok@ximian.com>
14746 * NativeWindow.cs: fix the formatting of functions ('{' on the
14747 following line), and enable the thread exception dialog.
14749 * Application.cs: remove the duplicate exception catching from
14752 2006-11-20 Everaldo Canuto <everaldo@simios.org>
14754 * Toolbar.cs: Triggers button click event when click on icon
14755 of dropdown ToolBarButton. Fixes #79912.
14757 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14760 * ThemeWin32Classic.cs:
14761 - Added a property WindowBorderFont to enable themeing
14762 of mdi child windows' Text.
14764 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
14766 * InternalWindowManager.cs:
14769 * MdiWindowManager.cs:
14770 - If mdi child is maximized, set mdi parent's
14771 text to "Parent - [Child]". Fixes #79770.
14772 - If there is any maximized mdi child windows, only the active
14773 window (and any new windows) is maximized, the rest are normal.
14774 - On a WindowState change only save mdi child's window bounds
14775 if the old window state was normal. Fixes #79774.
14776 - The scroll bars are now calculated on hopefully all
14777 necessary events. Fixed #79771 / #79844->6 / #79906.
14778 - MdiClient.SizeScrollBars() now takes into account docked
14779 controls in the parent when calculating available space.
14780 - InternalWindowManager now always repaints the entire title
14781 area. Fixes #79844->1/4/5.
14782 - Added RequestNCRecalc on mdi child windowstate changes.
14785 2006-11-20 Mike Kestner <mkestner@novell.com>
14787 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
14788 in the MouseUp handler of the listbox and move the return handling
14789 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
14791 2006-11-20 Everaldo Canuto <everaldo@simios.org>
14793 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
14795 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
14797 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
14798 working in 1.2.x anymore. So, updated.
14800 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
14802 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
14803 NumberGroupSeparator of current culture instead of assuming en-US.
14806 2006-11-17 Mike Kestner <mkestner@novell.com>
14808 * Control.cs: Add the concept of implicit bounds setting so that
14809 dock/undock round trips preserve explicitly set size/locations.
14812 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
14814 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
14815 can't handle those filters. (Fixes bug #79961)
14817 2006-11-17 Chris Toshok <toshok@ximian.com>
14819 [ fixes the exit/crashes associated with #79835. it's clearly
14820 suboptimal though, we need to figure out a better way to solve
14823 * PrintPreviewControl.cs: deal with the new invalid printer
14826 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
14827 and return false (so CommonDialog.ShowDialog doesn't actually show
14830 * PrintDialog.cs: enable/disable the Ok button depending on
14831 whether or not the printer is valid.
14833 * CommonDialog.cs (ShowDialog): only actually show the form if
14834 RunDialog returns true.
14836 2006-11-17 Jackson Harper <jackson@ximian.com>
14838 * TextControl.cs: When soft splitting a line, mark it as a soft
14839 split line. Also carry over the current line break to the next
14842 2006-11-17 Chris Toshok <toshok@ximian.com>
14844 * XplatUIX11.cs: when scrolling a window with an invalid area, we
14845 only want to shift the part of the invalid area that overlaps the
14846 area we're scrolling. we also don't want to clear the invalid
14847 area unless the invalid area was entirely contained within the
14850 2006-11-16 Chris Toshok <toshok@ximian.com>
14852 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
14853 also make sure to free the memory returned by XGetWindowProperty
14856 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
14858 2006-11-16 Chris Toshok <toshok@ximian.com>
14860 * XplatUI.cs: add a new super secret way to get at the totally
14861 unsupported X11 backend.
14863 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
14865 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
14867 2006-11-16 Jackson Harper <jackson@ximian.com>
14869 * TreeView.cs: Allow more explicit setting of top node position
14870 for scrollbars. Slower algo, but more accurate.
14871 - CollapseAll should maintain the current top node.
14872 * TextBoxBase.cs: When positioning the caret, use the line, pos
14873 method, since the x, y method does not grab the correct tag, and
14874 the caret height never gets set correctly. (Maybe I should just do
14875 away with the caret having its own height, and always use the
14876 carets current tag for height).
14878 2006-11-16 Jonathan Pobst <monkey@jpobst.com
14880 [Fixes 79778, 79923]
14882 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
14883 Parent to the FosterParent instead.
14885 2006-11-16 Jackson Harper <jackson@ximian.com>
14887 * TreeView.cs: Need to recalc the topnode when we expand or
14888 collapse. The scrolling methods can't handle this on their own,
14889 since they use differences between the last scroll position, and
14890 those difference get completely messed up since we are expanding
14891 nodes. This problem should probably be fixed in the scrolling
14892 methods, so they can figure out exactly where they are, but this
14893 will slow things down a little.
14894 * ThemeWin32Classic.cs: Special case for groupboxes with empty
14895 strings, makes nunit-gui look a lot nicer.
14897 2006-11-16 Chris Toshok <toshok@ximian.com>
14899 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
14900 the broken multithreaded event handling we have in here. File
14901 this entry under "Why we should move to the new X11 backend".
14903 Any thread can make it into UpdateMessageQueue, which gets events
14904 from the X socket - some of which could belong to hwnds being
14905 managed by a different thread. We can also have multiple threads
14906 in UpdateMessageQueue at the same time, with each one reading from
14907 the X socket. This leads to many problems, with the following
14910 We can't use hwnd.Queue.Enqueue anywhere in here and must use
14913 The MotionNotify compression we do can't work across threads
14914 (without locking the entire queue, perhaps) since we call
14915 hwnd.Queue.Peek, so we just punt and don't compress motion events
14916 unless the owning thread is the one which got the X event.
14918 ConfigureNotify is another fun one, since it modifies the hwnd's
14919 bounds and then enqueues the event. We add a lock to Hwnd which
14920 is held when setting configure_pending to true (and enqueuing the
14923 There is a race wrt the wake socket. we need to make sure that
14924 only 1 thread is waiting on that socket, or else a thread could
14925 sleep waiting for data that never comes. It's difficult (but not
14926 impossible) to make happen, because it seems to require something
14927 like the following:
14929 1. Thread 1 polls on wake_receive
14931 2. poll returns saying there's data to be read on
14934 3. Thread 2 polls on wake_receive and immediately returns
14935 saying there's data to be read.
14937 4. Thread 2 reads the wakeup byte from wake_receive
14939 5. Thread 1 attempts to read the wakeup byte from
14942 6. Thread 2 exits (due to a form closing, perhaps).
14944 7. Thread 1 blocks forever.
14948 Fixing the Expose handling isn't done yet, and the races inherent
14949 in that piece of code are responsible for the drawing mistakes you
14950 see when generating expose events in a MT app (like NPlot). This
14951 one is the likely to be the hardest to bandaid, and it doesn't
14952 appear to cause anything but drawing problems. The other issues
14953 caused apps to exit or hang.
14955 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
14956 called from a different thread than the one that should be calling
14959 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
14961 2006-11-15 Chris Toshok <toshok@ximian.com>
14963 * Application.cs: null out the context's MainForm when we exit
14964 RunLoop. Fixes a newly checked in unit test as well as the last
14965 ODE from bug #79933.
14967 2006-11-15 Chris Toshok <toshok@ximian.com>
14969 * Form.cs (set_Owner): allow a null value so we can clear the
14971 (Dispose): set all our owned_form's Owner properties to null, and
14972 clear the owned_forms collection.
14973 (WM_CLOSE): clean up this a little bit.. still not right though.
14975 * ApplicationContext.cs: OnMainFormClosed should only call
14976 ExitThreadCore if the main form isn't recreating. Fixes unit
14979 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
14983 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
14985 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
14989 * Hwnd.cs: Add a flag to show a window, but not activate it, to
14990 keep popup window types from stealing focus from the main form
14993 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
14995 * MenuAPI.cs: Set above flag to true.
14997 2006-11-15 Chris Toshok <toshok@ximian.com>
14999 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
15000 the button being released is not in wParam.
15002 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
15004 * Form.cs: Add the released button to MouseEventArgs.Button
15005 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
15008 2006-11-15 Chris Toshok <toshok@ximian.com>
15010 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
15011 GetText(). untested because it's unused in our implementation.
15012 Control.Text always caches the text, even if
15013 ControlStyles.CacheText is not set.
15017 2006-11-15 Chris Toshok <toshok@ximian.com>
15021 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
15022 message. no hiding, no disposing.
15024 in the WM_CLOSE handler, hide the form if it's modal.
15026 2006-11-15 Chris Toshok <toshok@ximian.com>
15028 * XplatUIX11.cs: use AddExpose instead of sending a message.
15029 fixes textbox border drawing.
15031 2006-11-15 Chris Toshok <toshok@ximian.com>
15033 * PropertyGridView.cs: keep from crashing on mouse move/down when
15034 the property grid is empty.
15036 2006-11-14 Jackson Harper <jackson@ximian.com>
15038 * TextControl.cs: Make PageUp and PageDown more like the MS
15040 * TextBoxBase.cs: When we set the text property position the
15041 cursor at the beginning of the document.
15043 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
15045 * Form.cs: if a mdi child's WindowState has changed
15046 before it's creation, it would display wrong control
15049 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
15051 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
15054 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
15056 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
15057 the window gets to paint its borders even if the window is
15060 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
15061 otherwise the old control buttons would still be painted
15062 if the window gets bigger.
15064 * PaintEventArgs.cs: add an internal method so that the clip
15065 rectangle can be changed.
15067 2006-11-13 Chris Toshok <toshok@ximian.com>
15069 [ fixes bug #79745 ]
15071 * NotifyIcon.cs: lots of cleanup.
15073 * X11Structs.cs: add an enum for XEMBED messages.
15075 * XplatUIX11.cs: reindent one of the giant switch statements, it
15076 was taking up an additional tab stop, and this file is already way
15077 too wide for my laptop's screen.
15079 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
15080 we get it, resize the hwnd to the WMNormalHints max_width/height.
15082 2006-11-13 Jackson Harper <jackson@ximian.com>
15084 * TextBoxBase.cs: Compute the value changes for the mouse wheel
15087 2006-11-13 Chris Toshok <toshok@ximian.com>
15089 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
15090 #79898. force a reference to the Region to stick around so the
15091 unmanaged object isn't collected (rendering our handle in the MSG
15094 2006-11-13 Chris Toshok <toshok@ximian.com>
15096 * XplatUIX11.cs: fix #79917 for window managers which support
15098 using XStoreName on the raw utf8, and we need to convert to
15099 COMPOUND_TEXT if it's non-latin1.
15101 2006-11-13 Chris Toshok <toshok@ximian.com>
15103 * Form.cs (set_DialogResult): we need to set closing to false if
15104 we're setting our result to None. fixes bug #79908.
15106 2006-11-13 Jackson Harper <jackson@ximian.com>
15108 * TextControl.cs: When formatting text, compute the adjusted tag
15109 lengths correctly, using FindTag for the end tag instead of trying
15110 to figure it out outselves.
15111 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
15112 the item, ItemHeight doesn't work, because trees with large
15113 imagelists use those for their height
15114 * TreeView.cs: ActualItemHeight factors in the image height
15115 - compute left edge of checkboxes correctly
15116 - when expanding/collapsing move the bottom down one pixel, so we
15117 aren't moving part of the node
15119 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15121 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
15122 stack in PaintEventStart so that it won't get disposed by the gc
15123 before reaching PaintEventEnd.
15125 2006-11-13 Jackson Harper <jackson@ximian.com>
15127 * TextBoxBase.cs: Don't select the word if we are on a line with
15129 - We don't need to position the caret on mouse up, since the mouse
15130 move handler should be doing this
15131 - When double clicking a blank line, the caret is advanced to the
15134 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
15136 * TreeNodeCollection.cs: Avoid duplicating indexer code.
15138 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
15140 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
15141 Fixes part of bug #79910.
15143 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
15145 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
15146 (bug #79903). Some minor string updates to match ms.
15148 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
15150 * FileDialog.cs: Don't add an extension if the filename
15151 already ends with that extension.
15153 2006-11-10 Jackson Harper <jackson@ximian.com>
15155 * TreeView.cs: Use the currently highlighted node for the
15156 BeforeSelect event.
15157 * TextBoxBase.cs: There is no need to expand selection on
15159 - CanUndo means 'is there any undo operations', not 'is undo
15160 allowed on this textcontrol. Fixed ClearUndo unit test.
15162 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
15164 * Button.cs: only perform click when button is Selectable (so as
15165 not to activate default buttons when they're disabled)
15167 * Control.cs: Rewrite of the SelectNextControl and related
15168 methods. HandleClick now selects next control if the current one
15171 * Form.cs: OnActivated selects next active control only if Load
15172 has already occurred. If Load hasn't run, there's no point in
15173 selecting here, Load might change the state of controls.
15175 * FocusTest.cs: Tests marked as working again for these fixes
15177 2006-11-10 Chris Toshok <toshok@ximian.com>
15179 * XplatUIX11.cs: a couple of fixes.
15181 - use XInternAtoms with almost all the atoms we need to register,
15182 instead of many, many calls to XInternAtom. should help a bit on
15183 startup time, at the expense of making the code look a little
15186 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
15187 isn't reparented (which seems to be a clue that we're running fon
15188 compiz) and they have an Owner form. This fixes the tool windows
15189 in paint.net when running under compiz.
15191 - when setting the opacity of a window, support both the case
15192 where the window has been reparented and also when it hasn't been.
15193 Since compiz/beryl doesn't seem to reparent windows, and these are
15194 the only window managers which support translucency, I'm not sure
15195 why we need the hwnd.reparented case at all.. but leave it in.
15196 now we get translucent windows in paint.net under compiz/beryl.
15198 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
15200 * FileDialog.cs: Always return the value for FilterIndex that
15201 was set. Internally convert it to values that make sense.
15203 2006-11-10 Everaldo Canuto <everaldo@simios.org>
15205 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
15207 2006-11-10 Everaldo Canuto <everaldo@simios.org>
15209 * Toolbar.cs: Change default value of DropDownArrows to true, the
15210 signature still using false to make it compatible with MS but the
15211 initial value is true. Fixes #79855.
15213 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
15215 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
15216 only available on Linux.
15218 2006-11-09 Everaldo Canuto <everaldo@simios.org>
15220 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
15221 reduce number of calls to redraw method during toolbar creation.
15223 2006-11-09 Mike Kestner <mkestner@novell.com>
15225 * ListView.cs : raise SelectedIndexChanged when an item is selected
15226 programmatically via the Item.Selected property. Gert's nice
15227 ListViewSelectedIndexChanged test fixture now runs clean.
15229 2006-11-09 Mike Kestner <mkestner@novell.com>
15231 * ListView.cs : raise SelectedIndexChanged when a selected item is
15232 removed from the item collection using Remove or RemoveAt.
15234 2006-11-09 Mike Kestner <mkestner@novell.com>
15236 * ListView.cs : raise SelectedIndexChanged once per selected item
15237 for compat with MS. Fixes #79849+.
15239 2006-11-09 Chris Toshok <toshok@ximian.com>
15241 * TabControl.cs: initialize row_count to 0, and set it to 1 when
15242 we need to (if we have any tab pages). Fixes unit test.
15244 2006-11-09 Chris Toshok <toshok@ximian.com>
15246 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
15247 width is 0, not 3. Fixes a unit test.
15249 2006-11-09 Mike Kestner <mkestner@novell.com>
15251 * ListView.cs : use Implicit scrollbars so that focus isn't
15252 stolen from the listview when they are clicked. Fixes #79850.
15254 2006-11-09 Chris Toshok <toshok@ximian.com>
15256 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
15257 have a root item. Fixes #79879.
15259 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
15263 - An ArgumentException is now thrown if a wrong filter
15264 is applied (matches ms). The previous filter doesn't change
15265 anymore if an exception is thrown.
15266 - Changing the FileName property also affects FileNames
15267 * ColorDialog.cs: The length of the CustomColors array is always
15268 16. It doesn't matter if we use a smaller array or null to update
15269 or change the custom colors property.
15270 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
15271 for RootFolder if we get a undefined value.
15273 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
15275 * StatusBarPanel.cs:
15276 - Width is set to MinWidth if Width is smaller than
15277 MinWidth. Fixes #79842.
15278 - MinWidth now always overrides Width (MSDN says MinWidth
15279 is set to Width when AutoSize = None, but they do not
15281 - Style has now the the correct default value.
15283 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
15286 - The control is completely invalidated on
15287 Got/LostFocus to draw the focus rectangle correctly.
15288 - When AutoSize then height is always 45 (width for
15289 vertical controls).
15291 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
15292 on the mouse when moved and it doesn't move when grabbed
15293 until the mouse moves as well. Also fixed some wrong
15294 calculations when clicking on the thumb (control thought
15295 click was outside of thumb and didn't grab it).
15296 Fixes some of the issues in #79718.
15298 2006-11-08 Everaldo Canuto <everaldo@simios.org>
15300 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
15302 2006-11-08 Chris Toshok <toshok@ximian.com>
15304 * PropertyGridView.cs: only call ToggleValue if the item is not
15307 2006-11-08 Jackson Harper <jackson@ximian.com>
15309 * TextBoxBase.cs: The RichTextBox and textbox have very different
15310 word selection methods. Implement the textbox's simple word
15311 selection here, and let the RichTextBox override and provide it's
15313 - Don't do extra selection on mouseup
15314 * RichTextBox.cs: Use the documents word selection algorithm, I
15315 think ideally, this function will be pulled into the
15316 RichTextBox.cs code someday.
15318 2006-11-08 Chris Toshok <toshok@ximian.com>
15320 * RootGridEntry.cs: new class to represent GridItemType.Root.
15322 * CategoryGridEntry.cs: reformat, and add boilerplate.
15324 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
15325 returns the UI parent anyway, and we need special handling to
15326 implement the GetTarget method in the face of it. Also, implement
15329 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
15330 a root grid item, and use that instead of PropertyGrid.grid_items.
15331 Also, make use of TypeConverters (and add limitted support for
15332 ICustomTypeDescriptors) when initially populating the grid.
15333 Arrays now show up more or less properly.
15335 2006-11-08 Chris Toshok <toshok@ximian.com>
15337 * Application.cs: set the modal dialog to non modal after we close
15338 it. Fixes bug #79866.
15340 2006-11-08 Jackson Harper <jackson@ximian.com>
15342 * TextControl.cs: When combining lines carry over the line end
15343 style from the end line.
15344 - Invalidate the selected area when setting it, if it is visible.
15345 * TextBoxBase.cs: Only rich text box can do full line selects.
15346 - Make sure to set the cursor position when there is a click,
15347 otherwise two clicks in separate areas could cause a large chunk
15350 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15352 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
15355 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15357 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
15358 time. Remove tooltips when ToolButton click events. Fixes #79856.
15360 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15362 * MenuAPI.cs: Ignore right click for menu actions and fixes
15363 menu border when clicked. Fixes #79846.
15365 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15367 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
15368 MouseState after create wParam for message, this fixes mouse button
15369 equal none in mouse up events.
15371 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
15373 * Control.cs : Focus() now calls Select to set the Container's
15374 Active Control and to give it focus. To avoid infinite recursion
15375 (because ActiveControl also calls Focus at one point), a check
15376 is made in Focus with the help of a new internal variable
15379 2006-11-07 Mike Kestner <mkestner@novell.com>
15381 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
15382 if there's a selection. Fixes #79849.
15384 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
15386 * PropertyGrid.cs: Avoid fixed height of help description label.
15387 Fixes part of bug #79829.
15389 2006-11-07 Chris Toshok <toshok@ximian.com>
15391 * XplatUIX11.cs: fix #79790 again, by using the
15392 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
15394 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15396 * ToolBar.cs: Fix left click checking.
15398 2006-11-07 Chris Toshok <toshok@ximian.com>
15400 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
15402 2006-11-07 Chris Toshok <toshok@ximian.com>
15404 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
15405 PropertyManager unit tests.
15407 * PropertyManager.cs: make property_name internal.
15409 2006-11-07 Chris Toshok <toshok@ximian.com>
15411 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
15412 pass a unit test. Also, don't set image_index to anything in
15413 response to setting the ImageList property.
15415 2006-11-07 Everaldo Canuto <everaldo@simios.org>
15417 * ToolBar.cs: Ignore click events when mouse button is not a
15418 left button, only accepts other button for dropdown menus.
15421 2006-11-07 Chris Toshok <toshok@ximian.com>
15423 * DataGrid.cs: make the back and parent row buttons a little less
15426 2006-11-07 Jackson Harper <jackson@ximian.com>
15428 * TextBoxBase.cs: When converting to Text don't put line breaks in
15429 for soft line breaks.
15430 * TextControl.cs: There is an initial "fake" line in the document,
15431 this is now a soft break line, so that an extra line feed doesn't
15432 get added to the end of documents.
15434 2006-11-07 Chris Toshok <toshok@ximian.com>
15438 * CurrencyManager.cs: if the list is readonly, don't bother
15439 checking if IBindingList.AllowNew is true.
15441 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
15442 for non-DataRowView datasources.. or rather, make it not crash.
15443 (DataGridPaintRelationRow): make sure we limit the row painting to
15444 the area not covered by the row header, and make our cell width at
15445 least large enough to cover the relation area. This allows grids
15446 that have relations but no rows to render correctly.
15447 (DataGridPaintRowContents): same type of changes here.
15448 (SetDataSource): move back to always calling
15449 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
15450 navigating back through relations.
15451 (HitTest): handle the case where we have no cells but have
15452 relations. Right now we generate a hit in cell 0 of whatever the
15453 row is, not sure if this is strictly correct, but it works for our
15456 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
15457 bother doing anything.
15459 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
15461 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
15462 early version of StatusStrip. Not responsible for eaten
15463 application or firstborn children.
15465 2006-11-06 Chris Toshok <toshok@ximian.com>
15467 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
15468 call GetTabRect with a -1 index. Fixes #79847.
15470 2006-11-06 Jackson Harper <jackson@ximian.com>
15472 * TreeNodeCollection.cs: Update scrollbars after clearing.
15474 2006-11-06 Chris Toshok <toshok@ximian.com>
15476 * NumericUpDown.cs: fix the ToString method for some unit test
15479 2006-11-06 Chris Toshok <toshok@ximian.com>
15482 - set the initial SelectedGridItem if we can.
15484 - Exclude non-mergable properties only if we're merging > 1
15485 object. Merging 1 object isn't really merging, obviously.
15487 - Handle PropertySort.NoSort just like Alphabetical, which is
15488 wrong of course, but at least gets things on the screen.
15490 * PropertyGridView.cs:
15491 - Add method "FindFirstItem" which finds the first property grid
15492 item, so we can select it by default.
15494 - make use of GridEntry.CanResetValue.
15496 - Don't call RedrawBelowItemOnExpansion here anymore, the
15497 individual GridEntry's will do that.
15499 - Remove the ITypeDescriptorContextImpl internal class.
15502 - this class needs to implement ITypeDescriptorContext, as it's
15503 what MS's PropertyDescriptorGridEntry does, which means we can
15504 remove the ITypeDescriptorContextImpl internal class from
15505 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
15507 - keep a reference to our PropertyGridView, and move the call to
15508 RedrawBelowItemOnExpansion here from PGV. This means
15509 programmaticly setting Expanded actually does something visible.
15511 - add a CanResetValue() function which takes into account our
15512 possibly multiple "selected_objects" in the merged case. Shifting
15513 PropertyGridView to use this method fixes another unreported
15514 crasher found running the test for #79829.
15516 - when Top or Bounds is updated, make sure the PropertyGridTextBox
15517 is updated to reflect this.
15519 * CategoryGridEntry.cs: the ctor takes the PGV now.
15521 2006-11-06 Jackson Harper <jackson@ximian.com>
15523 * TextControl.cs: These are 1 based.
15524 * TextBoxBase.cs: When setting the selected text, don't change the
15525 selected text tags, this is done by ReplaceText, just position the
15526 cursor at the end of the new text.
15528 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
15530 * ListView.cs: Allow label edit only when, when LabelEdit is
15533 2006-11-06 Jackson Harper <jackson@ximian.com>
15535 * TextControl.cs: If a suitable wrapping position isn't found,
15536 just wrap right in the middle of a word.
15538 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
15540 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
15543 2006-11-06 Jackson Harper <jackson@ximian.com>
15545 * TreeView.cs: Can't use the VisibleCount property when setting
15546 scrollbar heights, because this doesn't take into account whether
15547 or not the horz scrollbar just came visible.
15549 2006-11-05 Everaldo Canuto <everaldo@simios.org>
15551 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
15552 activated. Fixes #79369, #79832.
15554 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
15556 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
15557 had to remove support for links that point to a directory. FileInfo
15558 returns no usefull information (means, the directory they point to)
15559 for such links. Replaced some empty string ("") with String.Empty.
15561 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
15563 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
15564 NullReferenceException when attempting to remove node that is not in
15565 collection. Throw NullReferenceException when null is passed to
15566 Remove. Allow first element of the collection to be removed. Fixes
15567 bug #79831. In GetEnumerator ().Current return null if positioned
15568 before the first element of the collection. In GetEnumerator ().Reset,
15569 position before first element of the collection.
15571 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
15573 * PropertyGrid.cs: To match MS, remove default title and description
15574 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
15577 2006-11-04 Chris Toshok <toshok@ximian.com>
15579 * Theme.cs: add a Clamp method, just for kicks.
15581 * ThemeWin32Classic.cs: clamp all color components to [0..255].
15583 2006-11-04 Chris Toshok <toshok@ximian.com>
15585 * Form.cs: if the form isn't visible, Close() does nothing.
15587 2006-11-03 Chris Toshok <toshok@ximian.com>
15589 * Form.cs (Close): if the form is modal, don't Dispose of it, only
15591 (WndProc): don't Dispose after handling the WM_CLOSE message.
15593 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
15594 them as such, instead of using casts from Control to Form. Also,
15595 don't Dispose of the modal dialog when we fall out of the loop -
15596 Close() it instead.
15600 2006-11-03 Chris Toshok <toshok@ximian.com>
15602 * Control.cs (Dispose): only go through the dispose thing if we're
15603 @disposing, and we haven't already been disposed. Fixes bug
15606 * Form.cs: no reason to call "base.Dispose()" here instead of
15609 2006-11-03 Mike Kestner <mkestner@novell.com>
15611 * ComboBox.cs : use ToString instead of casts in AddItem for
15612 sorting functionality. Fixes #79812.
15614 2006-11-03 Chris Toshok <toshok@ximian.com>
15616 * Application.cs: pave the way for actually using the thread
15617 exception dialog. it's ifdefed out at the moment.
15619 2006-11-03 Chris Toshok <toshok@ximian.com>
15621 * ThreadExceptionDialog.cs: until we get a better layout, actually
15622 hide the details textbox and label when we shouldn't see them.
15624 2006-11-03 Jackson Harper <jackson@ximian.com>
15626 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
15627 multiline textboxes anymore. This method also determines the
15628 width/height of a textboxes canvas area.
15629 - Sorta a revert of the last patch. For multiline just position
15630 the controls, then bail. This way the scrollbar width won't be
15633 2006-11-03 Everaldo Canuto <everaldo@simios.org>
15635 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
15636 it dont need. Fixes #79537.
15638 2006-11-02 Jackson Harper <jackson@ximian.com>
15640 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
15641 send the status after firing the DndOver event.
15643 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15645 * TrackBar.cs: Now orientation only switches height / width if
15646 the control's handle is created (Win32 does it like this). Also
15647 fixed a typo in ToString() for a test to pass, changed the
15648 exception thrown in set_LargeChange and set_SmallChange to
15649 match Win32 behaviour, and added TrackBar tests to the unit
15652 2006-11-02 Chris Toshok <toshok@ximian.com>
15654 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
15655 not _NET_WM_STATE_NO_TASKBAR.
15657 2006-11-02 Jackson Harper <jackson@ximian.com>
15659 * TextControl.cs: Increment count by one, since in the update view
15662 2006-11-02 Jackson Harper <jackson@ximian.com>
15664 * TextBoxBase.cs: Use client rectangle not bounds for checking if
15665 the mouse is in the client rectangle (duh).
15667 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
15669 * TrackBar.cs: Fixed trackbar jumping around when clicking
15670 on it - the trackbar was not detecting correctly at which
15671 side of the thumb the click was done. (fixes #79718)
15673 2006-11-02 Everaldo Canuto <everaldo@simios.org>
15675 * ListBox.cs: scroll visible area when change SelectedIndex to
15676 a non visible area. Fixes #79481.
15678 2006-11-01 Jackson Harper <jackson@ximian.com>
15680 * TextControl.cs: When replacing the selection move the selection
15681 start/end/anchor to the end of the new text.
15683 2006-11-01 Jackson Harper <jackson@ximian.com>
15685 * XplatUIWin32.cs: When setting the parent change the controls
15686 visibility to it's visibility flag, not to it's old parents
15687 visibility (.Visible walks the parent chain).
15689 2006-11-01 Chris Toshok <toshok@ximian.com>
15691 * XplatUIX11.cs: revert the #79790 fix, as the simple.
15692 XSetTransientForHint fix breaks paint .net's tool windows. more
15693 work needed for that one.
15695 2006-11-01 Chris Toshok <toshok@ximian.com>
15697 * ScrollBar.cs: throw ArgumentException instead of Exception in
15698 LargeChange/SmallChange setters. fixes unit tests.
15700 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
15702 * ContainerControl.cs: reverted rev.67183 (which was itself
15703 a reversion of rev.66853... eh).
15705 * Control.cs: Fixes Reflector hang by changing Focus() call
15706 to what it was before rev.66643 (calling Select() here sets
15707 ActiveControl, which in some situations calls back Focus and
15708 eventually does a stack overflow). Temp fix.
15709 Changes to GetNextControl() to not look for children to select when
15710 parent cannot be selectable (so it looks for siblings instead)
15712 2006-10-31 Mike Kestner <mkestner@novell.com>
15714 * CheckedListBox.cs : off by one error in returned index from
15715 ObjectCollection.Add. Fixes #79758.
15717 2006-10-31 Chris Toshok <toshok@ximian.com>
15719 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
15720 calls for the textbox/spinner, to keep from recursing to the point
15721 where we crash. Fixes #79760.
15723 2006-10-31 Chris Toshok <toshok@ximian.com>
15725 * ListControl.cs (set_SelectedValue): don't throw exceptions on
15726 null/"" value, just return. matches ms's behavior and fixes some
15729 2006-10-31 Chris Toshok <toshok@ximian.com>
15731 * Control.cs (set_Capture): make a logic a little easier to
15734 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
15735 if it's being destroyed. A necessary fix surely, but a bandaid
15736 also, to fix the stuck capture problem in bug #78413.
15738 2006-10-31 Chris Toshok <toshok@ximian.com>
15740 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
15741 convention of clearing hwnd.ClientRect when we set the
15742 width/height (so it'll be recalculated by Hwnd).
15744 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
15746 * ContainerControl.cs: reversed Contains check from
15747 ActiveControl due to hanging problems. This fix
15748 partly regresses #79667 (button does not have
15749 initial focus), so this might be a symptom for
15750 a larger parenting problem (set_ActiveControl
15751 is being called but the child control does
15752 not have the parent set yet?)
15754 2006-10-31 Mike Kestner <mkestner@novell.com>
15756 * MenuAPI.cs : fix keynav when menu is click activated.
15758 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
15760 * ToolStrip*: Version 0.2.
15762 * MenuStrip.cs: Version 0.1.
15764 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
15766 2006-10-30 Chris Toshok <toshok@ximian.com>
15768 [ fixes the oversized notify icon issue in bug #79745 ]
15770 * NotifyIcon.cs: scale the icon down to the size we're given by
15771 the XplatUI layer (this would be faster if we did it once instead
15772 of whenever we paint..) Also, remove the WM_NCPAINT handling,
15773 since it's never invoked.
15775 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
15776 pixels high by default, so let's hardcode our systray icon to that
15777 size. The SYSTEM_TRAY protocol should really have a way for
15778 client apps to query for the correct icon size.. but oh well. A
15779 couple of patches to deal with the screwy client_window ==
15780 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
15781 instance, and also make sure we don't XSelectInput twice).
15783 2006-10-30 Chris Toshok <toshok@ximian.com>
15785 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
15786 recreating forms. Control recreation is the bane of my existence.
15787 Fix it in a way that keeps everyone happy.
15789 2006-10-30 Chris Toshok <toshok@ximian.com>
15791 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
15792 just non-CHILD ones. otherwise sometimes scrollbars end up with
15793 client_windows not being resized to the proper size (ReportBuilder
15794 shows this extremely well).
15796 2006-10-30 Chris Toshok <toshok@ximian.com>
15798 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
15799 for non-WS_EX_APPWINDOW windows. This is what keeps them from
15800 showing up in the gnome taskbar. Fixes bug #79790.
15802 2006-10-30 Chris Toshok <toshok@ximian.com>
15804 * ApplicationContext.cs: guard against a NRE.
15806 * Application.cs: null out the old MainForm for the context, so we
15807 don't try to use it again once it's disposed. Fixes bug #79783.
15809 2006-10-30 Chris Toshok <toshok@ximian.com>
15811 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
15812 BindingContext, set the data source directly, otherwise do the
15813 lazy approach - the actual ListManager will be created when we get
15814 a BindingContext. Fixes bug #79700.
15816 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
15818 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
15819 XplatUIX11.cs: Remove old 2 parameter SetVisible.
15821 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
15823 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
15825 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
15826 of SetVisible that allows a window to be shown, but not activated.
15827 This is needed on Windows for MenuStrip, and can probably be used
15828 with MainMenu and ComboBox to fix the focus stealing issues on
15831 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
15833 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
15835 * PictureBox.cs: Fix the output of the ToString method.
15837 2006-10-29 Chris Toshok <toshok@ximian.com>
15839 * Control.cs (get_TopLevelControl): fix bug #79781.
15841 2006-10-29 Chris Toshok <toshok@ximian.com>
15843 * ListControl.cs (set_DataSource): throw Exception here, not
15844 ArgumentException, to match MS behavior.
15846 2006-10-29 Chris Toshok <toshok@ximian.com>
15848 * Form.cs: remove the try-catch's around calls to GetWindowState.
15849 We can just check the return value.
15851 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
15854 * XplatUI.cs: Add note about additional return value for
15857 2006-10-29 Chris Toshok <toshok@ximian.com>
15859 * Control.cs (CreateHandle): when we create our handle, we also
15860 create the handles of our child controls. Fixes one of the
15861 Control unit tests (CH11).
15863 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
15865 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
15867 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
15869 * ThemeClearlooks.cs: A little speedup.
15871 2006-10-27 Chris Toshok <toshok@ximian.com>
15873 * Control.cs: implement Control.FromChildHandle in a way that
15874 matches the docs (and fixes the failed test.)
15876 2006-10-27 Chris Toshok <toshok@ximian.com>
15878 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
15881 * DataGrid.cs: implement ResetForeColor such that the tests
15884 2006-10-27 Chris Toshok <toshok@ximian.com>
15886 * ToolBarButton.cs: setting text/tooltiptext to null results in it
15887 being set to "". Fixes bug #79759.
15889 2006-10-27 Jackson Harper <jackson@ximian.com>
15891 * TextControl.cs: We need to clear the entire selection area when
15892 setting the start, otherwise multiline selections are still
15895 2006-10-26 Chris Toshok <toshok@ximian.com>
15897 * PropertyGridView.cs:
15899 - ifdef all the code specific to the double
15900 buffer case, and provide some alternatives in the non-doublebuffer
15901 code, which makes heavy use of XplatUI.ScrollWindow to move things
15902 around without having to invalidate (and cause flicker). There
15903 are still some drawing problems in the non-doublebuffered case, so
15904 DOUBLEBUFFER is defined by default.
15906 - Fix the way dropdowns are handled. now we explicitly watch for
15907 the events which might cause the dropdown to close, and break out
15908 of the nested event loop there. This gets rid of all Capture
15909 code, at the expense of the Msg special casing. Seems to work,
15910 though, and fixes bug #79743.
15912 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15913 * Control.cs: SetIsRecreating now recreates implicitly added
15914 child controls as well. Finally fixes #79629. The flag passed to
15915 SetIsRecreating has also been removed since it wasn't used.
15917 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15919 * PageSetupDialog.cs: Clean some code, fix some bits,
15920 add some checks, and add a printer sub-dialog.
15922 2006-10-26 Chris Toshok <toshok@ximian.com>
15924 * PropertyGrid.cs: make set_SelectedObject call
15925 set_SelectedObjects, and move the duplicate logic to the
15926 SelectedObjects setter. Also, raise SelectedObjectsChanged.
15928 * PropertyGridView.cs: hide the textbox when we get a
15929 SelectedObjectsChanged event.
15933 2006-10-26 Chris Toshok <toshok@ximian.com>
15935 * PropertyGridView.cs: deal with the type converter not supporting
15936 GetStandardValues() or GetStandardValues() returning null, which
15937 is does in the default case. Fixes #79742.
15939 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
15941 * CheckedListBox.cs: nunit no longer crashes when selecting
15942 Project/Edit menu option
15944 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
15946 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
15947 is no menu selected. fixes #79739
15949 2006-10-25 Chris Toshok <toshok@ximian.com>
15951 * PropertyGridView.cs: factor out the splitter invalidation code
15952 into the SplitterPercent setter, and for kicks implement the
15953 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
15954 amount in either direction.
15956 2006-10-25 Chris Toshok <toshok@ximian.com>
15958 * PropertyGridView.cs: do some cleanup of the brush used to draw
15959 text - read only fields should be grayed out. not sure how to do
15960 this with the textbox, though. but the textbox's should also be
15961 readonly now at least. Also, hide/show the textbox when resizing
15964 * CursorConverter.cs: use System.Reflection when getting the
15965 properties of Cursors, as TypeDescriptor.GetProperties isn't
15966 returning static properties.
15968 2006-10-25 Chris Toshok <toshok@ximian.com>
15970 * PropertyGridView.cs: factor out the up/down handling, and reuse
15971 it for page up/down. also add End/Home support.
15973 2006-10-25 Chris Toshok <toshok@ximian.com>
15975 * PropertyGridView.cs:
15977 - ensure the selected grid item is visible in the scrolled area,
15980 - fix Keys.Down handling when you're on the last item in the
15983 2006-10-25 Mike Kestner <mkestner@novell.com>
15985 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
15986 clicks too. Fixes #79725.
15988 2006-10-24 Chris Toshok <toshok@ximian.com>
15990 * PropertyGrid.cs: use property.Converter instead of
15991 TypeDescriptor.GetConverter(property.PropertyType), so we catch
15992 TypeConverters declared on the property as well as on the
15993 PropertyType. Fixes bug #79678.
15995 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
15997 * MimeIcon.cs, Mime.cs:
15998 Fallback to the default platform handler if no shared mime info
15999 stuff exists (fixes #79693).
16001 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16002 * ContainerControl.cs: Incorrect contains check in ActiveControl
16003 from previous fix (duh).
16005 2006-10-20 Chris Toshok <toshok@ximian.com>
16007 * PropertyGridView.cs: the dropdown should be MIN(number of items
16008 in list, 15). Fixes #79551.
16010 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16011 Fixes #79384, #79394, #79652, #79667
16014 - Modal windows are now destroyed in the proper order for windows
16016 * ContainerControl.cs:
16018 - ActiveControl setter has more conditions on when to return:
16019 - if we're reselecting the active control, but it actually
16020 didn't have focus (window hidden or some such), it runs
16021 - if the active control being selected doesn't actually
16022 exist in the container, it returns
16026 - The ShowDialog now gets the current form as the owner when
16027 invoking without parameters, and correctly activates the owner
16032 - MessageBox now catches the Escape key to exit
16034 2006-10-20 Chris Toshok <toshok@ximian.com>
16036 * PropertyGridView.cs: fix a number of issues (bug #78565, and
16037 most of bug #79676):
16039 - you can navigate around the property grid with the arrow keys.
16041 - the dropdown is sized properly when the pg has a vertical
16044 - fix the indentation for subentries, and properly select the
16047 - fix the gray bar's drawing (only draw it to the last element,
16048 not for the height of the control. Also make sure we draw that
16049 last horizontal grid line.
16051 - use the same mechanism the datagrid uses wrt the editing textbox
16052 when scrolling/resizing/etc. Namely, we hide it first, do the
16053 operation, then show it again (if it's still visible).
16055 - aggressively remove a lot of unnecessary refreshes (and also
16056 calls to Invalidate(). call more limited variants, and only redraw
16061 - when we're populating the merged collection, fill in the UI
16062 parent with either the passed in item, or the category item we
16065 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
16067 * GridItem.cs: drop some fully qualified names.
16069 * GridEntry.cs: add a "UIParent", which is basically the parent
16072 * GridItemCollection.cs: add an IndexOf method.
16074 2006-10-20 Mike Kestner <mkestner@novell.com>
16076 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
16077 a working win32 NC invalidation mechanism, we can't invalidate
16078 menus. [Fixes #79705]
16080 2006-10-20 Mike Kestner <mkestner@novell.com>
16082 * ListBox.cs : don't update the VScrollbar if the list is empty,
16083 just hide it. [Fixes #79692]
16085 2006-10-20 Jackson Harper <jackson@ximian.com>
16087 * RichTextBox.cs: Handle some special chars better, and don't skip
16088 the entire group when we encounter a special char that we don't
16091 2006-10-18 Chris Toshok <toshok@ximian.com>
16093 * PropertyGridView.cs: address a number of issues from bug #79676,
16094 mostly of the cosmetic variety.
16096 - The highlight rectangle for indented items not extends all the
16099 - Indented items aren't indented so much.
16101 - the dropdown is properly sized width-wise if the pg has a
16102 vertical scrollbar.
16104 2006-10-18 Chris Toshok <toshok@ximian.com>
16106 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
16107 systray stuff is rather convoluted to begin with.
16109 systray icons are a single window for some reason (that I haven't
16110 figured out yet), and for them, client_window == whole_window.
16111 Given the way the tests are structured elsewhere to determine
16112 which paints are pending (client vs. nc), that situation will
16113 always yield PAINT, not NCPAINT. So, if we have a pending
16114 nc_expose and no pending expose, remove the hwnd from the paint
16115 queue, and also set nc_expose_pending to false, to keep us from
16116 blocking further expose's adding the hwnd to the paint queue.
16118 phew. like i said, a rather convoluted change. Fixes the
16119 notifyicon repaint issues in bug #79645.
16121 2006-10-18 Chris Toshok <toshok@ximian.com>
16123 * Form.cs: when getting the backcolor of the form, don't get
16124 base.BackColor, as this allows parents to influence the background
16125 color. This breaks mdi forms. Instead, if the background_color
16126 is empty, return the default.
16128 2006-10-18 Chris Toshok <toshok@ximian.com>
16130 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
16131 to being private instead of internal static.
16133 * Control.cs: remove all the stupid ParentWaitingOnRecreation
16134 crap, it wasn't working for more deeply nested controls anyway,
16135 and we already have the is_recreating flag - use that instead.
16136 Before calling DestroyHandle in RecreateHandle, recurse through
16137 the control tree setting it to true. this returns the recreate
16138 code to much of its original simplicity, while now guaranteeing we
16139 actually recreate everything we're supposed to. This change gets
16140 fyireporting actually showing mdi children.
16142 2006-10-17 Chris Toshok <toshok@ximian.com>
16144 * Form.cs: remove some debug spew, and collapse some duplicate
16145 code at the end of SetClientSizeCore.
16148 - add some more debug spew here too wrt Destroy handling.
16149 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
16150 in Control's handling of WM_DESTROY.
16151 - Remove the handling of zombie window DestroyNotifies from the
16152 event loop - we don't need it. Now the only DestroyNotifies we
16153 actually handle are ones generated by X.
16154 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
16155 match gtk's (functioning) handling of this. This keep metacity
16156 from leaving droppings in the form of wm borders with no window
16157 contents all over the place.
16160 - add a bunch of debug spew wrt control recreation.
16161 - fix a bug where we weren't tracking Visible properly on
16163 - fixed the WM_PAINT double buffer handling to support re-entrant
16164 calls (yes, i know it's gross, but it's happening to us).
16166 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
16167 * ThemeWin32Classic.cs: changed drawing of selected days
16168 to make them look better.
16170 2006-10-16 Chris Toshok <toshok@ximian.com>
16172 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
16173 drawing_stack. Nuke the ClientDC/NonClientDC properties.
16175 * XplatUIX11.cs: move away from using hwnd.client_dc and
16176 hwnd.non_client_dc and on to a stack of dc's (and in window's
16177 case, PAINTSTRUCT's), so we can deal with nested Paint calls
16178 without puking or not disposing of Graphics objects.
16180 * XplatUIOSX.cs: same.
16182 * XplatUIWin32.cs: same.
16184 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
16186 * FileDialog.cs: Don't call on_directory_changed inside
16187 OnSelectedIndexChanged (it changes the SelectedIndex too).
16188 Instead move it to OnSelectionChangeCommitted.
16190 2006-10-13 Chris Toshok <toshok@ximian.com>
16192 * XplatUIX11.cs: more Destroy work. the current code does the
16193 following things, in order:
16195 1. Enumerates all handles of all controls at or below the one
16196 being destroyed, in pre-order. As it is doing this, it marks the
16197 handles as zombie and clears all references to them.
16199 2. calls XDestroyWindow on the window passed in.
16201 3. SendMessage's WM_DESTROY to all he handles in the accumulated
16204 2006-10-13 Chris Toshok <toshok@ximian.com>
16206 * XplatUIX11.cs: set hwnd.zombie to true before calling
16207 SendMessage (WM_DESTROY). this keeps us from marking the new
16208 window a zombie, and also keeps us from calling sendmessage at
16211 2006-10-13 Jackson Harper <jackson@ximian.com>
16213 * TextControl.cs: Do not show the caret and selection at the same
16214 time. Reduces ugliness by 35%.
16216 2006-10-13 Chris Toshok <toshok@ximian.com>
16218 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
16219 zombie after we do the recursive call, so we actually do call
16220 SendMessage on the children controls.
16221 (GetMessage): if we find a pending paint event for a zombie hwnd,
16222 remove the hwnd from the paint queue, or else it will always be
16223 there (and we'll effectively loop infinitely)
16225 2006-10-13 Mike Kestner <mkestner@novell.com>
16227 * MenuItem.cs : add Selected format under keynav too.
16230 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
16232 * PropertyGrid.cs: Fixed some NRE's and small difference between our
16233 implementation and that of MS.
16235 2006-10-13 Chris Toshok <toshok@ximian.com>
16237 * Control.cs (OnInvalidated) only futz with the invalid_region if
16238 the control is double buffered. this fixes the apparent hang in
16239 the ListView unit tests. Someone needs to make the
16240 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
16242 2006-10-13 Chris Toshok <toshok@ximian.com>
16244 * PropertyGridView.cs:
16246 - do a little refactoring so that only one place calls
16247 dropdown_form.Hide, and that is CloseDropDown. make everywhere
16248 else call that. Also make it Refresh, since there are redraw bugs
16249 otherwise (we should take a look at that...)
16251 - do a little more refactoring work to share the body of code
16252 involved with the drop down. it was duplicated in the code
16253 dealing with the listbox handling and in the code dealing with the
16256 - add a Capture to the dropdown form's control once it's
16257 displayed, and add a MouseDown handler that checks to make sure
16258 the position is inside the control. If it's not, close the
16259 dropdown. This fixes #78190.
16261 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
16262 if the value is different than the initial value.
16264 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
16266 * Control.cs: see #78650
16267 - Fixed GetNextControl for several cases:
16268 - Changed FindFlatForward to return
16269 correct sibling control when more than one
16270 control has same TabIndex as the currently
16272 - Changed FindFlatBackward to loop children
16273 from last to first and apply same logic as in
16275 - Changed FindControlForward to search for
16276 children when control is not a container
16277 but has children, or search for siblings if
16278 control is a container...
16279 - Changed FindControlBackward to continue
16280 searching for child controls when hitting
16283 - Fixed Focus method to update ActiveControl
16284 (FocusTest.FocusSetsActive failure)
16287 - Focus rectangle now refreshes when gaining
16289 - Removed grab for Tab key on IsInputKey that
16290 was keeping tab navigation from working (#78650)
16292 2006-10-13 Chris Toshok <toshok@ximian.com>
16294 * PropertyGridView.cs:
16295 - Rewrite SetPropertyValue to loop over SelectedGridItem's
16298 - Deal with GridItem.Value == null a few places.
16301 - replace the PopulateGridItemCollection with a pair of methods
16302 which compute the intersection of all the properties in the
16303 SelectedObjects array. Fixes #79615.
16305 - Throw ArgumentException from set_SelectedObjects if there's a
16308 - Add GetTarget method which can be used to traverse up the
16309 GridItem.Parent chain. It depends on the assumption that
16310 selected_objects for different GridEntries are always in the same
16311 order (a safe assumption). Use this method and loop over all the
16312 selected objects in the entry when calling RemoveValueChanged and
16315 * GridEntry.cs: Make this handle multiple selected objects.
16316 .Value returns null if not all the selected objects share the same
16319 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
16320 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
16321 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
16322 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
16323 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
16324 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
16325 add additional functionality.
16327 2006-10-12 Mike Kestner <mkestner@novell.com>
16329 * ErrorProvider.cs : new ToolTipWindow ctor sig.
16330 * HelpProvider.cs : new ToolTipWindow ctor sig.
16331 * ToolTip.cs : remove ToolTip param from Window sig since it is
16333 * ToolBar.cs : add tooltip support. Fixes #79565.
16335 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
16337 * ComboBox.cs: move the events in set_SelectedIndex to
16338 after the call to HighlightIndex in order to avoid
16339 possible recursion and subsequent problems with the call
16340 to HighlightIndex and include a range check in
16341 set_HighlightIndex. Fixes #79588
16343 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
16345 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
16346 to ui thread's settings instead of sunday.
16347 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
16349 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
16351 * DateTimePicker.cs
16353 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
16354 and implement missing functionality (selecting different parts
16355 of the date and edit them individually with the keyboard).
16357 2006-10-11 Chris Toshok <toshok@ximian.com>
16359 * Control.cs (OnInvalidated): fix NRE relating to last change.
16361 2006-10-11 Chris Toshok <toshok@ximian.com>
16363 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
16364 atoms in _NET_WM_STATE here if the window is maximized. We need
16365 to do this because we're *replacing* the existing _NET_WM_STATE
16366 property, so those atoms will be lost otherwise, and any further
16367 call to GetWindowState will return Normal for a window which is
16368 actually maximized. Fixes #79338.
16370 2006-10-11 Jackson Harper <jackson@ximian.com>
16372 * TextControl.cs: Special case for setting selection end to
16373 selection start, we basically kill the anchor.
16374 - some todo comments.
16376 2006-10-11 Chris Toshok <toshok@ximian.com>
16378 * Control.cs: switch to using an "invalid_region" to track which
16379 parts of the image buffer need updating. This is more code than
16380 the simple fix from r66532. That version just attempted to always
16381 fill the entire buffer on redraw, which turns out to be
16382 inefficient when invalidating small rectangles. This version
16383 simply adds the invalid rectangle to the invalid region. When we
16384 get any WM_PAINT message we see if it can be filled using the
16385 image buffer, and if it can't (if the paint event's clip rectangle
16386 is visible in the invalid region) we first fill the image buffer.
16387 So, the image buffer is still a cache, we just fill it lazily.
16389 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
16390 need it any longer.
16392 2006-10-11 Chris Toshok <toshok@ximian.com>
16394 * XplatUIX11.cs (SetWindowPos): we need to update both position as
16395 well as size after calling XMoveResizeWindow. This keeps us from
16396 ignoring future SetWindowPos calls. Fixes the disappearing
16397 DateTimePicker in the ToolBarDockExample from bug #72499.
16399 2006-10-11 Chris Toshok <toshok@ximian.com>
16401 * TextBoxBase.cs: reorder things a bit when it comes to
16402 resizing-causing-recalculation. we were recalculating the
16403 document when our position was changed, which shouldn't happen.
16404 We only care about size changes. Clear up some more redundant
16405 recalculation calls while I'm at it. This makes the toolbar dock
16406 example snappy when you're just dragging toolbars around (since it
16407 causes a relayout whenever you move one.)
16409 2006-10-11 Chris Toshok <toshok@ximian.com>
16411 * ToolBarButton.cs (get_Rectangle): this only returns
16412 Rectangle.Empty if Visible == false, or Parent == null.
16413 Parent.Visible doesn't matter.
16415 2006-10-10 Chris Toshok <toshok@ximian.com>
16417 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
16418 by .net 1.1, so switch to an internal method instead.
16420 2006-10-10 Chris Toshok <toshok@ximian.com>
16422 * Control.cs (WM_PAINT): when a control is double buffered we draw
16423 initially to the ImageBuffer and then copy from there. But when a
16424 parent control which has child controls is double buffered, the
16425 initial drawing doesn't encompass the entire ClientRectangle of
16426 the parent control, so we end up with uninitialized bits (this is
16427 easily seen by dragging the top toolbar in
16428 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
16429 manually set the ClipRectangle of the paint_event (only the one we
16430 use to populate the ImageBuffer) to ClientRectangle. Fixes more
16431 of the nastiness in bug #72499.
16433 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
16434 which we use in Control.cs's WM_PAINT handling.
16436 2006-10-10 Jackson Harper <jackson@ximian.com>
16438 * TextBoxBase.cs: Finish off the autoscrolling stuff.
16440 2006-10-10 Chris Toshok <toshok@ximian.com>
16442 * Cursor.cs: Apply a slightly different patch to the one suggested
16445 2006-10-10 Jackson Harper <jackson@ximian.com>
16447 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
16448 not the parent form.
16449 * TextControl.cs: use difference in old line count vs new count to
16450 calculate how many lines were added, this takes into account soft
16451 line breaks properly.
16453 2006-10-10 Chris Toshok <toshok@ximian.com>
16455 * LinkLabel.cs: don't call MeasureCharacterRanges against a
16456 rectangle located at 0,0 and the size of the text. Use
16457 ClientRectangle instead. This fixes rendering of non-left aligned
16460 2006-10-10 Jackson Harper <jackson@ximian.com>
16462 * TextBoxBase.cs: When we set the selection start position the
16464 * TextControl.cs: Need to update the caret when we decrement it to
16466 - Make sure that the selection_visible flag gets reset to false if
16467 the selection isn't visible. Before this you could get it set to
16468 visible by changing the selection start, then changing the end to
16471 2006-10-09 Jackson Harper <jackson@ximian.com>
16473 * TreeView.cs: Don't update scrollbars when we aren't visible.
16474 * TreeNodeCollection.cs: Only need to update scrollbars if being
16475 added to an expanded visible node or the root node.
16477 2006-10-09 Chris Toshok <toshok@ximian.com>
16479 * XplatUIX11.cs (SendMessage): fix NRE.
16481 2006-10-09 Jackson Harper <jackson@ximian.com>
16483 * TextBoxBase.cs: Implement horizontal autoscrolling.
16484 * TextControl.cs: Add a movement types that allows moving forward
16485 and backwards without wrapping.
16487 2006-10-09 Mike Kestner <mkestner@novell.com>
16489 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
16490 with focus "expansion" of labels. Fixes #79532 and then some.
16491 * ThemeWin32Classic.cs : add LineLimit to ListView label format
16494 2006-10-09 Jackson Harper <jackson@ximian.com>
16496 * TextBoxBase.cs: Set the default max values to MaxValue since
16497 we use the scrollbar for autoscrolling and the default value is
16498 100. If we don't do this the caret won't keep up with typing
16499 after about 18 characters.
16500 * TextControl.cs: Make sure the selection is offset by the
16501 viewport x. This fixes selection when using auto scrolling.
16503 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
16505 * Form.cs: The active control should be selected after the
16506 OnLoad so that any child control initialization that affects
16507 the selection is done. Fixes #79406
16509 2006-10-06 Chris Toshok <toshok@ximian.com>
16511 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
16512 to have no evil effects.
16514 - Stop selecting StructureNotifyMask on non-toplevel windows.
16516 The only way children should be resized is by using the SWF api,
16517 and we already send WM_WINDOWPOSCHANGED messages in those cases.
16518 Toplevel windows can be interacted with via the window manager,
16519 and so we keep the input mask there.
16521 The other event StructureNotifyMask gives us (that we care
16522 about) is DestroyNotify. The code is already structured such
16523 that it assumes we won't be getting a DestroyNotify event for
16524 the window we pass to XDestroyWindow (which is what
16525 StructureNotifyMask is supposed to guarantee.) So, that code
16526 shouldn't be affected by this either.
16528 - Stop selecting VisibilityChangeMask altogether.
16530 We weren't doing anything with the resulting events anyway.
16532 This vastly reduces the number of X requests and events we see
16533 when resizing/laying out a large ui.
16535 2006-10-06 Chris Toshok <toshok@ximian.com>
16537 * ScrollableControl.cs (DisplayRectangle): we need to take into
16538 account the DockPadding regardless of whether or not auto_scroll
16539 == true. rework this slightly to this effect, and fix bug #79606,
16540 and part of #72499 (you can now see the drag handles and drag
16543 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
16545 * ListViewItem.cs: Collections of selected and checked items are now
16546 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
16547 we mark the collection "dirty".
16548 * ListView.cs: Marked collections readonly. Modified UpdateSelection
16549 to only clear SelectedItems when a new item is selected and MultiSelect
16550 is enabled. CheckedItems and SelectedItems now subscribe to Changed
16551 event of ListViewItemCollection, and mark its list dirty whenever
16552 that event is fire. This allows us to return selected/checked items
16553 in the same order as they are in the Items collection. This matches
16556 2006-10-06 Chris Toshok <toshok@ximian.com>
16558 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
16559 right mouse clicks. Fixes bug #79593.
16561 2006-10-06 Chris Toshok <toshok@ximian.com>
16563 * Splitter.cs: doh, fix splitters that don't want to cancel the
16564 movement when you drag them. Also, impose the limits on the
16565 values we send to the SplitterMovingEvent. Fixes #79598.
16567 2006-10-06 Jackson Harper <jackson@ximian.com>
16569 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
16570 since we use this for auto scrolling also.
16572 2006-10-05 Chris Toshok <toshok@ximian.com>
16574 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
16575 beginning to think that most datagrid column types don't need this
16576 method. Fixes bug #79392.
16578 2006-10-05 Chris Toshok <toshok@ximian.com>
16580 * DataGrid.cs: move back to a more lazy scheme for creating the
16581 CurrencyManager, so we aren't updating it every time you set
16582 either DataSource or DataMember. Also, don't call
16583 RecreateDataGridRows if the currency manager hasn't changed.
16585 2006-10-05 Chris Toshok <toshok@ximian.com>
16587 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
16588 emitted, SelectedIndex should already be updated. Fixes bug
16591 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
16593 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
16594 ToolStripTextBox.cs: Initial commit.
16595 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
16597 2006-10-05 Jackson Harper <jackson@ximian.com>
16599 * TabControl.cs: We need to invalidate the tab control area when
16600 new ones are added (duh).
16602 2006-10-03 Chris Toshok <toshok@ximian.com>
16604 * Form.cs (ProcessDialogKey): if the focused control is in this
16605 form and is a button, call its PerformClick method here. Fixes
16608 2006-10-04 Jackson Harper <jackson@ximian.com>
16610 * TabPage.cs: Ignore setting of Visible, and add an internal
16611 method for setting the controls visibility. TabPage's Visible
16612 property is a little strange on MS, this seems to make us
16613 compatible, and fixes cases where people set all the tab pages to
16615 * TabControl.cs: Use the new internal setting on tab pages
16618 2006-10-03 Mike Kestner <mkestner@novell.com>
16620 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
16622 2006-10-03 Mike Kestner <mkestner@novell.com>
16624 * ListView.cs : use is_visible instead of Visible to check if
16625 scrollbars should be placed/sized. Also some max_wrap_width
16626 love for LargeIcon view. [Fixes #79533]
16628 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
16631 Make set_TextAlign() do actually update the align. Fixed #78403.
16633 2006-10-03 Chris Toshok <toshok@ximian.com>
16635 * DataGrid.cs: fix a crash when switching datasources if the
16636 vertical scrollbar is at someplace other than Value = 0. Also,
16637 reduce the number of recalculation passes we do in SetDataSource
16640 2006-10-03 Jackson Harper <jackson@ximian.com>
16642 * TextBoxBase.cs: Move the if value the same bail check up, we
16643 don't want to empty the document if it is already empty, this
16644 seems to severly mess up the caret. TODO: I should probably fix
16645 the empty statement to update teh caret somehow.
16647 2006-10-03 Chris Toshok <toshok@ximian.com>
16649 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
16650 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
16651 reflection, an internal row type, properties on said type, etc.)
16652 will work with our datagrid. Fixes #79531.
16654 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
16656 * FileDialog.cs: Don't crash if a path is not accessible
16657 (System.UnauthorizedAccessException). Fixes #79569.
16658 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
16659 a ':' too. Return unknown icon for those paths/files.
16661 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
16663 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
16664 GetContainerControl returns null.
16666 2006-10-02 Chris Toshok <toshok@ximian.com>
16668 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
16669 call to XGetWindowAttributes instead of "handle". fixes an X
16670 error using notifyicon after the NotifyIconWindow to Form base
16673 2006-10-02 Chris Toshok <toshok@ximian.com>
16675 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
16676 server grab and looping we need to do to get down to the most
16677 deeply nested child window.
16678 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
16679 QueryPointer again after the WarpPointer so we can generate a
16680 proper (fake) MotionNotify event to be enqueued in the destination
16682 (GetCursorPos): call QueryPointer.
16686 2006-10-02 Jackson Harper <jackson@ximian.com>
16688 * NotifyIcon.cs: Derive the notify icon from a form, so things
16689 like FindForm work on it.
16690 - Swallow the WM_CONTEXTMENU message, since that is generated on
16691 mouse down, and context menu is a mouse up kinda guy. I believe
16692 the correct fix here is probably to make the notify icon entirely
16693 NC area, but this seems to work fine for anyone not manipulating
16696 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
16698 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
16699 ToolStripItemCollection.cs, ToolStripLabel.cs,
16700 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
16701 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
16702 Initial implementation.
16703 * TextRenderer.cs: Provide padding to MeasureText.
16705 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
16707 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
16708 of ButtonBaseAccessibleObject. Fix bug #79552.
16710 2006-10-02 Jackson Harper <jackson@ximian.com>
16712 * MdiWindowManager.cs: When maximizing use the containers client
16713 rect, not it's bounds, so nc area is accounted correctly.
16714 - Use the parent form's size for the menu position, since the
16715 client isn't always the full form size.
16717 2006-10-01 Chris Toshok <toshok@ximian.com>
16719 * ScrollableControl.cs: make sure neither right_edge or
16720 bottom_edge are < 0, since they're used as LargeChange for the
16721 horiz/vert scrollbars respectively. Fixes #79539.
16723 2006-10-01 Chris Toshok <toshok@ximian.com>
16725 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
16726 the xplatuix11 code can cause us to destroy/recreate our handle.
16730 - this code can be invoked many times for the same Hwnd. Make
16731 sure we only destroy the client window once (the first time this
16732 method is called). This fixes bug #79544.
16733 - Remove the call to the improperly bound XSync. why we had two
16734 bindings to this, I will never know, but this call resulted in
16735 events being discarded from the queue(!).
16736 - correct a misunderstanding of _XEMBED_INFO - the second atom is
16737 not our current state but the state we wish to be in. So, 0 if
16738 we don't want to be mapped. Change it to 1.
16739 (SystrayRemove): The XEMBED spec makes mention of the fact that
16740 gtk doesn't support the reparent of client windows away from the
16741 embedder. Looking at gtksocket-x11.c seems to agree with this.
16742 The only avenue we have for removing systray icons is to destroy
16743 them. We don't want the handle to go away for good, though, so
16744 call InternalRecreateHandle on the NotifyIconWindow. Fixes
16747 2006-10-01 Chris Toshok <toshok@ximian.com>
16749 * Form.cs (WndProc): inline the native_enabled variable usage into
16750 the cases in which it's used. Fixes #79536.
16752 2006-09-29 Mike Kestner <mkestner@novell.com>
16754 * ListView.cs : toggle the selection state for ctrl clicks in
16755 multiselect mode. [Fixes #79417]
16757 2006-09-29 Mike Kestner <mkestner@novell.com>
16759 * ListView.cs : kill CanMultiSelect and refactor the selection
16760 code to support multiselection in the absence of mod keys. Steal
16761 arrow/home/end keys by overriding InternalPreProcessMessage to
16762 restore regressed keynav behavior.
16765 2006-09-29 Jackson Harper <jackson@ximian.com>
16767 * MdiClient.cs: Repaint the titlebars when the active window is
16770 2006-09-29 Chris Toshok <toshok@ximian.com>
16772 * Application.cs: when entering a runloop with a modal, make sure
16773 the hwnd is enabled. Fixes #79480.
16775 2006-09-29 Chris Toshok <toshok@ximian.com>
16777 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
16778 when ListManager.CanAddRows == false, bump us back one.
16780 * DataGridColumnStyle.cs (ParentReadOnly): remove the
16781 listmanager.CanAddRows check. This makes ArrayLists uneditable
16782 using a datagrid, which is not right.
16783 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
16784 is an IEditable, but call property_descriptor.SetValue regardless.
16787 2006-09-29 Chris Toshok <toshok@ximian.com>
16789 * DataGridBoolColumn.cs: we need to test equality in the face of
16790 possible null values (as is the case with the default NullValue).
16791 This patch keeps us from crashing in that case.
16793 2006-09-29 Jackson Harper <jackson@ximian.com>
16795 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
16796 here, since it will get called for every node collection in the
16797 tree. This is now done in the treeview once the sorting is
16799 * TreeView.cs: Recalculate the visible order, and update the
16800 scrollbars after sorting, set the top nope to the root so that the
16801 recalc actually works.
16803 2006-09-29 Chris Toshok <toshok@ximian.com>
16805 * LinkLabel.cs: more handling of the default link collection in
16806 the face of LinkArea manipulation. The default link collection
16807 contains 1 element (start=0,length=-1). If the user sets LinkArea
16808 to anything and the links collection is the default, clear it.
16809 Then only add the link if its nonempty. Fixes #79518.
16811 2006-09-29 Chris Toshok <toshok@ximian.com>
16813 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
16814 piece correctly when we hit a '\n'. Fixes #79517.
16816 2006-09-29 Chris Toshok <toshok@ximian.com>
16818 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
16819 change the binding of gdk_init_check to take two IntPtr's, and
16820 pass IntPtr.Zero for both of them. Fixes #79520.
16822 2006-09-29 Mike Kestner <mkestner@novell.com>
16824 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
16827 2006-09-28 Jackson Harper <jackson@ximian.com>
16829 * XplatUIX11.cs: When translating NC messages make sure we go from
16830 whole window to screen, not client window to screen.
16831 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
16832 method doesn't exist
16833 - Skip over controls that aren't forms when arranging.
16835 2006-09-28 Jackson Harper <jackson@ximian.com>
16837 * XplatUIWin32.cs: Clip the rect to the parent window.
16838 * XplatUIStructs.cs: Add clipping modes struct.
16839 * InternalWindowManager.cs: New private method that factors title
16840 bar heights in when calculating the pos of an NC mouse message.
16841 - Use SendMessage to force a paint when the form's size is changed
16842 instead of painting the decorations immediately.
16843 - Don't let the NC button click messages get to DefWndProc,
16844 because they will attempt to handle windowing themself, and this
16845 messes up z-order (it will put them in front of the scrollbars).
16846 * XplatUIX11.cs: Make sure that we don't reset window managers if
16847 we already have one (ie the window is an MDI window).
16849 2006-09-28 Chris Toshok <toshok@ximian.com>
16851 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
16852 menu code really needs going over.
16854 2006-09-27 Chris Toshok <toshok@ximian.com>
16856 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
16857 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
16858 window is maximizable. So, we need to make sure that even if we
16859 clear the border/wm frame of those functions, they're still
16860 available (basically, we remove the decoration without removing
16861 the function). Half the fix for #79338.
16863 2006-09-27 Chris Toshok <toshok@ximian.com>
16865 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
16868 2006-09-27 Chris Toshok <toshok@ximian.com>
16870 * Splitter.cs: reorder things a bit so that we don't actually
16871 draw/move the splitter until after calling OnSplitterMoving. This
16872 lets users cancel/disallow the movement by explicitly setting
16873 event.SplitX/SplitY. Fixes #79372.
16875 2006-09-27 Jackson Harper <jackson@ximian.com>
16877 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
16878 because it is most likely on a window being destroyed, and that
16879 will give us an X11 error.
16881 2006-09-27 Chris Toshok <toshok@ximian.com>
16883 * PropertyGridView.cs: half of the fix for #78190. Clicking on
16884 the dropdown button now toggles between showing and hiding the
16885 dropdown. Also, get rid of dropdown_form_showing and just use
16886 dropdown_form.Visible. We still don't do a grab, but I'll leave
16887 that part to someone who has handled Capture-fu before.
16889 2006-09-27 Chris Toshok <toshok@ximian.com>
16891 * DataGrid.cs: return false if alt isn't pressed when '0' is
16892 pressed. this keeps the '0' key from being swallowed, and fixes
16895 2006-09-27 Chris Toshok <toshok@ximian.com>
16897 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
16898 Calling Refresh (in response to a scrollbar event) screws up the
16899 scrollbar painting. Fixes bug #78923.
16901 2006-09-27 Chris Toshok <toshok@ximian.com>
16903 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
16904 then insert into hashtable" blocks threadsafe.
16906 2006-09-27 Chris Toshok <toshok@ximian.com>
16908 * MessageBox.cs (CreateParams): the styles should be |'ed with our
16909 baseclass's, since otherwise the
16910 ControlBox/MinimizeBox/MaximizeBox assignments above have no
16911 effect. This gets the close button back in messageboxes.
16913 2006-09-27 Chris Toshok <toshok@ximian.com>
16915 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
16916 flag, not just != 0. this makes flags that are actually multiple
16917 bits (like WS_CAPTION) work. fixes bug #79508.
16919 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
16921 * PageSetupDialog.cs: add support for getting and settings the
16922 paper size, source and orientation.
16924 2006-09-26 Chris Toshok <toshok@ximian.com>
16926 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
16927 and caption == "", we need to remove the resize handles as well as
16930 * Control.cs (set_Text): turns out that setting Text on a form
16931 should change the WM styles on the window, since if ControlBox ==
16932 false, the only way to get a window border is to have a non-""
16933 Text property. check winforms/forms/text.cs for an example. so,
16934 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
16935 update both window styles and title. This fixes a lot of dialogs
16936 (including the preferences dialog in MonoCalendar.)
16938 2006-09-26 Chris Toshok <toshok@ximian.com>
16940 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
16941 control isn't a Form), call Win32ShowWindow to hide the window,
16942 but don't update the control Visible property. When we reparent
16943 back to a parent control, call SetVisible in order for the
16944 window's visibility to be reinstated.
16946 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
16949 * Control.cs (ControlCollection.Remove): remove that value.Hide()
16950 call for good, since it breaks MonoCalendar (and other things I'm
16951 sure.) Also, set all_controls to null *after* the owner calls,
16952 which end up regenerating it.
16953 (ChangeParent): allow new_parent to be == null, passing
16954 IntPtr.Zero down to XplatUI.
16956 this fixes #79294 the right way.
16958 2006-09-26 Mike Kestner <mkestner@novell.com>
16960 * GridEntry.cs : internal SetParent method.
16961 * PropertyGrid.cs : attach to property changed on the proper
16962 target if we have a hierarchical grid with subobjects. Setup
16963 GridItem.Parent for hierarchical items.
16964 * PropertyGridView.cs : Set value on the correct target for
16965 hierarchical grids. [Fixes #78903]
16967 2006-09-26 Chris Toshok <toshok@ximian.com>
16969 * Control.cs (ChildNeedsRecreating): this should return true if
16970 either we're being recreated and the child is in our list, or our
16971 parent is waiting for our recreation.
16973 2006-09-26 Chris Toshok <toshok@ximian.com>
16975 * Control.cs (ControlCollection.Remove): reinstate the
16976 value.Hide() call as suggested in bug #79294.
16978 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
16980 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
16981 coordinates (versus a relative move).
16983 2006-09-26 Chris Toshok <toshok@ximian.com>
16985 * Control.cs: rework child recreation a little bit. It turns out
16986 that we race between the DestroyNotify the WM_DESTROY message. If
16987 the parent gets its DestroyNotify before the child gets the
16988 WM_DESTROY message, the child ends up not recreating (since the
16989 parent finishes its recreation on DestroyNotify, and the child
16990 checks ParentIsRecreating.)
16992 So, instead we store off a list of all the child controls which
16993 need to be recreated when the parent control starts to recreate
16994 itself. Then, when child controls get their WM_DESTROY message we
16995 check to see if they're in the parent's pending recreation list,
16996 and if so, we recreate. This removes all dependency on ordering
16997 from the code and fixes the initial MonoCalendar upgrade dialog.
16999 2006-09-26 Jackson Harper <jackson@ximian.com>
17001 * TextControl.cs: Use the Line to get the length of the line,
17002 since soft line breaks can change the end line.
17004 2006-09-26 Chris Toshok <toshok@ximian.com>
17006 * Control.cs (ControlCollection.AddImplicit): don't add the
17007 control again if it's already in one of our lists. This keeps us
17008 from adding controls over and over again for comboboxes when their
17009 handle gets recreated (as the combobox adds implicit controls in
17010 OnHandleCreated). Fixes the X11 errors in bug #79480.
17012 2006-09-26 Jackson Harper <jackson@ximian.com>
17014 * TextControl.cs: When deleting characters make sure that any
17015 orphaned zero lengthed tags get deleted.
17016 - Fix ToString for zero lengthed tags.
17018 2006-09-25 Jackson Harper <jackson@ximian.com>
17020 * TextControl.cs: When getting a tag at the location there can be
17021 multiple tags at the same spot, these are 0-lengthed tags that
17022 appear when extra formatting has been stuck in a location. We
17023 need to pull out the last of these 0 lengthed tags.
17025 2006-09-25 Jackson Harper <jackson@ximian.com>
17027 * TextControl.cs: Fix print out in debug method.
17028 * TextBoxBase.cs: When text is set bail if we are setting to the
17031 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
17033 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
17034 It is now possible to change the selected index in a FontXXXListBox
17035 with the up and down arrow keys from the FontXXXTextBoxes.
17036 Also, send the FontXXXTextBox mouse wheel event to the corresponding
17037 FontXXXListBoxes to match ms.
17039 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
17041 * SystemInformation.cs: Return a clone of the theme's MenuFont because
17042 anyone can dispose it, anytime. All other properties returns enums,
17043 structs or basic types so they don't need such tricks.
17045 2006-09-22 Jackson Harper <jackson@ximian.com>
17052 * XplatUIDriver.cs: Update interface to add a primary selection
17053 flag, so the driver can use the primary selection buffer if
17055 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
17057 * RichTextBox.cs: We need to supply the data object to paste now
17058 (so we can choose to supply CLIPBOARD or PRIMARY).
17059 * TextBoxBase.cs: Supply data object to paste (see above).
17060 - Middle click uses the primary selection data object.
17062 2006-09-21 Chris Toshok <toshok@ximian.com>
17064 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
17065 of SetWMStyles. It's still a rat's nest and is largely
17066 order-dependent which I dislike immensely. This also fixes the X
17067 button disappearing from toplevel forms.
17069 2006-09-21 Mike Kestner <mkestner@novell.com>
17071 * ListBox.cs: move Jordi's click/dblclick raising code to the
17074 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
17076 * ListBox.cs: Fixes 79450
17078 2006-09-21 Mike Kestner <mkestner@novell.com>
17080 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
17081 to deal with people updating the TreeNodeCollection after the tree
17082 is disposed. "Fixes" 79330.
17084 2006-09-20 Jackson Harper <jackson@ximian.com>
17086 * TextControl.cs: Push the cursor record onto the undo stack
17087 before the delete action. This fixes 78651.
17089 2006-09-20 Jonathan Chambers <joncham@gmail.com>
17091 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
17092 CreateParams. Fixes 79329.
17094 2006-09-19 Chris Toshok <toshok@ximian.com>
17096 * XplatUIX11.cs: a couple of blanket code massage passes to clean
17097 things up a bit. First, get rid of the NetAtoms array (and the NA
17098 enum), and just embed the atoms as static fields. Also, add a
17099 couple of functions (StyleSet and ExStyleSet) to clean up all the
17100 bitmask testing of styles.
17102 * X11Structs.cs: remove the NA enum, not needed anymore.
17104 2006-09-19 Chris Toshok <toshok@ximian.com>
17106 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
17107 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
17108 added cleanup to get MessageBox titles appearing again, which were
17109 broken by my earlier fix for caption-less/ControlBox-less windows.
17111 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
17113 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
17114 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
17115 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
17116 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
17117 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
17118 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
17119 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
17120 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
17121 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
17122 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
17123 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
17125 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
17126 ToolStripButton.cs: Stubs needed for above.
17127 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
17129 2006-09-15 Chris Toshok <toshok@ximian.com>
17132 - make the MessageQueues hashtable Synchronized.
17134 - SendMessage: if the Hwnd is owned by a different thread, use the
17135 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
17136 thread. Fixes bug #79201.
17138 2006-09-15 Chris Toshok <toshok@ximian.com>
17140 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
17141 ControlBox == false, we disallow maximize/minimize/close. If the
17142 form Caption is "" we also disallow move (and get rid of the Title
17143 decoration). Unfortunately, regardless of how things are set,
17144 we're stuck with the Title and WM menu.
17146 2006-09-15 Chris Toshok <toshok@ximian.com>
17148 * Application.cs: add locking around the static message_filters
17149 ArrayList, part of #79196.
17151 2006-09-15 Chris Toshok <toshok@ximian.com>
17153 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
17154 Form.ControlBox == false, the window has no titlebar nor resize
17155 handles. fixes bug #79368.
17157 2006-09-15 Chris Toshok <toshok@ximian.com>
17159 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
17160 >= 0. Fixes bug #79370.
17162 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
17163 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
17165 Add properties: LayoutEngine, Margin, DefaultMargin.
17166 Add method: GetPreferredSize.
17167 Move layout logic from PerformLayout to layout engines.
17169 2006-09-13 Chris Toshok <toshok@ximian.com>
17171 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
17172 fix for #79326 broke #78718, so this change addresses that.
17174 - in SendWMDestroyMessages remove the call to
17175 CleanupCachedWindows, since we might be recreating the control and
17176 need to maintain the references to right Hwnd handles. Also, set
17177 the zombie flag to true for each of the children in the hierarchy
17178 instead of calling hwnd.Dispose. This will cause GetMessage to
17179 ignore all events for the window except for DestroyNotify.
17181 - In GetMessage, ignore messages except for DestroyNotify for
17184 * Control.cs: revert the is_recreating fix from the last
17185 ChangeLog. It's definitely "right", but it breaks switching from
17186 an MDI form to a non-MDI form. Will need to revisit that.
17188 * Hwnd.cs: add a zombie flag, which means "the
17189 client_window/whole_window handles are invalid, but we're waiting
17190 for the DestroyNotify event to come in for them". Set the flag to
17191 false explicitly if setting WholeWindow/ClientWindow, and also
17194 2006-09-13 Chris Toshok <toshok@ximian.com>
17196 * XplatUIX11.cs: rework window destruction slightly.
17198 - when destroying the windows associated with a control, we don't
17199 need 2 separate XDestroyWindow calls. Just the one for the
17200 whole_window (or for client_window if whole_window is somehow
17201 IntPtr.Zero -- can this happen?) is enough.
17203 - reworked SendWMDestroyMessages slightly, so we always dispose
17204 the child control hwnd's after sending the messages.
17206 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
17207 the two places it was used (one was even using hwnd.Handle and the
17208 other hwnd.client_window. ugh), adding another call in
17209 SendWMDestroyMessages. We need this new call because now the
17210 DestroyNotify events in the queue will be ignored for the child
17211 controls (as their hwnd's were disposed, and the window id's
17212 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
17214 - this fixes bug #79326.
17216 2006-09-13 Chris Toshok <toshok@ximian.com>
17218 * Control.cs: don't always set is_recreating to false at the end
17219 of RecreateHandle, since sometimes we're not done (and won't be
17220 until WndProc handles the WM_DESTROY message). Also, set
17221 is_recreating to false in the WM_DESTROY handling code. Part of
17222 the fix for bug #79326.
17224 2006-09-13 Miguel de Icaza <miguel@novell.com>
17226 * X11DesktopColors.cs: Start the droppage of debugging messages.
17228 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
17230 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
17232 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
17234 2006-09-12 Chris Toshok <toshok@ximian.com>
17236 * DataGrid.cs (get_ListManager): if the list_manager is null, try
17237 to create it using SetDataSource. Fixes bug #79151.
17239 2006-09-11 Chris Toshok <toshok@ximian.com>
17241 * XEventQueue.cs: add a DispatchIdle property.
17243 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
17244 either the queue is null, or the queue has DispatchIdle set to
17246 (DoEvents): set queue.DispatchIdle to false around the
17247 peek/translate/dispatch message loop in this method. This keeps
17248 Application.Doevents from emitting idle events. Part of the fix
17251 2006-09-11 Chris Toshok <toshok@ximian.com>
17253 * DataGrid.cs (set_DataSource): make this work for both the
17254 winforms/datagrid test and ReportBuilder. It seems as though when
17255 we've created a ListManager (or maybe it's if we have a
17256 BindingContext?), when we set the DataSource it clears the
17257 DataMember to "". otherwise we reuse the datamember. Fixes bug
17260 2006-09-11 Chris Toshok <toshok@ximian.com>
17262 * XplatUIX11.cs: deal with queue being null, which happens in all
17263 the Clipboard functions. Fixes one of the two problems mentioned
17266 2006-09-11 Chris Toshok <toshok@ximian.com>
17268 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
17269 button on various spots (including outside the menu) works closer
17270 to MS, and doesn't crash. Fixes #79343.
17272 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
17274 * ListView.cs: Do not initialize item_sorter in init. To match MS,
17275 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
17276 and the internal comparer is set. When a new ListViewItemSorter is set,
17277 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
17278 was specified. No further processing is necessary if SortOrder is set
17279 to it's current value. If Sorting is modified to None, and View is
17280 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
17281 (either custom or our internal ItemComparer) to null, on 1.0 profile
17282 only set item_sorter to null if its our internal IComparer. If Sorting
17283 is modified to Ascending or Descending, then use our internal IComparer
17284 if none is set, and if the current IComparer is our internal one then:
17285 on 2.0 profile always replace it with one for new Sorting, and on 1.0
17286 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
17287 Enum.IsDefined to verify whether a valid View value is specified in
17288 its setter. Automatically sort listview items when listview is
17289 created. In Sort, do nothing if ListView is not yet created, or if
17290 no item_sorter is set (no Sorting was set, Sorting was explicitly set
17291 to None or ListViewItemSorter was set to null). Added Sort overload
17292 taking a bool to indicate whether the ListView should be redrawn when
17293 items are sorted (we use this in ListViewItemCollection to avoid double
17294 redraws). Modified our internal IComparer to take the sort order into
17295 account. In Add and AddRange methods of ListViewItemCollection, also
17296 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
17297 view), but use overload with noredraw option to avoid double redraw.
17298 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
17299 true when View is Tile, and do the same when attempting to set View to
17300 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
17301 for selected/checked indices, as it involves overhead when sorting is
17302 done while these collections are not used all that often. Instead
17303 we'll build the indices on demand. Modified IList implementation of
17304 CheckedIndexCollection to use public methods if object is int.
17305 Modified CheckedListViewItemCollection to hide checked items if
17306 ListView.CheckBoxes is false. Removed LAMESPEC remark in
17307 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
17308 IList implementation in SelectedIndexCollection to use public methods
17309 if object is int. Modified SelectedListViewItemCollection to hide
17310 selected items if listview is not yet created.
17311 * ListViewItem.cs: CheckedIndices list no longer needs to be
17312 maintained separately (see ListView changes). Also clone font, fixes
17315 2006-09-11 Mike Kestner <mkestner@novell.com>
17317 * ComboBox.cs: if we are updating the contents of the currently
17318 selected index, refresh the control or the textbox selection.
17321 2006-09-11 Mike Kestner <mkestner@novell.com>
17323 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
17324 the 'specified' logic has been moved there. This seems like a bug
17325 in Control.cs, since our current SetBoundsCore completely ignores
17326 the specified parameter. Peter's commit seems to indicate that is
17327 the way the MS control implementation works. [Fixes #79325]
17329 2006-09-10 Jonathan Chambers <joncham@gmail.com>
17331 * XplatUI.cs: Set default_class_name to be composed
17332 of current domain id. This allows MWF to be loaded in multiple
17335 2006-09-09 Miguel de Icaza <miguel@novell.com>
17337 * X11Keyboard.cs: If we are unable to obtain the input method, do
17338 not call CreateXic to create the input context. Should fix
17341 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
17343 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
17344 Simplified gnome support by adding more pinvokes to get the
17345 icon for a file or mime type.
17347 2006-09-08 Jackson Harper <jackson@ximian.com>
17349 * MenuAPI.cs: Deslect popup context menu items before closing the
17350 window, so that you don't see the previously selected item
17351 selected when you reopen the menu.
17352 * TextControl.cs: Update the cursor position even if we don't have
17353 focus. This fixes typing in things like the ComboBox. I'm not
17354 totally sure we should always set the visibility if we don't have
17355 focus, but couldn't find any corner cases where the cursor showed
17356 up when it shouldn't.
17358 2006-09-08 Chris Toshok <toshok@ximian.com>
17360 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
17361 our arrays are length 256. & 0xff before indexing. Fixes the
17362 crash in bug #78077.
17364 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17366 * ThemeWin32Classic.cs:
17367 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
17368 is true. Handle that check box too.
17370 2006-09-07 Chris Toshok <toshok@ximian.com>
17372 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
17375 2006-09-07 Chris Toshok <toshok@ximian.com>
17377 * Control.cs: in set_BackColor only do the work if
17378 background_color != value.
17380 * XplatUIX11.cs: move the clearing of invalid areas (both client
17381 and nc) to the same block of code where we set (nc_)expose_pending
17382 to false. That is, move it from PaintEventEnd to PaintEventStart,
17383 so things that cause invalidates from within OnPaint will trigger
17384 another call to OnPaint. Fixes bug #79262.
17386 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
17388 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
17389 * FileDialog.cs: Fix typo
17391 2006-09-07 Jackson Harper <jackson@ximian.com>
17393 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
17394 for tab pages if they have any.
17396 2006-09-06 Mike Kestner <mkestner@novell.com>
17398 * Splitter.cs: use the "current" rect when finishing drag handle
17399 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
17401 2006-09-06 Mike Kestner <mkestner@novell.com>
17403 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
17404 support offset splitters. [Fixes #79298]
17406 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
17408 * Mime.cs: Fixed a bug that could override the global mime type
17411 2006-09-05 Jackson Harper <jackson@ximian.com>
17413 * TabControl.cs: Better calculation method for setting the slider
17414 pos. Prevents crashes on really wide tabs.
17415 - Draw Image on tab pages if an image list is used.
17417 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17419 * MonthCalendar.cs: When Font changes, the Size should be
17420 updated to fit the new font's space requirements.
17422 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
17424 * ListBox.cs: If the items are cleared with Items.Clear set
17427 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17429 * MonthCalendar.cs: Handle arrow keys as input keys. Also
17430 fire DateChanged event instead of DateSelected event when
17431 the date was changed by keyboard interaction.
17433 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17435 * DateTimePicker.cs: Handle DateChanged for the associated
17436 month_calendar control, and set month_calendar.Font from
17437 OnFontChanged method, as well as resize the height of the
17438 control when needed. Make PreferredHeight proportional.
17440 2006-09-01 Chris Toshok <toshok@ximian.com>
17442 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
17445 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
17447 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
17449 * FileDialog.cs: Set ClientSize instead of window size, to allow space
17450 for decorations (Fixes #79219)
17452 2006-09-01 Mike Kestner <mkestner@novell.com>
17454 * ComboBox.cs: first stab at sorting plus some selection handling
17455 fixes to bring us more in line with MS behavior. Also switches back
17456 to index based selection. Alternative patches for index-based
17457 selection were provided by Jackson Harper, Carlos Alberto Cortez,
17458 and latency@gmx.de on bug 78848. I assume they were similar to this
17459 code I've had simmering in my tree forever.
17462 2006-09-01 Chris Toshok <toshok@ximian.com>
17464 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
17465 when setting list position guard against ending up with a -1 index
17466 (the other part of the fix for #78812). Should probably make sure
17467 we don't need the analogous fix in the ItemDeleted case.
17470 - in SetDataSource, work around the fact that the way
17471 OnBindingContextChanged is invoked will cause us to re-enter this
17472 method. I'll remove the hack once I investigate
17473 OnBindingContextChanged.
17475 - fix the logic in set_DataSource and set_DataMember (basically
17476 what to do if the other of the two is null.)
17478 - in OnListManagerItemChanged, we need to take into account the
17479 edit row when deciding whether or not to call RecreateDataGridRows
17480 (part of the fix for #78812).
17482 2006-09-01 Jackson Harper <jackson@ximian.com>
17484 * Splitter.cs: Don't do anything if there is no control to affect
17485 (prevents us from crashing in weird tet cases).
17486 * TreeView.cs: Bounding box for the mouse movement reverting
17487 focus/selection back to previously selected node. This matches
17488 MS, and makes the tree a lot more useable.
17489 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
17490 use clipping so they are not drawn. This fixes when the control
17491 is set to have a transparent background, or if it was over an
17494 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
17496 * MimeIcon.cs: Improved handling for reading default icons when
17497 using gnome (2.16 made it necessary). Check and read svg icons
17498 first, then 48x48 and then 32x32 icons.
17500 2006-08-31 Chris Toshok <toshok@ximian.com>
17502 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
17505 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
17506 ProcessKeyPreview. Fixes part of #77806.
17508 * DataGrid.cs: big patch.
17510 - revert the queueing up of DataSource/DataMember if inside
17511 BeginInit/EndInit calls. That's not the way the datagrid achieves
17512 its delayed databinding. Instead, call SetDataSource in
17513 OnBindingContextChanged. This mimic's MS's behavior, and fixes
17516 - Also, it wasn't mentioned in #78811, but the test case exhibits
17517 behavior that was lacking in our datagrid implementation - Columns
17518 that have mapping names that don't exist in the datasource's
17519 properties aren't shown. Yuck. To fix this I added the bound
17520 field to the column style, and basically any calculation to figure
17521 out anything about columns uses a loop to find the bound columns.
17522 still need to investigate if I can cache an array of the bound
17523 columns or if the indices must be the same.
17525 - When setting CurrentCell, we no longer abort if the cell being
17526 edited was in the add row. This fixes the other part of #77806.
17528 - The new code also fixes #78807.
17530 * ThemeWin32Classic.cs: perpetrate the same disgusting
17531 column.bound field hack, and only render bound fields.
17533 2006-08-31 Chris Toshok <toshok@ximian.com>
17535 * DataGridColumnStyle.cs: add bound field. this field is true if
17536 the datasource has a property corresponding to the mapping name.
17538 * DataGridTableStyle.cs: set the bound field on the column styles
17539 depending on whether or not we have a column for that property.
17541 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
17543 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
17544 splitter control (fixes #79228)
17546 2006-08-31 Chris Toshok <toshok@ximian.com>
17548 * DataGridColumnStyle.cs: we need to delay the assignment of
17549 property descriptor until the last possible moment due to the lazy
17550 databinding stuff in the datagrid. Also, fix the exceptions
17551 thrown by CheckValidDataSource to match MS.
17553 2006-08-31 Jackson Harper <jackson@ximian.com>
17555 * Form.cs: When activated select the active control, if there is
17556 no active control, we select the first control.
17557 * XplatUIX11.cs: If there is no focus control when we get a
17558 FocusIn event, find the toplevel form and activate it. This
17559 occurs when you popup a window, it becomes the focus window, then
17560 you close that window, giving focus back to the main window.
17562 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17564 * MonthCalendar.cs:
17565 * ThemeWin32Classic.cs: Cache Font in bold style, as well
17566 as StringFormat with Center alignments in MonthCalendar,
17567 instead of creating new ones when drawing the control.
17568 Also, draw the month name in bold style.
17570 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
17573 - PerformLayout(): It would seem MS performs the fill even if the
17574 control is not visible (part of #79218 fix)
17575 - ResetBackColor(): Use the setter to reset the color, to allow
17576 overriders to catch the change.
17578 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
17579 - CreateHandle(): dito (part of $79218 fix)
17580 - Don't set an icon if we have a dialog
17581 * ScrollableControl.cs:
17582 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
17583 - ScrollIntoView(): No need to scroll if control is already visible
17584 (resolves fixme and fixes #79218)
17586 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17588 * MonthCalendar.cs: Change proportions in SingleMonthSize
17589 to match the aspect of the original control.
17591 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
17593 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
17594 get updated when they get maximized.
17596 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
17598 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
17600 2006-08-29 Chris Toshok <toshok@ximian.com>
17602 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
17604 2006-08-29 Jackson Harper <jackson@ximian.com>
17606 * TreeView.cs: Need to track selected node and highlighted node,
17607 they aren't always the same thing, when the mouse is down on a
17608 node it is hilighted, but not selected yet.
17609 - Do the HideSelection stuff right
17610 - Need to focus on rbutton mouse down. And redraw selection when
17611 right click is mouse upped.
17613 2006-08-29 Mike Kestner <mkestner@novell.com>
17615 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
17616 when SubItems.Count < Columns.Count. [Fixes #79167]
17618 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
17620 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
17622 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
17624 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
17625 from X. Only send based on ConfigureNotify if we don't have the
17626 correct location in hwnd (if the window manager moved us)
17628 2006-08-28 Mike Kestner <mkestner@novell.com>
17630 * ListView.cs: remove a TODO.
17631 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
17632 [Fixes ListView part of #79166]
17634 2006-08-28 Mike Kestner <mkestner@novell.com>
17636 * ListView.cs: move wheel handler to parent since it is focused
17637 instead of the item_control now. [Fixes #79177]
17639 2006-08-28 Mike Kestner <mkestner@novell.com>
17641 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
17642 when the control is focused. [Fixes #79171]
17644 2006-08-28 Mike Kestner <mkestner@novell.com>
17646 * ListView.cs: size the item and header controls for empty and
17647 unscrollable views.
17648 * ThemeWin32Classic.cs: draw disabled backgrounds.
17651 2006-08-28 Chris Toshok <toshok@ximian.com>
17653 * Form.cs: remove unused "active_form" static field.
17655 * Hwnd.cs: lock around accesses to static windows collection.
17657 * Application.cs: lock threads in Exit ().
17659 2006-08-28 Chris Toshok <toshok@ximian.com>
17661 * NativeWindow.cs: lock around accesses to window_collection.
17663 2006-08-28 Chris Toshok <toshok@ximian.com>
17665 * Control.cs: err, fix this the right way, by locking on controls
17666 when using it. not by making it synchronized.
17668 2006-08-28 Chris Toshok <toshok@ximian.com>
17670 * Control.cs: make the static "controls" field synchronized, as it
17671 gets updated from multiple threads.
17673 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
17675 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
17676 Prevent other threads from exiting when calling thread sets quit state.
17677 * XEventQueue.cs: Added PostQuitState property
17679 2006-08-27 Chris Toshok <toshok@ximian.com>
17681 * AsyncMethodData.cs: add a slot for the window handle.
17683 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
17684 window (the destination control's window, not the foster window).
17686 * Control.cs (BeginInvokeInternal): store the window's handle in
17687 the AsyncMethodData.
17690 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
17693 - PostQuitMessage: Removed resetting S.D display handle, we might have
17694 another loop started after calling PostQuitMessage (Fixes #79119)
17695 - Created destructor to reset S.D handle
17697 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
17699 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
17701 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17703 * TextControl.cs (Insert): Update the caret position even if we don't
17704 have a handle yet, just don't call the driver in that case.
17705 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
17706 to the end of the new selection text (Fixes #79184)
17708 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17710 * Form.cs (Activate): Only activate if the handle is created)
17712 - Mark window as invisible when it's disposed
17713 - Check if window handle is created when setting window visible,
17714 instead of relying just on the is_created variable
17715 - Check if object is disposed when creating the control (Fixes #79155)
17717 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17719 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
17720 when allowing layout again. Otherwise we re-generate the anchoring
17721 distance to the border again and actually alter what the user wanted
17722 This is ugly, it'd be better if we used DisplayRectangle instead of
17723 ClientRectangle for Control.UpdateDistances, but that causes us to
17724 have other problems (initial anchoring positons would be wrong)
17727 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17730 - The size and location setters shouldn't go directly to
17731 SetBoundsCore, but to SetBounds, which triggers layout on the
17732 parent, then calls SetBoundsCore. (Related to fix for #78835)
17733 - SetBounds: Moved actual location update code into this function
17734 from SetBoundsCore, to match MS. Added call to PerformLayout if
17735 we have a parent (to trigger resizing of anchored parents if the
17736 child size has changed (see testcase for #78835)
17737 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
17739 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
17741 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17743 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
17744 System.Drawing when a toplevel window gets closed; there might
17745 be other toplevel windows belonging to the same app (Fixes #78052)
17747 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
17749 * FileDialog.cs: After reading FileDialog settings from mwf_config
17750 use Desktop prefix only if a real folder doesn't exist anymore.
17751 * FontDialog.cs: Added char sets.
17752 It is now possible to select the font, size or style with the
17755 2006-08-25 Kornél Pál <kornelpal@gmail.com>
17757 * PrintPreviewDialog.cs: Use assembly name constants.
17759 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17761 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
17762 scrollbar from whacking it's buttons)
17764 2006-08-24 Chris Toshok <toshok@ximian.com>
17766 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
17767 in this patch (aggregating setting Left/Top/Width/Height to
17768 setting Bounds on the scrollbars), but the crux of the fix is in
17769 Recalculate, where we scroll by the remaining scroll_position if
17770 we're hiding a scrollbar. The 2*$5 reward in the comment is
17773 2006-08-24 Jackson Harper <jackson@ximian.com>
17776 * MdiWindowManager.cs: If the form is made a non-mdi window we
17777 need to remove the form closed event so that closing forms works
17780 2006-08-24 Jackson Harper <jackson@ximian.com>
17782 * Control.cs: Make IsRecreating internal so that the driver can
17784 - Temporarily remove the Hide when controls are removed, its
17785 making a whole bunch of things not work because visibility isn't
17786 getting reset elsewhere correctly
17787 * Form.cs: Need to do a full handle recreation when the mdi parent
17789 * XplatUIX11.cs: If we are recreating handles don't dispose the
17790 HWNDs. What was happening is the handles were being recreated in
17791 SendWMDestroyMessages, but then flow continued on in that method
17792 and destroyed the new handles.
17794 2006-08-23 Jackson Harper <jackson@ximian.com>
17796 * Form.cs: MdiClient is always at the back of the bus
17797 * Control.cs: When the order of items in the collection is changed
17798 we need to reset the all_controls array
17799 - do the same sorta setup thats done when adding a control when a
17800 control is set on the collection.
17802 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17804 * TextBoxBase.cs (get_Text): Return an empty array if our document
17805 is empty (fixes #79052)
17807 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17809 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
17810 on WM_SYSCHAR messages (fixes #79053)
17812 2006-08-23 Chris Toshok <toshok@ximian.com>
17814 * DataGrid.cs: fix flickering when scrolling vertically.
17816 2006-08-23 Chris Toshok <toshok@ximian.com>
17818 * DataGrid.cs (EndEdit): only invalidate the row header when we
17821 2006-08-23 Chris Toshok <toshok@ximian.com>
17823 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
17824 methods. fixes the flicker when scrolling around.
17826 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17828 * FileDialog.cs: Making sure the control is created before we get a
17829 chance to use it with BeginInvoke (Fixes #79096)
17831 2006-08-23 Chris Toshok <toshok@ximian.com>
17833 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
17834 width to use when painting the rows.
17836 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
17839 - Throw ArgumentException if a negative value is passed to SelectionLength
17840 - Update the selection end if start is moved. end needs to be always
17841 after start. (Fixes #79095)
17842 - Track selection length; MS keeps the selection length even if start
17843 is changed; reset on all other operations affection selection
17845 2006-08-22 Jackson Harper <jackson@ximian.com>
17847 * TreeView.cs: Make sure both scrollbars get displayed and sized
17848 correctly when the other bar is visible.
17849 - Use the original clip rectangle for checking if the area between
17850 the two scrollbars is visible, not the viewport adjusted clipping
17853 2006-08-22 Jackson Harper <jackson@ximian.com>
17855 * Binding.cs: We don't use IsBinding because it requires the
17856 control to be created, which really shouldn't be necessary just to
17857 set a property on the control.
17859 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17861 * ComboBox.cs: Some CB.ObjectCollection methods must throw
17862 ArgumentNullReferenceException when the argument is null.
17864 2006-08-21 Jackson Harper <jackson@ximian.com>
17866 * Timer.cs: Track the thread that the timer is started in (NOT
17867 CREATED), this way messages for it will only be triggered on its
17869 * XEventQueue.cs: Track the timers here, this makes timers per
17871 * XplatUIX11.cs: The timers are moved to the XEventQueue.
17873 2006-08-19 Chris Toshok <toshok@ximian.com>
17875 * XplatUIX11.cs: after further communication with pdb, we get the
17876 best of both worlds. SetZOrder working for un-Mapped windows, and
17877 no X errors for un-mapped windows.
17879 2006-08-19 Chris Toshok <toshok@ximian.com>
17881 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
17882 as it was causing pdn toolbars to not have the correct stacking.
17884 2006-08-18 Mike Kestner <mkestner@novell.com>
17886 * ListView.cs : guard against negative ClientArea.Width in scrollbar
17887 calculation. Not sure why control should ever be setting a negative
17888 width though. Fixes #78931.
17890 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17892 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
17893 null items in ObjectCollection class.
17894 * ListBox.cs.: Likewise.
17896 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
17898 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
17899 as the base method in ThemeWin32Classic should work fine.
17902 2006-08-18 Jackson Harper <jackson@ximian.com>
17904 * Binding.cs: When validating if the value entered doesn't convert
17905 properly reset to the old value.
17906 * RadioButton.cs: Don't fire click when we get focus.
17908 2006-08-18 Jackson Harper <jackson@ximian.com>
17910 * FileDialog.cs: Paint the selection on the directory combobox the
17913 2006-08-17 Jackson Harper <jackson@ximian.com>
17915 * ErrorProvider.cs: Don't allow the error control to be selected.
17916 * Control.cs: Don't send the SetFocus messages, the control
17917 activation will do this, and if we do it blindly here validation
17920 2006-08-17 Jackson Harper <jackson@ximian.com>
17923 * ContainerControl.cs: Make validation events fire in the correct
17924 order. TODO: For some reason the first validation event is not
17927 2006-08-17 Mike Kestner <mkestner@novell.com>
17929 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
17931 2006-08-17 Mike Kestner <mkestner@novell.com>
17933 * ComboBox.cs : implement scroll wheel support for popped-down
17934 state. Fixes #78945.
17936 2006-08-17 Jackson Harper <jackson@ximian.com>
17938 * TreeView.cs: Specify treeview actions (old patch that didn't get
17939 committed for some reason).
17940 - Don't let the mouse wheel scroll us too far. Just want to make
17941 the bottom node visible, not scroll it all the ways to the top.
17943 2006-08-17 Jackson Harper <jackson@ximian.com>
17945 * XplatUIX11.cs: Mouse wheel events go to the focused window.
17947 2006-08-17 Mike Kestner <mkestner@novell.com>
17949 * ComboBox.cs : don't do mouseover selection in simple mode.
17951 2006-08-16 Jackson Harper <jackson@ximian.com>
17953 * Form.cs: Fire the closing events for all the mdi child windows
17954 when a window is closed. If the cancel args are set to true, the
17955 main window still gets the event fired, but it doesn't not close.
17956 * MdiWindowManager.cs: Do this closing cleanup in a Closed
17957 handler, instead of when the button is clicked, so cancelling the
17958 close works correctly.
17959 * ComboBox.cs: Send the mouse down to the scrollbar.
17961 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17963 * ListBox.cs: When passing 'null' to SelectedItem,
17964 set SelectedIndex to -1, to unselect items. This is the
17965 observed behaviour in .Net.
17967 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
17969 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
17970 MS flags saying there won't be any. (fixes #78800)
17971 * Control.cs (HandleClick): Made virtual
17973 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
17975 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
17976 cultures. Fixed bug #78399.
17978 2006-08-16 Jackson Harper <jackson@ximian.com>
17980 * Form.cs: Use the MdiClients MdiChildren property to access
17981 MdiChildren instead of creating the array from the child controls.
17982 * MdiClient.cs: Maintain a separate array of the mdi children, so
17983 that insertion order is maintained when the Z-order is changed.
17985 2006-08-16 Mike Kestner <mkestner@novell.com>
17987 * ListView.cs : add an ItemComparer and default to it for sorting.
17988 Fixes #79076, but sorting needs a complete overhaul to be compat with
17991 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
17993 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
17995 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
17997 * Hwnd.cs (Mapped): Properly traverse the tree
17999 2006-08-15 Chris Toshok <toshok@ximian.com>
18001 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
18002 pass manager.Current.GetType() to ParseData. It has to be the
18003 property type. So, hold off doing the ParseData until we're in
18004 SetPropertyValue where we know the type. This fixes the crash in
18005 #78821 but the textbox is still empty.
18007 2006-08-15 Chris Toshok <toshok@ximian.com>
18010 - when we're scrolling, only call Edit() again if the
18011 current cell is still unobscured. Fixes bug #78927.
18012 - when handling mousedown on a cell, ensure the cell is visible
18013 before calling Edit.
18014 - remove the properties from DataGridRow, and remove the
18015 DataGridParentRow class altogether.
18018 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18020 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
18021 fire OnTextChanged by ourselves. There's no point calling base,
18022 we don't set the base value anywhere else. Fixes #78773.
18024 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18026 * ListBox.cs: Call CollectionChanged when modifying
18027 an item from Items indexer, to update the actual items
18030 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18032 * PrintDialog.cs: Small fixes for focus and a pair of checks,
18033 to match .Net behaviour.
18035 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18037 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
18039 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18041 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
18043 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
18045 * MessageBox.cs: Prevent potential NRE exception.
18046 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
18048 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
18050 * MessageBox.cs: Calculate the owner of a messagebox, also make
18051 it topmost. Fixes #78753
18053 2006-08-14 Chris Toshok <toshok@ximian.com>
18055 * XplatUIX11.cs: A couple of fixes so that metacity will let us
18056 programmatically move windows. first, set the PPosition hint as
18057 well as the USPosition hint. Second include some code from pdb
18058 that sets the window type to NORMAL when we set the transient for
18059 hint. This is because, in the absence of a window type, metacity
18060 thinks any window with TransientFor set is a dialog, and refuses
18061 to let us move it programmatically. fascists.
18063 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
18065 * XplatUIX11.cs: When setting normal hints, take into consideration
18066 an different hints previously set so we don't delete them (fixes #78866)
18068 2006-08-12 Chris Toshok <toshok@ximian.com>
18070 * ToolBarButton.cs: make Layout return a boolean, if something to
18071 do with the button's layout changed.
18074 - add another parameter to Redraw, @force, which all existing
18076 - make the Layout function return a boolean which is true if the
18077 layout has actually changed. Redraw now uses this (and @force)
18078 to determine when to invalidate. At present the only place
18079 where @force can be false is the call from OnResize, when
18080 background_image == null. So, resizing a toolbar when the
18081 layout doesn't change results in no drawing.
18083 2006-08-12 Chris Toshok <toshok@ximian.com>
18085 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
18086 the VScrollBar and HScrollbar reversed. oops.
18088 * DataGrid.cs: fix the logic that assigns sizes to the implicit
18089 scrollbars. we were assigning them twice (once in
18090 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
18091 therefore causing two scrollbar resizes (and redraws?) to happen
18094 2006-08-12 Chris Toshok <toshok@ximian.com>
18096 * ToolBarButton.cs: redraw the entire button if the theme tells us
18099 * Theme.cs: add ToolBarInvalidateEntireButton.
18101 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
18102 buttons, just the border.
18104 * ThemeNice.cs: redraw the entire toolbar button since we need to
18105 draw the highlight image.
18107 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
18108 we need to redraw the entire button (not just the border).
18110 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
18112 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
18113 for vertical bars. Fixes the mismatches shown by #78513
18115 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
18117 * FileDialog.cs: If a saved/remembered path doesn't exist
18118 anymore, fall back to "Desktop".
18120 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
18122 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
18123 parent. It's apparently legal to not have one
18125 - SetZOrder: Don't try to set Z-Order on an unmapped window
18126 - CreateWindow: 0,0 are legal coordinates for a window. don't move
18127 it unless the coordinates are negative
18129 2006-08-10 Mike Kestner <mkestner@novell.com>
18131 * ListControl.cs: allow null for DataSource. Clear DisplayMember
18132 when setting to null per msdn docs. Fixes #78854.
18134 2006-08-10 Chris Toshok <toshok@ximian.com>
18136 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
18137 flickering by setting a clip rectangle on the Graphics when we
18138 need to redraw just a particular menuitem. Also, rename "OnClick"
18139 to "OnMouseDown" to reflect what it actually is.
18141 * Form.cs: track the OnMouseDown change.
18143 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
18145 * CommonDialog.cs: Properly inherit the CreateParams from the form
18146 and only change what we need. Fixes #78865
18148 2006-08-10 Chris Toshok <toshok@ximian.com>
18150 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
18151 flickering in flat mode (and most of the flickering in general) by
18152 only invalidating the button border (and not the entire rectangle)
18153 when the state changes. A couple of cases still flicker:
18154 ToggleButtons, and the dropdown arrow case when the user mouse
18157 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
18159 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
18160 for german keyboards. Numlock state shouldn't affect the behaviour
18161 of the Del key. Fixes bug #78291.
18163 2006-08-10 Chris Toshok <toshok@ximian.com>
18165 * ListControl.cs: remove the items.Clear line from BindDataItems,
18166 as this is the first thing done by both subclasses in their
18167 SetItemsCore overrides. Also, add a ItemChanged handler, and when
18168 passed -1, refresh the list. This gets databinding working when
18169 the datasource is set on the list before the datasource is
18170 populated (as in wf-apps/ReportBuilder.)
18172 * ComboBox.cs: remove the argument to BindDataItems. This call
18173 should really go away, and be initiated by the ListControl code.
18175 * ListBox.cs: same.
18177 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
18179 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
18180 if no data is in the document when the control is displayed
18182 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
18184 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
18187 - PositionCaret: Allow positioning of caret but don't call methods
18188 requiring a handle if the window isn't created yet
18189 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
18190 - owner_HandleCreated: Don't position the caret, just update it's
18191 location. User might have already set a different position
18193 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
18195 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
18196 windows. Screws up the returned coordinates for child windows.
18197 Fixes #78825. I'm hoping this doesn't break something, since the
18198 code was explicitly put in 8 months ago, but no bug was attached.
18199 Menus still seem to work properly.
18201 2006-08-08 Chris Toshok <toshok@ximian.com>
18203 * DataGrid.cs: make BeginInit/EndInit actually do what they're
18204 supposed to do - delay data binding until the EndInit call. Also,
18205 make the table style collection's CollectionChangeAction.Refresh
18208 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
18209 (with action = Refresh) when a consituent table's MappingName is
18212 2006-08-08 Chris Toshok <toshok@ximian.com>
18214 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
18215 Invalidate, since changing the text can change the size of the all
18218 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
18220 * Form.cs (AddOwnedForm): Still need to add the form to our listif
18221 we don't have it yet
18223 2006-08-08 Chris Toshok <toshok@ximian.com>
18225 * PrintControllerWithStatusDialog.cs: don't .Close() the status
18226 dialog, as this causes X errors later on, since we actually
18227 destroy the window. Instead, .Hide() it.
18229 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
18231 * ComboBox.cs: Added focus reflection for popup window
18233 - Removed transient setting for non-app windows for now, not sure it
18235 - Fixed logic checking if we have captions when deciding
18236 override_redirect, WS_CAPTION is two bits and a 0 check was not
18238 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
18241 - AddOwnedForm: Don't just add the form to the list, call the property
18242 to ensure the driver is informed about the ownership as well
18243 - CreateHandle: Set the TopMost status in the driver if we have an owner
18244 * XplatUI.cs: Fixed debug statement
18246 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
18247 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
18248 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
18249 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
18250 TrackBarRenderer.cs: Make constructor private.
18251 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
18252 * ProfessionalColorTable.cs: Make properties virtual.
18254 2006-08-06 Duncan Mak <duncan@novell.com>
18256 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
18259 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
18260 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
18261 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
18262 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
18263 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
18264 Initial import of new 2.0 classes.
18266 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
18267 * Application.cs: Add 2.0 VisualStyles properties.
18269 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
18270 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18271 XplatUIX11.cs: Create property to allow access to existing private
18272 variable "themes_enabled"
18274 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18276 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
18277 file size, as otherwise our class libraries fail using windows. Fixes
18280 2006-08-04 Jackson Harper <jackson@ximian.com>
18283 * XplatUIX11.cs: Move the toolwindow window manager creation into
18284 the X11 driver, this way on win32 we can let windows create/handle
18287 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18289 * PrintDialog.cs: Remove some redundant checks, add some others,
18290 clean some code, and move the focus to the text boxes when the
18291 values are incorrect.
18293 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
18295 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
18297 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
18299 * NumericUpDown.cs: Setting the Minimum and Maximum is now
18300 handled correctly. Fixes bug #79001.
18302 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18304 * PrintDialog.cs: The "Copies" numeric up down must have
18305 set the Minimum property to 1; only if the value is bigger
18306 than 1, activate "Collate" check box. This is the behaviour of .Net.
18307 Also modify the Document elements only if it is not null.
18309 2006-08-03 Jackson Harper <jackson@ximian.com>
18311 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
18312 length. (We have a larger array then actual node count).
18314 2006-08-03 Jackson Harper <jackson@ximian.com>
18316 * ComboBox.cs: Don't show selection by default.
18317 - The SelectAll isn't needed here, since the focus code should do
18319 - DDL style lists to manual selection drawing, so when they
18320 get/lose focus they have to invalidate.
18322 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
18324 * TextBoxBase.cs: Don't always show all selections by default.
18326 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
18327 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
18328 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
18329 Fixed various typos.
18331 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
18333 * Control.cs: Removing the controls in a ControlCollection with
18334 Clear now hides the controls as expected. Fixes bug #78804.
18336 2006-08-03 Jackson Harper <jackson@ximian.com>
18338 * Control.cs: Revert previous focus patch, it breaks reflector.
18340 2006-08-03 Jackson Harper <jackson@ximian.com>
18342 * ComboBox.cs: Cleanup selection and focus with the combobox.
18343 This also eliminates some duplicated keyboard code, since now
18344 everything is handled by the main class.
18345 - Make list selection work on mouse up instead of down, to match
18348 2006-08-02 Jackson Harper <jackson@ximian.com>
18350 * Control.cs: Setting focus needs to go through the whole
18351 selection mechanism.
18353 2006-08-02 Chris Toshok <toshok@ximian.com>
18355 * PrintPreviewDialog.cs: change MinimumSize to use
18356 base.MinimumSize so it works.
18358 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
18361 - UpdateCaret: Added sanity check in case caret isn't defined yet
18362 - Line.Delete: Now updating selection and caret markers if we're
18363 transfering a node (Properly fixes #78323)
18364 - SetSelectionEnd: Added sanity check
18365 * TextBoxBase.cs: Removed broken attempt to fix #78323
18367 2006-08-01 Chris Toshok <toshok@ximian.com>
18369 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
18370 Close() call is handled in Form, not here.
18372 2006-08-01 Chris Toshok <toshok@ximian.com>
18374 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
18377 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
18378 for sizes < 100% zoom. The code now aggressively attempts to keep
18379 from calling document.Print (), and tries not to use the scaling
18380 g.DrawImage whenever possible (it still does if you scale to >
18381 100%, since usually that involves huge images).
18383 * PrintPreviewControl.cs: hook up the close button.
18385 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
18386 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
18387 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
18388 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
18389 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
18390 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
18391 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
18392 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
18393 Removed [Serializable] for 2.0 Event Handlers.
18395 2006-07-31 Jackson Harper <jackson@ximian.com>
18397 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
18398 * TextControl.cs: Uncomment out the body of this method.
18400 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
18402 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
18405 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18407 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
18408 that embed TextBox and need selections visible even if textbox is not
18409 focused to enforce that behaviour.
18410 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
18413 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18416 - Added new SetSelectionStart/SetSelectionEnd overloads
18417 - Fixed viewport width assignment to be accurate
18418 - Adjusted alignment line shift calculations to allow cursor on right
18419 aligned lines to be always visible at the right border (like MS)
18421 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
18422 - TextBoxBase_SizeChanged: recalculating canvas on size changes
18423 - CalculateScrollBars: Use ViewPort size instead of window size, to
18424 properly consider space occupied by the border and scrollbars
18426 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
18427 calculations; no longer leaves artifacts
18428 - CaretMoved: Adjusted window scrolling to match MS and fixed several
18429 calculation bugs (Still missing right/center align calculations)
18431 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18433 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
18434 use of both scroll rect and clip rect, as they do the same.
18436 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
18438 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
18439 in the event handler (fixes #78912)
18441 2006-07-31 Chris Toshok <toshok@ximian.com>
18443 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
18444 grid.ListManager.Count, since grid.ListManager might be null.
18445 This of course begs the question "why are we drawing rows for a
18446 grid with no list manager (and therefor no rows)?" Fixes the
18447 crash in bug #78929.
18449 2006-07-31 Chris Toshok <toshok@ximian.com>
18451 * RelatedPropertyManager.cs: Don't always chain up to the parent
18452 ctor. instead, call SetDataSource if the parent's position is !=
18453 -1. Fixes the crash in #78822.
18455 2006-07-31 Chris Toshok <toshok@ximian.com>
18457 * DataGrid.cs (get_ListManager): use field instead of property
18458 accessors for datasource and datamember.
18459 (RowsCount): make internal again.
18460 (OnMouseDown): end edits before resizing columns/rows.
18461 (OnMouseUp): restart edits after resizing columns/rows.
18463 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
18465 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
18466 This fixes the situation where the last set cursor is displayed
18467 whenever the mouse is over scrollbars.
18469 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18471 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
18472 Document properties, as well as initial values.
18474 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
18476 * XplatUIWin32.cs (SetBorderStyle): Setting both border
18477 and ClientEdge results in a 3-pixel border, which is
18480 2006-07-28 Jackson Harper <jackson@ximian.com>
18482 * TreeNodeCollection.cs: Fix the clear method.
18483 - Fix the Shrink also
18485 2006-07-27 Jackson Harper <jackson@ximian.com>
18487 * TreeView.cs: Make sure the visible order is computed when we
18488 attempt to size the scrollbars (for trees that mess with the
18489 scrolling when they shouldn't.
18490 - Make sure to give the scrollbars valid values.
18492 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
18494 * XplatUIX11.cs: Move motion compression code to where it
18495 has less performance impact
18497 2006-07-26 Jackson Harper <jackson@ximian.com>
18499 * UpDownBase.cs: When the control is selected make the child
18500 controls non selectable, so that a click on them won't do a
18501 focus/unfocus cycle.
18502 - Don't give focus to the text box when the spinner is selected.
18503 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
18505 2006-07-26 Chris Toshok <toshok@ximian.com>
18507 * ThemeWin32Classic.cs: add print preview rendering. I'm not
18508 satisfied with this solution. If the bitmaps are small, we should
18509 just cache them in the PrintPreviewDialog and draw them here.
18510 Also, the layout is broken for the 2-up and 3-up cases.
18512 * Theme.cs: add PrintPReviewControlPaint.
18514 * PrintPreviewDialog.cs: first pass implementation.
18516 * PrintPreviewControl.cs: first pass implementation. No
18519 * PrintDialog.cs: only validate fields if that particular portion
18520 of the UI is enabled. Also, set the document's controller to a
18521 PrintControllerWithStatusDialog wrapping the document's print
18524 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
18525 bring up a SaveFileDialog (i hope we don't want to match the
18526 behavior of the crappy windows file entry) and set the
18527 PrinterSettings.PrintFileName accordingly.
18529 2006-07-26 Jackson Harper <jackson@ximian.com>
18531 * ContainerControl.cs: Add a field that disables auto selecting
18532 the next control in a container when the container is activated.
18533 * UpDownBase.cs: Don't select the text box when the up down is
18536 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
18538 * XEventQueue.cs: Added methods for peeking (used for compression
18539 of successive events)
18540 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
18541 mouse move events (fixes #78732)
18543 2006-07-25 Jackson Harper <jackson@ximian.com>
18545 * UpDownBase.cs: Use an internal class for the textbox so that we
18546 can control focus. the updown control should always have focus,
18547 if either the text area or the buttons are clicked.
18548 - Send the key messages to the textbox, since it never actually
18550 - Activate and decativate the textbox caret.
18552 2006-07-24 Jackson Harper <jackson@ximian.com>
18554 * Control.cs: Use the directed select when selecting a control,
18555 this way the container controls override will get called and the
18556 whole ActiveControl chain will get triggered. TODO: probably need
18557 to make sure this gets done everywhere instead of the old
18559 * ContainerControl.cs: Implement the directed Select method to
18560 find and activate the correct child control.
18562 2006-07-22 Mike Kestner <mkestner@novell.com>
18564 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
18565 menu handling code so that clicks without a grab work too.
18568 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
18570 * FileDialog.cs: Enable the BackButton when dirstack has one element.
18571 Added some small optimizations.
18573 2006-07-21 Matt Hargett <matt@use.net>
18575 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
18577 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
18579 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
18580 tests pass and match MS in some strange border cases.
18582 2006-07-21 Chris Toshok <toshok@ximian.com>
18584 * ThemeWin32Classic.cs: handle drawing of the relation links and
18585 parent row buttons.
18587 * Theme.cs: change args to DataGridPaintParentRow.
18589 * DataGrid.cs: Don't use controls for the relation links and
18590 parent buttons, so we have to handle all their interactions in
18591 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
18592 when we're navigating through child tables, so we can reinstate
18593 selection, expanded state, current cell, etc.
18595 2006-07-20 Chris Toshok <toshok@ximian.com>
18597 * ToolBar.cs: When we redraw a button, for whatever reason,
18598 there's no reason to redraw the entire toolbar. Also, don't call
18599 Control.Refresh from within Redraw, as it's much heavier than
18600 Invalidate (which is really what we want).
18602 2006-07-20 Chris Toshok <toshok@ximian.com>
18604 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
18605 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
18606 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
18607 traces from within a debug IBindingList datasource
18608 (in mono/winforms/datagrid) for *days*, I've finally gotten things
18609 to work in a similar fashion.
18611 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18613 * ListBox.cs: Don't call Sort () when setting
18614 the Sorted property to false (avoid an unnecessary sort).
18616 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18618 * ListControl.cs: DataSource should throw an ArgumentException
18619 instead of a normal exception when the argument is not of the
18622 2006-07-20 Mike Kestner <mkestner@novell.com>
18624 * Control.cs: add InternalPreProcessMessage to allow us to steal
18625 key events before MWF gets its paws on them. Adapted from a
18627 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
18628 up/down/left/right navigation. Override the new internal control
18629 method to steal the events since they never make it to WndProc.
18630 * ToolBarButton.cs: don't worry about pushed when setting hilight
18631 since the drawing code prefers pushed to hilight. Invalidate on
18632 Hilight changes. Fixes #78547 and #78525.
18634 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
18636 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
18637 the canvas size. Fixes #78868
18639 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
18641 * Splitter.cs: Track requested split position until first layout
18642 is performed. Fixes #78871
18644 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
18646 * Application.cs: Removed code that forces 1.x for the version
18647 number if the version started with 0. Not sure why that code was
18648 there and I couldn't find any bugs that indicated we needed it.
18651 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
18653 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
18654 ResetDefaults(), just write some output to the console until it's
18655 implemented. Fixes bug #78907 for now. Eliminated two warnings.
18657 2006-07-19 Jonathan Chambers <joncham@gmail.com>
18659 * PropertyGridView.cs: set StartPosition of drop down forms
18660 so they appear in correct initial spot. Fixes #78190.
18662 2006-07-19 Mike Kestner <mkestner@novell.com>
18664 * ThemeWin32Classic.cs: use parent background color when drawing
18665 flat toolbars. Restructure the conditionals to make sure non-flat
18666 non-Divider toolbars are filled too. Fixes #78837.
18668 2006-07-19 Mike Kestner <mkestner@novell.com>
18670 * ListBox.cs: Sort on collection changes even if the handle
18671 isn't created yet. Fixes #78813.
18673 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18675 * ListControl.cs: DisplayMember should never be null,
18676 and now we assign String.Empty when null is passed to it (this
18679 2006-07-17 Mike Kestner <mkestner@novell.com>
18681 * ListViewItem.cs: restructure Font and subitem Font handling
18682 to hold a specific font and refer back to owner on null.
18685 2006-07-17 Mike Kestner <mkestner@novell.com>
18687 * ToolBar.cs: bandaid for side-effect of previous patch which was
18688 discarding explicit heights for non-AutoSize toolbars. Need to
18689 extend my format tester to deal with AutoSize=false. Fixes #78864.
18691 2006-07-15 Jackson Harper <jackson@ximian.com>
18693 * LabelEditTextBox.cs:
18694 * TreeView.cs: Use a new LabelEdit class for node editing, this
18695 class automatically 'closes' itself when it gets the enter key or
18697 - Use the client rectangle when setting the trees scrollbars, so
18698 border style is taken into account.
18700 2006-07-14 Jackson Harper <jackson@ximian.com>
18703 * TreeView.cs: Make the editing work similar to MSs, firing the
18704 events correctly and ending edits correctly.
18706 2006-07-14 Mike Kestner <mkestner@novell.com>
18708 * ToolBarButton.cs:
18709 * ToolBar.cs: layout restructuring and redraw enhancements to support
18710 formatting changes gracefully, like setting TextAlign, ImageList,
18711 ButtonSize, and Appearance. Handles explicit button sizing quirks
18712 of the MS controls. Things like flat toolbars ignoring button size
18713 but becoming constant sized at the largest button's size. Normal
18714 toolbars with an image set cannot be shrunk smaller than the image,
18715 but text can be clipped/ignored.
18716 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
18717 is zero. Seems like DrawString should be smart enough to not put
18718 anything on screen though. Also trim labels and ellipsize at the char
18719 boundary, not word.
18720 Fixes #78711 and #78483.
18722 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
18724 * FolderBrowserDialog.cs: Disable "New Folder" button and
18725 "New Folder" contextmenu menuitem if a folder like "My Computer"
18728 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
18730 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
18731 * FolderBrowserDialog.cs:
18732 - Use MWFConfig to store and read size and position settings
18733 - Added code to create a new folder (button or context menu).
18734 Use TreeView labeledit to change the name of the new folder.
18736 2006-07-14 Jackson Harper <jackson@ximian.com>
18738 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
18739 when the tree is scrolled we end editing.
18741 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
18743 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
18746 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
18748 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
18749 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
18750 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
18751 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
18752 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
18753 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
18754 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
18755 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
18756 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
18757 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
18758 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
18759 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
18760 ListViewItemSelectionChangedEventHandler.cs,
18761 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
18762 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
18763 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
18764 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
18765 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
18766 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
18767 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
18768 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
18769 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
18770 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
18771 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
18772 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
18773 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
18774 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
18775 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
18776 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
18777 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
18778 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
18779 WebBrowserNavigatingEventHandler.cs,
18780 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
18782 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
18784 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
18785 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
18786 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
18787 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
18788 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
18789 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
18790 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
18791 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
18792 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
18793 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
18794 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
18795 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
18796 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
18797 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
18798 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
18799 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
18800 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
18801 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
18802 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
18803 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
18804 ListViewItemStates.cs, MaskFormat.cs: Added
18806 2006-07-13 Jonathan Chambers <joncham@gmail.com>
18808 * PropertyGridView.cs: Fix keyboard navigation of drop down.
18809 Patch from eno for bug 78558.
18811 2006-07-13 Jackson Harper <jackson@ximian.com>
18813 * TreeView.cs: When an edit is finished make sure that the
18814 selected node is visible.
18815 - When setting the top/bottom use the scrollbars is_visible, so
18816 everything will be set correctly even if the tree isn't visible
18819 2006-07-13 Jackson Harper <jackson@ximian.com>
18821 * ComboBox.cs: Revert the item->index part of my previous patch.
18822 * TreeView.cs: Use LostFocus instead of Leave for detecting when
18823 the edit box has lost focus (duh).
18824 - Just make the edit box not visible when we get return, that will
18825 take the focus, which will call EndEdit
18826 * TreeNode.cs When we start editing, notify the treeview.
18828 2006-07-12 Jackson Harper <jackson@ximian.com>
18830 * ComboBox.cs: Clear out old items before setting the item list.
18831 This prevents databound controls from having their items added
18833 - Switch the combobox to use indices whereever possible instead of
18834 using Item's. This allows usto navigate through lists that have
18835 more then one item with the same string value (ie a, b, b, a).
18836 - Scroll the listboxes scrollbar when a non visible item is
18838 - Allow keypress to cycle through all the possible values. For
18839 example if you have b1, b2, b3 and hold down the B key all the
18840 values will be cycled through.
18842 2006-07-12 Jackson Harper <jackson@ximian.com>
18845 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
18846 this using the internal methods.
18847 * Control.cs: Add OnGotFocusInternal. A new method that allows
18848 controls to "override" OnGotFocus and change focus behavior if
18850 - Same thing for LostFocus
18851 * ComboBox.cs: Pass off focus to the text control properly.
18853 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
18855 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
18856 * FolderBrowserDialog.cs: Almost a complete rewrite.
18857 - Better support for Environment.Specialfolders
18858 - Added support for MWFVFS
18859 - Made setting SelectedPath work
18861 2006-07-12 Jackson Harper <jackson@ximian.com>
18863 * Control.cs: Optimze getting all the controls.
18865 2006-07-11 Jackson Harper <jackson@ximian.com>
18867 * ContainerControl.cs: Override SETFOCUS in the container control,
18868 so that it is not selected on mouse click.
18870 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
18872 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
18873 Hopefully we will have a better way once all of focus is complete.
18875 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
18877 * ThemeWin32Classic.cs: Commented out some debug code and fixed
18878 a compile error with csc.
18880 2006-07-11 Jackson Harper <jackson@ximian.com>
18882 * Control.cs: When hiding a control only select the next control
18883 if the current control was focused.
18884 - Don't handle enter/leave when setting/killing focus, this is
18885 done by the container control.
18886 - Remove is_selected, it's not needed anymore.
18887 - Add utility methods for selecting a child control, and for
18888 firing the Enter/Leave events.
18889 * ContainerControl.cs: When a control is activated fire the
18890 enter/leave events.
18891 - Don't wrap when processing the tab key, so that focus can be
18892 moved outside of the container.
18893 - Use the correct active control
18895 2006-07-11 Jackson Harper <jackson@ximian.com>
18897 * ComboBox.cs: Remove some debug code that was blinding me.
18898 * UpDownBase.cs: These controls actually aren't implicit, they are
18899 visible to the user.
18901 2006-07-10 Chris Toshok <toshok@ximian.com>
18903 * DataGrid.cs: move back to the is_adding boolean field. god i
18904 hate this is_editing/is_adding/is_changing stuff.
18906 2006-07-10 Chris Toshok <toshok@ximian.com>
18908 * DataGridTableStyle.cs: just check if the property type is bool.
18909 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
18910 Don't use CanRenderType.
18912 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
18913 if our text == NullText. Remove CanRenderType.
18915 * DataGridBoolColumn.cs: nuke CanRenderType.
18917 * DataGrid.cs: reenable some code to end the current edit inside
18918 of set_CurrentCell. This fixes the other 1.1.16 regression.
18919 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
18920 Also, remove the visible_row_count arg from CalcRowHeaders, since
18921 we don't need to worry about the actual height of the area.
18923 2006-07-10 Chris Toshok <toshok@ximian.com>
18925 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
18928 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
18929 the real sense of the IsInEditOrNavigateMode property (true =
18930 navigate, false = edit). Also, update OnKeyPress to reflect this.
18932 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
18933 column style exists, we still need to set its property descriptor
18934 to match up with our list manager.
18936 2006-07-10 Chris Toshok <toshok@ximian.com>
18938 * ThemeWin32Classic.cs: implement the new row/header painting
18939 approach. The parent row painting will likely go away and
18940 replaced with label controls, but the rest seems to work ok (and
18943 * Theme.cs: change the way we draw datagrid rows. we don't draw
18944 the row headers as a block now. Instead we draw them in the
18945 normal draw-row loop. Add some calls for drawing parent rows and
18948 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
18949 a default table style. Set the defaults from ThemeEngine.Current,
18950 not SystemColors. Fix lots of misc issues with property setters.
18952 * DataGrid.cs: move loads of style information out of this class
18953 as it's being duplicated with DataGridTableStyle. keep track of a
18954 special DataGridTableStyle for the properties we used to mirror
18955 here. Switch all the style properties to access this table style
18956 instead of instance fields of this class. Also add a internal
18957 class to represent parent rows (more needs to be stored here, like
18958 the selection state from the parent table, as well as the
18959 expansion state.) Also, for datasources with relations, do the
18960 right thing for collapse/expand, and add support for the
18961 navigation/parent row buttons.
18963 Lastly, fix the crash in the 1.1.16 build.
18965 * GridTableStylesCollection.cs: make the explicit interface
18966 implementations call the class's methods as opposed to duplicating
18969 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
18970 0 so the text doesn't jump around when we move the cursor.
18972 2006-07-10 Jackson Harper <jackson@ximian.com>
18975 * ListBox.cs: Match MS's ToString (this makes debugging focus
18976 stuff infinitely easier).
18978 2006-07-10 Jackson Harper <jackson@ximian.com>
18980 * Control.cs (SelectNextControl): When checking the control's
18981 parent use this instead of ctrl.parent so that null can be passed
18982 to SelectNextControl. (I have unit tests for this).
18983 - Remove unused var.
18985 2006-07-10 Chris Toshok <toshok@ximian.com>
18987 * CurrencyManager.cs: correct one regression, the removal of the
18988 finalType field. Also, add a MonoTODO on CanAddRows, implement
18989 Refresh() correctly, and fix some event emission in
18990 ListChangedHandler.
18992 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
18994 * FileDialog.cs: Don't use brackets for new folders if they exist
18995 under *nix. Instead use -(number of existing folders +1).
18997 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
19000 - Fixed really nasty bug #78771
19001 - Don't block the whole GUI when reading directories with a lot of
19002 entries. Use an other thread instead and call BeginInvoke to
19003 update the ListView in MWFFileView
19005 2006-07-07 Chris Toshok <toshok@ximian.com>
19007 * Control.cs (Dispose): release any Capture when disposing.
19009 2006-07-07 Chris Toshok <toshok@ximian.com>
19011 * LinkLabel.cs (Select): if we chain up to the parent, set
19012 focused_index to -1 so we'll search for the first available link
19013 the next time the user tabs into us. Also, if the direction is
19014 backward and focused_index == -1, start the search from the last
19017 2006-07-07 Chris Toshok <toshok@ximian.com>
19019 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
19020 is beyond the end of the text, don't do anything.
19021 (CreateLinkPieces): set our ControlStyles.Selectable based on
19022 whether or not we have any links.
19023 (Link.Invalidate): use a loop instead of foreach.
19024 (Link.set_Start): null out owner.sorted_links so it'll be
19025 recreated by CreateLinkPieces.
19027 2006-07-06 Chris Toshok <toshok@ximian.com>
19029 * LinkLabel.cs: revert the SetStyle change.
19031 2006-07-06 Chris Toshok <toshok@ximian.com>
19033 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
19034 (OnEnableChanged): s/Refresh/Invalidate
19035 (OnGotFocus): if we have a focused index already, refocus it (so
19036 if we mouse out/in to the window it'll focus the right link).
19037 (OnKeyDown): move the tab handling out of here.
19038 (OnLostFocus): don't set focused_index to -1, so we can refocus it
19039 when we lose focus.
19040 (OnMouseDown): don't Capture here - Control handles it. Also,
19041 focus the active link.
19042 (OnMouseUp): don't deal with Capture.
19043 (OnPaintBackgroundInternal): remove.
19044 (OnTextAlignChanged): CreateLinkPieces before calling the
19045 superclass's method.
19046 (OnTextChanged): call CreateLinkPieces before calling superclass's
19048 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
19050 (Select): implement this, moving the selection between different
19051 links, and call parent.SelectNextControl if we don't have another
19052 link to focus in the given direction.
19053 (CreateLinkPieces): call Invalidate instead of Refresh.
19055 2006-07-06 Chris Toshok <toshok@ximian.com>
19057 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
19058 new LinkLabel internals.
19060 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
19061 over pieces looking for active/focused/etc links. also, deal with
19062 runs of text (and links) with embedded \n's in them, and use
19063 MeasureCharacterRanges instead of MeasureString to figure out the
19064 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
19067 2006-07-04 Jackson Harper <jackson@ximian.com>
19069 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
19070 XKB or key auto repeat, do it manually. Without key auto repeat,
19071 when a key is held down we get key press, key release, key press,
19072 key release, ... with auto repeat we get key press, key press, key
19073 press ..., and then a release when the key is actually released.
19075 2006-07-03 Jackson Harper <jackson@ximian.com>
19078 * ThemeWin32Classic.cs: Tabs do not obey normal background color
19079 rules, they are always control color regardless of the background
19082 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
19084 * FileDialog.cs: Added internal class MWFConfig.
19085 Removed Registry support and replaced it with support for the new
19086 MWFConfig class. See MWFConfig comments for more information.
19088 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
19090 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
19091 rectangle. Added some patches from eno from bug #78490 and fixed
19092 the arrow position for small up and down CPDrawScrollButtons.
19094 2006-06-30 Jackson Harper <jackson@ximian.com>
19096 * InternalWindowManager.cs: Remove some debug code.
19097 * Form.cs: When an MdiParent is set to null, the window is
19098 "detatched" and becomes a normal window.
19099 * MdiClient.cs: Don't bring the new child form to the front until
19100 it is activated (setting it as active does this), this makes the
19101 previously active forms titlebar get redrawn as inactive.
19103 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
19105 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
19106 with later controls
19108 2006-06-29 Mike Kestner <mkestner@novell.com>
19110 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
19111 arrow in keynav state. Fixes #78682.
19113 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
19115 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
19116 order (fixes #78393)
19118 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
19120 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
19121 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
19122 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
19123 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
19124 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
19125 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
19126 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
19127 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
19128 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
19129 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
19130 enumerations (FlagsAttribute, SerializableAttribute, added/removed
19133 2006-06-28 Mike Kestner <mkestner@novell.com>
19135 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
19137 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
19140 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
19141 item lines from other area (It also makes BackColor consistent and
19142 compatible with .NET). Fixed bug #78564.
19144 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
19146 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
19147 Patch from Eno for #78555.
19149 2006-06-27 Chris Toshok <toshok@ximian.com>
19151 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
19153 * DataGridColumnStyle.cs: same.
19155 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
19157 * DataGridDrawingLogic.cs: nuke.
19159 2006-06-27 Chris Toshok <toshok@ximian.com>
19161 * DataGridTableStyle.cs: clean up the constructors, and build the
19162 list of child relations for this table. I have no idea if this is
19163 where we should be doing it (it probably isn't), but since we're
19164 already iterating over the properties..
19166 * DataGrid.cs: add row resizing. for now we add a DataGridRow
19167 struct and array for keeping track of row information, similar to
19168 what's shown in a hack on
19169 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
19171 * Theme.cs: be consistent about the naming of DataGrid methods,
19172 prefering ColumnWidths and RowHeights over columnsWidths and
19175 * ThemeWin32Classic.cs: same, and also add support for variable
19176 sized rows (and the +/- expansion icons for related rows).
19178 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
19180 * TextBoxBase.cs: Applied Eno's patch from #78660
19182 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
19184 * Form.cs (ScaleCore): We don't want to scale our form if it's
19185 state is minimized or maximized, but we still need to scale our
19186 child windows. Also, added try/finally block to ensure layout
19187 gets reset (Fixes #78697)
19189 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
19191 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
19193 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
19195 * Form.cs: Fixed c+p error and added check to resize form if minimum
19196 size is bigger than current size (Fixes #78709)
19198 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
19200 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
19202 2006-06-26 Mike Kestner <mkestner@novell.com>
19204 * ComboBox.cs: only do Keypress handling in the combo when there
19205 are items in the collection. Fixes #78710.
19207 2006-06-26 Chris Toshok <toshok@ximian.com>
19209 * Binding.cs: make this work bi-directionally. also, clear up
19210 other mixups between Push/Pull Data (e.g. we're supposed to pull
19211 data when validating).
19213 * BindingManagerBase.cs: trim some fully qualified collection
19216 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
19218 2006-06-23 Chris Toshok <toshok@ximian.com>
19220 * PropertyManager.cs: It appears (according to the unit tests)
19221 that PropertyManager doesn't use
19222 PropertyDescriptor.AddValueChanged to track propery value changes
19223 in its datasource, but uses the same scheme as Binding, where it
19224 looks for a <Property>Changed event and binds to it.
19226 Also, according to the docs, IsSuspended always returns false for
19227 a property manager with a non-null datasource.
19229 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
19231 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
19232 need to update the actual DialogResult. (Fixes #78613)
19234 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
19236 * Form.cs (ShowDialog): Release any captures before running the
19237 new message pump (fixes #78680)
19239 2006-06-22 Mike Kestner <mkestner@novell.com>
19241 * ListView.cs: Layout column widths properly in details mode even
19242 if HeaderStyle.None is set. Fixes #78691.
19244 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
19246 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
19248 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
19250 * Control.cs (ContainsFocus): Using new driver method to get focused
19251 window, instead of trying to use internal tracking var, which can
19252 recursion issues (Fixes #78685)
19253 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
19254 XplatUIWin32.cs: Added GetFocus method to return focused window
19256 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19258 * ColorDialog.cs: when the mouse button is pressed inside the color
19259 matrix, don't let the cursor move out of it until the button is
19260 released, which is the behavior on windows. Changed 'colours' by
19261 'colors' to use the same word consistently.
19263 2006-06-21 Chris Toshok <toshok@ximian.com>
19265 * DataGrid.cs: add in some basic navigation stuff (navigating to a
19266 child relation and back, using a stack). Also, remove
19267 GetDataSource and the code that calls it - it's not needed. Also,
19268 track CurrencyManager.ListName's removal.
19270 2006-06-21 Chris Toshok <toshok@ximian.com>
19272 * CurrencyManager.cs: push some of the original type checking from
19273 BindingContext.CreateBindingManager to here, and remove some of
19274 the finalType stuff. Need more tests to make sure I've got the
19275 ListName part right, and we might need more in SetDataSource.
19277 * PropertyManager.cs: add a ctor that takes just the datasource,
19278 and no property name. Make SetDataSource work with a null
19279 property_name, and make Current return the data_source if the
19280 property descriptor is null. this makes 'string foo = "hi";
19281 BindingContext[foo].Current' return "hi" as it should.
19283 * RelatedCurrencyManager.cs: make this code more generic - there's
19284 no reason the parent manager has to be CurrencyManager, and
19285 there's no reason to pass the DataRelation. It suffices to use a
19286 BindingManagerBase and PropetyDescriptor.
19288 * RelatedPropertyManager.cs: make a similar change here.
19290 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
19291 flower I knew it could be.
19293 2006-06-20 Chris Toshok <toshok@ximian.com>
19295 * PropertyManager.cs: the PropertyChangedHandler is invoked when
19296 data in the source has changed and we need to update the control,
19297 so s/PullData/PushData.
19299 * CurrencyManager.cs: Refresh is meant to update the control from
19300 data in the datasource. So, s/PullData/PushData.
19302 * BindingContext.cs: add more ugliness (we weren't handling the
19303 case where data_source = DataTable and data_member = column_name).
19305 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
19306 from the perspective of the datasource. PullData pulls from the
19307 control, PushData pushes to the control.
19309 2006-06-20 Chris Toshok <toshok@ximian.com>
19311 * BindingContext.cs: rewrite the CreateBindingManager code to
19312 handle navigation paths more or less properly. This could
19313 definitely stand some more work, in particular to push the
19314 recursion up to the toplevel. But that relies on fixes in other
19315 places (System.Data comes to mind).
19317 Also, move to a flat hashtable (and encode the twolevel nature of
19318 the dictionary into the hash key). This lets us implement the
19319 IEnumerable.GetEnumerator method.
19321 * RelatedCurrencyManager.cs: new class. Update our view based on
19322 our relation and our parent CurrencyManager's position.
19324 * CurrencyManager.cs: split out some logic from the ctor into
19325 SetView, so it can be called from the new RelatedCurrencyManager
19328 * RelatedPropertyManager.cs: new class. Update our datasource
19329 based on the position of our parent CurrencyManager.
19331 * PropertyManager.cs: split out some logic from the ctor into
19332 SetDataSource, so it can be called from the new RelatedDataSource
19333 subclass. Also, make the Current getter return the value
19334 of the PropertyDescriptor, not the data_source.
19336 * Binding.cs: no need to duplicate the string splitting code here.
19338 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
19341 - set_Enabled: OnEnabledChanged is not called if the inherited state
19342 of the control is not altered, even though we might be changing the
19343 internal state of the control (#78458)
19344 - set_Enabled: (Re)Moved the enabling/disabling of the window to
19345 OnEnabledChanged, to allow easy altering of any child window state
19346 - OnEnabledChanged: Added code to enable/disable driver window state
19347 - OnParentEnabledChanged: Instead of firing the event, call
19348 OnEnabledChanged, which will fire the event and also a) set driver
19349 window state and pass the enabled state to any grandchildren (#78458)
19351 2006-06-19 Jackson Harper <jackson@ximian.com>
19353 * InternalWindowManager.cs: We don't set the cursor explicitly
19354 thats done via the response to NCHITTESTs.
19355 - Don't need to adjust for titlebar heights anymore, the
19356 coordinates are coming in the correct coordinates now (see peters
19360 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
19362 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
19363 being translated relative to whole window, instead of client window.
19364 That caused broken offsets on mouseclick (and caused gas for our
19365 InternalWindowManager)
19367 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
19370 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
19371 - Undo(): Added replay of cursor move on DeleteChars action; added
19372 calling Undo() again if a recorded cursor move is invalid (to
19373 ensure that some action is performed on Undo)
19374 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
19376 2006-06-16 Jackson Harper <jackson@ximian.com>
19378 * MdiClient.cs: Instead of just sizing maximized windows when
19379 there is a resize we also have to adjust the Y of minimized
19380 windows, so they stay pinned to the bottom of the mdi container.
19381 - Eliminate separate tracking of the active control, we can just
19382 get this from the controls collection.
19383 - Paint the decorations for the newly activated titlebar so we get
19385 * InternalWindowManager.cs:
19386 * ThemeWin32Classic.cs: Minimized windows get all three buttons
19387 even if they are a tool window.
19389 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
19391 * TextControl.cs (Undo): Handle non-existent cursor locations in the
19392 undo buffer, these can happen when text was deleted and the cursor
19393 was recorded first. Since we will also have a recorded cursor
19394 after the delete this is not an issue. (Fixes #78651)
19396 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
19398 * AccessibleObject.cs: Remove dependence on Control.is_selected;
19399 instead properly track control states internally (allows us to
19400 remove is_selected from Control)
19402 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19404 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
19405 whose width is not a multiple of 8.
19407 2006-06-13 Jackson Harper <jackson@ximian.com>
19409 * MdiClient.cs: Only maximize the next child if the current one
19412 2006-06-13 Chris Toshok <toshok@ximian.com>
19414 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
19415 modified. Also, guard against grid or grid_drawing being null in
19418 * DataGrid.cs: Reformat tons of getters/setters. In the
19419 DataMember setter, just call SetNewDataSource instead of
19420 duplicating some of its functionality. In SetNewDataSource, don't
19421 check ListManager for null, since the property getter creates the
19424 * DataGridTableStyle.cs: don't set TableStyle or call
19425 SetDataGridInternal on the column here, it's done in
19426 GridColumnStylesCollection.Add.
19428 * GridColumnStylesCollection.cs: fix all the explicit interface
19429 implementations to just call our methods. Nuke AddInternal() and
19430 move the body of it to Add(). Also, add a call to
19431 column.SetDataGridInternal to Add().
19433 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
19434 base()+duplicate code. Also, use the Format property instead of
19435 format to generate an Invalidate ala MS. Lastly, create the
19436 textbox here, unconditionally.
19437 (set_Format): call Invalidate.
19438 (get_TextBox): no need to call EnsureTextBox.
19439 (Commit): remove the message box.
19440 (Edit) remove the call to EnsureTextBox.
19441 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
19442 (EnterNullValue): no need to check textbox for null.
19443 (HideEditBox): no need to check textbox for null.
19444 (SetDataGridInColumn): add the textbox to the grid's controls.
19445 (EnsureTextBox): nuke.
19447 2006-06-13 Jackson Harper <jackson@ximian.com>
19449 * MdiWindowManager.cs: Hook up to the maximized menus paint event
19450 and redraw the buttons when needed. Unhook when the window is
19452 * MainMenu.cs: Add an internal Paint event, the mdi window manager
19453 needs this so that it can redraw its buttons when the menu is
19455 * InternalWindowManager.cs:
19456 * Form.cs: The method order has changed for DrawMaximizedButtons,
19457 so that it can be a PaintEventHandler.
19459 2006-06-13 Jackson Harper <jackson@ximian.com>
19461 * MdiClient.cs: When we close a maximized mdi window, the next mdi
19462 window is activated and maximized, even if it wasn't before.
19463 - When a new window is activated repaint the decorations of the
19464 old one, so that it no longer has the Active "look" (the blue
19466 * InternalWindowManager.cs: Open up CreateButtons to base classes
19467 so they can recreate the buttons on state changes.
19468 - If a window is maximized give it all three buttons
19469 * MdiWindowManager.cs: Create the titlebar buttons when the state
19470 is changed, this is needed because a toolwindow will not have all
19471 three buttons until it is maximized.
19473 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
19475 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
19478 2006-06-12 Jackson Harper <jackson@ximian.com>
19480 * KeysConverter.cs: Make sure we handle the Ctrl special case
19481 if its the only key.
19483 2006-06-12 Jackson Harper <jackson@ximian.com>
19485 * Theme.cs: Add a method to get the size of a managed window
19487 * InternalWindowManager.cs: Remove the ButtonSize property, this
19488 should be retrieved from the theme.
19489 * MdiWindowManager.cs: Get the button size from the theme
19490 * ThemeWin32Classic.cs: Make the method to get the managed window
19491 titlebar button size public.
19492 - Handle the different button sizes of maximized toolwindows
19493 (should match any maximized window).
19494 - Get the titlebar height from the theme, not the WM (which gets
19495 it from the theme).
19497 2006-06-12 Jackson Harper <jackson@ximian.com>
19499 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
19500 event down to the mdi window manager.
19501 - Expose some extra stuff to base classes
19502 - Make sure to end the Capture on an NC Mouse up, so that we can
19503 get double clicks properly, and the sizing doens't stick.
19504 - When doing PointToClient contain it in the workable desktop
19505 area, this prevents windows from changing size when the cursor is
19506 pulled outside of the working area while sizing.
19507 * MdiWindowManager.cs: When we get a double click maximize the
19509 - Reset the cursor after handling mode changes.
19511 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
19513 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
19514 current desktop, instead of just assuming a 0, 0 origin. This
19515 is needed for our internal window manager, to know the top
19516 margin of the desktop
19518 2006-06-12 Chris Toshok <toshok@ximian.com>
19520 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
19521 we need this to get rid of the selected background in the bool
19523 (CancelEditing): move the ConcedeFocus call to above the Abort
19524 call. Also, set is_changing to false and invalidate the row
19525 header if we were changing before.
19526 (ProcessKeyPreviewInternal): remove, since noone outside this
19527 class calls it anymore. Roll the code into ProcessKeyPreview.
19528 (EndEdit): remove the internal version.
19529 (InvalidateCurrentRowHeader): make private.
19531 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
19532 Keys.Escape handling (and with it the last call to
19533 DataGrid.EndEdit from outside the class.)
19536 2006-06-12 Chris Toshok <toshok@ximian.com>
19538 * DataGridTextBox.cs (.ctor): isedit defaults to false.
19539 (OnKeyPress): set isedit to true.
19540 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
19541 already handled by the grid.
19543 * DataGrid.cs (set_CurrentCell): more work here. it's still not
19545 (set_DataSource): SetDataSource always returns true, so stop
19546 putting it in an if statement.
19547 (EndEdit): get rid of some {}'s
19548 (ProcessGridKey): return true in case Keys.Escape.
19549 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
19550 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
19551 PositionChanged, stopped connecting to CurrentChanged.
19552 (GetDataSource): simplify this a bunch.
19553 (SetDataSource): change return type from bool to void.
19554 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
19555 to this, and make sure we don't set ListManager.Position inside
19557 (OnListManagerItemChanged): if we're passed an actual index,
19560 * CurrencyManager.cs (set_Position): don't call PullData here.
19562 2006-06-09 Jackson Harper <jackson@ximian.com>
19564 * TreeNode.cs: Recalculate the visible order before doing the
19565 Expand/Collapse Below calls, because those calls generate an
19567 - Reduce calls to the TreeView property, which is mildly expensive
19568 by using a local var.
19569 * Form.cs: Layout the MDI child windows when creating the parent
19571 - Don't use the internal constructor anymore
19572 * MdiClient.cs: use the parent form width/height (if available)
19573 when laying out the child windows, we do this because the
19574 mdiclient isn't docked yet when the initial layout is done.
19575 - Don't need an internal constructor anymore.
19577 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19579 * FileDialog.cs: handle access errors when trying to create a folder
19580 or changing to a directory. No need to initialize out parameters.
19582 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19584 * FileDialog.cs: Append a number when creating a new folder if the
19585 folder already exists (use parenthesis instead of square brackets)
19587 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19590 - Disabled registry support for windows and added better registry
19591 error checking for other systems (need to investigate why it
19592 works perfectly on my system)
19593 - If a folder already exist show an error MessageBox instead of
19594 trying to create an indexed name.
19595 - Fixed a non intentional typo.
19597 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19599 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
19601 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19603 * FileDialog.cs: When creating a new folder don't crash if the
19604 folder already exists.
19606 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19608 * FileDialog.cs: Allmost a complete rewrite.
19609 - added a "virtual" file system that handles the differences
19610 between unix and windows file systems (especially the directory
19611 structure). Moved most of the directory and file handling code
19613 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
19614 UnixFileSystem and FSEntry.
19615 - Recently used folder/directory, size, location and used file names
19616 (file name ComboBox) are now stored in the registry and get read
19617 before the dialog shows up (fixes part 6 of bug #78446).
19618 - Creation of new folders/directories is now possible (context menu
19619 or ToolBar). Added TextEntryDialog for this that fills in the gap
19620 until ListView.LabelEdit works.
19621 - Fixed cursor handling (bug #78527) and focus handling for
19623 - Various "Search in" ComboBox enhancements. The content of the
19624 dropdown listbox now almost matches ms.
19625 - Changed the behaviour when the user switches to SpecialFolder
19626 Recent to show the ListView in View.Details.
19627 - Beside using the ToolBar to change the View property of the
19628 file ListView it is now possible to use the context menu too.
19630 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
19632 * ComboBox.cs: Don't create a new ObjectCollection when an item
19633 gets inserted. Just insert the item in the existing object_items
19636 2006-06-08 Jackson Harper <jackson@ximian.com>
19638 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
19639 that the treeview and root node checks are done also, this fixes a
19640 regression i caused in the unit tests.
19642 2006-06-07 Wade Berrier <wberrier@novell.com>
19644 * RichTextBox.cs: More ISO8859-1 -> unicode
19646 2006-06-07 Mike Kestner <mkestner@novell.com>
19648 * ComboBox.cs : use items to hold highlight/selection so that
19649 collection insertions don't require synchronization.
19651 2006-06-07 Jackson Harper <jackson@ximian.com>
19653 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
19654 routine. We now always keep the sized edge at the cursor instead
19655 of computing movement and adjusting rects. There is one buglet
19656 with this method though when the cursor is moved over area that
19657 the window can not expand too (such as the toolbars on the desktop).
19659 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19661 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
19662 here. Fixes crash on startup in AlbumSurfer.
19664 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
19666 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
19669 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19671 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
19672 statement to avoid calling XNextEvent which will block if another thread
19673 took the event that we were expecting. Fixes bug #78605.
19675 2006-06-07 Mike Kestner <mkestner@novell.com>
19677 * ListView.cs : isolated checkbox clicking from the selection logic.
19678 Toggle check state on item doubleclicks. Really fixes #78454 part2.
19680 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19682 * Form.cs: Check that the value passed to Form.DialogResult
19683 is a valid enum value.
19685 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19687 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
19688 Computer'. Clicking it in the network view goes to 'My Computer'.
19689 Added CIFS filesystem type. Display the mount point of filesystems.
19690 Avoid duplicate mount points (happens for me with CIFS);
19692 2006-06-06 Jackson Harper <jackson@ximian.com>
19694 * InternalWindowManager.cs: Draw the maximized windows buttons
19697 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19699 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
19700 all other dialogs. Fixes bug #78585.
19702 2006-06-06 Mike Kestner <mkestner@novell.com>
19704 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
19705 Only invalidate checkbox on checkstate changes to avoid flicker.
19706 * ListBox.cs : avoid unselect/select when clicking selected item.
19707 avoid reselection flicker for already multiselected items.
19710 2006-06-06 Jackson Harper <jackson@ximian.com>
19712 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
19713 the parent form so that the menu is removed if needed.
19715 2006-06-06 Mike Kestner <mkestner@novell.com>
19717 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
19718 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
19720 2006-06-06 Mike Kestner <mkestner@novell.com>
19722 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
19725 2006-06-06 Jackson Harper <jackson@ximian.com>
19727 * Control.cs: Use the property (instead of the field) to get the
19728 default cursor so it is instantiated correctly.
19729 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
19730 resizes so we need to manually repaint the window decorations here.
19731 - Set the titlebar button locations as soon as they are created,
19732 otherwise they are not set correctly on win32.
19734 2006-06-06 Chris Toshok <toshok@ximian.com>
19736 * CurrencyManager.cs (set_Position): call PullData before
19738 (AddNew): after calling IBindingList.AddNew, update our
19739 listposition, and call OnCurrentChanged/OnPositionChanged (without
19741 (OnCurrentChanged): remove the call to PullData from here.
19742 (OnItemChanged): remove the call to PushData from here.
19743 (OnPositionChanged): change the test from == null to != null to
19744 match the other methods.
19745 (ListChangedHandler): the grossest part of the patch. Implement
19746 this such that it passes the unit tests in CurrencyManagerTest and
19747 the output more or less matches that of MS's implementation.
19749 2006-06-06 Mike Kestner <mkestner@novell.com>
19751 * ListView.cs : only update check state on single click.
19752 * ThemeWin32Classic.cs : fix focus drawing for details view without
19753 fullrowselect. Fixes #78454.
19754 * XplatUIX11.cs : fix for double click emission.
19756 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
19758 * PropertyGridView.cs : Applied Atsushi's patch to fix
19759 font dialog bug (#78197).
19761 2006-06-05 Jackson Harper <jackson@ximian.com>
19763 * TreeNode.cs: Compute the next node for expanding/collapsing
19764 correctly. We now factor in nodes without a NextNode
19765 correctly. (Fixes somes cases in nunit-gui).
19766 * InternalWindowManager.cs: Set the bounds when updating the
19767 virtual position of a tool window.
19769 2006-06-05 Chris Toshok <toshok@ximian.com>
19771 * DataGrid.cs: rename cached_currencymgr to list_manager.
19772 (set_CurrentCell): move SetCurrentCell code here, and clean it up
19774 (CurrentRow, CurrentColumn): single accessors so we can make the
19775 cursor movement code a lot easier to understand.
19776 (CurrentRowIndex): implement this in terms of CurrentRow.
19777 (BeginEdit): clean this up a bit.
19778 (CancelEditing): sort out the is_editing/is_changing/is_adding
19780 (EndEdit): minor changes.
19781 (OnKeyDown): add a comment about a (most likely) unnecessary
19783 (OnMouseDown): cancel editing when we click on a row header. And
19784 use the CurrentRow setter, not CurrentCell.
19785 (ProcessDialogKey): directly call ProcessGridKey.
19786 (UpdateSelectionAfterCursorMove): factor out this common block of
19787 code (it's used everywhere that we move the cursor by updating row
19789 (ProcessGridKey): pretty substantial overhaul. Use the
19790 CurrentRow/CurrentColumn properties to make the code a lot more
19791 readable. Only use the CurrentCell property when we have to
19792 modify both row and column at once. Tab behavior is still broken,
19793 and Delete is untested.
19794 (Select): if we have no selected rows, set selection_start to
19796 (EditCurrentCell): rename EditCell this. It was only ever invoked
19797 with CurrentCell as the arg, so drop the arg and rename it.
19799 * DataGridColumnStyle.cs: clean up the constructors a little, and
19800 drop CommonConstructor().
19802 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
19803 actually get notified when the user hits it.
19804 (ProcessKeyMessage): *substantially* simplify this method.
19805 There's no reason (that I can see) for the textbox to be making
19806 calls into the datagrid at all. Remove all of them but the ones
19807 for Enter handling. those will take some more work.
19809 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
19810 calling HideEditBox.
19811 (HideEditBox): if we have an active textbox, render it invisible
19812 without causing a re-layout of the datagrid.
19814 2006-06-05 Mike Kestner <mkestner@novell.com>
19816 * ListView.cs : fix NRE crasher when focuseditem is cleared by
19817 collection changes by resetting it to Items[0]. Fixes #78587.
19819 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19821 * MessageBox.cs: if the height of the text is larger than the icon_size,
19822 use that. Fixes bug #78575.
19824 2006-06-05 Jackson Harper <jackson@ximian.com>
19826 * TreeView.cs: Fix line drawing when scrolling. To do this each
19827 node is basically responsible for drawing its entire horizontal
19828 area. When drawing a node it draws its parent node lines if
19830 - Adjust the clip area to the viewport rectangle
19831 - Fix Left/Right key handling to match MS. (It expand/collapses
19832 and moves to parents/first child but does not move selection to
19834 - Fix SetTop to work with new bound calculation code
19835 - When scrollbars are no longer needed we need to reset scrolling
19836 vars and recalculate the visible order so the redraw is correct
19837 * TreeNode.cs: We can't expand/collapse nodes with no children.
19839 2006-06-03 John Luke <john.luke@gmail.com>
19841 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
19842 so the colors work without dev packages
19844 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
19847 - Select: Implemented to just use activate. Seems to match MS
19848 behaviour closest. Documented to only do actual control walking
19849 based on it's parameters if in a container control so I moved
19851 - Removed selection check logic from our internal Select() method
19852 * ContainerControl.cs:
19853 - Select: Moved selection logic from Control here, since MS documents
19854 that containers obey the bool arguments. No longer calling base
19856 2006-06-02 Jackson Harper <jackson@ximian.com>
19858 * TreeView.cs: If the selected node isn't changed when we get
19859 focus update the previously selected node so that we see the
19862 2006-06-02 Mike Kestner <mkestner@novell.com>
19864 * ComboBox.cs: restructure grab and general mouse event handling.
19865 Make the composite control raise mouse events like it was a single
19866 control for leaves/enters/motion/up/down events. fix dropdown list
19867 coordinate mangling and refactor it into the scrollbar subclass to
19868 reduce code duplication. Fixes #78282 #78361 and #78457.
19870 2006-06-02 Mike Kestner <mkestner@novell.com>
19872 * ScrollBar.cs: remove Capture setting/clearing, as it happens
19873 automatically in the Control.WndProc.
19875 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19877 * FileDialog.cs: fix crash when running SharpChess, which sets the
19878 FilterIndex to 2 with only one Filter.
19880 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19882 * ToolBar.cs: add SizeSpecified property.
19883 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
19884 try to figure out our real size, otherwise fallback to what the
19887 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
19889 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
19890 * Control.cs (WndProc): MS always calls the DefWndProc to pass
19893 2006-06-01 Mike Kestner <mkestner@novell.com>
19895 * ListView.cs: revamp the focus management in ListView. It still
19896 causes churn of LostFocus/GotFocus emissions on clicks, but it's
19897 better than not handling focus at all. Will revisit when pdb feels
19898 the general focus handling is solid. Fixes #78526.
19900 2006-06-01 Jackson Harper <jackson@ximian.com>
19902 * TreeView.cs: Set the default border style in the constructor.
19903 - Move painting to use OnPaintInternal instead of capturing
19904 WM_PAINT, this is the correct way of doing things
19905 - UpdateBelow shouldn't invalidate the scrollbar area
19906 - Cap the top on update below in case the node was above the top
19907 of the viewport rectangle.
19908 - ExpandBelow and Collapse below need to obey Begin/End Update.
19909 * TreeNode.cs: Make is_expanded internal so the treenode
19910 collection can change it without firing the whole event chain.
19911 * TreeNodeCollection.cs: When clearing all the child nodes make
19912 sure to recalc the visible order.
19913 - Improve algo for remove the top node
19915 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
19917 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
19918 SendMessage directly calling window procedures, which in turn might
19921 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
19923 * Control.cs: Don't handle WM_SETFOCUS if the same window already
19924 has focus (works around X11 sending a FocusIn after our SetFocus)
19925 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
19927 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
19929 * Mime.cs: Fix for the NET_2_0 build.
19930 NameValueCollection needs StringComparer now.
19932 2006-05-31 Chris Toshok <toshok@ximian.com>
19934 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
19935 return (via an out parameter) the starting X of the column.
19936 (UpdateVisibleColumn): track change to FromPixelToColumn.
19937 (HitTest): add a ColumnResize case here.
19938 (DrawResizeLine): new function, probably poorly named.
19940 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
19941 only need to keep one reference.
19942 (set_ListManager): same.
19943 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
19944 Also, add support for HitTestType.ColumnResize.
19945 (OnMouseMove): add column resize behavior here, and change the
19946 cursor to the correct one as we move around the datagrid.
19947 (OnMouseUp): terminate the column resize if we're resizing.
19948 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
19949 for the current cell.
19950 (ConnectListManagerEvents): use cached_currencymgr.
19951 (DisconnectListManagerEvents): fill this in, using
19952 cached_currencymgr.
19953 (SetCurrentCell): remove cached_currencymgr_events handling.
19954 (SetDataMember): only call DisconnectListManagerEvents if
19955 cached_currencymgr is != null.
19956 (SetDataSource): same.
19957 (OnListManagerCurrentChanged): cached_currencymgr_events ->
19958 cached_currencymgr.
19960 2006-05-31 Jackson Harper <jackson@ximian.com>
19962 * BindingManagerBase.cs: Remove somedebug code that creeped into
19964 * TreeNode.cs: We get the indent level dynamically right now, so
19965 don't track it as a member.
19966 * TreeNodeCollection.cs: Make sure all nodes added to the list
19967 have parents, treeviews/topnodes setup properly.
19968 - Don't attempt to track indent level.
19970 2006-05-30 Jackson Harper <jackson@ximian.com>
19972 * BindingContext.cs: Create the currency manager tables here.
19973 This allows us to more easily create null tables (when bad data
19974 members are used), and more easily create related currency
19976 * CurrencyManager.cs: All the table creation stuff is done by the
19977 binding context now.
19978 - Current should throw an exception if listposition is -1.
19979 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
19982 2006-05-30 Mike Kestner <mkestner@novell.com>
19984 * ListView.cs: allow reexpansion of zero-width column headers.
19987 2006-05-28 Chris Toshok <toshok@ximian.com>
19989 * CurrencyManager.cs (get_Current): after the late binding
19990 listposition = -1 fix, we need to guard against it here and return
19991 null, otherwise we raise an exception (which is swallowed
19992 elsewhere, and breaks datagrid databinding.)
19994 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
19996 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
19997 than WM_SYSKEY, don't throw if get something unexpected (#78507)
19999 2006-05-26 Jackson Harper <jackson@ximian.com>
20002 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
20003 values, it's faster and it's all we care about (we don't care if
20004 the names aren't equal).
20005 * KeyboardLayouts.cs: Eliminate some dead code.
20007 * X11Keyboard.cs: Lazy init keyboard detection.
20008 - Cleanup access modifiers a little.
20010 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20012 * XplatUIX11.cs: Once again, attempting to get layout just right.
20014 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
20016 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
20017 the sizes of each link section, that will result in sizes that
20018 match DrawString's layout (Fixes #78391)
20020 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
20022 * FileDialog.cs: If AddExtension property is true autocomplete the
20023 extensions in SaveFileDialog correctly. Fixes bug #78453.
20024 Set MyNetwork and MyComputer to "C:\" for windows. This should
20025 fix part 8 of bug #78446 for now.
20027 2006-05-26 Chris Toshok <toshok@ximian.com>
20029 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
20030 invalidate the current row header if we need to, but presumably
20031 we'll invalidate the row corrsponding to the bounds or
20033 (GridHScrolled): switch back to this method, as it's part of the
20034 public api. *sigh*.
20035 (GridVScrolled): same.
20036 (OnMouseWheel): hack up something that more or less works. Call
20037 GridHScrolled/GridVScrolled directly, instead of duplicating much
20038 of their code here.
20039 (EnsureCellVisibility): reinstate a bunch of this code, since we
20040 can't just set the scrollbar Value and expect to do all the work
20041 in the ValueChanged handler. Also, Call Update() after scrolling
20042 in one direction so the other XplatX11.ScrollWindow call has the
20043 proper stuff in the proper places.
20044 (EditCell): set is_editing to true before calling .Edit.
20046 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
20047 don't bother comparing first.
20048 (OnKeyPress): call grid.ColumnStartedEditing before calling
20049 base.OnKeyPress. this will set is_changing and invalidate the row
20050 header if necessary.
20051 (ProcessKeyMessage): for WM_CHAR messages, call
20052 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
20055 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
20056 it's done in the DataGrid.
20057 (NextState): call grid.ColumnStartedEditing, which takes care of
20058 invalidating the row header (and setting is_changing).
20060 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
20061 here. it's done in the DataGrid.
20063 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20065 * Control.cs: allow changing the cursor when the mouse position is
20066 out of bounds but Capture is set.
20067 * LinkLabel.cs: handle the case when the mouse button is pressed on the
20068 linklabel but released somewhere else.
20070 2006-05-25 Jackson Harper <jackson@ximian.com>
20072 * TreeView.cs: When we get focus if there is no selected node make
20074 - Remove some uneeded setup code from Draw.
20075 * TreeNodeCollection.cs: If the tree doesn't have a top node when
20076 a new node is inserted make the new node the top.
20078 * Timer.cs: Use Utc time so that no local time zone stuff needs to
20079 be used (should be faster).
20081 2006-05-25 Chris Toshok <toshok@ximian.com>
20083 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
20084 problem with the last commit.
20086 2006-05-25 Chris Toshok <toshok@ximian.com>
20088 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
20089 need the invalidate call here, while scrolling right-to-left via
20090 the left arrow key (i.e. moving the editing cell while scrolling).
20092 * DataGrid.cs (.ctor): remove the initialization of
20093 ctrl_pressed/shift_pressed. We no longer track them using key
20094 up/down handlers, but by using Control.ModifierKeys. Also, switch
20095 to using ValueChanged handlers on the scrollbars instead of
20096 Scrolled event handlers. This simplifies a bunch of the scrolling
20098 (GridHValueChanged): rename from GridHScrolled, and change it to
20099 work with the new event args.
20100 (GridVValueChanged): same.
20101 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
20102 (OnMouseWheel): actually scroll the datagrid. Don't change the
20104 (ProcessGridKey): correct all the keyboard navigation stuff I
20105 could find. Ctrl up/down/left/right/home/end work now.
20106 (EnsureCellVisibility): correct method name spelling. Also,
20107 simplify this a touch by not explicitly calling the
20108 ScrollToRow/ScrollToColumnInPixels methods. We just set the
20110 (OnKeyUpDG): no need for this method now.
20112 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20114 * LinkLabel.cs: display the OverrideCursor when hovering the label.
20117 2006-05-25 Chris Toshok <toshok@ximian.com>
20119 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
20122 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
20124 * Application.cs: Moved setting of is_modal and closing to before
20125 we create the control, to allow the event handlers called as a
20126 result of creation affect closing. Also removed Gonzalo's previous
20127 change to setting DialogResult, the behaviour has been moved to
20130 - ShowDialog(): Removed explicit creation of the form, let RunLoop
20132 - ShowDialog(): If no dialog result is set, we need to return Cancel
20133 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
20134 the close is cancelled
20136 2006-05-25 Jackson Harper <jackson@ximian.com>
20138 * StatusBar.cs: We only need to update the sizes of the other
20139 panels when we have auto size contents. Also we are only updating
20140 the contents of the panel, not the borders, so compensate for the
20141 border width (TODO: get this width from the theme somehow).
20142 * TreeView.cs: Scrollable is true by default
20143 - Use invalidate instead of refresh where needed
20144 - Factor the scrollable value into scrollbar updating
20145 - Update the scrollbars if the Scrollable property is altered
20146 - Update the selected node if its ImageIndex is changed
20147 - Handle null nodes in UpdateNode (mainly so we don't have to
20148 check if selected is null when updating it
20149 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
20150 are factored into the visible count
20151 - Use VisibleCount for clarity in the code
20152 - When the font is changed we need to recurse through all the
20153 nodes and invalidate their sizes
20155 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20157 * Application.cs: set the DialogResult to fixed when the main form is
20158 hidden or destroyed while being modal.
20160 2006-05-25 Miguel de Icaza <miguel@novell.com>
20162 * Theme.cs: Use Tangoified messagebox icons.
20164 (GetSizedResourceImage): Also cope with width = 0 and do not
20165 trigger a warning in that case (0 means "give me your icon from
20166 the resouce, no special size needed).
20168 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
20170 * Application.cs: Leave runloop if the the main modal form is
20171 hidden (fixes #78484)
20173 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
20175 * BindingContext.cs : reject null datasource in Contains() and
20177 * CurrencyManager.cs : check data_member validity when data_source
20178 is dataset. When it is late binding, the initial position is -1.
20180 2006-05-24 Jackson Harper <jackson@ximian.com>
20182 * TreeNodeCollection.cs: Dont't recalculate the visible order on
20183 inserted nodes that aren't visible. This changes the
20184 max_visible_order which confuses scrollbar settings.
20185 - Use the enumerator to get the prev node instead of duplicating
20187 * TreeView.cs: Use new method for setting scrollbar values
20188 - Don't set the bounds every time the scrollbar is updated
20189 - When updating below the root node use an invalidate instead of a
20190 refresh to prevent the child controls (scrollbars) from being
20191 refreshed. (UpdateBelow still needs to be reworked anyways).
20192 - Reenable SetBottom now that visible orders are set correctly,
20193 added some debug code incase we ever get bad values there again.
20194 - Set the scrollbar max to 2 less then the max value, this
20195 compensates for the max value being one above the node count, and
20196 for scrollbars adding one extra "notch".
20197 - When drawing image nodes if there is an imagelist we draw the
20198 first image in the list if the supplied image index is out of the
20199 image list's bounds.
20201 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
20203 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
20204 we receive a size change from the WM (Fixes #78503)
20206 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
20208 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
20209 rectangle (Fixes #78501)
20211 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
20214 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
20216 - Fixed MouseMove to no longer switch pressed state unless the left
20217 mouse button is pressed. Atsushi provided the original patch (#78485)
20219 2006-05-24 Jackson Harper <jackson@ximian.com>
20221 * ScrollBar.cs: New internal methods that allow us to change a
20222 couple values on the scrollbar (the most common case is maximum
20223 and large change) without getting multiple invalidates.
20225 2006-05-24 Chris Toshok <toshok@ximian.com>
20227 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
20228 (Edit): save off the original state in oldState, and set
20229 grid.is_editing to true.
20230 (OnKeyDown): abort editing if escape is pressed. also, call
20231 NextState if space is pressed.
20232 (OnMouseDown): call NextState.
20233 (NextState): factor out shared code from OnKeyDown and OnMouseDown
20234 here. Also, only invalidate the row header once (on the initial
20235 is_changing switch) to save on redraws.
20237 2006-05-24 Chris Toshok <toshok@ximian.com>
20239 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
20240 if the value in the cell is different than it was before. This
20241 keeps us from triggering a layout when we move around a datarid
20242 with a highlighted cell.
20243 (Edit): suspend layout when creating/positining the text box, and
20244 resume passing false so we don't ever actually re-layout.
20245 (ReleaseHostedControl): same.
20246 (EnsureTextBox): reformat slightly, and set WordWrap to false.
20248 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
20249 control-key sequences should go to the datagrid - remove that
20250 lock. Also, modify the conditions under which we move between
20251 cells when moving the cursor within a cell, and remove the "this"
20252 and "base" from field accesses. We weren't even consistent, given
20253 they all were in the base class.
20255 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
20257 * Binding.cs : (.ctor)
20258 An obvious NRE fix for BindingTest.CtorNullTest().
20260 2006-05-23 Chris Toshok <toshok@ximian.com>
20262 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
20263 them between lines. This fixes some quirks editing cells in the
20266 2006-05-23 Jackson Harper <jackson@ximian.com>
20268 * TreeView.cs: Use begin/end update when doing expand/collapse all
20269 so that we don't get flicker on the scrollbar.
20271 2006-05-23 Jackson Harper <jackson@ximian.com>
20273 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
20274 treenode calculations to be independant of the painting code. To
20275 do this nodes track a visible order which is calculated by the
20277 - Call new methods for expanding/collapsing nodes. These methods
20278 use scrollwindow so we don't have to update everything below the
20280 * TreeView.cs: Refactored drawing and scrolling code. We don't
20281 need to update nodes when drawing anymore or calculate scrollbar
20283 - Added new methods for expanding/collapsing nodes. These methods
20284 use ScrollWindow so as to not have to redraw all the nodes below.
20285 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
20286 we add/remove nodes or sort.
20287 - Handle removing the selected and the top node properly.
20289 2006-05-23 Chris Toshok <toshok@ximian.com>
20291 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
20292 maybe this should actually happen in the datagrid code?
20293 (EndEdit): no need to invalidate anything, given that
20294 ReleaseHostedControl causes the datagrid to relayout, which
20295 invalidates everything anyway.
20297 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
20298 in SetCurrentCell).
20299 (set_SelectionBackColor): call InvalidateSelection instead of
20301 (set_SelectionForeColor): same.
20302 (BeginEdit): Flesh this out a bit.
20303 (CancelEditing): only do any of this if we're editing/adding.
20305 (OnMouseDown): there's no need to cancel editing here, it's done
20307 (SetCurrentCell): only invalidate the current row header if it's a
20308 different row than the new one.
20309 (ShiftSelection): fix this to work like MS does.
20310 (ResetSelection): factor out the invalidation of selected_rows to
20311 InvalidateSelection.
20312 (SetDataSource): cancel any editing that's going on.
20314 * DataGridColumnStyle.cs
20315 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
20316 call the non-interface version.
20318 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
20319 header rectangle with the clip rectangle so we don't redraw the
20320 entire header for just a small area. Gets rid of the last flicker
20321 when horizontally scrolling.
20322 (DataGridPaintRow): same.
20324 2006-05-23 Mike Kestner <mkestner@novell.com>
20326 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
20327 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
20328 poorly placed checkbox on the MS control. Fixes Alex's unfiled
20329 Critical bug report.
20331 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
20333 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
20334 and this fixes #78493
20336 2006-05-23 Miguel de Icaza <miguel@novell.com>
20338 * Theme.cs (GetSizedResourceImage): Scale images if the proper
20341 * FileDialog.cs: Do not change the background for the side bar as
20342 it wont work nicely with the theme, and also reduces the artifacts
20343 in rendering the icons (which I want to fix too).
20345 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
20346 resources, not resgen resources.
20348 (PlatformDefaultHandler): Pull images using the new API.
20350 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
20352 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
20353 a reference to the hwnd and will not remove it unless there are
20354 no pending exposures (fixes #78341)
20355 * XplatUI.cs: Improved debug
20357 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
20359 * MenuAPI.cs : don't handle OnClick event when it was not the left
20360 button. Fixed bug #78487.
20362 2006-05-23 Mike Kestner <mkestner@novell.com>
20364 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
20365 prefer submenus to the top menu for item lookup, to avoid popping down
20368 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
20370 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
20371 Graphics.FillRectangle as the visual results are really bad (even
20372 on win). We now draw perfect arrows (and perfect shadows when the
20373 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
20374 Pen.DashPattern to draw the dots of each line.
20376 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
20378 * FileDialog.cs: Update the filename combobox when navigating through
20379 the ListView with the cursor keys. Fixes part 7 of bug #78446.
20381 2006-05-22 Mike Kestner <mkestner@novell.com>
20383 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
20386 2006-05-22 Mike Kestner <mkestner@novell.com>
20388 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
20389 requests. Fix a misspelled parameter and a copy paste exception error
20392 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
20394 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
20395 to get the same width/height (5/13) on X11 as the default font has on
20396 win32. This means that our DefaultFont emSize is smaller than the
20397 the MS SWF equivalent (even thought the width/height stays the same)
20399 2006-05-20 Jackson Harper <jackson@ximian.com>
20402 * MdiWindowManager.cs:
20403 * InternalWindowManager.cs: Make sure to use the border width from
20406 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
20408 * PrintDialog.cs: Implements printer details
20410 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
20412 * FileDialog.cs: Added focus handling for PopupButtonPanel.
20413 Fixes part 1 and 2 of bug #78446
20415 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
20417 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
20418 instead of sticking to the first ever calculated value
20420 2006-05-19 Mike Kestner <mkestner@novell.com>
20422 * ComboBox.cs: fix mouse motion selection to use MousePosition and
20423 PointToClient, since Capture is set. Fixes #78344.
20425 2006-05-19 Mike Kestner <mkestner@novell.com>
20427 * ListView.cs: match MS behavior in Details view where items are not
20428 drawn if Columns.Count == 0.
20429 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
20430 Use a separate pen to draw the check, since changing the width affects
20431 the box as well. Fixes #78454.
20433 2006-05-18 Miguel de Icaza <miguel@novell.com>
20435 * ListView.cs: ArgumentOutOfRangeException, single versions of the
20436 exception should throw the name of the invalid argument.
20438 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
20439 there are no files listed.
20441 2006-05-18 Jackson Harper <jackson@ximian.com>
20443 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
20446 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20448 * Control.cs: Brought back our old UpdateZOrder method as a private
20449 function and switched our calls from UpdateZOrder to the new one.
20450 This fixes the Paint.Net canvas disappearing bug.
20452 2006-05-18 Jackson Harper <jackson@ximian.com>
20455 * ThemeWin32Classic.cs:
20456 * InternalWindowManager.cs: Move the drawing into the theme,
20457 expose everything the theme should need from the window manager.
20459 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20461 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
20462 from the call to NativeWindow to avoid walking up the parent chain
20463 further than needed (speeds up setting cursors and avoids setting
20464 the wrong cursor if a parent has another cursor defined)
20465 * Cursor.cs: When loading an icon as cursor, MS uses the center of
20466 the icon as hotspot, not what's contained as hotspot in the icon
20467 file. This fixes the perceived drawing offset seen with Paint.Net
20469 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20472 - Store the calculated rectangle in Hwnd object and use it when
20473 setting the client size
20474 - Force Toolwindows to always be type Dock, to ensure they're on top
20476 2006-05-18 Mike Kestner <mkestner@novell.com>
20478 * ComboBox.cs: first pass at ComboBox rework. Layout is more
20479 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
20480 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
20481 Substantial refactoring to remove confusing nested classes. Coding
20482 standard and Get+Set->property refactorings. Shift to index based
20483 highlighting in ComboListBox instead of constantly using IndexOf and
20484 Items[]. Add invalidations on resize for DropDownList to fix ugliness
20485 in FileDialog growth. Draw borders manually since Simple mode needs
20486 to look like two independent controls. Make listbox border
20487 conditional to DropDownStyle. Improved OwnerDraw support.
20489 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
20491 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
20492 Don't set the disposed graphics to null, so we can throw the "right"
20493 exception if the graphics is reused later (added a flag to avoid
20494 double disposing). Some behaviours are different under 2.0 and are
20495 filled under bug #78448.
20497 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
20499 * Control.cs: When double-buffering is enabled, we need to reset
20500 our graphics context between paint calls. Otherwise, any
20501 transformations and other alterations on the context will
20502 become cumulative (#77734)
20504 2006-05-18 Mike Kestner <mkestner@novell.com>
20506 * ListView.cs: do focused item selection like MS on clicks.
20507 Rework focus handling for ItemControl so LostFocus invalidates as
20509 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
20510 the ListView ItemControl has focus.
20512 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
20514 * XplatUIX11.cs: If client_window ends up being width or height zero
20515 due to border settings, move it off window inside whole_window (#78433)
20517 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
20519 * Mime.cs: Shrink the mime file cache correctly.
20521 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
20523 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
20525 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20527 * XplatUIX11.cs (AddExpose): More sanity checks
20529 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20532 - AddExpose: Don't add expose ranges outside the size of our
20534 - Cast opacity values to Int32 to avoid crashes with certain
20536 - Added disabled code paths that protect against illegal cross-
20537 thread painting (Developers.exe)
20539 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20541 * ProgressBar.cs: Invalidate the control when it's resized
20542 since block size is based on control size. (#78388)
20544 2006-05-16 Miguel de Icaza <miguel@novell.com>
20546 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
20547 of setting the incoming argument to the "reset" value, we set the
20548 this.datamember to string.empty (before we were invalidating the
20553 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20555 * Form.cs: Only apply transparency settings after the form
20556 is created. (Fixes #77800)
20558 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20560 * ApplicationContext.cs: Grab the HandleDestroyed event so
20561 we know when to fire OnMainFormClosed
20563 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20565 * Application.cs: Introduced sub-class to allow tracking of
20566 threads and centralized triggering of the event mess for
20567 ThreadExit, AppExit, etc.. (#76156)
20569 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
20572 - Do not return a null icon index value for a mime subclass.
20573 Instead try the main mime type class too.
20574 - Seems that some newer distributions don't have a link to some
20575 gnome default icons anymore. So check the default gnome dir too.
20578 2006-05-16 Jackson Harper <jackson@ximian.com>
20580 * MdiClient.cs: Don't paint the parent background image if we have
20581 our own background image.
20583 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
20586 - PerformLayout: Do not shrink space filled by DockStyle.Fill
20587 controls, all filled controls are supposed to overlap (#78080)
20588 - UpdateZOrder is supposed to update the control's z-order in the
20589 parent's z-order chain. Fixed to behave like that
20590 - BringToFront: Removed obsolete code
20591 - SendToBack: Simplyfied
20592 - SetChildIndex: Trigger layout calculations when Z-order changes
20593 since layout is done by z-order
20595 2006-05-16 Chris Toshok <toshok@ximian.com>
20597 [ fixes bug #78410 ]
20598 * DataGrid.cs (set_AlternatingBackColor): use
20599 grid_drawing.InvalidateCells instead of Refresh().
20600 (set_BackColor): call grid_drawing.InvalidateCells.
20601 (set_BackgroundColor): use Invalidate instead of Refresh.
20603 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
20604 invalidate the cell area.
20606 2006-05-15 Chris Toshok <toshok@ximian.com>
20608 [ fixes bug #78011 ]
20609 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
20610 on to DataGridPaintRow.
20611 (DataGridPaintRow): take a clip argument, and only draw the cells
20612 which intersect it. same with the not_usedarea.
20614 * Theme.cs (DataGridPaintRow) add @clip parameter.
20616 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
20617 XplatUI.ScrollWindow.
20618 (ScrollToRow): same.
20620 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
20621 with last column which was causing a gray swath to appear with the
20622 XplatUI.ScrollWindow code.
20624 2006-05-15 Chris Toshok <toshok@ximian.com>
20626 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
20627 use XplatUI.ScrollWindow.
20628 (VerticalScrollEvent): use XplatUI.ScrollWindow.
20630 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
20632 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
20634 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
20636 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
20637 file since there are no equivalent X11 cursors
20639 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
20641 * MonthCalendar.cs : DateTimePicker should reflect selected date
20642 on mouse*up*, not mouse*down*. Fixed originally reported part of
20645 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
20647 * TabControl.cs : When argument index is equal or more than tab
20648 count, just ignore. Fixed bug #78395.
20650 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
20652 * Control.cs: Dispose all child controls when control is diposed (#78394)
20654 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
20656 * ColorDialog.cs: Finally it is possible to select the color with
20659 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
20661 * PrintDialog.cs: Fix typo
20663 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
20665 * PrintDialog.cs: PrintDialog is not resizable
20666 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
20667 color. Made some ToolBar drawing methods protected virtual.
20669 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
20671 * PrintDialog.cs: Implementation of the PrintDialog
20673 2006-05-12 Chris Toshok <toshok@ximian.com>
20675 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
20676 thumb, instead use MoveThumb. This has the side effect of making
20677 most of the other thumb moving machinery use MoveThumb as well.
20678 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
20679 need to actually invalidate the rectangle where the new thumb will
20681 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
20682 We force an Update() after, so it's not as fast as it could be,
20683 but at least there's zero flicker and no droppings.
20684 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
20685 (UpdateThumbPos): add another argument (dirty), which says whether
20686 or not to calculate/add dirty regions which we later invalidate.
20687 For cases where we know we're going to use MoveThumb, we pass
20688 false for this. Otherwise, pass true.
20690 2006-05-12 Jackson Harper <jackson@ximian.com>
20692 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
20695 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
20697 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
20698 and GetClipRegion methods and UserClipWontExposeParent property.
20699 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
20700 overriding UserClipWontExposeParent property, setting to false, since
20701 Win32 handles the required expose messages to draw our clipped parent
20703 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
20704 PaintEventStart to set the user clip region if set.
20706 - Now internally tracking the Region for the control since we need to
20707 store it if the handle is not yet created and only set it when it
20708 becomes created. Before setting the region forced handle creation
20709 - Added code to draw the parents underneath a user-clipped region
20710 * Hwnd.cs: Added UserClip property
20712 2006-05-12 Chris Toshok <toshok@ximian.com>
20714 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
20715 (set_Maximum): same.
20716 (set_Minimum): same.
20717 (set_SmallChange): same.
20718 (OnMouseUpSB): remove the call to refresh when releasing the
20719 thumb. We shouldn't need it.
20721 2006-05-12 Miguel de Icaza <miguel@novell.com>
20723 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
20724 AutoSize set to None, we do not need to relayout everything, we
20725 just need to invalidate the current region.
20727 (Draw): Do not draw the entire ClientArea, just redraw the
20728 clip area being passed.
20730 * MdiClient.cs: Make MdiClient constructor with the Form argument
20733 2006-05-12 Jackson Harper <jackson@ximian.com>
20735 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
20736 parents background image, but strangely not their own.
20737 - (DrawStatusBarPanel): Take into account horizontal alignment
20738 when drawing the strings and icons.
20740 2006-05-12 Mike Kestner <mkestner@novell.com>
20742 * ListBox.cs: avoid invalidations for focus when the collection is
20745 2006-05-12 Chris Toshok <toshok@ximian.com>
20747 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
20748 invalidate the entire thumb area. Call InvalidateDirty which
20749 limits the redraw to the thumb itself and surrounding pixels.
20751 * XplatUIX11.cs (ScrollWindow): optimize copying.
20753 2006-05-12 Chris Toshok <toshok@ximian.com>
20755 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
20756 Figure out the positioning/layout in a single pass instead of
20757 multiple recursive invocations. Speeds up the initial display of
20758 the data grid. Also, make many things private that were
20759 originally public but unused outside this class.
20761 2006-05-11 Jackson Harper <jackson@ximian.com>
20763 * MdiClient.cs: Improved layout code.
20765 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
20767 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
20768 not SelectedObject.
20770 2006-05-11 Chris Toshok <toshok@ximian.com>
20772 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
20773 union of that will always be {0,0,width,height}.
20775 2006-05-11 Jackson Harper <jackson@ximian.com>
20777 * Form.cs: Match MS's DefaultSize for forms (they must have
20778 changed the size in sp2).
20780 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
20782 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
20784 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
20786 * TextControl.cs : Fixed bug #78109. This incorrect position
20787 comparison caused crash on automatic line split.
20788 * TextBoxBase.cs : reduce duplicate code.
20790 2006-05-10 Jackson Harper <jackson@ximian.com>
20792 * MdiClient.cs: Active form is only sent to the back when using
20793 the Next form functionality, when a form is clicked the current
20794 active shouldn't be sent to the back.
20795 - Layout the mdi windows when the container is first made visible.
20796 * Form.cs: Give the MdiClient a ref to the containing form when we
20799 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
20801 * LinkLabel.cs : link_font could be uninitialized, so populate one
20802 before actual use. Fixed bug #78340.
20804 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
20806 * XplatUIX11.cs : clipboard format native value is IntPtr.
20809 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
20812 - Instead of showing context menus directly we send WM_CONTEXTMENU,
20813 which is passed up the parent chain by DefWndProc
20814 - We now handle WM_CONTEXTMENU to display any menu, or pass it
20815 to DefWndProc (#77956)
20816 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
20818 2006-05-10 Jackson Harper <jackson@ximian.com>
20820 * MdiClient.cs: We need to remove the controls from the mdi
20821 collection, when we close the window.
20822 * MdiWindowManager.cs: Special handling of closing mdi windows.
20823 * InternalWindowManager.cs: Make the close method virtual so the
20824 mdi window manager can handle it specially.
20826 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
20829 - Recalculate grid when the data source has changed
20830 - Matches styles provided by user from all data sources types
20831 * DataGridTableStyle.cs: For columns that provided by the user set the
20832 with the preferred value is there was unassigned.
20833 * CurrencyManager.cs: throw OnItemChanged event
20835 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
20837 * PictureBox.cs: Don't animate until handle is created. Start animation
20838 when handle is created.
20840 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
20842 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
20844 * XEventQueue.cs: We don't need to provide the extra info
20846 2006-05-10 Jackson Harper <jackson@ximian.com>
20848 * MdiClient.cs: If the mdi clients parent form has a background
20849 image set, we draw that background image for the mdi area's
20852 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
20854 * TextBoxBase.cs: Set IBeam cursor (#78347)
20856 2006-05-10 Mike Kestner <mkestner@novell.com>
20858 * ToolBar.cs: fix some text padding issues with ButtonSize
20859 calculation. Update the default size to match MS documentation.
20860 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
20861 button size. Fixes #78296.
20863 2006-05-10 Mike Kestner <mkestner@novell.com>
20865 * ListBox.cs: use is_visible for scrollbar positioning in case the
20866 control isn't on screen yet. Fix off by one with Right vs Width
20867 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
20869 2006-05-10 Jackson Harper <jackson@ximian.com>
20871 * X11Dnd.cs: Drop to a control with another control on top of it.
20872 * ToolBar.cs: Work on a copy of the buttons list, so that it can
20873 be modified in click handlers. TODO: Look for similar problems in
20876 2006-05-09 Jackson Harper <jackson@ximian.com>
20878 * Form.cs: Window managers need the old window state when setting
20880 * InternalWindowManager.cs: Allow the base mdi window manager to
20881 handle more of the MDI only stuff (like maximize buttons).
20882 * MdiWindowManager.cs: Fix some snafus in changing the window
20883 state. Add all the menu functionality, for both popup and
20885 * MdiClient.cs: When a new form is selected the currently
20886 activated form is sent to the back, this matches MS.
20887 - Implement a new method to activate the next mdi child window.
20889 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
20892 - Added new InternalCapture method to allow controls to prevent
20893 the capture behaviour on the click handlers
20894 - Switched to use InternalCapture
20896 - Using InternalCapture to prevent mouse captures from being released
20897 on mouse button release (Fixes #78100)
20898 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
20899 returns Form borders if a caption is present. (Fixes #78310)
20901 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
20903 * TreeNode.cs: Changed serialization .ctor to not require every field
20904 to be present. (#78265)
20905 * OwnerDrawPropertyBag.cs: Added serialization .ctor
20907 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
20909 * MimeIcon.cs: for is faster than foreach for strings.
20911 2006-05-05 Mike Kestner <mkestner@novell.com>
20913 * CheckedListBox.cs: update check handling code to not use selected.
20914 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
20915 behavior for visual feedback, motion response, shift/ctrl handling,
20916 and properly deal with all 4 selection modes. Updates to bounds
20917 handling logic. Add scroll wheel support. [Fixes #77842]
20919 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
20922 - Moved adding of Implicit controls into .ctor. That way, subsequent
20923 creation of the controls will not cause them to think they are
20924 toplevel windows (fixes #78200 header problem)
20925 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
20926 - Switched visibility setting of header control to use internal field
20927 to avoid triggering handle creation
20928 - Now checking if handle is created before causing a refresh when items
20929 are added (This makes us now match handle creation time with MS)
20930 * Splitter.cs: Removed loading of private splitter cursor, switched to
20931 Cursors version now that that is loading the right ones
20932 * Cursors.cs: Load proper splitter cursors from resources
20933 * Cursor.cs: Added second method of loading resource cursors for the
20934 VS.Net users amongst us
20936 2006-05-05 Mike Kestner <mkestner@novell.com>
20938 * ListView.cs: give header_control a minimum size based on the
20941 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
20943 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
20944 window seems to do that with metacity, so set that type. (#78120)
20946 2006-05-05 Mike Kestner <mkestner@novell.com>
20948 * ListViewItem.cs: fix Details mode checkbox layout bug.
20949 * ThemeWin32Classic.cs: draw a ListView column header for unused space
20950 at the end of the header, if it exists. [Fixes for #78200]
20952 2006-05-04 Jackson Harper <jackson@ximian.com>
20954 * MdiClient.cs: Add a helper property to get the container form.
20955 * MdiWindowManager.cs: We have to make sure to use the menu origin
20956 when drawing the icons and buttons, this fixes maximized window
20957 icons/buttons on win32.
20958 * InternalWindowManager.cs: Reset the restore captions when a
20959 window goes from Maximized to Minimized and vice versa. Move the
20960 DrawMaximizedButtons into the MdiWindowManager source, tool
20961 windows can't be maximized. NOTE: This could use a little
20962 refactoring if time ever permits.
20964 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
20966 * TextBox.cs: Add MWFCategoryAttributes
20967 * TextBoxBase.cs: Add MWFCategoryAttributes
20968 * Form.cs: Add MWFCategoryAttributes
20970 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
20972 * Control.cs: Add MWFCategoryAttributes
20973 * ScrollableControl.cs: Add MWFCategoryAttributes
20975 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
20977 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
20978 Divider is true. Fix a little glitch in PropertyToolBar
20981 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
20984 - Dispose: Call base.Dispose, this causes the disposed event
20985 to be fired (and probably other, more important stuff)
20986 - SetVisibleCore: Set is_visible to true after creating the
20987 window so that the window still gets created invisible (if
20988 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
20989 to generate a WM_ACTIVE message
20990 * Form.cs: Call Dispose when we want to destroy the window, instead of
20991 just destroying the handle (Dispose will do that for us)
20993 - RootWindow also needs a queue, so we can properly process the
20994 property change events from RootWindow (like Activate)
20995 - Generatic synthetic WM_ACTIVE message when the active window is
20998 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21000 * LinkLabel.cs: Trigger a recalc of our label dimensions when
21003 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21005 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
21006 for determining width and height (image might not be assigned if
21007 we're drawing an imagelist)
21009 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
21011 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
21012 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
21014 * Theme.cs: No longer returns hardcoded menu height, instead calls
21016 * Form.cs (OnLoad): Scaling happens before triggering Load events
21019 2006-05-01 Mike Kestner <mkestner@novell.com>
21021 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
21023 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
21025 * TextBoxBase.cs: Removed Fixme
21026 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
21028 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
21031 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
21032 the rectangle relative to the parent, considering borders. We
21033 don't really want that.
21034 - ScrollWindow: Fixed warning to be more understandable
21035 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
21036 scrollbars and scroll only the visible area
21037 * RichTextBox.cs: Removed debug output
21039 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21041 * NumericUpDown.cs (Text): Just use base
21042 * UpDownBase.cs: Ensure txtView is created before using it
21044 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21046 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
21047 casting to IntPtr to avoid 64bit overflow errors
21049 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21052 - AllowDrop: Don't force handle creation.
21053 - CreateHandle: Added call to tell driver if we're allowed to drop
21055 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21057 * FileDialog.cs: Remember the last directory not only for the
21058 current instance but also for new FileDialog instances.
21060 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21062 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
21063 broke sending async messages
21065 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
21068 - ScrollWindow: Fixed method. We finally generate expose events again
21069 for scrolled areas. This was causing 'garbage' when scrolling
21070 textbox and other controls that used ScrollWindow
21071 - Switched from using the regular queue for paint events to the MS
21072 model of 'generating' paint events when the queue is empty.
21073 We use the new XQueueEvent.Paint subclass to store which windows
21075 - AddExpose now takes the x/y/width/height of the exposed area
21076 and inserts the window into the paint queue if not already there
21077 - InvalidateWholeWindow: Switched to use new AddExpose method
21078 - UpdateMessageQueue: Added which queue to monitor for paint events
21079 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
21080 the unlikely case nothing above handles it. We reset the expose
21081 pending states to get them off the queue.
21082 - GetMessage: Now pulls a paint event if no other events are in the
21084 - Invalidate: Switched to new AddExpose method
21085 - PeekMessage: Updated to understand pending paint events
21086 - UpdateWindow: Fixed logic bug. We were only updating if the window
21087 didn't need updating. Also switched to sending WM_PAINT directly,
21089 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
21090 and random access Remove(). The random access is needed to handle
21091 UpdateWindow() where a WM_PAINT is sent directly without accessing
21093 * ScrollBar.cs: Added Update() calls to cause immediate updates to
21094 allow for better feedback when scrolling. Scrollbars are small and
21095 the immediate update should make it 'feel' more responsive without
21096 slowing things down. ScrollBar still needs it's invaliate logic
21097 updated to not always invalidate the whole bar on certain changes.
21099 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21102 (BackColor): if the control does not support a transparent background,
21103 return the default backcolor when the parent backcolor is transparent.
21105 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
21107 * Application.cs: Updated to new StartLoop/GetMessage API
21108 * RichTextBox.cs: Provide some output on RTF parsing errors
21109 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
21110 new queue_id argument to GetMessage and PeekMessage to allow faster
21111 handling of per-thread queues in drivers.
21112 * Hwnd.cs: Added Queue tracking and property
21113 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
21114 * XEventQueue.cs: Added thread trackingA
21115 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
21117 - Implemented new per-thread queue
21118 - GetMessage: Fixed return/break behaviour on several cases. We were
21119 returning stale messages in some cases, instead of just processing
21122 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
21124 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
21126 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
21128 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
21129 fixed off-by-one comparisons between Width/Height and Right/Bottom.
21131 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
21133 * PropertyGridView.cs: Fix drop down width.
21135 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21137 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
21138 a mess in DrawToolBar, so I removed one of them.
21140 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
21142 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
21143 needed (clip). Otherwise we get artifacts.
21145 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
21147 * FixedSizeTextBox.cs: Added constructor to allow specifying which
21149 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
21150 and switched FixedSizeTextBox to only be fixed vertical (#78116)
21151 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
21152 if it matches the scale base font (avoids unneeded scaling)
21154 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
21156 * X11DesktopColors.cs: One gtk_init_check should be enough
21158 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
21160 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
21163 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
21166 - Generate OnTextChanged for Backspace even if we're only deleting
21167 the current selection
21168 - When setting the Text property, only select all text if the
21169 control does not have focus when it is being set. Otherwise
21170 just place the cursor at the beginning of the control
21172 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
21174 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
21175 Added a little helper to draw PropertyGrid ToolBar with a different
21176 border and a different BackColor.
21177 * PropertyGrid.cs: Some background parts didn't get painted with the
21178 correct background color. Added a class that helps us to draw the
21179 correct border for PropertyGridView and a class that helps us to
21180 draw ToolBars with a different backcolor
21181 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
21183 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
21185 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
21186 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
21188 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
21190 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
21191 into the palette entries. Also, since we're working on a copy
21192 we needed to copy the palette back onto the bitmap.
21193 * Cursor.cs: Same fix as XplatUIWin32.cs.
21195 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
21197 * ImageListStreamer.cs: Need to read the var (or we're off)
21199 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
21201 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
21202 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
21203 TextBoxBase.cs: Unused var fixes
21204 * AxHost.cs: Small 2.0 fix
21205 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
21206 as it seems that is what at least Metacity expects. This will make
21207 icons show up on 64bit platforms. We still have some 64bit size
21208 issues, though, since the startup app window size still won't match.
21210 2006-04-25 Mike Kestner <mkestner@novell.com>
21212 * *.cs: cleanup newly reported exception var unused warnings.
21214 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
21216 * ThemeWin32Classic.cs: Button image alignment now matches exactly
21219 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
21221 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
21222 image. The image position is always the same, no matter if the
21223 button is pressed or not.
21225 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
21227 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
21228 selection and set the correct filename for SaveFileDialog.
21229 Patch by Emery Conrad.
21231 2006-04-24 Mike Kestner <mkestner@novell.com>
21233 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
21234 check for item.X outside the ClientRect instead of item.Y. Fixes
21237 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21239 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
21240 trust that value blindly and do some sanity check. Fixes bug #77814.
21242 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21244 * ImageListStreamer.cs: save the mask as a 1bpp image.
21246 2006-04-21 Mike Kestner <mkestner@novell.com>
21248 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
21249 pass Checked and Indeterminate to the Theme Engine. Improve
21250 encapsulation with ListBox.
21251 * ListBox.cs: Keep a StringFormat instead of calculating it every item
21252 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
21253 nested types. Move all CheckState functionality to CheckedListBox.
21254 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
21255 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
21256 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
21257 single base list. Fix scrollbar sizing and placement to mirror MS.
21258 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
21260 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
21261 for CheckedListBox by using new DrawItemState info. Center the
21262 checkboxes on the items. Use new StringFormat property.
21264 2006-04-18 Jackson Harper <jackson@ximian.com>
21266 * Form.cs: MdiChildren don't do default locations the same way as
21267 regular forms. This prevents a crash when trying to position the
21270 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
21272 * PropertyGridTextBox.cs: Formatting, copyright
21273 * PropertiesTab.cs: Formatting
21274 * PropertyGrid.cs: Formatting
21275 * PropertyGridView.cs: Formatting, fix drop down, enabled double
21276 click toggling of values
21278 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
21280 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
21281 * Control.cs (.ctor): verify_thread_handle is static, don't reset
21282 every time a control is created
21283 * Application.cs: Removed obsolete EnableRTLMirroring method
21285 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
21287 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
21288 SelectedIndex to -1. Fixes bug #78121.
21290 2006-04-17 Jackson Harper <jackson@ximian.com>
21292 * Binding.cs: Handle null values for Current and BindingContext.
21293 This occurs when binding is a little delayed.
21294 * CurrencyManager.cs: return null for Current when there are no
21296 - Hookup to the listchanged event on the DataView and update
21297 bindings when the list is changed. This fixes late binding of
21300 2006-04-17 Jackson Harper <jackson@ximian.com>
21303 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
21306 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
21308 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
21310 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
21311 with the correct ButtonState
21313 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
21315 * XplatUIX11.cs: Improved distinguishing between window types to
21316 tell the WM a type closer to what the app wants (Fixes #78107)
21318 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
21320 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
21323 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
21325 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
21326 drawing code to reflect the size grip changes
21328 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21330 * ImageListStreamer.cs: fix handling of the mask that follows the main
21331 bitmap when deserializing and serialize it properly. The generated mask
21332 should better be a 1bpp image, but I'll do that later.
21334 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
21336 * FileDialog.cs: Show something in the DirComboBox on *nix if the
21337 path doesn't fit into some of our Current.Places
21339 2006-04-13 Jackson Harper <jackson@ximian.com>
21341 * ComboBox.cs: Use borders instead of drawing our own decorations,
21342 try to obey correct rules for heights.
21345 * ThemeClearLooks.cs:
21346 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
21347 this is now handled by borders.
21348 - Remove unused DrawListBoxDecorationSize method.
21350 2006-04-13 Mike Kestner <mkestner@novell.com>
21352 * MenuAPI.cs: null guarding for the disbled click check fixes crash
21355 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
21357 * ThemeWin32Classic.cs:
21358 - Fixed CPDrawStringDisabled
21359 - Corrected drawing of disabled menu items
21360 - Fixed drawing of disabled radio buttons (bug #78095)
21361 - Draw check in a disabled CheckBox with color ControlDark
21363 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21365 * Form.cs: Use the provided width when calculating the menu size;
21366 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
21367 and ClientSize.Width won't be updated yet
21368 * Application.cs: Use Visible instead of Show() to make form visible,
21369 this way we create the handle later and menusize is considered
21371 2006-04-12 Mike Kestner <mkestner@novell.com>
21373 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
21376 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21378 * TextBox.cs: Implemented context menu
21380 2006-04-12 Mike Kestner <mkestner@novell.com>
21382 * ListView.cs: implement box selection. fixes #77838.
21383 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
21385 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21387 * XplatUIX11.cs: Added setting of window type when transient window
21388 is created (metacity would move it otherwise)
21389 * X11Structs.cs: Added WINDOW_TYPE atoms
21390 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
21391 background (the control is Opaque but still wants transparent
21394 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21396 * Control.cs: Added OnPaintBackgroundInternal to allow controls
21397 that set Opaque but don't mean it (like all ButtonBase-derived
21398 controls) to still draw their background
21399 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
21402 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21404 * Control.cs (PaintControlBackground): Set the graphics object
21405 on our PaintEvent to null to prevent it from being disposed
21406 when the PaintEvent gets disposed
21408 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
21410 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
21411 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
21413 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
21416 - Added transparency check to BackColor property. Transparent
21417 backgrounds are only allowed if the control styles permit it
21418 - Added recursive painting of parent control background and
21419 foreground if a control with a transparent backcolor is drawn
21420 (Thanks to Tim Ringenback for providing his 'hack' as a base
21421 for this patch) Fixes #77985 and #78026.
21422 - Added Opaque style check before calling OnPaintBackground, no
21423 need to draw the background if the control is opaque
21424 - Removed ControlAccessibleObject owner variable (inherited from
21425 base, no need to define again)
21426 - Added some documentation links explaining the drawing events
21429 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21431 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
21432 that the affected control is the located at the left border of our
21433 parent (Fixes #77936)
21435 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21437 * TextBoxBase.cs: When rendering disabled or readonly controls,
21438 draw the background with 'Control' instead of 'Window' color as
21439 long as the user hasn't specifically set a color
21441 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21443 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
21444 since that won't be updated if the user types text (only if it's
21445 programatically set)
21447 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21449 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
21450 layout changes do to app-triggered resizes will have the proper
21451 display rectangle for layout
21453 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
21455 * ThemeWin32Classic.cs:
21456 - Make use of the SystemBrushes and SystemPens wherever possible
21457 - Corrected some highlight colors
21458 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
21460 * Theme.cs: Added Empty field to CPColor struct
21462 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
21464 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
21465 is displayed when calculating the display rectangle. Thanks to Mike
21466 for teaching me the err of my ways.
21468 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
21470 * ScrollableControl.cs:
21471 - Rewrote DisplayRectangle code, now returning the proper x/y coords
21472 (instead of 0,0) and we now return the real width/height instead of
21473 just the clientrectangle, adjusted for padding. The rectangle is
21474 now cached and created by the new CalculateDisplayRectangle method.
21475 - Created new CalculateDisplayRectange method, which basically does
21476 what get_DisplayRectangle() did originally, but now using the
21477 right edge instead of DisplayRectangle to determine the size of
21479 - get_Canvas(): Fixed it to properly calculate canvas for
21480 right/bottom controls which seem to be placed to the right/bottom
21481 of any controls that have a fixed location
21482 - Removed TODO that's taken care of
21483 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
21484 and SetDisplayRectLocation according to new MSDN2 docs
21485 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
21486 event when that is called, this is added for compatibility
21487 - ScrollControlIntoView(): Implemented.
21488 - Switched scrollbars to be implicit, they shouldn't be selectable
21489 * ContainerControl: Now that ScrollControlIntoView is implemented, we
21490 call it when the active control is set/changed
21491 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
21492 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
21493 implicit_control variable (used for native Win32 message generation)
21494 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
21495 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
21496 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
21497 * XplatUIStructs.cs: Added ScrollBarCommands enum
21499 2006-04-10 Jackson Harper <jackson@ximian.com>
21502 * CheckedListBox.cs:
21509 * PrintPreviewControl.cs:
21515 * UpDownBase.cs: Fixup base event overrides.
21517 2006-04-06 Mike Kestner <mkestner@novell.com>
21519 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
21520 all user-initiated value changes to min <= value <= max-thumbsz+1.
21521 (set_Value): check for vert/horiz when calculating new thumb position.
21522 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
21524 (OnMouseMoveSB): refactor the thumb dragging code and refine
21525 invalidation logic to reduce flicker.
21526 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
21527 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
21528 (UpdateThumbPosition): small code readability cleanup
21530 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
21532 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
21535 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
21537 * ThemeNice.cs: Use a better graphics effect when a button is pressed
21539 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
21541 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
21542 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
21543 This dramatically reduces the number of Pen.Dispose calls.
21544 Where possible call ResPool methods only once instead of calling it
21545 over and over again (for example for the same color).
21547 2006-04-06 Mike Kestner <mkestner@novell.com>
21549 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
21550 Also remove an unused private field on the collection. Fixes #77972.
21552 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
21554 * ThemeNice.cs: Added ToolBar drawing code
21556 2006-04-06 Mike Kestner <mkestner@novell.com>
21558 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
21559 I'm assuming that means we need to look up the toplevel for the
21560 provided control. Fixes the crash trace in #77911 but exposes another
21561 crash in some strange reflection usage in NDocGui.
21563 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
21565 * ThemeNice.cs: Gave it a little silver touch and added Images
21567 * FontDialog.cs: FontDialog is not resizable
21568 * FileDialg.cs: Added SizeGripStyle.Show
21570 2006-04-05 Jackson Harper <jackson@ximian.com>
21572 * KeyboardLayouts.cs: Remove warning.
21574 2006-04-05 Jackson Harper <jackson@ximian.com>
21576 * Control.cs: Enable OnPaintInternal so we can use it for drawing
21577 all of our controls instead of Paint +=.
21592 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
21593 use OnPaintInternal. Remove Width/Height and Visible checks in
21594 paint handler, this is done at a higher level now.
21595 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
21596 * PaintEventArgs.cs: Add a handled flag so controls that don't
21597 want anymore painting after OnPaintInternal can make sure OnPaint
21600 2006-04-05 Mike Kestner <mkestner@novell.com>
21602 * Form.cs: fix the menu WndProc hacks to respect the native enabled
21603 state of the form, so that we don't process events when Modal dialogs
21604 are up. Fixes #77922.
21606 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
21608 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
21611 2006-04-05 Mike Kestner <mkestner@novell.com>
21613 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
21615 2006-04-05 Mike Kestner <mkestner@novell.com>
21617 * ListView.cs (HeaderMouseMove): null guarding for the over column
21618 when setting up the drag_to_index. Fixes #78015.
21620 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
21622 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
21623 in the taskbar. Transient windows seem to accomplish that.
21625 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
21628 - Re-enabled CreateParams.X/Y code for FormStartPosition
21629 - Added code for manual placement when creating the Control
21630 - Incomplete patch to treat MDI forms differently when
21631 setting the ClientSizeCore. (Still need to figure out handling
21634 - When we're explicitly setting the X/Y position of a non-Child
21635 window, let the WM know. Metacity really wants this.
21637 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
21639 * ThemeNice.cs: Added CPDrawButton
21641 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
21643 * ThemeNice.cs: Changed the color for focused buttons and activated
21644 the arrows for small scroll buttons.
21646 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
21648 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
21649 anymore. Changed some method modifiers to protected (virtual)
21650 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
21652 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
21653 Updated drawing of menus, buttons and progressbars; added
21656 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21658 * ImageListStreamer.cs: implemented serialization/deserialization
21661 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
21663 * ThemeWin32Classic.cs:
21664 - Removed all the DrawFrameControl stuff; CPDrawButton,
21665 CPDrawCheckBox and CPDrawRadioButton are now handled directly
21667 - Updated and corrected the drawing code of CPDrawButton,
21668 CPDrawCheckBox and CPDrawRadioButton to better match ms
21669 - Updated theme checkbox and radiobutton code to use the CP*
21672 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
21674 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
21677 2006-03-31 Jackson Harper <jackson@ximian.com>
21679 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
21681 * UpDownBase.cs: Don't CreateGraphics manually, use a
21682 Refresh. Ideally we would invalidate the correct areas here.
21684 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
21687 - We now track the mapping state of windows. If a window (or
21688 one of it's parents) is not mapped we no longer permit
21689 WM_PAINT messages to be generated since we'd otherwise get
21690 lots of BadMatch X errors. Jackson did all the work figuring
21692 - Destroying the caret if the window it's contained in is
21693 destroyed. Can't use regular DestroyCaret method since it
21694 might fall into a drawing function (trying to remove the
21695 caret) and with that generate new BadMatch errors. Again,
21696 Jackson tracked this down.
21697 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
21698 make sure we send the messages to all windows. (The old code
21699 would send the WM_DESTROY to the window, and then all child
21700 windows would be 'gone' because the WM_DESTROY handle lookup
21701 would no longer find the destroyed window)
21702 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
21703 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
21705 2006-03-31 Jackson Harper <jackson@ximian.com>
21707 * ScrollableControl.cs: Dont recalc if we are not visible.
21709 2006-03-31 Mike Kestner <mkestner@novell.com>
21711 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
21712 the visibility branch.
21714 2006-03-31 Jackson Harper <jackson@ximian.com>
21716 * ScrollBar.cs: Cap values when incrementing/decrementing.
21718 2006-03-31 Mike Kestner <mkestner@novell.com>
21720 * MenuAPI.cs: setup menu.tracker for popup/context menus.
21721 * ToolTip.cs: guard against timer expirations with no active control.
21722 Not sure why it happened.
21724 2006-03-31 Mike Kestner <mkestner@novell.com>
21726 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
21728 * ToolTip.cs: Position the tooltip based on where the cursor is at
21729 popup time, not at MouseEnter time. Add a Down state so that we don't
21730 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
21731 positioning offset. Lookup DisplaySize at positioning time, since it
21732 can theoretically change during invocation.
21733 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
21734 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
21736 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
21738 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
21739 Fixes behaviour when the Text property of the box is String.Empty
21741 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
21743 * XplatUIX11.cs: Only send mouseleave for our client windows, not
21744 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
21747 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
21749 * FileDialog.cs: Visual enhancement for the popup buttons in
21752 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
21754 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
21757 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
21759 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
21760 highlighted menu items to match ms
21762 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
21764 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
21766 2006-03-30 Mike Kestner <mkestner@novell.com>
21768 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
21769 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
21770 go active to account for HotLight to Selected transition.
21771 * MenuItem.cs: add internal Selected prop. Fill out the Status
21772 property by calculating it from item info. Add HotLight,
21773 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
21775 2006-03-30 Mike Kestner <mkestner@novell.com>
21777 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
21779 2006-03-29 Jackson Harper <jackson@ximian.com>
21781 * Form.cs: Implement TODO.
21783 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
21785 * PrintPreviewDialog.cs: Implemented missing methods and events; still
21786 missing proper dialog setup in the constructor
21788 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
21790 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
21792 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
21793 - Fixed ResetBindings and removed TODO
21794 - Added check for cross-thread calls to get_Handle()
21795 - Added Marshaller attribute for set_Font to satisfy class status
21796 * FontDialog.cs: Removed TODOs that seemed implemented
21797 * UpDownBase.cs: Removed unneeded TODO and Fixme
21798 * MessageBox.cs: Implemented support for Default button and removed TODO
21799 * FileDialog.cs: Removed obsolete TODO
21800 * DomainUpDown.cs: Removed obsolete TODO
21801 * ButtonBase.cs: Removed obsolete TODO
21802 * XplatUIWin32.cs: Removed obsolete TODO
21804 - Removed obsolete TODO
21805 - Calling CheckAcceptButton when the acceptbutton is changed to allow
21806 internal status updates
21807 - Making sure the active control is selected when the control is created
21808 * CurrencyManager.cs: Removed obsolete TODO
21810 2006-03-29 Mike Kestner <mkestner@novell.com>
21812 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
21813 of PrintPreviewDialog and RichTextBox.
21815 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
21817 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
21818 DarkDark, Light and LightLight colors for a specific color
21819 * ThemeWin32Classic.cs:
21820 - Use Button drawing code to draw RadioButtons and CheckBoxes with
21821 Appearance = Button
21822 - Make use of the new ResPool helper CPColor
21823 - Draw ProgressBar and StatusBar with correct 3D borders
21825 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
21827 * ColorDialog.cs: Return selected color. Fixes bug #77940.
21829 2006-03-28 Mike Kestner <mkestner@novell.com>
21831 * ListView.cs: fix Icon layout to plan for scrollbar widths when
21832 calculating col/row counts.
21834 2006-03-28 Mike Kestner <mkestner@novell.com>
21840 switch to explicit interface method implementation for some methods
21841 corcompare identifies as inconsistent with MS.
21843 2006-03-28 Mike Kestner <mkestner@novell.com>
21847 add a few missing methods from the class status output.
21849 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
21851 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
21854 2006-03-28 Mike Kestner <mkestner@novell.com>
21856 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
21858 2006-03-27 Mike Kestner <mkestner@novell.com>
21860 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
21861 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
21863 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
21865 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
21867 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
21869 * ThemeWin32Classic.cs:
21870 - GroupBox: Inserted a little gap between the text and the lines
21872 - Made the code in CPDrawBorder3D more readable
21873 - Corrected the drawing location of the up and down arrows in
21876 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
21878 * ControlPaint.cs: Corrected line widths in DrawBorder for
21879 ButtonBorderStyle Inset and Outset
21881 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
21883 * ThemeWin32Classic.cs:
21884 - Rewrote the totally broken CPDrawBorder3D method. That was
21885 one of the main problems for the terrific ThemeWin32Classic
21887 - Updated and corrected Button drawing
21888 - Correct the dimensions of the SizeGrip to match ms ones
21889 - Removed a small drawing glitch in DrawComboBoxEditDecorations
21890 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
21891 Border3DStyle.Sunken to match ms.
21893 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
21895 * ThemeWin32Classic.cs: First small part of the "de-uglify
21896 ThemeWin32Classic" effort, SizeGrip
21898 2006-03-24 Jackson Harper <jackson@ximian.com>
21900 * XplatUIX11.cs: Give a max idle time of one second, this matches
21901 MS and forces an Idle event every second when there are no other
21902 events in the queue.
21904 2006-03-24 Mike Kestner <mkestner@novell.com>
21906 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
21907 * ListView.Item.cs: fix layout issues with null image lists and images
21908 smaller than checkbox size.
21909 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
21910 mode like MS does. It's weird, but consistent. ;-)
21913 2006-03-24 Mike Kestner <mkestner@novell.com>
21915 * ListView.cs: Scroll wheel support for the item control. Fixes
21918 2006-03-23 Jackson Harper <jackson@ximian.com>
21920 * ScrollableControl.cs: Special case negative sized areas, not
21922 * MonthCalendar.cs: Save the rect of the clicked date so we can
21923 use it for invalidation.
21924 - Try to cut down on the number of invalidates
21925 - Invalidate the rect the mouse is over and was over when moving
21926 the mouse, so we get the focus box following the cursor.
21928 2006-03-23 Mike Kestner <mkestner@novell.com>
21930 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
21931 focus rectangle drawing. Fixes #77835.
21933 2006-03-23 Mike Kestner <mkestner@novell.com>
21935 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
21936 the if and else if and reverting back to the original == check on the
21939 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
21941 * FontDialog.cs: Update the example panel if the selected index of
21942 the fontListBox changes.
21944 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
21946 * FileDialog.cs: Make FileDialog remember which directory it was in
21947 last in the same execution.
21949 2006-03-22 Mike Kestner <mkestner@novell.com>
21951 * FileDialog.cs: make the DropDownMenu on the toolbar display
21952 RadioChecks since they are mutually exclusive and that's what MS does.
21954 2006-03-22 Mike Kestner <mkestner@novell.com>
21956 * Theme.cs: add Color param to CPDrawMenuGlyph.
21957 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
21958 checks and radio marks and arrows are visible on highlighted items.
21959 * ControlPaint.cs: update to use new Theme signature.
21961 2006-03-22 Mike Kestner <mkestner@novell.com>
21963 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
21964 is active. Fixes #77870.
21966 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
21968 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
21969 to be focused/selected after startup
21971 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
21974 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
21975 CustomColors and ShowHelp properties
21976 - Some internal rewrites to get better results when using the
21979 2006-03-22 Mike Kestner <mkestner@novell.com>
21981 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
21982 HoverSelection. Fixes #77836.
21984 2006-03-22 Mike Kestner <mkestner@novell.com>
21986 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
21987 ToggleButtons. (De)Sensitize the Back button around a stack count of
21988 1, not 0. Update ButtonSize based on a pixel count of the win32
21989 control. Adjust the toolbar size/location for new button size.
21991 2006-03-22 Jackson Harper <jackson@ximian.com>
21993 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
21995 * ScrollBar.cs: When doing increments and decrements we need to
21996 set the Value property so that ValueChanged gets raised. A
21997 possible optimization here would be to make an internal SetValue
21998 that doesn't invalidate immediately.
21999 * ToolTip.cs: Tooltips get added to their container (when
22000 supplied) so they get disposed when the container is disposed.
22001 - Don't create tooltips for String.Empty. This prevents all these
22002 little 2-3 pixel windows from showing up when running nunit-gui
22003 and driving me mad.
22004 * Form.cs: Don't set topmost when setting the owner if the handles
22005 haven't been created yet. The topmost set will happen when the
22006 handles are created.
22008 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
22011 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
22012 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
22013 visible (to allow them to recalculate their sizes)
22015 2006-03-21 Mike Kestner <mkestner@novell.com>
22017 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
22018 methods. Removed a ton of redundant code. Still not really happy with
22019 the border rendering, but I think that's mainly because of the
22020 ControlDarkDark being black instead of a dark grey. Depending on how
22021 close we want to be, we might want to revisit those color choices.
22022 Among the new features added during the refactor were DropDownArrow
22023 pressed rendering, Disabled image rendering. Proper flat appearance
22024 boundary rendering. Removed the Divider and Wrapping dividers since I
22025 can't figure out any combination of themes and conditions to make the
22026 MS control draw a horizontal line on a toolbar despite what the
22027 Divider property docs indicate.
22028 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
22029 conditions and incorrect layout. Updated to coding standard.
22030 * ToolBarButton.cs: refactored layout and positioning code from
22031 ToolBar to here. Invalidate wherever possible instead of forcing
22032 redraws of the whole toolbar.
22033 (Known remaining issues: explicit ButtonSize smaller than provided
22036 2006-03-21 Mike Kestner <mkestner@novell.com>
22038 * ContextMenu.cs (Show): use the position parameter instead of just
22039 showing at the MousePosition.
22041 2006-03-21 Jackson Harper <jackson@ximian.com>
22043 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
22044 control handle this.
22045 * TreeNodeCollection.cs: If we are clearing the root node we need
22046 to reset top_node so calcs can still happen.
22047 * ThemeWin32Classic.cs: This is a Flags so we need to check
22050 2006-03-21 Jackson Harper <jackson@ximian.com>
22052 * DataGrid.cs: Create columns when the binding context has been
22054 * X11Structs.cs: Keysyms are uints.
22055 - Add size to fix build.
22057 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
22059 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22061 - Added ResetMouseHover method to allow controls to retrigger
22062 hovering if they need it more than once
22063 - Implemented MouseHoverTime and MouseHoverSize properties
22064 * Timer.cs: Start() must reset the interval
22065 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
22068 2006-03-21 Jackson Harper <jackson@ximian.com>
22070 * X11Keyboard.cs: improved layout detection. Move the nonchar
22071 tables into this file.
22072 * KeyboardLayouts.cs: Move the tables into resource files.
22074 2006-03-21 Mike Kestner <mkestner@novell.com>
22076 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
22078 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
22080 * Mime.cs: Various speed optimizations. Looking up mime types
22081 is now 2 times faster than before
22083 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
22085 * CreateParams.cs: Added internal menu field
22087 - Switched call order for UpdateBounds; now we always call
22088 the one that also takes ClientSize, and we're calculating the
22089 client size via driver method in the others. The previous
22090 method of tracking client size by difference wasn't working
22091 for forms where even the starting client size wouldn't match
22092 the overall form size (due to borders) (Part of fix for #77729)
22093 - CreateParams(): Do not use parent.Handle unless the handle is
22094 already created. Causes havoc with Nexxia and throws off our
22095 creation of controls
22097 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
22098 - Switched handling of ConfigureNotify over to new PerformNCCalc
22099 method (consolidates code)
22100 - Changed RequestNCRecalc to use new PerformNCCalc method
22101 - Added calls to RequestNCRecalc when menus and borders are changed
22102 to allow app to set NC size. (Part of fix for #77729) This matches
22103 when MS send a WM_NCRECALC on Win32 windows.
22104 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
22105 (Part of fix for #77729). This matches what MS does, they also
22106 send that message when the form is made visible.
22107 - XException.GetMessage: Improved usability of X errors by including
22108 a translation of the window into Hwnd and Control class
22109 - Improved debug info for window creation, reparenting and destruction
22110 - Created helper method WindowIsMapped() [Currently not used]
22111 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
22113 - CreateParams: Now setting our menu on the new internal menu field
22114 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
22115 avoid calculating the same property twice
22117 - Improved usability of ToString() for debugging purposes
22118 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
22119 determine the height of the menu, instead of just the font. This
22120 required to also create a graphics context and to keep a bmp
22121 around (for performance reasons)
22123 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
22125 * MenuAPI.cs: Added OnMouseUp method
22127 - Now remembering the requested client size, avoids size errors
22128 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
22129 instead of base if the menu is active. This is required due to
22130 control now capturing and releasing on down/up and it would
22131 prematurely release our menu capture
22133 2006-03-17 Jackson Harper <jackson@ximian.com>
22135 * KeyboardLayouts.cs: Add the czech layouts.
22137 2006-03-16 Jackson Harper <jackson@ximian.com>
22139 * Control.cs: Use the viewport space when sizing not the controls
22140 client size, so things like ScrollableControl that effect the
22141 viewport size (when scrollbars are added) are computed correctly.
22142 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
22144 - Handle creating BindingManagers for null data sources.
22145 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
22146 source, otherwise when rows are added they are added to the 'fake'
22147 datasource and we will crash when trying to set the position in
22149 - Use Implicit scrollbars on the datagrid so they arent
22152 2006-03-16 Jackson Harper <jackson@ximian.com>
22155 * InternalWindowManager.cs:
22156 * MdiWindowManager.cs:
22157 * X11Keyboard.cs: I really want Mike to love me again (fix
22158 compiler warnings).
22160 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
22163 - OnMouseDown: Switch to editing mode when clicking on the cell
22164 even if we're clicking on the cell that's currently
22166 - ProcessGridKey: Left/Right now wrap like MS.Net does
22167 - ProcessGridKey: Tab now knows to add a new row when tab is
22168 pressed in the cell of the last column of the
22170 - ProcessGridKey: Enter now adds another row if pressed in the last
22171 row and selectes the new row, same column cell
22172 - ProcessGridKey: Home/End navigate columns, not rows, like
22173 originally implemented
22174 - Broke ProcessKeyPreview code out into an extra Internal method
22175 so it can be called from the edit code
22176 * DataGridTextBox.cs (ProcessKeyMessage):
22177 - Switched to accept Tab keypresses
22178 - Added F2 handling to allow jumping to the end of the edited cell
22179 - Added logic to allow moving caret left/right inside edited cell
22180 and making the edited cell jump when the caret hits cell borders
22181 - Tab and Enter are now passed to the datagrid after being handled
22183 - Removed capture code now that Control handles it
22184 - set_SelectionStart now ensures caret is visible
22186 2006-03-16 Jackson Harper <jackson@ximian.com>
22188 * TrackBar.cs: Debackwards the increment/decrement for handling
22189 mouse clicks on the bar with vertical trackbars.
22190 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
22191 bottom to match MS.
22193 2006-03-16 Mike Kestner <mkestner@novell.com>
22195 * ListView.cs: make shift/ctrl keyboard and mouse selection
22196 consistent with the MS control. Fix a bug in
22197 SelectedListViewItemCollection.Clear that was pissing me off for the
22198 better part of a day because the collection was being altered
22199 underneath us as we walked the list.
22201 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
22203 * Control.cs: Not sure how we could miss this so long, but it seems
22204 that MS.Net has Capture set all the way from before calling
22205 OnMouseDown through sending the mouse events until after
22206 OnMouseUp. This will fix DataGrid's selection being set to end
22207 at the location of the MouseUp.
22209 2006-03-15 Jackson Harper <jackson@ximian.com>
22211 * BindingContext.cs: Check the binding after its added so that it
22212 can initialize the binding managers and hookup to events.
22213 * Binding.cs: Data members seem to sometimes include rows/cols in
22214 the format Row.Column we now take this into account.
22215 - Hookup to the position changed event so we can update the
22216 control when the position has changed in the data set.
22217 * CurrencyManager.cs: Take into account the row/col naming
22218 convention when creating dataset tables.
22219 * BindingContext.cs: Using a newer better way of storing
22220 datasource/datamember pairs. Hopefully this better matches MS for
22221 looking up binding managers.
22224 2006-03-15 Jackson Harper <jackson@ximian.com>
22226 * BindingContext.cs: The currency manager needs the data member
22227 name, if the member is a data set we use the name to find the
22229 * CurrencyManager.cs: When creating the list prefer an IList over
22231 - Attempt to create a DataTable from a DataSet (TODO: might need
22232 some better error checking here, although MS doesn't seem to have much)
22233 - If we have a DataTable create a view and use it as our list.
22235 2006-03-15 Mike Kestner <mkestner@novell.com>
22237 * ListView.cs: keep a matrix of the icon mode layout to facilitate
22238 keyboard navigation. Support Up/Down/Left/Right selection correctly
22239 for all 4 View modes.
22240 * ListViewItem.cs: add internal row/col fields for icon layouts.
22242 2006-03-15 Jackson Harper <jackson@ximian.com>
22244 * TabControl.cs: Redraw the tabs when we resize so their newly
22245 calculated sizes are drawn on screen.
22246 * X11Keyboard.cs: Begginnings of XIM support. We also now support
22247 composite characters.
22248 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
22249 - filter events so that composite characters can be created
22251 * X11Structs.cs: Add XIMProperties enum.
22253 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
22255 * Control.cs (BringToFront, SendToBack): Don't use window or handle
22256 unless it's created
22258 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
22260 * Control.cs (PerformLayout): We don't need to consider visiblity
22261 for anchoring, only for docking. This fixes 'whacky' alignment
22262 in listbox and other controls that use implicit scrollbars after
22263 the previous PerformLayout patch
22264 * ListBox.cs: Switched to use implicit scrollbars
22266 2006-03-14 Mike Kestner <mkestner@novell.com>
22270 - chain up the "new event" overrides to base and use
22271 OnEvent to raise them. Part of fix for bug #76509.
22273 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
22275 * FileDialog.cs: Do not select an item in the parent directory
22278 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
22280 * Control.cs (PerformLayout): It would seem that we considered
22281 invisible windows for our layout. Not quite the right thing
22282 to do. Now we don't any longer, thereby fixing bug #76889.
22284 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
22286 * Control.cs (CanFocus): I goofed. A control can have focus
22287 even though it's not selectable. Made it match MS docs.
22289 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
22291 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
22292 center by default (fixes #76895)
22293 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
22294 all uses of Border3DSides.All with the explicit ORd together
22295 Left|Right|Top|Bottom because I assume that nobody was aware
22296 that All also implies a center fill. Most places I checked had
22297 a fill right above.
22298 * ProgressBarStyle.cs: Added
22300 2006-03-13 Mike Kestner <mkestner@novell.com>
22302 * ListView.cs: fix breakage in drag shadow header positioning
22303 from Peter's csc compilation fix.
22305 2006-03-13 Mike Kestner <mkestner@novell.com>
22307 * ListView.cs: fix NRE produced by backspacing twice in a focused
22310 2006-03-13 Mike Kestner <mkestner@novell.com>
22312 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
22314 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
22316 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
22318 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
22319 the allowed size before making programmatic size changes
22321 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
22323 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
22324 set, metacity is broken and will still use the emty sizes in
22325 the struct. (Fix for #77089)
22327 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
22329 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
22330 WindowExStyles and marked both enums as Flags
22331 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
22332 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
22333 to match WindowStyles split
22335 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
22336 - Updated to match WindowStyles split
22338 - Fixed FosterParent creation, was using ExStyle on the Style field
22339 (This should help with Popup focus issues)
22340 - Updated to match WindowStyles split
22342 2006-03-13 Jackson Harper <jackson@ximian.com>
22344 * MdiWindowManager.cs: Use the system menu height. Fixes some
22345 strange sizing issues.
22347 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
22349 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
22351 - Scroll to caret after inserting text (#77672)
22352 - Make scroll range one pixel higher, fixes off-by-one error (and
22353 makes underlines visible on the last line)
22355 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
22357 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
22358 the keyboard state from being stuck with keys in 'pressed' state when
22359 focus is switched away via keyboard
22360 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
22361 reset the keyboard if no X11 KeyUp events are expected to come
22362 * X11Structs.cs: Switched type of Visible to bool to match driver
22364 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
22367 - Switched caret to be just 1 pixel wide, matches MS and looks less
22369 - Moved caret display 1 pixel down from the top of the control
22371 - InsertCharAtCharet: Update the selection start if moving the caret
22372 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
22373 - No longer always creating the caret when the caret methods are
22374 called. Only the actual ShowCaret/HideCaret will do that now
22375 - Only setting caret visible if the owner control has focus
22376 - UpdateView: Added invalidation-shortcut logic for center and right
22377 aligned text. Previously we'd update all according to the left
22378 logic which caused drawing errors. Also fixed height of invalidated
22379 areas, now properly invalidating the whole area (was off-by-one)
22380 - owner_HandleCreated: Always generate the document when the
22381 handle is created; this ensures that
22383 - Fixed situation where caret would disappear under the right
22384 window border, also improved scrolling behaviour on left-
22386 - Fixed right-aligned textboxes to have a border to the
22387 right instead of the caret being under the right border
22389 - Switched from 'nested' to simple visible/not visible tracking
22390 for caret (part of fix for #77671)
22391 - No longer passing through translated FocusIn/FocusOut messages
22392 since we were notifying too often and the wrong windows. Instead
22393 we just notify our focussed window of receiving or loosing focus
22394 * XplatUIWin32.cs: Switched from 'nested' show/hide
22395 counting for caret to simple visible yes/no behaviour (part of
22398 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
22400 * Mime.cs: Remove debug code...
22402 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
22404 * MimeGenerated.cs: Removed
22405 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
22406 and subclasses) from /usr/(local/)share/mime and
22407 $HOME/.local/share/mime.
22409 2006-03-10 Jackson Harper <jackson@ximian.com>
22411 * MdiWindowManager.cs: Recalc the NC area when a window is
22412 maximized/restored so that the menu area is drawn on forms that
22415 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22417 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22418 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
22419 us to force a WM_NCCALCRESIZE message being sent. This is needed
22420 for MDI maximizing.
22422 2006-03-10 Jackson Harper <jackson@ximian.com>
22424 * Form.cs: We need to use the ActiveMenu when calculating menu
22426 - Fix nullref when the window manager hasn't been created yet.
22427 * Control.cs: Fix nullref when we try to bring a control to the
22428 front that has no parent.
22429 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
22431 - Add a dummy item to the maximized menu so it always has the
22432 correct height. Otherwise when there are no menus we don't get our
22436 2006-03-10 Jackson Harper <jackson@ximian.com>
22438 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
22440 * Form.cs: Make the window_state internal so the window managers
22442 - When an MDI child is maximized let its window manager create the
22443 main menu (so it can add its icon).
22444 - Notify the window managers of state changes
22445 - Let the window manager paint its buttons and handle button
22446 clicks on the menu when it is maximized.
22447 * InternalWindowManager.cs: Move the prev_bounds into the mdi
22448 window manager, since tool windows don't use it, only mdi windows.
22449 - Tell the main form that we don't want it to handle NCPAINT
22450 itself to avoid extra painting.
22451 - Handle clicks on a maximized windows menu.
22452 - Handle window state changes
22453 - Handle minimize/maximize clicks correctly by setting the window state.
22454 * MdiWindowManager.cs: Add an icon menu that (the menu you get
22455 when clicking on the forms icon).
22456 - New method to create a forms maximized menu. This is its normal
22458 - Handle window state changes.
22459 - Handle sizing of maximized windows. Maximized windows are just
22460 drawn bigger then the parent visible area. All controls are still
22461 there, they are just outside the visible area (this matches windows).
22462 * MdiClient.cs: No scrollbars when a child window is maximized.
22463 - Let the children windows figure out how big they should be when
22464 sizing maximized windows.
22465 - Implement a version of ArrangeIconicWindows somewhat similar to
22466 Windows version. There are some little differences, but I don't
22467 think any app will rely on the layout of minimized mdi windows.
22469 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22471 * Padding.cs: Several fixes to allow compiling with csc 2.0
22473 2006-03-09 Jackson Harper <jackson@ximian.com>
22476 * MenuItem.cs: Cheap hack so we can add items to the list without
22477 the events being raised. This allows adding mdi items during
22478 drawing. TODO: Should probably find a better time to add the items.
22480 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22482 * ThemeWin32Classic.cs:
22483 - CheckBox_DrawText: Added logic to not wrap if not enough space
22484 is available (Fix for bug #77727)
22485 - RadioButton_DrawText: Added logic not to wrap if not enough
22486 space is available (Fix for bug #77727). Also removed some
22487 duplicate code, DrawString always drawing the regular text
22488 before hitting the if statement.
22490 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22492 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
22494 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
22496 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
22497 * ContainerControl.cs: Partial implementation of some 2.0 scaling
22498 methods. Moved the new 2.0 properties into alphabetical order with
22499 other properties and added MonoTODO tags
22501 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22503 * AutoScaleMode.cs: Added. Fix build.
22505 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22507 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22508 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
22509 and was requiring premature handle creation for calls from above
22510 * Form.cs, Control.cs: Removed handle arguments from calls to
22511 CalculateClientRect()
22513 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22515 * ListView.cs (HeaderMouseMove): Fix csc compilation.
22516 drag_column.column_rect is MarshalByRef and can't be used that way
22518 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22520 * AxHost.cs: Added deserialization constructor for
22521 AxHost+State (fixes 77743)
22523 2006-03-09 Mike Kestner <mkestner@novell.com>
22526 - Added column drag reordering for details view.
22527 - fixed behavior when mouse is dragged off column and
22528 AllowColumnReorder is false.
22529 * ColumnHeader.cs: clone the format too in Clone.
22530 * Theme.cs: add DrawListViewHeaderDragDetails method.
22531 * ThemeWin32Classic.cs:
22532 - impl new method for drawing drag column shadows and targets.
22533 - support column offset for details mode in DrawListViewItem.
22535 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22537 * TextControl.cs: Reset the char_count when the document is cleared
22538 (Fixes bug reported on mono-winforms mailing list)
22540 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22542 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
22543 of calling base we simply process the key ourselves, since both
22544 DefWindowProc and the handled method would set m.Result.
22547 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
22549 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
22550 method also moves the window; instead implemented a copy of
22551 Control.ScaleCore (Part of fix for #77456)
22553 - Created new CreateGraphicsInternal method to allow providing
22554 a graphics context when no handle is created without triggering
22555 handle creation. (Part of fix for #77456)
22556 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
22558 - Switched Constructor to require TextBoxBase instead of Control (to
22559 allow uncast access to CreateGraphicsInternal)
22560 - Safeguarded use of owner.Handle property. No longer accessing it
22561 unless the handle is already created.
22562 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
22563 - Now triggering a recalc when owning control becomes visible
22564 * TextBox.cs, RichTextBox.cs: Switched to use new internal
22565 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
22566 premature handle creation (Part of fix for #77456)
22568 - We now only destroy our double-buffering buffers when the
22569 control is resized or disposed, but not when visibility
22570 changes. (The code even re-created them twice every time)
22571 - Now requiring a redraw of the buffer on visibility changes
22572 (fixes bug 77654 part 2)
22573 - Not passing OnParentVisibleChanged up unless the control
22575 - CanFocus: Fixed to match MS documentation
22576 - Focus: Fixed to return actual focus state and to check if
22577 setting focus is legal before setting it
22579 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
22581 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
22582 when to draw focus rectangle by looking at parent focus and
22583 selected state instead. This fixes TabPages on Linux sometimes
22584 having none or multiple focus rectangles.
22585 * XplatUIX11.cs (SetFocus):
22586 - Don't set the focus if the same window already has focus
22587 - Use SendMessage instead of PostMessage (like it's Win32
22588 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
22589 to match MS behaviour
22590 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
22591 are not selectable.
22593 2006-03-07 Jackson Harper <jackson@ximian.com>
22595 * PictureBox.cs: Revert line I accidently committed last week.
22597 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
22600 - Added new IsRecreating and ParentIsRecreating properties to
22601 allow testing if RecreateHandle has been called on ourselves
22602 or one of our parents
22603 - WndProc(WM_DESTROY): If our control handle is being recreated
22604 we immediately need to create the handle when receiving the
22605 destroy, that way our child windows find a valid parent handle
22606 when they themselves are being recreated upon WM_DESTROY receipt
22607 (fix for bug #77654 part 1)
22609 - DestroyWindow: WM_DESTROY must be sent to our own window before
22610 notifying any child windows. MS documents that child windows
22611 are still valid when WM_DESTROY is received. (Control now relies on
22613 - Added some fine-grain debug options
22615 2006-03-06 Jackson Harper <jackson@ximian.com>
22617 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
22618 box and base calculations off this.
22619 * MdiChildContext.cs:
22620 * MdiWindowManager.cs: Don't need to ensure scrollbars here
22623 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
22625 * Splitter.cs: In situations where the affected control is added
22626 to the parent's control list after the splitter, we would not
22627 populate affected. Now we try populating it on mousedown, if
22628 it's not already set, and force it to be re-set whenever our
22631 2006-03-03 Matt Hargett <matt@use.net>
22633 * Control.cs: implement Control.Padding
22634 * Padding.cs: -Padding.All returns -1 when constructing with the
22635 implicit default ctor
22636 -Padding.ToString() matches MS.NET
22637 * ContainerControl.cs: implement
22638 ContainerControl.AutoScaleDimensions
22639 * ListControl.cs: implement ListControl.FormattingEnabled
22640 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
22642 * TabPage.cs: Implement UseVisualStyleBackColor.
22643 * PictureBox.cs: Implement PictureBox.InitialImage.
22645 2006-03-03 Mike Kestner <mkestner@novell.com>
22647 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
22648 event declarations to proxy to base event.
22649 * ListViewItem.cs: update to use ItemControl.
22650 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
22651 * ThemeWin32Classic.cs: update to new ListView theme API and fix
22652 column header label rendering for 0 width columns.
22654 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
22656 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
22657 that causes the control to be created. Fixes #77476.
22659 2006-03-02 Jackson Harper <jackson@ximian.com>
22661 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
22664 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
22666 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
22667 passed in for the EventArgs (fixes #77690)
22669 2006-03-01 Jackson Harper <jackson@ximian.com>
22671 * ScrollBar.cs: Refresh afterbeing resized.
22673 2006-02-28 Mike Kestner <mkestner@novell.com>
22675 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
22676 Clean up a tracker compile warning.
22677 * MenuItem.cs: add internal PerformPopup method.
22680 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
22682 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
22683 implicit expose) when the text is set to null
22685 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
22687 * RichTextBox.cs (FlushText): When newline is true, we always
22688 need to split the line, even if no text is on it and we may
22689 never eat newlines. (Fixes #77669)
22691 2006-02-28 Mike Kestner <mkestner@novell.com>
22693 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
22694 and set Selected instead.
22695 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
22698 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
22700 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
22702 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
22705 - Got rid of the panel. All controls are now directly added to
22707 - It is now possible to set a font with the Font property
22708 - MinSize and MaxSize property do now what they should
22709 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
22710 - Searching and selecting a font with the font textbox works now,
22711 the same applies to the style and size textbox
22712 - Draw the correct 3D border in the example panel
22713 - Fixed a little mem leak (unused fonts didn't get disposed)
22714 - Many other internal updates/rewrites...
22717 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
22720 - InsertRTFFromStream: Added 'number of characters inserted' argument
22721 - set_SelectedRTF: Now using the number of characters to calculate
22722 the new location for the selection and cursor (x/y cannot be used
22723 due to potentially already wrapped text)
22725 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
22727 * TextControl.cs: Added property and implemented means to allow
22728 disabling recalculation of a document (can be used to speed up
22729 multiple inserts and is needed to make RTF inserts predictable, see
22731 * RichTextBox.cs: Using the new NoRecalc property of Document to
22732 keep x/y insert locations predictable. Also makes it faster inserting
22733 large chunks of RTF
22735 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
22737 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
22738 it's easier for a child control to handle the other messages without
22739 having to duplicate the special functionality
22741 - WndProc: Removed calling base handler for WM_KEYDOWN and added
22742 code to handle processing the key ourselves, in order to get
22743 access to the result of KeyEventArgs.Handled. We now only call
22744 ProcessKey if they key hasn't been handled already. Fixes #77526.
22745 - set_Text: If null or empty string is given, just clear the
22746 document. Fixes part of #77526
22748 2006-02-27 Jackson Harper <jackson@ximian.com>
22750 * SizeGrip.cs: Paint the background color before painting the grip
22751 so things look right.
22752 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
22754 2006-02-27 Mike Kestner <mkestner@novell.com>
22757 - Restructure layout and invalidation model to remove a ton of
22758 flicker from the control and speed up performance in general.
22759 - Add manual column resize, flickers like crazy, but I already have
22760 some ideas on how I'll fix that. (#76822)
22761 - Merge the three Icon-based views into a single layout method.
22762 - Move item selection interaction logic from the item since
22763 interaction with the collections is more appropriate to the view.
22764 - Deselection on non-item clicks.
22766 - Encapsulate most of the layout. Add some internal props to trigger
22767 layout. Move to a model where Items invalidate themselves instead
22768 of just invalidating the whole control every time something changes.
22769 - Invalidate on Text/Caption changes.
22770 - switch to an offset based layout model to avoid having to absolute
22771 position every element on item moves.
22772 - correct checkbox layout to conform to MS layout.
22773 * ThemeWin32Classic.cs:
22774 - refactor some column header drawing code.
22775 - fix string justification for column headers (#76821)
22776 - make SmallIcon labels top justified for compat with MS impl.
22777 * ThemeClearlooks.cs:
22778 - adjust to new ListViewItem internal checkbox bounds api.
22780 2006-02-27 Jackson Harper <jackson@ximian.com>
22782 * Control.cs: Change where implicit controls fall in the zorder.
22783 They are now on top of all children.
22784 - Synced AddImplicit code with Add
22785 - Removed unused enumerator.
22786 * SizeGrip.cs: Remove the TODO as its been TODONE.
22788 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
22790 * TextControl.cs(Insert): Combine the last lines unless the insertion
22791 string ends with \n\n, otherwise we leave one line too many (Fixes
22792 something I noticed with the testapp for #77526; the bug itself was
22793 already fixed in the previous checkin)
22795 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
22798 - SelectionColor and SelectionFont methods no longer set absolute
22799 styles. Instead, the keep font or color respectively (This
22800 resolves a long-standing FIXME in the code)
22801 - When flushing RTF text, the insert code now considers text trailing
22802 behind the insertion point (Fixes the bug where when replacing
22803 the selected text via SelectedRTF the remainder of the line behind
22804 the selection would stay on the first insertion line)
22806 - AppendText now updates the selection points after inserting text
22807 - AppendText now ensures that the last tag (sometimes 0-length) of
22808 the document is used for the style information (Fixes part of
22811 - Created new FontDefiniton class to allow describing partial style
22813 - StreamLine() now takes a lines argument, to allow it to decide
22814 whether an encountered zero-length tag is the last in the document
22815 (which must be kept to not loose the font/color contained in it,
22817 - Created Combine() and Split() methods for Marker structs, to
22818 support marker updates due to reformatted documents (soft line
22820 - Implemented Document.CaretTag setter
22821 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
22822 of the last line (Not the cause, but also exposed by bug #77220)
22823 - Added LineTag argument to InsertString method, to allow callers
22824 to force a certain tag to be used (required to force use of the
22825 trailing zero-length tag of a document)
22826 - Now updating markers in Combine(), to avoid stale tag markers
22827 - Added some method descriptions to aid maintenance
22828 - Implemented new FormatText concept, allowing additive/subtractive
22829 formatting by only specifying the components that are to be
22830 changed. This was needed for resolving the RTB.SelectedColor/
22831 RTB.SelectedFont fixmes
22832 - Added Break() support method to allow breaking up linetags (used
22833 for partial formatting)
22834 - Added GenerateTextFormat() method. It is used for partial
22835 formatting and allows to generate a full font/color from given
22836 attributes and an existing tag.
22838 2006-02-26 Jackson Harper <jackson@ximian.com>
22840 * XplatUIX11.cs: Use the correct caption height.
22841 - Translate hittest coordinates to screen coords to match MS.
22842 * XplatUIWin32.cs: When we create MDI windows we need to reset
22843 some of the style flags, so we get a nice blank window, and can
22844 draw all the decorations ourselves.
22845 - Set a clipping rectangle on the non client paint event, the
22846 window manager drawing code needs one.
22847 * Form.cs: The window manager needs to know when the window state
22849 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
22850 don't need to factor in border and title sizes in these
22851 methods. TODO: Remove the args and fix the call points.
22852 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
22854 - Let the driver set the cursors.
22855 - Improve active window handling
22856 - Correct sizes for title bars and buttons.
22857 - Match MS drawing better
22858 * MdiWindowManager.cs: We don't need to handle border style
22859 updates specially anymore.
22860 - Check for scrollbars when windows are done moving
22861 - Handle Active properly.
22862 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
22863 correctly. I am spewing the exception though, so we don't hide the
22866 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
22868 * DataGridViewRowPostPaintEventArgs.cs,
22869 DataGridViewCellPaintingEventArgs.cs,
22870 DataGridViewRowCollection.cs,
22871 DataGridViewRowPrePaintEventArgs.cs,
22872 DataGridViewCell.cs: Clear a few warnings and implement a few
22873 exceptions that should be thrown.
22875 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
22877 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
22878 'inheriting' our parent's (non-default) cursor. (Part of
22879 the fix for #77479)
22881 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
22883 * XplatUIX11.cs: Fixed cast to make csc happy
22885 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
22887 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
22888 it's for the client area (part of fix for #77479 and needed
22889 for MDI window cursor handling)
22891 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
22892 the appropriate default cursors and also passing the message
22893 up the parent chain
22894 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
22895 for non-client areas
22897 2006-02-15 Jackson Harper <jackson@ximian.com>
22899 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
22900 is a real MDI window
22902 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
22904 * X11DesktopColors.cs: Instead of checking the desktop session
22905 string for "KDE" check if it starts with "KDE"
22907 2006-02-10 Jackson Harper <jackson@ximian.com>
22909 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
22912 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
22914 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
22917 - Got rid of the panel. All controls are now directly added to
22919 - Changed to mono coding style
22921 2006-02-10 Jackson Harper <jackson@ximian.com>
22923 * InternalWindowManager.cs: We don't need the set visibility to
22924 false hack anymore now that peter has written beautiful shutdown
22927 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
22929 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
22930 where already explicitly destroyed
22932 2006-02-10 Jackson Harper <jackson@ximian.com>
22934 * MdiClient.cs: Handle the case where windows are too high or to
22935 the left and we need scrollbars.
22937 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
22939 * MimeIcon.cs: Added some icons
22942 - Got rid of the panel. All controls are now directly added to
22944 - Changed to mono coding style
22945 - On Linux "My Computer" and "My Network" will now show some
22946 more usefull information. A new class, MasterMount, gathers
22947 this information from /proc/mount. Updated MWFFileView to make
22948 use of this information
22949 - Fixed a bug that caused FileDialog to crash when
22950 ".recently_used" file had a zero size
22951 - FilterIndex does now what it should
22953 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
22956 2006-02-09 Jackson Harper <jackson@ximian.com>
22958 * ComboBox.cs: Don't touch if null.
22960 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
22962 * Cursor.cs: 64bit safeness fix
22963 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
22965 2006-02-09 Jackson Harper <jackson@ximian.com>
22967 * Form.cs: If a form is made into an MDI form update the styles so
22968 all the props can get set correctly.
22969 - Kill the mdi_container when we dont need it anymore.
22970 * InternalWindowManager.cs: Add missing NOT
22972 2006-02-08 Jackson Harper <jackson@ximian.com>
22974 * InternalWindowManager.cs: Respek clipping when drawing MDi
22977 2006-02-08 Jackson Harper <jackson@ximian.com>
22979 * Hwnd.cs: Add bits to track non client expose events.
22980 * XplatUIX11.cs: Track non client expose events on the hwnd. This
22981 gives us a proper invalid rect and will allow for some nice
22982 optimizations with NC client drawing
22983 - MDI windows are children windows, so move their style handling
22984 into the child window block.
22985 * InternalWindowManager.cs: Remove a state reset that was
22986 getting invoked at the wrong time. Fixes managed windows getting
22987 into a 'stuck' captured state.
22989 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
22991 * TextControl.cs (Document.ctor): Now initializing
22992 selection_anchor. Fixes #77493
22994 2006-02-07 Jackson Harper <jackson@ximian.com>
22996 * TrackBar.cs: The increment/decrements were backwards.
22998 2006-02-07 Mike Kestner <mkestner@novell.com>
23000 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
23001 to the instance itself.
23003 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
23005 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
23006 on ulongs and pointers, the size differs between 32bit and 64bit
23009 2006-02-07 Mike Kestner <mkestner@novell.com>
23011 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
23012 for 64 bit platforms to work around a metacity bug.
23014 2006-02-07 Jackson Harper <jackson@ximian.com>
23016 * TrackBar.cs: Process the input keys we need, and hookup to
23017 KeyDown instead of using WndProc, so we get key messages.
23019 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
23021 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
23023 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
23024 we need to translate the XdndVersion atoms array before sending it
23026 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
23029 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
23030 number of bits for the property, not the number of bytes. The
23031 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
23032 but would not crash since it specified 8 bits instead of 4 bits)
23033 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
23034 defined as XID -> long in the C headers)
23035 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
23036 references since those are now IntPtr to begin with
23037 - Switched all Atom.XXX 'int' casts to IntPtr casts
23038 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
23039 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
23040 - Added XChangeActivePointerGrab DllImport (for X11DnD)
23042 - Changed 'int' type for Atoms in XEvent structures to IntPtr
23043 - Changed atom in HoverStruct to be IntPtr
23045 - Removed local DllImports, switched code to use those from XplatUIX11
23046 - Removed/fixed casts related to the switch of Atom to be a IntPtr
23048 2006-02-06 Mike Kestner <mkestner@novell.com>
23050 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
23051 method signatures in the import region. There may still be some
23052 lingering struct marshaling issues, as I didn't drill down into those.
23055 2006-02-06 Jackson Harper <jackson@ximian.com>
23057 * ComboBox.cs: Dont manually set the top_item, this is computed
23058 when the scrollbar position is set.
23060 2006-02-06 Mike Kestner <mkestner@novell.com>
23062 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
23063 startup crashes on amd64. There's other fixes needed. All pinvoke
23064 usage of Atom needs to be mapped to IntPtr for example. And there are
23065 likely other int/long issues to be addressed.
23067 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
23069 * FileDialog.cs: One more...
23071 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23073 * FileDialog.cs: Next try
23075 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23077 * FileDialog.cs: First part of fix for #77464
23079 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
23081 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
23082 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
23083 AcceptButton border drawing.
23085 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
23087 * Form.cs: Moved positioning of form after auto scaling is applied,
23088 otherwise it would possibly use wrong form size.
23090 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
23092 * Control.cs (RecreateHandle): No need to re-create any child
23093 controls, the child windows will get destroyed automatically by
23094 the windowing system or driver, and re-created when the handle
23095 is being accessed the first time. Fixes #77456
23096 * Form.cs: No longer setting the form to closing if the handle is
23097 being recreated. This seems like the right thing to do, don't
23098 have a bug or testcase for this, though.
23100 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23102 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
23103 controls to avoid unwanted side effects
23105 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23108 - ScaleCore needs to scale the bounds, not the ClientSize of the
23109 control. Fixes #77416.
23110 - DefaultSize is 0,0 for control
23112 - DefaultSize is 100, 20
23113 - SetBoundsCore: Now enforcing the height, no matter if the provided
23114 height is more or less than the preferred one, as long as AutoSize
23116 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
23118 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
23121 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
23122 call unless both performLayout is true *and* we have a pending
23124 - ResumeLayout: MS does not completely nest Suspend and Resume,
23125 they bottom out at 0, fixed our code to match that.
23126 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
23127 SetBoundsCore, we were updating even when we shouldn't. This fixes
23128 swf-anchors mis-anchoring when resizing the app fast and lots.
23129 - UpdateDistances: Now only setting the left and top distance if
23130 we have a parent and are not suspended, this is based on
23131 a suggestion by Don Edvaldson in bug #77355.
23132 - OnVisibleChanged: Fixed logic when to create the control. We may
23133 not create the control if we have no parent or if it's not visible;
23134 switched to using Visible property instead of is_visible field
23135 since the property also considers parent states. This fixes a bug
23136 when starting Paint.Net
23138 2006-02-02 Jackson Harper <jackson@ximian.com>
23140 * Form.cs: If the forms handle hasn't been created yet don't call
23141 into xplatui to make it top most, just set the topmost flag on the
23142 form in CreateParams
23143 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
23145 2006-02-01 Jackson Harper <jackson@ximian.com>
23147 * ScrollableControl.cs: Refactored the Recalculate method a
23148 little, this wasn't handling all the variants of bottom and right
23149 bars needed to be added and added/removed based on their
23150 counterparts being added/removed (which changes the drawable
23151 size). Also we special case client widths and heights of 0 and
23152 don't add the scrollbar for those.
23154 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
23157 - Added method to get AbsoluteGeometry(); currently unused, but might
23158 be used in the future, if we try again to figure out toplevel
23159 coordinates with some more crappy window managers
23160 - Added FrameExtents() method to retrieve the WM set decoration size
23161 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
23162 to deal with at least KDE, FVWM and metacity (Fixes #77092)
23164 - Added whacky_wm tracking var for metacity
23165 - Added logic to have default menu height if the actual menu height
23166 has not yet been calculated (part of fix for #77426)
23167 * Form.cs: Keep track whether client size has been set and re-set
23168 it if a menu is added/removed afterwards (Fixes #77426)
23170 2006-01-31 Jackson Harper <jackson@ximian.com>
23172 * Control.cs: When a new Site is set on the component attempt to
23173 pull the AmbientProperties from it.
23175 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
23177 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
23178 in the background of the owning form. Fixes #77332
23180 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
23182 * MimeIcon.cs: Fix for #77409
23184 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
23186 * XplatUIX11GTK.cs: Initial import
23188 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
23190 * FixedSizeTextBox: fixes class signature
23192 2006-01-30 Jackson Harper <jackson@ximian.com>
23194 * FixedSizeTextBox.cs: New internal class that represents a
23195 textBox that will not be scaled.
23198 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
23201 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
23203 * XplatUIX11.cs: Retrieve default screen number instead of
23204 assuming 0. Attempted fix for #77318
23206 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
23209 - GetWindowPos: When a window is parented by FosterParent, use
23210 the desktop instead of FosterParent as the base to get coordinates
23211 - CreateWindow: Don't make FosterParent the parent window for Popups
23212 if we don't want a taskbar entry, Popups automatically don't get one
23213 * Hwnd.cs: Need to call remove to actually remove the key from the
23216 2006-01-30 Mike Kestner <mkestner@novell.com>
23218 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
23220 2006-01-30 Jackson Harper <jackson@ximian.com>
23223 * TreeNode.cs: Raise events no matter how the treenode is
23224 checked. Patch by Don Edvalson.
23226 2006-01-30 Jackson Harper <jackson@ximian.com>
23228 * TreeNode.cs: Signature fix.
23230 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
23232 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
23234 2006-01-20 Mike Kestner <mkestner@novell.com>
23236 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
23237 event forwarding when menus are active.
23238 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
23239 Most of the patch is pdb's with a little rework.
23241 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
23243 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
23244 Removed GetMenuDC and ReleaseMenuDC methods; replaced
23245 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
23246 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
23247 * InternalWindowManager.cs: Added use of PaintEventStart/End to
23248 handling of WM_NCPAINT message, now passing the PaintEventArgs to
23249 the PaintWindowDecorations method
23250 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
23251 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
23252 * MenuAPI.cs: Made tracker window invisible
23254 - Removed GetMenuDC and ReleaseMenuDC methods
23255 - Implemented the client=false path for PaintEventStart and
23258 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
23260 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
23261 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
23264 - MaximizeBox, MinimizeBox: Recreate the handle when setting
23266 - CreateParams: Reworked the styles to match MS look'n'feel,
23267 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
23268 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
23270 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
23272 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
23273 window is not mapped, since otherwise every form that's being
23274 created is considered minimized, which is wrong.
23275 * Form.cs: Catching the exception and returning our internal value
23278 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
23280 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
23281 SetWindowMinMax() to have means to tell the driver about the minimum,
23282 maximum and maximized state window sizes. (Part of the fix for #76485)
23284 - Implemented tracking of minimum and maximum window size, now calling
23285 new SetWindowMinMax() driver method to tell the driver (Part of the
23287 - Finished handling of WM_GETMINMAXINFO method, now setting all values
23288 (Completes fix for #76485)
23289 - Calling new SetWindowMinMax driver method when the handle for a
23290 form is created, to make sure the driver knows about it even if
23291 the values have been set before the window was created
23292 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
23293 to avoid messing up our anchoring calculations (partial fix
23295 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
23297 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
23298 - Improved GetWindowState() to detect 'Minimized' state on Metacity
23299 (and presumably other freedesktop.org compliant WMs). Left the
23300 assumption unmapped=minimized, needed for SetVisible to work.
23301 - Now setting the window state when creating windows
23302 - Fixed SetVisible to consider/set the window state when mapping
23303 a Form. We cannot set the state before it's mapped, and we cannot
23304 use Form.WindowState once it's mapped (since it would ask the
23305 driver and get 'normal'. Therefore, we grab the state before
23306 mapping, map, and then set state.
23307 - Implmemented SetWindowMinMax method; Metacity does not seem to
23308 honor the ZoomHints, though.
23310 - Removed MINMAXINFO (moved to XplatUIStructs)
23311 - Added SetWindowMinMax stub (on Win32 the only way to set that
23312 information is in response to the WM_GETMINMAXINFO message, which
23313 is handled in Form.cs)
23314 - Added logic to SetVisible to set the proper window state when a
23315 form is made visible (fixes #75720)
23317 2006-01-26 Jackson Harper <jackson@ximian.com>
23319 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
23320 same way we handle them with Invoke.
23322 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
23325 - Added tracking of window state so CreateParams can return
23326 the appropriate style
23327 - Moved setting of WS_CAPTION style in CreateParams to allow
23328 styles without caption
23329 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
23330 control if the TextBox property is accessed. Fixes #77345
23332 - get_Created: now uses is_disposed and is_created to determine
23333 return value (suggested by Jackson)
23334 - CreateHandle: No longer exits if the handle is being recreated
23335 - RecreateHandle: If the handle is not yet created call the
23336 appropriate method to create either control or handle. If the
23337 control is already created CreateHandle will simply exit instead
23338 of just creating the handle
23339 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
23340 now SendMessage WM_DESTROY directly to the control when DestroyWindow
23343 - When DestroyWindow is called, instead of waiting for the
23344 DestroyNotification from X11, we directly post it to the WndProc
23345 and immediately dispose the hwnd object.
23346 Same applies to DestroyChildWindows, and this obsoletes the
23347 expose_pending tracking. Contrary to Win32 behaviour we destroy our
23348 child windows before our own, to avoid X11 errors.
23349 - Removed the direct sending of WM_PAINT on UpdateWindow
23351 - Reworked DoEvents and GetMessage to allow access to internal queue
23352 even when trying non-blocking access to the queue. Fixes #77335.
23353 Based on a patch suggestion by Don Edvalson. The new private
23354 GetMessage can now also be used as a backend for a PeekMessage
23356 * XplatUI.cs: Improved debug output for CreateWindow
23358 2006-01-25 Jackson Harper <jackson@ximian.com>
23360 * Help.cs: Allow param to be null. Patch by Don Edvalson.
23362 2006-01-24 Jackson Harper <jackson@ximian.com>
23364 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
23365 when we have a MaxDropItems lower then the selected index.
23367 2006-01-24 Jackson Harper <jackson@ximian.com>
23369 * Control.cs: Don't allow selection of non visible controls, allow
23370 selection of controls without parents.
23372 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
23374 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
23375 * DataGridDrawingLogic.cs: Add editing row only when is necessary
23377 2006-01-23 Jackson Harper <jackson@ximian.com>
23379 * UpDownBase.cs: Make the textbox handle all the selection and
23380 tabbing. This fixes tabing to updown controls.
23382 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
23384 * TextBoxBase.cs: fixes exception thown the object was null
23386 2006-01-23 Jackson Harper <jackson@ximian.com>
23388 * ButtonBase.cs: Just use the base CreateParams. They set
23389 visibility and enabled correctly.
23392 * MonthCalendar.cs: Lets let the base set as much of the
23393 createparams as possible so we don't have duplicate code all over
23396 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
23398 * ThemeGtk.cs: Added TrackBar and some experimental code to
23399 get double buffering back
23401 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
23403 * DataGrid.cs: Allows row number set internally higher than the last
23404 when creating a new row. Restores the editing functionality.
23406 2006-01-20 Mike Kestner <mkestner@novell.com>
23408 * MimeIcon.cs: delay Image creation until the icons are accessed
23409 instead of creating 190 scaled images on GnomeHandler startup.
23411 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
23413 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
23414 first call base before processing the event. Fixes #77279
23416 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
23418 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
23419 that the stride for the GDI bitmap would match the stride of
23422 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
23424 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
23426 2006-01-19 Jackson Harper <jackson@ximian.com>
23428 * ComboBox.cs: Hookup the text controls keydown event so we get
23429 those when the text control has the focus.
23431 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23433 * Label.cs: Now using the base events instead of defining new ones;
23434 this allows us to just call the base properties without having to
23435 duplicate all base property logic
23437 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23439 * Label.cs: A label by default is not a tabstop (Fixes one of our
23440 failing nunit tests)
23442 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23444 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
23445 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
23447 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
23449 * Cursor.cs: Reimplemented creating cursor bitmaps without using
23450 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
23453 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
23454 constructor creates images that can't be saved. Part of the fix
23456 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
23457 - SetWindowState: Switched ShowWindow flags (part of an upcoming
23458 bug fix for handling window state in forms properly)
23460 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23462 * ThemeGtk.cs: Simplify ScrollBar drawing
23464 2006-01-18 Jackson Harper <jackson@ximian.com>
23466 * Splitter.cs: Set the default dock style for the splitter control
23467 in the constructor.
23469 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23471 * ThemeGtk.cs: Corrected StateType and ShadowType for
23474 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23476 * Control.cs: Make use of Theme.DoubleBufferingSupported
23478 - Added drawing for flat style buttons
23479 - Added ScrollBar drawing
23481 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
23483 * ThemeClearlooks.cs: Removed some unneeded code.
23484 * ThemeGtk.cs: First part of ThemeGtk enhancements.
23486 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
23488 * LinkLabel.cs: We need to update the hover drawing when
23489 leaving the control as well.
23491 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
23493 * DataGrid.cs: Clicking on non empty areas in the columns
23494 area was giving an exception
23496 2006-01-17 Jackson Harper <jackson@ximian.com>
23498 * ThemeWin32Classic.cs:
23499 * ListView.cs: Do not draw/clip the headers when the header style
23502 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
23504 * DataGrid.cs: Fixes 77260
23506 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
23508 * DataGrid.cs: Clicking on a column on a empty grid was giving
23511 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
23513 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
23514 or any keypress will crash the grid.
23516 2006-01-17 Mike Kestner <mkestner@novell.com>
23518 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
23519 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
23520 invisible/previously-visible items.
23523 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
23525 * ThemeClearlooks.cs:
23526 - Added CL_Draw_Button method; now other theme controls that are
23527 not derived from button or do not have a button can draw buttons
23529 - Updated ComboBox drawing
23530 - Beautified RadioButton drawing
23531 - Corrected drawing of bottom and left tabs
23532 - Beautified DateTimePicker and MonthCalendar
23533 - Added CPDrawButton and CPDrawRadioButton
23535 2006-01-16 Jackson Harper <jackson@ximian.com>
23537 * ComboBox.cs: Set the initial value of the scrollbar to the
23538 current index. Reduce the numbers of refreshs and IndexOfs called.
23540 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
23542 * FileDialog.cs: When the file listview is focused hitting the
23543 backspace key moves the fileview to the parent directory
23545 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
23548 - Added RecreateHandle call when changing taskbar visibility to
23549 trigger reparenting in Win32 driver (Fixes #75719)
23550 - If a window has minimize or maximize buttons, it cannot have
23553 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
23554 the toplevel form with FosterParent (A toolwindow not on the
23555 taskbar) (Fixes #75719)
23556 - Made FosterParent a toolwindow
23558 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
23560 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
23562 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
23564 * ToolTip.cs: If SetToolTip is called from a control and the mouse
23565 is currently over that control, make sure that tooltip_window.Text
23568 2006-01-13 Mike Kestner <mkestner@novell.com>
23570 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
23572 2006-01-13 Jackson Harper <jackson@ximian.com>
23574 * TreeView.cs: On MS GetNodeAt never actually factors in the X
23575 value passed. Also redraw the selected node when we recieve
23576 focus, so tabbing between trees works correctly.
23578 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
23580 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
23581 ~/.gconf/%gconf-tree.xml, so use
23582 .gconf/desktop/gnome/interface/%gconf.xml
23584 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
23586 * TextControl.cs: Draw text in gray if control is disabled
23588 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
23590 * TreeView.cs: Draw the focus rectangle outside the highlight, to
23591 make sure it's always visible. Fixes #76680.
23593 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
23595 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
23597 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
23599 * PageSetupDialog.cs: Added.
23600 * PrintDialog.cs: Attributes.
23601 * PrintPreviewControl.cs: Updates.
23602 * PrintPreviewDialog.cs: Updates.
23604 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23606 * Control.cs: Undid my selection check fix, since it's not needed
23608 - Now considering the presence of hscroll/vscroll when sizing
23609 vscroll/hscroll respectively. Fixed bug #77077
23610 - Added Left/Up/Down/Right to IsInputKey list to prevent
23611 ContainerControl from stealing them. This fixes what I broke
23612 with my last checkin.
23614 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23616 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
23617 I finally understand how the property can be set without a setter :-)
23619 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23622 - Switched RunLoop to use static Message.Create to create a
23624 - Added PreProcessMessage call in runloop for keyboard events; this
23625 is part of the fix for #77219, I overlooked this originally in the
23626 MSDN doc for PreProcessMessage
23628 - Removed call to PreProcessMessage from handling of keyboard
23629 messages; it's supposed to be done in the message pump
23630 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
23631 per MSDN documentation.
23632 - IsInputChar: All chars are input chars by default; removed the
23633 parent calling chain, MS does not document that
23634 - PreProcessMessage: If IsInputChar is true, we want to return false
23635 to allow dispatching of the message
23636 - When selecting the next control, now also check that we're not
23637 selecting ourselves again and therefore return a false positive.
23639 - Tried to match return values for IsInputKey and ProcessDialogKey
23640 to what MS returns; moved processing of our special keys outside
23641 ProcessDialogKey since MS does not seem to return true on those.
23642 - Moved code that previously was in ProcessDialogKey into new private
23643 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
23644 - Reworked handling of WM_CHAR to not have to duplicate code from
23645 Control.cs anymore, instead we simply call down to base.
23647 2006-01-12 Jackson Harper <jackson@ximian.com>
23649 * ComboBox.cs: We always need to refresh the text area when
23650 EndUpdate is called. Fixes the combobox in the file dialog.
23651 * Control.cs: Don't create the creator_thread until the controls
23652 handle is created. Also in InvokeRequired we check if the
23653 creator_thread is null. This gives the effect of InvokeRequired
23654 returning true if the controls handle is not created yet, and
23657 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23660 - Added StartLoop() driver method. This is used to allow drivers to
23661 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
23662 loop for a particular thread
23663 - Added EndLoop() driver method. This is called once the message
23664 pump for the thread is shut down
23665 - Added SupportsTransparency method to allow the driver to indicate
23666 opacity support for windows
23668 - Removed TODO attribute, completed AllowTransparency property
23669 - Added documented logic to Opacity
23670 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
23671 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
23672 versions of CompatibleTextRendering
23673 * X11Structs.cs: Added opacity atom to our atom enumeration
23674 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
23675 of a form might be set before it's reparented by the WM, and we need
23676 the opacity value without calling up to Form)
23677 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
23678 SupportsTransparency() driver methods
23679 * Application.cs: Now calling StartLoop and EndLoop driver methods
23681 - Added opacity atom registration
23682 - Added StartLoop()/EndLoop() methods. They're empty right now but
23683 will need to get implemented when we switch to a per-thread queue
23684 - Implemented SupportsTransparency() method
23685 - Implemented SetWindowTransparency() method
23686 - Added support for setting the opacity value when a window is
23687 reparented (since the opacity needs to be set on the WM frame)
23688 * XplatUIOSX.cs, XplatUIWin32.cs:
23689 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
23691 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
23693 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
23695 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
23697 * FileDialog.cs: Added ToolTip for MWFFileView
23698 * MimeIcon.cs: Rewrote GnomeHandler.
23699 - Get currently used gnome icon theme from
23700 ($HOME)/.gconf/%gconf-tree.xml
23701 - Make use of inherited icon themes
23702 - Support SVG icon themes like Tango via librsvg
23704 2006-01-12 Miguel de Icaza <miguel@novell.com>
23706 Revert's Jackson's revert which broke 2.0 builds. Fix both
23709 * Application.cs: Move the use_compatible_text_rendering outside
23710 the NET_2_0 define. If we ever need to use the
23711 use_compatible_text_rendering on the individual controls they will
23712 access the variable from the common shared code paths.
23714 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
23717 - Added more granular debug options
23718 - Added method to print both window text and id
23719 - Switched debug output to use new Window() debug method
23720 - Added IsEnabled() driver method
23721 - Added EnableWindow() driver method
23723 - Removed end_modal; no longer needed, new loop handles termination
23724 via 'closing' variable
23725 - If form is modal, setting DialogResult will now initiate loop
23726 termination via 'closing' variable
23727 - Added support for is_enabled/WS_DISABLED to CreateParams
23728 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
23730 - Removed code that's now in RunLoop from ShowDialog()
23731 - Added various documented sanity checks to ShowDialog()
23732 - Added handling of WM_DESTROY message; we set 'closing' on getting
23733 the message to indicate the message pump to terminate
23734 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
23735 send by the Application.ExitThread method. (We send the message
23736 to destroy the window after all other events have been
23737 processed through the queue, instead of destroying the handle
23739 - Moved code from Close() method to WM_CLOSE handler; added logic
23740 to only send close-related events if the form is not displayed
23742 * Splitter.cs (..ctor): Fixed typo in resource name
23744 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
23746 - set_Cursor: Now only setting calling into XplatUI if the handle for
23747 the control is already created; this avoids implict handle creation
23748 or crashes if it's not created
23749 - set_Enabled: Now setting the enabled state via the new driver method
23750 instead of just tracking it
23751 - CreateParams: Added logic to set WS_DISABLED based on enabled state
23752 - CreateControl: Reordered event firing and method calls to more
23753 closely fire events in the order MS does. Now setting the
23754 enabled state in the driver when creating the control.
23755 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
23757 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
23758 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
23759 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
23761 - Added tracking of window enabled state (get_Enabled/set_Enabled)
23762 - Added EnabledHwnd property to easily allow a driver to find the
23763 handle of the first enabled window in the parent chain (this is
23764 used by drivers to pass up input events of disabled windows)
23765 * XplatUIDriver.cs: Added IsEnabled() method
23767 - Removed crude and obsolete exiting tracking variable
23768 - Removed internal ModalRun(); replaced by RunLoop()
23769 - Implemented private CloseForms() method to allow closing all
23770 windows owned by a particular (or all) threads
23771 - Exit() now properly closes all windows without forcing the message
23773 - Removed obsolete InternalExit() method
23774 - Changed Run() methods to use new RunLoop() message pump
23775 - Implemented new RunLoop() method for both modal and non-modal forms
23777 - get_CreateParams: Added setting of WS_DISABLED
23778 - Simplified ShowDialog(); now all the work is done in RunLoop(),
23779 invoked via Form.ShowDialog()
23780 * NativeWindow.cs: We don't remove the window from the collection when
23781 the handle is destroyed; there might still be messages for it in the
23782 queue (mainly the resulting WM_DESTROY); instead it will be removed
23783 when Control calls InvalidateHandle in the WM_DESTROY handler
23785 - CreateWindow: Added logic to handle the WS_DISABLED window style
23786 - EnableWindow: Implemented based on Hwnd.Enabled
23787 - GetMessage: Reset PostQuitState so the method can be called again
23788 - Implemented support for disabled windows (passing messages to the
23789 first enabled parent) in handling all input messages
23790 - Added optimizations for handling Expose events
23791 - Implemeted new driver method IsEnabled()
23792 - Now always resetting paint pending tracking vars when we start paint
23793 - Re-implemented UpdateWindow via just sending a WM_PAINT message
23794 * XplatUIOSX.cs: Added IsEnabled method stub
23795 * XplatUIWin32.cs: Implemented new IsEnabled() method
23797 2006-01-11 Jackson Harper <jackson@ximian.com>
23799 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
23800 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
23801 variables a little.
23802 * ColorDialog.cs: Clear out the old form before adding the new
23805 2006-01-11 Jackson Harper <jackson@ximian.com>
23807 * X11Dnd.cs: Make sure to add all the text formats when adding
23808 strings to the data object.
23809 * TreeNodeCollection.cs: When adding to a sorted tree we need to
23810 do some redrawing too. Also change the UpdateNode to an
23811 UpdateBelow so the newly added node gets painted.
23813 2006-01-11 Miguel de Icaza <miguel@novell.com>
23815 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
23816 LinkLabel.cs, PropertyGrid.cs: Implement the
23817 UseCompatibleTextRendering property for 2.x
23819 * Application.cs (SetCompatibleTextRenderingDefault): Add.
23821 2006-01-11 Jackson Harper <jackson@ximian.com>
23823 * TreeView.cs: Use the property for setting the selected node so
23824 the correct events get raised.
23825 * TreeNode.cs: Update the tree when the fore/back colours of a
23828 2006-01-10 Jackson Harper <jackson@ximian.com>
23830 * TreeView.cs: Allow setting SelectedNode to null.
23832 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23834 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
23836 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23838 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
23840 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23842 * PrintDialog.cs: Added attributes and set default property values.
23844 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23846 * PrintControllerWithStatusDialog.cs:
23847 Added PrintControllerWithStatusDialog.
23849 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23851 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23852 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
23854 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
23856 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
23858 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
23860 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
23861 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
23863 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
23865 * MimeIcon.cs: Added internal class SVGUtil.
23867 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
23869 * FileDialog.cs: Don't crash if there are two files with the
23870 same name but different locations.
23872 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
23874 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
23875 dates across multiple month grids. Used to not highlight entire
23876 month, but does now.
23878 2006-01-06 Jackson Harper <jackson@ximian.com>
23880 * MonthCalendar.cs: Removed DoEvents call to prevent a running
23881 message loop. Change timer intervals to numbers that seem more
23884 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
23886 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
23887 object for location info since screen object is now implemented.
23889 2006-01-05 Jackson Harper <jackson@ximian.com>
23891 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
23892 * AsyncMethodResult.cs: We no longer use a WeakReference for the
23893 AsyncMethodResult, this is because we ALWAYS want the
23894 ManualResetEvent to get set.
23895 * Control.cs: When disposing use an async invoke to call shutdown
23896 code, so that thigns don't block on the finalizer thread. Also
23897 check if we even have a message loop before trying to send
23898 messages, if we don't then don't bother sending messages.
23899 - No more weak references for async methods
23900 * XplatUIDriver.cs: No more weak references for async methods.
23902 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
23904 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
23905 returns two FontFamily with the same name
23907 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
23909 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
23910 drawing disabled text. Instead using the ColorGrayText color
23912 2006-01-04 Jackson Harper <jackson@ximian.com>
23914 * TreeNode.cs: redraw the node when its image index is changed.
23916 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
23918 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
23919 time I checked there are no others like it.
23921 2006-01-04 Jackson Harper <jackson@ximian.com>
23923 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
23924 this gives the behavoir I was looking for.
23925 * Control.cs: Special case Invoking EventHandlers, this matches MS
23926 and fixes part of bug #76326.
23928 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
23930 * ThemeClearlooks.cs, FileDialog.cs:
23931 - Reflect the latest Theme class changes
23932 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
23935 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
23937 * Theme.cs: Cache UI resource images and resize them if needed
23939 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
23941 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
23942 is called. This fixes the crash in Nexxia when setting the font
23943 attributes in the chat. [However, RTF needs a look-over to make sure
23944 that all SelectionXXX methods handle the special case that selection
23945 is empty and therefore the change must be applied to all text starting
23946 at the cursor/selection start]
23948 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
23950 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
23951 XplatUIOSX.cs: Added SendMessage and PostMessage methods
23952 * X11Keyboard.cs: Switched to new way of calling PostMessage
23954 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
23956 * Theme.cs: Added theme interface for images to allow the theme to
23957 control what images are used for things like FileDialog, MessageBox
23959 * MessageBox.cs: Now uses the new Theme icon/image interfaces
23961 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
23964 - Removed some dead code
23965 - Opening a recently used file does work now
23966 - Small UI enhancements
23969 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
23971 * FileDialog.cs: Forgot too add __MonoCS__
23973 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
23975 * FileDialog.cs: We are able to read recently used files now let's
23976 go on and write them.
23978 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
23980 * FileDialog.cs: Breathe some life into "last open"/"recently used"
23982 * MimeIcon.cs: Do a check for the top level media type also
23984 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
23986 * ThemeClearlooks.cs:
23987 - Added CPDrawStringDisabled
23988 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
23989 some chars if the text doesn't fit into text_rect
23990 - DrawListViewItem: If View = View.LargeIcon center the image;
23991 rewrote the drawing of ListViewItem.Text if View =
23994 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
23996 * MimeIcon.cs: Use default KDE icon theme if there is no
23997 "48x48" directory for the current icon theme, fixes #77114
23998 * Mime.cs: Disable not working and actually not used code.
23999 * ThemeWin32Classic.cs:
24000 - Replace "new SolidBrush" in GetControlBackBrush and
24001 GetControlForeBrush with ResPool.GetSolidBrush
24002 - Changed DrawListViewItem from private to protected virtual
24004 - Added form.MaximizeBox = true
24005 - Don't throw an exception if there is a broken symbolic link
24007 2005-12-23 Jackson Harper <jackson@ximian.com>
24009 * TabControl.cs: Give the panels focus, keyboard navigation is
24010 fixed so this works correctly now.
24011 - We need these key events also.
24012 * ToolBar.cs: Remove some of the poor mans double buffering.
24014 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
24016 * ComboBox.cs: The internal TextBox now returns the focus.
24018 2005-12-23 Jackson Harper <jackson@ximian.com>
24020 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
24022 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24024 * Control.cs: Removed debug code
24025 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
24028 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24030 * Control.cs: When creating the control, update the Z-order after
24031 all it's children are created, too. (Fixes nexxia not showing
24034 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
24036 * Control.cs: Do not update the anchoring distances if layout is
24037 suspended, instead do it once layout is resumed
24039 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24042 - After many hours of debugging, for both Jackson and
24043 myself, it turns out that it helps to set the parent of a control
24044 if you want to actually see it onscreen. In the spirit of that
24045 discovery, we're now setting the parent of the control and
24046 it's children when the control's handle is created. This fix
24047 will make Lutz Roeder's Reflector run happily.
24048 - now just creating the handle instead of the whole control when
24049 getting a graphics context for the control.
24051 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24053 * ScrollableControl.cs: When calculating the canvas, don't consider
24054 the scrollbar widths. Instead, predict if horizontal scrollbar
24055 will affect canvas when deciding on vertical display and vice versa.
24057 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
24059 * RichTextBox.cs: Set default RTF font for documents that don't
24060 have a font table (Fixes #77076)
24062 2005-12-22 Jackson Harper <jackson@ximian.com>
24064 * TextBoxBase.cs: It's difficult to do, but you can have an empty
24065 clipboard. This prevents a NullRef in that case.
24066 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
24067 clipboard. PRIMARY is for the currently selected text only. (We
24068 should implement PRIMARY at some point.
24070 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24072 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
24073 a Unicode function with a structure that was defined in Ansi way.
24076 2005-12-21 Jackson Harper <jackson@ximian.com>
24078 * StatusBar.cs: Statusbar handles its fore/back colours on it's
24079 on. Because thats how it rolls. (and this avoids it using ambient
24081 * ThemeWin32Classic.cs: Use the proper back color for filling.
24082 * Menu.cs: Use the system menu bar color for drawing menu
24083 bars. Using the window back color will bring ambient colours into
24086 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
24088 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
24089 Bitmaps were created and not disposed.
24091 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24093 * Control.cs (CreateControl): Don't do anything if the control is
24094 already created, otherwise we'd fire the OnCreated event more than
24097 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24099 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
24100 will always match. Instead return -1. Fixes #76464.
24102 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24104 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
24105 neither the beginning nor the end of the line (Fixes bug #76479)
24107 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
24110 - ControlNativeWindow.ControlFromHandle(): Now handling situation
24111 where handle is invalid
24112 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
24113 instead of slower linear search
24114 * NativeWindow.cs: Don't remove the window from the hashtable until
24115 after the driver has destroyed it (since the driver might use
24116 Control.FromHandle to lookup the control object
24117 * Hwnd.cs: Added DestroyPending property to track if a window is
24118 already destroyed as far as the driver is concerned and only hasn't
24119 yet notified the control
24121 - Activate(): Check if the window is still valid before using the
24123 - Implemented DestroyChildWindow() method to mark child windows as
24124 destroyed when a window is destroyed. This prevents situations
24125 where we might call an X method based on queued events for a
24126 window that already has been destroyed but we haven't yet pulled
24127 the destroy method from the queue.
24128 - Added a call to the new DestroyChildWindow() method to the drivers
24129 DestroyWindow code. Also now marking the destroyed window itself
24132 2005-12-20 Jackson Harper <jackson@ximian.com>
24135 * StatusBarPanel.cs: Don't calculate panel sizes on draw
24136 anymore. Just do them when needed, also track the rects of panels
24137 so that we can optimize refreshing more in the future.
24139 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
24141 * ColorDialog.cs: Fixed focus drawing in small color controls
24143 2005-12-19 Jackson Harper <jackson@ximian.com>
24145 * InternalWindowManager.cs:
24146 * MdiWindowManager.cs: Cleanup some coordinate system changes so
24147 moving windows works properly.
24149 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
24152 - Removed call to InitLayout() from SetBoundsCore(); doc says
24153 it's only called when a control is added to a container
24154 - Split InitLayout logic, moved to separate UpdateDistances() method
24155 since we need to perform those calculations more often than just
24156 when adding the control to a container. (Needed to fix #77022)
24157 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
24158 - Reduced the OnBindingContextChanged events count, don't send them
24159 unless the control is created, we still aren't totally matching
24160 MS, but I can't quite figure out some of their rules
24162 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
24164 * ThemeClearlooks.cs: Corrected distance between ProgressBar
24167 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
24169 * ThemeClearlooks.cs:
24170 - Updated ProgressBar drawing
24171 - Corrected drawing of ScrollBars and scroll buttons
24172 - Some temporary fixes for minor pixel artefacts
24174 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
24177 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
24178 cause events to be sent in the same order as MS does.
24179 - Added ChangeParent() method to trigger various OnXXXChanged events
24180 that need to be fired when a parent changes (This is a reworking
24181 of the patch from r54254, with the X11 errors fixed)
24182 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
24183 since on MS we get OnLayoutChanged events when calling Clear()
24184 - Changed Enabled property to consider parent state as well, if a
24185 parent is not enabled, the control will not be either
24186 - Changed Parent property to simply call Controls.Add() since that
24187 now does all the work required, this way we avoid code duplication
24188 - Threw in a few OnBindingsContextChanged calls to try and match
24189 when MS sends them. We seem to send a few too many, though.
24190 - Added call to CreateControl when adding the control to a parent.
24191 We were never calling CreateControl. Still needs some work, in
24192 some places we treat HandleCreated and ControlCreated as equal,
24194 - Removed obsolete commented out code from UpdateZOrder()
24196 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
24198 * ThemeClearlooks.cs: Updated TrackBar drawing.
24200 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
24202 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
24204 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
24206 * FileDialog.cs: Add the Help button and the open readonly
24207 checkbox only if needed
24209 2005-12-16 Jackson Harper <jackson@ximian.com>
24211 * Control.cs: Make sure we have an active menu before trying to
24212 process commands on it. Prevents menu-less forms from crashing
24213 when Alt is pressed.
24214 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
24216 * RichTextBox.cs: Expand statement to help out gmcs and fix the
24219 2005-12-16 Jackson Harper <jackson@ximian.com>
24221 * InternalWindowManager.cs: Don't translate tool windows screen
24222 coordinates. This fixes windows 'bouncing' around when being moved.
24224 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
24227 - MaxLength now treats 2^31-1 equal to unlimited length (this is
24228 not quite MS compatible, MS uses that number only for single line
24229 and 2^32-1 for multi-line, but I figure it won't hurt keeping
24231 - Now enforcing the MaxLength limit when entering characters
24232 - Added argument to internal Paste() method to track if it's called
24233 from programatically or via keyboard, since keyboard driven pastes
24234 need to enforce max-length
24235 - Added logic to Paste to only paste as many chars as MaxLength
24237 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
24239 - Added Length property to return number of characters in document
24240 - Added private CharCount property which only tracks actual chars
24241 in the document (no linefeeds) and fires event when CharCount
24243 - Added tracking of character count to all methods that alter it
24244 - Added LengthChanged event to allow applications to subscribe
24245 to any changes to the document
24247 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
24250 - Removed local password_char field (moved to TextBoxBase)
24251 - Now setting the document's password var when password is
24254 - Added password_char field (needed here so MultiLine can
24256 - Added logic to MultiLine property setter to set the document's
24257 variable when password display is allowed
24258 - Removed debug code and made some debug code conditional
24260 - Added RecalculatePasswordLine() method to handle special password
24262 - Added PasswordChar property, also added related tracking vars
24263 - Draw() method now uses local text var for grabbing text to draw,
24264 this var is set to line.text unless we're doing password display,
24265 then it is set to the pre-generated all-password-chars line
24266 - Added calling RecalculatePasswordLine() method for password lines
24268 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
24271 - Added Reparented property to allow tracking of Window Manager
24272 reparenting actions (which affect X/Y calculations of toplevel
24274 - Made ToString() print window handles in hex
24276 - AddConfigureNotify(): Now uses reparented state off Hwnd to
24277 determine if X/Y needs offsetting
24278 - AddConfigureNotify(): Fixed offset calculations
24279 - Now adds ReparentNotify messages into the queue
24280 - Now processes ReparentNotify messages and causes a
24281 WM_WINDOWPOSCHANGED message to be sent upstream if a window
24282 is reparented (as most likely it's X/Y coordinates are changed
24285 2005-12-14 Jackson Harper <jackson@ximian.com>
24287 * XplatUIX11.cs: Tool windows still need to respek focus.
24289 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
24291 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
24292 have a working release
24294 2005-12-13 Jackson Harper <jackson@ximian.com>
24296 * Form.cs: Update styles after setting the border style regardless
24297 of whether or not the window is using a window manager.
24299 2005-12-13 Jackson Harper <jackson@ximian.com>
24301 * Form.cs: We now hook into an internal window manager instead of just an
24302 MDI subsystem, this is so we can have properly behaving tool windows.
24303 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
24304 * InternalWindowManager.cs: New internal class that acts as a
24305 window manager for tool windows and as a base for mdi windows.
24306 * MdiWindowManager.cs: New class that acts as a window manager for
24309 2005-12-12 Jackson Harper <jackson@ximian.com>
24311 * Control.cs: Updates so we match behavoir for for implicit
24312 controls. Fixes explosions in MDI.
24314 2005-12-12 Jackson Harper <jackson@ximian.com>
24316 * Control.cs: Implement Invalidate (Region).
24318 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
24321 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
24322 the same events as MS does. MS fires events for each property
24323 except, for unknown reasons, Cursor, when the control is reparented.
24324 I can't seem to totally match add/remove since MS also fires some
24325 VisibleChanged events, which makes no sense. Consolidated the
24326 parenting code into a separate method so it can be called from
24327 both Add and Remove. set_Parent no longer needs any special logic
24328 as it calls the parent's add method which implicitly fires
24330 - Removed some obsolete code and debug output
24331 - Enabled state is inherited from parents, if this is enabled
24333 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
24335 * Form.cs: Removed commented out code
24337 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
24340 - Added internal version of Invoke, with additional argument
24341 indicating if we're calling it from a Dispose() handler. That
24342 way we can avoid BeginInvoke throwing an exception if we're
24343 calling for an already destroyed window.
24344 - Added a dispose argument to BeginInvokeInternal, and made the
24345 check if a valid window handle chain exists conditional on
24346 it not being a dispose call
24347 - Removed code in DestroyHandle to destroy our children. Since we
24348 now handle the WM_DESTROY message we will catch all our children
24350 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
24352 - Added a field to track the application context of the form.
24353 - No need to set closing variable as response to WM_CLOSE, instead
24354 we destroy the window. We also call PostQuitMessage if the form
24355 has an application context (which makes it the main app form,
24356 which, when closed terminates the app)
24358 - Dropped Exit() method, it's naming was confusing
24359 - Added PostQuitMessage() which causes GetMessage to return false
24360 once the message queue is empty
24361 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
24363 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
24364 no longer a valid XplatUI method, but left it in since it's used
24365 internally. Added empty PostQuitMessage() method.
24366 * MenuAPI.cs: Replaced call to Exit() with call to
24367 PostQuitMessage, even though this is probably no longer needed.
24368 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
24369 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
24371 - Replaced call to XplatUI.Exit() with PostQuitMessage()
24372 - Removed old debug code that would call XplatUI for exception
24373 display, enabled standard exception handling (Still not enabled
24374 though, until NativeWindow's ExternalExceptionHandler define
24377 - Added internal method to allow control to update NativeWindow
24378 after a window has been destroyed
24379 - Added handling of already destroyed windows when calling i
24381 - Added removal of handle from list on ReleaseHandle
24383 - Dropped GetMessageResult var and related code
24384 - Added PostQuitState to field to track if PostQuitMessage has been
24386 - Dropped Exit() method
24387 - Added PostQuitMessage() method
24388 - GetMessage now will return false if PostQuitState is set and no
24389 more messages are in the queue.
24390 - Expose handler will no longer generate WM_PAINT messages if we are
24391 in PostQuitState since it's very likely any windows have already
24392 been destroyed, and since Hwnd won't get updated until we have
24393 processed the DestroyNotify we'd be causing X errors.
24395 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24397 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
24398 Thanks to Mike for pointing out the err of my ways.
24400 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24402 * Control.cs(PreProcessMessage): Moved menu handling back, but
24403 after all other key handling, to match MS (who handles Menu in
24405 * Menu.cs (WndProc): Removed my brainfart
24407 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24409 * Control.cs(PreProcessMessage): Removed special menu handling
24410 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
24412 2005-12-07 Mike Kestner <mkestner@novell.com>
24414 * Control.cs : special case SYSKEYUP so that we can adjust keynav
24415 state according in tracker.
24416 * Menu.cs : promote tracker field to base class and provide a tracker
24417 lookup capability. Add/Remove shortcuts dynamically if the top menu
24418 has a tracker. Unparent items that are removed from the collection.
24419 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
24420 * Theme*.cs: add always_show_hotkeys field to support configurability
24421 of mnemonic display. win32 doesn't show mnemonics until Alt is
24424 2005-12-07 Jackson Harper <jackson@ximian.com>
24426 * MdiChildContext.cs: Use Control.ResetCursor.
24427 * Control.cs: ResetCursor needs to set the property so that the
24428 correct XplatUI call gets made.
24430 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24432 * Control.cs: More fixes to make our key events match MS. We
24433 were not setting the modifier state on KeyData, and we were
24434 not generating any events when Alt was pressed with a key
24435 since handling of WM_SYSxxx was missing for the OnKey methods.
24437 2005-12-07 Jackson Harper <jackson@ximian.com>
24439 * MdiChildContext.cs: reenable the sizing code.
24440 - When the mouse leaves a window reset its cursor.
24442 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
24444 * ThemeClearlooks.cs: Reflect latest Hwnd changes
24446 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
24448 * Hwnd.cs: Now using the theme 3d bordersize to calculate
24449 widths of Fixed3D borders
24451 2005-12-07 Jackson Harper <jackson@ximian.com>
24453 * MdiClient.cs: Fix warnings. Earn Mike's love.
24455 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
24457 * ThemeClearlooks.cs:
24458 - Adjusted mouse over button color
24459 - Added first parts of CheckBox drawing
24460 - Added correct color for selected text background
24461 - Fixed ComboBox drawing
24462 - Added CPDrawBorder3D and CPDrawBorder
24464 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
24466 * XplatUIX11.cs: Added call to XBell for AudibleAlert
24468 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
24470 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24471 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
24472 alert users via sound. We could add an enum arg with different
24473 types of alerts in the future
24475 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
24477 * Control.cs: Fix behaviour problems pointed out by Mike
24479 2005-12-05 Mike Kestner <mkestner@novell.com>
24481 * StatusBarPanel.cs: add Invalidate method and hook it into all the
24482 prop setters. Calls parent.Refresh for now, but could be maybe be
24483 optimized with an internal method on StatusBar at some point.
24486 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
24488 * RichTextBox.cs: Implemented get_SelectionColor
24490 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
24492 * ThemeClearlooks.cs:
24493 - Removed dead code
24494 - Draw black button border only if button is Form.AcceptButton
24495 - Draw correct button color for pressed RadioButton if the mouse
24496 has entered the button
24497 - Updated ProgressBar drawing!
24498 - Updated CPDrawSizeGrip drawing
24499 - Updated StatusBarPanel drawing
24501 2005-12-05 Mike Kestner <mkestner@novell.com>
24503 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
24504 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
24506 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
24508 * ThemeClearlooks.cs: Initial check-in, activate with
24509 export MONO_THEME=clearlooks
24510 * ThemeEngine.cs: Added ThemeClearlooks
24512 2005-12-03 Mike Kestner <mkestner@novell.com>
24514 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
24517 2005-12-02 Jackson Harper <jackson@ximian.com>
24519 * Form.cs: If the child form has no menu the default main menu is
24520 used as the active menu.
24522 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
24524 * ListBox.cs: Check if any items exist before trying to resolve
24525 coordinates into items
24527 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
24529 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
24530 as the second color for the background hatch
24532 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
24534 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
24535 * RichTextBox.cs: FormatText position arguments are 1-based, now making
24536 sure that what we pass to FormatText is always 1-based. Fixes #76885
24538 2005-11-29 Miguel de Icaza <miguel@novell.com>
24540 * NumericUpDown.cs (EndInit): When we are done initializing,
24541 reflect any updates on the UI.
24543 2005-12-02 Jackson Harper <jackson@ximian.com>
24545 * ImplicitHScrollBar.cs:
24546 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
24547 their container controls.
24548 * TreeView.cs: Use the new implicit scrollbars.
24550 2005-12-02 Jackson Harper <jackson@ximian.com>
24552 * TreeView.cs: Make top_node internal so the TreeNodeCollections
24554 * TreeNodeCollection.cs: If we remove the topnode we need to
24555 update topnode to the next node in line.
24556 - When clearing nodes go through the same process as removing
24557 them, so they get depareneted and checked if they are top node.
24559 2005-12-01 Jackson Harper <jackson@ximian.com>
24561 * TreeView.cs: When imagelists are used the image area is
24562 selectable as well as the text.
24563 - If there are no selected nodes select the first one.
24564 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
24565 so don't do it more then we need to.
24567 2005-12-01 Jackson Harper <jackson@ximian.com>
24569 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
24570 that arrows can be scaled.
24572 2005-12-01 Jackson Harper <jackson@ximian.com>
24574 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
24575 fail. Patch by Dieter Bremes
24577 2005-11-30 Jackson Harper <jackson@ximian.com>
24579 * Form.cs: Property is 2.0 only
24580 * PrintDialog.cs: Signature fix.
24582 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
24585 - No longer artificially moves text 2 pixels down (now that we have
24586 borders this is no longer needed)
24587 - Added calcs for left, hanging and right indent
24589 2005-11-23 Mike Kestner <mkestner@novell.com>
24591 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
24593 2005-11-30 Jackson Harper <jackson@ximian.com>
24595 * MdiChildContext.cs: Set the cloned menus forms, as these don't
24596 get cloned as part of CloneMenu ().
24597 * Menu.cs: Make sure the parent of the items get set correctly
24598 when they are added. And the owners are notified of the changes.
24599 * Form.cs: Create an ActiveMenu property, so that when MDI is used
24600 we can change the menu being displayed/handled by the form without
24601 changing the menu assosciated with the form.
24602 - Don't let Mdi children draw/handle menus.
24604 2005-11-30 Jackson Harper <jackson@ximian.com>
24606 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
24607 a MenuChanged event. Just to make the API a little more
24610 * MenuItem.cs: Use the new OnMenuChanged
24611 * MdiChildContext.cs: Handle menu merging.
24612 * Form.cs: Implement MergedMenu.
24614 2005-11-30 Jackson Harper <jackson@ximian.com>
24616 * Menu.cs: We were misusing Add. Add goes behind the specified
24617 index according to the docs, and does not replace the specified
24618 index. So I added an Insert method.
24620 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
24622 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
24623 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
24625 * RichTextBox.cs: Added calls to base for DnD events
24627 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
24630 - Fixed drag-selection related crash; style fixes
24631 - Implemented undo class
24632 o Implemented method to capture document state for specified
24633 range in document tree
24634 o Implemented method to restore captured document state
24635 o Implemented cursor tracking
24636 o Implemented basic undo stack
24637 - Added undo cursor tracking to methods altering cursor location
24638 - Added undo tracking to selection deletion (still missing
24639 other text-altering hookups)
24641 - Added SelectionLength property
24642 - Implemented CanPaste()
24643 - Implemented Paste()
24644 - Added missing protected methods
24645 - Fixed RTF->Document conversion; now uses font index 0 and color
24646 index 0 as the default font for the parsed text
24647 - Fixed RTF<->Document font size translation
24648 - Fixed RTF generation, now properly handles cross-tag boundaries
24649 for single line selection
24650 - No longer always appends blank line to generated RTF
24652 - Added missing attributes
24653 - Hooked up undo-related methods
24655 - Implemented Copy()
24656 - Implemented Paste()
24657 - Implemented Cut()
24658 - Fixed caret mis-behaviour on backspace across line-boundaries
24660 2005-11-29 Jackson Harper <jackson@ximian.com>
24662 * MdiClient.cs: Add a method for activating mdi children. Very
24663 basic right now. I imagine someday it might need more girth.
24664 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
24665 children windows names are added to the menu item.
24666 * ThemeWin32Classic.cs: Draw the arrow if the item is an
24667 mdilist. This happens regardless of whether or not there are any
24668 mdi windows to see in the list, and according to my tests happens
24669 before the items are even added. Also happens if there isn't even
24670 an mdi client to get windows from.
24672 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
24674 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
24675 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
24677 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
24679 * DataGridTableStyle.cs:
24680 - Create always the styles for the missing columns even if they are
24681 provided by the user (not default table style)
24684 - Fixes SetDataBinding (always re-attach source)
24685 - Fixes SetNewDataSource (only clear styles if they are not for
24687 - Expands OnTableStylesCollectionChanged to handle style refresh
24688 and remove properly
24690 2005-11-29 Jackson Harper <jackson@ximian.com>
24692 * FileDialog.cs: Implement missing bits, remove some dead
24694 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
24695 creation of the panel so that the options set on the dialog are
24696 seen when the panel is created.
24697 * TreeView.cs: raise a click when items are clicked.
24699 2005-11-29 Jackson Harper <jackson@ximian.com>
24701 * MdiClient.cs: Pass some signature methods through to base.
24703 2005-11-28 Jackson Harper <jackson@ximian.com>
24705 * ListView.cs: Raise the click event when items are clicked.
24707 2005-11-28 Jackson Harper <jackson@ximian.com>
24709 * MdiClient.cs: Make this algorithm even more beautiful. And fix
24712 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
24714 * ThemeNice.cs: - Removed 1 pixel bitmaps
24715 - Use SmoothingMode.AntiAlias where it makes sense
24716 (ScrollButton arrow for example)
24717 - Enhanced Button focus drawing
24718 - Fixed ComboBox drawing (no artefacts anymore, focus
24719 rectangle is back again, reduced size of ComboButton, etc.)
24720 - Fixed RadioButton focus drawing for Appearence.Button
24721 - Slight ScrollButton redesign
24722 - Some LinearGradientBrush size fixes
24723 - GroupBoxes have now rounded edges
24724 - Fixed StatusBar drawing
24726 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
24728 * ThemeNice.cs: - Remove dead code
24729 - use correct background colors for menus, etc.
24730 - Fake pixel drawing with 1 pixel bitmaps
24732 2005-11-24 Jackson Harper <jackson@ximian.com>
24734 * MdiClient.cs: Size the scrollbars when resizing the window.
24735 - Resize the maximized windows when the client is resized
24736 * Form.cs: Make the child context available
24738 2005-11-23 Jackson Harper <jackson@ximian.com>
24740 * MdiChildContext.cs: Don't size windows if they are maximized.
24742 2005-11-23 Mike Kestner <mkestner@novell.com>
24744 * ContextMenu.cs: use MenuTracker.
24745 * Control.cs: remove menu handle usage.
24746 * Form.cs: remove menu handle usage.
24747 * Hwnd.cs: remove menu handle usage.
24748 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
24749 motion and clicks to the new Tracker handlers.
24750 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
24752 * MenuAPI.cs: refactored to combine popup and menubar event handling.
24753 Killed the MENU and MENUITEM data types and associated collections
24754 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
24755 MenuTracker class that exposes the leftovers from the old MenuAPI
24756 static methods. Restructured Capture handling so that only one grab is
24757 done for the entire menu hierarchy instead of handing off grabs to
24758 submenus. Tracker now has an invisible control to Capture when active.
24759 * MenuItem.cs: add sizing accessors, kill Create
24761 * Theme.cs: remove menu handle and MENU(ITEM) usage.
24762 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
24763 MENU(ITEM). remove menu handle usage, use Menu directly.
24764 * XplatUIDriver.cs: remove menu handle usage.
24765 * XplatUIOSX.cs: remove menu handle usage.
24766 * XplatUIWin32.cs: remove menu handle usage.
24767 * XplatUIX11.cs: remove menu handle usage.
24769 2005-11-22 Jackson Harper <jackson@ximian.com>
24771 * Hwnd.cs: Don't compute the menu size for
24772 DefaultClientRectangle.
24773 - Reenable menu sizes being computed for GetClienRectangle.
24774 * Form.cs: Remove comment of trechery
24776 2005-11-22 Jackson Harper <jackson@ximian.com>
24778 * Hwnd.cs: The adjustments for the menu bar are made when it is
24779 attached to the form.
24781 2005-11-19 Jackson Harper <jackson@ximian.com>
24783 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
24784 (just like on windows).
24786 2005-11-19 Jackson Harper <jackson@ximian.com>
24788 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
24789 use real buttons anymore because they are in non client area. The
24790 one TODO here is that I need to somehow invalidate a section of
24791 the non client area.
24793 2005-11-18 Jackson Harper <jackson@ximian.com>
24795 * Control.cs: Put the enum check back in now that MDI doesnt have
24796 to use this to set border styles.
24797 * Form.cs: Only set mdi child windows borders if the handle has
24799 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
24800 this directly on to the driver.
24801 - Get the move start position before adjusting for the titlebar
24802 height, this fixes the windows "skipping" when they are first
24805 2005-11-18 Jackson Harper <jackson@ximian.com>
24807 * XplatUIX11.cs: Just compute the mdi borders separately as they
24808 don't totally match up with normal form borders.
24810 2005-11-18 Jackson Harper <jackson@ximian.com>
24812 * Control.cs: Set WS_ styles for borders, so that the driver does
24813 not have to retrieve the control instance to figure out what kind
24814 of borders it should have.
24815 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
24816 driver can know its an mdi child easily.
24817 * XplatUIX11.cs: Get the border styles and whether the window is
24818 MDI from the Styles and ExStyles params instead of having to get a
24819 control. This prevents a chicken and egg problem.
24821 2005-11-18 Jackson Harper <jackson@ximian.com>
24823 * MdiClient.cs: Fix typo so scrollbars show up correctly.
24825 2005-11-18 Jackson Harper <jackson@ximian.com>
24827 * MdiClient.cs: Calculate when to add and remove scrollbars
24829 * MdiChildContext.cs: Adjust the y position to take the titlebar
24831 - No height for FormBorderStyle.None
24833 2005-11-18 Jackson Harper <jackson@ximian.com>
24835 * Control.cs: Allow non enum values to be used for
24836 InternalBorderStyle. MDI does this to set a special border style.
24837 - New utility methods for converting points to/from client coords
24838 - Add the newly created control to the Controls collection before
24839 updating its style. This way UpdateStyle can walk the control
24840 heirarchy to find the control if needed.
24841 so I don't need to create a new Point object all the time.
24842 * Form.cs: Let MDI windows handle their border styles.
24843 - Set styles on MDI windows so the correct title style is derived.
24844 * MdiChildContext.cs: Move all the painting and window handling
24845 into the non client area.
24846 - Use correct sizing and put correct buttons on frames based on
24847 the FormBorderStyle.
24848 - Notify the mdi client about scrolling
24849 - Need to handle the buttons ourselves now, because they are all
24850 in non client areas and we can't add controls there.
24851 * MdiClient.cs: Halfway to scrolling, this implementation is
24852 somewhat broken though, we need to check to make sure other
24853 windows aren't causing scrolling before removing the bars. Also
24854 the bars need to be drawn on top, maybe I can switch implicit
24855 controls to be on top.
24856 * Hwnd.cs: caption_height and tool_caption_height are now
24857 properties of an hwnd, this way they can be set by the driver
24858 based on the type of window they are. In X11 the window manager
24859 handles the decorations so caption_height is zero unless its an
24861 - Add 3 pixel borders for MDI windows (0xFFFF).
24862 - Get rid of some code duplication, have DefaultClientRectanle
24863 just call GetClientRectangle.
24864 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
24866 - Set border styles differently for mdi windows.
24867 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
24870 2005-11-15 Mike Kestner <mkestner@novell.com>
24872 * Menu.cs: when adding an item to the collection, if item is already
24873 parented, remove it from the parent.
24875 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
24877 * X11DesktopColors.cs: Added KDE support
24879 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
24882 - Clipboard methods now can translate Rtf format
24883 - No longer removes clipboard contents whenever a new format is added
24884 to allow placing multiple formats on the clipboard
24885 * Clipboard.cs: Clipboard now supports getting a IDataObject and
24886 will place all formats contained in it onto the clipboard. Also
24887 now cleans the clipboard before placing a new object onto it
24889 - Implemented set_Rtf
24890 - Implemented set_SelectedRtf
24891 - Created InsertRTFFromStream() method to allow single code base
24892 for all properties and methods that insert RTF into document
24893 - Removed debug output
24895 - Fixed Delete(int) to fix up line numbers
24896 - Fixed ReplaceSelection to combine start and end line
24897 - Fixed serious DeleteChars bug that would leave the document tree
24899 - Improved DumpTree with several logic checks to detect broken
24901 - Removed debug lines
24902 - Fixed Caret.WordForward/WordBack moving code, now always also
24903 updates caret.tag (fixes crash when word-selecting across tag
24904 boundaries via keyboard)
24905 - Added Insert() method for inserting multiline text into documents
24906 - Fixed DeleteChars() calculation errors that would cause a broken
24907 tag chain with multiple tag lines
24908 - DeleteChars() no longer crashes on multi-tag lines if not all tags
24909 - Split() no longer moves caret if split is at caret location
24910 - ReplaceSelection() now updates the cursor and re-displays it
24911 - ReplaceSelection() now uses new Insert() method to avoid code
24913 - FormatText() can now handle formatting partial lines
24915 - Append now uses new TextControl.Insert() method (this avoids
24917 - Implemented Ctrl-X (Cut) (
24918 - Implemented Ctrl-C (Copy)
24919 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
24920 regeneration when pasting text; roundtripping Copy&Paste within
24921 edit control still fails due to some calculation bugs in GenerateRTF)
24922 - The Delete key will now remove the current selection if it is visible
24923 * TextBox.cs: Removed debug lines
24924 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
24925 driver to be initialized and can't therefore be done via a static ctor)
24927 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
24929 * TextControl.cs: Added backend code for finding char arrays and strings
24931 - Added mouse wheel scroll support
24932 - Added support for VScroll and HScroll events
24934 - Implemented all seven Find() variants
24935 - Implemented GetCharFromPosition()
24936 - Implemented GetCharIndexFromPosition()
24937 - Implemented GetLineFromIndex()
24938 - Implemented GetPositionFromCharIndex();
24939 - Implemented SaveFile for PlainText and UnicodeText
24940 - Fixed set_Font, now setting a new font applies that font to
24942 - Implemented generic Document to RTF converter
24943 - Implemented SaveFile for RichText format (still missing unicode
24944 conversion for non-ansi chars)
24945 - Implemented get_Rtf
24946 - Implemented get_SelectedRtf
24948 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
24950 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
24951 to allow any captures to be released before triggering OnClick. This
24952 way a click handler may capture the mouse without interference.
24953 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
24954 This way we send them even though X may not allow a grab (if the window
24955 isn't visible, for example)
24957 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
24959 * DataGridViewRowEventArgs.cs: DataGridView implementation
24960 * DataGridViewElement.cs: DataGridView implementation
24961 * DataGridViewComboBoxCell.cs: DataGridView implementation
24962 * DataGridViewDataErrorContexts.cs: DataGridView implementation
24963 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
24964 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
24965 * ImageLayout.cs: DataGridView implementation
24966 * DataGridViewComboBoxColumn.cs: DataGridView implementation
24967 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
24968 * DataGridViewSelectionMode.cs: DataGridView implementation
24969 * IDataGridViewEditingControl.cs: DataGridView implementation
24970 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
24971 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
24972 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
24973 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
24974 * DataGridViewColumnSortMode.cs: DataGridView implementation
24975 * DataGridView.cs: DataGridView implementation
24976 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
24977 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
24978 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
24979 * Padding.cs: DataGridView implementation
24980 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
24981 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
24982 * DataGridViewRowEventHandler.cs: DataGridView implementation
24983 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
24984 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
24985 * DataGridViewButtonCell.cs: DataGridView implementation
24986 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
24987 * DataGridViewEditMode.cs: DataGridView implementation
24988 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
24989 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
24990 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
24991 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
24992 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
24993 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
24994 * DataGridViewCellEventHandler.cs: DataGridView implementation
24995 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
24996 * DataGridViewCellStyleConverter.cs: DataGridView implementation
24997 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
24998 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
24999 * DataGridViewColumnEventArgs.cs: DataGridView implementation
25000 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
25001 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
25002 * QuestionEventArgs.cs: DataGridView implementation
25003 * IDataGridViewEditingCell.cs: DataGridView implementation
25004 * DataGridViewTriState.cs: DataGridView implementation
25005 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
25006 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
25007 * DataGridViewColumnCollection.cs: DataGridView implementation
25008 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
25009 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
25010 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
25011 * DataGridViewColumn.cs: DataGridView implementation
25012 * DataGridViewCellBorderStyle.cs: DataGridView implementation
25013 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
25014 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
25015 * DataGridViewRow.cs: DataGridView implementation
25016 * DataGridViewImageCellLayout.cs: DataGridView implementation
25017 * DataGridViewImageCell.cs: DataGridView implementation
25018 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
25019 * DataGridViewCheckBoxCell.cs: DataGridView implementation
25020 * DataGridViewHeaderCell.cs: DataGridView implementation
25021 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
25022 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
25023 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
25024 * DataGridViewTextBoxColumn.cs: DataGridView implementation
25025 * QuestionEventHandler.cs: DataGridView implementation
25026 * DataGridViewCellStyleScopes.cs: DataGridView implementation
25027 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
25028 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
25029 * DataGridViewCell.cs: DataGridView implementation
25030 * DataGridViewCellEventArgs.cs: DataGridView implementation
25031 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
25032 * DataGridViewCellStyle.cs: DataGridView implementation
25033 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
25034 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
25035 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
25036 * TextFormatFlags.cs: DataGridView implementation
25037 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
25038 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
25039 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
25040 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
25041 * DataGridViewButtonColumn.cs: DataGridView implementation
25042 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
25043 * HandledMouseEventArgs.cs: DataGridView implementation
25044 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
25045 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
25046 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
25047 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
25048 * DataGridViewRowCollection.cs: DataGridView implementation
25049 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
25050 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
25051 * DataGridViewHitTestType.cs: DataGridView implementation
25052 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
25053 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
25054 * DataGridViewColumnEventHandler.cs: DataGridView implementation
25055 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
25056 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
25057 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
25058 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
25059 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
25060 * DataGridViewContentAlignment.cs: DataGridView implementation
25061 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
25062 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
25063 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
25064 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
25065 * DataGridViewPaintParts.cs: DataGridView implementation
25066 * DataGridViewCellCollection.cs: DataGridView implementation
25067 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
25068 * DataGridViewImageColumn.cs: DataGridView implementation
25069 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
25070 * DataGridViewElementStates.cs: DataGridView implementation
25071 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
25072 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
25073 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
25074 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
25075 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
25076 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
25077 * DataGridViewRowHeaderCell.cs: DataGridView implementation
25078 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
25079 * DataGridViewTextBoxCell.cs: DataGridView implementation
25080 * DataGridViewBand.cs: DataGridView implementation
25081 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
25082 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
25083 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
25084 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
25085 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
25086 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
25087 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
25088 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
25089 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
25090 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
25091 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
25093 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
25095 * ThemeWin32Classic.cs:
25096 - Draw the outside focus rectangle around buttons
25097 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
25098 doesn't use end caps for every dash of a line anymore. This
25099 workaround ignores the forecolor.
25101 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
25103 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
25106 2005-11-07 Jackson Harper <jackson@ximian.com>
25108 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
25110 2005-11-07 Jackson Harper <jackson@ximian.com>
25112 * ScrollableControl.cs: Calculate the maximum and change vars
25113 (more) correctly so that scrollbars appear as a sensible size.
25115 2005-11-04 Jackson Harper <jackson@ximian.com>
25117 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
25119 * TreeView.cs: When the tree is sorted null out the top_node so
25120 that it is recalculated.
25121 - Use dotted lines instead of dashed lines to match MS better.
25123 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
25126 - Implements key search for items. Useful when browsing files with FileDialog
25127 - When changing view mode or when clear the items reset scrollbar positions
25129 2005-11-04 Jackson Harper <jackson@ximian.com>
25131 * CurrencyManager.cs: Implement the MetaDataChanged event, the
25132 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
25133 as to what the method may do as there is no real way of creating a
25134 derived CurrencyManager and calling the method.
25136 2005-11-03 Jackson Harper <jackson@ximian.com>
25138 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
25139 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
25140 method which seems to just be used internally to refresh the tabs.
25142 2005-11-03 Jackson Harper <jackson@ximian.com>
25144 * TabControl.cs: Implement the remove method. Fix some broken
25147 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
25149 * DateTimePicker.cs:
25150 - Added missing DateTimePickerAccessibleObject class
25151 - Added missing events
25152 - Added OnFontChanged method
25153 * Form.cs: Added missing attributes
25154 * TreeView.cs: Added missing attributes
25156 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
25158 * GridItemCollection.cs: Fix signatures
25160 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
25162 * XplatUI.cs: Updated build rev/date
25163 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
25164 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
25165 * Application.cs: Trigger context-specific ExitThread events
25167 2005-11-03 Jackson Harper <jackson@ximian.com>
25171 * GridTableStylesCollection.cs:
25176 * MonthCalendar.cs: Signature fixes
25178 2005-11-03 Jackson Harper <jackson@ximian.com>
25180 * TreeNodeCollection.cs: Remove should not be virtual.
25181 * TreeView.cs: Implement the last of the missing methods.
25183 2005-11-03 Jackson Harper <jackson@ximian.com>
25185 * TreeNodeConverter.cs: Implement to get off my class-status back.
25187 2005-11-03 Jackson Harper <jackson@ximian.com>
25189 * TreeView.cs: Hookup the bits for drag and drop.
25190 * TreeNode.cs: Don't cache the tree_view or index anymore, now
25191 that nodes can be moved from tree to tree easily this just causes
25192 all sorts of problems.
25193 * TreeNodeCollection: Don't need to give treenodes an index and
25194 treeview anymore when they are added, these are computed on the
25195 fly. Also make sure to remove a node before its added.
25197 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
25200 - Added CaretSelection enum
25201 - Added comparison methods to Marker struct, makes selection code
25203 - Added SelectionStart and SelectionEnd as 'moveable' location for
25204 the CaretDirection enum and handler
25205 - Added selection_prev variable to track optimized invalidation for
25206 word and line selection
25207 - Added SelectionVisible property (returns true if there is a valid
25209 - Switched CaretHasFocus to only display the caret if there is no
25211 - Avoiding StringBuilder.ToString to retrieve a single char, instead
25212 using the direct character index; should be much faster
25213 - Added various conditional debug statements
25214 - Fixed invalidation calculation for selection ranges
25215 - Added ExpandSelection() method to support word and line selection
25216 - Switched SetSelectionToCaret to use new Marker compare overloads
25217 - Added central IsWordSeparator() method to determine word
25218 separators/whitespace and FindWordSeparator() to streamline common
25219 usage of IsWordSeparator()
25221 - Removed unneeded grabbed variable, it was just mirroring
25223 - No longer firing OnTextChanged event when Text setter is called,
25224 since the base will fire the event for us
25225 - Added handling of Ctrl-Up/Down selection
25226 - Added handling of Shift-Cursorkey selection
25227 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
25229 - Added handling of Shift and Ctrl-Shift-Home/End selection
25230 - Removed some debug output
25231 - Added handling for single/double/tripple-click to place caret/
25232 select word/select line respectively (Fixes bug #76031)
25233 - Added support for drag expansion of word/line selection
25234 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
25237 2005-11-02 Jackson Harper <jackson@ximian.com>
25239 * X11Dnd.cs: If the drag is going to and from a MWF window just
25240 copy the data instead of sending it out through the X Selection
25243 2005-11-02 Jackson Harper <jackson@ximian.com>
25246 * XplatUIX11.cs: When in a drag we don't want motion notify
25247 messages to get passed on to the other controls. This prevents
25248 mouse move messages from showing up in the drag source.
25250 2005-11-02 Jackson Harper <jackson@ximian.com>
25252 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
25253 the correct button is release to end a drag.
25254 * XplatUIX11.cs: Make the button state internal so the drag system
25255 can access it. Dragging needs to know about all button releases,
25256 not just left button.
25258 2005-11-02 Miguel de Icaza <miguel@novell.com>
25260 * Form.cs (Icon): If the icon is null, reset the icon to the
25263 * Cursor.cs: When writing the AND-mask bitmap do not include the
25264 number of colors, but hardcode those to two (black and white),
25265 fixes the loading of color cursors (Paint Dot Net).
25267 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
25268 turn off autoscaling.
25270 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
25272 2005-11-02 Jackson Harper <jackson@ximian.com>
25274 * X11Dnd.cs: Make sure to send a status message if the pointer
25275 enters a control that can not accept a drop, otherwise the cursor
25276 isn't updated correctly. Also tried to compress the lines of code
25279 2005-11-02 Jackson Harper <jackson@ximian.com>
25281 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
25282 set actions correctly. This isn't perfect as XDND and win32 have
25283 some differences on how you allow actions. I'll clear this up by
25284 adding a path for drag from MWF to MWF windows.
25285 * XplatUIX11.cs: Hook into the dnd system.
25287 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
25289 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
25290 previously shown but they are no longer need it. Very obvious when
25291 browsing files with FileDialog.
25293 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
25295 * Control.cs: We always need to call OnPaintBackground. We pretty much
25296 ignore AllPaintingInWmPaint and always do the painting there, whether
25297 it's set or not, since we always ignore the WM_ERASEBKGND message
25298 (which we don't generate on X11). This fixes #76616.
25299 * Panel.cs: Removed unneeded background painting. This happens properly
25300 in Control.cs already
25302 2005-10-31 Mike Kestner <mkestner@novell.com>
25304 * Menu.cs: Add items to collection before setting their index.
25305 * MenuItem.cs : add range checking with ArgumentException like MS.
25308 2005-10-31 Jackson Harper <jackson@ximian.com>
25310 * ListBox.cs: Invalidate if the area is visible at all not just
25311 contained in the visible rect. Fixes unselection of semi visible
25314 2005-10-31 Jackson Harper <jackson@ximian.com>
25316 * Control.cs: Consistently name the dnd methods. Make them
25317 internal so we can override them to match some MS behavoir
25319 * Win32DnD.cs: Use the new consistent names.
25321 2005-10-31 Jackson Harper <jackson@ximian.com>
25323 * TreeView.cs: Don't draw the selected node when we lose focus.
25325 2005-10-31 Jackson Harper <jackson@ximian.com>
25327 * X11Dnd.cs: We still need to reset the state even though a full
25328 reset isn't being done, otherwise status's still get sent all over
25331 2005-10-31 Jackson Harper <jackson@ximian.com>
25333 * Control.cs: Make the dnd_aware flag internal so the dnd
25334 subsystem can check it. Catch exceptions thrown in dnd handlers to
25336 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
25337 * X11Dnd.cs: Handle null data in the converters. Set the XDND
25338 version when sending a XdndEnter. Use the control/hwnd dnd_aware
25339 flags to reduce the number of dnd enters/status's sent.
25341 2005-10-31 Jackson Harper <jackson@ximian.com>
25343 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
25345 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
25347 * PictureBox.cs: Fixes 76512
25349 2005-10-28 Jackson Harper <jackson@ximian.com>
25351 * X11Dnd.cs: Early implementation to support winforms being a drag
25352 source for data on X11. Also restructured the converters so they
25353 can go both ways now.
25354 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
25356 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
25358 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
25361 2005-10-27 Jackson Harper <jackson@ximian.com>
25363 * TreeNode.cs: Implement serialization so my DnD examples will work.
25365 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
25367 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
25368 TreeView.cs: Don't dispose objects that are not owned.
25370 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
25372 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
25373 should retrieve the current cursor and report that, but XplatUI
25374 doesn't (yet) have an interface for that (and I'm not sure I even
25376 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
25377 until any message loop processing is done (and the WM_SETCURSOR
25378 replaces the cursor to the proper one)
25380 - Fixed override behaviour, we can't set the cursor globally on X11,
25381 just for our windows.
25382 - Invalidating the System.Drawing X11 display handle when we are
25384 * Control.cs: Fix to make csc happy
25386 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
25389 - get_Text: Add last line (without trailing newline) to returned
25390 value (Fixes 76212)
25391 - get_TextLength: Count last line in returned length
25392 - ToString: Call Text property instead of duplicating code
25394 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
25396 * ImageList.cs: Dispose ImageAttributes objects.
25398 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
25400 * ImageList.cs: Use attribute constructors with less arguments where
25403 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
25405 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
25406 Use typeof instead of strings when assembly is referenced. Added
25407 some more comments.
25409 2005-10-21 Jackson Harper <jackson@ximian.com>
25411 * ListView.cs: Raise a double click event. Also tried to somewhat
25412 fix when the selectedindexchanged event is raised. Its still
25415 2005-10-21 Jackson Harper <jackson@ximian.com>
25417 * TreeView.cs: New method to invalidate the plus minus area of a
25418 node without invalidating the whole node (maybe this can be used
25419 in some more places).
25420 * TreeNodeCollection.cs: When adding to an empty node we need to
25421 invalidate its plus minus area so the little block shows up.
25423 2005-10-21 Jackson Harper <jackson@ximian.com>
25425 * TreeView.cs: Make sure that when we invalidate a node the bounds
25426 are big enough to cover the selected box and the focus
25427 rectangle. Use a different colour for the lines connecting nodes
25428 so they show up with all themes.
25430 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
25432 * NativeWindow.cs: Don't call anything that could call into the driver,
25433 we might be on a different thread.
25435 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
25437 * Control.cs(Dispose): Since Dispose might run on a different thread,
25438 make sure that we call methods that could call into the driver via
25439 invoke, to avoid thread issues
25441 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
25443 * XplatUI.cs: Removed finalizer
25444 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
25445 not allowing to be called on the finalizer thread.
25447 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
25450 - Reverted r51889 and r51891.
25451 - Added ImageListItem class that stores unmodified image items and image
25452 properties required to create list images until handle is created.
25453 - Added AddItem and moved image creation logic to AddItemInternal.
25454 - Added CreateHandle method that creates images based on unmodified items.
25455 - Added DestroyHandle that changes state to store unmodified items.
25456 - Add and AddStrip methods no more create handle.
25457 - ReduceColorDepth has no return value.
25458 - Dispose destroys handle.
25459 - Modified other methods to reflect the above changes.
25460 - Implemented key support.
25461 - Added profile 2.0 members and attributes.
25462 - Added private Reset and ShouldSerialize methods that provide the same
25463 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
25464 them as they are private.
25465 - Added some more comments about implementation details.
25467 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
25469 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
25471 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
25473 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
25475 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
25477 * DataGridDrawingLogic.cs: Fixes column hit calcultation
25478 * DataGridColumnStyle.cs: Remove debug message
25480 2005-10-20 Jackson Harper <jackson@ximian.com>
25482 * TreeView.cs: We can always get input keys regardless of whether
25483 or not editing is enabled. They are used for navigation.
25485 2005-10-20 Jackson Harper <jackson@ximian.com>
25487 * TreeNode.cs: Use the viewport rect for determining if a node
25488 needs to be moved for visibility. Don't use Begin/End edit. This
25489 calls a full refresh when its done.
25490 * TreeView.cs: New SetBottom works correctly. Make the viewport
25491 rect property internal so the treenodes can see it. When clicking
25492 on a node we need to ensure that its visible because it might just
25493 be partly visible when clicked.
25495 2005-10-20 Jackson Harper <jackson@ximian.com>
25497 * TreeNodeCollection.cs: Remove debug code.
25499 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
25501 * Datagrid.cs: Implements column sorting in Datagrid
25502 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
25504 2005-10-20 Jackson Harper <jackson@ximian.com>
25506 * TreeNodeCollection.cs: Remove items properly. Update the correct
25507 area after removing them.
25509 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
25511 * Datagrid.cs: Should not call base.OnPaintBackground
25513 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
25515 * XplatUIX11.cs (GetMessage):
25516 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
25517 window instead of client window
25518 - Now properly calculates NC_xBUTTONUP message coordinates
25519 - ScreenToMenu now properly calculates it's coordinates of whole
25520 window, since menus are in the whole window, not in the client
25522 - Added WholeToScreen coordinate translation method
25524 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
25526 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
25527 want to return a message, loop back to the beginning of the function
25528 and grab the next real message to process instead.
25530 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
25532 * Splitter.cs: Properly set limits if no filler control is used
25534 2005-10-19 Jackson Harper <jackson@ximian.com>
25536 * ColorDialog.cs: Don't show the help button if it is not enabled
25537 instead of disabling it (this is what MS does). Don't create the
25538 panel until the dialog is run, otherwise the vars (such as
25539 ShowHelp) are not set yet.
25541 2005-10-19 Jackson Harper <jackson@ximian.com>
25543 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
25544 are reduced when adding nodes.
25546 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
25549 2005-10-19 Jackson Harper <jackson@ximian.com>
25551 * FolderBrowserDialog.cs: End editing our treeview so the window
25552 actually gets refreshed.
25554 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
25556 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
25557 Obsoleted handling of WM_ERASEBKGND, now always draws our background
25560 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
25562 * MenuAPI.cs: Returns after Hidding window
25563 * XplatUIX11.cs: Added TODO found while debugging menu issues
25565 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
25567 * XplatUIX11.cs: Do not re-map the whole window when it's size
25568 becomes non-zero unless it's supposed to be actually visible
25570 2005-10-18 Jackson Harper <jackson@ximian.com>
25572 * TreeView.cs: We don't need to keep a count anymore.
25573 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
25574 use the Grow method.
25576 2005-10-18 Jackson Harper <jackson@ximian.com>
25578 * TreeNodeCollection.cs: Insert is not supported on arrays, so
25579 implement it manually here.
25581 2005-10-18 Jackson Harper <jackson@ximian.com>
25583 * ImageList.cs: Dont kill the list when the colour depth is
25584 changed, just change the colour depth of all the images.
25585 - Same goes for setting the image size. Just resize them all
25586 instead of killing the list softly.
25588 2005-10-18 Jackson Harper <jackson@ximian.com>
25590 * Control.cs: Don't invalidate empty rectangles.
25592 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
25595 - Adds checked item to the Checked/Item lists (where empty before)
25596 - Do not add items to the Selected lists if they are already present
25598 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
25599 - When deleting items make sure that we delete them for the Selected
25600 and Checked list also.
25602 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
25604 * Label.cs: Dispose objects no longer used
25605 * ThemeWin32Classic.cs: Dispose objects no longer used
25607 2005-10-18 Jackson Harper <jackson@ximian.com>
25609 * TabControl.cs: Don't refresh the whole control when the tabs are
25610 scrolled, we just need to refresh the tab area.
25612 2005-10-17 Jackson Harper <jackson@ximian.com>
25614 * XplatUIX11.cs: Compress code a little bit. Only calculate the
25615 after handle when we need it.
25617 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
25619 * Control.cs: When the parent size changes, recalculate anchor
25620 positions. Partial fix for #76462
25622 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
25624 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
25625 drawn. Fixes #76462
25627 2005-10-17 Jackson Harper <jackson@ximian.com>
25629 * MonthCalendar.cs: Don't create the numeric up down until our
25630 handle is created. Otherwise our handle is created in the
25631 constructor and we don't know if we are a WS_CHILD or WS_POPUP
25634 2005-10-17 Jackson Harper <jackson@ximian.com>
25636 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
25639 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
25640 * TreeNode.cs : small logical fix (was using local var instead of field)
25642 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
25644 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
25646 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
25648 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
25650 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
25653 - Re-implemented anchoring code. My first version was really broken.
25654 This fixes bug #76033. Unlike the previous implementation we will
25655 no longer have round errors since all numbers are calculated from
25656 scratch every time. Removed various anchor-related obsolete vars.
25657 - InitLayout no longer causes layout event firing and layout to be
25660 2005-10-16 Jackson Harper <jackson@ximian.com>
25662 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
25665 2005-10-16 Jackson Harper <jackson@ximian.com>
25667 * TabControl.cs: Remove debug code.
25669 2005-10-16 Jackson Harper <jackson@ximian.com>
25671 * XEventQueue.cs: Increase the default queue size (very simple
25672 apps needed to grow the queue).
25673 * Hwnd.cs: No finalizer so we don't need to suppress
25674 finalization. Compute the invalid area manually so a new rectangle
25675 does not newto be created.
25676 * ScrollableControl.cs: Don't set any params (otherwise visibility
25677 isn't set correctly).
25678 * MdiChildContext.cs: New constructor takes the mdi parent so it
25679 doesn't have to be computed and avoids a crash on windows. Draw
25680 the window icon properly, and allow the text to be seen.
25681 * Form.cs: Use new MdiChildContext constructor. Make sure the
25682 child context isn't null in wndproc.
25683 * TabControl.cs: Don't set focus, this is muddling keyboard
25684 behavoir. Expand the tab rows when a window size increase will
25685 allow extra tabs to be seen. Don't allow tabs smaller than the
25686 width of a window to be scrolled out of view.
25688 * TreeView.cs: Use measure string to calculate a nodes width, the
25689 width is cached and only updated when the text or the font is
25690 changed. Don't check for expand/collapse clicks on the first level
25691 nodes if root lines are disabled.
25693 2005-10-16 Ritvik Mayank <mritvik@novell.com>
25695 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
25697 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
25699 * DataGridBoolColumn.cs: fixes warning
25701 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
25703 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
25704 to match more to match more precisely the MS Net behavior
25706 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
25708 * Hwnd.cs: Added field to track if window is mapped
25710 - Unmap windows if they become 0-size, re-map when
25711 they are >0 again; fixes #76035
25712 - Re-set our error handler after initializing X11Desktop
25713 to override any error handlers Gtk or whatever was called
25716 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
25718 * CheckedListBox.cs: Removed unused vars
25719 * ListView.cs: Fixed signatures
25720 * RichTextBox.cs: Removed unused vars
25721 * TextBoxBase.cs: Removed unused vars
25722 * XplatUIWin32.cs: Removed unused vars
25723 * XplatUIX11.cs: Removed unused vars
25724 * XplatUI.cs: Updated version and date to latest published
25726 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
25728 * Cursor.cs: Added private .ctor to work around a bug in
25729 resourceset (Thanks to Geoff Norton for the help on this)
25730 * SplitterEventArgs.cs: Made fields accessible so we don't
25731 waste boatloads of objects and can reuse the same one
25733 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
25734 any captions and borders when generating screen coordinates
25735 * Splitter.cs: Reimplemented control, now fully complete, uses
25736 rubberband drawing, supports and obeys all properties, has
25739 2005-10-13 Miguel de Icaza <miguel@novell.com>
25741 * Form.cs (Form): Setup default values for autoscale and
25742 autoscale_base_size; Make these instance variables, not static
25745 (OnLoad): on the first load, adjust the size of the form.
25747 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
25749 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
25750 width argument to DrawReversibleRectangle()
25751 * XplatUIWin32.cs, XplatUIX11.cs:
25752 - Implemented width for DrawReversibleRectangle()
25753 - Added logic to DrawReversibleRectangle that recognizes a zero
25754 width or height and only draws a line in that situation
25756 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
25758 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
25759 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
25760 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
25761 method (it uses our FosterParent window to get a graphics context)
25763 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
25765 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
25766 and SetWindowBackground methods
25768 - Setting proper ControlStyles
25769 - We no longer call XplatUI.SetWindowBackground and XplatUI.
25770 EraseWindowBackground, instead we draw the window background
25771 ourselves in PaintControlBackground. This behaviour is
25772 required to match MS, where, when OnPaintBackground is not
25773 called, the background is not drawn.
25774 - Removed unneeded Refresh() in set_Text
25775 * Hwnd.cs: Dropped the ErasePending support. No longer needed
25777 - Created DeriveStyles method to translate from CreateParams to
25778 FormBorderStyle and TitleStyle, also handles BorderStyle (which
25779 matches FormBorderStyle enum values)
25780 - Consolidated SetHwndStyles and CalculateWindowRect border/title
25781 style calculations into single DeriveStyles method
25782 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
25783 from redrawing the whole window on any resize or expose.
25784 - Fixed CreateWindow usage of SetWindowValuemask. Before not
25785 all styles were applied to our whole/client window appropriately
25786 - Removed EraseWindowBackground() and SetWindowBackground() methods
25787 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
25788 no longer clear/redraw the background through X
25789 - Removed handling of erase_pending bit, we have no use for it (or
25792 - Removed generation and handling of WM_ERASEBKGND message
25793 - Removed EraseWindowBackground() and SetWindowBackground() methods
25794 - Removed handling of hwnd.ErasePending flag
25796 - Removed EraseWindowBackground() and SetWindowBackground() methods
25797 - We no longer call EraseWindowBackground on PaintEventStart, we
25798 ignore the fErase flag, erasing is handled in Control in the
25800 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
25801 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
25802 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
25803 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
25804 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
25805 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
25806 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
25808 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
25810 * PropertyGrids.cs: Get sub properties
25811 * PropertyGridView.cs: Fix drawing code
25813 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
25815 * ListBox.cs: Fixes 76383
25817 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
25819 * DataGridTextBoxColumn.cs: Sets location and size before attachment
25820 * ThemeWin32Classic.cs: Fixes border drawing and calculations
25821 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
25824 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
25826 * ComboBox.cs: Fixes border drawing
25828 2005-10-10 Miguel de Icaza <miguel@novell.com>
25830 * MimeIcon.cs: Ignore errors if the file can not be read.
25832 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
25834 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
25835 - Fixed border calculations
25836 - Fixed horizontal scrolling in single column listboxes
25837 - Fixed drawing issues
25839 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
25841 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
25842 FormBorderStyle enum
25843 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
25844 code to determine FormBorderStyles from CreateParams
25846 - Fixed bug where we'd set the wrong window styles if we were
25847 not creating an MDI window
25848 - Added call to XplatUI.SetBorderStyle when form borders are set
25849 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
25851 - Removed obsolete edge style
25852 - Switched from BorderStyle to FormBorderStyle
25854 2005-10-10 Jackson Harper <jackson@ximian.com>
25856 * Form.cs: Use the property to get the window handle instead of
25857 accessing it directly. Prevents a null reference exception.
25859 2005-10-10 Jackson Harper <jackson@ximian.com>
25861 * TreeView.cs: Don't adjust the rect given to DrawString now that
25862 our libgdiplus draws correctly.
25864 2005-10-08 Jackson Harper <jackson@ximian.com>
25866 * TreeView.cs: Don't try to find the clicked on node if there are
25867 no nodes in the tree.
25869 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
25875 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
25877 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
25878 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
25880 Use ResPool for brushes and dispose System.Drawing objects that
25881 are not used anymore.
25883 2005-10-07 Jackson Harper <jackson@ximian.com>
25885 * MdiChildContext.cs: Use the new borders instead of drawing them
25888 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
25890 * Calling UpdateBounds after changing the window's BorderStyle
25891 since the style can change the ClientSize
25893 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25895 * Control.cs: Made PaintControlBackground virtual
25896 * Panel.cs: Overriding PaintControlBackground instead of using paint
25897 event; paint event method was interfering with 'real' users of the
25900 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
25902 * ThemeWin32Classic.cs: remove border drawing since it is handled
25903 by the base control class now and was causing double border drawing.
25905 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25907 * Panel.cs: Redraw our background on paint. Not a pretty solution,
25908 but it does seem to match MS behaviour. This fixes bug #75324
25910 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25912 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
25913 somewhat hackish looking
25915 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25918 - We now accept Enter even if AcceptEnter is false, if the containing
25919 form does not have an AcceptButton configured (fixes bug #76355)
25920 - Calculations are now fixed to no longer use Width/Height, but
25921 ClientSize.Width/Height, since we now support borders (this was
25922 a result of fixing borders and therefore bug #76166)
25923 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
25924 true (fixes bug #76354)
25926 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25929 - Defaulting BorderStyle and setting it in XplatUI when our window
25931 - Added enum check to InternalBorderStyle setter
25933 - Added drawing of window borders
25934 - Now properly calculates WM decorations offset for toplevel
25935 windows (fixes bug #74763)
25937 - Implemented BorderStyles for windows (we're letting win32 draw
25939 - Fixed the signature for SetWindowLong
25940 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
25941 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
25943 * UpDownBase.cs: Remove drawing of borders, this is handled by
25944 the driver, outside the client area
25945 * ListView.cs: Removed bogus border calculations. The control should
25946 be oblivious to borders, since those are not part of the client
25948 * X11DesktopColors.cs: Commented out (currently) unneeded variables
25949 * ThemeWin32Classic.cs: Removed border calculations from ListView
25952 2005-10-06 Jackson Harper <jackson@ximian.com>
25954 * MdiChildContext.cs: Clear out the old virtual position remove
25955 all the unneeded calls to CreateGraphics.
25957 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25959 * TextControl.cs: Use proper color for highlighted text; fixes #76350
25961 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25964 - Added loading and setting of our new default icon
25965 - Only set icon if window is already created
25967 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
25970 - Do not explicitly set the foreground and background colors, to
25971 allow inheriting from parents (fixes #76302)
25972 - Use Control's InternalBorderStyle property to deal with borders
25974 2005-10-06 Jackson Harper <jackson@ximian.com>
25976 * MdiChildContext.cs: Use the new xplatui function to draw a
25979 2005-10-06 Jackson Harper <jackson@ximian.com>
25981 * Form.cs: Add the parent before creating the child context cause
25982 we need the parent when setting up the child.
25984 2005-10-06 Jackson Harper <jackson@ximian.com>
25986 * FolderBrowserDialog.cs: redo the tree population code so a
25987 second thread isn't used. Should be a lot faster and more stable
25990 2005-10-05 Jackson Harper <jackson@ximian.com>
25992 * TreeView.cs: There are no expand/collapse boxes if the node has
25995 2005-10-05 Jackson Harper <jackson@ximian.com>
25997 * X11DesktopColors.cs: Get menu colours for the gtk theme.
25999 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
26001 * FileDialog.cs: Fix InitialDirectory
26003 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
26006 - Fixes changing between styles
26007 - Fixes simple mode
26008 - Fixes last item crashing when navigating with keyboard
26010 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
26012 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
26014 2005-10-05 Jackson Harper <jackson@ximian.com>
26016 * TreeView.cs: If updating the root node do a full refresh.
26017 * TreeNode.cs: The root node should be expanded by default. Also
26018 added a utility prop to tell if we are the root node.
26019 * TreeNodeCollection.cs: Only refresh if the node we are being
26020 added to is expanded. Also added a comment on a potential
26023 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
26025 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
26026 in dispose method. Fixes #76330
26028 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
26030 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
26032 - Implements vertical and horizontal scrolling using XplatUI
26033 - Fixes keyboard navagation
26034 - Fixes EnsureVisible
26036 - Handles and draws focus properly
26039 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
26041 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
26042 Create handle. NET_2_0: Destroy handle when value is null.
26044 2005-10-03 Jackson Harper <jackson@ximian.com>
26046 * ScrollBar.cs: My last scrollbar patch was broken. This is a
26047 revert and a new patch to prevent the thumb from refreshing so
26050 2005-10-02 Jackson Harper <jackson@ximian.com>
26052 * ScrollBar.cs: Don't update position if it hasn't actually
26053 changed. This occurs when you hold down the increment/decrement
26054 buttons and the thumb gets to the max/min.
26056 2005-10-01 Jackson Harper <jackson@ximian.com>
26059 * MdiChildContext.cs:
26060 * MdiClient.cs: Implement ActiveMdiChild in Form.
26062 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
26064 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
26066 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
26068 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
26071 2005-09-30 Jackson Harper <jackson@ximian.com>
26073 * ListBox.cs: Don't do a full refresh unless some data has
26076 2005-09-30 Jackson Harper <jackson@ximian.com>
26078 * TreeView.cs: Make sure that the checkboxes size is factored in
26079 even when not visible.
26081 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26083 * FileDialog.cs: Fix Jordi's build break
26085 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
26088 - Use standard the Windows colours for the combobox as espected
26089 - Dispose objects that use resouces when no longer need them
26091 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26093 * X11DesktopColors.cs: Initial incomplete implementation
26094 * XplatUIX11.cs: Added call to initialize X11DesktopColors
26096 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
26099 - Switched Theme color names to match the names defined in
26100 System.Drawing.KnownColors. Life's hard enough, no need to make
26102 - Added setters to all theme color properties so themes can set
26103 their color schemes. The setters also propagate the color changes
26104 to System.Drawing.KnownColors via reflection
26105 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
26106 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
26107 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
26108 use the new, more logical theme color names
26109 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
26111 * ThemeWin32Classic.cs:
26112 - Removed code to set the old classic Windows colors. Instead it
26113 now relies on the colors returned by System.Drawing.KnownColors
26114 which will be either modern static colors (Unix) or colors
26115 read from the user's configuration (Win32)
26116 - Updated to use the new, more logical theme color names
26117 - Switched DataGrid drawing code to use only Theme colors instead of
26118 a mix of System.Drawing.KnownColors and Theme colors
26119 - DrawFrameControl(): Removed code that fills the button area, the
26120 fill would overwrite any previous fill done by a control. This
26122 - Added DrawReversibleRectangle() stub
26123 * ScrollableControl.cs: Set visible state to false when scrollbars
26124 are removed (pdn fix)
26125 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
26126 DrawReversibleRectangle() method to allow drawing primitive
26128 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
26130 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26132 * ImageList.cs: Add(Icon): Create handle.
26134 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
26137 * ThemeWin32Classic.cs:
26138 - Fixes detail mode
26140 - Issues with drawing
26142 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26144 * ImageList.cs: Moved RecreateHandle back to ImageList as event
26145 source has to be the ImageList.
26147 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26149 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
26151 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26153 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
26155 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26157 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
26159 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
26160 * GridItem.cs: Fixed TODOs
26161 * GridItemCollection.cs: Added ICollection interface
26163 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
26165 * ImageList.cs: Resize icons when needed.
26167 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
26170 - Fixes GetBounds and returns on screen rects
26172 - Fixes vertical and horzintal scrolling of items
26173 * ThemeWin32Classic.cs:
26176 2005-09-29 Raja R Harinath <harinath@gmail.com>
26178 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
26180 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
26182 * ImageList.cs: Added comments about handle creation. Moved Handle,
26183 HandleCreated and OnRecreateHandle implementations to ImageCollection.
26184 Handle is created in Add methods.
26186 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
26188 * DataGridDrawingLogic.cs:
26189 - Takes rows into account on Colum calculations
26190 - Returns the column when clickig
26192 - Fixes default HitTestInfo values
26193 - Fixes HitTestInfo.ToString
26194 - Fixes ResetBackColor
26196 2005-09-28 Jackson Harper <jackson@ximian.com>
26198 * MdiChildContext.cs: Obey rules for fixed sized windows (no
26199 sizing or cursor changes). Also added some temp code to draw the
26200 titlebars text (Makes dev a little easier).
26202 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
26204 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
26206 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
26208 * ListBox.cs: Fixes bug 76253
26210 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
26212 * ImageList.cs: Added comments about the current implementation. Added
26213 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
26214 Format32bppArgb to preserve transparency and can use Graphics.FromImage
26215 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
26216 with Bitmap.LockBits for better performance. Revised the whole file to
26217 match MS.NET behaviour and provide better performance. Non-public
26218 interface members are calling public members even when they throw
26219 NotSupportedException for better maintainability. Moved ColorDepth,
26220 ImageSize, ImageStream and TransparentColor implementations to
26221 ImageCollection for better performance as these properties are not used
26223 * ImageListStreamer.cs: Added a new internal constructor that takes an
26224 ImageList.ImageCollection and serializes Images based on
26225 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
26226 match ImageList property name.
26228 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
26230 * ListBox.cs: Fixes IndexFromPoint for last item
26232 2005-09-27 Jackson Harper <jackson@ximian.com>
26234 * Form.cs: Set the position of new mdi children correctly.
26236 2005-09-27 Jackson Harper <jackson@ximian.com>
26238 * MdiClient.cs: New mdi children need to be added to the back of
26239 the controls collection so the zorder is set correctly. Also add a
26240 count of all the child windows that have been created.
26242 2005-09-27 Jackson Harper <jackson@ximian.com>
26244 * Form.cs (CreateParams): Setup MDI forms correctly.
26246 2005-09-27 Jackson Harper <jackson@ximian.com>
26248 * MdiChildContext.cs:
26249 * MonthCalendar.cs:
26255 * ScrollableControl.cs:
26256 * ComboBox.cs: Add implicit controls using the new implict control
26257 functionality in ControlCollection. Also try to block multiple
26258 control add in a suspend/resume layout to save some cycles.
26260 2005-09-27 Jackson Harper <jackson@ximian.com>
26262 * Control.cs: Add functionality to the controls collection to add
26263 'implicit controls' these are controls that are created by the
26264 containing control but should not be exposed to the user. Such as
26265 scrollbars in the treeview.
26266 * Form.cs: The list var of the ControlsCollection is no longer
26267 available because of the potential of implicit controls getting
26268 ignored by someone accessing the list directly.
26270 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
26272 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
26273 loose it's parent. (Fixed bug introduced in r49103 when we added
26274 setting the child parent to null on Remove)
26276 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
26278 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
26279 * Splitter.cs: Added missing attributes for BorderStyle property.
26280 * TextBoxBase.cs: Marked Calculate* methods internal.
26281 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
26284 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
26286 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
26288 2005-09-25 Jackson Harper <jackson@ximian.com>
26290 * TreeView.cs: Update the node bounds correctly regardless of
26291 whether the node is visible.
26293 2005-09-25 Jackson Harper <jackson@ximian.com>
26295 * ImageList.cs: Don't dispose the image after it is added to the
26296 image list. Only reformat images that need to be resized.
26298 2005-09-25 Jackson Harper <jackson@ximian.com>
26300 * ImageList.cs: Don't set the format when changing the image.
26302 2005-09-25 Jackson Harper <jackson@ximian.com>
26304 * TreeView.cs: We can't just assume the node has a font. Use the
26305 treeviews font if no node font is available.
26307 2005-09-25 Jackson Harper <jackson@ximian.com>
26309 * TreeView.cs: Allow the scrollbars to be reset with negative
26311 - Don't add scrollbars to negative sized windows.
26313 2005-09-23 Jackson Harper <jackson@ximian.com>
26315 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
26316 old Mono.Posix. Also remove some stray code that shouldn't have
26319 2005-09-23 Jackson Harper <jackson@ximian.com>
26321 * TreeView.cs: Attempt at proper sizing of the horizontal
26322 scrollbar. Also don't resize the scrollbars unless they are
26325 2005-09-23 Jackson Harper <jackson@ximian.com>
26327 * TreeView.cs: We don't need to expand the invalid area when the
26328 selection changes, as this is all drawn in the node's bounding
26329 box. The area needs to be expanded (previous typo was contracting
26330 it) when the focus rect moves.
26332 2005-09-23 Jackson Harper <jackson@ximian.com>
26334 * TreeView.cs: Display the selection box under the correct
26335 circumstances. We were rendering white text with no selection box
26338 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
26340 * TextControl.cs(Split): Now updates selection start/end if it points
26341 into a line that's being split. Fixes a FIXME and bug #75258
26343 2005-09-23 Jackson Harper <jackson@ximian.com>
26346 * ListControl.cs: Don't use the path when retrieving binding
26347 managers from the binding context. My bat sense tells me that the
26348 path is only used on insertion.
26350 2005-09-22 Jackson Harper <jackson@ximian.com>
26352 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
26354 2005-09-22 Jackson Harper <jackson@ximian.com>
26356 * Splitter.cs: There are special cursors used for splitting.
26357 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
26359 2005-09-22 Jackson Harper <jackson@ximian.com>
26361 * Splitter.cs: Change the cursor appropriately when the splitter
26362 is moused over, so the user actually knows there is a splitter
26365 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
26367 * Label.cs : Fix ToString method to give same output as MS.NET
26369 2005-09-22 Jackson Harper <jackson@ximian.com>
26371 * TreeView.cs: Create the scrollbars when the handle is created
26372 and add them right away, just make them invisble. Also account for
26373 the window being shrunk vertically to the point that the vert
26374 scrollbar needs to be added.
26375 - Remove some 0.5 adjustments to get around anti aliasing issues.
26377 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
26379 * MainMenu.cs: Fixes default value
26380 * MenuItem.cs: Fixes default value
26382 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
26384 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
26386 2005-09-21 Jackson Harper <jackson@ximian.com>
26388 * Control.cs: Don't try to set the border style on the window if
26389 it hasn't been created. When the window is created the border
26390 style will be used.
26392 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26394 * Control.cs (Update): Don't call XplatUI if we don't have a
26397 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26399 * ContainerControl.cs: Instead of throwing an exception, print
26400 a one-time warning about Validate not being implemented
26401 * XplatUIWin32.cs: Removed debug output
26403 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26405 * Control.cs: Only set XplatUI background if we expect the windowing
26406 system to handle the background. This stops controls that draw their
26407 own background from flickering
26409 * XplatUIX11.cs: Support custom visuals and colormaps for window
26410 creation. This allows, amongst other things, using MWF X11 windows
26413 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
26415 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
26416 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
26417 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
26418 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
26419 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
26420 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
26421 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
26422 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
26423 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
26424 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
26425 GridColumnStylesCollection.cs,
26426 IDataGridColumnStyleEditingNotificationService.cs,
26427 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
26428 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
26429 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
26430 TreeNodeCollection.cs, AmbientProperties.cs,
26431 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
26432 DataObject.cs, ErrorProvider.cs, Splitter.cs,
26433 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
26434 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
26435 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
26436 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
26437 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
26438 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
26439 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
26440 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
26441 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
26442 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
26443 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
26444 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
26445 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
26446 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
26447 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
26448 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
26449 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
26450 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
26451 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
26452 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
26453 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
26454 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
26455 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
26456 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
26457 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
26458 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
26459 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
26460 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
26461 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
26462 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
26463 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
26464 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
26465 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
26466 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
26467 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
26469 2005-09-21 Jackson Harper <jackson@ximian.com>
26471 * TreeNode.cs: Call Before/After Expand not Collapse when
26474 2005-09-20 Jackson Harper <jackson@ximian.com>
26476 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
26478 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
26482 - Fixes proper storing of subitems
26483 - Fixes not updated items
26485 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
26487 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
26488 things if our window handle isn't created yet. Also disabled
26489 debug for TextBoxBase
26491 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
26493 * MenuAPI.cs: Remove filtering of events to allow menu usage
26495 2005-09-20 Miguel de Icaza <miguel@novell.com>
26497 * Cursor.cs: Allow null to be passed to Cursor.Current.
26499 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
26501 * ThemeWin32Classic.cs:
26502 - Change some private methods/fields to protected virtual so that
26503 they can be accessed and overriden in derived classes
26504 - First refactoring of some methods. Derived themes now don't
26505 need to duplicate the complete code from ThemeWin32Classic
26507 - Added nice StatusBar
26508 - Derive from ThemeWin32Classic and not Theme
26509 - Removed duplicate ThemeWin32Classic code
26511 2005-09-20 Miguel de Icaza <miguel@novell.com>
26513 * Control.cs (ControlCollection.Add): If the value null is passed
26514 the control is ignored.
26516 Optimize this loop.
26518 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
26520 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
26521 PostQuitMessage state.
26522 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
26524 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
26526 * Application.cs: Our constructor will never get called, move
26527 initialization to fields; fixes bug #75933
26529 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
26532 - Allow files to be selected properly using file name
26534 - Add ability to change diretory (absolute / relative)
26535 using file name combo box.
26537 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
26540 - Fixes Multicolumn listboxes item wrong calculations
26541 - Allows to click when only one item is in the listbox
26542 - Fixes crash when no items using keyboard navigation
26544 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
26546 * ComboBox.cs: Reverted almost everything from the latest patch which
26549 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
26552 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
26554 - When DropDownStyle is Simple, it does not show scrollbar
26555 to the last item of the list.
26556 - When DropDownStyle is Simple, it crashed when the list was
26557 scrolled down with the down cursor key.
26558 - Fixed a bug that when DropDownStyle is DropDownList, the
26559 selected item was not shown.
26560 - The position of the selected item was not preserved when
26561 the next dropdown happened.
26562 * ThemeWin32Classic.cs:
26563 - Items were wrapped at the right end.
26564 * CheckedListBox.cs:
26567 - Items should be fully shown.
26568 - When resizing and vertical scrollbar disappeared, the item
26569 of index 0 should be on the top of the list.
26570 - GetItemRectangle should consider the size of ver. scrollbar
26572 - SizingGrip area should not be allocated when it is not
26574 - Now it reflects MinWidth of the containing panel and
26575 fixed a crash that happens when its width becomes so small.
26577 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
26579 * CheckedListBox.cs: Fixes bug 76028
26580 * ListBox.cs: Fixes bug 76028
26582 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
26584 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
26585 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
26587 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
26589 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
26591 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
26593 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
26595 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
26597 * IRootGridEntry.cs: Added
26598 * PropertyGridCommands.cs: Added
26599 * PropertiesTab.cs: Added missing methods and property
26600 * PropertyGridView.cs: Made class internal
26601 * PropertyGridTextBox.cs: Made class internal
26603 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
26605 * MimeIcon.cs: Try to check some other environment variables
26606 if "DESKTOP_SESSION" returns "default"
26608 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
26610 * ThemeNice.cs: Corrected background colors (e.g. menus)
26611 * ColorDialog.cs: Use correct background colors for controls
26613 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
26615 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
26617 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
26619 * RichTextBox.cs: Added initial implementation
26620 * lang.cs: Removed. Was accidentally checked in long time ago
26621 * TODO: Removed. Contents were obsolete
26623 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
26625 * PropertiesTab.cs : Added
26627 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
26629 * PropertyGrid.cs : Update
26630 * PropertyGridView.cs : Update
26631 * System.Windows.Forms.resx : Added images and strings
26633 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
26635 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
26637 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
26639 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
26640 a busy loop right after the Ungrab the X11 display is otherwise
26643 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
26645 * ThemeWin32Classic.cs: Optimise the use of clipping
26647 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
26649 * DataGrid.cs: fixes recursion bug
26651 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
26654 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
26657 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
26659 * ThemeNice.cs: Draw nice ProgressBars
26661 2005-09-01 Miguel de Icaza <miguel@novell.com>
26663 * VScrollBar.cs: Another buglet found by Aaron's tool.
26665 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
26668 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
26671 - Added nicer menu drawing
26675 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
26677 * CreateParams.cs (ToString): Made output match MS
26678 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
26679 handle is already created (to avoid forcing window creation)
26680 * XplatUIX11.cs: Set window text to caption after creating window,
26681 in case Text was set before window was created
26682 * Form.cs: Use this.Text instead of a static string as caption
26684 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
26686 * NotifyIcon.cs: Don't set the window to visible; this screws
26687 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
26688 OnPaint without a bitmap)
26689 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
26690 happen very often anyway; we could add the check to the WM_PAINT
26691 event generation code
26693 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
26695 * NotifyIcon.cs: Fill the icon area with a background color, to
26696 avoid 'residue' when transparent icons are drawn
26698 - Handle whole_window == client_window when destroying windows
26699 - SystrayAdd(): Set client_window to whole_window value to
26700 get mouse and other events passed to NotifyIcon
26702 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
26704 * Form.cs: Set proper default for Opacity property
26706 - ShowSystray(): Don't bother creating telling the OS
26707 about the systray item if no icon is provided
26708 - Now handles WM_NCPAINT message to deal with whole/client window
26710 - Create window as visible to not get caught by Expose optimization
26711 * Hwnd.cs: Removed debug message
26712 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
26713 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
26714 PaintEventStart/End to use new client argument
26716 - Commented out debug messages
26717 - Switched PaintEventStart/End to use new client argument
26718 * XplatUI.cs: Added client window bool to PaintEventStart()/
26719 PaintEventEnd() calls, to support drawing in non-client areas
26720 * XplatUIDriver.cs:
26721 - Added client window bool to PaintEventStart()/PaintEventEnd()
26722 calls, to support drawing in non-client areas
26723 - Added conditional compile to allow using MWF BeginInvoke
26726 - Added some conditional debug output
26727 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
26728 whole/client window split
26729 - Implemented handling of client argument to PaintEventStart()/End()
26731 - Throw exception if BeginInvoke() is called and the window handle
26732 or one of the window's parent handles is not created
26733 - Added conditional compile to allow using MWF BeginInvoke on
26735 - get_Parent(): Only sets parent if handle is created. This avoids
26736 forcing window handle creation when parent is set.
26737 - Now fires Layout and Parent changed events in proper order
26738 - Switched to use Handle instead of window.Handle for Z-Order setting,
26739 the get_Parent() patch above causes us to possibly get null for 'window'
26740 - Implemented handling of client argument to PaintEventStart()/End()
26741 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
26743 - Now sends a Refresh() to all child windows when Refresh() is called
26745 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
26747 * Form.cs: Added (non-functional) Opacity property
26748 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
26750 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
26751 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
26752 use export MONO_THEME=nice to activate it.
26753 Currently supported controls:
26757 - TabControl (TabAlignment.Top only, other will follow)
26758 * ThemeEngine.cs: Add theme nice
26759 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
26762 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
26764 * Splitter.cs: Resize docked control and its neighbor.
26766 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
26767 -- Making Windows with Menus layout correctly --
26768 * Form.cs : The first leg of the fix
26769 Menu setter - adjust Client Size as needed to make space for the menu
26770 SetClientSizeCore - doesn't call base version to be able to pass the
26771 menu handle to XplatUI.CalculateWindowRect
26772 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
26773 * XplatUIX11.cs: The critical second leg of the fix
26774 GetWindowPos needs to use a recalculated client_rect
26775 so that resizing the window doesn't break layout of child controls.
26776 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
26777 Lots of \t\n killed
26779 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
26781 * Label.cs: Now properly recalculates width and height on Font and Text
26782 changes if AutoSize is set
26784 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
26785 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
26787 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
26789 * ImageList.cs: Makes ToString method compatible with MS
26791 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
26793 * MenuAPI.cs: fixes bug 75716
26795 2005-08-11 Umadevi S <sumadevi@novell.com>
26796 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
26798 2005-08-11 Umadevi S <sumadevi@novell.com>
26799 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
26801 2005-08-10 Umadevi S <sumadevi@novell.com>
26802 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
26804 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
26806 * Menu.cs: fixes bug 75700
26807 * MenuAPI.cs: fixes navigation issues
26809 2005-08-09 Umadevi S <sumadevi@novell.com>
26810 * CheckedListBox.cs - simple fix for GetItemChecked.
26812 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
26814 * ComboBox.cs: Serveral fixes
26815 * ListBox.cs: Serveral fixes
26817 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
26819 * ComboBox.cs: Fixes FindString methods and GetItemHeight
26820 * ListBox.cs: Fixes FindString methods
26822 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
26824 * DataGrid.cs: fixes bugs exposed by new tests
26826 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
26828 * Mime.cs: Compile Mono assembly references only if compiling
26829 with Mono (Allows to build with VS.Net again)
26831 2005-07-28 Marek Safar <marek.safar@seznam.cz>
26833 * Control.cs (PaintControlBackground): Draw background image
26835 (CheckForIllegalCrossThreadCalls): Stubbed.
26837 * Form.cs (OnCreateControl): Center when should be centered.
26839 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
26841 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
26843 * Binding.cs: Binding to properties should be case unsensitive
26845 2005-07-18 vlindos@nucleusys.com
26847 * DataGrid.cs: fixes setmember order
26849 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
26851 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
26852 * FileDialog.cs: FileDialog is now resizable and uses the new
26855 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
26857 * DataGridTextBoxColumn.cs: default value
26858 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
26859 * GridTableStylesCollection.cs: fixes checking MappingName
26860 * DataGridDrawingLogic.cs: fixes drawing logic issues
26861 * DataSourceHelper.cs: rewritten to make compatible with more data sources
26862 * DataGrid.cs: fixes
26864 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
26866 * MimeGenerated.cs: Use case sensitive comparer for
26867 NameValueCollections
26869 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
26871 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
26872 * ThemeWin32Classic.cs: bug fixes, code refactoring
26873 * DataGridDrawingLogic.cs: bug fixes, code refactoring
26874 * DataGrid.cs: bug fixes, code refactoring
26875 * DataGridTextBox.cs: bug fixes, code refactoring
26876 * DataGridColumnStyle.cs: bug fixes, code refactoring
26877 * Theme.cs: bug fixes, code refactoring
26879 2005-07-01 Peter Bartok <pbartok@novell.com>
26881 * TextControl.cs: Quick fix for the reported crash on ColorDialog
26882 and other text box usage
26884 2005-07-01 Jackson Harper <jackson@ximian.com>
26886 * TabControl.cs: Make sure the bottom of the tab covers the pages
26889 2005-06-30 Peter Bartok <pbartok@novell.com>
26891 * Form.cs (ShowDialog): Assign owner of the dialog
26892 * TextBoxBase.cs: Always refresh caret size when deleting, caret
26893 might have been moved to a tag with different height
26895 2005-06-30 Jackson Harper <jackson@ximian.com>
26897 * Form.cs: Don't create an infinite loop when setting focus
26898 * MenuItem.cs: Don't dirty the parents if we don't have any
26900 2005-06-29 Ben Maurer <bmaurer@ximian.com>
26902 * LibSupport.cs: Rename
26904 2005-06-29 Peter Bartok <pbartok@novell.com>
26906 * TextBoxBase.cs: Re-align caret after deleting a character
26908 - DeleteChars(): Ensure that tag covers the provided position
26909 - StreamLine(): Drop reference for dropped tag
26911 2005-06-29 Peter Bartok <pbartok@novell.com>
26914 - Selections now work properly, anchoring at the initial location
26915 and properly extending in either direction (SetSelectionToCaret(),
26916 SetSelectionStart() and SetSelectionEnd())
26917 - No longer redraws the whole control on selection change, now
26918 calculates delta between previous and new selection and only
26919 invalidates/redraws that area
26920 - Fixed FindPos() math off-by-one errors
26921 - Changed DeleteChars() to verify the provided tag covers the
26922 provided position, selections may have a tag that doesn't cover
26923 the position if the selection is at a tag border
26924 - Fixed off-by-one errors in DeleteChars()
26925 - Added missing streamlining check in DeleteChars() to remove
26927 - Implemented Invalidate() method, now properly calculates exposures
26928 between two given lines/positions
26929 - Implemented SetSelection()
26930 - Obsoleted and removed FixupSelection()
26931 - Improved RecalculateDocument() logic, removing code duplication
26933 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26935 * LibSupport.cs: changes to match different input/output arguments.
26937 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26939 * LibSupport.cs: added libsupport.so init routine.
26941 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
26943 * ControlBindingsCollection.cs
26944 - Throws an exception on null datasource when adding
26945 - Checks for duplicated bindings when adding
26947 2005-06-28 Jackson Harper <jackson@ximian.com>
26949 * TreeView.cs (OnKeyDown): Support left and right properly
26950 (navigates as well as expanding and collapsing.
26951 - Add support for Multiply, this expands all the selected nodes
26953 - Fix some tabbing.
26955 2005-06-28 Jackson Harper <jackson@ximian.com>
26957 * TreeView.cs: Implement keyboard navigation, currently supports,
26958 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
26959 support for toggling checkboxes with the space bar.
26961 2005-06-28 Jackson Harper <jackson@ximian.com>
26963 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
26966 2005-06-28 Jackson Harper <jackson@ximian.com>
26968 * TreeView.cs: Add missing event.
26970 2005-06-27 Peter Bartok <pbartok@novell.com>
26973 - Made line ending size configurable (now allows for counting
26974 lineendings as \n or \r\n)
26975 - Added margin to viewport to keep caret visible on right side
26976 - Fixed translation routines for line/pos to documentpos to consider
26977 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
26978 - Fixed some line-endings to be unix style
26979 - Fixed Document.FormatText to perform it's calculations 1-based
26980 - Added descriptions for a few methods that might otherwise get
26982 - Added NOTE section with some basic conventions to remember at
26983 the top of the file
26984 - Major fixup for RichTextBox selection drawing:
26985 * Fixed crashes when multiple tags on a single line were selected
26986 * fixed selection box drawing not overlaying text
26987 * fixed bogus offset calculation for tags not starting at index 1
26988 * Switched behaviour from using multiple Substrings of a
26989 StringBuilder.ToString() to using multiple
26990 StringBuilder.ToString(start, length) statements, hoping this is
26991 faster (kept original version commented out in the code, in case
26992 original version was faster)
26993 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
26995 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
26998 2005-06-27 Jackson Harper <jackson@ximian.com>
27000 * TabControl.cs: Move to the left and right with the arrow
27001 keys. These keys don't cycle beyond first and last like
27002 tab. Refresh all the tabs when scrolling them to the left or
27005 2005-06-27 Jackson Harper <jackson@ximian.com>
27008 - ToString: Added method
27009 - CreateParams: Remove TODO and comment
27010 - OnKeyDown: Cycle through bounds properly.
27011 - SelectedIndex: Scroll to the right or left if we need to
27012 display the newly selected tab.
27014 2005-06-23 Jackson Harper <jackson@ximian.com>
27016 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
27019 2005-06-23 Jackson Harper <jackson@ximian.com>
27021 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
27022 CTRL-SHIFT-TAB, and HOME, END are there any others?
27024 2005-06-23 Jackson Harper <jackson@ximian.com>
27026 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
27028 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
27030 * DataGridTextBoxColumn.cs: fixes and enhancements
27031 * ThemeWin32Classic.cs: fixes and enhancements
27032 * DataGridBoolColumn.cs: fixes and enhancements
27033 * DataGridDrawingLogic.cs: fixes and enhancements
27034 * CurrencyManager.cs: fixes and enhancements
27035 * DataGrid.cs: fixes and enhancements
27036 * DataGridColumnStyle.cs: fixes and enhancements
27038 2005-06-22 Jackson Harper <jackson@ximian.com>
27040 * TabControl.cs: Add some missing methods that just call into the
27041 base. Make the TabPageCollection's IList interface behave in the
27042 same manner as the MS implementation.
27044 2005-06-22 Peter Bartok <pbartok@novell.com>
27046 * TextControl.cs: Added sanity check
27048 - Fixed wrapping behaviour, don't set wrap on single line controls
27049 (this fixes the breakage of colordialog introduced in an earlier
27051 - Added rudimentary support for autoscrolling right-aligned controls
27052 (still needs fixing, also, center alignment scroll is missing)
27054 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
27056 * ScrollBar.cs: Fixes thumbpos on Maximum values
27058 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
27060 * PropertyGridView.cs: Pass context information to UITypeEditors
27062 2005-06-21 Peter Bartok <pbartok@novell.com>
27065 - Now calling PositionCaret with absolute space coordinates
27066 - Enabled vertical scrolling
27067 - Better tracking of scrollbar changes, tied into WidthChange
27069 - Improved cursor tracking
27070 - Removed debug output
27072 - PositionCaret coordinates are now works in absolute space, not
27074 - Improved tracking of document size
27075 - Added events for width and height changes
27077 2005-06-21 Peter Bartok <pbartok@novell.com>
27079 * Form.cs: Set focus to active control when form is activated
27081 - Added word-wrap functionality to RecalculateLine()
27082 - Added some short function descriptions for VS.Net to aid in
27083 writing dependent controls
27084 - Added Caret property, returning the current coords of the caret
27085 - Added ViewPortWidth and ViewPortHeight properties
27086 - Added Wrap property
27087 - Added CaretMoved event
27088 - Removed some old debug code
27089 - Split() can now create soft splits
27090 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
27091 - Added method to format existing text
27092 - Fixed size/alignment calculations to use viewport
27093 - RecalculateDocument now can handle changing line-numbers while
27097 - Added some wrap logic, we don't wrap if alignment is not left
27098 - Added casts for scrollbar var, base class switched types to
27099 also support RichTextBoxA
27100 - Implemented handling of scrollbar visibility flags
27103 - Switched scrollbars type to RichTextBoxScrollBars to support
27105 - Added tracking of canvas width/height
27106 - Switched scrollbars to be not selectable (to keep focus on text)
27107 - Added central CalculateDocument() method to handle all redraw
27109 - Added ReadOnly support
27110 - Added WordWrap support
27111 - Fixed handling of Enter key (we now treat it as a DialogKey)
27112 - Fixed caret positioning when h or v scroll is not zero
27113 - Fixed placing/generation of vertical scrollbar
27114 - Added CalculateScrollBars() method to allow updating scrollbar
27115 limits and visibility
27116 - Fixed handling of horizontal scroll
27117 - Added handling of vertical scroll
27118 - Implemented auto-'jump' when caret moves to close to a left or
27119 right border and there is text to be scrolled into view (currently
27120 there's the potential for a stack overflow, until a bug in
27121 scrollbar is fixed)
27123 2005-06-21 Geoff Norton <gnorton@customerdna.com>
27125 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
27127 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
27131 - return application/x-zerosize for files with size zero
27132 (if no extension pattern matches).
27133 - check matches collection for strings too.
27134 - return only the first mime type if the name value
27135 collection has more than one mime type.
27137 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
27139 * PropertyGrid.cs: Cleaned up some TODOs
27140 * PropertyGridView.cs: Added support for UITypeEditors
27142 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
27144 * DataGrid.cs: clears cached value
27146 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
27148 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
27149 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
27150 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
27151 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
27153 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
27155 * ThemeWin32Classic.cs: fixes colour
27157 2005-06-15 Peter Bartok <pbartok@novell.com>
27159 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
27160 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
27161 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
27162 * Control.cs: Added some MWFCategory and MWFDescription attributes
27163 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
27165 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
27167 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
27170 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
27172 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
27173 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
27174 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
27175 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
27176 * DataGrid.cs: default datagrid settings for Default Styles, fixes
27177 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
27179 2005-06-13 Jackson Harper <jackson@ximian.com>
27181 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
27182 isn't printed when the user enables dropping. (X11 does accept
27185 2005-06-13 Jackson Harper <jackson@ximian.com>
27187 * TreeView.cs: Remove some TODOS.
27189 2005-06-13 Jackson Harper <jackson@ximian.com>
27191 * Form.cs: Hook into the mdi framework.
27192 * MdiClient.cs: Use the base control collections add method so
27193 parents get setup correctly. Set the default back colour and dock
27195 * MdiChildContext.cs: New class, this bad actor handles an
27196 instance of an MDI window. Right now there is only basic
27197 support. You can drag, close, and resize windows. Minimize and
27198 Maximize are partially implemented.
27200 2005-06-13 Jackson Harper <jackson@ximian.com>
27202 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
27203 freaky when both vals are negative. NOTE: There are probably other
27204 places in XplatUIX11 that this needs to be done.
27206 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
27208 * DataGrid.cs: implement missing methods, move KeyboardNavigation
27209 * DataGridColumnStyle.cs: fixes signature
27211 2005-06-12 Jackson Harper <jackson@ximian.com>
27213 * XplatUIX11.cs: Use sizing cursors similar to the ones on
27216 2005-06-11 Jackson Harper <jackson@ximian.com>
27218 * StatusBarPanel.cs: Signature cleanups. Implement
27221 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
27223 * DataGridTextBoxColumn.cs: Honors aligment
27224 * GridColumnStylesCollection.cs: Contains is case unsensitive
27225 * GridTableStylesCollection.cs: several fixes
27226 * DataGridTableStyle.cs: default column creation
27227 * DataGridDrawingLogic.cs: fixes
27228 * CurrencyManager.cs: ListName property
27229 * DataGrid.cs: multiple styles support
27230 * DataGridColumnStyle.cs: fixes
27233 2005-06-10 Peter Bartok <pbartok@novell.com>
27235 * Control.cs(Select): Moved SetFocus call to avoid potential
27236 loops if controls change the active control when getting focus
27237 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
27238 the up/down buttons
27240 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
27242 * ImageListConverter.cs: Implemented
27244 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
27246 * MonthCalendar.cs: Wired in NumericUpDown control for year
27248 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
27250 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
27251 DoubleClick events, since they are not meant to be fired.
27253 2005-06-09 Peter Bartok <pbartok@novell.com>
27255 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
27256 Jonathan's standalone controls into MWF, implemented missing
27257 events, attributes and methods; added xxxAccessible classes
27258 * AccessibleObject.cs: Made fields internal so other classes
27259 can change them if needed
27261 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
27263 * UpDownBase.cs: Complete implementation
27264 * NumericUpDown.cs: Complete implementation
27265 * DomainUpDown.cs: Complete implementation
27267 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
27269 * DataGridTextBoxColumn.cs: drawing fixes
27270 * DataGridCell.cs: fixes ToString method to match MSNet
27271 * DataGridTableStyle.cs: fixes
27272 * DataGridBoolColumn.cs: fixes, drawing
27273 * DataGridDrawingLogic.cs: fixes, new methods
27274 * DataGridTextBox.cs: Keyboard and fixes
27276 - Keyboard navigation
27278 - Row selection (single, multiple, deletion, etc)
27281 2005-06-07 Jackson Harper <jackson@ximian.com>
27283 * ThemeWin32Classic.cs: Clear the background area when drawing
27286 2005-06-06 Peter Bartok <pbartok@novell.com>
27288 * ImageListStreamer.cs: Fixed signature for GetData
27289 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
27291 - Added missing ChildAccessibleObject class
27292 - Added missing OnXXXFocus overrides, switched to using those
27293 instead of the event handler
27295 - Added Parent property for ControlAccessibleObject
27298 - Added ResetBindings()
27299 * ListBindingConverter.cs: Implemented some methods
27300 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
27301 * ImageList.cs: Implemented basic handle scheme, removed TODOs
27302 * ContainerControl.cs: Fixed signature, now subscribing to the
27303 ControlRemoved event instead of overriding the handler, LAMESPEC
27304 * CurrencyManager.cs: Added missing attribute
27305 * MonthCalendar.cs: Added missing properties
27307 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
27309 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
27311 2005-06-06 Gaurav Vaish and Ankit Jain
27313 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
27314 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
27316 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
27318 * Control.cs: fixes CreateParams Width / Height.
27320 2005-06-05 Peter Bartok <pbartok@novell.com>
27322 * Win32DnD.cs: Removed compilation warnings
27324 2005-06-05 Peter Bartok <pbartok@novell.com>
27326 * Control.cs (CreateParams): Since we don't know if one of the
27327 properties we use is overridden, lets make sure if we fail accessing
27328 we continue with a backup plan
27330 2005-06-05 Peter Bartok <pbartok@novell.com>
27333 - Removed debug output
27334 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
27336 - Plugged resource leak
27337 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
27340 2005-06-05 Peter Bartok <pbartok@novell.com>
27342 * XplatUIWin32.cs: Removed DnD code
27343 * Win32DnD.cs: Implemented drop source and drop target functionality
27345 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27347 * UpDownBase.cs: remove duplicate addition of event, enable some code
27348 that was commented out.
27349 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
27350 Validate input when a key is pressed. It works fine now for every
27351 combination of Hexadecimal. Only missing some drawing love when sharing
27352 space with other controls.
27354 2005-06-04 Peter Bartok <pbartok@novell.com>
27357 - We need to pass a window for DragDrop, so enable callback events
27358 - Added DnD callback events when being a DragSource
27359 * XplatUI.cs (StartDrag): Added window handle argument
27360 * XplatUIDriver.cs (StartDrag): Added window handle argument
27361 * QueryContinueDragEventArgs: Made fields internally accessible so
27362 drivers can set them
27363 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
27366 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
27368 * DataGridTextBoxColumn.cs: column text editing
27369 * DataGridTableStyle.cs: Respect columns styles created by the user
27370 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
27371 * DataGridBoolColumn.cs: bool column editing
27372 * DataGrid.cs: fixes to scrolling, properties, etc
27373 * DataGridTextBox.cs: handle keyboard
27374 * DataGridColumnStyle.cs: fixes
27376 2005-06-02 Jackson Harper <jackson@ximian.com>
27378 * ImageListStreamer.cs: Somewhat broken implementation of
27379 GetObjectData. The RLE needs some work to match MS properly.
27381 2005-06-02 Jackson Harper <jackson@ximian.com>
27383 * X11Dnd.cs: Attempting to keep at least one file in MWF
27386 2005-06-02 Peter Bartok <pbartok@novell.com>
27388 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
27391 2005-06-02 Peter Bartok <pbartok@novell.com>
27393 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
27394 * XplatUI.cs: Added DoDragDrop() method
27395 * XplatUIDriver.cs: Added DoDragDrop() method
27397 2005-06-02 Jackson Harper <jackson@ximian.com>
27399 * Splitter.cs: Implement BorderStyle.
27401 2005-06-02 Jackson Harper <jackson@ximian.com>
27403 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
27404 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
27407 2005-06-02 Peter Bartok <pbartok@novell.com>
27410 - Added Data setter
27411 - Fixed broken insertion code for SetData, now also
27412 overwrites any existing entry of the same format name
27413 * Hwnd.cs: Added list of pointers that automatically gets
27414 freed when the window is disposed
27415 * XplatUI.cs: Call driver initialization method when loading
27418 - OnDragLeave takes EventArgs, not DragEventArgs
27419 - Added setting of WS_EX_ACCEPTFILES style when dropping is
27421 - Forces style update when drop state changes
27422 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
27423 not perfect since we cannot (yet) call the IDataObject.GetData()
27424 method, we keep getting 0x80004005 error, dunno why)
27426 2005-06-02 Peter Bartok <pbartok@novell.com>
27428 * DragEventArgs.cs: Make fields internal so we can cache the
27429 object and re-set the fields from XplatUI
27431 2005-06-02 Jackson Harper <jackson@ximian.com>
27433 * Control.cs: Add some internal methods so the DnD subsystem can
27434 raise DnD events. Also call into the driver when AllowDrop is set.
27436 * XplatUIDriver.cs: New method for setting whether or not a window
27437 is allowed to accept drag and drop messages.
27439 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
27441 * ScrollBar.cs: Make sure that values sent in Scroll events
27442 are always between Maximum and Minimum.
27444 2005-06-01 Marek Safar <marek.safar@seznam.cz>
27446 * Menu.cs: Call MenuChanged when menuitem visibility has been
27448 * MenuItem.cs: Rebuild menu when item is (not) visible.
27449 * MainMenu.cs: MainMenu has special MenuChanged.
27450 * Theme.cs: Caption and FrameBorderSize are not fixed.
27451 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
27452 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
27454 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
27455 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
27457 2005-05-30 Jackson Harper <jackson@ximian.com>
27459 * DataFormat.cs: We can't statically initialize this stuff because
27460 it calls into the xplatui and could create a loop. So we lazy init
27463 2005-05-28 Jackson Harper <jackson@ximian.com>
27465 * Control.cs: Proper implementation of Product(Name/Version).
27467 2005-05-27 Jackson Harper <jackson@ximian.com>
27469 * DataObject.cs: Dont crash if no data is found.
27471 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27472 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
27473 as per status page, guessing it should be set to true
27475 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
27477 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
27478 * DataGridTableStyle.cs: set proper formatting text, def header text
27479 * ThemeWin32Classic.cs: new themable paramaters
27480 * DataGridBoolColumn.cs: paint check box, get data, fixes
27481 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
27482 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
27483 * DataGridColumnStyle.cs: fixes
27484 * Theme.cs: new themable paramaters
27486 2005-05-26 Peter Bartok <pbartok@novell.com>
27488 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
27490 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27491 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
27493 2005-05-24 Peter Bartok <pbartok@novell.com>
27495 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
27496 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
27497 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
27498 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
27499 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
27500 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
27501 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
27502 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
27503 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
27504 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
27505 missing attributes, etc
27506 * DataGridPreferredColumnWidthTypeConverter.cs: Added
27508 2005-05-24 Peter Bartok <pbartok@novell.com>
27510 * Help.cs: Added, implemented trivial functions, throws up MessageBox
27511 when user tries to get help
27512 * DataObject.cs, DataFormats.cs, LinkArea.cs,
27513 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
27514 to suppress warnings
27515 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
27516 avoid unreachable code warning
27518 2005-05-20 Peter Bartok <pbartok@novell.com>
27520 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
27522 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
27524 * DataGridTextBoxColumn.cs: Basic painting methods
27525 * DataGridTableStyle.cs: Set table style in the column
27526 * ThemeWin32Classic.cs: Use Theme for colors
27527 * DataGridDrawingLogic.cs: Implement more drawing
27528 * DataGrid.cs: drawing, theming, enhacements, fixes
27529 * DataGridColumnStyle.cs: fixes, drawing
27530 * Theme.cs: theming for Datagrid
27532 2005-05-20 Peter Bartok <pbartok@novell.com>
27534 * Cursor.cs: Implemented GetObjectData() method
27536 2005-05-20 Peter Bartok <pbartok@novell.com>
27538 * Cursors.cs: Added setting of cursor name
27540 - Implemented constructors
27541 - Implemented Draw and DrawStretched
27542 - Implemented Current property
27543 - Implemented == and != operators
27544 - Implemented Dispose()
27545 - Implemented ToString
27546 - Added missing attributes
27548 - Added missing reset for OverrideCursor when DoEvents is called
27549 - Fixed creation of cursor, logic was wrong
27551 - Added missing reset for OverrideCursor when DoEvents is called
27552 - Fixed creation of cursor, bit arrays were swapped
27553 * Clipboard.cs: Removed obsolete MonoTODO attribute
27555 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
27557 * ComboBox.cs: fixes OnSelectedItemChanged
27558 * ControlBindingsCollection.cs: fixes item range check
27560 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
27563 - Calc preferred height properly
27564 - Implement missing properties
27566 * NumericUpDown.cs: Implement missing events
27568 2005-05-19 Jackson Harper <jackson@ximian.com>
27570 * TabControl.cs: New method that resizes the tab pages before
27571 redrawing them. This as needed as the control is double buffered
27572 and sizing will not be recalculated unless ResizeTabPages is
27574 * TabPage.cs: Set base.Text instead of Text in the constructor so
27575 that UpdateOwner does not get called. Use the new Redraw method of
27576 TabControl instead of Refresh so the sizing is recalculated.
27577 * ThemeWin32Classic.cs: Draw the text for button tabs.
27579 2005-05-19 Jackson Harper <jackson@ximian.com>
27581 * Control.cs: Paint control background images. Fix typo where
27582 PaintControlBackground was not getting called correctly.
27584 2005-05-19 Peter Bartok <pbartok@novell.com>
27586 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
27587 I can investigate, apparently I broke FileDialog
27589 2005-05-19 Marek Safar <marek.safar@seznam.cz>
27591 * AxHost.cs: Some simple properties.
27592 * Control.cs: window must be accessible after ctor.
27593 * Form.cs: Added TransparencyKey property.
27594 * TextBoxBase.cs: Implemented Clear. Text property can be null.
27595 * XplatUIWin32.cs: SetBorderStyle implemented.
27597 2005-05-18 Peter Bartok <pbartok@novell.com>
27599 * DataObject.cs: Entries are not global but particular to the
27600 DataObject, now it behaves that way
27601 * XplatUIWin32.cs: Implemented Clipboard methods
27602 * Clipboard.cs: Implemented
27603 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
27604 * XplatUIOSX.cs: Updated to final clipboard prototypes
27605 * XplatUIX11.cs: Implemented Clipboard methods
27606 * XplatUIDriver.cs: Updated to final clipboard prototypes
27607 * XplatUIStructs.cs:
27608 - Added BITMAPINFOHEADER struct
27609 - Added ClipboardFormats enum
27611 - Added ClipboardStruct
27612 - Added Atom enum items for clipboard types
27613 - Fixed atom types for Selection event structures
27615 - Added internal properties and methods for drivers to enumerate
27617 - Switched initialization method to allow drivers to assign their
27618 own IDs even for the MS predefined clipboard IDs
27619 * XplatUI.cs: Updated to final clipboard interface
27621 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27622 * PropertyGridView.cs: Fixed compiler warnings.
27624 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27625 * PropertyGrid.cs: Added some event calls
27626 * PropertyGridView.cs: Change drawing code to use double buffering
27627 * PropertyGridTextBox.cs: Changed Text property name
27628 * GridItem.cs: Added Bounds property.
27629 * GridEntry.cs: Added Bounds property.
27631 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
27633 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
27634 since GetType() may not return the correct type if the object is
27637 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
27639 * TreeNodeCollection.cs: fixes get/set item ranges
27641 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
27643 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
27645 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
27647 * ComboBox.cs: Fix item range comparation
27648 * ListView.cs: Fix item range comparation
27650 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
27653 - Clear example panel when OnPaint is called
27654 - Better solution for displaying the example panel text
27655 - Select default indexes in the ListBoxes
27657 2005-05-11 Geoff Norton <gnorton@customerdna.com>
27659 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
27661 2005-05-11 Peter Bartok <pbartok@novell.com>
27663 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
27664 * SelectionRangeConverter.cs: Implemented
27665 * PropertyGrid.cs: Fixed attribute value
27667 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
27668 - Added Sebastien Pouliot's CAS Stack Propagation fixes
27669 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
27670 that's common to all drivers. First methods to go there are
27671 Sebastien Pouliot's CAS Stack Propagation helper methods
27672 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
27673 Sebastien Pouliot for CAS Stack Propagation
27675 2005-05-11 Geoff Norton <gnorton@customerdna.com>
27678 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
27680 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
27682 * DataGridTextBoxColumn.cs: fixed some members
27683 * GridColumnStylesCollection.cs: indexed column is case insensitive
27684 * DataGridTableStyle.cs: fixes
27685 * ThemeWin32Classic.cs: add new theme parameter
27686 * Theme.cs: add new theme parameter
27687 * DataGridDrawingLogic.cs: Datagrid's drawing logic
27688 * DataGrid.cs: fixes, new internal properties, etc.
27689 * DataGridColumnStyle.cs: allows to set grid value
27692 2005-05-10 Peter Bartok <pbartok@novell.com>
27694 * AccessibleObject.cs:
27695 - Removed MonoTODO attribute on help, method is correct
27696 - Fixed Bounds property
27697 * AxHost.cs: Moved MonoTODO
27698 * ButtonBase.cs: Now setting AccessibleObject properties
27699 * RadioButton.cs: Setting proper AccessibleObject role
27700 * CheckBox.cs: Setting proper AccessibleObject role
27701 * ControlBindingsCollection.cs: Added properties, methods and attributes
27702 * DataFormats.cs: Fixed awkward internal API, and changed to enable
27703 userdefined DataFormats.Format items as well
27704 * ListControl.cs: Removed data_member from the public eye
27705 * OpenFileDialog.cs:
27706 - Made class sealed
27707 - Added missing attributes
27708 * SaveFileDialog.cs: Added missing attributes
27709 * ImageListStreamer.cs: Fixed code that caused warnings
27710 * LinkLabel.cs: Removed unreachable code
27711 * TreeView.cs: Fixed code that caused warnings
27712 * PropertyGridView.cs: Fixed code that caused warnings
27713 * GridColumnStylesCollection.cs: Added missing attributes
27714 * GridTableStylesCollection: Added missing attribute
27715 * PropertyManager: Added .ctor
27716 * SecurityIDType: Added
27717 * DataObject.cs: Implemented class
27718 * LinkArea.cs: Added missing attribute
27720 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
27722 * RadioButton.cs: call base method to allow to fire OnClick event
27723 * UpDownBase.cs: OnMouseUp call base method
27724 * CheckedListBox.cs: call base method before returning
27725 * TrackBar.cs: call base method before returning
27728 2005-05-10 Peter Bartok <pbartok@novell.com>
27730 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
27733 2005-05-10 Peter Bartok <pbartok@novell.com>
27735 * DataFormats.cs: Implemented
27736 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
27737 XplatUIX11.cs: Added Clipboard APIs
27738 * XplatUIWin32.cs: Implemented Clipboard APIs
27739 * FolderBrowserDialog.cs: Added missing event, attributes
27741 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
27743 * CheckBox.cs: call base method to allow to fire OnClick event
27745 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
27747 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
27749 2005-05-06 Peter Bartok <pbartok@novell.com>
27751 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
27752 * Screen.cs: Implemented
27753 * HelpNavigator.cs: Added
27754 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
27756 * HelpProvider.cs: Implemented all we can do until we have a CHM
27757 help library (which means that "What's This" does work now)
27759 2005-05-06 Jackson Harper <jackson@ximian.com>
27761 * XplatUIX11.cs: Fix waking up the main loop.
27763 2005-05-05 Peter Bartok <pbartok@novell.com>
27765 * XplatUI.cs: Updated revision
27766 * Form.cs: Removed enless loop
27767 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
27768 * Label.cs (OnPaint): Added call to base.OnPaint()
27769 * ToolTip.cs: Made ToolTipWindow reusable for other controls
27770 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
27771 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
27773 * ButtonBase.cs: Moved base.OnPaint() call to end of method
27774 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
27775 to ToolTip.ToolTipWindow for drawing and size methods; this allows
27776 reuse of ToolTipWindow by other controls
27777 * SizeGrip.cs: Moved base.OnPaint() call to end of method
27778 * XplatUIX11.cs: Now clipping drawing area (experimental)
27779 * PictureBox.cs: Moved base.OnPaint() call to end of method
27780 * Theme.cs: Fixed ToolTip abstracts to match new format
27781 * ErrorProvider.cs: Implemented
27783 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
27785 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
27789 - Implements LinkBehavior
27790 - Fixes many issues
27792 2005-05-03 Jackson Harper <jackson@ximian.com>
27794 * ListView.cs: Calculate the scrollbar positioning on resize and
27795 paint, so they get put in the correct place.
27797 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
27799 * ColorDialogs.cs: The small color panels are now handled by
27800 SmallColorControl. This fixes drawing of the focus rectangle
27801 and adds a 3D border.
27803 2005-05-03 Peter Bartok <pbartok@novell.com>
27805 * Control.cs: Modified version of Jonathan Chamber's fix for
27808 2005-05-03 Jackson Harper <jackson@ximian.com>
27810 * ListView.cs: Remove redraw variable. Control now handles whether
27811 or not a redraw needs to be done, and will only raise the paint
27812 event if redrawing is needed.
27814 2005-05-03 Jackson Harper <jackson@ximian.com>
27816 * Splitter.cs: No decorations for the splitter form. Cache the
27819 2005-05-03 Jackson Harper <jackson@ximian.com>
27821 * TreeView.cs: Use dashed lines to connect nodes. Use the
27822 ControlPaint method for drawing the focus rect instead of doing
27825 2005-05-02 Peter Bartok <pbartok@novell.com>
27827 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
27829 2005-04-29 Jackson Harper <jackson@ximian.com>
27831 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
27832 entire image buffer. Just clear the clipping rectangle.
27834 2005-04-29 Jackson Harper <jackson@ximian.com>
27836 * ThemeWin32Classic.cs: Don't draw list view items that are
27837 outside the clipping rectangle.
27839 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
27841 * ListBox.cs: added horizontal item scroll
27843 2005-04-29 Jackson Harper <jackson@ximian.com>
27845 * ThemeWin32Classic.cs: Remove some old debug code that was
27846 causing flicker with the new double buffering code.
27848 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
27850 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
27851 behave like combobox and comboboxlist (still not sure if this is
27854 2005-04-28 Jackson Harper <jackson@ximian.com>
27856 * ThemeWin32Classic.cs: Don't fill the middle of progress
27857 bars. This fills areas outside of the clip bounds that don't need
27860 2005-04-28 Jackson Harper <jackson@ximian.com>
27862 * Control.cs: Don't expose functionality to touch the image buffers.
27864 * ListView.cs: We do not need to (and no longer can) manipulate
27865 the image buffers directly. All of this is handled by Control.
27867 2005-04-28 Peter Bartok <pbartok@novell.com>
27869 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
27870 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
27871 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
27873 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
27876 - Adjust control's height for non-simple comboboxes (bug fix)
27878 * MenuAPI.cs: remove unused var
27879 * ScrollBar.cs: remove unsed var
27881 * ListBox.cs: unselect items when clearing
27883 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
27885 * ListControl.cs: honors OnPositionChanged and default Selected Item
27886 * ListBox.cs: unselect items when clearing
27888 2005-04-27 Jackson Harper <jackson@ximian.com>
27890 * X11Keyboard.cs: Initialize a default keyboard and give a warning
27891 if a "correct" keyboard is not found. This will make us not crash,
27892 but might give some users bad keyboard layouts...seems to be the
27893 same thing rewind does.
27895 2005-04-27 Jackson Harper <jackson@ximian.com>
27897 * BindingManagerBase.cs: Attach the current/position changed
27898 handlers to their respective events.
27900 2005-04-27 Jackson Harper <jackson@ximian.com>
27902 * Control.cs: Make sure that the first WM_PAINT does a full draw,
27904 * ThemeWin32Classic.cs: Don't fill the background for picture
27905 boxes. This could overright user drawing.
27906 * ComboBox.cs: Just fill the clipping rect not the entire client
27907 rect when drawing the background. This prevents pieces of the
27908 image buffer from getting overwritten and is theoretically faster.
27910 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
27912 * ComboBox.cs: Databinding support fixes, fire missing events
27913 * ListControl.cs: implement missing methods and properties, fixes
27914 * ThemeWin32Classic.cs: Databiding support on Drawing
27915 * CheckedListBox.cs: Databinding support fixes, fire missing events
27916 * ListBox.cs: Databinding support fixes, fire missing events
27918 2005-04-25 Peter Bartok <pbartok@novell.com>
27920 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
27922 2005-04-25 Jackson Harper <jackson@ximian.com>
27924 * TreeView.cs: Use the horizontal scrollbars height not width when
27925 determining how much of the client area is available.
27927 2005-04-25 Jackson Harper <jackson@ximian.com>
27929 * Control.cs: Double buffering is handled differently now. As per
27930 the spec, the extra buffer is created in the WM_PAINT message and
27931 passed down to the control's drawing code.
27939 * PropertyGridView.cs:
27951 * DateTimePicker.cs:
27953 * TreeView.cs: Update to new double buffering system.
27954 * MonthCalendar.cs: Uncomment block, as Capture is now
27955 working. Update to new double buffering
27956 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
27957 * PaintEventArgs.cs: New internal method allows us to set the
27958 graphics object. This is used for double buffering.
27959 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
27960 rectangle. The internal paint_area var has been removed from
27961 StatusBar. The clipping rect should be used instead.
27962 * Theme.cs: Give the PictureBox drawing method a clipping rect.
27963 * TabPage.cs: The RefreshTabs method was removed, so just call the
27964 tab controls Refresh method now.
27965 * TabControl.cs: Update to new double buffering. Make sure the
27966 handle is created before sizing the tab pages, otherwise we will
27967 get stuck in a loop.
27969 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
27971 * LinkLabel.cs: Fix typo, bug #74719; patch
27972 from Borja Sanchez Zamorano
27974 2005-04-22 Jackson Harper <jackson@ximian.com>
27976 * TreeNode.cs: Implement Handle stuff.
27977 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
27979 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
27981 * DataGridTextBoxColumn.cs: call base constructors, fixes
27982 * GridColumnStylesCollection.cs: missing events, methods, and functionality
27983 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
27984 * DataGridTableStyle.cs: implements create default column styles
27985 * DataGridBoolColumn.cs: which types can handle
27986 * DataGrid.cs: missing methods, fixes, new functionality
27987 * DataGridColumnStyle.cs: fixes
27989 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
27990 * FolderBrowserDialog.cs:
27991 - Use a thread to fill the TreeView
27992 - Adjusted some sizes
27994 2005-04-19 Peter Bartok <pbartok@novell.com>
27996 * LinkLabel.cs: (Re-)create the pieces when setting the Text
27997 property. Fixes #74360.
27999 2005-04-19 Jackson Harper <jackson@ximian.com>
28001 * XEventQueue.cs: Lock when getting the lockqueue size.
28002 * PictureBox.cs: Call base OnPaint
28004 2005-04-19 Peter Bartok <pbartok@novell.com>
28006 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
28007 messages were no longer being processed (this broke BeginInvoke)
28010 2005-04-18 Jackson Harper <jackson@ximian.com>
28012 * TreeView.cs: buglet that caused node images to get drawn
28013 regardless of whether or not they were in the clipping rectangle.
28015 2005-04-18 Jackson Harper <jackson@ximian.com>
28017 * CurrencyManager.cs: There are four rules for GetItemProperties:
28018 - If the type is an array use the element type of the array
28019 - If the type is a typed list, use the type
28020 - If the list contains an Item property that is not an object, use
28022 - use the first element of the list if there are any elements in
28025 2005-04-17 Jackson Harper <jackson@ximian.oom>
28027 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
28028 click. This handles offsets for scrolling properly and reduces
28029 memory. Also fixed GetNode to not offset now that TopNode works
28031 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
28033 2005-04-17 Jackson Harper <jackson@ximian.com>
28035 * CursorConverter.cs: Initial implementation.
28037 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
28039 * ListControl.cs: work towards complex data binding support on ListControl
28040 * CurrencyManager.cs: work towards complex data binding support on ListControl
28041 * ListBox.cs: work towards complex data binding support on ListControl
28044 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
28046 * GridTableStylesCollection.cs: fixes name and constructor
28047 * DataGridTableStyle.cs: fixes
28048 * DataGridBoolColumn.cs: fixes names and constructors
28049 * DataGrid.cs: define methods and properties. Some init implementations
28050 * DataGridCell.cs: define methods and properties. Some init implementations
28051 * GridTablesFactory.cs: Define methods and properties
28053 2005-04-15 Geoff Norton <gnorton@customerdna.com>
28055 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
28056 graphics port changes. We still want the coordinates in global screen
28059 2005-04-14 Jackson Harper <jackson@ximian.com>
28061 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
28062 check plus minus or checkbox clicks unless those features are enabled.
28064 2005-04-14 Jackson Harper <jackson@ximian.com>
28066 * TreeView.cs: Add methods for setting the top and bottom visible
28067 nodes. TreeNode::EnsureVisible uses these methods.
28068 * TreeNode.cs: Implement EnsureVisible
28070 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
28072 * Form.cs: Pospone menu assignation if the window has not been created yet
28073 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
28076 2005-04-12 Jackson Harper <jackson@ximian.com>
28078 * TreeView.cs: Set the TopNode properly when scrolling
28079 occurs. This has the added benifit of reducing the amount of
28080 walking that needs to be done when drawing. Also removed an old
28082 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
28084 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
28086 * Timer.cs: fixes interval setting when the timer is already enabled
28088 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
28090 * FolderBrowserDialog.cs: First approach
28092 2005-04-09 Peter Bartok <pbartok@novell.com>
28094 * FolderBrowserDialog: Added
28096 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
28098 * LinkLabel.cs: move drawing code into the theme
28099 * ThemeWin32Classic.cs: drawing code and painting background bugfix
28100 * Theme.cs: define DrawLinkLabel method
28102 2005-04-05 Jackson Harper <jackson@ximian.com>
28104 * BindingContext.cs: Use weak references so these bad actors don't
28105 stay alive longer then they need to.
28107 2005-04-05 Jackson Harper <jackson@ximian.com>
28109 * ListControl.cs: Basic implementation of complex databinding.
28111 * ListBox.cs: Add calls to ListControl databinding methods.
28113 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
28116 - Don't change PopupButtonState to Normal when the
28117 PopupButton gets pressed several times.
28118 - Renamed ButtonPanel to PopupButtonPanel
28120 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
28122 * ColorDialog.cs: Use cached objects instead of creating them
28123 * LinkLabel.cs: Use cached objects instead of creating them
28124 * Splitter.cs: Use cached objects instead of creating them
28125 * FontDialog.cs: Use cached objects instead of creating them
28126 * PropertyGridView.cs: Use cached objects instead of creating them
28127 * MessageBox.cs: Use cached objects instead of creating them
28128 * FileDialog.cs: Use cached objects instead of creating them
28129 * ThemeWin32Classic.cs: Use cached objects instead of creating them
28130 * TreeView.cs: Use cached objects instead of creating them
28132 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
28134 * Control.cs: use Equals to compare the font since no == op
28135 * ScrollBar.cs: use Equals to compare the font since no == op
28137 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
28139 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
28141 2005-04-01 Jackson Harper <jackson@ximian.com>
28143 * Binding.cs: Implement IsBinding.
28144 * BindingManagerBase.cs:
28145 * PropertyManager.cs:
28146 * CurrencyManager.cs: Add IsSuspended property.
28148 2005-04-01 Jackson Harper <jackson@ximian.com>
28150 * Binding.cs: Had some IsAssignableFrom calls backwards.
28152 2005-04-01 Jackson Harper <jackson@ximian.com>
28154 * Binding.cs: Handle null data members when pulling data.
28155 * PropertyManager.cs: Handle the data member being a property that
28158 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
28160 * DataGridTextBoxColumn.cs: fixes signature
28161 * DataGrid.cs: calls right constructor
28163 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
28165 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
28166 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
28167 * GridTableStylesCollection.cs: implements GridTableStylesCollection
28168 * DataGridTableStyle.cs: implements DataGridTableStyle
28169 * DataGridBoolColumn.cs: implements DataGridBoolColumn
28170 * DataGridTextBox.cs: implements DataGridTextBox
28171 * DataGridColumnStyle.cs: implements DataGridColumnStyle
28173 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
28175 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
28177 2005-03-29 Peter Bartok <pbartok@novell.com>
28180 - Properly implemented CompanyName property
28181 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
28182 returns a path that includes CompanyName, ProductName and
28183 Version (fixes bug #70330)
28185 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
28187 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
28190 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
28192 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
28194 - Added ReadOnly CheckBox
28195 - Further refactoring: moved some code from Open-/SaveFileDialog
28198 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
28200 * OpenFileDialog.cs: Fixed CheckFileExists
28202 Moved FileView and DirComboBox outside FileDialog class.
28203 They can now be used outside FileDialog
28205 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
28207 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
28208 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
28210 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
28212 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
28213 - Added missing CreatePrompt property in SaveDialog
28214 - Overall SaveDialog handling should be better now
28215 - Added non standard ShowHiddenFiles property
28216 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
28217 - Added InitialDirectory and RestoreDirectory support
28219 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
28221 * FileDialog.cs: Made dirComboBox usable
28223 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
28225 * FileDialog.cs: Added Filter support (case sensitiv)
28227 2005-03-24 Jackson Harper <jackson@ximian.com>
28229 * TabControl.cs: Need a couple more pixels for the lines.
28231 2005-03-23 Jackson Harper <jackson@ximian.com>
28233 * TabControl.cs: Give the tab page focus when it is selected.
28235 2005-03-23 Jackson Harper <jackson@ximian.com>
28237 * TabControl.cs: Account for the drawing of tabs borders when
28238 invalidating. If the slider was clicked dont do click detection on
28241 2005-03-23 Jackson Harper <jackson@ximian.com>
28243 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
28245 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
28247 * CategoryGridEntry.cs: Added
28248 * GridItem.cs: Added helper properties
28249 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
28250 * GridEntry.cs: Updated code for collection
28251 * PropertyGrid.cs: Cleaned up some formatting
28252 * PropertyGridView.cs: Added drop down functionality for enums.
28253 * GridItemCollection.cs: Added enumerator logic
28254 * PropertyGridEntry.cs: Added
28256 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
28259 - Removed unnecessary commented code
28260 - Fixed handling for entering the filename manually in the combobox
28262 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
28264 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
28266 2005-03-18 Peter Bartok <pbartok@novell.com>
28268 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
28269 them being touching the border
28271 2005-03-18 Peter Bartok <pbartok@novell.com>
28273 * TextControl.cs: Quick hack to center text better
28275 2005-03-18 Peter Bartok <pbartok@novell.com>
28278 - Don't throw NotImplemented exceptions, just print a notice once
28279 instead (requested by Miguel). This makes running existing SWF
28282 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
28283 - Added context menu trigger on right click
28284 * Panel.cs: Trigger invalidate on resize
28286 - Removed old double-buffer drawing
28287 - Added ResizeRedraw style to force proper update of statusbar
28289 - Removed debug output
28290 * ThemeWin32Classic.cs:
28291 - Fixed drawing of status bar, now draws Text property if there
28292 are no defined panels
28294 2005-03-18 Jackson Harper <jackson@ximian.com>
28296 * ImageList.cs: When the image stream is set pull all the images
28298 * ImageListStreamer.cs: Implement reading image list streams.
28300 2005-03-18 Peter Bartok <pbartok@novell.com>
28302 * ThemeWin32Classic.cs (DrawPictureBox):
28303 - Fixed calculations for centered drawing
28304 - Fixed drawing for normal mode, not scaling the image on normal
28306 2005-03-18 Peter Bartok <pbartok@novell.com>
28308 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
28311 - Made Open/Save button the accept button for FileDialog
28312 - Tied the cancel button to the IButtonControl cancel button
28313 - Save/Open now properly builds the pathname
28314 - Now handles user-entered text
28315 - Preventing crash on right-click if no item is selected
28316 - Fixed Text property, now uses contents of textbox
28317 - Fixed SelectedText property, now just returns the text part that
28318 is selected in the text box
28320 2005-03-18 Jackson Harper <jackson@ximian.com>
28322 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
28323 rect, make sure to de-adjust the interior rect after drawing the
28326 2005-03-18 Peter Bartok <pbartok@novell.com>
28328 * MenuAPI.cs: Remove menu *before* executing selected action to
28329 prevent the menu from 'hanging around'
28331 2005-03-17 Geoff Norton <gnorton@customerdna.com>
28333 * XplatUIOSX.cs: Implemented WorkingArea property
28335 2005-03-17 Peter Bartok <pbartok@novell.com>
28337 * XplatUIX11.cs: Fixed menu coord calculations
28338 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
28339 for calculating offsets
28341 2005-03-17 Peter Bartok <pbartok@novell.com>
28343 * Hwnd.cs: Do not consider menu presence for default client
28344 rectangle location/size
28345 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28346 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
28347 translation functions
28348 * FileDialog.cs: Fixed (what I presume is a) typo
28350 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
28352 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
28353 X access (avoids X-Async errors)
28355 2005-03-16 Jackson Harper <jackson@ximian.com>
28357 * TabControl.cs: Raise the SelectedIndexChanged event.
28359 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
28361 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
28362 - Removed vertical ToolBar and replaced it with a custom panel
28363 (desktop and home button already work)
28364 - Added Help button (some controls get resized or relocated then)
28365 - Draw correct text depending on Open or Save.
28366 - Fixed some typos...
28368 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
28371 - Only change Maximum and Minimum when need it (bug fix)
28373 2005-03-15 Peter Bartok <pbartok@novell.com>
28375 * Form.cs: Use Handle for icon, to trigger creation if
28376 the window does not yet exist
28378 - CanSelect: Slight performance improvement
28379 - Focus(): Preventing possible recursion
28380 - Invalidate(): Removed ControlStyle based clear flag setting
28381 - WM_PAINT: fixed logic for calling OnPaintBackground
28382 - WM_ERASEBKGND: Fixed logic, added call to new driver method
28383 EraseWindowBackground if the control doesn't paint background
28385 - Moved EraseWindowBackground() method to internal methods
28386 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
28387 is sent via SendMessage on BeginPaint call on Win32
28389 - Added EraseWindowBackground() method
28390 - No longer sends WM_ERASEBKGND on .Expose, but on call to
28391 PaintEventStart, which more closely matches Win32 behaviour
28392 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
28393 - Fixed SetFocus() to properly deal with client and whole windows
28394 * Hwnd.cs: Added ErasePending property
28395 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
28396 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
28398 2005-03-12 Geoff Norton <gnorton@customerdna.com>
28401 - Fix hard loop when timers exist.
28402 - Fix bugs with middle and right click for 3 button mice.
28404 2005-03-11 Peter Bartok <pbartok@novell.com>
28407 - get_WorkingArea: Need to call X directly, GetWindowPos only
28408 returns cached data now
28409 - Added sanity check to GetWindowPos hwnd usage
28411 2005-03-11 Jackson Harper <jackson@ximian.com>
28413 * BindingManagerBase.cs: This method isn't used anymore as
28414 PullData now updates the data in the control.
28416 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
28418 * Form.cs: fixes menu drawing on X11
28419 * MenuAPI.cs: fixes menu drawing on X11
28421 2005-03-11 Peter Bartok <pbartok@novell.com>
28423 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
28424 from Jonathan Gilbert; should fix bug #73606
28425 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
28426 in Screen coordinates. Thanks, Jordi.
28427 * Form.cs: Added missing attribute
28429 2005-03-11 Peter Bartok <pbartok@novell.com>
28432 - Rudimentary Mdi support
28433 - Removed outdated FormParent code
28434 - Implemented lots of missing properties and methods, still missing
28435 transparency support
28436 - Added missing attributes
28437 - Implemented support for MaximumBounds
28438 - Added firing of various events
28439 * XplatUI.cs: Added SetIcon() method
28440 * XplatUIDriver.cs: Added SetIcon() abstract
28441 * XplatUIOSX.cs: Stubbed out SetIcon() method
28443 - Implemented SetIcon() support
28444 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
28445 - Switched to unix line endings
28447 - Made POINT internal so for can access it as part of MINMAX
28448 - Implemented SetIcon() support
28449 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
28450 native Mdi support again, might have to go managed)
28451 * Control.cs: Now fires the StyleChanged event
28452 * MdiClient.cs: Added; still mostly empty
28454 2005-03-10 Peter Bartok <pbartok@novell.com>
28456 * SaveFileDialog.cs: Added emtpy file
28458 2005-03-08 Peter Bartok <pbartok@novell.com>
28460 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
28461 in turn triggers OnCreateContro) when creating a handle for the
28463 * TextControl.cs: Fixed endless loop in certain cases when
28464 replacing the current selection
28466 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
28469 - Honors NewValue changes in Scroll events allowing apps to change it
28470 - Adds First and Last Scroll events
28471 - Fixes Thumb events
28473 2005-03-07 Peter Bartok <pbartok@novell.com>
28475 * Hwnd.cs: Added DefaultClientRectangle property
28476 * XplatUI.cs: Now using the X11 driver Where() method, which provides
28477 more detailed debug information
28479 - Fixed size-change feedback loop, where we would pull an old size
28480 off the queue and mistakenly change our window's size to an
28482 - Now compressing ConfigureNotify events, to reduce looping and
28484 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
28487 2005-03-07 Jackson Harper <jackson@ximian.com>
28489 * Binding.cs: Push data pushes from data -> property. Check if the
28490 property is readonly when attempting to set it.
28492 2005-03-07 Jackson Harper <jackson@ximian.com>
28494 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
28495 instead of IsSubclassOf. Pulling data now sets the value on the
28497 * PropertyManager.cs:
28498 * CurrencyManager.cs: Just need to pull data when updating now,
28499 because PullData will set the value on the control.
28501 2005-03-04 Jackson Harper <jackson@ximian.com>
28503 * Binding.cs: Implement data type parsing and converting on pulled
28504 data. TODO: Are there more ways the data can be converted?
28506 2005-03-04 Jackson Harper <jackson@ximian.com>
28508 * Binding.cs: Support <Property>IsNull checks. Also bind to the
28509 controls Validating method so we can repull the data when the
28510 control loses focus.
28512 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
28515 - Fixes null string format
28518 - Adds enum type checks
28519 - Fixes redrawing and recalc need after changing some properties
28520 - Fixes on focus_item set after the event
28521 - Fixes adding columns after the control has been created
28523 * ThemeWin32Classic.cs:
28524 - Fixes CheckBox focus rectangle
28525 - Fixes ColumnHeader drawing
28528 2005-03-03 Jackson Harper <jackson@ximian.com>
28530 * Binding.cs: Bind to <Property>Changed events so we can detect
28531 when properties are changed and update the data.
28533 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
28536 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
28537 - Fixes ImageList constructor with ImageList container
28538 - Fixes image scaling (wrong parameters at DrawImage)
28540 2005-02-02 Jackson Harper <jackson@ximian.com>
28542 * Binding.cs: Make property searches case-insensitive. Eliminate
28543 some duplicated code.
28545 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
28548 - Handle focus event
28549 - Fix scrollbar events
28550 - Discard highlighted item if remove it
28551 - Fixes SelectedItem with strings
28553 2005-03-01 Peter Bartok <pbartok@novell.com>
28556 - Fixed Visible property, now follows (once again) parent chain
28557 to return false if any control in the chain is visible=false
28558 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
28559 - Fixed several places where is_visible instead of Visible was used
28560 - Implemented FIXME related to focus selection when setting focused
28561 control to be invisible
28563 * XplatUIWin32.cs: Now using proper method to find out if window is
28564 visible. Thanks to Jordi for pointing it out
28566 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
28568 * ComboBox.cs: show/hide scrollbar instead of creating it
28570 2005-02-27 Jackson Harper <jackson@ximian.com>
28572 * CurrencyManager.cs: Add PositionChanged stuff.
28574 2005-02-27 Peter Bartok <pbartok@novell.com>
28576 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
28577 * XplatUIOSX.cs: Added GetMenuOrigin() stub
28578 * XplatUIWin32.cs: Implemented GetMenuOrigin()
28580 - Implemented GetMenuDC()
28581 - Implemented GetMenuOrigin()
28582 - Implemented ReleaseMenuDC()
28583 - Implemented generation of WM_NCPAINT message
28584 - Implemented generation and handling of WM_NCCALCSIZE message
28585 * Form.cs: Added debug helper message for Jordi's menu work
28587 - Modified ClientRect property; added setter, fixed getter to handle
28588 setting of ClientRect
28589 - Added MenuOrigin property
28591 2005-02-26 Peter Bartok <pbartok@novell.com>
28594 - Destroys the caret if a window that's being destroyed contains it
28595 - Ignores expose events coming from the X11 queue for windows that
28596 already are destroyed
28597 - Now uses the proper variable for handling DestroyNotify, before we
28598 marked the wrong window as destroyed
28599 - Improved/added some debug output
28601 2005-02-26 Peter Bartok <pbartok@novell.com>
28603 * X11Keyboard.cs: Fixes to work on 64bit systems
28605 2005-02-26 Peter Bartok <pbartok@novell.com>
28608 - Now calling OnHandleDestroyed from DestroyHandle()
28609 instead of Dispose()
28610 - Removed bogus call to controls.Remove() from DestroyHandle()
28612 2005-02-26 Peter Bartok <pbartok@novell.com>
28614 * Control.cs: Properly destroy child windows when our handle is
28617 2005-02-25 Peter Bartok <pbartok@novell.com>
28620 - Added 'DriverDebug' define to allow tracing XplatUI API calls
28621 - Alphabetized Static Methods and Subclasses
28624 - Added XException class to allow custom handling of X11 exceptions
28625 - Created custom X11 error handler, tied into XException class
28626 - Added support for MONO_XEXCEPTIONS env var to allow the user
28627 to either throw an exception on X errors or continue running
28628 after displaying the error
28629 - Added handling of DestroyNotify message
28630 - Added handler for CreateNotify message (still disabled)
28631 - Improved (tried to at least) Where method to provide file and lineno
28633 - Added XErrorHandler delegate
28634 - Added XRequest enumeration (to suppor translation of errors)
28636 2005-02-25 Jackson Harper <jackson@ximian.com>
28638 * PropertyManager.cs: Implement editing features
28639 * CurrencyManager.cs:
28640 * Binding.cs: First attempt at UpdateIsBinding
28641 * BindingManagerBase.cs: Call UpdateIsBinding before
28642 pushing/pulling data.
28644 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
28646 * MenuAPI.cs: Respect disabled items
28647 * ThemeWin32Classic.cs
28648 - Caches ImageAttributes creation for DrawImageDisabled
28649 - Fixes vertical menu line drawing
28650 - Draws disabled arrows in disable menu items
28652 2005-02-24 Peter Bartok <pbartok@novell.com>
28655 - Added UserData property to allow associating arbitrary objects
28657 - Fixed leak; now removing Hwnd references from static windows array
28659 - Fixed Graphics leak in PaintEventEnd
28660 - Removed usage of HandleData, switched over to Hwnd class
28661 * HandleData.cs: Removed, obsoleted by Hwnd.cs
28663 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
28665 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
28666 * ScrollBar.cs: Fixes bug
28667 * TrackBar.cs: removes death code, clipping, mimize refreshes,
28668 keyboard navigation enhancements
28670 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
28672 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
28673 * GroupBox.cs: Add control styles
28674 * Label.cs: Add control styles
28675 * UpDownBase.cs: Add control styles
28676 * ListBox.cs: Add control styles
28677 * XplatUIWin32.cs: Fixes wrong parameter order
28680 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
28682 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
28684 2005-02-23 Jackson Harper <jackson@ximian.com>
28686 * PropertyManager.cs: Implement property binding. This doesn't
28687 seem to work yet though as (I think) there are some bugs in
28688 System.ComponentModel.PropertyDescriptor.
28689 * BindingContext.cs: Use new PropertyManager constructor.
28691 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
28693 * ProgressBar.cs: use clip region in ProgressBar
28694 * ThemeWin32Classic.cs: use clip region in ProgressBar
28696 2004-02-22 Jackson Harper <jackson@ximian.com>
28698 * BindingsCollection.cs: Remove some debug code.
28700 2005-02-22 Jackson Harper <jackson@ximian.com>
28702 * BindingContext.cs:
28703 * ControlBindingsCollection.cs:
28704 * CurrencyManager.cs:
28706 * BindingManagerBase.cs: Initial implementation
28707 * BindingsCollection.cs: Add an internal contains method that the
28708 BindingManagerBase uses to ensure bindings aren't added twice to
28710 * PropertyManager.cs: Stubbed out.
28712 * ContainerControl.cs: Hook up databinding
28714 2005-02-22 Geoff Norton <gnorton@customerdna.com>
28717 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
28718 Fixed Invalidate/Update chain.
28719 Fixed tons of other minor bugs (this is almost a complete rewrite).
28721 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
28723 * ComboBox.cs: do subcontrol creation when the control is created
28725 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
28727 * Label.cs: fixes image drawing (image and imagelist)
28728 * ThemeWin32Classic.cs: cache brushes
28730 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
28732 * Form.cs: Move menu drawing code to Theme class
28733 * ComboBox.cs: Move ComboBox drawing code to Theme class
28734 * MenuItem.cs: Move menu drawing code to Theme class
28735 * MenuAPI.cs: Move menu drawing code to Theme class
28736 * ThemeWin32Classic.cs: New methods
28737 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
28738 * ListBox.cs: Move Listbox drawing code to Theme class
28739 * Theme.cs: New methods
28741 2005-02-20 Peter Bartok <pbartok@novell.com>
28744 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
28745 only process mnemonics on those)
28746 - Fixed event sequence for key handling; first calling
28747 ProcessKeyEventArgs now
28749 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
28750 for processing non-character keys
28751 - Fixed WM_CHAR to generate proper event sequence before processing
28752 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
28755 2005-02-19 Peter Bartok <pbartok@novell.com>
28757 * UserControl.cs: Added TextChanged event; added attributes
28758 * SizeGrip.cs: Implemented resizing and optional display of grip
28759 * Form.cs: Fixed attribute
28760 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
28761 Changed meaning of ScrollWindow bool argument; instead of the
28762 clear attribute (which will be true usually anyway), it gives the
28763 option of moving child controls as well.
28765 - Changed to match new ScrollWindow argument
28766 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
28767 now handles the implicit parent window a WM puts around us
28768 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
28770 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
28771 * TreeView.cs: Adjusted to new ScrollWindow arguments
28773 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
28775 * Form.cs: Menu integration with non-client area
28776 * MenuItem.cs: Menu integration with non-client area
28777 * MenuAPI.cs: Menu integration with non-client area
28779 2005-02-18 Peter Bartok <pbartok@novell.com>
28781 * MethodInvoker.cs: Added
28782 * MdiLayout.cs: Added
28783 * SendKeys.cs: Started implementation
28784 * ErrorIconAlignment.cs: Added
28786 2005-02-18 Peter Bartok <pbartok@novell.com>
28788 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
28789 * Form.cs: Added handling for Menu-related Non-client messages
28791 2005-02-17 Peter Bartok <pbartok@novell.com>
28793 * UpDownBase.cs: Fixed typo, compilation errors
28794 * DomainUpDown.cs: Fixed attribute value
28796 2005-02-16 Miguel de Icaza <miguel@novell.com>
28798 * UpDownBase.cs: Attach entry events.
28800 Add ForeColor property, Focused, InterceptArrowKeys (interception
28801 does not work yet).
28803 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
28806 - Redraw non client are on Setmenu
28807 - Calc proper menu starting point
28809 2005-02-17 Peter Bartok <pbartok@novell.com>
28811 * Application.cs: Fixed message_filter check
28813 2005-02-17 Peter Bartok <pbartok@novell.com>
28815 * Application.cs: Now calls registered message filters
28816 * DockStyle.cs: Fixed attribute
28817 * Form.cs: Fixed attribute
28818 * Menu.cs: Fixed attribute
28819 * ToolTip.cs: Fixed attribute
28820 * TreeNode.cs: Added missing attributes and arranged in regions
28821 * PropertyGrid.cs: Fixed signatures
28822 * TreeNodeCollection.cs: Added attributes
28823 * Splitter.cs: Added missing attributes; arranged into regions
28824 * TabPage.cs: Added missing attributes; arranged into regions
28825 * TextBoxBase.cs: Added missing attributes
28826 * TextBox.cs: Added missing attributes
28827 * ArrangeDirection.cs: Added missing attributes
28828 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
28829 * ToolBarButton.cs: Fixed attributes
28830 * AnchorStyles.cs: Fixed attribute
28831 * TrackBar.cs: Fixed attributes
28832 * TabControl.cs: Added missing attributes and arranged into regions
28833 * ToolBar.cs: Fixed attribute
28834 * StatusBar.cs: Fixed signature, organized into regions and added
28836 * StatusBarPanel.cs: Fixed attributes
28837 * ContentsResizedEventArgs.cs: Implemented
28838 * ContentsResizedEventHandler.cs: Implemented
28839 * DateBoldEventArgs.cs: Implemented
28840 * DateBoldEventHandler.cs: Implemented
28841 * UpDownEventArgs.cs: Implemented
28842 * UpDownEventHandler.cs: Implemented
28844 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
28846 * Form.cs: first Menu NC refactoring
28847 * MenuAPI.cs: first Menu NC refactoring
28849 2005-02-16 Peter Bartok <pbartok@novell.com>
28851 * ImeMode.cs: Added missing attributes
28852 * Menu.cs: Fixed attribute
28853 * GroupBox.cs: Fixed attribute
28854 * Label.cs: Fixed attribute
28855 * ColorDialog.cs (RunDialog): Removed TODO attribute
28856 * ComboBox.cs: Fixed attributes
28857 * ListControl.cs: Added missing attributes
28858 * PropertyGrid.cs: Fixed attributes
28859 * Control.cs: Fixed attributes
28860 * ListViewItem.cs: Added TypeConverter attribute
28861 * NotifyIcon.cs: Fixed attributes
28862 * ListView.cs: Fixed attributes
28863 * ButtonBase.cs: Fixed attribute
28864 * ImageList.cs: Added missing attributes
28865 * ContainerControl.cs: Fixed signature
28866 * CheckedListBox.cs: Fixed attribute; added missing attributes
28867 * Panel.cs: Fixed attributes
28868 * PropertyTabChangedEventArgs.cs: Added missing attribute
28869 * PropertyValueChangedEventArgs.cs: Added missing attribute
28870 * Binding.cs: Fixed attribute
28871 * ListViewItemConverter: Implemented ListViewSubItemConverter class
28872 * ListBox.cs: Fixed attribute; added missing attributes;
28873 * ScrollableControl.cs: Added missing attributes
28874 * PictureBox.cs: Added missing attributes; implemented missing property
28875 * DateTimePicker.cs: Added missing attributes
28876 * Theme.cs (ToolWindowCaptionHeight): Fixed type
28877 * MonthCalendar.cs: Fixed attributes
28878 * StatusBarPanel.cs: Added missing attributes
28879 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
28881 2005-02-16 Peter Bartok <pbartok@novell.com>
28883 * TextBoxBase.cs: The previous method to enforce height yet remember
28884 the requested high was less than ideal, this is an attempt to do
28886 * Control.cs: Added comment about possible problem
28887 * Copyright: Updated format
28888 * GridItemType.cs: Fixed swapped values
28890 2005-02-15 Jackson Harper <jackson@ximian.com>
28892 * BaseCollection.cs: Use property so we never access an
28893 uninitialized list. Also initialize the list in the property.
28895 2005-02-15 Peter Bartok <pbartok@novell.com>
28897 * GroupBox.cs (ProcessMnemonic): Implemented
28898 * Label.cs (ProcessMnemonic): Implemented
28899 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
28902 2005-02-15 Peter Bartok <pbartok@novell.com>
28904 * RadioButton.cs (ProcessMnemonic): Implemented
28905 * CheckBox.cs (ProcessMnemonic): Implemented
28907 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
28909 - Added internal method to allow calling ProcessMnemonic from other
28911 * ContainerControl.cs:
28912 - Started support for handling validation chain handling
28913 - Implemented ProcessMnemonic support
28914 - Added Select() call to Active, to make sure the active control
28916 * Form.cs: Setting toplevel flag for Forms (this was lost in the
28917 FormParent rewrite)
28918 * ThemeWin32Classic.cs:
28919 - DrawCheckBox(): Fixed stringformat to show hotkeys
28920 - DrawRadioButton(): Fixed stringformat to show hotkeys
28921 * CommonDialog.cs: Removed WndProc override, not needed
28923 2005-02-14 Peter Bartok <pbartok@novell.com>
28925 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
28926 missed those in the rewrite
28928 2005-02-14 Miguel de Icaza <miguel@novell.com>
28930 * NumericUpDown.cs (Increment, ToString): Add.
28931 (DecimalPlaces): implement.
28935 * UpDownBase.cs: Add the designer attributes.
28937 2005-02-13 Peter Bartok <pbartok@novell.com>
28939 * Panel.cs: Removed border_style, now in Control
28940 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
28941 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
28943 2005-02-13 Peter Bartok <pbartok@novell.com>
28945 * MouseButtons.cs: Added missing attributes
28946 * XplatUIStructs.cs: Added enumeration for title styles
28947 * LeftRightAlignment.cs: Added missing attributes
28948 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
28949 it compatible with Graphics.FromHwnd()
28950 * SelectedGridItemChangedEventArgs.cs: Fixed property type
28951 * Keys.cs: Added missing attributes
28952 * SelectionRange.cs: Added missing attributes
28953 * SelectionRangeConverter.cs: Added
28955 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
28956 ReleaseMenuDC methods
28957 - Renamed ReleaseWindow to UngrabWindow
28958 - Added proper startup notice to allow version identification
28960 - Added missing attributes
28961 - Removed FormParent concept
28962 * Label.cs: Removed border_style field, now in Control
28963 * RadioButton.cs: Now properly selects RadioButton when focus is
28965 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
28967 - Added missing attributes
28968 - Added borderstyle handling
28969 - Removed FormParent concept support
28970 - Fixed calls to XplatUI to match changed APIs
28971 - Fixed bug that would case us to use disposed Graphics objects
28972 - Removed unneeded internal methods
28973 - PerformLayout(): Fixed to handle DockStyle.Fill properly
28974 - SelectNextControl(): Fixed to properly check common parents
28975 * TextBoxBase.cs: Removed border_style field (now in Control)
28977 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
28978 fixed calculations for form size
28979 - Added support for localized strings and icons
28980 - Improved form size calculations, added border
28981 * ListView.cs: Removed border_style field (now in Control)
28982 * X11Structs.cs: Moved several structs from X11 driver here
28983 * X11Keyboard.cs: Changed debug message
28984 * Application.cs: Removed FormParent concept support
28986 - Resetting end_modal flag
28987 - Removed FormParent concept support
28988 * NativeWindow.cs: Removed FormParent concept support
28989 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
28990 Client area and Non-Client whole window to allow support for WM_NC
28992 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
28993 prevent using it until it supports Hwnd as per Geoff Norton's request
28994 * ToolBar.cs: Fixed drawing, was not doing proper drawing
28995 * PictureBox.cs: Removed border_style field, now in Control
28996 * XplatUIWin32.cs: Added new driver methods
28998 2005-02-12 Peter Bartok <pbartok@novell.com>
29000 * OpacityConverter.cs: Implemented
29001 * Hwnd.cs: Internal class to support drivers that need to emulate
29002 client area/non-client area window behaviour
29004 2005-02-11 Peter Bartok <pbartok@novell.com>
29006 * KeysConverter.cs: Implemented
29008 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
29010 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
29011 * LinkLabel: Added missing attributes
29012 * MainMenu.cs: fixes ToString
29013 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
29014 * ListBox.cs: fixes event position
29015 * TrackBar.cs: adds missing attributes and events
29017 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
29019 * MenuItem.cs: Use SystemInformation and bug fixes
29020 * MenuAPI.cs: Use SystemInformation and bug fixes
29022 2005-02-09 Jackson Harper <jackson@ximian.com>
29024 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
29025 their keystate otherwise things like VK_MENU get stuck "on".
29027 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
29029 * ListBox.cs: Fixes AddRange bug
29031 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
29034 - Add missing attributes
29035 - Add missing method
29037 * CheckedListBox.cs: Added missing attributes
29038 - Add missing attributes
29039 - Remove extra method
29041 * ComboBox.cs: Added missing attributes
29042 * VScrollBar.cs: Added missing attributes
29043 * ScrollBar.cs: Added missing attributes
29044 * ListBox.cs: Fixes signature, add missing consts
29045 * LinkArea.cs: Added missing attributes
29048 2005-02-08 Peter Bartok <pbartok@novell.com>
29050 * Menu.cs: Added missing attributes
29051 * MainMenu.cs: Added missing attributes
29052 * GroupBox.cs: Added missing attributes
29053 * Label.cs: Added missing attributes
29054 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
29056 - Added Instance and Options properties
29057 - Added missing attributes
29058 * Cursor.cs: Made Serializable
29059 * NotifyIcon: Added missing attributes
29060 * MenuItem.cs: Added missing attributes
29061 * TextBoxBase.cs: Implemented AppendText() and Select() methods
29062 * Panel.cs: Added Missing attributes
29063 * MonthCalendar.cs: Fixed CreateParams
29065 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
29069 - Fixes issues with links
29070 - Adds the class attributes
29072 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
29075 - Fixes button when no items available in dropdown
29076 - Fixes repainting problems
29077 - Adds the class attributes
29079 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29081 * XplatUIOSX.cs: Detect the menu bar and title bar height from
29082 the current theme. Cache these on startup.
29084 2005-02-07 Jackson Harper <jackson@ximian.com>
29086 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
29087 the scrollbar buttons when they are depressed.
29089 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29091 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
29092 Get the display size from the main displayid. We currently dont
29093 support multiple display configurations.
29095 2005-02-07 Geoff Norton <gnorton@customerdna.com>
29097 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
29099 2005-02-07 Miguel de Icaza <miguel@novell.com>
29101 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
29103 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
29105 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
29107 2005-02-04 Jackson Harper <jackson@ximian.com>
29109 * ThemeWin32Classic.cs: Respect the clipping rect when
29110 drawing. Only fill the intersection of clips and rects so there
29111 isn't a lot of large fills.
29112 * ScrollBar.cs: Pass the correct clipping rect to the theme
29113 engine. Remove some debug code.
29115 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
29117 * DateTimePicker.cs:
29118 - Fixed crash on DateTime.Parse, use Constructor instead
29120 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
29124 - Owner draw support (MeasureItem and DrawItem)
29126 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
29129 - Implements FindMergePosition and MergeMenu functions (very poor documented)
29130 - Fixes MenuItems.Add range
29132 - MergeMenu and Clone and CloneMenu functions
29134 2005-02-03 Jackson Harper <jackson@ximian.com>
29136 * ScrollBar.cs: Make abstract
29137 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
29140 2005-02-03 Jackson Harper <jackson@ximian.com>
29142 * ScrollBar.cs: First part of my scrollbar fixups. This removes
29143 all the unneeded refreshes and uses invalidates with properly
29146 2005-02-03 Peter Bartok <pbartok@novell.com>
29148 * ComponentModel.cs: Added
29149 * IDataGridEditingService.cs: Added
29150 * Timer.cs: Added missing attributes
29151 * ToolTip.cs: Added missing attributes
29153 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
29155 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
29157 2005-02-03 Peter Bartok <pbartok@novell.com>
29159 * ListBox.cs: Added missing attributes
29161 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
29164 - Fixes font height after font change
29165 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
29167 2005-02-02 Peter Bartok <pbartok@novell.com>
29169 * HandleData.cs: Introduced static methods to allow class
29170 to be more self-contained and track it's own HandleData objects
29171 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
29172 HandleData to use new static methods
29174 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
29177 - Fixes default size and PreferredHeight
29179 - ObjectCollection.Insert implementation
29185 - ObjectCollection.Insert implementation
29186 - No selection after clean
29189 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
29191 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
29193 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
29196 - Caches ItemHeight calculation for OwnerDrawVariable
29197 - Handles dropdown properly
29198 - Fixes several minor bugs
29200 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
29203 - Fixes 71946 and 71950
29204 - Fixes changing Multicolumn on the fly
29205 - Fixes keyboard navigation on Multicolumn listboxes
29207 2005-01-31 Geoff Norton <gnorton@customerdna.com>
29209 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
29210 crash reporter log.
29212 2005-01-31 Geoff Norton <gnorton@customerdna.com>
29214 * XplatUIOSX.cs: Allow applications to actually exit.
29216 2005-01-31 Geoff Norton <gnorton@customerdna.com>
29218 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
29219 their parent at creation time rather than lazily later. Fixes a major
29220 regression we were experiencing.
29222 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
29224 * ThemeWin32Classic.cs: more date time picker painting fixes
29225 * DateTimePicker.cs: more monthcalendar drop down fixes
29226 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
29228 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
29231 - When moving the thumb going outside the control should stop the moving
29232 - Adds the firing of missing events
29233 - Fixes no button show if Size is not specified
29234 - End / Home keys for keyboard navigation
29236 2005-01-30 Peter Bartok <pbartok@novell.com>
29238 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
29239 sanity check to prevent theoretical loop
29240 * XplatUIWin32.cs (SetVisible): Removed debug output
29241 * XplatUIX11.cs (SystrayChange): Added sanity check
29242 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
29243 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
29244 behaviour, valid until the X11 client window rewrite is done
29245 * TextBox.cs (ctor): Setting proper default foreground and background
29248 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
29250 * Theme: Added DrawDateTimePicker to interface
29251 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
29252 * DateTimePicker.cs: Created (still needs keys and painting code)
29253 * DateTimePickerFormat.cs: added
29254 * MonthCalendar.cs: fixed CreateParams for popup window mode
29256 2005-01-29 Peter Bartok <pbartok@novell.com>
29258 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
29259 this should also the calculations for ligher/darker
29260 * Theme.cs: Fixed defaults for ScrollBar widths/heights
29262 2005-01-29 Peter Bartok <pbartok@novell.com>
29264 * ArrangeDirection.cs: Added
29265 * ArrangeStartingPositon.cs: Added
29266 * SystemInformation.cs: Implemented
29267 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29268 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
29269 used by SystemInformation class
29270 * X11Strucs.cs: Added XSizeHints structure
29272 - Fixed CreateParams to make sure the menu window is always visible
29273 - TrackPopupMenu: Added check to make sure we don't draw the
29276 2005-01-29 Peter Bartok <pbartok@novell.com>
29278 * HandleData.cs: Added method for altering invalid area
29279 * TextBoxBase.cs: Implemented TextLength
29281 2005-01-28 Peter Bartok <pbartok@novell.com>
29283 * XplatUIX11.cs: Improvement over last patch, not sending
29284 the WM_PAINT directly anymore, instead we scroll any pending
29285 exposed areas and let the system pick out the WM_PAINT later
29287 2005-01-28 Peter Bartok <pbartok@novell.com>
29289 * SWF.csproj: Deleted, no longer used. Instead,
29290 Managed.Windows.Forms/SWF.csproj should be used
29291 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
29292 directly, to avoid a potential race condition with the next
29295 2005-01-28 Peter Bartok <pbartok@novell.com>
29297 * XplatUI.cs: Made class internal
29299 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
29301 * CheckedListBox.cs:
29304 - Missing methods and events
29306 2005-01-27 Peter Bartok <pbartok@novell.com>
29308 * Application.cs (Run): Don't use form if we don't have one
29310 2005-01-27 Peter Bartok <pbartok@novell.com>
29312 * TextBoxBase.cs (get_Lines): Fixed index off by one error
29314 2005-01-27 Peter Bartok <pbartok@novell.com>
29316 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
29317 * GridItem.cs: Added; Patch by Jonathan S. Chambers
29318 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
29319 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
29320 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
29321 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
29322 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29323 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
29324 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29325 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29326 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29327 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
29329 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
29332 - Draw focus on Simple Combobox
29333 - Fixes drawing issues
29336 2005-01-27 Peter Bartok <pbartok@novell.com>
29339 - Place window in default location, instead of hardcoded 0/0
29340 - Send initial LocationChanged event
29342 - UpdateBounds after creation to find out where the WM placed us
29343 - Make sure that if the ParentForm changes location the Form
29345 * XplatUIX11.cs: XGetGeometry will not return the coords relative
29346 to the root, but to whatever the WM placed around us.
29347 Translate to root coordinates before returning toplevel
29349 * XplatUIWin32.cs: Removed debug output
29350 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
29351 flag to GetWindowPos, to allow translation of coordinates on X11
29353 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
29355 * ListBox.cs: connect LostFocus Event
29357 2005-01-27 Peter Bartok <pbartok@novell.com>
29359 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
29360 XplatUIX11.cs: Extended the Systray API
29361 * Form.cs: Removed debug output
29362 * Application.cs: Fixed focus assignment, always need to call
29363 XplatUI.Activate() since Form.Activate() has rules that may
29365 * NotifyIcon.cs: Should be complete now
29366 * ToolTip.cs: Worked around possible timer bug
29368 2005-01-27 Jackson Harper <jackson@ximian.com>
29371 - Only invalidate the effected tabs when the
29372 selected index changes. This reduces drawing and gets rid of some
29374 - Only refresh if the tabs need to be shifted, otherwise only
29375 invalidate the slider button.
29376 - On windows the tabs are not filled to right if the slider is
29379 2005-01-27 Jackson Harper <jackson@ximian.com>
29381 * TabControl.cs: Only refresh on mouseup if we are showing the
29382 slider. Also only invalidate the button whose state has changed.
29384 2005-01-26 Peter Bartok <pbartok@novell.com>
29386 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
29387 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
29388 and SystrayRemove() methods
29389 * XplatUIOSX.cs: Stubbed Systray methods
29391 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
29393 - Fixed broken XChangeProperty calls (marshalling messed up things)
29394 * X11Structs.cs: Added enums and structs required for Size hinting
29395 * NotifyIcon.cs: Added & implemented
29397 2005-01-26 Jackson Harper <jackson@ximian.com>
29399 * TabControl.cs: Space vertically layed out tabs properly.
29401 2005-01-26 Peter Bartok <pbartok@novell.com>
29403 * Form.cs (CreateClientParams): Always set the location to 0,0
29404 since we're a child window.
29406 * Control.cs (SetVisibleCore): Always explicitly setting the location
29407 of a toplevel window, apparently X11 doesn't like to move windows
29408 while they're not mapped.
29410 2005-01-26 Jackson Harper <jackson@ximian.com>
29412 * TabControl.cs: Implement FillToRight size mode with vertically
29415 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
29417 * ControlPaint.cs, ThemeWin32Classic.cs
29418 - Fixes DrawFocusRectangle
29420 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
29423 - MenuBar tracking only starts when item is first clicked
29424 - Fixes menu hidding for multiple subitems
29425 - Unselect item in MenuBar when item Executed
29428 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
29431 - IsInputKey for ListBox
29434 - Shift and Control item selection
29435 - Implement SelectionMode.MultiExtended
29436 - Fixes RightToLeft
29438 - IsInputKey implemented
29439 - Do not generate OnTextChangedEdit on internal txt changes
29441 2005-01-23 Peter Bartok <pbartok@novell.com>
29443 * AccessibleObject.cs: Partially implemented Select()
29444 * MonthCalendar.cs: Added missing attributes and events
29445 * Form.cs: Fixed CreateParams behaviour, now controls derived from
29446 form can properly override CreateParams.
29447 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29448 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
29449 Control performs Invalidate & Update
29450 * NativeWindow (CreateHandle): Added special handling for Form
29451 and Form.FormParent classes to allow overriding of From.CreateParams
29453 - ControlNativeWindow: Renamed 'control' variable to more intuitive
29455 - ControlNativeWindow: Added Owner property
29456 - Removed usage of Refresh() on property changes, changed into
29457 Invalidate(), we need to wait until the queue is processed for
29458 updates, direct calls might cause problems if not all vars for
29459 Paint are initialized
29460 - Added call to UpdateStyles() when creating the window, to set any
29461 styles that CreateWindow might have ignored.
29462 - Added support for Form CreateParent overrides to UpdateStyles()
29463 * MessageBox.cs: Removed no longer needed FormParent override stuff,
29464 CreateParams are now properly overridable
29465 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
29466 CreateParams are now properly overridable
29468 2005-01-23 Miguel de Icaza <miguel@ximian.com>
29470 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
29473 Capture LostFocus and OnTextBoxChanged. The later introduces a
29474 recursive invocation that I have not figured out yet.
29476 Reset the timer when not using (it was accumulating).
29479 (OnTextBoxChanged): Set UserEdit to true here to track whether the
29480 user has made changes that require validation.
29482 Reset changing to avoid loops.
29484 2005-01-22 Miguel de Icaza <miguel@ximian.com>
29486 * NumericUpDown.cs: Display value at startup.
29488 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
29491 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
29492 filled in. Added some basic parsing of text.
29494 Still missing the OnXXX method overrides, and figuring out the
29495 events that must be emitted.
29497 * UpDownBase.cs: Handle UserEdit on the Text property.
29499 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
29502 - Fixes IntegralHeight
29505 2005-01-21 Jackson Harper <jackson@ximian.com>
29507 * TabControl.cs: Set the SelectedIndex property when SelectedTab
29508 is set so that the page visibility is updated and the tabs are
29511 2005-01-21 Jackson Harper <jackson@ximian.com>
29513 * TabControl.cs: Use cliping rectangle for blitting. Give the
29514 theme the clipping rect so we can do clipping while
29515 drawing. Remove some debug code.
29517 2005-01-21 Jackson Harper <jackson@ximian.com>
29519 * TabPage.cs: Add a new method so tab pages can force the tab
29520 control to recalculate the tab page sizes.
29521 * TabControl.cs: UpdateOwner needs to make the tab control recalc
29524 2005-01-20 Jackson Harper <jackson@ximian.com>
29526 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
29528 2005-01-20 Jackson Harper <jackson@ximian.com>
29530 * TreeView.cs: Set the bounds for nodes properly. They were
29531 getting screwed up when checkboxes were not enabled, but images
29534 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
29537 - Owner draw support
29540 2005-01-20 Jackson Harper <jackson@ximian.com>
29542 * XplatUIStructs.cs: More misc keys
29543 * X11Keyboard.cs: Ignore some control keys.
29545 2005-01-20 Jackson Harper <jackson@ximian.com>
29547 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
29548 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
29550 2005-01-19 Peter Bartok <pbartok@novell.com>
29552 * Control.cs: Un-selecting the control when it is loosing focus
29554 2005-01-19 Jackson Harper <jackson@ximian.com>
29556 * TreeView.cs: Hook up to the text controls leave event so we can
29557 end editing when the users clicks outside the text box.
29559 2005-01-19 Jackson Harper <jackson@ximian.com>
29561 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
29562 get set in the conversion array.
29564 2005-01-19 Peter Bartok <pbartok@novell.com>
29566 * Application.cs (ModalRun): Added a call to CreateControl to ensure
29567 focus is properly set
29569 - Added missing attributes
29570 - removed styles, those are already set in the base class
29572 - Added missing attributes
29573 - Added clip window styles
29574 * CheckBox.cs: Added missing attributes
29576 - FormParentWindow.CreateParams: Added required clip styles
29577 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
29578 also filters modifier keys
29580 - Added assignment of Accept and Cancel button to enable Enter
29581 and Esc keys in MessageBox dialogs
29582 - FormParentWindow.CreateParams: Added required clip styles
29583 * RadioButton.cs: Added missing attributes
29584 * TextControl.cs: No longer draws selection if control does not
29587 - Now draws simple rectangle around test area to make it obvious
29588 there's a control. This is a hack until we properly support borders
29589 - A few simple fixes to support selections better, now erases selected
29590 text when typing, and resets selection when using movement keys
29592 2005-01-19 Miguel de Icaza <miguel@ximian.com>
29594 * UpDownBase.cs: Added some new properties.
29596 * DomainUpDown.cs: Implement a lot to get my test working.
29598 2005-01-19 Geoff Norton <gnorton@customerdna.com>
29600 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
29602 2005-01-19 Geoff Norton <gnorton@customerdna.com>
29604 * OSXStructs (WindowAttributes): Fixed csc complaints
29606 2005-01-19 Geoff Norton <gnorton@customerdna.com>
29609 OSXStructs.cs: Initial refactor to move enums and consts into
29610 OSXStructs and use them in the driver for greater readability.
29612 2005-01-19 Geoff Norton <gnorton@customerdna.com>
29614 * XplatUIOSX.cs: Initial support for Standard Cursors.
29615 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
29617 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
29619 * ComboBox.cs: ability to change style when the ctrl is already
29620 created, missing methods and events, bug fixes, signature fixes
29622 2005-01-19 Peter Bartok <pbartok@novell.com>
29624 * Cursors.cs (ctor): Added ctor to fix signature
29626 2005-01-18 Peter Bartok <pbartok@novell.com>
29628 * Button.cs: Implemented DoubleClick event
29630 - Fixed keyboard handling to behave like MS, where the press of
29631 Spacebar is equivalent to a mousedown, and the key release is
29632 equivalent to mouseup. Now a spacebar push will give the same
29633 visual feedback like a mouse click.
29634 - Added missing attributes
29635 - Added ImeModeChanged event
29636 - Added support for generating DoubleClick event for derived classes
29638 - Implemented DoubleClick event
29639 - Added missing attributes
29640 * CommonDialog.cs: Added missing attribute
29641 * ContextMenu.cs: Added missing attributes
29643 - AutoChecked buttons do not allow to be unselected when clicked
29644 (otherwise we might end up with no selected buttons in a group)
29645 - Added missing attributes
29646 - Implemented DoubleClickEvent
29647 * ThreadExceptionDialog.cs: Enabled TextBox code
29649 2005-01-18 Peter Bartok <pbartok@novell.com>
29651 * Form.cs: Removed debug output
29652 * Button.cs: Added support for DoubleClick method
29654 2005-01-18 Peter Bartok <pbartok@novell.com>
29657 - Added method to parent window that allows triggering size
29658 calculations when a menu is added/removed
29659 - set_Menu: Cleaned up mess from early days of Form and Control,
29660 now properly triggers a recalc when a menu is added/removed
29661 - Added case to select form itself as focused form if no child
29663 - Added PerformLayout call when showing dialog, to ensure properly
29666 - Select(): Made internal so Form can access it
29667 - Focus(): Only call Xplat layer if required (avoids loop), and sets
29669 * Application.cs (Run): Removed hack and calls PerformLayout instead
29670 to trigger calculation when Form becomes visible
29672 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
29674 * ComboBox.cs: fixes for ownerdraw
29676 2005-01-18 Peter Bartok <pbartok@novell.com>
29679 - Sentinel is no longer static, each Document gets it's own, this
29680 avoids locking or alternatively overwrite problems when more
29681 than one text control is used simultaneously.
29682 - Switched to use Hilight and HilightText brushes for text selection
29684 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
29686 2005-01-18 Peter Bartok <pbartok@novell.com>
29689 - Hooked up the following events:
29697 o SystemColorsChanged
29698 o ParentFontChanged
29700 - Removed debug output
29701 - Added a call to the current theme's ResetDefaults when a color change
29703 * Form.cs: Now setting the proper ImeMode
29704 * Theme.cs: Defined a method to force recreation of cached resources
29705 and rereading of system defaults (ResetDefaults())
29706 * ThemeWin32Classic.cs: Added ResetDefaults() stub
29708 2005-01-17 Peter Bartok <pbartok@novell.com>
29710 * Control.cs: Added missing attributes
29712 2005-01-17 Jackson Harper <jackson@ximian.com>
29714 * TreeNode.cs: Implement editing. Add missing properties selected
29716 * TreeView.cs: Implement node editing. Also some fixes to use
29717 Invalidate (invalid area) instead of Refresh when selecting.
29719 2005-01-17 Peter Bartok <pbartok@novell.com>
29722 - Implemented InvokeGotFocus() method
29723 - Implemented InvokeLostFocus() method
29724 - Implemented InvokePaint() method
29725 - Implemented InvokePaintBackground() method
29726 - Implemented InvokeClick() method
29727 - Implemented FindForm() method
29728 - Implemented RectangleToClient() method
29729 - Implemented ClientToRectangle() method
29730 - Implemented ResetBackColor() method
29731 - Implemented ResetCursor() method
29732 - Implemented ResetFont() method
29733 - Implemented ResteForeColor() method
29734 - Implemented ResetImeMode() method
29735 - Implemented ResetLeftToRight() method
29736 - Implemented ResetText() method
29737 - Implemented Scale() methods
29738 - Implemented ScaleCore() method
29739 - Implemented Update() method
29740 - Removed unused variables
29741 - Stubbed AccessibilityNotifyClients and
29742 ControlAccessibleObject.NotifyClients() methods (dunno what to do
29744 - Now setting proper default for RightToLeft property
29745 - Fixed bug in SetClientSizeCore that would cause windows to get
29747 - Now sending Click/DoubleClick events
29748 - Now selecting controls when left mouse button is clicked on
29750 * AccessibleEvents.cs: Added
29751 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
29752 * XplatUIOSX.cs: Stubbed UpdateWindow() method
29753 * XplatUIWin32.cs: Implemented UpdateWindow() method
29754 * XplatUIX11.cs: Implemented UpdateWindow() method
29755 * Form.cs: Removed stray semicolon causing CS0162 warning
29756 * ThemeWin32Classic.cs: Fixed unused variable warnings
29757 * ScrollableControl.cs: Now calls base method for ScaleCore
29758 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
29759 style to avoid interference with internal click handler (which is
29760 different than standard Control click handling)
29762 - Now unchecks all sibling radio buttons when control is
29763 selected (Fixes #68756)
29764 - Removed internal tabstop variable, using the one inherited from
29767 2005-01-17 Jackson Harper <jackson@ximian.com>
29769 * NavigateEventArgs.cs: Fix base type.
29770 * LinkLabel.cs: Sig fix
29772 2005-01-17 Jackson Harper <jackson@ximian.com>
29774 * TreeView.cs: Only invalidate the effected nodes bounds when
29777 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
29779 * XplatUIWin32.cs: fixes Win32 marshaling
29780 * XplatUIX11.cs: fixes method signature
29782 2005-01-17 Peter Bartok <pbartok@novell.com>
29784 * XplatUIX11.cs: Clean up resources when we no longer need them
29786 2005-01-17 Peter Bartok <pbartok@novell.com>
29788 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
29789 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
29790 and DestroyCursor() methods.
29791 * Cursor.cs: Partially implemented, now supports standard cursors;
29792 still contains some debug code
29793 * Cursors.cs: Implemented class
29795 - WndProc(): Added handling of WM_SETCURSOR message, setting the
29797 - Implemented Cursor property
29798 - Replaced break; with return; more straightforwar and possibly
29800 - Now properly setting the result for WM_HELP
29801 * X11Structs.cs: Added CursorFontShape enum
29802 * XplatUIStructs.cs:
29803 - Added StdCursor enum (to support DefineStdCursor() method)
29804 - Added HitTest enum (to support sending WM_SETCURSOR message)
29806 - Now sends the WM_SETCURSOR message
29807 - Implemented new cursor methods
29808 * XplatUIOSX.cs: Stubbed new cursor methods
29810 - Implemented new cursor methods
29811 - Added GetSystemMetrics function and associated enumeration
29813 2005-01-15 Peter Bartok <pbartok@novell.com>
29816 - WndProc(): Now handles EnableNotifyMessage
29817 - SelectNextControl(): Fixed bug where if no child or sibling
29818 controls exist we looped endlessly
29820 2005-01-14 Jackson Harper <jackson@ximian.com>
29822 * TreeView.cs: Recalculate the tab pages when a new one is added
29823 so that the proper bounding rects are created.
29825 2005-01-14 Jackson Harper <jackson@ximian.com>
29827 * TreeView.cs: Draw a gray box instead of a grip in the lower
29828 right hand corner when there are both horizontal and vertical
29831 2005-01-14 Jackson Harper <jackson@ximian.com>
29833 * Control.cs: When erasing backgrounds use FromHwnd instead of
29834 FromHdc when there is a NULL wparam. This occurs on the X driver.
29835 * XplatUIX11.cs: Set the wparam to NULL.
29837 2005-01-13 Jackson Harper <jackson@ximian.com>
29839 * PictureBox.cs: Implement missing methods (except ToString, need
29840 to test that on windows) and events. When visibility is changed we
29841 need to redraw the image because the buffers are killed. When size
29842 is changed refresh if the sizemode needs it.
29844 2005-01-13 Peter Bartok <pbartok@novell.com>
29846 * Control.cs (SelectNextControl): Was using wrong method to select
29849 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
29851 * ComboBox.cs: fixes dropstyle
29853 2005-01-13 Peter Bartok <pbartok@novell.com>
29856 - Implemented Select() override
29857 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
29858 - Now sets keyboard focus on startup
29859 * Control.cs (SelectNextControl): Now properly handles directed=true
29861 - WndProc: Now passes tab key on to base if AcceptTabChar=false
29862 - Added (really bad) focus rectangle (mostly for testing)
29863 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
29864 to enforce redraw on focus changes
29865 * ContainerControl.cs:
29866 - Fixed detection of Shift-Tab key presses
29867 - Fixed traversal with arrow keys
29868 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
29869 gonna keep this or if it's complete yet
29871 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
29873 * ComboBox.cs: missing properties, fixes
29875 2005-01-13 Peter Bartok <pbartok@novell.com>
29877 * Panel.cs (ctor): Setting Selectable window style to off
29878 * Splitter.cs (ctor): Setting Selectable window style to off
29879 * GroupBox.cs (ctor): Setting Selectable window style to off
29880 * Label.cs (ctor): Setting Selectable window style to off
29882 2005-01-12 Miguel de Icaza <miguel@ximian.com>
29884 * UpDownBase.cs (InitTimer): If the timer has been already
29885 created, enable it.
29887 Use a TextBox instead of a Label.
29889 2005-01-12 Jackson Harper <jackson@ximian.com>
29891 * TreeView.cs: Refresh the tree after sorting the nodes. Always
29892 draw the connecting node lines (when ShowLines is true).
29893 * TreeNode.cs: The nodes index can now be updated. This is used
29894 when a node collection is sorted.
29895 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
29896 insert or an existing unsorted node collection can be sorted.
29898 2005-01-12 Peter Bartok <pbartok@novell.com>
29900 * ContainerControl.cs: Implemented ProcessDialogKeys()
29902 2005-01-12 Peter Bartok <pbartok@novell.com>
29905 - Implemented SelectNextControl() method
29906 - Several focus related bug fixes
29907 - Fixed Docking calculations to match MS documentation and
29910 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
29912 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
29915 2005-01-12 Peter Bartok <pbartok@novell.com>
29918 - Fixed broken Contains() method
29919 - Implemented GetNextControl() method. Finally. This is the pre-
29920 requisite for focus handling.
29922 2005-01-12 Peter Bartok <pbartok@novell.com>
29924 * OSXStrucs.cs: Added
29926 2005-01-12 Peter Bartok <pbartok@novell.com>
29929 - Removed PeekMessageFlags
29930 - Implemented SetWindowStyle() method
29931 * XplatUIStructs.cs: Added PeekMessageFlags
29932 * X11Structs: Added missing border_width field to XWindowChanges struct
29934 - PeekMessage: Now throws exception if flags which are not yet
29935 supported are passed
29936 - Implemented SetWindowStyle() method
29937 - Fixed SetZOrder to handle AfterHwnd properly
29938 * XplatUI.cs: Added SetWindowStyle() method
29939 * XplatUIDriver.cs: Added SetWindowStyle() abstract
29941 - Implemented UpdateStyles() method
29942 - Implemented UpdateZOrder() method
29943 * XplatUIOSX.cs: Added SetWindowStyle() stub
29945 2005-01-12 Geoff Norton <gnorton@customerdna.com>
29947 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
29951 2005-01-11 Jackson Harper <jackson@ximian.com>
29953 * TreeView.cs: Still need to draw lines to siblings even if out of
29954 the current node is out of the clip.
29956 2005-01-11 Jackson Harper <jackson@ximian.com>
29958 * TreeView.cs: When setting the hbar/vbar/grip position use
29959 SetBounds so that perform layout is only called once. Also suspend
29960 and resume layout so layout is only done once for all controls.
29961 - Removed some debug fluff
29962 * SizeGrip.cs: Call base implmentation in overriding methods.
29963 - When visibility is changed the drawing buffers are killed so we
29966 2005-01-11 Jackson Harper <jackson@ximian.com>
29968 * TreeView.cs: Calculate the open node count while drawing. This
29969 saves us an entire tree traversal for every paint operation. Use
29970 a member var for the open node count so less vars are passed around.
29972 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
29974 * MonthCalendar.cs:
29975 - fixed selection to use mousemove, not mouse polling on timer
29976 * ThemeWin32Classic.cs
29977 - removed redundant unused variable "no_more_content"
29979 2005-01-11 Peter Bartok <pbartok@novell.com>
29981 * XplatUIX11.cs (DoEvents): Needs to return when no more events
29982 are pending, so it now calls PeekMessage instead of GetMessage;
29983 implemented a incomplete version of PeekMessage
29985 2005-01-11 Peter Bartok <pbartok@novell.com>
29987 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
29989 * TextBoxBase.cs: Added sending of TextChanged event
29991 2005-01-10 Jackson Harper <jackson@ximian.com>
29993 * TreeView.cs: Try not to draw outside the clipping rectangle on
29996 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
29998 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
30000 2005-01-10 Jackson Harper <jackson@ximian.com>
30003 - Implement fast scrolling. Now only the newly
30004 exposed nodes are drawn and the old image is moved using the
30005 XplatUI::ScrollWindow method.
30006 - Factor in height of nodes when calculating whether or not the
30007 node is in the clipping rect.
30009 2005-01-10 Jackson Harper <jackson@ximian.com>
30011 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
30013 2005-01-10 Peter Bartok <pbartok@novell.com>
30015 * Application.cs: Added temporary hack to resolve all our resize
30016 required issues on startup. This will get fixed properly at
30017 some point in the future
30019 2005-01-10 Jackson Harper <jackson@ximian.com>
30021 * SizeGrip.cs: New internal class that is used as a sizing
30022 grip control...hence the name.
30024 2005-01-10 Peter Bartok <pbartok@novell.com>
30026 * Control.cs: Implemented proper TabIndex handling, now assigning
30027 a tabindex when a control is added to a container
30028 * GroupBox.cs (ctor): Now sets the Container style bit, required
30029 for Control.GetNextControl()
30031 2005-01-09 Jackson Harper <jackson@ximian.com>
30033 * TextBoxBase.cs: Clear window when scrolling (fixes build).
30035 2005-01-09 Peter Bartok <pbartok@novell.com>
30037 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30038 XplatUIX11.cs: Added ability to control ScrollWindow expose and
30039 an overload for ScrollWindow to allow only scrolling a rectangle
30041 2005-01-09 Peter Bartok <pbartok@novell.com>
30044 - Implemented SetDesktopBounds method
30045 - Implemented SetDesktopLocation method
30047 2005-01-08 Jackson Harper <jackson@ximian.com>
30049 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
30050 the node count has changed, this removes to VScroll::Refresh calls
30053 2005-01-08 Geoff Norton <gnorton@customerdna.com>
30055 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
30057 2005-01-07 Jackson Harper <jackson@ximian.com>
30059 * TreeNode.cs: Just update the single node when it is
30060 checked. Don't refresh after toggling, the Expand/Collapse already
30062 * TreeView.cs: Respect clipping a little more when drawing. Try
30063 not to redraw things that don't need to be redrawn. Just hide the
30064 scrollbars when they are no longer needed instead of removing
30065 them, so they don't have to be created again and again.
30067 2005-01-07 Geoff Norton <gnorton@customerdna.com>
30069 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
30070 coordinates to window space to place the caret properly, FIXED.
30071 Implement GetWindowState & SetWindowState
30073 2005-01-06 Peter Bartok <pbartok@novell.com>
30076 - Implemented ClientSize property
30077 - Implemented DesktopBounds property
30078 - Implemented DesktopLocation property
30079 - Implemented IsRestrictedWindow property
30080 - Implemented Size property
30081 - Implemented TopLevel property
30082 - Implemented FormWindowState property
30084 - Implemented GetTopLevel() method
30085 - Implemented SetTopLevel() method
30086 * X11Structs.cs (Atom):
30087 - Added AnyPropertyType definition
30088 - Added MapState definiton and updated XWindowAttribute struct
30089 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
30090 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
30091 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
30093 - Implemented GetWindowState() and SetWindowState() methods
30094 - Fixed Win32GetWindowLong return type
30096 - Introduced central function for sending NET_WM messages
30097 - Implemented GetWindowState() and SetWindowState() methods
30098 * TextBoxBase.cs (set_Lines):
30099 - Now uses Foreground color for text added via Text property (Duh!)
30100 - Added code to remember programmatically requested size (fixes
30101 behaviour when Multiline is set after Size)
30102 - Added AutoSize logic
30104 2005-01-06 Jackson Harper <jackson@ximian.com>
30106 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
30108 2005-01-06 Jackson Harper <jackson@ximian.com>
30110 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
30111 set to less then 0.
30113 2005-01-06 Jackson Harper <jackson@ximian.com>
30115 * ScrollableControl.cs: Lazy init the scrollbars.
30117 2005-01-06 Jackson Harper <jackson@ximian.com>
30119 * Theme.cs: Speed up getting pens and solid brushes, by using
30120 their ARGB as a hash instead of tostring and not calling Contains.
30122 2005-01-06 Peter Bartok <pbartok@novell.com>
30125 - Implemented OnActivated and OnDeactivate event trigger
30126 - Implemented Activate() method
30127 - Fixed ShowDialog() to activate the form that was active before
30128 the dialog was shown
30130 - Added global active_window var that tracks the currently active
30132 - Now always grabs Property changes from the root window to always
30133 catch changes on the active window property
30134 - Added code to PropertyNotify handler to send Active/Inactive
30135 messages when state changes. This puts X11 and Win32 en par on
30136 WM_ACTIVATE notifications (except for double notifications when
30137 the user clicks away from our modal window to another one of our
30140 2005-01-05 Jackson Harper <jackson@ximian.com>
30142 * ImageList.cs: Implment ctor
30144 2005-01-05 Geoff Norton <gnorton@customerdna.com>
30146 * XplatUIOSX.cs: Implement Activate/SetTopmost
30148 2005-01-05 Geoff Norton <gnorton@customerdna.com>
30150 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
30152 2005-01-05 Geoff Norton <gnorton@customerdna.com>
30154 * XplatUIOSX.cs: Implement GetActive/SetFocus.
30156 2005-01-05 Peter Bartok <pbartok@novell.com>
30158 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
30159 XplatUIOSX.cs: Added GetActive method to return the currently
30160 active window for the application (or null, if none is active)
30162 - Implemented ActiveForm
30163 - Commented out owner assignment for modal dialogs (causes problems
30164 on Win32, since the owner will be disabled)
30165 - Reworked some Active/Focus handling (still incomplete)
30166 * CommonDialog.cs: Commented out owner assignment for modal dialogs
30167 (causes problems on Win32, since the owner will be disabled)
30168 * IWin32Window: Added ComVisible attribute
30170 2005-01-05 Peter Bartok <pbartok@novell.com>
30172 * ToolTip.cs (WndProc): Enable setting focus now that we have the
30173 required XplatUI functions.
30175 2005-01-05 Peter Bartok <pbartok@novell.com>
30177 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
30178 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
30179 to implement focus and activation handling; still incomplete and
30182 2005-01-04 Peter Bartok <pbartok@novell.com>
30184 * TextBoxBase.cs: Changed access level for Document property to
30185 match switch to internal for TextControl
30187 2005-01-04 Peter Bartok <pbartok@novell.com>
30189 * AccessibleObject: Added ComVisible attribute
30191 2005-01-04 Jackson Harper <jackson@ximian.com>
30193 * X11Keyboard.cs: Remove unneeded var.
30195 2005-01-04 Jackson Harper <jackson@ximian.com>
30197 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
30199 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
30200 ClientMessage. This makes apps exit cleanly (more often).
30202 2005-01-04 Jackson Harper <jackson@ximian.com>
30204 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
30205 handling focus, return correct colors and fonts,
30206 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
30207 handle selection, horizontal scrolling, and mouse interaction.
30209 2005-01-04 Peter Bartok <pbartok@novell.com>
30211 * ICommandExecutor.cs: Added
30212 * IDataGridColumnStyleEditingNotificationService.cs: Added
30213 * IFeatureSupport.cs: Added
30214 * IFileReaderService.cs: Added
30215 * IDataObject.cs: Added ComVisible attribute
30216 * AmbientProperties.cs: Added
30217 * BaseCollection.cs: Added missing attributes
30218 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
30219 * BaseCollection.cs: Added missing attributes
30220 * Binding.cs: Added TypeConverter attribute
30221 * BindingContext.cs: Added DefaultEvent attribute
30222 * BindingsCollection.cs: Added DefaultEvent attribute
30223 * Button.cs: Added DefaultValue attribute
30224 * DragEventArgs.cs: Added ComVisible attribute
30225 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
30226 * KeyEventArgs.cs: Added ComVisible attribute
30227 * KeyPressEventArgs.cs: Added ComVisible attribute
30228 * MouseEventArgs.cs: Added ComVisible attribute
30229 * NavigateEventArgs.cs: Added
30230 * NavigateEventHandler.cs: Added
30231 * FeatureSupport.cs: Added
30232 * OSFeature.cs: Added
30233 * Theme.cs: Added abstract Version property to support OSFeature
30234 * ThemeWin32Classic.cs: Added Version property to
30235 support OSFeature.Themes
30236 * ProgressBar.cs: Removed OnPaintBackground override, not required since
30237 the proper styles to avoid background drawing are set, also doesn't
30239 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
30240 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
30241 * ScrollEventArgs.cs: Added ComVisible attribute
30242 * SplitterEventArgs.cs: Added ComVisible attribute
30243 * AccessibleSelection.cs: Added Flags attribute
30244 * Appearance.cs: Added ComVisible attribute
30245 * Border3DSide.cs: Added ComVisible attribute
30246 * Border3DStyle.cs: Added ComVisible attribute
30247 * BorderStyle.cs: Added ComVisible attribute
30248 * DragAction.cs: Added ComVisible attribute
30249 * ErrorBlinkStyle.cs: Added
30250 * ScrollEventType.cs: Added ComVisible attribute
30251 * AnchorStyles.cs: Added Editor attribute
30252 * DockStyle.cs: Added Editor attribute
30253 * HorizontalAlignment.cs: Added ComVisible attribute
30254 * HelpEventArgs.cs: Added ComVisible attribute
30255 * PaintEventArgs.cs: Added IDisposable
30257 2005-01-04 Peter Bartok <pbartok@novell.com>
30259 * TextControl.cs: Switched Line, LineTag and Document classes to
30262 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
30264 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
30265 Simple mode, fixes, IntegralHeight, etc.
30267 2005-01-04 Peter Bartok <pbartok@novell.com>
30269 * TextBoxBase.cs: Using proper font variable now
30271 2005-01-04 Peter Bartok <pbartok@novell.com>
30273 * Form.cs (ShowDialog): Set parent to owner, if provided
30274 * GroupBox.cs: Removed unused vars
30276 - Added GetHashCode() for Document and LineTag classes
30277 - Removed unused variables
30278 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
30279 to allow translation between continuous char position and line/pos
30280 * CheckBox.cs: Removed vars that are provided by base class
30281 * RadioButton.cs: Removed vars that are provided by base class, added
30282 new keyword where required
30283 * LinkLabel.cs: Added new keyword where required
30284 * Control.cs (WndProc): Removed unused variable
30286 - Finished SelectionLength property
30287 - Implemented SelectionStart property
30288 - Implemented Text property
30289 - Removed unused vars
30290 * MessageBox.cs: Added new keyword where required
30291 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
30293 * MenuAPI.cs: Added new keyword where required
30294 * ButtonBase.cs: Removed vars that are provided by base class, added
30295 new keyword where required
30296 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
30297 argument to double, to allow compiling with csc 2.0 (Atsushi ran
30299 * Application.cs (Run): Now triggers the ThreadExit event
30300 * CommonDialog.cs: Added new keyword where required; now properly sets
30301 parent (owner) for dialog
30302 * XplatUIX11.cs: Commented out unused vars
30303 * StatusBar.cs: Fixed signature for Text property
30304 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
30306 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
30308 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
30309 TrackBar.cs, MonthCalendar.cs: remove unused vars
30311 2005-01-03 Jackson Harper <jackson@ximian.com>
30313 * ThemeWin32Classic.cs:
30314 * X11Keyboard.cs: Remove unused vars.
30316 2005-01-03 Peter Bartok <pbartok@novell.com>
30319 - set_Text: Tied into TextControl
30320 - set_TextAlignment: Tied into TextControl
30322 - Added alignment properties and implemented alignment handling
30323 and drawing (still has a bug, not generating proper expose events)
30324 - Added new Line() constructor to allow passing the line alignment
30325 - Fixed selection setting, properly handling end<start now
30326 - Added aligment considerations to RecalculateDocument()
30328 - Now properly enforces control height for single line controls
30329 - Added support for CharacterCasing
30330 - Added IsInputKey override
30331 - Fixed Keys.Enter logic
30332 - Added SetBoundsCore override
30333 - Fixed mouse selection handling
30335 2005-01-03 Jackson Harper <jackson@ximian.com>
30338 - Collapse and uncheck all nodes when CheckBoxes is disabled.
30339 - Checkboxes are always aligned to the bottom of the node,
30340 regardless of item height.
30341 - Use the node bounds to draw the text so we can center it when
30342 the item height is greater then the font height.
30343 - Node::Bounds are only the text part of the node.
30344 * TreeNode.cs: New method to combine collapsing and unchecking all
30347 2005-01-02 Jackson Harper <jackson@ximian.com>
30349 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
30350 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
30351 tree when a check is changed. TODO: Only refresh the checked node.
30353 2004-12-30 Jackson Harper <jackson@ximian.com>
30355 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
30356 * TreeNode.cs: When collapsing make sure to never collapse the
30359 2004-12-29 Jackson Harper <jackson@ximian.com>
30361 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
30363 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
30365 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
30367 2004-12-28 Peter Bartok <pbartok@novell.com>
30369 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
30372 2004-12-28 Peter Bartok <pbartok@novell.com>
30374 * Control.cs (WndProc): Added WM_HELP handler, now generates
30375 HelpRequested event
30376 * Form.cs: Added HelpButton property and required support code
30377 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
30379 2004-12-28 Peter Bartok <pbartok@novell.com>
30382 - Made DialogForm.owner variable internal
30383 - Added check to ensure owner form is set before setting
30384 owner properties in CreateParams
30386 2004-12-28 Geoff Norton <gnorton@customerdna.com>
30388 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
30389 swizzling. Implement ClientToScreen and ScreenToClient. Implement
30390 GetCursorPos. Fix major visibility issues. Rework the windowing
30391 system to support borderless/titleless windows (implements menus).
30392 Fix GetWindowPos. Implement initial background color support for
30395 2004-12-28 Peter Bartok <pbartok@novell.com>
30397 * Form.cs (get_CreateParams): Make sure we have an owner before using
30398 the owner variable. Implement proper default if no owner exists
30400 2004-12-28 Peter Bartok <pbartok@novell.com>
30402 * In preparation for making Managed.Windows.Forms the default build target
30403 for System.Windows.Forms, the following stubbed files were added.
30404 Dialogs are currently being implemented by contributors and are only
30405 short-term place holders.
30406 * ColorDialog.cs: Initial check-in (minmal stub)
30407 * DataGrid.cs: Initial check-in (minimal stub)
30408 * DataGridLineStyle.cs: Initial check-in (minimal stub)
30409 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
30410 * DataGridTableStyle.cs: Initial check-in (minimal stub)
30411 * FontDialog.cs: Initial check-in (minimal stub)
30412 * FileDialog.cs: Initial check-in (minimal stub)
30413 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
30414 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
30415 * OpenFileDialog: Initial check-in (minimal stub)
30416 * IComponentEditorPageSite.cs: Initial check-in
30417 * Splitter.cs: Initial check-in (for Jackson)
30418 * SplitterEventArgs.cs: Initial check-in (for Jackson)
30419 * SplitterEventHandler.cs: Initial check-in (for Jackson)
30420 * TextBox.cs: Initial check-in; still needs some wiring to
30421 TextControl backend
30422 * Form.cs: Implemented ControlBox property
30423 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
30424 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
30425 * TextControl.cs: Added selection functionality; added todo header
30427 - Implemented Lines property
30428 - Implemented TextHeight property
30429 - Implemented SelectedText property
30430 - Implemented SelectionLength property
30431 - Implemented SelectAll method
30432 - Implemented ToString method
30433 - Removed and cleaned up some debug code
30434 - Implemented (still buggy) mouse text selection
30436 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
30438 * ComboBox.cs: Complete DropDownList implementation, fixes.
30440 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
30442 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
30443 * ComboBoxStyle.cs: ComboBoxStyle enum
30444 * ComboBox.cs: Initial work on ComboBox control
30446 2004-12-21 Peter Bartok <pbartok@novell.com>
30448 * Control.cs (ctor, CreateParams): Moved setting of is_visible
30449 forward so that anything that creates a window gets the default,
30450 also no longer uses Visible property in CreateParams to avoid
30451 walking up the parent chain and possibly get the wrong visible
30452 status. Fixed IsVisible to no longer walk up to the parent.
30454 2004-12-21 Peter Bartok <pbartok@novell.com>
30456 * Form.cs (ShowDialog): Unset modality for the proper window
30458 2004-12-20 Peter Bartok <pbartok@novell.com>
30460 * CommonDialog.cs: Initial check-in
30462 2004-12-20 Peter Bartok <pbartok@novell.com>
30464 * Control.cs (Visible): Now uses the parent window instead of the
30465 client area window for the property
30468 - ShowDialog(): Now uses the proper window for modality
30469 - The default visibility state for the form parent is now false. This
30470 will prevent the user from seeing all the changes to the form and
30471 its controls before the application hits Application.Run()
30472 - Removed some stale commented out code
30475 - Added FindWindow() method to have a method to check for existence
30477 - Added ability to override default exception handling (for example
30478 when debugging with VS.Net; to do this the ExternalExceptionHandler
30480 - Removed some useless debug output
30483 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
30484 not working as expected
30485 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
30486 property to allow switching back to the modal window if focus is
30487 given to another one of our windows (Application Modal)
30488 - Now only sets override_redirect if we create a window
30490 - Moved EventMask selection before mapping of newly created window
30491 so we can catch the map event as well
30492 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
30493 - Added various Atom related DllImports
30494 - Implemented Exit() method
30495 - .ctor() : No longer shows window if WS_VISIBLE is not defined
30496 in the CreateParams
30498 * MessageBox.cs: Now properly deals with the FormParent window by
30499 providing an override the FormParent CreateParams property to
30500 set as POPUP instead of OVERLAPPED window.
30502 2004-12-19 Geoff Norton <gnorton@customerdna.com>
30504 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
30505 Minor code cleanup.
30507 2004-12-19 Geoff Norton <gnorton@customerdna.com>
30509 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
30511 2004-12-18 Peter Bartok <pbartok@novell.com>
30513 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
30514 implementing SetModal() method
30516 2004-12-18 Peter Bartok <pbartok@novell.com>
30518 * X11Structs.cs (XGCValues): Fixed type of function element
30519 * XplatUI.cs: Added ScrollWindow() method
30520 * XplatUIDriver.cs: Added ScrollWindow() abstract
30521 * XplatUIWin32.cs: Implemented ScrollWindow() method
30522 * XplatUIX11.cs: Implemented ScrollWindow() method
30523 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
30525 2004-12-17 Geoff Norton <gnorton@customerdna.com>
30527 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
30528 Some more keyboard support (INCOMPLETE)
30530 2004-12-17 Peter Bartok <pbartok@novell.com>
30533 - Added color attribute to line tags.
30534 - Added color argument to all functions dealing with tags
30535 - Added color argument support to various functions
30536 - Fixed miss-calculation of baseline/shift in certain circumstances
30538 * TextBoxBase.cs: Added new color option to test code
30540 2004-12-17 Jackson Harper <jackson@ximian.com>
30543 * MonthCalendar.cs: Signature fixes
30545 2004-12-17 Geoff Norton <gnorton@customerdna.com>
30547 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
30548 keyboard event moved it. Create a new graphics context for each paint resolves this
30550 2004-12-17 Geoff Norton <gnorton@customerdna.com>
30552 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
30553 Make caret exist and go blink blink. Initial keyboard support.
30554 Fix exception handler, Add Invalidate support. Change way RefreshWindow
30557 2004-12-17 Jackson Harper <jackson@ximian.com>
30559 * XplatUIStructs.cs: Updated set of virtual keycodes.
30560 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
30562 2004-12-17 Jackson Harper <jackson@ximian.com>
30564 * XplatUIX11.cs: Prune old keyboard code.
30566 2004-12-17 Jackson Harper <jackson@ximian.com>
30568 * XplatUIX11.cs: When generating mouse wparams get the modifier
30569 keys from the ModifierKeys property.
30571 2004-12-17 Jackson Harper <jackson@ximian.com>
30573 * X11Keyboard.cs: Send up/down input when generating
30574 messages. Remove some unused vars.
30576 2004-12-17 Jackson Harper <jackson@ximian.com>
30579 * TreeView.cs: get rid of warnings.
30581 2004-12-17 Jackson Harper <jackson@ximian.com>
30583 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
30585 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
30587 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
30588 CheckedListBox.cs: Implementation
30590 2004-12-17 Peter Bartok <pbartok@novell.com>
30592 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
30594 2004-12-16 Peter Bartok <pbartok@novell.com>
30597 - InsertCharAtCaret(): Fixed start pos fixup
30598 - CaretLine_get: No longer derives the line from the tag, the tag
30599 could be stale if lines in the document have been added or deleted
30600 - RebalanceAfterDelete(): Fixed bug in balancing code
30601 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
30602 - Line.Streamline(): Now can also elminate leading empty tags
30603 - DumpTree(): Added a few more tests and prevented exception on
30605 - Added Debug section for Combining lines
30606 - Delete(): Now copies all remaining properties of a line
30609 - Left mousebutton now sets the caret (and middle button still acts
30610 as formatting tester, which must go away soon)
30611 - Added Debug section for Deleting/Combining lines
30612 - Fixed calculations for UpdateView after Combining lines
30614 2004-12-16 Peter Bartok <pbartok@novell.com>
30616 * TextControl.cs: Now properly aligns text on a baseline, using the
30617 new XplatUI.GetFontMetrics() method. Simplified several calculations
30618 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
30621 2004-12-16 Peter Bartok <pbartok@novell.com>
30623 * XplatUI.cs: Added GetFontMetrics() method
30624 * XplatUIDriver.cs: Added GetFontMetrics() abstract
30625 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
30626 into libgdiplus, our private GetFontMetrics function
30627 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
30628 * XplatUIWin32.cs: Implemented GetFontMetrics() method
30630 2004-12-16 Jackson Harper <jackson@ximain.com>
30632 * XplatUIStruct.cs: Add enum for dead keys
30633 * X11Keyboard.cs: Map and unmap dead keys.
30635 2004-12-16 Jackson Harper <jackson@ximian.com>
30637 * X11Keyboard.cs: Detect and use the num lock mask.
30639 2004-12-16 Peter Bartok <pbartok@novell.com>
30641 * Control.cs (CreateGraphics): Added check to make sure the
30642 handle of the window exists before calling Graphics.FromHwnd()
30644 2004-12-16 Peter Bartok <pbartok@novell.com>
30646 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
30647 contains a lot of code that's not supposed to be there for the
30648 real thing, but required for developing/testing the textbox
30651 2004-12-16 Peter Bartok <pbartok@novell.com>
30654 - Fixed Streamline method
30655 - Added FindTag method to Line
30656 - Added DumpTree method for debugging
30657 - Added DecrementLines() method for deleting lines
30658 - Fixed UpdateView to update the cursor to end-of-line on single-line
30660 - Added PositionCaret() method
30661 - Fixed MoveCaret(LineDown) to move into the last line, too
30662 - Added InsertChar overload
30663 - Fixed InsertChar tag offset calculations
30664 - Added DeleteChar() method
30665 - Added Combine() method for folding lines
30666 - Fixed Delete() method, no longer allocates wasted Line object and
30667 now copies all properties when swapping nodes
30668 - Delete() method now updates document line counter
30670 2004-12-15 Jackson Harper <jackson@ximian.com>
30672 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
30673 * X11Keyboard.cs: Expose the currently selected modifier keys
30674 through a property.
30676 2004-12-15 Peter Bartok <pbartok@novell.com>
30678 * TextControl.cs: Initial check-in. Still incomplete
30680 2004-12-15 Jackson Harper <jackson@ximian.com>
30683 * TreeView.cs: Fix build on csc (second time today ;-))
30685 2004-12-15 Jackson Harper <jackson@ximian.com>
30687 * TreeView.cs: Store the treenodes plus/minus box bounds when it
30688 is calculated and use this for click testing.
30689 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
30691 2004-12-15 Jackson Harper <jackson@ximian.com>
30693 * TreeView.cs: Pass the nodes image index to the image list when
30694 drawing that image.
30696 2004-12-15 Jackson Harper <jackson@ximian.com>
30698 * X11Keyboard.cs: Set messages hwnd.
30699 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
30700 post_message calls.
30702 2004-12-15 Jackson Harper <jackson@ximian.com>
30704 * X11Keyboard.cs: Fix to compile with csc.
30706 2004-12-15 Jackson Harper <jackson@ximian.com>
30708 * X11Structs.cs: Add key mask values
30709 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
30710 * X11Keyboard.cs: New file - Extrapolates and interpolates key
30711 down/up foo into WM_CHAR foo
30712 * KeyboardLayouts.cs: Common keyboard layouts
30713 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
30714 post messages into the main queue.
30716 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
30718 * Button.cs: implement ProcessMnemonic
30719 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
30721 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
30722 * ButtonBase.cs: Show HotkeyPrefix (not the &)
30724 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
30726 * MonthCalendar.cs: Implemented click-hold for next/previous month
30729 2004-12-11 Peter Bartok <pbartok@novell.com>
30732 - Added XKeyboardState (moved from XplatUIX11.cs)
30733 - Added XCreateGC related enums and structures
30734 - Added GXFunction for XSetFunction
30736 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
30738 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
30739 CaretVisible() calls
30741 * ToolTip.cs: Added code to prevent stealing focus from app windows
30743 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
30744 DestroyCaret, SetCaretPos and CaretVisible)
30747 - Added implementation for caret functions
30748 - Moved hover variables into a struct, to make it a bit easier
30749 on the eyes and to debug
30750 - Removed XKeyboardState (moved to XplatUIX11.cs)
30751 - Moved Keyboard properties into the properties region
30753 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
30754 call to get a graphics context for our control
30756 * XplatUIOSX.cs: Added empty overrides for the new caret functions
30758 * TreeView.cs: Fixed bug. No matter what color was set it would always
30759 return SystemColors.Window
30761 * XplatUIWin32.cs: Implemented caret overrides
30763 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
30765 * ListBox.cs: fire events, implement missing methods and properties,
30768 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
30770 * MonthCalendar.cs: invalidation bug fixing
30771 * ThemeWin32Classic.cs: paint fixing
30773 2004-12-09 Geoff Norton <gnorton@customerdna.com>
30775 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
30776 prepare the CGContextRef there now.
30778 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
30780 * MonthCalendar.cs:
30781 - optimisationL only invalidate areas that have changed
30782 * ThemeWin32Classic.cs:
30783 - only paint parts that intersect with clip_area
30785 2004-12-09 Peter Bartok <pbartok@novell.com>
30787 * Application.cs: Undid changes from r37004 which cause problems
30790 2004-12-09 Ravindra <rkumar@novell.com>
30792 * ToolBar.cs: Added support for displaying ContextMenu
30793 attached to a button on ToolBar.
30794 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
30797 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
30799 * Label.cs: autosize works in text change and removes unnecessary
30802 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
30804 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30807 2004-12-08 Geoff Norton <gnorton@customerdna.com>
30809 * XplatUIOSX.cs: Added mouse move/click/grab support
30810 Remove some debugging WriteLines not needed anymore.
30811 Add window resizing/positioning.
30812 Fix visibility on reparenting.
30814 2004-12-08 Peter Bartok <pbartok@novell.com>
30816 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
30818 2004-12-07 Geoff Norton <gnorton@customerdna.com>
30820 * XplatUIOSX.cs: Initial checkin
30821 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
30823 2004-12-03 Ravindra <rkumar@novell.com>
30825 * ListView.cs: Added some keybindings and fixed scrolling.
30826 ScrollBars listen to ValueChanged event instead of Scroll
30827 Event. This would let us take care of all changes being
30828 done in the scrollbars' values programmatically or manually.
30829 * ListView.cs (CanMultiselect): Added a check for shift key.
30830 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
30831 * ListViewItem.cs (Clone): Fixed. We need to make a copy
30832 of ListViewSubItemCollection as well.
30834 2004-12-06 Peter Bartok <pbartok@novell.com>
30836 * Control.cs (Parent): Added check and exception to prevent
30839 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
30841 * ListBox.cs: implemented clipping, selection single and multiple,
30844 2004-12-03 Ravindra <rkumar@novell.com>
30846 * ListView.cs (ListView_KeyDown):
30847 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
30848 when CTRL key is pressed.
30849 * ListViewItem.cs (Selected): Fixed setting the property.
30851 2004-12-03 Marek Safar <marek.safar@seznam.cz>
30853 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
30855 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
30856 MinimizeBox, ShowInTaskbar, TopMost properties.
30858 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
30859 will be implemented).
30861 2004-12-03 Marek Safar <marek.safar@seznam.cz>
30863 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
30865 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
30868 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
30870 * TreeView.cs: BackColor is Colors.Window.
30872 2004-12-01 Jackson Harper <jackson@ximian.com>
30874 * TreeView.cs: When resizing the tree if the user is making it
30875 smaller we don't get expose events, so we need to handle adding
30876 the horizontal scrollbar in the size changed handler as well as
30877 the expose handler.
30879 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
30881 * DrawItemState.cs: fixes wrong enum values
30883 2004-12-01 Jackson Harper <jackson@ximian.com>
30885 * TreeView.cs: Resize the hbar as well as the vbar on resize.
30887 2004-12-01 Jackson Harper <jackson@ximian.com>
30889 * NodeLabelEditEventArgs.cs:
30890 * NodeLabelEditEventHandler.cs:
30891 * OpenTreeNodeEnumerator.cs:
30893 * TreeNodeCollection.cs:
30895 * TreeViewAction.cs:
30896 * TreeViewCancelEventArgs.cs:
30897 * TreeViewCancelEventHandler.cs:
30898 * TreeViewEventArgs.cs:
30899 * TreeViewEventHandler.cs: Initial implementation.
30901 2004-12-01 Ravindra <rkumar@novell.com>
30903 * ListView.cs (CalculateListView): Fixed scrolling related
30904 calculations. Also, removed some debug statements from other
30906 * ListViewItem.cs: Changed access to 'selected' instance variable
30907 from private to internal.
30908 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
30910 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
30912 * ThemeWin32Classic.cs: remove cache of brush and pens for
30913 specific controls and use the global system, fixes scrollbutton
30914 bugs (for small sizes, disabled, etc)
30916 * ScrollBar.cs: does not show the thumb for very small controls
30917 (as MS) and allow smaller buttons that the regular size
30919 2004-12-01 Miguel de Icaza <miguel@ximian.com>
30921 * UpDownBase.cs: Add abstract methods for the interface.
30922 Add new virtual methods (need to be hooked up to TextEntry when it
30924 Add override methods for most features.
30925 Computes the size, forces the height of the text entry.
30927 * NumericUpDown.cs: Put here the current testing code.
30929 * Set eol-style property on all files that do not have mixed line
30930 endings, to minimize the future problems. There are still a few
30931 files with mixed endings, and someone should choose whether they
30932 want to move it or not.
30934 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
30936 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
30939 2004-11-30 Ravindra <rkumar@novell.com>
30941 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
30942 drawing and replaced use of SystemColors by theme colors.
30943 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
30944 * ListView.cs (ListViewItemCollection.Add): Throw exception when
30945 same ListViewItem is being added more than once.
30947 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
30949 * MonthCalendar.cs:
30950 - ControlStyles love to make the control not flicker
30952 2004-11-30 Peter Bartok <pbartok@novell.com>
30954 * CharacterCasing.cs: Added
30956 2004-11-29 Peter Bartok <pbartok@novell.com>
30958 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
30959 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
30960 I am removing these files as they conflict with already completed
30961 work. While it is fantastic to get contributions to MWF, I
30962 respectfully ask that everyone please coordinate their contributions
30963 through mono-winforms-list or #mono-winforms at this time. We're
30964 explicitly avoiding stubbing and don't want controls that don't have
30965 their basic functionality implemented in svn. Please also see
30966 http://www.mono-project.com/contributing/winforms.html
30969 2004-11-29 Marek Safar <marek.safar@seznam.cz>
30971 * Application.cs (ModalRun): Don't hang after exit.
30973 * Theme.cs: New TreeViewDefaultSize property.
30975 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
30976 with less hardcoded SystemColors constant.
30977 Implemented TreeViewDefaultSize.
30979 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
30980 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
30983 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
30985 * MonthCalendar.cs:
30986 - Fix NextMonthDate and PrevMonthDate click moving calendar
30988 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
30990 * MonthCalendar.cs:
30991 - Fix usage of ScrollChange Property when scrolling months
30993 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
30995 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
30996 - Fixes menu destroying
30997 - Support adding and removing items on already created menus
30999 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
31001 * MonthCalendar.cs:
31002 - Re-worked all bolded dates handling to match win32
31003 * ThemeWin32Classic.cs:
31004 - Fixed rendering with bolded dates
31006 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
31008 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
31009 - Horizontal scroolbar
31014 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
31016 * MonthCalendar.cs:
31017 - Fix Usage of MaxSelectionCount from SelectionRange
31018 - Fixed Shift + Cursor Selection
31019 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
31020 - Fixed normal cursor selection to be compat with win32
31021 - Fixed Shift + Mouse Click selection
31023 2004-11-24 Peter Bartok <pbartok@novell.com>
31025 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
31026 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
31028 - CreatedKeyBoardMsg now updates keystate with Alt key
31029 - Added workaround for timer crash to CheckTimers, Jackson will
31030 develop a proper fix and check in later
31031 - Implemented DispatchMessage
31032 - Removed calling the native window proc from GetMessage (call
31033 now moved to DispatchMessage)
31035 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
31036 the keydata (Fixes bug #69831)
31039 - (DispatchMessage): Switched to return IntPtr
31040 - Added DllImport for SetFocus
31042 2004-11-24 Ravindra <rkumar@novell.com>
31044 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
31045 background drawing.
31046 * ListViewItem.cs: Fixed various properties, calculations
31047 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
31048 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
31049 and some internal properties. Fixed MouseDown handler and Paint
31052 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31054 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
31056 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31058 * ContainerControl.cs: correct accidental check in of local changes
31060 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
31062 * ThemeWin32Classic.cs:
31063 - Fixed Drawing Last month in grid (sometimes not showing)
31064 * MonthCalendar.cs:
31065 - Fixed title width calculation bug (makeing title small)
31067 2004-11-23 Peter Bartok <pbartok@novell.com>
31070 - Added generation of WM_MOUSEHOVER event
31071 - Added missing assignment of async_method atom
31072 - Fixed WM_ERASEBKGND; now only redraws the exposed area
31074 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
31076 * ThemeWin32Classic.cs:
31077 - Fixed Drawing of today circle when showtodaycircle not set
31078 - fixed drawing of first and last month in the grid (gay dates)
31079 * MonthCalendar.cs:
31080 - Fixed Drawing of today circle
31081 - Fixed drawing of grady dates
31082 - Fixed HitTest for today link when ShowToday set to false
31083 - Fixed DefaultSize to obey ShowToday
31085 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
31087 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
31088 * System.Windows.Forms/Theme.cs
31089 * MonthCalendar.cs: added for MonthCalendar
31090 * SelectionRange.cs: added for MonthCalendar
31091 * Day.cs: added for MonthCalendar: added for MonthCalendar
31092 * DateRangeEventArgs.cs: added for MonthCalendar
31093 * DateRangeEventHandler.cs: added for MonthCalendar
31095 2004-11-22 Ravindra <rkumar@novell.com>
31097 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
31100 2004-11-22 Miguel de Icaza <miguel@ximian.com>
31102 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
31105 * NumericUpDown.cs: Added new implementation.
31106 * UpDownBase.cs: Added new implementation.
31108 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
31111 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
31114 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
31117 2004-11-21 Miguel de Icaza <miguel@ximian.com>
31119 * Timer.cs (Dispose): Should call the base dispose when
31122 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
31124 * ScrollBar.cs: updates thumb position when max, min or increment
31127 2004-11-21 Ravindra <rkumar@novell.com>
31129 * ListView.cs: Implemented item selection, activation and
31130 column header style. Fixed properties to do a redraw, if
31131 required. Added support for MouseHover, DoubleClick, KeyDown
31132 and KeyUp event handling and some minor fixes.
31133 * ListViewItem.cs: Fixed constructor.
31134 * ThemeWin32Classic.cs: Improved drawing for ListView.
31136 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
31138 * ThemeWin32Classic.cs: initial listbox drawing code
31139 * DrawMode.cs: new enumerator
31140 * ListControl.cs: stubbed class
31141 * ListBox.cs: initial implementation
31142 * Theme.cs: new methods definitions
31143 * SelectionMode.cs: new enumerator
31145 2004-11-17 Peter Bartok <pbartok@novell.com>
31147 * XplatUIWin32.cs: Added double-click events to the class style
31148 * Control.cs (WndProc):
31149 - Added handling of click-count to MouseDown/ MouseUp events.
31150 - Added handling of middle and right mouse buttons
31151 - Removed old debug code
31153 2004-11-17 Jackson Harper <jackson@ximian.com>
31155 * XplatUIX11.cs: Use the new Mono.Unix namespace.
31157 2004-11-17 Ravindra <rkumar@novell.com>
31159 * ListView.cs: Added event handling for MouseMove/Up/Down.
31160 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
31161 * ThemeWin32Classic.cs: We need to clear the graphics context and
31162 draw column header in a proper state.
31165 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
31167 * Menu.cs: fixes signature
31169 2004-11-16 Peter Bartok <pbartok@novell.com>
31171 * XplatUIX11.cs (GetMessage): Implemented generation of
31172 double click mouse messages
31174 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
31176 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
31179 2004-11-11 Peter Bartok <pbartok@novell.com>
31181 * HandleData.cs: Added Visible property
31182 * XplatUIX11.cs (IsVisible): Now uses Visible property from
31184 * XplatUIX11.cs: Removed old debug leftovers
31185 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
31186 * Control.cs (WndProc): Removed old debug leftovers,
31187 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
31188 needed WM_SIZE handling
31190 2004-11-11 Jackson Harper <jackson@ximian.com>
31192 * OwnerDrawPropertyBag.cs:
31193 * TreeViewImageIndexConverter.cs: Initial implementation
31195 2004-11-10 Jackson Harper <jackson@ximian.com>
31197 * ThemeWin32Classic.cs:
31198 * TabControl.cs: instead of moving tabs by the slider pos just
31199 start drawing at the tab that is offset by the slider. This way
31200 scrolling always moves by exactly one tab.
31202 2004-11-10 Jackson Harper <jackson@ximian.com>
31204 * TabControl.cs: You can only scroll left when the slider has
31205 already ben moved right.
31207 2004-11-10 Jackson Harper <jackson@ximian.com>
31209 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
31212 2004-11-10 Jackson Harper <jackson@ximian.com>
31214 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
31217 2004-11-09 Jackson Harper <jackson@ximian.com>
31219 * TabControl.cs (CalcXPos): New helper method so we can determine
31220 the proper place to start drawing vertical tabs.
31221 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
31223 2004-11-09 Jackson Harper <jackson@ximian.com>
31225 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
31226 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
31227 and Bottom, left and right are illegal values for this and
31228 multiline is enabled when the alignment is set to left or right.
31229 (DrawTab): Each alignment block should draw the text itself now
31230 because Left requires special love. Also add rendering for Left
31233 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
31235 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
31236 does not destroy the windows, removes debugging messages
31238 2004-11-09 jba <jba-mono@optusnet.com.au>
31240 * ThemeWin32Classic.cs
31241 (DrawButtonBase): Fix verticle text rect clipping in windows
31242 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
31243 rendering and incorrect text rect clipping
31244 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
31245 rendering and incorrect text rect clipping
31247 2004-11-08 Jackson Harper <jackson@ximian.com>
31249 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
31250 bottom when they are bottom aligned so the bottoms of the tabs get
31252 * TabControl.cs (DropRow): Move rows up instead of down when the
31253 tab control is bottom aligned.
31255 2004-11-08 13:59 pbartok
31258 - Added handling for various window styles
31259 - Added handling for popup windows
31260 - Added SetTopmost handling
31262 2004-11-08 13:55 pbartok
31265 - Added argument to SetTopmost method
31266 - Fixed broken ClientToScreen function
31268 2004-11-08 13:53 pbartok
31270 * XplatUIStructs.cs:
31271 - Added missing WS_EX styles
31273 2004-11-08 13:53 pbartok
31275 * XplatUI.cs, XplatUIDriver.cs:
31276 - Added argument to SetTopmost
31278 2004-11-08 13:52 pbartok
31281 - Added XSetWindowAttributes structure
31282 - Improved XWindowAttributes structure
31283 - Added SetWindowValuemask enum
31284 - Added window creation arguments enum
31285 - Added gravity enum
31286 - Added Motif hints structure
31287 - Added various Motif flags and enums
31288 - Added PropertyMode enum for property functions
31290 2004-11-08 13:50 pbartok
31293 - Fixed arguments for updated SetTopmost method
31295 2004-11-08 13:49 pbartok
31298 - Fixed arguments for updated SetTopmost function
31299 - Fixed usage of PointToClient
31301 2004-11-08 13:44 pbartok
31304 - Added Clipping of children and siblings
31306 2004-11-08 13:41 pbartok
31309 - Removed SetMenuBarWindow call. We do this in Form.cs
31311 2004-11-08 13:40 jackson
31313 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
31314 scrolling jimmi in the correct location with bottom aligned tabs
31316 2004-11-08 13:36 pbartok
31318 * ContainerControl.cs:
31319 - Implemented BindingContext
31320 - Implemented ParentForm
31322 2004-11-08 12:46 jackson
31324 * TabControl.cs: Put bottom rendered tabs in the right location
31326 2004-11-08 07:15 jordi
31328 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
31331 2004-11-05 17:30 jackson
31333 * TabControl.cs: When selected tabs are expanded make sure they
31334 don't go beyond the edges of the tab control
31336 2004-11-05 14:57 jackson
31338 * TabControl.cs: Reset show_slider so if the control is resized to
31339 a size where it is no longer needed it's not displayed anymore
31341 2004-11-05 13:16 jackson
31343 * TabControl.cs: Make tab pages non visible when added to the
31346 2004-11-05 12:42 jackson
31348 * TabControl.cs: Implement SizeMode.FillToRight
31350 2004-11-05 12:16 jackson
31352 * Control.cs: Do not call CreateHandle if the handle is already
31355 2004-11-05 11:46 jackson
31357 * TabControl.cs: Remove superflous call to CalcTabRows
31359 2004-11-05 09:07 jackson
31361 * XplatUIX11.cs: Update for Mono.Posix changes
31363 2004-11-05 07:00 ravindra
31365 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
31368 2004-11-04 22:47 jba
31370 * ThemeWin32Classic.cs:
31371 - Fix Button rendering for FlatStyle = Flat or Popup
31372 - Fix RadioButton and CheckBox rendering when Appearance = Button
31373 (normal and flatstyle).
31374 - Correct outer rectangle color when drawing focus rectangle
31375 - Adjust button bounds to be 1 px smaller when focused
31376 - Make button not draw sunken 3d border when pushed (windows compat)
31377 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
31378 - Offset the text in RadioButton and Checkbox when being rendered as
31380 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
31382 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
31383 - Fixed disabled text rendering for normally rendered radiobuttons
31385 2004-11-04 10:26 jackson
31387 * TabControl.cs: Recalculate tab rows when resizing
31389 2004-11-04 07:47 jordi
31391 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
31392 collection completion, drawing issues, missing features
31394 2004-11-04 05:03 ravindra
31397 - We need to recalculate the Thumb area when
31398 LargeChange/maximum/minimum values are changed.
31399 - We set the 'pos' in UpdatePos() method to minimum, if it's less
31400 than minimum. This is required to handle the case if large_change is
31401 more than max, and use LargeChange property instead of large_change
31403 - We return max+1 when large_change is more than max, like MS does.
31405 2004-11-04 04:29 ravindra
31407 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
31408 - Changed default value signatures (prefixed all with ListView).
31409 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
31411 - Fixed calculations for ListViewItem and implemented Clone()
31414 2004-11-04 04:26 ravindra
31416 * Theme.cs, ThemeWin32Classic.cs:
31417 - Changed default ListView values signatures (prefixed all with
31419 - Fixed default size values for VScrollBar and HScrollBar.
31420 - Fixed DrawListViewItem method.
31422 2004-11-04 04:05 ravindra
31424 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
31426 2004-11-04 04:04 ravindra
31428 * ImageList.cs: Implemented the missing overload for Draw method.
31430 2004-11-03 19:29 jackson
31432 * TabControl.cs: Handle dropping rows on selection properly
31434 2004-11-03 11:59 jackson
31436 * TabControl.cs: remove debug code
31438 2004-11-03 11:52 jackson
31440 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
31441 the scrolly widgerywoo
31443 2004-11-02 13:52 jackson
31445 * TabControl.cs: Resize the tab pages and tabs when the tab control
31448 2004-11-02 13:40 jackson
31450 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
31451 selected tab to the bottom
31453 2004-11-02 13:39 jackson
31455 * TabPage.cs: Store the tab pages row
31457 2004-11-02 12:33 jordi
31459 * MenuItem.cs: fixes handle creation
31461 2004-11-02 11:42 jackson
31463 * TabControl.cs: signature fix
31465 2004-11-02 08:56 jackson
31467 * TabControl.cs: Calculate whether the tab is on an edge properly.
31468 Remove top secret debugging code
31470 2004-11-01 19:57 jackson
31472 * TabControl.cs: Add click handling, and proper sizing
31474 2004-11-01 19:47 jackson
31476 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
31479 2004-11-01 19:39 jackson
31481 * TabPage.cs: add internal property to store the bounds of a tab
31484 2004-10-30 04:23 ravindra
31486 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
31489 2004-10-30 04:21 ravindra
31491 * ListView.cs, ListViewItem.cs: Added support for scrolling and
31492 fixed calculations.
31494 2004-10-30 03:06 pbartok
31497 - Removed extension of DllImported libs
31499 2004-10-29 09:55 jordi
31501 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
31502 navigation, itemcollection completion, menu fixes
31504 2004-10-27 22:58 pbartok
31507 - Now throws a nice error message when no X display could be opened
31509 2004-10-26 13:51 jordi
31511 * ListView.cs: removes warning
31513 2004-10-26 03:55 ravindra
31515 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
31516 ThemeWin32Classic.cs: Some formatting for my last checkins.
31518 2004-10-26 03:36 ravindra
31520 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
31521 control and default values.
31523 2004-10-26 03:35 ravindra
31525 * Theme.cs: Added some default values for ListView control.
31527 2004-10-26 03:33 ravindra
31529 * ToolBar.cs: ToolBar should use the user specified button size, if
31530 there is any. Added a size_specified flag for the same.
31532 2004-10-26 03:33 ravindra
31534 * ColumnHeader.cs: Added some internal members and calculations for
31537 2004-10-26 03:32 ravindra
31539 * ListViewItem.cs: Calculations for ListViewItem.
31541 2004-10-26 03:31 ravindra
31543 * ListView.cs: Added some internal members and calculations for
31546 2004-10-22 13:31 jordi
31548 * MenuAPI.cs: speedup menus drawing
31550 2004-10-22 13:16 jackson
31552 * XplatUIX11.cs: Make sure to update exposed regions when adding an
31555 2004-10-22 11:49 jackson
31559 2004-10-22 11:41 jackson
31561 * Control.cs: Check to see if the window should have its background
31562 repainted by X when drawing.
31564 2004-10-22 11:31 jackson
31566 * XplatUIX11.cs: When invalidating areas only use XClearArea if
31567 clear is true, this way we do not get flicker from X repainting the
31570 2004-10-22 11:28 jackson
31572 * XEventQueue.cs: Queue properly
31574 2004-10-21 09:38 jackson
31576 * XEventQueue.cs: Fix access modifier
31578 2004-10-21 09:36 jackson
31580 * XEventQueue.cs: Don't loose messages
31582 2004-10-21 09:22 jackson
31584 * XEventQueue.cs: Don't loose messages
31586 2004-10-20 04:15 jordi
31588 * BootMode.cs: enum need it by SystemInfo
31590 2004-10-19 21:58 pbartok
31593 - Small sanity check
31595 2004-10-19 21:56 pbartok
31598 - Added private FormParentWindow class which acts as the container
31599 for our form and as the non-client area where menus are drawn
31600 - Added/Moved required tie-ins to Jordi's menus
31601 - Fixed/Implemented the FormStartPosition functionality
31603 2004-10-19 21:52 pbartok
31606 - Removed unneeded locals
31607 - Added code to all size and location properties to understand and
31608 deal with the parent container of Form
31610 2004-10-19 21:33 pbartok
31613 - Fixed to deal with new Form subclasses for menus
31615 2004-10-19 17:48 jackson
31617 * XEventQueue.cs: commit correct version of file
31619 2004-10-19 16:50 jackson
31621 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
31623 2004-10-19 16:15 jordi
31625 * MenuAPI.cs: MenuBarCalcSize returns the height
31627 2004-10-19 08:31 pbartok
31630 - Added missing call to PreProcessMessage before calling OnXXXKey
31633 2004-10-19 00:04 ravindra
31635 * ToolTip.cs: Fixed constructor.
31637 2004-10-18 09:31 jordi
31639 * MenuAPI.cs: menuitems in menubars do not have shortcuts
31641 2004-10-18 09:26 jordi
31643 * MenuItem.cs: fixes MenuItem class signature
31645 2004-10-18 08:56 jordi
31647 * MenuAPI.cs: prevents windows from showing in the taskbar
31649 2004-10-18 00:28 ravindra
31651 * ToolTip.cs: Suppressed a warning message.
31653 2004-10-18 00:27 ravindra
31655 * Control.cs: Default value of visible property must be true.
31657 2004-10-17 23:19 pbartok
31660 - Complete implementation
31662 2004-10-17 23:19 pbartok
31665 - Added EnableWindow method
31666 - Added SetModal stub
31667 - Added generation of WM_ACTIVATE message (still needs testing)
31668 - Added SetTopMost stub
31669 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
31671 2004-10-17 23:17 pbartok
31674 - Removed VirtualKeys to XplatUIStructs
31675 - Implemented SetTopMost method
31676 - Implemented EnableWindow method
31677 - Bugfix in ScreenToClient()
31678 - Bugfixes in ClientToScreen()
31680 2004-10-17 22:51 pbartok
31682 * XplatUIStructs.cs:
31683 - Added WS_EX styles to WindowStyles enumeration
31685 2004-10-17 22:50 pbartok
31687 * XplatUI.cs, XplatUIDriver.cs:
31688 - Added method for enabling/disabling windows
31689 - Added method for setting window modality
31690 - Added method for setting topmost window
31692 2004-10-17 22:49 pbartok
31694 * ThemeWin32Classic.cs:
31695 - Added ToolTip drawing code
31697 2004-10-17 22:49 pbartok
31700 - Added ToolTip abstracts
31702 2004-10-17 22:47 pbartok
31705 - Fixed Form.ControlCollection to handle owner relations
31706 - Added Owner/OwnedForms handling
31707 - Implemented Z-Ordering for owned forms
31708 - Removed unneeded private overload of ShowDialog
31709 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
31711 - Fixed Close(), had wrong default
31712 - Added firing of OnLoad event
31713 - Added some commented out debug code for Ownership handling
31715 2004-10-17 22:16 pbartok
31718 - Fixed/implemented flat list of controls
31720 2004-10-17 22:14 pbartok
31723 - Added code to simulate modal dialogs on Win32
31725 2004-10-17 16:11 jordi
31727 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
31730 2004-10-17 13:39 jordi
31732 * MenuAPI.cs: menu drawing fixes
31734 2004-10-15 09:10 ravindra
31736 * StructFormat.cs: General Enum.
31738 2004-10-15 09:09 ravindra
31740 * SizeGripStyle.cs: Enum for Form.
31742 2004-10-15 09:08 ravindra
31744 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
31745 in Theme for ListView.
31747 2004-10-15 09:06 ravindra
31749 * ColumnHeader.cs: Flushing some formatting changes.
31751 2004-10-15 09:05 ravindra
31753 * ListViewItem.cs: Implemented GetBounds method and fixed coding
31756 2004-10-15 09:03 ravindra
31758 * ListView.cs: Implemented Paint method and fixed coding style.
31760 2004-10-15 07:34 jordi
31762 * MenuAPI.cs: fix for X11
31764 2004-10-15 07:32 ravindra
31766 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
31767 - Renamed Paint() method to Draw() for clarity. Also, moved
31768 DrawImage() to OnPaint().
31770 2004-10-15 07:25 ravindra
31772 * CheckBox.cs, RadioButton.cs:
31773 - Removed Redraw (), we get it from ButtonBase.
31774 - Implemented Paint (), to do class specific painting.
31776 2004-10-15 07:16 ravindra
31779 - Redraw () is not virtual now.
31780 - Added an internal virtual method Paint (), so that
31781 derived classes can do their painting on their own.
31782 - Modified OnPaint () to call Paint ().
31784 2004-10-15 06:43 jordi
31786 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
31787 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
31789 2004-10-15 00:30 ravindra
31792 - MessageBox on windows does not have min/max buttons.
31793 This change in CreateParams fixes this on Windows. We
31794 still need to implement this windowstyle behavior in
31797 2004-10-14 05:14 ravindra
31800 - Changed Redraw () to do a Refresh () always.
31801 - Fixed the MouseMove event handling when mouse is pressed,
31802 ie drag event handling.
31803 - Replaced the usage of ToolBarButton.Pressed property to
31804 ToolBarButton.pressed internal variable.
31806 2004-10-14 05:10 ravindra
31808 * ToolBarButton.cs:
31809 - Added an internal member 'inside' to handle mouse move
31810 with mouse pressed ie mouse drag event.
31811 - Changed 'Pressed' property to return true only when
31812 'inside' and 'pressed' are both true.
31813 - Some coding style love.
31815 2004-10-14 00:17 ravindra
31817 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
31820 2004-10-14 00:15 ravindra
31822 * ButtonBase.cs: Redraw () related improvements.
31824 2004-10-14 00:14 ravindra
31826 * MessageBox.cs: Moved InitFormSize () out of Paint method and
31827 removed unnecessary calls to Button.Show () method.
31829 2004-10-13 17:50 pbartok
31833 - Removed destroying of window until we solve the problem of X
31834 destroying the window before us on shutdown
31836 2004-10-13 16:32 pbartok
31839 - Now Redraws on MouseUp for FlatStyle Flat and Popup
31841 2004-10-13 14:18 pbartok
31844 - Added code to destroy the X window
31846 2004-10-13 14:18 pbartok
31849 - Added code to destroy a window
31851 2004-10-13 14:12 pbartok
31854 - Added the Redraw on Resize that got dropped in the last rev
31856 2004-10-13 09:06 pbartok
31858 * ThemeWin32Classic.cs:
31859 - Path from John BouAntoun:
31860 * Fix check rendering (centre correctly for normal style, offset
31861 correctly for FlatStyle).
31862 * Fix border color usage (use backcolor) for FlatStyle.Popup
31863 * Use checkbox.Capture instead of checkbox.is_pressed when
31864 rendering flatstyle states.
31866 2004-10-12 21:48 pbartok
31868 * ThemeWin32Classic.cs:
31869 - Removed all occurences of SystemColors and replaced them with the
31870 matching theme color
31872 2004-10-12 21:41 pbartok
31874 * ThemeWin32Classic.cs:
31875 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
31876 him using the function for flatstyle drawing
31877 - Changed functions to use the new version of CPDrawBorder3D
31879 2004-10-12 21:15 pbartok
31882 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
31883 match MS documentation. They need to return defined colors if the
31884 passed color matches the configured control color. Thanks to John
31885 BouAntoun for pointing this out.
31887 2004-10-12 20:57 pbartok
31890 - Fix from John BouAntoun: Raise ForeColorChanged event when text
31893 2004-10-12 20:46 pbartok
31896 - Fix from John BouAntoun: Now properly sets the Appearance property
31898 2004-10-12 20:45 pbartok
31900 * ThemeWin32Classic.cs:
31901 - Fixes from John BouAntoun: now handles forecolors and backcolors
31902 for flatstyle rendered controls much better; It also fixes normal
31903 checkbox rendering when pushed or disabled.
31905 2004-10-08 02:50 jordi
31907 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
31910 2004-10-07 08:56 jordi
31912 * ThemeWin32Classic.cs: Removes deletion of cached brushes
31914 2004-10-06 03:59 jordi
31916 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
31917 XplatUIWin32.cs: removes warnings from compilation
31919 2004-10-05 12:23 jackson
31921 * RadioButton.cs: Fix ctor
31923 2004-10-05 11:10 pbartok
31926 - Partial implementation by Benjamin Dasnois
31928 2004-10-05 10:15 jackson
31930 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
31933 2004-10-05 03:07 ravindra
31936 - Removed a private method, Draw ().
31937 - Fixed the ButtonDropDown event handling.
31938 - Fixed MouseMove event handling.
31940 2004-10-05 03:04 ravindra
31942 * ThemeWin32Classic.cs:
31943 - Added DrawListView method and ListViewDefaultSize property.
31944 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
31945 - Changed DOS style CRLF to Unix format (dos2unix).
31947 2004-10-05 03:03 ravindra
31950 - Added DrawListView method and ListViewDefaultSize property.
31952 2004-10-05 02:42 ravindra
31954 * ToolBarButton.cs: Added an internal member dd_pressed to handle
31955 clicks on DropDown arrow.
31957 2004-10-04 22:56 jackson
31959 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
31960 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
31961 Control handle the buffers, derived classes should not have to
31962 CreateBuffers themselves.
31964 2004-10-04 21:20 jackson
31966 * StatusBar.cs: The control handles resizing the buffers now.
31968 2004-10-04 21:18 jackson
31970 * Control.cs: When resizing the buffers should be invalidated. This
31971 should be handled in Control not in derived classes.
31973 2004-10-04 14:45 jackson
31977 2004-10-04 02:14 pbartok
31979 * LeftRightAlignment.cs:
31982 2004-10-04 01:09 jordi
31984 * ThemeWin32Classic.cs: fixes right button position causing right
31985 button not showing on horizontal scrollbars
31987 2004-10-02 13:12 pbartok
31990 - Simplified the Invalidate method by using an X call instead of
31991 generating the expose ourselves
31992 - Added an expose when the window background is changed
31993 - Implemented ClientToScreen method
31995 2004-10-02 13:08 pbartok
31998 - Added Win32EnableWindow method (test for implementing modal
32000 - Added ClientToScreen method and imports
32002 2004-10-02 13:07 pbartok
32004 * XplatUI.cs, XplatUIDriver.cs:
32005 - Added ClientToScreen coordinate translation method
32007 2004-10-02 13:06 pbartok
32009 * KeyPressEventArgs.cs:
32010 - Fixed access level for constructor
32012 2004-10-02 13:06 pbartok
32015 - Changed access level for the window_collection hash table
32017 2004-10-02 13:05 pbartok
32020 - Added KeyPreview property
32021 - Added Menu property (still incomplete, pending Jordi's menu work)
32022 - Implemented ProcessCmdKey
32023 - Implemented ProcessDialogKey
32024 - Implemented ProcessKeyPreview
32026 2004-10-02 13:02 pbartok
32029 - Added private method to get the Control object from the window
32031 - Implemented ContextMenu property
32032 - Implemented PointToScreen
32033 - Implemented PreProcessMessage
32034 - Implemented IsInputChar
32035 - Implemented IsInputKey
32036 - Implemented ProcessCmdKey
32037 - Completed ProcessKeyEventArgs
32038 - Fixed message loop to call the proper chain of functions on key
32040 - Implemented ProcessDialogChar
32041 - Implemented ProcessDialogKey
32042 - Implemented ProcessKeyMessage
32043 - Implemented ProcessKeyPreview
32044 - Added RaiseDragEvent stub (MS internal method)
32045 - Added RaiseKeyEvent stub (MS internal method)
32046 - Added RaiseMouseEvent stub (MS Internal method)
32047 - Added RaisePaintEvent stub (MS Internal method)
32048 - Added ResetMouseEventArgs stub (MS Internal method)
32049 - Implemented RtlTranslateAlignment
32050 - Implemented RtlTranslateContent
32051 - Implemented RtlTranslateHorizontal
32052 - Implemented RtlTranslateLeftRight
32053 - Added generation of KeyPress event
32055 2004-10-02 05:57 ravindra
32057 * ListViewItem.cs: Added attributes.
32059 2004-10-02 05:32 ravindra
32061 * ListView.cs: Added attributes.
32063 2004-10-01 11:53 jackson
32065 * Form.cs: Implement the Close method so work on MessageBox can
32068 2004-09-30 14:06 pbartok
32073 2004-09-30 11:34 jackson
32075 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
32077 2004-09-30 07:26 ravindra
32079 * ListViewItemConverter.cs: Converter for ListViewItem.
32081 2004-09-30 07:26 ravindra
32083 * SortOrder.cs: Enum for ListView control.
32085 2004-09-30 07:25 ravindra
32087 * ColumnHeader.cs: Supporting class for ListView control.
32089 2004-09-30 07:24 ravindra
32091 * ListView.cs, ListViewItem.cs: Initial implementation.
32093 2004-09-30 07:20 ravindra
32095 * ItemActivation.cs: Enum for ListView Control.
32097 2004-09-29 20:29 pbartok
32100 - Added lookup of pixel value for background color; tries to get a
32101 color 'close' to the requested color, it avoids having to create a
32102 colormap. Depending on the display this could mean the used color
32103 is slightly off the desired color. Might have to change it to a more
32104 resource intensive colormap approach, but it will work as a
32105 workaround to avoid red screens.
32107 2004-09-29 14:27 jackson
32109 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
32111 2004-09-28 12:44 pbartok
32113 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
32114 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
32115 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
32116 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
32117 TrackBar.cs, VScrollBar.cs:
32118 - Streamlined Theme interfaces:
32119 * Each DrawXXX method for a control now is passed the object for
32120 the control to be drawn in order to allow accessing any state the
32121 theme might require
32123 * ControlPaint methods for the theme now have a CP prefix to avoid
32124 name clashes with the Draw methods for controls
32126 * Every control now retrieves it's DefaultSize from the current
32129 2004-09-28 12:17 jackson
32131 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
32134 2004-09-24 14:57 jackson
32136 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
32137 Gives us a nice little performance boost.
32139 2004-09-24 12:02 jackson
32141 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
32142 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
32143 Control and supporting classes. Initial checkin
32145 2004-09-23 13:08 jackson
32147 * Form.cs: Temp build fixage
32149 2004-09-23 01:39 ravindra
32151 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
32152 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
32153 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
32154 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
32155 EventHandlers needed by ListView Control.
32157 2004-09-22 14:12 pbartok
32159 * ScrollableControl.cs:
32160 - Implemented DockPadding property
32161 - Implemented AutoScroll property
32162 - Implemented AutoScrollMargin property
32163 - Implemented AutoScrollMinSize property
32164 - Implemented AutoScrollPosition property
32165 - Implemented DisplayRectangle property (still incomplete)
32166 - Implemented CreateParams property
32167 - Implemented HScroll property
32168 - Implemented VScroll property
32169 - Implemented OnVisibleChanged property
32171 2004-09-22 14:09 pbartok
32174 - Added Form.ControllCollection class
32175 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
32176 RemoveOwnedForm (still incomplete, missing on-top and common
32177 minimize/maximize behaviour)
32178 - Added StartPosition property (still incomplete, does not use when
32180 - Added ShowDialog() methods (still incomplete, missing forcing the
32183 2004-09-22 14:05 pbartok
32186 - Added message loop for modal dialogs
32188 2004-09-22 14:02 pbartok
32191 - Fixed wrong types for events
32193 2004-09-22 14:00 pbartok
32195 * Shortcut.cs, FormWindowState.cs:
32196 - Fixed wrong values
32198 2004-09-22 12:01 jackson
32200 * Control.cs: Text is never null
32202 2004-09-20 22:14 pbartok
32205 - Fixed accessibility level for Idle handler
32207 2004-09-20 18:54 jackson
32209 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32210 XplatUIX11.cs: New message loop that uses poll so we don't get a
32213 2004-09-17 10:43 pbartok
32216 - Fixed behaviour of arrow buttons. Now properly behaves like
32217 Buttons (and like Microsoft's scrollbar arrow buttons)
32219 2004-09-17 10:14 pbartok
32222 - Added missing release of keyboard/mouse capture
32224 2004-09-17 06:18 jordi
32226 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
32227 Theme.cs: Very early menu support
32229 2004-09-16 17:45 pbartok
32232 - Fixed sending a window to the front
32233 - Added overload for SetWindowPos to avoid casting
32235 2004-09-16 17:44 pbartok
32238 - Added SendToBack and BringToFront methods
32240 2004-09-16 07:00 ravindra
32242 * Copyright: Added Novell URL.
32244 2004-09-16 07:00 ravindra
32246 * ToolBar.cs: Invalidate should be done before redrawing.
32248 2004-09-15 21:19 ravindra
32250 * ColumnHeaderStyle.cs: Enum for ListView Control.
32252 2004-09-15 21:18 ravindra
32254 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
32257 2004-09-13 18:26 jackson
32259 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
32262 2004-09-13 18:13 jackson
32264 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
32265 a second thread and post messages into the main threads message
32266 queue. This makes timing much more consistent. Both win2K and XP
32267 have a minimum timer value of 15 milliseconds, so we now do this
32270 2004-09-13 15:18 pbartok
32272 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32274 - Added Z-Ordering methods
32276 2004-09-13 10:56 pbartok
32279 - Fixed #region names
32280 - Moved properties and methods into their proper #regions
32282 2004-09-13 10:51 pbartok
32285 - Added Accept and CancelButton properties
32286 - Added ProcessDialogKey() method
32288 2004-09-13 08:18 pbartok
32290 * IWindowTarget.cs:
32293 2004-09-10 21:50 pbartok
32296 - Added DoDragDrop() [incomplete]
32297 - Properly implemented 'Visible' handling
32298 - Added SetVisibleCore()
32299 - Implemented FindChildAtPoint()
32300 - Implemented GetContainerControl()
32301 - Implemented Hide()
32303 2004-09-10 19:28 pbartok
32306 - Moved methods into their appropriate #regions
32307 - Reordered methods within regions alphabetically
32309 2004-09-10 18:57 pbartok
32311 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
32312 - Added method to retrieve text from window
32314 2004-09-10 18:56 pbartok
32317 - Moved some internal functions into the internal region
32318 - Implemented FontHeight
32319 - Implemented RenderRightToLeft
32320 - Implemented ResizeRedraw
32321 - Implemented ShowFocusCues
32322 - Implemented ShowKeyboardCues
32323 - Implemented FromChildHandle
32324 - Implemented FromHandle
32325 - Implemented IsMnemonic
32326 - Implemented ReflectMessage
32327 - All public and protected Static Methods are now complete
32329 2004-09-10 16:54 pbartok
32332 - Implemented remaining missing public instance properties
32333 - Alphabetized some out of order properties
32335 2004-09-10 05:51 ravindra
32337 * PictureBox.cs: Added a check for null image.
32339 2004-09-10 00:59 jordi
32341 * GroupBox.cs: remove cvs tag
32343 2004-09-09 05:25 ravindra
32345 * ToolBar.cs: Make redraw accessible from ToolBarButton.
32347 2004-09-09 05:23 ravindra
32349 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
32352 2004-09-09 02:28 pbartok
32354 * ThemeWin32Classic.cs:
32355 - Improve disabled string look
32357 2004-09-09 01:15 jordi
32359 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
32362 2004-09-08 23:56 ravindra
32364 * ItemBoundsPortion.cs: It's enum, not a class!
32366 2004-09-08 23:47 ravindra
32368 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
32371 2004-09-08 21:13 ravindra
32373 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
32376 2004-09-08 21:03 ravindra
32378 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
32381 2004-09-08 21:01 ravindra
32383 * ScrollableControl.cs: Removed unreachable code.
32385 2004-09-08 06:45 jordi
32387 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
32389 2004-09-08 01:00 jackson
32391 * XplatUIX11.cs: Only run the timers when updating the message
32392 queue. This effectively gives X messages a higher priority then
32393 timer messages. Timers still need love though
32395 2004-09-07 14:01 jackson
32397 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
32398 this for us and the handle is no longer valid.
32400 2004-09-07 13:59 jackson
32402 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
32403 loop that manages to not crash. TODO: Add poll and cleanup timers
32405 2004-09-07 11:12 jordi
32407 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
32409 2004-09-07 03:40 jordi
32411 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
32412 fixes, methods, multiple links
32414 2004-09-06 06:55 jordi
32416 * Control.cs: Caches ClientRectangle rectangle value
32418 2004-09-05 02:03 jordi
32420 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
32423 2004-09-04 11:10 jordi
32425 * Label.cs: Refresh when font changed
32427 2004-09-02 16:24 pbartok
32430 - Added sanity check to creation of double buffer bitmap
32432 2004-09-02 16:24 pbartok
32435 - Fixed selection of text color
32436 - Fixed handling of resize event; now properly recreates double
32438 - Added missing assignment of TextAlignment
32439 - Added proper default for TextAlignment
32441 2004-09-02 14:26 pbartok
32444 - Added missing RadioButton.RadioButtonAccessibleObject class
32446 2004-09-02 14:26 pbartok
32449 - Added missing Control.ControlAccessibleObject class
32450 - Started to implement Select()ion mechanisms, still very incomplete
32452 2004-09-02 14:25 pbartok
32454 * AccessibleObject.cs:
32455 - Added missing methods
32457 2004-09-02 14:23 pbartok
32459 * AccessibleNavigation.cs, AccessibleSelection.cs:
32462 2004-09-02 10:32 jordi
32464 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
32465 pool for pens, brushes, and hatchbruses
32467 2004-09-01 15:30 jackson
32469 * StatusBar.cs: Fix typo
32471 2004-09-01 14:44 pbartok
32476 2004-09-01 14:39 pbartok
32478 * Button.cs, RadioButton.cs:
32479 - Functional initial check-in
32481 2004-09-01 14:01 pbartok
32484 - Added missing default
32485 - Added missing region mark
32487 2004-09-01 09:10 jordi
32489 * Label.cs: fixes method signatures, new methods, events, fixes
32492 2004-09-01 07:19 jordi
32494 * Control.cs: Init string variables with an empty object
32496 2004-09-01 04:20 jordi
32498 * Control.cs: fires OnFontChanged event
32500 2004-08-31 20:07 pbartok
32503 - Enabled display of strings
32505 2004-08-31 20:05 pbartok
32508 - Added (partial) implementation of DialogResult; rest needs to be
32509 implemented when the modal loop code is done
32511 2004-08-31 19:55 pbartok
32514 - Fixed to match the removal of the needs_redraw concept
32516 2004-08-31 19:55 pbartok
32519 - Removed the rather odd split between 'needs redraw' and redrawing
32520 - Now handles the events that require regeneration (ambient
32521 properties and size)
32523 2004-08-31 19:41 pbartok
32526 - Added firing of BackColorChanged event
32527 - Added TopLevelControl property
32528 - Fixed handling of WM_ERASEBKGRND message
32530 2004-08-31 12:49 pbartok
32536 2004-08-31 12:48 pbartok
32539 - Finished (famous last words)
32541 2004-08-31 04:35 jordi
32543 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
32544 scrolling bugs, adds new methods
32546 2004-08-30 14:42 pbartok
32549 - Implemented CheckBox drawing code
32551 2004-08-30 14:42 pbartok
32554 - Made Redraw() and CheckRedraw() virtual
32555 - Improved mouse up/down/move logic to properly track buttons
32557 2004-08-30 09:44 pbartok
32560 - Updated to fix broken build. Not complete yet.
32562 2004-08-30 09:28 pbartok
32567 2004-08-30 09:17 pbartok
32572 2004-08-27 16:12 ravindra
32574 * ToolBarButton.cs: Added TypeConverter attribute.
32576 2004-08-27 16:07 ravindra
32578 * ImageIndexConverter.cs: Implemented.
32580 2004-08-27 14:17 pbartok
32583 - Removed unneeded stack vars
32584 - First attempt to fix sizing issues when layout is suspended
32586 2004-08-25 15:35 jordi
32588 * ScrollBar.cs: more fixes to scrollbar
32590 2004-08-25 14:04 ravindra
32592 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
32593 Added the missing divider code and grip for ToolBar Control.
32595 2004-08-25 13:20 pbartok
32598 - Control now properly passes the ambient background color to child
32601 2004-08-25 13:20 jordi
32603 * ScrollBar.cs: small bug fix regarding bar position
32605 2004-08-25 12:33 pbartok
32608 - Now only calls SetTimer or KillTimer if the enabled state has
32611 2004-08-25 12:33 pbartok
32614 - Fixed timer handling, now seems to work
32615 - Improved error message for window creation
32617 2004-08-25 12:32 pbartok
32620 - Fixed generation of MouseUp message
32622 2004-08-25 12:29 jordi
32624 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
32625 and fixes for progressbar
32627 2004-08-24 18:43 ravindra
32629 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
32630 in ToolBar control.
32632 2004-08-24 17:15 pbartok
32636 - Added missing events
32639 2004-08-24 17:14 pbartok
32641 * StatusBar.cs, PictureBox.cs:
32642 - Now uses Control's CreateParams
32644 2004-08-24 16:36 pbartok
32647 - Fixed background color handling
32648 - Fixed sending of enter/leave events on a grab
32650 2004-08-24 16:35 pbartok
32653 - Refined definitions for CrossingEvent
32655 2004-08-24 12:37 jordi
32657 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
32658 formmating, methods signature, and adds missing events
32660 2004-08-24 12:24 jordi
32662 * Control.cs: fire OnEnabledChanged event
32664 2004-08-24 11:17 pbartok
32667 - Implemented SetTimer() and KillTimer()
32669 2004-08-24 11:16 pbartok
32672 - Now uses Remove instead of Add to kill the timer
32674 2004-08-24 10:16 jackson
32676 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
32677 picture boxes in the theme now. Draw picture box borders and obey
32680 2004-08-24 05:49 jackson
32682 * Timer.cs: Remove top secret debugging code
32684 2004-08-24 05:34 jackson
32686 * PictureBox.cs: Temp hack to make picture boxes draw their full
32689 2004-08-24 05:29 jackson
32691 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32692 XplatUIX11.cs: Move timers to the driver level. On X they are
32693 queued by the driver and checked on idle.
32695 2004-08-24 01:07 jackson
32697 * XplatUIX11.cs: Use a queue for async messages instead of passing
32698 them as ClientMessages since that was totally broken. Also simply
32699 check for events and return an idle message if none are found. This
32700 gives us an idle handler, and prevents deadlocking when no messages
32703 2004-08-23 18:19 ravindra
32705 * XplatUIWin32.cs: Removed the unwanted destructor.
32707 2004-08-23 17:27 pbartok
32710 - Finishing touches. Works now, just needs some optimizations.
32712 2004-08-23 16:53 jordi
32714 * ScrollBar.cs: small fix
32716 2004-08-23 16:45 pbartok
32719 - Removed debug output
32722 2004-08-23 16:43 jordi
32724 * ScrollBar.cs: [no log message]
32726 2004-08-23 16:10 pbartok
32729 - Fixed handling of WM_CLOSE message
32730 - Removed debug output
32732 2004-08-23 16:09 pbartok
32735 - Added handling of Idle event
32736 - Added handling of form closing
32737 - Fixed reporting of MessageLoop property
32738 - Removed some unneeded code, should provide a bit of a speedup
32740 2004-08-23 15:22 pbartok
32743 - Added InitLayout() method
32744 - Added code to properly perform layout when Anchor or Dock property
32746 - Changed 'interpretation' of ResumeLayout. MS seems to have a
32747 LAMESPEC, tried to do it in a way that makes sense
32749 2004-08-23 14:10 jordi
32751 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
32752 properties and methods
32754 2004-08-23 13:55 pbartok
32757 - Properly fixed Jordi's last fix
32758 - Now uses Cursor's Position property instead of calling XplatUI
32761 2004-08-23 13:44 jordi
32763 * PaintEventHandler.cs: Adding missing attribute
32765 2004-08-23 13:39 pbartok
32768 - Implemented Position property
32770 2004-08-23 13:39 pbartok
32772 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
32773 - Added method to move mouse cursor
32775 2004-08-23 13:39 pbartok
32778 - Fixed setting of background color
32779 - Added method to move mouse cursor
32781 2004-08-23 13:16 jordi
32783 * Control.cs: avoids null exception
32785 2004-08-22 17:46 jackson
32787 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
32790 2004-08-22 17:40 jackson
32792 * XplatUIX11.cs: Add some missing locks
32794 2004-08-22 15:10 pbartok
32796 * Control.cs, Form.cs:
32797 - Removed OverlappedWindow style from Control, instead it's default
32799 - Made form windows OverlappedWindow by default
32801 2004-08-22 13:34 jackson
32803 * ScrollBar.cs: Update the position through the Value property so
32804 the OnValueChanged event is raised.
32806 2004-08-22 12:04 pbartok
32809 - Added Cursor.cs and UserControl.cs
32811 2004-08-22 12:03 pbartok
32814 - Started implementation, not usable yet
32816 2004-08-22 12:00 pbartok
32819 - Implemented UserControl (complete)
32821 2004-08-21 19:20 ravindra
32823 * ToolBar.cs: Correcting the formatting mess of VS.NET.
32825 2004-08-21 18:49 ravindra
32827 * ToolBar.cs: Probably this completes the missing attributes in
32830 2004-08-21 18:03 ravindra
32832 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
32833 Fixed toolbar control signatures.
32835 2004-08-21 16:32 pbartok
32840 2004-08-21 16:30 pbartok
32845 2004-08-21 16:19 pbartok
32847 * Control.cs, Label.cs:
32850 2004-08-21 15:57 pbartok
32853 - Added loads of debug output for development
32854 - Fixed typo in method name
32856 2004-08-21 15:52 pbartok
32858 * ToolBarButtonClickEventArgs.cs:
32859 - Added missing base class
32861 2004-08-21 14:53 pbartok
32864 - Updated to match new GrabWindow signature
32866 2004-08-21 14:51 pbartok
32868 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
32869 - Added method to get default display size
32871 2004-08-21 14:23 pbartok
32873 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
32874 - Added method to query current grab state
32875 - Added argument to allow confining a grab to a window
32877 2004-08-21 14:22 pbartok
32880 - Added [Flags] attribute so that modifiers can be used in bitwise
32883 2004-08-21 14:21 pbartok
32885 * TrackBar.cs, ScrollBar.cs:
32886 - Replaced direct XplatUI calls with their Control counterpart
32888 2004-08-21 13:32 pbartok
32891 - Implemented Created property
32893 2004-08-21 13:28 pbartok
32896 - Implemented ContainsFocus
32898 2004-08-21 13:26 pbartok
32901 - Implemented CausesValidation
32903 2004-08-21 13:21 pbartok
32906 - Implemented CanFocus
32907 - Implemented CanSelect
32908 - Implemented Capture
32910 2004-08-21 12:35 pbartok
32913 - Fixed bug with Async message handling
32914 - Implemented getting the ModifierKeys
32916 2004-08-21 12:32 jackson
32918 * AsyncMethodResult.cs: Make sure we have the mutex before we
32919 release it. Fixes BeginInvoke on windows
32921 2004-08-21 11:31 pbartok
32923 * XplatUIWin32.cs, XplatUIX11.cs:
32924 - Drivers now return proper mouse state
32926 2004-08-21 10:54 jackson
32928 * Control.cs: Implement EndInvoke
32930 2004-08-21 10:48 jackson
32932 * Timer.cs: Remove unneeded finalizer
32934 2004-08-20 19:52 ravindra
32936 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
32937 in mouse event handling in the ToolBar control.
32939 2004-08-20 19:50 ravindra
32941 * ImageList.cs: Changed draw method to use the arguments passed in
32944 2004-08-20 18:58 pbartok
32946 * XplatUIStructs.cs:
32947 - Added private message for async communication
32949 2004-08-20 17:38 ravindra
32951 * Control.cs: Made RightToLeft property virtual and removed a
32954 2004-08-20 14:39 jordi
32956 * ThemeGtk.cs: use style_attach
32958 2004-08-20 14:39 pbartok
32961 - Added jackson's Async code from X11 to Win32
32963 2004-08-20 14:09 pbartok
32966 - Added all new files
32968 2004-08-20 14:09 pbartok
32971 - Added call to set window background color
32973 2004-08-20 14:03 pbartok
32975 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
32976 - Added method for setting the window background
32978 2004-08-20 14:02 pbartok
32981 - Added method for setting the background color
32982 - Added handling for erasing the window background
32984 2004-08-20 13:45 jordi
32986 * TrackBar.cs: fixes timer, new properties and methods
32988 2004-08-20 13:34 jackson
32990 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
32993 2004-08-20 13:22 jackson
32995 * Timer.cs: Timer Tick events are now handed through Controls Async
32996 mechanism so the callbacks are executed in the same thread as X
32998 2004-08-20 13:19 jackson
33000 * XplatUIDriver.cs: Expose functionality to send async messages
33003 2004-08-20 13:18 jackson
33005 * Control.cs: Implement Begininvoke
33007 2004-08-20 13:14 jackson
33009 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
33010 messages through the driver
33012 2004-08-20 13:12 jackson
33014 * XplatUIX11.cs: Lock before all X operations. Also added Async
33015 method functionality through XSendEvent
33017 2004-08-20 13:11 jackson
33019 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
33020 This will screw up on 64 bit systems)
33022 2004-08-20 13:10 jackson
33024 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
33025 Async messages through X/Win32
33027 2004-08-19 19:39 pbartok
33030 - Updated code to match new HandleData.DeviceContext type
33032 2004-08-19 19:38 pbartok
33035 - Made DeviceContext a generic object to allow usage from various
33037 - Added support for queueing Windows messages
33039 2004-08-19 19:37 pbartok
33042 - Added generation of MouseEnter, MouseLeave and MouseHover events
33043 - Added cleanup on EndPaint
33045 2004-08-19 19:17 pbartok
33048 - Added handling of WM_MOUSEHOVER
33049 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
33052 2004-08-19 18:55 jordi
33054 * ThemeGtk.cs: fixes button order
33056 2004-08-19 18:12 jordi
33058 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
33060 2004-08-19 17:09 pbartok
33063 - Added Right property
33064 - Added RightToLeft property
33066 2004-08-19 16:27 jordi
33068 * ThemeGtk.cs: experimental GTK theme support
33070 2004-08-19 16:26 jordi
33072 * ITheme.cs, Theme.cs: move themes from an interface to a class
33074 2004-08-19 16:25 jordi
33076 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
33079 2004-08-19 16:04 pbartok
33082 - Added colormap basics
33083 - Added a way to re-initialize with a different display handle
33084 - Fixed setting of the window background color
33085 - Added various X11 imports related to colors and colormaps
33087 2004-08-19 15:51 pbartok
33090 - Removed packing hints (Paolo suggested this a while back)
33091 - fixed colormap type
33092 - Added default Atom types
33093 - Added Screen and color structs and enums
33095 2004-08-19 15:39 pbartok
33098 - Added missing Draw() method
33099 - Added missing RecreateHandle event
33101 2004-08-19 15:30 pbartok
33104 - Added handling of WM_CLOSE
33106 2004-08-18 13:16 jordi
33108 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
33111 2004-08-18 09:56 jordi
33113 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
33115 2004-08-17 15:31 ravindra
33117 * SWF.csproj: Updated project.
33119 2004-08-17 15:25 pbartok
33122 - Drawing improvement; don't call UpdateBounds if we are not visible
33123 (or have been minimized)
33125 2004-08-17 15:24 pbartok
33128 - Finished IsVisible
33129 - Added Win32GetWindowPlacement
33131 2004-08-17 15:08 jackson
33133 * Panel.cs: Initial checkin of the Panel
33135 2004-08-17 14:25 pbartok
33138 - Fixed broken handling of default window sizes
33140 2004-08-17 13:29 jackson
33142 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
33143 has a large startup time.
33145 2004-08-17 10:25 jackson
33147 * HandleData.cs: union areas properly
33149 2004-08-17 10:12 jackson
33151 * HandleData.cs: union areas properly
33153 2004-08-16 20:00 ravindra
33155 * ToolBar.cs, ToolBarButton.cs: Added attributes.
33157 2004-08-16 18:48 ravindra
33159 * ToolBar.cs: Added attributes.
33161 2004-08-16 17:17 ravindra
33163 * SWF.csproj: Updated project.
33165 2004-08-16 17:16 jackson
33167 * XplatUIX11.cs: Check for more expose events before sending a
33168 WM_PAINT so they can all be grouped together. This makes dragging a
33169 window across another window redraw in a sane way.
33171 2004-08-16 15:47 pbartok
33174 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
33175 support OnMouseEnter/Leave()
33176 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
33179 2004-08-16 15:46 pbartok
33181 * XplatUIStructs.cs, XplatUIX11.cs:
33182 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
33183 OnMouseEnter/Leave()
33185 2004-08-16 15:34 jackson
33187 * XplatUIX11.cs: Group multiple expose events in HandleData, make
33188 sure messages get the message field set to WM_NULL if they are not
33191 2004-08-16 15:24 jackson
33193 * HandleData.cs: HandleData is used for storing message information
33196 2004-08-15 17:23 ravindra
33198 * ColorDepth.cs: Added attribute.
33200 2004-08-15 17:23 ravindra
33202 * SWF.csproj: Updated project for ToolBar Control.
33204 2004-08-15 17:20 ravindra
33206 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
33207 control and also dos2unix format.
33209 2004-08-15 17:13 ravindra
33211 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
33212 ToolBarButtonClickEventArgs.cs,
33213 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
33214 ToolBarTextAlign.cs: First Implementation of ToolBar control.
33216 2004-08-15 15:31 pbartok
33219 - First (mostly) working version
33221 2004-08-13 16:15 pbartok
33224 - Fixed Anchor default
33226 2004-08-13 15:43 pbartok
33229 - Changed GetCursorPos signature
33231 2004-08-13 15:42 pbartok
33233 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33234 - Changed signature for GetCursorPos
33236 2004-08-13 15:25 pbartok
33240 - Fixed resizing/exposure handling
33242 2004-08-13 15:22 jordi
33244 * ThemeWin32Classic.cs: removes redundant code and fixes issues
33247 2004-08-13 14:55 jordi
33249 * TrackBar.cs: change from wndproc to events
33251 2004-08-13 13:00 jordi
33253 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33254 XplatUIX11.cs: implements PointToClient (ScreenToClient)
33256 2004-08-13 12:53 pbartok
33259 - Changed GetWindowPos to also provide client area size
33260 - Fixed broken prototypes for several win32 functions
33262 2004-08-13 12:53 pbartok
33264 * XplatUI.cs, XplatUIDriver.cs:
33265 - Changed GetWindowPos to also provide client area size
33267 2004-08-13 12:52 pbartok
33270 - Added generation of WM_POSCHANGED
33271 - Changed GetWindowPos to also provide client area size
33273 2004-08-13 12:52 pbartok
33276 - Added Dispose() and destructor
33277 - Fixed resizing and bounds calculation
33279 - Added memory savings for invisible windows
33281 2004-08-13 12:46 jordi
33283 * TrackBar.cs: adds timer and grap window
33285 2004-08-13 10:25 jackson
33287 * Timer.cs: SWF Timer
33289 2004-08-12 16:59 pbartok
33291 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33292 - Implemented method to get current mouse position
33294 2004-08-12 14:29 jordi
33296 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
33297 enhancement, fix mouse problems, highli thumb, etc
33299 2004-08-12 13:31 pbartok
33302 - Fixed Anchoring bugs
33304 2004-08-12 13:01 jackson
33306 * StatusBar.cs: Don't forget things
33308 2004-08-12 12:54 jackson
33310 * ThemeWin32Classic.cs: Handle owner draw status bars
33312 2004-08-12 12:54 jackson
33314 * StatusBar.cs: Implement missing properties, events, and methods.
33315 Handle mouse clicking
33317 2004-08-12 10:19 jackson
33319 * StatusBarPanelClickEventArgs.cs,
33320 StatusBarPanelClickEventHandler.cs: Classes for handling status
33321 bar panel click events
33323 2004-08-12 10:10 jackson
33325 * Control.cs: Add missing properties
33327 2004-08-12 09:46 pbartok
33329 * BindingsManagerBase.cs:
33330 - Name changed to BindingManagerBase.cs
33332 2004-08-12 09:25 jordi
33334 * ScrollableControl.cs: calls ctrlbase instead of exeception
33336 2004-08-11 16:28 pbartok
33338 * InputLanguageChangingEventArgs.cs:
33339 - Never check in before compiling. Fixes the last check-in
33341 2004-08-11 16:26 pbartok
33343 * InputLanguageChangingEventArgs.cs:
33344 - More signature fixes
33346 2004-08-11 16:20 pbartok
33348 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
33349 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
33350 ImageListStreamer.cs, InputLanguage.cs,
33351 InputLanguageChangedEventArgs.cs,
33352 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
33353 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
33354 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
33355 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33358 2004-08-11 16:16 pbartok
33362 - Added .Net 1.1 method
33364 2004-08-11 15:25 pbartok
33367 - Fixed BindingManagerBase.cs filename
33369 2004-08-11 15:22 pbartok
33371 * BindingManagerBase.cs:
33372 - Was checked in with wrong filename
33374 2004-08-11 14:50 pbartok
33379 2004-08-11 13:41 jordi
33381 * XplatUIWin32.cs: Fixes ClientRect
33383 2004-08-11 13:19 pbartok
33385 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33387 - We had SetWindowPos and MoveWindow to set window positions and
33388 size, removed MoveWindow. We have GetWindowPos, so it made sense to
33389 keep SetWindowPos as matching counterpart
33390 - Added some X11 sanity checking
33392 2004-08-11 12:59 pbartok
33395 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
33396 (It seems that SetBounds is just a front for SetBoundsCore and
33397 SetBoundsCore updates the underlying window system and
33398 UpdateBounds is responsible for updating the variables associated
33399 with the Control and sending the events)
33400 - Major cleanup of Size handling; we now have two sizes, client_size
33401 and bounds. Bounds defines the window with decorations, client_size
33404 2004-08-11 12:55 pbartok
33406 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33407 - Added method to calculate difference between decorated window and
33410 2004-08-11 12:54 pbartok
33413 - Forcing redraw on resize
33415 2004-08-11 11:43 pbartok
33418 - Removed disposing of the actual images when the list is disposed
33420 2004-08-11 09:13 pbartok
33423 - Now properly reparents windows
33425 2004-08-11 08:37 pbartok
33430 2004-08-11 07:47 pbartok
33433 - Rewrote the collection stuff. Might not be as fast now, not
33434 keeping the number of children around and accessible directly, but
33435 it's more straightforward
33437 2004-08-11 07:44 pbartok
33439 * AccessibleObject.cs:
33440 - Fixed to match ControlCollection rewrite
33442 2004-08-11 07:43 pbartok
33445 - Added missing creation of the collection list
33447 2004-08-10 20:08 jackson
33449 * StatusBar.cs: Get the paint message from WndProc
33451 2004-08-10 19:31 jackson
33453 * ThemeWin32Classic.cs: Create Brushes as little as possible
33455 2004-08-10 19:20 jackson
33457 * UICues.cs: Add Flags attribute
33459 2004-08-10 19:19 jackson
33461 * StatusBarPanel.cs: Signature cleanup
33463 2004-08-10 19:10 jackson
33465 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
33466 Initial implementation of status bar item drawing
33468 2004-08-10 17:27 jordi
33470 * TrackBar.cs: add missing methods, properties, and restructure to
33473 2004-08-10 16:24 jackson
33475 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
33476 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
33479 2004-08-10 13:21 jordi
33481 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
33482 enhancements and standarize on win colors defaults
33484 2004-08-10 12:52 jackson
33486 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
33487 ThemeWin32Classic.cs: Implement DrawItem functionality
33489 2004-08-10 12:47 jordi
33491 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
33493 2004-08-10 12:32 jordi
33495 * Control.cs: throw ontextchange event
33497 2004-08-10 11:43 pbartok
33500 - Added more to the still unfinished Dock/Anchor layout code
33502 2004-08-10 11:39 pbartok
33504 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
33505 - Added GetWindowPos method
33507 2004-08-10 11:36 pbartok
33510 - Implemented several methods
33512 2004-08-10 09:47 jackson
33514 * TrackBar.cs: Allow control to handle buffering
33516 2004-08-10 09:41 jackson
33518 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
33520 2004-08-10 09:24 jackson
33522 * Label.cs, LinkLabel.cs: Let Control handle buffering.
33524 2004-08-10 09:09 jackson
33526 * StatusBar.cs: Let Control handle all the buffering.
33528 2004-08-10 09:08 jackson
33530 * Control.cs: Control will now handle the buffering code, so each
33531 control does not have to implement this.
33533 2004-08-10 08:34 jackson
33535 * XplatUIDriver.cs: Use default colors from the theme
33537 2004-08-09 17:12 pbartok
33540 - Fixed several bugs Ravindra pointed out
33542 2004-08-09 16:11 pbartok
33545 - Added incomplete dock layout code
33546 - Added support for mouse wheel
33548 2004-08-09 16:09 pbartok
33551 - Added handling for middle and right mousebutton
33552 - Added handling for mouse wheel
33553 - Added handling for key state and mouse state and position
33554 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
33557 2004-08-09 15:40 jackson
33559 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
33560 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
33563 2004-08-09 15:37 jackson
33565 * StatusBar.cs: Initial implementation of StatusBar
33567 2004-08-09 15:36 jackson
33569 * ITheme.cs: Add support for drawing status bar and getting status
33572 2004-08-09 15:35 pbartok
33577 2004-08-09 15:34 jackson
33579 * ThemeWin32Classic.cs: Add support for drawing status bar and get
33580 status bar item sizes
33582 2004-08-09 15:21 jackson
33584 * ThemeWin32Classic.cs: Use known colors for default control
33587 2004-08-09 15:12 jackson
33589 * ThemeWin32Classic.cs: Make the default font static, it is static
33590 in control so this doesn't change functionality and creating fonts
33593 2004-08-09 14:56 pbartok
33596 - Added GrabMode enum
33598 2004-08-09 14:55 pbartok
33600 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33601 - Removed Run method, was only required for initial development
33603 2004-08-09 14:51 pbartok
33605 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33606 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
33609 2004-08-09 13:48 pbartok
33612 - Fixed default sizing for child windows
33614 2004-08-09 12:56 pbartok
33617 - Added generation of WM_DESTROY message
33618 - Added handling of window manager induced shutdown
33620 2004-08-09 11:31 jackson
33622 * ThemeWin32Classic.cs: New names for control properties
33624 2004-08-09 11:25 jackson
33626 * Control.cs: Use new color names
33628 2004-08-09 11:02 jackson
33630 * XplatUI.cs: Get default window properties from the theme
33632 2004-08-09 11:01 jackson
33634 * ITheme.cs: The theme engine now controls default window
33637 2004-08-09 11:00 jackson
33639 * ThemeWin32Classic.cs: Add default window color properties
33641 2004-08-09 10:17 jackson
33643 * ThemeWin32Classic.cs: Use correct default back color
33645 2004-08-09 10:05 jackson
33647 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
33650 2004-08-09 09:56 jackson
33652 * XplatUI.cs: Remove defaults, these are handled by the theme now.
33654 2004-08-09 09:54 jackson
33656 * Control.cs: Get default properties from the theme.
33658 2004-08-09 09:53 jackson
33660 * ITheme.cs: Themes now handle default control properties
33662 2004-08-09 09:53 jackson
33664 * ThemeWin32Classic.cs: Themes now handle default control
33665 properties so coloring will be consistent
33667 2004-08-08 16:54 jordi
33669 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
33671 2004-08-08 15:08 jordi
33673 * XplatUIX11.cs: fixes keyboard crash
33675 2004-08-08 13:47 jordi
33677 * Label.cs: add cvs header info
33679 2004-08-08 12:09 jackson
33681 * ThemeWin32Classic.cs: Add pen_buttonface
33683 2004-08-08 11:52 jordi
33685 * Label.cs, LinkLabel.cs: [no log message]
33687 2004-08-08 11:34 jordi
33689 * ThemeWin32Classic.cs: Use Windows Standard Colours
33691 2004-08-07 17:32 jordi
33693 * TrackBar.cs: throw exceptions of invalid enums values
33695 2004-08-07 17:31 jordi
33697 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
33700 2004-08-07 16:56 jackson
33702 * HorizontalAlignment.cs: Initial checkin
33704 2004-08-07 13:16 jordi
33706 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
33709 2004-08-07 13:05 jordi
33711 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
33712 GetSysColor defines
33714 2004-08-06 18:01 pbartok
33716 * ThemeWin32Classic.cs:
33717 - Fixed some rounding issues with float/int
33719 2004-08-06 18:00 jackson
33721 * DockStyle.cs, AnchorStyles.cs:
33723 Add flags and serializable attributes.
33725 2004-08-06 17:46 pbartok
33728 - Implemented GetParent
33730 2004-08-06 17:18 pbartok
33733 - Fixed some rounding issues with float/int
33735 2004-08-06 17:17 pbartok
33737 * X11Structs.cs, XplatUIX11.cs:
33738 - Fixed Refresh and Invalidate
33740 2004-08-06 15:30 pbartok
33742 * Control.cs, X11Structs.cs, XplatUIX11.cs:
33743 - Fixed recursive loop when resizing
33744 - Improved/fixed redrawing on expose messages
33746 2004-08-06 09:53 jordi
33748 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
33749 keyboard navigation
33751 2004-08-06 08:02 pbartok
33753 * X11Structs.cs, XplatUIX11.cs:
33754 - Fixed reparenting
33755 - Fixed window border creation
33757 2004-08-05 15:38 pbartok
33760 - Attempted fix for reparenting problems
33762 2004-08-04 15:14 pbartok
33765 - Fixed Invalidation bug (calculated wrong client area)
33766 - Added ClientSize setter
33768 2004-08-04 15:13 pbartok
33771 - Added AutoScale properties
33773 2004-08-04 15:13 pbartok
33776 - Added latest files
33778 2004-08-04 14:11 pbartok
33780 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33782 - Added Invalidate handling
33784 2004-08-03 17:09 jordi
33786 * XplatUIDriver.cs: fixes spelling mistake
33788 2004-07-27 09:53 jordi
33790 * TrackBar.cs: fixes trackbar events, def classname, methods
33793 2004-07-27 09:29 jordi
33795 * ScrollBar.cs: fixes scrollbar events
33797 2004-07-27 04:38 jordi
33799 * Control.cs: changes to be able to run winforms samples
33801 2004-07-26 11:42 jordi
33803 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
33804 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
33806 2004-07-26 05:41 jordi
33808 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
33809 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
33812 2004-07-22 09:22 jordi
33814 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
33815 check link overlapping, implement events, and fixes
33817 2004-07-21 10:28 jordi
33819 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
33821 2004-07-21 10:19 jordi
33823 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
33824 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
33825 LinkLabelLinkClickedEventArgs.cs,
33826 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
33827 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
33830 2004-07-19 13:09 jordi
33832 * Control.cs, Label.cs: label control re-written: added missing
33833 functionlity, events, and properties
33835 2004-07-19 10:49 jordi
33837 * Control.cs: fixes SetBounds logic
33839 2004-07-19 01:29 jordi
33841 * Control.cs: Call RefreshWindow only if the window has created
33843 2004-07-15 14:05 pbartok
33845 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
33846 - Implemented ImageList and ImageList.ImageCollection classes
33847 - Added ColorDepth enumeration
33848 - Updated SWF VS.Net project
33850 2004-07-15 11:06 jordi
33852 * XplatUIStructs.cs: added MsgButons enum
33854 2004-07-15 11:03 jordi
33856 * Control.cs: added basic mouse handeling events
33858 2004-07-15 03:38 jordi
33860 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
33861 Vertical TrackBar control implementation
33863 2004-07-13 09:33 jordi
33865 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
33867 2004-07-13 09:31 jordi
33869 * Control.cs, Form.cs: commit: new properties and fixes form size
33872 2004-07-09 14:13 miguel
33874 * ProgressBar.cs: Spelling
33876 2004-07-09 11:25 pbartok
33879 - Removed usage of Rectangle for drawing. Miguel pointed out it's
33882 2004-07-09 11:17 miguel
33884 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
33886 * ProgressBar.cs: Fixed spelling for `block'
33888 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
33891 Avoid using the += on rect.X, that exposed a bug in the compiler.
33893 2004-07-08 23:21 pbartok
33895 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
33896 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
33897 BaseCollection.cs, Binding.cs, BindingContext.cs,
33898 BindingMemberInfo.cs, BindingsCollection.cs,
33899 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
33900 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
33901 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
33902 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
33903 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
33904 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
33905 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
33906 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
33907 FrameStyle.cs, GiveFeedbackEventArgs.cs,
33908 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
33909 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
33910 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
33911 InputLanguageChangedEventArgs.cs,
33912 InputLanguageChangedEventHandler.cs,
33913 InputLanguageChangingEventArgs.cs,
33914 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
33915 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
33916 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
33917 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
33918 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
33919 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
33920 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
33921 QueryAccessibilityHelpEventArgs.cs,
33922 QueryAccessibilityHelpEventHandler.cs,
33923 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
33924 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
33925 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
33926 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
33927 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
33928 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
33929 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
33930 XplatUIX11.cs, lang.cs: